opal.lsslibraries.com Open in urlscan Pro
13.33.187.125  Public Scan

URL: https://opal.lsslibraries.com/3008.3.5.272fcc4/resources/scripts/gen/main.js?salt=1569134340
Submission Tags: falconsandbox
Submission: On October 17 via api from US — Scanned from IT

Form analysis 0 forms found in the DOM

Text Content

var requirejs,require,define;!function(global){function isFunction(a){return'[object Function]'===ostring.call(a)}function isArray(a){return'[object Array]'===ostring.call(a)}function each(a,b){if(a){var c;for(c=0;c<a.length&&(!a[c]||!b(a[c],c,a));c+=1);}}function eachReverse(a,b){if(a){var c;for(c=a.length-1;c>-1&&(!a[c]||!b(a[c],c,a));c-=1);}}function hasProp(a,b){return hasOwn.call(a,b)}function getOwn(a,b){return hasProp(a,b)&&a[b]}function eachProp(a,b){var c;for(c in a)if(hasProp(a,c)&&b(a[c],c))break}function mixin(a,b,c,d){return b&&eachProp(b,function(b,e){!c&&hasProp(a,e)||(!d||'object'!=typeof b||!b||isArray(b)||isFunction(b)||b instanceof RegExp?a[e]=b:(a[e]||(a[e]={}),mixin(a[e],b,c,d)))}),a}function bind(a,b){return function(){return b.apply(a,arguments)}}function scripts(){return document.getElementsByTagName('script')}function defaultOnError(a){throw a}function getGlobal(a){if(!a)return a;var b=global;return each(a.split('.'),function(a){b=b[a]}),b}function makeError(a,b,c,d){var e=new Error(b+'\nhttp://requirejs.org/docs/errors.html#'+a);return e.requireType=a,e.requireModules=d,c&&(e.originalError=c),e}function newContext(a){function b(a){var b,c;for(b=0;b<a.length;b++)if(c=a[b],'.'===c)a.splice(b,1),b-=1;else if('..'===c){if(0===b||1==b&&'..'===a[2]||'..'===a[b-1])continue;b>0&&(a.splice(b-1,2),b-=2)}}function c(a,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q=c&&c.split('/'),r=x.map,s=r&&r['*'];if(a&&(a=a.split('/'),k=a.length-1,x.nodeIdCompat&&jsSuffixRegExp.test(a[k])&&(a[k]=a[k].replace(jsSuffixRegExp,'')),'.'===a[0].charAt(0)&&q&&(p=q.slice(0,q.length-1),a=p.concat(a)),b(a),a=a.join('/')),d&&r&&(q||s)){g=a.split('/');a:for(h=g.length;h>0;h-=1){if(j=g.slice(0,h).join('/'),q)for(i=q.length;i>0;i-=1)if(f=getOwn(r,q.slice(0,i).join('/')),f&&(f=getOwn(f,j),f)){l=f,m=h;break a}!n&&s&&getOwn(s,j)&&(n=getOwn(s,j),o=h)}!l&&n&&(l=n,m=o),l&&(g.splice(0,m,l),a=g.join('/'))}return e=getOwn(x.pkgs,a),e?e:a}function d(a){isBrowser&&each(scripts(),function(b){return b.getAttribute('data-requiremodule')===a&&b.getAttribute('data-requirecontext')===u.contextName?(b.parentNode.removeChild(b),!0):void 0})}function e(a){var b=getOwn(x.paths,a);return b&&isArray(b)&&b.length>1?(b.shift(),u.require.undef(a),u.makeRequire(null,{skipMap:!0})([a]),!0):void 0}function f(a){var b,c=a?a.indexOf('!'):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function g(a,b,d,e){var g,h,i,j,k=null,l=b?b.name:null,m=a,n=!0,o='';return a||(n=!1,a='_@r'+(F+=1)),j=f(a),k=j[0],a=j[1],k&&(k=c(k,l,e),h=getOwn(C,k)),a&&(k?o=h&&h.normalize?h.normalize(a,function(a){return c(a,l,e)}):-1===a.indexOf('!')?c(a,l,e):a:(o=c(a,l,e),j=f(o),k=j[0],o=j[1],d=!0,g=u.nameToUrl(o))),i=!k||h||d?'':'_unnormalized'+(G+=1),{prefix:k,name:o,parentMap:b,unnormalized:!!i,url:g,originalName:m,isDefine:n,id:(k?k+'!'+o:o)+i}}function h(a){var b=a.id,c=getOwn(y,b);return c||(c=y[b]=new u.Module(a)),c}function i(a,b,c){var d=a.id,e=getOwn(y,d);!hasProp(C,d)||e&&!e.defineEmitComplete?(e=h(a),e.error&&'error'===b?c(e.error):e.on(b,c)):'defined'===b&&c(C[d])}function j(a,b){var c=a.requireModules,d=!1;b?b(a):(each(c,function(b){var c=getOwn(y,b);c&&(c.error=a,c.events.error&&(d=!0,c.emit('error',a)))}),d||req.onError(a))}function k(){globalDefQueue.length&&(apsp.apply(B,[B.length,0].concat(globalDefQueue)),globalDefQueue=[])}function l(a){delete y[a],delete z[a]}function m(a,b,c){var d=a.map.id;a.error?a.emit('error',a.error):(b[d]=!0,each(a.depMaps,function(d,e){var f=d.id,g=getOwn(y,f);!g||a.depMatched[e]||c[f]||(getOwn(b,f)?(a.defineDep(e,C[f]),a.check()):m(g,b,c))}),c[d]=!0)}function n(){var a,b,c=1e3*x.waitSeconds,f=c&&u.startTime+c<(new Date).getTime(),g=[],h=[],i=!1,k=!0;if(!s){if(s=!0,eachProp(z,function(a){var c=a.map,j=c.id;if(a.enabled&&(c.isDefine||h.push(a),!a.error))if(!a.inited&&f)e(j)?(b=!0,i=!0):(g.push(j),d(j));else if(!a.inited&&a.fetched&&c.isDefine&&(i=!0,!c.prefix))return k=!1}),f&&g.length)return a=makeError('timeout','Load timeout for modules: '+g,null,g),a.contextName=u.contextName,j(a);k&&each(h,function(a){m(a,{},{})}),f&&!b||!i||!isBrowser&&!isWebWorker||w||(w=setTimeout(function(){w=0,n()},50)),s=!1}}function o(a){hasProp(C,a[0])||h(g(a[0],null,!0)).init(a[1],a[2])}function p(a,b,c,d){a.detachEvent&&!isOpera?d&&a.detachEvent(d,b):a.removeEventListener(c,b,!1)}function q(a){var b=a.currentTarget||a.srcElement;return p(b,u.onScriptLoad,'load','onreadystatechange'),p(b,u.onScriptError,'error'),{node:b,id:b&&b.getAttribute('data-requiremodule')}}function r(){var a;for(k();B.length;){if(a=B.shift(),null===a[0])return j(makeError('mismatch','Mismatched anonymous define() module: '+a[a.length-1]));o(a)}}var s,t,u,v,w,x={waitSeconds:7,baseUrl:'./',paths:{},bundles:{},pkgs:{},shim:{},config:{}},y={},z={},A={},B=[],C={},D={},E={},F=1,G=1;return v={require:function(a){return a.require?a.require:a.require=u.makeRequire(a.map)},exports:function(a){return a.usingExports=!0,a.map.isDefine?a.exports?C[a.map.id]=a.exports:a.exports=C[a.map.id]={}:void 0},module:function(a){return a.module?a.module:a.module={id:a.map.id,uri:a.map.url,config:function(){return getOwn(x.config,a.map.id)||{}},exports:a.exports||(a.exports={})}}},t=function(a){this.events=getOwn(A,a.id)||{},this.map=a,this.shim=getOwn(x.shim,a.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},t.prototype={init:function(a,b,c,d){d=d||{},this.inited||(this.factory=b,c?this.on('error',c):this.events.error&&(c=bind(this,function(a){this.emit('error',a)})),this.depMaps=a&&a.slice(0),this.errback=c,this.inited=!0,this.ignore=d.ignore,d.enabled||this.enabled?this.enable():this.check())},defineDep:function(a,b){this.depMatched[a]||(this.depMatched[a]=!0,this.depCount-=1,this.depExports[a]=b)},fetch:function(){if(!this.fetched){this.fetched=!0,u.startTime=(new Date).getTime();var a=this.map;return this.shim?(u.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],bind(this,function(){return a.prefix?this.callPlugin():this.load()})),void 0):a.prefix?this.callPlugin():this.load()}},load:function(){var a=this.map.url;D[a]||(D[a]=!0,u.load(this.map.id,a))},check:function(){if(this.enabled&&!this.enabling){var a,b,c=this.map.id,d=this.depExports,e=this.exports,f=this.factory;if(this.inited){if(this.error)this.emit('error',this.error);else if(!this.defining){if(this.defining=!0,this.depCount<1&&!this.defined){if(isFunction(f)){if(this.events.error&&this.map.isDefine||req.onError!==defaultOnError)try{e=u.execCb(c,f,d,e)}catch(g){a=g}else e=u.execCb(c,f,d,e);if(this.map.isDefine&&void 0===e&&(b=this.module,b?e=b.exports:this.usingExports&&(e=this.exports)),a)return a.requireMap=this.map,a.requireModules=this.map.isDefine?[this.map.id]:null,a.requireType=this.map.isDefine?'define':'require',j(this.error=a)}else e=f;this.exports=e,this.map.isDefine&&!this.ignore&&(C[c]=e,req.onResourceLoad&&req.onResourceLoad(u,this.map,this.depMaps)),l(c),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit('defined',this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var a=this.map,b=a.id,d=g(a.prefix);this.depMaps.push(d),i(d,'defined',bind(this,function(d){var e,f,k,m=getOwn(E,this.map.id),n=this.map.name,o=this.map.parentMap?this.map.parentMap.name:null,p=u.makeRequire(a.parentMap,{enableBuildCallback:!0});return this.map.unnormalized?(d.normalize&&(n=d.normalize(n,function(a){return c(a,o,!0)})||''),f=g(a.prefix+'!'+n,this.map.parentMap),i(f,'defined',bind(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),k=getOwn(y,f.id),k&&(this.depMaps.push(f),this.events.error&&k.on('error',bind(this,function(a){this.emit('error',a)})),k.enable()),void 0):m?(this.map.url=u.nameToUrl(m),this.load(),void 0):(e=bind(this,function(a){this.init([],function(){return a},null,{enabled:!0})}),e.error=bind(this,function(a){this.inited=!0,this.error=a,a.requireModules=[b],eachProp(y,function(a){0===a.map.id.indexOf(b+'_unnormalized')&&l(a.map.id)}),j(a)}),e.fromText=bind(this,function(c,d){var f=a.name,i=g(f),k=useInteractive;d&&(c=d),k&&(useInteractive=!1),h(i),hasProp(x.config,b)&&(x.config[f]=x.config[b]);try{req.exec(c)}catch(l){return j(makeError('fromtexteval','fromText eval for '+b+' failed: '+l,l,[b]))}k&&(useInteractive=!0),this.depMaps.push(i),u.completeLoad(f),p([f],e)}),d.load(a.name,p,e,x),void 0)})),u.enable(d,this),this.pluginMaps[d.id]=d},enable:function(){z[this.map.id]=this,this.enabled=!0,this.enabling=!0,each(this.depMaps,bind(this,function(a,b){var c,d,e;if('string'==typeof a){if(a=g(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[b]=a,e=getOwn(v,a.id),e)return this.depExports[b]=e(this),void 0;this.depCount+=1,i(a,'defined',bind(this,function(a){this.defineDep(b,a),this.check()})),this.errback?i(a,'error',bind(this,this.errback)):this.events.error&&i(a,'error',bind(this,function(a){this.emit('error',a)}))}c=a.id,d=y[c],hasProp(v,c)||!d||d.enabled||u.enable(a,this)})),eachProp(this.pluginMaps,bind(this,function(a){var b=getOwn(y,a.id);b&&!b.enabled&&u.enable(a,this)})),this.enabling=!1,this.check()},on:function(a,b){var c=this.events[a];c||(c=this.events[a]=[]),c.push(b)},emit:function(a,b){each(this.events[a],function(a){a(b)}),'error'===a&&delete this.events[a]}},u={config:x,contextName:a,registry:y,defined:C,urlFetched:D,defQueue:B,Module:t,makeModuleMap:g,nextTick:req.nextTick,onError:j,configure:function(a){a.baseUrl&&'/'!==a.baseUrl.charAt(a.baseUrl.length-1)&&(a.baseUrl+='/');var b=x.shim,c={paths:!0,bundles:!0,config:!0,map:!0};eachProp(a,function(a,b){c[b]?(x[b]||(x[b]={}),mixin(x[b],a,!0,!0)):x[b]=a}),a.bundles&&eachProp(a.bundles,function(a,b){each(a,function(a){a!==b&&(E[a]=b)})}),a.shim&&(eachProp(a.shim,function(a,c){isArray(a)&&(a={deps:a}),!a.exports&&!a.init||a.exportsFn||(a.exportsFn=u.makeShimExports(a)),b[c]=a}),x.shim=b),a.packages&&each(a.packages,function(a){var b,c;a='string'==typeof a?{name:a}:a,c=a.name,b=a.location,b&&(x.paths[c]=a.location),x.pkgs[c]=a.name+'/'+(a.main||'main').replace(currDirRegExp,'').replace(jsSuffixRegExp,'')}),eachProp(y,function(a,b){a.inited||a.map.unnormalized||(a.map=g(b))}),(a.deps||a.callback)&&u.require(a.deps||[],a.callback)},makeShimExports:function(a){function b(){var b;return a.init&&(b=a.init.apply(global,arguments)),b||a.exports&&getGlobal(a.exports)}return b},makeRequire:function(b,e){function f(c,d,i){var k,l,m;return e.enableBuildCallback&&d&&isFunction(d)&&(d.__requireJsBuild=!0),'string'==typeof c?isFunction(d)?j(makeError('requireargs','Invalid require call'),i):b&&hasProp(v,c)?v[c](y[b.id]):req.get?req.get(u,c,b,f):(l=g(c,b,!1,!0),k=l.id,hasProp(C,k)?C[k]:j(makeError('notloaded','Module name "'+k+'" has not been loaded yet for context: '+a+(b?'':'. Use require([])')))):(r(),u.nextTick(function(){r(),m=h(g(null,b)),m.skipMap=e.skipMap,m.init(c,d,i,{enabled:!0}),n()}),f)}return e=e||{},mixin(f,{isBrowser:isBrowser,toUrl:function(a){var d,e=a.lastIndexOf('.'),f=a.split('/')[0],g='.'===f||'..'===f;return-1!==e&&(!g||e>1)&&(d=a.substring(e,a.length),a=a.substring(0,e)),u.nameToUrl(c(a,b&&b.id,!0),d,!0)},defined:function(a){return hasProp(C,g(a,b,!1,!0).id)},specified:function(a){return a=g(a,b,!1,!0).id,hasProp(C,a)||hasProp(y,a)}}),b||(f.undef=function(a){k();var c=g(a,b,!0),e=getOwn(y,a);d(a),delete C[a],delete D[c.url],delete A[a],eachReverse(B,function(b,c){b[0]===a&&B.splice(c,1)}),e&&(e.events.defined&&(A[a]=e.events),l(a))}),f},enable:function(a){var b=getOwn(y,a.id);b&&h(a).enable()},completeLoad:function(a){var b,c,d,f=getOwn(x.shim,a)||{},g=f.exports;for(k();B.length;){if(c=B.shift(),null===c[0]){if(c[0]=a,b)break;b=!0}else c[0]===a&&(b=!0);o(c)}if(d=getOwn(y,a),!b&&!hasProp(C,a)&&d&&!d.inited){if(!(!x.enforceDefine||g&&getGlobal(g)))return e(a)?void 0:j(makeError('nodefine','No define call for '+a,null,[a]));o([a,f.deps||[],f.exportsFn])}n()},nameToUrl:function(a,b,c){var d,e,f,g,h,i,j,k=getOwn(x.pkgs,a);if(k&&(a=k),j=getOwn(E,a),j)return u.nameToUrl(j,b,c);if(req.jsExtRegExp.test(a))h=a+(b||'');else{for(d=x.paths,e=a.split('/'),f=e.length;f>0;f-=1)if(g=e.slice(0,f).join('/'),i=getOwn(d,g),i){isArray(i)&&(i=i[0]),e.splice(0,f,i);break}h=e.join('/'),h+=b||(/^data\:|\?/.test(h)||c?'':'.js'),h=('/'===h.charAt(0)||h.match(/^[\w\+\.\-]+:/)?'':x.baseUrl)+h}return x.urlArgs?h+((-1===h.indexOf('?')?'?':'&')+x.urlArgs):h},load:function(a,b){req.load(u,a,b)},execCb:function(a,b,c,d){return b.apply(d,c)},onScriptLoad:function(a){if('load'===a.type||readyRegExp.test((a.currentTarget||a.srcElement).readyState)){interactiveScript=null;var b=q(a);u.completeLoad(b.id)}},onScriptError:function(a){var b=q(a);return e(b.id)?void 0:j(makeError('scripterror','Script error for: '+b.id,a,[b.id]))}},u.require=u.makeRequire(),u}function getInteractiveScript(){return interactiveScript&&'interactive'===interactiveScript.readyState?interactiveScript:(eachReverse(scripts(),function(a){return'interactive'===a.readyState?interactiveScript=a:void 0}),interactiveScript)}var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version='2.1.16',commentRegExp=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,cjsRequireRegExp=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,jsSuffixRegExp=/\.js$/,currDirRegExp=/^\.\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,ap=Array.prototype,apsp=ap.splice,isBrowser=!('undefined'==typeof window||'undefined'==typeof navigator||!window.document),isWebWorker=!isBrowser&&'undefined'!=typeof importScripts,readyRegExp=isBrowser&&'PLAYSTATION 3'===navigator.platform?/^complete$/:/^(complete|loaded)$/,defContextName='_',isOpera='undefined'!=typeof opera&&'[object Opera]'===opera.toString(),contexts={},cfg={},globalDefQueue=[],useInteractive=!1;if('undefined'==typeof define){if('undefined'!=typeof requirejs){if(isFunction(requirejs))return;cfg=requirejs,requirejs=void 0}'undefined'==typeof require||isFunction(require)||(cfg=require,require=void 0),req=requirejs=function(a,b,c,d){var e,f,g=defContextName;return isArray(a)||'string'==typeof a||(f=a,isArray(b)?(a=b,b=c,c=d):a=[]),f&&f.context&&(g=f.context),e=getOwn(contexts,g),e||(e=contexts[g]=req.s.newContext(g)),f&&e.configure(f),e.require(a,b,c)},req.config=function(a){return req(a)},req.nextTick='undefined'!=typeof setTimeout?function(a){setTimeout(a,4)}:function(a){a()},require||(require=req),req.version=version,req.jsExtRegExp=/^\/|:|\?|\.js$/,req.isBrowser=isBrowser,s=req.s={contexts:contexts,newContext:newContext},req({}),each(['toUrl','undef','defined','specified'],function(a){req[a]=function(){var b=contexts[defContextName];return b.require[a].apply(b,arguments)}}),isBrowser&&(head=s.head=document.getElementsByTagName('head')[0],baseElement=document.getElementsByTagName('base')[0],baseElement&&(head=s.head=baseElement.parentNode)),req.onError=defaultOnError,req.createNode=function(a,b,c){var d=a.xhtml?document.createElementNS('http://www.w3.org/1999/xhtml','html:script'):document.createElement('script');return d.type=a.scriptType||'text/javascript',d.charset='utf-8',d.async=!0,d},req.load=function(a,b,c){var d=a&&a.config||{},e;if(isBrowser)return e=req.createNode(d,b,c),e.setAttribute('data-requirecontext',a.contextName),e.setAttribute('data-requiremodule',b),!e.attachEvent||e.attachEvent.toString&&e.attachEvent.toString().indexOf('[native code')<0||isOpera?(e.addEventListener('load',a.onScriptLoad,!1),e.addEventListener('error',a.onScriptError,!1)):(useInteractive=!0,e.attachEvent('onreadystatechange',a.onScriptLoad)),e.src=c,currentlyAddingScript=e,baseElement?head.insertBefore(e,baseElement):head.appendChild(e),currentlyAddingScript=null,e;if(isWebWorker)try{importScripts(c),a.completeLoad(b)}catch(f){a.onError(makeError('importscripts','importScripts failed for '+b+' at '+c,f,[b]))}},isBrowser&&!cfg.skipDataMain&&eachReverse(scripts(),function(a){return head||(head=a.parentNode),dataMain=a.getAttribute('data-main'),dataMain?(mainScript=dataMain,cfg.baseUrl||(src=mainScript.split('/'),mainScript=src.pop(),subPath=src.length?src.join('/')+'/':'./',cfg.baseUrl=subPath),mainScript=mainScript.replace(jsSuffixRegExp,''),req.jsExtRegExp.test(mainScript)&&(mainScript=dataMain),cfg.deps=cfg.deps?cfg.deps.concat(mainScript):[mainScript],!0):void 0}),define=function(a,b,c){var d,e;'string'!=typeof a&&(c=b,b=a,a=null),isArray(b)||(c=b,b=null),!b&&isFunction(c)&&(b=[],c.length&&(c.toString().replace(commentRegExp,'').replace(cjsRequireRegExp,function(a,c){b.push(c)}),b=(1===c.length?['require']:['require','exports','module']).concat(b))),useInteractive&&(d=currentlyAddingScript||getInteractiveScript(),d&&(a||(a=d.getAttribute('data-requiremodule')),e=contexts[d.getAttribute('data-requirecontext')])),(e?e.defQueue:globalDefQueue).push([a,b,c])},define.amd={jQuery:!0},req.exec=function(text){return eval(text)},req(cfg)}}(this),define("vendor/requirejs/require",function(){}),requirejs.config({waitSeconds:0,config:{moment:{noGlobal:!0},soy:{logCircularDependencies:!1}},paths:{async:'vendor/async/async',asyncTmpl:'requirejs/plugins/asyncTmpl',backbone:'vendor/backbone/backbone','backbone-plugin':'vendor/backbone','bootstrap-affix':'vendor/bootstrap/js/bootstrap-affix','bootstrap-button':'vendor/bootstrap/js/bootstrap-button','bootstrap-collapse':'vendor/bootstrap/js/bootstrap-collapse','bootstrap-dropdown':'vendor/bootstrap/js/bootstrap-dropdown','bootstrap-tab':'vendor/bootstrap/js/bootstrap-tab','bootstrap-timepicker':'vendor/bootstrap/js/bootstrap-timepicker','bootstrap-transition':'vendor/bootstrap/js/bootstrap-transition',Class:'vendor/class/Class',channel:'requirejs/plugins/channel',crypto:'vendor/crypto',d3:'vendor/d3/d3.v3','d3-legend':'vendor/d3/d3-legend','doc-ready':'vendor/doc-ready',domReady:'vendor/requirejs/plugins/domReady','dwr/engine':'dwr/engine','dwr/util':'dwr/util',eventie:'vendor/eventie',eventEmitter:'vendor/eventEmitter','fizzy-ui-utils':'vendor/fizzy-ui-utils',flot:'vendor/jquery-flot',form2js:'vendor/form2js','get-size':'vendor/get-size','get-style-property':'vendor/get-style-property','goog/caja/html-css-sanitizer':'vendor/google/caja/html-css-sanitizer-bundle',graphael:'vendor/graphael','g.raphael':'vendor/graphael/g.raphael',handlebars:'vendor/handlebars/handlebars.amd',hbs:'vendor/requirejs/plugins/hbs',html2canvas:'vendor/html2canvas/html2canvas',jrange:'vendor/jrange/jquery.range',i18nBatch:'requirejs/plugins/i18nBatch',i18nbundle:'requirejs/plugins/i18nbundle',i18nReady:'requirejs/plugins/i18nReady',imagesloaded:'vendor/imagesloaded/imagesloaded',jalc:'vendor/jalc/jalc',jiveCoreApiV3:'empty:','jquery.fullcalendar':'vendor/fullcalendar','jquery.color':'vendor/jquery.color',jiverscripts:'lib/jiverscripts/src',jqColorPicker:'vendor/jqColorPicker/jqColorPicker.min',jquery:'vendor/jquery/jquery','jquery-mobile':'vendor/jquery-mobile','jquery-plugin':'jquery','jquery-ui':'vendor/jquery-ui',jsurl:'vendor/jsurl/url',l10n:'requirejs/plugins/l10n',masonry:'vendor/masonry/masonry','matches-selector':'vendor/matches-selector',modernizr:'vendor/modernizr/modernizr',moment:'vendor/moment/moment','moment-l10n':'vendor/moment/locale','moment-timezone':'vendor/moment/timezone/moment-timezone-with-data',outlayer:'vendor/outlayer',portal:'vendor/portal/portal',promise:'vendor/requirejs/plugins/requirejs-promise',prototype:'vendor/prototypejs/prototype',querystring:'vendor/querystring/querystring',qtip:'vendor/qtip2/jquery.qtip',quicksilver:'quicksilver/quicksilver',raphael:'vendor/raphael/raphael',raphael_pie:'vendor/raphael/raphael_pie',shindig:'empty:',soy:'requirejs/plugins/soy',tiny_mce4:'vendor/tinymce/tinymce',tiny_mce4_plugins:'tiny_mce4/plugins',tiny_mce4_compat3x:'tiny_mce4/plugins/compat3x','tinymce.l10n':'requirejs/plugins/tinymce.l10n','touchevents-fix':'vendor/ios-iframe-touchevents-fix/touchevents-fix',underscore:'vendor/lodash/lodash',sammy:'vendor/sammy/sammy',sizzle:'vendor/sizzle/sizzle',slick:'vendor/slick/slick',stacktrace:'vendor/stacktrace/stacktrace',swfobject:'vendor/swfobject/swfobject',text:'vendor/requirejs/plugins/text',wistia:'wistia/E-v1','ydn.db':'vendor/ydn.db/ydn.db-is-crud','Zapatec.Calendar':'zapatec/zpcal/src/calendar',Zapatec:'zapatec/utils/zapatec','Zapatec-Utils':'zapatec/utils/','js-cookie':'vendor/js-cookie/js.cookie',imageuploader:'vendor/jquery-fileuploader/image-uploader',videojs:'videojs/video','marker-bar':'videojs/marker-bar',videoPlayerUtil:'videojs/videoPlayerUtil','device-detector':'vendor/device-detector/device-detector',transcript:'videojs/videojs-transcript','global/window':'videojs/window','global/document':'videojs/document',addVideoJsInGlobalScope:'videojs/addVideoJsInGlobalScope','videojs-contrib-quality-levels':'videojs/videojs-contrib-quality-levels','http-streaming':'videojs/videojs-http-streaming','videojs-offset':'videojs/videojs-offset',youtube:'videojs/video/videojs-youtube',vimeo:'videojs/video/videojs-vimeo','videojs-lang':'videojs/videojs-lang','videojs-ar':'videojs/lang/videojs-ar','videojs-cs':'videojs/lang/videojs-cs','videojs-da':'videojs/lang/videojs-da','videojs-de':'videojs/lang/videojs-de','videojs-el':'videojs/lang/videojs-el','videojs-es':'videojs/lang/videojs-es','videojs-fi':'videojs/lang/videojs-fi','videojs-fr':'videojs/lang/videojs-fr','videojs-he':'videojs/lang/videojs-he','videojs-hu':'videojs/lang/videojs-hu','videojs-it':'videojs/lang/videojs-it','videojs-ja':'videojs/lang/videojs-ja','videojs-ko':'videojs/lang/videojs-ko','videojs-nl':'videojs/lang/videojs-nl','videojs-no':'videojs/lang/videojs-no','videojs-pl':'videojs/lang/videojs-pl','videojs-pt':'videojs/lang/videojs-pt','videojs-ru':'videojs/lang/videojs-ru','videojs-sv':'videojs/lang/videojs-sv','videojs-th':'videojs/lang/videojs-th','videojs-zh':'videojs/lang/videojs-zh'},map:{'*':{'goog/soyutils':'vendor/google/soyutils/soyutils',jquery:'jquery-private','jquery-plugin/jquery.carouFredSel':'jquery-plugin/jquery.carouFredSel-6.1.0','jquery-plugin/jquery.jstree':'jquery-plugin/jquery.jstree.custom','hbs/underscore':'underscore','moment-l10n/en-us':'moment','moment-l10n/en':'moment','moment-l10n/zh':'moment-l10n/zh-tw','moment-l10n/ar-001':'moment-l10n/ar','moment-l10n/ar-jo':'moment-l10n/ar','moment-l10n/ar-eg':'moment-l10n/ar','moment-l10n/ar-dz':'moment-l10n/ar','moment-l10n/ar-ae':'moment-l10n/ar','moment-l10n/ar-iq':'moment-l10n/ar','moment-l10n/ar-qa':'moment-l10n/ar','moment-l10n/ar-kw':'moment-l10n/ar','moment-l10n/ar-lb':'moment-l10n/ar','moment-l10n/ar-ly':'moment-l10n/ar','moment-l10n/ar-ma':'moment-l10n/ar','moment-l10n/ar-bh':'moment-l10n/ar','moment-l10n/ar-om':'moment-l10n/ar','moment-l10n/ar-sa':'moment-l10n/ar','moment-l10n/ar-sd':'moment-l10n/ar','moment-l10n/ar-sy':'moment-l10n/ar','moment-l10n/ar-tn':'moment-l10n/ar','moment-l10n/ar-ye':'moment-l10n/ar','moment-l10n/cs-cz':'moment-l10n/cs','moment-l10n/da-dk':'moment-l10n/da','moment-l10n/de-gr':'moment-l10n/de','moment-l10n/de-lu':'moment-l10n/de','moment-l10n/de-ch':'moment-l10n/de','moment-l10n/el-gr':'moment-l10n/el','moment-l10n/el-cy':'moment-l10n/el','moment-l10n/en-in':'moment-l10n/en-gb','moment-l10n/en-ie':'moment-l10n/en-gb','moment-l10n/en-mt':'moment-l10n/en-gb','moment-l10n/en-nz':'moment-l10n/en-au','moment-l10n/en-ph':'moment-l10n/en-au','moment-l10n/en-sg':'moment-l10n/en-au','moment-l10n/en-za':'moment-l10n/en-gb','moment-l10n/es-419':'moment-l10n/es','moment-l10n/es-ar':'moment-l10n/es','moment-l10n/es-bo':'moment-l10n/es','moment-l10n/es-cl':'moment-l10n/es','moment-l10n/es-co':'moment-l10n/es','moment-l10n/es-cr':'moment-l10n/es','moment-l10n/es-cu':'moment-l10n/es','moment-l10n/es-do':'moment-l10n/es','moment-l10n/es-ec':'moment-l10n/es','moment-l10n/es-sv':'moment-l10n/es','moment-l10n/es-gt':'moment-l10n/es','moment-l10n/es-hn':'moment-l10n/es','moment-l10n/es-mx':'moment-l10n/es','moment-l10n/es-ni':'moment-l10n/es','moment-l10n/es-pa':'moment-l10n/es','moment-l10n/es-py':'moment-l10n/es','moment-l10n/es-pe':'moment-l10n/es','moment-l10n/es-pr':'moment-l10n/es','moment-l10n/es-es':'moment-l10n/es','moment-l10n/es-us':'moment-l10n/es','moment-l10n/es-uy':'moment-l10n/es','moment-l10n/es-ve':'moment-l10n/es','moment-l10n/fi-fi':'moment-l10n/fi','moment-l10n/fr-be':'moment-l10n/fr','moment-l10n/fr-lu':'moment-l10n/fr','moment-l10n/fr-ch':'moment-l10n/fr','moment-l10n/he-il':'moment-l10n/he','moment-l10n/hu-hu':'moment-l10n/hu','moment-l10n/it-it':'moment-l10n/it','moment-l10n/iw':'moment-l10n/he','moment-l10n/iw-il':'moment-l10n/he','moment-l10n/it-ch':'moment-l10n/it','moment-l10n/ja-jp':'moment-l10n/ja','moment-l10n/ja-jp-jp-#u-ca-japanese':'moment-l10n/ja','moment-l10n/ko-kr':'moment-l10n/ko','moment-l10n/no':'moment-l10n/nn','moment-l10n/no-no':'moment-l10n/nn','moment-l10n/no-no-ny':'moment-l10n/nn','moment-l10n/nl-be':'moment-l10n/nl','moment-l10n/nl-nl':'moment-l10n/nl','moment-l10n/pl-pl':'moment-l10n/pl','moment-l10n/ru-ru':'moment-l10n/ru','moment-l10n/sv-se':'moment-l10n/sv','moment-l10n/th-th':'moment-l10n/th','moment-l10n/th-th-th-#u-nu-thai':'moment-l10n/th','moment-l10n/zh-hk':'moment-l10n/zh','moment-l10n/zh-sg':'moment-l10n/zh',soyDeps:'jive/bundles/soy/soy_dependencies'},prototype:{sizzle:'sizzle-for-prototype'},'jquery-private':{jquery:'jquery'},'jquery-plugin/jquery.jstree.custom':{'jquery-plugin/jquery.jstree':'jquery-plugin/jquery.jstree'},'jive/bundle/app':{hbs:'vendor/requirejs/plugins/hbs'}},shim:{bootstrap:['jquery'],'bootstrap-affix':['jquery'],'bootstrap-button':['jquery'],'bootstrap-collapse':['jquery'],'bootstrap-dropdown':['jquery'],'bootstrap-tab':['jquery'],'bootstrap-transition':['jquery'],clamp:{exports:'$clamp'},Class:{exports:'Class'},'dwr/engine':{exports:'dwr.engine'},'dwr/interface/AdminDatabaseUtilAction':{deps:['dwr/engine','dwr/util'],exports:'AdminDatabaseUtilAction'},'dwr/interface/AvailablePlugins':{deps:['dwr/engine','dwr/util'],exports:'AvailablePlugins'},'dwr/interface/BinaryBodySettings':{deps:['dwr/engine','dwr/util'],exports:'BinaryBodySettings'},'dwr/interface/CommunityUtils':{deps:['dwr/engine','dwr/util'],exports:'CommunityUtils'},'dwr/interface/DisableUser':{deps:['dwr/engine','dwr/util'],exports:'DisableUser'},'dwr/interface/DwrResourceBundleRules':{deps:['dwr/engine','dwr/util'],exports:'DwrResourceBundleRules'},'dwr/interface/OpenSearchSettings':{deps:['dwr/engine','dwr/util'],exports:'OpenSearchSettings'},'dwr/interface/StatusLevelSettings':{deps:['dwr/engine','dwr/util'],exports:'StatusLevelSettings'},'dwr/util':{exports:'dwr.util'},'goog/caja/html':{deps:['caja/html-css-sanitizer'],exports:'html'},'goog/caja/html-sanitize':{deps:['caja/html-css-sanitizer'],exports:'html_sanitize'},domLib:!0,domTT:['domLib'],'flot/excanvas':!0,'flot/jquery.flot':['jquery','flot/excanvas'],'flot/jquery.flot.time':['jquery','flot/jquery.flot'],'form2js/jquery.toObject':{deps:['jquery','form2js/form2js'],init:function(){this.form2js=window.require('form2js/form2js')}},gadgets:{deps:['shindig'],exports:'gadgets'},'g.raphael':{deps:['raphael'],exports:'Raphael'},'graphael/g.pie':{deps:['g.raphael'],exports:'Raphael'},imagesloaded:['jquery'],jiveCoreApiV3:['shindig'],'jive/rte/syntax/shCore':{exports:'dp.sh'},'jive/rte/syntax/shBrushCpp':['jive/rte/syntax/shCore'],'jive/rte/syntax/shBrushCSharp':['jive/rte/syntax/shCore'],'jive/rte/syntax/shBrushCss':['jive/rte/syntax/shCore'],'jive/rte/syntax/shBrushDelphi':['jive/rte/syntax/shCore'],'jive/rte/syntax/shBrushJava':['jive/rte/syntax/shCore'],'jive/rte/syntax/shBrushJScript':['jive/rte/syntax/shCore'],'jive/rte/syntax/shBrushPhp':['jive/rte/syntax/shCore'],'jive/rte/syntax/shBrushPython':['jive/rte/syntax/shCore'],'jive/rte/syntax/shBrushRuby':['jive/rte/syntax/shCore'],'jive/rte/syntax/shBrushSql':['jive/rte/syntax/shCore'],'jive/rte/syntax/shBrushVb':['jive/rte/syntax/shCore'],'jive/rte/syntax/shBrushXml':['jive/rte/syntax/shCore'],'jive/rte/syntax/shBrushPlain':['jive/rte/syntax/shCore'],'jquery-mobile/jquery.mobile.vmouse':['jquery'],'jquery-plugin/events/input':['jquery'],'jquery-plugin/jquery.contentAutocomplete':['jquery','jquery-plugin/suggestBox','jquery-plugin/jquery.utils'],'jquery-plugin/jquery.delayedObserver':['jquery'],'jquery-plugin/jquery.effectiveZIndex':['jquery'],'jquery-plugin/jquery.form':['jquery'],'jquery-plugin/jquery.history':['jquery'],'jquery-plugin/jquery.jqplot':['jquery'],'jquery-plugin/jquery.json':['jquery'],'jquery-plugin/jquery.label':['jquery'],'jquery-plugin/jquery.progressbar':['jquery'],'jquery-plugin/jquery.lightbox_media':['jquery','jive/i18n','jquery-plugin/jquery.lightbox_me'],'jquery-plugin/jquery.media':['jquery','vendor/jquery/plugins/jquery.metadata','jquery-plugin/jquery.swfobject'],'jquery-plugin/jquery.pushStackChromeFix':['jquery'],'jquery-plugin/jquery.quickSilverFilter':['jquery','quicksilver'],'jquery-plugin/jquery.safeRemove':['jquery','jiverscripts/conc/next_tick'],'jquery-plugin/jquery.spinbox':['jquery'],'jquery-plugin/jquery.suggest':['jquery'],'jquery-plugin/jquery.swfobject':{deps:['jquery','swfobject'],exports:'swfobject'},'jquery-plugin/jquery.template':['jquery'],'jquery-plugin/jquery.templates':['jquery'],'jquery-plugin/jquery.trash':['jquery'],'jquery-plugin/jquery.utils':['jquery'],'jquery-plugin/jquery.userAutocomplete':['jquery','jquery-plugin/jquery.lightbox_me'],'jquery-plugin/jquery.view':['jquery'],'jquery-plugin/plugin_utils':['jquery'],'jquery-ui/jquery.ui.autocomplete':['jquery','jquery-ui/jquery.ui.core','jquery-ui/jquery.ui.widget','jquery-ui/jquery.ui.position','jquery-ui/jquery.ui.menu'],'jquery-ui/jquery.ui.accordion':['jquery','jquery-ui/jquery.ui.core','jquery-ui/jquery.ui.widget'],'jquery-ui/jquery.ui.button':['jquery-ui/jquery.ui.core','jquery-ui/jquery.ui.widget'],'jquery-ui/jquery.ui.core':['jquery'],'jquery-ui/jquery.ui.datepicker':['jquery','jquery-ui/jquery.ui.core'],'jquery-ui/jquery.ui.dialog':['jquery','jquery-ui/jquery.ui.core','jquery-ui/jquery.ui.widget','jquery-ui/jquery.ui.button','jquery-ui/jquery.ui.draggable','jquery-ui/jquery.ui.mouse','jquery-ui/jquery.ui.position','jquery-ui/jquery.ui.resizable'],'jquery-ui/jquery.ui.draggable':['jquery','jquery-ui/jquery.ui.core','jquery-ui/jquery.ui.mouse','jquery-ui/jquery.ui.widget'],'jquery-ui/jquery.ui.droppable':['jquery','jquery-ui/jquery.ui.core','jquery-ui/jquery.ui.mouse','jquery-ui/jquery.ui.widget','jquery-ui/jquery.ui.draggable'],'jquery-ui/jquery.ui.effect':['jquery'],'jquery-ui/jquery.ui.effect-blind':['jquery','jquery-ui/jquery.ui.effect'],'jquery-ui/jquery.ui.effect-bounce':['jquery','jquery-ui/jquery.ui.effect'],'jquery-ui/jquery.ui.effect-clip':['jquery','jquery-ui/jquery.ui.effect'],'jquery-ui/jquery.ui.effect-drop':['jquery','jquery-ui/jquery.ui.effect'],'jquery-ui/jquery.ui.effect-explode':['jquery','jquery-ui/jquery.ui.effect'],'jquery-ui/jquery.ui.effect-fade':['jquery','jquery-ui/jquery.ui.effect'],'jquery-ui/jquery.ui.effect-fold':['jquery','jquery-ui/jquery.ui.effect'],'jquery-ui/jquery.ui.effect-highlight':['jquery','jquery-ui/jquery.ui.effect'],'jquery-ui/jquery.ui.effect-pulsate':['jquery','jquery-ui/jquery.ui.effect'],'jquery-ui/jquery.ui.effect-scale':['jquery','jquery-ui/jquery.ui.effect'],'jquery-ui/jquery.ui.effect-shake':['jquery','jquery-ui/jquery.ui.effect'],'jquery-ui/jquery.ui.effect-slide':['jquery','jquery-ui/jquery.ui.effect'],'jquery-ui/jquery.ui.effect-transfer':['jquery','jquery-ui/jquery.ui.effect'],'jquery-ui/jquery.ui.menu':['jquery','jquery-ui/jquery.ui.core','jquery-ui/jquery.ui.widget','jquery-ui/jquery.ui.position'],'jquery-ui/jquery.ui.mouse':['jquery','jquery-ui/jquery.ui.widget'],'jquery-plugin/ui/jquery.ui.multidraggable':['jquery','jquery-ui/jquery.ui.draggable'],'jquery-ui/jquery.ui.position':['jquery'],'jquery-ui/jquery.ui.progressbar':['jquery','jquery-ui/jquery.ui.core','jquery-ui/jquery.ui.widget'],'jquery-ui/jquery.ui.resizable':['jquery','jquery-ui/jquery.ui.core','jquery-ui/jquery.ui.mouse','jquery-ui/jquery.ui.widget'],'jquery-ui/jquery.ui.selectable':['jquery','jquery-ui/jquery.ui.core','jquery-ui/jquery.ui.mouse','jquery-ui/jquery.ui.widget'],
'jquery-ui/jquery.ui.sortable':['jquery','jquery-ui/jquery.ui.core','jquery-ui/jquery.ui.mouse','jquery-ui/jquery.ui.widget'],'jquery-ui/jquery.ui.slider':['jquery','jquery-ui/jquery.ui.core','jquery-ui/jquery.ui.mouse','jquery-ui/jquery.ui.widget'],'jquery-ui/jquery.ui.spinner':['jquery','jquery-ui/jquery.ui.core','jquery-ui/jquery.ui.widget','jquery-ui/jquery.ui.button'],'jquery-ui/jquery.ui.tabs':['jquery','jquery-ui/jquery.ui.core','jquery-ui/jquery.ui.widget'],'jquery-ui/jquery.ui.tooltip':['jquery','jquery-ui/jquery.ui.core','jquery-ui/jquery.ui.widget','jquery-ui/jquery.ui.position'],'jquery-ui/jquery.ui.widget':{deps:['jquery'],exports:'jQuery.widget'},'jquery.fullcalendar':['jquery'],'jquery.color':['jquery'],jsurl:{exports:'Url'},modernizr:{exports:'Modernizr'},'page/admin/system/phrase_substitution/settings_resourcebundle_rules':{deps:['jive/gui/window','prototype','dwr/interface/DwrResourceBundleRules']},portal:{exports:'portal'},post:!0,posteditor:!0,prototype:{deps:['sizzle'],exports:'Prototype'},quicksilver:!0,raphael:{exports:'Raphael'},sammy:['jquery'],shindig:{exports:'shindig'},swfobject:{exports:'swfobject'},tiny_mce4:{deps:['jquery'],exports:'tinymce'},'tiny_mce4_compat3x/plugin':{deps:['tiny_mce4','tiny_mce4']},'vendor/tinymce/plugins/advlist/plugin':['tiny_mce4'],'vendor/tinymce/plugins/anchor/plugin':['tiny_mce4'],'vendor/tinymce/plugins/autolink/plugin':['tiny_mce4'],'vendor/tinymce/plugins/autoresize/plugin':['tiny_mce4'],'vendor/tinymce/plugins/charmap/plugin':['tiny_mce4'],'vendor/tinymce/plugins/code/plugin':['tiny_mce4'],'vendor/tinymce/plugins/codesample/plugin':['tiny_mce4'],'vendor/tinymce/plugins/colorpicker/plugin':['tiny_mce4'],'vendor/tinymce/plugins/directionality/plugin':['tiny_mce4'],'vendor/tinymce/plugins/emoticons/plugin':['tiny_mce4'],'vendor/tinymce/plugins/hr/plugin':['tiny_mce4'],'vendor/tinymce/plugins/image/plugin':['tiny_mce4'],'vendor/tinymce/plugins/imagetools/plugin':['tiny_mce4'],'vendor/tinymce/plugins/lists/plugin':['tiny_mce4'],'vendor/tinymce/plugins/paste/plugin':['tiny_mce4'],'vendor/tinymce/plugins/spellchecker/plugin':['tiny_mce4'],'vendor/tinymce/plugins/table/plugin':['tiny_mce4'],'vendor/tinymce/plugins/textcolor/plugin':['tiny_mce4'],'vendor/tinymce/themes/modern/theme':['tiny_mce4'],'tiny_mce4_plugins/tinymce_custom/codesample/editor_plugin_src':['tiny_mce4'],'tiny_mce4_plugins/jiveemoticons/editor_plugin_src':['tiny_mce4'],'tiny_mce4_plugins/jivemention/editor_plugin_src':['tiny_mce4','jquery-plugin/jquery.typeAhead'],'tiny_mce4_plugins/jivescroll/editor_plugin_src':['tiny_mce4'],'tiny_mce4_plugins/selectionUtil/editor_plugin_src':['tiny_mce4'],'vendor/jquery/plugins/jquery.autosize':['jquery'],'vendor/jquery/plugins/jquery.ba-bbq':['jquery','vendor/jquery/plugins/jquery.browser'],'vendor/jquery/plugins/jquery.ba-outside-events':['jquery'],'vendor/jquery/plugins/jquery.ba-resize':['jquery'],'vendor/jquery/plugins/jquery.browser':['jquery'],'vendor/jquery/plugins/jquery.dotdotdot':['jquery'],'vendor/jquery/plugins/jquery.endless-scroll':['jquery'],'vendor/jquery/plugins/jquery.hotkeys':['jquery'],'vendor/jquery/plugins/jquery.Jcrop':['jquery'],'vendor/jquery/plugins/jquery.jsonp':['jquery'],'vendor/jquery/plugins/jquery.justifiedGallery':['jquery'],'vendor/jquery/plugins/jquery.metadata':['jquery'],'vendor/jquery/plugins/jquery.path':['jquery'],'vendor/jquery/plugins/jquery.scrollTo':['jquery'],'vendor/jquery/plugins/jquery.tablesorter':['jquery','vendor/jquery/plugins/jquery.metadata'],'vendor/jquery/plugins/jquery.ui.touch-punch':['jquery','jquery-ui/jquery.ui.widget','jquery-ui/jquery.ui.mouse'],'vendor/jquery/plugins/jquery.validate':['jquery'],'vendor/jquery/plugins/jquery.validator':['jquery'],'vendor/jquery/plugins/jquery.vgrid':['jquery'],'vendor/jquery/plugins/jquery.jqplot':['jquery'],'vendor/jquery/plugins/jquery.jqplot.barRenderer':['vendor/jquery/plugins/jquery.jqplot'],'vendor/jquery/plugins/jquery.jqplot.categoryAxisRenderer':['vendor/jquery/plugins/jquery.jqplot'],'vendor/jquery/plugins/jquery.jqplot.canvasAxisTickRenderer':['vendor/jquery/plugins/jquery.jqplot'],'vendor/jquery/plugins/jquery.jqplot.pointLabels':['vendor/jquery/plugins/jquery.jqplot'],'vendor/jquery/plugins/jquery.jqplot.canvasTextRenderer':['vendor/jquery/plugins/jquery.jqplot'],'vendor/soyutils/soyutils':['goog/shim'],wistia:{exports:'Wistia'},'vendor/xregexp/xregexp':{exports:'XRegExp'},'vendor/xregexp/addons/unicode/unicode-base':{deps:['vendor/xregexp/xregexp'],exports:'XRegexp'},'vendor/xregexp/addons/unicode/unicode-blocks':{deps:['vendor/xregexp/xregexp'],exports:'XRegexp'},'vendor/xregexp/addons/unicode/unicode-categories':{deps:['vendor/xregexp/xregexp'],exports:'XRegexp'},'vendor/xregexp/addons/unicode/unicode-properties':{deps:['vendor/xregexp/xregexp'],exports:'XRegexp'},'vendor/xregexp/addons/unicode/unicode-scripts':{deps:['vendor/xregexp/xregexp'],exports:'XRegexp'},'ydn.db':{exports:'ydn'},Zapatec:{exports:'Zapatec'},'Zapatec.Calendar':{deps:['Zapatec'],exports:'Zapatec.Calendar'},'zapatec/zpcal/lang/calendar-af':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-al':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-ar':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-bg':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-big5':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-br':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-ca':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-cs-win':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-cs':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-da':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-de':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-du':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-el':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-en':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-es':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-fi':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-fr':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-he':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-hr':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-hu':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-it':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-iw':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-ja':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-ko':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-lt-utf8':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-lt':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-lv':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-nl':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-no':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-pl-utf8':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-pl':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-pt':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-ro':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-ru':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-ru_win_':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-si':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-sk':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-sp':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-sv':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-th':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-tr':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-ua':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-ua_cp1251':['Zapatec.Calendar'],'zapatec/zpcal/lang/calendar-zh':['Zapatec.Calendar'],transcript:{deps:["addVideoJsInGlobalScope"]},'http-streaming':{deps:["addVideoJsInGlobalScope"]},youtube:{deps:["addVideoJsInGlobalScope"]},vimeo:{deps:["addVideoJsInGlobalScope"]},'videojs-contrib-quality-levels':{deps:["addVideoJsInGlobalScope"]}},callback:function(){'use strict'}}),define("requirejs.config.js",function(){}),requirejs.config({paths:{'jive/bundles/activity':'gen/jive/bundles/activity','jive/bundles/browse':'gen/jive/bundles/browse','jive/bundles/content':'gen/jive/bundles/content','jive/bundles/email_notification':'gen/jive/bundles/email_notification','jive/bundles/follows':'gen/jive/bundles/follows','jive/bundles/history':'gen/jive/bundles/history','jive/bundles/inbox':'gen/jive/bundles/inbox','jive/bundles/navbar':'gen/jive/bundles/navbar','jive/bundles/news':'gen/jive/bundles/news','jive/bundles/onboarding':'gen/jive/bundles/onboarding','jive/bundles/place':'gen/jive/bundles/place','jive/bundles/restShared':'gen/jive/bundles/restShared','jive/bundles/rewards':'gen/jive/bundles/rewards','jive/bundles/spotlight':'gen/jive/bundles/spotlight','jive/bundles/status':'gen/jive/bundles/status','jive/bundles/supportcenter':'gen/jive/bundles/supportcenter','jive/bundles/tinymce4':'gen/jive/bundles/tinymce4','jive/bundles/tips':'gen/jive/bundles/tips','jive/bundles/userregistration':'gen/jive/bundles/userregistration','jive/bundles/zapatec':'gen/jive/bundles/zapatec','jive/bundles/soy/inbox/inboxitems':'gen/jive/bundles/soy/inbox/inboxitems','jive/bundles/app':'gen/jive/bundles/app','jive/bundles/admin':'gen/jive/bundles/admin'},bundles:{"jive/bundles/activity":["apps/activity_stream/models/activity_stream_exclusion_source","soy!jive.eae.activitystream.filterMenu","apps/activity_stream/views/activity_stream_filter_view","soy!jive.eae.activitystream.item.fullcontent.appUpdate","soy!jive.eae.activitystream.item.fullcontent.remotedocument","soy!jive.eae.activitystream.item.fullcontent.idea","soy!jive.eae.activitystream.item.fullcontent.poll","soy!jive.eae.activitystream.item.fullcontent.appGrouped","soy!jive.eae.activitystream.item.fullcontent.event","soy!jive.eae.common.contentTypeParentPreviewStylingClassName","soy!jive.eae.activitystream.item.fullcontent.discussion","soy!jive.eae.activitystream.item.fullcontent.task","soy!jive.eae.activitystream.item.fullcontent.bookmark","soy!jive.eae.activitystream.item.fullcontent.document","soy!jive.eae.activitystream.item.fullcontent.mention","soy!jive.eae.activitystream.activityStreamFullContentView","soy!jive.eae.activitystream.expViewParentReplyLink","soy!jive.eae.activitystream.hiddenActivityView","soy!jive.eae.activitystream.alreadyHiddenMessage","soy!jive.eae.activitystream.hideMenu","soy!jive.i18n.keys.eaeStreamShowfewercomments","soy!jive.i18n.keys.eaeStreamShowmorecomments","soy!jive.i18n.keys.cmntCannotBeEmptyText","apps/activity_stream/views/activity_stream_item_view","soy!jive.eae.activitystream.viewMostRecent","soy!jive.eae.activitystream.maxPagesReached","soy!jive.eae.activitystream.newUpdates","soy!jive.eae.activitystream.streamMarkup","apps/activity_stream/views/activity_stream_list_view","apps/activity_stream/activity_stream_controller"],"jive/bundles/browse":["soy!jive.browse.getQueryLinkModal","soy!jive.i18n.keys.copyToClipboardSuccessMsg","jive/jiveClipboard","apps/filters/view/get_query_link_view","soy!jive.browse.user.flippable","soy!jive.browse.user.flipperControl","soy!jive.browse.user.userProfileImage","soy!jive.people.profile.statusLevel","soy!jive.browse.user.thumbnailUserItem","soy!jive.browse.user.detailExternalUserItem","soy!jive.browse.user.detailUserItem","soy!jive.browse.user.detailUserHeader","soy!jive.browse.user.thumbnailExternalUserItem","soy!jive.browse.content.contentPlaceRelationshipCount","soy!jive.soy.share.removeContentPlaceLinkControl","soy!jive.browse.content.detailActionPanel","soy!jive.browse.content.flippable","soy!jive.browse.content.parentInfo","soy!jive.browse.content.detailContentItem","soy!jive.browse.content.detailTileStreamItem","soy!jive.browse.content.activityInfoBlock","soy!jive.browse.content.flipperControl","soy!jive.browse.content.thumbnailActionPanel","soy!jive.browse.content.thumbnailDateBlock","soy!jive.browse.content.thumbnailContentItem","soy!jive.browse.content.thumbnailDocumentItem","soy!jive.browse.content.ideaActivityInfoBlock","soy!jive.browse.content.thumbnailStatusItem","soy!jive.browse.content.thumbnailPollItem","soy!jive.browse.content.detailIdeaItem","soy!jive.browse.content.thumbnailIdeaItem","soy!jive.browse.content.detailContentHeader","soy!jive.browse.content.videoActivityInfoBlock","soy!jive.browse.content.thumbnailVideoItem","soy!jive.browse.content.event.thumbnailEventItem","soy!jive.browse.content.detailVideoItem","soy!jive.browse.content.thumbnailBlogPostItem","soy!jive.browse.content.defaultDetailContentItem","soy!jive.browse.content.thumbnailDiscussionItem","soy!jive.browse.content.thumbnailTileStreamItem","soy!jive.browse.content.defaultThumbnailContentItem","soy!jive.browse.content.thumbnailBookmarkItem","soy!jive.browse.contentplacerel.activityInfoBlock","soy!jive.browse.contentplacerel.thumbnailContentItem","soy!jive.browse.contentplacerel.detailContentItem","soy!jive.browse.container.flippable","soy!jive.browse.container.cardBack","soy!jive.browse.container.flipperControl","soy!jive.browse.container.thumbnailSocialGroupItem","soy!jive.browse.container.detailContainerHeader","soy!jive.browse.container.projectStatusMessage","soy!jive.browse.container.thumbnailProjectItem","soy!jive.browse.container.hierarchyContainerItem","soy!jive.browse.container.detailContainerItem","soy!jive.browse.container.thumbnailSpaceItem","soy!jive.browse.container.thumbnailBlogItem","soy!jive.browse.grid.hierarchyItems","soy!jive.browse.grid.hierarchyView","soy!jive.browse.grid.listGrid","soy!jive.browse.grid.maxPageReached","soy!jive.browse.bookmark.popularBookmarkText","soy!jive.browse.bookmark.thumbnailBookmarkedItem","soy!jive.browse.bookmark.detailBookmarkedItem","soy!jive.browse.bookmark.detailBookmarksHeader","soy!jive.browse.grid.thumbGrid","soy!jive.browse.grid.itemGrid","soy!jive.browse.grid.moreSearchResultsAvailableBody","soy!jive.browse.grid.moreSearchResultsAvailable","vendor/jquery/plugins/jquery.vgrid","apps/filters/view/item_grid_view","apps/filters/controllers/tag_autocomplete","soy!jive.browse.filter.handleKey","soy!jive.browse.filter.compositeFilterLink","soy!jive.browse.filter.jiveCompositeControl","soy!jive.browse.filter.compositeFilterOption","soy!jive.browse.filter.nativeCompositeControl","soy!jive.browse.filter.compositeFilter","soy!jive.browse.filter.booleanFilter","soy!jive.browse.filter.atIndex","soy!jive.browse.filter.filterMaxVal","soy!jive.browse.filter.filterMinVal","soy!jive.browse.filter.dateRangeFilter","soy!jive.browse.filter.tagFilter","soy!jive.browse.filter.toggleFilter","soy!jive.browse.filter.dynamicFilterDispatch","soy!jive.browse.filter.dynamicFilter","soy!jive.browse.filter.filter","soy!jive.browse.filter.paginationLinks","soy!jive.browse.filter.filterStack","soy!jive.browse.filter.itemViewToggle","soy!jive.browse.filter.objectTypeFilter","soy!jive.browse.filter.searchBox","soy!jive.browse.filter.sortOption","soy!jive.browse.filter.sortControls","soy!jive.browse.filter.filtersWithContentTypes","soy!jive.browse.filter.genericFilters","soy!jive.browse.filter.filtersDispatch","soy!jive.browse.filter.buildAppliedObjectTypeFilters","soy!jive.browse.filter.compactUnappliedFilters","soy!jive.browse.filter.compactAppliedFilters","soy!jive.browse.filter.filters","apps/filters/view/filter_view","soy!jive.browse.filter.activeFilterGroupItem","soy!jive.browse.filter.pinConfirmation","apps/filters/view/secondary_nav_view","apps/filters/model/filter_group","apps/filters/main","soy!jive.people.manualModLinks","soy!jive.people.orgChartNode","soy!jive.people.profile.address","soy!jive.people.profile.browseValue","soy!jive.people.profile.date","soy!jive.people.profile.email","soy!jive.people.profile.phone","soy!jive.people.profile.url","soy!jive.people.profile.value","soy!jive.people.profile.field","soy!jive.people.profile.fields","soy!jive.people.profile.orgChart","soy!jive.people.orgChartBody","soy!jive.people.directReportHover","apps/orgchart/view/orgchart_view","apps/orgchart/main","soy!jive.browse.grid.jiveGenius","apps/filters/view/recommended_view","apps/recommendation_app/models/activity_model","apps/recommendation_feedback/models/recommendation_feedback_source","apps/recommendation_app/models/recommendation_model","apps/filters/recommended_content","apps/filters/activity_time_pagination","soy!jive.people.relationshipLabelInput","soy!jive.people.friendFeedLink","soy!jive.people.relationshipLabel","apps/userrelationshiplist/views/people_connections_label_view","apps/userrelationshiplist/main","apps/filters/invitation","apps/filters/following","soy!jive.places.parentChainInner","soy!jive.places.parentChain","apps/filters/view/space_hierarchy_view","apps/filters/hierarchical_content","apps/filters/membership","soy!jive.people.noResults"],"jive/bundles/content":["soy!jive.content.region.view.actionsidebar.featureItem","soy!jive.content.region.view.actionsidebar.featureItemInTopAndTrending","soy!jive.content.region.view.actionsidebar.deleteContentForm","apps/content/menus/view/more-menu","apps/content/menus/view/outcomes-menu","apps/content/menus/navbar","apps/impact2/sidebar/sidebar_model","apps/impact2/calculatedMetrics/calculated_metrics_model_util","apps/impact2/calculatedMetrics/calculated_metrics_model","soy!jive.impact2.sidebar.metaModalIcon","soy!jive.impact2.sidebar.visibilityToggle","soy!jive.impact2.sidebar.metaModal","soy!jive.impact2.sidebar.main","soy!jive.impact2.error","apps/impact2/sidebar/sidebar_view","apps/impact2/sidebar/sidebar_controller","apps/impact2/util/number_util","apps/impact2/util/constants","apps/impact2/heatMap/heatMapCoordinates","apps/impact2/chart/video_analytics_util","soy!jive.impact2.modal.calculatedMetrics","soy!jive.impact2.user_lists.referrersSection","soy!jive.impact2.user_lists.viewersSection","soy!jive.impact2.modal.main","soy!jive.impact2.modal.tab","soy!jive.impact2.modal.tabs","soy!jive.impact2.modal.tipBox","apps/impact2/modal/modal_view","apps/impact2/modal/modal_model_util","apps/impact2/modal/modal_model","apps/impact2/modal/modal_controller","apps/impact2/chart/chart_model_util","apps/impact2/chart/chart_model","apps/impact2/util/date_util","soy!jive.i18n.keys.impactSegmentationOtherDepartments","soy!jive.i18n.keys.impactSegmentationNoDepartment","apps/impact2/chart/chart_view_util","vendor/d3/d3.v3","apps/impact2/chart/retentionChart","vendor/d3/d3-legend","apps/impact2/heatMap/heatMap","vendor/raphael/raphael_pie","soy!jive.impact2.chart.noContent","soy!jive.impact2.chart.deviceTypeDetails","soy!jive.impact2.chart.tooltip","soy!jive.impact2.chart.topPerformingCountries","soy!jive.impact2.chart.videoAnalytics","soy!jive.impact2.chart.videoAnalyticsDetails","soy!jive.impact2.chart.yAxis","soy!jive.impact2.chart.chartComponents","soy!jive.impact2.chart.modeControl","soy!jive.impact2.chart.departmentSegment","soy!jive.impact2.chart.segmentedMetricTotal","soy!jive.impact2.chart.basicTooltip","soy!jive.impact2.chart.pointForSegmentedTooltip","soy!jive.impact2.chart.segmentedTooltip","apps/impact2/chart/chart_view","apps/impact2/chart/chart_controller","soy!jive.impact2.dateRange.dateRangeMenuBar","soy!jive.impact2.dateRange.dateRangeOption","soy!jive.impact2.dateRange.dateRangeMenu","soy!jive.impact2.dateRange.customDateRangeForm","soy!jive.impact2.dateRange.customDateRangeError","apps/impact2/dateRange/date_range_view","apps/impact2/dateRange/date_range_controller","apps/impact2/userLists/user_lists_model_util","apps/impact2/userLists/user_lists_model","apps/impact2/userLists/user_lists_view_util","soy!jive.impact2.user_lists.noViewers","soy!jive.impact2.user_lists.noViewersFound","soy!jive.impact2.user_lists.userTable","soy!jive.impact2.user_lists.avatar","soy!jive.impact2.user_lists.userDisplayName","soy!jive.impact2.user_lists.viewer","soy!jive.impact2.user_lists.pagination","soy!jive.impact2.user_lists.noReferrers","soy!jive.impact2.user_lists.referrer","apps/impact2/userLists/user_lists_view","apps/impact2/userLists/user_lists_controller","apps/impact2/impact_manager","apps/content/impact/impact_stats","apps/content/region/comment_app_view","soy!jive.unified.content.view.renderLatestReplyLine","apps/content/region/comment_link_region_view","apps/videomacro","apps/bootstrapper","page/content/controller","page/content/collaboration","apps/outcomes/replyOutcomeView","apps/content/common/source","apps/content/common/content_rte","apps/content/common/view","apps/content/common/multipart/view","apps/content/common/multipart/source","apps/content/common/multipart/main","apps/content/common","apps/content/draft/view","apps/content/draft/source","apps/content/draft/main","apps/comment_app/regions/views/form_view","apps/comment_app/regions/views/edit_form_view","soy!jive.content.region.view.comments.deleteCommentModal","apps/comment_app/views/comment_view","apps/comment_app/regions/views/comment_list_view","apps/discussion_app/models/discussion","apps/discussion_app/views/discussion_view","soy!jive.DiscussionApp.soy.renderReply","apps/discussion_app/views/discussion_list_view","apps/discussion_app/models/question_source","apps/discussion_app/views/question_view","apps/discussion_app/question_main","apps/discussion_app/main","apps/comment_app/regions/main","soy!jive.i18n.keys.advancedEditor","soy!jive.i18n.keys.commentEditingTitle","soy!jive.i18n.keys.commentReplyToTitle","soy!jive.i18n.keys.customizeLoading","soy!jive.i18n.keys.formSubmitWait","soy!jive.i18n.keys.loginRequired","soy!jive.i18n.keys.modCommentAdd","apps/content/common/answer","page/content/discussion","page/content/document","apps/content/blogs/main","page/content/author/blog_post","apps/content/discussions/main","page/content/author/discussion","apps/content/documents/file_upload_queue","soy!jive.documents.upload.modal","soy!jive.documents.upload.statusMsg","soy!jive.documents.upload.progressModal","soy!jive.documents.upload.allDone","soy!jive.documents.upload.doneWithErrors","apps/content/documents/upload/progress_modal","soy!jive.documents.errorMessage","soy!jive.documents.draftsDisabledMsg","apps/content/documents/upload_view","apps/content/documents/main","page/content/author/document","apps/content/polls/create/models/option_source","apps/content/polls/create/models/meta_source","apps/content/polls/create/models/image_meta_source","apps/content/polls/create/views/meta_view","apps/content/polls/create/views/image_meta_view","apps/content/polls/create/views/legacy_image_meta_view","soy!jive.polls.option.soy.renderEdit","soy!jive.polls.create.optionChoiceLabel","soy!jive.polls.create.optionEntry","soy!jive.polls.option.soy.error","soy!jive.polls.option.soy.deletePrompt","apps/content/polls/create/views/option_view","apps/content/polls/create/views/option_list_view","apps/content/polls/create/views/poll_view","apps/content/polls/create/main","page/content/author/poll","page/content/author/upload","apps/content/videos/author","page/content/author/video","soy!jive.BookmarkApp.soy.bookmarkLink","apps/bookmark_app/views/link_view","apps/bookmark_app/views/list_view","apps/bookmark_app/main","apps/content/documents/affix_header","apps/content/full_screen_view","apps/create_a_copy/models/source","soy!jive.create_a_copy.createACopyModal","apps/create_a_copy/views/view","apps/create_a_copy/main","apps/guided_navigation/models/source","soy!jive.guided_navigation.link","soy!jive.guided_navigation.header","soy!jive.guided_navigation.back","soy!jive.guided_navigation.section","soy!jive.guided_navigation.menu","soy!jive.guided_navigation.navbar","apps/guided_navigation/views/view","apps/guided_navigation/helper","apps/guided_navigation/main","apps/morelikethis/model/morelikethis_source","apps/morelikethis/views/morelikethis_view","apps/morelikethis/main","apps/browse/content/model/content_source","apps/movecontent/models/move_content_item_source","apps/movecontent/models/move_content_source","apps/movecontent/models/move_container_source","soy!jive.movecontent.confirm","apps/movecontent/views/move_view","apps/movecontent/main","apps/pager/regions/views/main_view","apps/pager/regions/main","apps/publish_bar/views/place_view","apps/publish_bar/models/search_places_source","apps/publish_bar/models/suggested_places_source","apps/publish_bar/place_main","vendor/jquery-fileuploader/image-uploader","apps/publish_bar/thumbnails_main","soy!jive.video.create.confirmChangeVideo","soy!jive.video.create.confirmInstallVideoExtension","videojs/videojs-offset","apps/publish_bar/models/publish_bar_source","soy!jive.publishbar.userWithoutPermission","soy!jive.publishbar.listWithoutPermission","soy!jive.publishbar.guestInvited","apps/publish_bar/main","apps/tags/swapTagSet","soy!jive.content.view.tagLink","apps/tags/inline-tagging","apps/tags/highlightSelectedTags","apps/tags/updateTagSets","apps/tags/activatePopularTagsPolling","apps/tags/swapTag","apps/tags/tag-selector","d3","d3-legend","raphael_pie","imageuploader","videojs-offset"],"jive/bundles/email_notification":["apps/email_notification/model/source","soy!jive.soy.email_notification.common","soy!jive.soy.email_notification.commonInSocialButton","soy!jive.soy.email_notification.start","soy!jive.soy.email_notification.stop","soy!jive.soy.email_notification.message","apps/email_notification/main"],"jive/bundles/follows":["apps/follows/models/follow_source","soy!jive.eae.activitystream.builder.jsI18nHelper","apps/follows/views/follow_view","apps/follows/main"],"jive/bundles/history":["soy!jive.history.userSearchList","soy!jive.history.region","soy!jive.history.pagination","apps/history/history_controller","page/history"],"jive/bundles/inbox":["apps/activity_stream/models/action_queue_action_result","apps/activity_stream/models/action_queue_source","apps/activity_stream/views/stream_list_common_view","soy!jive.i18n.keys.tinymceJivementionNoNotification","apps/microblogging/views/microblogging_comment_view","soy!jive.i18n.keys.cmntEmailRequiredText","apps/microblogging/status_input_comment_controller","apps/usercollaboration/models/user_collaboration_source","soy!jive.soy.share.notAbleToShare","apps/usercollaboration/user_collaboration_controller","soy!jive.rtc.subjectEditForm","soy!jive.rtc.leaveConversationConfirm","soy!jive.rtc.deleteDMConfirm","soy!jive.eae.inbox.addRecipientsText","soy!jive.eae.inbox.addRecipientsDesc","soy!jive.eae.inbox.collaboratorParticipantsModal","apps/rtc/rtc_view","apps/content/polls/widget/models/widget_source","soy!jive.polls.widget.soy.errorWithLink","soy!jive.polls.widget.soy.error","soy!jive.polls.widget.soy.renderAttachment","soy!jive.polls.widget.soy.renderAttachments","soy!jive.polls.widget.soy.form","soy!jive.polls.widget.soy.meta","soy!jive.polls.widget.soy.results","soy!jive.polls.widget.soy.body","soy!jive.polls.widget.soy.nav","soy!jive.polls.widget.soy.poll","soy!jive.polls.widget.soy.voteProcessing","apps/content/polls/widget/views/widget_view","apps/content/polls/widget/main","conversion/showPreviewableBinary","soy!jive.eae.common.entryRepost","soy!jive.statusinput.containers.repostStatusInput","soy!jive.eae.common.repostModal","soy!jive.i18n.keys.eaeStreamComments","soy!jive.i18n.keys.globalLessThanAMinuteAgo","apps/activity_stream/views/stream_item_common_view","soy!jive.eae.actionqueue.item.extensionAssetsDeprecated","soy!jive.eae.actionqueue.item.streamsV6","soy!jive.eae.actionqueue.item.addOnsFeatureNotificationEntry","soy!jive.eae.actionqueue.item.assignedTaskNotification","soy!jive.eae.actionqueue.item.invitationPreApproval","soy!jive.eae.actionqueue.item.externalApprovalRequest","soy!jive.eae.actionqueue.item.webhooksQueuePurged","soy!jive.eae.actionqueue.item.featureTemplate","soy!jive.eae.actionqueue.item.supportCenter","soy!jive.eae.actionqueue.item.shareContentToPlacesFeatureNotificationEntry","soy!jive.eae.actionqueue.item.upgradeEmailPreferencesResult","soy!jive.eae.actionqueue.item.eventInvitationReplyResult","soy!jive.eae.actionqueue.item.webhooksDisabled","soy!jive.eae.actionqueue.item.invitationNotificationRequest","soy!jive.eae.actionqueue.item.statusUpdateInGroupsForPartners","soy!jive.eae.actionqueue.item.videoError","soy!jive.eae.actionqueue.item.invitationPreApprovalDeletions","soy!jive.eae.actionqueue.item.externalActivityEntryGeneratorName","soy!jive.eae.actionqueue.item.externalActivityEntry","soy!jive.eae.actionqueue.item.placeTemplatesFeatureNotificationEntry","soy!jive.eae.actionqueue.item.registrationFailureNotification","soy!jive.eae.actionqueue.item.eventInvitationActionRequest","soy!jive.eae.actionqueue.item.externalNotificationRequest","soy!jive.eae.actionqueue.item.outcomeNotification","soy!jive.eae.actionqueue.item.historyBookmarksV6","soy!jive.eae.actionqueue.item.userRegistrationApproval","soy!jive.eae.actionqueue.item.extensionBanned","soy!jive.eae.actionqueue.item.documentApprovalRequest","soy!jive.eae.actionqueue.item.combined6to7NewFeatureNotificationEntry","soy!jive.license.smbBody","soy!jive.license.smbFooter","soy!jive.license.smbTitle","soy!jive.eae.actionqueue.item.licenseSubscriptionNotice","soy!jive.eae.actionqueue.item.extensionUninstallFailure","soy!jive.eae.actionqueue.item.personalizedHomepage","soy!jive.eae.actionqueue.item.profilesExpertiseFeatureNotificationEntry","soy!jive.eae.actionqueue.item.collaboratorNotificationRequest","soy!jive.eae.actionqueue.item.userRelApprovalRequest","soy!jive.eae.actionqueue.item.wipDocumentFeatureNotificationEntry","soy!jive.eae.actionqueue.item.producteevFeatureNotificationEntry","soy!jive.eae.actionqueue.item.impactMetricsFeatureNotificationEntry","soy!jive.eae.actionqueue.item.combined5to7NewFeatureNotificationEntry","soy!jive.eae.actionqueue.item.followTagFeatureNotificationEntry","soy!jive.eae.actionqueue.item.structuredOutcomesFeatureNotificationEntry","soy!jive.eae.actionqueue.item.antiVirusViolationFoundNotification","soy!jive.eae.actionqueue.item.mobileFeatureNotificationEntry","soy!jive.eae.actionqueue.item.tileStatusChange","soy!jive.eae.actionqueue.item.discoveryStreams","soy!jive.eae.actionqueue.item.aqFollowUserLink","soy!jive.eae.actionqueue.item.invitationUserRelSuggestion","soy!jive.eae.actionqueue.item.pbNotification","soy!jive.eae.actionqueue.item.expertiseApproval","soy!jive.eae.actionqueue.item.socialGroupJoinNotificationRequest","soy!jive.eae.actionqueue.item.colleagueFollow","soy!jive.eae.actionqueue.item.userRelNotificationRequest","soy!jive.eae.actionqueue.item.pendingTaskNotification","soy!jive.eae.actionqueue.item.userRelApprovalRequestResult","soy!jive.eae.actionqueue.item.upgradeEmailPreferences","soy!jive.eae.actionqueue.item.impactMetricsV2FeatureNotificationEntry","soy!jive.eae.actionqueue.item.rtcFeatureNotificationEntry","soy!jive.eae.actionqueue.item.externalstorage.moverollback.moveToJiveFailed","soy!jive.eae.actionqueue.item.nonUniqueUsersNotification","soy!jive.eae.actionqueue.item.statusUpdateInGroups","soy!jive.eae.actionqueue.item.socialGroupJoinRequestResult","soy!jive.eae.actionqueue.item.widgetsDeprecatedNotification","soy!jive.eae.actionqueue.item.personalPagesFeatureNotificationEntry","soy!jive.eae.actionqueue.actionQueueItemView","soy!jive.eae.actionqueue.actionQueueItemActionResult","apps/activity_stream/views/action_queue_item_view","apps/read_tracking/globalReadTrackerDeferred","apps/read_tracking/globalReadTracker","soy!jive.eae.actionqueue.noActionQueueResults","soy!jive.eae.actionqueue.actionQueueList","soy!jive.eae.inbox.item.grouped.collaboratorNotification","soy!jive.eae.inbox.item.list.tileActivity","soy!jive.eae.inbox.item.list.video","soy!jive.eae.inbox.item.list.event","soy!jive.eae.inbox.item.list.bulkUpload","soy!jive.eae.inbox.item.list.idea","soy!jive.eae.inbox.item.list.remotedocument","soy!jive.eae.inbox.item.list.questPromotion","soy!jive.eae.inbox.commListItemView","soy!jive.eae.inbox.item.grouped.event","soy!jive.eae.inbox.item.grouped.appUpdate","soy!jive.eae.inbox.item.grouped.bulkUpload","soy!jive.eae.inbox.item.grouped.appGrouped","soy!jive.eae.inbox.item.grouped.mention","soy!jive.eae.inbox.item.grouped.remotedocument","soy!jive.eae.inbox.item.grouped.poll","soy!jive.eae.inbox.groupedCommStreamItem","soy!jive.eae.notificationqueue.item.eventDeleteNotification","soy!jive.eae.inbox.item.expanded.author","soy!jive.eae.inbox.item.expanded.bodyEnd","soy!jive.eae.inbox.item.expanded.bodyStart","soy!jive.eae.inbox.item.expanded.contentEnd","soy!jive.eae.inbox.item.expanded.contentStart","soy!jive.eae.inbox.item.expanded.earlier","soy!jive.eae.inbox.item.expanded.attachments","soy!jive.eae.inbox.item.expanded.expandPreview","soy!jive.eae.inbox.item.expanded.fullBodyContainer","soy!jive.eae.inbox.item.expanded.fullBody","soy!jive.eae.inbox.item.expanded.headingContainer","soy!jive.eae.inbox.item.expanded.heading","soy!jive.eae.inbox.item.expanded.itemEnd","soy!jive.eae.inbox.item.expanded.itemStart","soy!jive.eae.inbox.item.expanded.listEnd","soy!jive.eae.inbox.item.expanded.listStart","soy!jive.eae.inbox.item.expanded.mentionNotice","soy!jive.eae.common.readingPaneBottomReplyLinkKey","soy!jive.eae.inbox.item.expanded.reply","soy!jive.eae.inbox.item.expanded.subactivity","soy!jive.eae.inbox.item.expanded.track","soy!jive.eae.inbox.item.expanded.viewEnd","soy!jive.eae.inbox.item.expanded.viewStart","soy!jive.outcomes.summary.summaryContainer","soy!jive.eae.inbox.item.expanded.blogpost","soy!jive.eae.inbox.item.expanded.appGrouped","soy!jive.eae.inbox.item.expanded.latestAcclaim","soy!jive.eae.inbox.item.expanded.collabNotice","soy!jive.eae.inbox.item.expanded.discussion","soy!jive.eae.inbox.item.expanded.appUpdate","soy!jive.content.comment.extendedAuthors","soy!jive.content.comment.rte_message","soy!jive.eae.common.rteTextArea","soy!jive.eae.inbox.item.expanded.mention","soy!jive.eae.inbox.item.expanded.bookmark","soy!jive.eae.inbox.item.expanded.questPromotion","soy!jive.eae.inbox.item.expanded.poll","soy!jive.eae.inbox.item.expanded.microReply","soy!jive.eae.inbox.item.expanded.welcome","soy!jive.eae.inbox.item.expanded.collaboratorNotification","soy!jive.eae.inbox.item.expanded.task","soy!jive.eae.inbox.item.expanded.remotedocument","soy!jive.eae.shared.eventInfo","soy!jive.eae.inbox.item.expanded.event","soy!jive.eae.inbox.item.expanded.variantExcerpt","soy!jive.eae.common.sharedVia","soy!jive.eae.common.embeddedPreview","soy!jive.eae.inbox.item.expanded.share","soy!jive.eae.inbox.item.expanded.tileActivity","soy!jive.eae.inbox.item.expanded.notifications","soy!jive.eae.inbox.item.expanded.statusUpdate","soy!jive.eae.inbox.item.expanded.announcement","soy!jive.eae.inbox.item.expanded.containerHeading","soy!jive.ideas.shared.ideaInfo","soy!jive.eae.inbox.item.expanded.idea","soy!jive.eae.inbox.item.expanded.document","soy!jive.eae.common.activityContainerJoSubject","soy!jive.statusinput.containers.microbloggingCommentStatusInput","soy!jive.eae.common.microRTEContainer","soy!jive.rtc.interactionsContainer","soy!jive.rtc.subject","soy!jive.eae.inbox.item.expanded.rtc","soy!jive.eae.inbox.item.expanded.bulkUpload","soy!jive.eae.inbox.item.expanded.defaultImpl","soy!jive.eae.inbox.item.expanded.excerpt","soy!jive.videos.common.inboxVideoInfo","soy!jive.eae.inbox.item.expanded.video","soy!jive.eae.inbox.expandedCommItemView","soy!jive.eae.inbox.collaboratorParticipantsI18NHelper","soy!jive.eae.inbox.showMoreEllipses","soy!jive.eae.mention.common.atMentionReply","soy!jive.eae.activitystream.item.expanded.document","soy!jive.eae.activitystream.item.expanded.latestLikes","soy!jive.eae.activitystream.item.expanded.latestProfile","soy!jive.eae.activitystream.item.expanded.statusUpdate","soy!jive.eae.activitystream.item.expanded.event","soy!jive.eae.activitystream.item.expanded.appUpdate","soy!jive.eae.activitystream.item.expanded.idea","soy!jive.eae.activitystream.item.expanded.video","soy!jive.eae.activitystream.item.expanded.appDigest","soy!jive.eae.activitystream.item.expanded.remotedocument","soy!jive.eae.activitystream.item.expanded.socialNews","soy!jive.eae.activitystream.item.expanded.discussion","soy!jive.eae.activitystream.item.expanded.bookmark","soy!jive.eae.activitystream.item.expanded.bulkUpload","soy!jive.eae.activitystream.item.expanded.latestAcclaim","soy!jive.eae.activitystream.item.expanded.welcome","soy!jive.eae.activitystream.item.expanded.latestEndorsements","soy!jive.eae.activitystream.item.expanded.appGrouped","soy!jive.eae.activitystream.item.expanded.task","soy!jive.eae.activitystream.expandedActivityStreamItemView","apps/activity_stream/views/communication_stream_item_view","soy!jive.rtc.errorMessage","apps/activity_stream/views/content_type_views/rtc_inbox_item_view","soy!jive.eae.inbox.inboxLoadMoreBtn","soy!jive.eae.inbox.commStreamListItems","apps/activity_stream/views/communication_stream_list_view","apps/renderVideoPlayerInComments","jive/rte_loader","soy!jive.eae.latestAcclaim.leaderboards","jive/rte/renderedContent","soy!jive.inbox.readingPaneDefault","soy!jive.eae.common.rtePanel","soy!jive.eae.common.getProperI18nKey","soy!jive.eae.common.replyingToText","soy!jive.eae.latestAcclaim.statusLevelLegend","soy!jive.eae.latestAcclaim.extraContent","soy!jive.i18n.keys.forumThrdCorrectAnswerLink","soy!jive.i18n.keys.globalByAuthorConcat","soy!jive.i18n.keys.globalOnDate","soy!jive.i18n.keys.questionHelpfulAnswersText","soy!jive.i18n.keys.forumThrdHelpfulAnswerLink","soy!jive.i18n.keys.questionSeeThisAnswerText","apps/activity_stream/views/communication_stream_reading_pane_view","apps/comment_app/models/comment","apps/comment_app/models/comment_source","apps/discussion_app/models/discussion_rest_source","apps/core_acclaim/models/core_acclaim_source","soy!jive.polls.widget.soy.main","soy!jive.eae.inbox.filtermenu","soy!jive.eae.inbox.jsDraggableHelper","soy!jive.eae.inbox.commStreamList","apps/activity_stream/communication_stream_controller"],
"jive/bundles/navbar":["apps/navbar/menu/view/abstract_list","apps/navbar/menu/main","soy!jive.nav.menu.apps.instances.renderAppInstanceLink","jive/app/app-launch-market","soy!jive.nav.menu.apps.instances.computeWidthIcon","soy!jive.nav.menu.apps.instances.appList","soy!jive.nav.menu.apps.instances.content","apps/navbar/menu/apps/instances/views/instance_list","soy!jive.i18n.keys.appframeworkAppInstalled","apps/navbar/menu/apps/instances/main","lib/jiverscripts/src/oo/resolve","apps/navbar/menu/create/controllers/create_flow_controller","soy!jive.nav.menu.create.appActionLink","soy!jive.nav.menu.create.contentTypeHref","soy!jive.nav.menu.create.contentTypeLink","soy!jive.nav.menu.create.contentTypeLinkItem","soy!jive.nav.menu.create.contentTypes","apps/navbar/menu/create/views/type_chooser_view","soy!jive.placepicker.recentPlaces","soy!jive.placepicker.containers","apps/navbar/menu/create/views/container_chooser_view","apps/navbar/menu/create/models/create_source","apps/placepicker/models/suggested_containers_source","apps/navbar/menu/create/main","apps/autosearch/activity_source","apps/autosearch/content_source","apps/autosearch/people_source","apps/autosearch/place_source","apps/autosearch/list","apps/autosearch/popup","apps/autosearch/progressmeter","soy!jive.autosearch.spotlightPopup","soy!jive.autosearch.spotlightView","soy!jive.autosearch.results","soy!jive.i18n.keys.searchViewDefaultTitle","soy!jive.i18n.keys.searchViewSearchTitle","apps/autosearch/autosearch_view","soy!jive.autosearch.overlay","apps/autosearch/autosearch_main","apps/navbar/menu/create/create_quick"],"jive/bundles/news":["apps/home/globalControllerDeferred","apps/activity_stream_builder/models/search_services","soy!jive.eae.activitystream.builder.jsDraggableHelper","soy!jive.eae.activitystream.builder.jsAddBtnSuccessMessage","soy!jive.eae.activitystream.builder.streamsAssociatedButtonDetails","soy!jive.eae.activitystream.builder.streamsAssociatedButton","soy!jive.eae.activitystream.builder.searchResult","soy!jive.eae.activitystream.builder.suggestedView","soy!jive.eae.activitystream.builder.searchResultItems","soy!jive.eae.activitystream.builder.searchResultsSection","soy!jive.eae.activitystream.builder.showMoreResultsButton","soy!jive.eae.activitystream.builder.awaitingApprovalButton","soy!jive.eae.activitystream.builder.awaitingApprovalMessage","soy!jive.shared.breadcrumb.contextPopover","jquery/ui/jquery.ui.multidraggable","apps/activity_stream_builder/views/search_results_view","soy!jive.eae.common.loadingSpinner","apps/activity_stream_builder/views/search_view","soy!jive.eae.activitystream.builder.emailOption","soy!jive.eae.activitystream.builder.mobileOption","soy!jive.eae.activitystream.builder.deleteStreamModal","soy!jive.eae.activitystream.builder.specifiedObject","soy!jive.welcome.streamNameEditForm","soy!jive.eae.activitystream.builder.streamAssociationList","apps/activity_stream_builder/views/stream_associations_view","soy!jive.eae.activitystream.builder.noPossibleSearchResults","soy!jive.eae.activitystream.builder.searchResultSections","soy!jive.eae.activitystream.builder.searchResultsView","soy!jive.eae.activitystream.builder.main","apps/activity_stream_builder/activity_stream_builder_controller","apps/news/models/unread_stream_source","vendor/doc-ready/doc-ready","vendor/get-style-property/get-style-property","vendor/get-size/get-size","vendor/matches-selector/matches-selector","vendor/outlayer/item","vendor/outlayer/outlayer","vendor/fizzy-ui-utils/utils","vendor/masonry/masonry","soy!jive.welcome.navConfigMenuPopover","soy!jive.news.activityStreamNavLink","soy!jive.welcome.pinnedMessage","soy!jive.welcome.pinSetDefault","soy!jive.welcome.pinUnsetDefault","soy!jive.welcome.onboardingNavProgress","soy!jive.i18n.keys.apiCoreV3ErrorDuplicateStream","soy!jive.i18n.keys.apiCoreV3ErrorInvalidNameLength","soy!jive.i18n.keys.eaeActivitystreamBuilderDisplaynameBlankerror","soy!jive.i18n.keys.eaeActivitystreamBuilderDisplaynameBadcharacters","apps/news/menu/views/nav_link","apps/news/menu/views/nav_unread_link","apps/news/models/news_source","apps/tile/responsive_tile","apps/news/menu/nav_menu","page/news","soy!jive.onboarding.playboxQuestList","apps/onboarding/onboarding_quest","apps/actions/models/actions_source","apps/browse/container/model/container_source","apps/onboarding/models/onboarding_source","soy!jive.welcome.activityStreamNavItem","apps/home/views/nav_links_view","soy!jive.i18n.keys.userbarWelcomeGtitle","soy!jive.i18n.keys.onboardingPageTitle","soy!jive.i18n.keys.inboxModerationTab","soy!jive.i18n.keys.navBarActionsLink","soy!jive.i18n.keys.navBarInboxLink","soy!jive.i18n.keys.navBarYourviewLink","apps/home/home_nav","soy!jive.eae.actions.markedItemBadgeContainer","soy!jive.eae.actions.markedContentItemInner","soy!jive.eae.actions.markedContentItem","soy!jive.eae.actions.markedItemInnerText","soy!jive.eae.actions.markedItemInner","soy!jive.eae.actions.markedItem","masonry"],"jive/bundles/onboarding":["soy!jive.onboarding.onboardingProgress","soy!jive.onboarding.postHideViewTip","soy!jive.onbStep.startStep.completedAriaLabel","apps/onboarding/controller","soy!jive.onbStep.startStep.generic","soy!jive.onbStep.startStep.learn_system","soy!jive.onbStep.startStep.connect_colleagues","soy!jive.onbStep.startStep.about_you","soy!jive.onbStep.startStep.change_avatar","soy!jive.onbStep.startStep.like_content","soy!jive.onbStep.startStep.create_or_join_group","soy!jive.onbStep.startStep.mobile_login","soy!jive.onbStep.startStep.create_comment_or_message","soy!jive.onbStep.startStep.create_wall_entry","soy!jive.onbStep.startStep.create_thread","soy!jive.onbStep.startStep.create_document","soy!jive.onbStep.startStep.jive_anywhere","soy!jive.onbStep.startStep.jive_for_office","soy!jive.onbStep.startStep.jive_for_outlook"],"jive/bundles/place":["jive/contentplace_relationship","soy!jive.shared.soy.actionLink","soy!jive.place.placeMainNavMenuItem","soy!jive.place.placeMainNavMenuPopover","apps/places/nav/place_nav_main","soy!jive.statusinput.containers.microbloggingStatusInputModalSuccess","apps/microblogging/status_input_mb_create_modal_controller","apps/theme/lib/inputs","apps/places/models/place_images_model","soy!jive.place.bgheader.customBackgrounds","soy!jive.place.bgheader.presetBackgrounds","soy!jive.place.bgheader.backgroundMenu","vendor/bootstrap/js/bootstrap-tab","apps/places/manage/views/header_settings","soy!jive.place.fileForm","soy!jive.place.errorMessage","apps/theme/lib/plugins/single_file_upload","apps/places/manage/views/header_background","soy!jive.places.modal.modalLoading","apps/places/manage/views/abstract_controls","apps/places/manage/views/custom_controls","apps/places/manage/main","apps/places/actions/main","apps/tile/gala_safari_shim","publishbar-tagsets","apps/tile/stream_item","apps/tile/template_definition","apps/tile/storage/storage_item","apps/tile/embedded_view","jquery/jquery.afterTransition","jive/overlay_effect","apps/metric/models/metric_source","soy!jive.integration.tiles.view.embeddedExperience","soy!jive.integration.tiles.edit.shareConfig","soy!jive.shared.soy.confirmModal","soy!jive.integration.tiles.edit.confirmDelete","apps/tile/integration_controller","apps/tile/integration_list_controller","apps/tile/stream_item_definition","soy!jive.integration.streams.edit.chooserItem","soy!jive.integration.streams.edit.noIntegrations","soy!jive.integration.streams.edit.chooser","apps/tile/choosers/chooser","apps/tile/choosers/stream_item_chooser","soy!jive.integration.tiles.chooserListItem","soy!jive.integration.tiles.chooserList","soy!jive.integration.tiles.categoryList","soy!jive.integration.tiles.chooserTile","soy!jive.integration.tiles.tileList","soy!jive.integration.tiles.chooser","soy!jive.integration.tiles.confirmDelete","apps/tile/choosers/tile_chooser","soy!jive.integration.tiles.edit.placeTemplateTrigger","soy!jive.integration.tiles.edit.errorOnPreview","soy!jive.integration.tiles.edit.customViewAddError","apps/tile/edit_controller","soy!jive.i18n.keys.templateCategoryMyTemplatesName","soy!jive.i18n.keys.templateCategoryMyTemplatesDescription","apps/tile/choosers/template_chooser_model","soy!jive.integration.template.chooserListItem","soy!jive.integration.template.empty","soy!jive.integration.template.chooserList","soy!jive.integration.template.categoryList","soy!jive.integration.template.deleteTemplateConfirmMessage","soy!jive.integration.template.activationToggleText","soy!jive.integration.template.renderIncludedTiles","soy!jive.integration.template.itemDetails","soy!jive.integration.template.templateList","soy!jive.integration.template.currentTemplate","soy!jive.integration.template.applied","soy!jive.integration.template.templateOverwritingWarning","soy!jive.integration.template.activityPageSelectedWarning","apps/tile/choosers/template_chooser","apps/tags/model/tag_input_model","apps/tags/model/tag_service","apps/tags/model/tag_suggestions","apps/tags/view/tag_cloud","apps/tags/view/tag_badges","apps/tags/tags_controller","apps/places/image_upload","apps/places/models/place","apps/places/models/place_from_form","apps/places/save_spinner","soy!jive.place.messages.warnSgroupExternallyAccessibleChange","soy!jive.place.messages.warnSgroupTypeChange","soy!jive.place.messages.errProjectDatesStartEmpty","soy!jive.place.messages.errProjectDatesEndEmpty","soy!jive.place.messages.warnSgroupExtendedInvitationsChange","soy!jive.place.messages.errProjectDateStartInvalid","soy!jive.place.messages.errProjectDateEndInvalid","apps/places/legacy_form_controls","apps/places/edit_common","soy!jive.place.edit.warnMoreRestrictiveSocialGroupType","soy!jive.integration.tiles.edit.unsavedChanges","soy!jive.place.messages.errPlaceNameEmpty","soy!jive.place.messages.errPlaceNameTaken","soy!jive.place.messages.errPlaceDisplayNameEmpty","soy!jive.place.messages.errPlaceDisplayNameTaken","soy!jive.place.messages.warnSgroupNameTooLong","soy!jive.place.messages.placeEditApplyTemplateDeprecatedTilesOrExtstreamsWarning","apps/places/edit_main","soy!jive.integration.navItem","apps/tile/navigation_view","soy!jive.place.messages.errPlaceEmptyTiles","apps/places/page_edit_main","apps/tile/activity_controller","bootstrap-tab"],"jive/bundles/restShared":["jive/rte/FormAttachmentService","jive/rte/ImageService","jive/rte/LinkService","jive/rte/FormService"],"jive/bundles/rewards":["soy!jive.playbox.rewards.challenge","soy!jive.playbox.rewards.challengeSuccessMessage","vendor/html2canvas/html2canvas","apps/playbox/cards/challenge","apps/playbox/cards/user_badges","soy!jive.playbox.rewards.userMissionsModal","apps/playbox/cards/user_missions","apps/playbox/rewards/rewards_controller","page/rewards","html2canvas"],"jive/bundles/status":["apps/status_input/data_source","apps/microblogging/models/microblogging_source","apps/microblogging/status_input_common_controller","apps/microblogging/views/attachment_view","apps/status_input/status_input","soy!jive.statusinput.dropdown.ddCreateTag","soy!jive.statusinput.dropdown.ddOutputTags","soy!jive.statusinput.dropdown.ddTagsContent","soy!jive.statusinput.dropdown.ddTags","soy!jive.statusinput.dropdown.ddOutputEntries","soy!jive.statusinput.dropdown.ddDefault","soy!jive.statusinput.dropdown.ddBadges","soy!jive.statusinput.dropdown.ddSearch","apps/microblogging/status_input_drop_down","apps/microblogging/link_builder","apps/microblogging/status_input","soy!jive.wall.charLenErrors","soy!jive.wall.submitErrors","soy!jive.statusinput.containers.microbloggingStatusInputSuccess","soy!jive.i18n.keys.weFormAddimage","apps/microblogging/views/status_input_common_view","jive/rte/EntitlementService","soy!jive.statusinput.mention_warnings.jsI18nHelper","soy!jive.i18n.keys.tinymceJivementionUnlistedGroup","apps/microblogging/views/microblogging_view","apps/microblogging/status_input_mb_controller","soy!jive.tags.autocomplete.completions"],"jive/bundles/supportcenter":["apps/supportcenter/view/location","apps/supportcenter/model/search","apps/supportcenter/model/section","apps/supportcenter/view/overview","apps/supportcenter/view/header","apps/supportcenter/view/spinner_view","apps/supportcenter/view/askaquestion","soy!jive.supportcenter.searchResults","apps/supportcenter/view/search_results","soy!jive.supportcenter.search","apps/supportcenter/view/search","page/support"],"jive/bundles/tinymce4":["vendor/tinymce/tinymce","jive/rte_utils/defaultStyles","jive/rte_utils/computeRTEPluginStyle","jive/rte4/spellcheck","jive/rte4/convert_to_external_plugins_object","jive/rte4/getTinyMCELanguage","jive/rte4/main_settings","jive/rte4/settings","jive/rte4/layout","jive/rte4/default_options","jive/rte4/LinkService","tiny_mce4/plugins/compat3x/plugin","tiny_mce4/plugins/context_menus/browser/editor_plugin_src","tiny_mce4/plugins/context_menus/code/editor_plugin_src","tiny_mce4/plugins/context_menus/quote/editor_plugin_src","tiny_mce4/plugins/jiveapps/editor_plugin_src","soy!jive.rte4.attachment.attachmentButton","soy!jive.rte4.attachment.formatSize","soy!jive.rte4.attachment.attachmentList","soy!jive.rte4.attachment.restrictions","soy!jive.rte4.attachment.attachmentBlockWrapper","soy!jive.rte4.attachment.attachmentHeader","soy!jive.rte4.attachment.attachmentBlock","tiny_mce4/plugins/jiveattachment/editor_plugin_src","tiny_mce4/plugins/jiveemoticons/editor_plugin_src","soy!jive.rte.image.rte4_modal","tiny_mce4/plugins/jiveimage/editor_plugin_src","tiny_mce4/plugins/jivekeyboard/editor_plugin_src","soy!jive.rte.link.modal","tiny_mce4/plugins/jivelink/editor_plugin_src","tiny_mce4/plugins/jivelists/editor_plugin_src","tiny_mce4/plugins/jivemacros/editor_plugin_src","tiny_mce4/plugins/jivemention/editor_plugin_src","tiny_mce4/plugins/jiveplaceholder/editor_plugin_src","tiny_mce4/plugins/jivesave/editor_plugin_src","tiny_mce4/plugins/jivescroll/editor_plugin_src","tiny_mce4/plugins/jivestyle/editor_plugin_src","tiny_mce4/plugins/jivetable/editor_plugin_src","tiny_mce4/plugins/jivetableutilities/handle_utilities","soy!jive.rte.table.rowHandle","soy!jive.rte.table.columnHandle","soy!jive.rte.table.rowLine","soy!jive.rte.table.colLine","tiny_mce4/plugins/jivetableutilities/drag_and_drop","tiny_mce4/plugins/jivetableutilities/table_row_auto_scroll","tiny_mce4/plugins/jivetableutilities/mouse_catch","tiny_mce4/plugins/jivetableutilities/create_table_listener","tiny_mce4/plugins/jivetableutilities/duplicate_row","tiny_mce4/plugins/jivetableutilities/duplicate_column","tiny_mce4/plugins/jivetableutilities/jive_table_button","tiny_mce4/plugins/jivetableutilities/jive_table_property_dialog","tiny_mce4/plugins/jivetableutilities/editor_plugin_src","vendor/bootstrap/js/bootstrap-affix","jive/rte/bootstrap-affix-custom","tiny_mce4/plugins/jivetoolbar/editor_plugin_src","tiny_mce4/plugins/jiveutil/editor_plugin_src","tiny_mce4/plugins/jivevalidelements/editor_plugin_src","tiny_mce4/plugins/jivevideo/editor_plugin_src","tiny_mce4/plugins/jivequote/editor_plugin_src","tiny_mce4/plugins/selectionUtil/editor_plugin_src","tiny_mce4/plugins/tinymce_custom/codesample/editor_plugin_src","tiny_mce4/plugins/tinymce_custom/link/editor_plugin_src","tiny_mce4/plugins/tinymce_custom/lists/editor_plugin_src","tiny_mce4/plugins/tinymce_custom/advlist/editor_plugin_src","tiny_mce4/plugins/tinymce_custom/nonbreaking/editor_plugin_src","vendor/tinymce/plugins/autoresize/plugin","vendor/tinymce/plugins/directionality/plugin","vendor/tinymce/plugins/spellchecker/plugin","vendor/tinymce/plugins/emoticons/plugin","vendor/tinymce/plugins/textcolor/plugin","vendor/tinymce/plugins/charmap/plugin","vendor/tinymce/plugins/anchor/plugin","vendor/tinymce/plugins/hr/plugin","vendor/tinymce/plugins/code/plugin","vendor/tinymce/plugins/paste/plugin","vendor/tinymce/plugins/advlist/plugin","vendor/tinymce/plugins/autolink/plugin","vendor/tinymce/plugins/imagetools/plugin","vendor/tinymce/plugins/colorpicker/plugin","vendor/tinymce/themes/modern/theme","jive/rte4/plugins","jive/rte4/main","tiny_mce4","bootstrap-affix"],"jive/bundles/tips":["apps/tips/models/tip_group_state","soy!jive.tips.renderTip","soy!jive.tips.socialActionsTip","jquery/jquery.effectiveZIndex","apps/tips/views/tip_view_view","apps/tips/views/tip_view","apps/tips/views/tip_group_view","apps/tips/views/page_view","apps/tips/main"],"jive/bundles/userregistration":["apps/authentication/models/authentication_source","soy!jive.user.registration.passwordStrengthMessageUnknown","soy!jive.user.registration.passwordStrengthMessageHigh","soy!jive.user.registration.passwordStrengthMessageMediumHigh","soy!jive.user.registration.passwordStrengthMessageMedium","soy!jive.user.registration.passwordStrengthMessageLow","apps/userregistration/views/password_strength_view","apps/userregistration/detect_timezone","soy!jive.user.registration.formFieldLabel","soy!jive.user.registration.hidden","soy!jive.user.registration.passwordStrength","soy!jive.user.registration.passwordInput","soy!jive.user.registration.readOnly","soy!jive.user.registration.formField","soy!jive.user.registration.formFields","soy!jive.user.registration.generalErrors","soy!jive.user.registration.modal","soy!jive.user.registration.keyedFieldError","soy!jive.user.registration.localizedFieldError","soy!jive.user.registration.errors","soy!jive.user.registration.accountPendingApproval","soy!jive.user.registration.accountRejected","soy!jive.user.registration.passwordMatchErrorMessage","apps/userregistration/views/user_registration_form_view","apps/userregistration/models/user_registration_source","apps/userregistration/main"],"jive/bundles/zapatec":["zapatec/utils/zapatec","zapatec/zpcal/src/calendar","Zapatec","Zapatec.Calendar"],"jive/bundles/soy/inbox/inboxitems":["soy!jive.eae.inbox.commListItemNewCount","soy!jive.rtc.defaultSubject","soy!jive.rtc.xPeopleLink","soy!jive.rtc.subjectText","soy!jive.shared.displayutil.renderAttachmentLink","soy!jive.eae.inbox.item.list.mention","soy!jive.eae.inbox.item.list.discussion","soy!jive.eae.inbox.item.list.bookmark","soy!jive.eae.inbox.item.list.document","soy!jive.eae.inbox.item.list.rtc","soy!jive.eae.inbox.item.list.share","soy!jive.eae.inbox.item.list.welcome","soy!jive.eae.inbox.item.list.announcement","soy!jive.eae.inbox.item.list.statusUpdate","soy!jive.eae.inbox.item.list.app","soy!jive.eae.inbox.item.list.latestAcclaim","soy!jive.eae.inbox.item.list.notifications","soy!jive.eae.inbox.item.grouped.document","soy!jive.eae.inbox.item.grouped.statusUpdate","soy!jive.eae.inbox.item.grouped.rtc","soy!jive.eae.inbox.item.grouped.share","soy!jive.eae.inbox.item.grouped.announcement","soy!jive.eae.inbox.item.grouped.welcome","soy!jive.eae.actionqueue.item.notifiedUsers","soy!jive.eae.actionqueue.item.actionQueueItemInfo","soy!jive.eae.actionqueue.item.socialGroupJoinRequest","soy!jive.eae.actionqueue.item.documentApprovalNotificationRequest","soy!jive.eae.actionqueue.item.moderatedContentNotificationRequest"],"jive/bundles/app":["application/profiles/default/main","vendor/raphael/raphael","vendor/requirejs/plugins/hbs/handlebars","vendor/requirejs/plugins/hbs/i18nprecompile","vendor/requirejs/plugins/hbs/json2","vendor/requirejs/plugins/hbs","soy!jive.i18n.keys.eaeActivitystreamBuilderFollowlinkRemoveall","soy!jive.i18n.keys.profileFriendsRemoveLink","soy!jive.eae.activitystream.builder.streamSelector","soy!jive.eae.activitystream.builder.followInStreamsMenu","apps/follows/user/views/follow_user_link","apps/navbar/menu/create/models/quick_create_source","apps/activity_stream/activity_stream_create_menu_view","apps/shared/models/promise_cache","apps/outcomes/outcomesModel","apps/outcomes/shareModel","apps/outcomes/shareMain","apps/outcomes/outcomesMain","soy!jive.shared.displayutil.commaItemList","soy!jive.shared.displayutil.plainItemList","soy!jive.shared.displayutil.itemList","soy!jive.shared.displayutil.itemListMore","apps/shared/views/itemList","soy!jive.outcomes.badge.headerBadgeRaw","soy!jive.outcomes.badge.headerBadge","soy!jive.outcomes.badge.headerOutcomeBadge","soy!jive.unified.content.view.headerBadgeActionLink","soy!jive.unified.content.view.headerOutcomeBadge","apps/outcomes/badgeHelper","soy!jive.outcomes.history.showLink","soy!jive.outcomes.history.item","soy!jive.outcomes.history.showPopup","apps/outcomes/historyView","soy!jive.outcomes.summary.avatar","soy!jive.outcomes.mostLiked.reply","soy!jive.outcomes.mostLiked.rollup","soy!jive.outcomes.mostLiked.pseudoBadge","apps/outcomes/mostLikedView","soy!jive.outcomes.badge.headerBadges","soy!jive.outcomes.badge.fakeOutcomeBadge","soy!jive.outcomes.badge.badgeActionLink","soy!jive.outcomes.badge.badgeAlertedNames","soy!jive.outcomes.badge.badgeByline","soy!jive.outcomes.badge.badgeComment","soy!jive.outcomes.badge.badgeOutdatedLink","soy!jive.outcomes.badge.badgeShareLink","soy!jive.unified.content.view.badgeAlertedNames","soy!jive.unified.content.view.badgeByline","soy!jive.unified.content.view.badgeComment","soy!jive.unified.content.view.badgeActionLink","soy!jive.unified.content.view.badgeShareLink","soy!jive.unified.content.view.badgeDate","soy!jive.unified.content.view.badgeOutdatedLink","soy!jive.unified.content.view.badgePopup","soy!jive.outcomes.badge.badgePopup","soy!jive.outcomes.badge.headerBadgeActionLink","soy!jive.outcomes.badge.headerBadgeByline","soy!jive.outcomes.badge.headerBadgeOutdatedLink","soy!jive.outcomes.badge.headerBadgePopup","apps/outcomes/badgeView","apps/modalizer/views/modal_view","apps/modalizer/models/modal_source","apps/modalizer/main","apps/playbox/rewards/rewards_source","soy!jive.rewards.otherUserBadges","soy!jive.rewards.emptyOverallList","soy!jive.rewards.lastUpdateLabel","soy!jive.rewards.leaderboardItemsList","soy!jive.rewards.leaderboardTableHeader","soy!jive.rewards.leaderboardItems","soy!jive.rewards.leaderboardSkeletonList","soy!jive.rewards.emptyMissionList","soy!jive.rewards.emptyBadgesList","soy!jive.rewards.badgeTileItemsList","soy!jive.rewards.missionsList","soy!jive.rewards.userBadgesList","soy!jive.rewards.descriptionPreview","soy!jive.rewards.activityStream","soy!jive.playbox.profile.rewards.handoutBadgeSuccessMessage","soy!jive.rewards.handoutBadgeContainer","soy!jive.rewards.infoText","soy!jive.rewards.badgesContainer","soy!jive.rewards.badgesUnavailableService","soy!jive.rewards.yourBadges","apps/playbox/modal/modal_view","soy!jive.rewards.userBadgesModal","soy!jive.playbox.profile.statusLevel","apps/playbox/rewards/rewards_view","vendor/jrange/jquery.range","apps/playbox/handout_points/handout_points_controller","apps/playbox/badges/badges_controller","apps/playbox/modal/modal_source","soy!jive.playbox.profile.missionDetailsModal","apps/playbox/cards/mission","apps/shared/models/deferred_rest_service","soy!jive.playbox.profile.questDetailsModal","apps/playbox/cards/quest","soy!jive.playbox.profile.strategyDetailsModal","apps/playbox/cards/strategy","apps/playbox/modal/modal_controller","soy!jive.outcomes.action.actionMenuItem","soy!jive.outcomes.action.actionMenu","soy!jive.outcomes.action.createdMessage","soy!jive.outcomes.action.deletedMessage","soy!jive.outcomes.action.updatedMessage","soy!jive.outcomes.action.confirmModal","soy!jive.outcomes.action.tloExclusionModal","soy!jive.outcomes.action.markAlertModal","soy!jive.outcomes.action.pendingAssigneeModal","soy!jive.outcomes.action.pendingAlertPermissionWarning","soy!jive.outcomes.action.unknownError","soy!jive.outcomes.action.actionTooltip","soy!jive.outcomes.action.inProgressConfirmModal","soy!jive.playbox.profile.rewards.handoutBadgeEmptyState","soy!jive.playbox.profile.rewards.handoutBadgeModal","apps/playbox/cards/handout_badge","soy!jive.playbox.rewards.userQuestsModal","apps/playbox/cards/user_quests","apps/outcomes/actionView","jive/bundles/app","apps/shared/controllers/abstract_flow_controller","apps/shared/controllers/user_activity_monitor","apps/shared/controllers/browser_events","soy!jive.shared.file.dropTarget","soy!jive.shared.file.prettySize","soy!jive.shared.file.filledDropTarget","soy!jive.shared.file.fileGridCell","soy!jive.shared.file.fileGrid","apps/shared/controllers/file_input","soy!jive.shared.soy.pageToStart","soy!jive.shared.soy.pageUrl","soy!jive.shared.soy.numberedPageLink","soy!jive.shared.soy.paginationLinks","apps/shared/views/pagination_links","apps/shared/controllers/paginated","vendor/portal/portal","apps/realtime/models/realtime_stats_source","soy!jive.soy.realtime.realtime","apps/realtime/realtime_stats_controller","apps/shared/controllers/socket_holder","apps/shared/controllers/sortable","apps/shared/models/app_dashboard_source","apps/shared/models/app_instance_source","apps/shared/models/bookmark_source","soy!jive.i18n.keys.docUploadErrFileRequired","apps/shared/models/file_uploader","apps/shared/models/history_source","jive/app/syntheticContainer","apps/shared/models/lazy_corev3","apps/shared/models/meta_source","apps/shared/models/nested_rest_service","apps/shared/models/recent_places_source","apps/shared/models/transitory_location_state","apps/shared/models/user_relationship_list_source","apps/shared/models/user_relationship_source","apps/shared/views/collapsable","raphael","hbs","jrange","portal"],"jive/bundles/admin":["application/profiles/admin/main","apps/admin/help/views/help_button","dwr/engine","dwr/util","spacepicker","vendor/sizzle/sizzle","sizzle-for-prototype","vendor/prototypejs/prototype","admin/main","jive/bundles/admin","apps/admin/antivirus/models/antivirus_configuration_source","apps/admin/antivirus/views/antivirus_configuration_view","apps/admin/antivirus/main","apps/admin/apps_services/models/auth_style_source","apps/admin/apps_services/models/group_source","apps/admin/apps_services/models/service_source","apps/admin/apps_services/models/user_source","apps/admin/apps_services/views/abstract_view","soy!jive.admin.apps.services.actions","apps/admin/apps_services/views/actions_view","soy!jive.admin.apps.services.entry","apps/admin/apps_services/views/entry_view","soy!jive.admin.apps.services.filters","apps/admin/apps_services/views/filters_view","soy!jive.admin.apps.services.header","soy!jive.admin.apps.services.headerEdit","apps/admin/apps_services/views/header_view","soy!jive.admin.apps.services.headers","apps/admin/apps_services/views/headers_view","soy!jive.admin.apps.services.item","apps/admin/apps_services/views/item_view","soy!jive.admin.apps.services.list","apps/admin/apps_services/views/list_view","soy!jive.admin.apps.services.tags","apps/admin/apps_services/views/tags_view","apps/admin/apps_services/main","apps/admin/apps_services/models/template_category_model","apps/admin/apps_services/models/tile_category_model","apps/admin/apps_services/renameCategories","apps/admin/apps_services/views/template_category_view","soy!jive.admin.templatecategory.newCategory","apps/admin/apps_services/templateCategory","apps/admin/apps_services/views/tile_category_view","soy!jive.admin.tilecategory.newCategory","apps/admin/apps_services/tileCategory","apps/admin/available_plugins","apps/admin/community_manager","apps/admin/community_manager_progress","admin/externalstorage/data","apps/admin/conversion/manage/models/manage_model","soy!jive.admin.conversion.manage.conversionRow","soy!jive.admin.conversion.manage.table","soy!jive.admin.conversion.manage.conversionErrorRow","soy!jive.admin.conversion.manage.errorTable","apps/admin/conversion/manage/views/manage_view","apps/admin/conversion/manage/main","soy!jive.admin.conversion.settings.hostBlock","apps/admin/conversion/settings/views/settings_view","apps/admin/conversion/settings/models/settings_model","apps/admin/conversion/settings/main","apps/admin/conversion/test/main","apps/admin/demo_recos/demo_recos_source","soy!jive.admin.demorecos.demoRecoRow","soy!jive.admin.demorecos.percentInput","soy!jive.admin.demorecos.userTable","soy!jive.admin.demorecos.userSpecificOverrides","apps/admin/demo_recos/demo_recos_main","apps/admin/eae/models/eae_source","jquery/jquery.progressbar","apps/admin/eae/views/eae_view","apps/admin/eae/main","apps/admin/ediscovery/requests/models/requests_model","soy!jive.admin.ediscovery.requests.deleteExportRequestConfirm","soy!jive.admin.ediscovery.requests.restartRequestFailed","soy!jive.admin.ediscovery.requests.startRequestFailed","soy!jive.admin.ediscovery.requests.noRecentSearchesFound","soy!jive.admin.ediscovery.requests.searchInputForm","soy!jive.admin.ediscovery.requests.recentRequestRow","soy!jive.admin.ediscovery.requests.recentSearches","soy!jive.admin.ediscovery.requests.displayCurrentRequest","apps/admin/ediscovery/requests/views/requests_view","apps/admin/ediscovery/requests/main","apps/admin/gadgets/model","apps/admin/gadgets/view","apps/admin/gadgets/main","soy!jive.admin.simple.manage_spaces.icon","soy!jive.admin.simple.manage_spaces.controls","soy!jive.admin.simple.manage_spaces.menu","apps/admin/manage_spaces/manage_spaces_view","apps/admin/manage_spaces/manage_spaces","soy!jive.news.admin.publicationList","soy!jive.news.admin.successMessage","soy!jive.news.admin.errorMessage","apps/admin/news/views/news_settings_view","apps/admin/news/models/news_settings_source","apps/admin/news/main","soy!jive.admin.permissiongroups.badgeImageInput","apps/admin/permissions/groups/view/permgroups_view","apps/admin/permissions/groups/main","apps/admin/places/models/place_topics_model","soy!jive.admin.places.newCategory","soy!jive.i18n.keys.adminPlaceTopicsConfigurationErrorMissingName","apps/admin/places/views/place_topics_view","apps/admin/places/place_topics","apps/admin/predefined_recos/model","soy!jive.admin.recommendations.predefinedRecoRow","apps/admin/predefined_recos/view","apps/admin/predefined_recos/main","apps/admin/realtime/view","apps/admin/realtime/main","soy!jive.SearchAdmin.soy.deleteSynonymsConfirm","soy!jive.SearchAdmin.soy.synonymsSaveText","soy!jive.SearchAdmin.soy.synonymsAddText","soy!jive.SearchAdmin.soy.synonymsRow","soy!jive.SearchAdmin.soy.synonymsError","soy!jive.SearchAdmin.soy.deletePromotedResultsConfirm","soy!jive.SearchAdmin.soy.promotedResultsUpdateText","soy!jive.SearchAdmin.soy.promotedResultsAddText","soy!jive.SearchAdmin.soy.promotedResultRow","soy!jive.SearchAdmin.soy.promotedResultError","soy!jive.SearchAdmin.soy.indexStatus","soy!jive.shared.token.jiveToken","soy!jive.SearchAdmin.soy.tasks","soy!jive.SearchAdmin.soy.tasksDisabled","soy!jive.SearchAdmin.soy.tasksBusy","soy!jive.SearchAdmin.soy.rebuildComplete","soy!jive.SearchAdmin.soy.rebuildError","soy!jive.SearchAdmin.soy.rebuildSelectionAlert","soy!jive.SearchAdmin.soy.saveSuccessful","soy!jive.SearchAdmin.soy.indexStatusResult","soy!jive.SearchAdmin.soy.indexUpdateResult","apps/admin/search/views/tab_view","apps/admin/search/models/tabs_source","apps/admin/search/main","apps/admin/sso/views/sso_view","apps/admin/sso/models/sso_source","soy!jive.admin.sso.queryParameter","soy!jive.admin.sso.addButton","apps/admin/sso/views/custom/custom_sso_validate","apps/admin/sso/views/custom/custom_sso_view","apps/admin/sso/models/custom_sso_source","soy!jive.admin.sso.attributes","apps/admin/sso/views/saml_view","apps/admin/sso/models/saml_source","apps/admin/sso/views/external_login_view","apps/admin/sso/models/external_login_source","apps/admin/sso/views/login_config_view","apps/admin/sso/models/login_config_source","apps/admin/sso/main","vendor/jquery/plugins/jquery.livequery","jquery/jquery.spacepicker","jive/admin/permissions","dwr/engine","dwr/util","sizzle","prototype"]}}),define('domReady',[],function(){'use strict';function a(a){var b;for(b=0;b<a.length;b+=1)a[b](j)}function b(){var b=k;i&&b.length&&(k=[],a(b))}function c(){i||(i=!0,g&&clearInterval(g),b())}function d(a){return i?a(j):k.push(a),d}var e,f,g,h="undefined"!=typeof window&&window.document,i=!h,j=h?document:null,k=[];if(h){if(document.addEventListener)document.addEventListener("DOMContentLoaded",c,!1),window.addEventListener("load",c,!1);else if(window.attachEvent){window.attachEvent("onload",c),f=document.createElement('div');try{e=null===window.frameElement}catch(l){}f.doScroll&&e&&window.external&&(g=setInterval(function(){try{f.doScroll(),
c()}catch(a){}},30))}"complete"===document.readyState&&c()}return d.version='2.0.1',d.load=function(a,b,c,e){e.isBuild?c(null):d(c)},d}),define('text',['module'],function(a){'use strict';var b,c,d,e,f,g=['Msxml2.XMLHTTP','Microsoft.XMLHTTP','Msxml2.XMLHTTP.4.0'],h=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,i=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,j='undefined'!=typeof location&&location.href,k=j&&location.protocol&&location.protocol.replace(/\:/,''),l=j&&location.hostname,m=j&&(location.port||void 0),n={},o=a.config&&a.config()||{};return b={version:'2.0.12',strip:function(a){if(a){a=a.replace(h,"");var b=a.match(i);b&&(a=b[1])}else a="";return a},jsEscape:function(a){return a.replace(/(['\\])/g,'\\$1').replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:o.createXhr||function(){var a,b,c;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)for(b=0;3>b;b+=1){c=g[b];try{a=new ActiveXObject(c)}catch(d){}if(a){g=[c];break}}return a},parseName:function(a){var b,c,d,e=!1,f=a.indexOf("."),g=0===a.indexOf('./')||0===a.indexOf('../');return-1!==f&&(!g||f>1)?(b=a.substring(0,f),c=a.substring(f+1,a.length)):b=a,d=c||b,f=d.indexOf("!"),-1!==f&&(e="strip"===d.substring(f+1),d=d.substring(0,f),c?c=d:b=d),{moduleName:b,ext:c,strip:e}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(a,c,d,e){var f,g,h,i=b.xdRegExp.exec(a);return i?(f=i[2],g=i[3],g=g.split(':'),h=g[1],g=g[0],!(f&&f!==c||g&&g.toLowerCase()!==d.toLowerCase()||(h||g)&&h!==e)):!0},finishLoad:function(a,c,d,e){d=c?b.strip(d):d,o.isBuild&&(n[a]=d),e(d)},load:function(a,c,d,e){if(e&&e.isBuild&&!e.inlineText)return d(),void 0;o.isBuild=e&&e.isBuild;var f=b.parseName(a),g=f.moduleName+(f.ext?'.'+f.ext:''),h=c.toUrl(g),i=o.useXhr||b.useXhr;return 0===h.indexOf('empty:')?(d(),void 0):(!j||i(h,k,l,m)?b.get(h,function(c){b.finishLoad(a,f.strip,c,d)},function(a){d.error&&d.error(a)}):c([g],function(a){b.finishLoad(f.moduleName+'.'+f.ext,f.strip,a,d)}),void 0)},write:function(a,c,d,e){if(n.hasOwnProperty(c)){var f=b.jsEscape(n[c]);d.asModule(a+"!"+c,"define(function () { return '"+f+"';});\n")}},writeFile:function(a,c,d,e,f){var g=b.parseName(c),h=g.ext?'.'+g.ext:'',i=g.moduleName+h,j=d.toUrl(g.moduleName+h)+'.js';b.load(i,d,function(c){var d=function(a){return e(j,a)};d.asModule=function(a,b){return e.asModule(a,j,b)},b.write(a,i,d,f)},f)}},'node'===o.env||!o.env&&"undefined"!=typeof process&&process.versions&&process.versions.node&&!process.versions['node-webkit']?(c=require.nodeRequire('fs'),b.get=function(a,b,d){try{var e=c.readFileSync(a,'utf8');0===e.indexOf('\ufeff')&&(e=e.substring(1)),b(e)}catch(f){d&&d(f)}}):'xhr'===o.env||!o.env&&b.createXhr()?b.get=function(a,c,d,e){var f=b.createXhr(),g;if(f.open('GET',a,!0),e)for(g in e)e.hasOwnProperty(g)&&f.setRequestHeader(g.toLowerCase(),e[g]);o.onXhr&&o.onXhr(f,a),f.onreadystatechange=function(b){var e,g;4===f.readyState&&(e=f.status||0,e>399&&600>e?(g=new Error(a+' HTTP status: '+e),g.xhr=f,d&&d(g)):c(f.responseText),o.onXhrComplete&&o.onXhrComplete(f,a))},f.send(null)}:'rhino'===o.env||!o.env&&'undefined'!=typeof Packages&&'undefined'!=typeof java?b.get=function(a,b){var c,d,e="utf-8",f=new java.io.File(a),g=java.lang.System.getProperty("line.separator"),h=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(f),e)),i='';try{for(c=new java.lang.StringBuffer,d=h.readLine(),d&&d.length()&&65279===d.charAt(0)&&(d=d.substring(1)),null!==d&&c.append(d);null!==(d=h.readLine());)c.append(g),c.append(d);i=String(c.toString())}finally{h.close()}b(i)}:('xpconnect'===o.env||!o.env&&'undefined'!=typeof Components&&Components.classes&&Components.interfaces)&&(d=Components.classes,e=Components.interfaces,Components.utils['import']('resource://gre/modules/FileUtils.jsm'),f='@mozilla.org/windows-registry-key;1'in d,b.get=function(a,b){var c,g,h,i={};f&&(a=a.replace(/\//g,'\\')),h=new FileUtils.File(a);try{c=d['@mozilla.org/network/file-input-stream;1'].createInstance(e.nsIFileInputStream),c.init(h,1,0,!1),g=d['@mozilla.org/intl/converter-input-stream;1'].createInstance(e.nsIConverterInputStream),g.init(c,"utf-8",c.available(),e.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER),g.readString(c.available(),i),g.close(),c.close(),b(i.value)}catch(j){throw new Error((h&&h.path||'')+': '+j)}}),b}),define('promise',[],function(){'use strict';var a;return a=function(a){return a&&'object'==typeof a?window.Promise&&a instanceof Promise?!0:'function'==typeof a.then:!1},{load:function(b,c,d){c([b],function(b){var c,e,f;c=function(){d.error.apply(null,arguments)},e=function(){d.apply(null,arguments)},a(b)?(f=b.done||b.then,'function'==typeof b.fail?(f.call(b,e),b.fail(c)):f.call(b,e,c)):d(b)})}}}),'undefined'==typeof jive&&(jive={}),'undefined'==typeof window&&(window={}),define('jive/namespace',[],function(){var a=this;return jive.namespace=function(a,b){var c=a.split('.'),d=this,e;for(e=0;e<c.length;e+=1)'undefined'==typeof d[c[e]]&&(e==c.length-1&&'undefined'!=typeof b?d[c[e]]=b:d[c[e]]={}),d=d[c[e]];return d},jive.namespace('gui'),jive.namespace('model'),jive.namespace('ext.y'),jive.namespace('ext.x'),jive.namespace('rte.macros',[]),jive.namespace('rte.plugin'),jive.namespace('global'),jive.namespace}),define('jiverscripts/oo/abstract',['jive/namespace'],function(){return jive.namespace('oo'),jive.oo["abstract"]=function(){},jive.oo._abstract=jive.oo["abstract"],jive.oo["abstract"]}),define('jiverscripts/oo/class',['./abstract','jive/namespace'],function(a){return jive.namespace('oo'),jive.oo.Class=function(){},jive.oo.Class.extend=function(){var b=Object.create||function(a){function b(){}return b.prototype=a,new b},c=!1;return function d(e){function f(){function d(a){return function(){var b=h[a].apply(h,arguments);return b===h?e:b}}var e=this instanceof f?this:b(f.prototype),g,h=b(f["protected"]);if(!c&&a)for(g in h)if(h[g]===a)throw'A class with abstract members cannot be instantiated: \''+g+'\'';if(!c){for(g in f.prototype)'function'==typeof f.prototype[g]&&'function'==typeof h[g]&&(e[g]=d(g));h.init&&h.init.apply(h,arguments)}return e.constructor=f,e}var g=this["protected"]||{},h;c=!0;var i=new this,j=b(g);if(c=!1,'function'==typeof e)e.call(i,j,g);else for(h in e)e.hasOwnProperty(h)&&(i[h]=e[h]);for(h in i)if(i.hasOwnProperty(h)){if('function'!=typeof i[h])throw'Public members must be methods - public variables are not allowed: \''+h+'\'';if('undefined'!=typeof j[h]&&j.hasOwnProperty(h))throw'Public and protected properties with the same name are not allowed: \''+h+'\'';j[h]=i[h]}return f.prototype=i,f["protected"]=j,f.definition=e,f.superclass=this,f.extend=d,f}}(),jive.oo.Class}),define('jiverscripts/oo/compose',['./class','jive/namespace'],function(a){return jive.namespace('oo'),jive.oo.compose=function(){function b(a,b){for(var c=0;c<a.length;c+=1)if(a[c]===b)return!0;return!1}return function c(){for(var c=Array.prototype.slice.call(arguments),d=a,e=[],f=[],g,h=0;h<c.length;h+=1)e.push(c[h]),g=c[h].superclass,g===d||b(f,g)||b(e,g)||f.push(g);if(f.length>1)throw'Cannot create linear inheritance chain. Make sure classes that you are mixing in do not inherit from different parent classes.';1==f.length&&e[0].superclass!==f[0]&&e.unshift(f[0]);var i=e[0];for(h=1;h<e.length;h+=1)i=i.extend(e[h].definition);return i}}(),jive.oo.compose}),Array.prototype.forEach=Array.prototype.forEach||function(a){var b=this.length>>>0;if('function'!=typeof a)throw new TypeError;for(var c=arguments[1],d=0;b>d;d++)d in this&&a.call(c,this[d],d,this)},Array.prototype.map=Array.prototype.map||function(a){var b=this.length>>>0;if('function'!=typeof a)throw new TypeError;for(var c=new Array(b),d=arguments[1],e=0;b>e;e++)e in this&&(c[e]=a.call(d,this[e],e));return c},Array.prototype.reduce=Array.prototype.reduce||function(a){var b=this.length>>>0;if('function'!=typeof a)throw new TypeError;if(0==b&&1==arguments.length)throw new TypeError;var c=0;if(arguments.length>=2)var d=arguments[1];else for(;;){if(c in this){d=this[c++];break}if(++c>=b)throw new TypeError}for(;b>c;c++)c in this&&(d=a.call(null,d,this[c],c,this));return d},Array.prototype.reduceRight=function(a){var b=this.length>>>0;if('function'!=typeof a)throw new TypeError;if(0==b&&1==arguments.length)throw new TypeError;var c=b-1;if(arguments.length>=2)var d=arguments[1];else for(;;){if(c in this){var d=this[c--];break}if(--c<0)throw new TypeError}for(;c>=0;c--)c in this&&(d=a.call(null,d,this[c],c,this));return d},Array.prototype.filter=Array.prototype.filter||function(a){var b=this.length>>>0;if('function'!=typeof a)throw new TypeError;for(var c=[],d=arguments[1],e=0;b>e;e++)if(e in this){var f=this[e];a.call(d,f,e)&&c.push(f)}return c},Array.prototype.every=Array.prototype.every||function(a){var b=this.length>>>0;if('function'!=typeof a)throw new TypeError;for(var c=arguments[1],d=0;b>d;d++)if(d in this&&!a.call(c,this[d],d,this))return!1;return!0},Array.prototype.some=Array.prototype.some||function(a){var b=0,c=this.length>>>0;if('function'!=typeof a)throw new TypeError;for(var d=arguments[1];c>b;b++)if(b in this&&a.call(d,this[b],b,this))return!0;return!1},Array.prototype.indexOf=Array.prototype.indexOf||function(a){var b=this.length>>>0,c=Number(arguments[1])||0;for(c=0>c?Math.ceil(c):Math.floor(c),0>c&&(c+=b);b>c;c++)if(c in this&&this[c]===a)return c;return-1},Array.prototype.lastIndexOf=Array.prototype.lastIndexOf||function(a){var b=this.length,c=Number(arguments[1]);for(isNaN(c)?c=b-1:(c=0>c?Math.ceil(c):Math.floor(c),0>c?c+=b:c>=b&&(c=b-1));c>-1;c--)if(c in this&&this[c]===a)return c;return-1},define('jiverscripts/compat/array',{}),Object.create=Object.create||function(){var a=Object.defineProperty||function(a,b,c){c.hasOwnProperty('value')&&(a[b]=c.value)},b=Object.defineProperties||function(b,c){for(var d in c)c.hasOwnProperty(d)&&a(b,d,c[d])};return function(a,c){var d=function(a){a&&b(this,a)};return d.prototype=a,new d(c)}}(),Object.keys=Object.keys||function(a){var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b},define('jiverscripts/compat/object',{}),function(){function a(a,b){if(a!==b){var c=a===a,d=b===b;if(a>b||!c||a===w&&d)return 1;if(b>a||!d||b===w&&c)return-1}return 0}function b(a,b,c){for(var d=a.length,e=c?d:-1;c?e--:++e<d;)if(b(a[e],e,a))return e;return-1}function c(a,b,c){if(b!==b)return n(a,c);for(var d=c-1,e=a.length;++d<e;)if(a[d]===b)return d;return-1}function d(a){return'function'==typeof a||!1}function e(a){return'string'==typeof a?a:null==a?'':a+''}function f(a){return a.charCodeAt(0)}function g(a,b){for(var c=-1,d=a.length;++c<d&&b.indexOf(a.charAt(c))>-1;);return c}function h(a,b){for(var c=a.length;c--&&b.indexOf(a.charAt(c))>-1;);return c}function i(b,c){return a(b.criteria,c.criteria)||b.index-c.index}function j(b,c,d){for(var e=-1,f=b.criteria,g=c.criteria,h=f.length,i=d.length;++e<h;){var j=a(f[e],g[e]);if(j)return e>=i?j:j*(d[e]?1:-1)}return b.index-c.index}function k(a){return Qa[a]}function l(a){return Ra[a]}function m(a){return'\\'+Ua[a]}function n(a,b,c){for(var d=a.length,e=b+(c?0:-1);c?e--:++e<d;){var f=a[e];if(f!==f)return e}return-1}function o(a){return!!a&&'object'==typeof a}function p(a){return 160>=a&&a>=9&&13>=a||32==a||160==a||5760==a||6158==a||a>=8192&&(8202>=a||8232==a||8233==a||8239==a||8287==a||12288==a||65279==a)}function q(a,b){for(var c=-1,d=a.length,e=-1,f=[];++c<d;)a[c]===b&&(a[c]=P,f[++e]=c);return f}function r(a,b){for(var c,d=-1,e=a.length,f=-1,g=[];++d<e;){var h=a[d],i=b?b(h,d,a):h;d&&c===i||(c=i,g[++f]=h)}return g}function s(a){for(var b=-1,c=a.length;++b<c&&p(a.charCodeAt(b)););return b}function t(a){for(var b=a.length;b--&&p(a.charCodeAt(b)););return b}function u(a){return Sa[a]}function v(p){function W(a){if(o(a)&&!zh(a)&&!(a instanceof Qa)){if(a instanceof aa)return a;if(Qf.call(a,'__chain__')&&Qf.call(a,'__wrapped__'))return fd(a)}return new aa(a)}function $(){}function aa(a,b,c){this.__wrapped__=a,this.__actions__=c||[],this.__chain__=!!b}function Qa(a){this.__wrapped__=a,this.__actions__=null,this.__dir__=1,this.__dropCount__=0,this.__filtered__=!1,this.__iteratees__=null,this.__takeCount__=vg,this.__views__=null}function Ra(){var a=this.__actions__,b=this.__iteratees__,c=this.__views__,d=new Qa(this.__wrapped__);return d.__actions__=a?cb(a):null,d.__dir__=this.__dir__,d.__filtered__=this.__filtered__,d.__iteratees__=b?cb(b):null,d.__takeCount__=this.__takeCount__,d.__views__=c?cb(c):null,d}function Sa(){if(this.__filtered__){var a=new Qa(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function Ta(){var a=this.__wrapped__.value();if(!zh(a))return ac(a,this.__actions__);var b=this.__dir__,c=0>b,d=Mc(0,a.length,this.__views__),e=d.start,f=d.end,g=f-e,h=c?f:e-1,i=pg(g,this.__takeCount__),j=this.__iteratees__,k=j?j.length:0,l=0,m=[];a:for(;g--&&i>l;){h+=b;for(var n=-1,o=a[h];++n<k;){var p=j[n],q=p.iteratee,r=p.type;if(r==L){if(p.done&&(c?h>p.index:h<p.index)&&(p.count=0,p.done=!1),p.index=h,!p.done){var s=p.limit;if(!(p.done=s>-1?p.count++>=s:!q(o)))continue a}}else{var t=q(o);if(r==N)o=t;else if(!t){if(r==M)continue a;break a}}}m[l++]=o}return m}function Ua(){this.__data__={}}function Va(a){return this.has(a)&&delete this.__data__[a]}function Wa(a){return'__proto__'==a?w:this.__data__[a]}function Xa(a){return'__proto__'!=a&&Qf.call(this.__data__,a)}function Ya(a,b){return'__proto__'!=a&&(this.__data__[a]=b),this}function Za(a){var b=a?a.length:0;for(this.data={hash:lg(null),set:new dg};b--;)this.push(a[b])}function $a(a,b){var c=a.data,d='string'==typeof b||xe(b)?c.set.has(b):c.hash[b];return d?0:-1}function bb(a){var b=this.data;'string'==typeof a||xe(a)?b.set.add(a):b.hash[a]=!0}function cb(a,b){var c=-1,d=a.length;for(b||(b=Bf(d));++c<d;)b[c]=a[c];return b}function db(a,b){for(var c=-1,d=a.length;++c<d&&b(a[c],c,a)!==!1;);return a}function eb(a,b){for(var c=a.length;c--&&b(a[c],c,a)!==!1;);return a}function fb(a,b){for(var c=-1,d=a.length;++c<d;)if(!b(a[c],c,a))return!1;return!0}function gb(a,b){for(var c=-1,d=a.length,e=-1,f=[];++c<d;){var g=a[c];b(g,c,a)&&(f[++e]=g)}return f}function hb(a,b){for(var c=-1,d=a.length,e=Bf(d);++c<d;)e[c]=b(a[c],c,a);return e}function ib(a){for(var b=-1,c=a.length,d=ug;++b<c;){var e=a[b];e>d&&(d=e)}return d}function jb(a){for(var b=-1,c=a.length,d=vg;++b<c;){var e=a[b];d>e&&(d=e)}return d}function kb(a,b,c,d){var e=-1,f=a.length;for(d&&f&&(c=a[++e]);++e<f;)c=b(c,a[e],e,a);return c}function lb(a,b,c,d){var e=a.length;for(d&&e&&(c=a[--e]);e--;)c=b(c,a[e],e,a);return c}function mb(a,b){for(var c=-1,d=a.length;++c<d;)if(b(a[c],c,a))return!0;return!1}function nb(a){for(var b=a.length,c=0;b--;)c+=+a[b]||0;return c}function ob(a,b){return a===w?b:a}function pb(a,b,c,d){return a!==w&&Qf.call(d,c)?a:b}function qb(a,b,c){var d=Lh(b);ag.apply(d,Pg(b));for(var e=-1,f=d.length;++e<f;){var g=d[e],h=a[g],i=c(h,b[g],g,a,b);(i===i?i===h:h!==h)&&(h!==w||g in a)||(a[g]=i)}return a}function rb(a,b){for(var c=-1,d=null==a,e=!d&&Rc(a),f=e&&a.length,g=b.length,h=Bf(g);++c<g;){var i=b[c];e?h[c]=Sc(i,f)?a[i]:w:h[c]=d?w:a[i]}return h}function sb(a,b,c){c||(c={});for(var d=-1,e=b.length;++d<e;){var f=b[d];c[f]=a[f]}return c}function tb(a,b,c){var d=typeof a;return'function'==d?b===w?a:dc(a,b,c):null==a?of:'object'==d?Lb(a):b===w?uf(a):Mb(a,b)}function ub(a,b,c,d,e,f,g){var h;if(c&&(h=e?c(a,d,e):c(a)),h!==w)return h;if(!xe(a))return a;var i=zh(a);if(i){if(h=Nc(a),!b)return cb(a,h)}else{var j=Sf.call(a),k=j==V;if(j!=Y&&j!=Q&&(!k||e))return Oa[j]?Pc(a,j,b):e?a:{};if(h=Oc(k?{}:a),!b)return Eg(h,a)}f||(f=[]),g||(g=[]);for(var l=f.length;l--;)if(f[l]==a)return g[l];return f.push(a),g.push(h),(i?db:Db)(a,function(d,e){h[e]=ub(d,b,c,e,a,f,g)}),h}function vb(a,b,c){if('function'!=typeof a)throw new Kf(O);return eg(function(){a.apply(w,c)},b)}function wb(a,b){var d=a?a.length:0,e=[];if(!d)return e;var f=-1,g=Lc(),h=g==c,i=h&&b.length>=200?Lg(b):null,j=b.length;i&&(g=$a,h=!1,b=i);a:for(;++f<d;){var k=a[f];if(h&&k===k){for(var l=j;l--;)if(b[l]===k)continue a;e.push(k)}else g(b,k,0)<0&&e.push(k)}return e}function xb(a,b){var c=!0;return Gg(a,function(a,d,e){return c=!!b(a,d,e),c}),c}function yb(a,b,c,d){var e=a.length;for(c=null==c?0:+c||0,0>c&&(c=-c>e?0:e+c),d=d===w||d>e?e:+d||0,0>d&&(d+=e),e=c>d?0:d>>>0,c>>>=0;e>c;)a[c++]=b;return a}function zb(a,b){var c=[];return Gg(a,function(a,d,e){b(a,d,e)&&c.push(a)}),c}function Ab(a,b,c,d){var e;return c(a,function(a,c,f){return b(a,c,f)?(e=d?c:a,!1):void 0}),e}function Bb(a,b,c){for(var d=-1,e=a.length,f=-1,g=[];++d<e;){var h=a[d];if(o(h)&&Rc(h)&&(c||zh(h)||qe(h))){b&&(h=Bb(h,b,c));for(var i=-1,j=h.length;++i<j;)g[++f]=h[i]}else c||(g[++f]=h)}return g}function Cb(a,b){return Ig(a,b,Oe)}function Db(a,b){return Ig(a,b,Lh)}function Eb(a,b){return Jg(a,b,Lh)}function Fb(a,b){for(var c=-1,d=b.length,e=-1,f=[];++c<d;){var g=b[c];Bh(a[g])&&(f[++e]=g)}return f}function Gb(a,b,c){if(null!=a){c!==w&&c in dd(a)&&(b=[c]);for(var d=-1,e=b.length;null!=a&&++d<e;)a=a[b[d]];return d&&d==e?a:w}}function Hb(a,b,c,d,e,f){if(a===b)return!0;var g=typeof a,h=typeof b;return'function'!=g&&'object'!=g&&'function'!=h&&'object'!=h||null==a||null==b?a!==a&&b!==b:Ib(a,b,Hb,c,d,e,f)}function Ib(a,b,c,d,e,f,g){var h=zh(a),i=zh(b),j=R,k=R;h||(j=Sf.call(a),j==Q?j=Y:j!=Y&&(h=Fe(a))),i||(k=Sf.call(b),k==Q?k=Y:k!=Y&&(i=Fe(b)));var l=j==Y,m=k==Y,n=j==k;if(n&&!h&&!l)return Hc(a,b,j);if(!e){var o=l&&Qf.call(a,'__wrapped__'),p=m&&Qf.call(b,'__wrapped__');if(o||p)return c(o?a.value():a,p?b.value():b,d,e,f,g)}if(!n)return!1;f||(f=[]),g||(g=[]);for(var q=f.length;q--;)if(f[q]==a)return g[q]==b;f.push(a),g.push(b);var r=(h?Gc:Ic)(a,b,c,d,e,f,g);return f.pop(),g.pop(),r}function Jb(a,b,c,d,e){for(var f=-1,g=b.length,h=!e;++f<g;)if(h&&d[f]?c[f]!==a[b[f]]:!(b[f]in a))return!1;for(f=-1;++f<g;){var i=b[f],j=a[i],k=c[f];if(h&&d[f])var l=j!==w||i in a;else l=e?e(j,k,i):w,l===w&&(l=Hb(k,j,e,!0));if(!l)return!1}return!0}function Kb(a,b){var c=-1,d=Rc(a)?Bf(a.length):[];return Gg(a,function(a,e,f){d[++c]=b(a,e,f)}),d}function Lb(a){var b=Lh(a),c=b.length;if(!c)return nf(!0);if(1==c){var d=b[0],e=a[d];if(Xc(e))return function(a){return null==a?!1:a[d]===e&&(e!==w||d in dd(a))}}for(var f=Bf(c),g=Bf(c);c--;)e=a[b[c]],f[c]=e,g[c]=Xc(e);return function(a){return null!=a&&Jb(dd(a),b,f,g)}}function Mb(a,b){var c=zh(a),d=Uc(a)&&Xc(b),e=a+'';return a=ed(a),function(f){if(null==f)return!1;var g=e;if(f=dd(f),(c||!d)&&!(g in f)){if(f=1==a.length?f:Gb(f,Ub(a,0,-1)),null==f)return!1;g=td(a),f=dd(f)}return f[g]===b?b!==w||g in f:Hb(b,f[g],null,!0)}}function Nb(a,b,c,d,e){if(!xe(a))return a;var f=Rc(b)&&(zh(b)||Fe(b));if(!f){var g=Lh(b);ag.apply(g,Pg(b))}return db(g||b,function(h,i){if(g&&(i=h,h=b[i]),o(h))d||(d=[]),e||(e=[]),Ob(a,b,i,Nb,c,d,e);else{var j=a[i],k=c?c(j,h,i,a,b):w,l=k===w;l&&(k=h),!f&&k===w||!l&&(k===k?k===j:j!==j)||(a[i]=k)}}),a}function Ob(a,b,c,d,e,f,g){for(var h=f.length,i=b[c];h--;)if(f[h]==i)return a[c]=g[h],void 0;var j=a[c],k=e?e(j,i,c,a,b):w,l=k===w;l&&(k=i,Rc(i)&&(zh(i)||Fe(i))?k=zh(j)?j:Rc(j)?cb(j):[]:Ch(i)||qe(i)?k=qe(j)?Ie(j):Ch(j)?j:{}:l=!1),f.push(i),g.push(k),l?a[c]=d(k,i,e,f,g):(k===k?k!==j:j===j)&&(a[c]=k)}function Pb(a){return function(b){return null==b?w:b[a]}}function Qb(a){var b=a+'';return a=ed(a),function(c){return Gb(c,a,b)}}function Rb(a,b){for(var c=a?b.length:0;c--;){var d=parseFloat(b[c]);if(d!=e&&Sc(d)){var e=d;fg.call(a,d,1)}}return a}function Sb(a,b){return a+Zf(tg()*(b-a+1))}function Tb(a,b,c,d,e){return e(a,function(a,e,f){c=d?(d=!1,a):b(c,a,e,f)}),c}function Ub(a,b,c){var d=-1,e=a.length;b=null==b?0:+b||0,0>b&&(b=-b>e?0:e+b),c=c===w||c>e?e:+c||0,0>c&&(c+=e),e=b>c?0:c-b>>>0,b>>>=0;for(var f=Bf(e);++d<e;)f[d]=a[d+b];return f}function Vb(a,b){var c;return Gg(a,function(a,d,e){return c=b(a,d,e),!c}),!!c}function Wb(a,b){var c=a.length;for(a.sort(b);c--;)a[c]=a[c].value;return a}function Xb(a,b,c){var d=Kc(),e=-1;b=hb(b,function(a){return d(a)});var f=Kb(a,function(a){var c=hb(b,function(b){return b(a)});return{criteria:c,index:++e,value:a}});return Wb(f,function(a,b){return j(a,b,c)})}function Yb(a,b){var c=0;return Gg(a,function(a,d,e){c+=+b(a,d,e)||0}),c}function Zb(a,b){var d=-1,e=Lc(),f=a.length,g=e==c,h=g&&f>=200,i=h?Lg():null,j=[];i?(e=$a,g=!1):(h=!1,i=b?[]:j);a:for(;++d<f;){var k=a[d],l=b?b(k,d,a):k;if(g&&k===k){for(var m=i.length;m--;)if(i[m]===l)continue a;b&&i.push(l),j.push(k)}else e(i,l,0)<0&&((b||h)&&i.push(l),j.push(k))}return j}function $b(a,b){for(var c=-1,d=b.length,e=Bf(d);++c<d;)e[c]=a[b[c]];return e}function _b(a,b,c,d){for(var e=a.length,f=d?e:-1;(d?f--:++f<e)&&b(a[f],f,a););return c?Ub(a,d?0:f,d?f+1:e):Ub(a,d?f+1:0,d?e:f)}function ac(a,b){var c=a;c instanceof Qa&&(c=c.value());for(var d=-1,e=b.length;++d<e;){var f=[c],g=b[d];ag.apply(f,g.args),c=g.func.apply(g.thisArg,f)}return c}function bc(a,b,c){var d=0,e=a?a.length:d;if('number'==typeof b&&b===b&&yg>=e){for(;e>d;){var f=d+e>>>1,g=a[f];(c?b>=g:b>g)?d=f+1:e=f}return e}return cc(a,b,of,c)}function cc(a,b,c,d){b=c(b);for(var e=0,f=a?a.length:0,g=b!==b,h=b===w;f>e;){var i=Zf((e+f)/2),j=c(a[i]),k=j===j;if(g)var l=k||d;else l=h?k&&(d||j!==w):d?b>=j:b>j;l?e=i+1:f=i}return pg(f,xg)}function dc(a,b,c){if('function'!=typeof a)return of;if(b===w)return a;switch(c){case 1:return function(c){return a.call(b,c)};case 3:return function(c,d,e){return a.call(b,c,d,e)};case 4:return function(c,d,e,f){return a.call(b,c,d,e,f)};case 5:return function(c,d,e,f,g){return a.call(b,c,d,e,f,g)}}return function(){return a.apply(b,arguments)}}function ec(a){return Wf.call(a,0)}function fc(a,b,c){for(var d=c.length,e=-1,f=og(a.length-d,0),g=-1,h=b.length,i=Bf(f+h);++g<h;)i[g]=b[g];for(;++e<d;)i[c[e]]=a[e];for(;f--;)i[g++]=a[e++];return i}function gc(a,b,c){for(var d=-1,e=c.length,f=-1,g=og(a.length-e,0),h=-1,i=b.length,j=Bf(g+i);++f<g;)j[f]=a[f];for(var k=f;++h<i;)j[k+h]=b[h];for(;++d<e;)j[k+c[d]]=a[f++];return j}function hc(a,b){return function(c,d,e){var f=b?b():{};if(d=Kc(d,e,3),zh(c))for(var g=-1,h=c.length;++g<h;){var i=c[g];a(f,i,d(i,g,c),c)}else Gg(c,function(b,c,e){a(f,b,d(b,c,e),e)});return f}}function ic(a){return ke(function(b,c){var d=-1,e=null==b?0:c.length,f=e>2&&c[e-2],g=e>2&&c[2],h=e>1&&c[e-1];for('function'==typeof f?(f=dc(f,h,5),e-=2):(f='function'==typeof h?h:null,e-=f?1:0),g&&Tc(c[0],c[1],g)&&(f=3>e?null:f,e=1);++d<e;){var i=c[d];i&&a(b,i,f)}return b})}function jc(a,b){return function(c,d){var e=c?Og(c):0;if(!Wc(e))return a(c,d);for(var f=b?e:-1,g=dd(c);(b?f--:++f<e)&&d(g[f],f,g)!==!1;);return c}}function kc(a){return function(b,c,d){for(var e=dd(b),f=d(b),g=f.length,h=a?g:-1;a?h--:++h<g;){var i=f[h];if(c(e[i],i,e)===!1)break}return b}}function lc(a,b){function c(){var e=this&&this!==_a&&this instanceof c?d:a;return e.apply(b,arguments)}var d=nc(a);return c}function mc(a){return function(b){for(var c=-1,d=lf(Ye(b)),e=d.length,f='';++c<e;)f=a(f,d[c],c);return f}}function nc(a){return function(){var b=Fg(a.prototype),c=a.apply(b,arguments);return xe(c)?c:b}}function oc(a){function b(c,d,e){e&&Tc(c,d,e)&&(d=null);var f=Fc(c,a,null,null,null,null,null,d);return f.placeholder=b.placeholder,f}return b}function pc(a,b){return function(c,d,e){e&&Tc(c,d,e)&&(d=null);var g=Kc(),h=null==d;if(g===tb&&h||(h=!1,d=g(d,e,3)),h){var i=zh(c);if(i||!Ee(c))return a(i?c:cd(c));d=f}return Jc(c,d,b)}}function qc(a,c){return function(d,e,f){if(e=Kc(e,f,3),zh(d)){var g=b(d,e,c);return g>-1?d[g]:w}return Ab(d,e,a)}}function rc(a){return function(c,d,e){return c&&c.length?(d=Kc(d,e,3),b(c,d,a)):-1}}function sc(a){return function(b,c,d){return c=Kc(c,d,3),Ab(b,c,a,!0)}}function tc(a){return function(){var b=arguments.length;if(!b)return function(){return arguments[0]};for(var c,d=a?b:-1,e=0,f=Bf(b);a?d--:++d<b;){var g=f[e++]=arguments[d];if('function'!=typeof g)throw new Kf(O);var h=c?'':Ng(g);c='wrapper'==h?new aa([]):c}for(d=c?-1:b;++d<b;){g=f[d],h=Ng(g);var i='wrapper'==h?Mg(g):null;c=i&&Vc(i[0])&&i[1]==(F|B|D|G)&&!i[4].length&&1==i[9]?c[Ng(i[0])].apply(c,i[3]):1==g.length&&Vc(g)?c[h]():c.thru(g)}return function(){var a=arguments;if(c&&1==a.length&&zh(a[0]))return c.plant(a[0]).value();for(var d=0,e=f[d].apply(this,a);++d<b;)e=f[d].call(this,e);return e}}}function uc(a,b){return function(c,d,e){return'function'==typeof d&&e===w&&zh(c)?a(c,d):b(c,dc(d,e,3))}}function vc(a){return function(b,c,d){return'function'==typeof c&&d===w||(c=dc(c,d,3)),a(b,c,Oe)}}function wc(a){return function(b,c,d){return'function'==typeof c&&d===w||(c=dc(c,d,3)),a(b,c)}}function xc(a){return function(b,c,d){var e={};return c=Kc(c,d,3),Db(b,function(b,d,f){var g=c(b,d,f);d=a?g:d,b=a?b:g,e[d]=b}),e}}function yc(a){return function(b,c,d){return b=e(b),(a?b:'')+Cc(b,c,d)+(a?'':b)}}function zc(a){var b=ke(function(c,d){var e=q(d,b.placeholder);return Fc(c,a,null,d,e)});return b}function Ac(a,b){return function(c,d,e,f){var g=arguments.length<3;return'function'==typeof d&&f===w&&zh(c)?a(c,d,e,g):Tb(c,Kc(d,f,4),e,g,b)}}function Bc(a,b,c,d,e,f,g,h,i,j){function k(){for(var u=arguments.length,v=u,x=Bf(u);v--;)x[v]=arguments[v];if(d&&(x=fc(x,d,e)),f&&(x=gc(x,f,g)),o||r){var A=k.placeholder,B=q(x,A);if(u-=B.length,j>u){var C=h?cb(h):null,F=og(j-u,0),G=o?B:null,H=o?null:B,I=o?x:null,J=o?null:x;b|=o?D:E,b&=~(o?E:D),p||(b&=~(y|z));var K=[a,b,c,I,G,J,H,C,i,F],L=Bc.apply(w,K);return Vc(a)&&Qg(L,K),L.placeholder=A,L}}var M=m?c:this;n&&(a=M[t]),h&&(x=_c(x,h)),l&&i<x.length&&(x.length=i);var N=this&&this!==_a&&this instanceof k?s||nc(a):a;return N.apply(M,x)}var l=b&F,m=b&y,n=b&z,o=b&B,p=b&A,r=b&C,s=!n&&nc(a),t=a;return k}function Cc(a,b,c){var d=a.length;if(b=+b,d>=b||!mg(b))return'';var e=b-d;return c=null==c?' ':c+'',cf(c,Xf(e/c.length)).slice(0,e)}function Dc(a,b,c,d){function e(){for(var b=-1,h=arguments.length,i=-1,j=d.length,k=Bf(h+j);++i<j;)k[i]=d[i];for(;h--;)k[i++]=arguments[++b];var l=this&&this!==_a&&this instanceof e?g:a;return l.apply(f?c:this,k)}var f=b&y,g=nc(a);return e}function Ec(a){return function(b,c,d,e){var f=Kc(d);return f===tb&&null==d?bc(b,c,a):cc(b,c,f(d,e,1),a)}}function Fc(a,b,c,d,e,f,g,h){var i=b&z;if(!i&&'function'!=typeof a)throw new Kf(O);var j=d?d.length:0;if(j||(b&=~(D|E),d=e=null),j-=e?e.length:0,b&E){var k=d,l=e;d=e=null}var m=i?null:Mg(a),n=[a,b,c,d,e,k,l,f,g,h];if(m&&(Yc(n,m),b=n[1],h=n[9]),n[9]=null==h?i?0:a.length:og(h-j,0)||0,b==y)var o=lc(n[0],n[2]);else o=b!=D&&b!=(y|D)||n[4].length?Bc.apply(w,n):Dc.apply(w,n);var p=m?Kg:Qg;return p(o,n)}function Gc(a,b,c,d,e,f,g){var h=-1,i=a.length,j=b.length,k=!0;if(i!=j&&!(e&&j>i))return!1;for(;k&&++h<i;){var l=a[h],m=b[h];if(k=w,d&&(k=e?d(m,l,h):d(l,m,h)),k===w)if(e)for(var n=j;n--&&(m=b[n],k=l&&l===m||c(l,m,d,e,f,g),!k););else k=l&&l===m||c(l,m,d,e,f,g)}return!!k}function Hc(a,b,c){switch(c){case S:case T:return+a==+b;case U:return a.name==b.name&&a.message==b.message;case X:return a!=+a?b!=+b:a==+b;case Z:case _:return a==b+''}return!1}function Ic(a,b,c,d,e,f,g){var h=Lh(a),i=h.length,j=Lh(b),k=j.length;if(i!=k&&!e)return!1;for(var l=e,m=-1;++m<i;){var n=h[m],o=e?n in b:Qf.call(b,n);if(o){var p=a[n],q=b[n];o=w,d&&(o=e?d(q,p,n):d(p,q,n)),o===w&&(o=p&&p===q||c(p,q,d,e,f,g))}if(!o)return!1;l||(l='constructor'==n)}if(!l){var r=a.constructor,s=b.constructor;if(r!=s&&'constructor'in a&&'constructor'in b&&!('function'==typeof r&&r instanceof r&&'function'==typeof s&&s instanceof s))return!1}return!0}function Jc(a,b,c){var d=c?vg:ug,e=d,f=e;return Gg(a,function(a,g,h){var i=b(a,g,h);((c?e>i:i>e)||i===d&&i===f)&&(e=i,f=a)}),f}function Kc(a,b,c){var d=W.callback||mf;return d=d===mf?tb:d,c?d(a,b,c):d}function Lc(a,b,d){var e=W.indexOf||qd;return e=e===qd?c:e,a?e(a,b,d):e}function Mc(a,b,c){for(var d=-1,e=c?c.length:0;++d<e;){var f=c[d],g=f.size;switch(f.type){case'drop':a+=g;break;case'dropRight':b-=g;break;case'take':b=pg(b,a+g);break;case'takeRight':a=og(a,b-g)}}return{start:a,end:b}}function Nc(a){var b=a.length,c=new a.constructor(b);return b&&'string'==typeof a[0]&&Qf.call(a,'index')&&(c.index=a.index,c.input=a.input),c}function Oc(a){var b=a.constructor;return'function'==typeof b&&b instanceof b||(b=Hf),new b}function Pc(a,b,c){var d=a.constructor;switch(b){case ba:return ec(a);case S:case T:return new d(+a);case ca:case da:case ea:case fa:case ga:case ha:case ia:case ja:case ka:var e=a.buffer;return new d(c?ec(e):e,a.byteOffset,a.length);case X:case _:return new d(a);case Z:var f=new d(a.source,Da.exec(a));f.lastIndex=a.lastIndex}return f}function Qc(a,b,c){null==a||Uc(b,a)||(b=ed(b),a=1==b.length?a:Gb(a,Ub(b,0,-1)),b=td(b));var d=null==a?a:a[b];return null==d?w:d.apply(a,c)}function Rc(a){return null!=a&&Wc(Og(a))}function Sc(a,b){return a=+a,b=null==b?Ag:b,a>-1&&a%1==0&&b>a}function Tc(a,b,c){if(!xe(c))return!1;var d=typeof b;if('number'==d?Rc(c)&&Sc(b,c.length):'string'==d&&b in c){var e=c[b];return a===a?a===e:e!==e}return!1}function Uc(a,b){var c=typeof a;if('string'==c&&wa.test(a)||'number'==c)return!0;if(zh(a))return!1;var d=!va.test(a);return d||null!=b&&a in dd(b)}function Vc(a){var b=Ng(a);return!!b&&a===W[b]&&b in Qa.prototype}function Wc(a){return'number'==typeof a&&a>-1&&a%1==0&&Ag>=a}function Xc(a){return a===a&&!xe(a)}function Yc(a,b){var c=a[1],d=b[1],e=c|d,f=F>e,g=d==F&&c==B||d==F&&c==G&&a[7].length<=b[8]||d==(F|G)&&c==B;if(!f&&!g)return a;d&y&&(a[2]=b[2],e|=c&y?0:A);var h=b[3];if(h){var i=a[3];a[3]=i?fc(i,h,b[4]):cb(h),a[4]=i?q(a[3],P):cb(b[4])}return h=b[5],h&&(i=a[5],a[5]=i?gc(i,h,b[6]):cb(h),a[6]=i?q(a[5],P):cb(b[6])),h=b[7],h&&(a[7]=cb(h)),d&F&&(a[8]=null==a[8]?b[8]:pg(a[8],b[8])),null==a[9]&&(a[9]=b[9]),a[0]=b[0],a[1]=e,a}function Zc(a,b){a=dd(a);for(var c=-1,d=b.length,e={};++c<d;){var f=b[c];f in a&&(e[f]=a[f])}return e}function $c(a,b){var c={};return Cb(a,function(a,d,e){b(a,d,e)&&(c[d]=a)}),c}function _c(a,b){for(var c=a.length,d=pg(b.length,c),e=cb(a);d--;){var f=b[d];a[d]=Sc(f,c)?e[f]:w}return a}function ad(a){var b,c=W.support;if(!o(a)||Sf.call(a)!=Y||!Qf.call(a,'constructor')&&(b=a.constructor,'function'==typeof b&&!(b instanceof b)))return!1;var d;return Cb(a,function(a,b){d=b}),d===w||Qf.call(a,d)}function bd(a){for(var b=Oe(a),c=b.length,d=c&&a.length,e=W.support,f=d&&Wc(d)&&(zh(a)||e.nonEnumArgs&&qe(a)),g=-1,h=[];++g<c;){var i=b[g];(f&&Sc(i,d)||Qf.call(a,i))&&h.push(i)}return h}function cd(a){return null==a?[]:Rc(a)?xe(a)?a:Hf(a):Te(a)}function dd(a){return xe(a)?a:Hf(a)}function ed(a){if(zh(a))return a;var b=[];return e(a).replace(xa,function(a,c,d,e){b.push(d?e.replace(Ba,'$1'):c||a)}),b}function fd(a){return a instanceof Qa?a.clone():new aa(a.__wrapped__,a.__chain__,cb(a.__actions__))}function gd(a,b,c){b=(c?Tc(a,b,c):null==b)?1:og(+b||1,1);for(var d=0,e=a?a.length:0,f=-1,g=Bf(Xf(e/b));e>d;)g[++f]=Ub(a,d,d+=b);return g}function hd(a){for(var b=-1,c=a?a.length:0,d=-1,e=[];++b<c;){var f=a[b];f&&(e[++d]=f)}return e}function id(a,b,c){var d=a?a.length:0;return d?((c?Tc(a,b,c):null==b)&&(b=1),Ub(a,0>b?0:b)):[]}function jd(a,b,c){var d=a?a.length:0;return d?((c?Tc(a,b,c):null==b)&&(b=1),b=d-(+b||0),Ub(a,0,0>b?0:b)):[]}function kd(a,b,c){return a&&a.length?_b(a,Kc(b,c,3),!0,!0):[]}function ld(a,b,c){return a&&a.length?_b(a,Kc(b,c,3),!0):[]}function md(a,b,c,d){var e=a?a.length:0;return e?(c&&'number'!=typeof c&&Tc(a,b,c)&&(c=0,d=e),yb(a,b,c,d)):[]}function nd(a){return a?a[0]:w}function od(a,b,c){var d=a?a.length:0;return c&&Tc(a,b,c)&&(b=!1),d?Bb(a,b):[]}function pd(a){var b=a?a.length:0;return b?Bb(a,!0):[]}function qd(a,b,d){var e=a?a.length:0;if(!e)return-1;if('number'==typeof d)d=0>d?og(e+d,0):d;else if(d){var f=bc(a,b),g=a[f];return(b===b?b===g:g!==g)?f:-1}return c(a,b,d||0)}function rd(a){return jd(a,1)}function sd(){for(var a=[],b=-1,d=arguments.length,e=[],f=Lc(),g=f==c,h=[];++b<d;){var i=arguments[b];Rc(i)&&(a.push(i),e.push(g&&i.length>=120?Lg(b&&i):null))}if(d=a.length,2>d)return h;var j=a[0],k=-1,l=j?j.length:0,m=e[0];a:for(;++k<l;)if(i=j[k],(m?$a(m,i):f(h,i,0))<0){for(b=d;--b;){var n=e[b];if((n?$a(n,i):f(a[b],i,0))<0)continue a}m&&m.push(i),h.push(i)}return h}function td(a){var b=a?a.length:0;
return b?a[b-1]:w}function ud(a,b,c){var d=a?a.length:0;if(!d)return-1;var e=d;if('number'==typeof c)e=(0>c?og(d+c,0):pg(c||0,d-1))+1;else if(c){e=bc(a,b,!0)-1;var f=a[e];return(b===b?b===f:f!==f)?e:-1}if(b!==b)return n(a,e,!0);for(;e--;)if(a[e]===b)return e;return-1}function vd(){var a=arguments,b=a[0];if(!b||!b.length)return b;for(var c=0,d=Lc(),e=a.length;++c<e;)for(var f=0,g=a[c];(f=d(b,g,f))>-1;)fg.call(b,f,1);return b}function wd(a,b,c){var d=[];if(!a||!a.length)return d;var e=-1,f=[],g=a.length;for(b=Kc(b,c,3);++e<g;){var h=a[e];b(h,e,a)&&(d.push(h),f.push(e))}return Rb(a,f),d}function xd(a){return id(a,1)}function yd(a,b,c){var d=a?a.length:0;return d?(c&&'number'!=typeof c&&Tc(a,b,c)&&(b=0,c=d),Ub(a,b,c)):[]}function zd(a,b,c){var d=a?a.length:0;return d?((c?Tc(a,b,c):null==b)&&(b=1),Ub(a,0,0>b?0:b)):[]}function Ad(a,b,c){var d=a?a.length:0;return d?((c?Tc(a,b,c):null==b)&&(b=1),b=d-(+b||0),Ub(a,0>b?0:b)):[]}function Bd(a,b,c){return a&&a.length?_b(a,Kc(b,c,3),!1,!0):[]}function Cd(a,b,c){return a&&a.length?_b(a,Kc(b,c,3)):[]}function Dd(a,b,d,e){var f=a?a.length:0;if(!f)return[];null!=b&&'boolean'!=typeof b&&(e=d,d=Tc(a,b,e)?null:b,b=!1);var g=Kc();return g===tb&&null==d||(d=g(d,e,3)),b&&Lc()==c?r(a,d):Zb(a,d)}function Ed(a){if(!a||!a.length)return[];var b=-1,c=0;a=gb(a,function(a){return Rc(a)?(c=og(a.length,c),!0):void 0});for(var d=Bf(c);++b<c;)d[b]=hb(a,Pb(b));return d}function Fd(a,b,c){var d=a?a.length:0;if(!d)return[];var e=Ed(a);return null==b?e:(b=dc(b,c,4),hb(e,function(a){return kb(a,b,w,!0)}))}function Gd(){for(var a=-1,b=arguments.length;++a<b;){var c=arguments[a];if(Rc(c))var d=d?wb(d,c).concat(wb(c,d)):c}return d?Zb(d):[]}function Hd(a,b){var c=-1,d=a?a.length:0,e={};for(!d||b||zh(a[0])||(b=[]);++c<d;){var f=a[c];b?e[f]=b[c]:f&&(e[f[0]]=f[1])}return e}function Id(a){var b=W(a);return b.__chain__=!0,b}function Jd(a,b,c){return b.call(c,a),a}function Kd(a,b,c){return b.call(c,a)}function Ld(){return Id(this)}function Md(){return new aa(this.value(),this.__chain__)}function Nd(a){for(var b,c=this;c instanceof $;){var d=fd(c);b?e.__wrapped__=d:b=d;var e=d;c=c.__wrapped__}return e.__wrapped__=a,b}function Od(){var a=this.__wrapped__;return a instanceof Qa?(this.__actions__.length&&(a=new Qa(this)),new aa(a.reverse(),this.__chain__)):this.thru(function(a){return a.reverse()})}function Pd(){return this.value()+''}function Qd(){return ac(this.__wrapped__,this.__actions__)}function Rd(a,b,c){var d=zh(a)?fb:xb;return c&&Tc(a,b,c)&&(b=null),'function'==typeof b&&c===w||(b=Kc(b,c,3)),d(a,b)}function Sd(a,b,c){var d=zh(a)?gb:zb;return b=Kc(b,c,3),d(a,b)}function Td(a,b){return bh(a,Lb(b))}function Ud(a,b,c,d){var e=a?Og(a):0;return Wc(e)||(a=Te(a),e=a.length),e?(c='number'!=typeof c||d&&Tc(b,c,d)?0:0>c?og(e+c,0):c||0,'string'==typeof a||!zh(a)&&Ee(a)?e>c&&a.indexOf(b,c)>-1:Lc(a,b,c)>-1):!1}function Vd(a,b,c){var d=zh(a)?hb:Kb;return b=Kc(b,c,3),d(a,b)}function Wd(a,b){return Vd(a,uf(b))}function Xd(a,b,c){var d=zh(a)?gb:zb;return b=Kc(b,c,3),d(a,function(a,c,d){return!b(a,c,d)})}function Yd(a,b,c){if(c?Tc(a,b,c):null==b){a=cd(a);var d=a.length;return d>0?a[Sb(0,d-1)]:w}var e=Zd(a);return e.length=pg(0>b?0:+b||0,e.length),e}function Zd(a){a=cd(a);for(var b=-1,c=a.length,d=Bf(c);++b<c;){var e=Sb(0,b);b!=e&&(d[b]=d[e]),d[e]=a[b]}return d}function $d(a){var b=a?Og(a):0;return Wc(b)?b:Lh(a).length}function _d(a,b,c){var d=zh(a)?mb:Vb;return c&&Tc(a,b,c)&&(b=null),'function'==typeof b&&c===w||(b=Kc(b,c,3)),d(a,b)}function ae(a,b,c){if(null==a)return[];c&&Tc(a,b,c)&&(b=null);var d=-1;b=Kc(b,c,3);var e=Kb(a,function(a,c,e){return{criteria:b(a,c,e),index:++d,value:a}});return Wb(e,i)}function be(a,b,c,d){return null==a?[]:(d&&Tc(b,c,d)&&(c=null),zh(b)||(b=null==b?[]:[b]),zh(c)||(c=null==c?[]:[c]),Xb(a,b,c))}function ce(a,b){return Sd(a,Lb(b))}function de(a,b){if('function'!=typeof b){if('function'!=typeof a)throw new Kf(O);var c=a;a=b,b=c}return a=mg(a=+a)?a:0,function(){return--a<1?b.apply(this,arguments):void 0}}function ee(a,b,c){return c&&Tc(a,b,c)&&(b=null),b=a&&null==b?a.length:og(+b||0,0),Fc(a,F,null,null,null,null,b)}function fe(a,b){var c;if('function'!=typeof b){if('function'!=typeof a)throw new Kf(O);var d=a;a=b,b=d}return function(){return--a>0&&(c=b.apply(this,arguments)),1>=a&&(b=null),c}}function ge(a,b,c){function d(){m&&Yf(m),i&&Yf(i),i=m=n=w}function e(){var c=b-(mh()-k);if(0>=c||c>b){i&&Yf(i);var d=n;i=m=n=w,d&&(o=mh(),j=a.apply(l,h),m||i||(h=l=null))}else m=eg(e,c)}function f(){m&&Yf(m),i=m=n=w,(q||p!==b)&&(o=mh(),j=a.apply(l,h),m||i||(h=l=null))}function g(){if(h=arguments,k=mh(),l=this,n=q&&(m||!r),p===!1)var c=r&&!m;else{i||r||(o=k);var d=p-(k-o),g=0>=d||d>p;g?(i&&(i=Yf(i)),o=k,j=a.apply(l,h)):i||(i=eg(f,d))}return g&&m?m=Yf(m):m||b===p||(m=eg(e,b)),c&&(g=!0,j=a.apply(l,h)),!g||m||i||(h=l=null),j}var h,i,j,k,l,m,n,o=0,p=!1,q=!0;if('function'!=typeof a)throw new Kf(O);if(b=0>b?0:+b||0,c===!0){var r=!0;q=!1}else xe(c)&&(r=c.leading,p='maxWait'in c&&og(+c.maxWait||0,b),q='trailing'in c?c.trailing:q);return g.cancel=d,g}function he(a,b){if('function'!=typeof a||b&&'function'!=typeof b)throw new Kf(O);var c=function(){var d=arguments,e=c.cache,f=b?b.apply(this,d):d[0];if(e.has(f))return e.get(f);var g=a.apply(this,d);return e.set(f,g),g};return c.cache=new he.Cache,c}function ie(a){if('function'!=typeof a)throw new Kf(O);return function(){return!a.apply(this,arguments)}}function je(a){return fe(2,a)}function ke(a,b){if('function'!=typeof a)throw new Kf(O);return b=og(b===w?a.length-1:+b||0,0),function(){for(var c=arguments,d=-1,e=og(c.length-b,0),f=Bf(e);++d<e;)f[d]=c[b+d];switch(b){case 0:return a.call(this,f);case 1:return a.call(this,c[0],f);case 2:return a.call(this,c[0],c[1],f)}var g=Bf(b+1);for(d=-1;++d<b;)g[d]=c[d];return g[b]=f,a.apply(this,g)}}function le(a){if('function'!=typeof a)throw new Kf(O);return function(b){return a.apply(this,b)}}function me(a,b,c){var d=!0,e=!0;if('function'!=typeof a)throw new Kf(O);return c===!1?d=!1:xe(c)&&(d='leading'in c?!!c.leading:d,e='trailing'in c?!!c.trailing:e),Pa.leading=d,Pa.maxWait=+b,Pa.trailing=e,ge(a,b,Pa)}function ne(a,b){return b=null==b?of:b,Fc(b,D,null,[a],[])}function oe(a,b,c,d){return b&&'boolean'!=typeof b&&Tc(a,b,c)?b=!1:'function'==typeof b&&(d=c,c=b,b=!1),c='function'==typeof c&&dc(c,d,1),ub(a,b,c)}function pe(a,b,c){return b='function'==typeof b&&dc(b,c,1),ub(a,!0,b)}function qe(a){return o(a)&&Rc(a)&&Sf.call(a)==Q}function re(a){return a===!0||a===!1||o(a)&&Sf.call(a)==S}function se(a){return o(a)&&Sf.call(a)==T}function te(a){return!!a&&1===a.nodeType&&o(a)&&Sf.call(a).indexOf('Element')>-1}function ue(a){return null==a?!0:Rc(a)&&(zh(a)||Ee(a)||qe(a)||o(a)&&Bh(a.splice))?!a.length:!Lh(a).length}function ve(a,b,c,d){if(c='function'==typeof c&&dc(c,d,3),!c&&Xc(a)&&Xc(b))return a===b;var e=c?c(a,b):w;return e===w?Hb(a,b,c):!!e}function we(a){return o(a)&&'string'==typeof a.message&&Sf.call(a)==U}function xe(a){var b=typeof a;return'function'==b||!!a&&'object'==b}function ye(a,b,c,d){var e=Lh(b),f=e.length;if(!f)return!0;if(null==a)return!1;if(c='function'==typeof c&&dc(c,d,3),a=dd(a),!c&&1==f){var g=e[0],h=b[g];if(Xc(h))return h===a[g]&&(h!==w||g in a)}for(var i=Bf(f),j=Bf(f);f--;)h=i[f]=b[e[f]],j[f]=Xc(h);return Jb(a,e,i,j,c)}function ze(a){return Ce(a)&&a!=+a}function Ae(a){return null==a?!1:Sf.call(a)==V?Uf.test(Pf.call(a)):o(a)&&Fa.test(a)}function Be(a){return null===a}function Ce(a){return'number'==typeof a||o(a)&&Sf.call(a)==X}function De(a){return o(a)&&Sf.call(a)==Z}function Ee(a){return'string'==typeof a||o(a)&&Sf.call(a)==_}function Fe(a){return o(a)&&Wc(a.length)&&!!Na[Sf.call(a)]}function Ge(a){return a===w}function He(a){var b=a?Og(a):0;return Wc(b)?b?cb(a):[]:Te(a)}function Ie(a){return sb(a,Oe(a))}function Je(a,b,c){var d=Fg(a);return c&&Tc(a,b,c)&&(b=null),b?Eg(d,b):d}function Ke(a){return Fb(a,Oe(a))}function Le(a,b,c){var d=null==a?w:Gb(a,ed(b),b+'');return d===w?c:d}function Me(a,b){if(null==a)return!1;var c=Qf.call(a,b);return c||Uc(b)||(b=ed(b),a=1==b.length?a:Gb(a,Ub(b,0,-1)),b=td(b),c=null!=a&&Qf.call(a,b)),c}function Ne(a,b,c){c&&Tc(a,b,c)&&(b=null);for(var d=-1,e=Lh(a),f=e.length,g={};++d<f;){var h=e[d],i=a[h];b?Qf.call(g,i)?g[i].push(h):g[i]=[h]:g[i]=h}return g}function Oe(a){if(null==a)return[];xe(a)||(a=Hf(a));var b=a.length;b=b&&Wc(b)&&(zh(a)||Dg.nonEnumArgs&&qe(a))&&b||0;for(var c=a.constructor,d=-1,e='function'==typeof c&&c.prototype===a,f=Bf(b),g=b>0;++d<b;)f[d]=d+'';for(var h in a)g&&Sc(h,b)||'constructor'==h&&(e||!Qf.call(a,h))||f.push(h);return f}function Pe(a){for(var b=-1,c=Lh(a),d=c.length,e=Bf(d);++b<d;){var f=c[b];e[b]=[f,a[f]]}return e}function Qe(a,b,c){var d=null==a?w:a[b];return d===w&&(null==a||Uc(b,a)||(b=ed(b),a=1==b.length?a:Gb(a,Ub(b,0,-1)),d=null==a?w:a[td(b)]),d=d===w?c:d),Bh(d)?d.call(a):d}function Re(a,b,c){if(null==a)return a;var d=b+'';b=null!=a[d]||Uc(b,a)?[d]:ed(b);for(var e=-1,f=b.length,g=f-1,h=a;null!=h&&++e<f;){var i=b[e];xe(h)&&(e==g?h[i]=c:null==h[i]&&(h[i]=Sc(b[e+1])?[]:{})),h=h[i]}return a}function Se(a,b,c,d){var e=zh(a)||Fe(a);if(b=Kc(b,d,4),null==c)if(e||xe(a)){var f=a.constructor;c=e?zh(a)?new f:[]:Fg(Bh(f)&&f.prototype)}else c={};return(e?db:Db)(a,function(a,d,e){return b(c,a,d,e)}),c}function Te(a){return $b(a,Lh(a))}function Ue(a){return $b(a,Oe(a))}function Ve(a,b,c){return b=+b||0,'undefined'==typeof c?(c=b,b=0):c=+c||0,a>=pg(b,c)&&a<og(b,c)}function We(a,b,c){c&&Tc(a,b,c)&&(b=c=null);var d=null==a,e=null==b;if(null==c&&(e&&'boolean'==typeof a?(c=a,a=1):'boolean'==typeof b&&(c=b,e=!0)),d&&e&&(b=1,e=!1),a=+a||0,e?(b=a,a=0):b=+b||0,c||a%1||b%1){var f=tg();return pg(a+f*(b-a+parseFloat('1e-'+((f+'').length-1))),b)}return Sb(a,b)}function Xe(a){return a=e(a),a&&a.charAt(0).toUpperCase()+a.slice(1)}function Ye(a){return a=e(a),a&&a.replace(Ga,k).replace(Aa,'')}function Ze(a,b,c){a=e(a),b+='';var d=a.length;return c=c===w?d:pg(0>c?0:+c||0,d),c-=b.length,c>=0&&a.indexOf(b,c)==c}function $e(a){return a=e(a),a&&ra.test(a)?a.replace(pa,l):a}function _e(a){return a=e(a),a&&za.test(a)?a.replace(ya,'\\$&'):a}function af(a,b,c){a=e(a),b=+b;var d=a.length;if(d>=b||!mg(b))return a;var f=(b-d)/2,g=Zf(f),h=Xf(f);return c=Cc('',h,c),c.slice(0,g)+a+c}function bf(a,b,c){return c&&Tc(a,b,c)&&(b=0),sg(a,b)}function cf(a,b){var c='';if(a=e(a),b=+b,1>b||!a||!mg(b))return c;do b%2&&(c+=a),b=Zf(b/2),a+=a;while(b);return c}function df(a,b,c){return a=e(a),c=null==c?0:pg(0>c?0:+c||0,a.length),a.lastIndexOf(b,c)==c}function ef(a,b,c){var d=W.templateSettings;c&&Tc(a,b,c)&&(b=c=null),a=e(a),b=qb(Eg({},c||b),d,pb);var f=qb(Eg({},b.imports),d.imports,pb),g=Lh(f),h=$b(f,g),i,j,k=0,l=b.interpolate||Ha,n="__p += '",o=If((b.escape||Ha).source+'|'+l.source+'|'+(l===ua?Ca:Ha).source+'|'+(b.evaluate||Ha).source+'|$','g'),p='//# sourceURL='+('sourceURL'in b?b.sourceURL:'lodash.templateSources['+ ++Ma+']')+'\n';a.replace(o,function(b,c,d,e,f,g){return d||(d=e),n+=a.slice(k,g).replace(Ia,m),c&&(i=!0,n+="' +\n__e("+c+") +\n'"),f&&(j=!0,n+="';\n"+f+";\n__p += '"),d&&(n+="' +\n((__t = ("+d+")) == null ? '' : __t) +\n'"),k=g+b.length,b}),n+="';\n";var q=b.variable;q||(n='with (obj) {\n'+n+'\n}\n'),n=(j?n.replace(la,''):n).replace(ma,'$1').replace(na,'$1;'),n='function('+(q||'obj')+') {\n'+(q?'':'obj || (obj = {});\n')+"var __t, __p = ''"+(i?', __e = _.escape':'')+(j?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":';\n')+n+'return __p\n}';var r=Xh(function(){return Ef(g,p+'return '+n).apply(w,h)});if(r.source=n,we(r))throw r;return r}function ff(a,b,c){var d=a;return a=e(a),a?(c?Tc(d,b,c):null==b)?a.slice(s(a),t(a)+1):(b+='',a.slice(g(a,b),h(a,b)+1)):a}function gf(a,b,c){var d=a;return a=e(a),a?(c?Tc(d,b,c):null==b)?a.slice(s(a)):a.slice(g(a,b+'')):a}function hf(a,b,c){var d=a;return a=e(a),a?(c?Tc(d,b,c):null==b)?a.slice(0,t(a)+1):a.slice(0,h(a,b+'')+1):a}function jf(a,b,c){c&&Tc(a,b,c)&&(b=null);var d=H,f=I;if(null!=b)if(xe(b)){var g='separator'in b?b.separator:g;d='length'in b?+b.length||0:d,f='omission'in b?e(b.omission):f}else d=+b||0;if(a=e(a),d>=a.length)return a;var h=d-f.length;if(1>h)return f;var i=a.slice(0,h);if(null==g)return i+f;if(De(g)){if(a.slice(h).search(g)){var j,k,l=a.slice(0,h);for(g.global||(g=If(g.source,(Da.exec(g)||'')+'g')),g.lastIndex=0;j=g.exec(l);)k=j.index;i=i.slice(0,null==k?h:k)}}else if(a.indexOf(g,h)!=h){var m=i.lastIndexOf(g);m>-1&&(i=i.slice(0,m))}return i+f}function kf(a){return a=e(a),a&&qa.test(a)?a.replace(oa,u):a}function lf(a,b,c){return c&&Tc(a,b,c)&&(b=null),a=e(a),a.match(b||Ja)||[]}function mf(a,b,c){return c&&Tc(a,b,c)&&(b=null),o(a)?pf(a):tb(a,b)}function nf(a){return function(){return a}}function of(a){return a}function pf(a){return Lb(ub(a,!0))}function qf(a,b){return Mb(a,ub(b,!0))}function rf(a,b,c){if(null==c){var d=xe(b),e=d&&Lh(b),f=e&&e.length&&Fb(b,e);(f?f.length:d)||(f=!1,c=b,b=a,a=this)}f||(f=Fb(b,Lh(b)));var g=!0,h=-1,i=Bh(a),j=f.length;c===!1?g=!1:xe(c)&&'chain'in c&&(g=c.chain);for(;++h<j;){var k=f[h],l=b[k];a[k]=l,i&&(a.prototype[k]=function(b){return function(){var c=this.__chain__;if(g||c){var d=a(this.__wrapped__),e=d.__actions__=cb(this.__actions__);return e.push({func:b,args:arguments,thisArg:a}),d.__chain__=c,d}var f=[this.value()];return ag.apply(f,arguments),b.apply(a,f)}}(l))}return a}function sf(){return p._=Tf,this}function tf(){}function uf(a){return Uc(a)?Pb(a):Qb(a)}function vf(a){return function(b){return Gb(a,ed(b),b+'')}}function wf(a,b,c){c&&Tc(a,b,c)&&(b=c=null),a=+a||0,c=null==c?1:+c||0,null==b?(b=a,a=0):b=+b||0;for(var d=-1,e=og(Xf((b-a)/(c||1)),0),f=Bf(e);++d<e;)f[d]=a,a+=c;return f}function xf(a,b,c){if(a=Zf(a),1>a||!mg(a))return[];var d=-1,e=Bf(pg(a,wg));for(b=dc(b,c,1);++d<a;)wg>d?e[d]=b(d):b(d);return e}function yf(a){var b=++Rf;return e(a)+b}function zf(a,b){return(+a||0)+(+b||0)}function Af(a,b,c){c&&Tc(a,b,c)&&(b=null);var d=Kc(),e=null==b;return d===tb&&e||(e=!1,b=d(b,c,3)),e?nb(zh(a)?a:cd(a)):Yb(a,b)}p=p?ab.defaults(_a.Object(),p,ab.pick(_a,La)):_a;var Bf=p.Array,Cf=p.Date,Df=p.Error,Ef=p.Function,Ff=p.Math,Gf=p.Number,Hf=p.Object,If=p.RegExp,Jf=p.String,Kf=p.TypeError,Lf=Bf.prototype,Mf=Hf.prototype,Nf=Jf.prototype,Of=(Of=p.window)&&Of.document,Pf=Ef.prototype.toString,Qf=Mf.hasOwnProperty,Rf=0,Sf=Mf.toString,Tf=p._,Uf=If('^'+_e(Sf).replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$'),Vf=Ae(Vf=p.ArrayBuffer)&&Vf,Wf=Ae(Wf=Vf&&new Vf(0).slice)&&Wf,Xf=Ff.ceil,Yf=p.clearTimeout,Zf=Ff.floor,$f=Ae($f=Hf.getOwnPropertySymbols)&&$f,_f=Ae(_f=Hf.getPrototypeOf)&&_f,ag=Lf.push,bg=Ae(bg=Hf.preventExtensions)&&bg,cg=Mf.propertyIsEnumerable,dg=Ae(dg=p.Set)&&dg,eg=p.setTimeout,fg=Lf.splice,gg=Ae(gg=p.Uint8Array)&&gg,hg=Ae(hg=p.WeakMap)&&hg,ig=function(){try{var a=Ae(a=p.Float64Array)&&a,b=new a(new Vf(10),0,1)&&a}catch(c){}return b}(),jg=function(){var a=bg&&Ae(a=Hf.assign)&&a;try{if(a){var b=bg({1:0});b[0]=1}}catch(c){try{a(b,'xo')}catch(c){}return!b[1]&&a}return!1}(),kg=Ae(kg=Bf.isArray)&&kg,lg=Ae(lg=Hf.create)&&lg,mg=p.isFinite,ng=Ae(ng=Hf.keys)&&ng,og=Ff.max,pg=Ff.min,qg=Ae(qg=Cf.now)&&qg,rg=Ae(rg=Gf.isFinite)&&rg,sg=p.parseInt,tg=Ff.random,ug=Gf.NEGATIVE_INFINITY,vg=Gf.POSITIVE_INFINITY,wg=Ff.pow(2,32)-1,xg=wg-1,yg=wg>>>1,zg=ig?ig.BYTES_PER_ELEMENT:0,Ag=Ff.pow(2,53)-1,Bg=hg&&new hg,Cg={},Dg=W.support={};!function(a){var b=function(){this.x=a},c=arguments,d={0:a,length:a},e=[];b.prototype={valueOf:a,y:a};for(var f in new b)e.push(f);Dg.funcDecomp=/\bthis\b/.test(function(){return this}),Dg.funcNames='string'==typeof Ef.name;try{Dg.dom=11===Of.createDocumentFragment().nodeType}catch(g){Dg.dom=!1}try{Dg.nonEnumArgs=!cg.call(c,1)}catch(g){Dg.nonEnumArgs=!0}}(1,0),W.templateSettings={escape:sa,evaluate:ta,interpolate:ua,variable:'',imports:{_:W}};var Eg=jg||function(a,b){return null==b?a:sb(b,Pg(b),sb(b,Lh(b),a))},Fg=function(){function a(){}return function(b){if(xe(b)){a.prototype=b;var c=new a;a.prototype=null}return c||p.Object()}}(),Gg=jc(Db),Hg=jc(Eb,!0),Ig=kc(),Jg=kc(!0),Kg=Bg?function(a,b){return Bg.set(a,b),a}:of;Wf||(ec=Vf&&gg?function(a){var b=a.byteLength,c=ig?Zf(b/zg):0,d=c*zg,e=new Vf(b);if(c){var f=new ig(e,0,c);f.set(new ig(a,0,c))}return b!=d&&(f=new gg(e,d),f.set(new gg(a,d))),e}:nf(null));var Lg=lg&&dg?function(a){return new Za(a)}:nf(null),Mg=Bg?function(a){return Bg.get(a)}:tf,Ng=function(){return Dg.funcNames?'constant'==nf.name?Pb('name'):function(a){for(var b=a.name,c=Cg[b],d=c?c.length:0;d--;){var e=c[d],f=e.func;if(null==f||f==a)return e.name}return b}:nf('')}(),Og=Pb('length'),Pg=$f?function(a){return $f(dd(a))}:nf([]),Qg=function(){var a=0,b=0;return function(c,d){var e=mh(),f=K-(e-b);if(b=e,f>0){if(++a>=J)return c}else a=0;return Kg(c,d)}}(),Rg=ke(function(a,b){return Rc(a)?wb(a,Bb(b,!1,!0)):[]}),Sg=rc(),Tg=rc(!0),Ug=ke(function(b,c){c=Bb(c);var d=rb(b,c);return Rb(b,c.sort(a)),d}),Vg=Ec(),Wg=Ec(!0),Xg=ke(function(a){return Zb(Bb(a,!1,!0))}),Yg=ke(function(a,b){return Rc(a)?wb(a,b):[]}),Zg=ke(Ed),$g=ke(function(a){var b=a.length,c=a[b-2],d=a[b-1];return b>2&&'function'==typeof c?b-=2:(c=b>1&&'function'==typeof d?(--b,d):w,d=w),a.length=b,Fd(a,c,d)}),_g=ke(function(a,b){return rb(a,Bb(b))}),ah=hc(function(a,b,c){Qf.call(a,c)?++a[c]:a[c]=1}),bh=qc(Gg),ch=qc(Hg,!0),dh=uc(db,Gg),eh=uc(eb,Hg),fh=hc(function(a,b,c){Qf.call(a,c)?a[c].push(b):a[c]=[b]}),gh=hc(function(a,b,c){a[c]=b}),hh=ke(function(a,b,c){var d=-1,e='function'==typeof b,f=Uc(b),g=Rc(a)?Bf(a.length):[];return Gg(a,function(a){var h=e?b:f&&null!=a&&a[b];g[++d]=h?h.apply(a,c):Qc(a,b,c)}),g}),ih=hc(function(a,b,c){a[c?0:1].push(b)},function(){return[[],[]]}),jh=Ac(kb,Gg),kh=Ac(lb,Hg),lh=ke(function(a,b){if(null==a)return[];var c=b[2];return c&&Tc(b[0],b[1],c)&&(b.length=1),Xb(a,Bb(b),[])}),mh=qg||function(){return(new Cf).getTime()},nh=ke(function(a,b,c){var d=y;if(c.length){var e=q(c,nh.placeholder);d|=D}return Fc(a,d,b,c,e)}),oh=ke(function(a,b){b=b.length?Bb(b):Ke(a);for(var c=-1,d=b.length;++c<d;){var e=b[c];a[e]=Fc(a[e],y,a)}return a}),ph=ke(function(a,b,c){var d=y|z;if(c.length){var e=q(c,ph.placeholder);d|=D}return Fc(b,d,a,c,e)}),qh=oc(B),rh=oc(C),sh=ke(function(a,b){return vb(a,1,b)}),th=ke(function(a,b,c){return vb(a,b,c)}),uh=tc(),vh=tc(!0),wh=zc(D),xh=zc(E),yh=ke(function(a,b){return Fc(a,G,null,null,null,Bb(b))}),zh=kg||function(a){return o(a)&&Wc(a.length)&&Sf.call(a)==R};Dg.dom||(te=function(a){return!!a&&1===a.nodeType&&o(a)&&!Ch(a)});var Ah=rg||function(a){return'number'==typeof a&&mg(a)},Bh=d(/x/)||gg&&!d(gg)?function(a){return Sf.call(a)==V}:d,Ch=_f?function(a){if(!a||Sf.call(a)!=Y)return!1;var b=a.valueOf,c=Ae(b)&&(c=_f(b))&&_f(c);return c?a==c||_f(a)==c:ad(a)}:ad,Dh=ic(function(a,b,c){return c?qb(a,b,c):Eg(a,b)}),Eh=ke(function(a){var b=a[0];return null==b?b:(a.push(ob),Dh.apply(w,a))}),Fh=sc(Db),Gh=sc(Eb),Hh=vc(Ig),Ih=vc(Jg),Jh=wc(Db),Kh=wc(Eb),Lh=ng?function(a){var b=null!=a&&a.constructor;return'function'==typeof b&&b.prototype===a||'function'!=typeof a&&Rc(a)?bd(a):xe(a)?ng(a):[]}:bd,Mh=xc(!0),Nh=xc(),Oh=ic(Nb),Ph=ke(function(a,b){if(null==a)return{};if('function'!=typeof b[0]){var b=hb(Bb(b),Jf);return Zc(a,wb(Oe(a),b))}var c=dc(b[0],b[1],3);return $c(a,function(a,b,d){return!c(a,b,d)})}),Qh=ke(function(a,b){return null==a?{}:'function'==typeof b[0]?$c(a,dc(b[0],b[1],3)):Zc(a,Bb(b))}),Rh=mc(function(a,b,c){return b=b.toLowerCase(),a+(c?b.charAt(0).toUpperCase()+b.slice(1):b)}),Sh=mc(function(a,b,c){return a+(c?'-':'')+b.toLowerCase()}),Th=yc(),Uh=yc(!0);8!=sg(Ka+'08')&&(bf=function(a,b,c){return(c?Tc(a,b,c):null==b)?b=0:b&&(b=+b),a=ff(a),sg(a,b||(Ea.test(a)?16:10))});var Vh=mc(function(a,b,c){return a+(c?'_':'')+b.toLowerCase()}),Wh=mc(function(a,b,c){return a+(c?' ':'')+(b.charAt(0).toUpperCase()+b.slice(1))}),Xh=ke(function(a,b){try{return a.apply(w,b)}catch(c){return we(c)?c:new Df(c)}}),Yh=ke(function(a,b){return function(c){return Qc(c,a,b)}}),Zh=ke(function(a,b){return function(c){return Qc(a,c,b)}}),$h=pc(ib),_h=pc(jb,!0);return W.prototype=$.prototype,aa.prototype=Fg($.prototype),aa.prototype.constructor=aa,Qa.prototype=Fg($.prototype),Qa.prototype.constructor=Qa,Ua.prototype['delete']=Va,Ua.prototype.get=Wa,Ua.prototype.has=Xa,Ua.prototype.set=Ya,Za.prototype.push=bb,he.Cache=Ua,W.after=de,W.ary=ee,W.assign=Dh,W.at=_g,W.before=fe,W.bind=nh,W.bindAll=oh,W.bindKey=ph,W.callback=mf,W.chain=Id,W.chunk=gd,W.compact=hd,W.constant=nf,W.countBy=ah,W.create=Je,W.curry=qh,W.curryRight=rh,W.debounce=ge,W.defaults=Eh,W.defer=sh,W.delay=th,W.difference=Rg,W.drop=id,W.dropRight=jd,W.dropRightWhile=kd,W.dropWhile=ld,W.fill=md,W.filter=Sd,W.flatten=od,W.flattenDeep=pd,W.flow=uh,W.flowRight=vh,W.forEach=dh,W.forEachRight=eh,W.forIn=Hh,W.forInRight=Ih,W.forOwn=Jh,W.forOwnRight=Kh,W.functions=Ke,W.groupBy=fh,W.indexBy=gh,W.initial=rd,W.intersection=sd,W.invert=Ne,W.invoke=hh,W.keys=Lh,W.keysIn=Oe,W.map=Vd,W.mapKeys=Mh,W.mapValues=Nh,W.matches=pf,W.matchesProperty=qf,W.memoize=he,W.merge=Oh,W.method=Yh,W.methodOf=Zh,W.mixin=rf,W.negate=ie,W.omit=Ph,W.once=je,W.pairs=Pe,W.partial=wh,W.partialRight=xh,W.partition=ih,W.pick=Qh,W.pluck=Wd,W.property=uf,W.propertyOf=vf,W.pull=vd,W.pullAt=Ug,W.range=wf,W.rearg=yh,W.reject=Xd,W.remove=wd,W.rest=xd,W.restParam=ke,W.set=Re,W.shuffle=Zd,W.slice=yd,W.sortBy=ae,W.sortByAll=lh,W.sortByOrder=be,W.spread=le,W.take=zd,W.takeRight=Ad,W.takeRightWhile=Bd,W.takeWhile=Cd,W.tap=Jd,W.throttle=me,W.thru=Kd,W.times=xf,W.toArray=He,W.toPlainObject=Ie,W.transform=Se,W.union=Xg,W.uniq=Dd,W.unzip=Ed,W.unzipWith=Fd,W.values=Te,W.valuesIn=Ue,W.where=ce,W.without=Yg,W.wrap=ne,W.xor=Gd,W.zip=Zg,W.zipObject=Hd,W.zipWith=$g,W.backflow=vh,W.collect=Vd,W.compose=vh,W.each=dh,W.eachRight=eh,W.extend=Dh,W.iteratee=mf,W.methods=Ke,W.object=Hd,W.select=Sd,W.tail=xd,W.unique=Dd,rf(W,W),W.add=zf,W.attempt=Xh,W.camelCase=Rh,W.capitalize=Xe,W.clone=oe,W.cloneDeep=pe,W.deburr=Ye,W.endsWith=Ze,W.escape=$e,W.escapeRegExp=_e,W.every=Rd,W.find=bh,W.findIndex=Sg,W.findKey=Fh,W.findLast=ch,W.findLastIndex=Tg,W.findLastKey=Gh,W.findWhere=Td,W.first=nd,W.get=Le,W.has=Me,W.identity=of,W.includes=Ud,W.indexOf=qd,W.inRange=Ve,W.isArguments=qe,W.isArray=zh,W.isBoolean=re,W.isDate=se,W.isElement=te,W.isEmpty=ue,W.isEqual=ve,W.isError=we,W.isFinite=Ah,W.isFunction=Bh,W.isMatch=ye,W.isNaN=ze,W.isNative=Ae,W.isNull=Be,W.isNumber=Ce,W.isObject=xe,W.isPlainObject=Ch,W.isRegExp=De,W.isString=Ee,W.isTypedArray=Fe,W.isUndefined=Ge,W.kebabCase=Sh,W.last=td,W.lastIndexOf=ud,W.max=$h,W.min=_h,W.noConflict=sf,W.noop=tf,W.now=mh,W.pad=af,W.padLeft=Th,W.padRight=Uh,W.parseInt=bf,W.random=We,W.reduce=jh,W.reduceRight=kh,W.repeat=cf,W.result=Qe,W.runInContext=v,W.size=$d,W.snakeCase=Vh,W.some=_d,W.sortedIndex=Vg,W.sortedLastIndex=Wg,W.startCase=Wh,W.startsWith=df,W.sum=Af,W.template=ef,W.trim=ff,W.trimLeft=gf,W.trimRight=hf,W.trunc=jf,W.unescape=kf,W.uniqueId=yf,W.words=lf,W.all=Rd,W.any=_d,W.contains=Ud,W.detect=bh,W.foldl=jh,W.foldr=kh,W.head=nd,W.include=Ud,W.inject=jh,rf(W,function(){var a={};return Db(W,function(b,c){W.prototype[c]||(a[c]=b)}),a}(),!1),W.sample=Yd,W.prototype.sample=function(a){return this.__chain__||null!=a?this.thru(function(b){return Yd(b,a)}):Yd(this.value())},W.VERSION=x,db(['bind','bindKey','curry','curryRight','partial','partialRight'],function(a){W[a].placeholder=W}),db(['dropWhile','filter','map','takeWhile'],function(a,b){var c=b!=N,d=b==L;Qa.prototype[a]=function(a,e){var f=this.__filtered__,g=f&&d?new Qa(this):this.clone(),h=g.__iteratees__||(g.__iteratees__=[]);return h.push({done:!1,count:0,index:0,iteratee:Kc(a,e,1),limit:-1,type:b}),g.__filtered__=f||c,g}}),db(['drop','take'],function(a,b){var c=a+'While';Qa.prototype[a]=function(c){var d=this.__filtered__,e=d&&!b?this.dropWhile():this.clone();if(c=null==c?1:og(Zf(c)||0,0),d)b?e.__takeCount__=pg(e.__takeCount__,c):td(e.__iteratees__).limit=c;else{var f=e.__views__||(e.__views__=[]);f.push({size:c,type:a+(e.__dir__<0?'Right':'')})}return e},Qa.prototype[a+'Right']=function(b){return this.reverse()[a](b).reverse()},Qa.prototype[a+'RightWhile']=function(a,b){return this.reverse()[c](a,b).reverse()}}),db(['first','last'],function(a,b){var c='take'+(b?'Right':'');Qa.prototype[a]=function(){return this[c](1).value()[0]}}),db(['initial','rest'],function(a,b){var c='drop'+(b?'':'Right');Qa.prototype[a]=function(){return this[c](1)}}),db(['pluck','where'],function(a,b){var c=b?'filter':'map',d=b?Lb:uf;Qa.prototype[a]=function(a){return this[c](d(a))}}),Qa.prototype.compact=function(){return this.filter(of)},Qa.prototype.reject=function(a,b){return a=Kc(a,b,1),this.filter(function(b){return!a(b)})},Qa.prototype.slice=function(a,b){a=null==a?0:+a||0;var c=this;return 0>a?c=this.takeRight(-a):a&&(c=this.drop(a)),b!==w&&(b=+b||0,c=0>b?c.dropRight(-b):c.take(b-a)),c},Qa.prototype.toArray=function(){return this.drop(0)},Db(Qa.prototype,function(a,b){var c=W[b];if(c){var d=/^(?:filter|map|reject)|While$/.test(b),e=/^(?:first|last)$/.test(b);W.prototype[b]=function(){var b=arguments,f=this.__chain__,g=this.__wrapped__,h=!!this.__actions__.length,i=g instanceof Qa,j=b[0],k=i||zh(g);k&&d&&'function'==typeof j&&1!=j.length&&(i=k=!1);var l=i&&!h;if(e&&!f)return l?a.call(g):c.call(W,this.value());var m=function(a){var d=[a];return ag.apply(d,b),c.apply(W,d)};if(k){var n=l?g:new Qa(this),o=a.apply(n,b);if(!e&&(h||o.__actions__)){var p=o.__actions__||(o.__actions__=[]);p.push({func:Kd,args:[m],thisArg:W})}return new aa(o,f)}return this.thru(m)}}}),db(['concat','join','pop','push','replace','shift','sort','splice','split','unshift'],function(a){var b=(/^(?:replace|split)$/.test(a)?Nf:Lf)[a],c=/^(?:push|sort|unshift)$/.test(a)?'tap':'thru',d=/^(?:join|pop|replace|shift)$/.test(a);W.prototype[a]=function(){var a=arguments;return d&&!this.__chain__?b.apply(this.value(),a):this[c](function(c){return b.apply(c,a)})}}),Db(Qa.prototype,function(a,b){var c=W[b];if(c){var d=c.name,e=Cg[d]||(Cg[d]=[]);e.push({name:b,func:c})}}),Cg[Bc(null,z).name]=[{name:'wrapper',func:null}],Qa.prototype.clone=Ra,Qa.prototype.reverse=Sa,Qa.prototype.value=Ta,W.prototype.chain=Ld,W.prototype.commit=Md,W.prototype.plant=Nd,W.prototype.reverse=Od,W.prototype.toString=Pd,W.prototype.run=W.prototype.toJSON=W.prototype.valueOf=W.prototype.value=Qd,W.prototype.collect=W.prototype.map,W.prototype.head=W.prototype.first,W.prototype.select=W.prototype.filter,W.prototype.tail=W.prototype.rest,W}var w,x='3.8.0',y=1,z=2,A=4,B=8,C=16,D=32,E=64,F=128,G=256,H=30,I='...',J=150,K=16,L=0,M=1,N=2,O='Expected a function',P='__lodash_placeholder__',Q='[object Arguments]',R='[object Array]',S='[object Boolean]',T='[object Date]',U='[object Error]',V='[object Function]',W='[object Map]',X='[object Number]',Y='[object Object]',Z='[object RegExp]',$='[object Set]',_='[object String]',aa='[object WeakMap]',ba='[object ArrayBuffer]',ca='[object Float32Array]',da='[object Float64Array]',ea='[object Int8Array]',fa='[object Int16Array]',ga='[object Int32Array]',ha='[object Uint8Array]',ia='[object Uint8ClampedArray]',ja='[object Uint16Array]',ka='[object Uint32Array]',la=/\b__p \+= '';/g,ma=/\b(__p \+=) '' \+/g,na=/(__e\(.*?\)|\b__t\)) \+\n'';/g,oa=/&(?:amp|lt|gt|quot|#39|#96);/g,pa=/[&<>"'`]/g,qa=RegExp(oa.source),ra=RegExp(pa.source),sa=/<%-([\s\S]+?)%>/g,ta=/<%([\s\S]+?)%>/g,ua=/<%=([\s\S]+?)%>/g,va=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,wa=/^\w*$/,xa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,ya=/[.*+?^${}()|[\]\/\\]/g,za=RegExp(ya.source),Aa=/[\u0300-\u036f\ufe20-\ufe23]/g,Ba=/\\(\\)?/g,Ca=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Da=/\w*$/,Ea=/^0[xX]/,Fa=/^\[object .+?Constructor\]$/,Ga=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,Ha=/($^)/,Ia=/['\n\r\u2028\u2029\\]/g,Ja=function(){var a='[A-Z\\xc0-\\xd6\\xd8-\\xde]',b='[a-z\\xdf-\\xf6\\xf8-\\xff]+';return RegExp(a+'+(?='+a+b+')|'+a+'?'+b+'|'+a+'+|[0-9]+','g')}(),Ka=" 	\x0B\f \ufeff\n\r\u2028\u2029 ᠎              ",La=['Array','ArrayBuffer','Date','Error','Float32Array','Float64Array','Function','Int8Array','Int16Array','Int32Array','Math','Number','Object','RegExp','Set','String','_','clearTimeout','document','isFinite','parseInt','setTimeout','TypeError','Uint8Array','Uint8ClampedArray','Uint16Array','Uint32Array','WeakMap','window'],Ma=-1,Na={};Na[ca]=Na[da]=Na[ea]=Na[fa]=Na[ga]=Na[ha]=Na[ia]=Na[ja]=Na[ka]=!0,Na[Q]=Na[R]=Na[ba]=Na[S]=Na[T]=Na[U]=Na[V]=Na[W]=Na[X]=Na[Y]=Na[Z]=Na[$]=Na[_]=Na[aa]=!1;var Oa={};Oa[Q]=Oa[R]=Oa[ba]=Oa[S]=Oa[T]=Oa[ca]=Oa[da]=Oa[ea]=Oa[fa]=Oa[ga]=Oa[X]=Oa[Y]=Oa[Z]=Oa[_]=Oa[ha]=Oa[ia]=Oa[ja]=Oa[ka]=!0,Oa[U]=Oa[V]=Oa[W]=Oa[$]=Oa[aa]=!1;var Pa={leading:!1,maxWait:0,trailing:!1},Qa={'À':'A','Á':'A','Â':'A','Ã':'A','Ä':'A','Å':'A','à':'a','á':'a','â':'a','ã':'a','ä':'a','å':'a','Ç':'C','ç':'c','Ð':'D','ð':'d','È':'E','É':'E','Ê':'E','Ë':'E','è':'e','é':'e','ê':'e','ë':'e','Ì':'I','Í':'I','Î':'I','Ï':'I','ì':'i','í':'i','î':'i','ï':'i','Ñ':'N','ñ':'n','Ò':'O','Ó':'O','Ô':'O','Õ':'O','Ö':'O','Ø':'O','ò':'o','ó':'o','ô':'o','õ':'o','ö':'o','ø':'o','Ù':'U','Ú':'U','Û':'U','Ü':'U','ù':'u','ú':'u','û':'u','ü':'u','Ý':'Y','ý':'y','ÿ':'y','Æ':'Ae','æ':'ae','Þ':'Th','þ':'th','ß':'ss'},Ra={'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#39;','`':'&#96;'},Sa={'&amp;':'&','&lt;':'<','&gt;':'>','&quot;':'"','&#39;':"'",'&#96;':'`'},Ta={'function':!0,object:!0},Ua={'\\':'\\',"'":"'",'\n':'n','\r':'r','\u2028':'u2028','\u2029':'u2029'},Va=Ta[typeof exports]&&exports&&!exports.nodeType&&exports,Wa=Ta[typeof module]&&module&&!module.nodeType&&module,Xa=Va&&Wa&&'object'==typeof global&&global&&global.Object&&global,Ya=Ta[typeof self]&&self&&self.Object&&self,Za=Ta[typeof window]&&window&&window.Object&&window,$a=Wa&&Wa.exports===Va&&Va,_a=Xa||Za!==(this&&this.window)&&Za||Ya||this,ab=v();'function'==typeof define&&'object'==typeof define.amd&&define.amd?(_a._=ab,define('underscore',[],function(){return ab})):Va&&Wa?$a?(Wa.exports=ab)._=ab:Va._=ab:_a._=ab}.call(this),define('jiverscripts/conc/next_tick',['underscore','jive/namespace'],function(a){return jive.namespace('conc'),jive.conc.nextTick=a.defer,jive.conc.nextTick}),define('jiverscripts/conc/promise',['require','./observable','jive/namespace'],function(a){return jive.namespace('conc'),jive.conc.Promise=function(){function b(){var a=Array.prototype.slice.call(arguments,0);g.emit.apply(g,['cancel'].concat(a))}a('jiverscripts/conc/observable')(this);var c=!1,d=!1,e,f,g=this;this.addCallback=function(a){return this.addListener('success',a),this},this.addErrback=function(a){return this.addListener('error',a),this},this.addCancelback=function(a){return this.addListener('cancel',a),this},this.always=function(a){return this.addListener('complete',a),this},this.emitSuccess=function(){var a=Array.prototype.slice.call(arguments,0);c||(c=!0,this.emit.apply(this,['success'].concat(a)),this.emit('complete'))},this.emitError=function(){var a=Array.prototype.slice.call(arguments,0);c||(c=!0,this.emit.apply(this,['error'].concat(a)),this.emit('complete'))},this.cancel=function(){d||(d=!0,this.removeListener('success'),this.removeListener('error'),this.removeListener('complete'),b())},this.timeout=function(a){return'undefined'==typeof a?e:(e=a,f&&(clearTimeout(f),f=null),f=setTimeout(function(){f=null,c||d||g.emitError(new Error('timeout'))},e),this)}},jive.conc.Promise.prototype.then=function(a,b){var c=new jive.conc.Promise;return this.addCallback(function(){var b;if('function'==typeof a)try{b=a.apply(null,arguments),'undefined'!=typeof b?c.emitSuccess(b):c.emitSuccess.apply(c,arguments)}catch(d){c.emitError(d)}else c.emitSuccess.apply(c,arguments)}),'function'==typeof b&&this.addErrback(b),this.addErrback(function(){c.emitError.apply(c,arguments)}),c},jive.conc.Promise.prototype.map=function(a){return this.then(a)},jive.conc.Promise.prototype.flatMap=function(a){var b=new jive.conc.Promise;return this.addCallback(function(){b.proxy(a.apply(null,arguments))}).addErrback(function(){b.emitError.apply(b,arguments)}),b},jive.conc.Promise.prototype.proxy=function(a){var b=this;return a.then(function(){b.emitSuccess.apply(b,arguments)},function(){b.emitError.apply(b,arguments)}),this},jive.conc.Promise.prototype.deferred=function(){
var a=new jQuery.Deferred;return this.addCallback(function(){a.resolve.apply(a,arguments)}).addErrback(function(){a.reject.apply(a,arguments)}),a.promise()},jive.conc.Promise}),define('jiverscripts/conc/observable',['require','./promise','jive/namespace'],function(a,b){return jive.namespace('conc'),jive.conc.observable=function(b){var c=[],d=!1;b.listeners=function(a){return this._events||(this._events={}),this._events[a]||(this._events[a]=[]),this._events[a]},b.addListener=function(a,b){return d=!0,this.emit('newListener',a,b),d=!1,this.listeners(a).push(b),this},b.addLazyListener=function(a,b,c,d){return this.addListener(a,jive.conc.observable.makeLazyCallback(b,c,d))},b.removeListener=function(a,b){for(var c=this.listeners(a),d=0;d<c.length;d+=1)c[d]!==b&&'undefined'!=typeof b||(c.splice(d,1),d-=1);return this};var e=jive.conc.nextTick||function(a){setTimeout(a,0)};return b.emit=function(a){function b(a){a&&(c.push(function(){a.apply(h,f)}),e(function(){c.shift()()}))}for(var f=Array.prototype.slice.call(arguments,1),g=this.listeners(a).slice(),h=this,i=0;i<g.length;i+=1)b(g[i]);return d||e(function(){for(var c=h.listeners(a),d,e=0;e<c.length;e+=1){d=!1;for(var f=0;f<g.length;f+=1)c[e]===g[f]&&(d=!0);d||b(c[e])}}),this},b.emitP=function(b){var c=Array.prototype.slice.call(arguments),d=a('jiverscripts/conc/promise'),e=new d;return this.emit.apply(this,c.concat(e)),e},b.proxyListener=function(a,b,c,d){var e=this;return'function'==typeof c&&(d=c,c=null),c=c||b,d&&a.addListener(b,d),a.addListener(b,function(){var a=Array.prototype.slice.call(arguments);a.unshift(c),e.emit.apply(e,a)}),this},b},jive.conc.observable.makeLazyCallback=function(b,c,d){return b&&c||console.log('call to makeLazyCallback missing required parameter: ',b,c),function(){var e=this;if(!d||d.apply(e,arguments)){var f=Array.prototype.slice.call(arguments);a(b,function(){c.apply(e,Array.prototype.slice.call(arguments).concat(f))})}}},jive.conc.observable}),define('jiverscripts/conc/synchronize',['./promise','jive/namespace'],function(a){return jive.namespace('conc'),jive.conc.synchronize=function(){function b(a){return'[object Array]'===Object.prototype.toString.call(a)}function c(a){return a&&a.addCallback&&a.addErrback&&a.addCancelback}return function(d){function e(a,b){b.addCallback(function(b){f[a]=b,h-=1,1>h&&i.emitSuccess(f)}).addErrback(function(){i.emitError.apply(i,arguments)}).addCancelback(function(){i.cancel.apply(i,arguments)}),h+=1}var f,g,h=0,i=new a;f=b(d)?[]:{};for(g in d)d.hasOwnProperty(g)&&(c(d[g])?e(g,d[g]):f[g]=d[g]);return i}}(),jive.conc.synchronize}),function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){function c(a){var b=a.length,c=jQuery.type(a);return"function"===c||jQuery.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}function d(a,b,c){if(jQuery.isFunction(b))return jQuery.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return jQuery.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(ma.test(b))return jQuery.filter(b,a,c);b=jQuery.filter(b,a)}return jQuery.grep(a,function(a){return jQuery.inArray(a,b)>=0!==c})}function e(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}function f(a){var b=ua[a]={};return jQuery.each(a.match(ta)||[],function(a,c){b[c]=!0}),b}function g(){oa.addEventListener?(oa.removeEventListener("DOMContentLoaded",h,!1),a.removeEventListener("load",h,!1)):(oa.detachEvent("onreadystatechange",h),a.detachEvent("onload",h))}function h(){(oa.addEventListener||"load"===event.type||"complete"===oa.readyState)&&(g(),jQuery.ready())}function i(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(za,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:ya.test(c)?jQuery.parseJSON(c):c}catch(e){}jQuery.data(a,b,c)}else c=void 0}return c}function j(a){var b;for(b in a)if(("data"!==b||!jQuery.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function k(a,b,c,d){if(jQuery.acceptData(a)){var e,f,g=jQuery.expando,h=a.nodeType,i=h?jQuery.cache:a,j=h?a[g]:a[g]&&g;if(j&&i[j]&&(d||i[j].data)||void 0!==c||"string"!=typeof b)return j||(j=h?a[g]=W.pop()||jQuery.guid++:g),i[j]||(i[j]=h?{}:{toJSON:jQuery.noop}),"object"!=typeof b&&"function"!=typeof b||(d?i[j]=jQuery.extend(i[j],b):i[j].data=jQuery.extend(i[j].data,b)),f=i[j],d||(f.data||(f.data={}),f=f.data),void 0!==c&&(f[jQuery.camelCase(b)]=c),"string"==typeof b?(e=f[b],null==e&&(e=f[jQuery.camelCase(b)])):e=f,e}}function l(a,b,c){if(jQuery.acceptData(a)){var d,e,f=a.nodeType,g=f?jQuery.cache:a,h=f?a[jQuery.expando]:jQuery.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data,d)){jQuery.isArray(b)?b=b.concat(jQuery.map(b,jQuery.camelCase)):b in d?b=[b]:(b=jQuery.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;for(;e--;)delete d[b[e]];if(c?!j(d):!jQuery.isEmptyObject(d))return}(c||(delete g[h].data,j(g[h])))&&(f?jQuery.cleanData([a],!0):da.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}function m(){return!0}function n(){return!1}function o(){try{return oa.activeElement}catch(a){}}function p(a){var b=Ka.split("|"),c=a.createDocumentFragment();if(c.createElement)for(;b.length;)c.createElement(b.pop());return c}function q(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==wa?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==wa?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||jQuery.nodeName(d,b)?f.push(d):jQuery.merge(f,q(d,b));return void 0===b||b&&jQuery.nodeName(a,b)?jQuery.merge([a],f):f}function r(a){Ea.test(a.type)&&(a.defaultChecked=a.checked)}function s(a,b){return jQuery.nodeName(a,"table")&&jQuery.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function t(a){return a.type=(null!==jQuery.find.attr(a,"type"))+"/"+a.type,a}function u(a){var b=Va.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function v(a,b){for(var c,d=0;null!=(c=a[d]);d++)jQuery._data(c,"globalEval",!b||jQuery._data(b[d],"globalEval"))}function w(a,b){if(1===b.nodeType&&jQuery.hasData(a)){var c,d,e,f=jQuery._data(a),g=jQuery._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)jQuery.event.add(b,c,h[c][d])}g.data&&(g.data=jQuery.extend({},g.data))}}function x(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!da.noCloneEvent&&b[jQuery.expando]){e=jQuery._data(b);for(d in e.events)jQuery.removeEvent(b,d,e.handle);b.removeAttribute(jQuery.expando)}"script"===c&&b.text!==a.text?(t(b).text=a.text,u(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),da.html5Clone&&a.innerHTML&&!jQuery.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&Ea.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}}function y(b,c){var d=jQuery(c.createElement(b)).appendTo(c.body),e=a.getDefaultComputedStyle?a.getDefaultComputedStyle(d[0]).display:jQuery.css(d[0],"display");return d.detach(),e}function z(a){var b=oa,c=_a[a];return c||(c=y(a,b),"none"!==c&&c||($a=($a||jQuery("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=($a[0].contentWindow||$a[0].contentDocument).document,b.write(),b.close(),c=y(a,b),$a.detach()),_a[a]=c),c}function A(a,b){return{get:function(){var c=a();if(null!=c)return c?(delete this.get,void 0):(this.get=b).apply(this,arguments)}}}function B(a,b){if(b in a)return b;for(var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=mb.length;e--;)if(b=mb[e]+c,b in a)return b;return d}function C(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=jQuery._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&Ca(d)&&(f[g]=jQuery._data(d,"olddisplay",z(d.nodeName)))):f[g]||(e=Ca(d),(c&&"none"!==c||!e)&&jQuery._data(d,"olddisplay",e?c:jQuery.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function D(a,b,c){var d=ib.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function E(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=jQuery.css(a,c+Ba[f],!0,e)),d?("content"===c&&(g-=jQuery.css(a,"padding"+Ba[f],!0,e)),"margin"!==c&&(g-=jQuery.css(a,"border"+Ba[f]+"Width",!0,e))):(g+=jQuery.css(a,"padding"+Ba[f],!0,e),"padding"!==c&&(g+=jQuery.css(a,"border"+Ba[f]+"Width",!0,e)));return g}function F(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=cb(a),g=da.boxSizing()&&"border-box"===jQuery.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=db(a,b,f),(0>e||null==e)&&(e=a.style[b]),bb.test(e))return e;d=g&&(da.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+E(a,b,c||(g?"border":"content"),d,f)+"px"}function G(a,b,c,d,e){return new G.prototype.init(a,b,c,d,e)}function H(){return setTimeout(function(){nb=void 0}),nb=jQuery.now()}function I(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=Ba[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function J(a,b,c){for(var d,e=(tb[b]||[]).concat(tb["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function K(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},n=a.style,o=a.nodeType&&Ca(a),p=jQuery._data(a,"fxshow");c.queue||(h=jQuery._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,jQuery.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[n.overflow,n.overflowX,n.overflowY],j=jQuery.css(a,"display"),k=z(a.nodeName),"none"===j&&(j=k),"inline"===j&&"none"===jQuery.css(a,"float")&&(da.inlineBlockNeedsLayout&&"inline"!==k?n.zoom=1:n.display="inline-block")),c.overflow&&(n.overflow="hidden",da.shrinkWrapBlocks()||l.always(function(){n.overflow=c.overflow[0],n.overflowX=c.overflow[1],n.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],pb.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(o?"hide":"show")){if("show"!==e||!p||void 0===p[d])continue;o=!0}m[d]=p&&p[d]||jQuery.style(a,d)}if(!jQuery.isEmptyObject(m)){p?"hidden"in p&&(o=p.hidden):p=jQuery._data(a,"fxshow",{}),f&&(p.hidden=!o),o?jQuery(a).show():l.done(function(){jQuery(a).hide()}),l.done(function(){var b;jQuery._removeData(a,"fxshow");for(b in m)jQuery.style(a,b,m[b])});for(d in m)g=J(o?p[d]:0,d,l),d in p||(p[d]=g.start,o&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function L(a,b){var c,d,e,f,g;for(c in a)if(d=jQuery.camelCase(c),e=b[d],f=a[c],jQuery.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=jQuery.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function M(a,b,c){var d,e,f=0,g=sb.length,h=jQuery.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=nb||H(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:jQuery.extend({},b),opts:jQuery.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:nb||H(),duration:c.duration,tweens:[],createTween:function(b,c){var d=jQuery.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(L(k,j.opts.specialEasing);g>f;f++)if(d=sb[f].call(j,a,k,j.opts),d)return d;return jQuery.map(k,J,j),jQuery.isFunction(j.opts.start)&&j.opts.start.call(a,j),jQuery.fx.timer(jQuery.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}function N(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(ta)||[];if(jQuery.isFunction(c))for(;d=f[e++];)"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function O(a,b,c,d){function e(h){var i;return f[h]=!0,jQuery.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||g||f[j]?g?!(i=j):void 0:(b.dataTypes.unshift(j),e(j),!1)}),i}var f={},g=a===Rb;return e(b.dataTypes[0])||!f["*"]&&e("*")}function P(a,b){var c,d,e=jQuery.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&jQuery.extend(!0,a,c),a}function Q(a,b,c){for(var d,e,f,g,h=a.contents,i=a.dataTypes;"*"===i[0];)i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function R(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];for(f=k.shift();f;)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift(),f)if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]],g)){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}function S(a,b,c,d){var e;if(jQuery.isArray(b))jQuery.each(b,function(b,e){c||Vb.test(a)?d(a,e):S(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==jQuery.type(b))d(a,b);else for(e in b)S(a+"["+e+"]",b[e],c,d)}function T(){try{return new a.XMLHttpRequest}catch(b){}}function U(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function V(a){return jQuery.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var W=[],X=W.slice,Y=W.concat,Z=W.push,$=W.indexOf,_={},aa=_.toString,ba=_.hasOwnProperty,ca="".trim,da={},ea="1.11.0",jQuery=function(a,b){return new jQuery.fn.init(a,b)},fa=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ga=/^-ms-/,ha=/-([\da-z])/gi,ia=function(a,b){return b.toUpperCase()};jQuery.fn=jQuery.prototype={jquery:ea,constructor:jQuery,selector:"",length:0,toArray:function(){return X.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:X.call(this)},pushStack:function(a){var b=jQuery.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return jQuery.each(this,a,b)},map:function(a){return this.pushStack(jQuery.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(X.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:Z,sort:W.sort,splice:W.splice},jQuery.extend=jQuery.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||jQuery.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(jQuery.isPlainObject(c)||(b=jQuery.isArray(c)))?(b?(b=!1,f=a&&jQuery.isArray(a)?a:[]):f=a&&jQuery.isPlainObject(a)?a:{},g[d]=jQuery.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},jQuery.extend({expando:"jQuery"+(ea+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===jQuery.type(a)},isArray:Array.isArray||function(a){return"array"===jQuery.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return a-parseFloat(a)>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==jQuery.type(a)||a.nodeType||jQuery.isWindow(a))return!1;try{if(a.constructor&&!ba.call(a,"constructor")&&!ba.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(da.ownLast)for(b in a)return ba.call(a,b);for(b in a);return void 0===b||ba.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?_[aa.call(a)]||"object":typeof a},globalEval:function(b){b&&jQuery.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(ga,"ms-").replace(ha,ia)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,d){var e,f=0,g=a.length,h=c(a);if(d){if(h)for(;g>f&&(e=b.apply(a[f],d),e!==!1);f++);else for(f in a)if(e=b.apply(a[f],d),e===!1)break}else if(h)for(;g>f&&(e=b.call(a[f],f,a[f]),e!==!1);f++);else for(f in a)if(e=b.call(a[f],f,a[f]),e===!1)break;return a},trim:ca&&!ca.call("\ufeff ")?function(a){return null==a?"":ca.call(a)}:function(a){return null==a?"":(a+"").replace(fa,"")},makeArray:function(a,b){var d=b||[];return null!=a&&(c(Object(a))?jQuery.merge(d,"string"==typeof a?[a]:a):Z.call(d,a)),d},inArray:function(a,b,c){var d;if(b){if($)return $.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;)a[e++]=b[d++];if(c!==c)for(;void 0!==b[d];)a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,d){var e,f=0,g=a.length,h=c(a),i=[];if(h)for(;g>f;f++)e=b(a[f],f,d),null!=e&&i.push(e);else for(f in a)e=b(a[f],f,d),null!=e&&i.push(e);return Y.apply([],i)},guid:1,proxy:function(a,b){var c,d,e;return"string"==typeof b&&(e=a[b],b=a,a=e),jQuery.isFunction(a)?(c=X.call(arguments,2),d=function(){return a.apply(b||this,c.concat(X.call(arguments)))},d.guid=a.guid=a.guid||jQuery.guid++,d):void 0},now:function(){return+new Date},support:da}),jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){_["[object "+b+"]"]=b.toLowerCase()});var ja=function(a){function b(a,b,c,d){var e,f,g,h,i,j,l,o,p,q;if((b?b.ownerDocument||b:O)!==G&&F(b),b=b||G,c=c||[],!a||"string"!=typeof a)return c;if(1!==(h=b.nodeType)&&9!==h)return[];if(I&&!d){if(e=sa.exec(a))if(g=e[1]){if(9===h){if(f=b.getElementById(g),!f||!f.parentNode)return c;if(f.id===g)return c.push(f),c}else if(b.ownerDocument&&(f=b.ownerDocument.getElementById(g))&&M(b,f)&&f.id===g)return c.push(f),c}else{if(e[2])return _.apply(c,b.getElementsByTagName(a)),c;if((g=e[3])&&x.getElementsByClassName&&b.getElementsByClassName)return _.apply(c,b.getElementsByClassName(g)),c}if(x.qsa&&(!J||!J.test(a))){if(o=l=N,p=b,q=9===h&&a,1===h&&"object"!==b.nodeName.toLowerCase()){for(j=m(a),(l=b.getAttribute("id"))?o=l.replace(ua,"\\$&"):b.setAttribute("id",o),o="[id='"+o+"'] ",i=j.length;i--;)j[i]=o+n(j[i]);p=ta.test(a)&&k(b.parentNode)||b,q=j.join(",")}if(q)try{return _.apply(c,p.querySelectorAll(q)),c}catch(r){}finally{l||b.removeAttribute("id")}}}return v(a.replace(ia,"$1"),b,c,d)}function c(){function a(c,d){return b.push(c+" ")>y.cacheLength&&delete a[b.shift()],a[c+" "]=d}var b=[];return a}function d(a){return a[N]=!0,a}function e(a){var b=G.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function f(a,b){for(var c=a.split("|"),d=a.length;d--;)y.attrHandle[c[d]]=b}function g(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||W)-(~a.sourceIndex||W);if(d)return d;if(c)for(;c=c.nextSibling;)if(c===b)return-1;return a?1:-1}function h(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function i(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function j(a){return d(function(b){return b=+b,d(function(c,d){for(var e,f=a([],c.length,b),g=f.length;g--;)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function k(a){return a&&typeof a.getElementsByTagName!==V&&a}function l(){}function m(a,c){var d,e,f,g,h,i,j,k=S[a+" "];if(k)return c?0:k.slice(0);for(h=a,i=[],j=y.preFilter;h;){d&&!(e=ja.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),d=!1,(e=ka.exec(h))&&(d=e.shift(),f.push({value:d,type:e[0].replace(ia," ")}),h=h.slice(d.length));for(g in y.filter)!(e=oa[g].exec(h))||j[g]&&!(e=j[g](e))||(d=e.shift(),f.push({value:d,type:g,matches:e}),h=h.slice(d.length));if(!d)break}return c?h.length:h?b.error(a):S(a,i).slice(0)}function n(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function o(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=Q++;return b.first?function(b,c,f){for(;b=b[d];)if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[P,f];if(g){for(;b=b[d];)if((1===b.nodeType||e)&&a(b,c,g))return!0}else for(;b=b[d];)if(1===b.nodeType||e){if(i=b[N]||(b[N]={}),(h=i[d])&&h[0]===P&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function p(a){return a.length>1?function(b,c,d){for(var e=a.length;e--;)if(!a[e](b,c,d))return!1;return!0}:a[0]}function q(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function r(a,b,c,e,f,g){return e&&!e[N]&&(e=r(e)),f&&!f[N]&&(f=r(f,g)),d(function(d,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=d||u(b||"*",h.nodeType?[h]:h,[]),r=!a||!d&&b?p:q(p,m,a,h,i),s=c?f||(d?a:o||e)?[]:g:r;if(c&&c(r,s,h,i),e)for(j=q(s,n),e(j,[],h,i),k=j.length;k--;)(l=j[k])&&(s[n[k]]=!(r[n[k]]=l));if(d){if(f||a){if(f){for(j=[],k=s.length;k--;)(l=s[k])&&j.push(r[k]=l);f(null,s=[],j,i)}for(k=s.length;k--;)(l=s[k])&&(j=f?ba.call(d,l):m[k])>-1&&(d[j]=!(g[j]=l))}}else s=q(s===g?s.splice(o,s.length):s),f?f(null,g,s,i):_.apply(g,s)})}function s(a){for(var b,c,d,e=a.length,f=y.relative[a[0].type],g=f||y.relative[" "],h=f?1:0,i=o(function(a){return a===b},g,!0),j=o(function(a){return ba.call(b,a)>-1},g,!0),k=[function(a,c,d){return!f&&(d||c!==C)||((b=c).nodeType?i(a,c,d):j(a,c,d))}];e>h;h++)if(c=y.relative[a[h].type])k=[o(p(k),c)];else{if(c=y.filter[a[h].type].apply(null,a[h].matches),c[N]){for(d=++h;e>d&&!y.relative[a[d].type];d++);return r(h>1&&p(k),h>1&&n(a.slice(0,h-1).concat({value:" "===a[h-2].type?"*":""})).replace(ia,"$1"),c,d>h&&s(a.slice(h,d)),e>d&&s(a=a.slice(d)),e>d&&n(a))}k.push(c)}return p(k)}function t(a,c){var e=c.length>0,f=a.length>0,g=function(d,g,h,i,j){var k,l,m,n=0,o="0",p=d&&[],r=[],s=C,t=d||f&&y.find.TAG("*",j),u=P+=null==s?1:Math.random()||.1,v=t.length;for(j&&(C=g!==G&&g);o!==v&&null!=(k=t[o]);o++){if(f&&k){for(l=0;m=a[l++];)if(m(k,g,h)){i.push(k);break}j&&(P=u)}e&&((k=!m&&k)&&n--,d&&p.push(k))}if(n+=o,e&&o!==n){for(l=0;m=c[l++];)m(p,r,g,h);if(d){if(n>0)for(;o--;)p[o]||r[o]||(r[o]=Z.call(i));r=q(r)}_.apply(i,r),j&&!d&&r.length>0&&n+c.length>1&&b.uniqueSort(i)}return j&&(P=u,C=s),p};return e?d(g):g}function u(a,c,d){for(var e=0,f=c.length;f>e;e++)b(a,c[e],d);return d}function v(a,b,c,d){var e,f,g,h,i,j=m(a);if(!d&&1===j.length){if(f=j[0]=j[0].slice(0),f.length>2&&"ID"===(g=f[0]).type&&x.getById&&9===b.nodeType&&I&&y.relative[f[1].type]){if(b=(y.find.ID(g.matches[0].replace(va,wa),b)||[])[0],!b)return c;a=a.slice(f.shift().value.length)}for(e=oa.needsContext.test(a)?0:f.length;e--&&(g=f[e],!y.relative[h=g.type]);)if((i=y.find[h])&&(d=i(g.matches[0].replace(va,wa),ta.test(f[0].type)&&k(b.parentNode)||b))){if(f.splice(e,1),a=d.length&&n(f),!a)return _.apply(c,d),c;break}}return B(a,j)(d,b,!I,c,ta.test(a)&&k(b.parentNode)||b),c}var w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N="sizzle"+-new Date,O=a.document,P=0,Q=0,R=c(),S=c(),T=c(),U=function(a,b){return a===b&&(E=!0),0},V="undefined",W=1<<31,X={}.hasOwnProperty,Y=[],Z=Y.pop,$=Y.push,_=Y.push,aa=Y.slice,ba=Y.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},ca="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",da="[\\x20\\t\\r\\n\\f]",ea="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",fa=ea.replace("w","w#"),ga="\\["+da+"*("+ea+")"+da+"*(?:([*^$|!~]?=)"+da+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+fa+")|)|)"+da+"*\\]",ha=":("+ea+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+ga.replace(3,8)+")*)|.*)\\)|)",ia=new RegExp("^"+da+"+|((?:^|[^\\\\])(?:\\\\.)*)"+da+"+$","g"),ja=new RegExp("^"+da+"*,"+da+"*"),ka=new RegExp("^"+da+"*([>+~]|"+da+")"+da+"*"),la=new RegExp("="+da+"*([^\\]'\"]*?)"+da+"*\\]","g"),ma=new RegExp(ha),na=new RegExp("^"+fa+"$"),oa={ID:new RegExp("^#("+ea+")"),CLASS:new RegExp("^\\.("+ea+")"),TAG:new RegExp("^("+ea.replace("w","w*")+")"),ATTR:new RegExp("^"+ga),PSEUDO:new RegExp("^"+ha),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+da+"*(even|odd|(([+-]|)(\\d*)n|)"+da+"*(?:([+-]|)"+da+"*(\\d+)|))"+da+"*\\)|)","i"),bool:new RegExp("^(?:"+ca+")$","i"),needsContext:new RegExp("^"+da+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+da+"*((?:-\\d)?\\d*)"+da+"*\\)|)(?=[^-]|$)","i")},pa=/^(?:input|select|textarea|button)$/i,qa=/^h\d$/i,ra=/^[^{]+\{\s*\[native \w/,sa=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ta=/[+~]/,ua=/'|\\/g,va=new RegExp("\\\\([\\da-f]{1,6}"+da+"?|("+da+")|.)","ig"),wa=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{_.apply(Y=aa.call(O.childNodes),O.childNodes),Y[O.childNodes.length].nodeType}catch(xa){_={apply:Y.length?function(a,b){$.apply(a,aa.call(b))}:function(a,b){for(var c=a.length,d=0;a[c++]=b[d++];);a.length=c-1}}}x=b.support={},A=b.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},F=b.setDocument=function(a){var b,c=a?a.ownerDocument||a:O,d=c.defaultView;return c!==G&&9===c.nodeType&&c.documentElement?(G=c,H=c.documentElement,I=!A(c),d&&d!==d.top&&(d.addEventListener?d.addEventListener("unload",function(){F()},!1):d.attachEvent&&d.attachEvent("onunload",function(){F()})),x.attributes=e(function(a){return a.className="i",!a.getAttribute("className")}),x.getElementsByTagName=e(function(a){return a.appendChild(c.createComment("")),!a.getElementsByTagName("*").length}),x.getElementsByClassName=ra.test(c.getElementsByClassName)&&e(function(a){return a.innerHTML="<div class='a'></div><div class='a i'></div>",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),x.getById=e(function(a){return H.appendChild(a).id=N,!c.getElementsByName||!c.getElementsByName(N).length}),x.getById?(y.find.ID=function(a,b){if(typeof b.getElementById!==V&&I){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},y.filter.ID=function(a){var b=a.replace(va,wa);return function(a){return a.getAttribute("id")===b}}):(delete y.find.ID,y.filter.ID=function(a){var b=a.replace(va,wa);return function(a){var c=typeof a.getAttributeNode!==V&&a.getAttributeNode("id");return c&&c.value===b}}),y.find.TAG=x.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==V?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){for(;c=f[e++];)1===c.nodeType&&d.push(c);return d}return f},y.find.CLASS=x.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==V&&I?b.getElementsByClassName(a):void 0},K=[],J=[],(x.qsa=ra.test(c.querySelectorAll))&&(e(function(a){a.innerHTML="<select t=''><option selected=''></option></select>",a.querySelectorAll("[t^='']").length&&J.push("[*^$]="+da+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||J.push("\\["+da+"*(?:value|"+ca+")"),a.querySelectorAll(":checked").length||J.push(":checked")}),e(function(a){var b=c.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&J.push("name"+da+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||J.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),J.push(",.*:")})),(x.matchesSelector=ra.test(L=H.webkitMatchesSelector||H.mozMatchesSelector||H.oMatchesSelector||H.msMatchesSelector))&&e(function(a){x.disconnectedMatch=L.call(a,"div"),L.call(a,"[s!='']:x"),K.push("!=",ha)}),J=J.length&&new RegExp(J.join("|")),K=K.length&&new RegExp(K.join("|")),b=ra.test(H.compareDocumentPosition),M=b||ra.test(H.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1},U=b?function(a,b){if(a===b)return E=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!x.sortDetached&&b.compareDocumentPosition(a)===d?a===c||a.ownerDocument===O&&M(O,a)?-1:b===c||b.ownerDocument===O&&M(O,b)?1:D?ba.call(D,a)-ba.call(D,b):0:4&d?-1:1)}:function(a,b){if(a===b)return E=!0,0;var d,e=0,f=a.parentNode,h=b.parentNode,i=[a],j=[b];if(!f||!h)return a===c?-1:b===c?1:f?-1:h?1:D?ba.call(D,a)-ba.call(D,b):0;if(f===h)return g(a,b);for(d=a;d=d.parentNode;)i.unshift(d);for(d=b;d=d.parentNode;)j.unshift(d);for(;i[e]===j[e];)e++;return e?g(i[e],j[e]):i[e]===O?-1:j[e]===O?1:0},c):G},b.matches=function(a,c){return b(a,null,null,c)},b.matchesSelector=function(a,c){if((a.ownerDocument||a)!==G&&F(a),c=c.replace(la,"='$1']"),x.matchesSelector&&I&&(!K||!K.test(c))&&(!J||!J.test(c)))try{var d=L.call(a,c);if(d||x.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return b(c,G,null,[a]).length>0},b.contains=function(a,b){return(a.ownerDocument||a)!==G&&F(a),M(a,b)},b.attr=function(a,b){(a.ownerDocument||a)!==G&&F(a);var c=y.attrHandle[b.toLowerCase()],d=c&&X.call(y.attrHandle,b.toLowerCase())?c(a,b,!I):void 0;return void 0!==d?d:x.attributes||!I?a.getAttribute(b):(d=a.getAttributeNode(b))&&d.specified?d.value:null},b.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},b.uniqueSort=function(a){var b,c=[],d=0,e=0;if(E=!x.detectDuplicates,D=!x.sortStable&&a.slice(0),a.sort(U),E){for(;b=a[e++];)b===a[e]&&(d=c.push(e));for(;d--;)a.splice(c[d],1)}return D=null,a},z=b.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(1===e||9===e||11===e){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=z(a)}else if(3===e||4===e)return a.nodeValue}else for(;b=a[d++];)c+=z(b);return c},y=b.selectors={cacheLength:50,createPseudo:d,match:oa,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(va,wa),a[3]=(a[4]||a[5]||"").replace(va,wa),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||b.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&b.error(a[0]),a},PSEUDO:function(a){var b,c=!a[5]&&a[2];return oa.CHILD.test(a[0])?null:(a[3]&&void 0!==a[4]?a[2]=a[4]:c&&ma.test(c)&&(b=m(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(va,wa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=R[a+" "];return b||(b=new RegExp("(^|"+da+")"+a+"("+da+"|$)"))&&R(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==V&&a.getAttribute("class")||"")})},ATTR:function(a,c,d){return function(e){var f=b.attr(e,a);return null==f?"!="===c:c?(f+="","="===c?f===d:"!="===c?f!==d:"^="===c?d&&0===f.indexOf(d):"*="===c?d&&f.indexOf(d)>-1:"$="===c?d&&f.slice(-d.length)===d:"~="===c?(" "+f+" ").indexOf(d)>-1:"|="===c?f===d||f.slice(0,d.length+1)===d+"-":!1):!0;
}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){for(;p;){for(l=b;l=l[p];)if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){for(k=q[N]||(q[N]={}),j=k[a]||[],n=j[0]===P&&j[1],m=j[0]===P&&j[2],l=n&&q.childNodes[n];l=++n&&l&&l[p]||(m=n=0)||o.pop();)if(1===l.nodeType&&++m&&l===b){k[a]=[P,n,m];break}}else if(s&&(j=(b[N]||(b[N]={}))[a])&&j[0]===P)m=j[1];else for(;(l=++n&&l&&l[p]||(m=n=0)||o.pop())&&((h?l.nodeName.toLowerCase()!==r:1!==l.nodeType)||!++m||(s&&((l[N]||(l[N]={}))[a]=[P,m]),l!==b)););return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,c){var e,f=y.pseudos[a]||y.setFilters[a.toLowerCase()]||b.error("unsupported pseudo: "+a);return f[N]?f(c):f.length>1?(e=[a,a,"",c],y.setFilters.hasOwnProperty(a.toLowerCase())?d(function(a,b){for(var d,e=f(a,c),g=e.length;g--;)d=ba.call(a,e[g]),a[d]=!(b[d]=e[g])}):function(a){return f(a,0,e)}):f}},pseudos:{not:d(function(a){var b=[],c=[],e=B(a.replace(ia,"$1"));return e[N]?d(function(a,b,c,d){for(var f,g=e(a,null,d,[]),h=a.length;h--;)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,d,f){return b[0]=a,e(b,null,f,c),!c.pop()}}),has:d(function(a){return function(c){return b(a,c).length>0}}),contains:d(function(a){return function(b){return(b.textContent||b.innerText||z(b)).indexOf(a)>-1}}),lang:d(function(a){return na.test(a||"")||b.error("unsupported lang: "+a),a=a.replace(va,wa).toLowerCase(),function(b){var c;do if(c=I?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===H},focus:function(a){return a===G.activeElement&&(!G.hasFocus||G.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!y.pseudos.empty(a)},header:function(a){return qa.test(a.nodeName)},input:function(a){return pa.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:j(function(){return[0]}),last:j(function(a,b){return[b-1]}),eq:j(function(a,b,c){return[0>c?c+b:c]}),even:j(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:j(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:j(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:j(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},y.pseudos.nth=y.pseudos.eq;for(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})y.pseudos[w]=h(w);for(w in{submit:!0,reset:!0})y.pseudos[w]=i(w);return l.prototype=y.filters=y.pseudos,y.setFilters=new l,B=b.compile=function(a,b){var c,d=[],e=[],f=T[a+" "];if(!f){for(b||(b=m(a)),c=b.length;c--;)f=s(b[c]),f[N]?d.push(f):e.push(f);f=T(a,t(e,d))}return f},x.sortStable=N.split("").sort(U).join("")===N,x.detectDuplicates=!!E,F(),x.sortDetached=e(function(a){return 1&a.compareDocumentPosition(G.createElement("div"))}),e(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||f("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),x.attributes&&e(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||f("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),e(function(a){return null==a.getAttribute("disabled")})||f(ca,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),b}(a);jQuery.find=ja,jQuery.expr=ja.selectors,jQuery.expr[":"]=jQuery.expr.pseudos,jQuery.unique=ja.uniqueSort,jQuery.text=ja.getText,jQuery.isXMLDoc=ja.isXML,jQuery.contains=ja.contains;var ka=jQuery.expr.match.needsContext,la=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ma=/^.[^:#\[\.,]*$/;jQuery.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?jQuery.find.matchesSelector(d,a)?[d]:[]:jQuery.find.matches(a,jQuery.grep(b,function(a){return 1===a.nodeType}))},jQuery.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(jQuery(a).filter(function(){for(b=0;e>b;b++)if(jQuery.contains(d[b],this))return!0}));for(b=0;e>b;b++)jQuery.find(a,d[b],c);return c=this.pushStack(e>1?jQuery.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(d(this,a||[],!1))},not:function(a){return this.pushStack(d(this,a||[],!0))},is:function(a){return!!d(this,"string"==typeof a&&ka.test(a)?jQuery(a):a||[],!1).length}});var na,oa=a.document,pa=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,qa=jQuery.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:pa.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||na).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof jQuery?b[0]:b,jQuery.merge(this,jQuery.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:oa,!0)),la.test(c[1])&&jQuery.isPlainObject(b))for(c in b)jQuery.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=oa.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return na.find(a);this.length=1,this[0]=d}return this.context=oa,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):jQuery.isFunction(a)?"undefined"!=typeof na.ready?na.ready(a):a(jQuery):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),jQuery.makeArray(a,this))};qa.prototype=jQuery.fn,na=jQuery(oa);var ra=/^(?:parents|prev(?:Until|All))/,sa={children:!0,contents:!0,next:!0,prev:!0};jQuery.extend({dir:function(a,b,c){for(var d=[],e=a[b];e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!jQuery(e).is(c));)1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),jQuery.fn.extend({has:function(a){var b,c=jQuery(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(jQuery.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=ka.test(a)||"string"!=typeof a?jQuery(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&jQuery.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?jQuery.unique(f):f)},index:function(a){return a?"string"==typeof a?jQuery.inArray(this[0],jQuery(a)):jQuery.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),jQuery(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}}),jQuery.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return jQuery.dir(a,"parentNode")},parentsUntil:function(a,b,c){return jQuery.dir(a,"parentNode",c)},next:function(a){return e(a,"nextSibling")},prev:function(a){return e(a,"previousSibling")},nextAll:function(a){return jQuery.dir(a,"nextSibling")},prevAll:function(a){return jQuery.dir(a,"previousSibling")},nextUntil:function(a,b,c){return jQuery.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return jQuery.dir(a,"previousSibling",c)},siblings:function(a){return jQuery.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return jQuery.sibling(a.firstChild)},contents:function(a){return jQuery.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:jQuery.merge([],a.childNodes)}},function(a,b){jQuery.fn[a]=function(c,d){var e=jQuery.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=jQuery.filter(d,e)),this.length>1&&(sa[a]||(e=jQuery.unique(e)),ra.test(a)&&(e=e.reverse())),this.pushStack(e)}});var ta=/\S+/g,ua={};jQuery.Callbacks=function(a){a="string"==typeof a?ua[a]||f(a):jQuery.extend({},a);var b,c,d,e,g,h,i=[],j=!a.once&&[],k=function(f){for(c=a.memory&&f,d=!0,g=h||0,h=0,e=i.length,b=!0;i&&e>g;g++)if(i[g].apply(f[0],f[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,i&&(j?j.length&&k(j.shift()):c?i=[]:l.disable())},l={add:function(){if(i){var d=i.length;!function f(b){jQuery.each(b,function(b,c){var d=jQuery.type(c);"function"===d?a.unique&&l.has(c)||i.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=i.length:c&&(h=d,k(c))}return this},remove:function(){return i&&jQuery.each(arguments,function(a,c){for(var d;(d=jQuery.inArray(c,i,d))>-1;)i.splice(d,1),b&&(e>=d&&e--,g>=d&&g--)}),this},has:function(a){return a?jQuery.inArray(a,i)>-1:!(!i||!i.length)},empty:function(){return i=[],e=0,this},disable:function(){return i=j=c=void 0,this},disabled:function(){return!i},lock:function(){return j=void 0,c||l.disable(),this},locked:function(){return!j},fireWith:function(a,c){return!i||d&&!j||(c=c||[],c=[a,c.slice?c.slice():c],b?j.push(c):k(c)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!d}};return l},jQuery.extend({Deferred:function(a){var b=[["resolve","done",jQuery.Callbacks("once memory"),"resolved"],["reject","fail",jQuery.Callbacks("once memory"),"rejected"],["notify","progress",jQuery.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return jQuery.Deferred(function(c){jQuery.each(b,function(b,f){var g=jQuery.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&jQuery.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?jQuery.extend(a,d):d}},e={};return d.pipe=d.then,jQuery.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=X.call(arguments),d=c.length,e=1!==d||a&&jQuery.isFunction(a.promise)?d:0,f=1===e?a:jQuery.Deferred(),g=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?X.call(arguments):d,c===h?f.notifyWith(b,c):--e||f.resolveWith(b,c)}},h,i,j;if(d>1)for(h=new Array(d),i=new Array(d),j=new Array(d);d>b;b++)c[b]&&jQuery.isFunction(c[b].promise)?c[b].promise().done(g(b,j,c)).fail(f.reject).progress(g(b,i,h)):--e;return e||f.resolveWith(j,c),f.promise()}});var va;jQuery.fn.ready=function(a){return jQuery.ready.promise().done(a),this},jQuery.extend({isReady:!1,readyWait:1,holdReady:function(a){a?jQuery.readyWait++:jQuery.ready(!0)},ready:function(a){if(a===!0?!--jQuery.readyWait:!jQuery.isReady){if(!oa.body)return setTimeout(jQuery.ready);jQuery.isReady=!0,a!==!0&&--jQuery.readyWait>0||(va.resolveWith(oa,[jQuery]),jQuery.fn.trigger&&jQuery(oa).trigger("ready").off("ready"))}}}),jQuery.ready.promise=function(b){if(!va)if(va=jQuery.Deferred(),"complete"===oa.readyState)setTimeout(jQuery.ready);else if(oa.addEventListener)oa.addEventListener("DOMContentLoaded",h,!1),a.addEventListener("load",h,!1);else{oa.attachEvent("onreadystatechange",h),a.attachEvent("onload",h);var c=!1;try{c=null==a.frameElement&&oa.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!jQuery.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}g(),jQuery.ready()}}()}return va.promise(b)};var wa="undefined",xa;for(xa in jQuery(da))break;da.ownLast="0"!==xa,da.inlineBlockNeedsLayout=!1,jQuery(function(){var a,b,c=oa.getElementsByTagName("body")[0];c&&(a=oa.createElement("div"),a.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",b=oa.createElement("div"),c.appendChild(a).appendChild(b),typeof b.style.zoom!==wa&&(b.style.cssText="border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1",(da.inlineBlockNeedsLayout=3===b.offsetWidth)&&(c.style.zoom=1)),c.removeChild(a),a=b=null)}),function(){var a=oa.createElement("div");if(null==da.deleteExpando){da.deleteExpando=!0;try{delete a.test}catch(b){da.deleteExpando=!1}}a=null}(),jQuery.acceptData=function(a){var b=jQuery.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var ya=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,za=/([A-Z])/g;jQuery.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?jQuery.cache[a[jQuery.expando]]:a[jQuery.expando],!!a&&!j(a)},data:function(a,b,c){return k(a,b,c)},removeData:function(a,b){return l(a,b)},_data:function(a,b,c){return k(a,b,c,!0)},_removeData:function(a,b){return l(a,b,!0)}}),jQuery.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=jQuery.data(f),1===f.nodeType&&!jQuery._data(f,"parsedAttrs"))){for(c=g.length;c--;)d=g[c].name,0===d.indexOf("data-")&&(d=jQuery.camelCase(d.slice(5)),i(f,d,e[d]));jQuery._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){jQuery.data(this,a)}):arguments.length>1?this.each(function(){jQuery.data(this,a,b)}):f?i(f,a,jQuery.data(f,a)):void 0},removeData:function(a){return this.each(function(){jQuery.removeData(this,a)})}}),jQuery.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=jQuery._data(a,b),c&&(!d||jQuery.isArray(c)?d=jQuery._data(a,b,jQuery.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=jQuery.queue(a,b),d=c.length,e=c.shift(),f=jQuery._queueHooks(a,b),g=function(){jQuery.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return jQuery._data(a,c)||jQuery._data(a,c,{empty:jQuery.Callbacks("once memory").add(function(){jQuery._removeData(a,b+"queue"),jQuery._removeData(a,c)})})}}),jQuery.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?jQuery.queue(this[0],a):void 0===b?this:this.each(function(){var c=jQuery.queue(this,a,b);jQuery._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&jQuery.dequeue(this,a)})},dequeue:function(a){return this.each(function(){jQuery.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=jQuery.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};for("string"!=typeof a&&(b=a,a=void 0),a=a||"fx";g--;)c=jQuery._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var Aa=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ba=["Top","Right","Bottom","Left"],Ca=function(a,b){return a=b||a,"none"===jQuery.css(a,"display")||!jQuery.contains(a.ownerDocument,a)},Da=jQuery.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===jQuery.type(c)){e=!0;for(h in c)jQuery.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,jQuery.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(jQuery(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},Ea=/^(?:checkbox|radio)$/i;!function(){var a=oa.createDocumentFragment(),b=oa.createElement("div"),c=oa.createElement("input");if(b.setAttribute("className","t"),b.innerHTML="  <link/><table></table><a href='/a'>a</a>",da.leadingWhitespace=3===b.firstChild.nodeType,da.tbody=!b.getElementsByTagName("tbody").length,da.htmlSerialize=!!b.getElementsByTagName("link").length,da.html5Clone="<:nav></:nav>"!==oa.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,a.appendChild(c),da.appendChecked=c.checked,b.innerHTML="<textarea>x</textarea>",da.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,a.appendChild(b),b.innerHTML="<input type='radio' checked='checked' name='t'/>",da.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,da.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){da.noCloneEvent=!1}),b.cloneNode(!0).click()),null==da.deleteExpando){da.deleteExpando=!0;try{delete b.test}catch(d){da.deleteExpando=!1}}a=b=c=null}(),function(){var b,c,d=oa.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(da[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),da[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var Fa=/^(?:input|select|textarea)$/i,Ga=/^key/,Ha=/^(?:mouse|contextmenu)|click/,Ia=/^(?:focusinfocus|focusoutblur)$/,Ja=/^([^.]*)(?:\.(.+)|)$/;jQuery.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=jQuery._data(a);if(q){for(c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=jQuery.guid++),(g=q.events)||(g=q.events={}),(k=q.handle)||(k=q.handle=function(a){return typeof jQuery===wa||a&&jQuery.event.triggered===a.type?void 0:jQuery.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(ta)||[""],h=b.length;h--;)f=Ja.exec(b[h])||[],n=p=f[1],o=(f[2]||"").split(".").sort(),n&&(j=jQuery.event.special[n]||{},n=(e?j.delegateType:j.bindType)||n,j=jQuery.event.special[n]||{},l=jQuery.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&jQuery.expr.match.needsContext.test(e),namespace:o.join(".")},i),(m=g[n])||(m=g[n]=[],m.delegateCount=0,j.setup&&j.setup.call(a,d,o,k)!==!1||(a.addEventListener?a.addEventListener(n,k,!1):a.attachEvent&&a.attachEvent("on"+n,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),jQuery.event.global[n]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=jQuery.hasData(a)&&jQuery._data(a);if(q&&(k=q.events)){for(b=(b||"").match(ta)||[""],j=b.length;j--;)if(h=Ja.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){for(l=jQuery.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=k[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;f--;)g=m[f],!e&&p!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||jQuery.removeEvent(a,n,q.handle),delete k[n])}else for(n in k)jQuery.event.remove(a,n+b[j],c,d,!0);jQuery.isEmptyObject(k)&&(delete q.handle,jQuery._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,j,k,l,m=[d||oa],n=ba.call(b,"type")?b.type:b,o=ba.call(b,"namespace")?b.namespace.split("."):[];if(h=k=d=d||oa,3!==d.nodeType&&8!==d.nodeType&&!Ia.test(n+jQuery.event.triggered)&&(n.indexOf(".")>=0&&(o=n.split("."),n=o.shift(),o.sort()),g=n.indexOf(":")<0&&"on"+n,b=b[jQuery.expando]?b:new jQuery.Event(n,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=o.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:jQuery.makeArray(c,[b]),j=jQuery.event.special[n]||{},e||!j.trigger||j.trigger.apply(d,c)!==!1)){if(!e&&!j.noBubble&&!jQuery.isWindow(d)){for(i=j.delegateType||n,Ia.test(i+n)||(h=h.parentNode);h;h=h.parentNode)m.push(h),k=h;k===(d.ownerDocument||oa)&&m.push(k.defaultView||k.parentWindow||a)}for(l=0;(h=m[l++])&&!b.isPropagationStopped();)b.type=l>1?i:j.bindType||n,f=(jQuery._data(h,"events")||{})[b.type]&&jQuery._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&jQuery.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=n,!e&&!b.isDefaultPrevented()&&(!j._default||j._default.apply(m.pop(),c)===!1)&&jQuery.acceptData(d)&&g&&d[n]&&!jQuery.isWindow(d)){k=d[g],k&&(d[g]=null),jQuery.event.triggered=n;try{d[n]()}catch(p){}jQuery.event.triggered=void 0,k&&(d[g]=k)}return b.result}},dispatch:function(a){a=jQuery.event.fix(a);var b,c,d,e,f,g=[],h=X.call(arguments),i=(jQuery._data(this,"events")||{})[a.type]||[],j=jQuery.event.special[a.type]||{};if(h[0]=a,a.delegateTarget=this,!j.preDispatch||j.preDispatch.call(this,a)!==!1){for(g=jQuery.event.handlers.call(this,a,i),b=0;(e=g[b++])&&!a.isPropagationStopped();)for(a.currentTarget=e.elem,f=0;(d=e.handlers[f++])&&!a.isImmediatePropagationStopped();)a.namespace_re&&!a.namespace_re.test(d.namespace)||(a.handleObj=d,a.data=d.data,c=((jQuery.event.special[d.origType]||{}).handle||d.handler).apply(e.elem,h),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()));return j.postDispatch&&j.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?jQuery(c,this).index(i)>=0:jQuery.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[jQuery.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];for(g||(this.fixHooks[e]=g=Ha.test(e)?this.mouseHooks:Ga.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new jQuery.Event(f),b=d.length;b--;)c=d[b],a[c]=f[c];return a.target||(a.target=f.srcElement||oa),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,f):a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button,g=b.fromElement;return null==a.pageX&&null!=b.clientX&&(d=a.target.ownerDocument||oa,e=d.documentElement,c=d.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==o()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){return this===o()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return jQuery.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return jQuery.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=jQuery.extend(new jQuery.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?jQuery.event.trigger(e,null,b):jQuery.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},jQuery.removeEvent=oa.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]===wa&&(a[d]=null),a.detachEvent(d,c))},jQuery.Event=function(a,b){return this instanceof jQuery.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&(a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault())?m:n):this.type=a,b&&jQuery.extend(this,b),this.timeStamp=a&&a.timeStamp||jQuery.now(),this[jQuery.expando]=!0,void 0):new jQuery.Event(a,b)},jQuery.Event.prototype={isDefaultPrevented:n,isPropagationStopped:n,isImmediatePropagationStopped:n,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=m,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=m,a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=m,this.stopPropagation()}},jQuery.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){jQuery.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||jQuery.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),da.submitBubbles||(jQuery.event.special.submit={setup:function(){return jQuery.nodeName(this,"form")?!1:(jQuery.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=jQuery.nodeName(b,"input")||jQuery.nodeName(b,"button")?b.form:void 0;c&&!jQuery._data(c,"submitBubbles")&&(jQuery.event.add(c,"submit._submit",function(a){a._submit_bubble=!0}),jQuery._data(c,"submitBubbles",!0))}),void 0)},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&jQuery.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){return jQuery.nodeName(this,"form")?!1:(jQuery.event.remove(this,"._submit"),void 0)}}),da.changeBubbles||(jQuery.event.special.change={setup:function(){return Fa.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(jQuery.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),jQuery.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),jQuery.event.simulate("change",this,a,!0)})),!1):(jQuery.event.add(this,"beforeactivate._change",function(a){var b=a.target;Fa.test(b.nodeName)&&!jQuery._data(b,"changeBubbles")&&(jQuery.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||jQuery.event.simulate("change",this.parentNode,a,!0)}),jQuery._data(b,"changeBubbles",!0))}),void 0)},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return jQuery.event.remove(this,"._change"),!Fa.test(this.nodeName)}}),da.focusinBubbles||jQuery.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){jQuery.event.simulate(b,a.target,jQuery.event.fix(a),!0)};jQuery.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=jQuery._data(d,b);e||d.addEventListener(a,c,!0),jQuery._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=jQuery._data(d,b)-1;e?jQuery._data(d,b,e):(d.removeEventListener(a,c,!0),jQuery._removeData(d,b))}}}),jQuery.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(f in a)this.on(f,b,c,a[f],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=n;else if(!d)return this;return 1===e&&(g=d,d=function(a){return jQuery().off(a),g.apply(this,arguments)},d.guid=g.guid||(g.guid=jQuery.guid++)),this.each(function(){jQuery.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,jQuery(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=n),this.each(function(){jQuery.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){jQuery.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?jQuery.event.trigger(a,b,c,!0):void 0}});var Ka="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",La=/ jQuery\d+="(?:null|\d+)"/g,Ma=new RegExp("<(?:"+Ka+")[\\s/>]","i"),Na=/^\s+/,Oa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Pa=/<([\w:]+)/,Qa=/<tbody/i,Ra=/<|&#?\w+;/,Sa=/<(?:script|style|link)/i,Ta=/checked\s*(?:[^=]|=\s*.checked.)/i,Ua=/^$|\/(?:java|ecma)script/i,Va=/^true\/(.*)/,Wa=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Xa={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:da.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Ya=p(oa),Za=Ya.appendChild(oa.createElement("div"));Xa.optgroup=Xa.option,Xa.tbody=Xa.tfoot=Xa.colgroup=Xa.caption=Xa.thead,Xa.th=Xa.td,jQuery.extend({clone:function(a,b,c){var d,e,f,g,h,i=jQuery.contains(a.ownerDocument,a);if(da.html5Clone||jQuery.isXMLDoc(a)||!Ma.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(Za.innerHTML=a.outerHTML,Za.removeChild(f=Za.firstChild)),!(da.noCloneEvent&&da.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||jQuery.isXMLDoc(a)))for(d=q(f),h=q(a),g=0;null!=(e=h[g]);++g)d[g]&&x(e,d[g]);if(b)if(c)for(h=h||q(a),d=d||q(f),g=0;null!=(e=h[g]);g++)w(e,d[g]);else w(a,f);return d=q(f,"script"),d.length>0&&v(d,!i&&q(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k,l=a.length,m=p(b),n=[],o=0;l>o;o++)if(f=a[o],f||0===f)if("object"===jQuery.type(f))jQuery.merge(n,f.nodeType?[f]:f);else if(Ra.test(f)){for(h=h||m.appendChild(b.createElement("div")),i=(Pa.exec(f)||["",""])[1].toLowerCase(),k=Xa[i]||Xa._default,h.innerHTML=k[1]+f.replace(Oa,"<$1></$2>")+k[2],e=k[0];e--;)h=h.lastChild;if(!da.leadingWhitespace&&Na.test(f)&&n.push(b.createTextNode(Na.exec(f)[0])),!da.tbody)for(f="table"!==i||Qa.test(f)?"<table>"!==k[1]||Qa.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;e--;)jQuery.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j);for(jQuery.merge(n,h.childNodes),h.textContent="";h.firstChild;)h.removeChild(h.firstChild);h=m.lastChild}else n.push(b.createTextNode(f));for(h&&m.removeChild(h),da.appendChecked||jQuery.grep(q(n,"input"),r),o=0;f=n[o++];)if((!d||-1===jQuery.inArray(f,d))&&(g=jQuery.contains(f.ownerDocument,f),h=q(m.appendChild(f),"script"),g&&v(h),c))for(e=0;f=h[e++];)Ua.test(f.type||"")&&c.push(f);return h=null,m},cleanData:function(a,b){for(var c,d,e,f,g=0,h=jQuery.expando,i=jQuery.cache,j=da.deleteExpando,k=jQuery.event.special;null!=(c=a[g]);g++)if((b||jQuery.acceptData(c))&&(e=c[h],f=e&&i[e],f)){if(f.events)for(d in f.events)k[d]?jQuery.event.remove(c,d):jQuery.removeEvent(c,d,f.handle);i[e]&&(delete i[e],j?delete c[h]:typeof c.removeAttribute!==wa?c.removeAttribute(h):c[h]=null,W.push(e))}}}),jQuery.fn.extend({text:function(a){return Da(this,function(a){return void 0===a?jQuery.text(this):this.empty().append((this[0]&&this[0].ownerDocument||oa).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=s(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=s(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this);
})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?jQuery.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||jQuery.cleanData(q(c)),c.parentNode&&(b&&jQuery.contains(c.ownerDocument,c)&&v(q(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){for(1===a.nodeType&&jQuery.cleanData(q(a,!1));a.firstChild;)a.removeChild(a.firstChild);a.options&&jQuery.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return jQuery.clone(this,a,b)})},html:function(a){return Da(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(La,""):void 0;if("string"==typeof a&&!Sa.test(a)&&(da.htmlSerialize||!Ma.test(a))&&(da.leadingWhitespace||!Na.test(a))&&!Xa[(Pa.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Oa,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(jQuery.cleanData(q(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,jQuery.cleanData(q(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=Y.apply([],a);var c,d,e,f,g,h,i=0,j=this.length,k=this,l=j-1,m=a[0],n=jQuery.isFunction(m);if(n||j>1&&"string"==typeof m&&!da.checkClone&&Ta.test(m))return this.each(function(c){var d=k.eq(c);n&&(a[0]=m.call(this,c,d.html())),d.domManip(a,b)});if(j&&(h=jQuery.buildFragment(a,this[0].ownerDocument,!1,this),c=h.firstChild,1===h.childNodes.length&&(h=c),c)){for(f=jQuery.map(q(h,"script"),t),e=f.length;j>i;i++)d=h,i!==l&&(d=jQuery.clone(d,!0,!0),e&&jQuery.merge(f,q(d,"script"))),b.call(this[i],d,i);if(e)for(g=f[f.length-1].ownerDocument,jQuery.map(f,u),i=0;e>i;i++)d=f[i],Ua.test(d.type||"")&&!jQuery._data(d,"globalEval")&&jQuery.contains(g,d)&&(d.src?jQuery._evalUrl&&jQuery._evalUrl(d.src):jQuery.globalEval((d.text||d.textContent||d.innerHTML||"").replace(Wa,"")));h=c=null}return this}}),jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){jQuery.fn[a]=function(a){for(var c,d=0,e=[],f=jQuery(a),g=f.length-1;g>=d;d++)c=d===g?this:this.clone(!0),jQuery(f[d])[b](c),Z.apply(e,c.get());return this.pushStack(e)}});var $a,_a={};!function(){var a,b,c=oa.createElement("div"),d="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";c.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=c.getElementsByTagName("a")[0],a.style.cssText="float:left;opacity:.5",da.opacity=/^0.5/.test(a.style.opacity),da.cssFloat=!!a.style.cssFloat,c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",da.clearCloneStyle="content-box"===c.style.backgroundClip,a=c=null,da.shrinkWrapBlocks=function(){var a,c,e,f;if(null==b){if(a=oa.getElementsByTagName("body")[0],!a)return;f="border:0;width:0;height:0;position:absolute;top:0;left:-9999px",c=oa.createElement("div"),e=oa.createElement("div"),a.appendChild(c).appendChild(e),b=!1,typeof e.style.zoom!==wa&&(e.style.cssText=d+";width:1px;padding:1px;zoom:1",e.innerHTML="<div></div>",e.firstChild.style.width="5px",b=3!==e.offsetWidth),a.removeChild(c),a=c=e=null}return b}}();var ab=/^margin/,bb=new RegExp("^("+Aa+")(?!px)[a-z%]+$","i"),cb,db,eb=/^(top|right|bottom|left)$/;a.getComputedStyle?(cb=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)},db=function(a,b,c){var d,e,f,g,h=a.style;return c=c||cb(a),g=c?c.getPropertyValue(b)||c[b]:void 0,c&&(""!==g||jQuery.contains(a.ownerDocument,a)||(g=jQuery.style(a,b)),bb.test(g)&&ab.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0===g?g:g+""}):oa.documentElement.currentStyle&&(cb=function(a){return a.currentStyle},db=function(a,b,c){var d,e,f,g,h=a.style;return c=c||cb(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),bb.test(g)&&!eb.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"}),function(){function b(){var b,c,d=oa.getElementsByTagName("body")[0];d&&(b=oa.createElement("div"),c=oa.createElement("div"),b.style.cssText=j,d.appendChild(b).appendChild(c),c.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;display:block;padding:1px;border:1px;width:4px;margin-top:1%;top:1%",jQuery.swap(d,null!=d.style.zoom?{zoom:1}:{},function(){e=4===c.offsetWidth}),f=!0,g=!1,h=!0,a.getComputedStyle&&(g="1%"!==(a.getComputedStyle(c,null)||{}).top,f="4px"===(a.getComputedStyle(c,null)||{width:"4px"}).width),d.removeChild(b),c=d=null)}var c,d,e,f,g,h,i=oa.createElement("div"),j="border:0;width:0;height:0;position:absolute;top:0;left:-9999px",k="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";i.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",c=i.getElementsByTagName("a")[0],c.style.cssText="float:left;opacity:.5",da.opacity=/^0.5/.test(c.style.opacity),da.cssFloat=!!c.style.cssFloat,i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",da.clearCloneStyle="content-box"===i.style.backgroundClip,c=i=null,jQuery.extend(da,{reliableHiddenOffsets:function(){if(null!=d)return d;var a,b,c,e=oa.createElement("div"),f=oa.getElementsByTagName("body")[0];if(f)return e.setAttribute("className","t"),e.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=oa.createElement("div"),a.style.cssText=j,f.appendChild(a).appendChild(e),e.innerHTML="<table><tr><td></td><td>t</td></tr></table>",b=e.getElementsByTagName("td"),b[0].style.cssText="padding:0;margin:0;border:0;display:none",c=0===b[0].offsetHeight,b[0].style.display="",b[1].style.display="none",d=c&&0===b[0].offsetHeight,f.removeChild(a),e=f=null,d},boxSizing:function(){return null==e&&b(),e},boxSizingReliable:function(){return null==f&&b(),f},pixelPosition:function(){return null==g&&b(),g},reliableMarginRight:function(){var b,c,d,e;if(null==h&&a.getComputedStyle){if(b=oa.getElementsByTagName("body")[0],!b)return;c=oa.createElement("div"),d=oa.createElement("div"),c.style.cssText=j,b.appendChild(c).appendChild(d),e=d.appendChild(oa.createElement("div")),e.style.cssText=d.style.cssText=k,e.style.marginRight=e.style.width="0",d.style.width="1px",h=!parseFloat((a.getComputedStyle(e,null)||{}).marginRight),b.removeChild(c)}return h}})}(),jQuery.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var fb=/alpha\([^)]*\)/i,gb=/opacity\s*=\s*([^)]*)/,hb=/^(none|table(?!-c[ea]).+)/,ib=new RegExp("^("+Aa+")(.*)$","i"),jb=new RegExp("^([+-])=("+Aa+")","i"),kb={position:"absolute",visibility:"hidden",display:"block"},lb={letterSpacing:0,fontWeight:400},mb=["Webkit","O","Moz","ms"];jQuery.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=db(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":da.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=jQuery.camelCase(b),i=a.style;if(b=jQuery.cssProps[h]||(jQuery.cssProps[h]=B(i,h)),g=jQuery.cssHooks[b]||jQuery.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=jb.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(jQuery.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||jQuery.cssNumber[h]||(c+="px"),da.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]="",i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=jQuery.camelCase(b);return b=jQuery.cssProps[h]||(jQuery.cssProps[h]=B(a.style,h)),g=jQuery.cssHooks[b]||jQuery.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=db(a,b,d)),"normal"===f&&b in lb&&(f=lb[b]),""===c||c?(e=parseFloat(f),c===!0||jQuery.isNumeric(e)?e||0:f):f}}),jQuery.each(["height","width"],function(a,b){jQuery.cssHooks[b]={get:function(a,c,d){return c?0===a.offsetWidth&&hb.test(jQuery.css(a,"display"))?jQuery.swap(a,kb,function(){return F(a,b,d)}):F(a,b,d):void 0},set:function(a,c,d){var e=d&&cb(a);return D(a,c,d?E(a,b,d,da.boxSizing()&&"border-box"===jQuery.css(a,"boxSizing",!1,e),e):0)}}}),da.opacity||(jQuery.cssHooks.opacity={get:function(a,b){return gb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=jQuery.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===jQuery.trim(f.replace(fb,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=fb.test(f)?f.replace(fb,e):f+" "+e)}}),jQuery.cssHooks.marginRight=A(da.reliableMarginRight,function(a,b){return b?jQuery.swap(a,{display:"inline-block"},db,[a,"marginRight"]):void 0}),jQuery.each({margin:"",padding:"",border:"Width"},function(a,b){jQuery.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+Ba[d]+b]=f[d]||f[d-2]||f[0];return e}},ab.test(a)||(jQuery.cssHooks[a+b].set=D)}),jQuery.fn.extend({css:function(a,b){return Da(this,function(a,b,c){var d,e,f={},g=0;if(jQuery.isArray(b)){for(d=cb(a),e=b.length;e>g;g++)f[b[g]]=jQuery.css(a,b[g],!1,d);return f}return void 0!==c?jQuery.style(a,b,c):jQuery.css(a,b)},a,b,arguments.length>1)},show:function(){return C(this,!0)},hide:function(){return C(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){Ca(this)?jQuery(this).show():jQuery(this).hide()})}}),jQuery.Tween=G,G.prototype={constructor:G,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(jQuery.cssNumber[c]?"":"px")},cur:function(){var a=G.propHooks[this.prop];return a&&a.get?a.get(this):G.propHooks._default.get(this)},run:function(a){var b,c=G.propHooks[this.prop];return this.options.duration?this.pos=b=jQuery.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):G.propHooks._default.set(this),this}},G.prototype.init.prototype=G.prototype,G.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=jQuery.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){jQuery.fx.step[a.prop]?jQuery.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[jQuery.cssProps[a.prop]]||jQuery.cssHooks[a.prop])?jQuery.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},G.propHooks.scrollTop=G.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},jQuery.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},jQuery.fx=G.prototype.init,jQuery.fx.step={};var nb,ob,pb=/^(?:toggle|show|hide)$/,qb=new RegExp("^(?:([+-])=|)("+Aa+")([a-z%]*)$","i"),rb=/queueHooks$/,sb=[K],tb={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=qb.exec(b),f=e&&e[3]||(jQuery.cssNumber[a]?"":"px"),g=(jQuery.cssNumber[a]||"px"!==f&&+d)&&qb.exec(jQuery.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,jQuery.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};jQuery.Animation=jQuery.extend(M,{tweener:function(a,b){jQuery.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],tb[c]=tb[c]||[],tb[c].unshift(b)},prefilter:function(a,b){b?sb.unshift(a):sb.push(a)}}),jQuery.speed=function(a,b,c){var d=a&&"object"==typeof a?jQuery.extend({},a):{complete:c||!c&&b||jQuery.isFunction(a)&&a,duration:a,easing:c&&b||b&&!jQuery.isFunction(b)&&b};return d.duration=jQuery.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in jQuery.fx.speeds?jQuery.fx.speeds[d.duration]:jQuery.fx.speeds._default,null!=d.queue&&d.queue!==!0||(d.queue="fx"),d.old=d.complete,d.complete=function(){jQuery.isFunction(d.old)&&d.old.call(this),d.queue&&jQuery.dequeue(this,d.queue)},d},jQuery.fn.extend({fadeTo:function(a,b,c,d){return this.filter(Ca).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=jQuery.isEmptyObject(a),f=jQuery.speed(b,c,d),g=function(){var b=M(this,jQuery.extend({},a),f);(e||jQuery._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=jQuery.timers,g=jQuery._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&rb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||jQuery.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=jQuery._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=jQuery.timers,g=d?d.length:0;for(c.finish=!0,jQuery.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),jQuery.each(["toggle","show","hide"],function(a,b){var c=jQuery.fn[b];jQuery.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(I(b,!0),a,d,e)}}),jQuery.each({slideDown:I("show"),slideUp:I("hide"),slideToggle:I("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){jQuery.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),jQuery.timers=[],jQuery.fx.tick=function(){var a,b=jQuery.timers,c=0;for(nb=jQuery.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||jQuery.fx.stop(),nb=void 0},jQuery.fx.timer=function(a){jQuery.timers.push(a),a()?jQuery.fx.start():jQuery.timers.pop()},jQuery.fx.interval=13,jQuery.fx.start=function(){ob||(ob=setInterval(jQuery.fx.tick,jQuery.fx.interval))},jQuery.fx.stop=function(){clearInterval(ob),ob=null},jQuery.fx.speeds={slow:600,fast:200,_default:400},jQuery.fn.delay=function(a,b){return a=jQuery.fx?jQuery.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a,b,c,d,e=oa.createElement("div");e.setAttribute("className","t"),e.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=e.getElementsByTagName("a")[0],c=oa.createElement("select"),d=c.appendChild(oa.createElement("option")),b=e.getElementsByTagName("input")[0],a.style.cssText="top:1px",da.getSetAttribute="t"!==e.className,da.style=/top/.test(a.getAttribute("style")),da.hrefNormalized="/a"===a.getAttribute("href"),da.checkOn=!!b.value,da.optSelected=d.selected,da.enctype=!!oa.createElement("form").enctype,c.disabled=!0,da.optDisabled=!d.disabled,b=oa.createElement("input"),b.setAttribute("value",""),da.input=""===b.getAttribute("value"),b.value="t",b.setAttribute("type","radio"),da.radioValue="t"===b.value,a=b=c=d=e=null}();var ub=/\r/g;jQuery.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=jQuery.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,jQuery(this).val()):a,null==e?e="":"number"==typeof e?e+="":jQuery.isArray(e)&&(e=jQuery.map(e,function(a){return null==a?"":a+""})),b=jQuery.valHooks[this.type]||jQuery.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=jQuery.valHooks[e.type]||jQuery.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(ub,""):null==c?"":c)}}}),jQuery.extend({valHooks:{option:{get:function(a){var b=jQuery.find.attr(a,"value");return null!=b?b:jQuery.text(a)}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],(c.selected||i===e)&&(da.optDisabled?!c.disabled:null===c.getAttribute("disabled"))&&(!c.parentNode.disabled||!jQuery.nodeName(c.parentNode,"optgroup"))){if(b=jQuery(c).val(),f)return b;g.push(b)}return g},set:function(a,b){for(var c,d,e=a.options,f=jQuery.makeArray(b),g=e.length;g--;)if(d=e[g],jQuery.inArray(jQuery.valHooks.option.get(d),f)>=0)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),jQuery.each(["radio","checkbox"],function(){jQuery.valHooks[this]={set:function(a,b){return jQuery.isArray(b)?a.checked=jQuery.inArray(jQuery(a).val(),b)>=0:void 0}},da.checkOn||(jQuery.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var vb,wb,xb=jQuery.expr.attrHandle,yb=/^(?:checked|selected)$/i,zb=da.getSetAttribute,Ab=da.input;jQuery.fn.extend({attr:function(a,b){return Da(this,jQuery.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){jQuery.removeAttr(this,a)})}}),jQuery.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===wa?jQuery.prop(a,b,c):(1===f&&jQuery.isXMLDoc(a)||(b=b.toLowerCase(),d=jQuery.attrHooks[b]||(jQuery.expr.match.bool.test(b)?wb:vb)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=jQuery.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):(jQuery.removeAttr(a,b),void 0))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(ta);if(f&&1===a.nodeType)for(;c=f[e++];)d=jQuery.propFix[c]||c,jQuery.expr.match.bool.test(c)?Ab&&zb||!yb.test(c)?a[d]=!1:a[jQuery.camelCase("default-"+c)]=a[d]=!1:jQuery.attr(a,c,""),a.removeAttribute(zb?c:d)},attrHooks:{type:{set:function(a,b){if(!da.radioValue&&"radio"===b&&jQuery.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),wb={set:function(a,b,c){return b===!1?jQuery.removeAttr(a,c):Ab&&zb||!yb.test(c)?a.setAttribute(!zb&&jQuery.propFix[c]||c,c):a[jQuery.camelCase("default-"+c)]=a[c]=!0,c}},jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g),function(a,b){var c=xb[b]||jQuery.find.attr;xb[b]=Ab&&zb||!yb.test(b)?function(a,b,d){var e,f;return d||(f=xb[b],xb[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,xb[b]=f),e}:function(a,b,c){return c?void 0:a[jQuery.camelCase("default-"+b)]?b.toLowerCase():null}}),Ab&&zb||(jQuery.attrHooks.value={set:function(a,b,c){return jQuery.nodeName(a,"input")?(a.defaultValue=b,void 0):vb&&vb.set(a,b,c)}}),zb||(vb={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},xb.id=xb.name=xb.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},jQuery.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:vb.set},jQuery.attrHooks.contenteditable={set:function(a,b,c){vb.set(a,""===b?!1:b,c)}},jQuery.each(["width","height"],function(a,b){jQuery.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),da.style||(jQuery.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var Bb=/^(?:input|select|textarea|button|object)$/i,Cb=/^(?:a|area)$/i;jQuery.fn.extend({prop:function(a,b){return Da(this,jQuery.prop,a,b,arguments.length>1)},removeProp:function(a){return a=jQuery.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),jQuery.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!jQuery.isXMLDoc(a),f&&(b=jQuery.propFix[b]||b,e=jQuery.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=jQuery.find.attr(a,"tabindex");return b?parseInt(b,10):Bb.test(a.nodeName)||Cb.test(a.nodeName)&&a.href?0:-1}}}}),da.hrefNormalized||jQuery.each(["href","src"],function(a,b){jQuery.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),da.optSelected||(jQuery.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}}),jQuery.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){jQuery.propFix[this.toLowerCase()]=this}),da.enctype||(jQuery.propFix.enctype="encoding");var Db=/[\t\r\n\f]/g;jQuery.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j="string"==typeof a&&a;if(jQuery.isFunction(a))return this.each(function(b){jQuery(this).addClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(ta)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(Db," "):" "),d){for(f=0;e=b[f++];)d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=jQuery.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=0===arguments.length||"string"==typeof a&&a;if(jQuery.isFunction(a))return this.each(function(b){jQuery(this).removeClass(a.call(this,b,this.className))});if(j)for(b=(a||"").match(ta)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(Db," "):""),d){for(f=0;e=b[f++];)for(;d.indexOf(" "+e+" ")>=0;)d=d.replace(" "+e+" "," ");g=a?jQuery.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):jQuery.isFunction(a)?this.each(function(c){jQuery(this).toggleClass(a.call(this,c,this.className,b),b)}):this.each(function(){if("string"===c)for(var b,d=0,e=jQuery(this),f=a.match(ta)||[];b=f[d++];)e.hasClass(b)?e.removeClass(b):e.addClass(b);else c!==wa&&"boolean"!==c||(this.className&&jQuery._data(this,"__className__",this.className),this.className=this.className||a===!1?"":jQuery._data(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(Db," ").indexOf(b)>=0)return!0;return!1}}),jQuery.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){jQuery.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),jQuery.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var Eb=jQuery.now(),Fb=/\?/,Gb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;jQuery.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=jQuery.trim(b+"");return e&&!jQuery.trim(e.replace(Gb,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():jQuery.error("Invalid JSON: "+b)},jQuery.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||jQuery.error("Invalid XML: "+b),c};var Hb,Ib,Jb=/#.*$/,Kb=/([?&])_=[^&]*/,Lb=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Mb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Nb=/^(?:GET|HEAD)$/,Ob=/^\/\//,Pb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Qb={},Rb={},Sb="*/".concat("*");try{Ib=location.href}catch(Tb){Ib=oa.createElement("a"),Ib.href="",Ib=Ib.href}Hb=Pb.exec(Ib.toLowerCase())||[],jQuery.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ib,type:"GET",isLocal:Mb.test(Hb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Sb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":jQuery.parseJSON,"text xml":jQuery.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?P(P(a,jQuery.ajaxSettings),b):P(jQuery.ajaxSettings,a)},ajaxPrefilter:N(Qb),ajaxTransport:N(Rb),ajax:function(a,b){function c(a,b,c,d){var e,k,r,s,u,w=b;2!==t&&(t=2,h&&clearTimeout(h),j=void 0,g=d||"",v.readyState=a>0?4:0,e=a>=200&&300>a||304===a,c&&(s=Q(l,v,c)),s=R(l,s,v,e),e?(l.ifModified&&(u=v.getResponseHeader("Last-Modified"),u&&(jQuery.lastModified[f]=u),u=v.getResponseHeader("etag"),u&&(jQuery.etag[f]=u)),204===a||"HEAD"===l.type?w="nocontent":304===a?w="notmodified":(w=s.state,k=s.data,r=s.error,e=!r)):(r=w,!a&&w||(w="error",0>a&&(a=0))),v.status=a,v.statusText=(b||w)+"",e?o.resolveWith(m,[k,w,v]):o.rejectWith(m,[v,w,r]),v.statusCode(q),q=void 0,i&&n.trigger(e?"ajaxSuccess":"ajaxError",[v,l,e?k:r]),p.fireWith(m,[v,w]),i&&(n.trigger("ajaxComplete",[v,l]),--jQuery.active||jQuery.event.trigger("ajaxStop")))}"object"==typeof a&&(b=a,a=void 0),b=b||{};var d,e,f,g,h,i,j,k,l=jQuery.ajaxSetup({},b),m=l.context||l,n=l.context&&(m.nodeType||m.jquery)?jQuery(m):jQuery.event,o=jQuery.Deferred(),p=jQuery.Callbacks("once memory"),q=l.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!k)for(k={};b=Lb.exec(g);)k[b[1].toLowerCase()]=b[2];b=k[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?g:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(l.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return j&&j.abort(b),c(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,l.url=((a||l.url||Ib)+"").replace(Jb,"").replace(Ob,Hb[1]+"//"),l.type=b.method||b.type||l.method||l.type,l.dataTypes=jQuery.trim(l.dataType||"*").toLowerCase().match(ta)||[""],null==l.crossDomain&&(d=Pb.exec(l.url.toLowerCase()),l.crossDomain=!(!d||d[1]===Hb[1]&&d[2]===Hb[2]&&(d[3]||("http:"===d[1]?"80":"443"))===(Hb[3]||("http:"===Hb[1]?"80":"443")))),l.data&&l.processData&&"string"!=typeof l.data&&(l.data=jQuery.param(l.data,l.traditional)),O(Qb,l,b,v),2===t)return v;i=l.global,i&&0===jQuery.active++&&jQuery.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!Nb.test(l.type),f=l.url,l.hasContent||(l.data&&(f=l.url+=(Fb.test(f)?"&":"?")+l.data,delete l.data),l.cache===!1&&(l.url=Kb.test(f)?f.replace(Kb,"$1_="+Eb++):f+(Fb.test(f)?"&":"?")+"_="+Eb++)),l.ifModified&&(jQuery.lastModified[f]&&v.setRequestHeader("If-Modified-Since",jQuery.lastModified[f]),jQuery.etag[f]&&v.setRequestHeader("If-None-Match",jQuery.etag[f])),(l.data&&l.hasContent&&l.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",l.contentType),v.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+Sb+"; q=0.01":""):l.accepts["*"]);for(e in l.headers)v.setRequestHeader(e,l.headers[e]);if(l.beforeSend&&(l.beforeSend.call(m,v,l)===!1||2===t))return v.abort();u="abort";for(e in{success:1,error:1,complete:1})v[e](l[e]);if(j=O(Rb,l,b,v),j){v.readyState=1,i&&n.trigger("ajaxSend",[v,l]),l.async&&l.timeout>0&&(h=setTimeout(function(){v.abort("timeout")},l.timeout));try{t=1,j.send(r,c)}catch(w){if(!(2>t))throw w;c(-1,w)}}else c(-1,"No Transport");return v},getJSON:function(a,b,c){return jQuery.get(a,b,c,"json")},getScript:function(a,b){return jQuery.get(a,void 0,b,"script")}}),jQuery.each(["get","post"],function(a,b){jQuery[b]=function(a,c,d,e){return jQuery.isFunction(c)&&(e=e||d,d=c,c=void 0),jQuery.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),jQuery.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){jQuery.fn[b]=function(a){return this.on(b,a)}}),jQuery._evalUrl=function(a){return jQuery.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},jQuery.fn.extend({wrapAll:function(a){if(jQuery.isFunction(a))return this.each(function(b){jQuery(this).wrapAll(a.call(this,b))});if(this[0]){var b=jQuery(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){for(var a=this;a.firstChild&&1===a.firstChild.nodeType;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return jQuery.isFunction(a)?this.each(function(b){jQuery(this).wrapInner(a.call(this,b))}):this.each(function(){var b=jQuery(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=jQuery.isFunction(a);return this.each(function(c){jQuery(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){jQuery.nodeName(this,"body")||jQuery(this).replaceWith(this.childNodes)}).end()}}),jQuery.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0||!da.reliableHiddenOffsets()&&"none"===(a.style&&a.style.display||jQuery.css(a,"display"))},jQuery.expr.filters.visible=function(a){return!jQuery.expr.filters.hidden(a)};var Ub=/%20/g,Vb=/\[\]$/,Wb=/\r?\n/g,Xb=/^(?:submit|button|image|reset|file)$/i,Yb=/^(?:input|select|textarea|keygen)/i;jQuery.param=function(a,b){var c,d=[],e=function(a,b){b=jQuery.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=jQuery.ajaxSettings&&jQuery.ajaxSettings.traditional),jQuery.isArray(a)||a.jquery&&!jQuery.isPlainObject(a))jQuery.each(a,function(){e(this.name,this.value)});else for(c in a)S(c,a[c],b,e);return d.join("&").replace(Ub,"+")},jQuery.fn.extend({serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=jQuery.prop(this,"elements");return a?jQuery.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!jQuery(this).is(":disabled")&&Yb.test(this.nodeName)&&!Xb.test(a)&&(this.checked||!Ea.test(a))}).map(function(a,b){var c=jQuery(this).val();return null==c?null:jQuery.isArray(c)?jQuery.map(c,function(a){return{name:b.name,value:a.replace(Wb,"\r\n")}}):{name:b.name,value:c.replace(Wb,"\r\n")}}).get()}}),jQuery.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&T()||U()}:T;var Zb=0,$b={},_b=jQuery.ajaxSettings.xhr();a.ActiveXObject&&jQuery(a).on("unload",function(){for(var a in $b)$b[a](void 0,!0)}),da.cors=!!_b&&"withCredentials"in _b,_b=da.ajax=!!_b,_b&&jQuery.ajaxTransport(function(a){if(!a.crossDomain||da.cors){var b;return{send:function(c,d){var e,f=a.xhr(),g=++Zb;if(f.open(a.type,a.url,a.async,a.username,a.password),
a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)void 0!==c[e]&&f.setRequestHeader(e,c[e]+"");f.send(a.hasContent&&a.data||null),b=function(c,e){var h,i,j;if(b&&(e||4===f.readyState))if(delete $b[g],b=void 0,f.onreadystatechange=jQuery.noop,e)4!==f.readyState&&f.abort();else{j={},h=f.status,"string"==typeof f.responseText&&(j.text=f.responseText);try{i=f.statusText}catch(k){i=""}h||!a.isLocal||a.crossDomain?1223===h&&(h=204):h=j.text?200:404}j&&d(h,i,j,f.getAllResponseHeaders())},a.async?4===f.readyState?setTimeout(b):f.onreadystatechange=$b[g]=b:b()},abort:function(){b&&b(void 0,!0)}}}}),jQuery.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return jQuery.globalEval(a),a}}}),jQuery.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),jQuery.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=oa.head||jQuery("head")[0]||oa.documentElement;return{send:function(d,e){b=oa.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||e(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var ac=[],bc=/(=)\?(?=&|$)|\?\?/;jQuery.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=ac.pop()||jQuery.expando+"_"+Eb++;return this[a]=!0,a}}),jQuery.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(bc.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&bc.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=jQuery.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(bc,"$1"+e):b.jsonp!==!1&&(b.url+=(Fb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||jQuery.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,ac.push(e)),g&&jQuery.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),jQuery.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||oa;var d=la.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=jQuery.buildFragment([a],b,e),e&&e.length&&jQuery(e).remove(),jQuery.merge([],d.childNodes))};var cc=jQuery.fn.load;jQuery.fn.load=function(a,b,c){if("string"!=typeof a&&cc)return cc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=a.slice(h,a.length),a=a.slice(0,h)),jQuery.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(f="POST"),g.length>0&&jQuery.ajax({url:a,type:f,dataType:"html",data:b}).done(function(a){e=arguments,g.html(d?jQuery("<div>").append(jQuery.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},jQuery.expr.filters.animated=function(a){return jQuery.grep(jQuery.timers,function(b){return a===b.elem}).length};var dc=a.document.documentElement;jQuery.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=jQuery.css(a,"position"),l=jQuery(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=jQuery.css(a,"top"),i=jQuery.css(a,"left"),j=("absolute"===k||"fixed"===k)&&jQuery.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),jQuery.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},jQuery.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){jQuery.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,jQuery.contains(b,e)?(typeof e.getBoundingClientRect!==wa&&(d=e.getBoundingClientRect()),c=V(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===jQuery.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),jQuery.nodeName(a[0],"html")||(c=a.offset()),c.top+=jQuery.css(a[0],"borderTopWidth",!0),c.left+=jQuery.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-jQuery.css(d,"marginTop",!0),left:b.left-c.left-jQuery.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||dc;a&&!jQuery.nodeName(a,"html")&&"static"===jQuery.css(a,"position");)a=a.offsetParent;return a||dc})}}),jQuery.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);jQuery.fn[a]=function(d){return Da(this,function(a,d,e){var f=V(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:(f?f.scrollTo(c?jQuery(f).scrollLeft():e,c?e:jQuery(f).scrollTop()):a[d]=e,void 0)},a,d,arguments.length,null)}}),jQuery.each(["top","left"],function(a,b){jQuery.cssHooks[b]=A(da.pixelPosition,function(a,c){return c?(c=db(a,b),bb.test(c)?jQuery(a).position()[b]+"px":c):void 0})}),jQuery.each({Height:"height",Width:"width"},function(a,b){jQuery.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){jQuery.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return Da(this,function(b,c,d){var e;return jQuery.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?jQuery.css(b,c,g):jQuery.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),jQuery.fn.size=function(){return this.length},jQuery.fn.andSelf=jQuery.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return jQuery});var ec=a.jQuery,fc=a.$;return jQuery.noConflict=function(b){return a.$===jQuery&&(a.$=fc),b&&a.jQuery===jQuery&&(a.jQuery=ec),jQuery},typeof b===wa&&(a.jQuery=a.$=jQuery),jQuery}),define('application/native_shims',['underscore'],function(a){return Function.prototype.bind=Function.prototype.bind||function(b){var c=this,d=a.rest(arguments);return function(){return d=d.concat(a.toArray(arguments)),c.apply(b,d)}},Object.freeze=Object.freeze||a.identity,Object.keys=Object.keys||a.keys,Array.prototype.forEach=Array.prototype.forEach||function(b,c){a.each(this,b,c||window)},Array.prototype.map=Array.prototype.map||function(b,c){return a.map(this,b,c||window)},Array.prototype.filter=Array.prototype.filter||function(b,c){return a.filter(this,b,c||window)},Array.prototype.every=Array.prototype.every||function(b,c){return a.every(this,b,c||window)},Array.prototype.some=Array.prototype.some||function(b,c){return a.some(this,b,c||window)},Array.prototype.reduce=Array.prototype.reduce||function(a){var b=this.length>>>0;if('function'!=typeof a)throw new TypeError;if(0==b&&1==arguments.length)throw new TypeError;var c=0;if(arguments.length>=2)var d=arguments[1];else for(;;){if(c in this){d=this[c++];break}if(++c>=b)throw new TypeError}for(;b>c;c++)c in this&&(d=a.call(null,d,this[c],c,this));return d},Array.prototype.reduceRight=function(a){var b=this.length>>>0;if('function'!=typeof a)throw new TypeError;if(0==b&&1==arguments.length)throw new TypeError;var c=b-1;if(arguments.length>=2)var d=arguments[1];else for(;;){if(c in this){var d=this[c--];break}if(--c<0)throw new TypeError}for(;c>=0;c--)c in this&&(d=a.call(null,d,this[c],c,this));return d},Array.prototype.indexOf=Array.prototype.indexOf||function(a){var b=this.length>>>0,c=Number(arguments[1])||0;for(c=0>c?Math.ceil(c):Math.floor(c),0>c&&(c+=b);b>c;c++)if(c in this&&this[c]===a)return c;return-1},Array.prototype.lastIndexOf=Array.prototype.lastIndexOf||function(a){var b=this.length,c=Number(arguments[1]);for(isNaN(c)?c=b-1:(c=0>c?Math.ceil(c):Math.floor(c),0>c?c+=b:c>=b&&(c=b-1));c>-1;c--)if(c in this&&this[c]===a)return c;return-1},{}}),define('application/config',['module','underscore','./native_shims','domReady!'],function(a,b){'use strict';var c=a.config(),d=c.pageConfig||{};return c.containerID=c.containerId,delete c.pageConfig,c.isAdminConsole&&(delete c.containerID,c.currentUser=window._jive_current_user,c.currentUser.id=c.currentUser.ID),Object.freeze(b.extend(c,d))}),define('jquery-private',['jquery','application/config'],function(a,b){return window.$j=a,a.ajaxSetup({traditional:!0,cache:!0}),b.jqueryNoConflict?a.noConflict():a}),define('jquery-plugin/plugin_utils',['jquery'],function(a){a.pluginUtils={declare:function(b,c,d){if('function'==typeof a.fn[b])throw new Error("A jQuery plugin named '"+b+"' already exists");return a.fn[b]=function(){var d=a.isPlainObject(arguments[0])?arguments[0]:{},e='string'==typeof arguments[0]?arguments[0]:void 0,f=[].slice.call(arguments,1);return this.each(function(){var g=a(this),h=g.data(b);h||g.data(b,h=new c(this,d));var i=a.extend({},g.data(),d);delete i[b],a.each(i,function(a,b){h.options[a]=b}),e&&h[e].apply(h,f)})},a.fn[b].Constructor=c,a.fn[b].defaults=d||{},a.fn[b]}}}),define('jquery-plugin/jquery.asyncReady',['jquery'],function(a){var b=a.fn.ready;a.fn.asyncReady=function(){var c=this,d=arguments;return a.isReady?(setTimeout(function(){b.apply(c,d)},1),void 0):b.apply(c,d)}}),function(a){a.extend(a.fn,{delayedObserver:function(b,c,d){this.each(function(){var d=a(this),e=e||{};d.data('oldval',d.val()).data('delay',c||.5).data('condition',e.condition||function(){return a(this).data('oldval')==a(this).val()}).data('callback',b)[e.event||'keyup'](function(){d.data('condition').apply(d)||(d.data('timer')&&clearTimeout(d.data('timer')),d.data('timer',setTimeout(function(){d.data('callback').apply(d)},1e3*d.data('delay'))),d.data('oldval',d.val()))})})}})}(jQuery),define("jquery-plugin/jquery.delayedObserver",["jquery"],function(){}),function(a){function b(){if(a.fn.ajaxSubmit.debug){var b='[jquery.form] '+Array.prototype.join.call(arguments,'');window.console&&window.console.log?window.console.log(b):window.opera&&window.opera.postError&&window.opera.postError(b)}}a.fn.ajaxSubmit=function(c){function d(){function d(a){var c=null;try{a.contentWindow&&(c=a.contentWindow.document)}catch(d){b('cannot get iframe.contentWindow document: '+d)}if(c)return c;try{c=a.contentDocument?a.contentDocument:a.document}catch(d){b('cannot get iframe.contentDocument: '+d),c=a.document}return c}function e(){var b=m.attr('target'),c=m.attr('action');g.setAttribute('target',i),'POST'!=g.getAttribute('method')&&g.setAttribute('method','POST'),g.getAttribute('action')!=h.url&&g.setAttribute('action',h.url),h.skipEncodingOverride||m.attr({encoding:'multipart/form-data',enctype:'multipart/form-data'}),h.timeout&&setTimeout(function(){p=!0,f()},h.timeout);var d=[];try{if(h.extraData)for(var e in h.extraData)d.push(a('<input>').attr('type','hidden').attr('name',e).val(h.extraData[e]).appendTo(g)[0]);k.appendTo('body'),l.attachEvent?l.attachEvent('onload',f):l.addEventListener('load',f,!1),g.submit()}finally{g.setAttribute('action',c),b?g.setAttribute('target',b):m.removeAttr('target'),a(d).remove()}}function f(){if(!n.aborted){var c=d(l);if(c&&c.location.href!=h.iframeSrc){l.detachEvent?l.detachEvent('onload',f):l.removeEventListener('load',f,!1);var e=!0;try{if(p)throw'timeout';var g='xml'==h.dataType||c.XMLDocument||a.isXMLDoc(c);if(b('isXml='+g),!g&&window.opera&&(null==c.body||''==c.body.innerHTML)&&--u)return b('requeing onLoad callback, DOM not available'),setTimeout(f,250),void 0;n.responseText=c.body?c.body.innerHTML:c.documentElement?c.documentElement.innerHTML:null,n.responseXML=c.XMLDocument?c.XMLDocument:c,n.getResponseHeader=function(a){var b={'content-type':h.dataType};return b[a]};var i=/(json|script)/.test(h.dataType);if(i||h.textarea){var j=c.getElementsByTagName('textarea')[0];if(j)n.responseText=j.value;else if(i){var m=c.getElementsByTagName('pre')[0],q=c.getElementsByTagName('body')[0];m?n.responseText=m.textContent:q&&(n.responseText=q.innerHTML)}}else'xml'!=h.dataType||n.responseXML||null==n.responseText||(n.responseXML=v(n.responseText));s=x(n,h.dataType,h)}catch(r){b('error caught:',r),e=!1,n.error=r,h.error&&h.error.call(h.context,n,'error',r),o&&a.event.trigger("ajaxError",[n,h,r])}n.aborted&&(b('upload aborted'),e=!1),e&&(h.success&&h.success.call(h.context,s,'success',n),o&&a.event.trigger("ajaxSuccess",[n,h])),o&&a.event.trigger("ajaxComplete",[n,h]),o&&!--a.active&&a.event.trigger("ajaxStop"),h.complete&&h.complete.call(h.context,n,e?'success':'error'),setTimeout(function(){k.removeData('form-plugin-onload'),k.remove(),n.responseXML=null},100)}}}var g=m[0];if(a(':input[name=submit],:input[id=submit]',g).length)return alert('Error: Form elements must not have name or id of "submit".'),void 0;var h=a.extend(!0,{},a.ajaxSettings,c);h.context=h.context||h;var i='jqFormIO'+(new Date).getTime(),j='_'+i,k=a('<iframe id="'+i+'" name="'+i+'" src="'+h.iframeSrc+'" />'),l=k[0];k.css({position:'absolute',top:'-1000px',left:'-1000px'});var n={aborted:0,responseText:null,responseXML:null,status:0,statusText:'n/a',getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){b('aborting upload...');var c='aborted';this.aborted=1,k.attr('src',h.iframeSrc),n.error=c,h.error&&h.error.call(h.context,n,'error',c),o&&a.event.trigger("ajaxError",[n,h,c]),h.complete&&h.complete.call(h.context,n,'error')}},o=h.global;if(o&&!a.active++&&a.event.trigger("ajaxStart"),o&&a.event.trigger("ajaxSend",[n,h]),h.beforeSend&&h.beforeSend.call(h.context,n,h)===!1)return h.global&&a.active--,void 0;if(!n.aborted){var p=0,q=g.clk;if(q){var r=q.name;r&&!q.disabled&&(h.extraData=h.extraData||{},h.extraData[r]=q.value,"image"==q.type&&(h.extraData[r+'.x']=g.clk_x,h.extraData[r+'.y']=g.clk_y))}h.forceSync?e():setTimeout(e,10);var s,t,u=50,v=a.parseXML||function(a,b){return window.ActiveXObject?(b=new ActiveXObject('Microsoft.XMLDOM'),b.async='false',b.loadXML(a)):b=(new DOMParser).parseFromString(a,'text/xml'),b&&b.documentElement&&'parsererror'!=b.documentElement.nodeName?b:null},w=a.parseJSON||function(a){return window.eval('('+a+')')},x=function(b,c,d){var e=b.getResponseHeader('content-type')||'',f='xml'===c||!c&&e.indexOf('xml')>=0,g=f?b.responseXML:b.responseText;return f&&'parsererror'===g.documentElement.nodeName&&a.error&&a.error('parsererror'),d&&d.dataFilter&&(g=d.dataFilter(g,c)),'string'==typeof g&&('json'===c||!c&&e.indexOf('json')>=0?g=w(g):("script"===c||!c&&e.indexOf("javascript")>=0)&&a.globalEval(g)),g}}}if(!this.length)return b('ajaxSubmit: skipping submit process - no element selected'),this;'function'==typeof c&&(c={success:c});var e=this.attr('action'),f='string'==typeof e?a.trim(e):'';f&&(f=(f.match(/^([^#]+)/)||[])[1]),f=f||window.location.href||'',c=a.extend(!0,{url:f,type:this[0].getAttribute('method')||'GET',iframeSrc:/^https/i.test(window.location.href||'')?'javascript:false':'about:blank'},c);var g={};if(this.trigger('form-pre-serialize',[this,c,g]),g.veto)return b('ajaxSubmit: submit vetoed via form-pre-serialize trigger'),this;if(c.beforeSerialize&&c.beforeSerialize(this,c)===!1)return b('ajaxSubmit: submit aborted via beforeSerialize callback'),this;var h,i,j=this.formToArray(c.semantic);if(c.data){c.extraData=c.data;for(h in c.data)if(c.data[h]instanceof Array)for(var k in c.data[h])j.push({name:h,value:c.data[h][k]});else i=c.data[h],i=a.isFunction(i)?i():i,j.push({name:h,value:i})}if(c.beforeSubmit&&c.beforeSubmit(j,this,c)===!1)return b('ajaxSubmit: submit aborted via beforeSubmit callback'),this;if(this.trigger('form-submit-validate',[j,this,c,g]),g.veto)return b('ajaxSubmit: submit vetoed via form-submit-validate trigger'),this;var l=a.param(j);'GET'==c.type.toUpperCase()?(c.url+=(c.url.indexOf('?')>=0?'&':'?')+l,c.data=null):c.data=l;var m=this,n=[];if(c.resetForm&&n.push(function(){m.resetForm()}),c.clearForm&&n.push(function(){m.clearForm()}),!c.dataType&&c.target){var o=c.success||function(){};n.push(function(b){var d=c.replaceTarget?'replaceWith':'html';a(c.target)[d](b).each(o,arguments)})}else c.success&&n.push(c.success);c.success=function(a,b,d){for(var e=c.context||c,f=0,g=n.length;g>f;f++)n[f].apply(e,[a,b,d||m,m])};var p=a('input:file',this).length>0,q='multipart/form-data',r=m.attr('enctype')==q||m.attr('encoding')==q;return c.iframe!==!1&&(p||c.iframe||r)?c.closeKeepAlive?a.get(c.closeKeepAlive,d):d():a.ajax(c),this.trigger('form-submit-notify',[this,c]),this},a.fn.ajaxForm=function(c){if(0===this.length){var d={s:this.selector,c:this.context};return!a.isReady&&d.s?(b('DOM not ready, queuing ajaxForm'),a(function(){a(d.s,d.c).ajaxForm(c)}),this):(b('terminating; zero elements found by selector'+(a.isReady?'':' (DOM not ready)')),this)}return this.ajaxFormUnbind().bind('submit.form-plugin',function(b){b.isDefaultPrevented()||(b.preventDefault(),a(this).ajaxSubmit(c))}).bind('click.form-plugin',function(b){var c=b.target,d=a(c);if(!d.is(":submit,input:image")){var e=d.closest(':submit');if(0==e.length)return;c=e[0]}var f=this;if(f.clk=c,'image'==c.type)if(void 0!=b.offsetX)f.clk_x=b.offsetX,f.clk_y=b.offsetY;else if('function'==typeof a.fn.offset){var g=d.offset();f.clk_x=b.pageX-g.left,f.clk_y=b.pageY-g.top}else f.clk_x=b.pageX-c.offsetLeft,f.clk_y=b.pageY-c.offsetTop;setTimeout(function(){f.clk=f.clk_x=f.clk_y=null},100)})},a.fn.ajaxFormUnbind=function(){return this.unbind('submit.form-plugin click.form-plugin')},a.fn.formToArray=function(b){var c=[];if(0===this.length)return c;var d=this[0],e=b?d.getElementsByTagName('*'):d.elements;if(!e)return c;var f,g,h,i,j,k,l;for(f=0,k=e.length;k>f;f++)if(j=e[f],h=j.name,h)if(b&&d.clk&&"image"==j.type)j.disabled||d.clk!=j||(c.push({name:h,value:a(j).val()}),c.push({name:h+'.x',value:d.clk_x},{name:h+'.y',value:d.clk_y}));else if(i=a.fieldValue(j,!0),i&&i.constructor==Array)for(g=0,l=i.length;l>g;g++)c.push({name:h,value:i[g]});else null!==i&&'undefined'!=typeof i&&c.push({name:h,value:i});if(!b&&d.clk){var m=a(d.clk),n=m[0];h=n.name,h&&!n.disabled&&'image'==n.type&&(c.push({name:h,value:m.val()}),c.push({name:h+'.x',value:d.clk_x},{name:h+'.y',value:d.clk_y}))}return c},a.fn.formSerialize=function(b){return a.param(this.formToArray(b))},a.fn.fieldSerialize=function(b){var c=[];return this.each(function(){var d=this.name;if(d){var e=a.fieldValue(this,b);if(e&&e.constructor==Array)for(var f=0,g=e.length;g>f;f++)c.push({name:d,value:e[f]});else null!==e&&'undefined'!=typeof e&&c.push({name:this.name,value:e})}}),a.param(c)},a.fn.fieldValue=function(b){for(var c=[],d=0,e=this.length;e>d;d++){var f=this[d],g=a.fieldValue(f,b);null===g||'undefined'==typeof g||g.constructor==Array&&!g.length||(g.constructor==Array?a.merge(c,g):c.push(g))}return c},a.fieldValue=function(b,c){var d=b.name,e=b.type,f=b.tagName.toLowerCase();if(void 0===c&&(c=!0),c&&(!d||b.disabled||'reset'==e||'button'==e||('checkbox'==e||'radio'==e)&&!b.checked||('submit'==e||'image'==e)&&b.form&&b.form.clk!=b||'select'==f&&-1==b.selectedIndex))return null;if('select'==f){var g=b.selectedIndex;if(0>g)return null;for(var h=[],i=b.options,j='select-one'==e,k=j?g+1:i.length,l=j?g:0;k>l;l++){var m=i[l];if(m.selected){var n=m.value;if(n||(n=m.attributes&&m.attributes.value&&!m.attributes.value.specified?m.text:m.value),j)return n;h.push(n)}}return h}return a(b).val()},a.fn.clearForm=function(){return this.each(function(){a('input,select,textarea',this).clearFields()})},a.fn.clearFields=a.fn.clearInputs=function(){return this.each(function(){var a=this.type,b=this.tagName.toLowerCase();'text'==a||'password'==a||'textarea'==b?this.value='':'checkbox'==a||'radio'==a?this.checked=!1:'select'==b&&(this.selectedIndex=-1)})},a.fn.resetForm=function(){return this.each(function(){('function'==typeof this.reset||'object'==typeof this.reset&&!this.reset.nodeType)&&this.reset()})},a.fn.enable=function(a){return void 0===a&&(a=!0),this.each(function(){this.disabled=!a})},a.fn.selected=function(b){return void 0===b&&(b=!0),this.each(function(){var c=this.type;if('checkbox'==c||'radio'==c)this.checked=b;else if('option'==this.tagName.toLowerCase()){var d=a(this).parent('select');b&&d[0]&&'select-one'==d[0].type&&d.find('option').selected(!1),this.selected=b}})}}(jQuery),define("jquery-plugin/jquery.form",["jquery"],function(){}),jQuery.extend({historyCurrentHash:void 0,historyCallback:void 0,historyInit:function(a){jQuery.historyCallback=a;var b=location.hash;if(jQuery.historyCurrentHash=b,jQuery.browser.msie){''==jQuery.historyCurrentHash&&(jQuery.historyCurrentHash='#'),jQuery("body").prepend('<iframe id="jQuery_history" style="display: none;"></iframe>');var c=jQuery("#jQuery_history")[0],d=c.contentWindow.document;d.open(),d.close(),d.location.hash=b}else jQuery.browser.safari&&(jQuery.historyBackStack=[],jQuery.historyBackStack.length=history.length,jQuery.historyForwardStack=[],jQuery.isFirst=!0);jQuery.historyCallback(b.replace(/^#/,'')),setInterval(jQuery.historyCheck,100)},historyAddHistory:function(a){jQuery.historyBackStack.push(a),jQuery.historyForwardStack.length=0,this.isFirst=!0},historyCheck:function(){if(jQuery.browser.msie){var a=jQuery("#jQuery_history")[0],b=a.contentDocument||a.contentWindow.document,c=b.location.hash;c!=jQuery.historyCurrentHash&&(location.hash=c,jQuery.historyCurrentHash=c,jQuery.historyCallback(c.replace(/^#/,'')))}else if(jQuery.browser.safari){if(!jQuery.dontCheck){var d=history.length-jQuery.historyBackStack.length;if(d){if(jQuery.isFirst=!1,0>d)for(var e=0;e<Math.abs(d);e++)jQuery.historyForwardStack.unshift(jQuery.historyBackStack.pop());else for(var e=0;d>e;e++)jQuery.historyBackStack.push(jQuery.historyForwardStack.shift());var f=jQuery.historyBackStack[jQuery.historyBackStack.length-1];void 0!=f&&(jQuery.historyCurrentHash=location.hash,jQuery.historyCallback(f))}else if(void 0==jQuery.historyBackStack[jQuery.historyBackStack.length-1]&&!jQuery.isFirst){if(document.URL.indexOf('#')>=0)jQuery.historyCallback(document.URL.split('#')[1]);else{var c=location.hash;jQuery.historyCallback('')}jQuery.isFirst=!0}}}else{var c=location.hash;c!=jQuery.historyCurrentHash&&(jQuery.historyCurrentHash=c,jQuery.historyCallback(c.replace(/^#/,'')))}},historyLoad:function(a){var b;if(jQuery.browser.safari?b=a:(b='#'+a,location.hash=b),jQuery.historyCurrentHash=b,jQuery.browser.msie){var c=jQuery("#jQuery_history")[0],d=c.contentWindow.document;d.open(),d.close(),d.location.hash=b,jQuery.historyCallback(a)}else if(jQuery.browser.safari){jQuery.dontCheck=!0,this.historyAddHistory(a);var e=function(){jQuery.dontCheck=!1};window.setTimeout(e,200),jQuery.historyCallback(a),location.hash=b}else jQuery.historyCallback(a)}}),define("jquery-plugin/jquery.history",["jquery"],function(){}),define('jquery-plugin/jquery.id',['jquery'],function(a){var b=0,c="__generated_id_";a.fn.id=function(a){if(!this.length)return"";var d=this.first();if(a)return d.attr("id",a),this;var e=d.attr("id");return e?e:(a=c+b,++b,d.attr("id",a),a)}}),function(a,b){'function'==typeof define&&define.amd?define('jquery-plugin/jquery.jivefilebutton',['jquery'],b):b(a.jQuery)}(this,function(a){a.fn.jiveFileButton=function(b){function c(){var e=a(this).unbind('change',c).remove();d.trigger('choose',e),d.jiveFileButton(b)}var d=this;return b=a.extend({name:'file',title:'file',id:'file'+Math.floor(1e3*Math.random()+1)},b||{}),a('<input type="file" />').attr({name:b.name,id:b.id,title:b.title,accept:b.accept||'*/*'}).appendTo(d).change(c),d}}),function(){var a=!1,b=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){},Class.extend=function(c){function d(){!a&&this.init&&this.init.apply(this,arguments)}var e=this.prototype;a=!0;var f=new this;a=!1;for(var g in c)f[g]="function"==typeof c[g]&&"function"==typeof e[g]&&b.test(c[g])?function(a,b){return function(){var c=this._super;this._super=e[a];var d=b.apply(this,arguments);return this._super=c,d}}(g,c[g]):c[g];return d.prototype=f,d.prototype.constructor=d,d.extend=arguments.callee,d}}(),define("Class",function(a){return function(){var b,c;return b||a.Class}}(this)),define('jquery-plugin/jquery.jstree',['Class'],function(a){var b=a.extend({init:function(){this.checkable=!1,this.selectable=!1,this.multiselect=!1,this.loadFunction=null,this.selectionCallback=null,this.selectionHasChanged=!1,this.doubleClickCallback=null},getRoot:function(){return this.root},getCheckable:function(){return this.checkable},setCheckable:function(a){this.checkable=a},getSelectable:function(){return this.selectable},setSelectable:function(a){this.selectable=a},getLoadFunction:function(){return this.loadFunction},setLoadFunction:function(a){this.loadFunction=a},getSelectionCallback:function(){return this.selectionCallback},setSelectionCallback:function(a){this.selectionCallback=a},getDoubleClickCallback:function(){return this.doubleClickCallback},setDoubleClickCallback:function(a){this.doubleClickCallback=a},setHasChildren:function(a){if(a.parentNode!=this.root){var b=this;if(a.hasChildren=!0,a.className="closed-node",a.firstChild.onclick=function(){b.toggleView(this)},null==a.firstChild.firstChild){var c=document.createElement("span");c.appendChild(document.createTextNode("+")),c.style.display="none",a.firstChild.appendChild(c)}}},addNode:function(a,b,c){null==a&&(null==this.root&&(this.root=document.createElement("ul"),this.root.className="jstree"),a=this.root);var d=this.createNode(b,c);return"li"==a.nodeName.toLowerCase()?(this.setHasChildren(a),a.childList.appendChild(d)):(a.appendChild(d),d.childList.style.display="block"),d},createNode:function(a,b){var c=document.createElement("li");c.id=a;var d=document.createElement("div");d.className="image-div",c.appendChild(d);var e=this,f,g;if(this.selectable?(f=document.createElement("span"),f.style.cursor="default",f.onmousedown=function(){e.select(this)},f.onclick=function(){e.selectionNotify(this)},f.ondblclick=function(){e.doubleClickNotify()},f.appendChild(document.createTextNode(b))):(g=document.createElement("a"),g.onclick=function(){e.selectionNotify(this)},g.appendChild(document.createTextNode(b))),this.checkable){var h=document.createElement("input");h.setAttribute("type","checkbox"),c.appendChild(h)}return this.selectable?c.appendChild(f):c.appendChild(g),c.hasChildren=!1,c.childList=document.createElement("ul"),c.childList.id=a+"_ul",c.childList.style.display="none",c.appendChild(c.childList),c},select:function(a){return!this.selectable||a.parentNode.disabled||this.selected&&a==this.selected?!1:(this.selected&&(this.selected.className=""),this.selected=a,this.selected.className="selected",this.selectionHasChanged=!0,void 0)},getSelected:function(){return this.selected?this.selected.parentNode:null},setSelected:function(a){var b=document.getElementById(a);b&&(this.select(b.childNodes[1]),this.makeVisible(b),this.selectionNotify())},selectionNotify:function(a){this.selectionCallback&&(this.selectable?this.selectionHasChanged&&(this.selectionCallback(this.getSelected()),this.selectionHasChanged=!1):this.selectionCallback(a.parentNode))},doubleClickNotify:function(){this.doubleClickCallback&&this.doubleClickCallback(this.getSelected())},makeVisible:function(a){for(;a.parentNode&&a.parentNode!=this.root&&a.parentNode.parentNode.parentNode&&a.parentNode.parentNode.parentNode!=this.root;)a=a.parentNode.parentNode,this.openNode(a)},enable:function(a){a.disabled=!1,a.childNodes[1].className=""},disable:function(a){a.disabled=!0,a.childNodes[1].className="disabled"},enableTree:function(a){a.disabled=!1,a.childNodes[1].className="";for(var b=0;b<a.childList.childNodes.length;b++)this.disableTree(a.childList.childNodes[b])},disableTree:function(a){a.disabled=!0,a.childNodes[1].className="disabled";for(var b=0;b<a.childList.childNodes.length;b++)this.disableTree(a.childList.childNodes[b])},toggleView:function(a){var b=a.parentNode,c=a.parentNode.childList;return b.hasChildren&&0==c.childNodes.length&&this.loadFunction?(this.loadFunction(b),!1):(""==c.style.display||"none"==c.style.display?(b.className="open-node",c.style.display="block"):(b.className="closed-node",c.style.display="none"),void 0)},openNode:function(a){"li"==a.tagName.toLowerCase()&&a.parentNode!=this.root&&(a.className="open-node",a.childList.style.display="block")},closeNode:function(a){"li"==a.tagName.toLowerCase()&&a.parentNode!=this.root&&(a.className="closed-node",a.childList.style.display="none")},buildTree:function(a){var b,c;b=this.addNode(null,0,"Root"),this.addNode(b,1,"One"),this.addNode(b,2,"Two"),c=this.addNode(b,3,"Three"),this.addNode(c,4,"Four"),this.addNode(c,5,"Five"),c=this.addNode(b,6,"Six"),this.addNode(c,7,"Seven"),this.addNode(c,8,"Eight"),c=this.addNode(b,9,"Nine"),this.addNode(c,10,"Ten"),this.addNode(c,11,"Eleven"),a.appendChild(b)}});return b}),define('jquery-plugin/jquery.jstree.custom',['jquery','jquery-plugin/jquery.jstree'],function(a,b){return b.extend({select:function(b){var c=a(b).closest('li');if(!this.selectable||a(b).hasClass('disabled')||c.is(':disabled')||this.selected&&b==this.selected)return!1;var d=a(this.selected).closest('li');d.removeClass('selected'),c.addClass('selected'),this.selected=b,this.selectionHasChanged=!0}})}),function(a){a.fn.label=function(b){var c=a(),d=a('label').filter('[for]');return this.filter(':input').not('button').each(function(){var b=a(this),e=b.closest('label');e.length>0?c=c.add(e):b.is('[id]')&&d.filter('[for='+b.attr('id')).each(function(){return c=c.add(this),!1})}),b?c.filter(b):c}}(jQuery),define("jquery-plugin/jquery.label",["jquery"],function(){}),function(a,b){function c(b,c){var e,f,g,h=b.nodeName.toLowerCase();return"area"===h?(e=b.parentNode,f=e.name,b.href&&f&&"map"===e.nodeName.toLowerCase()?(g=a("img[usemap=#"+f+"]")[0],!!g&&d(g)):!1):(/input|select|textarea|button|object/.test(h)?!b.disabled:"a"===h?b.href||c:c)&&d(b)}function d(b){return a.expr.filters.visible(b)&&!a(b).parents().andSelf().filter(function(){return"hidden"===a.css(this,"visibility")}).length}var e=0,f=/^ui-id-\d+$/;a.ui=a.ui||{},a.ui.version||(a.extend(a.ui,{version:"1.9.2",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),a.fn.extend({_focus:a.fn.focus,focus:function(b,c){return"number"==typeof b?this.each(function(){var d=this;setTimeout(function(){a(d).focus(),c&&c.call(d)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;return b=a.ui.ie&&/(static|relative)/.test(this.css('position'))||/absolute/.test(this.css('position'))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.css(this,'position'))&&/(auto|scroll)/.test(a.css(this,'overflow')+a.css(this,'overflow-y')+a.css(this,'overflow-x'))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.css(this,'overflow')+a.css(this,'overflow-y')+a.css(this,'overflow-x'))}).eq(0),/fixed/.test(this.css('position'))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length)for(var d=a(this[0]),e,f;d.length&&d[0]!==document;){if(e=d.css("position"),("absolute"===e||"relative"===e||"fixed"===e)&&(f=parseInt(d.css("zIndex"),10),!isNaN(f)&&0!==f))return f;d=d.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})},removeUniqueId:function(){return this.each(function(){f.test(this.id)&&a(this).removeAttr("id")})}}),a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(b){return function(c){return!!a.data(c,b)}}):function(b,c,d){return!!a.data(b,d[3])},focusable:function(b){return c(b,!isNaN(a.attr(b,"tabindex")));
},tabbable:function(b){var d=a.attr(b,"tabindex"),e=isNaN(d);return(e||d>=0)&&c(b,!e)}}),a(function(){var b=document.body,c=b.appendChild(c=document.createElement("div"));c.offsetHeight,a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),a.support.minHeight=100===c.offsetHeight,a.support.selectstart="onselectstart"in c,b.removeChild(c).style.display="none"}),a("<a>").outerWidth(1).jquery||a.each(["Width","Height"],function(c,d){function e(b,c,d,e){return a.each(f,function(){c-=parseFloat(a.css(b,"padding"+this))||0,d&&(c-=parseFloat(a.css(b,"border"+this+"Width"))||0),e&&(c-=parseFloat(a.css(b,"margin"+this))||0)}),c}var f="Width"===d?["Left","Right"]:["Top","Bottom"],g=d.toLowerCase(),h={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(c){return c===b?h["inner"+d].call(this):this.each(function(){a(this).css(g,e(this,c)+"px")})},a.fn["outer"+d]=function(b,c){return"number"!=typeof b?h["outer"+d].call(this,b):this.each(function(){a(this).css(g,e(this,b,!0,c)+"px")})}}),a("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(a.fn.removeData=function(b){return function(c){return arguments.length?b.call(this,a.camelCase(c)):b.call(this)}}(a.fn.removeData)),function(){var b=/msie ([\w.]+)/.exec(navigator.userAgent.toLowerCase())||[];a.ui.ie=!!b.length,a.ui.ie6=6===parseFloat(b[1],10)}(),a.fn.extend({disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.extend(a.ui,{plugin:{add:function(b,c,d){var e,f=a.ui[b].prototype;for(e in d)f.plugins[e]=f.plugins[e]||[],f.plugins[e].push([c,d[e]])},call:function(a,b,c){var d,e=a.plugins[b];if(e&&a.element[0].parentNode&&11!==a.element[0].parentNode.nodeType)for(d=0;d<e.length;d++)a.options[e[d][0]]&&e[d][1].apply(a.element,c)}},contains:a.contains,hasScroll:function(b,c){if("hidden"===a(b).css("overflow"))return!1;var d=c&&"left"===c?"scrollLeft":"scrollTop",e=!1;return b[d]>0?!0:(b[d]=1,e=b[d]>0,b[d]=0,e)},isOverAxis:function(a,b,c){return a>b&&b+c>a},isOver:function(b,c,d,e,f,g){return a.ui.isOverAxis(b,d,f)&&a.ui.isOverAxis(c,e,g)}}))}(jQuery),define("jquery-ui/jquery.ui.core",["jquery"],function(){}),define('jive/accessibility',['jquery','jiverscripts/oo/class','jquery-ui/jquery.ui.core','jive/namespace'],function(a,b){jive.namespace('Accessibility');var c=a.ui.keyCode;return jive.Accessibility=b.extend(function(b){b.init=function d(b){var c=this;if(this.hotkeys={},a(document).on('keyup',function(b){if(9==b.keyCode){var c='#',d=null;""!=document.activeElement.id&&a(document.activeElement).hasClass("j-selected")&&document.activeElement.id==a('#j-quick-launch-apps-list li:first-child').children().last().id()&&(a('#appsQuickLaunchLink').click(),a('#appsQuickLaunchLink').focus()),""==document.activeElement.parentNode.id||a(document.activeElement).hasClass("j-editPage")||document.activeElement.parentNode.id!=a('#top-news-popover li:first-child').children().first().parent().id()||(a('#top-news-dropdown-context').click(),a('#top-news-dropdown-button').focus()),""!=document.activeElement.parentNode.id&&document.activeElement.parentNode.id==a('#custom-more-popover li:first-child').children().first().parent().id()&&(a('#more-custom-dropdown-context').click(),a('#more-custom-dropdown-button').focus()),a('#mitui-popover')[0]&&(document.activeElement.id?d=document.activeElement.id:document.activeElement.classList.value&&(c='.',d=document.activeElement.classList.value.replace(/\s/g,'.')),d&&!a('#mitui-popover '+c+d)[0]&&a('#mitui-popover').css('display','none'))}}),this.options=b=a.extend({},{hoverSelection:!1,focusableSelector:jive.Accessibility.DEFAULT_FOCUSABLE_SELECTOR,skipTargetCheck:!1,focusOnHover:!0},b),this.$scope=a(b.scope),b.hotkeys&&a.each(b.hotkeys,function(){var a=this;c.addHotkey(a.ch,a.ctrl,a.alt,a.shift,a.action)}),b.otherActions&&this.$scope.on('keydown.jiveAccess',function(a){if(!c.isTextField(a.target))for(var d=0;d<b.otherActions.length;++d){var e=b.otherActions[d](a);if(e===!1)return!1}}),b.hoverSelection&&this.$scope.on('mousemove.jiveAccess',function(d){var e=a(d.target).closest(b.focusableSelector);c.$scope.find('.'+jive.Accessibility.SELECTED_CLASS).removeClass(jive.Accessibility.SELECTED_CLASS),e.addClass(jive.Accessibility.SELECTED_CLASS),b.focusOnHover&&e.focus()}),b.focusTarget){var d=a(b.focusTarget);this.$scope.not(d).on('click.jiveAccess',function(b){console.log('click handled',b),0===a(d[0].ownerDocument.activeElement).closest(d).length&&jive.conc.nextTick(function(){d.focus()})})}},this.teardown=function(a){a&&this.$scope.find('.'+jive.Accessibility.SELECTED_CLASS).removeClass(jive.Accessibility.SELECTED_CLASS),this.$scope.off('.jiveAccess'),this.$scope.find(this.options.focusableSelector).off('.jiveAccess')},this.addHotkey=function e(a,b,c,d,f){if('string'!=typeof a||!/^[a-z]$/i.test(a))throw new Error('hotkeys require an alphabet character');this._hotkeyHandler||(this._hotkeyHandler=this.hotkeyHandler.bind(this),this.$scope.on('keydown.jiveAccess',this._hotkeyHandler));var g={ctrl:!!b,alt:!!c,shift:!!d,charCode:a.charCodeAt(0),keyCode:a.toUpperCase().charCodeAt(0),action:f},h=(g.shift?'shift+':'')+(g.ctrl?'ctrl+':'')+(g.alt?'alt+':'')+a.toUpperCase();this.hotkeys[h]=g},b.isTextField=function(b){return!this.options.skipTargetCheck&&a(b).filter('textarea, input, *[contentEditable="true"]').not('input[type=radio], input[type=checkbox], input[type=submit], input[type=file], input[type=image], input[type=reset], input[type=button]').length>0};var c=-1!=navigator.userAgent.indexOf('Mac');b.hotkeyHandler=function f(a){if(a.metaKey||a.ctrlKey||a.altKey||!this.isTextField(a.target)){var b='';a.shiftKey&&(b+='shift+'),(c&&a.metaKey||a.ctrlKey)&&(b+='ctrl+'),a.altKey&&(b+='alt+'),b+=String.fromCharCode(a.keyCode),this.hotkeys[b]&&this.hotkeys[b].action(a)}}}),jive.Accessibility.filterFocusable=function d(b){return a(b).filter(':visible').not(':disabled').not('[tabindex=\'-1\']')},jive.Accessibility.DEFAULT_FOCUSABLE_SELECTOR='a, input, select, textarea, button, *[tabindex][tabindex!=\'-1\']',jive.Accessibility.SELECTED_CLASS='j-selected',jive.Accessibility.FOCUS_STACK=[],jive.Accessibility.focusAction=function(b){return function c(){a(b).focus()}},jive.Accessibility.clickAction=function(b,c){return function d(){c||(c=b),a(c).focus(),a(b).click()}},jive.Accessibility.focusRingAction=function(b,c){function d(){return jive.Accessibility.filterFocusable(a(b).find(c))}return c||(c=jive.Accessibility.DEFAULT_FOCUSABLE_SELECTOR),function e(c){if(65<=c.keyCode&&c.keyCode<=90){var e=d(),f=String.fromCharCode(c.keyCode),g,h,i=e.index(a(b).get(0).ownerDocument.activeElement);if(i>=0){for(g=(i+1)%e.length;g!=i;g=(g+1)%e.length)if(h=e.eq(g),h.text().charAt(0).toUpperCase()==f)return h.focus(),!1}else for(g=0;g<e.length;++g)if(h=e.eq(g),h.text().charAt(0).toUpperCase()==f)return h.focus(),!1}}},jive.Accessibility.menuSelectAction=function(b){function d(){return jive.Accessibility.filterFocusable(a(b.container).find(b.focusableSelector))}function e(c){var e=d(),h,i;b.selectedClass&&(i=e.filter('.'+jive.Accessibility.SELECTED_CLASS)),i&&0!=i.length||(i=a(b.container).get(0).ownerDocument.activeElement),h=e.index(i),f(e),c?0>=h?h=e.length-1:h-=1:h==e.length-1?h=0:h+=1;var j=e.eq(h);return g(j),b.moveFocus&&j.focus(),j}function f(a){b.selectedClass&&a.removeClass(jive.Accessibility.SELECTED_CLASS)}function g(a){b.selectedClass&&a.addClass(jive.Accessibility.SELECTED_CLASS)}return b=a.extend({},{focusableSelector:jive.Accessibility.DEFAULT_FOCUSABLE_SELECTOR,moveFocus:!1,skipTargetCheck:!1,selectEventTarget:null,selectedClass:!0},b),function h(f){if(b.skipTargetCheck||!a(f.target).is('select, input:radio, input:text, textarea')){var g;if(f.keyCode==c.UP||f.keyCode==c.DOWN||f.keyCode==c.TAB)return g=e(f.keyCode==c.UP||f.keyCode==c.TAB&&f.shiftKey?!0:!1),b.selectEventTarget&&b.selectEventTarget.emit('selectionChanged',g,d()),!1;if(f.keyCode==c.ENTER||f.keyCode==c.SPACE){if(b.selectEventTarget){var h=d();if(g=h.filter('.'+jive.Accessibility.SELECTED_CLASS),g.length>0)return b.selectEventTarget.emit('selectionAction',g,d()),!1}}else f.keyCode==c.ESCAPE&&b.selectEventTarget&&b.selectEventTarget.emit('selectionCanceled')}}},jive.Accessibility.focusIn=function e(b){var c=a(b);this.filterFocusable(c.filter(this.DEFAULT_FOCUSABLE_SELECTOR).add(a(this.DEFAULT_FOCUSABLE_SELECTOR,c))).first().focus()},jive.Accessibility.modalize=function f(b){var c=a(b);if(a.fn.addBack)var d=c.closest('body > *').addBack();else var d=c.closest('body > *').addBack();a('body').children().not(d).each(function(){var b=a(this);b.data('modalizeUnhide',b.attr('aria-hidden'))}).attr('aria-hidden','true')},jive.Accessibility.unmodalize=function g(){a('body').children().each(function(){var b=a(this),c=b.data('modalizeUnhide')||'false';b.attr('aria-hidden',c),b.removeData('modalizeUnhide')})},jive.Accessibility.speak=function h(b){function c(){var b=a('#j-speak-accessibility');return b.length||(b=a('<span id=\'j-speak-accessibility\' class=\'j-508-label\' role=\'status\' aria-live=\'polite\' aria-relevant=\'all\'></span>').appendTo('body')),b}var d=c();d.text(b)},jive.Accessibility.pushFocus=function(a){jive.Accessibility.FOCUS_STACK.push(a)},jive.Accessibility.popFocus=function(a){return jive.Accessibility.FOCUS_STACK.pop()},jive.Accessibility.hasStackedFocus=function(){return jive.Accessibility.FOCUS_STACK.length>0},jive.Accessibility.main=new jive.Accessibility({scope:'body'}),jive.Accessibility}),define('goog/shim',['jive/namespace'],function(a){return this.goog=this.goog||{},this.goog.provide=function(a){jive.namespace.call(window,a),setTimeout(define.bind(null,a,function(){return a.split('.').reduce(function(a,b){return a&&a[b]},window)}),0)},this.goog.require=function(){},this.goog}),function(a,b){"object"==typeof exports?module.exports=exports=b():"function"==typeof define&&define.amd?define('crypto/core',[],b):b()}(this,function(){var a=a||function(a,b){var c={},d=c.lib={},e=d.Base=function(){function a(){}return{extend:function(b){a.prototype=this;var c=new a;return b&&c.mixIn(b),c.hasOwnProperty('init')||(c.init=function(){c.$super.init.apply(this,arguments)}),c.init.prototype=c,c.$super=this,c},create:function(){var a=this.extend();return a.init.apply(a,arguments),a},init:function(){},mixIn:function(a){for(var b in a)a.hasOwnProperty(b)&&(this[b]=a[b]);a.hasOwnProperty('toString')&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),f=d.WordArray=e.extend({init:function(a,c){a=this.words=a||[],c!=b?this.sigBytes=c:this.sigBytes=4*a.length},toString:function(a){return(a||h).stringify(this)},concat:function(a){var b=this.words,c=a.words,d=this.sigBytes,e=a.sigBytes;if(this.clamp(),d%4)for(var f=0;e>f;f++){var g=c[f>>>2]>>>24-f%4*8&255;b[d+f>>>2]|=g<<24-(d+f)%4*8}else if(c.length>65535)for(var f=0;e>f;f+=4)b[d+f>>>2]=c[f>>>2];else b.push.apply(b,c);return this.sigBytes+=e,this},clamp:function(){var b=this.words,c=this.sigBytes;b[c>>>2]&=4294967295<<32-c%4*8,b.length=a.ceil(c/4)},clone:function(){var a=e.clone.call(this);return a.words=this.words.slice(0),a},random:function(b){for(var c=[],d=function(b){var b=b,c=987654321,d=4294967295;return function(){c=36969*(65535&c)+(c>>16)&d,b=18e3*(65535&b)+(b>>16)&d;var e=(c<<16)+b&d;return e/=4294967296,e+=.5,e*(a.random()>.5?1:-1)}},e=0,g;b>e;e+=4){var h=d(4294967296*(g||a.random()));g=987654071*h(),c.push(4294967296*h()|0)}return new f.init(c,b)}}),g=c.enc={},h=g.Hex={stringify:function(a){for(var b=a.words,c=a.sigBytes,d=[],e=0;c>e;e++){var f=b[e>>>2]>>>24-e%4*8&255;d.push((f>>>4).toString(16)),d.push((15&f).toString(16))}return d.join('')},parse:function(a){for(var b=a.length,c=[],d=0;b>d;d+=2)c[d>>>3]|=parseInt(a.substr(d,2),16)<<24-d%8*4;return new f.init(c,b/2)}},i=g.Latin1={stringify:function(a){for(var b=a.words,c=a.sigBytes,d=[],e=0;c>e;e++){var f=b[e>>>2]>>>24-e%4*8&255;d.push(String.fromCharCode(f))}return d.join('')},parse:function(a){for(var b=a.length,c=[],d=0;b>d;d++)c[d>>>2]|=(255&a.charCodeAt(d))<<24-d%4*8;return new f.init(c,b)}},j=g.Utf8={stringify:function(a){try{return decodeURIComponent(escape(i.stringify(a)))}catch(b){throw new Error('Malformed UTF-8 data')}},parse:function(a){return i.parse(unescape(encodeURIComponent(a)))}},k=d.BufferedBlockAlgorithm=e.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(a){'string'==typeof a&&(a=j.parse(a)),this._data.concat(a),this._nDataBytes+=a.sigBytes},_process:function(b){var c=this._data,d=c.words,e=c.sigBytes,g=this.blockSize,h=4*g,i=e/h;i=b?a.ceil(i):a.max((0|i)-this._minBufferSize,0);var j=i*g,k=a.min(4*j,e);if(j){for(var l=0;j>l;l+=g)this._doProcessBlock(d,l);var m=d.splice(0,j);c.sigBytes-=k}return new f.init(m,k)},clone:function(){var a=e.clone.call(this);return a._data=this._data.clone(),a},_minBufferSize:0}),l=d.Hasher=k.extend({cfg:e.extend(),init:function(a){this.cfg=this.cfg.extend(a),this.reset()},reset:function(){k.reset.call(this),this._doReset()},update:function(a){return this._append(a),this._process(),this},finalize:function(a){a&&this._append(a);var b=this._doFinalize();return b},blockSize:16,_createHelper:function(a){return function(b,c){return new a.init(c).finalize(b)}},_createHmacHelper:function(a){return function(b,c){return new m.HMAC.init(a,c).finalize(b)}}}),m=c.algo={};return c}(Math);return a}),function(a,b,c){"object"==typeof exports?module.exports=exports=b(require("./core")):"function"==typeof define&&define.amd?define('crypto/md5',["./core"],b):b()}(this,function(a){return function(b){function c(a,b,c,d,e,f,g){var h=a+(b&c|~b&d)+e+g;return(h<<f|h>>>32-f)+b}function d(a,b,c,d,e,f,g){var h=a+(b&d|c&~d)+e+g;return(h<<f|h>>>32-f)+b}function e(a,b,c,d,e,f,g){var h=a+(b^c^d)+e+g;return(h<<f|h>>>32-f)+b}function f(a,b,c,d,e,f,g){var h=a+(c^(b|~d))+e+g;return(h<<f|h>>>32-f)+b}var g=a,h=g.lib,i=h.WordArray,j=h.Hasher,k=g.algo,l=[];!function(){for(var a=0;64>a;a++)l[a]=4294967296*b.abs(b.sin(a+1))|0}();var m=k.MD5=j.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(a,b){for(var g=0;16>g;g++){var h=b+g,i=a[h];a[h]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var j=this._hash.words,k=a[b+0],m=a[b+1],n=a[b+2],o=a[b+3],p=a[b+4],q=a[b+5],r=a[b+6],s=a[b+7],t=a[b+8],u=a[b+9],v=a[b+10],w=a[b+11],x=a[b+12],y=a[b+13],z=a[b+14],A=a[b+15],B=j[0],C=j[1],D=j[2],E=j[3];B=c(B,C,D,E,k,7,l[0]),E=c(E,B,C,D,m,12,l[1]),D=c(D,E,B,C,n,17,l[2]),C=c(C,D,E,B,o,22,l[3]),B=c(B,C,D,E,p,7,l[4]),E=c(E,B,C,D,q,12,l[5]),D=c(D,E,B,C,r,17,l[6]),C=c(C,D,E,B,s,22,l[7]),B=c(B,C,D,E,t,7,l[8]),E=c(E,B,C,D,u,12,l[9]),D=c(D,E,B,C,v,17,l[10]),C=c(C,D,E,B,w,22,l[11]),B=c(B,C,D,E,x,7,l[12]),E=c(E,B,C,D,y,12,l[13]),D=c(D,E,B,C,z,17,l[14]),C=c(C,D,E,B,A,22,l[15]),B=d(B,C,D,E,m,5,l[16]),E=d(E,B,C,D,r,9,l[17]),D=d(D,E,B,C,w,14,l[18]),C=d(C,D,E,B,k,20,l[19]),B=d(B,C,D,E,q,5,l[20]),E=d(E,B,C,D,v,9,l[21]),D=d(D,E,B,C,A,14,l[22]),C=d(C,D,E,B,p,20,l[23]),B=d(B,C,D,E,u,5,l[24]),E=d(E,B,C,D,z,9,l[25]),D=d(D,E,B,C,o,14,l[26]),C=d(C,D,E,B,t,20,l[27]),B=d(B,C,D,E,y,5,l[28]),E=d(E,B,C,D,n,9,l[29]),D=d(D,E,B,C,s,14,l[30]),C=d(C,D,E,B,x,20,l[31]),B=e(B,C,D,E,q,4,l[32]),E=e(E,B,C,D,t,11,l[33]),D=e(D,E,B,C,w,16,l[34]),C=e(C,D,E,B,z,23,l[35]),B=e(B,C,D,E,m,4,l[36]),E=e(E,B,C,D,p,11,l[37]),D=e(D,E,B,C,s,16,l[38]),C=e(C,D,E,B,v,23,l[39]),B=e(B,C,D,E,y,4,l[40]),E=e(E,B,C,D,k,11,l[41]),D=e(D,E,B,C,o,16,l[42]),C=e(C,D,E,B,r,23,l[43]),B=e(B,C,D,E,u,4,l[44]),E=e(E,B,C,D,x,11,l[45]),D=e(D,E,B,C,A,16,l[46]),C=e(C,D,E,B,n,23,l[47]),B=f(B,C,D,E,k,6,l[48]),E=f(E,B,C,D,s,10,l[49]),D=f(D,E,B,C,z,15,l[50]),C=f(C,D,E,B,q,21,l[51]),B=f(B,C,D,E,x,6,l[52]),E=f(E,B,C,D,o,10,l[53]),D=f(D,E,B,C,v,15,l[54]),C=f(C,D,E,B,m,21,l[55]),B=f(B,C,D,E,t,6,l[56]),E=f(E,B,C,D,A,10,l[57]),D=f(D,E,B,C,r,15,l[58]),C=f(C,D,E,B,y,21,l[59]),B=f(B,C,D,E,p,6,l[60]),E=f(E,B,C,D,w,10,l[61]),D=f(D,E,B,C,n,15,l[62]),C=f(C,D,E,B,u,21,l[63]),j[0]=j[0]+B|0,j[1]=j[1]+C|0,j[2]=j[2]+D|0,j[3]=j[3]+E|0},_doFinalize:function(){var a=this._data,c=a.words,d=8*this._nDataBytes,e=8*a.sigBytes;c[e>>>5]|=128<<24-e%32;var f=b.floor(d/4294967296),g=d;c[(e+64>>>9<<4)+15]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),c[(e+64>>>9<<4)+14]=16711935&(g<<8|g>>>24)|4278255360&(g<<24|g>>>8),a.sigBytes=4*(c.length+1),this._process();for(var h=this._hash,i=h.words,j=0;4>j;j++){var k=i[j];i[j]=16711935&(k<<8|k>>>24)|4278255360&(k<<24|k>>>8)}return h},clone:function(){var a=j.clone.call(this);return a._hash=this._hash.clone(),a}});g.MD5=j._createHelper(m),g.HmacMD5=j._createHmacHelper(m)}(Math),a.MD5});var goog=goog||{};goog.DEBUG=!1,goog.inherits=function(a,b){function c(){}c.prototype=b.prototype,a.superClass_=b.prototype,a.prototype=new c,a.prototype.constructor=a},goog.userAgent||(goog.userAgent=function(){var a="";"undefined"!=typeof navigator&&navigator&&"string"==typeof navigator.userAgent&&(a=navigator.userAgent);var b=0==a.indexOf('Opera');return{jscript:{HAS_JSCRIPT:'ScriptEngine'in this},OPERA:b,IE:!b&&-1!=a.indexOf('MSIE'),WEBKIT:!b&&-1!=a.indexOf('WebKit')}}()),goog.asserts||(goog.asserts={assert:function(a){if(!a)throw Error('Assertion error')},fail:function(a){}}),goog.dom||(goog.dom={},goog.dom.DomHelper=function(a){this.document_=a||document},goog.dom.DomHelper.prototype.getDocument=function(){return this.document_},goog.dom.DomHelper.prototype.createElement=function(a){return this.document_.createElement(a)},goog.dom.DomHelper.prototype.createDocumentFragment=function(){return this.document_.createDocumentFragment()}),goog.format||(goog.format={insertWordBreaks:function(a,b){a=String(a);for(var c=[],d=0,e=!1,f=!1,g=0,h=0,i=0,j=a.length;j>i;++i){var k=a.charCodeAt(i);if(g>=b&&32!=k&&(c[d++]=a.substring(h,i),h=i,c[d++]=goog.format.WORD_BREAK,g=0),e)62==k&&(e=!1);else if(f)switch(k){case 59:f=!1,++g;break;case 60:f=!1,e=!0;break;case 32:f=!1,g=0}else switch(k){case 60:e=!0;break;case 38:f=!0;break;case 32:g=0;break;default:++g}}return c[d++]=a.substring(h),c.join('')},WORD_BREAK:goog.userAgent.WEBKIT?'<wbr></wbr>':goog.userAgent.OPERA?'&shy;':'<wbr>'}),goog.i18n||(goog.i18n={bidi:{detectRtlDirectionality:function(a,b){return a=soyshim.$$bidiStripHtmlIfNecessary_(a,b),soyshim.$$bidiRtlWordRatio_(a)>soyshim.$$bidiRtlDetectionThreshold_}}}),goog.i18n.bidi.Dir={RTL:-1,UNKNOWN:0,LTR:1},goog.i18n.bidi.toDir=function(a){return'number'==typeof a?a>0?goog.i18n.bidi.Dir.LTR:0>a?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.UNKNOWN:a?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.BidiFormatter=function(a){this.dir_=goog.i18n.bidi.toDir(a)},goog.i18n.BidiFormatter.prototype.dirAttr=function(a,b){var c=soy.$$bidiTextDir(a,b);return c&&c!=this.dir_?0>c?'dir="rtl"':'dir="ltr"':''},goog.i18n.BidiFormatter.prototype.endEdge=function(){return this.dir_<0?'left':'right'},goog.i18n.BidiFormatter.prototype.mark=function(){return this.dir_>0?'‎':this.dir_<0?'‏':''},goog.i18n.BidiFormatter.prototype.markAfter=function(a,b){var c=soy.$$bidiTextDir(a,b);return soyshim.$$bidiMarkAfterKnownDir_(this.dir_,c,a,b)},goog.i18n.BidiFormatter.prototype.spanWrap=function(a,b){a=String(a);var c=soy.$$bidiTextDir(a,!0),d=soyshim.$$bidiMarkAfterKnownDir_(this.dir_,c,a,!0);return c>0&&this.dir_<=0?a='<span dir="ltr">'+a+'</span>':0>c&&this.dir_>=0&&(a='<span dir="rtl">'+a+'</span>'),a+d},goog.i18n.BidiFormatter.prototype.startEdge=function(){return this.dir_<0?'right':'left'},goog.i18n.BidiFormatter.prototype.unicodeWrap=function(a,b){a=String(a);var c=soy.$$bidiTextDir(a,!0),d=soyshim.$$bidiMarkAfterKnownDir_(this.dir_,c,a,!0);return c>0&&this.dir_<=0?a='‪'+a+'‬':0>c&&this.dir_>=0&&(a='‫'+a+'‬'),a+d},goog.string={newLineToBr:function(a,b){return a=String(a),goog.string.NEWLINE_TO_BR_RE_.test(a)?a.replace(/(\r\n|\r|\n)/g,b?'<br />':'<br>'):a},urlEncode:encodeURIComponent,NEWLINE_TO_BR_RE_:/[\r\n]/},goog.string.StringBuffer=function(a,b){this.buffer_=goog.userAgent.jscript.HAS_JSCRIPT?[]:'',null!=a&&this.append.apply(this,arguments)},goog.string.StringBuffer.prototype.bufferLength_=0,goog.string.StringBuffer.prototype.append=function(a,b,c){if(goog.userAgent.jscript.HAS_JSCRIPT)if(null==b)this.buffer_[this.bufferLength_++]=a;else{var d=this.buffer_;d.push.apply(d,arguments),this.bufferLength_=this.buffer_.length}else if(this.buffer_+=a,null!=b)for(var e=1;e<arguments.length;e++)this.buffer_+=arguments[e];return this},goog.string.StringBuffer.prototype.clear=function(){goog.userAgent.jscript.HAS_JSCRIPT?(this.buffer_.length=0,this.bufferLength_=0):this.buffer_=''},goog.string.StringBuffer.prototype.toString=function(){if(goog.userAgent.jscript.HAS_JSCRIPT){var a=this.buffer_.join('');return this.clear(),a&&this.append(a),a}return this.buffer_},goog.soy||(goog.soy={renderAsElement:function(a,b,c,d){return soyshim.$$renderWithWrapper_(a,b,d,!0,c)},renderAsFragment:function(a,b,c,d){return soyshim.$$renderWithWrapper_(a,b,d,!1,c)},renderElement:function(a,b,c,d){a.innerHTML=b(c,null,d)},data:{}}),goog.soy.data.SanitizedContentKind={HTML:{},JS:goog.DEBUG?{sanitizedContentJsStrChars:!0}:{},JS_STR_CHARS:{},URI:{},ATTRIBUTES:goog.DEBUG?{sanitizedContentHtmlAttribute:!0}:{},CSS:{},TEXT:{}},goog.soy.data.SanitizedContent=function(){throw Error('Do not instantiate directly')},goog.soy.data.SanitizedContent.prototype.contentKind,goog.soy.data.SanitizedContent.prototype.content,goog.soy.data.SanitizedContent.prototype.toString=function(){return this.content};var soy={esc:{}},soydata={};soydata.VERY_UNSAFE={};var soyshim={$$DEFAULT_TEMPLATE_DATA_:{}};soyshim.$$renderWithWrapper_=function(a,b,c,d,e){var f=c||document,g=f.createElement('div');if(g.innerHTML=a(b||soyshim.$$DEFAULT_TEMPLATE_DATA_,void 0,e),1==g.childNodes.length){var h=g.firstChild;if(!d||1==h.nodeType)return h}if(d)return g;for(var i=f.createDocumentFragment();g.firstChild;)i.appendChild(g.firstChild);return i},soyshim.$$bidiMarkAfterKnownDir_=function(a,b,c,d){return a>0&&(0>b||soyshim.$$bidiIsRtlExitText_(c,d))?'‎':0>a&&(b>0||soyshim.$$bidiIsLtrExitText_(c,d))?'‏':''},soyshim.$$bidiStripHtmlIfNecessary_=function(a,b){return b?a.replace(soyshim.$$BIDI_HTML_SKIP_RE_,' '):a},soyshim.$$BIDI_HTML_SKIP_RE_=/<[^>]*>|&[^;]+;/g,soyshim.$$bidiLtrChars_="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿Ⰰ-﬜﷾-﹯﻽-￿",soyshim.$$bidiNeutralChars_='\x00- !-@[-`{-¿×÷ʹ-˿ -⯿',soyshim.$$bidiRtlChars_='֑-߿יִ-﷽ﹰ-ﻼ',soyshim.$$bidiRtlDirCheckRe_=new RegExp('^[^'+soyshim.$$bidiLtrChars_+']*['+soyshim.$$bidiRtlChars_+']'),soyshim.$$bidiNeutralDirCheckRe_=new RegExp('^['+soyshim.$$bidiNeutralChars_+']*$|^http://'),soyshim.$$bidiIsRtlText_=function(a){return soyshim.$$bidiRtlDirCheckRe_.test(a)},soyshim.$$bidiIsNeutralText_=function(a){return soyshim.$$bidiNeutralDirCheckRe_.test(a)},soyshim.$$bidiRtlDetectionThreshold_=.4,soyshim.$$bidiRtlWordRatio_=function(a){for(var b=0,c=0,d=a.split(' '),e=0;e<d.length;e++)soyshim.$$bidiIsRtlText_(d[e])?(b++,c++):soyshim.$$bidiIsNeutralText_(d[e])||c++;return 0==c?0:b/c},soyshim.$$bidiLtrExitDirCheckRe_=new RegExp('['+soyshim.$$bidiLtrChars_+'][^'+soyshim.$$bidiRtlChars_+']*$'),soyshim.$$bidiRtlExitDirCheckRe_=new RegExp('['+soyshim.$$bidiRtlChars_+'][^'+soyshim.$$bidiLtrChars_+']*$'),soyshim.$$bidiIsLtrExitText_=function(a,b){return a=soyshim.$$bidiStripHtmlIfNecessary_(a,b),soyshim.$$bidiLtrExitDirCheckRe_.test(a)},soyshim.$$bidiIsRtlExitText_=function(a,b){return a=soyshim.$$bidiStripHtmlIfNecessary_(a,b),soyshim.$$bidiRtlExitDirCheckRe_.test(a)},soy.StringBuilder=goog.string.StringBuffer,soydata.SanitizedContentKind=goog.soy.data.SanitizedContentKind,soydata.SanitizedHtml=function(){goog.soy.data.SanitizedContent.call(this)},goog.inherits(soydata.SanitizedHtml,goog.soy.data.SanitizedContent),soydata.SanitizedHtml.prototype.contentKind=soydata.SanitizedContentKind.HTML,soydata.SanitizedJs=function(){goog.soy.data.SanitizedContent.call(this)},goog.inherits(soydata.SanitizedJs,goog.soy.data.SanitizedContent),soydata.SanitizedJs.prototype.contentKind=soydata.SanitizedContentKind.JS,soydata.SanitizedJsStrChars=function(){goog.soy.data.SanitizedContent.call(this)},goog.inherits(soydata.SanitizedJsStrChars,goog.soy.data.SanitizedContent),soydata.SanitizedJsStrChars.prototype.contentKind=soydata.SanitizedContentKind.JS_STR_CHARS,soydata.SanitizedUri=function(){goog.soy.data.SanitizedContent.call(this)},goog.inherits(soydata.SanitizedUri,goog.soy.data.SanitizedContent),soydata.SanitizedUri.prototype.contentKind=soydata.SanitizedContentKind.URI,soydata.SanitizedHtmlAttribute=function(){goog.soy.data.SanitizedContent.call(this)},goog.inherits(soydata.SanitizedHtmlAttribute,goog.soy.data.SanitizedContent),soydata.SanitizedHtmlAttribute.prototype.contentKind=soydata.SanitizedContentKind.ATTRIBUTES,soydata.SanitizedCss=function(){goog.soy.data.SanitizedContent.call(this)},goog.inherits(soydata.SanitizedCss,goog.soy.data.SanitizedContent),soydata.SanitizedCss.prototype.contentKind=soydata.SanitizedContentKind.CSS,soydata.UnsanitizedText=function(a){this.content=String(a)},goog.inherits(soydata.UnsanitizedText,goog.soy.data.SanitizedContent),soydata.UnsanitizedText.prototype.contentKind=soydata.SanitizedContentKind.TEXT,soydata.$$makeSanitizedContentFactory_=function(a){function b(){}return b.prototype=a.prototype,function(a){var c=new b;return c.content=String(a),c}},soydata.markUnsanitizedText=function(a){return new soydata.UnsanitizedText(a)},soydata.VERY_UNSAFE.ordainSanitizedHtml=soydata.$$makeSanitizedContentFactory_(soydata.SanitizedHtml),soydata.VERY_UNSAFE.ordainSanitizedJs=soydata.$$makeSanitizedContentFactory_(soydata.SanitizedJs),soydata.VERY_UNSAFE.ordainSanitizedJsStrChars=soydata.$$makeSanitizedContentFactory_(soydata.SanitizedJsStrChars),soydata.VERY_UNSAFE.ordainSanitizedUri=soydata.$$makeSanitizedContentFactory_(soydata.SanitizedUri),soydata.VERY_UNSAFE.ordainSanitizedHtmlAttribute=soydata.$$makeSanitizedContentFactory_(soydata.SanitizedHtmlAttribute),soydata.VERY_UNSAFE.ordainSanitizedCss=soydata.$$makeSanitizedContentFactory_(soydata.SanitizedCss),soy.renderElement=goog.soy.renderElement,soy.renderAsFragment=function(a,b,c,d){return goog.soy.renderAsFragment(a,b,d,new goog.dom.DomHelper(c))},soy.renderAsElement=function(a,b,c,d){return goog.soy.renderAsElement(a,b,d,new goog.dom.DomHelper(c))},soy.$$augmentMap=function(a,b){function c(){}c.prototype=a;var d=new c;for(var e in b)d[e]=b[e];return d},soy.$$checkMapKey=function(a){if('string'!=typeof a)throw Error("Map literal's key expression must evaluate to string (encountered type \""+typeof a+'").');return a},soy.$$getMapKeys=function(a){var b=[];for(var c in a)b.push(c);return b},soy.$$getDelTemplateId=function(a){return a},soy.$$DELEGATE_REGISTRY_PRIORITIES_={},soy.$$DELEGATE_REGISTRY_FUNCTIONS_={},soy.$$registerDelegateFn=function(a,b,c,d){var e='key_'+a+':'+b,f=soy.$$DELEGATE_REGISTRY_PRIORITIES_[e];if(void 0===f||c>f)soy.$$DELEGATE_REGISTRY_PRIORITIES_[e]=c,soy.$$DELEGATE_REGISTRY_FUNCTIONS_[e]=d;else if(c==f)throw Error('Encountered two active delegates with the same priority ("'+a+':'+b+'").')},soy.$$getDelegateFn=function(a,b,c){var d=soy.$$DELEGATE_REGISTRY_FUNCTIONS_['key_'+a+':'+b];if(d||''==b||(d=soy.$$DELEGATE_REGISTRY_FUNCTIONS_['key_'+a+':']),d)return d;if(c)return soy.$$EMPTY_TEMPLATE_FN_;throw Error('Found no active impl for delegate call to "'+a+':'+b+'" (and not allowemptydefault="true").')},soy.$$EMPTY_TEMPLATE_FN_=function(a,b,c){return''},soy.$$escapeHtml=function(a){return a&&a.contentKind&&a.contentKind===goog.soy.data.SanitizedContentKind.HTML?(goog.asserts.assert(a.constructor===soydata.SanitizedHtml),a.content):soy.esc.$$escapeHtmlHelper(a)},soy.$$cleanHtml=function(a){return a&&a.contentKind&&a.contentKind===goog.soy.data.SanitizedContentKind.HTML?(goog.asserts.assert(a.constructor===soydata.SanitizedHtml),a.content):soy.$$stripHtmlTags(a,soy.esc.$$SAFE_TAG_WHITELIST_)},soy.$$escapeHtmlRcdata=function(a){return a&&a.contentKind&&a.contentKind===goog.soy.data.SanitizedContentKind.HTML?(goog.asserts.assert(a.constructor===soydata.SanitizedHtml),soy.esc.$$normalizeHtmlHelper(a.content)):soy.esc.$$escapeHtmlHelper(a)},soy.$$HTML5_VOID_ELEMENTS_=new RegExp("^<(?:area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\\b"),soy.$$stripHtmlTags=function(a,b){if(!b)return String(a).replace(soy.esc.$$HTML_TAG_REGEX_,'').replace(soy.esc.$$LT_REGEX_,'&lt;');var c=String(a).replace(/\[/g,'&#91;'),d=[];c=c.replace(soy.esc.$$HTML_TAG_REGEX_,function(a,c){if(c&&(c=c.toLowerCase(),b.hasOwnProperty(c)&&b[c])){var e='/'===a.charAt(1)?'</':'<',f=d.length;return d[f]=e+c+'>','['+f+']'}return''}),c=soy.esc.$$normalizeHtmlHelper(c);var e=soy.$$balanceTags_(d);return c=c.replace(/\[(\d+)\]/g,function(a,b){return d[b]}),c+e},soy.$$balanceTags_=function(a){for(var b=[],c=0,d=a.length;d>c;++c){var e=a[c];if('/'===e.charAt(1)){for(var f=b.length-1;f>=0&&b[f]!=e;)f--;0>f?a[c]='':(a[c]=b.slice(f).reverse().join(''),b.length=f)}else soy.$$HTML5_VOID_ELEMENTS_.test(e)||b.push('</'+e.substring(1))}return b.reverse().join('')},soy.$$escapeHtmlAttribute=function(a){return a&&a.contentKind&&a.contentKind===goog.soy.data.SanitizedContentKind.HTML?(goog.asserts.assert(a.constructor===soydata.SanitizedHtml),soy.esc.$$normalizeHtmlHelper(soy.$$stripHtmlTags(a.content))):soy.esc.$$escapeHtmlHelper(a)},soy.$$escapeHtmlAttributeNospace=function(a){return a&&a.contentKind&&a.contentKind===goog.soy.data.SanitizedContentKind.HTML?(goog.asserts.assert(a.constructor===soydata.SanitizedHtml),soy.esc.$$normalizeHtmlNospaceHelper(soy.$$stripHtmlTags(a.content))):soy.esc.$$escapeHtmlNospaceHelper(a)},soy.$$filterHtmlAttributes=function(a){return a&&a.contentKind===goog.soy.data.SanitizedContentKind.ATTRIBUTES?(goog.asserts.assert(a.constructor===soydata.SanitizedHtmlAttribute),a.content.replace(/([^"'\s])$/,'$1 ')):soy.esc.$$filterHtmlAttributesHelper(a)},soy.$$filterHtmlElementName=function(a){return soy.esc.$$filterHtmlElementNameHelper(a)},soy.$$escapeJs=function(a){return soy.$$escapeJsString(a)},soy.$$escapeJsString=function(a){return a&&a.contentKind===goog.soy.data.SanitizedContentKind.JS_STR_CHARS?(goog.asserts.assert(a.constructor===soydata.SanitizedJsStrChars),a.content):soy.esc.$$escapeJsStringHelper(a)},soy.$$escapeJsValue=function(a){if(null==a)return' null ';if(a.contentKind==goog.soy.data.SanitizedContentKind.JS)return goog.asserts.assert(a.constructor===soydata.SanitizedJs),a.content;switch(typeof a){case'boolean':case'number':return' '+a+' ';default:return"'"+soy.esc.$$escapeJsStringHelper(String(a))+"'"}},soy.$$escapeJsRegex=function(a){return soy.esc.$$escapeJsRegexHelper(a)},soy.$$problematicUriMarks_=/['()]/g,soy.$$pctEncode_=function(a){return'%'+a.charCodeAt(0).toString(16)},soy.$$escapeUri=function(a){if(a&&a.contentKind===goog.soy.data.SanitizedContentKind.URI)return goog.asserts.assert(a.constructor===soydata.SanitizedUri),soy.$$normalizeUri(a);var b=soy.esc.$$escapeUriHelper(a);return soy.$$problematicUriMarks_.lastIndex=0,soy.$$problematicUriMarks_.test(b)?b.replace(soy.$$problematicUriMarks_,soy.$$pctEncode_):b},soy.$$normalizeUri=function(a){return soy.esc.$$normalizeUriHelper(a)},soy.$$filterNormalizeUri=function(a){return a&&a.contentKind==goog.soy.data.SanitizedContentKind.URI?(goog.asserts.assert(a.constructor===soydata.SanitizedUri),soy.$$normalizeUri(a)):soy.esc.$$filterNormalizeUriHelper(a)},soy.$$escapeCssString=function(a){return soy.esc.$$escapeCssStringHelper(a)},soy.$$filterCssValue=function(a){return a&&a.contentKind===goog.soy.data.SanitizedContentKind.CSS?(goog.asserts.assert(a.constructor===soydata.SanitizedCss),a.content):null==a?'':soy.esc.$$filterCssValueHelper(a)},soy.$$filterNoAutoescape=function(a){return a&&a.contentKind===goog.soy.data.SanitizedContentKind.TEXT?(goog.asserts.fail('Tainted SanitizedContentKind.TEXT for |noAutoescape: `%s`',[a.content]),'zSoyz'):String(a)},soy.$$changeNewlineToBr=function(a){return goog.string.newLineToBr(String(a),!1);
},soy.$$insertWordBreaks=function(a,b){return goog.format.insertWordBreaks(String(a),b)},soy.$$truncate=function(a,b,c){return a=String(a),a.length<=b?a:(c&&(b>3?b-=3:c=!1),soy.$$isHighSurrogate_(a.charAt(b-1))&&soy.$$isLowSurrogate_(a.charAt(b))&&(b-=1),a=a.substring(0,b),c&&(a+='...'),a)},soy.$$isHighSurrogate_=function(a){return a>=55296&&56319>=a},soy.$$isLowSurrogate_=function(a){return a>=56320&&57343>=a},soy.$$bidiFormatterCache_={},soy.$$getBidiFormatterInstance_=function(a){return soy.$$bidiFormatterCache_[a]||(soy.$$bidiFormatterCache_[a]=new goog.i18n.BidiFormatter(a))},soy.$$bidiTextDir=function(a,b){return a?goog.i18n.bidi.detectRtlDirectionality(a,b)?-1:1:0},soy.$$bidiDirAttr=function(a,b,c){return soydata.VERY_UNSAFE.ordainSanitizedHtmlAttribute(soy.$$getBidiFormatterInstance_(a).dirAttr(b,c))},soy.$$bidiMarkAfter=function(a,b,c){var d=soy.$$getBidiFormatterInstance_(a);return d.markAfter(b,c)},soy.$$bidiSpanWrap=function(a,b){var c=soy.$$getBidiFormatterInstance_(a);return c.spanWrap(b+'',!0)},soy.$$bidiUnicodeWrap=function(a,b){var c=soy.$$getBidiFormatterInstance_(a);return c.unicodeWrap(b+'',!0)},soy.esc.$$escapeUriHelper=function(a){return encodeURIComponent(String(a))},soy.esc.$$ESCAPE_MAP_FOR_ESCAPE_HTML__AND__NORMALIZE_HTML__AND__ESCAPE_HTML_NOSPACE__AND__NORMALIZE_HTML_NOSPACE_={'\x00':'&#0;','"':'&quot;','&':'&amp;','\'':'&#39;','<':'&lt;','>':'&gt;','	':'&#9;','\n':'&#10;','\x0B':'&#11;','\f':'&#12;','\r':'&#13;',' ':'&#32;','-':'&#45;','/':'&#47;','=':'&#61;','`':'&#96;','…':'&#133;',' ':'&#160;','\u2028':'&#8232;','\u2029':'&#8233;'},soy.esc.$$REPLACER_FOR_ESCAPE_HTML__AND__NORMALIZE_HTML__AND__ESCAPE_HTML_NOSPACE__AND__NORMALIZE_HTML_NOSPACE_=function(a){return soy.esc.$$ESCAPE_MAP_FOR_ESCAPE_HTML__AND__NORMALIZE_HTML__AND__ESCAPE_HTML_NOSPACE__AND__NORMALIZE_HTML_NOSPACE_[a]},soy.esc.$$ESCAPE_MAP_FOR_ESCAPE_JS_STRING__AND__ESCAPE_JS_REGEX_={'\x00':'\\x00','\b':'\\x08','	':'\\t','\n':'\\n','\x0B':'\\x0b','\f':'\\f','\r':'\\r','"':'\\x22','&':'\\x26','\'':'\\x27','/':'\\/','<':'\\x3c','=':'\\x3d','>':'\\x3e','\\':'\\\\','…':'\\x85','\u2028':'\\u2028','\u2029':'\\u2029',$:'\\x24','(':'\\x28',')':'\\x29','*':'\\x2a','+':'\\x2b',',':'\\x2c','-':'\\x2d','.':'\\x2e',':':'\\x3a','?':'\\x3f','[':'\\x5b',']':'\\x5d','^':'\\x5e','{':'\\x7b','|':'\\x7c','}':'\\x7d'},soy.esc.$$REPLACER_FOR_ESCAPE_JS_STRING__AND__ESCAPE_JS_REGEX_=function(a){return soy.esc.$$ESCAPE_MAP_FOR_ESCAPE_JS_STRING__AND__ESCAPE_JS_REGEX_[a]},soy.esc.$$ESCAPE_MAP_FOR_ESCAPE_CSS_STRING_={'\x00':'\\0 ','\b':'\\8 ','	':'\\9 ','\n':'\\a ','\x0B':'\\b ','\f':'\\c ','\r':'\\d ','"':'\\22 ','&':'\\26 ','\'':'\\27 ','(':'\\28 ',')':'\\29 ','*':'\\2a ','/':'\\2f ',':':'\\3a ',';':'\\3b ','<':'\\3c ','=':'\\3d ','>':'\\3e ','@':'\\40 ','\\':'\\5c ','{':'\\7b ','}':'\\7d ','…':'\\85 ',' ':'\\a0 ','\u2028':'\\2028 ','\u2029':'\\2029 '},soy.esc.$$REPLACER_FOR_ESCAPE_CSS_STRING_=function(a){return soy.esc.$$ESCAPE_MAP_FOR_ESCAPE_CSS_STRING_[a]},soy.esc.$$ESCAPE_MAP_FOR_NORMALIZE_URI__AND__FILTER_NORMALIZE_URI_={'\x00':'%00','':'%01','':'%02','':'%03','':'%04','':'%05','':'%06','':'%07','\b':'%08','	':'%09','\n':'%0A','\x0B':'%0B','\f':'%0C','\r':'%0D','':'%0E','':'%0F','':'%10','':'%11','':'%12','':'%13','':'%14','':'%15','':'%16','':'%17','':'%18','':'%19','':'%1A','':'%1B','':'%1C','':'%1D','':'%1E','':'%1F',' ':'%20','"':'%22','\'':'%27','(':'%28',')':'%29','<':'%3C','>':'%3E','\\':'%5C','{':'%7B','}':'%7D','':'%7F','…':'%C2%85',' ':'%C2%A0','\u2028':'%E2%80%A8','\u2029':'%E2%80%A9','!':'%EF%BC%81','#':'%EF%BC%83','$':'%EF%BC%84','&':'%EF%BC%86',''':'%EF%BC%87','(':'%EF%BC%88',')':'%EF%BC%89','*':'%EF%BC%8A','+':'%EF%BC%8B',',':'%EF%BC%8C','/':'%EF%BC%8F',':':'%EF%BC%9A',';':'%EF%BC%9B','=':'%EF%BC%9D','?':'%EF%BC%9F','@':'%EF%BC%A0','[':'%EF%BC%BB',']':'%EF%BC%BD'},soy.esc.$$REPLACER_FOR_NORMALIZE_URI__AND__FILTER_NORMALIZE_URI_=function(a){return soy.esc.$$ESCAPE_MAP_FOR_NORMALIZE_URI__AND__FILTER_NORMALIZE_URI_[a]},soy.esc.$$MATCHER_FOR_ESCAPE_HTML_=/[\x00\x22\x26\x27\x3c\x3e]/g,soy.esc.$$MATCHER_FOR_NORMALIZE_HTML_=/[\x00\x22\x27\x3c\x3e]/g,soy.esc.$$MATCHER_FOR_ESCAPE_HTML_NOSPACE_=/[\x00\x09-\x0d \x22\x26\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,soy.esc.$$MATCHER_FOR_NORMALIZE_HTML_NOSPACE_=/[\x00\x09-\x0d \x22\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,soy.esc.$$MATCHER_FOR_ESCAPE_JS_STRING_=/[\x00\x08-\x0d\x22\x26\x27\/\x3c-\x3e\\\x85\u2028\u2029]/g,soy.esc.$$MATCHER_FOR_ESCAPE_JS_REGEX_=/[\x00\x08-\x0d\x22\x24\x26-\/\x3a\x3c-\x3f\x5b-\x5e\x7b-\x7d\x85\u2028\u2029]/g,soy.esc.$$MATCHER_FOR_ESCAPE_CSS_STRING_=/[\x00\x08-\x0d\x22\x26-\x2a\/\x3a-\x3e@\\\x7b\x7d\x85\xa0\u2028\u2029]/g,soy.esc.$$MATCHER_FOR_NORMALIZE_URI__AND__FILTER_NORMALIZE_URI_=/[\x00- \x22\x27-\x29\x3c\x3e\\\x7b\x7d\x7f\x85\xa0\u2028\u2029\uff01\uff03\uff04\uff06-\uff0c\uff0f\uff1a\uff1b\uff1d\uff1f\uff20\uff3b\uff3d]/g,soy.esc.$$FILTER_FOR_FILTER_CSS_VALUE_=/^(?!-*(?:expression|(?:moz-)?binding))(?:[.#]?-?(?:[_a-z0-9-]+)(?:-[_a-z0-9-]+)*-?|-?(?:[0-9]+(?:\.[0-9]*)?|\.[0-9]+)(?:[a-z]{1,2}|%)?|!important|)$/i,soy.esc.$$FILTER_FOR_FILTER_NORMALIZE_URI_=/^(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,soy.esc.$$FILTER_FOR_FILTER_HTML_ATTRIBUTES_=/^(?!style|on|action|archive|background|cite|classid|codebase|data|dsync|href|longdesc|src|usemap)(?:[a-z0-9_$:-]*)$/i,soy.esc.$$FILTER_FOR_FILTER_HTML_ELEMENT_NAME_=/^(?!script|style|title|textarea|xmp|no)[a-z0-9_$:-]*$/i,soy.esc.$$escapeHtmlHelper=function(a){var b=String(a);return b.replace(soy.esc.$$MATCHER_FOR_ESCAPE_HTML_,soy.esc.$$REPLACER_FOR_ESCAPE_HTML__AND__NORMALIZE_HTML__AND__ESCAPE_HTML_NOSPACE__AND__NORMALIZE_HTML_NOSPACE_)},soy.esc.$$normalizeHtmlHelper=function(a){var b=String(a);return b.replace(soy.esc.$$MATCHER_FOR_NORMALIZE_HTML_,soy.esc.$$REPLACER_FOR_ESCAPE_HTML__AND__NORMALIZE_HTML__AND__ESCAPE_HTML_NOSPACE__AND__NORMALIZE_HTML_NOSPACE_)},soy.esc.$$escapeHtmlNospaceHelper=function(a){var b=String(a);return b.replace(soy.esc.$$MATCHER_FOR_ESCAPE_HTML_NOSPACE_,soy.esc.$$REPLACER_FOR_ESCAPE_HTML__AND__NORMALIZE_HTML__AND__ESCAPE_HTML_NOSPACE__AND__NORMALIZE_HTML_NOSPACE_)},soy.esc.$$normalizeHtmlNospaceHelper=function(a){var b=String(a);return b.replace(soy.esc.$$MATCHER_FOR_NORMALIZE_HTML_NOSPACE_,soy.esc.$$REPLACER_FOR_ESCAPE_HTML__AND__NORMALIZE_HTML__AND__ESCAPE_HTML_NOSPACE__AND__NORMALIZE_HTML_NOSPACE_)},soy.esc.$$escapeJsStringHelper=function(a){var b=String(a);return b.replace(soy.esc.$$MATCHER_FOR_ESCAPE_JS_STRING_,soy.esc.$$REPLACER_FOR_ESCAPE_JS_STRING__AND__ESCAPE_JS_REGEX_)},soy.esc.$$escapeJsRegexHelper=function(a){var b=String(a);return b.replace(soy.esc.$$MATCHER_FOR_ESCAPE_JS_REGEX_,soy.esc.$$REPLACER_FOR_ESCAPE_JS_STRING__AND__ESCAPE_JS_REGEX_)},soy.esc.$$escapeCssStringHelper=function(a){var b=String(a);return b.replace(soy.esc.$$MATCHER_FOR_ESCAPE_CSS_STRING_,soy.esc.$$REPLACER_FOR_ESCAPE_CSS_STRING_)},soy.esc.$$filterCssValueHelper=function(a){var b=String(a);return soy.esc.$$FILTER_FOR_FILTER_CSS_VALUE_.test(b)?b:'zSoyz'},soy.esc.$$normalizeUriHelper=function(a){var b=String(a);return b.replace(soy.esc.$$MATCHER_FOR_NORMALIZE_URI__AND__FILTER_NORMALIZE_URI_,soy.esc.$$REPLACER_FOR_NORMALIZE_URI__AND__FILTER_NORMALIZE_URI_)},soy.esc.$$filterNormalizeUriHelper=function(a){var b=String(a);return soy.esc.$$FILTER_FOR_FILTER_NORMALIZE_URI_.test(b)?b.replace(soy.esc.$$MATCHER_FOR_NORMALIZE_URI__AND__FILTER_NORMALIZE_URI_,soy.esc.$$REPLACER_FOR_NORMALIZE_URI__AND__FILTER_NORMALIZE_URI_):'#zSoyz'},soy.esc.$$filterHtmlAttributesHelper=function(a){var b=String(a);return soy.esc.$$FILTER_FOR_FILTER_HTML_ATTRIBUTES_.test(b)?b:'zSoyz'},soy.esc.$$filterHtmlElementNameHelper=function(a){var b=String(a);return soy.esc.$$FILTER_FOR_FILTER_HTML_ELEMENT_NAME_.test(b)?b:'zSoyz'},soy.esc.$$HTML_TAG_REGEX_=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,soy.esc.$$LT_REGEX_=/</g,soy.esc.$$SAFE_TAG_WHITELIST_={b:1,br:1,em:1,i:1,s:1,sub:1,sup:1,u:1},define("vendor/google/soyutils/soyutils",function(){}),define('jive/soy_functions',['application/config','crypto/md5','goog/soyutils','jive/namespace'],function(a,b){function c(a,b){var d=[];for(var e in a)if(a.hasOwnProperty(e)){var f=b?b+'['+e+']':e,g=a[e];d.push('object'==typeof g?c(g,f):encodeURIComponent(f)+'='+encodeURIComponent(g))}return d.join('&')}jive.namespace('soy.func');var d=a.baseUrl||'/',e=a.resourceUrl||'/',f=a.originResourceUrl||e,g=a.cssUrl||'/styles/';return jive.soy.func.resourceUrl=function(a,b){return b?jive.soy.func.normalizeUrl(f,a):jive.soy.func.normalizeUrl(e,a)},jive.soy.func.cssUrl=function(a){return document.querySelector('[dir="rtl"]')&&a.replace('.css','.rtl.css'),a="/styles"+a,jive.soy.func.normalizeUrl(g,a)},jive.soy.func.buildUrl=function(b,d,e){var f=jive.soy.func.normalizeUrl(a.baseUrl,d),g=f.indexOf('?')>=0?'&':'?',h=e?g+c(e):'';return f+h},jive.soy.func.buildSecureSubdomainUrl=function(a){var c=jive.global.subdomain.template.replace('%hash%',b(a).toString()).replace('%path%',a),d=/\/resources\/add-ons\/([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})\/([0-9a-fA-F]{6,16}|current|latest)\//;return c.replace(d,function(a,b){var c=jive.global.extensions[b];return c?'/resources/add-ons/'+b+'/'+c+'/':a})},jive.soy.func.normalizeUrl=function(){var a=/^[a-z]+:/i,b=/^\/+/,c=/\/+$/;return function(d,e){var f=d.match(d+'/$')?d:d+'/';return!e.match(a)&&e.match(b)&&0!==e.indexOf(f)?(d=d.replace(c,''),e=e.replace(b,''),d+'/'+e):e}}(),jive.soy.func.themeUrl=function(){return function(a,b){a||(a='/');var c=0===b.indexOf(a)?b.replace(a,''):b;return a+c}}(),jive.soy.func.randomString=function(){return Math.random().toString(36).replace('.','')},jive.soy.func.eval=function(a,b,c,d,e){var f=a.split('.').reduce(function(a,b){return a?a[b]:null},window),g=e||new soy.StringBuilder,h;if(f)if(b){h=new soy.StringBuilder;try{f(d,h),g.append(h.toString())}catch(i){c&&g.append(i+' params:'+JSON.stringify(d))}}else f(d,g);else g.append('ERROR: no template found for '+a);return e?'':g.toString()},jive.soy.func.augmentMap=function(a,b){function c(){}c.prototype=a;var d=new c;for(var e in b)d[e]=b[e];return d},jive.soy.func}),function(a){define('soy',['module','underscore','text','goog/shim','jive/soy_functions'],function(b,c,d){'use strict';function e(b){return c.get(a,b)}function f(a){var b=a.match(i),d=c.chain(b).map(function(a){return a.replace(j,'$2')}).filter(function(a){return!/^soy/.test(a)}).map(function(a){var b=a;return b=/^jive\.soy.helpers/.test(a)?a.replace(/\./g,'/'):'soy!'+a,b}).union(r).uniq().value();return d}function g(){return c.pick(o,function(a){return a.deps.some(function(b){return o[b]&&o[b].deps.indexOf(a.id)>-1})})}var h,i=/goog.require\((['"])([^\1]*?)\1\);/gm,j=/goog.require\((['"])([^\1]*?)\1\);/,k={},l=b.config&&b.config()||{},m=c.get(l,'build.noIntern',[]),n=l.baseUrl||'',o={},p,q,r=['soyDeps'];return n&&!/\/$/.test(n)&&(n+='/'),p=c.memoize(function(a,b){o[a]={id:a,deps:b.map(function(a){return a.replace(/^soy\!/,'')})}}),q=c.debounce(function(){var a=g(),b={},d=[],e='';0===a.length?console.debug('No circular results detected between soy dependencies'):(c.each(a,function(c){b[c.id]=c,c.deps.forEach(function(e){a[e]&&!b[e]&&a[e].deps.indexOf(c.id)>-1&&d.push([c.id,e])})}),e=1===d.length?'%s circular dependency found':'%s circular dependencies found',console.group(e,d.length),d.forEach(function(a){console.log('%s <=> %s',a[0],a[1])}),console.groupEnd())},1e3),h={finishLoad:function(a,b,d){if(l.isBuild){if(c.includes(m,a))return d(),void 0;b=b.replace(/^\s*\/\/.*$/gm,''),k[a]=b.trim()}d(b)},load:function(a,b,c,g){var i,j='gen/soy/'+a.replace(/\./g,'/'),k=j+'.js';l.isBuild=g&&g.isBuild,k=n+k,!g.isBuild&&(i=e(a))?h.finishLoad(a,i,c):d.get(k,function(d){var i=f(d);l.logCircularDependencies&&p(a,i),b(i,function(){g.isBuild?h.finishLoad(a,d,c):b([j],function(){h.finishLoad(a,e(a),c)})},function(b){l.logCircularDependencies&&q(),console.error('Error in soy! plugin while fetching dependencies: '+i+' for: '+a+': '+b)})},function(a){console.error('Error in soy! plugin while fetching: '+k+': '+a)})},write:function(a,b,d){if(k.hasOwnProperty(b)){var e=k[b].replace(/\n/g,''),g=f(e),h=function(a){return'\''+a+'\''};e=e.replace(/goog.provide\((['"])([^\1]*?)\1\);/gm,''),e=e.replace(/goog.require\((['"])([^\1]*?)\1\);/gm,''),e=e.replace(/jive\.i18n/g,'i18n'),e='jive.namespace.call(this, \''+c.initial(b.split('.')).join('.')+'\'); '+e,d.asModule(a+'!'+b,'define(['+c.chain(r).union(g).map(h).value().join(',')+'], function(i18n) { '+e+' return '+b+';});\n')}}},h})}(this),define('jive/i18nInitialMap',['jquery'],function(a){'use strict';return a.Deferred()}),function(a,b){'use strict';var c=function(a){var b;return a.cacheKey?'function'==typeof a.cacheKey?a.cacheKey(a):a.cacheKey:(b=a.url.replace(/jQuery.*/,''),a.cache===!1&&(b=b.replace(/([?&])_=[^&]*/,'')),b+a.type+(a.data||''))},d=function(a){if(!a)return!1;if(a===!0)return b.localStorage;if("object"==typeof a&&'getItem'in a&&'removeItem'in a&&'setItem'in a)return a;throw new TypeError("localCache must either be a boolean value, or an object which implements the Storage interface.")},e=function(a,b){a.removeItem(b),a.removeItem(b+'cachettl'),a.removeItem(b+'dataType')};a.ajaxPrefilter(function(a){var b=d(a.localCache),f=a.cacheTTL||5,g=a.cacheKey=c(a),h=a.isCacheValid,i=a.isResponseValid,j,k;b&&(j=b.getItem(g+'cachettl'),h&&'function'==typeof h&&!h()&&(e(b,g),j=0),j&&j<+new Date&&(e(b,g),j=0),k=b.getItem(g),k||(a.success&&(a.realsuccess=a.success),a.success=function(c,d,h){var j=c,k=this.dataType||h.getResponseHeader('Content-Type');if(!i||'function'!=typeof i||i(c,d,h)){-1!==k.toLowerCase().indexOf('json')&&(j=JSON.stringify(c));try{b.setItem(g,j),b.setItem(g+'cachettl',+new Date+36e5*f),b.setItem(g+'dataType',k)}catch(l){e(b,g),console.log('Cache Error:'+l,g,j)}}a.realsuccess&&a.realsuccess(c,d,h)}))}),a.ajaxTransport("+*",function(a){if(a.localCache){var b=a.cacheKey,c=d(a.localCache),e=a.dataType||c.getItem(b+'dataType')||'text',f=c?c.getItem(b):!1;if(f)return-1!==e.toLowerCase().indexOf('json')&&(f=JSON.parse(f)),{send:function(a,b){var c={};c[e]=f,b(200,'success',c,'')},abort:function(){console.log("Aborted ajax transport for json cache.")}}}})}(jQuery,window),define("jalc",function(){}),define('jive/i18n',['jquery','underscore','promise!./i18nInitialMap','goog/soyutils','jive/namespace','jalc'],function(a,b,c){'use strict';var d={},e={},f={_getMsg:function(a){return c[a]||soy.$$escapeHtml(a)},addMsgs:function(a){c=b.extend(c,a)},i18nText:function(a,b){for(var c,d=0;d<b.length;d++)c=b[d],'undefined'!=typeof c&&(a=(a+'').replace('{'+d+'}',soy.$$escapeHtml(c)));return soydata.VERY_UNSAFE.ordainSanitizedHtml(a)},_i18n:function(a,b){return f.i18nText(f._getMsg(a),b)},jsGetMsg:function(a,b){if(a in d)return f._getMsg(d[a]);var c=f.getMinKey(a,b);return f._getMsg(c)},getMinKey:function(b,c){if(b in d)return d[b];var e=b;return a.ajax({url:_jive_base_url+'/api/core/v3/i18n/minify/'+b,async:!!c,localCache:!0,cacheTTL:1,dataType:'text',success:function(a){e=a}}),d[b]=e,e},batchWarmI18nWildCardsRequest:function(b){return b in e?a.Deferred().resolve():a.ajax({url:_jive_base_url+'/api/core/v3/i18n/minify/wildcard/'+b,localCache:!0,cacheTTL:1,dataType:'text',success:function(c){try{for(var f=c.split(" "),g=0;g<f.length;g+=1){var h=a.parseJSON(f[g]);d[h.i18nKey]=h.minI18nKey,e[b]=!0}}catch(i){a.Deferred().reject()}}})}};return jive.namespace('i18n',f)}),define('jive/model/date',['jive/namespace'],function(){return jive.namespace('model'),jive.model.dateLTEQ=function(a,b){return a.getFullYear()<b.getFullYear()||a.getFullYear()==b.getFullYear()&&(a.getMonth()<b.getMonth()||a.getMonth()==b.getMonth()&&a.getDate()<=b.getDate())},jive.model.dateLT=function(a,b){return a.getFullYear()<b.getFullYear()||a.getFullYear()==b.getFullYear()&&(a.getMonth()<b.getMonth()||a.getMonth()==b.getMonth()&&a.getDate()<b.getDate())},jive.model.dateGT=function(a,b){return jive.model.dateLT(b,a)},jive.model.dateGTEQ=function(a,b){return jive.model.dateLTEQ(b,a)},jive.model.monthYearEQ=function(a,b){return a.getMonth()==b.getMonth()&&a.getFullYear()==b.getFullYear()},jive.model.dateEQ=function(a,b){return a.getDate()==b.getDate()&&a.getMonth()==b.getMonth()&&a.getFullYear()==b.getFullYear()},jive.model.dateMinusMonth=function(a){var b=a.getMonth();for(0==a.getMonth()?(a.setFullYear(a.getFullYear()-1),a.setMonth(11)):a.setMonth(a.getMonth()-1);a.getMonth()==b;)a.setDate(a.getDate()-1)},jive.model.dateMinusDay=function(a){0==a.getDate()&&1==a.getDate()?(a.setFullYear(a.getFullYear()-1),a.setMonth(11),a.setDate(31)):a.setDate(a.getDate()-1)},jive.model.DateUtil=function(){var a=/(\d\d\d\d)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)(?:[\.,](\d+))?([Z\+\-])(\d\d)?:?(\d\d)?/;return{parseISODateTime:function b(c){function d(a,b){var c=NaN;return null!=a&&a.length>0&&(c=parseInt(a,10)),isNaN(c)&&(c=b),c}function e(a){function b(a){for(var b=String(a);b.length<2;)b='0'+b;return b}function c(a){return a>=0?Math.floor(a):Math.ceil(a)}var d=-a.getTimezoneOffset();return 6e4*d}if(Date.prototype.toISOString)try{var f=Date.parse(c);if('number'==typeof f&&!isNaN(f))return f}catch(g){}var h=a.exec(c);if(h){var i=d(h[4],0),j=d(h[5],0),k=d(h[6],0),l=parseFloat('0.'+h[7]),m=h[8],n=d(h[9],0),o=d(h[10],0);m='Z'==m?0:'+'==m?1:-1;var p=m*(o+60*n)*60*1e3,q=1e3*(60*(60*i+j)+k+l),r=new Date(d(h[1]),d(h[2])-1,d(h[3]));return r.getTime()+e(r)+q-p}return NaN},_testParsing:function(){for(var a=1970,b=0,c=1,d=0,e=0,f=0,g,h=0;500>h;++h){g=new Date(a+h,(b+h)%12,(c+h)%29+1,(d+h)%24,(e+h)%60,(f+h)%60,2*h%1e3);var i=this.formatToISODateTime(g),j=this.parseISODateTime(i);j!==g.getTime()?console.log('fail: ',g):console.log('Success: '+j,i)}},formatToISODateTime:function c(a){if(a.toISOString())return a.toISOString().replace(/Z$/,'+0000');var b=a.getUTCFullYear(),c=a.getUTCMonth()+1;10>c&&(c='0'+c);var d=a.getUTCDate();10>d&&(d='0'+d);var e=a.getUTCHours();10>e&&(e='0'+e);var f=a.getUTCMinutes();10>f&&(f='0'+f);var g=a.getUTCSeconds();10>g&&(g='0'+g);var h=a.getUTCMilliseconds();return 10>h?h='00'+h:100>h&&(h='0'+h),b+'-'+c+'-'+d+'T'+e+':'+f+':'+g+'.'+h+'+0000'}}}(),jive.model.DateHelper=function(a){var b=a.getSettingsManager(),c=this;this.formatToDateTime=function(a){var b=a.getFullYear(),c=a.getMonth()+1;10>c&&(c='0'+c);var d=a.getDate();10>d&&(d='0'+d);var e=a.getHours();10>e&&(e='0'+e);var f=a.getMinutes();10>f&&(f='0'+f);var g=a.getSeconds();return 10>g&&(g='0'+g),b+'-'+c+'-'+d+' '+e+':'+f+':'+g},this.formatTo12HourTime=function(a){var c=b.getTimeFormat();if('3:00p'==c){var d=a.getHours(),e=a.getMinutes();10>e&&(e='0'+e);var f='a';return d>=12&&(f='p',d-=12),0==d&&(d=12),d+':'+e+f}var d=a.getHours(),e=a.getMinutes();return 10>e&&(e='0'+e),d+':'+e},this.formatToShortDate=function(a){var c=a.getMonth()+1,d=a.getDate(),e=b.getDateFormat();return'4/30'==e?c+'/'+d:d+'/'+c}},jive.model}),function(a){function b(a,b,c){switch(arguments.length){case 2:return null!=a?a:b;case 3:return null!=a?a:null!=b?b:c;default:throw new Error('Implement me')}}function c(a,b){return ya.call(a,b)}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function e(a){ta.suppressDeprecationWarnings===!1&&'undefined'!=typeof console&&console.warn&&console.warn('Deprecation warning: '+a)}function f(a,b){var c=!0;return m(function(){return c&&(e(a),c=!1),b.apply(this,arguments)},b)}function g(a,b){rb[a]||(e(b),rb[a]=!0)}function h(a,b){return function(c){return p(a.call(this,c),b)}}function i(a,b){return function(c){return this.localeData().ordinal(a.call(this,c),b)}}function j(){}function k(a,b){b!==!1&&F(a),n(this,a),this._d=new Date(+a._d)}function l(a){var b=y(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;this._milliseconds=+k+1e3*j+6e4*i+36e5*h,this._days=+g+7*f,this._months=+e+3*d+12*c,this._data={},this._locale=ta.localeData(),this._bubble()}function m(a,b){for(var d in b)c(b,d)&&(a[d]=b[d]);return c(b,'toString')&&(a.toString=b.toString),c(b,'valueOf')&&(a.valueOf=b.valueOf),a}function n(a,b){var c,d,e;if('undefined'!=typeof b._isAMomentObject&&(a._isAMomentObject=b._isAMomentObject),'undefined'!=typeof b._i&&(a._i=b._i),'undefined'!=typeof b._f&&(a._f=b._f),'undefined'!=typeof b._l&&(a._l=b._l),'undefined'!=typeof b._strict&&(a._strict=b._strict),'undefined'!=typeof b._tzm&&(a._tzm=b._tzm),'undefined'!=typeof b._isUTC&&(a._isUTC=b._isUTC),'undefined'!=typeof b._offset&&(a._offset=b._offset),'undefined'!=typeof b._pf&&(a._pf=b._pf),'undefined'!=typeof b._locale&&(a._locale=b._locale),Ia.length>0)for(c in Ia)d=Ia[c],e=b[d],'undefined'!=typeof e&&(a[d]=e);return a}function o(a){return 0>a?Math.ceil(a):Math.floor(a)}function p(a,b,c){for(var d=''+Math.abs(a),e=a>=0;d.length<b;)d='0'+d;return(e?c?'+':'':'-')+d}function q(a,b){var c={milliseconds:0,months:0};return c.months=b.month()-a.month()+12*(b.year()-a.year()),a.clone().add(c.months,'M').isAfter(b)&&--c.months,c.milliseconds=+b-+a.clone().add(c.months,'M'),c}function r(a,b){var c;return b=K(b,a),a.isBefore(b)?c=q(a,b):(c=q(b,a),c.milliseconds=-c.milliseconds,c.months=-c.months),c}function s(a,b){return function(c,d){var e,f;return null===d||isNaN(+d)||(g(b,'moment().'+b+'(period, number) is deprecated. Please use moment().'+b+'(number, period).'),f=c,c=d,d=f),c='string'==typeof c?+c:c,e=ta.duration(c,d),t(this,e,a),this}}function t(a,b,c,d){var e=b._milliseconds,f=b._days,g=b._months;d=null==d?!0:d,e&&a._d.setTime(+a._d+e*c),f&&na(a,'Date',ma(a,'Date')+f*c),g&&la(a,ma(a,'Month')+g*c),d&&ta.updateOffset(a,f||g)}function u(a){return'[object Array]'===Object.prototype.toString.call(a)}function v(a){return'[object Date]'===Object.prototype.toString.call(a)||a instanceof Date}function w(a,b,c){var d=Math.min(a.length,b.length),e=Math.abs(a.length-b.length),f=0,g;for(g=0;d>g;g++)(c&&a[g]!==b[g]||!c&&A(a[g])!==A(b[g]))&&f++;return f+e}function x(a){if(a){var b=a.toLowerCase().replace(/(.)s$/,'$1');a=kb[a]||lb[b]||b}return a}function y(a){var b={},d,e;for(e in a)c(a,e)&&(d=x(e),d&&(b[d]=a[e]));return b}function z(b){var c,d;if(0===b.indexOf('week'))c=7,d='day';else{if(0!==b.indexOf('month'))return;c=12,d='month'}ta[b]=function(e,f){var g,h,i=ta._locale[b],j=[];if('number'==typeof e&&(f=e,e=a),h=function(a){var b=ta().utc().set(d,a);return i.call(ta._locale,b,e||'')},null!=f)return h(f);for(g=0;c>g;g++)j.push(h(g));return j}}function A(a){var b=+a,c=0;return 0!==b&&isFinite(b)&&(c=b>=0?Math.floor(b):Math.ceil(b)),c}function B(a,b){return new Date(Date.UTC(a,b+1,0)).getUTCDate()}function C(a,b,c){return ha(ta([a,11,31+b-c]),b,c).week}function D(a){return E(a)?366:365}function E(a){return a%4===0&&a%100!==0||a%400===0}function F(a){var b;a._a&&-2===a._pf.overflow&&(b=a._a[Ba]<0||a._a[Ba]>11?Ba:a._a[Ca]<1||a._a[Ca]>B(a._a[Aa],a._a[Ba])?Ca:a._a[Da]<0||a._a[Da]>24||24===a._a[Da]&&(0!==a._a[Ea]||0!==a._a[Fa]||0!==a._a[Ga])?Da:a._a[Ea]<0||a._a[Ea]>59?Ea:a._a[Fa]<0||a._a[Fa]>59?Fa:a._a[Ga]<0||a._a[Ga]>999?Ga:-1,a._pf._overflowDayOfYear&&(Aa>b||b>Ca)&&(b=Ca),a._pf.overflow=b)}function G(b){return null==b._isValid&&(b._isValid=!isNaN(b._d.getTime())&&b._pf.overflow<0&&!b._pf.empty&&!b._pf.invalidMonth&&!b._pf.nullInput&&!b._pf.invalidFormat&&!b._pf.userInvalidated,b._strict&&(b._isValid=b._isValid&&0===b._pf.charsLeftOver&&0===b._pf.unusedTokens.length&&b._pf.bigHour===a)),b._isValid}function H(a){return a?a.toLowerCase().replace('_','-'):a}function I(a){for(var b=0,c,d,e,f;b<a.length;){for(f=H(a[b]).split('-'),c=f.length,d=H(a[b+1]),d=d?d.split('-'):null;c>0;){if(e=J(f.slice(0,c).join('-')),e)return e;if(d&&d.length>=c&&w(f,d,!0)>=c-1)break;c--}b++}return null}function J(a){var b=null;if(!Ha[a]&&Ja)try{b=ta.locale(),require('./locale/'+a),ta.locale(b)}catch(c){}return Ha[a]}function K(a,b){var c,d;return b._isUTC?(c=b.clone(),d=(ta.isMoment(a)||v(a)?+a:+ta(a))-+c,c._d.setTime(+c._d+d),ta.updateOffset(c,!1),c):ta(a).local()}function L(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,''):a.replace(/\\/g,'')}function M(a){var b=a.match(Na),c,d;for(c=0,d=b.length;d>c;c++)qb[b[c]]?b[c]=qb[b[c]]:b[c]=L(b[c]);return function(e){var f='';for(c=0;d>c;c++)f+=b[c]instanceof Function?b[c].call(e,a):b[c];return f}}function N(a,b){return a.isValid()?(b=O(b,a.localeData()),mb[b]||(mb[b]=M(b)),mb[b](a)):a.localeData().invalidDate()}function O(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(Oa.lastIndex=0;d>=0&&Oa.test(a);)a=a.replace(Oa,c),Oa.lastIndex=0,d-=1;return a}function P(a,b){var c,d=b._strict;switch(a){case'Q':return Za;case'DDDD':return _a;case'YYYY':case'GGGG':case'gggg':return d?ab:Ra;case'Y':case'G':case'g':return cb;case'YYYYYY':case'YYYYY':case'GGGGG':case'ggggg':return d?bb:Sa;case'S':if(d)return Za;case'SS':if(d)return $a;case'SSS':if(d)return _a;case'DDD':return Qa;case'MMM':case'MMMM':case'dd':case'ddd':case'dddd':return Ua;case'a':case'A':return b._locale._meridiemParse;case'x':return Xa;case'X':return Ya;case'Z':case'ZZ':return Va;case'T':return Wa;case'SSSS':return Ta;case'MM':case'DD':case'YY':case'GG':case'gg':case'HH':case'hh':case'mm':case'ss':case'ww':case'WW':return d?$a:Pa;case'M':case'D':case'd':case'H':case'h':case'm':case's':case'w':case'W':case'e':case'E':return Pa;case'Do':return d?b._locale._ordinalParse:b._locale._ordinalParseLenient;default:return c=new RegExp(Y(X(a.replace('\\','')),'i')),c}}function Q(a){a=a||'';var b=a.match(Va)||[],c=b[b.length-1]||[],d=(c+'').match(hb)||['-',0,0],e=+(60*d[1])+A(d[2]);return'+'===d[0]?-e:e}function R(a,b,c){var d,e=c._a;switch(a){case'Q':null!=b&&(e[Ba]=3*(A(b)-1));break;case'M':case'MM':null!=b&&(e[Ba]=A(b)-1);break;case'MMM':case'MMMM':d=c._locale.monthsParse(b,a,c._strict),null!=d?e[Ba]=d:c._pf.invalidMonth=b;break;case'D':case'DD':null!=b&&(e[Ca]=A(b));break;case'Do':null!=b&&(e[Ca]=A(parseInt(b.match(/\d{1,2}/)[0],10)));break;case'DDD':case'DDDD':null!=b&&(c._dayOfYear=A(b));break;case'YY':e[Aa]=ta.parseTwoDigitYear(b);break;case'YYYY':case'YYYYY':case'YYYYYY':e[Aa]=A(b);break;case'a':case'A':c._isPm=c._locale.isPM(b);break;case'h':case'hh':c._pf.bigHour=!0;case'H':case'HH':e[Da]=A(b);break;case'm':case'mm':e[Ea]=A(b);break;case's':case'ss':e[Fa]=A(b);break;case'S':case'SS':case'SSS':case'SSSS':e[Ga]=A(1e3*('0.'+b));break;case'x':c._d=new Date(A(b));break;case'X':c._d=new Date(1e3*parseFloat(b));break;case'Z':case'ZZ':c._useUTC=!0,c._tzm=Q(b);break;case'dd':case'ddd':case'dddd':d=c._locale.weekdaysParse(b),null!=d?(c._w=c._w||{},c._w.d=d):c._pf.invalidWeekday=b;break;case'w':case'ww':case'W':case'WW':case'd':case'e':case'E':a=a.substr(0,1);case'gggg':case'GGGG':case'GGGGG':a=a.substr(0,2),b&&(c._w=c._w||{},c._w[a]=A(b));break;case'gg':case'GG':c._w=c._w||{},c._w[a]=ta.parseTwoDigitYear(b)}}function S(a){var c,d,e,f,g,h,i;c=a._w,null!=c.GG||null!=c.W||null!=c.E?(g=1,h=4,d=b(c.GG,a._a[Aa],ha(ta(),1,4).year),e=b(c.W,1),f=b(c.E,1)):(g=a._locale._week.dow,h=a._locale._week.doy,d=b(c.gg,a._a[Aa],ha(ta(),g,h).year),e=b(c.w,1),null!=c.d?(f=c.d,g>f&&++e):f=null!=c.e?c.e+g:g),i=ia(d,e,f,h,g),a._a[Aa]=i.year,a._dayOfYear=i.dayOfYear}function T(a){var c,d,e=[],f,g;if(!a._d){for(f=V(a),a._w&&null==a._a[Ca]&&null==a._a[Ba]&&S(a),a._dayOfYear&&(g=b(a._a[Aa],f[Aa]),a._dayOfYear>D(g)&&(a._pf._overflowDayOfYear=!0),d=da(g,0,a._dayOfYear),a._a[Ba]=d.getUTCMonth(),a._a[Ca]=d.getUTCDate()),c=0;3>c&&null==a._a[c];++c)a._a[c]=e[c]=f[c];for(;7>c;c++)a._a[c]=e[c]=null==a._a[c]?2===c?1:0:a._a[c];24===a._a[Da]&&0===a._a[Ea]&&0===a._a[Fa]&&0===a._a[Ga]&&(a._nextDay=!0,a._a[Da]=0),a._d=(a._useUTC?da:ca).apply(null,e),null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()+a._tzm),a._nextDay&&(a._a[Da]=24)}}function U(a){var b;a._d||(b=y(a._i),a._a=[b.year,b.month,b.day||b.date,b.hour,b.minute,b.second,b.millisecond],T(a))}function V(a){var b=new Date;return a._useUTC?[b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()]:[b.getFullYear(),b.getMonth(),b.getDate()]}function W(b){if(b._f===ta.ISO_8601)return $(b),void 0;b._a=[],b._pf.empty=!0;var c=''+b._i,d,e,f,g,h,i=c.length,j=0;for(f=O(b._f,b._locale).match(Na)||[],d=0;d<f.length;d++)g=f[d],e=(c.match(P(g,b))||[])[0],e&&(h=c.substr(0,c.indexOf(e)),h.length>0&&b._pf.unusedInput.push(h),c=c.slice(c.indexOf(e)+e.length),j+=e.length),qb[g]?(e?b._pf.empty=!1:b._pf.unusedTokens.push(g),R(g,e,b)):b._strict&&!e&&b._pf.unusedTokens.push(g);b._pf.charsLeftOver=i-j,c.length>0&&b._pf.unusedInput.push(c),b._pf.bigHour===!0&&b._a[Da]<=12&&(b._pf.bigHour=a),b._isPm&&b._a[Da]<12&&(b._a[Da]+=12),b._isPm===!1&&12===b._a[Da]&&(b._a[Da]=0),T(b),F(b)}function X(a){return a.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e})}function Y(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,'\\$&')}function Z(a){var b,c,e,f,g;if(0===a._f.length)return a._pf.invalidFormat=!0,a._d=new Date(NaN),void 0;for(f=0;f<a._f.length;f++)g=0,b=n({},a),null!=a._useUTC&&(b._useUTC=a._useUTC),b._pf=d(),b._f=a._f[f],W(b),G(b)&&(g+=b._pf.charsLeftOver,g+=10*b._pf.unusedTokens.length,b._pf.score=g,(null==e||e>g)&&(e=g,c=b));m(a,c||b)}function $(a){var b,c,d=a._i,e=db.exec(d);if(e){for(a._pf.iso=!0,b=0,c=fb.length;c>b;b++)if(fb[b][1].exec(d)){a._f=fb[b][0]+(e[6]||' ');break}for(b=0,c=gb.length;c>b;b++)if(gb[b][1].exec(d)){a._f+=gb[b][0];break}d.match(Va)&&(a._f+='Z'),W(a)}else a._isValid=!1}function _(a){$(a),a._isValid===!1&&(delete a._isValid,ta.createFromInputFallback(a))}function aa(a,b){var c=[],d;for(d=0;d<a.length;++d)c.push(b(a[d],d));return c}function ba(b){var c=b._i,d;c===a?b._d=new Date:v(c)?b._d=new Date(+c):null!==(d=Ka.exec(c))?b._d=new Date(+d[1]):'string'==typeof c?_(b):u(c)?(b._a=aa(c.slice(0),function(a){return parseInt(a,10)}),T(b)):'object'==typeof c?U(b):'number'==typeof c?b._d=new Date(c):ta.createFromInputFallback(b)}function ca(a,b,c,d,e,f,g){var h=new Date(a,b,c,d,e,f,g);return 1970>a&&h.setFullYear(a),h}function da(a){var b=new Date(Date.UTC.apply(null,arguments));return 1970>a&&b.setUTCFullYear(a),b}function ea(a,b){if('string'==typeof a)if(isNaN(a)){if(a=b.weekdaysParse(a),'number'!=typeof a)return null}else a=parseInt(a,10);return a}function fa(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function ga(a,b,c){var d=ta.duration(a).abs(),e=xa(d.as('s')),f=xa(d.as('m')),g=xa(d.as('h')),h=xa(d.as('d')),i=xa(d.as('M')),j=xa(d.as('y')),k=e<nb.s&&['s',e]||1===f&&['m']||f<nb.m&&['mm',f]||1===g&&['h']||g<nb.h&&['hh',g]||1===h&&['d']||h<nb.d&&['dd',h]||1===i&&['M']||i<nb.M&&['MM',i]||1===j&&['y']||['yy',j];return k[2]=b,k[3]=+a>0,k[4]=c,fa.apply({},k)}function ha(a,b,c){var d=c-b,e=c-a.day(),f;return e>d&&(e-=7),d-7>e&&(e+=7),f=ta(a).add(e,'d'),{week:Math.ceil(f.dayOfYear()/7),year:f.year()}}function ia(a,b,c,d,e){var f=da(a,0,1).getUTCDay(),g,h;return f=0===f?7:f,c=null!=c?c:e,g=e-f+(f>d?7:0)-(e>f?7:0),h=7*(b-1)+(c-e)+g+1,{year:h>0?a:a-1,dayOfYear:h>0?h:D(a-1)+h}}function ja(b){var c=b._i,d=b._f,e;return b._locale=b._locale||ta.localeData(b._l),null===c||d===a&&''===c?ta.invalid({nullInput:!0}):('string'==typeof c&&(b._i=c=b._locale.preparse(c)),ta.isMoment(c)?new k(c,!0):(d?u(d)?Z(b):W(b):ba(b),e=new k(b),e._nextDay&&(e.add(1,'d'),e._nextDay=a),e))}function ka(a,b){var c,d;if(1===b.length&&u(b[0])&&(b=b[0]),!b.length)return ta();for(c=b[0],d=1;d<b.length;++d)b[d][a](c)&&(c=b[d]);return c}function la(a,b){var c;return'string'==typeof b&&(b=a.localeData().monthsParse(b),'number'!=typeof b)?a:(c=Math.min(a.date(),B(a.year(),b)),a._d['set'+(a._isUTC?'UTC':'')+'Month'](b,c),a)}function ma(a,b){return a._d['get'+(a._isUTC?'UTC':'')+b]()}function na(a,b,c){return'Month'===b?la(a,c):a._d['set'+(a._isUTC?'UTC':'')+b](c)}function oa(a,b){return function(c){return null!=c?(na(this,a,c),ta.updateOffset(this,b),this):ma(this,a)}}function pa(a){return 400*a/146097}function qa(a){return 146097*a/400}function ra(a){ta.duration.fn[a]=function(){return this._data[a]}}function sa(a){'undefined'==typeof ender&&(wa=va.moment,a?va.moment=f("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",ta):va.moment=ta);
}for(var ta,ua='2.8.4',va='undefined'!=typeof global?global:this,wa,xa=Math.round,ya=Object.prototype.hasOwnProperty,za,Aa=0,Ba=1,Ca=2,Da=3,Ea=4,Fa=5,Ga=6,Ha={},Ia=[],Ja='undefined'!=typeof module&&module&&module.exports,Ka=/^\/?Date\((\-?\d+)/i,La=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Ma=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,Na=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,Oa=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Pa=/\d\d?/,Qa=/\d{1,3}/,Ra=/\d{1,4}/,Sa=/[+\-]?\d{1,6}/,Ta=/\d+/,Ua=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Va=/Z|[\+\-]\d\d:?\d\d/gi,Wa=/T/i,Xa=/[\+\-]?\d+/,Ya=/[\+\-]?\d+(\.\d{1,3})?/,Za=/\d/,$a=/\d\d/,_a=/\d{3}/,ab=/\d{4}/,bb=/[+-]?\d{6}/,cb=/[+-]?\d+/,db=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,eb='YYYY-MM-DDTHH:mm:ssZ',fb=[['YYYYYY-MM-DD',/[+-]\d{6}-\d{2}-\d{2}/],['YYYY-MM-DD',/\d{4}-\d{2}-\d{2}/],['GGGG-[W]WW-E',/\d{4}-W\d{2}-\d/],['GGGG-[W]WW',/\d{4}-W\d{2}/],['YYYY-DDD',/\d{4}-\d{3}/]],gb=[['HH:mm:ss.SSSS',/(T| )\d\d:\d\d:\d\d\.\d+/],['HH:mm:ss',/(T| )\d\d:\d\d:\d\d/],['HH:mm',/(T| )\d\d:\d\d/],['HH',/(T| )\d\d/]],hb=/([\+\-]|\d\d)/gi,ib='Date|Hours|Minutes|Seconds|Milliseconds'.split('|'),jb={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},kb={ms:'millisecond',s:'second',m:'minute',h:'hour',d:'day',D:'date',w:'week',W:'isoWeek',M:'month',Q:'quarter',y:'year',DDD:'dayOfYear',e:'weekday',E:'isoWeekday',gg:'weekYear',GG:'isoWeekYear'},lb={dayofyear:'dayOfYear',isoweekday:'isoWeekday',isoweek:'isoWeek',weekyear:'weekYear',isoweekyear:'isoWeekYear'},mb={},nb={s:45,m:45,h:22,d:26,M:11},ob='DDD w W M D d'.split(' '),pb='M D H h m s w W'.split(' '),qb={M:function(){return this.month()+1},MMM:function(a){return this.localeData().monthsShort(this,a)},MMMM:function(a){return this.localeData().months(this,a)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(a){return this.localeData().weekdaysMin(this,a)},ddd:function(a){return this.localeData().weekdaysShort(this,a)},dddd:function(a){return this.localeData().weekdays(this,a)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return p(this.year()%100,2)},YYYY:function(){return p(this.year(),4)},YYYYY:function(){return p(this.year(),5)},YYYYYY:function(){var a=this.year(),b=a>=0?'+':'-';return b+p(Math.abs(a),6)},gg:function(){return p(this.weekYear()%100,2)},gggg:function(){return p(this.weekYear(),4)},ggggg:function(){return p(this.weekYear(),5)},GG:function(){return p(this.isoWeekYear()%100,2)},GGGG:function(){return p(this.isoWeekYear(),4)},GGGGG:function(){return p(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return A(this.milliseconds()/100)},SS:function(){return p(A(this.milliseconds()/10),2)},SSS:function(){return p(this.milliseconds(),3)},SSSS:function(){return p(this.milliseconds(),3)},Z:function(){var a=-this.zone(),b='+';return 0>a&&(a=-a,b='-'),b+p(A(a/60),2)+':'+p(A(a)%60,2)},ZZ:function(){var a=-this.zone(),b='+';return 0>a&&(a=-a,b='-'),b+p(A(a/60),2)+p(A(a)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},x:function(){return this.valueOf()},X:function(){return this.unix()},Q:function(){return this.quarter()}},rb={},sb=['months','monthsShort','weekdays','weekdaysShort','weekdaysMin'];ob.length;)za=ob.pop(),qb[za+'o']=i(qb[za],za);for(;pb.length;)za=pb.pop(),qb[za+za]=h(qb[za],2);qb.DDDD=h(qb.DDD,3),m(j.prototype,{set:function(a){var b,c;for(c in a)b=a[c],'function'==typeof b?this[c]=b:this['_'+c]=b;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+'|'+/\d{1,2}/.source)},_months:'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'),months:function(a){return this._months[a.month()]},_monthsShort:'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),monthsShort:function(a){return this._monthsShort[a.month()]},monthsParse:function(a,b,c){var d,e,f;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),d=0;12>d;d++){if(e=ta.utc([2e3,d]),c&&!this._longMonthsParse[d]&&(this._longMonthsParse[d]=new RegExp('^'+this.months(e,'').replace('.','')+'$','i'),this._shortMonthsParse[d]=new RegExp('^'+this.monthsShort(e,'').replace('.','')+'$','i')),c||this._monthsParse[d]||(f='^'+this.months(e,'')+'|^'+this.monthsShort(e,''),this._monthsParse[d]=new RegExp(f.replace('.',''),'i')),c&&'MMMM'===b&&this._longMonthsParse[d].test(a))return d;if(c&&'MMM'===b&&this._shortMonthsParse[d].test(a))return d;if(!c&&this._monthsParse[d].test(a))return d}},_weekdays:'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),weekdays:function(a){return this._weekdays[a.day()]},_weekdaysShort:'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),weekdaysShort:function(a){return this._weekdaysShort[a.day()]},_weekdaysMin:'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),weekdaysMin:function(a){return this._weekdaysMin[a.day()]},weekdaysParse:function(a){var b,c,d;for(this._weekdaysParse||(this._weekdaysParse=[]),b=0;7>b;b++)if(this._weekdaysParse[b]||(c=ta([2e3,1]).day(b),d='^'+this.weekdays(c,'')+'|^'+this.weekdaysShort(c,'')+'|^'+this.weekdaysMin(c,''),this._weekdaysParse[b]=new RegExp(d.replace('.',''),'i')),this._weekdaysParse[b].test(a))return b},_longDateFormat:{LTS:'h:mm:ss A',LT:'h:mm A',L:'MM/DD/YYYY',LL:'MMMM D, YYYY',LLL:'MMMM D, YYYY LT',LLLL:'dddd, MMMM D, YYYY LT'},longDateFormat:function(a){var b=this._longDateFormat[a];return!b&&this._longDateFormat[a.toUpperCase()]&&(b=this._longDateFormat[a.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a]=b),b},isPM:function(a){return'p'===(a+'').toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(a,b,c){return a>11?c?'pm':'PM':c?'am':'AM'},_calendar:{sameDay:'[Today at] LT',nextDay:'[Tomorrow at] LT',nextWeek:'dddd [at] LT',lastDay:'[Yesterday at] LT',lastWeek:'[Last] dddd [at] LT',sameElse:'L'},calendar:function(a,b,c){var d=this._calendar[a];return'function'==typeof d?d.apply(b,[c]):d},_relativeTime:{future:'in %s',past:'%s ago',s:'a few seconds',m:'a minute',mm:'%d minutes',h:'an hour',hh:'%d hours',d:'a day',dd:'%d days',M:'a month',MM:'%d months',y:'a year',yy:'%d years'},relativeTime:function(a,b,c,d){var e=this._relativeTime[c];return'function'==typeof e?e(a,b,c,d):e.replace(/%d/i,a)},pastFuture:function(a,b){var c=this._relativeTime[a>0?'future':'past'];return'function'==typeof c?c(b):c.replace(/%s/i,b)},ordinal:function(a){return this._ordinal.replace('%d',a)},_ordinal:'%d',_ordinalParse:/\d{1,2}/,preparse:function(a){return a},postformat:function(a){return a},week:function(a){return ha(a,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:'Invalid date',invalidDate:function(){return this._invalidDate}}),ta=function(b,c,e,f){var g;return'boolean'==typeof e&&(f=e,e=a),g={},g._isAMomentObject=!0,g._i=b,g._f=c,g._l=e,g._strict=f,g._isUTC=!1,g._pf=d(),ja(g)},ta.suppressDeprecationWarnings=!1,ta.createFromInputFallback=f("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(a){a._d=new Date(a._i+(a._useUTC?' UTC':''))}),ta.min=function(){var a=[].slice.call(arguments,0);return ka('isBefore',a)},ta.max=function(){var a=[].slice.call(arguments,0);return ka('isAfter',a)},ta.utc=function(b,c,e,f){var g;return'boolean'==typeof e&&(f=e,e=a),g={},g._isAMomentObject=!0,g._useUTC=!0,g._isUTC=!0,g._l=e,g._i=b,g._f=c,g._strict=f,g._pf=d(),ja(g).utc()},ta.unix=function(a){return ta(1e3*a)},ta.duration=function(a,b){var d=a,e=null,f,g,h,i;return ta.isDuration(a)?d={ms:a._milliseconds,d:a._days,M:a._months}:'number'==typeof a?(d={},b?d[b]=a:d.milliseconds=a):(e=La.exec(a))?(f='-'===e[1]?-1:1,d={y:0,d:A(e[Ca])*f,h:A(e[Da])*f,m:A(e[Ea])*f,s:A(e[Fa])*f,ms:A(e[Ga])*f}):(e=Ma.exec(a))?(f='-'===e[1]?-1:1,h=function(a){var b=a&&parseFloat(a.replace(',','.'));return(isNaN(b)?0:b)*f},d={y:h(e[2]),M:h(e[3]),d:h(e[4]),h:h(e[5]),m:h(e[6]),s:h(e[7]),w:h(e[8])}):'object'==typeof d&&('from'in d||'to'in d)&&(i=r(ta(d.from),ta(d.to)),d={},d.ms=i.milliseconds,d.M=i.months),g=new l(d),ta.isDuration(a)&&c(a,'_locale')&&(g._locale=a._locale),g},ta.version=ua,ta.defaultFormat=eb,ta.ISO_8601=function(){},ta.momentProperties=Ia,ta.updateOffset=function(){},ta.relativeTimeThreshold=function(b,c){return nb[b]===a?!1:c===a?nb[b]:(nb[b]=c,!0)},ta.lang=f('moment.lang is deprecated. Use moment.locale instead.',function(a,b){return ta.locale(a,b)}),ta.locale=function(a,b){var c;return a&&(c='undefined'!=typeof b?ta.defineLocale(a,b):ta.localeData(a),c&&(ta.duration._locale=ta._locale=c)),ta._locale._abbr},ta.defineLocale=function(a,b){return null!==b?(b.abbr=a,Ha[a]||(Ha[a]=new j),Ha[a].set(b),ta.locale(a),Ha[a]):(delete Ha[a],null)},ta.langData=f('moment.langData is deprecated. Use moment.localeData instead.',function(a){return ta.localeData(a)}),ta.localeData=function(a){var b;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return ta._locale;if(!u(a)){if(b=J(a),b)return b;a=[a]}return I(a)},ta.isMoment=function(a){return a instanceof k||null!=a&&c(a,'_isAMomentObject')},ta.isDuration=function(a){return a instanceof l};for(za=sb.length-1;za>=0;--za)z(sb[za]);ta.normalizeUnits=function(a){return x(a)},ta.invalid=function(a){var b=ta.utc(NaN);return null!=a?m(b._pf,a):b._pf.userInvalidated=!0,b},ta.parseZone=function(){return ta.apply(null,arguments).parseZone()},ta.parseTwoDigitYear=function(a){return A(a)+(A(a)>68?1900:2e3)},m(ta.fn=k.prototype,{clone:function(){return ta(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ')},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var a=ta(this).utc();return 0<a.year()&&a.year()<=9999?'function'==typeof Date.prototype.toISOString?this.toDate().toISOString():N(a,'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]'):N(a,'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]')},toArray:function(){var a=this;return[a.year(),a.month(),a.date(),a.hours(),a.minutes(),a.seconds(),a.milliseconds()]},isValid:function(){return G(this)},isDSTShifted:function(){return this._a?this.isValid()&&w(this._a,(this._isUTC?ta.utc(this._a):ta(this._a)).toArray())>0:!1},parsingFlags:function(){return m({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(a){return this.zone(0,a)},local:function(a){return this._isUTC&&(this.zone(0,a),this._isUTC=!1,a&&this.add(this._dateTzOffset(),'m')),this},format:function(a){var b=N(this,a||ta.defaultFormat);return this.localeData().postformat(b)},add:s(1,'add'),subtract:s(-1,'subtract'),diff:function(a,b,c){var d=K(a,this),e=6e4*(this.zone()-d.zone()),f,g,h;return b=x(b),'year'===b||'month'===b?(f=432e5*(this.daysInMonth()+d.daysInMonth()),g=12*(this.year()-d.year())+(this.month()-d.month()),h=this-ta(this).startOf('month')-(d-ta(d).startOf('month')),h-=6e4*(this.zone()-ta(this).startOf('month').zone()-(d.zone()-ta(d).startOf('month').zone())),g+=h/f,'year'===b&&(g/=12)):(f=this-d,g='second'===b?f/1e3:'minute'===b?f/6e4:'hour'===b?f/36e5:'day'===b?(f-e)/864e5:'week'===b?(f-e)/6048e5:f),c?g:o(g)},from:function(a,b){return ta.duration({to:this,from:a}).locale(this.locale()).humanize(!b)},fromNow:function(a){return this.from(ta(),a)},calendar:function(a){var b=a||ta(),c=K(b,this).startOf('day'),d=this.diff(c,'days',!0),e=-6>d?'sameElse':-1>d?'lastWeek':0>d?'lastDay':1>d?'sameDay':2>d?'nextDay':7>d?'nextWeek':'sameElse';return this.format(this.localeData().calendar(e,this,ta(b)))},isLeapYear:function(){return E(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(a){var b=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=a?(a=ea(a,this.localeData()),this.add(a-b,'d')):b},month:oa('Month',!0),startOf:function(a){switch(a=x(a),a){case'year':this.month(0);case'quarter':case'month':this.date(1);case'week':case'isoWeek':case'day':this.hours(0);case'hour':this.minutes(0);case'minute':this.seconds(0);case'second':this.milliseconds(0)}return'week'===a?this.weekday(0):'isoWeek'===a&&this.isoWeekday(1),'quarter'===a&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(b){return b=x(b),b===a||'millisecond'===b?this:this.startOf(b).add(1,'isoWeek'===b?'week':b).subtract(1,'ms')},isAfter:function(a,b){var c;return b=x('undefined'!=typeof b?b:'millisecond'),'millisecond'===b?(a=ta.isMoment(a)?a:ta(a),+this>+a):(c=ta.isMoment(a)?+a:+ta(a),c<+this.clone().startOf(b))},isBefore:function(a,b){var c;return b=x('undefined'!=typeof b?b:'millisecond'),'millisecond'===b?(a=ta.isMoment(a)?a:ta(a),+a>+this):(c=ta.isMoment(a)?+a:+ta(a),+this.clone().endOf(b)<c)},isSame:function(a,b){var c;return b=x(b||'millisecond'),'millisecond'===b?(a=ta.isMoment(a)?a:ta(a),+this===+a):(c=+ta(a),+this.clone().startOf(b)<=c&&c<=+this.clone().endOf(b))},min:f('moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548',function(a){return a=ta.apply(null,arguments),this>a?this:a}),max:f('moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548',function(a){return a=ta.apply(null,arguments),a>this?this:a}),zone:function(a,b){var c=this._offset||0,d;return null==a?this._isUTC?c:this._dateTzOffset():('string'==typeof a&&(a=Q(a)),Math.abs(a)<16&&(a=60*a),!this._isUTC&&b&&(d=this._dateTzOffset()),this._offset=a,this._isUTC=!0,null!=d&&this.subtract(d,'m'),c!==a&&(!b||this._changeInProgress?t(this,ta.duration(c-a,'m'),1,!1):this._changeInProgress||(this._changeInProgress=!0,ta.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?'UTC':''},zoneName:function(){return this._isUTC?'Coordinated Universal Time':''},parseZone:function(){return this._tzm?this.zone(this._tzm):'string'==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(a){return a=a?ta(a).zone():0,(this.zone()-a)%60===0},daysInMonth:function(){return B(this.year(),this.month())},dayOfYear:function(a){var b=xa((ta(this).startOf('day')-ta(this).startOf('year'))/864e5)+1;return null==a?b:this.add(a-b,'d')},quarter:function(a){return null==a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()%3)},weekYear:function(a){var b=ha(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==a?b:this.add(a-b,'y')},isoWeekYear:function(a){var b=ha(this,1,4).year;return null==a?b:this.add(a-b,'y')},week:function(a){var b=this.localeData().week(this);return null==a?b:this.add(7*(a-b),'d')},isoWeek:function(a){var b=ha(this,1,4).week;return null==a?b:this.add(7*(a-b),'d')},weekday:function(a){var b=(this.day()+7-this.localeData()._week.dow)%7;return null==a?b:this.add(a-b,'d')},isoWeekday:function(a){return null==a?this.day()||7:this.day(this.day()%7?a:a-7)},isoWeeksInYear:function(){return C(this.year(),1,4)},weeksInYear:function(){var a=this.localeData()._week;return C(this.year(),a.dow,a.doy)},get:function(a){return a=x(a),this[a]()},set:function(a,b){return a=x(a),'function'==typeof this[a]&&this[a](b),this},locale:function(b){var c;return b===a?this._locale._abbr:(c=ta.localeData(b),null!=c&&(this._locale=c),this)},lang:f('moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',function(b){return b===a?this.localeData():this.locale(b)}),localeData:function(){return this._locale},_dateTzOffset:function(){return 15*Math.round(this._d.getTimezoneOffset()/15)}}),ta.fn.millisecond=ta.fn.milliseconds=oa('Milliseconds',!1),ta.fn.second=ta.fn.seconds=oa('Seconds',!1),ta.fn.minute=ta.fn.minutes=oa('Minutes',!1),ta.fn.hour=ta.fn.hours=oa('Hours',!0),ta.fn.date=oa('Date',!0),ta.fn.dates=f('dates accessor is deprecated. Use date instead.',oa('Date',!0)),ta.fn.year=oa('FullYear',!0),ta.fn.years=f('years accessor is deprecated. Use year instead.',oa('FullYear',!0)),ta.fn.days=ta.fn.day,ta.fn.months=ta.fn.month,ta.fn.weeks=ta.fn.week,ta.fn.isoWeeks=ta.fn.isoWeek,ta.fn.quarters=ta.fn.quarter,ta.fn.toJSON=ta.fn.toISOString,m(ta.duration.fn=l.prototype,{_bubble:function(){var a=this._milliseconds,b=this._days,c=this._months,d=this._data,e,f,g,h=0;d.milliseconds=a%1e3,e=o(a/1e3),d.seconds=e%60,f=o(e/60),d.minutes=f%60,g=o(f/60),d.hours=g%24,b+=o(g/24),h=o(pa(b)),b-=o(qa(h)),c+=o(b/30),b%=30,h+=o(c/12),c%=12,d.days=b,d.months=c,d.years=h},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return o(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*A(this._months/12)},humanize:function(a){var b=ga(this,!a,this.localeData());return a&&(b=this.localeData().pastFuture(+this,b)),this.localeData().postformat(b)},add:function(a,b){var c=ta.duration(a,b);return this._milliseconds+=c._milliseconds,this._days+=c._days,this._months+=c._months,this._bubble(),this},subtract:function(a,b){var c=ta.duration(a,b);return this._milliseconds-=c._milliseconds,this._days-=c._days,this._months-=c._months,this._bubble(),this},get:function(a){return a=x(a),this[a.toLowerCase()+'s']()},as:function(a){var b,c;if(a=x(a),'month'===a||'year'===a)return b=this._days+this._milliseconds/864e5,c=this._months+12*pa(b),'month'===a?c:c/12;switch(b=this._days+Math.round(qa(this._months/12)),a){case'week':return b/7+this._milliseconds/6048e5;case'day':return b+this._milliseconds/864e5;case'hour':return 24*b+this._milliseconds/36e5;case'minute':return 24*b*60+this._milliseconds/6e4;case'second':return 24*b*60*60+this._milliseconds/1e3;case'millisecond':return Math.floor(24*b*60*60*1e3)+this._milliseconds;default:throw new Error('Unknown unit '+a)}},lang:ta.fn.lang,locale:ta.fn.locale,toIsoString:f("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var a=Math.abs(this.years()),b=Math.abs(this.months()),c=Math.abs(this.days()),d=Math.abs(this.hours()),e=Math.abs(this.minutes()),f=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?'-':'')+'P'+(a?a+'Y':'')+(b?b+'M':'')+(c?c+'D':'')+(d||e||f?'T':'')+(d?d+'H':'')+(e?e+'M':'')+(f?f+'S':''):'P0D'},localeData:function(){return this._locale}}),ta.duration.fn.toString=ta.duration.fn.toISOString;for(za in jb)c(jb,za)&&ra(za.toLowerCase());ta.duration.fn.asMilliseconds=function(){return this.as('ms')},ta.duration.fn.asSeconds=function(){return this.as('s')},ta.duration.fn.asMinutes=function(){return this.as('m')},ta.duration.fn.asHours=function(){return this.as('h')},ta.duration.fn.asDays=function(){return this.as('d')},ta.duration.fn.asWeeks=function(){return this.as('weeks')},ta.duration.fn.asMonths=function(){return this.as('M')},ta.duration.fn.asYears=function(){return this.as('y')},ta.locale('en',{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var b=a%10,c=1===A(a%100/10)?'th':1===b?'st':2===b?'nd':3===b?'rd':'th';return a+c}}),Ja?module.exports=ta:'function'==typeof define&&define.amd?(define('moment',['require','exports','module'],function(a,b,c){return c.config&&c.config()&&c.config().noGlobal===!0&&(va.moment=wa),ta}),sa(!0)):sa()}.call(this),define('jive/bundles/soy/soy_dependencies',['jquery','jive/i18n','jive/model/date','jive/namespace','goog/soyutils','moment'],function(a,b){return b}),define('soy!jive.overlay.lightbox',['soyDeps'],function(a){return jive.namespace.call(this,'jive.overlay'),jive.overlay.lightbox=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="lb-overlay"></div><div class="lb-container lb-modal"><div class="lb"><div class="lb-close-container"><a class="lb-close" data-action="close" href="#"><span></span> ',soy.$$escapeHtml(a._i18n('1ce366',[])),'</a></div><div class="lb-content j-active clearfix"></div></div></div>'),c?'':d.toString()},jive.overlay.lightbox}),define('jquery-mobile/jquery.mobile.vmouse',["jquery"],function(jQuery){!function(a,b,c,d){function e(a){for(;a&&"undefined"!=typeof a.originalEvent;)a=a.originalEvent;return a}function f(b,c){var f=b.type,g,h,i,j,k,l,m,n,o;if(b=a.Event(b),b.type=c,g=b.originalEvent,h=a.event.props,f.search(/^(mouse|click)/)>-1&&(h=C),g)for(m=h.length,j;m;)j=h[--m],b[j]=g[j];if(f.search(/mouse(down|up)|click/)>-1&&!b.which&&(b.which=1),-1!==f.search(/^touch/)&&(i=e(g),f=i.touches,k=i.changedTouches,l=f&&f.length?f[0]:k&&k.length?k[0]:d,l))for(n=0,o=A.length;o>n;n++)j=A[n],b[j]=l[j];return b}function g(b){for(var c={},d,e;b;){d=a.data(b,x);for(e in d)d[e]&&(c[e]=c.hasVirtualBinding=!0);b=b.parentNode}return c}function h(b,c){for(var d;b;){if(d=a.data(b,x),d&&(!c||d[c]))return b;b=b.parentNode}return null}function i(){K=!1}function j(){K=!0}function k(){O=0,I.length=0,J=!1,j()}function l(){i()}function m(){n(),E=setTimeout(function(){E=0,k()},a.vmouse.resetTimerDuration)}function n(){E&&(clearTimeout(E),E=0)}function o(b,c,d){var e;return(d&&d[b]||!d&&h(c.target,b))&&(e=f(c,b),a(c.target).trigger(e)),e}function p(b){var c=a.data(b.target,y),d;J||O&&O===c||(d=o("v"+b.type,b),d&&(d.isDefaultPrevented()&&b.preventDefault(),d.isPropagationStopped()&&b.stopPropagation(),d.isImmediatePropagationStopped()&&b.stopImmediatePropagation()))}function q(b){var c=e(b).touches,d,f,h;c&&1===c.length&&(d=b.target,f=g(d),f.hasVirtualBinding&&(O=N++,a.data(d,y,O),n(),l(),H=!1,h=e(b).touches[0],F=h.pageX,G=h.pageY,o("vmouseover",b,f),o("vmousedown",b,f)))}function r(a){K||(H||o("vmousecancel",a,g(a.target)),H=!0,m())}function s(b){if(!K){var c=e(b).touches[0],d=H,f=a.vmouse.moveDistanceThreshold,h=g(b.target);H=H||Math.abs(c.pageX-F)>f||Math.abs(c.pageY-G)>f,H&&!d&&o("vmousecancel",b,h),o("vmousemove",b,h),m()}}function t(a){if(!K){j();var b=g(a.target),c,d;o("vmouseup",a,b),H||(c=o("vclick",a,b),c&&c.isDefaultPrevented()&&(d=e(a).changedTouches[0],I.push({touchID:O,x:d.clientX,y:d.clientY}),J=!0)),o("vmouseout",a,b),H=!1,m()}}function u(b){var c=a.data(b,x),d;if(c)for(d in c)if(c[d])return!0;return!1}function v(){}function w(b){var c=b.substr(1);return{setup:function(){u(this)||a.data(this,x,{});var d=a.data(this,x);d[b]=!0,D[b]=(D[b]||0)+1,1===D[b]&&M.bind(c,p),a(this).bind(c,v),L&&(D.touchstart=(D.touchstart||0)+1,1===D.touchstart&&M.bind("touchstart",q).bind("touchend",t).bind("touchmove",s).bind("scroll",r))},teardown:function(){--D[b],D[b]||M.unbind(c,p),L&&(--D.touchstart,D.touchstart||M.unbind("touchstart",q).unbind("touchmove",s).unbind("touchend",t).unbind("scroll",r));var d=a(this),e=a.data(this,x);e&&(e[b]=!1),d.unbind(c,v),u(this)||d.removeData(x)}}}var x="virtualMouseBindings",y="virtualTouchID",z="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),A="clientX clientY pageX pageY screenX screenY".split(" "),B=a.event.mouseHooks?a.event.mouseHooks.props:[],C=a.event.props.concat(B),D={},E=0,F=0,G=0,H=!1,I=[],J=!1,K=!1,L="addEventListener"in c,M=a(c),N=1,O=0,P,Q;for(a.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500},Q=0;Q<z.length;Q++)a.event.special[z[Q]]=w(z[Q]);L&&c.addEventListener("click",function(b){var c=I.length,d=b.target,e,f,g,h,i,j;if(c)for(e=b.clientX,f=b.clientY,P=a.vmouse.clickDistanceThreshold,g=d;g;){for(h=0;c>h;h++)if(i=I[h],j=0,g===d&&Math.abs(i.x-e)<P&&Math.abs(i.y-f)<P||a.data(g,y)===i.touchID)return b.preventDefault(),b.stopPropagation(),void 0;g=g.parentNode}},!0)}(jQuery,window,document)}),function(a,b,c){'$:nomunge';function d(){g=b[h](function(){e.each(function(){var b=a(this),c=b.width(),d=b.height(),e=a.data(this,j);c===e.w&&d===e.h||b.trigger(i,[e.w=c,e.h=d])}),d()},f[k])}var e=a([]),f=a.resize=a.extend(a.resize,{}),g,h='setTimeout',i='resize',j=i+'-special-event',k='delay',l='throttleWindow';f[k]=250,f[l]=!0,a.event.special[i]={setup:function(){if(!f[l]&&this[h])return!1;var b=a(this);e=e.add(b),a.data(this,j,{w:b.width(),h:b.height()}),1===e.length&&d()},teardown:function(){if(!f[l]&&this[h])return!1;var b=a(this);e=e.not(b),b.removeData(j),e.length||clearTimeout(g)},add:function(b){function d(b,d,f){var g=a(this),h=a.data(this,j);h.w=d!==c?d:g.width(),h.h=f!==c?f:g.height(),e.apply(this,arguments)}if(!f[l]&&this[h])return!1;var e;return a.isFunction(b)?(e=b,d):(e=b.handler,b.handler=d,void 0)}}}(jQuery,this),define("vendor/jquery/plugins/jquery.ba-resize",["jquery"],function(){}),define('jquery-plugin/jquery.lightbox_me',['jquery','jive/accessibility','soy!jive.overlay.lightbox','jquery-mobile/jquery.mobile.vmouse','vendor/jquery/plugins/jquery.ba-resize'],function(a){function b(b){function c(b,c){this.element=a(b).eq(0),this.options=a.extend({},d,c)}var d=a.extend({},a.fn.lightbox_me.defaults,b);return c.prototype.open=function(){return a(jive.overlay.lightbox()).find('.lb-content').append(this.element).end().appendTo('body'),a('body').addClass('lb-active lb-modal'),this._checkSize()&&a(window).scrollTop()>0&&a(window).scrollTop(0),this},c.prototype.close=function(){return a('body').removeClass('lb-active lb-modal lb-scrollable').children('.lb-container').remove(),a(window).add('body').off('.lightbox'),this},c.prototype._checkSize=function(){var b=a(window).height()<=(a('body > .lb-container .lb').height()||0);return a('body').toggleClass('lb-scrollable',b),b},a.fn.lightbox_me._Constructor=c,this.each(function(){var d=new c(this,b);a(window).off('.lightbox').on('resize.lightbox',d._checkSize.bind(d)),a('body').off('.lightbox').on('click.lightbox','[data-action="close"]',function(a){a.preventDefault(),d.close()}).on('keydown.lightbox',function(a){27===a.which&&(a.preventDefault(),d.close())}),a(this).data('modal',d)})}return a.fn.lightbox_me=function(c){'undefined'!=typeof c&&"modalCSS"in c&&"top"in c.modalCSS&&'string'==typeof c.modalCSS.top&&(c.modalCSS.top=parseInt(c.modalCSS.top));var d=a.extend({},a.fn.lightbox_me.defaults,c);return'modal'===d.type||'dialog'===d.type?this.each(b.bind(this,c)):this.each(function(){function b(b,h){h=h||{};var i=m[0].style,p=d.preClose||a.noop;if(p()!==!1){if(n.removeClass("j-state-disabled"),m.stop(!0,!0),d.destroyOnClose?m.add(l).remove():m.add(l).hide(),d.parentLightbox&&d.parentLightbox.fadeIn(200),o.remove(),k.css('overflow','auto'),m.undelegate(d.closeSelector,"click"),j.unbind('resize',e),j.unbind('resize',f),j.unbind('scroll',g),a(document).unbind('keydown',c),r.teardown(),d.closeFocusSelector)jive.Accessibility.filterFocusable(a(d.closeFocusSelector)).focus();else{var q=jive.Accessibility.popFocus();q&&jive.Accessibility.filterFocusable(q).focus()}jive.Accessibility.unmodalize(),d.onClose(b,h)}}function c(a){(27==a.keyCode||27==a.DOM_VK_ESCAPE&&0==a.which)&&m.is(':visible')&&d.closeEsc&&(b(),a.preventDefault()),(13==a.keyCode||13==a.DOM_VK_ESCAPE&&0==a.which)&&d.onDefault(a)}function e(){j.height()<a(document).height()?(l.css({height:a(document).height()+'px'}),o.css({height:a(document).height()+'px'})):l.css({height:'100%'})}function f(){if(m.css({left:'50%',marginLeft:-1*Math.floor(m.outerWidth()/2),zIndex:d.zIndex+3}),m.height()+d.modalCSS.top>=j.height()){var b=a(document).scrollTop()+d.modalCSS.top;d.setExplicitHeightOnResize?m.css(a.extend({},d.modalCSS,{position:'absolute',top:b+'px',marginTop:0,height:m.height()})):m.css(a.extend({},d.modalCSS,{position:'absolute',top:b+'px',marginTop:0,height:'auto'}))}else if(d.centered){var c=m.outerHeight()/2,b=d.modalCSS.top>0?c+d.modalCSS.top+"px":"50%";m.css(a.extend({},d.modalCSS,{position:'fixed',top:b,marginTop:-c}))}else'absolute'!==m.css('position')&&m.css({position:'fixed'}),m.css(d.modalCSS)}function g(){var b='fixed'===m.css('position'),c=m.height()+d.modalCSS.top>=j.height();if(b&&c){var e=a(document).scrollTop()+d.modalCSS.top;m.css({position:'absolute',top:e+'px',marginTop:0})}else b||c||f()}function h(){var a=m.find(":focusable").not(d.closeSelector);return a.length>0?a:m.find(":focusable")}function i(){d.initialFocusSelector?m.find(d.initialFocusSelector).first().focus():h().first().focus()}var j=a(window),k=a('body'),l=a(),m=a(this),n=a(),o=a('<iframe id="foo" style="z-index: '+(d.zIndex+1)+';border: none; margin: 0; padding: 0; position: absolute; width: 100%; height: 100%; top: 0; left: 0; filter: mask();"/>');if(d.showOverlay){var p=a(".js_lb_overlay:visible");l=a(p.length>0?'<div class="lb_overlay_clear js_lb_overlay"/>':'<div class="'+d.classPrefix+'_overlay js_lb_overlay"/>')}k.hasClass('j-responsive-sm')&&(j.scrollTop(0),n=a("#j-globalNav-bg a").addClass("j-state-disabled")),d.closeBtn||m.find('.close').hide(),k.append(m.hide()).append(l),d.hijackScrolling&&k.css('overflow','hidden'),d.showOverlay&&(e(),l.css({position:'absolute',width:'100%',top:0,left:0,right:0,bottom:0,zIndex:d.zIndex+2,display:'none'}),l.hasClass('lb_overlay_clear')||l.css(d.overlayCSS)),d.showOverlay?l.fadeIn(d.overlaySpeed,function(){f(),m[d.appearEffect](d.lightboxSpeed,function(){e(),f(),d.focusPopover&&jive.conc.nextTick(i),d.onLoad()}),m.find('header:first').css({'margin-right':m.find('.j-modal-close-top').outerWidth()+'px'})}):(f(),m[d.appearEffect](d.lightboxSpeed,function(){d.focusPopover&&jive.conc.nextTick(i),d.onLoad()}),m.find('header:first').css({'margin-right':m.find('.j-modal-close-top').outerWidth()+'px'})),d.parentLightbox&&d.parentLightbox.fadeOut(200),j.resize(e).resize(f).scroll(g),a(document).keydown(c),d.closeClick&&l.on("vclick",function(a){b(),a.preventDefault}),m.on("vclick",d.closeSelector,function(){return b(),!1}),m.on('close',b),m.on('resize',f);var q=jive.Accessibility.DEFAULT_FOCUSABLE_SELECTOR;a.trim(d.additionalFocusSelectors).length&&(q+=","+d.additionalFocusSelectors);var r=new jive.Accessibility({hoverSelection:d.hoverSelection,scope:m,otherActions:[jive.Accessibility.focusRingAction(m),jive.Accessibility.menuSelectAction({container:m,moveFocus:!0,selectedClass:!1,focusableSelector:q})]});jive.Accessibility.modalize(m)})},a.fn.lightbox_me.defaults={appearEffect:"fadeIn",appearEase:"",overlaySpeed:250,lightboxSpeed:300,closeSelector:".close",closeBtn:!0,closeClick:!0,closeEsc:!0,closeFocusSelector:'',destroyOnClose:!1,showOverlay:!0,parentLightbox:!1,hijackScrolling:!1,focusPopover:!0,initialFocusSelector:'',additionalFocusSelectors:'',hoverSelection:!1,setExplicitHeightOnResize:!1,onLoad:a.noop,preClose:a.noop,onClose:a.noop,onDefault:a.noop,classPrefix:'lb',zIndex:999,centered:!1,modalCSS:{top:110},overlayCSS:{background:'black',opacity:.65},type:'legacy'},a.fn.lightbox_me.defaults.closeSelector=".close, .jive-modal-close, .j-modal-close-top",a}),define('apps/shared/views/spinner_view',['jquery','jiverscripts/oo/class'],function(a,b){function c(b){return b.getContent?b.getContent():a('body')}var d=b.extend(function(b){this.showSpinner=function(a){var b=arguments,c=this;this.getSpinnerTimeout(a)||this.setSpinnerTimeout(a,setTimeout(function(){
c.createSpinner.apply(c,b)},100))},this.hideSpinner=function(a){var b=this.getSpinnerTimeout(a);b&&(clearTimeout(b),this.removeSpinnerTimeout(a)),this.destroySpinner.apply(this,arguments)},b.createSpinner=function(b){var d=c(this),e=this,f=a.Deferred();this.spinner=f.promise(),require(['apps/shared/views/loader_view'],function(a){var c=new a(b);b&&b.context?c.appendTo(b.context):c.appendTo(d.filter(':last')),f.resolve(c)})},b.destroySpinner=function(){this.spinner&&a.isFunction(this.spinner.done)&&this.spinner.done(function(a){a.getContent().fadeOut(200,function(){a.getContent().remove(),a.destroy()})}),delete this.spinner},b.getSpinnerTimeout=function(a){return a&&a.data?a.data('loadingSpinnerTimeout'):this.loadingSpinnerTimeout},b.setSpinnerTimeout=function(a,b){a&&a.data?a.data('loadingSpinnerTimeout',b):this.loadingSpinnerTimeout=b},b.removeSpinnerTimeout=function(a){a&&a.data?a.removeData('loadingSpinnerTimeout'):delete this.loadingSpinnerTimeout}});return d}),define('url',['jquery','underscore','application/config'],function(a,b,c){'use strict';function d(b,c){if(b&&'string'!=typeof b)throw new TypeError("Expected String, got object");var d=a.isPlainObject(c)&&!a.isEmptyObject(c)?'?'+a.param(c):'';return(b||'').replace(/^\/?/,'')+d}function e(a){return a&&a.replace(/\/?$/,'/')}var f={absoluteBaseUrl:function(a,b){return c.absoluteBaseUrl+d(a,b)},appsUrl:function(a,b,c){return b=b||'v1',f.v2Url()+['apps',b,d(a,c)].join('/')},adminUrl:function(a,b){return f.baseUrl('admin/'+d(a,b))},baseUrl:function(a,b){return e(c.baseUrl)+d(a,b)},resourceUrl:function(a,b){return c.resourceUrl+d(a,b)},cssUrl:function(a,b){return a&&document.querySelector('[dir="rtl"]')&&(a=a.replace('.css','.rtl.css')),c.cssUrl+d(a,b)},secureUrl:function(a,b){return'https'+f.absoluteBaseUrl(a,b).replace(/^[^:]+/,'')},themeUrl:function(a,b){return c.themeUrl+d(a,b)},v2Url:function(a,b){return f.baseUrl('__services/v2/rest/')+d(a,b)},v3Url:function(a,b){return f.baseUrl('api/core/v3/')+d(a,b)}};return f}),define('jquery-plugin/jquery.serializeObject',['jquery','underscore'],function(a,b){function c(b){var c=a('<i/>').attr('data-value',b).data('value'),d='number'==typeof c&&(c+'').indexOf('.')>-1;return d?parseFloat(c):c}function d(b){var d=c(b),e=a.isArray(d)||a.isPlainObject(d);return e?b:d}return a.fn.serializeObject=function(e){e=a.extend({preventObjects:!0},e);var f=e.preventObjects?d:c,g={},h=this.find(':input').addBack(':input'),i=h.filter(':radio'),j=h.filter(':checkbox, select[multiple]'),k=h.filter(':file'),l=h.filter('button, [type="submit"]'),m=h.not(i).not(j).not(l).not(k);m.toArray().reduce(function(b,c){var d=a(c),e=d.attr('name');return b[e]=f(d.val()),b},g),i.filter('[name]:checked').each(function(){g[a(this).attr('name')]=a(this).val()});var n=b.groupBy(j.serializeArray(),'name');return a.each(n,function(a,c){g[a]=b.pluck(c,'value').map(f)}),g},a.fn.serializeObject}),define('jive/util',['jquery','underscore','jiverscripts/conc/promise','url','jquery-plugin/jquery.serializeObject','jive/namespace'],function(a,b,c,d){function e(b,c){var d=a.isArray(c),f=d&&[]||{};return d?(b=b||[],f=f.concat(b),c.forEach(function(a,c){'undefined'==typeof f[c]?f[c]=a:'object'==typeof a?f[c]=e(b[c],a):-1===b.indexOf(a)&&f.push(a)})):(b&&'object'==typeof b&&Object.keys(b).forEach(function(a){f[a]=b[a]}),Object.keys(c).forEach(function(a){'object'==typeof c[a]&&c[a]&&b[a]?f[a]=e(b[a],c[a]):f[a]=c[a]})),f}function f(c){function d(b){var c=a('<i/>').attr('data-value',b).data('value'),d='number'==typeof c&&c%1!=0;return d?parseFloat(c):c}function e(a){return'number'==typeof d(a)&&parseInt(a,10)>-1}function f(c,d,g){var h=d[1];return a.isArray(c[d[0]])?d.length>2&&!e(c[d[2]])?c[d[0]][h]=f(c[d[0]][h],d.slice(2),g):c[d[0]][h]=g:b.has(c,d[0])?f(c[d[0]],d.slice(1),g):d.length>1?(c[d[0]]=e(h)?[]:{},f(c[d[0]],d.slice(1),g)):c[d[0]]=g,c}var g={};return a.each(c.serializeObject(),function(a,b){f(g,a.split('.'),b)}),g}function g(a){return'object'==typeof a&&'nodeType'in a&&1===a.nodeType&&a.cloneNode}function h(){var a=new c;return a.emitSuccess.apply(a,arguments),a}return jive.namespace('util'),jive.util={deepMerge:e,toDeepObject:f,escapeHTML:function(b){return b instanceof a||g(b)?a('<div/>').html(b).html():a('<div/>').text(String(b)).html()},unescapeHTML:function(b){return a('<div/>').html(String(b)).text()},convertElementsToValues:function(b){var c=[];return a.each(a(b),function(){c.push(a(this).val())}),c},createDynamicForm:function(b){var c=a('<form />');'get'!=b.method.toLowerCase()&&c.attr('method',b.method);var d=b.url.split(/[&?]/);return c.attr('action',d[0]),d.shift(),d.forEach(function(b){var d=b.split(/[=]/);c.append(a('<input name="'+d[0]+'" type="hidden"/>').val(decodeURIComponent(d[1])))}),c},createAndSubmitDynamicForm:function(b){jive.util.createDynamicForm(b).appendTo(a(document.body)).submit()},securedPost:function(b){var e=new c;return a.ajax({url:d.v2Url('/legacy_token/'+b),type:'POST',dataType:'json',success:function(a){var c={'jive.token.name':b};c[b]=a[0],e.emitSuccess(c)},error:function(a,b,c){e.emitError(a,b,c)}}),e},securedForm:function(b){var c=a(b),d=c.find('input[name="jive.token.name"]').val(),e=d?jive.util.securedPost(d):h({});return e.map(function(a){return c.find('input[name="'+d+'"]').val(a[d]),c})},truncateStr:function(a,b,c){return b=b||49,c=c||'...',a.length>b?a.substring(0,b)+c:a},lazyLoadJSBySels:function(b,c,d,e){a(document).ready(function(){var f=!1;a(b.join(', ')).one(c,function(b){var c=a(this);f||(require([d],function(){e&&e(),c.trigger(b.type)}),f=!0),'click'!=b.type&&'submit'!=b.type||b.preventDefault()})})},separateScripts:function(){var b=/(<script[^>]*>)([\s\S]*?)<\/script>/gi,c=/\s+src=["']([^'">]+)['"]/i,d=/\s+type=["']([^'">]+)['"]/i,e=/^text\/javascript/i,f=0;return function(f,g){var h=[],i=a.noop,j=f.replace(b,function(b,f,j){var k=(f.match(d)||[])[1],l=(f.match(c)||[])[1],m=i;return!k||k.match(e)?(l&&!g?h.push(l):j&&!g&&(i=function(){m(),a.globalEval(j)}),''):b});return[j,function(b){b||(b=a.noop),i(),b()}]}}(),withoutScripts:function(a){var b=jive.util.separateScripts(a,!0);return b[0]},fitTextWithinNode:function(a,b,c){var d=0,e=a.length,f=e,g=.2*f,h;do f<a.length?b.text(a.slice(0,f)+'…'):b.text(a.slice(0,f)),b.outerHeight()>c.outerHeight()||b.outerWidth()>c.outerWidth()?e=f:d=f,h=f,f=Math.floor((d+e)/2);while(e-g>d||h!=d)},setFavicon:function(b){a('link[rel~=shortcut]').remove(),a('<link rel="shortcut icon" type="image/x-icon" />').attr('href',b).appendTo('head')},equalsIgnoreCaseAndPadding:function(a,b){return a&&b&&a.toLowerCase().trim()==b.toLowerCase().trim()},loadCSS:function(b,c,d){var e;if(a('link[rel="stylesheet"][href="'+b+'"]').length>0);else if(document.createStyleSheet)if(d){for(var f=-1,g=0,h=document.styleSheets.length;h>g;g++)if(document.styleSheets[g].href&&-1!=document.styleSheets[g].href.indexOf(d)){f=g;break}-1!=f?document.createStyleSheet(b,f):document.createStyleSheet(b)}else document.createStyleSheet(b);else if(e=document.createElement('link'),e.href=b,e.rel='stylesheet',e.type='text/css',d){var i=a('link[rel="stylesheet"][href="'+d+'"]');i.length?i.after(e):a('head').append(e)}else a('head').append(e);c&&c()},headerType:function(){var b=a('body');switch(!0){case b.is('.j-header-mode-simple'):return'simple';case b.is('.j-header-mode-basic'):return'basic';case b.is('.j-header-mode-custom'):return'custom'}return console.warn('Unknown header type'),null},headerTypeIs:function(){var a=Array.prototype.slice.call(arguments);return a.indexOf(jive.util.headerType())>-1},getUrlParams:function(a){var c=b.rest((a||window.location.search).split('?')).join('?');return c.split('&').reduce(function(a,c){var d=c.split('=')[0],e=b.rest(c.split('=')).join('=');return a[d]=decodeURIComponent(e),a},{})}},jive.util}),function(a){var b="a:visible, input:visible, select:visible, textarea:visible, button:visible, [tabindex]:visible";a.fn.safeRemove=function(c){var d=this;if(c&&(d=d.filter(c)),d.length){for(var e=d.get(0).ownerDocument.activeElement,f=d.has(e),g=a();f.length&&!g.length;)g=f.nextAll().not(d).has(b).first(),g.length||(g=f.prevAll().not(d).has(b).first()),g.length||(f=f.parent());g.find(b).first().focus(),d.remove()}return this},a.fn.safeReplaceWith=function(c){var d=this,e=d.get(0).ownerDocument.activeElement,f=d.has(e),g=a("function"==typeof c?c():c);if(d.replaceWith(g),f.length){var h=a();for(f=g;f.length&&!h.length;)h=f.find(b).first(),h.length||(f=f.parent());jive.conc.nextTick(function(){h.focus()})}return this}}(jQuery),define("jquery-plugin/jquery.safeRemove",["jquery","jiverscripts/conc/next_tick"],function(){}),define('apps/shared/views/abstract_view',['jquery','./spinner_view','jive/util','jiverscripts/conc/observable','jquery-plugin/jquery.safeRemove'],function(a,b,c,d){return jive.AbstractView=b.extend(function(b){d(this),b.init=function(a){a&&a.selector&&(this.selector=a.selector)},this.getContent=function(){return this.content||a(this.selector)},b.getSoyTemplate='abstract',this.render=function(a){this.getContent().html(this.getSoyTemplate(a)),this.postRender()},this.postRender=function(){},this.find=function(a){return this.getContent().find(a)},this.html=function(a){this.getContent&&this.getContent().html(a)},this.appendTo=function(b){a(b).append(this.getContent())},this.append=function(a){this.getContent().append(a)},this.prependTo=function(b){a(b).prepend(this.getContent())},this.prepend=function(a){this.getContent().prepend(a)},this.replaceWith=function(a){var b=a.getContent?a.getContent():a;this.getContent().safeReplaceWith(b)},this.addClass=function(){var a=this.getContent();a.addClass.apply(a,arguments)},this.removeClass=function(){var a=this.getContent();a.removeClass.apply(a,arguments)},this.show=function(){return this.getContent().show(),this},this.hide=function(){return this.getContent().hide(),this},this.detach=function(){return this.getContent().detach(),this},this.remove=function(){return this.getContent().remove(),this},b.shiv=function(a){return'undefined'!=typeof innerShiv?innerShiv(a):a},b.separateScripts=c.separateScripts}),jive.AbstractView}),define('soy!jive.shared.soy.loading',['soyDeps'],function(a){return jive.namespace.call(this,'jive.shared.soy'),jive.shared.soy.loading=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-loading-container js-loading-container"><div id="j-loading-content" class="j-loading-content" tabindex="-1" aria-live="assertive" aria-atomic="true" role="alertdialog"><span class="font-color-meta j-loading-label">',soy.$$escapeHtml(a._i18n('9cd919',[])),'</span><div class="j-running-loader"></div></div></div>'),c?'':d.toString()},jive.shared.soy.loading}),define('apps/shared/views/loader_view',['jquery','./abstract_view','soy!jive.shared.soy.loading','jive/namespace'],function(a,b,c){return jive.namespace('loader'),jive.loader.LoaderView=b.extend(function(b,d){b.init=function(b){function d(){e.css('background-position',i+' '+(f*-g+'px')),f=(f+1)%h;var a=++l*j>=m;if(a){if(!e.is(':visible'))return;l=0}k.loadingTimer=setTimeout(d,j)}this.content=a(c()).data('jiveViewInstance',this),b=a.extend({showLabel:!0,inline:!1,size:null},b||{});var e=this.content.find('.j-running-loader'),f=0,g=23,h=10,i='0',j=40;this.loadingTimer=setTimeout(d,j),'small'==b.size?(g=17,h=8,i='-176px',e.addClass('j-running-loader-small')):'big'==b.size&&this.content.addClass('cover'),b.showLabel===!1&&this.content.find('span').remove(),b.inline&&this.content.addClass('j-running-loader-inline');var k=this,l=0,m=20*j},this.destroy=function(){return clearTimeout(this.loadingTimer),this},this.remove=function(){return this.destroy(),d.remove.call(this)}}),jive.loader.LoaderView}),define('soy!jive.i18n.keys.globalClose',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.globalClose=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('1ce366',[]))),c?'':d.toString()},jive.i18n.keys.globalClose}),define('jquery-plugin/jquery.lightbox_media',['jquery','apps/shared/views/loader_view','soy!jive.i18n.keys.globalClose'],function(a,b){a.fn.lightbox_media=function(b){return this.each(function(){var c=a.extend({},a.fn.lightbox_media.defaults,b),d=a(this),e,f=/\/JiveServlet\/downloadBody\//;d.get(0).lightboxBound||(d.get(0).lightboxBound=!0,d.on('click',function(b){if(!f.test(this.href)){b.preventDefault(),e=a('<div class="modal-loading j-rc5"></div>');var g=new jive.loader.LoaderView;g.appendTo(e),e.lightbox_me({showOverlay:!0,centered:!0,destroyOnClose:!0});var h=a('<div class="jive-modal" id="lb_image_wrapper"/>');if(h.append(a('<a class="j-icon-close close jive-close" href="#" title="'+jive.i18n.keys.globalClose()+'"><span class="jive-icon-glyph icon-close-thin" role="img"></span></a>')),"image"==c.type){var i=a('<img id="lb_image"/>'),j=d.attr('href');i[0].onload=function(){if(i[0].onload=null,i[0].onerror=null,a.browser.msie?(i.css('width','100%'),i.css('height','100%')):(i.css('max-width','100%'),i.css('max-height','100%')),h.append(i),e.trigger('close'),g.destroy(),a('body').append(h),a('body').append(h.css({position:'absolute',left:'-1000px',visibility:'hidden',display:'block'})),i.outerWidth()+2*parseInt(h.css('padding-left'))>a(window).width()){var b=a(window).width()-4*parseInt(h.css('padding-left'));if(a.browser.msie&&a.browser.version<8){var c=b/i.outerWidth();i.height(i.height()*c)}i.width(b)}h.css({position:'static',left:'auto',display:'none',visibility:'visible'}),h.lightbox_me({closeSelector:'.jive-close',destroyOnClose:!0,centered:!0})},i[0].onerror=function(){i[0].onload=null,i[0].onerror=null,setTimeout(function(){e.trigger('close'),g.destroy()},1e3)},i.attr('src',j)}else if("video"==c.type){var k=d.attr('href'),l=/[&?]v=([^&?]+)/i,m=k.match(l);if(null==m||m.length<2)throw'Error lightboxing video with url '+j;k=k.replace(l,'').replace(/watch[?]?/,'v/'+m[1]+'?');var n='',o='';n+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="480" height="385"><param name="movie" value="'+k+'"></param>',n+='<param name="wmode" value="transparent"></param>',n+='<param name="allowfullscreen" value="true"></param>',o+=' wmode="transparent"',o+=' allowfullscreen="true"',n+='<embed src="'+k+'" type="application/x-shockwave-flash" width="480" height="385"'+o+'></embed></object>',e.trigger('close'),g.destroy(),h.html(n).append(a('<a class="j-icon-close jive-close" href="#" title="'+jive.i18n.keys.globalClose()+'"><span class="jive-icon-glyph icon-close-med" role="img"></span></a>>')),h.lightbox_me({closeSelector:'.jive-close',destroyOnClose:!0,centered:!0}),a('body').append(h)}return!0}}))})},a.fn.lightbox_media.defaults={type:'image'}}),define('jquery-plugin/jquery.localscroll_me',['jquery','domReady!'],function(a){a('a.localScroll').on('click',function(){var b=a(this).attr("href").split('#').last(),c=a("a[name='"+b+"'], [id='"+b+"']");return a.scrollTo(c,200,{offset:{top:-20,left:-200}}),!1}),a('a.localScrollSlow').on('click',function(){var b=a(this).attr("href").split('#').last(),c=a("a[name='"+b+"'], [id='"+b+"']");return a.scrollTo(c,800,{offset:{top:-20,left:-200}}),!1})}),function($){$.extend({metadata:{defaults:{type:'class',name:'metadata',cre:/({.*})/,single:'metadata'},setType:function(a,b){this.defaults.type=a,this.defaults.name=b},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);settings.single.length||(settings.single='metadata');var data=$.data(elem,settings.single);if(data)return data;if(data="{}","class"==settings.type){var m=settings.cre.exec(elem.className);m&&(data=m[1])}else if("elem"==settings.type){if(!elem.getElementsByTagName)return;var e=elem.getElementsByTagName(settings.name);e.length&&(data=$.trim(e[0].innerHTML))}else if(void 0!=elem.getAttribute){var attr=elem.getAttribute(settings.name);attr&&(data=attr)}return data.indexOf('{')<0&&(data="{"+data+"}"),data=eval("("+data+")"),$.data(elem,settings.single,data),data}}}),$.fn.metadata=function(a){return $.metadata.get(this[0],a)}}(jQuery),define("vendor/jquery/plugins/jquery.metadata",["jquery"],function(){});var swfobject=function(){function a(){if(!P){try{var a=E.getElementsByTagName("body")[0].appendChild(q("span"));a.parentNode.removeChild(a)}catch(b){return}P=!0;for(var c=H.length,d=0;c>d;d++)H[d]()}}function b(a){P?a():H[H.length]=a}function c(a){if(typeof D.addEventListener!=w)D.addEventListener("load",a,!1);else if(typeof E.addEventListener!=w)E.addEventListener("load",a,!1);else if(typeof D.attachEvent!=w)r(D,"onload",a);else if("function"==typeof D.onload){var b=D.onload;D.onload=function(){b(),a()}}else D.onload=a}function d(){G?e():f()}function e(){var a=E.getElementsByTagName("body")[0],b=q(x);b.setAttribute("type",A),b.setAttribute("style","display:none;");var c=a.appendChild(b);if(c){var d=0;!function(){if(typeof c.GetVariable!=w){var e=c.GetVariable("$version");e&&(e=e.split(" ")[1].split(","),U.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)])}else if(10>d)return d++,setTimeout(arguments.callee,10),void 0;a.removeChild(b),c=null,f()}()}else f()}function f(){var a=I.length;if(a>0)for(var b=0;a>b;b++){var c=I[b].id,d=I[b].callbackFn,e={success:!1,id:c};if(U.pv[0]>0){var f=p(c);if(f)if(!s(I[b].swfVersion)||U.wk&&U.wk<312)if(I[b].expressInstall&&h()){var k={};k.data=I[b].expressInstall,k.width=f.getAttribute("width")||"0",k.height=f.getAttribute("height")||"0",f.getAttribute("class")&&(k.styleclass=f.getAttribute("class")),f.getAttribute("align")&&(k.align=f.getAttribute("align"));for(var l={},m=f.getElementsByTagName("param"),n=m.length,o=0;n>o;o++)"movie"!=m[o].getAttribute("name").toLowerCase()&&(l[m[o].getAttribute("name")]=m[o].getAttribute("value"));i(k,l,c,d)}else j(f),d&&d(e);else u(c,!0),d&&(e.success=!0,e.ref=g(c),d(e))}else if(u(c,!0),d){var q=g(c);q&&typeof q.SetVariable!=w&&(e.success=!0,e.ref=q),d(e)}}}function g(a){var b=null,c=p(a);if(c&&"OBJECT"==c.nodeName)if(typeof c.SetVariable!=w)b=c;else{var d=c.getElementsByTagName(x)[0];d&&(b=d)}return b}function h(){return!Q&&s("6.0.65")&&(U.win||U.mac)&&!(U.wk&&U.wk<312)}function i(a,b,c,d){Q=!0,N=d||null,O={success:!1,id:c};var e=p(c);if(e){"OBJECT"==e.nodeName?(L=k(e),M=null):(L=e,M=c),a.id=B,(typeof a.width==w||!/%$/.test(a.width)&&parseInt(a.width,10)<310)&&(a.width="310"),(typeof a.height==w||!/%$/.test(a.height)&&parseInt(a.height,10)<137)&&(a.height="137"),E.title=E.title.slice(0,47)+" - Flash Player Installation";var f=U.ie&&U.win?"ActiveX":"PlugIn",g="MMredirectURL="+D.location.toString().replace(/&/g,"%26")+"&MMplayerType="+f+"&MMdoctitle="+E.title;if(typeof b.flashvars!=w?b.flashvars+="&"+g:b.flashvars=g,U.ie&&U.win&&4!=e.readyState){var h=q("div");c+="SWFObjectNew",h.setAttribute("id",c),e.parentNode.insertBefore(h,e),e.style.display="none",function(){4==e.readyState?e.parentNode.removeChild(e):setTimeout(arguments.callee,10)}()}l(a,b,c)}}function j(a){if(U.ie&&U.win&&4!=a.readyState){var b=q("div");a.parentNode.insertBefore(b,a),b.parentNode.replaceChild(k(a),b),a.style.display="none",function(){4==a.readyState?a.parentNode.removeChild(a):setTimeout(arguments.callee,10)}()}else a.parentNode.replaceChild(k(a),a)}function k(a){var b=q("div");if(U.win&&U.ie)b.innerHTML=a.innerHTML;else{var c=a.getElementsByTagName(x)[0];if(c){var d=c.childNodes;if(d)for(var e=d.length,f=0;e>f;f++)1==d[f].nodeType&&"PARAM"==d[f].nodeName||8==d[f].nodeType||b.appendChild(d[f].cloneNode(!0))}}return b}function l(a,b,c){var d,e=p(c);if(U.wk&&U.wk<312)return d;if(e)if(typeof a.id==w&&(a.id=c),U.ie&&U.win){var f="";for(var g in a)a[g]!=Object.prototype[g]&&("data"==g.toLowerCase()?b.movie=a[g]:"styleclass"==g.toLowerCase()?f+=' class="'+a[g]+'"':"classid"!=g.toLowerCase()&&(f+=' '+g+'="'+a[g]+'"'));var h="";for(var i in b)b[i]!=Object.prototype[i]&&(h+='<param name="'+i+'" value="'+b[i]+'" />');e.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+f+'>'+h+'</object>',J[J.length]=a.id,d=p(a.id)}else{var j=q(x);j.setAttribute("type",A);for(var k in a)a[k]!=Object.prototype[k]&&("styleclass"==k.toLowerCase()?j.setAttribute("class",a[k]):"classid"!=k.toLowerCase()&&j.setAttribute(k,a[k]));for(var l in b)b[l]!=Object.prototype[l]&&"movie"!=l.toLowerCase()&&m(j,l,b[l]);e.parentNode.replaceChild(j,e),d=j}return d}function m(a,b,c){var d=q("param");d.setAttribute("name",b),d.setAttribute("value",c),a.appendChild(d)}function n(a){var b=p(a);b&&"OBJECT"==b.nodeName&&(U.ie&&U.win?(b.style.display="none",function(){4==b.readyState?o(a):setTimeout(arguments.callee,10)}()):b.parentNode.removeChild(b))}function o(a){var b=p(a);if(b){for(var c in b)"function"==typeof b[c]&&(b[c]=null);b.parentNode.removeChild(b)}}function p(a){var b=null;try{b=E.getElementById(a)}catch(c){}return b}function q(a){return E.createElement(a)}function r(a,b,c){a.attachEvent(b,c),K[K.length]=[a,b,c]}function s(a){var b=U.pv,c=a.split(".");return c[0]=parseInt(c[0],10),c[1]=parseInt(c[1],10)||0,c[2]=parseInt(c[2],10)||0,b[0]>c[0]||b[0]==c[0]&&b[1]>c[1]||b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]}function t(a,b,c,d){if(!U.ie||!U.mac){var e=E.getElementsByTagName("head")[0];if(e){var f=c&&"string"==typeof c?c:"screen";if(d&&(R=null,S=null),!R||S!=f){var g=q("style");g.setAttribute("type","text/css"),g.setAttribute("media",f),R=e.appendChild(g),U.ie&&U.win&&typeof E.styleSheets!=w&&E.styleSheets.length>0&&(R=E.styleSheets[E.styleSheets.length-1]),S=f}U.ie&&U.win?R&&typeof R.addRule==x&&R.addRule(a,b):R&&typeof E.createTextNode!=w&&R.appendChild(E.createTextNode(a+" {"+b+"}"))}}}function u(a,b){if(T){var c=b?"visible":"hidden";P&&p(a)?p(a).style.visibility=c:t("#"+a,"visibility:"+c)}}function v(a){var b=/[\\\"<>\.;]/,c=null!=b.exec(a);return c&&typeof encodeURIComponent!=w?encodeURIComponent(a):a}var w="undefined",x="object",y="Shockwave Flash",z="ShockwaveFlash.ShockwaveFlash",A="application/x-shockwave-flash",B="SWFObjectExprInst",C="onreadystatechange",D=window,E=document,F=navigator,G=!1,H=[d],I=[],J=[],K=[],L,M,N,O,P=!1,Q=!1,R,S,T=!0,U=function(){var a=typeof E.getElementById!=w&&typeof E.getElementsByTagName!=w&&typeof E.createElement!=w,b=F.userAgent.toLowerCase(),c=F.platform.toLowerCase(),d=c?/win/.test(c):/win/.test(b),e=c?/mac/.test(c):/mac/.test(b),f=/webkit/.test(b)?parseFloat(b.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,g=!1,h=[0,0,0],i=null;if(typeof F.plugins!=w&&typeof F.plugins[y]==x)i=F.plugins[y].description,!i||typeof F.mimeTypes!=w&&F.mimeTypes[A]&&!F.mimeTypes[A].enabledPlugin||(G=!0,g=!1,i=i.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),h[0]=parseInt(i.replace(/^(.*)\..*$/,"$1"),10),h[1]=parseInt(i.replace(/^.*\.(.*)\s.*$/,"$1"),10),h[2]=/[a-zA-Z]/.test(i)?parseInt(i.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof D.ActiveXObject!=w)try{var j=new ActiveXObject(z);j&&(i=j.GetVariable("$version"),i&&(g=!0,i=i.split(" ")[1].split(","),h=[parseInt(i[0],10),parseInt(i[1],10),parseInt(i[2],10)]))}catch(k){}return{w3:a,pv:h,wk:f,ie:g,win:d,mac:e}}(),V=function(){U.w3&&((typeof E.readyState!=w&&"complete"==E.readyState||typeof E.readyState==w&&(E.getElementsByTagName("body")[0]||E.body))&&a(),P||(typeof E.addEventListener!=w&&E.addEventListener("DOMContentLoaded",a,!1),U.ie&&U.win&&(E.attachEvent(C,function(){"complete"==E.readyState&&(E.detachEvent(C,arguments.callee),a())}),D==top&&!function(){if(!P){try{E.documentElement.doScroll("left")}catch(b){return setTimeout(arguments.callee,0),void 0}a()}}()),U.wk&&!function(){return P?void 0:/loaded|complete/.test(E.readyState)?(a(),void 0):(setTimeout(arguments.callee,0),void 0)}(),c(a)))}(),W=function(){U.ie&&U.win&&window.attachEvent("onunload",function(){for(var a=K.length,b=0;a>b;b++)K[b][0].detachEvent(K[b][1],K[b][2]);for(var c=J.length,d=0;c>d;d++)n(J[d]);for(var e in U)U[e]=null;U=null;for(var f in swfobject)swfobject[f]=null;swfobject=null})}();return{registerObject:function(a,b,c,d){if(U.w3&&a&&b){var e={};e.id=a,e.swfVersion=b,e.expressInstall=c,e.callbackFn=d,I[I.length]=e,u(a,!1)}else d&&d({success:!1,id:a})},getObjectById:function(a){return U.w3?g(a):void 0},embedSWF:function(a,c,d,e,f,g,j,k,m,n){var o={success:!1,id:c};U.w3&&!(U.wk&&U.wk<312)&&a&&c&&d&&e&&f?(u(c,!1),b(function(){d+="",e+="";var b={};if(m&&typeof m===x)for(var p in m)b[p]=m[p];b.data=a,b.width=d,b.height=e;var q={};if(k&&typeof k===x)for(var r in k)q[r]=k[r];if(j&&typeof j===x)for(var t in j)typeof q.flashvars!=w?q.flashvars+="&"+t+"="+j[t]:q.flashvars=t+"="+j[t];if(s(f)){var v=l(b,q,c);b.id==c&&u(c,!0),o.success=!0,o.ref=v}else{if(g&&h())return b.data=g,i(b,q,c,n),void 0;u(c,!0)}n&&n(o)})):n&&n(o)},switchOffAutoHideShow:function(){T=!1},ua:U,getFlashPlayerVersion:function(){return{major:U.pv[0],minor:U.pv[1],release:U.pv[2]}},hasFlashPlayerVersion:s,createSWF:function(a,b,c){return U.w3?l(a,b,c):void 0},showExpressInstall:function(a,b,c,d){U.w3&&h()&&i(a,b,c,d)},removeSWF:function(a){U.w3&&n(a)},createCSS:function(a,b,c,d){U.w3&&t(a,b,c,d)},addDomLoadEvent:b,addLoadEvent:c,getQueryParamValue:function(a){var b=E.location.search||E.location.hash;if(b){if(/\?/.test(b)&&(b=b.split("?")[1]),null==a)return v(b);for(var c=b.split("&"),d=0;d<c.length;d++)if(c[d].substring(0,c[d].indexOf("="))==a)return v(c[d].substring(c[d].indexOf("=")+1))}return""},expressInstallCallback:function(){if(Q){var a=p(B);a&&L&&(a.parentNode.replaceChild(L,a),M&&(u(M,!0),U.ie&&U.win&&(L.style.display="block")),N&&N(O)),Q=!1}}}}();define("swfobject",function(a){return function(){var b,c;return b||a.swfobject}}(this)),function(a,b,c){function d(a,b){var c=(a[0]||0)-(b[0]||0);return c>0||!c&&a.length>0&&d(a.slice(1),b.slice(1))}function e(a){if(typeof a!=h)return a;var b=[],c='';for(var d in a)c=typeof a[d]==h?e(a[d]):[d,i?encodeURI(a[d]):a[d]].join('='),b.push(c);return b.join('&')}function f(a){var b=[];for(var c in a)a[c]&&b.push([c,'="',a[c],'"'].join(''));return b.join(' ')}function g(a){var b=[];for(var c in a)b.push(['<param name="',c,'" value="',e(a[c]),'" />'].join(''));return b.join('')}var h='object',i=!0;try{var j=c.description||function(){return new c('ShockwaveFlash.ShockwaveFlash').GetVariable('$version')}()}catch(k){j='Unavailable'}var l=j.match(/\d+/g)||[0];a[b]={available:l[0]>0,activeX:c&&!c.name,version:{original:j,array:l,string:l.join('.'),major:parseInt(l[0],10)||0,minor:parseInt(l[1],10)||0,release:parseInt(l[2],10)||0},hasVersion:function(a){var b=/string|number/.test(typeof a)?a.toString().split('.'):/object/.test(typeof a)?[a.major,a.minor]:a||[0,0];return d(l,b)},encodeParams:!0,expressInstall:'expressInstall.swf',expressInstallIsActive:!1,create:function(a){var b=this;if(!a.swf||b.expressInstallIsActive||!b.available&&!a.hasVersionFail)return!1;if(!b.hasVersion(a.hasVersion||1)){if(b.expressInstallIsActive=!0,'function'==typeof a.hasVersionFail&&!a.hasVersionFail.apply(a))return!1;a={swf:a.expressInstall||b.expressInstall,height:137,width:214,flashvars:{MMredirectURL:location.href,MMplayerType:b.activeX?'ActiveX':'PlugIn',MMdoctitle:document.title.slice(0,47)+' - Flash Player Installation'}}}attrs={data:a.swf,type:'application/x-shockwave-flash',id:a.id||'flash_'+Math.floor(999999999*Math.random()),width:a.width||320,height:a.height||180,style:a.style||''},i='undefined'!=typeof a.useEncode?a.useEncode:b.encodeParams,a.movie=a.swf,a.wmode=a.wmode||'opaque',delete a.fallback,delete a.hasVersion,delete a.hasVersionFail,delete a.height,delete a.id,delete a.swf,delete a.useEncode,delete a.width;var c=document.createElement('div');return c.innerHTML=['<object ',f(attrs),'>',g(a),'</object>'].join(''),c.firstChild}},a.fn[b]=function(c){var d=this.find(h).addBack().filter(h);return/string|object/.test(typeof c)&&this.each(function(){var d=a(this),e;c=typeof c==h?c:{swf:c},c.fallback=this,e=a[b].create(c),e&&(d.children().remove(),d.html(e))}),'function'==typeof c&&d.each(function(){var d=this,e='jsInteractionTimeoutMs';d[e]=d[e]||0,d[e]<660&&(d.clientWidth||d.clientHeight?c.call(d):setTimeout(function(){a(d)[b](c)},d[e]+66))}),d}}(jQuery,'flash',navigator.plugins['Shockwave Flash']||window.ActiveXObject),define("jquery-plugin/jquery.swfobject",["jquery","swfobject"],function(a){return function(){var b,c;return b||a.swfobject}}(this)),function(a){"use strict";function b(){for(var a=navigator.plugins||[],b=0;b<a.length;b++){var c=a[b];if('np-mswmp.dll'==c.filename)return!0}return!1}function c(){var b='';for(var c in a.fn.media.defaults.players)b.length&&(b+=','),b+=a.fn.media.defaults.players[c].types;return new RegExp('\\.('+b.replace(/,/gi,'|')+')\\b')}function d(a){return function(b,c){return g(b,c,a)}}function e(a){return'0123456789'.indexOf(a)>-1}function f(b,c){c=c||{};var d,e,f=a(b),g=b.className||'',h=a.metadata?f.metadata():a.meta?f.data():{};h=h||{};var i=h.width||parseInt((g.match(/\bw:(\d+)/)||[])[1]||0,10)||parseInt((g.match(/\bwidth:(\d+)/)||[])[1]||0,10),j=h.height||parseInt((g.match(/\bh:(\d+)/)||[])[1]||0,10)||parseInt((g.match(/\bheight:(\d+)/)||[])[1]||0,10);i&&(h.width=i),j&&(h.height=j),g&&(h.cls=g);for(var k='data-',l=0;l<b.attributes.length;l++){d=b.attributes[l],e=a.trim(d.name);var m=e.indexOf(k);0===m&&(e=e.substring(k.length),h[e]=d.value)}d=a.fn.media.defaults;var n=c,o=h,p={params:{bgColor:c.bgColor||a.fn.media.defaults.bgColor}},q=a.extend({},d,n,o);return a.each(['attrs','params','flashvars','silverlight'],function(b,c){q[c]=a.extend({},p[c]||{},d[c]||{},n[c]||{},o[c]||{})}),'undefined'==typeof q.caption&&(q.caption=f.text()),q.src=q.src||f.attr('href')||f.attr('src')||'unknown',q}function g(b,c,d){var e=a(b),f=a.fn.media.defaults.players[d],g,h,k;if('iframe'==d)f=a("<iframe width=\""+c.width+'" height="'+c.height+'" >'),f.attr('src',c.src),f.css('backgroundColor',f.bgColor);else if('img'==d)f=a('<img>'),f.attr('src',c.src),c.width&&f.attr('width',c.width),c.height&&f.attr('height',c.height),f.css('backgroundColor',f.bgColor);else if(j){g=['<object width="'+c.width+'" height="'+c.height+'" '];for(h in c.attrs)g.push(h+'="'+c.attrs[h]+'" ');for(h in f.ieAttrs||{})k=f.ieAttrs[h],'codebase'==h&&'https:'==window.location.protocol&&(k=k.replace('http','https')),g.push(h+'="'+k+'" ');g.push("></object>");var l=['<param name="'+(f.oUrl||'src')+'" value="'+c.src+'">'];for(h in c.params)l.push('<param name="'+h+'" value="'+c.params[h]+'">');f=document.createElement(g.join(''));for(var m=0;m<l.length;m++)f.appendChild(document.createElement(l[m]))}else if(c.standards){if(g=['<object type="'+f.mimetype+'" width="'+c.width+'" height="'+c.height+'"'],c.src&&g.push(' data="'+c.src+'" '),i)for(h in f.ieAttrs||{})k=f.ieAttrs[h],'codebase'==h&&'https:'==window.location.protocol&&(k=k.replace('http','https')),g.push(h+'="'+k+'" ');g.push('>'),g.push('<param name="'+(f.oUrl||'src')+'" value="'+c.src+'">');for(h in c.params)'wmode'==h&&'flash'!=d||g.push('<param name="'+h+'" value="'+c.params[h]+'">');g.push('<div><p><strong>'+f.title+' Required</strong></p><p>'+f.title+' is required to view this media. <a href="'+f.pluginspage+'">Download Here</a>.</p></div>'),g.push("</object>")}else{g=['<embed width="'+c.width+'" height="'+c.height+'" style="display:block"'],c.src&&g.push(' src="'+c.src+'" ');for(h in c.attrs)g.push(h+'="'+c.attrs[h]+'" ');for(h in f.eAttrs||{})g.push(h+'="'+f.eAttrs[h]+'" ');for(h in c.params)'wmode'==h&&'flash'!=d||g.push(h+'="'+c.params[h]+'" ');g.push("></embed>")}var n=b.id?' id="'+b.id+'"':'',o=c.cls?' class="'+c.cls+'"':'',p=a('<div'+n+o+'>');return e.after(p).remove(),j||'iframe'==d||'img'==d?p.append(f):p.html(g.join('')),c.caption&&a('<div>').appendTo(p).html(c.caption),p}var h=document.documentMode||0,i=/MSIE/.test(navigator.userAgent),j=i&&(/MSIE (6|7|8)\.0/.test(navigator.userAgent)||9>h);a.fn.media=function(b,d,g){return'undo'==b?this.each(function(){var b=a(this),c=b.data('media.origHTML');c&&b.replaceWith(c)}):this.each(function(){'function'==typeof b&&(g=d,d=b,b={});var h=f(this,b);'function'==typeof d&&d(this,h);var i=c(),j=i.exec(h.src.toLowerCase())||[''],k;h.type?j[0]=h.type:j.shift();for(var l=0;l<j.length;l++)if(k=j[l].toLowerCase(),e(k[0])&&(k='fn'+k),a.fn.media[k]){var m=a.fn.media[k+'_player'];if(h.params||(h.params={}),m){var n='autostart'==m.autoplayAttr;
h.params[m.autoplayAttr||'autoplay']=n?h.autoplay?1:0:!!h.autoplay}var o=a.fn.media[k](this,h);if(o.css('backgroundColor',h.bgColor).width(h.width),h.canUndo){var p=a('<div></div>').append(this);o.data('media.origHTML',p.html())}'function'==typeof g&&g(this,o[0],h,m.name);break}})},a.fn.media.mapFormat=function(b,c){b&&c&&a.fn.media.defaults.players[c]&&(b=b.toLowerCase(),e(b[0])&&(b='fn'+b),a.fn.media[b]=a.fn.media[c],a.fn.media[b+'_player']=a.fn.media.defaults.players[c])},a.fn.media.defaults={standards:!0,canUndo:!0,width:400,height:400,autoplay:0,bgColor:'#ffffff',params:{wmode:'transparent'},attrs:{},flvKeyName:'file',flashvars:{},flashVersion:'7',expressInstaller:null,flvPlayer:'mediaplayer.swf',mp3Player:'mediaplayer.swf',silverlight:{inplaceInstallPrompt:'true',isWindowless:'true',framerate:'24',version:'0.9',onError:null,onLoad:null,initParams:null,userContext:null}},a.fn.media.defaults.players={flash:{name:'flash',title:'Flash',types:'flv,mp3,swf',mimetype:'application/x-shockwave-flash',pluginspage:'http://www.adobe.com/go/getflashplayer',ieAttrs:{classid:'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000',type:'application/x-oleobject',codebase:'http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+a.fn.media.defaults.flashVersion}},quicktime:{name:'quicktime',title:'QuickTime',mimetype:'video/quicktime',pluginspage:'http://www.apple.com/quicktime/download/',types:'aif,aiff,aac,au,bmp,gsm,mov,mid,midi,mpg,mpeg,mp4,m4a,psd,qt,qtif,qif,qti,snd,tif,tiff,wav,3g2,3gp',ieAttrs:{classid:'clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B',codebase:'http://www.apple.com/qtactivex/qtplugin.cab'}},realplayer:{name:'real',title:'RealPlayer',types:'ra,ram,rm,rpm,rv,smi,smil',mimetype:'audio/x-pn-realaudio-plugin',pluginspage:'http://www.real.com/player/',autoplayAttr:'autostart',ieAttrs:{classid:'clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA'}},winmedia:{name:'winmedia',title:'Windows Media',types:'asx,asf,avi,wma,wmv',mimetype:b()?'application/x-ms-wmp':'application/x-mplayer2',pluginspage:'http://www.microsoft.com/Windows/MediaPlayer/',autoplayAttr:'autostart',oUrl:'url',ieAttrs:{classid:'clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6',type:'application/x-oleobject'}},img:{name:'img',title:'Image',types:'gif,png,jpg'},iframe:{name:'iframe',types:'html,pdf'},silverlight:{name:'silverlight',types:'xaml'}};var k=1;for(var l in a.fn.media.defaults.players){var m=a.fn.media.defaults.players[l].types;a.each(m.split(','),function(b,c){e(c[0])&&(c='fn'+c),a.fn.media[c]=a.fn.media[l]=d(l),a.fn.media[c+'_player']=a.fn.media.defaults.players[l]})}a.fn.media.swf=function(b,c){var d,e;if(!window.SWFObject&&!window.swfobject){if(c.flashvars){var f=[];for(d in c.flashvars)f.push(d+'='+c.flashvars[d]);c.params||(c.params={}),c.params.flashvars=f.join('&')}return g(b,c,'flash')}var h=b.id?' id="'+b.id+'"':'',i=c.cls?' class="'+c.cls+'"':'',j=a('<div'+h+i+'>');if(window.swfobject)a(b).after(j).appendTo(j),b.id||(b.id='movie_player_'+k++),window.swfobject.embedSWF(c.src,b.id,c.width,c.height,c.flashVersion,c.expressInstaller,c.flashvars,c.params,c.attrs);else{a(b).after(j).remove();var l=new SWFObject(c.src,'movie_player_'+k++,c.width,c.height,c.flashVersion,c.bgColor);c.expressInstaller&&l.useExpressInstall(c.expressInstaller);for(e in c.params)'bgColor'!=e&&l.addParam(e,c.params[e]);for(d in c.flashvars)l.addVariable(d,c.flashvars[d]);l.write(j[0])}return c.caption&&a('<div>').appendTo(j).html(c.caption),j},a.fn.media.flv=a.fn.media.mp3=function(b,c){var d=c.src,e=/\.mp3\b/i.test(d)?c.mp3Player:c.flvPlayer,f=c.flvKeyName;d=encodeURIComponent(d),c.src=e,c.src=c.src+'?'+f+'='+d;var g={};return g[f]=d,c.flashvars=a.extend({},g,c.flashvars),a.fn.media.swf(b,c)},a.fn.media.xaml=function(b,c){if(!window.Sys||!window.Sys.Silverlight){if(a.fn.media.xaml.warning)return;return a.fn.media.xaml.warning=1,alert('You must include the Silverlight.js script.'),void 0}var d={width:c.width,height:c.height,background:c.bgColor,inplaceInstallPrompt:c.silverlight.inplaceInstallPrompt,isWindowless:c.silverlight.isWindowless,framerate:c.silverlight.framerate,version:c.silverlight.version},e={onError:c.silverlight.onError,onLoad:c.silverlight.onLoad},f=b.id?' id="'+b.id+'"':'',g=c.id||'AG'+k++,h=c.cls?' class="'+c.cls+'"':'',i=a('<div'+f+h+'>');return a(b).after(i).remove(),Sys.Silverlight.createObjectEx({source:c.src,initParams:c.silverlight.initParams,userContext:c.silverlight.userContext,id:g,parentElement:i[0],properties:d,events:e}),c.caption&&a('<div>').appendTo(i).html(c.caption),i}}(jQuery),define("jquery-plugin/jquery.media",["jquery","vendor/jquery/plugins/jquery.metadata","jquery-plugin/jquery.swfobject"],function(){}),define('soy!jive.shared.displayutil.close',['soyDeps'],function(a){return jive.namespace.call(this,'jive.shared.displayutil'),jive.shared.displayutil.close=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('1ce366',[]))),c?'':d.toString()},jive.shared.displayutil.close}),define('soy!jive.shared.displayutil.messagePopup',['soyDeps','soy!jive.shared.displayutil.close'],function(a){return jive.namespace.call(this,'jive.shared.displayutil'),jive.shared.displayutil.messagePopup=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-alert-container" role="alert" aria-live="polite" aria-atomic="true"><div class="j-alert j-alert-',soy.$$escapeHtml(a.style),' clearfix ',a.showClose?'j-alert-withbutton':'','"><span class="j-js-alert-message"></span>'),a.showClose&&(c.append('<a href="#" class="j-js-message-popup-close-button j-close-button" ',a.showCloseAria?'':'aria-hidden="true"','><span class="j-508-label">'),a.closeTitle?c.append(soy.$$escapeHtml(a.closeTitle)):jive.shared.displayutil.close(null,c),c.append('</span><span class="jive-icon-glyph icon-close-thin"></span></a>')),c.append('</div></div>'),b?'':c.toString()},jive.shared.displayutil.messagePopup}),define('jquery-plugin/jquery.message',['jquery','soy!jive.shared.displayutil.messagePopup'],function(a,b){a.fn.message=function(b){return this.each(function(){function c(){g.attr('aria-busy','true'),f.animate({opacity:'0',bottom:'-20px'},100,function(){f.remove(),d.dismissCallback(),g.attr('aria-busy','false')})}var d=a.extend({},a.fn.message.defaults,b||{}),e=a(jive.shared.displayutil.messagePopup(d)),f=e.find('.j-alert:eq(0)'),g=a('.j-alert-container');g.attr('aria-busy','true'),f.css({bottom:'-40px',display:'block',opacity:0}),f.find('.j-js-alert-message').replaceWith(this),d.dismissIn<=0&&e.attr("role","alertdialog"),g.length||(g=e.appendTo('body')),"error"===d.style&&g.attr("aria-live","assertive"),g.html(e.html());var h=g.find('.j-js-message-popup-close-button').click(c);f=g.find('.j-alert:eq(0)'),f.animate({bottom:0,opacity:1},400,function(){g.attr('aria-busy','false')}),d.dismissIn>0?setTimeout(c,d.dismissIn):h.focus()})},a.fn.message.defaults={dismissCallback:a.noop,dismissIn:5e3,showClose:!0,style:'info'}}),function(a,b){'function'==typeof define&&define.amd?define('jquery-plugin/jquery.placeheld',['jquery'],b):b(a.jQuery)}(this,function(a){a.placeHeld=function(b,c){var d=this;d.$el=a(b),d.el=b,d.$el.data("placeHeld",d),d.placeholderText=d.$el.attr("placeholder"),d.init=function(){d.options=a.extend({},a.placeHeld.defaultOptions,c),d.$el.bind('blur',d.holdPlace),d.$el.bind('focus',d.releasePlace),d.holdPlace(),d.$el.parents('form').bind('submit',d.clearPlace)},d.holdPlace=function(){var a=d.$el.val();a||d.$el.val(d.placeholderText).addClass(d.options.className)},d.releasePlace=function(){var a=d.$el.val();a==d.placeholderText&&d.$el.val('').removeClass(d.options.className)},d.clearPlace=function(){var a=d.$el.val();a==d.placeholderText&&d.$el.hasClass(d.options.className)&&d.$el.val('')},d.getValue=function(){var a=d.$el.val();return a==d.placeholderText&&d.$el.hasClass(d.options.className)?'':a},d.init()},a.placeHeld.defaultOptions={className:"placeheld"},a.fn.placeHeld=function(b){return"placeholder"in a('<input>')[0]?void 0:this.each(function(){new a.placeHeld(this,b)})},a.fn.placeHeldVal=function(){var b=a(this).data("placeHeld");return b?b.getValue():a(this).val()},a(function(){a("input[placeholder]").placeHeld()})}),define('jive/rtl',['domReady!'],function(){var a=null!==document.querySelector('[dir="rtl"]'),b=null!==document.querySelector('.jive-comment-section-region-all');b&&(a=!1);var c=function(b){var c=/(right|left)/gi;return a?b.replace(c,function(a){return"right"===a.toLowerCase()?"left":"right"}):b};return c.isRtl=a,c}),define('soy!jive.shared.displayutil.a11yBoundary',['soyDeps'],function(a){return jive.namespace.call(this,'jive.shared.displayutil'),jive.shared.displayutil.a11yBoundary=function(b,c){var d=c||new soy.StringBuilder;return d.append('<span class="j-508-label a11y-boundary">','menu'==b.type?b.isEnd?soy.$$escapeHtml(a._i18n('ef4090',[])):soy.$$escapeHtml(a._i18n('895b81',[])):b.isEnd?soy.$$escapeHtml(a._i18n('860e86',[])):soy.$$escapeHtml(a._i18n('7435fb',[])),'</span>'),c?'':d.toString()},jive.shared.displayutil.a11yBoundary}),define('jquery-plugin/jquery.pop',['jquery','jquery-mobile/jquery.mobile.vmouse'],function(a){function b(c){function d(b,c){return 0===a('.js-pop').length&&a(".popover-iframe-interceptor").remove(),h.unbind('close',d),h.undelegate(g.closeSelector,'click.pop',d),a(g.closeOnClickSelector).off('vclick',e),a(document).unbind('keyup',f),b&&'close'==b.type||h.trigger('close'),b&&'close'==b.type&&b.stopPropagation(),b&&'click'==b.type&&b.preventDefault(),g.onClose.call(this,b,c)}function e(b){var c=a(b.target),d=c.closest(i).length>0||c.closest(g.additionalContainerSelector).length>0,e=c.is(g.closeOnClickSelector)||c.parents(g.closeOnClickSelector).length>0,f=c.closest('a.more.noIcon');d||!e||f.length||h.trigger('close',{cause:'external'})}function f(a){(27==a.keyCode||27==a.DOM_VK_ESCAPE&&0===a.which)&&g.closeEsc&&h.trigger('close')}var g=a.extend({},b.defaults,c),h=this,i=g.decoration||h;h.bind('close',d),h.delegate(g.closeSelector,'click.pop',d),a(document).keyup(f),g.closeOnClick&&setTimeout(function(){if(g.clickOverlay&&a('iframe:visible').each(function(){var b=a(this),c=b.position();void 0==b.attr("data-zindex")&&b.attr("data-zindex",b.prop("style")["z-index"]),b.is('.j-rte-video')&&b.css({"z-index":"-1"});var d={position:"absolute",padding:"0",margin:"0",top:c.top+"px",left:c.left+"px",width:b.outerWidth()+"px",height:b.outerHeight()+"px"};a("<div/>").addClass("popover-iframe-interceptor").css(d).insertAfter(b)}),a(g.closeOnClickSelector).on("vclick",e),g.decoration!=h)var b=setInterval(function(){a(g.decoration).is(":visible")||(a(".popover-iframe-interceptor").remove(),a('iframe:visible').each(function(){a(this).css({"z-index":a(this).attr("data-zindex")})}),clearInterval(b))},500)},0)}b.defaults={clickOverlay:!0,closeEsc:!0,closeOnClick:!0,closeOnClickSelector:'html',closeSelector:'.close',decoration:null,additionalContainerSelector:null,onClose:a.noop},a.fn.autoclose=b}),jQuery.effects||function(a,b){var c=a.uiBackCompat!==!1,d="ui-effects-";a.effects={effect:{}},function(jQuery,b){function c(a,b,c){var d=k[b.type]||{};return null==a?c||!b.def?null:b.def:(a=d.floor?~~a:parseFloat(a),isNaN(a)?b.def:d.mod?(a+d.mod)%d.mod:0>a?0:d.max<a?d.max:a)}function d(a){var b=i(),c=b._rgba=[];return a=a.toLowerCase(),o(h,function(d,e){var f,g=e.re.exec(a),h=g&&e.parse(g),i=e.space||"rgba";return h?(f=b[i](h),b[j[i].cache]=f[j[i].cache],c=b._rgba=f._rgba,!1):void 0}),c.length?("0,0,0,0"===c.join()&&jQuery.extend(c,n.transparent),b):n[a]}function e(a,b,c){return c=(c+1)%1,1>6*c?a+(b-a)*c*6:1>2*c?b:2>3*c?a+(b-a)*(2/3-c)*6:a}var f="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor".split(" "),g=/^([\-+])=\s*(\d+\.?\d*)/,h=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(a){return[a[1],a[2],a[3],a[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(a){return[2.55*a[1],2.55*a[2],2.55*a[3],a[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(a){return[a[1],a[2]/100,a[3]/100,a[4]]}}],i=jQuery.Color=function(a,b,c,d){return new jQuery.Color.fn.parse(a,b,c,d)},j={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},k={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},l=i.support={},m=jQuery("<p>")[0],n,o=jQuery.each;m.style.cssText="background-color:rgba(1,1,1,.5)",l.rgba=m.style.backgroundColor.indexOf("rgba")>-1,o(j,function(a,b){b.cache="_"+a,b.props.alpha={idx:3,type:"percent",def:1}}),i.fn=jQuery.extend(i.prototype,{parse:function(e,f,g,h){if(e===b)return this._rgba=[null,null,null,null],this;(e.jquery||e.nodeType)&&(e=jQuery(e).css(f),f=b);var k=this,l=jQuery.type(e),m=this._rgba=[];return f!==b&&(e=[e,f,g,h],l="array"),"string"===l?this.parse(d(e)||n._default):"array"===l?(o(j.rgba.props,function(a,b){m[b.idx]=c(e[b.idx],b)}),this):"object"===l?(e instanceof i?o(j,function(a,b){e[b.cache]&&(k[b.cache]=e[b.cache].slice())}):o(j,function(b,d){var f=d.cache;o(d.props,function(a,b){if(!k[f]&&d.to){if("alpha"===a||null==e[a])return;k[f]=d.to(k._rgba)}k[f][b.idx]=c(e[a],b,!0)}),k[f]&&a.inArray(null,k[f].slice(0,3))<0&&(k[f][3]=1,d.from&&(k._rgba=d.from(k[f])))}),this):void 0},is:function(a){var b=i(a),c=!0,d=this;return o(j,function(a,e){var f,g=b[e.cache];return g&&(f=d[e.cache]||e.to&&e.to(d._rgba)||[],o(e.props,function(a,b){return null!=g[b.idx]?(c=g[b.idx]===f[b.idx],c):void 0})),c}),c},_space:function(){var a=[],b=this;return o(j,function(c,d){b[d.cache]&&a.push(c)}),a.pop()},transition:function(a,b){var d=i(a),e=d._space(),f=j[e],g=0===this.alpha()?i("transparent"):this,h=g[f.cache]||f.to(g._rgba),l=h.slice();return d=d[f.cache],o(f.props,function(a,e){var f=e.idx,g=h[f],i=d[f],j=k[e.type]||{};null!==i&&(null===g?l[f]=i:(j.mod&&(i-g>j.mod/2?g+=j.mod:g-i>j.mod/2&&(g-=j.mod)),l[f]=c((i-g)*b+g,e)))}),this[e](l)},blend:function(a){if(1===this._rgba[3])return this;var b=this._rgba.slice(),c=b.pop(),d=i(a)._rgba;return i(jQuery.map(b,function(a,b){return(1-c)*d[b]+c*a}))},toRgbaString:function(){var a="rgba(",b=jQuery.map(this._rgba,function(a,b){return null==a?b>2?1:0:a});return 1===b[3]&&(b.pop(),a="rgb("),a+b.join()+")"},toHslaString:function(){var a="hsla(",b=jQuery.map(this.hsla(),function(a,b){return null==a&&(a=b>2?1:0),b&&3>b&&(a=Math.round(100*a)+"%"),a});return 1===b[3]&&(b.pop(),a="hsl("),a+b.join()+")"},toHexString:function(a){var b=this._rgba.slice(),c=b.pop();return a&&b.push(~~(255*c)),"#"+jQuery.map(b,function(a){return a=(a||0).toString(16),1===a.length?"0"+a:a}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),i.fn.parse.prototype=i.fn,j.hsla.to=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b=a[0]/255,c=a[1]/255,d=a[2]/255,e=a[3],f=Math.max(b,c,d),g=Math.min(b,c,d),h=f-g,i=f+g,j=.5*i,k,l;return k=g===f?0:b===f?60*(c-d)/h+360:c===f?60*(d-b)/h+120:60*(b-c)/h+240,l=0===j||1===j?j:.5>=j?h/i:h/(2-i),[Math.round(k)%360,l,j,null==e?1:e]},j.hsla.from=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b=a[0]/360,c=a[1],d=a[2],f=a[3],g=.5>=d?d*(1+c):d+c-d*c,h=2*d-g;return[Math.round(255*e(h,g,b+1/3)),Math.round(255*e(h,g,b)),Math.round(255*e(h,g,b-1/3)),f]},o(j,function(a,d){var e=d.props,f=d.cache,h=d.to,j=d.from;i.fn[a]=function(a){if(h&&!this[f]&&(this[f]=h(this._rgba)),a===b)return this[f].slice();var d,g=jQuery.type(a),k="array"===g||"object"===g?a:arguments,l=this[f].slice();return o(e,function(a,b){var d=k["object"===g?a:b.idx];null==d&&(d=l[b.idx]),l[b.idx]=c(d,b)}),j?(d=i(j(l)),d[f]=l,d):i(l)},o(e,function(b,c){i.fn[b]||(i.fn[b]=function(d){var e=jQuery.type(d),f="alpha"===b?this._hsla?"hsla":"rgba":a,h=this[f](),i=h[c.idx],j;return"undefined"===e?i:("function"===e&&(d=d.call(this,i),e=jQuery.type(d)),null==d&&c.empty?this:("string"===e&&(j=g.exec(d),j&&(d=i+parseFloat(j[2])*("+"===j[1]?1:-1))),h[c.idx]=d,this[f](h)))})})}),o(f,function(a,b){jQuery.cssHooks[b]={set:function(a,c){var e,f,g="";if("string"!==jQuery.type(c)||(e=d(c))){if(c=i(e||c),!l.rgba&&1!==c._rgba[3]){for(f="backgroundColor"===b?a.parentNode:a;(""===g||"transparent"===g)&&f&&f.style;)try{g=jQuery.css(f,"backgroundColor"),f=f.parentNode}catch(h){}c=c.blend(g&&"transparent"!==g?g:"_default")}c=c.toRgbaString()}try{a.style[b]=c}catch(j){}}},jQuery.fx.step[b]=function(a){a.colorInit||(a.start=i(a.elem,b),a.end=i(a.end),a.colorInit=!0),jQuery.cssHooks[b].set(a.elem,a.start.transition(a.end,a.pos))}}),jQuery.cssHooks.borderColor={expand:function(a){var b={};return o(["Top","Right","Bottom","Left"],function(c,d){b["border"+d+"Color"]=a}),b}},n=jQuery.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),function(){function c(){var b=this.ownerDocument.defaultView?this.ownerDocument.defaultView.getComputedStyle(this,null):this.currentStyle,c={},d,e;if(b&&b.length&&b[0]&&b[b[0]])for(e=b.length;e--;)d=b[e],"string"==typeof b[d]&&(c[a.camelCase(d)]=b[d]);else for(d in b)"string"==typeof b[d]&&(c[d]=b[d]);return c}function d(b,c){var d={},e,g;for(e in c)g=c[e],b[e]!==g&&(f[e]||!a.fx.step[e]&&isNaN(parseFloat(g))||(d[e]=g));return d}var e=["add","remove","toggle"],f={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(b,c){a.fx.step[c]=function(a){("none"!==a.end&&!a.setAttr||1===a.pos&&!a.setAttr)&&(jQuery.style(a.elem,c,a.end),a.setAttr=!0)}}),a.effects.animateClass=function(b,f,g,h){var i=a.speed(f,g,h);return this.queue(function(){var f=a(this),g=f.attr("class")||"",h,j=i.children?f.find("*").andSelf():f;j=j.map(function(){var b=a(this);return{el:b,start:c.call(this)}}),h=function(){a.each(e,function(a,c){b[c]&&f[c+"Class"](b[c])})},h(),j=j.map(function(){return this.end=c.call(this.el[0]),this.diff=d(this.start,this.end),this}),f.attr("class",g),j=j.map(function(){var b=this,c=a.Deferred(),d=jQuery.extend({},i,{queue:!1,complete:function(){c.resolve(b)}});return this.el.animate(this.diff,d),c.promise()}),a.when.apply(a,j.get()).done(function(){h(),a.each(arguments,function(){var b=this.el;a.each(this.diff,function(a){b.css(a,'')})}),i.complete.call(f[0])})})},a.fn.extend({_addClass:a.fn.addClass,addClass:function(b,c,d,e){return c?a.effects.animateClass.call(this,{add:b},c,d,e):this._addClass(b)},_removeClass:a.fn.removeClass,removeClass:function(b,c,d,e){return c?a.effects.animateClass.call(this,{remove:b},c,d,e):this._removeClass(b)},_toggleClass:a.fn.toggleClass,toggleClass:function(c,d,e,f,g){return"boolean"==typeof d||d===b?e?a.effects.animateClass.call(this,d?{add:c}:{remove:c},e,f,g):this._toggleClass(c,d):a.effects.animateClass.call(this,{toggle:c},d,e,f)},switchClass:function(b,c,d,e,f){return a.effects.animateClass.call(this,{add:c,remove:b},d,e,f)}})}(),function(){function e(b,c,d,e){return a.isPlainObject(b)&&(c=b,b=b.effect),b={effect:b},null==c&&(c={}),a.isFunction(c)&&(e=c,d=null,c={}),("number"==typeof c||a.fx.speeds[c])&&(e=d,d=c,c={}),a.isFunction(d)&&(e=d,d=null),c&&a.extend(b,c),d=d||c.duration,b.duration=a.fx.off?0:"number"==typeof d?d:d in a.fx.speeds?a.fx.speeds[d]:a.fx.speeds._default,b.complete=e||c.complete,b}function f(b){return!b||"number"==typeof b||a.fx.speeds[b]?!0:"string"!=typeof b||a.effects.effect[b]?!1:!c||!a.effects[b]}a.extend(a.effects,{version:"1.9.2",save:function(a,b){for(var c=0;c<b.length;c++)null!==b[c]&&a.data(d+b[c],a[0].style[b[c]])},restore:function(a,c){var e,f;for(f=0;f<c.length;f++)null!==c[f]&&(e=a.data(d+c[f]),e===b&&(e=""),a.css(c[f],e))},setMode:function(a,b){return"toggle"===b&&(b=a.is(":hidden")?"show":"hide"),b},getBaseline:function(a,b){var c,d;switch(a[0]){case"top":c=0;break;case"middle":c=.5;break;case"bottom":c=1;break;default:c=a[0]/b.height}switch(a[1]){case"left":d=0;break;case"center":d=.5;break;case"right":d=1;break;default:d=a[1]/b.width}return{x:d,y:c}},createWrapper:function(b){if(b.parent().is(".ui-effects-wrapper"))return b.parent();var c={width:b.outerWidth(!0),height:b.outerHeight(!0),"float":b.css("float")},d=a("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:b.width(),height:b.height()},f=document.activeElement;try{f.id}catch(g){f=document.body}return b.wrap(d),(b[0]===f||a.contains(b[0],f))&&a(f).focus(),d=b.parent(),"static"===b.css("position")?(d.css({position:"relative"}),b.css({position:"relative"})):(a.extend(c,{position:b.css("position"),zIndex:b.css("z-index")}),a.each(["top","left","bottom","right"],function(a,d){c[d]=b.css(d),isNaN(parseInt(c[d],10))&&(c[d]="auto")}),b.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),b.css(e),d.css(c).show()},removeWrapper:function(b){var c=document.activeElement;return b.parent().is(".ui-effects-wrapper")&&(b.parent().replaceWith(b),(b[0]===c||a.contains(b[0],c))&&a(c).focus()),b},setTransition:function(b,c,d,e){return e=e||{},a.each(c,function(a,c){var f=b.cssUnit(c);f[0]>0&&(e[c]=f[0]*d+f[1])}),e}}),a.fn.extend({effect:function(){function b(b){function c(){a.isFunction(f)&&f.call(e[0]),a.isFunction(b)&&b()}var e=a(this),f=d.complete,g=d.mode;(e.is(":hidden")?"hide"===g:"show"===g)?c():h.call(e[0],d,c)}var d=e.apply(this,arguments),f=d.mode,g=d.queue,h=a.effects.effect[d.effect],i=!h&&c&&a.effects[d.effect];return a.fx.off||!h&&!i?f?this[f](d.duration,d.complete):this.each(function(){d.complete&&d.complete.call(this)}):h?g===!1?this.each(b):this.queue(g||"fx",b):i.call(this,{options:d,duration:d.duration,callback:d.complete,mode:d.mode})},_show:a.fn.show,show:function(a){if(f(a))return this._show.apply(this,arguments);var b=e.apply(this,arguments);return b.mode="show",this.effect.call(this,b)},_hide:a.fn.hide,hide:function(a){if(f(a))return this._hide.apply(this,arguments);var b=e.apply(this,arguments);return b.mode="hide",this.effect.call(this,b)},__toggle:a.fn.toggle,toggle:function(b){if(f(b)||"boolean"==typeof b||a.isFunction(b))return this.__toggle.apply(this,arguments);var c=e.apply(this,arguments);return c.mode="toggle",this.effect.call(this,c)},cssUnit:function(b){var c=this.css(b),d=[];return a.each(["em","px","%","pt"],function(a,b){c.indexOf(b)>0&&(d=[parseFloat(c),b])}),d}})}(),function(){var b={};a.each(["Quad","Cubic","Quart","Quint","Expo"],function(a,c){b[c]=function(b){return Math.pow(b,a+2)}}),a.extend(b,{Sine:function(a){return 1-Math.cos(a*Math.PI/2)},Circ:function(a){return 1-Math.sqrt(1-a*a)},Elastic:function(a){return 0===a||1===a?a:-Math.pow(2,8*(a-1))*Math.sin((80*(a-1)-7.5)*Math.PI/15)},Back:function(a){return a*a*(3*a-2)},Bounce:function(a){for(var b,c=4;a<((b=Math.pow(2,--c))-1)/11;);return 1/Math.pow(4,3-c)-7.5625*Math.pow((3*b-2)/22-a,2)}}),a.each(b,function(b,c){a.easing["easeIn"+b]=c,a.easing["easeOut"+b]=function(a){return 1-c(1-a)},a.easing["easeInOut"+b]=function(a){return.5>a?c(2*a)/2:1-c(-2*a+2)/2}})}()}(jQuery),define("jquery-ui/jquery.ui.effect",["jquery"],function(){}),define('jquery-plugin/jquery.popover',['jquery','jive/accessibility','jive/rtl','soy!jive.shared.displayutil.a11yBoundary','./jquery.pop','jquery-ui/jquery.ui.effect'],function(a,b,c){function d(d,g){function h(a,b){var c=b['background-position'],d={};Object.keys(b).filter(function(a){return'background-position'!=a&&!!b[a]}).forEach(function(a){d[a]=b[a]}),a.css(d);try{a.css('background-position',c)}catch(e){console.error(e)}}this.element=a(d),this.options=a.extend({},a.fn.popover.defaults,g);var i=this.options,j=this,k=g.contextBox||e(i.context,i.fixed),l=!document.addEventListener;if(c.isRtl&&(i.align=c(i.align),i.position=c(i.position)),!k)throw new Error('Required option "context" was not provided.');this.element.data('popover',this),function(){function d(a){var b={top:'',left:''},c,d,e=i.arrowOffset;if("above"==u||"below"==u?"left"==i.align?b.left=e:"right"==i.align?b.left=k.width-(a.left-k.left)-w.outerWidth()-e:(c=k.left-a.left+(k.width-w.outerWidth())/2,d=A.left+i.arrowAdjust/2,b.left=Math.round(c-d+e)):"top"==i.align?b.top=e:"bottom"==i.align?b.top=k.height-(a.top-k.top)-w.outerHeight()-e:(c=k.top-a.top+(k.height-w.outerHeight())/2,d=A.top-i.arrowAdjust/2,b.top=Math.round(c-d+e)),i.arrowAdjust&&"left"==u){b.left=b.left-i.arrowAdjust;var f=x.split(' ');f[0]=parseFloat(f[0])-i.arrowAdjust+"px",b['background-position']=f.join(' ')}else i.arrowAdjust&&"right"==u&&(b.left=b.left+i.arrowAdjust);return b}function m(b){var c=j.popoverPosition();v.find('span.pointer').remove();var e=document.activeElement;a.contains(v.get(0),e)||(e=null),i.removeArrow||v.append(a('<span class="'+u+'Arrow pointer"></span>')),v.addClass('popover').css({position:c.relative,top:c.top,left:c.left}).appendTo(i.container).css('visibility','visible'),v.children().show(),e&&a(e).focus(),w=v.find('.pointer'),x=w.css('background-position'),i.arrowAdjust&&(w.width(w.width()-i.arrowAdjust),w.height(w.height()-i.arrowAdjust)),h(w,d(c)),j.options.containWithinViewport&&!b&&(j.adjustMaxHeight(),m(!0))}function n(){j.resizeTimeout&&clearTimeout(j.resizeTimeout),j.resizeTimeout=setTimeout(j.resizePopover.bind(j),300)}function o(){b.focusIn(t)}function p(){v.before(t).remove()}function q(){t.trigger('close')}function r(b,c){var d;return i.beforeClose(),i.destroyOnClose?v.remove():(i.putBack&&(y.append(t.hide()),v.remove()),v.hide()),t.removeData('popover'),t.off('.popover'),t.off('containerResized'),t.removeData("closePopover"),a(window).off('resize',B),a(window).off('resize',n),C.teardown(!i.destroyOnClose),!i.focusPopover||c&&'external'===c.cause||(d=a(i.context),d.one('focusin',function(a){a.stopPropagation()})),i.onClose()}function s(){if("left"==i.position||"right"==i.position){var b=v.offset().top,c=v.outerHeight(),d=a(window).height(),e=b;d>=c&&(e=b-(d/2-c/2)),a(window).scrollTop(e)}}i.closeOtherPopovers===!0&&a(i.closeOtherPopoversSelector).trigger("close");var t=this.element.addClass('j-pop-main'),u,v=a('<div class="j-pop js-pop" />').addClass(i.addClass),w,x,y=t.parent();if(this.$popover=v,i.setRole&&v.attr("role",i.setRole),t.data("closePopover"))return t.data("closePopover")(),t.removeData("closePopover"),void 0;t.data("closePopover",q),i.returnPopover&&a.extend(g,{popOver:v,closeFunc:q,reposition:m}),i.container=a(i.container),i.container&&0!==i.container.length||(i.container=a('body'));var z='static'!==i.container.css('position')?i.container:i.container.offsetParent(),A;A='static'!==z.css('position')?z.is('body')?f(z):z.offset():{top:0,left:0},v.append(t),t.show(),v.appendTo(i.container).show().css('visibility','hidden'),v.on('containerResized',s),this.popoverPosition=function(a){var b=i.removeArrow?0:11,d=i.removeArrow?0:18,f=14,g=14,h=this.getViewableArea(),l,m={width:v.outerWidth(),height:v.outerHeight()};a&&a.context&&(k=e(a.context,a.fixed)),!k&&a.contextBox&&(k=a.contextBox),"below"==i.position?m.height=m.height+b:"above"==i.position||("left"==i.position?m.width=m.width+f:"right"==i.position&&(m.width=m.width+g));var n,o;if("left"==i.position||"right"==i.position?n="top"==i.align?k.top:"bottom"==i.align?k.top+k.height-m.height:k.top-(m.height-k.height)/2:"below"!=i.position&&"above"!=i.position||(o="left"==i.align?k.left:"right"==i.align?k.left+k.width-m.width:k.left-(m.width-k.width)/2),l="below"==i.position?{top:k.top+k.height+b,left:o}:"above"==i.position?{top:k.top-(m.height+d),left:o}:"left"==i.position?{top:n,left:k.left-m.width}:"right"==i.position?{top:n,left:k.left+k.width+g}:{top:k.top+k.height,left:k.left-(m.width-k.width)/2},i.nudge.top&&(l.top=l.top+i.nudge.top),i.nudge.left){var p=Math.min((m.width-k.width)/2-20,i.nudge.left);l.left=l.left+p}l.left-=A.left,l.top-=A.top,h.left-=A.left,h.right-=A.left,h.top-=A.top,h.bottom-=A.top,i.adjust&&("above"!=i.position&&"below"!=i.position||(l.left<h.left?l.left=h.left:l.left+v.outerWidth()>h.right&&(l.left=h.right-v.outerWidth()-5))),u=c(i.position);var q=h.bottom-(k.top+k.height),r=k.top-h.top,s=k.left-h.left-f,t=h.right-k.left-k.width-g,w=v.outerHeight(),x=v.outerWidth(),y=i.containWithinViewport,z;return i.flip&&("above"==i.position?(z=l.top<h.top,z&&(q>w||y&&q>=1.5*r)&&(l.top=k.top+k.height+b-A.top,i.flipCallback(),u="below")):"below"==i.position?(z=l.top+w>h.bottom,z&&(r>w||y&&r>=1.5*q)&&(l.top=k.top-(w+d)-A.top,i.flipCallback(),u="above",i.nudge.bottom&&(l.top+=i.nudge.bottom))):"left"==i.position?(z=l.left<h.left,z&&(t>x||y&&t>=1.5*s)&&(l.left=k.left+k.width+g-A.left,i.flipCallback(),u=c("right"))):"right"==i.position&&(z=l.left+x>h.right,z&&(s>x||y&&s>=1.5*t)&&(l.left=k.left-x-f-A.left,i.flipCallback(),u=c("left")))),j.position=u,i.arrowAdjust&&"left"==u?l.left+=2*i.arrowAdjust-1:i.arrowAdjust&&"right"==u&&(l.left-=2*i.arrowAdjust-1),i.fixed?l.relative="fixed":l.relative="absolute",l};var B=function(){var b=a(window),c=b.width(),d=b.height();return function(a){var e=b.width(),f=b.height();e==c&&f==d||(c=e,d=f,q(a))}}();!function(){m(),l?a(window).on('resize',B):a(window).on('resize',n),i.focusPopover&&jive.conc.nextTick(o),i.onLoad(),s()}(),t.autoclose(a.extend({},i,{onClose:r,decoration:v}));var C=new b({scope:t,hoverSelection:i.focusPopover&&i.hoverSelection,focusOnHover:i.focusOnHover,otherActions:[b.focusRingAction(t),b.menuSelectAction({container:t,moveFocus:!0})]});if(i.accessibleBoundaryType&&!t.children(".a11y-boundary").length){var D=jive.shared.displayutil.a11yBoundary({type:i.accessibleBoundaryType}),E=jive.shared.displayutil.a11yBoundary({type:i.accessibleBoundaryType,isEnd:!0});t.prepend(D).append(E)}t.on('eject.popover',p),t.on('updatePopoverHTML.popover',function(b,c,d){j.resizePopover(c).done(d||a.noop)}),v.animateArrow=function(b,c){var e=d(b),f=e['background-position'],g={},h=a.Deferred();return Object.keys(e).forEach(function(a){'background-position'!=a&&e[a]&&(g[a]=e[a])}),w.animate(g,c.duration,c.easing,h.resolve),setTimeout(function(){w.removeClass().addClass(u+'Arrow pointer');try{w.css('background-position',f)}catch(a){console.error(a)}},c.duration/2),h.promise()}}.call(this)}function e(b,c){var d=a(b);if(!(d.length<1)){var e=d.offset(),f={top:e.top,left:e.left,height:d.outerHeight(),width:d.outerWidth()};return c&&(f.top=f.top-a(window).scrollTop()),f}}function f(b){var c=b.offset(),d,e;return h()&&(d=parseFloat(b.css('margin-left')),(0===d||isNaN(d))&&(c.left+=(a(document).width()-b.outerWidth())/2),e=parseFloat(b.css('margin-top')),(0===e||isNaN(e))&&(c.top+=(a(document).height()-b.outerHeight())/2)),c}d.prototype.getViewableArea=function(){var b=10;return{top:a(window).scrollTop()+b,right:a(window).scrollLeft()+a(window).width()-b,bottom:a(window).scrollTop()+a(window).height()-b,left:a(window).scrollLeft()+b}},d.prototype.close=function(){this.element.trigger('close')},d.prototype.resizePopover=function(b,c){if(!this.options.allowResize){var d=a.Deferred();return d.reject('resizePopover(): operation not allowed'),d.promise()}var e=a(b),f=e.length>0,g=this.element,h=a.Deferred(),i=a.Deferred(),j=a.Deferred(),k=a.Deferred(),l=a.when(h,i,j,k),m;if(c=a.extend({},this.options,c),m=this._calculateResizeDimensions(e,c),c.fade?this._crossFade(e).done(h.resolve):(h.resolve(),f&&g.html(e)),this.$popover.css('overflow','visible'),
this.$popover.animate({left:m.left,top:m.top,width:m.finalWidth,height:m.finalHeight},c.duration,c.easing,function(){i.resolve()}),this.$popover.css('overflow',''),'function'==typeof this.$popover.animateArrow&&this.$popover.animateArrow(m,c).done(j.resolve),this.options.containWithinViewport){var n=this;a.when(h,i,j).done(function(){n.adjustMaxHeight(),m=n._calculateResizeDimensions(),n.$popover.css({height:m.finalHeight,width:m.finalWidth,top:m.top,left:m.left}),k.resolve()})}else k.resolve();return l.promise()},d.prototype.adjustMaxHeight=function(){var a=this.options.maxHeightClass,b=this.options.maxHeightTarget,c=this._calculatePopoverMargins(this.$popover),d;if(d='below'===this.position?c.bottom:'above'===this.position?c.top:0,d>=0)this.$popover.find('.'+a).removeClass(a).css('maxHeight','');else{var e=this.$popover.find(b),f=e.height()+d;e.addClass(a).css('maxHeight',f)}},d.prototype._calculateResizeDimensions=function(b,c){var d=this.element.children(),e=1,f=this.$popover.width(),g=this.$popover.height(),h={};return this.$popover.css({width:'auto',height:'auto'}),b=a(b),b.length>0&&(d.detach(),b.appendTo(this.element)),h.finalHeight=this.$popover.height(),h.finalWidth=this.$popover.width()+e,a.extend(h,this.popoverPosition(c)),b.length>0&&(b.detach(),d.appendTo(this.element)),this.$popover.css({width:f,height:g}),h},d.prototype._crossFade=function(b){var c=this.element,d=a.Deferred(),e=b.length>0,f=!a.browser.msie||window.parseFloat(a.browser.version)>9;return f?(c.stop(!0,!1).animate({opacity:0},this.options.duration/2,function(){e&&c.html(b)}),c.animate({opacity:1},this.options.duration/2,this.options.easing,function(){d.resolve()})):e?(c.children().detach(),window.setTimeout(function(){c.html(b),d.resolve()},this.options.duration)):d.resolve(),d.promise()},d.prototype._calculatePopoverMargins=function(b){var c=this.getViewableArea(),d=a(b),e=d.offset(),f={x:e.left,y:e.top},g={x:f.x+d.outerWidth(),y:f.y+d.outerHeight()};return{top:f.y-c.top,right:c.right-g.x,bottom:c.bottom-g.y,left:f.x-c.left}};var g=!!navigator.userAgent.match(/iPad/i);a.fn.getPopoverInstance=function(){for(var a=this;a.length>0;){if(a.data('popover'))return a.data('popover');a=a.parent()}},a.fn.popover=function(b){var c=Array.prototype.slice.call(arguments);return this.each(function(){var e=a(this),f=e.data('popover')||new d(e,b);if('string'==typeof b&&a.isFunction(f[b])){var g=a.isArray(c[1])?c[1]:[];f[b].apply(f,g)}})},a.fn.popover.Constructor=d,a.fn.popover.defaults={context:a(),container:a('body'),position:"below",align:"center",fixed:!1,arrowOffset:0,nudge:{},adjust:!0,flip:!0,arrowAdjust:0,containWithinViewport:!1,maxHeightClass:'j-nav-menu-scrollable',maxHeightTarget:'.js-nav-menu-scrollable',flipCallback:a.noop,beforeClose:a.noop,onClose:a.noop,onLoad:a.noop,destroyOnClose:!0,closeOtherPopovers:!1,closeOtherPopoversSelector:"BODY > .j-pop > *",closeOnClickSelector:'html',returnPopover:!1,putBack:!1,focusPopover:!0,hoverSelection:!1,focusOnHover:!0,accessibleBoundaryType:'menu',darkPopover:!1,addClass:"",setRole:null,fade:!0,duration:g?0:400,easing:'easeInOutQuint',allowResize:!0};var h=function(){function b(){var b=a('body'),c=a(document).width(),d=b.outerWidth(),e=parseFloat(b.css('margin-left')),f=parseFloat(b.css('margin-right'));return(0===e||isNaN(e))&&(0===f||isNaN(f))&&c>d}var c,d;return function(){return c||(d=b(),c=!0),d}}()}),function(a){var b,c;b=a.fn.pushStack,c=function(a,b,c){var d=new jQuery.fn.init;return jQuery.isArray(a)?push.apply(d,a):jQuery.merge(d,a),d.prevObject=this,d.context=this.context,"find"===b?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")"),d},a.fn.pushStack=function(a,d,e){var f;try{return f=b.call(this,a,d,e),f}catch(g){if(g instanceof TypeError&&!(f instanceof jQuery.fn.init))return f=c.call(this,a,d,e),f;throw g}}}.call(this,jQuery),define("jquery-plugin/jquery.pushStackChromeFix",["jquery"],function(){}),String.prototype.score=function(a,b){if(b=b||0,0==a.length)return.9;if(a.length>this.length)return 0;for(var c=a.length;c>0;c--){var d=a.substring(0,c),e=this.indexOf(d);if(!(0>e||e+a.length>this.length+b)){var f=this.substring(e+d.length),g=null;g=c>=a.length?'':a.substring(c);var h=f.score(g,b+e);if(h>0){var i=this.length-f.length;if(0!=e){var j=0,k=this.charCodeAt(e-1);if(32==k||9==k)for(var j=e-2;j>=0;j--)k=this.charCodeAt(j),i-=32==k||9==k?1:.15;else i-=e}return i+=h*f.length,i/=this.length,i}}}return 0},define("quicksilver",function(){}),function(a){a.quickSilverFilter=function(b,c,d,e){var f=a.trim(c.toLowerCase()),g=[];if(null==e&&(e=function(a){return a}),f){var h=[];return a(b).each(function(a,b){var c=e(b).score(f);c>0&&g.push([c,a])}),a.each(g.sort(function(a,b){return b[0]-a[0]}),function(){h.push(b[this[1]])}),null!=d&&h.length>d&&(h=h.slice(0,d)),h}return b}}(jQuery),define("jquery-plugin/jquery.quickSilverFilter",["jquery","quicksilver"],function(){}),define('jquery-plugin/jquery.safelyLoad',['jquery','jive/util'],function(a,b){a.fn.safelyLoad=function(c,d,e){var f=Array.prototype.slice.call(arguments,1),g='';c.indexOf(' ')>-1&&(g=c.split(/\s+/),c=g.shift(),g=g.join(' ')),d={url:c},e=a.noop,1===f.length?'function'==typeof f[0]?e=f.shift():d=a.extend({url:c},f.shift()):f.length>0&&(d=a.extend({url:c},f.shift()),e=f.shift()),d.type=!d.type&&'data'in d?'POST':d.type;var h=this;return h.xhrObj=a.ajax(a.extend({},a.fn.safelyLoad.defaults,d,{complete:function(a,c){if("success"===c||"notmodified"===c){var d=b.separateScripts(a.responseText),f=d[0],i=d[1];h.html(g?jQuery("<div>").append(f).find(g):f),i(function(){h.each(e,[a.responseText,c,a])})}else h.each(e,[a.responseText,c,a])}})),h.xhrObj},a.fn.safelyLoad.defaults={data:{},dataType:'html',type:'GET'}}),define('jquery-plugin/jquery.slideMenu',['jquery','underscore','jive/accessibility','soy!jive.shared.displayutil.a11yBoundary'],function(a,b,c){function d(d,e){"use strict";function f(){jive.Accessibility.focusIn(i)}function g(a,b){return h.beforeClose(),j.remove(),i.off('.slideMenu'),k.teardown(!h.destroyOnClose),h.onClose()}this.element=a(d),this.options=a.extend({},a.fn.slideMenu.defaults,e);var h=this.options,i=this.element.addClass('j-slidemenu-main'),j=a('<div class="j-slidemenu js-slidemenu" />').addClass(h.addClass);h.setRole&&j.attr("role",h.setRole),h.container=a(h.container),h.container&&0!==h.container.length||(h.container=a('body')),"right"==h.side?j.addClass("j-slidemenu-right"):j.addClass('j-slidemenu-left'),j.append(i),i.show(),j.appendTo(h.container),b.delay(function(){j.addClass("active")},5),j.one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend',h.onSlide),function(){h.focus&&jive.conc.nextTick(f),h.onLoad()}(),i.autoclose(a.extend({},h,{onClose:g,decoration:j}));var k=new jive.Accessibility({scope:i,hoverSelection:h.hoverSelection,focusOnHover:h.focusOnHover,otherActions:[jive.Accessibility.focusRingAction(i),jive.Accessibility.menuSelectAction({container:i,moveFocus:!0})]});if(h.accessibleBoundaryType&&!i.children(".a11y-boundary").length){var l=c({type:h.accessibleBoundaryType}),m=c({type:h.accessibleBoundaryType,isEnd:!0});i.prepend(l).append(m)}}return a.fn.slideMenu=function(b){var c=Array.prototype.slice.call(arguments);return this.each(function(){var c=a(this),e=new d(c,b);if('string'==typeof b&&a.isFunction(e[b])){var f=a.isArray(f[1])?f[1]:[];e[b].apply(e,f)}})},a.fn.slideMenu.Constructor=d,a.fn.slideMenu.defaults={container:a('body'),beforeClose:a.noop,onClose:a.noop,onLoad:a.noop,onSlide:a.noop,side:"right",focus:!0,destroyOnClose:!1,hoverSelection:!1,focusOnHover:!0,accessibleBoundaryType:'menu',addClass:"",setRole:null},d}),define('jquery-plugin/jquery.suggest',['jquery','underscore'],function(a,b){a.suggest=function(c,d){function e(a){return a.replace(/([.*+?\^${}()|\[\]\/\\])/g,'\\$1')}function f(){if(a.isFunction(d.position))d.position(B,C);else{var b=B.offset();C.css({top:b.top+c.offsetHeight+'px',left:b.left+'px'})}}function g(a){if(/27$|38$|40$/.test(a.keyCode)&&C.is(':visible')||/^13$|^9$/.test(a.keyCode)&&w())switch(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0,a.returnValue=!1,a.keyCode){case 38:A();break;case 40:z();break;case 9:case 13:var b=w();b&&x.apply(b);break;case 27:C.hide()}else B.val().length!=E&&(D&&clearTimeout(D),D=setTimeout(function(){k(d.limit)},d.delay),E=B.val().length)}function h(b){var c=b.val(),e;return e=d.multiple?c.split(d.multipleSeparator).last():c,a.trim(e)}function i(b){var c=a.extend({},d.extraParams);return c[d.paramName]=b,d.transformParams&&d.transformParams(c),c}function j(){k(Number.MAX_VALUE)}function k(b){var c=h(B),e=B.data("results");if(c.length>=d.minchars){var f=n(c);f&&d.useCache===!0?p(f.items,b):d.clientSearch&&e&&d.useCache===!0?m(e,c,b):a.ajax({url:d.source,type:d.requestMethod,data:i(c),success:function(a){B.data("results",a),m(a,c,b)}})}else C.hide()}function l(a,b){m(a,b,Number.MAX_VALUE)}function m(a,b,c){C.hide();var d=r(a,b,c);p(d,c),o(b,d,a.length)}function n(a){for(var b=0;b<F.length;b++)if(F[b].q==a)return F.unshift(F.splice(b,1)[0]),F[0];return!1}function o(a,b,c){for(;F.length&&G+c>d.maxCacheSize;){var e=F.pop();G-=e.size}F.push({q:a,size:c,items:b}),G+=c}function p(b,c){if(b){if(!b.length)return C.hide(),void 0;b.length<c&&(c=b.length),a.isFunction(d.sort)&&b.sort(function(a,b){return d.sort(a.originalValue[0],b.originalValue[0])}),f(),C.html('');for(var e=0;c>e;e++){for(var g=d.template,h=b[e].value,i=b[e].originalValue,j=b[e].selectedByDefault,k=0;k<i.length;k++){var l="%\\{"+k+"\\}";g=g.replace(new RegExp(l,"g"),i[k])}for(var m=0;m<h.length;m++){var n="\\{"+m+"\\}";g=g.replace(new RegExp(n,"g"),h[m])}g=g.replace(new RegExp("<(?=/?script)","g"),'&lt');var o=a('<li>'+g+'</li>');''!=d.liClass&&o.addClass(d.liClass),(j||b.length<=1)&&o.addClass(d.selectClass),o.data('key',b[e].key),o.data('value',i[0]),o.data('record',i),C.append(o)}C.show(),C.children('li').mouseover(function(){C.children('li').removeClass(d.selectClass),a(this).addClass(d.selectClass)}).click(function(a){a.preventDefault(),a.stopPropagation(),x.apply(this)}),z()}}function q(a){p(a,Number.MAX_VALUE)}function r(b,c,e){var f=d.transformData?d.transformData(b):b;return a.isArray(f)?s(f,c,e):t(f,c,e)}function s(c,f,g){var h=new RegExp(e(f),'ig');return c.map(b.partial(u,b,h)).filter(function(a){var b=a.value.some(function(a){return a.match(h)||!d.clientSearch});return b&&a.value.length>0}).slice(0,g).map(function(c){return c.value=c.value.map(b.partial(v,b,h)).filter(function(b){return a.trim(b)}),c})}function t(a,b,c){if(a&&"string"==typeof a&&0!=a.length){var e=a.split(d.delimiter);return s(e,b,c)}return[]}function u(b,c){var e=a.isArray(b)?b:a.trim(b).split(d.dataDelimiter),f=e.slice(0,Math.max(e.length-1,1)),g=e.length>1?e.last():'',h=f.some(function(a){var b=a.match(c);return b&&b[0].length==a});return{value:f,key:g,originalValue:e,selectedByDefault:h}}function v(b,c){function e(b){return b.contents().map(function(){var b;return 3==this.nodeType?this.data.replace(c,'<span class="'+d.matchClass+'">$&</span>'):(a(this).html(e(a(this),c)),b=a('<div/>',{html:this}),b.html())}).toArray().join('')}var f=a('<div/>',{html:b});return e(f)}function w(){if(!C.is(':visible'))return!1;var a=C.children('li.'+d.selectClass);return a.length||(a=!1),a}function x(){var b=a(this);y(B,b.data("value")),C.hide(),B.focus(),a(document.body).off('click.suggestPlugin'),a(d.dataContainer)&&a(d.dataContainer).attr("value",b.data("key")),d.onSelect&&d.onSelect.call(B[0],b.data("key"),b.data("value"))}function y(a,b){var c=d.multipleSeparator,e,f;d.multiple?(e=a.val().split(c).slice(0,-1),f=e.concat([b,'']).join(c)):f=b,a.val(f)}function z(){var a=w();a?a.removeClass(d.selectClass).next().addClass(d.selectClass):C.children('li:first-child').addClass(d.selectClass)}function A(){var a=w();a?a.removeClass(d.selectClass).prev().addClass(d.selectClass):C.children('li:last-child').addClass(d.selectClass)}var B=a(c).attr("autocomplete","off"),C,D=!1,E=0,F=[],G=0;a.isArray(d.source)&&(B.data("results",d.source),d.clientSearch=!0),d.attachObject||(d.attachObject=a(document.createElement("ul")).appendTo('body')),C=a(d.attachObject),C.addClass(d.resultsClass),f(),a(window).load(f).resize(f),B.focus(function(){var b=B.closest('.j-js-picker-container')[0];a(document.body).off('click.suggestPlugin').on('click.suggestPlugin',function(c){b&&!a.contains(b,c.target)&&(a(document.body).off('click.suggestPlugin'),C.hide())})});try{C.bgiframe()}catch(H){}B.on("input paste",g)},a.fn.suggest=function(b,c){return b?(c=c||{},c.source=b,c.delay=c.delay||150,c.resultsClass=c.resultsClass||'ac_results',c.selectClass=c.selectClass||'ac_over',c.matchClass=c.matchClass||'ac_match',c.liClass=c.liClass||'',c.minchars=c.minchars||2,c.delimiter=c.delimiter||'\n',c.onSelect=c.onSelect||!1,c.maxCacheSize=c.maxCacheSize||65536,c.dataDelimiter=c.dataDelimiter||'	',c.dataContainer=c.dataContainer||'#SuggestResult',c.attachObject=c.attachObject||null,c.clientSearch=c.clientSearch||!1,c.template=c.template||"{0}",c.limit=c.limit&&c.limit>0?c.limit:Number.MAX_VALUE,c.multiple=c.multiple||!1,c.multipleSeparator=c.multipleSeparator||", ",c.sort=c.sort||null,c.paramName=c.paramName||'q',c.extraParams=c.extraParams||{},c.requestMethod=c.requestMethod||'GET',c.transformData=c.transformData,c.useCache=c.useCache||!0,c.position=c.position,c.transformParams=c.transformParams||null,this.each(function(){a.suggest(this,c)}),this):void 0}}),define('jive/fresh_action_queue',['jquery'],function(a){return function(b){function c(c,j){function k(){e(c,j)&&c.then(function(){l.resolve.apply(l,arguments)},function(){l.reject.apply(l,arguments)})}var l=new a.Deferred,m=f(g.length,j);return g.push(c),h.push(new Date),i.push(j),c.then(k,k,function(){l.notify.apply(l,arguments)}),b&&m&&d(m.promise,m.time,m.group),l.promise()}function d(a,c,d){var f=new Date,g=f-c;setTimeout(e.bind(null,a,d),Math.max(b-g,0))}function e(a,b){var c=g.lastIndexOf(a),d=f(c,b),e=g.length,j;return c>-1?(d&&(g=g.slice(d.index+1),h=h.slice(d.index+1),i=i.slice(d.index+1)),j=e-g.length,g.splice(c-j,1),h.splice(c-j,1),i.splice(c-j,1),a):void 0}function f(a,b){for(var c=a-1;c>=0;c-=1)if('undefined'==typeof b||i[c]!==b)return{index:c,promise:g[c],time:h[c],group:i[c]}}var g=[],h=[],i=[];return'undefined'==typeof b&&(b=500),{push:c}}}),define('jquery-plugin/jquery.typeAhead',['jquery','jive/accessibility','jquery-ui/jquery.ui.core'],function(a){function b(){return this.ariaParent.is(":focus")}function c(a){return a+h++}function d(b,d){var e=a(b);return e.attr('id')||e.attr('id',c(d)),e.attr('id')}function e(b,c){function e(a,b,c){return a?0>=b?b=c-1:b-=1:b==c-1?b=0:b+=1,b}function h(a){var b=l.getSelectable(),c=b.index(l.getSelected());c=e(a,c,b.length);var d=b.eq(c);return l.setSelected(d),d}function i(a){var b=l.getTabs(),c=b.index(l.getActiveTab());c=e(a,c,b.length);var d=b.eq(c);d.is("a")?d.click():d.find("a").click(),jive.Accessibility.speak(d.text())}function j(){n=!(b.focusWait<=0||b.hasFocus())}function k(){b.keystrokeWait?(p&&clearTimeout(p),p=setTimeout(function(){p=null,b.eventTarget.trigger("keystroke")},b.keystrokeWait)):b.eventTarget.trigger("keystroke")}var l=this,m={focusTarget:c,eventTarget:c,ariaParent:c};b=a.extend({},f,m,b),b.keyEventSource=c,b.iOSorAndroid=/iPhone|iPod|iPad|Android/.test(navigator.userAgent),b.isIE8=!document.addEventListener,this.options=b,this.$suggestBox=a(),d(c,"typeAhead_");var n=!0,o=null,p=null,q=null;j(),c.on("keydown.typeAhead",function r(c){var d,e=a.extend({noPreventDefault:function(){this._noPrevent=!0}},c);c.keyCode==g.UP||c.keyCode==g.DOWN?(d=h(c.keyCode==g.UP?!0:!1),b.eventTarget.trigger("selectionChanged",[l,d,'keystroke']),c.preventDefault()):c.keyCode==g.ENTER||b.chooseOnSpace&&c.keyCode==g.SPACE?(d=l.getSelected(),d.length>0?b.eventTarget.trigger("selectionChosen",[l,d,e]):b.eventTarget.trigger("otherEnter",[l,e]),e.noPrevent||c.preventDefault()):c.keyCode==g.ESCAPE&&l.$suggestBox.is(":visible")&&(b.eventTarget.trigger("close"),c.preventDefault(),c.stopPropagation())}).on("keydown.typeAhead",function s(a){if(a.keyCode==g.TAB&&l.getTabs().length>1&&!n&&(i(a.shiftKey?!0:!1),b.eventTarget.trigger("tabChanged",[l]),a.preventDefault()),b.iOSorAndroid){if(0!==a.keyCode&&a.keyCode<=45&&a.keyCode!=g.SPACE&&a.keyCode!=g.BACKSPACE)return;k()}}).on("keyup.typeAhead",function t(a){0!==a.keyCode&&a.keyCode<=45&&a.keyCode!=g.SPACE&&a.keyCode!=g.BACKSPACE||k()}).on("paste.typeAhead",function u(){k()}).on("input",function(a){b.isIE8||k()}),b.focusTarget.on("focus.typeAhead",function v(a,c){return c?(n=!1,void 0):(b.focusWait>0?(o&&clearTimeout(o),o=setTimeout(function(){n=!1,o=null,b.hasFocus()&&b.eventTarget.trigger("focusWaitFinished",[l])},b.focusWait)):(n=!1,b.eventTarget.trigger("focusWaitFinished",[l])),void 0)}).on("blur.typeAhead",function(){b.suppressBlurEvent||(q&&clearTimeout(q),q=setTimeout(function(){q=null,b.hasFocus()||b.eventTarget.trigger("blurWaitFinished",[l])},b.blurWait),j())}),b.eventTarget.on("close.typeAhead",function w(){b.ariaParent.removeAttr("aria-activedescendant")})}var f={focusWait:400,blurWait:100,suppressBlurEvent:!1,itemSelector:".js-suggestion:visible",tabSelector:"div .js-tab:visible",selectedClass:"j-selected",activeTabClass:"j-active",chooseOnSpace:!1,keystrokeWait:null,hasFocus:b,deselectOnMouseOut:!1},g=a.ui.keyCode,h=0;return e.prototype.setSuggestElement=function i(b){var c=a(b);if(c&&1!=c.length)throw new Error("suggestContext must indicate a single element");if(this.$suggestBox){if(this.$suggestBox.get(0)===c.get(0))return;this.teardown(this.$suggestBox)}if(c){var d=this.options,e=this;this.$suggestBox=c.on("mousemove.typeAhead",d.itemSelector,function(b){var c=a(this),f=e.getSelected();c.length>0&&c.get(0)!=f.get(0)&&(e.setSelected(c),d.eventTarget.trigger("selectionChanged",[e,c,'mouse']))}).on("mousedown.typeAhead",function(b){d.iOSorAndroid||jive.conc.nextTick(function(){var b=a(window).scrollLeft(),c=a(window).scrollTop();d.focusTarget.trigger("focus",[!0]),window.scrollTo(b,c)}),d.eventTarget.trigger("selectionMousedown")}).on("vclick.typeAhead",function(b){var c=a(b.target),f=c.filter(d.itemSelector),g=a.extend({noPreventDefault:function(){this._noPrevent=!0}},b);0==f.length&&(f=c.closest(d.itemSelector)),f.length?d.eventTarget.trigger("selectionChosen",[e,f,g]):d.eventTarget.trigger("otherClick",[e,c,g]),g._noPrevent||b.preventDefault()}),d.deselectOnMouseOut&&this.$suggestBox.on("mouseleave.typeAhead",function(b){a(d.itemSelector).length>0&&(e.setSelected(),d.eventTarget.trigger("selectionChanged",[e,a(),'mouse']))}),this.updateAriaAttributes()}else this.$suggestBox=a()},e.prototype.getSelected=function j(){return this.getSelectable().filter("."+this.options.selectedClass)},e.prototype.getSelectable=function k(){return this.$suggestBox.find(this.options.itemSelector)},e.prototype.getTabs=function l(){return this.$suggestBox.find(this.options.tabSelector)},e.prototype.getActiveTab=function m(){return this.getTabs().filter("."+this.options.activeTabClass)},e.prototype.setSelected=function n(b){if(b&&0!=b.length){if(b=a(b).filter(this.getSelectable()),1!=b.length)throw new Error("toSelect must select exactly 1 selectable element")}else b=a();this.getSelected().removeClass(this.options.selectedClass),b.addClass(this.options.selectedClass),this.updateAriaAttributes()},e.prototype.updateAriaAttributes=function o(){var a=this.options.ariaParent;a.next(':visible').length?a.attr('aria-expanded',!0).attr('aria-busy',!1).attr('aria-activedescendant',d(a.next().find('li.j-selected'),'selected_option_')).attr('aria-owns',d(a.next().find('ul'),'suggestions_')+' '+a.attr('id')):a.attr('aria-busy',!0).attr('aria-expanded',!1).removeAttr('aria-activedescendant').removeAttr('aria-owns')},e.prototype.teardown=function p(b){var c=this.options;b?b=a(b):(b=c.keyEventSource.add(this.$suggestBox).add(c.focusTarget).add(c.ariaParent).add(c.eventTarget),c.keyEventSource.removeData("typeAhead")),b.off(".typeAhead")},a.fn.typeAhead=function(b){return this.each(function(){var c=a(this);c.data("typeAhead")||c.data("typeAhead",new e(b,c))})},a}),define('jquery-plugin/jquery.suggestBox',['jquery','../jive/fresh_action_queue','jquery-plugin/jquery.typeAhead','jquery-plugin/jquery.popover'],function(a,b){function c(a){return a}function d(b,c){return a(b).popover(c),c}function e(c,d){var e=this;c=a.extend(!0,{},f,c),c.input=d,c.popoverOptions.context=d;var g=c.popoverOptions.onClose;c.popoverOptions.onClose=function(){return d.trigger("closed"),g()},c.popoverOptions.returnPopover=!0,c.queryFunc||(c.querySource&&c.querySource.get||console.log("Error: missing querySource.get in options, and no queryFunc supplied",c),c.queryFunc=function h(){return c.querySource.get.call(c.querySource,arguments)}),c.template||console.log("Error: missing template in options",c),this.options=c,d.prop('autocomplete','off').attr('aria-autocomplete','list').attr('aria-haspopup','true'),d.is("[role=combobox]")||d.attr('role','combobox'),this.lastSearchString=null,this.currentPopover=null,this.queue=new b,c.input.typeAhead(c.typeAheadOptions).on("keystroke.suggestBox",function(){e.showPopover(),e.updateClearButton()}).on("focusWaitFinished.suggestBox",function(){e.showPopover()}).on("close.suggestBox",a.proxy(e.destroyPopover,e)).on("tabChanged.suggestBox",function(){e.currentPopover.reposition()}).on("otherClick.suggestBox",function(){jive.conc.nextTick(function(){e.currentPopover.reposition()})}),c.closeOnBlur&&c.input.on("blurWaitFinished.suggestBox",function(a){c.input.trigger("close")}),c.clearButton.length&&(a(c.clearButton).on("click.suggestBox",function(){c.input.val(""),c.input.trigger("keystroke")}),this.updateClearButton())}var f={typeAheadOptions:{keystrokeWait:400},popoverOptions:{focusPopover:!1,onClose:a.noop,addClass:"j-autocomplete",setRole:"listbox"},processResults:c,parseSearchString:c,displayResults:d,displayEmptySearch:!1,closeOnBlur:!0,minChars:2,clearButton:a()};e.prototype.updateClearButton=function g(){this.options.clearButton.length&&(this.options.input.val()?this.options.clearButton.show():this.options.clearButton.hide())},e.prototype.displaySuggestions=function h(b){var c=a.extend({},this.options.popoverOptions);if(this.destroyPopover(),this.options.input.is(':visible')){c=this.options.displayResults(b,c,this.currentPopover),this.currentPopover=c;var d=this.currentPopover.popOver;d.is("[role=listbox]")||0!==d.find("[role=listbox]").length||(console.log("Warning: adding role 'listbox' to results container"),d.attr("role","listbox"));var e=this.options.input.data("typeAhead"),f=e.getSelectable();f.length>0&&0===f.select("option, [role=option]").length&&0===f.parent('[role=option]').length&&(console.log("Warning: selectable elements are not options"),f.attr("role","option")),e.setSuggestElement(d)}},e.prototype.showPopover=function i(){var a=this,b=this.options,c=b.parseSearchString(b.input.val());(null==c||c.length<b.minChars)&&(c="",!b.displayEmptySearch)||null!=this.lastSearchString&&this.lastSearchString==c&&this.isPopoverShowing()||(this.lastSearchString=c,this.queue.push(b.queryFunc(c)).then(function(d){d&&d.trim&&(d=d.trim());var e=b.processResults(d,b.input.data("typeAhead"),c);if(e){var f=b.template(e);f&&f.length?a.displaySuggestions(f):(a.destroyPopover(),console.log("suggestion html empty for results",d,e))}else a.destroyPopover()},function d(){console.log("failed suggestBox query for '"+c+"'",arguments)}))},e.prototype.destroyPopover=function j(a){this.currentPopover&&this.currentPopover.closeFunc&&this.currentPopover.closeFunc(),this.currentPopover=null,a&&'close'===a.type&&(this.lastSearchString=null,a.stopPropagation())},e.prototype.isPopoverShowing=function k(){return null!=this.currentPopover},e.prototype.teardown=function l(){var a=this.options.input;this.destroyPopover(),a.data("typeAhead").teardown(),a.off(".suggestBox"),a.removeData("suggestBox"),this.options.clearButton.off(".suggestBox")},a.fn.suggestBox=function(b){return this.each(function(){var c=a(this);c.data("suggestBox")||c.data("suggestBox",new e(b,c))})}}),function($){$.template=function(a,b){return new $.template.instance(a,b)},$.template.instance=function(a,b){b&&b.regx&&(b.regx=this.regx[b.regx]),this.options=$.extend({compile:!1,regx:this.regx.standard},b||{}),this.html=a,this.options.compile&&this.compile(),this.isTemplate=!0},$.template.regx=$.template.instance.prototype.regx={jsp:/\$\{([\w-]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g,ext:/\{([\w-]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g,jtemplates:/\{\{([\w-]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}\}/g},$.template.regx.standard=$.template.regx.jsp,$.template.helpers=$.template.instance.prototype.helpers={substr:function(a,b,c){return String(a).substr(b,c)},'if':function(value,bool){return console.log(arguments),eval(bool)?value:''}},$.extend($.template.instance.prototype,{apply:function(a){if(this.options.compile)return this.compiled(a);var b=this,c=this.helpers,d=function(d,e,f,g){if(f){if("this."==f.substr(0,5))return b.call(f.substr(5),a[e],a);if(g){var h=/^\s*['"](.*)["']\s*$/;g=g.split(',');for(var i=0,j=g.length;j>i;i++)g[i]=g[i].replace(h,"$1");g=[a[e]].concat(g)}else g=[a[e]];return c[f].apply(c,g)}return void 0!==a[e]?a[e]:""};return this.html.replace(this.options.regx,d)},compile:function(){var sep=$.browser.mozilla?"+":",",fm=this.helpers,fn=function(a,b,c,d){return c?(d=d?','+d:"","this."!=c.substr(0,5)?c="fm."+c+'(':(c='this.call("'+c.substr(5)+'", ',d=", values")):(d='',c="(values['"+b+"'] == undefined ? '' : "),"'"+sep+c+"values['"+b+"']"+d+")"+sep+"'"},body;return $.browser.mozilla?body="this.compiled = function(values){ return '"+this.html.replace(/\\/g,'\\\\').replace(/(\r\n|\n)/g,'\\n').replace(/'/g,"\\'").replace(this.options.regx,fn)+"';};":(body=["this.compiled = function(values){ return ['"],body.push(this.html.replace(/\\/g,'\\\\').replace(/(\r\n|\n)/g,'\\n').replace(/'/g,"\\'").replace(this.options.regx,fn)),body.push("'].join('');};"),body=body.join('')),eval(body),this}})}(jQuery),define("jquery-plugin/jquery.template",["jquery"],function(){}),jQuery.fn.extend({render:function(a,b){var c={},d=null,e=new RegExp('[\'"](.+)[\'"]','mg');return b=b||[],a=jQuery.makeArray(a),this.each(function(f){var g=function(a,b,d){var f=$("<div></div>").append($(b).clone());jQuery.each(a,function(a,b){if(a=''+a,0==a.indexOf('$(')||0==a.indexOf('@(')){var c=e.exec(a);return c[1]&&f.find(c[1]).render(b,{clone:0==a.indexOf('@')}),void 0}});var g='',h=f.html().replace(/%7B/gi,'{').replace(/%7D/gi,'}'),i=function(a,b){if(replacement=g+a,!c[replacement]){if(null!=b&&'object'==typeof b||'array'==typeof b){var d=g;return g=replacement+'.',jQuery.each(b,i),g=d,void 0}c[replacement]=new RegExp('{'+replacement+'}','gm')}var e=c[replacement];h=h.replace(e,b)};jQuery.each(a,i);var j=$(h);return d.beforeUpdate&&d.beforeUpdate(j),d.clone?$(b).after(j):$(b).replaceWith(j),d.afterUpdate&&d.afterUpdate(j),j},h=$(this);if(b.preserve_template&&(b.clone=!0),b.clone)a=jQuery.makeArray(a),$(a.reverse()).each(function(){var a=g(this,h,b);d?d.push(a[0]):d=$(a)}),b.preserve_template||$(this).remove();else{var i=a[f]||a[a.length-1];g(i,h,b)}}),d?this.pushStack(d,'render',this.selector):this}}),define("jquery-plugin/jquery.templates",["jquery"],function(){}),function(a,b){function c(a,b,c){return[parseInt(a[0],10)*(m.test(a[0])?b/100:1),parseInt(a[1],10)*(m.test(a[1])?c/100:1)]}function d(b,c){return parseInt(a.css(b,c),10)||0}a.ui=a.ui||{};var e,f=Math.max,g=Math.abs,h=Math.round,i=/left|center|right/,j=/top|center|bottom/,k=/[\+\-]\d+%?/,l=/^\w+/,m=/%$/,n=a.fn.position;a.position={scrollbarWidth:function(){if(e!==b)return e;var c,d,f=a("<div style='display:block;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),g=f.children()[0];return a("body").append(f),c=g.offsetWidth,f.css("overflow","scroll"),d=g.offsetWidth,c===d&&(d=f[0].clientWidth),f.remove(),e=c-d},getScrollInfo:function(b){var c=b.isWindow?"":b.element.css("overflow-x"),d=b.isWindow?"":b.element.css("overflow-y"),e="scroll"===c||"auto"===c&&b.width<b.element[0].scrollWidth,f="scroll"===d||"auto"===d&&b.height<b.element[0].scrollHeight;return{width:e?a.position.scrollbarWidth():0,height:f?a.position.scrollbarWidth():0}},getWithinInfo:function(b){var c=a(b||window),d=a.isWindow(c[0]);return{element:c,isWindow:d,offset:c.offset()||{left:0,top:0},scrollLeft:c.scrollLeft(),scrollTop:c.scrollTop(),width:d?c.width():c.outerWidth(),height:d?c.height():c.outerHeight()}}},a.fn.position=function(b){if(!b||!b.of)return n.apply(this,arguments);b=a.extend({},b);var e,m,o,p,q,r=a(b.of),s=a.position.getWithinInfo(b.within),t=a.position.getScrollInfo(s),u=r[0],v=(b.collision||"flip").split(" "),w={};return 9===u.nodeType?(m=r.width(),o=r.height(),p={top:0,left:0}):a.isWindow(u)?(m=r.width(),o=r.height(),p={top:r.scrollTop(),left:r.scrollLeft()}):u.preventDefault?(b.at="left top",m=o=0,p={top:u.pageY,left:u.pageX}):(m=r.outerWidth(),o=r.outerHeight(),p=r.offset()),q=a.extend({},p),a.each(["my","at"],function(){var a=(b[this]||"").split(" "),c,d;1===a.length&&(a=i.test(a[0])?a.concat(["center"]):j.test(a[0])?["center"].concat(a):["center","center"]),a[0]=i.test(a[0])?a[0]:"center",a[1]=j.test(a[1])?a[1]:"center",c=k.exec(a[0]),d=k.exec(a[1]),w[this]=[c?c[0]:0,d?d[0]:0],b[this]=[l.exec(a[0])[0],l.exec(a[1])[0]]}),1===v.length&&(v[1]=v[0]),"right"===b.at[0]?q.left+=m:"center"===b.at[0]&&(q.left+=m/2),"bottom"===b.at[1]?q.top+=o:"center"===b.at[1]&&(q.top+=o/2),e=c(w.at,m,o),q.left+=e[0],q.top+=e[1],this.each(function(){var i,j,k=a(this),l=k.outerWidth(),n=k.outerHeight(),u=d(this,"marginLeft"),x=d(this,"marginTop"),y=l+u+d(this,"marginRight")+t.width,z=n+x+d(this,"marginBottom")+t.height,A=a.extend({},q),B=c(w.my,k.outerWidth(),k.outerHeight());"right"===b.my[0]?A.left-=l:"center"===b.my[0]&&(A.left-=l/2),"bottom"===b.my[1]?A.top-=n:"center"===b.my[1]&&(A.top-=n/2),A.left+=B[0],A.top+=B[1],a.support.offsetFractions||(A.left=h(A.left),A.top=h(A.top)),i={marginLeft:u,marginTop:x},a.each(["left","top"],function(c,d){a.ui.position[v[c]]&&a.ui.position[v[c]][d](A,{targetWidth:m,targetHeight:o,elemWidth:l,elemHeight:n,collisionPosition:i,collisionWidth:y,collisionHeight:z,offset:[e[0]+B[0],e[1]+B[1]],my:b.my,at:b.at,within:s,elem:k})}),a.fn.bgiframe&&k.bgiframe(),b.using&&(j=function(a){var c=p.left-A.left,d=c+m-l,e=p.top-A.top,h=e+o-n,i={target:{element:r,left:p.left,top:p.top,width:m,height:o},element:{element:k,left:A.left,top:A.top,width:l,height:n},horizontal:0>d?"left":c>0?"right":"center",vertical:0>h?"top":e>0?"bottom":"middle"};l>m&&g(c+d)<m&&(i.horizontal="center"),n>o&&g(e+h)<o&&(i.vertical="middle"),f(g(c),g(d))>f(g(e),g(h))?i.important="horizontal":i.important="vertical",b.using.call(this,a,i)}),k.offset(a.extend(A,{using:j}))})},a.ui.position={fit:{left:function(a,b){var c=b.within,d=c.isWindow?c.scrollLeft:c.offset.left,e=c.width,g=a.left-b.collisionPosition.marginLeft,h=d-g,i=g+b.collisionWidth-e-d,j;b.collisionWidth>e?h>0&&0>=i?(j=a.left+h+b.collisionWidth-e-d,a.left+=h-j):i>0&&0>=h?a.left=d:h>i?a.left=d+e-b.collisionWidth:a.left=d:h>0?a.left+=h:i>0?a.left-=i:a.left=f(a.left-g,a.left)},top:function(a,b){var c=b.within,d=c.isWindow?c.scrollTop:c.offset.top,e=b.within.height,g=a.top-b.collisionPosition.marginTop,h=d-g,i=g+b.collisionHeight-e-d,j;b.collisionHeight>e?h>0&&0>=i?(j=a.top+h+b.collisionHeight-e-d,a.top+=h-j):i>0&&0>=h?a.top=d:h>i?a.top=d+e-b.collisionHeight:a.top=d:h>0?a.top+=h:i>0?a.top-=i:a.top=f(a.top-g,a.top)}},flip:{left:function(a,b){var c=b.within,d=c.offset.left+c.scrollLeft,e=c.width,f=c.isWindow?c.scrollLeft:c.offset.left,h=a.left-b.collisionPosition.marginLeft,i=h-f,j=h+b.collisionWidth-e-f,k="left"===b.my[0]?-b.elemWidth:"right"===b.my[0]?b.elemWidth:0,l="left"===b.at[0]?b.targetWidth:"right"===b.at[0]?-b.targetWidth:0,m=-2*b.offset[0],n,o;0>i?(n=a.left+k+l+m+b.collisionWidth-e-d,(0>n||n<g(i))&&(a.left+=k+l+m)):j>0&&(o=a.left-b.collisionPosition.marginLeft+k+l+m-f,
(o>0||g(o)<j)&&(a.left+=k+l+m))},top:function(a,b){var c=b.within,d=c.offset.top+c.scrollTop,e=c.height,f=c.isWindow?c.scrollTop:c.offset.top,h=a.top-b.collisionPosition.marginTop,i=h-f,j=h+b.collisionHeight-e-f,k="top"===b.my[1],l=k?-b.elemHeight:"bottom"===b.my[1]?b.elemHeight:0,m="top"===b.at[1]?b.targetHeight:"bottom"===b.at[1]?-b.targetHeight:0,n=-2*b.offset[1],o,p;0>i?(p=a.top+l+m+n+b.collisionHeight-e-d,a.top+l+m+n>i&&(0>p||p<g(i))&&(a.top+=l+m+n)):j>0&&(o=a.top-b.collisionPosition.marginTop+l+m+n-f,a.top+l+m+n>j&&(o>0||g(o)<j)&&(a.top+=l+m+n))}},flipfit:{left:function(){a.ui.position.flip.left.apply(this,arguments),a.ui.position.fit.left.apply(this,arguments)},top:function(){a.ui.position.flip.top.apply(this,arguments),a.ui.position.fit.top.apply(this,arguments)}}},function(){var b,c,d,e,f,g=document.getElementsByTagName("body")[0],h=document.createElement("div");b=document.createElement(g?"div":"body"),d={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},g&&a.extend(d,{position:"absolute",left:"-1000px",top:"-1000px"});for(f in d)b.style[f]=d[f];b.appendChild(h),c=g||document.documentElement,c.insertBefore(b,c.firstChild),h.style.cssText="position: absolute; left: 10.7432222px;",e=a(h).offset().left,a.support.offsetFractions=e>10&&11>e,b.innerHTML="",c.removeChild(b)}(),a.uiBackCompat!==!1&&!function(a){var c=a.fn.position;a.fn.position=function(d){if(!d||!d.offset)return c.call(this,d);var e=d.offset.split(" "),f=d.at.split(" ");return 1===e.length&&(e[1]=e[0]),/^\d/.test(e[0])&&(e[0]="+"+e[0]),/^\d/.test(e[1])&&(e[1]="+"+e[1]),1===f.length&&(/left|center|right/.test(f[0])?f[1]="center":(f[1]=f[0],f[0]="center")),c.call(this,a.extend(d,{at:f[0]+e[0]+" "+f[1]+e[1],offset:b}))}}(jQuery)}(jQuery),define("jquery-ui/jquery.ui.position",["jquery"],function(){}),define('jquery-plugin/jquery.tooltip',['jquery','jquery-plugin/plugin_utils','jquery-ui/jquery.ui.position'],function(a){function b(b,d){if(this.options=a.extend({},a.fn[c].defaults,d||{}),this.element=a(b),!this.element.is('[title], [data-tip]'))throw new Error('Tooltips must have either a title attribute or a data-tip attribute.');this.enable()}var c='tooltip';b.prototype.positionTip=function(){return this.element.data('tip').position({at:this.options.at,collision:this.options.collision,my:this.options.position,of:this.element,offset:this.options.offset}),this},b.prototype.show=function(){if(!this.element.data('tip')){var b=this.options.tip?a(this.options.tip):a('<p id="tooltip" />').html(this.element.attr('title')||'');b.css('visibility','hidden').appendTo('body'),this.element.filter('[title]').each(function(){var b=a(this);b.data('title',b.attr('title')),b.removeAttr('title')}),this.element.data('tip',b),this.positionTip(),this.element.trigger(a.Event('show',{relatedTarget:b[0]})),b.css('visibility','visible').show(),this.element.trigger(a.Event('shown',{relatedTarget:b[0]}))}return this},b.prototype.hide=function(){var b=a.noop;return this.element.data('tip')&&(this.element.trigger(a.Event('hide',{relatedTarget:this.element.data('tip')[0]})),this.element.data('tip').remove(),this.element.removeData('tip'),b=this.element.trigger.bind(this.element,'hidden')),this.element.data('title')&&this.element.attr('title',this.element.data('title')).removeData('title'),b(),this},b.prototype.enable=function(){return this.element.on('mouseout.'+c,this.hide.bind(this)).on('mouseover.'+c,this.show.bind(this)),this},b.prototype.disable=function(){return this.element.off('.'+c),this.hide()},a.pluginUtils.declare('tooltip',b,{at:'right center',collision:'flip',offset:'5 0',position:'left center',tip:''}),a(function(){a("a.tooltip").tooltip()})}),function(a){function b(){return c||(c=a(document.createElement('DIV')),c.attr('id','IELeakGarbageBin').appendTo('body').hide()),c.get(0)}var c;a.fn.trash=function(a){for(var c=b(),d=0,e;null!=(e=this[d]);d++)a&&!jQuery.filter(a,[e]).length||(1===e.nodeType&&(jQuery.cleanData(e.getElementsByTagName("*")),jQuery.cleanData([e])),c.appendChild(e));return c.innerHTML='',this};var d=a.fn.remove;a.fn.removeAndTrash=function(a,b){return b?d.apply(this,arguments):this.trash(a)},a.fn.emptyAndTrash=function(){for(var b=0,c;null!=(c=this[b]);b++)for(;c.firstChild;)a(c.firstChild).trash();return this}}(jQuery),define("jquery-plugin/jquery.trash",["jquery"],function(){}),function(a){a.extend(a.expr[':'],{icontains:function(a,b,c){return(a.textContent||a.innerText||jQuery(a).text()||"").toLowerCase().indexOf(c[3].toLowerCase())>=0}}),a.iterators={getText:function(){return a(this).text()},parseInt:function(a){return parseInt(a,10)}},a.extend({range:function(){if(!arguments.length)return[];var a,b,c;if(1==arguments.length?(a=0,b=arguments[0]-1,c=1):(a=arguments[0],b=arguments[1]-1,c=arguments[2]||1),0>c&&a>=b){c*=-1;var d=a;a=b,b=d,a+=(b-a)%c}for(var e=[],f=a;b>=f;f+=c)e.push(f);return e},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,FORWARD_SLASH:191,BACKWARD_SLASH:220},keyIs:function(b,c){return parseInt(a.keyCode[b.toUpperCase()],10)==parseInt('number'==typeof c?c:c.keyCode,10)},keys:function(a){var b=[];for(k in a)b.push(k);return b},redirect:function(a){return window.location.href=a,a},stop:function(a,b,c){return b&&a.preventDefault(),c&&a.stopPropagation(),b&&!1||!0},basename:function(a){var b=a.split('/');return''===b[b.length]&&s||b.slice(0,b.length).join('/')},filename:function(a){return a.split('/').pop()},filesizeformat:function(a,b){var c=parseInt(a,10),d=b||['byte','bytes','KB','MB','GB'];return isNaN(c)||0===c?'0 '+d[0]:1==c?'1 '+d[0]:1024>c?c.toFixed(2)+' '+d[1]:1048576>c?(c/1024).toFixed(2)+' '+d[2]:1073741824>c?(c/1048576).toFixed(2)+' '+d[3]:(c/1073741824).toFixed(2)+' '+d[4]},fileExtension:function(a){var b=a.split('.');return b[b.length-1]||!1},isString:function(a){return'string'==typeof a&&!0||!1},isRegExp:function(a){return a&&-1!=a.constructor.toString().indexOf('RegExp()')||!1},isArray:function(a){return a?a.constructor&&'[object Array]'===Object.prototype.toString.apply(a.constructor.prototype):!1},isObject:function(a){return'object'==typeof a},toCurrency:function(a){return a=parseFloat(a,10).toFixed(2),'NaN'==a?'0.00':a},pxToEm:function(b,c){c=jQuery.extend({scope:'body',reverse:!1},c);var d=''===b?0:parseFloat(b),e,f=function(){var a=document.documentElement;return self.innerWidth||a&&a.clientWidth||document.body.clientWidth};if('body'==c.scope&&a.browser.msie&&(parseFloat(a('body').css('font-size'))/f()).toFixed(1)>0){var g=function(){return 16*(parseFloat(a('body').css('font-size'))/f()).toFixed(3)};e=g()}else e=parseFloat(jQuery(c.scope).css("font-size"));var h=c.reverse===!0?(d*e).toFixed(2)+'px':(d/e).toFixed(2)+'em';return h}}),a.extend(a.fn,{selectRange:function(b,c){if(a(this).get(0).createTextRange){var d=a(this).get(0).createTextRange();d.collapse(!0),d.moveEnd('character',c),d.moveStart('character',b),d.select()}else a(this).get(0).setSelectionRange&&a(this).bind('focus',function(a){a.preventDefault()}).get(0).setSelectionRange(b,c);return a(this)},equalHeights:function(b){return a(this).each(function(){var c=0;a(this).children().each(function(b){a(this).height()>c&&(c=a(this).height())}),b&&a.pxToEm||(c=a.pxToEm(c)),a.browser.msie&&6==a.browser.version&&a(this).children().css({height:c}),a(this).children().css({'min-height':c})}),this},delay:function(a,b){return jQuery.fx.step.delay=function(){},this.animate({delay:1},a,b)}})}(jQuery),define("jquery-plugin/jquery.utils",["jquery"],function(){}),function(a){a.fn.view=function(a,b){if(!jQuery.isFunction(a))throw"IllegalViewParameterException";if(!b&&a.getBindName&&(b=a.getBindName()),!b)throw"IllegalBindParameterException";var c;if(this.length){var d=this.first();if(c=d.data(b),null==c)c=new a(d.get(0)),d.data(b,c);else if(!(c instanceof a))throw"PropertyAlreadyBoundException"}return c}}(jQuery),define("jquery-plugin/jquery.view",["jquery"],function(){}),function(a){var b={className:'autosizejs',append:'',callback:!1},c='hidden',d='border-box',e='lineHeight',f='<textarea tabindex="-1" style="position:absolute; top:-9999px; left:-9999px; right:auto; bottom:auto; border:0; -moz-box-sizing:content-box; -webkit-box-sizing:content-box; box-sizing:content-box; word-wrap:break-word; height:0 !important; min-height:0 !important; overflow:hidden;"/>',g=['fontFamily','fontSize','fontWeight','fontStyle','letterSpacing','textTransform','wordSpacing','textIndent'],h='oninput',i='onpropertychange',j,k=a(f).data('autosize',!0)[0];k.style.lineHeight='99px','99px'===a(k).css(e)&&g.push(e),k.style.lineHeight='',a.fn.autosize=function(e){return e=a.extend({},b,e||{}),k.parentNode!==document.body&&a(document.body).append(k),this.each(function(){function b(){j=l,k.className=e.className,a.each(g,function(a,b){k.style[b]=m.css(b)})}function f(){var a,d,f;if(j!==l&&b(),!o){o=!0,k.value=l.value+e.append,k.style.overflowY=l.style.overflowY,f=parseInt(l.style.height,10),k.style.width=Math.max(m.width(),0)+'px',k.scrollTop=0,k.scrollTop=9e4,a=k.scrollTop;var g=parseInt(m.css('maxHeight'),10);g=g&&g>0?g:9e4,a>g?(a=g,d='scroll'):n>a&&(a=n),a+=q,l.style.overflowY=d||c,f!==a&&(l.style.height=a+'px',r&&e.callback.call(l)),setTimeout(function(){o=!1},1)}}var l=this,m=a(l),n,o,p,q=0,r=a.isFunction(e.callback);m.data('autosize')||(n=parseInt(m.css('minHeight'),10)||m.height(),m.css('box-sizing')!==d&&m.css('-moz-box-sizing')!==d&&m.css('-webkit-box-sizing')!==d||(q=m.outerHeight()-m.height()),p='none'===m.css('resize')||'vertical'===m.css('resize')?'none':'horizontal',m.css({overflow:c,overflowY:c,wordWrap:'break-word',resize:p}).data('autosize',!0),i in l?h in l?l[h]=l.onkeyup=f:l[i]=f:l[h]=f,a(window).resize(f),m.bind('autosize',f),f())})}}(window.jQuery||window.Zepto),define("vendor/jquery/plugins/jquery.autosize",["jquery"],function(){}),function(jQuery,a,b){"use strict";var c,d;if(jQuery.uaMatch=function(a){a=a.toLowerCase();var b=/(opr)[\/]([\w.]+)/.exec(a)||/(chrome)[ \/]([\w.]+)/.exec(a)||/(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[],c=/(ipad)/.exec(a)||/(iphone)/.exec(a)||/(android)/.exec(a)||/(windows phone)/.exec(a)||/(win)/.exec(a)||/(mac)/.exec(a)||/(linux)/.exec(a)||/(cros)/i.exec(a)||[];return{browser:b[3]||b[1]||"",version:b[2]||"0",platform:c[0]||""}},c=jQuery.uaMatch(a.navigator.userAgent),d={},c.browser&&(d[c.browser]=!0,d.version=c.version,d.versionNumber=parseInt(c.version)),c.platform&&(d[c.platform]=!0),(d.android||d.ipad||d.iphone||d["windows phone"])&&(d.mobile=!0),(d.cros||d.mac||d.linux||d.win)&&(d.desktop=!0),(d.chrome||d.opr||d.safari)&&(d.webkit=!0),d.rv){var e="msie";c.browser=e,d[e]=!0}if(d.opr){var f="opera";c.browser=f,d[f]=!0}if(d.safari&&d.android){var g="android";c.browser=g,d[g]=!0}d.name=c.browser,d.platform=c.platform,jQuery.browser=d}(jQuery,window),define("vendor/jquery/plugins/jquery.browser",["jquery"],function(){}),function(a,b){'$:nomunge';function c(a){return'string'==typeof a}function d(a){var b=k.call(arguments,1);return function(){return a.apply(this,b.concat(k.call(arguments)))}}function e(a){return a.replace(/^[^#]*#?(.*)$/,'$1')}function f(a){return a.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,'$1')}function g(d,e,f,g,h){var i,k,n,p,q;return g!==j?(n=f.match(d?/^([^#]*)\#?(.*)$/:/^([^#?]*)\??([^#]*)(#?.*)/),q=n[3]||'',2===h&&c(g)?k=g.replace(d?D:C,''):(p=o(n[2]),g=c(g)?o[d?x:w](g):g,k=2===h?g:1===h?a.extend({},g,p):a.extend({},p,g),k=m(k),d&&(k=k.replace(E,l))),i=n[1]+(d?'#':k||!n[1]?'?':'')+k+q):i=e(f!==j?f:b[z][A]),i}function h(a,b,d){return b===j||'boolean'==typeof b?(d=b,b=m[a?x:w]()):b=c(b)?b.replace(a?D:C,''):b,o(b,d)}function i(b,d,e,f){return c(e)||'object'==typeof e||(f=e,e=d,d=j),this.each(function(){var c=a(this),g=d||t()[(this.nodeName||'').toLowerCase()]||'',h=g&&c.attr(g)||'';c.attr(g,m[b](h,e,f))})}var j,k=Array.prototype.slice,l=decodeURIComponent,m=a.param,n,o,p,q=a.bbq=a.bbq||{},r,s,t,u=a.event.special,v='hashchange',w='querystring',x='fragment',y='elemUrlAttr',z='location',A='href',B='src',C=/^.*\?|#.*$/g,D=/^.*\#/,E,F={};m[w]=d(g,0,f),m[x]=n=d(g,1,e),n.noEscape=function(b){b=b||'';var c=a.map(b.split(''),encodeURIComponent);E=new RegExp(c.join('|'),'g')},n.noEscape(',/'),a.deparam=o=function(b,c){var d={},e={'true':!0,'false':!1,'null':null};return a.each(b.replace(/\+/g,' ').split('&'),function(b,f){var g=f.split('='),h=l(g[0]),i,k=d,m=0,n=h.split(']['),o=n.length-1;if(/\[/.test(n[0])&&/\]$/.test(n[o])?(n[o]=n[o].replace(/\]$/,''),n=n.shift().split('[').concat(n),o=n.length-1):o=0,2===g.length)if(i=l(g[1]),c&&(i=i&&!isNaN(i)?+i:'undefined'===i?j:e[i]!==j?e[i]:i),o)for(;o>=m;m++)h=''===n[m]?k.length:n[m],k=k[h]=o>m?k[h]||(n[m+1]&&isNaN(n[m+1])?{}:[]):i;else a.isArray(d[h])?d[h].push(i):d[h]!==j?d[h]=[d[h],i]:d[h]=i;else h&&(d[h]=c?j:'')}),d},o[w]=d(h,0),o[x]=p=d(h,1),a[y]||(a[y]=function(b){return a.extend(F,b)})({a:A,base:A,iframe:B,img:B,input:B,form:'action',link:A,script:B}),t=a[y],a.fn[w]=d(i,w),a.fn[x]=d(i,x),q.pushState=r=function(a,d){c(a)&&/^#/.test(a)&&d===j&&(d=2);var e=a!==j,f=n(b[z][A],e?a:{},e?d:2);b[z][A]=f+(/#/.test(f)?'':'#')},q.getState=s=function(a,b){return a===j||'boolean'==typeof a?p(a):p(b)[a]},q.removeState=function(b){var c={};b!==j&&(c=s(),a.each(a.isArray(b)?b:arguments,function(a,b){delete c[b]})),r(c,2)},u[v]=a.extend(u[v],{add:function(b){function c(a){var b=a[x]=n();a.getState=function(a,c){return a===j||'boolean'==typeof a?o(b,a):o(b,c)[a]},d.apply(this,arguments)}var d;return a.isFunction(b)?(d=b,c):(d=b.handler,b.handler=c,void 0)}})}(jQuery,this),function(a,b,c){'$:nomunge';function d(a){return a=a||b[g][i],a.replace(/^[^#]*#?(.*)$/,'$1')}var e,f=a.event.special,g='location',h='hashchange',i='href',j=a.browser,k=document.documentMode,l=j.msie&&(k===c||8>k),m='on'+h in b&&!l;a[h+'Delay']=100,f[h]=a.extend(f[h],{setup:function(){return m?!1:(a(e.start),void 0)},teardown:function(){return m?!1:(a(e.stop),void 0)}}),e=function(){function c(){k=m=function(a){return a},l&&(j=a('<iframe src="javascript:0"/>').hide().insertAfter('body')[0].contentWindow,m=function(){return d(j.document[g][i])},k=function(a,b){if(a!==b){var c=j.document;c.open().close(),c[g].hash='#'+a}},k(d()))}var e={},f,j,k,m;return e.start=function(){if(!f){var e=d();k||c(),function j(){var c=d(),l=m(e);c!==e?(k(e=c,l),a(b).trigger(h)):l!==e&&(b[g][i]=b[g][i].replace(/#.*/,'')+'#'+l),f=setTimeout(j,a[h+'Delay'])}()}},e.stop=function(){j||(f&&clearTimeout(f),f=0)},e}()}(jQuery,this),define("vendor/jquery/plugins/jquery.ba-bbq",["jquery","vendor/jquery/plugins/jquery.browser"],function(){}),function(a){a.fn.endlessScroll=function(b){var c={bottomPixels:50,fireOnce:!0,fireDelay:150,loader:"<br />Loading...<br />",data:"",insertAfter:"div:last",resetCounter:function(){return!1},callback:function(){return!0},ceaseFire:function(){return!1}},b=a.extend({},c,b),d=!0,e=!1,f=0;b.ceaseFire.apply(this)===!0&&(d=!1),d===!0&&a(this).scroll(function(){if(b.ceaseFire.apply(this)===!0)return d=!1,void 0;if(this==document||this==window)var c=a(document).height()-a(window).height()<=a(window).scrollTop()+b.bottomPixels;else{var g=a(".endless_scroll_inner_wrap",this);0==g.length&&(g=a(this).wrapInner("<div class=\"endless_scroll_inner_wrap\" />").find(".endless_scroll_inner_wrap"));var c=g.length>0&&g.height()-a(this).height()<=a(this).scrollTop()+b.bottomPixels}c&&(0==b.fireOnce||1==b.fireOnce&&1!=e)&&(b.resetCounter.apply(this)===!0&&(f=0),e=!0,f++,a(b.insertAfter).after("<div id=\"endless_scroll_loader\">"+b.loader+"</div>"),data='function'==typeof b.data?b.data.apply(this,[f]):b.data,data!==!1&&(a(b.insertAfter).after("<div id=\"endless_scroll_data\">"+data+"</div>"),a("div#endless_scroll_data").hide().fadeIn(),a("div#endless_scroll_data").removeAttr("id"),b.callback.apply(this,[f]),b.fireDelay!==!1||0!==b.fireDelay?(a("body").after("<div id=\"endless_scroll_marker\"></div>"),a("div#endless_scroll_marker").fadeTo(b.fireDelay,1,function(){a(this).remove(),e=!1})):e=!1),a("div#endless_scroll_loader").remove())})}}(jQuery),define("vendor/jquery/plugins/jquery.endless-scroll",["jquery"],function(){}),function(a){'function'==typeof define&&define.amd?define('vendor/jquery/plugins/jquery.exists',["jquery"],a):a(jQuery)}(function(a){"use strict";var b=a(window)[0],c=a(document)[0],d=a("html")[0];a.fn.exists=function(a){var e,f,g=this.length,h=!1;for(a="string"==typeof a?a:"html";g--;)if(e=this.eq(g),f=e[0],f!==c&&f!==b&&f!==d){if(!(e.parents(a).length>0)){h=!1;break}h=!0}else h=!0;return h}}),function(a){function b(){}function c(a){B=[a]}function d(a,b,c){return a&&a.apply(b.context||b,c)}function e(a){return/\?/.test(a)?"&":"?"}function f(f){function m(a){T++||(U(),N&&(z[P]={s:[a]}),J&&(a=J.apply(f,[a])),d(G,f,[a,u,f]),d(I,f,[f,u]))}function F(a){T++||(U(),N&&a!=v&&(z[P]=a),d(H,f,[f,a]),d(I,f,[f,a]))}f=a.extend({},C,f);var G=f.success,H=f.error,I=f.complete,J=f.dataFilter,K=f.callbackParameter,L=f.callback,M=f.cache,N=f.pageCache,O=f.charset,P=f.url,Q=f.data,R=f.timeout,S,T=0,U=b,V,W,X,Y,Z,$;return x&&x(function(a){a.done(G).fail(H),G=a.resolve,H=a.reject}).promise(f),f.abort=function(){!T++&&U()},d(f.beforeSend,f,[f])===!1||T?f:(P=P||i,Q=Q?"string"==typeof Q?Q:a.param(Q,f.traditional):i,P+=Q?e(P)+Q:i,K&&(P+=e(P)+encodeURIComponent(K)+"=?"),!M&&!N&&(P+=e(P)+"_"+(new Date).getTime()+"="),P=P.replace(/=\?(&|$)/,"="+L+"$1"),N&&(S=z[P])?S.s?m(S.s[0]):F(S):(w[L]=c,Y=a(t)[0],Y.id=l+A++,O&&(Y[h]=O),D&&D.version()<11.6?(Z=a(t)[0]).text="document.getElementById('"+Y.id+"')."+o+"()":Y[g]=g,E&&(Y.htmlFor=Y.id,Y.event=n),Y[p]=Y[o]=Y[q]=function(a){if(!Y[r]||!/i/.test(Y[r])){try{Y[n]&&Y[n]()}catch(b){}a=B,B=0,a?m(a[0]):F(j)}},Y.src=P,U=function(a){$&&clearTimeout($),Y[q]=Y[p]=Y[o]=null,y[s](Y),Z&&y[s](Z)},y[k](Y,X=y.firstChild),Z&&y[k](Z,X),$=R>0&&setTimeout(function(){F(v)},R)),f)}var g="async",h="charset",i="",j="error",k="insertBefore",l="_jqjsp",m="on",n=m+"click",o=m+j,p=m+"load",q=m+"readystatechange",r="readyState",s="removeChild",t="<script>",u="success",v="timeout",w=window,x=a.Deferred,y=a("head")[0]||document.documentElement,z={},A=0,B,C={callback:l,url:location.href},D=w.opera,E=!!a("<div>").html("<!--[if IE]><i><![endif]-->").find("i").length;f.setup=function(b){a.extend(C,b)},a.jsonp=f}(jQuery),define("vendor/jquery/plugins/jquery.jsonp",["jquery"],function(){}),function(a){'use strict';'function'==typeof define&&define.amd?define('vendor/jquery/plugins/jquery.scrollTo',['jquery'],a):'undefined'!=typeof module&&module.exports?module.exports=a(require('jquery')):a(jQuery)}(function(a){'use strict';function b(b){return!b.nodeName||-1!==a.inArray(b.nodeName.toLowerCase(),['iframe','#document','html','body'])}function c(b){return a.isFunction(b)||a.isPlainObject(b)?b:{top:b,left:b}}var d=a.scrollTo=function(b,c,d){return a(window).scrollTo(b,c,d)};return d.defaults={axis:'xy',duration:0,limit:!0},a.fn.scrollTo=function(e,f,g){'object'==typeof f&&(g=f,f=0),'function'==typeof g&&(g={onAfter:g}),'max'===e&&(e=9e9),g=a.extend({},d.defaults,g),f=f||g.duration;var h=g.queue&&g.axis.length>1;return h&&(f/=2),g.offset=c(g.offset),g.over=c(g.over),this.each(function(){function i(b){var c=a.extend({},g,{queue:!0,duration:f,complete:b&&function(){b.call(k,m,g)}});l.animate(n,c)}if(null!==e){var j=b(this),k=j?this.contentWindow||window:this,l=a(k),m=e,n={},o;switch(typeof m){case'number':case'string':if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(m)){m=c(m);break}m=j?a(m):a(m,k);case'object':if(0===m.length)return;(m.is||m.style)&&(o=(m=a(m)).offset())}var p=a.isFunction(g.offset)&&g.offset(k,m)||g.offset;a.each(g.axis.split(''),function(a,b){var c='x'===b?'Left':'Top',e=c.toLowerCase(),f='scroll'+c,q=l[f](),r=d.max(k,b);if(o)n[f]=o[e]+(j?0:q-l.offset()[e]),g.margin&&(n[f]-=parseInt(m.css('margin'+c),10)||0,n[f]-=parseInt(m.css('border'+c+'Width'),10)||0),n[f]+=p[e]||0,g.over[e]&&(n[f]+=m['x'===b?'width':'height']()*g.over[e]);else{var s=m[e];n[f]=s.slice&&'%'===s.slice(-1)?parseFloat(s)/100*r:s}g.limit&&/^\d+$/.test(n[f])&&(n[f]=n[f]<=0?0:Math.min(n[f],r)),!a&&g.axis.length>1&&(q===n[f]?n={}:h&&(i(g.onAfterFirst),n={}))}),i(g.onAfter)}})},d.max=function(c,d){var e='x'===d?'Width':'Height',f='scroll'+e;if(!b(c))return c[f]-a(c)[e.toLowerCase()]();var g='client'+e,h=c.ownerDocument||c.document,i=h.documentElement,j=h.body;return Math.max(i[f],j[f])-Math.min(i[g],j[g])},a.Tween.propHooks.scrollLeft=a.Tween.propHooks.scrollTop={get:function(b){return a(b.elem)[b.prop]()},set:function(b){var c=this.get(b);if(b.options.interrupt&&b._last&&b._last!==c)return a(b.elem).stop();var d=Math.round(b.now);c!==d&&(a(b.elem)[b.prop](d),b._last=this.get(b))}},d}),function($){$.extend({tablesorter:new function(){function log(a){"undefined"!=typeof console&&"undefined"!=typeof console.debug?console.log(a):alert(a)}function benchmark(a,b){log(a+","+((new Date).getTime()-b.getTime())+"ms")}function getElementText(a,b){var c="";return b?(a.supportsTextContent||(a.supportsTextContent=b.textContent||!1),c="simple"===a.textExtraction?a.supportsTextContent?b.textContent:b.childNodes[0]&&b.childNodes[0].hasChildNodes()?b.childNodes[0].innerHTML:b.innerHTML:"function"==typeof a.textExtraction?a.textExtraction(b):$(b).text(),c):""}function getParserById(a){var b,c=parsers.length;for(b=0;c>b;b++)if(parsers[b].id.toLowerCase()===a.toLowerCase())return parsers[b];return!1}function getNodeFromRowAndCellIndex(a,b,c){return a[b].cells[c]}function trimAndGetNodeText(a,b){return $.trim(getElementText(a,b))}function detectParserForColumn(a,b,c,d){for(var e,f=parsers.length,g=!1,h='',i=!0;''===h&&i;)c++,b[c]?(g=getNodeFromRowAndCellIndex(b,c,d),h=trimAndGetNodeText(a.config,g),a.config.debug&&log('Checking if value was empty on row:'+c)):i=!1;for(e=1;f>e;e++)if(parsers[e].is(h,a,g))return parsers[e];return parsers[0]}function buildParserCache(a,b){if(0!==a.tBodies.length){var c=a.tBodies[0].rows,d,e,f,g,h,i="";if(c[0])for(d=[],e=c[0].cells,f=e.length,g=0;f>g;g++)h=!1,$.metadata&&$(b[g]).metadata()&&$(b[g]).metadata().sorter?h=getParserById($(b[g]).metadata().sorter):a.config.headers[g]&&a.config.headers[g].sorter&&(h=getParserById(a.config.headers[g].sorter)),h||(h=detectParserForColumn(a,c,-1,g)),a.config.debug&&(i+="column:"+g+" parser:"+h.id+"\n"),d.push(h);return a.config.debug&&log(i),d}}function buildCache(a){var b=a.tBodies[0]&&a.tBodies[0].rows.length||0,c=a.tBodies[0].rows[0]&&a.tBodies[0].rows[0].cells.length||0,d=a.config.parsers,e={row:[],normalized:[]},f,g,h,i,j;for(a.config.debug&&(j=new Date),f=0;b>f;++f)if(h=$(a.tBodies[0].rows[f]),i=[],h.hasClass(a.config.cssChildRow))e.row[e.row.length-1]=e.row[e.row.length-1].add(h);else{for(e.row.push(h),g=0;c>g;++g)i.push(d[g].format(getElementText(a.config,h[0].cells[g]),a,h[0].cells[g]));i.push(e.normalized.length),e.normalized.push(i),i=null}return a.config.debug&&benchmark("Building cache for "+b+" rows:",j),e}function getWidgetById(a){var b,c=widgets.length;for(b=0;c>b;b++)if(widgets[b].id.toLowerCase()===a.toLowerCase())return widgets[b]}function applyWidget(a){var b=a.config.widgets,c,d=b.length;for(c=0;d>c;c++)getWidgetById(b[c]).format(a)}function appendToTable(a,b){var c=b,d=c.row,e=c.normalized,f=e.length,g=e[0].length-1,h=$(a.tBodies[0]),i=[],j,k,l,m,n;for(a.config.debug&&(n=new Date),j=0;f>j;j++)if(m=e[j][g],i.push(d[m]),!a.config.appender)for(l=d[m].length,k=0;l>k;k++)h[0].appendChild(d[m][k]);a.config.appender&&a.config.appender(a,i),i=null,a.config.debug&&benchmark("Rebuilt table:",n),applyWidget(a),setTimeout(function(){$(a).trigger("sortEnd")},0)}function computeTableHeaderCellIndexes(a){var b=[],c={},d=a.getElementsByTagName('THEAD')[0],e=d.getElementsByTagName('TR'),f,g,h,i,j,k,l,m,n,o,p,q;for(f=0;f<e.length;f++)for(k=e[f].cells,g=0;g<k.length;g++){for(j=k[g],l=j.parentNode.rowIndex,m=l+"-"+j.cellIndex,n=j.rowSpan||1,o=j.colSpan||1,"undefined"==typeof b[l]&&(b[l]=[]),h=0;h<b[l].length+1;h++)if("undefined"==typeof b[l][h]){p=h;break}for(c[m]=p,h=l;l+n>h;h++)for("undefined"==typeof b[h]&&(b[h]=[]),q=b[h],i=p;p+o>i;i++)q[i]="x"}return c}function formatSortingOrder(a){return"Number"!=typeof a?"desc"===a.toLowerCase()?1:0:1===a?1:0}function checkHeaderMetadata(a){return $.metadata&&$(a).metadata().sorter===!1}function checkHeaderOptions(a,b){return a.config.headers[b]&&a.config.headers[b].sorter===!1}function checkHeaderOptionsSortingLocked(a,b){return a.config.headers[b]&&a.config.headers[b].lockedOrder?a.config.headers[b].lockedOrder:!1}function buildHeaders(a){var b=!!$.metadata,c=computeTableHeaderCellIndexes(a),d,e;return a.config.debug&&(d=new Date),e=$(a.config.selectorHeaders,a).wrapInner("<span/>").each(function(b){if(this.column=c[this.parentNode.rowIndex+"-"+this.cellIndex],this.order=formatSortingOrder(a.config.sortInitialOrder),this.count=this.order,(checkHeaderMetadata(this)||checkHeaderOptions(a,b))&&(this.sortDisabled=!0),checkHeaderOptionsSortingLocked(a,b)&&(this.order=this.lockedOrder=checkHeaderOptionsSortingLocked(a,b)),!this.sortDisabled){var d=$(this).addClass(a.config.cssHeader);a.config.onRenderHeader&&a.config.onRenderHeader.apply(d)}a.config.headerList[b]=this}),a.config.debug&&(benchmark("Built headers:",d),log(e)),e}function checkCellColSpan(a,b,c){var d,e,f=[],g=a.tHead.rows,h=g[c].cells;for(d=0;d<h.length;d++)e=h[d],e.colSpan>1?f=f.concat(checkCellColSpan(a,b,c++)):(1===a.tHead.length||e.rowSpan>1||!g[c+1])&&f.push(e);return f}function isValueInArray(a,b){var c,d=b.length;for(c=0;d>c;c++)if(b[c][0]===a)return!0;return!1}function setHeadersCss(a,b,c,d){b.removeClass(d[0]).removeClass(d[1]);var e=[],f,g;for(b.each(function(a){this.sortDisabled||(e[this.column]=$(this))}),g=c.length,f=0;g>f;f++)e[c[f][0]].addClass(d[c[f][1]])}function fixColumnWidth(a,b){var c=a.config,d;c.widthFixed&&(d=$('<colgroup>'),$("tr:first td",a.tBodies[0]).each(function(){d.append($('<col>').css('width',$(this).width()))}),$(a).prepend(d))}function updateHeaderSortCount(a,b){var c,d,e,f=a.config,g=b.length;for(c=0;g>c;c++)d=b[c],e=f.headerList[d[0]],e.count=d[1],e.count++}function getCachedSortType(a,b){return a[b].type}function multisort(table,sortList,cache){var dynamicExp="var sortWrapper = function(a,b) {",l=sortList.length,sortTime,i,c,s,e,order,orgOrderCol;for(table.config.debug&&(sortTime=new Date),i=0;l>i;i++)c=sortList[i][0],order=sortList[i][1],s="text"===getCachedSortType(table.config.parsers,c)?0===order?"sortText":"sortTextDesc":0===order?"sortNumeric":"sortNumericDesc",e="e"+i,dynamicExp+="var "+e+" = "+s+"(a["+c+"],b["+c+"]); ",dynamicExp+="if ("+e+") { return "+e+"; } ",dynamicExp+="else { ";for(orgOrderCol=cache.normalized[0].length-1,dynamicExp+="return a["+orgOrderCol+"]-b["+orgOrderCol+"];",i=0;l>i;i++)dynamicExp+="}; ";return dynamicExp+="return 0; ",dynamicExp+="}; ",eval(dynamicExp),cache.normalized.sort(sortWrapper),table.config.debug&&benchmark("Sorting on "+sortList.toString()+" and dir "+order+" time:",sortTime),cache}function sortText(a,b){if($.data(tbl[0],"tablesorter").sortLocaleCompare)return a.localeCompare(b);if(a===b)return 0;try{for(var c=0,d,e,f=/^(\.)?\d/,g=Math.min(a.length,b.length)+1;g>c&&a.charAt(c)===b.charAt(c)&&f.test(b.substring(c))===!1&&f.test(a.substring(c))===!1;)c++;if(a=a.substring(c),b=b.substring(c),f.test(a)||f.test(b)){if(f.test(a)===!1)return a?1:-1;if(f.test(b)===!1)return b?-1:1;if(e=parseFloat(a)-parseFloat(b),0!==e)return e;e=a.search(/[^\.\d]/),-1===e&&(e=b.search(/[^\.\d]/)),a=a.substring(e),b=b.substring(e)}return a>b?1:-1}catch(h){return 0}}function sortTextDesc(a,b){return $.data(tbl[0],"tablesorter").sortLocaleCompare?b.localeCompare(a):-sortText(a,b)}function sortNumeric(a,b){return a-b}function sortNumericDesc(a,b){return b-a}var parsers=[],widgets=[],tbl;this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",cssChildRow:"expand-child",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,sortLocaleCompare:!1,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:!1,cancelSelection:!0,sortList:[],headerList:[],dateFormat:"us",decimal:/\.|\,/g,onRenderHeader:null,selectorHeaders:'thead th',tableClass:'tablesorter',debug:!1},this.benchmark=benchmark,this.construct=function(a){return this.each(function(){if(this.tHead&&this.tBodies){var b,c,d,e,f,g=0,h,i,j,k,l,m,n,o,p;this.config={},f=$.extend(this.config,$.tablesorter.defaults,a),tbl=b=$(this).addClass(this.config.tableClass),$.data(this,"tablesorter",f),d=buildHeaders(this),this.config.parsers=buildParserCache(this,d),e=buildCache(this),i=[f.cssDesc,f.cssAsc],fixColumnWidth(this),d.click(function(a){if(j=b[0].tBodies[0]&&b[0].tBodies[0].rows.length||0,!this.sortDisabled&&j>0){if(b.trigger("sortStart"),k=$(this),l=this.column,this.order=this.count++%2,this.lockedOrder&&(this.order=this.lockedOrder),a[f.sortMultiSortKey])if(isValueInArray(l,f.sortList))for(m=0;m<f.sortList.length;m++)o=f.sortList[m],p=f.headerList[o[0]],o[0]===l&&(p.count=o[1],p.count++,o[1]=p.count%2);else f.sortList.push([l,this.order]);else{if(f.sortList=[],null!==f.sortForce)for(n=f.sortForce,m=0;m<n.length;m++)n[m][0]!==l&&f.sortList.push(n[m]);f.sortList.push([l,this.order])}return setTimeout(function(){setHeadersCss(b[0],d,f.sortList,i),appendToTable(b[0],multisort(b[0],f.sortList,e))},1),!1}}).mousedown(function(){return f.cancelSelection?(this.onselectstart=function(){return!1},!1):void 0}),b.bind("update",function(){var a=this;setTimeout(function(){a.config.parsers=buildParserCache(a,d),e=buildCache(a)},1)}).bind("updateCell",function(a,b){var c=this.config,d=[b.parentNode.rowIndex-1,b.cellIndex];e.normalized[d[0]][d[1]]=c.parsers[d[1]].format(getElementText(c,b),b)}).bind("sorton",function(a,b){$(this).trigger("sortStart"),f.sortList=b;var c=f.sortList;updateHeaderSortCount(this,c),setHeadersCss(this,d,c,i),appendToTable(this,multisort(this,c,e))}).bind("appendCache",function(){appendToTable(this,e)}).bind("applyWidgetId",function(a,b){getWidgetById(b).format(this)}).bind("applyWidgets",function(){applyWidget(this)}),$.metadata&&$(this).metadata()&&$(this).metadata().sortlist&&(f.sortList=$(this).metadata().sortlist),f.sortList.length>0&&b.trigger("sorton",[f.sortList]),applyWidget(this)}})},this.addParser=function(a){var b,c=parsers.length,d=!0;for(b=0;c>b;b++)parsers[b].id.toLowerCase()===a.id.toLowerCase()&&(d=!1);d&&parsers.push(a)},this.addWidget=function(a){widgets.push(a)},this.formatFloat=function(a){var b=parseFloat(a);return isNaN(b)?0:b},this.formatInt=function(a){var b=parseInt(a,10);return isNaN(b)?0:b},this.isDigit=function(a,b){return/^[\-+]?\d*$/.test($.trim(a.replace(/[,.']/g,'')))},this.clearTableBody=function(a){if($.browser.msie){var b=function(){for(;this.firstChild;)this.removeChild(this.firstChild)};b.apply(a.tBodies[0])}else a.tBodies[0].innerHTML=""}}})(),$.fn.extend({tablesorter:$.tablesorter.construct});var ts=$.tablesorter;ts.addParser({id:"text",is:function(a){return!0},format:function(a){return $.trim(a.toLocaleLowerCase())},type:"text"}),ts.addParser({id:"digit",is:function(a,b){var c=b.config;return $.tablesorter.isDigit(a,c)},format:function(a){return $.tablesorter.formatFloat(a)},type:"numeric"}),ts.addParser({id:"currency",is:function(a){return/^[£$€?.]/.test(a)},format:function(a){return $.tablesorter.formatFloat(a.replace(new RegExp(/[£$€]/g),""))},type:"numeric"}),ts.addParser({id:"ipAddress",is:function(a){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(a)},format:function(a){var b,c,d=a.split("."),e="",f=d.length;for(b=0;f>b;b++)c=d[b],e+=2===c.length?"0"+c:c;return $.tablesorter.formatFloat(e)},type:"numeric"}),ts.addParser({id:"url",is:function(a){
return/^(https?|ftp|file):\/\/$/.test(a)},format:function(a){return $.trim(a.replace(new RegExp(/(https?|ftp|file):\/\//),''))},type:"text"}),ts.addParser({id:"isoDate",is:function(a){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(a)},format:function(a){return $.tablesorter.formatFloat(""!==a?new Date(a.replace(new RegExp(/-/g),"/")).getTime():"0")},type:"numeric"}),ts.addParser({id:"percent",is:function(a){return/\%$/.test($.trim(a))},format:function(a){return $.tablesorter.formatFloat(a.replace(new RegExp(/%/g),""))},type:"numeric"}),ts.addParser({id:"usLongDate",is:function(a){return a.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/))},format:function(a){return $.tablesorter.formatFloat(new Date(a).getTime())},type:"numeric"}),ts.addParser({id:"shortDate",is:function(a){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(a)},format:function(a,b){var c=b.config;return a=a.replace(/\-/g,"/"),"us"===c.dateFormat?a=a.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$1/$2"):"uk"===c.dateFormat?a=a.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1"):"dd/mm/yy"!==c.dateFormat&&"dd-mm-yy"!==c.dateFormat||(a=a.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3")),$.tablesorter.formatFloat(new Date(a).getTime())},type:"numeric"}),ts.addParser({id:"time",is:function(a){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(a)},format:function(a){return $.tablesorter.formatFloat(new Date("2000/01/01 "+a).getTime())},type:"numeric"}),ts.addParser({id:"metadata",is:function(a){return!1},format:function(a,b,c){var d=b.config,e=d.parserMetadataName?d.parserMetadataName:'sortValue';return $(c).metadata()[e]},type:"numeric"}),ts.addWidget({id:"zebra",format:function(a){var b,c=-1,d,e;a.config.debug&&(e=new Date),$("tr:visible",a.tBodies[0]).each(function(e){b=$(this),b.hasClass(a.config.cssChildRow)||c++,d=c%2===0,b.removeClass(a.config.widgetZebra.css[d?0:1]).addClass(a.config.widgetZebra.css[d?1:0])}),a.config.debug&&$.tablesorter.benchmark("Applying Zebra widget",e)}})}(jQuery),define("vendor/jquery/plugins/jquery.tablesorter",["jquery","vendor/jquery/plugins/jquery.metadata"],function(){}),function(a){'function'==typeof define&&define.amd?define('vendor/jquery/plugins/jquery.timepicker',['jquery'],a):a(jQuery)}(function(a){function b(a){if(a.minTime&&(a.minTime=s(a.minTime)),a.maxTime&&(a.maxTime=s(a.maxTime)),a.durationTime&&'function'!=typeof a.durationTime&&(a.durationTime=s(a.durationTime)),a.disableTimeRanges.length>0){for(var b in a.disableTimeRanges)a.disableTimeRanges[b]=[s(a.disableTimeRanges[b][0]),s(a.disableTimeRanges[b][1])];a.disableTimeRanges=a.disableTimeRanges.sort(function(a,b){return a[0]-b[0]})}return a}function c(b){var c=b.data('timepicker-settings'),d=b.data('timepicker-list');d&&d.length&&(d.remove(),b.data('timepicker-list',!1)),d=a('<ul />',{'class':'ui-timepicker-list'});var e=a('<div />',{'class':'ui-timepicker-wrapper',tabindex:-1});e.css({display:'none',position:'absolute'}).append(d),c.className&&e.addClass(c.className),null===c.minTime&&null===c.durationTime||!c.showDuration||e.addClass('ui-timepicker-with-duration');var f=c.minTime;'function'==typeof c.durationTime?f=s(c.durationTime()):null!==c.durationTime&&(f=c.durationTime);var h=null!==c.minTime?c.minTime:0,j=null!==c.maxTime?c.maxTime:h+v-1;h>=j&&(j+=v);for(var k=c.disableTimeRanges,l=0,m=k.length,n=h;j>=n;n+=60*c.step){var o=n%v,t=a('<li />');if(t.data('time',o),t.text(r(o,c.timeFormat)),(null!==c.minTime||null!==c.durationTime)&&c.showDuration){var u=a('<span />');u.addClass('ui-timepicker-duration'),u.text(' ('+q(n-f)+')'),t.append(u)}m>l&&(o>=k[l][1]&&(l+=1),k[l]&&o>=k[l][0]&&o<k[l][1]&&t.addClass('ui-timepicker-disabled')),d.append(t)}e.data('timepicker-input',b),b.data('timepicker-list',e);var w=c.appendTo;'string'==typeof w?w=a(w):'function'==typeof w&&(w=w(b)),w.append(e),i(b,d),d.on('click','li',function(c){b.off('focus.timepicker'),b.on('focus.timepicker-ie-hack',function(){b.off('focus.timepicker-ie-hack'),b.on('focus.timepicker',y.show)}),g(b)||b[0].focus(),d.find('li').removeClass('ui-timepicker-selected'),a(this).addClass('ui-timepicker-selected'),p(b)&&(b.trigger('hideTimepicker'),e.hide())})}function d(){return new Date(1970,1,1,0,0,0)}function e(b){'ontouchstart'in document?a('body').on('touchstart.ui-timepicker',f):(a('body').on('mousedown.ui-timepicker',f),b.closeOnWindowScroll&&a(window).on('scroll.ui-timepicker',f))}function f(b){var c=a(b.target),d=c.closest('.ui-timepicker-input');0===d.length&&0===c.closest('.ui-timepicker-wrapper').length&&(y.hide(),a('body').unbind('.ui-timepicker'),a(window).unbind('.ui-timepicker'))}function g(a){var b=a.data('settings');return(window.navigator.msPointerEnabled||'ontouchstart'in document)&&b.disableTouchKeyboard}function h(b,c,d){if(!d&&0!==d)return!1;var e=b.data('timepicker-settings'),f=!1,g=30*e.step;return c.find('li').each(function(b,c){var e=a(c),h=e.data('time')-d;return Math.abs(h)<g||h==g?(f=e,!1):void 0}),f}function i(a,b){b.find('li').removeClass('ui-timepicker-selected');var c=s(k(a));if(c){var d=h(a,b,c);if(d){var e=d.offset().top-b.offset().top;(e+d.outerHeight()>b.outerHeight()||0>e)&&b.scrollTop(b.scrollTop()+d.position().top-d.outerHeight()),d.addClass('ui-timepicker-selected')}}}function j(){if(''!==this.value){var b=a(this),c=b.data('timepicker-list');if(!c||!c.is(':visible')){var d=s(this.value);if(null===d)return b.trigger('timeFormatError'),void 0;var e=b.data('timepicker-settings');if(null!==e.minTime&&d<e.minTime?b.trigger('timeRangeError'):null!==e.maxTime&&d>e.maxTime&&b.trigger('timeRangeError'),a.each(e.disableTimeRanges,function(){return d>=this[0]&&d<this[1]?(b.trigger('timeRangeError'),!1):void 0}),e.forceRoundTime){var f=d%(60*e.step);f>=30*e.step?d+=60*e.step-f:d-=f}var g=r(d,e.timeFormat);l(b,g)}}}function k(a){return a.is('input')?a.val():a.data('ui-timepicker-value')}function l(a,b){a.is('input')?a.val(b):a.data('ui-timepicker-value',b)}function m(b){var c=a(this),d=c.data('timepicker-list');if(!d||!d.is(':visible')){if(40!=b.keyCode)return n(b,c);g(c)||c.focus()}switch(b.keyCode){case 13:return p(c)&&y.hide.apply(this),b.preventDefault(),!1;case 38:var e=d.find('.ui-timepicker-selected');return e.length?e.is(':first-child')||(e.removeClass('ui-timepicker-selected'),e.prev().addClass('ui-timepicker-selected'),e.prev().position().top<e.outerHeight()&&d.scrollTop(d.scrollTop()-e.outerHeight())):(d.find('li').each(function(b,c){return a(c).position().top>0?(e=a(c),!1):void 0}),e.addClass('ui-timepicker-selected')),!1;case 40:return e=d.find('.ui-timepicker-selected'),0===e.length?(d.find('li').each(function(b,c){return a(c).position().top>0?(e=a(c),!1):void 0}),e.addClass('ui-timepicker-selected')):e.is(':last-child')||(e.removeClass('ui-timepicker-selected'),e.next().addClass('ui-timepicker-selected'),e.next().position().top+2*e.outerHeight()>d.outerHeight()&&d.scrollTop(d.scrollTop()+e.outerHeight())),!1;case 27:d.find('li').removeClass('ui-timepicker-selected'),y.hide();break;case 9:y.hide();break;default:return n(b,c)}}function n(a,b){return!b.data('timepicker-settings').disableTextInput||a.ctrlKey||a.altKey||a.metaKey||2!=a.keyCode&&a.keyCode<46}function o(b){var c=a(this),d=c.data('timepicker-list');if(!d||!d.is(':visible'))return!0;switch(b.keyCode){case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 65:case 77:case 80:case 186:case 8:case 46:i(c,d);break;default:return}}function p(a){var b=a.data('timepicker-settings'),c=a.data('timepicker-list'),d=null,e=c.find('.ui-timepicker-selected');if(e.hasClass('ui-timepicker-disabled'))return!1;if(e.length?d=e.data('time'):k(a)&&(d=s(k(a)),i(a,c)),null!==d){var f=r(d,b.timeFormat);l(a,f)}return a.trigger('change').trigger('changeTime'),!0}function q(a){var b=Math.round(a/60),c;if(Math.abs(b)<60)c=[b,x.mins];else if(60==b)c=['1',x.hr];else{var d=(b/60).toFixed(1);'.'!=x.decimal&&(d=d.replace('.',x.decimal)),c=[d,x.hrs]}return c.join(' ')}function r(a,b){if(null!==a){for(var c=new Date(u.valueOf()+1e3*a),d='',e,f,g=0;g<b.length;g++)switch(f=b.charAt(g),f){case'a':d+=c.getHours()>11?'pm':'am';break;case'A':d+=c.getHours()>11?'PM':'AM';break;case'g':e=c.getHours()%12,d+=0===e?'12':e;break;case'G':d+=c.getHours();break;case'h':e=c.getHours()%12,0!==e&&10>e&&(e='0'+e),d+=0===e?'12':e;break;case'H':e=c.getHours(),d+=e>9?e:'0'+e;break;case'i':var h=c.getMinutes();d+=h>9?h:'0'+h;break;case's':a=c.getSeconds(),d+=a>9?a:'0'+a;break;default:d+=f}return d}}function s(a){if(''===a)return null;if(!a||a+0==a)return a;'object'==typeof a&&(a=a.getHours()+':'+t(a.getMinutes())+':'+t(a.getSeconds())),a=a.toLowerCase();var b=new Date(0),c;if(-1===a.indexOf(":")?(c=a.match(/^([0-9]):?([0-5][0-9])?:?([0-5][0-9])?\s*([pa]?)m?$/),c||(c=a.match(/^([0-2][0-9]):?([0-5][0-9])?:?([0-5][0-9])?\s*([pa]?)m?$/))):c=a.match(/^(\d{1,2})(?::([0-5][0-9]))?(?::([0-5][0-9]))?\s*([pa]?)m?$/),!c)return null;var d=parseInt(1*c[1],10),e;e=c[4]?12==d?'p'==c[4]?12:0:d+('p'==c[4]?12:0):d;var f=1*c[2]||0,g=1*c[3]||0;return 3600*e+60*f+g}function t(a){return("0"+a).slice(-2)}var u=d(),v=86400,w={className:null,minTime:null,maxTime:null,durationTime:null,step:30,showDuration:!1,timeFormat:'g:ia',scrollDefaultNow:!1,scrollDefaultTime:!1,selectOnBlur:!1,disableTouchKeyboard:!0,forceRoundTime:!1,appendTo:'body',disableTimeRanges:[],closeOnWindowScroll:!1,disableTextInput:!1},x={decimal:'.',mins:'mins',hr:'hr',hrs:'hrs'},y={init:function(c){return this.each(function(){var d=a(this);if('SELECT'==d[0].tagName){for(var e={type:'text',value:d.val()},f=d[0].attributes,g=0;g<f.length;g++)e[f[g].nodeName]=f[g].nodeValue;var h=a('<input />',e);d.replaceWith(h),d=h}var i=a.extend({},w);c&&(i=a.extend(i,c)),i.lang&&(x=a.extend(x,i.lang)),i=b(i),d.data('timepicker-settings',i),d.prop('autocomplete','off'),d.on('click.timepicker focus.timepicker',y.show),d.on('blur.timepicker',j),d.on('keydown.timepicker',m),d.on('keyup.timepicker',o),d.addClass('ui-timepicker-input'),j.call(d.get(0))})},show:function(b){var d=a(this),f=d.data('timepicker-settings');g(d)&&d.blur();var i=d.data('timepicker-list');if(!d.prop('readonly')&&(i&&0!==i.length&&'function'!=typeof f.durationTime||(c(d),i=d.data('timepicker-list')),!i.is(':visible'))){y.hide(),i.show(),d.offset().top+d.outerHeight(!0)+i.outerHeight()>a(window).height()+a(window).scrollTop()?i.offset({left:d.offset().left+parseInt(i.css('marginLeft').replace('px',''),10),top:d.offset().top-i.outerHeight()+parseInt(i.css('marginTop').replace('px',''),10)}):i.offset({left:d.offset().left+parseInt(i.css('marginLeft').replace('px',''),10),top:d.offset().top+d.outerHeight()+parseInt(i.css('marginTop').replace('px',''),10)});var j=i.find('.ui-timepicker-selected');if(j.length||(k(d)?j=h(d,i,s(k(d))):f.scrollDefaultNow?j=h(d,i,s(new Date)):f.scrollDefaultTime!==!1&&(j=h(d,i,s(f.scrollDefaultTime)))),j&&j.length){var l=i.scrollTop()+j.position().top-j.outerHeight();i.scrollTop(l)}else i.scrollTop(0);e(f),d.trigger('showTimepicker')}},hide:function(b){a('.ui-timepicker-wrapper:visible').each(function(){var b=a(this),c=b.data('timepicker-input'),d=c.data('timepicker-settings');d&&d.selectOnBlur&&p(c),b.hide(),c.trigger('hideTimepicker')})},option:function(c,d){var e=this,f=e.data('timepicker-settings'),g=e.data('timepicker-list');if('object'==typeof c)f=a.extend(f,c);else if('string'==typeof c&&'undefined'!=typeof d)f[c]=d;else if('string'==typeof c)return f[c];return f=b(f),e.data('timepicker-settings',f),g&&(g.remove(),e.data('timepicker-list',!1)),e},getSecondsFromMidnight:function(){return s(k(this))},getTime:function(){var a=this,b=new Date;return b.setHours(0,0,0,0),new Date(b.valueOf()+1e3*s(k(a)))},setTime:function(a){var b=this,c=r(s(a),b.data('timepicker-settings').timeFormat);l(b,c)},remove:function(){var a=this;a.hasClass('ui-timepicker-input')&&(a.removeAttr('autocomplete','off'),a.removeClass('ui-timepicker-input'),a.removeData('timepicker-settings'),a.off('.timepicker'),a.data('timepicker-list')&&a.data('timepicker-list').remove(),a.removeData('timepicker-list'))}};a.fn.timepicker=function(b){return y[b]?y[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?(a.error("Method "+b+" does not exist on jQuery.timepicker"),void 0):y.init.apply(this,arguments)}}),function(a){function b(){return-1!=navigator.userAgent.toLowerCase().indexOf('msie')}function c(b,c,d){var e=b.offset().top,f=b.offset().left,g=d.position.split(/,?\s+/),h=g[0],i=g[1];e-=c.outerHeight()-d.offset[0],f+=b.outerWidth()+d.offset[1],/iPad/i.test(navigator.userAgent)&&(e-=a(window).scrollTop());var j=c.outerHeight()+b.outerHeight();'center'==h&&(e+=j/2),'bottom'==h&&(e+=j);var k=b.outerWidth();return'center'==i&&(f-=(k+c.outerWidth())/2),'left'==i&&(f-=k),{top:e,left:f}}function d(a){function b(){return this.getAttribute("type")==a}return b.key="[type="+a+"]",b}function e(b,d,e){function f(b,c,d){if(e.grouped||!b.length){var f;if(d===!1||a.isArray(d)){f=k.messages[c.key||c]||k.messages["*"],f=f[e.lang]||k.messages["*"].en;var g=f.match(/\$\d/g);g&&a.isArray(d)&&a.each(g,function(a){f=f.replace(this,d[a])})}else f=d[e.lang]||d;b.push(f)}}var g=this,i=d.add(g);b=b.not(":button, :image, :reset, :submit"),d.attr("novalidate","novalidate"),a.extend(g,{getConf:function(){return e},getForm:function(){return d},getInputs:function(){return b},reflow:function(){return b.each(function(){var b=a(this),d=b.data("msg.el");if(d){var f=c(b,d,e);d.css({top:f.top,left:f.left})}}),g},invalidate:function(c,d){if(!d){var f=[];a.each(c,function(a,c){var d=b.filter("[name='"+a+"']");d.length&&(d.trigger("OI",[c]),f.push({input:d,messages:[c]}))}),c=f,d=a.Event()}return d.type="onFail",i.trigger(d,[c]),d.isDefaultPrevented()||m[e.effect][0].call(g,c,d),g},reset:function(c){return c=c||b,c.removeClass(e.errorClass).each(function(){var b=a(this).data("msg.el");b&&(b.remove(),a(this).data("msg.el",null))}).unbind(e.errorInputEvent||''),g},destroy:function(){return d.unbind(e.formEvent+".V").unbind("reset.V"),b.unbind(e.inputEvent+".V").unbind("change.V"),g.reset()},checkValidity:function(c,d){if(c=c||b,c=c.not(":disabled"),!c.length)return!0;if(d=d||a.Event(),d.type="onBeforeValidate",i.trigger(d,[c]),d.isDefaultPrevented())return d.result;var j=[];c.not(":radio:not(:checked)").each(function(){var b=[],c=a(this).data("messages",b),k=h&&c.is(":date")?"onHide.v":e.errorInputEvent+".v";return c.unbind(k),a.each(l,function(){var a=this,h=a[0];if(c.filter(h).length){var j=a[1].call(g,c,c.val());if(j!==!0){if(d.type="onBeforeFail",i.trigger(d,[c,h]),d.isDefaultPrevented())return!1;var k=c.attr(e.messageAttr);if(k)return b=[k],!1;f(b,h,j)}}}),b.length&&(j.push({input:c,messages:b}),c.trigger("OI",[b]),e.errorInputEvent&&c.bind(k,function(a){g.checkValidity(c,a)})),e.singleError&&j.length?!1:void 0});var k=m[e.effect];if(!k)throw"Validator: cannot find effect \""+e.effect+"\"";return j.length?(g.invalidate(j,d),!1):(k[1].call(g,c,d),d.type="onSuccess",i.trigger(d,[c]),c.unbind(e.errorInputEvent+".v"),!0)}}),a.each("onBeforeValidate,onBeforeFail,onFail,onSuccess".split(","),function(b,c){a.isFunction(e[c])&&a(g).bind(c,e[c]),g[c]=function(b){return b&&a(g).bind(c,b),g}}),e.formEvent&&d.bind(e.formEvent+".V",function(a){return g.checkValidity(null,a)?(a.target=d,a.type=e.formEvent,void 0):a.preventDefault()}),d.bind("reset.V",function(){g.reset()}),b[0]&&b[0].validity&&b.each(function(){this.oninvalid=function(){return!1}}),d[0]&&(d[0].checkValidity=g.checkValidity),e.inputEvent&&b.bind(e.inputEvent+".V",function(b){g.checkValidity(a(this),b)}),b.filter(":checkbox, select").filter("[required]").bind("change.V",function(b){var c=a(this);(this.checked||c.is("select")&&a(this).val())&&m[e.effect][1].call(g,c,b)});var j=b.filter(":radio").change(function(a){g.checkValidity(j,a)});a(window).resize(function(){g.reflow()})}a.tools=a.tools||{version:'1.2.6'};var f=/\[type=([a-z]+)\]/,g=/^-?[0-9]*(\.[0-9]+)?$/,h=a.tools.dateinput,i=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,j=/^(https?:\/\/)?[\da-z\.\-]+\.[a-z\.]{2,6}[#&+_\?\/\w \.\-=]*$/i,k;k=a.tools.validator={conf:{grouped:!1,effect:'default',errorClass:'invalid',inputEvent:null,errorInputEvent:'keyup',formEvent:'submit',lang:'en',message:'<div/>',messageAttr:'data-message',messageClass:'error',offset:[0,0],position:'center right',singleError:!1,speed:'normal'},messages:{"*":{en:"Please correct this value"}},localize:function(b,c){a.each(c,function(a,c){k.messages[a]=k.messages[a]||{},k.messages[a][b]=c})},localizeFn:function(b,c){k.messages[b]=k.messages[b]||{},a.extend(k.messages[b],c)},fn:function(b,c,e){a.isFunction(c)?e=c:('string'==typeof c&&(c={en:c}),this.messages[b.key||b]=c);var g=f.exec(b);g&&(b=d(g[1])),l.push([b,e])},addEffect:function(a,b,c){m[a]=[b,c]}};var l=[],m={'default':[function(b){var d=this.getConf();a.each(b,function(b,e){var f=e.input;f.addClass(d.errorClass);var g=f.data("msg.el");g||(g=a(d.message).addClass(d.messageClass).appendTo(document.body),f.data("msg.el",g)),g.css({visibility:'hidden'}).find("p").remove(),a.each(e.messages,function(b,c){a("<p/>").html(c).appendTo(g)}),g.outerWidth()==g.parent().width()&&g.add(g.find("p")).css({display:'inline'});var h=c(f,g,d);g.css({visibility:'visible',position:'absolute',top:h.top,left:h.left}).fadeIn(d.speed)})},function(b){var c=this.getConf();b.removeClass(c.errorClass).each(function(){var b=a(this).data("msg.el");b&&b.css({visibility:'hidden'})})}]};a.each("email,url,number".split(","),function(b,c){a.expr[':'][c]=function(a){return a.getAttribute("type")===c}}),a.fn.oninvalid=function(a){return this[a?"bind":"trigger"]("OI",a)},k.fn(":email","Please enter a valid email address",function(a,b){return!b||i.test(b)}),k.fn(":url","Please enter a valid URL",function(a,b){return!b||j.test(b)}),k.fn(":number","Please enter a numeric value.",function(a,b){return g.test(b)}),k.fn("[max]","Please enter a value no larger than $1",function(a,b){if(''===b||h&&a.is(":date"))return!0;var c=a.attr("max");return parseFloat(b)<=parseFloat(c)?!0:[c]}),k.fn("[min]","Please enter a value of at least $1",function(a,b){if(''===b||h&&a.is(":date"))return!0;var c=a.attr("min");return parseFloat(b)>=parseFloat(c)?!0:[c]}),k.fn("[required]","Please complete this mandatory field.",function(a,c){return a.is(":checkbox")?a.is(":checked"):!(!c||"<p></p>"===c||b()&&c==a.attr('placeholder'))}),k.fn("[pattern]",function(a){var b=new RegExp("^"+a.attr("pattern")+"$");return b.test(a.val())}),a.fn.validator=function(b){var c=this.data("validator");return c&&(c.destroy(),this.removeData("validator")),b=a.extend(!0,{},k.conf,b),this.is("form")?this.each(function(){var d=a(this);c=new e(d.find(":input"),d,b),d.data("validator",c)}):(c=new e(this,this.eq(0).closest("form"),b),this.data("validator",c))}}(jQuery),define("vendor/jquery/plugins/jquery.validator",["jquery"],function(){}),function(a,b){var c=0,d=Array.prototype.slice,e=a.cleanData;a.cleanData=function(b){for(var c=0,d;null!=(d=b[c]);c++)try{a(d).triggerHandler("remove")}catch(f){}e(b)},a.widget=function(b,c,d){var e,f,g,h,i=b.split(".")[0];b=b.split(".")[1],e=i+"-"+b,d||(d=c,c=a.Widget),a.expr[":"][e.toLowerCase()]=function(b){return!!a.data(b,e)},a[i]=a[i]||{},f=a[i][b],g=a[i][b]=function(a,b){return this._createWidget?(arguments.length&&this._createWidget(a,b),void 0):new g(a,b)},a.extend(g,f,{version:d.version,_proto:a.extend({},d),_childConstructors:[]}),h=new c,h.options=a.widget.extend({},h.options),a.each(d,function(b,e){a.isFunction(e)&&(d[b]=function(){var a=function(){return c.prototype[b].apply(this,arguments)},d=function(a){return c.prototype[b].apply(this,a)};return function(){var b=this._super,c=this._superApply,f;return this._super=a,this._superApply=d,f=e.apply(this,arguments),this._super=b,this._superApply=c,f}}())}),g.prototype=a.widget.extend(h,{widgetEventPrefix:f?h.widgetEventPrefix:b},d,{constructor:g,namespace:i,widgetName:b,widgetBaseClass:e,widgetFullName:e}),f?(a.each(f._childConstructors,function(b,c){var d=c.prototype;a.widget(d.namespace+"."+d.widgetName,g,c._proto)}),delete f._childConstructors):c._childConstructors.push(g),a.widget.bridge(b,g)},a.widget.extend=function(c){for(var e=d.call(arguments,1),f=0,g=e.length,h,i;g>f;f++)for(h in e[f])i=e[f][h],e[f].hasOwnProperty(h)&&i!==b&&(a.isPlainObject(i)?c[h]=a.isPlainObject(c[h])?a.widget.extend({},c[h],i):a.widget.extend({},i):c[h]=i);return c},a.widget.bridge=function(c,e){var f=e.prototype.widgetFullName||c;a.fn[c]=function(g){var h="string"==typeof g,i=d.call(arguments,1),j=this;return g=!h&&i.length?a.widget.extend.apply(null,[g].concat(i)):g,h?this.each(function(){var d,e=a.data(this,f);return e?a.isFunction(e[g])&&"_"!==g.charAt(0)?(d=e[g].apply(e,i),d!==e&&d!==b?(j=d&&d.jquery?j.pushStack(d.get()):d,!1):void 0):a.error("no such method '"+g+"' for "+c+" widget instance"):a.error("cannot call methods on "+c+" prior to initialization; attempted to call method '"+g+"'")}):this.each(function(){var b=a.data(this,f);b?b.option(g||{})._init():a.data(this,f,new e(g,this))}),j}},a.Widget=function(){},a.Widget._childConstructors=[],a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(b,d){d=a(d||this.defaultElement||this)[0],this.element=a(d),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=a.widget.extend({},this.options,this._getCreateOptions(),b),this.bindings=a(),this.hoverable=a(),this.focusable=a(),d!==this&&(a.data(d,this.widgetName,this),a.data(d,this.widgetFullName,this),this._on(!0,this.element,{remove:function(a){a.target===d&&this.destroy()}}),this.document=a(d.style?d.ownerDocument:d.document||d),this.window=a(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:a.noop,_getCreateEventData:a.noop,_create:a.noop,_init:a.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(a.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:a.noop,widget:function(){return this.element},option:function(c,d){var e=c,f,g,h;if(0===arguments.length)return a.widget.extend({},this.options);if("string"==typeof c)if(e={},f=c.split("."),c=f.shift(),f.length){for(g=e[c]=a.widget.extend({},this.options[c]),h=0;h<f.length-1;h++)g[f[h]]=g[f[h]]||{},g=g[f[h]];if(c=f.pop(),d===b)return g[c]===b?null:g[c];g[c]=d}else{if(d===b)return this.options[c]===b?null:this.options[c];e[c]=d}return this._setOptions(e),this},_setOptions:function(a){var b;for(b in a)this._setOption(b,a[b]);return this},_setOption:function(a,b){return this.options[a]=b,"disabled"===a&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!b).attr("aria-disabled",b),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(b,c,d){var e,f=this;"boolean"!=typeof b&&(d=c,c=b,b=!1),d?(c=e=a(c),this.bindings=this.bindings.add(c)):(d=c,c=this.element,e=this.widget()),a.each(d,function(d,g){function h(){return b||f.options.disabled!==!0&&!a(this).hasClass("ui-state-disabled")?("string"==typeof g?f[g]:g).apply(f,arguments):void 0}"string"!=typeof g&&(h.guid=g.guid=g.guid||h.guid||a.guid++);var i=d.match(/^(\w+)\s*(.*)$/),j=i[1]+f.eventNamespace,k=i[2];k?e.delegate(k,j,h):c.bind(j,h)})},_off:function(a,b){b=(b||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,a.unbind(b).undelegate(b)},_delay:function(a,b){function c(){return("string"==typeof a?d[a]:a).apply(d,arguments)}var d=this;return setTimeout(c,b||0)},_hoverable:function(b){this.hoverable=this.hoverable.add(b),this._on(b,{mouseenter:function(b){a(b.currentTarget).addClass("ui-state-hover")},mouseleave:function(b){a(b.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(b){this.focusable=this.focusable.add(b),this._on(b,{focusin:function(b){a(b.currentTarget).addClass("ui-state-focus")},focusout:function(b){a(b.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(b,c,d){var e,f,g=this.options[b];if(d=d||{},c=a.Event(c),c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase(),c.target=this.element[0],f=c.originalEvent,f)for(e in f)e in c||(c[e]=f[e]);return this.element.trigger(c,d),!(a.isFunction(g)&&g.apply(this.element[0],[c].concat(d))===!1||c.isDefaultPrevented())}},a.each({show:"fadeIn",hide:"fadeOut"},function(b,c){a.Widget.prototype["_"+b]=function(d,e,f){"string"==typeof e&&(e={effect:e});var g,h=e?e===!0||"number"==typeof e?c:e.effect||c:b;e=e||{},"number"==typeof e&&(e={duration:e}),g=!a.isEmptyObject(e),e.complete=f,e.delay&&d.delay(e.delay),g&&a.effects&&(a.effects.effect[h]||a.uiBackCompat!==!1&&a.effects[h])?d[b](e):h!==b&&d[h]?d[h](e.duration,e.easing,f):d.queue(function(c){a(this)[b](),f&&f.call(d[0]),c()})}}),a.uiBackCompat!==!1&&(a.Widget.prototype._getCreateOptions=function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]})}(jQuery),define("jquery-ui/jquery.ui.widget",["jquery"],function(a){return function(){var b,c;return b||a.jQuery.widget}}(this)),function(a,b){var c=0,d={},e={};d.height=d.paddingTop=d.paddingBottom=d.borderTopWidth=d.borderBottomWidth="hide",e.height=e.paddingTop=e.paddingBottom=e.borderTopWidth=e.borderBottomWidth="show",a.widget("ui.accordion",{version:"1.9.2",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var b=this.accordionId="ui-accordion-"+(this.element.attr("id")||++c),d=this.options;this.prevShow=this.prevHide=a(),this.element.addClass("ui-accordion ui-widget ui-helper-reset"),this.headers=this.element.find(d.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this._hoverable(this.headers),this._focusable(this.headers),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").hide(),d.collapsible||d.active!==!1&&null!=d.active||(d.active=0),d.active<0&&(d.active+=this.headers.length),this.active=this._findActive(d.active).addClass("ui-accordion-header-active ui-state-active").toggleClass("ui-corner-all ui-corner-top"),this.active.next().addClass("ui-accordion-content-active").show(),this._createIcons(),this.refresh(),this.element.attr("role","tablist"),this.headers.attr("role","tab").each(function(c){var d=a(this),e=d.attr("id"),f=d.next(),g=f.attr("id");e||(e=b+"-header-"+c,d.attr("id",e)),g||(g=b+"-panel-"+c,f.attr("id",g)),d.attr("aria-controls",g),f.attr("aria-labelledby",e)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._on(this.headers,{keydown:"_keydown"}),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._setupEvents(d.event)},_getCreateEventData:function(){return{header:this.active,content:this.active.length?this.active.next():a()}},_createIcons:function(){var b=this.options.icons;b&&(a("<span>").addClass("ui-accordion-header-icon ui-icon "+b.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(b.header).addClass(b.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var a;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this._destroyIcons(),a=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),"content"!==this.options.heightStyle&&a.css("height","")},_setOption:function(a,b){return"active"===a?(this._activate(b),void 0):("event"===a&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(b)),this._super(a,b),"collapsible"!==a||b||this.options.active!==!1||this._activate(0),"icons"===a&&(this._destroyIcons(),b&&this._createIcons()),"disabled"===a&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!b),void 0)},_keydown:function(b){if(!b.altKey&&!b.ctrlKey){var c=a.ui.keyCode,d=this.headers.length,e=this.headers.index(b.target),f=!1;switch(b.keyCode){case c.RIGHT:case c.DOWN:f=this.headers[(e+1)%d];break;case c.LEFT:case c.UP:f=this.headers[(e-1+d)%d];break;case c.SPACE:case c.ENTER:this._eventHandler(b);break;case c.HOME:f=this.headers[0];break;case c.END:f=this.headers[d-1]}f&&(a(b.target).attr("tabIndex",-1),a(f).attr("tabIndex",0),f.focus(),b.preventDefault())}},_panelKeyDown:function(b){b.keyCode===a.ui.keyCode.UP&&b.ctrlKey&&a(b.currentTarget).prev().focus()},refresh:function(){var b,c,d=this.options.heightStyle,e=this.element.parent();"fill"===d?(a.support.minHeight||(c=e.css("overflow"),e.css("overflow","hidden")),b=e.height(),this.element.siblings(":visible").each(function(){var c=a(this),d=c.css("position");"absolute"!==d&&"fixed"!==d&&(b-=c.outerHeight(!0))}),c&&e.css("overflow",c),this.headers.each(function(){b-=a(this).outerHeight(!0)}),this.headers.next().each(function(){a(this).height(Math.max(0,b-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")):"auto"===d&&(b=0,this.headers.next().each(function(){b=Math.max(b,a(this).css("height","").height())}).height(b))},_activate:function(b){var c=this._findActive(b)[0];c!==this.active[0]&&(c=c||this.active[0],this._eventHandler({target:c,currentTarget:c,preventDefault:a.noop}))},_findActive:function(b){return"number"==typeof b?this.headers.eq(b):a()},_setupEvents:function(b){var c={};b&&(a.each(b.split(" "),function(a,b){c[b]="_eventHandler"}),this._on(this.headers,c))},_eventHandler:function(b){var c=this.options,d=this.active,e=a(b.currentTarget),f=e[0]===d[0],g=f&&c.collapsible,h=g?a():e.next(),i=d.next(),j={oldHeader:d,oldPanel:i,newHeader:g?a():e,newPanel:h};b.preventDefault(),f&&!c.collapsible||this._trigger("beforeActivate",b,j)===!1||(c.active=g?!1:this.headers.index(e),this.active=f?a():e,this._toggle(j),d.removeClass("ui-accordion-header-active ui-state-active"),c.icons&&d.children(".ui-accordion-header-icon").removeClass(c.icons.activeHeader).addClass(c.icons.header),f||(e.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),c.icons&&e.children(".ui-accordion-header-icon").removeClass(c.icons.header).addClass(c.icons.activeHeader),e.next().addClass("ui-accordion-content-active")));
},_toggle:function(b){var c=b.newPanel,d=this.prevShow.length?this.prevShow:b.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=c,this.prevHide=d,this.options.animate?this._animate(c,d,b):(d.hide(),c.show(),this._toggleComplete(b)),d.attr({"aria-expanded":"false","aria-hidden":"true"}),d.prev().attr("aria-selected","false"),c.length&&d.length?d.prev().attr("tabIndex",-1):c.length&&this.headers.filter(function(){return 0===a(this).attr("tabIndex")}).attr("tabIndex",-1),c.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(a,b,c){var f,g,h,i=this,j=0,k=a.length&&(!b.length||a.index()<b.index()),l=this.options.animate||{},m=k&&l.down||l,n=function(){i._toggleComplete(c)};return"number"==typeof m&&(h=m),"string"==typeof m&&(g=m),g=g||m.easing||l.easing,h=h||m.duration||l.duration,b.length?a.length?(f=a.show().outerHeight(),b.animate(d,{duration:h,easing:g,step:function(a,b){b.now=Math.round(a)}}),a.hide().animate(e,{duration:h,easing:g,complete:n,step:function(a,c){c.now=Math.round(a),"height"!==c.prop?j+=c.now:"content"!==i.options.heightStyle&&(c.now=Math.round(f-b.outerHeight()-j),j=0)}}),void 0):b.animate(d,h,g,n):a.animate(e,h,g,n)},_toggleComplete:function(a){var b=a.oldPanel;b.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),b.length&&(b.parent()[0].className=b.parent()[0].className),this._trigger("activate",null,a)}}),a.uiBackCompat!==!1&&(!function(a,b){a.extend(b.options,{navigation:!1,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}});var c=b._create;b._create=function(){if(this.options.navigation){var b=this,d=this.element.find(this.options.header),e=d.next(),f=d.add(e).find("a").filter(this.options.navigationFilter)[0];f&&d.add(e).each(function(c){return a.contains(this,f)?(b.options.active=Math.floor(c/2),!1):void 0})}c.call(this)}}(jQuery,jQuery.ui.accordion.prototype),function(a,b){a.extend(b.options,{heightStyle:null,autoHeight:!0,clearStyle:!1,fillSpace:!1});var c=b._create,d=b._setOption;a.extend(b,{_create:function(){this.options.heightStyle=this.options.heightStyle||this._mergeHeightStyle(),c.call(this)},_setOption:function(a){"autoHeight"!==a&&"clearStyle"!==a&&"fillSpace"!==a||(this.options.heightStyle=this._mergeHeightStyle()),d.apply(this,arguments)},_mergeHeightStyle:function(){var a=this.options;return a.fillSpace?"fill":a.clearStyle?"content":a.autoHeight?"auto":void 0}})}(jQuery,jQuery.ui.accordion.prototype),function(a,b){a.extend(b.options.icons,{activeHeader:null,headerSelected:"ui-icon-triangle-1-s"});var c=b._createIcons;b._createIcons=function(){this.options.icons&&(this.options.icons.activeHeader=this.options.icons.activeHeader||this.options.icons.headerSelected),c.call(this)}}(jQuery,jQuery.ui.accordion.prototype),function(a,b){b.activate=b._activate;var c=b._findActive;b._findActive=function(a){return-1===a&&(a=!1),a&&"number"!=typeof a&&(a=this.headers.index(this.headers.filter(a)),-1===a&&(a=!1)),c.call(this,a)}}(jQuery,jQuery.ui.accordion.prototype),jQuery.ui.accordion.prototype.resize=jQuery.ui.accordion.prototype.refresh,function(a,b){a.extend(b.options,{change:null,changestart:null});var c=b._trigger;b._trigger=function(a,b,d){var e=c.apply(this,arguments);return e?("beforeActivate"===a?e=c.call(this,"changestart",b,{oldHeader:d.oldHeader,oldContent:d.oldPanel,newHeader:d.newHeader,newContent:d.newPanel}):"activate"===a&&(e=c.call(this,"change",b,{oldHeader:d.oldHeader,oldContent:d.oldPanel,newHeader:d.newHeader,newContent:d.newPanel})),e):!1}}(jQuery,jQuery.ui.accordion.prototype),function(a,b){a.extend(b.options,{animate:null,animated:"slide"});var c=b._create;b._create=function(){var a=this.options;null===a.animate&&(a.animated?"slide"===a.animated?a.animate=300:"bounceslide"===a.animated?a.animate={duration:200,down:{easing:"easeOutBounce",duration:1e3}}:a.animate=a.animated:a.animate=!1),c.call(this)}}(jQuery,jQuery.ui.accordion.prototype))}(jQuery),define("jquery-ui/jquery.ui.accordion",["jquery","jquery-ui/jquery.ui.core","jquery-ui/jquery.ui.widget"],function(){}),function($,undefined){function Datepicker(){this.debug=!1,this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId='ui-datepicker-div',this._inlineClass='ui-datepicker-inline',this._appendClass='ui-datepicker-append',this._triggerClass='ui-datepicker-trigger',this._dialogClass='ui-datepicker-dialog',this._disableClass='ui-datepicker-disabled',this._unselectableClass='ui-datepicker-unselectable',this._currentClass='ui-datepicker-current-day',this._dayOverClass='ui-datepicker-days-cell-over',this.regional=[],this.regional['']={closeText:'Done',prevText:'Prev',nextText:'Next',currentText:'Today',monthNames:['January','February','March','April','May','June','July','August','September','October','November','December'],monthNamesShort:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],dayNames:['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],dayNamesShort:['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],dayNamesMin:['Su','Mo','Tu','We','Th','Fr','Sa'],weekHeader:'Wk',dateFormat:'mm/dd/yy',firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:''},this._defaults={showOn:'focus',showAnim:'fadeIn',showOptions:{},defaultDate:null,appendText:'',buttonText:'...',buttonImage:'',buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:'c-10:c+10',showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:'+10',minDate:null,maxDate:null,duration:'fast',beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:'',altFormat:'',constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},$.extend(this._defaults,this.regional['']),this.dpDiv=bindHover($('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function bindHover(a){var b='button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a';return a.delegate(b,'mouseout',function(){$(this).removeClass('ui-state-hover'),-1!=this.className.indexOf('ui-datepicker-prev')&&$(this).removeClass('ui-datepicker-prev-hover'),-1!=this.className.indexOf('ui-datepicker-next')&&$(this).removeClass('ui-datepicker-next-hover')}).delegate(b,'mouseover',function(){$.datepicker._isDisabledDatepicker(instActive.inline?a.parent()[0]:instActive.input[0])||($(this).parents('.ui-datepicker-calendar').find('a').removeClass('ui-state-hover'),$(this).addClass('ui-state-hover'),-1!=this.className.indexOf('ui-datepicker-prev')&&$(this).addClass('ui-datepicker-prev-hover'),-1!=this.className.indexOf('ui-datepicker-next')&&$(this).addClass('ui-datepicker-next-hover'))})}function extendRemove(a,b){$.extend(a,b);for(var c in b)null!=b[c]&&b[c]!=undefined||(a[c]=b[c]);return a}$.extend($.ui,{datepicker:{version:"1.9.2"}});var PROP_NAME='datepicker',dpuuid=(new Date).getTime(),instActive;$.extend(Datepicker.prototype,{markerClassName:'hasDatepicker',maxRows:4,log:function(){this.debug&&console.log.apply('',arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){return extendRemove(this._defaults,a||{}),this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute('date:'+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase(),inline='div'==nodeName||'span'==nodeName;target.id||(this.uuid+=1,target.id='dp'+this.uuid);var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{}),'input'==nodeName?this._connectDatepicker(target,inst):inline&&this._inlineDatepicker(target,inst)},_newInst:function(a,b){var c=a[0].id.replace(/([^A-Za-z0-9_-])/g,'\\\\$1');return{id:c,input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:b?bindHover($('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')):this.dpDiv}},_connectDatepicker:function(a,b){var c=$(a);b.append=$([]),b.trigger=$([]),c.hasClass(this.markerClassName)||(this._attachments(c,b),c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(a,c,d){b.settings[c]=d}).bind("getData.datepicker",function(a,c){return this._get(b,c)}),this._autoSize(b),$.data(a,PROP_NAME,b),b.settings.disabled&&this._disableDatepicker(a))},_attachments:function(a,b){var c=this._get(b,'appendText'),d=this._get(b,'isRTL');b.append&&b.append.remove(),c&&(b.append=$('<span class="'+this._appendClass+'">'+c+'</span>'),a[d?'before':'after'](b.append)),a.unbind('focus',this._showDatepicker),b.trigger&&b.trigger.remove();var e=this._get(b,'showOn');if('focus'!=e&&'both'!=e||a.focus(this._showDatepicker),'button'==e||'both'==e){var f=this._get(b,'buttonText'),g=this._get(b,'buttonImage');b.trigger=$(this._get(b,'buttonImageOnly')?$('<img/>').addClass(this._triggerClass).attr({src:g,alt:f,title:f}):$('<button type="button"></button>').addClass(this._triggerClass).html(''==g?f:$('<img/>').attr({src:g,alt:f,title:f}))),a[d?'before':'after'](b.trigger),b.trigger.click(function(){return $.datepicker._datepickerShowing&&$.datepicker._lastInput==a[0]?$.datepicker._hideDatepicker():$.datepicker._datepickerShowing&&$.datepicker._lastInput!=a[0]?($.datepicker._hideDatepicker(),$.datepicker._showDatepicker(a[0])):$.datepicker._showDatepicker(a[0]),!1})}},_autoSize:function(a){if(this._get(a,'autoSize')&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,'dateFormat');if(c.match(/[DM]/)){var d=function(a){for(var b=0,c=0,d=0;d<a.length;d++)a[d].length>b&&(b=a[d].length,c=d);return c};b.setMonth(d(this._get(a,c.match(/MM/)?'monthNames':'monthNamesShort'))),b.setDate(d(this._get(a,c.match(/DD/)?'dayNames':'dayNamesShort'))+20-b.getDay())}a.input.attr('size',this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=$(a);c.hasClass(this.markerClassName)||(c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(a,c,d){b.settings[c]=d}).bind("getData.datepicker",function(a,c){return this._get(b,c)}),$.data(a,PROP_NAME,b),this._setDate(b,this._getDefaultDate(b),!0),this._updateDatepicker(b),this._updateAlternate(b),b.settings.disabled&&this._disableDatepicker(a),b.dpDiv.css("display","block"))},_dialogDatepicker:function(a,b,c,d,e){var f=this._dialogInst;if(!f){this.uuid+=1;var g='dp'+this.uuid;this._dialogInput=$('<input type="text" id="'+g+'" style="position: absolute; top: -100px; width: 0px;"/>'),this._dialogInput.keydown(this._doKeyDown),$('body').append(this._dialogInput),f=this._dialogInst=this._newInst(this._dialogInput,!1),f.settings={},$.data(this._dialogInput[0],PROP_NAME,f)}if(extendRemove(f.settings,d||{}),b=b&&b.constructor==Date?this._formatDate(f,b):b,this._dialogInput.val(b),this._pos=e?e.length?e:[e.pageX,e.pageY]:null,!this._pos){var h=document.documentElement.clientWidth,i=document.documentElement.clientHeight,j=document.documentElement.scrollLeft||document.body.scrollLeft,k=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[h/2-100+j,i/2-150+k]}return this._dialogInput.css('left',this._pos[0]+20+'px').css('top',this._pos[1]+'px'),f.settings.onSelect=c,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),$.blockUI&&$.blockUI(this.dpDiv),$.data(this._dialogInput[0],PROP_NAME,f),this},_destroyDatepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var d=a.nodeName.toLowerCase();$.removeData(a,PROP_NAME),'input'==d?(c.append.remove(),c.trigger.remove(),b.removeClass(this.markerClassName).unbind('focus',this._showDatepicker).unbind('keydown',this._doKeyDown).unbind('keypress',this._doKeyPress).unbind('keyup',this._doKeyUp)):'div'!=d&&'span'!=d||b.removeClass(this.markerClassName).empty()}},_enableDatepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var d=a.nodeName.toLowerCase();if('input'==d)a.disabled=!1,c.trigger.filter('button').each(function(){this.disabled=!1}).end().filter('img').css({opacity:'1.0',cursor:''});else if('div'==d||'span'==d){var e=b.children('.'+this._inlineClass);e.children().removeClass('ui-state-disabled'),e.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)}this._disabledInputs=$.map(this._disabledInputs,function(b){return b==a?null:b})}},_disableDatepicker:function(a){var b=$(a),c=$.data(a,PROP_NAME);if(b.hasClass(this.markerClassName)){var d=a.nodeName.toLowerCase();if('input'==d)a.disabled=!0,c.trigger.filter('button').each(function(){this.disabled=!0}).end().filter('img').css({opacity:'0.5',cursor:'default'});else if('div'==d||'span'==d){var e=b.children('.'+this._inlineClass);e.children().addClass('ui-state-disabled'),e.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)}this._disabledInputs=$.map(this._disabledInputs,function(b){return b==a?null:b}),this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a)return!1;for(var b=0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]==a)return!0;return!1},_getInst:function(a){try{return $.data(a,PROP_NAME)}catch(b){throw'Missing instance data for this datepicker'}},_optionDatepicker:function(a,b,c){var d=this._getInst(a);if(2==arguments.length&&'string'==typeof b)return'defaults'==b?$.extend({},$.datepicker._defaults):d?'all'==b?$.extend({},d.settings):this._get(d,b):null;var e=b||{};if('string'==typeof b&&(e={},e[b]=c),d){this._curInst==d&&this._hideDatepicker();var f=this._getDateDatepicker(a,!0),g=this._getMinMaxDate(d,'min'),h=this._getMinMaxDate(d,'max');extendRemove(d.settings,e),null!==g&&e.dateFormat!==undefined&&e.minDate===undefined&&(d.settings.minDate=this._formatDate(d,g)),null!==h&&e.dateFormat!==undefined&&e.maxDate===undefined&&(d.settings.maxDate=this._formatDate(d,h)),this._attachments($(a),d),this._autoSize(d),this._setDate(d,f),this._updateAlternate(d),this._updateDatepicker(d)}},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){var b=this._getInst(a);b&&this._updateDatepicker(b)},_setDateDatepicker:function(a,b){var c=this._getInst(a);c&&(this._setDate(c,b),this._updateDatepicker(c),this._updateAlternate(c))},_getDateDatepicker:function(a,b){var c=this._getInst(a);return c&&!c.inline&&this._setDateFromField(c,b),c?this._getDate(c):null},_doKeyDown:function(a){var b=$.datepicker._getInst(a.target),c=!0,d=b.dpDiv.is('.ui-datepicker-rtl');if(b._keyEvent=!0,$.datepicker._datepickerShowing)switch(a.keyCode){case 9:$.datepicker._hideDatepicker(),c=!1;break;case 13:var e=$('td.'+$.datepicker._dayOverClass+':not(.'+$.datepicker._currentClass+')',b.dpDiv);e[0]&&$.datepicker._selectDay(a.target,b.selectedMonth,b.selectedYear,e[0]);var f=$.datepicker._get(b,'onSelect');if(f){var g=$.datepicker._formatDate(b);f.apply(b.input?b.input[0]:null,[g,b])}else $.datepicker._hideDatepicker();return!1;case 27:$.datepicker._hideDatepicker();break;case 33:$.datepicker._adjustDate(a.target,a.ctrlKey?-$.datepicker._get(b,'stepBigMonths'):-$.datepicker._get(b,'stepMonths'),'M');break;case 34:$.datepicker._adjustDate(a.target,a.ctrlKey?+$.datepicker._get(b,'stepBigMonths'):+$.datepicker._get(b,'stepMonths'),'M');break;case 35:(a.ctrlKey||a.metaKey)&&$.datepicker._clearDate(a.target),c=a.ctrlKey||a.metaKey;break;case 36:(a.ctrlKey||a.metaKey)&&$.datepicker._gotoToday(a.target),c=a.ctrlKey||a.metaKey;break;case 37:(a.ctrlKey||a.metaKey)&&$.datepicker._adjustDate(a.target,d?1:-1,'D'),c=a.ctrlKey||a.metaKey,a.originalEvent.altKey&&$.datepicker._adjustDate(a.target,a.ctrlKey?-$.datepicker._get(b,'stepBigMonths'):-$.datepicker._get(b,'stepMonths'),'M');break;case 38:(a.ctrlKey||a.metaKey)&&$.datepicker._adjustDate(a.target,-7,'D'),c=a.ctrlKey||a.metaKey;break;case 39:(a.ctrlKey||a.metaKey)&&$.datepicker._adjustDate(a.target,d?-1:1,'D'),c=a.ctrlKey||a.metaKey,a.originalEvent.altKey&&$.datepicker._adjustDate(a.target,a.ctrlKey?+$.datepicker._get(b,'stepBigMonths'):+$.datepicker._get(b,'stepMonths'),'M');break;case 40:(a.ctrlKey||a.metaKey)&&$.datepicker._adjustDate(a.target,7,'D'),c=a.ctrlKey||a.metaKey;break;default:c=!1}else 36==a.keyCode&&a.ctrlKey?$.datepicker._showDatepicker(this):c=!1;c&&(a.preventDefault(),a.stopPropagation())},_doKeyPress:function(a){var b=$.datepicker._getInst(a.target);if($.datepicker._get(b,'constrainInput')){var c=$.datepicker._possibleChars($.datepicker._get(b,'dateFormat')),d=String.fromCharCode(a.charCode==undefined?a.keyCode:a.charCode);return a.ctrlKey||a.metaKey||' '>d||!c||c.indexOf(d)>-1}},_doKeyUp:function(a){var b=$.datepicker._getInst(a.target);if(b.input.val()!=b.lastVal)try{var c=$.datepicker.parseDate($.datepicker._get(b,'dateFormat'),b.input?b.input.val():null,$.datepicker._getFormatConfig(b));c&&($.datepicker._setDateFromField(b),$.datepicker._updateAlternate(b),$.datepicker._updateDatepicker(b))}catch(d){$.datepicker.log(d)}return!0},_showDatepicker:function(a){if(a=a.target||a,'input'!=a.nodeName.toLowerCase()&&(a=$('input',a.parentNode)[0]),!$.datepicker._isDisabledDatepicker(a)&&$.datepicker._lastInput!=a){var b=$.datepicker._getInst(a);$.datepicker._curInst&&$.datepicker._curInst!=b&&($.datepicker._curInst.dpDiv.stop(!0,!0),b&&$.datepicker._datepickerShowing&&$.datepicker._hideDatepicker($.datepicker._curInst.input[0]));var c=$.datepicker._get(b,'beforeShow'),d=c?c.apply(a,[a,b]):{};if(d!==!1){extendRemove(b.settings,d),b.lastVal=null,$.datepicker._lastInput=a,$.datepicker._setDateFromField(b),$.datepicker._inDialog&&(a.value=''),$.datepicker._pos||($.datepicker._pos=$.datepicker._findPos(a),$.datepicker._pos[1]+=a.offsetHeight);var e=!1;$(a).parents().each(function(){return e|='fixed'==$(this).css('position'),!e});var f={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};if($.datepicker._pos=null,b.dpDiv.empty(),b.dpDiv.css({position:'absolute',display:'block',top:'-1000px'}),$.datepicker._updateDatepicker(b),f=$.datepicker._checkOffset(b,f,e),b.dpDiv.css({position:$.datepicker._inDialog&&$.blockUI?'static':e?'fixed':'absolute',display:'none',left:f.left+'px',top:f.top+'px'}),!b.inline){var g=$.datepicker._get(b,'showAnim'),h=$.datepicker._get(b,'duration'),i=function(){var a=b.dpDiv.find('iframe.ui-datepicker-cover');if(a.length){var c=$.datepicker._getBorders(b.dpDiv);a.css({left:-c[0],top:-c[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex($(a).zIndex()+1),$.datepicker._datepickerShowing=!0,$.effects&&($.effects.effect[g]||$.effects[g])?b.dpDiv.show(g,$.datepicker._get(b,'showOptions'),h,i):b.dpDiv[g||'show'](g?h:null,i),g&&h||i(),b.input.is(':visible')&&!b.input.is(':disabled')&&b.input.focus(),$.datepicker._curInst=b}}}},_updateDatepicker:function(a){this.maxRows=4;var b=$.datepicker._getBorders(a.dpDiv);instActive=a,a.dpDiv.empty().append(this._generateHTML(a)),this._attachHandlers(a);var c=a.dpDiv.find('iframe.ui-datepicker-cover');c.length&&c.css({left:-b[0],top:-b[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()}),a.dpDiv.find('.'+this._dayOverClass+' a').mouseover();var d=this._getNumberOfMonths(a),e=d[1],f=17;if(a.dpDiv.removeClass('ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4').width(''),e>1&&a.dpDiv.addClass('ui-datepicker-multi-'+e).css('width',f*e+'em'),a.dpDiv[(1!=d[0]||1!=d[1]?'add':'remove')+'Class']('ui-datepicker-multi'),a.dpDiv[(this._get(a,'isRTL')?'add':'remove')+'Class']('ui-datepicker-rtl'),a==$.datepicker._curInst&&$.datepicker._datepickerShowing&&a.input&&a.input.is(':visible')&&!a.input.is(':disabled')&&a.input[0]!=document.activeElement&&a.input.focus(),a.yearshtml){var g=a.yearshtml;setTimeout(function(){g===a.yearshtml&&a.yearshtml&&a.dpDiv.find('select.ui-datepicker-year:first').replaceWith(a.yearshtml),g=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(a){return{thin:1,medium:2,thick:3}[a]||a};return[parseFloat(b(a.css('border-left-width'))),parseFloat(b(a.css('border-top-width')))]},_checkOffset:function(a,b,c){var d=a.dpDiv.outerWidth(),e=a.dpDiv.outerHeight(),f=a.input?a.input.outerWidth():0,g=a.input?a.input.outerHeight():0,h=document.documentElement.clientWidth+(c?0:$(document).scrollLeft()),i=document.documentElement.clientHeight+(c?0:$(document).scrollTop());return b.left-=this._get(a,'isRTL')?d-f:0,b.left-=c&&b.left==a.input.offset().left?$(document).scrollLeft():0,b.top-=c&&b.top==a.input.offset().top+g?$(document).scrollTop():0,b.left-=Math.min(b.left,b.left+d>h&&h>d?Math.abs(b.left+d-h):0),b.top-=Math.min(b.top,b.top+e>i&&i>e?Math.abs(e+g):0),b},_findPos:function(a){for(var b=this._getInst(a),c=this._get(b,'isRTL');a&&('hidden'==a.type||1!=a.nodeType||$.expr.filters.hidden(a));)a=a[c?'previousSibling':'nextSibling'];var d=$(a).offset();return[d.left,d.top]},_hideDatepicker:function(a){var b=this._curInst;if(b&&(!a||b==$.data(a,PROP_NAME))&&this._datepickerShowing){var c=this._get(b,'showAnim'),d=this._get(b,'duration'),e=function(){$.datepicker._tidyDialog(b)};$.effects&&($.effects.effect[c]||$.effects[c])?b.dpDiv.hide(c,$.datepicker._get(b,'showOptions'),d,e):b.dpDiv['slideDown'==c?'slideUp':'fadeIn'==c?'fadeOut':'hide'](c?d:null,e),c||e(),this._datepickerShowing=!1;var f=this._get(b,'onClose');f&&f.apply(b.input?b.input[0]:null,[b.input?b.input.val():'',b]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:'absolute',left:'0',top:'-100px'}),$.blockUI&&($.unblockUI(),$('body').append(this.dpDiv))),this._inDialog=!1}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind('.ui-datepicker-calendar')},_checkExternalClick:function(a){if($.datepicker._curInst){var b=$(a.target),c=$.datepicker._getInst(b[0]);(b[0].id==$.datepicker._mainDivId||0!=b.parents('#'+$.datepicker._mainDivId).length||b.hasClass($.datepicker.markerClassName)||b.closest("."+$.datepicker._triggerClass).length||!$.datepicker._datepickerShowing||$.datepicker._inDialog&&$.blockUI)&&(!b.hasClass($.datepicker.markerClassName)||$.datepicker._curInst==c)||$.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){var d=$(a),e=this._getInst(d[0]);this._isDisabledDatepicker(d[0])||(this._adjustInstDate(e,b+('M'==c?this._get(e,'showCurrentAtPos'):0),c),this._updateDatepicker(e))},_gotoToday:function(a){var b=$(a),c=this._getInst(b[0]);if(this._get(c,'gotoCurrent')&&c.currentDay)c.selectedDay=c.currentDay,c.drawMonth=c.selectedMonth=c.currentMonth,c.drawYear=c.selectedYear=c.currentYear;else{var d=new Date;c.selectedDay=d.getDate(),c.drawMonth=c.selectedMonth=d.getMonth(),c.drawYear=c.selectedYear=d.getFullYear()}this._notifyChange(c),this._adjustDate(b)},_selectMonthYear:function(a,b,c){var d=$(a),e=this._getInst(d[0]);e['selected'+('M'==c?'Month':'Year')]=e['draw'+('M'==c?'Month':'Year')]=parseInt(b.options[b.selectedIndex].value,10),this._notifyChange(e),this._adjustDate(d)},_selectDay:function(a,b,c,d){var e=$(a);if(!$(d).hasClass(this._unselectableClass)&&!this._isDisabledDatepicker(e[0])){var f=this._getInst(e[0]);f.selectedDay=f.currentDay=$('a',d).html(),f.selectedMonth=f.currentMonth=b,f.selectedYear=f.currentYear=c,this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){var b=$(a),c=this._getInst(b[0]);this._selectDate(b,'')},_selectDate:function(a,b){var c=$(a),d=this._getInst(c[0]);b=null!=b?b:this._formatDate(d),d.input&&d.input.val(b),this._updateAlternate(d);var e=this._get(d,'onSelect');e?e.apply(d.input?d.input[0]:null,[b,d]):d.input&&d.input.trigger('change'),d.inline?this._updateDatepicker(d):(this._hideDatepicker(),this._lastInput=d.input[0],'object'!=typeof d.input[0]&&d.input.focus(),this._lastInput=null)},_updateAlternate:function(a){var b=this._get(a,'altField');if(b){var c=this._get(a,'altFormat')||this._get(a,'dateFormat'),d=this._getDate(a),e=this.formatDate(c,d,this._getFormatConfig(a));$(b).each(function(){$(this).val(e)})}},noWeekends:function(a){var b=a.getDay();return[b>0&&6>b,'']},iso8601Week:function(a){var b=new Date(a.getTime());b.setDate(b.getDate()+4-(b.getDay()||7));var c=b.getTime();return b.setMonth(0),b.setDate(1),Math.floor(Math.round((c-b)/864e5)/7)+1},parseDate:function(a,b,c){if(null==a||null==b)throw'Invalid arguments';if(b='object'==typeof b?b.toString():b+'',''==b)return null;var d=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;d='string'!=typeof d?d:(new Date).getFullYear()%100+parseInt(d,10);for(var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,g=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,h=(c?c.monthNames:null)||this._defaults.monthNames,i=-1,j=-1,k=-1,l=-1,m=!1,n=function(b){var c=s+1<a.length&&a.charAt(s+1)==b;return c&&s++,c},o=function(a){var c=n(a),d='@'==a?14:'!'==a?20:'y'==a&&c?4:'o'==a?3:2,e=new RegExp('^\\d{1,'+d+'}'),f=b.substring(r).match(e);if(!f)throw'Missing number at position '+r;return r+=f[0].length,parseInt(f[0],10)},p=function(a,c,d){var e=$.map(n(a)?d:c,function(a,b){return[[b,a]]}).sort(function(a,b){return-(a[1].length-b[1].length)}),f=-1;if($.each(e,function(a,c){var d=c[1];return b.substr(r,d.length).toLowerCase()==d.toLowerCase()?(f=c[0],r+=d.length,!1):void 0}),-1!=f)return f+1;throw'Unknown name at position '+r},q=function(){if(b.charAt(r)!=a.charAt(s))throw'Unexpected literal at position '+r;r++},r=0,s=0;s<a.length;s++)if(m)"'"!=a.charAt(s)||n("'")?q():m=!1;else switch(a.charAt(s)){case'd':k=o('d');break;case'D':p('D',e,f);break;case'o':l=o('o');break;case'm':j=o('m');break;case'M':j=p('M',g,h);break;case'y':i=o('y');break;case'@':var t=new Date(o('@'));i=t.getFullYear(),j=t.getMonth()+1,k=t.getDate();break;case'!':var t=new Date((o('!')-this._ticksTo1970)/1e4);i=t.getFullYear(),j=t.getMonth()+1,k=t.getDate();break;case"'":n("'")?q():m=!0;break;default:q()}if(r<b.length){var u=b.substr(r);if(!/^\s+/.test(u))throw"Extra/unparsed characters found in date: "+u}if(-1==i?i=(new Date).getFullYear():100>i&&(i+=(new Date).getFullYear()-(new Date).getFullYear()%100+(d>=i?0:-100)),l>-1)for(j=1,k=l;;){var v=this._getDaysInMonth(i,j-1);if(v>=k)break;j++,k-=v}var t=this._daylightSavingAdjust(new Date(i,j-1,k));if(t.getFullYear()!=i||t.getMonth()+1!=j||t.getDate()!=k)throw'Invalid date';return t},ATOM:'yy-mm-dd',COOKIE:'D, dd M yy',ISO_8601:'yy-mm-dd',RFC_822:'D, d M y',RFC_850:'DD, dd-M-y',RFC_1036:'D, d M y',RFC_1123:'D, d M yy',RFC_2822:'D, d M yy',RSS:'D, d M y',TICKS:'!',TIMESTAMP:'@',W3C:'yy-mm-dd',_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(a,b,c){if(!b)return'';var d=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,e=(c?c.dayNames:null)||this._defaults.dayNames,f=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,h=function(b){var c=m+1<a.length&&a.charAt(m+1)==b;return c&&m++,c},i=function(a,b,c){var d=''+b;if(h(a))for(;d.length<c;)d='0'+d;return d},j=function(a,b,c,d){return h(a)?d[b]:c[b]},k='',l=!1;if(b)for(var m=0;m<a.length;m++)if(l)"'"!=a.charAt(m)||h("'")?k+=a.charAt(m):l=!1;else switch(a.charAt(m)){case'd':k+=i('d',b.getDate(),2);break;case'D':k+=j('D',b.getDay(),d,e);break;case'o':k+=i('o',Math.round((new Date(b.getFullYear(),b.getMonth(),b.getDate()).getTime()-new Date(b.getFullYear(),0,0).getTime())/864e5),3);break;case'm':k+=i('m',b.getMonth()+1,2);break;case'M':k+=j('M',b.getMonth(),f,g);break;case'y':k+=h('y')?b.getFullYear():(b.getYear()%100<10?'0':'')+b.getYear()%100;break;case'@':k+=b.getTime();break;case'!':k+=1e4*b.getTime()+this._ticksTo1970;break;case"'":h("'")?k+="'":l=!0;break;default:k+=a.charAt(m)}return k},_possibleChars:function(a){for(var b='',c=!1,d=function(b){var c=e+1<a.length&&a.charAt(e+1)==b;return c&&e++,c},e=0;e<a.length;e++)if(c)"'"!=a.charAt(e)||d("'")?b+=a.charAt(e):c=!1;else switch(a.charAt(e)){case'd':case'm':case'y':case'@':b+='0123456789';break;case'D':case'M':return null;case"'":d("'")?b+="'":c=!0;break;default:b+=a.charAt(e)}return b},_get:function(a,b){return a.settings[b]!==undefined?a.settings[b]:this._defaults[b]},_setDateFromField:function(a,b){if(a.input.val()!=a.lastVal){var c=this._get(a,'dateFormat'),d=a.lastVal=a.input?a.input.val():null,e,f;e=f=this._getDefaultDate(a);var g=this._getFormatConfig(a);try{e=this.parseDate(c,d,g)||f}catch(h){this.log(h),d=b?'':d}a.selectedDay=e.getDate(),a.drawMonth=a.selectedMonth=e.getMonth(),a.drawYear=a.selectedYear=e.getFullYear(),a.currentDay=d?e.getDate():0,a.currentMonth=d?e.getMonth():0,a.currentYear=d?e.getFullYear():0,this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,'defaultDate'),new Date))},_determineDate:function(a,b,c){var d=function(a){var b=new Date;return b.setDate(b.getDate()+a),b},e=function(b){try{return $.datepicker.parseDate($.datepicker._get(a,'dateFormat'),b,$.datepicker._getFormatConfig(a))}catch(c){}for(var d=(b.toLowerCase().match(/^c/)?$.datepicker._getDate(a):null)||new Date,e=d.getFullYear(),f=d.getMonth(),g=d.getDate(),h=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,i=h.exec(b);i;){switch(i[2]||'d'){case'd':case'D':g+=parseInt(i[1],10);break;case'w':case'W':g+=7*parseInt(i[1],10);break;case'm':case'M':f+=parseInt(i[1],10),g=Math.min(g,$.datepicker._getDaysInMonth(e,f));break;case'y':case'Y':e+=parseInt(i[1],10),g=Math.min(g,$.datepicker._getDaysInMonth(e,f))}i=h.exec(b)}return new Date(e,f,g)},f=null==b||''===b?c:'string'==typeof b?e(b):'number'==typeof b?isNaN(b)?c:d(b):b instanceof Date?new Date(b.getTime()):c;return f=f&&'Invalid Date'==f.toString()?c:f,f&&(f.setHours(0),f.setMinutes(0),f.setSeconds(0),f.setMilliseconds(0)),this._daylightSavingAdjust(f)},_daylightSavingAdjust:function(a){return a?(a.setHours(a.getHours()>12?a.getHours()+2:0),a):null},_setDate:function(a,b,c){var d=!b,e=a.selectedMonth,f=a.selectedYear,g=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=g.getDate(),a.drawMonth=a.selectedMonth=a.currentMonth=g.getMonth(),a.drawYear=a.selectedYear=a.currentYear=g.getFullYear(),e==a.selectedMonth&&f==a.selectedYear||c||this._notifyChange(a),this._adjustInstDate(a),a.input&&a.input.val(d?'':this._formatDate(a))},_getDate:function(a){var b=!a.currentYear||a.input&&''==a.input.val()?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return b},_attachHandlers:function(a){var b=this._get(a,'stepMonths'),c='#'+a.id.replace(/\\\\/g,"\\");a.dpDiv.find('[data-handler]').map(function(){var a={prev:function(){window['DP_jQuery_'+dpuuid].datepicker._adjustDate(c,-b,'M')},next:function(){window['DP_jQuery_'+dpuuid].datepicker._adjustDate(c,+b,'M')},hide:function(){window['DP_jQuery_'+dpuuid].datepicker._hideDatepicker()},today:function(){window['DP_jQuery_'+dpuuid].datepicker._gotoToday(c)},selectDay:function(){return window['DP_jQuery_'+dpuuid].datepicker._selectDay(c,+this.getAttribute('data-month'),+this.getAttribute('data-year'),this),!1},selectMonth:function(){return window['DP_jQuery_'+dpuuid].datepicker._selectMonthYear(c,this,'M'),!1},selectYear:function(){return window['DP_jQuery_'+dpuuid].datepicker._selectMonthYear(c,this,'Y'),!1}};$(this).bind(this.getAttribute('data-event'),a[this.getAttribute('data-handler')])})},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,'isRTL'),d=this._get(a,'showButtonPanel'),e=this._get(a,'hideIfNoPrevNext'),f=this._get(a,'navigationAsDateFormat'),g=this._getNumberOfMonths(a),h=this._get(a,'showCurrentAtPos'),i=this._get(a,'stepMonths'),j=1!=g[0]||1!=g[1],k=this._daylightSavingAdjust(a.currentDay?new Date(a.currentYear,a.currentMonth,a.currentDay):new Date(9999,9,9)),l=this._getMinMaxDate(a,'min'),m=this._getMinMaxDate(a,'max'),n=a.drawMonth-h,o=a.drawYear;
if(0>n&&(n+=12,o--),m){var p=this._daylightSavingAdjust(new Date(m.getFullYear(),m.getMonth()-g[0]*g[1]+1,m.getDate()));for(p=l&&l>p?l:p;this._daylightSavingAdjust(new Date(o,n,1))>p;)n--,0>n&&(n=11,o--)}a.drawMonth=n,a.drawYear=o;var q=this._get(a,'prevText');q=f?this.formatDate(q,this._daylightSavingAdjust(new Date(o,n-i,1)),this._getFormatConfig(a)):q;var r=this._canAdjustMonth(a,-1,o,n)?"<a class=\"ui-datepicker-prev ui-corner-all\" data-handler=\"prev\" data-event=\"click\" title=\""+q+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?'e':'w')+'">'+q+'</span></a>':e?'':'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+q+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?'e':'w')+'">'+q+'</span></a>',s=this._get(a,'nextText');s=f?this.formatDate(s,this._daylightSavingAdjust(new Date(o,n+i,1)),this._getFormatConfig(a)):s;var t=this._canAdjustMonth(a,1,o,n)?"<a class=\"ui-datepicker-next ui-corner-all\" data-handler=\"next\" data-event=\"click\" title=\""+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?'w':'e')+'">'+s+'</span></a>':e?'':'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?'w':'e')+'">'+s+'</span></a>',u=this._get(a,'currentText'),v=this._get(a,'gotoCurrent')&&a.currentDay?k:b;u=f?this.formatDate(u,v,this._getFormatConfig(a)):u;var w=a.inline?'':'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" data-handler="hide" data-event="click">'+this._get(a,'closeText')+'</button>',x=d?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(c?w:'')+(this._isInRange(a,v)?"<button type=\"button\" class=\"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all\" data-handler=\"today\" data-event=\"click\">"+u+'</button>':'')+(c?'':w)+'</div>':'',y=parseInt(this._get(a,'firstDay'),10);y=isNaN(y)?0:y;for(var z=this._get(a,'showWeek'),A=this._get(a,'dayNames'),B=this._get(a,'dayNamesShort'),C=this._get(a,'dayNamesMin'),D=this._get(a,'monthNames'),E=this._get(a,'monthNamesShort'),F=this._get(a,'beforeShowDay'),G=this._get(a,'showOtherMonths'),H=this._get(a,'selectOtherMonths'),I=this._get(a,'calculateWeek')||this.iso8601Week,J=this._getDefaultDate(a),K='',L=0;L<g[0];L++){var M='';this.maxRows=4;for(var N=0;N<g[1];N++){var O=this._daylightSavingAdjust(new Date(o,n,a.selectedDay)),P=' ui-corner-all',Q='';if(j){if(Q+='<div class="ui-datepicker-group',g[1]>1)switch(N){case 0:Q+=' ui-datepicker-group-first',P=' ui-corner-'+(c?'right':'left');break;case g[1]-1:Q+=' ui-datepicker-group-last',P=' ui-corner-'+(c?'left':'right');break;default:Q+=' ui-datepicker-group-middle',P=''}Q+='">'}Q+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+P+'">'+(/all|left/.test(P)&&0==L?c?t:r:'')+(/all|right/.test(P)&&0==L?c?r:t:'')+this._generateMonthYearHeader(a,n,o,l,m,L>0||N>0,D,E)+"</div><table class=\"ui-datepicker-calendar\"><thead><tr>";for(var R=z?'<th class="ui-datepicker-week-col">'+this._get(a,'weekHeader')+'</th>':'',S=0;7>S;S++){var T=(S+y)%7;R+='<th'+((S+y+6)%7>=5?' class="ui-datepicker-week-end"':'')+"><span title=\""+A[T]+'">'+C[T]+'</span></th>'}Q+=R+'</tr></thead><tbody>';var U=this._getDaysInMonth(o,n);o==a.selectedYear&&n==a.selectedMonth&&(a.selectedDay=Math.min(a.selectedDay,U));var V=(this._getFirstDayOfMonth(o,n)-y+7)%7,W=Math.ceil((V+U)/7),X=j&&this.maxRows>W?this.maxRows:W;this.maxRows=X;for(var Y=this._daylightSavingAdjust(new Date(o,n,1-V)),Z=0;X>Z;Z++){Q+='<tr>';for(var _=z?'<td class="ui-datepicker-week-col">'+this._get(a,'calculateWeek')(Y)+'</td>':'',S=0;7>S;S++){var aa=F?F.apply(a.input?a.input[0]:null,[Y]):[!0,''],ba=Y.getMonth()!=n,ca=ba&&!H||!aa[0]||l&&l>Y||m&&Y>m;_+='<td class="'+((S+y+6)%7>=5?' ui-datepicker-week-end':'')+(ba?' ui-datepicker-other-month':'')+(Y.getTime()==O.getTime()&&n==a.selectedMonth&&a._keyEvent||J.getTime()==Y.getTime()&&J.getTime()==O.getTime()?' '+this._dayOverClass:'')+(ca?' '+this._unselectableClass+' ui-state-disabled':'')+(ba&&!G?'':' '+aa[1]+(Y.getTime()==k.getTime()?' '+this._currentClass:'')+(Y.getTime()==b.getTime()?' ui-datepicker-today':''))+'"'+(ba&&!G||!aa[2]?'':' title="'+aa[2]+'"')+(ca?'':' data-handler="selectDay" data-event="click" data-month="'+Y.getMonth()+'" data-year="'+Y.getFullYear()+'"')+'>'+(ba&&!G?'&#xa0;':ca?'<span class="ui-state-default">'+Y.getDate()+'</span>':'<a class="ui-state-default'+(Y.getTime()==b.getTime()?' ui-state-highlight':'')+(Y.getTime()==k.getTime()?' ui-state-active':'')+(ba?' ui-priority-secondary':'')+'" href="#">'+Y.getDate()+'</a>')+'</td>',Y.setDate(Y.getDate()+1),Y=this._daylightSavingAdjust(Y)}Q+=_+'</tr>'}n++,n>11&&(n=0,o++),Q+='</tbody></table>'+(j?'</div>'+(g[0]>0&&N==g[1]-1?'<div class="ui-datepicker-row-break"></div>':''):''),M+=Q}K+=M}return K+=x+($.ui.ie6&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':''),a._keyEvent=!1,K},_generateMonthYearHeader:function(a,b,c,d,e,f,g,h){var i=this._get(a,'changeMonth'),j=this._get(a,'changeYear'),k=this._get(a,'showMonthAfterYear'),l='<div class="ui-datepicker-title">',m='';if(f||!i)m+='<span class="ui-datepicker-month">'+g[b]+'</span>';else{var n=d&&d.getFullYear()==c,o=e&&e.getFullYear()==c;m+='<select class="ui-datepicker-month" data-handler="selectMonth" data-event="change">';for(var p=0;12>p;p++)(!n||p>=d.getMonth())&&(!o||p<=e.getMonth())&&(m+='<option value="'+p+'"'+(p==b?' selected="selected"':'')+'>'+h[p]+'</option>');m+='</select>'}if(k||(l+=m+(!f&&i&&j?'':'&#xa0;')),!a.yearshtml)if(a.yearshtml='',f||!j)l+='<span class="ui-datepicker-year">'+c+'</span>';else{var q=this._get(a,'yearRange').split(':'),r=(new Date).getFullYear(),s=function(a){var b=a.match(/c[+-].*/)?c+parseInt(a.substring(1),10):a.match(/[+-].*/)?r+parseInt(a,10):parseInt(a,10);return isNaN(b)?r:b},t=s(q[0]),u=Math.max(t,s(q[1]||''));for(t=d?Math.max(t,d.getFullYear()):t,u=e?Math.min(u,e.getFullYear()):u,a.yearshtml+='<select class="ui-datepicker-year" data-handler="selectYear" data-event="change">';u>=t;t++)a.yearshtml+='<option value="'+t+'"'+(t==c?' selected="selected"':'')+'>'+t+'</option>';a.yearshtml+='</select>',l+=a.yearshtml,a.yearshtml=null}return l+=this._get(a,'yearSuffix'),k&&(l+=(!f&&i&&j?'':'&#xa0;')+m),l+='</div>',l},_adjustInstDate:function(a,b,c){var d=a.drawYear+('Y'==c?b:0),e=a.drawMonth+('M'==c?b:0),f=Math.min(a.selectedDay,this._getDaysInMonth(d,e))+('D'==c?b:0),g=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(d,e,f)));a.selectedDay=g.getDate(),a.drawMonth=a.selectedMonth=g.getMonth(),a.drawYear=a.selectedYear=g.getFullYear(),'M'!=c&&'Y'!=c||this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,'min'),d=this._getMinMaxDate(a,'max'),e=c&&c>b?c:b;return e=d&&e>d?d:e,e},_notifyChange:function(a){var b=this._get(a,'onChangeMonthYear');b&&b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){var b=this._get(a,'numberOfMonths');return null==b?[1,1]:'number'==typeof b?[1,b]:b},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+'Date'),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return new Date(a,b,1).getDay()},_canAdjustMonth:function(a,b,c,d){var e=this._getNumberOfMonths(a),f=this._daylightSavingAdjust(new Date(c,d+(0>b?b:e[0]*e[1]),1));return 0>b&&f.setDate(this._getDaysInMonth(f.getFullYear(),f.getMonth())),this._isInRange(a,f)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,'min'),d=this._getMinMaxDate(a,'max');return(!c||b.getTime()>=c.getTime())&&(!d||b.getTime()<=d.getTime())},_getFormatConfig:function(a){var b=this._get(a,'shortYearCutoff');return b='string'!=typeof b?b:(new Date).getFullYear()%100+parseInt(b,10),{shortYearCutoff:b,dayNamesShort:this._get(a,'dayNamesShort'),dayNames:this._get(a,'dayNames'),monthNamesShort:this._get(a,'monthNamesShort'),monthNames:this._get(a,'monthNames')}},_formatDate:function(a,b,c,d){b||(a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear);var e=b?'object'==typeof b?b:this._daylightSavingAdjust(new Date(d,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,'dateFormat'),e,this._getFormatConfig(a))}}),$.fn.datepicker=function(a){if(!this.length)return this;$.datepicker.initialized||($(document).mousedown($.datepicker._checkExternalClick).find(document.body).append($.datepicker.dpDiv),$.datepicker.initialized=!0);var b=Array.prototype.slice.call(arguments,1);return'string'!=typeof a||'isDisabled'!=a&&'getDate'!=a&&'widget'!=a?'option'==a&&2==arguments.length&&'string'==typeof arguments[1]?$.datepicker['_'+a+'Datepicker'].apply($.datepicker,[this[0]].concat(b)):this.each(function(){'string'==typeof a?$.datepicker['_'+a+'Datepicker'].apply($.datepicker,[this].concat(b)):$.datepicker._attachDatepicker(this,a)}):$.datepicker['_'+a+'Datepicker'].apply($.datepicker,[this[0]].concat(b))},$.datepicker=new Datepicker,$.datepicker.initialized=!1,$.datepicker.uuid=(new Date).getTime(),$.datepicker.version="1.9.2",window['DP_jQuery_'+dpuuid]=$}(jQuery),define("jquery-ui/jquery.ui.datepicker",["jquery","jquery-ui/jquery.ui.core"],function(){}),function(a,b){var c=!1;a(document).mouseup(function(a){c=!1}),a.widget("ui.mouse",{version:"1.9.2",options:{cancel:'input,textarea,button,select,option',distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind('mousedown.'+this.widgetName,function(a){return b._mouseDown(a)}).bind('click.'+this.widgetName,function(c){return!0===a.data(c.target,b.widgetName+'.preventClickEvent')?(a.removeData(c.target,b.widgetName+'.preventClickEvent'),c.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind('.'+this.widgetName),this._mouseMoveDelegate&&a(document).unbind('mousemove.'+this.widgetName,this._mouseMoveDelegate).unbind('mouseup.'+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(b){if(!c){this._mouseStarted&&this._mouseUp(b),this._mouseDownEvent=b;var d=this,e=1===b.which,f="string"==typeof this.options.cancel&&b.target.nodeName?a(b.target).closest(this.options.cancel).length:!1;return e&&!f&&this._mouseCapture(b)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=this._mouseStart(b)!==!1,!this._mouseStarted)?(b.preventDefault(),!0):(!0===a.data(b.target,this.widgetName+'.preventClickEvent')&&a.removeData(b.target,this.widgetName+'.preventClickEvent'),this._mouseMoveDelegate=function(a){return d._mouseMove(a)},this._mouseUpDelegate=function(a){return d._mouseUp(a)},a(document).bind('mousemove.'+this.widgetName,this._mouseMoveDelegate).bind('mouseup.'+this.widgetName,this._mouseUpDelegate),b.preventDefault(),c=!0,!0)):!0}},_mouseMove:function(b){return!a.ui.ie||document.documentMode>=9||b.button?this._mouseStarted?(this._mouseDrag(b),b.preventDefault()):(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==!1,this._mouseStarted?this._mouseDrag(b):this._mouseUp(b)),!this._mouseStarted):this._mouseUp(b)},_mouseUp:function(b){return a(document).unbind('mousemove.'+this.widgetName,this._mouseMoveDelegate).unbind('mouseup.'+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,b.target===this._mouseDownEvent.target&&a.data(b.target,this.widgetName+'.preventClickEvent',!0),this._mouseStop(b)),!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(a){return this.mouseDelayMet},_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return!0}})}(jQuery),define("jquery-ui/jquery.ui.mouse",["jquery","jquery-ui/jquery.ui.widget"],function(){}),function(a,b){a.widget("ui.draggable",a.ui.mouse,{version:"1.9.2",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){'original'!=this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position='relative'),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(b){var c=this.options;return this.helper||c.disabled||a(b.target).is('.ui-resizable-handle')?!1:(this.handle=this._getHandle(b),this.handle?(a(c.iframeFix===!0?"iframe":c.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(a(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(b){var c=this.options;return this.helper=this._createHelper(b),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),a.ui.ddmanager&&(a.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt),c.containment&&this._setContainment(),this._trigger("start",b)===!1?(this._clear(),!1):(this._cacheHelperProportions(),a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this._mouseDrag(b,!0),a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,b),!0)},_mouseDrag:function(b,c){if(this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute"),!c){var d=this._uiHash();if(this._trigger('drag',b,d)===!1)return this._mouseUp({}),!1;this.position=d.position}return this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+'px'),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+'px'),a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),!1},_mouseStop:function(b){var c=!1;a.ui.ddmanager&&!this.options.dropBehaviour&&(c=a.ui.ddmanager.drop(this,b)),this.dropped&&(c=this.dropped,this.dropped=!1);for(var d=this.element[0],e=!1;d&&(d=d.parentNode);)d==document&&(e=!0);if(!e&&"original"===this.options.helper)return!1;if("invalid"==this.options.revert&&!c||"valid"==this.options.revert&&c||this.options.revert===!0||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,c)){var f=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){f._trigger("stop",b)!==!1&&f._clear()})}else this._trigger("stop",b)!==!1&&this._clear();return!1},_mouseUp:function(b){return a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,b),a.ui.mouse.prototype._mouseUp.call(this,b)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(b){var c=!this.options.handle||!a(this.options.handle,this.element).length;return a(this.options.handle,this.element).find("*").andSelf().each(function(){this==b.target&&(c=!0)}),c},_createHelper:function(b){var c=this.options,d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b])):'clone'==c.helper?this.element.clone().removeAttr('id'):this.element;return d.parents('body').length||d.appendTo('parent'==c.appendTo?this.element[0].parentNode:c.appendTo),d[0]==this.element[0]||/(fixed|absolute)/.test(d.css("position"))||d.css("position","absolute"),d},_adjustOffsetFromHelper:function(b){'string'==typeof b&&(b=b.split(' ')),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),'left'in b&&(this.offset.click.left=b.left+this.margins.left),'right'in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),'top'in b&&(this.offset.click.top=b.top+this.margins.top),'bottom'in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();return'absolute'==this.cssPosition&&this.scrollParent[0]!=document&&a.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&'html'==this.offsetParent[0].tagName.toLowerCase()&&a.ui.ie)&&(b={top:0,left:0}),{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;if('parent'==b.containment&&(b.containment=this.helper[0].parentNode),'document'!=b.containment&&'window'!=b.containment||(this.containment=['document'==b.containment?0:a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,'document'==b.containment?0:a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,('document'==b.containment?0:a(window).scrollLeft())+a('document'==b.containment?document:window).width()-this.helperProportions.width-this.margins.left,('document'==b.containment?0:a(window).scrollTop())+(a('document'==b.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(b.containment)||b.containment.constructor==Array)b.containment.constructor==Array&&(this.containment=b.containment);else{var c=a(b.containment),d=c[0];if(!d)return;var e=c.offset(),f='hidden'!=a(d).css("overflow");this.containment=[(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0),(parseInt(a(d).css("borderTopWidth"),10)||0)+(parseInt(a(d).css("paddingTop"),10)||0),(f?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(f?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=c}},_convertPositionTo:function(b,c){c||(c=this.position);var d="absolute"==b?1:-1,e=this.options,f='absolute'!=this.cssPosition||this.scrollParent[0]!=document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,g=/(html|body)/i.test(f[0].tagName);return{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-('fixed'==this.cssPosition?-this.scrollParent.scrollTop():g?0:f.scrollTop())*d,left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-('fixed'==this.cssPosition?-this.scrollParent.scrollLeft():g?0:f.scrollLeft())*d}},_generatePosition:function(b){var c=this.options,d='absolute'!=this.cssPosition||this.scrollParent[0]!=document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,e=/(html|body)/i.test(d[0].tagName),f=b.pageX,g=b.pageY;if(this.originalPosition){var h;if(this.containment){if(this.relative_container){var i=this.relative_container.offset();h=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]}else h=this.containment;b.pageX-this.offset.click.left<h[0]&&(f=h[0]+this.offset.click.left),b.pageY-this.offset.click.top<h[1]&&(g=h[1]+this.offset.click.top),b.pageX-this.offset.click.left>h[2]&&(f=h[2]+this.offset.click.left),b.pageY-this.offset.click.top>h[3]&&(g=h[3]+this.offset.click.top)}if(c.grid){var j=c.grid[1]?this.originalPageY+Math.round((g-this.originalPageY)/c.grid[1])*c.grid[1]:this.originalPageY;g=h&&(j-this.offset.click.top<h[1]||j-this.offset.click.top>h[3])?j-this.offset.click.top<h[1]?j+c.grid[1]:j-c.grid[1]:j;var k=c.grid[0]?this.originalPageX+Math.round((f-this.originalPageX)/c.grid[0])*c.grid[0]:this.originalPageX;f=h&&(k-this.offset.click.left<h[0]||k-this.offset.click.left>h[2])?k-this.offset.click.left<h[0]?k+c.grid[0]:k-c.grid[0]:k}}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+('fixed'==this.cssPosition?-this.scrollParent.scrollTop():e?0:d.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+('fixed'==this.cssPosition?-this.scrollParent.scrollLeft():e?0:d.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]==this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(b,c,d){return d=d||this._uiHash(),a.ui.plugin.call(this,b,[c,d]),"drag"==b&&(this.positionAbs=this._convertPositionTo("absolute")),a.Widget.prototype._trigger.call(this,b,c,d)},plugins:{},_uiHash:function(a){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),a.ui.plugin.add("draggable","connectToSortable",{start:function(b,c){var d=a(this).data("draggable"),e=d.options,f=a.extend({},c,{item:d.element});d.sortables=[],a(e.connectToSortable).each(function(){var c=a.data(this,'sortable');c&&!c.options.disabled&&(d.sortables.push({instance:c,shouldRevert:c.options.revert}),c.refreshPositions(),c._trigger("activate",b,f))})},stop:function(b,c){var d=a(this).data("draggable"),e=a.extend({},c,{item:d.element});a.each(d.sortables,function(){this.instance.isOver?(this.instance.isOver=0,d.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(b),this.instance.options.helper=this.instance.options._helper,'original'==d.options.helper&&this.instance.currentItem.css({top:'auto',left:'auto'})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",b,e))})},drag:function(b,c){var d=a(this).data("draggable"),e=this,f=function(b){var c=this.offset.click.top,d=this.offset.click.left,e=this.positionAbs.top,f=this.positionAbs.left,g=b.height,h=b.width,i=b.top,j=b.left;return a.ui.isOver(e+c,f+d,i,j,g,h)};a.each(d.sortables,function(f){var g=!1,h=this;this.instance.positionAbs=d.positionAbs,this.instance.helperProportions=d.helperProportions,this.instance.offset.click=d.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(g=!0,a.each(d.sortables,function(){return this.instance.positionAbs=d.positionAbs,this.instance.helperProportions=d.helperProportions,this.instance.offset.click=d.offset.click,this!=h&&this.instance._intersectsWith(this.instance.containerCache)&&a.ui.contains(h.instance.element[0],this.instance.element[0])&&(g=!1),g})),g?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=a(e).clone().removeAttr('id').appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return c.helper[0]},b.target=this.instance.currentItem[0],this.instance._mouseCapture(b,!0),this.instance._mouseStart(b,!0,!0),this.instance.offset.click.top=d.offset.click.top,this.instance.offset.click.left=d.offset.click.left,this.instance.offset.parent.left-=d.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=d.offset.parent.top-this.instance.offset.parent.top,d._trigger("toSortable",b),d.dropped=this.instance.element,d.currentItem=d.element,this.instance.fromOutside=d),this.instance.currentItem&&this.instance._mouseDrag(b)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger('out',b,this.instance._uiHash(this.instance)),this.instance._mouseStop(b,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),d._trigger("fromSortable",b),d.dropped=!1)})}}),a.ui.plugin.add("draggable","cursor",{start:function(b,c){var d=a('body'),e=a(this).data('draggable').options;d.css("cursor")&&(e._cursor=d.css("cursor")),d.css("cursor",e.cursor)},stop:function(b,c){var d=a(this).data('draggable').options;d._cursor&&a('body').css("cursor",d._cursor)}}),a.ui.plugin.add("draggable","opacity",{start:function(b,c){var d=a(c.helper),e=a(this).data('draggable').options;d.css("opacity")&&(e._opacity=d.css("opacity")),d.css('opacity',e.opacity)},stop:function(b,c){var d=a(this).data('draggable').options;d._opacity&&a(c.helper).css('opacity',d._opacity)}}),a.ui.plugin.add("draggable","scroll",{start:function(b,c){var d=a(this).data("draggable");d.scrollParent[0]!=document&&'HTML'!=d.scrollParent[0].tagName&&(d.overflowOffset=d.scrollParent.offset())},drag:function(b,c){var d=a(this).data("draggable"),e=d.options,f=!1;d.scrollParent[0]!=document&&'HTML'!=d.scrollParent[0].tagName?(e.axis&&'x'==e.axis||(d.overflowOffset.top+d.scrollParent[0].offsetHeight-b.pageY<e.scrollSensitivity?d.scrollParent[0].scrollTop=f=d.scrollParent[0].scrollTop+e.scrollSpeed:b.pageY-d.overflowOffset.top<e.scrollSensitivity&&(d.scrollParent[0].scrollTop=f=d.scrollParent[0].scrollTop-e.scrollSpeed)),e.axis&&'y'==e.axis||(d.overflowOffset.left+d.scrollParent[0].offsetWidth-b.pageX<e.scrollSensitivity?d.scrollParent[0].scrollLeft=f=d.scrollParent[0].scrollLeft+e.scrollSpeed:b.pageX-d.overflowOffset.left<e.scrollSensitivity&&(d.scrollParent[0].scrollLeft=f=d.scrollParent[0].scrollLeft-e.scrollSpeed))):(e.axis&&'x'==e.axis||(b.pageY-a(document).scrollTop()<e.scrollSensitivity?f=a(document).scrollTop(a(document).scrollTop()-e.scrollSpeed):a(window).height()-(b.pageY-a(document).scrollTop())<e.scrollSensitivity&&(f=a(document).scrollTop(a(document).scrollTop()+e.scrollSpeed))),e.axis&&'y'==e.axis||(b.pageX-a(document).scrollLeft()<e.scrollSensitivity?f=a(document).scrollLeft(a(document).scrollLeft()-e.scrollSpeed):a(window).width()-(b.pageX-a(document).scrollLeft())<e.scrollSensitivity&&(f=a(document).scrollLeft(a(document).scrollLeft()+e.scrollSpeed)))),f!==!1&&a.ui.ddmanager&&!e.dropBehaviour&&a.ui.ddmanager.prepareOffsets(d,b)}}),a.ui.plugin.add("draggable","snap",{start:function(b,c){var d=a(this).data("draggable"),e=d.options;d.snapElements=[],a(e.snap.constructor!=String?e.snap.items||':data(draggable)':e.snap).each(function(){var b=a(this),c=b.offset();this!=d.element[0]&&d.snapElements.push({item:this,width:b.outerWidth(),height:b.outerHeight(),top:c.top,left:c.left})})},drag:function(b,c){for(var d=a(this).data("draggable"),e=d.options,f=e.snapTolerance,g=c.offset.left,h=g+d.helperProportions.width,i=c.offset.top,j=i+d.helperProportions.height,k=d.snapElements.length-1;k>=0;k--){var l=d.snapElements[k].left,m=l+d.snapElements[k].width,n=d.snapElements[k].top,o=n+d.snapElements[k].height;if(g>l-f&&m+f>g&&i>n-f&&o+f>i||g>l-f&&m+f>g&&j>n-f&&o+f>j||h>l-f&&m+f>h&&i>n-f&&o+f>i||h>l-f&&m+f>h&&j>n-f&&o+f>j){if('inner'!=e.snapMode){var p=Math.abs(n-j)<=f,q=Math.abs(o-i)<=f,r=Math.abs(l-h)<=f,s=Math.abs(m-g)<=f;p&&(c.position.top=d._convertPositionTo("relative",{top:n-d.helperProportions.height,left:0}).top-d.margins.top),q&&(c.position.top=d._convertPositionTo("relative",{top:o,left:0}).top-d.margins.top),r&&(c.position.left=d._convertPositionTo("relative",{top:0,left:l-d.helperProportions.width}).left-d.margins.left),s&&(c.position.left=d._convertPositionTo("relative",{top:0,left:m}).left-d.margins.left)}var t=p||q||r||s;if('outer'!=e.snapMode){var p=Math.abs(n-i)<=f,q=Math.abs(o-j)<=f,r=Math.abs(l-g)<=f,s=Math.abs(m-h)<=f;p&&(c.position.top=d._convertPositionTo("relative",{top:n,left:0}).top-d.margins.top),q&&(c.position.top=d._convertPositionTo("relative",{top:o-d.helperProportions.height,left:0}).top-d.margins.top),r&&(c.position.left=d._convertPositionTo("relative",{top:0,left:l}).left-d.margins.left),s&&(c.position.left=d._convertPositionTo("relative",{top:0,left:m-d.helperProportions.width}).left-d.margins.left)}!d.snapElements[k].snapping&&(p||q||r||s||t)&&d.options.snap.snap&&d.options.snap.snap.call(d.element,b,a.extend(d._uiHash(),{snapItem:d.snapElements[k].item})),d.snapElements[k].snapping=p||q||r||s||t}else d.snapElements[k].snapping&&d.options.snap.release&&d.options.snap.release.call(d.element,b,a.extend(d._uiHash(),{snapItem:d.snapElements[k].item})),d.snapElements[k].snapping=!1}}}),a.ui.plugin.add("draggable","stack",{start:function(b,c){var d=a(this).data("draggable").options,e=a.makeArray(a(d.stack)).sort(function(b,c){return(parseInt(a(b).css("zIndex"),10)||0)-(parseInt(a(c).css("zIndex"),10)||0)});if(e.length){var f=parseInt(e[0].style.zIndex)||0;a(e).each(function(a){this.style.zIndex=f+a}),this[0].style.zIndex=f+e.length}}}),a.ui.plugin.add("draggable","zIndex",{start:function(b,c){var d=a(c.helper),e=a(this).data("draggable").options;d.css("zIndex")&&(e._zIndex=d.css("zIndex")),d.css('zIndex',e.zIndex)},stop:function(b,c){var d=a(this).data("draggable").options;d._zIndex&&a(c.helper).css('zIndex',d._zIndex)}})}(jQuery),define("jquery-ui/jquery.ui.draggable",["jquery","jquery-ui/jquery.ui.core","jquery-ui/jquery.ui.mouse","jquery-ui/jquery.ui.widget"],function(){}),function(a,b){a.widget("ui.droppable",{version:"1.9.2",widgetEventPrefix:"drop",options:{accept:'*',activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:'default',tolerance:'intersect'},_create:function(){var b=this.options,c=b.accept;this.isover=0,this.isout=1,this.accept=a.isFunction(c)?c:function(a){return a.is(c)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},a.ui.ddmanager.droppables[b.scope]=a.ui.ddmanager.droppables[b.scope]||[],a.ui.ddmanager.droppables[b.scope].push(this),b.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var b=a.ui.ddmanager.droppables[this.options.scope],c=0;c<b.length;c++)b[c]==this&&b.splice(c,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(b,c){'accept'==b&&(this.accept=a.isFunction(c)?c:function(a){return a.is(c)}),a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(b){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),c&&this._trigger('activate',b,this.ui(c))},_deactivate:function(b){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),c&&this._trigger('deactivate',b,this.ui(c))},_over:function(b){var c=a.ui.ddmanager.current;c&&(c.currentItem||c.element)[0]!=this.element[0]&&this.accept.call(this.element[0],c.currentItem||c.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),
this._trigger('over',b,this.ui(c)))},_out:function(b){var c=a.ui.ddmanager.current;c&&(c.currentItem||c.element)[0]!=this.element[0]&&this.accept.call(this.element[0],c.currentItem||c.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger('out',b,this.ui(c)))},_drop:function(b,c){var d=c||a.ui.ddmanager.current;if(!d||(d.currentItem||d.element)[0]==this.element[0])return!1;var e=!1;return this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var b=a.data(this,'droppable');return b.options.greedy&&!b.options.disabled&&b.options.scope==d.options.scope&&b.accept.call(b.element[0],d.currentItem||d.element)&&a.ui.intersect(d,a.extend(b,{offset:b.element.offset()}),b.options.tolerance)?(e=!0,!1):void 0}),e?!1:this.accept.call(this.element[0],d.currentItem||d.element)?(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger('drop',b,this.ui(d)),this.element):!1},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.helper,position:a.position,offset:a.positionAbs}}}),a.ui.intersect=function(b,c,d){if(!c.offset)return!1;var e=(b.positionAbs||b.position.absolute).left,f=e+b.helperProportions.width,g=(b.positionAbs||b.position.absolute).top,h=g+b.helperProportions.height,i=c.offset.left,j=i+c.proportions.width,k=c.offset.top,l=k+c.proportions.height;switch(d){case'fit':return e>=i&&j>=f&&g>=k&&l>=h;case'intersect':return i<e+b.helperProportions.width/2&&f-b.helperProportions.width/2<j&&k<g+b.helperProportions.height/2&&h-b.helperProportions.height/2<l;case'pointer':var m=(b.positionAbs||b.position.absolute).left+(b.clickOffset||b.offset.click).left,n=(b.positionAbs||b.position.absolute).top+(b.clickOffset||b.offset.click).top,o=a.ui.isOver(n,m,k,i,c.proportions.height,c.proportions.width);return o;case'touch':return(g>=k&&l>=g||h>=k&&l>=h||k>g&&h>l)&&(e>=i&&j>=e||f>=i&&j>=f||i>e&&f>j);default:return!1}},a.ui.ddmanager={current:null,droppables:{'default':[]},prepareOffsets:function(b,c){var d=a.ui.ddmanager.droppables[b.options.scope]||[],e=c?c.type:null,f=(b.currentItem||b.element).find(":data(droppable)").andSelf();a:for(var g=0;g<d.length;g++)if(!(d[g].options.disabled||b&&!d[g].accept.call(d[g].element[0],b.currentItem||b.element))){for(var h=0;h<f.length;h++)if(f[h]==d[g].element[0]){d[g].proportions.height=0;continue a}d[g].visible="none"!=d[g].element.css("display"),d[g].visible&&("mousedown"==e&&d[g]._activate.call(d[g],c),d[g].offset=d[g].element.offset(),d[g].proportions={width:d[g].element[0].offsetWidth,height:d[g].element[0].offsetHeight})}},drop:function(b,c){var d=!1;return a.each(a.ui.ddmanager.droppables[b.options.scope]||[],function(){this.options&&(!this.options.disabled&&this.visible&&a.ui.intersect(b,this,this.options.tolerance)&&(d=this._drop.call(this,c)||d),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],b.currentItem||b.element)&&(this.isout=1,this.isover=0,this._deactivate.call(this,c)))}),d},dragStart:function(b,c){b.element.parentsUntil("body").bind("scroll.droppable",function(){b.options.refreshPositions||a.ui.ddmanager.prepareOffsets(b,c)})},drag:function(b,c){b.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(b,c),a.each(a.ui.ddmanager.droppables[b.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var d=a.ui.intersect(b,this,this.options.tolerance),e=d||1!=this.isover?d&&0==this.isover?'isover':null:'isout';if(e){var f;if(this.options.greedy){var g=this.options.scope,h=this.element.parents(':data(droppable)').filter(function(){return a.data(this,'droppable').options.scope===g});h.length&&(f=a.data(h[0],'droppable'),f.greedyChild='isover'==e?1:0)}f&&'isover'==e&&(f.isover=0,f.isout=1,f._out.call(f,c)),this[e]=1,this['isout'==e?'isover':'isout']=0,this["isover"==e?"_over":"_out"].call(this,c),f&&'isout'==e&&(f.isout=0,f.isover=1,f._over.call(f,c))}}})},dragStop:function(b,c){b.element.parentsUntil("body").unbind("scroll.droppable"),b.options.refreshPositions||a.ui.ddmanager.prepareOffsets(b,c)}}}(jQuery),define("jquery-ui/jquery.ui.droppable",["jquery","jquery-ui/jquery.ui.core","jquery-ui/jquery.ui.mouse","jquery-ui/jquery.ui.widget","jquery-ui/jquery.ui.draggable"],function(){}),function(a,b){a.effects.effect.bounce=function(b,c){var d=a(this),e=["position","top","bottom","left","right","height","width"],f=a.effects.setMode(d,b.mode||"effect"),g="hide"===f,h="show"===f,i=b.direction||"up",j=b.distance,k=b.times||5,l=2*k+(h||g?1:0),m=b.duration/l,n=b.easing,o="up"===i||"down"===i?"top":"left",p="up"===i||"left"===i,q,r,s,t=d.queue(),u=t.length;for((h||g)&&e.push("opacity"),a.effects.save(d,e),d.show(),a.effects.createWrapper(d),j||(j=d["top"===o?"outerHeight":"outerWidth"]()/3),h&&(s={opacity:1},s[o]=0,d.css("opacity",0).css(o,p?2*-j:2*j).animate(s,m,n)),g&&(j/=Math.pow(2,k-1)),s={},s[o]=0,q=0;k>q;q++)r={},r[o]=(p?"-=":"+=")+j,d.animate(r,m,n).animate(s,m,n),j=g?2*j:j/2;g&&(r={opacity:0},r[o]=(p?"-=":"+=")+j,d.animate(r,m,n)),d.queue(function(){g&&d.hide(),a.effects.restore(d,e),a.effects.removeWrapper(d),c()}),u>1&&t.splice.apply(t,[1,0].concat(t.splice(u,l+1))),d.dequeue()}}(jQuery),define("jquery-ui/jquery.ui.effect-bounce",["jquery","jquery-ui/jquery.ui.effect"],function(){}),function(a,b){a.effects.effect.highlight=function(b,c){var d=a(this),e=["backgroundImage","backgroundColor","opacity"],f=a.effects.setMode(d,b.mode||"show"),g={backgroundColor:d.css("backgroundColor")};"hide"===f&&(g.opacity=0),a.effects.save(d,e),d.show().css({backgroundImage:"none",backgroundColor:b.color||"#ffff99"}).animate(g,{queue:!1,duration:b.duration,easing:b.easing,complete:function(){"hide"===f&&d.hide(),a.effects.restore(d,e),c()}})}}(jQuery),define("jquery-ui/jquery.ui.effect-highlight",["jquery","jquery-ui/jquery.ui.effect"],function(){}),function(a,b){var c=5;a.widget("ui.slider",a.ui.mouse,{version:"1.9.2",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function(){var b,d,e=this.options,f=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),g="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",h=[];for(this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(e.disabled?" ui-slider-disabled ui-disabled":"")),this.range=a([]),e.range&&(e.range===!0&&(e.values||(e.values=[this._valueMin(),this._valueMin()]),e.values.length&&2!==e.values.length&&(e.values=[e.values[0],e.values[0]])),this.range=a("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+("min"===e.range||"max"===e.range?" ui-slider-range-"+e.range:""))),d=e.values&&e.values.length||1,b=f.length;d>b;b++)h.push(g);this.handles=f.add(a(h.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.add(this.range).filter("a").click(function(a){a.preventDefault()}).mouseenter(function(){e.disabled||a(this).addClass("ui-state-hover")}).mouseleave(function(){a(this).removeClass("ui-state-hover")}).focus(function(){e.disabled?a(this).blur():(a(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),a(this).addClass("ui-state-focus"))}).blur(function(){a(this).removeClass("ui-state-focus")}),this.handles.each(function(b){a(this).data("ui-slider-handle-index",b)}),this._on(this.handles,{keydown:function(b){var d,e,f,g,h=a(b.target).data("ui-slider-handle-index");switch(b.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(b.preventDefault(),!this._keySliding&&(this._keySliding=!0,a(b.target).addClass("ui-state-active"),d=this._start(b,h),d===!1))return}switch(g=this.options.step,e=f=this.options.values&&this.options.values.length?this.values(h):this.value(),b.keyCode){case a.ui.keyCode.HOME:f=this._valueMin();break;case a.ui.keyCode.END:f=this._valueMax();break;case a.ui.keyCode.PAGE_UP:f=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/c);break;case a.ui.keyCode.PAGE_DOWN:f=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/c);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(e===this._valueMax())return;f=this._trimAlignValue(e+g);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(e===this._valueMin())return;f=this._trimAlignValue(e-g)}this._slide(b,h,f)},keyup:function(b){var c=a(b.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(b,c),this._change(b,c),a(b.target).removeClass("ui-state-active"))}}),this._refreshValue(),this._animateOff=!1},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(b){var c,d,e,f,g,h,i,j,k=this,l=this.options;return l.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),c={x:b.pageX,y:b.pageY},d=this._normValueFromMouse(c),e=this._valueMax()-this._valueMin()+1,this.handles.each(function(b){var c=Math.abs(d-k.values(b));e>c&&(e=c,f=a(this),g=b)}),l.range===!0&&this.values(1)===l.min&&(g+=1,f=a(this.handles[g])),h=this._start(b,g),h===!1?!1:(this._mouseSliding=!0,this._handleIndex=g,f.addClass("ui-state-active").focus(),i=f.offset(),j=!a(b.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=j?{left:0,top:0}:{left:b.pageX-i.left-f.width()/2,top:b.pageY-i.top-f.height()/2-(parseInt(f.css("borderTopWidth"),10)||0)-(parseInt(f.css("borderBottomWidth"),10)||0)+(parseInt(f.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(b,g,d),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(a){var b={x:a.pageX,y:a.pageY},c=this._normValueFromMouse(b);return this._slide(a,this._handleIndex,c),!1},_mouseStop:function(a){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(a,this._handleIndex),this._change(a,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(a){var b,c,d,e,f;return"horizontal"===this.orientation?(b=this.elementSize.width,c=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(b=this.elementSize.height,c=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),d=c/b,d>1&&(d=1),0>d&&(d=0),"vertical"===this.orientation&&(d=1-d),e=this._valueMax()-this._valueMin(),f=this._valueMin()+d*e,this._trimAlignValue(f)},_start:function(a,b){var c={handle:this.handles[b],value:this.value()};return this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._trigger("start",a,c)},_slide:function(a,b,c){var d,e,f;this.options.values&&this.options.values.length?(d=this.values(b?0:1),2===this.options.values.length&&this.options.range===!0&&(0===b&&c>d||1===b&&d>c)&&(c=d),c!==this.values(b)&&(e=this.values(),e[b]=c,f=this._trigger("slide",a,{handle:this.handles[b],value:c,values:e}),d=this.values(b?0:1),f!==!1&&this.values(b,c,!0))):c!==this.value()&&(f=this._trigger("slide",a,{handle:this.handles[b],value:c}),f!==!1&&this.value(c))},_stop:function(a,b){var c={handle:this.handles[b],value:this.value()};this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._trigger("stop",a,c)},_change:function(a,b){if(!this._keySliding&&!this._mouseSliding){var c={handle:this.handles[b],value:this.value()};this.options.values&&this.options.values.length&&(c.value=this.values(b),c.values=this.values()),this._trigger("change",a,c)}},value:function(a){return arguments.length?(this.options.value=this._trimAlignValue(a),this._refreshValue(),this._change(null,0),void 0):this._value()},values:function(b,c){var d,e,f;if(arguments.length>1)return this.options.values[b]=this._trimAlignValue(c),this._refreshValue(),this._change(null,b),void 0;if(!arguments.length)return this._values();if(!a.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(b):this.value();for(d=this.options.values,e=arguments[0],f=0;f<d.length;f+=1)d[f]=this._trimAlignValue(e[f]),this._change(null,f);this._refreshValue()},_setOption:function(b,c){var d,e=0;switch(a.isArray(this.options.values)&&(e=this.options.values.length),a.Widget.prototype._setOption.apply(this,arguments),b){case"disabled":c?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.prop("disabled",!0),this.element.addClass("ui-disabled")):(this.handles.prop("disabled",!1),this.element.removeClass("ui-disabled"));break;case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),d=0;e>d;d+=1)this._change(null,d);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1}},_value:function(){var a=this.options.value;return a=this._trimAlignValue(a),a},_values:function(a){var b,c,d;if(arguments.length)return b=this.options.values[a],b=this._trimAlignValue(b),b;for(c=this.options.values.slice(),d=0;d<c.length;d+=1)c[d]=this._trimAlignValue(c[d]);return c},_trimAlignValue:function(a){if(a<=this._valueMin())return this._valueMin();if(a>=this._valueMax())return this._valueMax();var b=this.options.step>0?this.options.step:1,c=(a-this._valueMin())%b,d=a-c;return 2*Math.abs(c)>=b&&(d+=c>0?b:-b),parseFloat(d.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var b,c,d,e,f,g=this.options.range,h=this.options,i=this,j=this._animateOff?!1:h.animate,k={};this.options.values&&this.options.values.length?this.handles.each(function(d){c=(i.values(d)-i._valueMin())/(i._valueMax()-i._valueMin())*100,k["horizontal"===i.orientation?"left":"bottom"]=c+"%",a(this).stop(1,1)[j?"animate":"css"](k,h.animate),i.options.range===!0&&("horizontal"===i.orientation?(0===d&&i.range.stop(1,1)[j?"animate":"css"]({left:c+"%"},h.animate),1===d&&i.range[j?"animate":"css"]({width:c-b+"%"},{queue:!1,duration:h.animate})):(0===d&&i.range.stop(1,1)[j?"animate":"css"]({bottom:c+"%"},h.animate),1===d&&i.range[j?"animate":"css"]({height:c-b+"%"},{queue:!1,duration:h.animate}))),b=c}):(d=this.value(),e=this._valueMin(),f=this._valueMax(),c=f!==e?(d-e)/(f-e)*100:0,k["horizontal"===this.orientation?"left":"bottom"]=c+"%",this.handle.stop(1,1)[j?"animate":"css"](k,h.animate),"min"===g&&"horizontal"===this.orientation&&this.range.stop(1,1)[j?"animate":"css"]({width:c+"%"},h.animate),"max"===g&&"horizontal"===this.orientation&&this.range[j?"animate":"css"]({width:100-c+"%"},{queue:!1,duration:h.animate}),"min"===g&&"vertical"===this.orientation&&this.range.stop(1,1)[j?"animate":"css"]({height:c+"%"},h.animate),"max"===g&&"vertical"===this.orientation&&this.range[j?"animate":"css"]({height:100-c+"%"},{queue:!1,duration:h.animate}))}})}(jQuery),define("jquery-ui/jquery.ui.slider",["jquery","jquery-ui/jquery.ui.core","jquery-ui/jquery.ui.mouse","jquery-ui/jquery.ui.widget"],function(){}),function(a,b){a.widget("ui.sortable",a.ui.mouse,{version:"1.9.2",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:'auto',cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:'> *',opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3},_create:function(){var a=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?'x'===a.axis||/left|right/.test(this.items[0].item.css('float'))||/inline|table-cell/.test(this.items[0].item.css('display')):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var a=this.items.length-1;a>=0;a--)this.items[a].item.removeData(this.widgetName+"-item");return this},_setOption:function(b,c){"disabled"===b?(this.options[b]=c,this.widget().toggleClass("ui-sortable-disabled",!!c)):a.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(b,c){var d=this;if(this.reverting)return!1;if(this.options.disabled||'static'==this.options.type)return!1;this._refreshItems(b);var e=null,f=a(b.target).parents().each(function(){return a.data(this,d.widgetName+'-item')==d?(e=a(this),!1):void 0});if(a.data(b.target,d.widgetName+'-item')==d&&(e=a(b.target)),!e)return!1;if(this.options.handle&&!c){var g=!1;if(a(this.options.handle,e).find("*").andSelf().each(function(){this==b.target&&(g=!0)}),!g)return!1}return this.currentItem=e,this._removeCurrentsFromItems(),!0},_mouseStart:function(b,c,d){var e=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(b),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(b),this.originalPageX=b.pageX,this.originalPageY=b.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!=this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),e.containment&&this._setContainment(),e.cursor&&(a('body').css("cursor")&&(this._storedCursor=a('body').css("cursor")),a('body').css("cursor",e.cursor)),e.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",e.opacity)),e.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",e.zIndex)),this.scrollParent[0]!=document&&'HTML'!=this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",b,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!d)for(var f=this.containers.length-1;f>=0;f--)this.containers[f]._trigger("activate",b,this._uiHash(this));return a.ui.ddmanager&&(a.ui.ddmanager.current=this),a.ui.ddmanager&&!e.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(b),!0},_mouseDrag:function(b){if(this.position=this._generatePosition(b),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll){var c=this.options,d=!1;this.scrollParent[0]!=document&&'HTML'!=this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-b.pageY<c.scrollSensitivity?this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop+c.scrollSpeed:b.pageY-this.overflowOffset.top<c.scrollSensitivity&&(this.scrollParent[0].scrollTop=d=this.scrollParent[0].scrollTop-c.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-b.pageX<c.scrollSensitivity?this.scrollParent[0].scrollLeft=d=this.scrollParent[0].scrollLeft+c.scrollSpeed:b.pageX-this.overflowOffset.left<c.scrollSensitivity&&(this.scrollParent[0].scrollLeft=d=this.scrollParent[0].scrollLeft-c.scrollSpeed)):(b.pageY-a(document).scrollTop()<c.scrollSensitivity?d=a(document).scrollTop(a(document).scrollTop()-c.scrollSpeed):a(window).height()-(b.pageY-a(document).scrollTop())<c.scrollSensitivity&&(d=a(document).scrollTop(a(document).scrollTop()+c.scrollSpeed)),b.pageX-a(document).scrollLeft()<c.scrollSensitivity?d=a(document).scrollLeft(a(document).scrollLeft()-c.scrollSpeed):a(window).width()-(b.pageX-a(document).scrollLeft())<c.scrollSensitivity&&(d=a(document).scrollLeft(a(document).scrollLeft()+c.scrollSpeed))),d!==!1&&a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,b)}this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+'px'),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+'px');for(var e=this.items.length-1;e>=0;e--){var f=this.items[e],g=f.item[0],h=this._intersectsWithPointer(f);if(h&&f.instance===this.currentContainer&&g!=this.currentItem[0]&&this.placeholder[1==h?"next":"prev"]()[0]!=g&&!a.contains(this.placeholder[0],g)&&('semi-dynamic'==this.options.type?!a.contains(this.element[0],g):!0)){if(this.direction=1==h?"down":"up","pointer"!=this.options.tolerance&&!this._intersectsWithSides(f))break;this._rearrange(b,f),this._trigger("change",b,this._uiHash());break}}return this._contactContainers(b),a.ui.ddmanager&&a.ui.ddmanager.drag(this,b),this._trigger('sort',b,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(b,c){if(b){if(a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,b),this.options.revert){var d=this,e=this.placeholder.offset();this.reverting=!0,a(this.helper).animate({left:e.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:e.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){d._clear(b)})}else this._clear(b,c);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"==this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var b=this.containers.length-1;b>=0;b--)this.containers[b]._trigger("deactivate",null,this._uiHash(this)),this.containers[b].containerCache.over&&(this.containers[b]._trigger("out",null,this._uiHash(this)),this.containers[b].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!=this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),a.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):a(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];return b=b||{},a(c).each(function(){var c=(a(b.item||this).attr(b.attribute||'id')||'').match(b.expression||/(.+)[-=_](.+)/);c&&d.push((b.key||c[1]+'[]')+'='+(b.key&&b.expression?c[1]:c[2]))}),!d.length&&b.key&&d.push(b.key+'='),d.join('&')},toArray:function(b){var c=this._getItemsAsjQuery(b&&b.connected),d=[];return b=b||{},c.each(function(){d.push(a(b.item||this).attr(b.attribute||'id')||'')}),d},_intersectsWith:function(a){var b=this.positionAbs.left,c=b+this.helperProportions.width,d=this.positionAbs.top,e=d+this.helperProportions.height,f=a.left,g=f+a.width,h=a.top,i=h+a.height,j=this.offset.click.top,k=this.offset.click.left,l=d+j>h&&i>d+j&&b+k>f&&g>b+k;return"pointer"==this.options.tolerance||this.options.forcePointerForContainers||"pointer"!=this.options.tolerance&&this.helperProportions[this.floating?'width':'height']>a[this.floating?'width':'height']?l:f<b+this.helperProportions.width/2&&c-this.helperProportions.width/2<g&&h<d+this.helperProportions.height/2&&e-this.helperProportions.height/2<i},_intersectsWithPointer:function(b){var c='x'===this.options.axis||a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top,b.height),d='y'===this.options.axis||a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left,b.width),e=c&&d,f=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();return e?this.floating?g&&"right"==g||"down"==f?2:1:f&&("down"==f?2:1):!1},_intersectsWithSides:function(b){var c=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,b.top+b.height/2,b.height),d=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,b.left+b.width/2,b.width),e=this._getDragVerticalDirection(),f=this._getDragHorizontalDirection();return this.floating&&f?"right"==f&&d||"left"==f&&!d:e&&("down"==e&&c||"up"==e&&!c)},_getDragVerticalDirection:function(){var a=this.positionAbs.top-this.lastPositionAbs.top;return 0!=a&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=this.positionAbs.left-this.lastPositionAbs.left;return 0!=a&&(a>0?"right":"left")},refresh:function(a){return this._refreshItems(a),this.refreshPositions(),this},_connectWith:function(){var a=this.options;return a.connectWith.constructor==String?[a.connectWith]:a.connectWith},_getItemsAsjQuery:function(b){var c=[],d=[],e=this._connectWith();if(e&&b)for(var f=e.length-1;f>=0;f--)for(var g=a(e[f]),h=g.length-1;h>=0;h--){var i=a.data(g[h],this.widgetName);i&&i!=this&&!i.options.disabled&&d.push([a.isFunction(i.options.items)?i.options.items.call(i.element):a(i.options.items,i.element).not(".ui-sortable-helper").not('.ui-sortable-placeholder'),i])}d.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not('.ui-sortable-placeholder'),this]);for(var f=d.length-1;f>=0;f--)d[f][0].each(function(){c.push(this)});return a(c)},_removeCurrentsFromItems:function(){var b=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=a.grep(this.items,function(a){for(var c=0;c<b.length;c++)if(b[c]==a.item[0])return!1;return!0})},_refreshItems:function(b){this.items=[],this.containers=[this];var c=this.items,d=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],b,{item:this.currentItem}):a(this.options.items,this.element),this]],e=this._connectWith();if(e&&this.ready)for(var f=e.length-1;f>=0;f--)for(var g=a(e[f]),h=g.length-1;h>=0;h--){var i=a.data(g[h],this.widgetName);i&&i!=this&&!i.options.disabled&&(d.push([a.isFunction(i.options.items)?i.options.items.call(i.element[0],b,{item:this.currentItem}):a(i.options.items,i.element),i]),this.containers.push(i))}for(var f=d.length-1;f>=0;f--)for(var j=d[f][1],k=d[f][0],h=0,l=k.length;l>h;h++){var m=a(k[h]);m.data(this.widgetName+'-item',j),c.push({item:m,instance:j,width:0,height:0,left:0,top:0})}},refreshPositions:function(b){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());for(var c=this.items.length-1;c>=0;c--){var d=this.items[c];if(d.instance==this.currentContainer||!this.currentContainer||d.item[0]==this.currentItem[0]){var e=this.options.toleranceElement?a(this.options.toleranceElement,d.item):d.item;b||(d.width=e.outerWidth(),d.height=e.outerHeight());var f=e.offset();d.left=f.left,d.top=f.top}}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(var c=this.containers.length-1;c>=0;c--){var f=this.containers[c].element.offset();this.containers[c].containerCache.left=f.left,this.containers[c].containerCache.top=f.top,this.containers[c].containerCache.width=this.containers[c].element.outerWidth(),this.containers[c].containerCache.height=this.containers[c].element.outerHeight()}return this},_createPlaceholder:function(b){b=b||this;var c=b.options;if(!c.placeholder||c.placeholder.constructor==String){var d=c.placeholder;c.placeholder={element:function(){var c=a(document.createElement(b.currentItem[0].nodeName)).addClass(d||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];return d||(c.style.visibility="hidden"),c},update:function(a,e){d&&!c.forcePlaceholderSize||(e.height()||e.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css('paddingTop')||0,10)-parseInt(b.currentItem.css('paddingBottom')||0,10)),e.width()||e.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css('paddingLeft')||0,10)-parseInt(b.currentItem.css('paddingRight')||0,10)))}}}b.placeholder=a(c.placeholder.element.call(b.element,b.currentItem)),b.currentItem.after(b.placeholder),c.placeholder.update(b,b.placeholder)},_contactContainers:function(b){for(var c=null,d=null,e=this.containers.length-1;e>=0;e--)if(!a.contains(this.currentItem[0],this.containers[e].element[0]))if(this._intersectsWith(this.containers[e].containerCache)){if(c&&a.contains(this.containers[e].element[0],c.element[0]))continue;c=this.containers[e],d=e}else this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",b,this._uiHash(this)),this.containers[e].containerCache.over=0);if(c)if(1===this.containers.length)this.containers[d]._trigger("over",b,this._uiHash(this)),this.containers[d].containerCache.over=1;else{for(var f=1e4,g=null,h=this.containers[d].floating?'left':'top',i=this.containers[d].floating?'width':'height',j=this.positionAbs[h]+this.offset.click[h],k=this.items.length-1;k>=0;k--)if(a.contains(this.containers[d].element[0],this.items[k].item[0])&&this.items[k].item[0]!=this.currentItem[0]){var l=this.items[k].item.offset()[h],m=!1;Math.abs(l-j)>Math.abs(l+this.items[k][i]-j)&&(m=!0,l+=this.items[k][i]),Math.abs(l-j)<f&&(f=Math.abs(l-j),g=this.items[k],this.direction=m?"up":"down")}if(!g&&!this.options.dropOnEmpty)return;this.currentContainer=this.containers[d],g?this._rearrange(b,g,null,!0):this._rearrange(b,null,this.containers[d].element,!0),this._trigger("change",b,this._uiHash()),this.containers[d]._trigger("change",b,this._uiHash(this)),this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[d]._trigger("over",b,this._uiHash(this)),this.containers[d].containerCache.over=1}},_createHelper:function(b){var c=this.options,d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[b,this.currentItem])):'clone'==c.helper?this.currentItem.clone():this.currentItem;return d.parents('body').length||a('parent'!=c.appendTo?c.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0]),d[0]==this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(''==d[0].style.width||c.forceHelperSize)&&d.width(this.currentItem.width()),(''==d[0].style.height||c.forceHelperSize)&&d.height(this.currentItem.height()),d},_adjustOffsetFromHelper:function(b){'string'==typeof b&&(b=b.split(' ')),a.isArray(b)&&(b={left:+b[0],top:+b[1]||0}),'left'in b&&(this.offset.click.left=b.left+this.margins.left),'right'in b&&(this.offset.click.left=this.helperProportions.width-b.right+this.margins.left),'top'in b&&(this.offset.click.top=b.top+this.margins.top),'bottom'in b&&(this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();return'absolute'==this.cssPosition&&this.scrollParent[0]!=document&&a.contains(this.scrollParent[0],this.offsetParent[0])&&(b.left+=this.scrollParent.scrollLeft(),b.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&'html'==this.offsetParent[0].tagName.toLowerCase()&&a.ui.ie)&&(b={top:0,left:0}),{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),
left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"==this.cssPosition){var a=this.currentItem.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var b=this.options;if('parent'==b.containment&&(b.containment=this.helper[0].parentNode),'document'!=b.containment&&'window'!=b.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a('document'==b.containment?document:window).width()-this.helperProportions.width-this.margins.left,(a('document'==b.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),!/^(document|window|parent)$/.test(b.containment)){var c=a(b.containment)[0],d=a(b.containment).offset(),e='hidden'!=a(c).css("overflow");this.containment=[d.left+(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0)-this.margins.top,d.left+(e?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(e?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(b,c){c||(c=this.position);var d="absolute"==b?1:-1,e=this.options,f='absolute'!=this.cssPosition||this.scrollParent[0]!=document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,g=/(html|body)/i.test(f[0].tagName);return{top:c.top+this.offset.relative.top*d+this.offset.parent.top*d-('fixed'==this.cssPosition?-this.scrollParent.scrollTop():g?0:f.scrollTop())*d,left:c.left+this.offset.relative.left*d+this.offset.parent.left*d-('fixed'==this.cssPosition?-this.scrollParent.scrollLeft():g?0:f.scrollLeft())*d}},_generatePosition:function(b){var c=this.options,d='absolute'!=this.cssPosition||this.scrollParent[0]!=document&&a.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,e=/(html|body)/i.test(d[0].tagName);'relative'!=this.cssPosition||this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset());var f=b.pageX,g=b.pageY;if(this.originalPosition&&(this.containment&&(b.pageX-this.offset.click.left<this.containment[0]&&(f=this.containment[0]+this.offset.click.left),b.pageY-this.offset.click.top<this.containment[1]&&(g=this.containment[1]+this.offset.click.top),b.pageX-this.offset.click.left>this.containment[2]&&(f=this.containment[2]+this.offset.click.left),b.pageY-this.offset.click.top>this.containment[3]&&(g=this.containment[3]+this.offset.click.top)),c.grid)){var h=this.originalPageY+Math.round((g-this.originalPageY)/c.grid[1])*c.grid[1];g=this.containment&&(h-this.offset.click.top<this.containment[1]||h-this.offset.click.top>this.containment[3])?h-this.offset.click.top<this.containment[1]?h+c.grid[1]:h-c.grid[1]:h;var i=this.originalPageX+Math.round((f-this.originalPageX)/c.grid[0])*c.grid[0];f=this.containment&&(i-this.offset.click.left<this.containment[0]||i-this.offset.click.left>this.containment[2])?i-this.offset.click.left<this.containment[0]?i+c.grid[0]:i-c.grid[0]:i}return{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+('fixed'==this.cssPosition?-this.scrollParent.scrollTop():e?0:d.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+('fixed'==this.cssPosition?-this.scrollParent.scrollLeft():e?0:d.scrollLeft())}},_rearrange:function(a,b,c,d){c?c[0].appendChild(this.placeholder[0]):b.item[0].parentNode.insertBefore(this.placeholder[0],'down'==this.direction?b.item[0]:b.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var e=this.counter;this._delay(function(){e==this.counter&&this.refreshPositions(!d)})},_clear:function(b,c){this.reverting=!1;var d=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]==this.currentItem[0]){for(var e in this._storedCSS)'auto'!=this._storedCSS[e]&&'static'!=this._storedCSS[e]||(this._storedCSS[e]='');this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!c&&d.push(function(a){this._trigger("receive",a,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev==this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent==this.currentItem.parent()[0]||c||d.push(function(a){this._trigger("update",a,this._uiHash())}),this!==this.currentContainer&&(c||(d.push(function(a){this._trigger("remove",a,this._uiHash())}),d.push(function(a){return function(b){a._trigger("receive",b,this._uiHash(this))}}.call(this,this.currentContainer)),d.push(function(a){return function(b){a._trigger("update",b,this._uiHash(this))}}.call(this,this.currentContainer))));for(var e=this.containers.length-1;e>=0;e--)c||d.push(function(a){return function(b){a._trigger("deactivate",b,this._uiHash(this))}}.call(this,this.containers[e])),this.containers[e].containerCache.over&&(d.push(function(a){return function(b){a._trigger("out",b,this._uiHash(this))}}.call(this,this.containers[e])),this.containers[e].containerCache.over=0);if(this._storedCursor&&a('body').css("cursor",this._storedCursor),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex",'auto'==this._storedZIndex?'':this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!c){this._trigger("beforeStop",b,this._uiHash());for(var e=0;e<d.length;e++)d[e].call(this,b);this._trigger("stop",b,this._uiHash())}return this.fromOutside=!1,!1}if(c||this._trigger("beforeStop",b,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!=this.currentItem[0]&&this.helper.remove(),this.helper=null,!c){for(var e=0;e<d.length;e++)d[e].call(this,b);this._trigger("stop",b,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(b){var c=b||this;return{helper:c.helper,placeholder:c.placeholder||a([]),position:c.position,originalPosition:c.originalPosition,offset:c.positionAbs,item:c.currentItem,sender:b?b.element:null}}})}(jQuery),define("jquery-ui/jquery.ui.sortable",["jquery","jquery-ui/jquery.ui.core","jquery-ui/jquery.ui.mouse","jquery-ui/jquery.ui.widget"],function(){}),function(a,b){a.widget("ui.selectable",a.ui.mouse,{version:"1.9.2",options:{appendTo:'body',autoRefresh:!0,distance:0,filter:'*',tolerance:'touch'},_create:function(){var b=this;this.element.addClass("ui-selectable"),this.dragged=!1;var c;this.refresh=function(){c=a(b.options.filter,b.element[0]),c.addClass("ui-selectee"),c.each(function(){var b=a(this),c=b.offset();a.data(this,"selectable-item",{element:this,$element:b,left:c.left,top:c.top,right:c.left+b.outerWidth(),bottom:c.top+b.outerHeight(),startselected:!1,selected:b.hasClass('ui-selected'),selecting:b.hasClass('ui-selecting'),unselecting:b.hasClass('ui-unselecting')})})},this.refresh(),this.selectees=c.addClass("ui-selectee"),this._mouseInit(),this.helper=a("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(b){var c=this;if(this.opos=[b.pageX,b.pageY],!this.options.disabled){var d=this.options;this.selectees=a(d.filter,this.element[0]),this._trigger("start",b),a(d.appendTo).append(this.helper),this.helper.css({left:b.clientX,top:b.clientY,width:0,height:0}),d.autoRefresh&&this.refresh(),this.selectees.filter('.ui-selected').each(function(){var d=a.data(this,"selectable-item");d.startselected=!0,b.metaKey||b.ctrlKey||(d.$element.removeClass('ui-selected'),d.selected=!1,d.$element.addClass('ui-unselecting'),d.unselecting=!0,c._trigger("unselecting",b,{unselecting:d.element}))}),a(b.target).parents().andSelf().each(function(){var d=a.data(this,"selectable-item");if(d){var e=!b.metaKey&&!b.ctrlKey||!d.$element.hasClass('ui-selected');return d.$element.removeClass(e?"ui-unselecting":"ui-selected").addClass(e?"ui-selecting":"ui-unselecting"),d.unselecting=!e,d.selecting=e,d.selected=e,e?c._trigger("selecting",b,{selecting:d.element}):c._trigger("unselecting",b,{unselecting:d.element}),!1}})}},_mouseDrag:function(b){var c=this;if(this.dragged=!0,!this.options.disabled){var d=this.options,e=this.opos[0],f=this.opos[1],g=b.pageX,h=b.pageY;if(e>g){var i=g;g=e,e=i}if(f>h){var i=h;h=f,f=i}return this.helper.css({left:e,top:f,width:g-e,height:h-f}),this.selectees.each(function(){var i=a.data(this,"selectable-item");if(i&&i.element!=c.element[0]){var j=!1;'touch'==d.tolerance?j=!(i.left>g||i.right<e||i.top>h||i.bottom<f):'fit'==d.tolerance&&(j=i.left>e&&i.right<g&&i.top>f&&i.bottom<h),j?(i.selected&&(i.$element.removeClass('ui-selected'),i.selected=!1),i.unselecting&&(i.$element.removeClass('ui-unselecting'),i.unselecting=!1),i.selecting||(i.$element.addClass('ui-selecting'),i.selecting=!0,c._trigger("selecting",b,{selecting:i.element}))):(i.selecting&&((b.metaKey||b.ctrlKey)&&i.startselected?(i.$element.removeClass('ui-selecting'),i.selecting=!1,i.$element.addClass('ui-selected'),i.selected=!0):(i.$element.removeClass('ui-selecting'),i.selecting=!1,i.startselected&&(i.$element.addClass('ui-unselecting'),i.unselecting=!0),c._trigger("unselecting",b,{unselecting:i.element}))),i.selected&&(b.metaKey||b.ctrlKey||i.startselected||(i.$element.removeClass('ui-selected'),i.selected=!1,i.$element.addClass('ui-unselecting'),i.unselecting=!0,c._trigger("unselecting",b,{unselecting:i.element}))))}}),!1}},_mouseStop:function(b){var c=this;this.dragged=!1;var d=this.options;return a('.ui-unselecting',this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass('ui-unselecting'),d.unselecting=!1,d.startselected=!1,c._trigger("unselected",b,{unselected:d.element})}),a('.ui-selecting',this.element[0]).each(function(){var d=a.data(this,"selectable-item");d.$element.removeClass('ui-selecting').addClass('ui-selected'),d.selecting=!1,d.selected=!0,d.startselected=!0,c._trigger("selected",b,{selected:d.element})}),this._trigger("stop",b),this.helper.remove(),!1}})}(jQuery),define("jquery-ui/jquery.ui.selectable",["jquery","jquery-ui/jquery.ui.core","jquery-ui/jquery.ui.mouse","jquery-ui/jquery.ui.widget"],function(){}),function(a,b){if('function'==typeof define&&define.amd)define('backbone',['underscore','jquery','exports'],function(c,d,e){a.Backbone=b(a,e,c,d)});else if('undefined'!=typeof exports){var c=require('underscore');b(a,exports,c)}else a.Backbone=b(a,{},a._,a.jQuery||a.Zepto||a.ender||a.$)}(this,function(a,b,c,d){var e=a.Backbone,f=[],g=f.push,h=f.slice,i=f.splice;b.VERSION='1.1.2',b.$=d,b.noConflict=function(){return a.Backbone=e,this},b.emulateHTTP=!1,b.emulateJSON=!1;var j=b.Events={on:function(a,b,c){if(!l(this,'on',a,[b,c])||!b)return this;this._events||(this._events={});var d=this._events[a]||(this._events[a]=[]);return d.push({callback:b,context:c,ctx:c||this}),this},once:function(a,b,d){if(!l(this,'once',a,[b,d])||!b)return this;var e=this,f=c.once(function(){e.off(a,f),b.apply(this,arguments)});return f._callback=b,this.on(a,f,d)},off:function(a,b,d){var e,f,g,h,i,j,k,m;if(!this._events||!l(this,'off',a,[b,d]))return this;if(!a&&!b&&!d)return this._events=void 0,this;for(h=a?[a]:c.keys(this._events),i=0,j=h.length;j>i;i++)if(a=h[i],g=this._events[a]){if(this._events[a]=e=[],b||d)for(k=0,m=g.length;m>k;k++)f=g[k],(b&&b!==f.callback&&b!==f.callback._callback||d&&d!==f.context)&&e.push(f);e.length||delete this._events[a]}return this},trigger:function(a){if(!this._events)return this;var b=h.call(arguments,1);if(!l(this,'trigger',a,b))return this;var c=this._events[a],d=this._events.all;return c&&m(c,b),d&&m(d,arguments),this},stopListening:function(a,b,d){var e=this._listeningTo;if(!e)return this;var f=!b&&!d;d||'object'!=typeof b||(d=this),a&&((e={})[a._listenId]=a);for(var g in e)a=e[g],a.off(b,d,this),(f||c.isEmpty(a._events))&&delete this._listeningTo[g];return this}},k=/\s+/,l=function(a,b,c,d){if(!c)return!0;if('object'==typeof c){for(var e in c)a[b].apply(a,[e,c[e]].concat(d));return!1}if(k.test(c)){for(var f=c.split(k),g=0,h=f.length;h>g;g++)a[b].apply(a,[f[g]].concat(d));return!1}return!0},m=function(a,b){var c,d=-1,e=a.length,f=b[0],g=b[1],h=b[2];switch(b.length){case 0:for(;++d<e;)(c=a[d]).callback.call(c.ctx);return;case 1:for(;++d<e;)(c=a[d]).callback.call(c.ctx,f);return;case 2:for(;++d<e;)(c=a[d]).callback.call(c.ctx,f,g);return;case 3:for(;++d<e;)(c=a[d]).callback.call(c.ctx,f,g,h);return;default:for(;++d<e;)(c=a[d]).callback.apply(c.ctx,b);return}},n={listenTo:'on',listenToOnce:'once'};c.each(n,function(a,b){j[b]=function(b,d,e){var f=this._listeningTo||(this._listeningTo={}),g=b._listenId||(b._listenId=c.uniqueId('l'));return f[g]=b,e||'object'!=typeof d||(e=this),b[a](d,e,this),this}}),j.bind=j.on,j.unbind=j.off,c.extend(b,j);var o=b.Model=function(a,b){var d=a||{};b||(b={}),this.cid=c.uniqueId('c'),this.attributes={},b.collection&&(this.collection=b.collection),b.parse&&(d=this.parse(d,b)||{}),d=c.defaults({},d,c.result(this,'defaults')),this.set(d,b),this.changed={},this.initialize.apply(this,arguments)};c.extend(o.prototype,j,{changed:null,validationError:null,idAttribute:'id',initialize:function(){},toJSON:function(a){return c.clone(this.attributes)},sync:function(){return b.sync.apply(this,arguments)},get:function(a){return this.attributes[a]},escape:function(a){return c.escape(this.get(a))},has:function(a){return null!=this.get(a)},set:function(a,b,d){var e,f,g,h,i,j,k,l;if(null==a)return this;if('object'==typeof a?(f=a,d=b):(f={})[a]=b,d||(d={}),!this._validate(f,d))return!1;g=d.unset,i=d.silent,h=[],j=this._changing,this._changing=!0,j||(this._previousAttributes=c.clone(this.attributes),this.changed={}),l=this.attributes,k=this._previousAttributes,this.idAttribute in f&&(this.id=f[this.idAttribute]);for(e in f)b=f[e],c.isEqual(l[e],b)||h.push(e),c.isEqual(k[e],b)?delete this.changed[e]:this.changed[e]=b,g?delete l[e]:l[e]=b;if(!i){h.length&&(this._pending=d);for(var m=0,n=h.length;n>m;m++)this.trigger('change:'+h[m],this,l[h[m]],d)}if(j)return this;if(!i)for(;this._pending;)d=this._pending,this._pending=!1,this.trigger('change',this,d);return this._pending=!1,this._changing=!1,this},unset:function(a,b){return this.set(a,void 0,c.extend({},b,{unset:!0}))},clear:function(a){var b={};for(var d in this.attributes)b[d]=void 0;return this.set(b,c.extend({},a,{unset:!0}))},hasChanged:function(a){return null==a?!c.isEmpty(this.changed):c.has(this.changed,a)},changedAttributes:function(a){if(!a)return this.hasChanged()?c.clone(this.changed):!1;var b,d=!1,e=this._changing?this._previousAttributes:this.attributes;for(var f in a)c.isEqual(e[f],b=a[f])||((d||(d={}))[f]=b);return d},previous:function(a){return null!=a&&this._previousAttributes?this._previousAttributes[a]:null},previousAttributes:function(){return c.clone(this._previousAttributes)},fetch:function(a){a=a?c.clone(a):{},void 0===a.parse&&(a.parse=!0);var b=this,d=a.success;return a.success=function(c){return b.set(b.parse(c,a),a)?(d&&d(b,c,a),b.trigger('sync',b,c,a),void 0):!1},N(this,a),this.sync('read',this,a)},save:function(a,b,d){var e,f,g,h=this.attributes;if(null==a||'object'==typeof a?(e=a,d=b):(e={})[a]=b,d=c.extend({validate:!0},d),e&&!d.wait){if(!this.set(e,d))return!1}else if(!this._validate(e,d))return!1;e&&d.wait&&(this.attributes=c.extend({},h,e)),void 0===d.parse&&(d.parse=!0);var i=this,j=d.success;return d.success=function(a){i.attributes=h;var b=i.parse(a,d);return d.wait&&(b=c.extend(e||{},b)),c.isObject(b)&&!i.set(b,d)?!1:(j&&j(i,a,d),i.trigger('sync',i,a,d),void 0)},N(this,d),f=this.isNew()?'create':d.patch?'patch':'update','patch'===f&&(d.attrs=e),g=this.sync(f,this,d),e&&d.wait&&(this.attributes=h),g},destroy:function(a){a=a?c.clone(a):{};var b=this,d=a.success,e=function(){b.trigger('destroy',b,b.collection,a)};if(a.success=function(c){(a.wait||b.isNew())&&e(),d&&d(b,c,a),b.isNew()||b.trigger('sync',b,c,a)},this.isNew())return a.success(),!1;N(this,a);var f=this.sync('delete',this,a);return a.wait||e(),f},url:function(){var a=c.result(this,'urlRoot')||c.result(this.collection,'url')||M();return this.isNew()?a:a.replace(/([^\/])$/,'$1/')+encodeURIComponent(this.id)},parse:function(a,b){return a},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(a){return this._validate({},c.extend(a||{},{validate:!0}))},_validate:function(a,b){if(!b.validate||!this.validate)return!0;a=c.extend({},this.attributes,a);var d=this.validationError=this.validate(a,b)||null;return d?(this.trigger('invalid',this,d,c.extend(b,{validationError:d})),!1):!0}});var p=['keys','values','pairs','invert','pick','omit'];c.each(p,function(a){o.prototype[a]=function(){var b=h.call(arguments);return b.unshift(this.attributes),c[a].apply(c,b)}});var q=b.Collection=function(a,b){b||(b={}),b.model&&(this.model=b.model),void 0!==b.comparator&&(this.comparator=b.comparator),this._reset(),this.initialize.apply(this,arguments),a&&this.reset(a,c.extend({silent:!0},b))},r={add:!0,remove:!0,merge:!0},s={add:!0,remove:!1};c.extend(q.prototype,j,{model:o,initialize:function(){},toJSON:function(a){return this.map(function(b){return b.toJSON(a)})},sync:function(){return b.sync.apply(this,arguments)},add:function(a,b){return this.set(a,c.extend({merge:!1},b,s))},remove:function(a,b){var d=!c.isArray(a);a=d?[a]:c.clone(a),b||(b={});var e,f,g,h;for(e=0,f=a.length;f>e;e++)h=a[e]=this.get(a[e]),h&&(delete this._byId[h.id],delete this._byId[h.cid],g=this.indexOf(h),this.models.splice(g,1),this.length--,b.silent||(b.index=g,h.trigger('remove',h,this,b)),this._removeReference(h,b));return d?a[0]:a},set:function(a,b){b=c.defaults({},b,r),b.parse&&(a=this.parse(a,b));var d=!c.isArray(a);a=d?a?[a]:[]:c.clone(a);var e,f,g,h,i,j,k,l=b.at,m=this.model,n=this.comparator&&null==l&&b.sort!==!1,p=c.isString(this.comparator)?this.comparator:null,q=[],s=[],t={},u=b.add,v=b.merge,w=b.remove,x=!n&&u&&w?[]:!1;for(e=0,f=a.length;f>e;e++){if(i=a[e]||{},g=i instanceof o?h=i:i[m.prototype.idAttribute||'id'],j=this.get(g))w&&(t[j.cid]=!0),v&&(i=i===h?h.attributes:i,b.parse&&(i=j.parse(i,b)),j.set(i,b),n&&!k&&j.hasChanged(p)&&(k=!0)),a[e]=j;else if(u){if(h=a[e]=this._prepareModel(i,b),!h)continue;q.push(h),this._addReference(h,b)}h=j||h,!x||!h.isNew()&&t[h.id]||x.push(h),t[h.id]=!0}if(w){for(e=0,f=this.length;f>e;++e)t[(h=this.models[e]).cid]||s.push(h);s.length&&this.remove(s,b)}if(q.length||x&&x.length)if(n&&(k=!0),this.length+=q.length,null!=l)for(e=0,f=q.length;f>e;e++)this.models.splice(l+e,0,q[e]);else{x&&(this.models.length=0);var y=x||q;for(e=0,f=y.length;f>e;e++)this.models.push(y[e])}if(k&&this.sort({silent:!0}),!b.silent){for(e=0,f=q.length;f>e;e++)(h=q[e]).trigger('add',h,this,b);(k||x&&x.length)&&this.trigger('sort',this,b)}return d?a[0]:a},reset:function(a,b){b||(b={});for(var d=0,e=this.models.length;e>d;d++)this._removeReference(this.models[d],b);return b.previousModels=this.models,this._reset(),a=this.add(a,c.extend({silent:!0},b)),b.silent||this.trigger('reset',this,b),a},push:function(a,b){return this.add(a,c.extend({at:this.length},b))},pop:function(a){var b=this.at(this.length-1);return this.remove(b,a),b},unshift:function(a,b){return this.add(a,c.extend({at:0},b))},shift:function(a){var b=this.at(0);return this.remove(b,a),b},slice:function(){return h.apply(this.models,arguments)},get:function(a){return null!=a?this._byId[a]||this._byId[a.id]||this._byId[a.cid]:void 0},at:function(a){return this.models[a]},where:function(a,b){return c.isEmpty(a)?b?void 0:[]:this[b?'find':'filter'](function(b){for(var c in a)if(a[c]!==b.get(c))return!1;return!0})},findWhere:function(a){return this.where(a,!0)},sort:function(a){if(!this.comparator)throw new Error('Cannot sort a set without a comparator');return a||(a={}),c.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(c.bind(this.comparator,this)),a.silent||this.trigger('sort',this,a),this},pluck:function(a){return c.invoke(this.models,'get',a)},fetch:function(a){a=a?c.clone(a):{},void 0===a.parse&&(a.parse=!0);var b=a.success,d=this;return a.success=function(c){var e=a.reset?'reset':'set';d[e](c,a),b&&b(d,c,a),d.trigger('sync',d,c,a)},N(this,a),this.sync('read',this,a)},create:function(a,b){if(b=b?c.clone(b):{},!(a=this._prepareModel(a,b)))return!1;b.wait||this.add(a,b);var d=this,e=b.success;return b.success=function(a,c){b.wait&&d.add(a,b),e&&e(a,c,b)},a.save(null,b),a},parse:function(a,b){return a},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(a,b){if(a instanceof o)return a;b=b?c.clone(b):{},b.collection=this;var d=new this.model(a,b);return d.validationError?(this.trigger('invalid',this,d.validationError,b),!1):d},_addReference:function(a,b){this._byId[a.cid]=a,null!=a.id&&(this._byId[a.id]=a),a.collection||(a.collection=this),a.on('all',this._onModelEvent,this)},_removeReference:function(a,b){this===a.collection&&delete a.collection,a.off('all',this._onModelEvent,this)},_onModelEvent:function(a,b,c,d){('add'!==a&&'remove'!==a||c===this)&&('destroy'===a&&this.remove(b,d),b&&a==='change:'+b.idAttribute&&(delete this._byId[b.previous(b.idAttribute)],null!=b.id&&(this._byId[b.id]=b)),this.trigger.apply(this,arguments))}});var t=['forEach','each','map','collect','reduce','foldl','inject','reduceRight','foldr','find','detect','filter','select','reject','every','all','some','any','include','contains','invoke','max','min','toArray','size','first','head','take','initial','rest','tail','drop','last','without','difference','indexOf','shuffle','lastIndexOf','isEmpty','chain','sample'];c.each(t,function(a){q.prototype[a]=function(){var b=h.call(arguments);return b.unshift(this.models),c[a].apply(c,b)}});var u=['groupBy','countBy','sortBy','indexBy'];c.each(u,function(a){q.prototype[a]=function(b,d){var e=c.isFunction(b)?b:function(a){return a.get(b)};return c[a](this.models,e,d)}});var v=b.View=function(a){this.cid=c.uniqueId('view'),a||(a={}),c.extend(this,c.pick(a,x)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},w=/^(\S+)\s*(.*)$/,x=['model','collection','el','id','attributes','className','tagName','events'];c.extend(v.prototype,j,{tagName:'div',$:function(a){return this.$el.find(a)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(a,c){return this.$el&&this.undelegateEvents(),this.$el=a instanceof b.$?a:b.$(a),this.el=this.$el[0],c!==!1&&this.delegateEvents(),this},delegateEvents:function(a){if(!a&&!(a=c.result(this,'events')))return this;this.undelegateEvents();for(var b in a){var d=a[b];if(c.isFunction(d)||(d=this[a[b]]),d){var e=b.match(w),f=e[1],g=e[2];d=c.bind(d,this),f+='.delegateEvents'+this.cid,''===g?this.$el.on(f,d):this.$el.on(f,g,d)}}return this},undelegateEvents:function(){return this.$el.off('.delegateEvents'+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(c.result(this,'el'),!1);else{var a=c.extend({},c.result(this,'attributes'));this.id&&(a.id=c.result(this,'id')),this.className&&(a['class']=c.result(this,'className'));var d=b.$('<'+c.result(this,'tagName')+'>').attr(a);this.setElement(d,!1)}}}),b.sync=function(a,d,e){var f=z[a];c.defaults(e||(e={}),{emulateHTTP:b.emulateHTTP,emulateJSON:b.emulateJSON});var g={type:f,dataType:'json'};if(e.url||(g.url=c.result(d,'url')||M()),null!=e.data||!d||'create'!==a&&'update'!==a&&'patch'!==a||(g.contentType='application/json',g.data=JSON.stringify(e.attrs||d.toJSON(e))),e.emulateJSON&&(g.contentType='application/x-www-form-urlencoded',g.data=g.data?{model:g.data}:{}),e.emulateHTTP&&('PUT'===f||'DELETE'===f||'PATCH'===f)){g.type='POST',e.emulateJSON&&(g.data._method=f);var h=e.beforeSend;e.beforeSend=function(a){return a.setRequestHeader('X-HTTP-Method-Override',f),h?h.apply(this,arguments):void 0}}'GET'===g.type||e.emulateJSON||(g.processData=!1),'PATCH'===g.type&&y&&(g.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var i=e.xhr=b.ajax(c.extend(g,e));return d.trigger('request',d,i,e),i};var y=!('undefined'==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),z={create:'POST',update:'PUT',patch:'PATCH','delete':'DELETE',read:'GET'};b.ajax=function(){return b.$.ajax.apply(b.$,arguments)};var A=b.Router=function(a){a||(a={}),a.routes&&(this.routes=a.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},B=/\((.*?)\)/g,C=/(\(\?)?:\w+/g,D=/\*\w+/g,E=/[\-{}\[\]+?.,\\\^$|#\s]/g;c.extend(A.prototype,j,{initialize:function(){},route:function(a,d,e){c.isRegExp(a)||(a=this._routeToRegExp(a)),c.isFunction(d)&&(e=d,d=''),e||(e=this[d]);var f=this;return b.history.route(a,function(c){var g=f._extractParameters(a,c);f.execute(e,g),f.trigger.apply(f,['route:'+d].concat(g)),f.trigger('route',d,g),b.history.trigger('route',f,d,g)}),this},execute:function(a,b){a&&a.apply(this,b)},navigate:function(a,c){return b.history.navigate(a,c),this},_bindRoutes:function(){if(this.routes){this.routes=c.result(this,'routes');for(var a,b=c.keys(this.routes);null!=(a=b.pop());)this.route(a,this.routes[a])}},_routeToRegExp:function(a){return a=a.replace(E,'\\$&').replace(B,'(?:$1)?').replace(C,function(a,b){return b?a:'([^/?]+)'}).replace(D,'([^?]*?)'),new RegExp('^'+a+'(?:\\?([\\s\\S]*))?$')},_extractParameters:function(a,b){var d=a.exec(b).slice(1);return c.map(d,function(a,b){return b===d.length-1||a.includes("tag")?a||null:a?decodeURIComponent(a):null})}});var F=b.History=function(){this.handlers=[],c.bindAll(this,'checkUrl'),'undefined'!=typeof window&&(this.location=window.location,this.history=window.history)},G=/^[#\/]|\s+$/g,H=/^\/+|\/+$/g,I=/msie [\w.]+/,J=/\/$/,K=/#.*$/;F.started=!1,c.extend(F.prototype,j,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,'$&/')===this.root},getHash:function(a){var b=(a||this).location.href.match(/#(.*)$/);return b?b[1]:''},getFragment:function(a,b){if(null==a)if(this._hasPushState||!this._wantsHashChange||b){a=decodeURI(this.location.pathname+this.location.search);var c=this.root.replace(J,'');a.indexOf(c)||(a=a.slice(c.length))}else a=this.getHash();return a.replace(G,'')},start:function(a){if(F.started)throw new Error("Backbone.history has already been started");F.started=!0,this.options=c.extend({root:'/'},this.options,a),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var d=this.getFragment(),e=document.documentMode,f=I.exec(navigator.userAgent.toLowerCase())&&(!e||7>=e);if(this.root=('/'+this.root+'/').replace(H,'/'),f&&this._wantsHashChange){var g=b.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=g.hide().appendTo('body')[0].contentWindow,this.navigate(d)}this._hasPushState?b.$(window).on('popstate',this.checkUrl):this._wantsHashChange&&'onhashchange'in window&&!f?b.$(window).on('hashchange',this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=d;var h=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+'#'+this.fragment),!0;this._hasPushState&&this.atRoot()&&h.hash&&(this.fragment=this.getHash().replace(G,''),this.history.replaceState({},document.title,this.root+this.fragment))}return this.options.silent?void 0:this.loadUrl()},stop:function(){b.$(window).off('popstate',this.checkUrl).off('hashchange',this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),F.started=!1},route:function(a,b){this.handlers.unshift({route:a,callback:b})},checkUrl:function(a){var b=this.getFragment();return b===this.fragment&&this.iframe&&(b=this.getFragment(this.getHash(this.iframe))),b===this.fragment?!1:(this.iframe&&this.navigate(b),this.loadUrl(),void 0)},loadUrl:function(a){return a=this.fragment=this.getFragment(a),c.any(this.handlers,function(b){return b.route.test(a)?(b.callback(a),!0):void 0})},navigate:function(a,b){if(!F.started)return!1;b&&b!==!0||(b={trigger:!!b});var c=this.root+(a=this.getFragment(a||''));if(a=a.replace(K,''),this.fragment!==a){if(this.fragment=a,''===a&&'/'!==c&&(c=c.slice(0,-1)),this._hasPushState)this.history[b.replace?'replaceState':'pushState']({},document.title,c);else{if(!this._wantsHashChange)return this.location.assign(c);this._updateHash(this.location,a,b.replace),this.iframe&&a!==this.getFragment(this.getHash(this.iframe))&&(b.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,a,b.replace))}return b.trigger?this.loadUrl(a):void 0}},_updateHash:function(a,b,c){if(c){var d=a.href.replace(/(javascript:|#).*$/,'');a.replace(d+'#'+b)}else a.hash='#'+b}}),b.history=new F;var L=function(a,b){var d=this,e;e=a&&c.has(a,'constructor')?a.constructor:function(){return d.apply(this,arguments)},c.extend(e,d,b);var f=function(){this.constructor=e};return f.prototype=d.prototype,e.prototype=new f,a&&c.extend(e.prototype,a),e.__super__=d.prototype,e};o.extend=q.extend=A.extend=v.extend=F.extend=L;var M=function(){throw new Error('A "url" property or function must be specified')},N=function(a,b){var c=b.error;b.error=function(d){c&&c(a,d,b),a.trigger('error',a,d,b)}};return b}),function(a,b){if('function'==typeof define&&define.amd)define('backbone-plugin/backbone.radio',['backbone','underscore'],function(a,c){return b(a,c)});else if('undefined'!=typeof exports){var c=require('backbone'),d=require('underscore');module.exports=b(c,d)}else b(a.Backbone,a._)}(this,function(a,b){'use strict';function c(a,b,c){if(k.DEBUG){var d=c?' on the '+c+' channel':'';console.warn(a+d+': "'+b+'"')}}function d(a,b,c,d){if(!c)return!1;var e=[];if('object'==typeof c){for(var f in c)e.push(a[b].apply(a,[f,c[f]].concat(d)));return e}if(l.test(c)){for(var g=c.split(l),h=0,i=g.length;i>h;h++)e.push(a[b].apply(a,[g[h]].concat(d)));return e}return!1}function e(a,b,c){var d=c[0],e=c[1],f=c[2];switch(c.length){case 0:return a.call(b);case 1:return a.call(b,d);case 2:return a.call(b,d,e);case 3:return a.call(b,d,e,f);default:return a.apply(b,c)}}function f(a,b,c,d){var e=a[b];return c&&c!==e.callback&&c!==e.callback._callback||d&&d!==e.context?void 0:(delete a[b],!0)}function g(a,c,d,e){a||(a={});for(var g=c?[c]:b.keys(a),h=!1,i=0,j=g.length;j>i;i++)c=g[i],a[c]&&f(a,c,d,e)&&(h=!0);return h}function h(a){return m[a]||(m[a]=b.partial(k.log,a))}function i(a){return b.isFunction(a)?a:function(){return a}}var j=a.Radio,k=a.Radio={};k.VERSION='0.8.3',k.noConflict=function(){return a.Radio=j,this},k.DEBUG=!1;var l=/\s+/,m={};b.extend(k,{log:function(a,c){var d=b.rest(arguments,2);console.log('['+a+'] "'+c+'"',d)},tuneIn:function(a){var b=k.channel(a);return b._tunedIn=!0,
b.on('all',h(a)),this},tuneOut:function(a){var b=k.channel(a);return b._tunedIn=!1,b.off('all',h(a)),delete m[a],this}}),k.Commands={command:function(a){var f=b.rest(arguments);if(d(this,'command',a,f))return this;var g=this.channelName,h=this._commands;if(g&&this._tunedIn&&k.log.apply(this,[g,a].concat(f)),h&&(h[a]||h['default'])){var i=h[a]||h['default'];f=h[a]?f:arguments,e(i.callback,i.context,f)}else c('An unhandled command was fired',a,g);return this},comply:function(a,b,e){return d(this,'comply',a,[b,e])?this:(this._commands||(this._commands={}),this._commands[a]&&c('A command was overwritten',a,this.channelName),this._commands[a]={callback:b,context:e||this},this)},complyOnce:function(a,c,e){if(d(this,'complyOnce',a,[c,e]))return this;var f=this,g=b.once(function(){return f.stopComplying(a),c.apply(this,arguments)});return this.comply(a,g,e)},stopComplying:function(a,b,e){return d(this,'stopComplying',a)?this:(a||b||e?g(this._commands,a,b,e)||c('Attempted to remove the unregistered command',a,this.channelName):delete this._commands,this)}},k.Requests={request:function(a){var f=b.rest(arguments),g=d(this,'request',a,f);if(g)return g;var h=this.channelName,i=this._requests;if(h&&this._tunedIn&&k.log.apply(this,[h,a].concat(f)),i&&(i[a]||i['default'])){var j=i[a]||i['default'];return f=i[a]?f:arguments,e(j.callback,j.context,f)}c('An unhandled request was fired',a,h)},reply:function(a,b,e){return d(this,'reply',a,[b,e])?this:(this._requests||(this._requests={}),this._requests[a]&&c('A request was overwritten',a,this.channelName),this._requests[a]={callback:i(b),context:e||this},this)},replyOnce:function(a,c,e){if(d(this,'replyOnce',a,[c,e]))return this;var f=this,g=b.once(function(){return f.stopReplying(a),i(c).apply(this,arguments)});return this.reply(a,g,e)},stopReplying:function(a,b,e){return d(this,'stopReplying',a)?this:(a||b||e?g(this._requests,a,b,e)||c('Attempted to remove the unregistered request',a,this.channelName):delete this._requests,this)}},k._channels={},k.channel=function(a){if(!a)throw new Error('You must provide a name for the channel.');return k._channels[a]?k._channels[a]:k._channels[a]=new k.Channel(a)},k.Channel=function(a){this.channelName=a},b.extend(k.Channel.prototype,a.Events,k.Commands,k.Requests,{reset:function(){return this.off(),this.stopListening(),this.stopComplying(),this.stopReplying(),this}});var n,o,p=[a.Events,k.Commands,k.Requests];return b.each(p,function(a){b.each(a,function(a,c){k[c]=function(a){return o=b.rest(arguments),n=this.channel(a),n[c].apply(n,o)}})}),k}),window.Modernizr=function(a,b,c){function d(a){q.cssText=a}function e(a,b){return d(u.join(a+';')+(b||''))}function f(a,b){return typeof a===b}function g(a,b){return!!~(''+a).indexOf(b)}function h(a,b){for(var d in a){var e=a[d];if(!g(e,"-")&&q[e]!==c)return'pfx'==b?e:!0}return!1}function i(a,b,d){for(var e in a){var g=b[a[e]];if(g!==c)return d===!1?a[e]:f(g,'function')?g.bind(d||b):g}return!1}function j(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+' '+w.join(d+' ')+d).split(' ');return f(b,"string")||f(b,"undefined")?h(e,b):(e=(a+' '+x.join(d+' ')+d).split(' '),i(e,b,c))}function k(){m.input=function(c){for(var d=0,e=c.length;e>d;d++)B[c[d]]=!!(c[d]in r);return B.list&&(B.list=!(!b.createElement('datalist')||!a.HTMLDataListElement)),B}('autocomplete autofocus list placeholder max min multiple pattern required step'.split(' ')),m.inputtypes=function(a){for(var d=0,e,f,g,h=a.length;h>d;d++)r.setAttribute('type',f=a[d]),e='text'!==r.type,e&&(r.value=s,r.style.cssText='position:absolute;visibility:hidden;',/^range$/.test(f)&&r.style.WebkitAppearance!==c?(n.appendChild(r),g=b.defaultView,e=g.getComputedStyle&&'textfield'!==g.getComputedStyle(r,null).WebkitAppearance&&0!==r.offsetHeight,n.removeChild(r)):/^(search|tel)$/.test(f)||(e=/^(url|email)$/.test(f)?r.checkValidity&&r.checkValidity()===!1:r.value!=s)),A[a[d]]=!!e;return A}('search tel url email datetime date month week time datetime-local number range color'.split(' '))}var l='2.8.3',m={},n=b.documentElement,o='modernizr',p=b.createElement(o),q=p.style,r=b.createElement('input'),s=':)',t={}.toString,u=' -webkit- -moz- -o- -ms- '.split(' '),v='Webkit Moz O ms',w=v.split(' '),x=v.toLowerCase().split(' '),y={svg:'http://www.w3.org/2000/svg'},z={},A={},B={},C=[],D=C.slice,E,F=function(a,c,d,e){var f,g,h,i,j=b.createElement('div'),k=b.body,l=k||b.createElement('body');if(parseInt(d,10))for(;d--;)h=b.createElement('div'),h.id=e?e[d]:o+(d+1),j.appendChild(h);return f=['&#173;','<style id="s',o,'">',a,'</style>'].join(''),j.id=o,(k?j:l).innerHTML+=f,l.appendChild(j),k||(l.style.background='',l.style.overflow='hidden',i=n.style.overflow,n.style.overflow='hidden',n.appendChild(l)),g=c(j,a),k?j.parentNode.removeChild(j):(l.parentNode.removeChild(l),n.style.overflow=i),!!g},G=function(){function a(a,e){e=e||b.createElement(d[a]||'div'),a='on'+a;var g=a in e;return g||(e.setAttribute||(e=b.createElement('div')),e.setAttribute&&e.removeAttribute&&(e.setAttribute(a,''),g=f(e[a],'function'),f(e[a],'undefined')||(e[a]=c),e.removeAttribute(a))),e=null,g}var d={select:'input',change:'input',submit:'form',reset:'form',error:'img',load:'img',abort:'img'};return a}(),H={}.hasOwnProperty,I;I=f(H,'undefined')||f(H.call,'undefined')?function(a,b){return b in a&&f(a.constructor.prototype[b],'undefined')}:function(a,b){return H.call(a,b)},Function.prototype.bind||(Function.prototype.bind=function K(a){var b=this;if("function"!=typeof b)throw new TypeError;var c=D.call(arguments,1),d=function(){if(this instanceof d){var e=function(){};e.prototype=b.prototype;var f=new e,g=b.apply(f,c.concat(D.call(arguments)));return Object(g)===g?g:f}return b.apply(a,c.concat(D.call(arguments)))};return d}),z.history=function(){return!(!a.history||!history.pushState)},z.draganddrop=function(){var a=b.createElement('div');return'draggable'in a||'ondragstart'in a&&'ondrop'in a},z.cssanimations=function(){return j('animationName')},z.csstransforms3d=function(){var a=!!j('perspective');return a&&'webkitPerspective'in n.style&&F('@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}',function(b,c){a=9===b.offsetLeft&&3===b.offsetHeight}),a},z.localstorage=function(){try{return localStorage.setItem(o,o),localStorage.removeItem(o),!0}catch(a){return!1}},z.svg=function(){return!!b.createElementNS&&!!b.createElementNS(y.svg,'svg').createSVGRect};for(var J in z)I(z,J)&&(E=J.toLowerCase(),m[E]=z[J](),C.push((m[E]?'':'no-')+E));return m.input||k(),m.addTest=function(a,b){if('object'==typeof a)for(var d in a)I(a,d)&&m.addTest(d,a[d]);else{if(a=a.toLowerCase(),m[a]!==c)return m;b='function'==typeof b?b():b,"undefined"!=typeof enableClasses&&enableClasses&&(n.className+=' '+(b?'':'no-')+a),m[a]=b}return m},d(''),p=r=null,function(a,b){function c(a,b){var c=a.createElement('p'),d=a.getElementsByTagName('head')[0]||a.documentElement;return c.innerHTML='x<style>'+b+'</style>',d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=s.elements;return'string'==typeof a?a.split(' '):a}function e(a){var b=q[a[o]];return b||(b={},p++,a[o]=p,q[p]=b),b}function f(a,c,d){if(c||(c=b),r)return c.createElement(a);d||(d=e(c));var f;return f=d.cache[a]?d.cache[a].cloneNode():m.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!f.canHaveChildren||l.test(a)||f.tagUrn?f:d.frag.appendChild(f)}function g(a,c){if(a||(a=b),r)return a.createDocumentFragment();c=c||e(a);for(var f=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)f.createElement(h[g]);return f}function h(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return s.shivMethods?f(c,a,b):b.createElem(c)},a.createDocumentFragment=Function('h,f',"return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+');return n}')(s,b.frag)}function i(a){a||(a=b);var d=e(a);return!s.shivCSS||n||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),r||h(a,d),a}var j='3.7.0',k=a.html5||{},l=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,m=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,n,o='_html5shiv',p=0,q={},r;!function(){try{var a=b.createElement('a');a.innerHTML='<xyz></xyz>',n='hidden'in a,r=1==a.childNodes.length||function(){b.createElement('a');var a=b.createDocumentFragment();return'undefined'==typeof a.cloneNode||'undefined'==typeof a.createDocumentFragment||'undefined'==typeof a.createElement}()}catch(c){n=!0,r=!0}}();var s={elements:k.elements||'abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video',version:j,shivCSS:k.shivCSS!==!1,supportsUnknownElements:r,shivMethods:k.shivMethods!==!1,type:'default',shivDocument:i,createElement:f,createDocumentFragment:g};a.html5=s,i(b)}(this,b),m._version=l,m._prefixes=u,m._domPrefixes=x,m._cssomPrefixes=w,m.hasEvent=G,m.testProp=function(a){return h([a])},m.testAllProps=j,m.testStyles=F,m}(this,this.document),Modernizr.addTest('filereader',function(){return!!(window.File&&window.FileList&&window.FileReader)}),Modernizr.addTest('placeholder',function(){return!!('placeholder'in(Modernizr.input||document.createElement('input'))&&'placeholder'in(Modernizr.textarea||document.createElement('textarea')))}),Modernizr.addTest('clipboardsupport',function(){return document.queryCommandSupported('copy')}),define("modernizr",function(a){return function(){var b,c;return b||a.Modernizr}}(this)),function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define('vendor/zenorocha/clipboard',[],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.Clipboard=a()}}(function(){var a,b,c;return function d(a,b,c){function e(g,h){if(!b[g]){if(!a[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=b[g]={exports:{}};a[g][0].call(k.exports,function(b){var c=a[g][1][b];return e(c?c:b)},k,k.exports,d,a,b,c)}return b[g].exports}for(var f="function"==typeof require&&require,g=0;g<c.length;g++)e(c[g]);return e}({1:[function(a,b,c){var d=a('matches-selector');b.exports=function(a,b,c){for(var e=c?a:a.parentNode;e&&e!==document;){if(d(e,b))return e;e=e.parentNode}}},{"matches-selector":5}],2:[function(a,b,c){function d(a,b,c,d,f){var g=e.apply(this,arguments);return a.addEventListener(c,g,f),{destroy:function(){a.removeEventListener(c,g,f)}}}function e(a,b,c,d){return function(c){c.delegateTarget=f(c.target,b,!0),c.delegateTarget&&d.call(a,c)}}var f=a('closest');b.exports=d},{closest:1}],3:[function(a,b,c){c.node=function(a){return void 0!==a&&a instanceof HTMLElement&&1===a.nodeType},c.nodeList=function(a){var b=Object.prototype.toString.call(a);return void 0!==a&&('[object NodeList]'===b||'[object HTMLCollection]'===b)&&'length'in a&&(0===a.length||c.node(a[0]))},c.string=function(a){return'string'==typeof a||a instanceof String},c.fn=function(a){var b=Object.prototype.toString.call(a);return'[object Function]'===b}},{}],4:[function(a,b,c){function d(a,b,c){if(!a&&!b&&!c)throw new Error('Missing required arguments');if(!h.string(b))throw new TypeError('Second argument must be a String');if(!h.fn(c))throw new TypeError('Third argument must be a Function');if(h.node(a))return e(a,b,c);if(h.nodeList(a))return f(a,b,c);if(h.string(a))return g(a,b,c);throw new TypeError('First argument must be a String, HTMLElement, HTMLCollection, or NodeList')}function e(a,b,c){return a.addEventListener(b,c),{destroy:function(){a.removeEventListener(b,c)}}}function f(a,b,c){return Array.prototype.forEach.call(a,function(a){a.addEventListener(b,c)}),{destroy:function(){Array.prototype.forEach.call(a,function(a){a.removeEventListener(b,c)})}}}function g(a,b,c){return i(document.body,a,b,c)}var h=a('./is'),i=a('delegate');b.exports=d},{"./is":3,delegate:2}],5:[function(a,b,c){function d(a,b){if(f)return f.call(a,b);for(var c=a.parentNode.querySelectorAll(b),d=0;d<c.length;++d)if(c[d]==a)return!0;return!1}var e=Element.prototype,f=e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector;b.exports=d},{}],6:[function(a,b,c){function d(a){var b;if('INPUT'===a.nodeName||'TEXTAREA'===a.nodeName)a.focus(),a.setSelectionRange(0,a.value.length),b=a.value;else{a.hasAttribute('contenteditable')&&a.focus();var c=window.getSelection(),d=document.createRange();d.selectNodeContents(a),c.removeAllRanges(),c.addRange(d),b=c.toString()}return b}b.exports=d},{}],7:[function(a,b,c){function d(){}d.prototype={on:function(a,b,c){var d=this.e||(this.e={});return(d[a]||(d[a]=[])).push({fn:b,ctx:c}),this},once:function(a,b,c){function d(){e.off(a,d),b.apply(c,arguments)}var e=this;return d._=b,this.on(a,d,c)},emit:function(a){var b=[].slice.call(arguments,1),c=((this.e||(this.e={}))[a]||[]).slice(),d=0,e=c.length;for(d;e>d;d++)c[d].fn.apply(c[d].ctx,b);return this},off:function(a,b){var c=this.e||(this.e={}),d=c[a],e=[];if(d&&b)for(var f=0,g=d.length;g>f;f++)d[f].fn!==b&&d[f].fn._!==b&&e.push(d[f]);return e.length?c[a]=e:delete c[a],this}},b.exports=d},{}],8:[function(b,c,d){!function(e,f){if("function"==typeof a&&a.amd)a(['module','select'],f);else if("undefined"!=typeof d)f(c,b('select'));else{var g={exports:{}};f(g,e.select),e.clipboardAction=g.exports}}(this,function(a,b){'use strict';function c(a){return a&&a.__esModule?a:{"default":a}}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var e=c(b),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol?"symbol":typeof a},g=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),h=function(){function a(b){d(this,a),this.resolveOptions(b),this.initSelection()}return a.prototype.resolveOptions=function b(){var a=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.action=a.action,this.emitter=a.emitter,this.target=a.target,this.text=a.text,this.trigger=a.trigger,this.selectedText=''},a.prototype.initSelection=function c(){this.text?this.selectFake():this.target&&this.selectTarget()},a.prototype.selectFake=function h(){var a=this,b='rtl'==document.documentElement.getAttribute('dir');this.removeFake(),this.fakeHandler=document.body.addEventListener('click',function(){return a.removeFake()}),this.fakeElem=document.createElement('textarea'),this.fakeElem.style.fontSize='12pt',this.fakeElem.style.border='0',this.fakeElem.style.padding='0',this.fakeElem.style.margin='0',this.fakeElem.style.position='fixed',this.fakeElem.style[b?'right':'left']='-9999px',this.fakeElem.style.top=(window.pageYOffset||document.documentElement.scrollTop)+'px',this.fakeElem.setAttribute('readonly',''),this.fakeElem.value=this.text,document.body.appendChild(this.fakeElem),this.selectedText=(0,e["default"])(this.fakeElem),this.copyText()},a.prototype.removeFake=function i(){this.fakeHandler&&(document.body.removeEventListener('click'),this.fakeHandler=null),this.fakeElem&&(document.body.removeChild(this.fakeElem),this.fakeElem=null)},a.prototype.selectTarget=function j(){this.selectedText=(0,e["default"])(this.target),this.copyText()},a.prototype.copyText=function k(){var a=void 0;try{a=document.execCommand(this.action)}catch(b){a=!1}this.handleResult(a)},a.prototype.handleResult=function l(a){a?this.emitter.emit('success',{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)}):this.emitter.emit('error',{action:this.action,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})},a.prototype.clearSelection=function m(){this.target&&this.target.blur(),window.getSelection().removeAllRanges()},a.prototype.destroy=function n(){this.removeFake()},g(a,[{key:'action',set:function o(){var a=arguments.length<=0||void 0===arguments[0]?'copy':arguments[0];if(this._action=a,'copy'!==this._action&&'cut'!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function p(){return this._action}},{key:'target',set:function q(a){if(void 0!==a){if(!a||'object'!==('undefined'==typeof a?'undefined':f(a))||1!==a.nodeType)throw new Error('Invalid "target" value, use a valid Element');if('copy'===this.action&&a.hasAttribute('disabled'))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if('cut'===this.action&&(a.hasAttribute('readonly')||a.hasAttribute('disabled')))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=a}},get:function r(){return this._target}}]),a}();a.exports=h})},{select:6}],9:[function(b,c,d){!function(e,f){if("function"==typeof a&&a.amd)a(['module','./clipboard-action','tiny-emitter','good-listener'],f);else if("undefined"!=typeof d)f(c,b('./clipboard-action'),b('tiny-emitter'),b('good-listener'));else{var g={exports:{}};f(g,e.clipboardAction,e.tinyEmitter,e.goodListener),e.clipboard=g.exports}}(this,function(a,b,c,d){'use strict';function e(a){return a&&a.__esModule?a:{"default":a}}function f(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function g(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function h(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function i(a,b){var c='data-clipboard-'+a;if(b.hasAttribute(c))return b.getAttribute(c)}var j=e(b),k=e(c),l=e(d),m=function(a){function b(c,d){f(this,b);var e=g(this,a.call(this));return e.resolveOptions(d),e.listenClick(c),e}return h(b,a),b.prototype.resolveOptions=function c(){var a=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.action='function'==typeof a.action?a.action:this.defaultAction,this.target='function'==typeof a.target?a.target:this.defaultTarget,this.text='function'==typeof a.text?a.text:this.defaultText},b.prototype.listenClick=function d(a){var b=this;this.listener=(0,l["default"])(a,'click',function(a){return b.onClick(a)})},b.prototype.onClick=function e(a){var b=a.delegateTarget||a.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new j["default"]({action:this.action(b),target:this.target(b),text:this.text(b),trigger:b,emitter:this})},b.prototype.defaultAction=function k(a){return i('action',a)},b.prototype.defaultTarget=function m(a){var b=i('target',a);return b?document.querySelector(b):void 0},b.prototype.defaultText=function n(a){return i('text',a)},b.prototype.destroy=function o(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)},b}(k["default"]);a.exports=m})},{"./clipboard-action":8,"good-listener":4,"tiny-emitter":7}]},{},[9])(9)}),function(a){'use strict';'function'==typeof define&&define.amd?define('slick',['jquery'],a):'undefined'!=typeof exports?module.exports=a(require('jquery')):a(jQuery)}(function(a){'use strict';var b=window.Slick||{};b=function(){function b(b,d){var e=this,f,g;if(e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(b),appendDots:a(b),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:'50px',cssEase:'ease',customPaging:function(a,b){return'<button type="button" data-role="none">'+(b+1)+'</button>'},dots:!1,dotsClass:'slick-dots',draggable:!0,easing:'linear',fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:'ondemand',onBeforeChange:null,onAfterChange:null,onInit:null,onReInit:null,onSetPosition:null,pauseOnHover:!0,pauseOnDotsHover:!1,respondTo:'window',responsive:null,rtl:!1,slide:'div',slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0},e.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1},a.extend(e,e.initials),e.activeBreakpoint=null,e.animType=null,e.animProp=null,e.breakpoints=[],e.breakpointSettings=[],e.cssTransitions=!1,e.paused=!1,e.positionProp=null,e.respondTo=null,e.shouldClick=!0,e.$slider=a(b),e.$slidesCache=null,e.transformType=null,e.transitionType=null,e.windowWidth=0,e.windowTimer=null,e.options=a.extend({},e.defaults,d),e.currentSlide=e.options.initialSlide,e.originalSettings=e.options,f=e.options.responsive||null,f&&f.length>-1){e.respondTo=e.options.respondTo||"window";for(g in f)f.hasOwnProperty(g)&&(e.breakpoints.push(f[g].breakpoint),e.breakpointSettings[f[g].breakpoint]=f[g].settings);e.breakpoints.sort(function(a,b){return b-a})}e.autoPlay=a.proxy(e.autoPlay,e),e.autoPlayClear=a.proxy(e.autoPlayClear,e),e.changeSlide=a.proxy(e.changeSlide,e),e.clickHandler=a.proxy(e.clickHandler,e),e.selectHandler=a.proxy(e.selectHandler,e),e.setPosition=a.proxy(e.setPosition,e),e.swipeHandler=a.proxy(e.swipeHandler,e),e.dragHandler=a.proxy(e.dragHandler,e),e.keyHandler=a.proxy(e.keyHandler,e),e.autoPlayIterator=a.proxy(e.autoPlayIterator,e),e.instanceUid=c++,e.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,e.init(),e.checkResponsive()}var c=0;return b}(),b.prototype.addSlide=function(b,c,d){var e=this;if('boolean'==typeof c)d=c,c=null;else if(0>c||c>=e.slideCount)return!1;e.unload(),'number'==typeof c?0===c&&0===e.$slides.length?a(b).appendTo(e.$slideTrack):d?a(b).insertBefore(e.$slides.eq(c)):a(b).insertAfter(e.$slides.eq(c)):d===!0?a(b).prependTo(e.$slideTrack):a(b).appendTo(e.$slideTrack),e.$slides=e.$slideTrack.children(this.options.slide),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.append(e.$slides),e.$slides.each(function(b,c){a(c).attr("index",b)}),e.$slidesCache=e.$slides,e.reinit()},b.prototype.animateSlide=function(b,c){var d={},e=this;if(1===e.options.slidesToShow&&e.options.adaptiveHeight===!0&&e.options.vertical===!1){var f=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:f},e.options.speed)}e.options.rtl===!0&&e.options.vertical===!1&&(b=-b),e.transformsEnabled===!1?e.options.vertical===!1?e.$slideTrack.animate({left:b},e.options.speed,e.options.easing,c):e.$slideTrack.animate({top:b},e.options.speed,e.options.easing,c):e.cssTransitions===!1?a({animStart:e.currentLeft}).animate({animStart:b},{duration:e.options.speed,easing:e.options.easing,step:function(a){e.options.vertical===!1?(d[e.animType]='translate('+a+'px, 0px)',e.$slideTrack.css(d)):(d[e.animType]='translate(0px,'+a+'px)',e.$slideTrack.css(d))},complete:function(){c&&c.call()}}):(e.applyTransition(),e.options.vertical===!1?d[e.animType]='translate3d('+b+'px, 0px, 0px)':d[e.animType]='translate3d(0px,'+b+'px, 0px)',e.$slideTrack.css(d),c&&setTimeout(function(){e.disableTransition(),c.call()},e.options.speed))},b.prototype.asNavFor=function(b){var c=this,d=null!=c.options.asNavFor?a(c.options.asNavFor).getSlick():null;null!=d&&d.slideHandler(b,!0)},b.prototype.applyTransition=function(a){var b=this,c={};b.options.fade===!1?c[b.transitionType]=b.transformType+' '+b.options.speed+'ms '+b.options.cssEase:c[b.transitionType]='opacity '+b.options.speed+'ms '+b.options.cssEase,b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.autoPlay=function(){var a=this;a.autoPlayTimer&&clearInterval(a.autoPlayTimer),a.slideCount>=a.options.slidesToShow&&a.paused!==!0&&(a.autoPlayTimer=setInterval(a.autoPlayIterator,a.options.autoplaySpeed))},b.prototype.autoPlayClear=function(){var a=this;a.autoPlayTimer&&clearInterval(a.autoPlayTimer)},b.prototype.autoPlayIterator=function(){var a=this;a.options.infinite===!1?1===a.direction?(a.currentSlide+1===a.slideCount-1&&(a.direction=0),a.slideHandler(a.currentSlide+a.options.slidesToScroll)):(a.currentSlide-1===0&&(a.direction=1),a.slideHandler(a.currentSlide-a.options.slidesToScroll)):a.slideHandler(a.currentSlide+a.options.slidesToScroll)},b.prototype.buildArrows=function(){var b=this;b.options.arrows===!0&&b.slideCount>b.options.slidesToShow&&(b.$prevArrow=a(b.options.prevArrow),b.$nextArrow=a(b.options.nextArrow),b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.appendTo(b.options.appendArrows),b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.appendTo(b.options.appendArrows),b.options.infinite!==!0&&b.$prevArrow.addClass('slick-disabled'))},b.prototype.buildDots=function(){var b=this,c,d;if(b.options.dots===!0&&b.slideCount>b.options.slidesToShow){for(d='<ul class="'+b.options.dotsClass+'">',c=0;c<=b.getDotCount();c+=1)d+='<li>'+b.options.customPaging.call(this,b,c)+'</li>';d+='</ul>',b.$dots=a(d).appendTo(b.options.appendDots),b.$dots.find('li').first().addClass('slick-active')}},b.prototype.buildOut=function(){var b=this;b.$slides=b.$slider.children(b.options.slide+':not(.slick-cloned)').addClass('slick-slide'),b.slideCount=b.$slides.length,b.$slides.each(function(b,c){a(c).attr("index",b)}),b.$slidesCache=b.$slides,b.$slider.addClass('slick-slider'),b.$slideTrack=0===b.slideCount?a('<div class="slick-track"/>').appendTo(b.$slider):b.$slides.wrapAll('<div class="slick-track"/>').parent(),b.$list=b.$slideTrack.wrap('<div class="slick-list"/>').parent(),b.$slideTrack.css('opacity',0),b.options.centerMode===!0&&(b.options.slidesToScroll=1),a('img[data-lazy]',b.$slider).not('[src]').addClass('slick-loading'),b.setupInfinite(),b.buildArrows(),b.buildDots(),b.updateDots(),b.options.accessibility===!0&&b.$list.prop('tabIndex',0),b.setSlideClasses('number'==typeof this.currentSlide?this.currentSlide:0),b.options.draggable===!0&&b.$list.addClass('draggable')},b.prototype.checkResponsive=function(){var b=this,c,d,e,f=b.$slider.width(),g=window.innerWidth||a(window).width();if("window"===b.respondTo?e=g:"slider"===b.respondTo?e=f:"min"===b.respondTo&&(e=Math.min(g,f)),b.originalSettings.responsive&&b.originalSettings.responsive.length>-1&&null!==b.originalSettings.responsive){d=null;for(c in b.breakpoints)b.breakpoints.hasOwnProperty(c)&&e<b.breakpoints[c]&&(d=b.breakpoints[c]);null!==d?null!==b.activeBreakpoint?d!==b.activeBreakpoint&&(b.activeBreakpoint=d,b.options=a.extend({},b.originalSettings,b.breakpointSettings[d]),b.refresh()):(b.activeBreakpoint=d,b.options=a.extend({},b.originalSettings,b.breakpointSettings[d]),b.refresh()):null!==b.activeBreakpoint&&(b.activeBreakpoint=null,b.options=b.originalSettings,b.refresh())}},b.prototype.changeSlide=function(b,c){var d=this,e=a(b.target),f,g,h,i,j;switch(e.is('a')&&b.preventDefault(),h=d.slideCount%d.options.slidesToScroll!==0,f=h?0:(d.slideCount-d.currentSlide)%d.options.slidesToScroll,b.data.message){case'previous':g=0===f?d.options.slidesToScroll:d.options.slidesToShow-f,d.slideCount>=d.options.slidesToShow&&d.slideHandler(d.currentSlide-g,!1,c);break;case'next':g=0===f?d.options.slidesToScroll:f,d.slideCount>=d.options.slidesToShow&&d.slideHandler(d.currentSlide+g,!1,c);break;case'index':var k=0===b.data.index?0:b.data.index||a(b.target).parent().index()*d.options.slidesToScroll;if(i=d.getNavigableIndexes(),j=0,i[k]&&i[k]===k)if(k>i[i.length-1])k=i[i.length-1];else for(var l in i){if(k<i[l]){k=j;break}j=i[l]}d.slideHandler(k,!1,c);default:return}},b.prototype.clickHandler=function(a){var b=this;b.shouldClick===!1&&(a.stopImmediatePropagation(),a.stopPropagation(),a.preventDefault())},b.prototype.destroy=function(){var b=this;b.autoPlayClear(),b.touchObject={},a('.slick-cloned',b.$slider).remove(),b.$dots&&b.$dots.remove(),b.$prevArrow&&'object'!=typeof b.options.prevArrow&&b.$prevArrow.remove(),b.$nextArrow&&'object'!=typeof b.options.nextArrow&&b.$nextArrow.remove(),b.$slides.parent().hasClass('slick-track')&&b.$slides.unwrap().unwrap(),b.$slides.removeClass('slick-slide slick-active slick-center slick-visible').removeAttr('index').css({position:'',left:'',top:'',zIndex:'',opacity:'',width:''}),b.$slider.removeClass('slick-slider'),b.$slider.removeClass('slick-initialized'),b.$list.off('.slick'),a(window).off('.slick-'+b.instanceUid),a(document).off('.slick-'+b.instanceUid)},b.prototype.disableTransition=function(a){var b=this,c={};c[b.transitionType]="",b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.fadeSlide=function(a,b,c){var d=this;d.cssTransitions===!1?(d.$slides.eq(b).css({zIndex:1e3}),d.$slides.eq(b).animate({opacity:1},d.options.speed,d.options.easing,c),d.$slides.eq(a).animate({opacity:0},d.options.speed,d.options.easing)):(d.applyTransition(b),d.applyTransition(a),d.$slides.eq(b).css({opacity:1,zIndex:1e3}),d.$slides.eq(a).css({opacity:0}),c&&setTimeout(function(){d.disableTransition(b),d.disableTransition(a),c.call()},d.options.speed))},b.prototype.filterSlides=function(a){var b=this;null!==a&&(b.unload(),b.$slideTrack.children(this.options.slide).detach(),b.$slidesCache.filter(a).appendTo(b.$slideTrack),b.reinit())},b.prototype.getCurrent=function(){var a=this;return a.currentSlide},b.prototype.getDotCount=function(){var a=this,b=0,c=0,d=0;if(a.options.infinite===!0)d=Math.ceil(a.slideCount/a.options.slidesToScroll);else for(;b<a.slideCount;)++d,b=c+a.options.slidesToShow,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;return d-1},b.prototype.getLeft=function(a){var b=this,c,d,e=0,f,g;return b.slideOffset=0,d=b.$slides.first().outerHeight(),b.options.infinite===!0?(b.slideCount>b.options.slidesToShow&&(b.slideOffset=b.slideWidth*b.options.slidesToShow*-1,e=d*b.options.slidesToShow*-1),b.slideCount%b.options.slidesToScroll!==0&&a+b.options.slidesToScroll>b.slideCount&&b.slideCount>b.options.slidesToShow&&(a>b.slideCount?(b.slideOffset=(b.options.slidesToShow-(a-b.slideCount))*b.slideWidth*-1,e=(b.options.slidesToShow-(a-b.slideCount))*d*-1):(b.slideOffset=b.slideCount%b.options.slidesToScroll*b.slideWidth*-1,e=b.slideCount%b.options.slidesToScroll*d*-1))):a+b.options.slidesToShow>b.slideCount&&(b.slideOffset=(a+b.options.slidesToShow-b.slideCount)*b.slideWidth,e=(a+b.options.slidesToShow-b.slideCount)*d),b.slideCount<=b.options.slidesToShow&&(b.slideOffset=0,e=0),b.options.centerMode===!0&&b.options.infinite===!0?b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)-b.slideWidth:b.options.centerMode===!0&&(b.slideOffset=0,b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)),c=b.options.vertical===!1?a*b.slideWidth*-1+b.slideOffset:a*d*-1+e,b.options.variableWidth===!0&&(g=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children('.slick-slide').eq(a):b.$slideTrack.children('.slick-slide').eq(a+b.options.slidesToShow),c=g[0]?-1*g[0].offsetLeft:0,b.options.centerMode===!0&&(g=b.options.infinite===!1?b.$slideTrack.children('.slick-slide').eq(a):b.$slideTrack.children('.slick-slide').eq(a+b.options.slidesToShow+1),c=g[0]?-1*g[0].offsetLeft:0,
c+=(b.$list.width()-g.outerWidth())/2)),c},b.prototype.getNavigableIndexes=function(){for(var a=this,b=0,c=0,d=[];b<a.slideCount;)d.push(b),b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;return d},b.prototype.getSlideCount=function(){var b=this,c;if(b.options.swipeToSlide===!0){var d=null;return b.$slideTrack.find('.slick-slide').each(function(c,e){return e.offsetLeft+a(e).outerWidth()/2>-1*b.swipeLeft?(d=e,!1):void 0}),c=Math.abs(a(d).attr('index')-b.currentSlide),c}return b.options.slidesToScroll},b.prototype.init=function(){var b=this;a(b.$slider).hasClass('slick-initialized')||(a(b.$slider).addClass('slick-initialized'),b.buildOut(),b.setProps(),b.startLoad(),b.loadSlider(),b.initializeEvents(),b.updateArrows(),b.updateDots()),null!==b.options.onInit&&b.options.onInit.call(this,b)},b.prototype.initArrowEvents=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.on('click.slick',{message:'previous'},a.changeSlide),a.$nextArrow.on('click.slick',{message:'next'},a.changeSlide))},b.prototype.initDotEvents=function(){var b=this;b.options.dots===!0&&b.slideCount>b.options.slidesToShow&&a('li',b.$dots).on('click.slick',{message:'index'},b.changeSlide),b.options.dots===!0&&b.options.pauseOnDotsHover===!0&&b.options.autoplay===!0&&a('li',b.$dots).on('mouseenter.slick',function(){b.paused=!0,b.autoPlayClear()}).on('mouseleave.slick',function(){b.paused=!1,b.autoPlay()})},b.prototype.initializeEvents=function(){var b=this;b.initArrowEvents(),b.initDotEvents(),b.$list.on('touchstart.slick mousedown.slick',{action:'start'},b.swipeHandler),b.$list.on('touchmove.slick mousemove.slick',{action:'move'},b.swipeHandler),b.$list.on('touchend.slick mouseup.slick',{action:'end'},b.swipeHandler),b.$list.on('touchcancel.slick mouseleave.slick',{action:'end'},b.swipeHandler),b.$list.on('click.slick',b.clickHandler),b.options.pauseOnHover===!0&&b.options.autoplay===!0&&(b.$list.on('mouseenter.slick',function(){b.paused=!0,b.autoPlayClear()}),b.$list.on('mouseleave.slick',function(){b.paused=!1,b.autoPlay()})),b.options.accessibility===!0&&b.$list.on('keydown.slick',b.keyHandler),b.options.focusOnSelect===!0&&a(b.options.slide,b.$slideTrack).on('click.slick',b.selectHandler),a(window).on('orientationchange.slick.slick-'+b.instanceUid,function(){b.checkResponsive(),b.setPosition()}),a(window).on('resize.slick.slick-'+b.instanceUid,function(){a(window).width()!==b.windowWidth&&(clearTimeout(b.windowDelay),b.windowDelay=window.setTimeout(function(){b.windowWidth=a(window).width(),b.checkResponsive(),b.setPosition()},50))}),a('*[draggable!=true]',b.$slideTrack).on('dragstart',function(a){a.preventDefault()}),a(window).on('load.slick.slick-'+b.instanceUid,b.setPosition),a(document).on('ready.slick.slick-'+b.instanceUid,b.setPosition)},b.prototype.initUI=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.show(),a.$nextArrow.show()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.show(),a.options.autoplay===!0&&a.autoPlay()},b.prototype.keyHandler=function(a){var b=this;37===a.keyCode&&b.options.accessibility===!0?b.changeSlide({data:{message:'previous'}}):39===a.keyCode&&b.options.accessibility===!0&&b.changeSlide({data:{message:'next'}})},b.prototype.lazyLoad=function(){function b(b){a('img[data-lazy]',b).each(function(){var b=a(this),c=a(this).attr('data-lazy');b.load(function(){b.animate({opacity:1},200)}).css({opacity:0}).attr('src',c).removeAttr('data-lazy').removeClass('slick-loading')})}var c=this,d,e,f,g;c.options.centerMode===!0?c.options.infinite===!0?(f=c.currentSlide+(c.options.slidesToShow/2+1),g=f+c.options.slidesToShow+2):(f=Math.max(0,c.currentSlide-(c.options.slidesToShow/2+1)),g=2+(c.options.slidesToShow/2+1)+c.currentSlide):(f=c.options.infinite?c.options.slidesToShow+c.currentSlide:c.currentSlide,g=f+c.options.slidesToShow,c.options.fade===!0&&(f>0&&f--,g<=c.slideCount&&g++)),d=c.$slider.find('.slick-slide').slice(f,g),b(d),c.slideCount<=c.options.slidesToShow?(e=c.$slider.find('.slick-slide'),b(e)):c.currentSlide>=c.slideCount-c.options.slidesToShow?(e=c.$slider.find('.slick-cloned').slice(0,c.options.slidesToShow),b(e)):0===c.currentSlide&&(e=c.$slider.find('.slick-cloned').slice(-1*c.options.slidesToShow),b(e))},b.prototype.loadSlider=function(){var a=this;a.setPosition(),a.$slideTrack.css({opacity:1}),a.$slider.removeClass('slick-loading'),a.initUI(),'progressive'===a.options.lazyLoad&&a.progressiveLazyLoad()},b.prototype.postSlide=function(a){var b=this;null!==b.options.onAfterChange&&b.options.onAfterChange.call(this,b,a),b.animating=!1,b.setPosition(),b.swipeLeft=null,b.options.autoplay===!0&&b.paused===!1&&b.autoPlay()},b.prototype.progressiveLazyLoad=function(){var b=this,c,d;c=a('img[data-lazy]',b.$slider).length,c>0&&(d=a('img[data-lazy]',b.$slider).first(),d.attr('src',d.attr('data-lazy')).removeClass('slick-loading').load(function(){d.removeAttr('data-lazy'),b.progressiveLazyLoad()}).error(function(){d.removeAttr('data-lazy'),b.progressiveLazyLoad()}))},b.prototype.refresh=function(){var b=this,c=b.currentSlide;b.destroy(),a.extend(b,b.initials),b.init(),b.changeSlide({data:{message:'index',index:c}},!0)},b.prototype.reinit=function(){var b=this;b.$slides=b.$slideTrack.children(b.options.slide).addClass('slick-slide'),b.slideCount=b.$slides.length,b.currentSlide>=b.slideCount&&0!==b.currentSlide&&(b.currentSlide=b.currentSlide-b.options.slidesToScroll),b.slideCount<=b.options.slidesToShow&&(b.currentSlide=0),b.setProps(),b.setupInfinite(),b.buildArrows(),b.updateArrows(),b.initArrowEvents(),b.buildDots(),b.updateDots(),b.initDotEvents(),b.options.focusOnSelect===!0&&a(b.options.slide,b.$slideTrack).on('click.slick',b.selectHandler),b.setSlideClasses(0),b.setPosition(),null!==b.options.onReInit&&b.options.onReInit.call(this,b)},b.prototype.removeSlide=function(a,b,c){var d=this;return'boolean'==typeof a?(b=a,a=b===!0?0:d.slideCount-1):a=b===!0?--a:a,d.slideCount<1||0>a||a>d.slideCount-1?!1:(d.unload(),c===!0?d.$slideTrack.children().remove():d.$slideTrack.children(this.options.slide).eq(a).remove(),d.$slides=d.$slideTrack.children(this.options.slide),d.$slideTrack.children(this.options.slide).detach(),d.$slideTrack.append(d.$slides),d.$slidesCache=d.$slides,d.reinit(),void 0)},b.prototype.setCSS=function(a){var b=this,c={},d,e;b.options.rtl===!0&&(a=-a),d='left'==b.positionProp?a+'px':'0px',e='top'==b.positionProp?a+'px':'0px',c[b.positionProp]=a,b.transformsEnabled===!1?b.$slideTrack.css(c):(c={},b.cssTransitions===!1?(c[b.animType]='translate('+d+', '+e+')',b.$slideTrack.css(c)):(c[b.animType]='translate3d('+d+', '+e+', 0px)',b.$slideTrack.css(c)))},b.prototype.setDimensions=function(){var b=this;if(b.options.vertical===!1?b.options.centerMode===!0&&b.$list.css({padding:'0px '+b.options.centerPadding}):(b.$list.height(b.$slides.first().outerHeight(!0)*b.options.slidesToShow),b.options.centerMode===!0&&b.$list.css({padding:b.options.centerPadding+' 0px'})),b.listWidth=b.$list.width(),b.listHeight=b.$list.height(),b.options.vertical===!1&&b.options.variableWidth===!1)b.slideWidth=Math.ceil(b.listWidth/b.options.slidesToShow),b.$slideTrack.width(Math.ceil(b.slideWidth*b.$slideTrack.children('.slick-slide').length)+b.slideWidth);else if(b.options.variableWidth===!0){var c=0;b.slideWidth=Math.ceil(b.listWidth/b.options.slidesToShow),b.$slideTrack.children('.slick-slide').each(function(){c+=Math.ceil(a(this).outerWidth(!0))}),b.$slideTrack.width(Math.ceil(c)+1)}else b.slideWidth=Math.ceil(b.listWidth),b.$slideTrack.height(Math.ceil(b.$slides.first().outerHeight(!0)*b.$slideTrack.children('.slick-slide').length));var d=b.$slides.first().outerWidth(!0)-b.$slides.first().width();b.options.variableWidth===!1&&b.$slideTrack.children('.slick-slide').width(b.slideWidth-d)},b.prototype.setFade=function(){var b=this,c;b.$slides.each(function(d,e){c=b.slideWidth*d*-1,b.options.rtl===!0?a(e).css({position:'relative',right:c,top:0,zIndex:800,opacity:0}):a(e).css({position:'relative',left:c,top:0,zIndex:800,opacity:0})}),b.$slides.eq(b.currentSlide).css({zIndex:900,opacity:1})},b.prototype.setHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.css('height',b)}},b.prototype.setPosition=function(){var a=this;a.setDimensions(),a.setHeight(),a.options.fade===!1?a.setCSS(a.getLeft(a.currentSlide)):a.setFade(),null!==a.options.onSetPosition&&a.options.onSetPosition.call(this,a)},b.prototype.setProps=function(){var a=this,b=document.body.style;a.positionProp=a.options.vertical===!0?'top':'left','top'===a.positionProp?a.$slider.addClass('slick-vertical'):a.$slider.removeClass('slick-vertical'),void 0===b.WebkitTransition&&void 0===b.MozTransition&&void 0===b.msTransition||a.options.useCSS===!0&&(a.cssTransitions=!0),void 0!==b.OTransform&&(a.animType='OTransform',a.transformType="-o-transform",a.transitionType='OTransition',void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.MozTransform&&(a.animType='MozTransform',a.transformType="-moz-transform",a.transitionType='MozTransition',void 0===b.perspectiveProperty&&void 0===b.MozPerspective&&(a.animType=!1)),void 0!==b.webkitTransform&&(a.animType='webkitTransform',a.transformType="-webkit-transform",a.transitionType='webkitTransition',void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.msTransform&&(a.animType='msTransform',a.transformType="-ms-transform",a.transitionType='msTransition',void 0===b.msTransform&&(a.animType=!1)),void 0!==b.transform&&a.animType!==!1&&(a.animType='transform',a.transformType="transform",a.transitionType='transition'),a.transformsEnabled=null!==a.animType&&a.animType!==!1},b.prototype.setSlideClasses=function(a){var b=this,c,d,e,f;b.$slider.find('.slick-slide').removeClass('slick-active').removeClass('slick-center'),d=b.$slider.find('.slick-slide'),b.options.centerMode===!0?(c=Math.floor(b.options.slidesToShow/2),b.options.infinite===!0&&(a>=c&&a<=b.slideCount-1-c?b.$slides.slice(a-c,a+c+1).addClass('slick-active'):(e=b.options.slidesToShow+a,d.slice(e-c+1,e+c+2).addClass('slick-active')),0===a?d.eq(d.length-1-b.options.slidesToShow).addClass('slick-center'):a===b.slideCount-1&&d.eq(b.options.slidesToShow).addClass('slick-center')),b.$slides.eq(a).addClass('slick-center')):a>=0&&a<=b.slideCount-b.options.slidesToShow?b.$slides.slice(a,a+b.options.slidesToShow).addClass('slick-active'):d.length<=b.options.slidesToShow?d.addClass('slick-active'):(f=b.slideCount%b.options.slidesToShow,e=b.options.infinite===!0?b.options.slidesToShow+a:a,b.options.slidesToShow==b.options.slidesToScroll&&b.slideCount-a<b.options.slidesToShow?d.slice(e-(b.options.slidesToShow-f),e+f).addClass('slick-active'):d.slice(e,e+b.options.slidesToShow).addClass('slick-active')),'ondemand'===b.options.lazyLoad&&b.lazyLoad()},b.prototype.setupInfinite=function(){var b=this,c,d,e;if(b.options.fade===!0&&(b.options.centerMode=!1),b.options.infinite===!0&&b.options.fade===!1&&(d=null,b.slideCount>b.options.slidesToShow)){for(e=b.options.centerMode===!0?b.options.slidesToShow+1:b.options.slidesToShow,c=b.slideCount;c>b.slideCount-e;c-=1)d=c-1,a(b.$slides[d]).clone(!0).attr('id','').attr('index',d-b.slideCount).prependTo(b.$slideTrack).addClass('slick-cloned');for(c=0;e>c;c+=1)d=c,a(b.$slides[d]).clone(!0).attr('id','').attr('index',d+b.slideCount).appendTo(b.$slideTrack).addClass('slick-cloned');b.$slideTrack.find('.slick-cloned').find('[id]').each(function(){a(this).attr('id','')})}},b.prototype.selectHandler=function(b){var c=this,d=parseInt(a(b.target).parents('.slick-slide').attr("index"));return d||(d=0),c.slideCount<=c.options.slidesToShow?(c.$slider.find('.slick-slide').removeClass('slick-active'),c.$slides.eq(d).addClass('slick-active'),c.options.centerMode===!0&&(c.$slider.find('.slick-slide').removeClass('slick-center'),c.$slides.eq(d).addClass('slick-center')),c.asNavFor(d),void 0):(c.slideHandler(d),void 0)},b.prototype.slideHandler=function(a,b,c){var d,e,f,g,h,i=null,j=this;return b=b||!1,j.animating===!0&&j.options.waitForAnimate===!0||j.options.fade===!0&&j.currentSlide===a||j.slideCount<j.options.slidesToShow?void 0:(b===!1&&j.asNavFor(a),d=a,i=j.getLeft(d),g=j.getLeft(j.currentSlide),j.currentLeft=null===j.swipeLeft?g:j.swipeLeft,j.options.infinite===!1&&j.options.centerMode===!1&&(0>a||a>j.getDotCount()*j.options.slidesToScroll)?(j.options.fade===!1&&(d=j.currentSlide,c!==!0?j.animateSlide(g,function(){j.postSlide(d)}):j.postSlide(d)),void 0):j.options.infinite===!1&&j.options.centerMode===!0&&(0>a||a>j.slideCount-j.options.slidesToScroll)?(j.options.fade===!1&&(d=j.currentSlide,c!==!0?j.animateSlide(g,function(){j.postSlide(d)}):j.postSlide(d)),void 0):(j.options.autoplay===!0&&clearInterval(j.autoPlayTimer),e=0>d?j.slideCount%j.options.slidesToScroll!==0?j.slideCount-j.slideCount%j.options.slidesToScroll:j.slideCount+d:d>=j.slideCount?j.slideCount%j.options.slidesToScroll!==0?0:d-j.slideCount:d,j.animating=!0,null!==j.options.onBeforeChange&&a!==j.currentSlide&&j.options.onBeforeChange.call(this,j,j.currentSlide,e),f=j.currentSlide,j.currentSlide=e,j.setSlideClasses(j.currentSlide),j.updateDots(),j.updateArrows(),j.options.fade===!0?(c!==!0?j.fadeSlide(f,e,function(){j.postSlide(e)}):j.postSlide(e),void 0):(c!==!0?j.animateSlide(i,function(){j.postSlide(e)}):j.postSlide(e),void 0)))},b.prototype.startLoad=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.hide(),a.$nextArrow.hide()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.hide(),a.$slider.addClass('slick-loading')},b.prototype.swipeDirection=function(){var a,b,c,d,e=this;return a=e.touchObject.startX-e.touchObject.curX,b=e.touchObject.startY-e.touchObject.curY,c=Math.atan2(b,a),d=Math.round(180*c/Math.PI),0>d&&(d=360-Math.abs(d)),45>=d&&d>=0?e.options.rtl===!1?'left':'right':360>=d&&d>=315?e.options.rtl===!1?'left':'right':d>=135&&225>=d?e.options.rtl===!1?'right':'left':'vertical'},b.prototype.swipeEnd=function(a){var b=this,c;if(b.dragging=!1,b.shouldClick=!(b.touchObject.swipeLength>10),void 0===b.touchObject.curX)return!1;if(b.touchObject.swipeLength>=b.touchObject.minSwipe)switch(b.swipeDirection()){case'left':b.slideHandler(b.currentSlide+b.getSlideCount()),b.currentDirection=0,b.touchObject={};break;case'right':b.slideHandler(b.currentSlide-b.getSlideCount()),b.currentDirection=1,b.touchObject={}}else b.touchObject.startX!==b.touchObject.curX&&(b.slideHandler(b.currentSlide),b.touchObject={})},b.prototype.swipeHandler=function(a){var b=this;if(!(b.options.swipe===!1||'ontouchend'in document&&b.options.swipe===!1||b.options.draggable===!1&&-1!==a.type.indexOf('mouse')))switch(b.touchObject.fingerCount=a.originalEvent&&void 0!==a.originalEvent.touches?a.originalEvent.touches.length:1,b.touchObject.minSwipe=b.listWidth/b.options.touchThreshold,a.data.action){case'start':b.swipeStart(a);break;case'move':b.swipeMove(a);break;case'end':b.swipeEnd(a)}},b.prototype.swipeMove=function(a){var b=this,c,d,e,f;return f=void 0!==a.originalEvent?a.originalEvent.touches:null,!b.dragging||f&&1!==f.length?!1:(c=b.getLeft(b.currentSlide),b.touchObject.curX=void 0!==f?f[0].pageX:a.clientX,b.touchObject.curY=void 0!==f?f[0].pageY:a.clientY,b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curX-b.touchObject.startX,2))),d=b.swipeDirection(),'vertical'!==d?(void 0!==a.originalEvent&&b.touchObject.swipeLength>4&&a.preventDefault(),e=(b.options.rtl===!1?1:-1)*(b.touchObject.curX>b.touchObject.startX?1:-1),b.options.vertical===!1?b.swipeLeft=c+b.touchObject.swipeLength*e:b.swipeLeft=c+b.touchObject.swipeLength*(b.$list.height()/b.listWidth)*e,b.options.fade===!0||b.options.touchMove===!1?!1:b.animating===!0?(b.swipeLeft=null,!1):(b.setCSS(b.swipeLeft),void 0)):void 0)},b.prototype.swipeStart=function(a){var b=this,c;return 1!==b.touchObject.fingerCount||b.slideCount<=b.options.slidesToShow?(b.touchObject={},!1):(void 0!==a.originalEvent&&void 0!==a.originalEvent.touches&&(c=a.originalEvent.touches[0]),b.touchObject.startX=b.touchObject.curX=void 0!==c?c.pageX:a.clientX,b.touchObject.startY=b.touchObject.curY=void 0!==c?c.pageY:a.clientY,b.dragging=!0,void 0)},b.prototype.unfilterSlides=function(){var a=this;null!==a.$slidesCache&&(a.unload(),a.$slideTrack.children(this.options.slide).detach(),a.$slidesCache.appendTo(a.$slideTrack),a.reinit())},b.prototype.unload=function(){var b=this;a('.slick-cloned',b.$slider).remove(),b.$dots&&b.$dots.remove(),b.$prevArrow&&'object'!=typeof b.options.prevArrow&&b.$prevArrow.remove(),b.$nextArrow&&'object'!=typeof b.options.nextArrow&&b.$nextArrow.remove(),b.$slides.removeClass('slick-slide slick-active slick-visible').css('width','')},b.prototype.updateArrows=function(){var a=this,b;b=Math.floor(a.options.slidesToShow/2),a.options.arrows===!0&&a.options.infinite!==!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.removeClass('slick-disabled'),a.$nextArrow.removeClass('slick-disabled'),0===a.currentSlide?(a.$prevArrow.addClass('slick-disabled'),a.$nextArrow.removeClass('slick-disabled')):a.currentSlide>=a.slideCount-a.options.slidesToShow&&a.options.centerMode===!1?(a.$nextArrow.addClass('slick-disabled'),a.$prevArrow.removeClass('slick-disabled')):a.currentSlide>a.slideCount-a.options.slidesToShow+b&&a.options.centerMode===!0&&(a.$nextArrow.addClass('slick-disabled'),a.$prevArrow.removeClass('slick-disabled')))},b.prototype.updateDots=function(){var a=this;null!==a.$dots&&(a.$dots.find('li').removeClass('slick-active'),a.$dots.find('li').eq(Math.floor(a.currentSlide/a.options.slidesToScroll)).addClass('slick-active'))},a.fn.slick=function(a){var c=this;return c.each(function(c,d){d.slick=new b(d,a)})},a.fn.slickAdd=function(a,b,c){var d=this;return d.each(function(d,e){e.slick.addSlide(a,b,c)})},a.fn.slickCurrentSlide=function(){var a=this;return a.get(0).slick.getCurrent()},a.fn.slickFilter=function(a){var b=this;return b.each(function(b,c){c.slick.filterSlides(a)})},a.fn.slickGoTo=function(a,b){var c=this;return c.each(function(c,d){d.slick.changeSlide({data:{message:'index',index:parseInt(a)}},b)})},a.fn.slickNext=function(){var a=this;return a.each(function(a,b){b.slick.changeSlide({data:{message:'next'}})})},a.fn.slickPause=function(){var a=this;return a.each(function(a,b){b.slick.autoPlayClear(),b.slick.paused=!0})},a.fn.slickPlay=function(){var a=this;return a.each(function(a,b){b.slick.paused=!1,b.slick.autoPlay()})},a.fn.slickPrev=function(){var a=this;return a.each(function(a,b){b.slick.changeSlide({data:{message:'previous'}})})},a.fn.slickRemove=function(a,b){var c=this;return c.each(function(c,d){d.slick.removeSlide(a,b)})},a.fn.slickRemoveAll=function(){var a=this;return a.each(function(a,b){b.slick.removeSlide(null,null,!0)})},a.fn.slickGetOption=function(a){var b=this;return b.get(0).slick.options[a]},a.fn.slickSetOption=function(a,b,c){var d=this;return d.each(function(d,e){e.slick.options[a]=b,c===!0&&(e.slick.unload(),e.slick.reinit())})},a.fn.slickUnfilter=function(){var a=this;return a.each(function(a,b){b.slick.unfilterSlides()})},a.fn.unslick=function(){var a=this;return a.each(function(a,b){b.slick&&b.slick.destroy()})},a.fn.getSlick=function(){var a=null,b=this;return b.each(function(b,c){a=c.slick}),a}}),define('jive/bundles/vendor',['require','domReady','text','promise','jiverscripts/oo/class','jiverscripts/oo/compose','jiverscripts/compat/array','jiverscripts/compat/object','jiverscripts/conc/next_tick','jiverscripts/conc/observable','jiverscripts/conc/promise','jiverscripts/conc/synchronize','jquery','jquery-private','jquery-plugin/plugin_utils','jquery-plugin/jquery.asyncReady','jquery-plugin/jquery.delayedObserver','jquery-plugin/jquery.form','jquery-plugin/jquery.history','jquery-plugin/jquery.id','jquery-plugin/jquery.jivefilebutton','jquery-plugin/jquery.jstree','jquery-plugin/jquery.label','jquery-plugin/jquery.lightbox_me','jquery-plugin/jquery.lightbox_media','jquery-plugin/jquery.localscroll_me','jquery-plugin/jquery.media','jquery-plugin/jquery.message','jquery-plugin/jquery.placeheld','jquery-plugin/jquery.popover','jquery-plugin/jquery.pushStackChromeFix','jquery-plugin/jquery.quickSilverFilter','jquery-plugin/jquery.safelyLoad','jquery-plugin/jquery.slideMenu','jquery-plugin/jquery.suggest','jquery-plugin/jquery.suggestBox','jquery-plugin/jquery.swfobject','jquery-plugin/jquery.template','jquery-plugin/jquery.templates','jquery-plugin/jquery.tooltip','jquery-plugin/jquery.trash','jquery-plugin/jquery.utils','jquery-plugin/jquery.view','vendor/jquery/plugins/jquery.autosize','vendor/jquery/plugins/jquery.ba-bbq','vendor/jquery/plugins/jquery.ba-resize','vendor/jquery/plugins/jquery.browser','vendor/jquery/plugins/jquery.endless-scroll','vendor/jquery/plugins/jquery.exists','vendor/jquery/plugins/jquery.jsonp','vendor/jquery/plugins/jquery.metadata','vendor/jquery/plugins/jquery.scrollTo','vendor/jquery/plugins/jquery.tablesorter','vendor/jquery/plugins/jquery.timepicker','vendor/jquery/plugins/jquery.validator','jquery-ui/jquery.ui.accordion','jquery-ui/jquery.ui.datepicker','jquery-ui/jquery.ui.draggable','jquery-ui/jquery.ui.droppable','jquery-ui/jquery.ui.effect','jquery-ui/jquery.ui.effect-bounce','jquery-ui/jquery.ui.effect-highlight','jquery-ui/jquery.ui.mouse','jquery-ui/jquery.ui.position','jquery-ui/jquery.ui.slider','jquery-ui/jquery.ui.sortable','jquery-ui/jquery.ui.selectable','jquery-ui/jquery.ui.widget','jquery-ui/jquery.ui.core','underscore','backbone','backbone-plugin/backbone.radio','modernizr','vendor/zenorocha/clipboard','slick']),define('lib/core_ext/array',['jquery'],function(a){Array.prototype.inject||(Array.prototype.inject=function(a,b,c){var d=this.length>>>0,e=a,f;if('function'!=typeof b)throw new TypeError;for(f=0;d>f;f+=1)e=b.apply(c,[e,this[f],f]);return e}),Array.prototype.first||(Array.prototype.first=function(){return this[0]}),Array.prototype.last||(Array.prototype.last=function(){var a=this.length>>>0;return this[a-1]}),Array.prototype.unique||(Array.prototype.unique=function b(){var b=this;return this.filter(function(c,d){return a.inArray(c,b)>=d})}),Array.prototype.flat||(Array.prototype.flat=function(){return this.inject([],function(b,c){return a.isArray(c)?c.map(function(a){b.push(a)}):b.push(c),b})}),Array.prototype.zip||(Array.prototype.zip=function(){var a=[this].concat(Array.prototype.slice.call(arguments,0));return this.map(function(b,c){return a.map(function(a){return'undefined'!=typeof a[c]?a[c]:null})})})}),define('lib/core_ext/function',[],function(){'undefined'==typeof _&&(_=void 0),Function.prototype.bind||(Function.prototype.bind=function(a){var b=this,c=Array.prototype.slice.call(arguments,1);return function(){return b.apply(a,c.concat(Array.prototype.slice.call(arguments,0)))}}),Function.prototype.curry||(Function.prototype.curry=function(){var a=this,b=Array.prototype.slice.call(arguments);return function(){var c=b.concat(Array.prototype.slice.call(arguments));return a.apply(this,c)}}),Function.prototype.partial||(Function.prototype.partial=function(){var a=this,b=Array.prototype.slice.call(arguments),c,d=[],e;for(c=0;c<b.length;c+=1)'undefined'==typeof b[c]&&d.push(c);return function(){var c=b.concat(Array.prototype.slice.call(arguments,d.length)),e;for(e=0;e<Math.min(d.length,arguments.length);e+=1)c[d[e]]=arguments[e];for(e=0;e<c.length;e+=1)if('undefined'==typeof c[e])return a.partial.apply(a,c);return a.apply(this,c)}}),Function.prototype.aritize||(Function.prototype.aritize=function(a){var b=this;return function(){return b.apply(this,Array.prototype.slice.call(arguments,0,a))}}),Function.prototype.sequence||(Function.prototype.sequence=function(a){var b=this;return function(){return a.call(this,b.apply(this,Array.prototype.slice.call(arguments)))}}),Function.prototype.delayed=function(a){var b=this;return function(){var c=Array.prototype.slice.call(arguments),d=this;setTimeout(function(){b.apply(d,c)},a||0)}}}),define('lib/core_ext/string',[],function(){String.prototype.startsWith||(String.prototype.startsWith=function(a){return 0===this.indexOf(a)}),String.prototype.endsWith||(String.prototype.endsWith=function(a){var b=this.length-a.length;return b>=0&&this.lastIndexOf(a)===b}),String.prototype.camelize||(String.prototype.camelize=function(a){for(var b=this.toLowerCase().split(a||'-'),c=1;c<b.length;c++)b[c]=b[c].capitalize();return b.join('')}),String.prototype.capitalize||(String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.substring(1).toLowerCase()}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,'')})}),define('soy!jive.i18n.keys.globalAjaxError',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.globalAjaxError=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('c1e73a',[]))),c?'':d.toString()},jive.i18n.keys.globalAjaxError}),define('soy!jive.i18n.keys.ajaxErrorNotFound',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.ajaxErrorNotFound=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('ab08fa',[]))),c?'':d.toString()},jive.i18n.keys.ajaxErrorNotFound}),define('soy!jive.i18n.keys.ajaxErrorUnauthorized',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.ajaxErrorUnauthorized=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('639e33',[]))),c?'':d.toString()},jive.i18n.keys.ajaxErrorUnauthorized}),define('ajax_error_handler',['jquery','jiverscripts/oo/class','soy!jive.i18n.keys.globalAjaxError','soy!jive.i18n.keys.ajaxErrorNotFound','soy!jive.i18n.keys.ajaxErrorUnauthorized','jive/namespace'],function(a,b,c,d,e){return jive.namespace('Util'),jive.Util.AjaxErrorHandler=b.extend(function(b){b.init=function(){},this.handleError=function(b){var f='An error occurred while executing request.';return 403==b.status?(top.location=_jive_base_url+'/login.jspa',void 0):(404==b.status?f=d():500==b.status?f=c():401==b.status&&(f=e()),a('<p />').html(f).message({style:'error'}),void 0)},this.checkForLoginRedirect=function(b){var c=b.getResponseHeader('Content-Type');c&&!c.match(/html/)||(a('#loginform',b.responseText).length>0?top.location=_jive_base_url+'/login.jspa':a('#jive-loginBox',b.responseText).length>0&&(top.location=_jive_base_url+'/admin/login.jsp'))}}),jive.Util.AjaxErrorHandler}),define('channel',[],function(){return{load:function(a,b,c,d){d.isBuild?c(null):b(['backbone-plugin/backbone.radio'],function(b){c(b.channel(a))})}}}),define('soy!jive.nav.menu.create.quick',['soyDeps','soy!jive.shared.displayutil.a11yBoundary'],function(a){return jive.namespace.call(this,'jive.nav.menu.create'),jive.nav.menu.create.quick=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="jive-modal jive-modal-quickcreate">'),jive.shared.displayutil.a11yBoundary({type:'dialog'},d),d.append('<header class="j-modal-header"><h2 class="js-title">',soy.$$escapeHtml(b.title),'</h2></header><label class="j-508-label" id="close-modal-508">',soy.$$escapeHtml(a._i18n('a94563',[])),'</label><a href="#" class="j-modal-close-top close" aria-labelledby="close-modal-508" title="',soy.$$escapeHtml(a._i18n('a94563',[])),'"',b.bootstrapCompatability?' data-dismiss="modal"':'','>',soy.$$escapeHtml(a._i18n('1ce366',[])),'  <span class="jive-icon-glyph icon-close-med" role="img"></span></a><section class="jive-modal-content">',soy.$$filterNoAutoescape(b.body),'</section>'),jive.shared.displayutil.a11yBoundary({type:'dialog',isEnd:!0},d),d.append('</div>'),c?'':d.toString()},jive.nav.menu.create.quick}),define('apps/navbar/menu/create/views/quick_create_view',['jquery','apps/shared/views/abstract_view','soy!jive.nav.menu.create.quick','jquery-plugin/jquery.lightbox_me'],function(a,b,c){return b.extend(function(b){this.render=function(){var a=this,b=this;return a.emitP('fetch').addCallback(function(a){b.showQuickView(a)})},this.showQuickView=function(b){var d=this,e=d.separateScripts(b.body),f=e[0],g=e[1],h=(f.match(/data-title\s*=\s*(['"])(.+?)\1/)||[])[2]||'',i;h=a('<div/>',{html:h}).text(),i=a(c({title:h,body:f})),i.lightbox_me({closeSelector:'.close',closeClick:!1,closeEsc:!1,destroyOnClose:!0,initialFocusSelector:'input[type=text]:first',additionalFocusSelectors:'div[contenteditable]',closeFocusSelector:'#navCreate',onLoad:function(){g()},onClose:function(){i.trigger('lightboxclose'),delete d.content}}),d.content=i}})}),define('apps/direct_messaging/main',['jiverscripts/conc/promise','jive/namespace'],function(a){return jive.namespace('DirectMessaging'),jive.DirectMessaging.Main=function(b,c){function d(a,b){c.unlockSubmit(),c.notifyError(a,b)}function e(){c.hideModal(),c.notifySuccess()}this.onSubmit=function(a){return b.sendMessage(a).addCallback(e).addErrback(d),this},this.addRecipientsById=function(d,e){e=e||new a,b.getUsersByIds(d).addCallback(function(a){c.setRecipients(a),e.emitSuccess()})},this.showModal=function(){return c.openModal(),this},this.hideModal=function(){return c.hideModal(),this},c.addListener('form-submit',this.onSubmit.bind(this))},jive.DirectMessaging.Main}),define('soy!jive.error.rest.soy.errorSaving',['soyDeps'],function(a){return jive.namespace.call(this,'jive.error.rest.soy'),jive.error.rest.soy.errorSaving=function(b,c){var d=c||new soy.StringBuilder;return d.append('<p>',soy.$$escapeHtml(a._i18n('03b670',[])),' <a href="',soy.$$escapeHtml(b.href),'">',soy.$$escapeHtml(a._i18n('7edd50',[])),'</a></p>'),c?'':d.toString()},jive.error.rest.soy.errorSaving}),define('soy!jive.error.rest.soy.errorFinding',['soyDeps'],function(a){return jive.namespace.call(this,'jive.error.rest.soy'),jive.error.rest.soy.errorFinding=function(b,c){var d=c||new soy.StringBuilder;return d.append('<p>',soy.$$escapeHtml(a._i18n('bef2da',[])),' <a href="',soy.$$escapeHtml(b.href),'">',soy.$$escapeHtml(a._i18n('7edd50',[])),'</a></p>'),c?'':d.toString()},jive.error.rest.soy.errorFinding}),define('soy!jive.error.rest.soy.errorUpdating',['soyDeps'],function(a){return jive.namespace.call(this,'jive.error.rest.soy'),jive.error.rest.soy.errorUpdating=function(b,c){var d=c||new soy.StringBuilder;return d.append('<p>',soy.$$escapeHtml(a._i18n('df7a92',[])),' <a href="',soy.$$escapeHtml(b.href),'">',soy.$$escapeHtml(a._i18n('7edd50',[])),'</a></p>'),c?'':d.toString()},jive.error.rest.soy.errorUpdating}),define('soy!jive.error.rest.soy.errorDestroying',['soyDeps'],function(a){return jive.namespace.call(this,'jive.error.rest.soy'),jive.error.rest.soy.errorDestroying=function(b,c){var d=c||new soy.StringBuilder;return d.append('<p>',soy.$$escapeHtml(a._i18n('da5fb6',[])),' <a href="',soy.$$escapeHtml(b.href),'">',soy.$$escapeHtml(a._i18n('7edd50',[])),'</a></p>'),c?'':d.toString()},jive.error.rest.soy.errorDestroying}),function(a,b){if('function'==typeof define&&define.amd)define('backbone-plugin/backbone-super',['underscore','backbone'],function(a,c){b(a,c)});else if('undefined'!=typeof exports){var c=require('underscore'),d=require('backbone');b(c,d)}else b(a._,a.Backbone)}(this,function a(b,c){c.Model.extend=c.Collection.extend=c.Router.extend=c.View.extend=function(a,b){var c=f(this,a,b);return c.extend=this.extend,c};var d=function(a){throw"Super does not implement this method: "+a},e=function(){},f=function(a,c,f){var g,h=a.prototype,i=/\b_super\b/;if(g=c&&c.hasOwnProperty('constructor')?c.constructor:function(){return a.apply(this,arguments)},b.extend(g,a,f),e.prototype=a.prototype,g.prototype=new e,c){b.extend(g.prototype,c);for(var j in c)"function"==typeof c[j]&&i.test(c[j])&&(g.prototype[j]=function(a,b){var c=function(){var c=this._super;this._super=h[a]||d(a);var e;try{e=b.apply(this,arguments)}finally{this._super=c}return e};for(var e in b)c[e]=b[e],delete b[e];
return c}(j,c[j]))}return f&&b.extend(g,f),g.prototype.constructor=g,g.__super__=a.prototype,g};return f}),define('application/base_view',['jquery','underscore','backbone','jive/util','channel!views','backbone-plugin/backbone-super'],function(a,b,c,d,e){'use strict';return c.View.extend({channel:b.constant(e),enabled:!1,constructor:function(a){this.options=b.defaults({},a,b.result(this,'defaults')),b.bindAll(this,'serialize'),c.View.call(this,a),this.listenTo(this.channel(),'enable',this.enable),this.listenTo(this.channel(),'disable',this.disable),this.channel().request('enabled')||this.disable()},enable:function(){return this.enabled=!0,this.delegateEvents(),this},disable:function(){return this.enabled=!1,this.undelegateEvents(),this},render:function(){return a.when(this).promise()},template:function(){return a.Deferred().resolve('').promise()},replaceWith:function(a){return this.$el.replaceWith(a),this.setElement(a),this},serialize:function(b,c){var e=d.toDeepObject(a(b||this.$el));return c?d.deepMerge(c,e):e},assign:function(a,b){a.setElement(this.$(b)).render()}})}),define('soy!jive.cloud_notification.modal',['soyDeps'],function(a){return jive.namespace.call(this,'jive.cloud_notification'),jive.cloud_notification.modal=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="jive-modal j-modal jive-modal-medium"><header class="j-modal-header"><h2>',soy.$$escapeHtml(a._i18n('ad3bc7',[])),'</h2><a href="#" class="j-modal-close-top js-dismiss" title="',soy.$$escapeHtmlAttribute(a._i18n('1ce366',[])),'"><span class="j-close-icon j-ui-elem"></span></a></header><section class="jive-modal-content j-cn-body"><div class="j-cn-text"><h4>',soy.$$escapeHtml(a._i18n('ec2275',[])),'</h3><p>',soy.$$filterNoAutoescape(b.message),'</p></div><div class="j-cn-footer"><button class=\'j-btn-callout js-dismiss\'>',soy.$$escapeHtml(a._i18n('44f2ca',[])),'</button></div></section></div>'),c?'':d.toString()},jive.cloud_notification.modal}),define('apps/cloud_notification/view',['jquery','underscore','channel!app','application/base_view','soy!jive.cloud_notification.modal','jquery-plugin/jquery.lightbox_me'],function(a,b,c,d,e){'use strict';return d.extend({template:e,initialize:function(){b.bindAll(this,'open','dismiss')},open:function(a,b,c){this.setElement(e({message:a,begin:b,end:c})),this.$el.lightbox_me({closeSelector:'.js-dismiss',onClose:this.dismiss,destroyOnClose:!0})},dismiss:function(){c.trigger('cloud_notification:read')}})}),define('jive/json-security',['jquery','application/config','url','apps/cloud_notification/view','jive/i18n'],function(a,b,c,d,e){function f(d){var e=d.getResponseHeader('X-JIVE-USER-ID'),f={url:window.location.pathname,userID:b.currentUser.id||b.currentUser.ID,last10:[]};-1!=e&&-1!=f.userID&&(f.last10.push({url:d.url,headers:d.getAllResponseHeaders()}),f.last10.length>10&&f.last10.shift(),e&&e!=f.userID&&a.ajax({type:'POST',url:c.baseUrl('/__services/v2/rest/security/notify/'),data:JSON.stringify(f),dataType:'json',contentType:'application/json'}))}function g(){if(h())return localStorage;var a={setItem:function(a,b){this.key=b},getItem:function(a){return this.key},removeItem:function(a){delete this.key}};return a}function h(){try{var a=!!localStorage.setItem&&!!localStorage.getItem;return a&&(localStorage.setItem('testkey','testval'),a='testval'==localStorage.getItem('testkey'),localStorage.removeItem('testkey')),!!a}catch(b){return!1}}var i=!0,j=!0,k=b.currentUser.id||b.currentUser.ID;const l='jive.users',m=g();var n=!1;const o=e.jsGetMsg('5167b1',!1);a.ajaxSetup({dataFilter:function(b,c){return'json'===c&&b?a.trim(b.replace(/^throw [^;]*;/,'')):b},beforeSend:function(a){'undefined'!=typeof b.authToken&&a.setRequestHeader('X-J-Token',b.authToken)}}),a(document).ajaxComplete(function(a,b,c){b.url=c.url,b.url.match(/security\/notify\//)||f(b)});var p={updateActiveUser:function(){if(j=_jive_current_user&&!_jive_current_user.anonymous,j){var a=m.getItem(l)||'{}';a=JSON.parse(a),a["user-"+k]=(new Date).getTime(),m.setItem(l,JSON.stringify(a))}},checkIfActiveUser:function(){if(!j)return!0;var a=m.getItem(l);if(a&&(a=JSON.parse(a),a["user-"+k])){const b=a["user-"+k];for(var c in a)if(c!=="user-"+k&&a[c]>b){if(n&&console.log('user conflict detected',k,a),i){var e=new d;e.open(o),i=!1}return!1}}return!0}};return p}),define('apps/shared/models/rest_service',['jquery','url','jiverscripts/oo/class','jiverscripts/conc/promise','soy!jive.error.rest.soy.errorSaving','soy!jive.error.rest.soy.errorFinding','soy!jive.error.rest.soy.errorUpdating','soy!jive.error.rest.soy.errorDestroying','jquery-plugin/jquery.message','jive/json-security'],function(a,b,c,d,e,f,g,h){return jive.RestService=c.extend(function(c){c.resourceType='abstract',c.displayGenericErrorMessages=!0,c.EX_STORAGE_ERROR_CODE=4055,c.putOnUpdate=!1,c.init=function(a){var c=this;this.pluralizedResourceType=this.pluralizedResourceType||this.resourceType+'s';var d=b.v2Url('/'+this.pluralizedResourceType);this.RESOURCE_ENDPOINT=a&&a.forceSecure?b.secureUrl(d):d,this.POST_RESOURCE_ENDPOINT=this.RESOURCE_ENDPOINT,this.defaultParams={}},this.suppressGenericErrorMessages=function(){this.displayGenericErrorMessages=!1},c.commonAjaxRequest=function(b,c,d,e){var f=this,g,h,i;return c=c.toUpperCase(),'POST'==c?(i={contentType:'application/json; charset=utf-8'},h=this.errorSaving):'GET'==c?h=this.errorFinding:'PUT'==c?(i={contentType:'application/json; charset=utf-8'},h=this.errorUpdating):'DELETE'==c&&(h=this.errorDestroying),a.ajax(a.extend({type:c,dataType:'json',success:g||function(a,c,d){f.normalizeID(a),b.emitSuccess(a)},error:this.errorCallback(b,h),timeout:12e4},i||{},d)),b},this.save=function(a){this.normalizeID(a);var b=this.saveUrl(a),c=this.saveMethod(a);return this.commonAjaxRequest(new d,c,{url:b,data:JSON.stringify(this.withoutId(a))},a)},this.get=function(b,c){var e=this.RESOURCE_ENDPOINT+'/'+b,f=a.extend({},this.defaultParams,c||{});return this.commonAjaxRequest(new d,'GET',{url:e,data:f})},this.findAll=function(b){var c=this.RESOURCE_ENDPOINT,e=a.extend({},this.defaultParams,b);return this.commonAjaxRequest(new d,'GET',{url:c,data:e})},this.destroy=function(b){var c=new d,e=this;return b.hasOwnProperty('id')&&(b=b.id),a.ajax({type:'DELETE',url:this.RESOURCE_ENDPOINT+'/'+b,success:function(){c.emitSuccess()},error:function(a){e.maybeEmitError(c,e.errorDestroying,[null,a&&a.status])},timeout:3e4}),c},c.normalizeID=function(a){var b=a?a.id||a[this.resourceType+'ID']:null;a&&b&&(a.id=b)},c.unwrapResponse=function(a){return 1===Object.keys(a).length?a[Object.keys(a)[0]]:a},c.errorCallback=function(a,b){var c=this;return function(d,e,f){var g,h,i;try{g=JSON.parse(d.responseText)}catch(j){}h=g?g.message||g.error||null:null,i=g&&g.code?g.code:d.status,('error'!==e||d.status>=100)&&c.maybeEmitError(a,b,[h,i])}},c.maybeEmitError=function(a,b,c){c&&c.length>1&&c[1]===this.EX_STORAGE_ERROR_CODE?this.displayError('<p>'+c[0]+'</p>'):this.displayGenericErrorMessages&&this.displayError(b()),a.emitError.apply(a,c)},c.displayError=function(b){a(b).message({style:'error'})},c.errorSaving=function(){return e({href:window.location})},c.errorFinding=function(){return f({href:window.location})},c.errorUpdating=function(){return g({href:window.location})},c.errorDestroying=function(){return h({href:window.location})},c.withoutId=function(a){var b={};return Object.keys(a).forEach(function(c){'id'!=c&&(b[c]=a[c])}),b},c.saveUrl=function(a){return a.id?this.RESOURCE_ENDPOINT+'/'+a.id:this.POST_RESOURCE_ENDPOINT},c.saveMethod=function(a){return a.id&&this.putOnUpdate?'PUT':'POST'}}),jive.RestService}),define('jive/promise_util',['jquery'],function(a){function b(){var b=a.Deferred();return b.resolve.apply(b,arguments),b.promise()}function c(){var b=a.Deferred();return b.reject.apply(b,arguments),b.promise()}function d(b,c){var d=a.Deferred();return b.then(d.resolve,function(){c.then(d.resolve,d.reject,d.notify)},d.notify),d.promise()}function e(b){return a.when.apply(a,b).then(function(){return Array.prototype.slice.call(arguments)})}function f(a,b){a.then(b.resolve,b.reject,b.notify)}function g(b,c,d){var e=a.Deferred(),g=18e5;return d=d||5e3,c=c||1/0,function h(a){var i=b();i.done(f.bind(null,i,e)).fail(function(){var b=d*Math.pow(2,c-a);1>=a?f(i,e):setTimeout(h.bind(null,a-1),Math.min(b,g))})}(c),e.promise()}function h(b){var c=a.Deferred();return f(b,c),c.promise()}function i(b){var c=a.Deferred();return b(c.resolve,c.reject,c.notify),c.promise()}return{success:b,failure:c,orElse:d,whenAll:e,proxy:f,retry:g,convert:h,promise:i}}),define('apps/shared/models/core_deferred',['jquery','underscore','jive/promise_util'],function(a,b,c){function d(b){return h(b).then(function(b){var c=a.Deferred();try{b.execute(function(a){i(a,c)})}catch(d){c.reject(d)}return c.promise()})}function e(b){return c.whenAll(b.map(h)).then(function(b){return g(function(d){var e=d.newBatch(),f=b.map(function(b,c){return e.add(String(c),b),new a.Deferred}),g=f.map(function(a){return a.promise().then(m)});return e.execute(function(a){var b={batch:e,rawResponse:a};f.forEach(function(c,d){var e=String(d);i.call(b,a[e],c)})}),c.whenAll(g)})})}function f(a){return e(b.invoke(a,'update'))}function g(b){var c=a.Deferred();return require(['apps/shared/models/lazy_corev3'],function(a){c.resolve(a)}),c.promise().then(b)}function h(b){return a.isFunction(b.execute)?c.success(b):g(b)}function i(a,b){a.error?b.reject(a,this):a.list?b.resolve(a.list,a):b.resolve(a)}function j(a,b,c){return c||(c=[]),a.length<b.itemsPerPage?c.concat(a):d(b.getNextPage()).then(function(b,d){return j(b,d,c.concat(a))})}function k(a){return b.pluck(a,0)}function l(a,b){var c=o[a];c||(c='contents');var e=function(d){var e=d.jive.corev3[c];return e.getByEntityDescriptor({entityDescriptor:a+','+b})};return d(e).then(function(a){return a[0]})}function m(){return arguments.length>1?Array.prototype.slice.apply(arguments):1===arguments.length?arguments[0]:a.when()}var n=function(){return n};n.runQuery=d,n.runAll=e,n.updateAll=f,n.getObject=l,n.withOsapi=g,n.slurp=j,n.squashBatchLists=k;var o={3:'people',37:'places',600:'places',700:'places',14:'places',1527402675:'places'};return n}),define('osapi',['shindig','jiveCoreApiV3'],function(){return osapi}),define('apps/activity_stream/models/rtc_source',['jquery','underscore','url','jiverscripts/oo/class','../../shared/models/core_deferred','osapi','../../../jive/i18n','soy!jive.i18n.keys.globalAjaxError'],function(a,b,c,d,e,f,g){return d.extend(function(d){d.init=function(a){a&&a.collabID&&(this.collabID=a.collabID,this.rtcEnabled=a.rtcEnabled,this.collabDeferred=this.getCollaboration(this.collabID))},this.getCollaboration=function(a){return e.runQuery(function(b){return b.jive.corev3.collaborations.get({uri:'/collaborations/'+a})})},this.getInteractions=function(a){var c=this;return c.collabDeferred.then(function(d){return e.runQuery(d.getInteractions(a)).then(function(a){return b.each(a,function(a){b.extend(a.author,a.author.jive),a.author.entitled=!0,a.collabID=c.collabID,a.rtcEnabled=c.rtcEnabled}),a})})},this.updateSubject=function(a){var b=this,c={subject:a};return b.collabDeferred.then(function(a){return e.runQuery(a.setSubject(c))})},this.createInteraction=function(a){var c=this,d={content:{text:a}};return c.collabDeferred.then(function(a){return e.runQuery(a.createInteraction(d)).then(function(a){return b.extend(a.author,a.author.jive),a.author.entitled=!0,a.collabID=c.collabID,a.rtcEnabled=c.rtcEnabled,a})})},this.createCollaboration=function(b,c,d){var f=this;return e.runQuery(function(a){return a.jive.corev3.collaborations.create({participants:b,subject:d})}).then(function(b){f.collabDeferred=a.when(b),f.createInteraction('<body>'+c+'</body>')})},this.addCollaborators=function(a,c,d){var f=this,g=c.split(',').map(function(a){return{id:a}});return f.collabDeferred.then(function(a){return e.runQuery(a.addParticipant({participants:g}))}).then(function(a){return a.participants.map(function(a){return b.find(d,function(b){return b.id==a.id})})})},this.leaveCollaboration=function(){var a=this;return a.collabDeferred.then(function(){return e.runQuery(function(b){return b.jive.corev3.collaborations.removeParticipants({userID:window._jive_current_user.ID,uri:'/collaborations/'+a.collabID+'/participants/'+window._jive_current_user.ID})})})},this.deleteDM=function(a){return this.remove(c.v3Url('/dms/'+a))},this.deleteComment=function(a){return this.remove(c.v3Url('/comments/'+a))},this.remove=function(b){function c(){a('<p />').html(jive.i18n.keys.globalAjaxError()).message({style:'error'})}return a.ajax(b,{type:'DELETE',error:c})}})}),define('soy!jive.i18n.keys.weDirectMessagingNotEnoughRecipients',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.weDirectMessagingNotEnoughRecipients=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('1ed774',[]))),c?'':d.toString()},jive.i18n.keys.weDirectMessagingNotEnoughRecipients}),define('soy!jive.i18n.keys.weDirectMessagingCannotBeEmptyText',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.weDirectMessagingCannotBeEmptyText=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('80afb1',[]))),c?'':d.toString()},jive.i18n.keys.weDirectMessagingCannotBeEmptyText}),define('apps/direct_messaging/models/message_source',['jquery','underscore','apps/shared/models/rest_service','apps/activity_stream/models/rtc_source','jiverscripts/conc/promise','jiverscripts/conc/observable','soy!jive.i18n.keys.weDirectMessagingNotEnoughRecipients','soy!jive.i18n.keys.weDirectMessagingCannotBeEmptyText','jive/namespace'],function(a,b,c,d,e,f){function g(b){var c=a.Deferred();return osapi.jive.corev3.people.get({id:'@me'}).execute(function(a){a.error&&401==a.error.code?(b.emitError(a.error.message),c.reject()):c.resolve()}),c}return jive.namespace('DirectMessaging'),jive.DirectMessaging.MessageSource=c.extend(function(c,h){f(this),c.resourceType='wall',c.pluralizedResourceType=c.resourceType,this.init=function(a,b){this.urlParams='/14/1',b&&b.trackingID&&(this.urlParams+='?sr='+b.trackingID),this.userSource=a,window._jive_realtime_communications_enabled&&(this.rtcSource=new d),h.init.call(this,b)},this.getUsersByIds=function(a){function b(){a.length>0?c.userSource.get(a.shift()).addCallback(function(a){f.push(a),b()}):d.emitSuccess(f)}var c=this,d=new e,f=[];return b(),d},this.sendMessage=function(c){var f=this,h=new e,i=[],j=0;return window._jive_realtime_communications_enabled?(b.each(c.userIDs,function(a){window._jive_current_user.ID!=a&&j++,i.push({id:a})}),j?c.message?this.rtcSource.createCollaboration(i,c.message,c.subject).then(function(){h.emitSuccess()},function(a){h.emitError(a.error.message)}):h.emitError(jive.i18n.keys.weDirectMessagingCannotBeEmptyText(),4001):h.emitError(jive.i18n.keys.weDirectMessagingNotEnoughRecipients(),4001)):a.when(g(h)).then(function(){a.ajax({data:JSON.stringify({wallentry:a.extend({},c,{privateDM:!0})}),type:'POST',url:f.RESOURCE_ENDPOINT+f.urlParams,dataType:'json',contentType:'application/json; charset=utf-8',success:function(a,b,e){f.rtcSource=new d({collabID:a.wallentry.objectId,rtcEnabled:!1}),f.rtcSource.createInteraction(c.message).then(function(){h.emitSuccess()},function(a){h.emitError(a.error.message)})},error:function(b,c,d){try{var e=a.parseJSON(b.responseText);e&&e.error&&e.error.message&&h.emitError(e.error.message,e.error.code)}catch(f){h.emitError(null,b&&b.status)}}})}),h}}),jive.DirectMessaging.MessageSource}),define('application/messaging',['jquery','underscore','channel!app','url','soy!jive.error.rest.soy.errorFinding','soy!jive.error.rest.soy.errorUpdating','soy!jive.error.rest.soy.errorDestroying','jquery-plugin/jquery.message'],function(a,b,c,d,e,f,g){'use strict';function h(b,c,d){a.isFunction(c)&&(c=c(d||{})),i(b,c)}function i(b,c){var d=a('<div/>').html(c).text();a('<p/>').text(d).message({style:b})}return c.comply('message:error',b.partial(h,'error')),c.comply('message:error:get',b.partial(h,'error',e,{href:d.baseUrl("/")})),c.comply('message:error:put',b.partial(h,'error',f,{href:d.baseUrl("/")})),c.comply('message:error:delete',b.partial(h,'error',g,{href:d.baseUrl("/")})),c.comply('message:info',b.partial(h,'info')),c.comply('message:success',b.partial(h,'success')),c.comply('message:warn',b.partial(h,'warn')),{command:b.bind(c.command,c),error:b.bind(c.command,c,'message:error'),info:b.bind(c.command,c,'message:info'),success:b.bind(c.command,c,'message:success'),warn:b.bind(c.command,c,'message:warn')}}),define('soy!jive.eae.common.jsI18nHelper',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.jsI18nHelper=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n(b.key,[]))),c?'':d.toString()},jive.eae.common.jsI18nHelper}),define('soy!jive.soy.direct_messaging.invalidMessage',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.direct_messaging'),jive.soy.direct_messaging.invalidMessage=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('3a79a7',[]))),c?'':d.toString()},jive.soy.direct_messaging.invalidMessage}),define('soy!jive.soy.direct_messaging.successMessage',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.direct_messaging'),jive.soy.direct_messaging.successMessage=function(b,c){var d=c||new soy.StringBuilder;return d.append('<p>',soy.$$escapeHtml(a._i18n('7c9f44',[])),'</p>'),c?'':d.toString()},jive.soy.direct_messaging.successMessage}),define('soy!jive.statusinput.attachments.renderCommonAttachment',['soyDeps'],function(a){return jive.namespace.call(this,'jive.statusinput.attachments'),jive.statusinput.attachments.renderCommonAttachment=function(b,c){var d=c||new soy.StringBuilder;return d.append('<li',b.attachment.id?' id="'+b.attachment.id+'"':'',b.containerClass?' class="'+soy.$$escapeHtml(b.containerClass)+'"':'','><a href="',soy.$$escapeHtml(b.linkUrl),'" ',b.attachment.originalURL?'jiveOriginalURL="'+soy.$$escapeHtml(b.attachment.originalURL)+'"':'',' class="j-attach-anchor" ',b.docID?' data-doc-id="'+soy.$$escapeHtml(b.docID)+'" ':'',' ><img src="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.attachment.imageThumbnailUrl)),'" alt=""/></a>',b.removable?'<a href="javascript:void(0);" class="j-remove-attachment">'+soy.$$escapeHtml(a._i18n('a6d3a2',[]))+'</a>':'','</li>'),c?'':d.toString()},jive.statusinput.attachments.renderCommonAttachment}),define('soy!jive.statusinput.attachments.renderLinkThumbnails',['soyDeps'],function(a){return jive.namespace.call(this,'jive.statusinput.attachments'),jive.statusinput.attachments.renderLinkThumbnails=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-thumbnails j-rc3">',a.removable?'<div class="j-controls">'+(parseInt(a.attachment.properties.thumbnailCount,10)>1?'<a class="left j-preview-choose" title="Previous image" href="#"><span class="jive-icon-glyph icon-arrow-left2"></span></a><a class="right j-preview-choose" title="Next image" href="#"><span class="jive-icon-glyph icon-arrow-right2"></span></a>':'')+'<a class="no-thumb" title="Remove image" href="#"><span class="jive-icon-glyph icon-close-med"></span></a></div>':'','<ul class="j-thumbnails-viewport">',a.attachment.properties.thumbnailID_1?'<li class="j-thumbnail '+(a.removable?'selected':'')+'"><a href="'+soy.$$filterNoAutoescape(a.attachment.properties.linkURL)+'"><img '+(a.attachment.properties.title?'title="'+soy.$$escapeHtml(a.attachment.properties.title)+'"':'')+'src="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.attachment.properties.thumbnailURL_1))+'" data-image-id="'+soy.$$escapeHtml(a.attachment.properties.thumbnailID_1)+'" alt=""/></a></li>':'',a.attachment.properties.thumbnailID_2?'<li class="j-thumbnail"><a href="'+soy.$$filterNoAutoescape(a.attachment.properties.linkURL)+'"><img '+(a.attachment.properties.title?'title="'+soy.$$escapeHtml(a.attachment.properties.title)+'"':'')+'src="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.attachment.properties.thumbnailURL_2))+'" data-image-id="'+soy.$$escapeHtml(a.attachment.properties.thumbnailID_2)+'" alt=""/></a></li>':'',a.attachment.properties.thumbnailID_3?'<li class="j-thumbnail"><a href="'+soy.$$filterNoAutoescape(a.attachment.properties.linkURL)+'"><img '+(a.attachment.properties.title?'title="'+soy.$$escapeHtml(a.attachment.properties.title)+'"':'')+'src="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.attachment.properties.thumbnailURL_3))+'" data-image-id="'+soy.$$escapeHtml(a.attachment.properties.thumbnailID_3)+'" alt=""/></a></li>':'','</ul></div>'),b?'':c.toString()},jive.statusinput.attachments.renderLinkThumbnails}),define('soy!jive.statusinput.attachments.renderLinkAttachment',['soyDeps','soy!jive.statusinput.attachments.renderLinkThumbnails'],function(a){return jive.namespace.call(this,'jive.statusinput.attachments'),jive.statusinput.attachments.renderLinkAttachment=function(a,b){var c=b||new soy.StringBuilder;return c.append('<li class="js-attached-link j-attached-link clearfix"',a.attachment.id?' id="'+a.attachment.id+'"':'',' style="display:block">',a.removable?'<div class="j-preview-header">Link Preview<a href="javascript:void(0);" class="j-remove-attachment j-close font-color-meta-light" title="Remove link preview"><span class="jive-icon-glyph icon-close-med"></span></a></div>':'','<div class="j-simple">'),'video'==a.attachment.properties.type&&a.attachment.properties.html?c.append('<div class="j-video">',soy.$$filterNoAutoescape(a.attachment.properties.html),'</div>'):'photo'==a.attachment.properties.type&&a.attachment.properties.imageURL?c.append('<div class="j-image"><img src="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.attachment.properties.imageURL)),'"  alt=""/></div>'):a.attachment.properties.thumbnailCount&&jive.statusinput.attachments.renderLinkThumbnails(a,c),c.append('<div class="j-details"><a class="j-title" href="',soy.$$escapeHtml(a.attachment.properties.linkURL),'">',a.attachment.properties.title?soy.$$escapeHtml(a.attachment.properties.title):soy.$$filterNoAutoescape(a.attachment.properties.linkURL),'</a>',a.attachment.properties.description?'<p class="j-description">'+soy.$$escapeHtml(a.attachment.properties.description)+'</p>':'',a.attachment.properties.providerURL&&a.attachment.properties.providerDisplay?'<span class="j-meta"><a class="j-provider" href="'+soy.$$escapeHtml(a.attachment.properties.providerURL)+'">'+soy.$$escapeHtml(a.attachment.properties.providerDisplay)+'</a></span>':'','</div></div></li>'),b?'':c.toString()},jive.statusinput.attachments.renderLinkAttachment}),define('soy!jive.statusinput.attachments.renderAttachment',['soyDeps','soy!jive.statusinput.attachments.renderCommonAttachment','soy!jive.statusinput.attachments.renderLinkAttachment'],function(a){return jive.namespace.call(this,'jive.statusinput.attachments'),jive.statusinput.attachments.renderAttachment=function(b,c){var d=c||new soy.StringBuilder;switch(b.attachment.objectType){case 102:jive.statusinput.attachments.renderCommonAttachment(soy.$$augmentMap(b,{linkUrl:soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.entry.jiveObjectURL)),containerClass:'j-attached-document',docID:b.entry.id}),d);break;case 111:b.hideFirstImage||b.attachment.properties&&b.attachment.properties.hidden||jive.statusinput.attachments.renderCommonAttachment(soy.$$augmentMap(b,{linkUrl:soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.attachment.fullImageUrl)),containerClass:'j-attached-image'}),d);break;case 801:b.attachment.properties.linkURL?jive.statusinput.attachments.renderLinkAttachment(b,d):b.attachment.properties.videoURL&&d.append('<li class="j-attached-video" ',b.attachment.id?'id="'+b.attachment.id+'"':'','><a rel="fb" href="',soy.$$filterNoAutoescape(b.attachment.properties.videoURL),'" style="width: ',soy.$$escapeHtml(b.attachment.properties.thumbnailWidth),'px; height: ',soy.$$escapeHtml(b.attachment.properties.thumbnailHeight),'px" class="j-attach-anchor j-attach-video"><img src="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.attachment.properties.thumbnailURL)),'" width="',soy.$$escapeHtml(b.attachment.properties.thumbnailWidth),'" height="',soy.$$escapeHtml(b.attachment.properties.thumbnailHeight),'" alt="" /><span class="j-icon-play" style="display: none; position: absolute; left: ',soy.$$escapeHtml((parseInt(b.attachment.properties.thumbnailWidth,10)+12-40)/2),'px; top: 20px; "></span></a>',b.removable?'<a href="javascript:void(0);" class="j-remove-attachment">'+soy.$$escapeHtml(a._i18n('a6d3a2',[]))+'</a>':'','</li>')}return c?'':d.toString()},jive.statusinput.attachments.renderAttachment}),define('soy!jive.statusinput.attachments.renderAttachments',['soyDeps','soy!jive.statusinput.attachments.renderAttachment'],function(a){return jive.namespace.call(this,'jive.statusinput.attachments'),jive.statusinput.attachments.renderAttachments=function(a,b){var c=b||new soy.StringBuilder;if(a.entry.meta){c.append('<a class="j-attachment-arrow j-attachment-arrow-left clearfix" href="javascript:void(0);"><span class="jive-icon-link-back"></span></a><ul class="j-attached-items clearfix">');for(var d=a.entry.meta,e=d.length,f=0;e>f;f++){var g=d[f];'109016030'==a.entry.collabObjectType?jive.statusinput.attachments.renderAttachment(soy.$$augmentMap(a,{attachment:g,hideFirstImage:!1}),c):jive.statusinput.attachments.renderAttachment(soy.$$augmentMap(a,{attachment:g,hideFirstImage:a.hideFirstImage&&0==f}),c)}c.append(a.removable?'<li class=\'j-attached-loading\'></li>':'','</ul><a class="j-attachment-arrow j-attachment-arrow-right clearfix" href="javascript:void(0);"><span class="jive-icon-link-forward"></span></a>')}return b?'':c.toString()},jive.statusinput.attachments.renderAttachments}),define('soy!jive.statusinput.containers.renderAttachmentsContainer',['soyDeps','soy!jive.statusinput.attachments.renderAttachments'],function(a){return jive.namespace.call(this,'jive.statusinput.containers'),jive.statusinput.containers.renderAttachmentsContainer=function(a,b){a=a||{};var c=b||new soy.StringBuilder;return c.append('<div ',a.id?'id="'+a.id+'" ':'','class="jive-js-attachment-container j-attachment-container clearfix" ',a.visible?'style="display:block"':'','>'),a.entry&&a.entry.meta&&jive.statusinput.attachments.renderAttachments(a,c),c.append('</div>'),b?'':c.toString()},jive.statusinput.containers.renderAttachmentsContainer}),define('soy!jive.statusinput.containers.statusInputActionContainer',['soyDeps'],function(a){return jive.namespace.call(this,'jive.statusinput.containers'),jive.statusinput.containers.statusInputActionContainer=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-status-input-attach-action-container clearfix j-rc4">',a.canCreateImage?'<div class="j-meta-image-container j-attach-tab clearfix"><form method="post" enctype="multipart/form-data"><input type="file" name="image" /><input type="hidden" name="imageURL" /><input type="hidden" name="privateDM" value="'+(a.isPrivateDM?'true':'false')+'" /></form></div>':'',a.canCreateVideo?'<div class="j-meta-video-container j-attach-tab clearfix"><form method="post"><input type="file" name="image" /><input type="hidden" name="imageURL" /><input type="hidden" name="privateDM" value="'+(a.isPrivateDM?'true':'false')+'" /></form></div>':'','</div>'),b?'':c.toString()},jive.statusinput.containers.statusInputActionContainer}),define('soy!jive.soy.direct_messaging.modal',['soyDeps','soy!jive.shared.displayutil.a11yBoundary','soy!jive.statusinput.containers.renderAttachmentsContainer','soy!jive.statusinput.containers.statusInputActionContainer'],function(a){return jive.namespace.call(this,'jive.soy.direct_messaging'),jive.soy.direct_messaging.modal=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div id="jive-modal-direct-messaging" class="jive-modal j-pop">'),jive.shared.displayutil.a11yBoundary({type:'dialog'},d),d.append('<header class="j-modal-header"><h2>',soy.$$escapeHtml(a._i18n('274858',[])),'</h2></header><label class="j-508-label" id="close-modal-508">',soy.$$escapeHtml(a._i18n('a94563',[])),'</label><a href="#" class="j-modal-close-top close" aria-labelledby="close-modal-508" title="',soy.$$escapeHtmlAttribute(a._i18n('a94563',[])),'">',soy.$$escapeHtml(a._i18n('1ce366',[])),'<span class="jive-icon-glyph icon-close-med" role="img"></span></a><div class="jive-modal-content j-pop-main clearfix"><div id="share-error" class="jive-error-box" style="display:none" aria-live="polite" aria-atomic="true"></div><form class="j-form j-msg-form"><div class="j-form-row clearfix"><label for="recipients">',soy.$$escapeHtml(a._i18n('dbe501',[])),'</label><p class="ie-zindex-fix"><input type="text" name="share-users" id="recipients" class="j-user-autocomplete j-autocomplete-input jive-chooser-input jive-form-element-text j-ui-elem" autocomplete="off" role="combobox"/></p></div><div class="j-form-row clearfix"><label for="jive-direct-message-body">',soy.$$escapeHtml(a._i18n('efebc5',[])),'</label><div id="statusInputs-direct-message-text" class="j-mb-entry j-msg-comboBox js-statusInputs"><label for="j-rtc-subject" class="j-508-label">',soy.$$escapeHtml(a._i18n('7bfaba',[])),'</label><input type="text" name="rtc-subject" id="j-rtc-subject" class="jive-form-element-text" maxlength="255" autocomplete="off" placeholder="',soy.$$escapeHtmlAttribute(a._i18n('7bfaba',[])),'"',b.rtcEnabled?'style="display:none;"':'','/><span class="j-508-label" id="jive-508-label-message-direct-message-text">',soy.$$escapeHtml(a._i18n('116dbe',[])),'</span><div class="j-rc4 j-rc-none-top jive-statusinput-default font-color-meta jive-statusinput jive-form-element-text jive-js-statusinput-default" contenteditable="true" style="ime-mode:auto;" tabindex="-1"></div><div id="message-direct-message-text" class="j-rc4 j-rc-none-top jive-js-statusinput jive-statusinput jive-form-element-textarea" contenteditable="true" style="ime-mode:auto;"></div><div class="jive-js-error-general j-rc2 j-mb-message" style="display:none" aria-live="polite" aria-atomic="true"><strong>',soy.$$escapeHtml(a._i18n('5a51ab',[])),'</strong></div></div>'),jive.statusinput.containers.renderAttachmentsContainer({removable:!0},d),d.append('</div><div class="j-status-input-actions j-pop-row j-last j-act-comment-actions clearfix"><input class="js-direct-messaging-form-submitBtn j-btn-global j-btn-callout" type="submit" name="share-content-submit" value="',soy.$$escapeHtmlAttribute(a._i18n('8fbf0c',[])),'"/><button type="button" class="close j-btn-global">',soy.$$escapeHtml(a._i18n('889192',[])),'</button>',b.rtcEnabled?'':(b.displayImageBtn?'<div tabindex="0" class="j-btn-global j-wall-meta-image jive-js-imgattach-button" data-enabled='+soy.$$escapeHtmlAttributeNospace(b.displayImageBtn)+'><label for="imageFile" class="j-508-label">'+soy.$$escapeHtml(a._i18n('a82059',[]))+'</label><span class="jive-icon-glyph icon-image"></span></div>':'')+'<a href="javascript:void(0);" class="jive-js-mention-button j-wall-meta-reference j-btn-global"><label id="j-direct-messaging-mention-label" class="j-508-label">'+soy.$$escapeHtml(a._i18n('5c2e1a',[]))+'</label><span class="jive-icon-glyph icon-mention" aria-labelledby="j-direct-messaging-mention-label"></span></a>','</div></form>'),jive.statusinput.containers.statusInputActionContainer({canCreateImage:!0,canCreateVideo:!1,isPrivateDM:!0},d),d.append('</div>'),jive.shared.displayutil.a11yBoundary({type:'dialog',isEnd:!0},d),d.append('</div>'),c?'':d.toString()},jive.soy.direct_messaging.modal}),define('soy!jive.soy.direct_messaging.notRelated',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.direct_messaging'),jive.soy.direct_messaging.notRelated=function(b,c){var d=c||new soy.StringBuilder;return d.append('<p class="j-warn"><span class="jive-icon-sml jive-icon-redalert"></span>',soy.$$escapeHtml(a._i18n('f2420a',[])),'</p>'),
c?'':d.toString()},jive.soy.direct_messaging.notRelated}),define('apps/direct_messaging/views/create_message_view',['jquery','underscore','url','jiverscripts/conc/observable','application/config','application/messaging','soy!jive.eae.common.jsI18nHelper','soy!jive.soy.direct_messaging.invalidMessage','soy!jive.soy.direct_messaging.successMessage','soy!jive.soy.direct_messaging.modal','soy!jive.soy.direct_messaging.notRelated','soy!jive.i18n.keys.weDirectMessagingCannotBeEmptyText','soy!jive.i18n.keys.weDirectMessagingNotEnoughRecipients','jquery-plugin/jquery.lightbox_me'],function(a,b,c,d,e,f,g,h,i,j,k){return function(){function g(b){var c=b.find('input[name=share-users]').val(),d=[];c&&(d=b.find('input[name=share-users]').val().split(/\s*,\s*/),d.push(e.currentUser.id));var f=b.find('#j-rtc-subject').val();return a.extend(l.getMessageObject(),{userIDs:d,subject:f})}d(this);var l,m,n=[];this.notifyError=function(b,c){if(f.error(b),c&&4001===c){var d=jive.i18n.keys.weDirectMessagingCannotBeEmptyText(),e=jive.i18n.keys.weDirectMessagingNotEnoughRecipients();b==d?a('#message-direct-message-text').attr('aria-invalid','true').attr('aria-describedby',b).focus():b==e&&a('#recipients').attr('aria-invalid','true').attr('aria-describedby',b).focus()}},this.notifySuccess=function(){f.success(i())},this.setRecipients=function(a){return n=a.concat([]),this},this.hideModal=function(){return m.trigger('close'),this},this.lockSubmit=function(){m.find('input.js-direct-messaging-form-submitBtn').prop('disabled',!0)},this.unlockSubmit=function(){m.find('input.js-direct-messaging-form-submitBtn').prop('disabled',!1)},this.validate=function(a){var c=a.message.replace(/&nbsp;/gi,'').replace(/<br\s*[\/]?>/gi,"").replace(/\u200B/g,"");return b.trim(a.subject)||b.trim(c)?!0:(this.notifyError(h()),!1)},this.openModal=function(){var d=this;a.getJSON(c.v2Url('/directmessage/permissions'),function(c){m=a(j(b.extend(c,{rtcEnabled:e.realtimeEnabled})));var f=m.find('#recipients'),h=m.find('#j-rtc-subject');m.lightbox_me({destroyOnClose:!0,closeClick:!1,closeEsc:!1,additionalFocusSelectors:'div#message-direct-message-text'}),require(['apps/userpicker/main'],function(c){d.userPicker=new c({multiple:!0,listAllowed:!0,emailAllowed:!1,browseAllowed:!0,canInvitePartners:!1,$input:f,relatedMessage:a(k())}),d.userPicker.setUsers(n),e.realtimeEnabled&&d.userPicker.addListener('selectedUsersChanged',function(a){var c=[],d=a.users,f=a.userlists;c=c.concat(d),f.length&&b.each(f,function(a){c=c.concat(a.users)}),c=b.uniq(c,!1,function(a){return a.id}),c=b.reject(c,function(a){return a.id==e.currentUser.id}),c.length>1?h.show():h.hide()}),n=[],h.placeHeld()}),require(['apps/direct_messaging/controllers/micro_blogging_controller'],function(a){l=new a}),m.find('form.j-form').on('submit',function(b){b.preventDefault();var c=g(a(this));d.lockSubmit(),d.validate(c)?d.emit('form-submit',c):d.unlockSubmit()})}).fail(function(a){require(['soy!jive.error.rest.soy.errorFinding'],function(a){f.error(a())})})}}}),define('application/common',['jquery','underscore','./config','url'],function(a,b,c,d){'use strict';function e(a){return d.v2Url('users/current/prop/'+a)}var f=a.Deferred().reject('Not logged in').promise();return b.bindAll({isGuest:function(){return c.guest},getUserProperty:function(c){return this.isGuest()?f:a.ajax({dataType:'html',url:e(c)}).then(b.identity)},setUserProperty:function(b,c){return this.isGuest()?f:a.ajax({contentType:'application/json; charset=utf-8',data:c,dataType:'json',type:'POST',url:e(b)}).then(a.noop)},removeUserProperty:function(b){return this.isGuest()?f:a.ajax({type:'DELETE',url:e(b)}).then(a.noop)}})}),define('apps/browse/user/model/user_source',['apps/shared/models/rest_service','jiverscripts/conc/promise','application/common','lib/core_ext/array','jive/namespace'],function(a,b,c){return jive.namespace('Browse.User'),jive.Browse.User.ItemSource=a.extend(function(a){a.resourceType='user',this.findAll=function(a){var c=a.userID?a.userID:'current',d=this.RESOURCE_ENDPOINT+'/'+c+'/browse';return this.commonAjaxRequest(new b,'GET',{url:d,data:a||{}})},this.findAllOrgChart=function(a){var c=a&&a.userID?a.userID:'current',d=this.RESOURCE_ENDPOINT+'/'+c+'/orgchart';return this.commonAjaxRequest(new b,'GET',{url:d,data:a||{}})},this.getDirectReportCount=function(a){var c=this.RESOURCE_ENDPOINT+'/'+a.userID+'/directreports/count';return this.commonAjaxRequest(new b,'GET',{url:c,data:{}})},this.getDirectReports=function(a){var c=this.RESOURCE_ENDPOINT+'/'+a.userID+'/directreports';return this.commonAjaxRequest(new b,'GET',{url:c,data:{}})},this.getUserProperty=function(a){return c.setUserProperty(a.propName)},this.setUserProperty=function(a){return c.setUserProperty(a.propName,a.propValue)},this.removeUserProperty=function(a){return c.removeUserProperty(a.propName)},this.isLoginProcessing=function(a){var c=this.RESOURCE_ENDPOINT+'/'+a.userID+'/login/processing';return this.commonAjaxRequest(new b,'GET',{url:c,data:{}})}}),jive.Browse.User.ItemSource}),define('apps/direct_messaging/factory',['jquery','./main','./models/message_source','./views/create_message_view','jiverscripts/conc/promise','apps/browse/user/model/user_source','jive/namespace'],function(a,b,c,d,e,f){return jive.namespace('DirectMessaging'),jive.DirectMessaging.create=function(a){var e=new f,g=new c(e,a),h=new d;return new b(g,h)},jive.DirectMessaging.sendMessageToUserIds=function(b){var c=new e,d=jive.DirectMessaging.create();c.addCallback(a.proxy(d.showModal,d)),d.addRecipientsById(b,c)},jive.DirectMessaging}),define('content/create',['channel!app','jquery','underscore','url','apps/navbar/menu/create/views/quick_create_view','apps/direct_messaging/factory'],function(a,b,c,d,e,f){'use strict';function g(){f.create({trackingID:'cmenu'}).showModal()}function h(a){var b=d.baseUrl('document/upload.jspa',c.pick(a,'containerID','containerType'));window.location.href=b}function i(a,f){var g=c.pick(f,'containerID','containerType','contentType','sr','project');b.get(d.baseUrl(a,g)).then(function(a){(new e).showQuickView({body:a})})}a.comply('create:bookmark',c.partial(i,'create-favorite-slidedown!input.jspa')),a.comply('create:directMessage',g),a.comply('create:fileUpload',h),a.comply('create:statusUpdate',c.partial(i,'create-wentry-quick!input.jspa')),a.comply('create:task',c.partial(i,'create-quick-task!input.jspa'))}),function(){'use strict';function a(){}function b(a,b){for(var c=a.length;c--;)if(a[c].listener===b)return c;return-1}function c(a){return function b(){return this[a].apply(this,arguments)}}var d=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function g(a){var b=this._getEvents(),c,d;if(a instanceof RegExp){c={};for(d in b)b.hasOwnProperty(d)&&a.test(d)&&(c[d]=b[d])}else c=b[a]||(b[a]=[]);return c},d.flattenListeners=function h(a){var b=[],c;for(c=0;c<a.length;c+=1)b.push(a[c].listener);return b},d.getListenersAsObject=function i(a){var b=this.getListeners(a),c;return b instanceof Array&&(c={},c[a]=b),c||b},d.addListener=function j(a,c){var d=this.getListenersAsObject(a),e='object'==typeof c,f;for(f in d)d.hasOwnProperty(f)&&-1===b(d[f],c)&&d[f].push(e?c:{listener:c,once:!1});return this},d.on=c('addListener'),d.addOnceListener=function k(a,b){return this.addListener(a,{listener:b,once:!0})},d.once=c('addOnceListener'),d.defineEvent=function l(a){return this.getListeners(a),this},d.defineEvents=function m(a){for(var b=0;b<a.length;b+=1)this.defineEvent(a[b]);return this},d.removeListener=function n(a,c){var d=this.getListenersAsObject(a),e,f;for(f in d)d.hasOwnProperty(f)&&(e=b(d[f],c),-1!==e&&d[f].splice(e,1));return this},d.off=c('removeListener'),d.addListeners=function o(a,b){return this.manipulateListeners(!1,a,b)},d.removeListeners=function p(a,b){return this.manipulateListeners(!0,a,b)},d.manipulateListeners=function q(a,b,c){var d,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if('object'!=typeof b||b instanceof RegExp)for(d=c.length;d--;)f.call(this,b,c[d]);else for(d in b)b.hasOwnProperty(d)&&(e=b[d])&&('function'==typeof e?f.call(this,d,e):g.call(this,d,e));return this},d.removeEvent=function r(a){var b=typeof a,c=this._getEvents(),d;if('string'===b)delete c[a];else if(a instanceof RegExp)for(d in c)c.hasOwnProperty(d)&&a.test(d)&&delete c[d];else delete this._events;return this},d.removeAllListeners=c('removeEvent'),d.emitEvent=function s(a,b){var c=this.getListenersAsObject(a),d,e,f,g;for(f in c)if(c.hasOwnProperty(f))for(e=c[f].length;e--;)d=c[f][e],d.once===!0&&this.removeListener(a,d.listener),g=d.listener.apply(this,b||[]),g===this._getOnceReturnValue()&&this.removeListener(a,d.listener);return this},d.trigger=c('emitEvent'),d.emit=function t(a){var b=Array.prototype.slice.call(arguments,1);return this.emitEvent(a,b)},d.setOnceReturnValue=function u(a){return this._onceReturnValue=a,this},d._getOnceReturnValue=function v(){return this.hasOwnProperty('_onceReturnValue')?this._onceReturnValue:!0},d._getEvents=function w(){return this._events||(this._events={})},a.noConflict=function x(){return e.EventEmitter=f,a},'function'==typeof define&&define.amd?define('eventEmitter/EventEmitter',[],function(){return a}):'object'==typeof module&&module.exports?module.exports=a:e.EventEmitter=a}.call(this),function(a){function b(b){var c=a.event;return c.target=c.target||c.srcElement||b,c}var c=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){var c=b(a);d.handleEvent.call(d,c)}:function(){var c=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});var e=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{delete a[b+c]}catch(d){a[b+c]=void 0}});var f={bind:d,unbind:e};'function'==typeof define&&define.amd?define('eventie/eventie',f):'object'==typeof exports?module.exports=f:a.eventie=f}(window),function(a,b){'function'==typeof define&&define.amd?define('form2js/form2js',b):a.form2js=b()}(this,function(){"use strict";function a(a,d,e,f,g,h){h=!!h,'undefined'!=typeof e&&null!=e||(e=!0),'undefined'!=typeof d&&null!=d||(d='.'),arguments.length<5&&(g=!1),a='string'==typeof a?document.getElementById(a):a;var i=[],j,k=0;if(a.constructor==Array||"undefined"!=typeof NodeList&&a.constructor==NodeList)for(;j=a[k++];)i=i.concat(c(j,f,g,h));else i=c(a,f,g,h);return b(i,e,d)}function b(a,b,c){var d={},e={},f,g,h,i,j,k,l,m,n,o,p,q,r;for(f=0;f<a.length;f++)if(j=a[f].value,!b||''!==j&&null!==j){for(q=a[f].name,r=q.split(c),k=[],l=d,m='',g=0;g<r.length;g++)if(p=r[g].split(']['),p.length>1)for(h=0;h<p.length;h++)if(0==h?p[h]=p[h]+']':h==p.length-1?p[h]='['+p[h]:p[h]='['+p[h]+']',o=p[h].match(/([a-z_]+)?\[([a-z_][a-z0-9_]+?)\]/i),o)for(i=1;i<o.length;i++)o[i]&&k.push(o[i]);else k.push(p[h]);else k=k.concat(p);for(g=0;g<k.length;g++)p=k[g],p.indexOf('[]')>-1&&g==k.length-1?(n=p.substr(0,p.indexOf('[')),m+=n,l[n]||(l[n]=[]),l[n].push(j)):p.indexOf('[')>-1?(n=p.substr(0,p.indexOf('[')),o=p.replace(/(^([a-z_]+)?\[)|(\]$)/gi,''),m+='_'+n+'_'+o,e[m]||(e[m]={}),''==n||l[n]||(l[n]=[]),g==k.length-1?''==n?(l.push(j),e[m][o]=l[l.length-1]):(l[n].push(j),e[m][o]=l[n][l[n].length-1]):e[m][o]||(/^[0-9a-z_]+\[?/i.test(k[g+1])?l[n].push({}):l[n].push([]),e[m][o]=l[n][l[n].length-1]),l=e[m][o]):(m+=p,g<k.length-1?(l[p]||(l[p]={}),l=l[p]):l[p]=j)}return d}function c(a,b,c,f){var g=e(a,b,c,f);return g.length>0?g:d(a,b,c,f)}function d(a,b,c,d){for(var f=[],g=a.firstChild;g;)f=f.concat(e(g,b,c,d)),g=g.nextSibling;return f}function e(a,b,c,e){if(a.disabled&&!e)return[];var h,i,j,k=f(a,c);return h=b&&b(a),h&&h.name?j=[h]:''!=k&&a.nodeName.match(/INPUT|TEXTAREA/i)?(i=g(a,e),j=null===i?[]:[{name:k,value:i}]):''!=k&&a.nodeName.match(/SELECT/i)?(i=g(a,e),j=[{name:k.replace(/\[\]$/,''),value:i}]):j=d(a,b,c,e),j}function f(a,b){return a.name&&''!=a.name?a.name:b&&a.id&&''!=a.id?a.id:''}function g(a,b){if(a.disabled&&!b)return null;switch(a.nodeName){case'INPUT':case'TEXTAREA':switch(a.type.toLowerCase()){case'radio':if(a.checked&&"false"===a.value)return!1;case'checkbox':if(a.checked&&"true"===a.value)return!0;if(!a.checked&&"true"===a.value)return!1;if(a.checked)return a.value;break;case'button':case'reset':case'submit':case'image':return'';default:return a.value}break;case'SELECT':return h(a)}return null}function h(a){var b=a.multiple,c=[],d,e,f;if(!b)return a.value;for(d=a.getElementsByTagName("option"),e=0,f=d.length;f>e;e++)d[e].selected&&c.push(d[e].value);return c}return a}),function(a){a.fn.toObject=function(b){var c=[],d={mode:'first',delimiter:".",skipEmpty:!0,nodeCallback:null,useIdIfEmptyName:!1};switch(b&&a.extend(d,b),d.mode){case'first':return form2js(this.get(0),d.delimiter,d.skipEmpty,d.nodeCallback,d.useIdIfEmptyName);case'all':return this.each(function(){c.push(form2js(this,d.delimiter,d.skipEmpty,d.nodeCallback,d.useIdIfEmptyName))}),c;case'combine':return form2js(Array.prototype.slice.call(this),d.delimiter,d.skipEmpty,d.nodeCallback,d.useIdIfEmptyName)}}}(jQuery),define("form2js/jquery.toObject",["jquery","form2js/form2js"],function(a){return function(){var b,c;return c=function(){this.form2js=window.require('form2js/form2js')},b=c.apply(a,arguments),b}}(this)),function(a,b){'function'==typeof define&&define.amd?define('form2js/js2form',b):a.js2form=b()}(this,function(){"use strict";function a(a,d,f,g,h){arguments.length<3&&(f='.'),arguments.length<4&&(g=null),arguments.length<5&&(h=!1);var j,k;j=e(d),k=c(a,h,f,{},!0);for(var l=0;l<j.length;l++){var m=j[l].name,n=j[l].value;'undefined'!=typeof k[m]?b(k[m],n):'undefined'!=typeof k[m.replace(i,'[]')]&&b(k[m.replace(i,'[]')],n)}}function b(a,b){var c,d,e;if(a instanceof Array)for(d=0;d<a.length;d++)a[d].value!=b&&b!==!0||(a[d].checked=!0);else if(l.test(a.nodeName))a.value=b;else if(/SELECT/i.test(a.nodeName))for(c=a.getElementsByTagName('option'),d=0,e=c.length;e>d;d++)if(c[d].value==b){if(c[d].selected=!0,a.multiple)break}else a.multiple||(c[d].selected=!1)}function c(a,b,e,f,g){arguments.length<4&&(f={});for(var h={},j=a.firstChild,k,l,m,n,o,p,q;j;){if(k='',j.name&&''!=j.name?k=j.name:b&&j.id&&''!=j.id&&(k=j.id),''==k){var r=c(j,b,e,f,g);for(m in r)if('undefined'==typeof h[m])h[m]=r[m];else for(n=0;n<r[m].length;n++)h[m].push(r[m][n])}else if(/SELECT/i.test(j.nodeName))for(o=0,q=j.getElementsByTagName('option'),p=q.length;p>o;o++)g&&(q[o].selected=!1),l=d(k,e,f),h[l]=j;else/INPUT/i.test(j.nodeName)&&/CHECKBOX|RADIO/i.test(j.type)?(g&&(j.checked=!1),l=d(k,e,f),l=l.replace(i,'[]'),h[l]||(h[l]=[]),h[l].push(j)):(g&&(j.value=''),l=d(k,e,f),h[l]=j);j=j.nextSibling}return h}function d(a,b,c){var d=[],e=a.split(b),f,g,h,i,l,m;for(a=a.replace(k,'[$1].[$2]'),m=0;m<e.length;m++)f=e[m],d.push(f),g=f.match(j),null!=g&&(h=d.join(b),i=h.replace(j,'$3'),h=h.replace(j,'$1'),'undefined'==typeof c[h]&&(c[h]={lastIndex:-1,indexes:{}}),''!=i&&'undefined'!=typeof c[h].indexes[i]||(c[h].lastIndex++,c[h].indexes[i]=c[h].lastIndex),l=c[h].indexes[i],d[d.length-1]=f.replace(j,'$1$2'+l+'$4'));return h=d.join(b),h=h.replace('].[',']['),h}function e(a,b){var c=[],d,e;if(1==arguments.length&&(b=0),null==a)c=[{name:"",value:null}];else if('string'==typeof a||'number'==typeof a||'date'==typeof a||'boolean'==typeof a)c=[{name:"",value:a}];else if(a instanceof Array)for(d=0;d<a.length;d++)e="["+d+"]",c=c.concat(f(a[d],e,b+1));else for(d in a)e=d,c=c.concat(f(a[d],e,b+1));return c}function f(a,b,c){var d,f=[],i=e(a,c+1),j,k;for(j=0;j<i.length;j++)d=b,g.test(i[j].name)?d+=i[j].name:h.test(i[j].name)&&(d+='.'+i[j].name),k={name:d,value:i[j].value},f.push(k);return f}var g=/^\[\d+?\]/,h=/^[a-zA-Z_][a-zA-Z_0-9]*/,i=/\[[0-9]+?\]$/,j=/(.*)(\[)([0-9]*)(\])$/,k=/\[([0-9]+)\]\[([0-9]+)\]/g,l=/INPUT|TEXTAREA/i;return a}),define('main',['application/config'],function(a){var b=a.appProfile||'default';require(['apps/shared/controllers/localexchange','jive/json-security','application/profiles/'+b+'/main','application/nps/main'],function(a){a.emit('applicationReady')})}),define('libRange',['jquery'],function(a){function b(a){for(var b=0;a=a.previousSibling;)++b;return b}function c(a,b){b.parentNode.insertBefore(a,b.nextSibling)}function d(a,b){for(var c=a,d;c;){for(d=b;d&&c!=d;)d=d.parentNode;if(c==d)break;c=c.parentNode}return!c&&a.ownerDocument?a.ownerDocument.documentElement:c}function e(){return window.getSelection?function a(b){return b||(b=window),b.getSelection()}:window.document.getSelection?function b(a){return a||(a=window),a.document.getSelection()}:function c(a){return a||(a=window),new p(a.document,q)}}function f(){return window.document.createRange?function a(b){return b||(b=window.document),b.createRange()}:function b(a){return a||(a=window.document),new q(a)}}function g(a){a||(a=window),this.doc=a.document,this.selection=r(a)}function h(a){return{c:a.startContainer,off:a.startOffset}}function i(){}function j(a,b,c,d){var e=a.ownerDocument.createRange();return a&&b&&e.setStart(a,b),c&&d?e.setEnd(c,d):e.collapse(!0),e}function k(a){if(null==a.anchorNode||null==a.focusNode)return!0;var b=j(a.anchorNode,a.anchorOffset),c=j(a.focusNode,a.focusOffset);return b.compareBoundaryPoints(b.START_TO_START,c)<=0}function l(a){var b=a.nodeName;return'#text'==b&&(b='#'+a.nodeValue),b}function m(a,c){var d='';return a.parentNode&&'HTML'!=a.parentNode.nodeName&&(d=m(a.parentNode,b(a))+'/'),d+l(a)+(null!=c?'['+c+']':'')}function n(a,b){b||(b=new g);var c=b.getSelection(),d=b.getSelectedRange();if(a?/ $/.test(a)||(a+=': '):a='',0==c.rangeCount)console.log(a+'No selection.');else if(d.collapsed)console.log(a+'current selection position: '+m(d.startContainer,d.startOffset)+' (collapsed)');else{var e=k(c)?'->':'<-';console.log(a+'current selection range: '+m(d.startContainer,d.startOffset)+'\n	- '+m(d.endContainer,d.endOffset)+' Direction '+e,d),c.anchorNode&&console.log('Anchor-focus'+(null!=c.baseNode?', base-extent: ':': ')+m(c.anchorNode,c.anchorOffset)+' - '+m(c.focusNode,c.focusOffset)+(null!=c.baseNode?', '+m(c.baseNode,c.baseOffset)+' - '+m(c.extentNode,c.extentOffset):''))}}function o(a,b){a?/ $/.test(a)||(a+=': '):a='',b.collapsed?console.log(a+m(b.startContainer,b.startOffset)+' (collapsed)'):console.log(a+m(b.startContainer,b.startOffset)+' - '+m(b.endContainer,b.endOffset),b)}var p=function(){function a(a,d){function e(){return a.selection.createRange()}function f(){return new d(a)}function g(){var a=e();return!a||a.item?!1:0===a.compareEndPoints('StartToEnd',a)}function h(b,c){var d,e=0,f,g,h,i,j,k,l=-1,m;if(d=b.duplicate(),d.collapse(c),m=d.parentElement(),m.ownerDocument===a){for(;'false'===m.contentEditable;)m=m.parentNode;if(!m.hasChildNodes())return{node:m,inside:1};for(h=m.children,f=h.length-1;f>=e;)if(k=Math.floor((e+f)/2),i=h[k],d.moveToElementText(i),l=d.compareEndPoints(c?'StartToStart':'EndToEnd',b),l>0)f=k-1;else{if(!(0>l))return{node:i};e=k+1}if(0>l){if(i?d.collapse(!1):(d.moveToElementText(m),d.collapse(!0),i=m,g=!0),d.setEndPoint(c?'EndToStart':'EndToEnd',b),d.compareEndPoints(c?'StartToStart':'StartToEnd',b)>0)for(d=b.duplicate(),d.collapse(c),j=-1;m==d.parentElement()&&0!=d.move('character',-1);)j++;j=j||d.text.replace('\r\n',' ').length}else d.collapse(!0),d.setEndPoint(c?'StartToStart':'StartToEnd',b),j=d.text.replace('\r\n',' ').length;return{node:i,position:l,offset:j,inside:g}}}function i(){function c(a){var b=h(d,a),c,e,f=0,g,j,k;if(c=b.node,e=b.offset,b.inside&&!c.hasChildNodes())return i[a?'setStart':'setEnd'](c,0),void 0;if(e===j)return i[a?'setStartBefore':'setEndAfter'](c),void 0;if(b.position<0){if(g=b.inside?c.firstChild:c.nextSibling,!g)return i[a?'setStartAfter':'setEndAfter'](c),void 0;if(!e)return 3==g.nodeType?i[a?'setStart':'setEnd'](g,0):i[a?'setStartBefore':'setEndBefore'](g),void 0;for(;g;){if(k=g.nodeValue,f+=k.length,f>=e){c=g,f-=e,f=k.length-f;break}g=g.nextSibling}}else{if(g=c.previousSibling,!g)return i[a?'setStartBefore':'setEndBefore'](c);if(!e)return 3==c.nodeType?i[a?'setStart':'setEnd'](g,c.nodeValue.length):i[a?'setStartAfter':'setEndAfter'](g),void 0;for(;g;){if(f+=g.nodeValue.length,f>=e){c=g,f-=e;break}g=g.previousSibling}}i[a?'setStart':'setEnd'](c,f)}var d=e(),i=f(),k,l,m,n,o,p;if(k=d.item?d.item(0):d.parentElement(),k.ownerDocument!=a)return i;if(l=g(),d.item)return i.setStart(k.parentNode,b(k)),i.setEnd(i.startContainer,i.startOffset+1),i;try{c(!0),l||c()}catch(q){if(-2147024809!=q.number)throw q;o=j.getBookmark(2),m=d.duplicate(),m.collapse(!0),k=m.parentElement(),l||(m=d.duplicate(),m.collapse(!1),n=m.parentElement(),n.innerHTML=n.innerHTML),k.innerHTML=k.innerHTML,j.moveToBookmark(o),d=e(),c(!0),l||c()}return i}var j=this;this.addRange=function(b){function d(a){a.parentNode.removeChild(a)}function e(b){var e,g,m,n,o;m=a.createElement('a'),e=b?h:j,g=b?i:k,n=f.duplicate(),e!=a&&e!=a.documentElement||(e=l,g=0),3==e.nodeType?(e.parentNode.insertBefore(m,e),n.moveToElementText(m),n.moveStart('character',g),d(m),f.setEndPoint(b?'StartToStart':'EndToEnd',n)):(o=e.childNodes,o.length?(g>=o.length?c(m,o[o.length-1]):e.insertBefore(m,o[g]),n.moveToElementText(m)):(m=a.createTextNode('\ufeff'),e.appendChild(m),n.moveToElementText(m.parentNode),n.collapse(!0)),f.setEndPoint(b?'StartToStart':'EndToEnd',n),d(m))}var f,g,h,i,j,k,l=a.body;if(h=b.startContainer,i=b.startOffset,j=b.endContainer,k=b.endOffset,f=l.createTextRange(),h==j&&1==h.nodeType&&i==k-1&&i==k-1)try{return g=l.createControlRange(),g.addElement(h.childNodes[i]),g.select(),void 0}catch(m){}e(!0),e(),f.select()},this.getRangeAt=i}return a}(),q=function(){function e(f){function g(){for(var a=this.cloneContents(),b=[],c=a.firstChild;c;)3==c.nodeType?b.push(c.nodeValue):1==c.nodeType&&(null!=c.innerText?b.push(c.innerText):b.push(c.textContent)),c=c.nextSibling;return b.join('')}function h(a,b){A(!0,a,b)}function i(a,b){A(!1,a,b)}function j(a){h(a.parentNode,b(a))}function k(a){h(a.parentNode,b(a)+1)}function l(a){i(a.parentNode,b(a))}function m(a){i(a.parentNode,b(a)+1)}function n(a){a?(K[Q]=K[P],K[R]=K[O]):(K[P]=K[Q],K[O]=K[R]),K.collapsed=!0,K.commonAncestorContainer=K[P]}function o(a){j(a),m(a)}function p(a){h(a,0),i(a,1===a.nodeType?a.childNodes.length:a.nodeValue.length)}function q(a,b){var c=K[P],d=K[O],e=K[Q],f=K[R],g=b.startContainer,h=b.startOffset,i=b.endContainer,j=b.endOffset;return 0===a?z(c,d,g,h):1===a?z(e,f,g,h):2===a?z(e,f,i,j):3===a?z(c,d,i,j):void 0}function r(){B(N)}function s(){return B(L)}function t(){return B(M)}function u(a){var b=this[P],d=this[O],e,f;3!==b.nodeType&&4!==b.nodeType||null==b.nodeValue?(b.childNodes.length>0&&(f=b.childNodes[d]),f?b.insertBefore(a,f):b.appendChild(a)):d?d>=b.nodeValue.length?c(a,b):(e=b.splitText(d),b.parentNode.insertBefore(a,e)):b.parentNode.insertBefore(a,b)}function v(a){var b=K.extractContents();K.insertNode(a),a.appendChild(b),K.selectNode(a)}function w(){return S(new e(f),{startContainer:K[P],startOffset:K[O],endContainer:K[Q],endOffset:K[R],collapsed:K.collapsed,commonAncestorContainer:K.commonAncestorContainer})}function x(a,b){var c;if(3==a.nodeType)return a;if(0>b)return a;for(c=a.firstChild;c&&b>0;)--b,c=c.nextSibling;return c?c:a}function y(){return K[P]==K[Q]&&K[O]==K[R]}function z(a,b,c,e){var f,g,h,i,j,k;if(a==c)return b==e?0:e>b?-1:1;for(f=c;f&&f.parentNode!=a;)f=f.parentNode;if(f){for(g=0,h=a.firstChild;h!=f&&b>g;)g++,h=h.nextSibling;return g>=b?-1:1}for(f=a;f&&f.parentNode!=c;)f=f.parentNode;if(f){for(g=0,h=c.firstChild;h!=f&&e>g;)g++,h=h.nextSibling;return e>g?-1:1}for(i=d(a,c),j=a;j&&j.parentNode!=i;)j=j.parentNode;for(j||(j=i),k=c;k&&k.parentNode!=i;)k=k.parentNode;if(k||(k=i),j==k)return 0;for(h=i.firstChild;h;){if(h==j)return-1;if(h==k)return 1;h=h.nextSibling}}function A(a,b,c){var e,f;for(a?(K[P]=b,K[O]=c):(K[Q]=b,K[R]=c),e=K[Q];e.parentNode;)e=e.parentNode;for(f=K[P];f.parentNode;)f=f.parentNode;f==e?z(K[P],K[O],K[Q],K[R])>0&&K.collapse(a):K.collapse(a),K.collapsed=y(),K.commonAncestorContainer=d(K[P],K[Q])}function B(a){var b,c=0,d=0,e,f,g,h,i,j;if(K[P]==K[Q])return C(a);for(b=K[Q],e=b.parentNode;e;b=e,e=e.parentNode){if(e==K[P])return D(b,a);++c}for(b=K[P],e=b.parentNode;e;b=e,e=e.parentNode){if(e==K[Q])return E(b,a);++d}for(f=d-c,g=K[P];f>0;)g=g.parentNode,f--;for(h=K[Q];0>f;)h=h.parentNode,f++;for(i=g.parentNode,j=h.parentNode;i!=j;i=i.parentNode,j=j.parentNode)g=i,h=j;return F(g,h,a)}function C(a){var b,c,d,e,g,h,i;if(a!=N&&(b=f.createDocumentFragment()),K[O]==K[R])return b;if(3==K[P].nodeType){if(c=K[P].nodeValue,d=c.substring(K[O],K[R]),a!=M&&(K[P].deleteData(K[O],K[R]-K[O]),K.collapse(!0)),a==N)return;return b.appendChild(f.createTextNode(d)),b}for(e=x(K[P],K[O]),g=K[R]-K[O];g>0;)h=e.nextSibling,i=J(e,a),b&&b.appendChild(i),--g,e=h;return a!=M&&K.collapse(!0),b}function D(a,c){var d,e,g,h,i,j;if(c!=N&&(d=f.createDocumentFragment()),e=G(a,c),d&&d.appendChild(e),g=b(a),h=g-K[O],0>=h)return c!=M&&(K.setEndBefore(a),K.collapse(!1)),d;for(e=a.previousSibling;h>0;)i=e.previousSibling,j=J(e,c),d&&d.insertBefore(j,d.firstChild),--h,e=i;return c!=M&&(K.setEndBefore(a),K.collapse(!1)),d}function E(a,c){var d,e,g,h,i,j;for(c!=N&&(d=f.createDocumentFragment()),g=H(a,c),d&&d.appendChild(g),e=b(a),++e,h=K[R]-e,g=a.nextSibling;h>0;)i=g.nextSibling,j=J(g,c),d&&d.appendChild(j),--h,g=i;return c!=M&&(K.setStartAfter(a),K.collapse(!0)),d}function F(a,c,d){var e,g,h,i,j,k,l,m;for(d!=N&&(g=f.createDocumentFragment()),e=H(a,d),g&&g.appendChild(e),h=a.parentNode,i=b(a),j=b(c),++i,k=j-i,l=a.nextSibling;k>0;)m=l.nextSibling,e=J(l,d),g&&g.appendChild(e),l=m,--k;return e=G(c,d),g&&g.appendChild(e),d!=M&&(K.setStartAfter(a),K.collapse(!0)),g}function G(a,b){var c=x(K[Q],K[R]-1),d,e,f,g,h,i=c!=K[Q];if(c==a)return I(c,i,!1,b);for(d=c.parentNode,e=I(d,!1,!1,b);d;){for(;c;)f=c.previousSibling,g=I(c,i,!1,b),b!=N&&e.insertBefore(g,e.firstChild),i=!0,c=f;if(d==a)return e;c=d.previousSibling,d=d.parentNode,h=I(d,!1,!1,b),b!=N&&h.appendChild(e),e=h}}function H(a,b){var c=x(K[P],K[O]),d=c!=K[P],e,f,g,h,i;if(c==a)return I(c,d,!0,b);for(e=c.parentNode,f=I(e,!1,!0,b);e;){for(;c;)g=c.nextSibling,h=I(c,d,!0,b),b!=N&&f.appendChild(h),d=!0,c=g;if(e==a)return f;c=e.nextSibling,e=e.parentNode,i=I(e,!1,!0,b),b!=N&&i.appendChild(f),f=i}}function I(a,b,c,d){var e,f,g,h,i;if(b)return J(a,d);if(3==a.nodeType){if(e=a.nodeValue,c?(h=K[O],f=e.substring(h),g=e.substring(0,h)):(h=K[R],f=e.substring(0,h),g=e.substring(h)),d!=M&&(a.nodeValue=g),d==N)return;return i=a.cloneNode(!1),i.nodeValue=f,i}if(d!=N)return a.cloneNode(!1)}function J(a,b){return b!=N?b==M?a.cloneNode(!0):a:(a.parentNode.removeChild(a),void 0)}var K=this,L=0,M=1,N=2,O='startOffset',P='startContainer',Q='endContainer',R='endOffset',S=a.extend;S(K,{startContainer:f,startOffset:0,endContainer:f,endOffset:0,collapsed:!0,commonAncestorContainer:f,START_TO_START:0,START_TO_END:1,END_TO_END:2,END_TO_START:3,setStart:h,setEnd:i,setStartBefore:j,setStartAfter:k,setEndBefore:l,setEndAfter:m,collapse:n,selectNode:o,selectNodeContents:p,compareBoundaryPoints:q,deleteContents:r,extractContents:s,cloneContents:t,insertNode:u,surroundContents:v,cloneRange:w}),K.toString=g}return e}(),r=e(),s=f();return g.prototype.getSelection=function(){return this.selection},g.prototype.getRange=function(){return s(this.doc)},g.prototype.getSelectedRange=function(){var a;return a=0===this.selection.rangeCount?null:this.selection.getRangeAt(0),a||(a=this.getRange(),a.setStart(this.doc,0),this.setSelectedRange(a)),a},g.prototype.setSelectedRange=function(a){this.selection.rangeCount&&this.selection.getRangeAt(0)==a||(this.selection.removeAllRanges&&this.selection.removeAllRanges(),this.selection.addRange(a))},i.prototype.selectWord=function t(a,b){a.collapse(b);for(var c=h(a),d=this.prevCharPos(c),e=c,f,g=/[^\s\u00a0]/;d&&(f=this.charAt(d))&&g.test(f);)e=d,d=this.prevCharPos(d);d=e;var i=c;for(e=i;(f=this.charAt(i))&&g.test(f);)e=i,i=this.nextCharPos(i);return i||(i=e,(1===i.c.nodeType&&i.c.childNodes.length>i.off||3===i.c.nodeType&&i.c.nodeValue.length>i.off)&&++i.off),a.setStart(d.c,d.off),a.setEnd(i.c,i.off),a.collapsed?'':a.toString()},i.prototype.prevCharPos=function(a){if(3==a.c.nodeType)return a.off>0?{c:a.c,off:a.off-1}:this.prevCharPos({c:a.c.parentNode,off:b(a.c)});if(1==a.c.nodeType&&a.off>0){var c=a.c.childNodes[a.off-1];if(3==c.nodeType)return this.prevCharPos({c:c,off:c.nodeValue.length})}return null},i.prototype.nextCharPos=function(a){if(3==a.c.nodeType)return a.off<a.c.nodeValue.length-1?{c:a.c,off:a.off+1}:a.off==a.c.nodeValue.length-1?this.nextCharPos({c:a.c,off:a.off+1}):this.nextCharPos({c:a.c.parentNode,off:b(a.c)+1});if(1==a.c.nodeType&&a.off<a.c.childNodes.length){var c=a.c.childNodes[a.off];if(3==c.nodeType)return c.nodeValue.length>0?{c:c,off:0}:this.nextCharPos({c:c,off:0})}return null},i.prototype.charAt=function(a){return a&&3==a.c.nodeType?a.c.nodeValue.substr(a.off,1):null},{RangeContext:g,RangeUtils:new i,logSelection:n,logRange:o}}),function(a){"function"==typeof define&&define.amd?define('touchevents-fix',["jquery"],a):a(jQuery)}(function(a){function b(b){a.each(d,function(c,d){a.each(d,function(d,e){a(document)[b?"on":"off"](c,e)})})}var c=a.fn.on,d={},e={install:function(){a.fn.on=function(b,e,f,g){function h(b,c){/^touch/.test(b)&&(d[b]||(d[b]=[]),-1===a.inArray(c,d[b])&&d[b].push(c))}var i=g||f||e,j=b;return this.get(0)===document&&("string"==typeof b&&(j={},a.each(b.split(" "),function(a,b){j[b]=i})),a.each(j,h)),c.call(this,b,e,f,g)},a(window).on("focus",function(a){b(!0)}).on("blur",function(a){b(!1)})},uninstall:function(){a.fn.on=c,b(!0)}};return navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&e.install(),e});var __slice=Array.prototype.slice,__bind=function(a,b){return function(){return a.apply(b,arguments)}},__hasProp=Object.prototype.hasOwnProperty,__extends=function(a,b){function c(){this.constructor=a}for(var d in b)__hasProp.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a};!function(a){var b;return b=a.Wistia,null!=a.Wistia&&null!=a.Wistia.wistia||(a.Wistia={wistia:"1.0",extend:function(){var a,b,c,d,e;for(a=arguments[0],c=2<=arguments.length?__slice.call(arguments,1):[],c.length||(c=[a],a=this),d=0,e=c.length;e>d;d++)b=c[d],this.obj.eachDeep(b,__bind(function(b,c){var d;if(d=this.obj.get(a,c),this.obj.isArray(b)){if(this.obj.isEmpty(d))return this.obj.set(a,c,[])}else{if(!this.obj.isObject(b))return this.obj.set(a,c,b);if(this.obj.isEmpty(d))return this.obj.set(a,c,{})}},this));return a},mixin:function(a,b){var c,d;for(c in b)d=b[c],b.hasOwnProperty(c)&&(a[c]=d)},obj:{get:function(a,b,c){var d;for(b='string'==typeof b?b.split('.'):b.slice(0,b.length);null!=a&&b.length;)d=b.shift(),void 0!==a[d]&&this.isObject(a[d])||!c||(a[d]={}),a=a[d];return a},set:function(a,b,c){var d;return b='string'==typeof b?b.split('.'):b.slice(0,b.length),d=b.pop(),a=this.get(a,b,!0),null!=a&&(this.isObject(a)||this.isArray(a))&&null!=d?null!=c?a[d]=c:delete a[d]:void 0},unset:function(a,b){return this.set(a,b)},exists:function(a,b){return void 0!==this.get(a,b)},cast:function(a){return null==a?a:(a=""+a,/^\d+?$/.test(a)?parseInt(a,10):/^\d*\.\d+/.test(a)?parseFloat(a):/^true$/i.test(a)?!0:/^false$/i.test(a)?!1:a)},castDeep:function(a){return this.eachLeaf(a,__bind(function(b,c){return"string"==typeof b?this.set(a,c,this.cast(b)):void 0},this)),a},isArray:function(a){return null!=a&&/^\s*function Array()/.test(a.constructor)},isObject:function(a){return null!=a&&/^\s*function Object()/.test(a.constructor)},isRegExp:function(a){return null!=a&&/^\s*function RegExp()/.test(a.constructor)},isBasicType:function(a){return null!=a&&(this.isRegExp(a)||/^string|number|boolean|function$/i.test(typeof a))},isEmpty:function(a){var b,c,d;if(null==a)return!0;if(this.isArray(a)&&!a.length)return!0;if(this.isObject(a)){b=!0;for(c in a)d=a[c],b=!1;return b}return!1},isEmptyDeep:function(a){var b;return this.isEmpty(a)?!0:(b=!0,this.eachLeaf(a,__bind(function(){return b=!1},this)),b)},isSubsetDeep:function(a,b){var c;return a===b?!0:null!=a&&null==b||null==a&&null!=b?!1:(c=!0,
this.eachLeaf(a,__bind(function(a,d){var e;return e=this.get(b,d),a!==e?c=!1:void 0},this)),c)},equalsDeep:function(a,b){return this.isSubsetDeep(a,b)&&this.isSubsetDeep(b,a)},eachDeep:function(a,b,c){var d,e,f;if(null==c&&(c=[]),this.isBasicType(a))b(a,c);else if(this.isObject(a)||this.isArray(a)){b(a,c);for(d in a)f=a[d],e=c.slice(0,c.length),e.push(d),this.eachDeep(f,b,e)}else b(a,c)},eachLeaf:function(a,b){return this.eachDeep(a,__bind(function(a,c){return this.isArray(a)||this.isObject(a)?void 0:b(a,c)},this))}},data:function(a,b){return this.obj.isArray(a)||(a=a.split(".")),null!=b&&this.obj.set(this,["_data"].concat(a),b),this.obj.get(this,["_data"].concat(a))},timeout:function(a,b,c){var d;return null==c&&(c=1),this.clearTimeouts(a),this.obj.isArray(a)||(a=a.split(".")),a=["timeouts"].concat(a),b?(d=setTimeout(__bind(function(){return this.removeData(a),b()},this),c),this.data(a,d)):this.data(a)},clearTimeouts:function(a){var b;return this.obj.isArray(a)||(a=a.split(".")),a=["timeouts"].concat(a),b=this.data(a),this.obj.eachLeaf(b,function(a){return clearTimeout(a)}),this.removeData(a)},removeData:function(a){return this.obj.unset(this,["_data"].concat(a))},seqId:function(a,b){var c,d,e;return null==a&&(a="wistia_"),null==b&&(b=""),e=["sequence","val"],c=this.data(e)||1,d=a+c+b,this.data(e,c+1),d},noConflict:function(){return a.Wistia=b,this},util:{elemHeight:function(b){var c;return c=Wistia.detect.browser.quirks?parseInt(b.offsetHeight,10):a.getComputedStyle?parseInt(getComputedStyle(b,null).height,10):b.currentStyle?b.offsetHeight:-1,c},elemWidth:function(b){return Wistia.detect.browser.quirks?parseInt(b.offsetWidth,10):a.getComputedStyle?parseInt(getComputedStyle(b,null).width,10):b.currentStyle?b.offsetWidth:-1},winHeight:function(){var b;return b=a.innerHeight?a.innerHeight:document.documentElement?document.documentElement.offsetHeight:document.body.offsetHeight},winWidth:function(){var b;return b=a.innerWidth?a.innerWidth:document.documentElement?document.documentElement.offsetWidth:document.body.offsetWidth}},bindable:{bind:function(a,b){return this._bindings||(this._bindings={}),this._bindings[a]||(this._bindings[a]=[]),this._bindings[a].push(b),this},unbind:function(a,b){var c,d,e,f;if(c=this._bindings[a],c)if(b){for(e=[],d=0,f=c.length;f>=0?f>d:d>f;f>=0?d++:d--)b!==c[d]&&e.push(c[d]);this._bindings[a]=e}else this._bindings[a]=[];return this._bindings[a]&&!this._bindings[a].length&&(this._bindings[a]=null,delete this._bindings[a]),this},hasBindings:function(){var a,b,c,d;b=!1,d=this._bindings;for(a in d)c=d[a],this._bindings.hasOwnProperty(a)&&(b=!0);return b},trigger:function(){var a,b,c,d,e,f;if(d=arguments[0],a=2<=arguments.length?__slice.call(arguments,1):[],b=this._bindings[d])for(e=0,f=b.length;f>e;e++)c=b[e],c&&c.apply(this,a);return this}}}),null!=b&&null==b.wistia?Wistia.extend(b):void 0}(window),function(a){a.extend({_detect:{na:navigator.userAgent,rwebkit:/(webkit)[ \/]([\w.]+)/i,ropera:/(opera)(?:.*version)?[ \/]([\w.]+)/i,rmsie:/(msie) ([\w.]+)/i,rmozilla:/(mozilla)(?:.*? rv:([\w.]+))?/i,randroid:/(android) ([^;])/i,riphone:/(iphone)/i,ripad:/(ipad)/i,browser:function(){return this.browserMatch()[1].toLowerCase()},browserVersion:function(){return this.browserMatch()[2]},browserMatch:function(){return this.na.match(this.rwebkit)||this.na.match(this.ropera)||this.na.match(this.rmsie)||this.na.match(this.rmozilla)},android:function(){var a;return a=this.na.match(this.randroid),null==a?!1:{version:a[2]}},iphone:function(){return this.riphone.test(this.na)},ipad:function(){return this.ripad.test(this.na)},flash:function(){var a;return a=this.flashFullVersion(),{version:parseFloat(a[0]+"."+a[1]),major:parseInt(a[0],10),minor:parseInt(a[1],10),rev:parseInt(a[2],10)}},flashFullVersion:function(){var a;try{try{a=new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6');try{a.AllowScriptAccess='always'}catch(b){return[6,0,0]}}catch(b){}return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g,',').match(/^,?(.+),?$/)[1].split(",")}catch(b){try{if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)return(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1].split(",")}catch(b){}}return[0,0,0]},html5Video:function(){var a,b,c;a=document.createElement('video'),c=!1;try{a.canPlayType&&(c={},b='video/mp4; codecs="avc1.42E01E',c.h264=!!a.canPlayType(b+'"')||!!a.canPlayType(b+', mp4a.40.2"'))}catch(d){c={h264:!1}}return c}}}),a.extend({detect:{browser:{version:a._detect.browserVersion(),quirks:"msie"===a._detect.browser()&&'BackCompat'===document.compatMode,old:"msie"===a._detect.browser()&&('BackCompat'===document.compatMode||a._detect.browserVersion()<7)},android:a._detect.android(),iphone:a._detect.iphone(),ipad:a._detect.ipad(),flash:a._detect.flash(),video:a._detect.html5Video()}}),a.detect.browser[a._detect.browser()]=!0}(Wistia),function(a){var b,c,d,e;c=function(a){return a.mp4hq||a.flv||a.iphone},d=function(a){return a.mp4hq||a.iphone},b=function(a){return a.iphone},e=function(a){return a.mp4hq&&a.mp4hq.width<=1280&&a.mp4hq.height<=720?a.mp4hq:a.iphone},a.extend({judy:{judge:function(f,g){var h,i,j,k;return g||(g={}),j=g.plea,i=g.force,k={media:f,plea:i||j,uuid:g.uuid||a.seqId("wistia_"),asset:null,embedType:null},h=f.assets,"html5"===i?(k.embedType="html5",k.asset=d(h)):"flash"===i?(k.embedType="flash",k.asset=c(h)):"external"===i?(k.embedType="external",k.asset=b(h)):a.detect.iphone?(k.embedType="html5",k.asset=b(h)):a.detect.ipad?(k.embedType="html5",k.asset=e(h)):a.detect.android?(k.embedType="external",k.asset=b(h)):"html5"===j&&a.detect.video.h264?(k.embedType="html5",k.asset=d(h)):"flash"===j&&a.detect.flash.version>=7?(k.embedType="flash",k.asset=c(h)):"external"===j?(k.embedType="external",k.asset=b(h)):a.detect.flash.version>=7?(k.embedType="flash",k.asset=c(h)):a.detect.video.h264?(k.embedType="html5",k.asset=d(h)):a.detect.browser.msie&&(a.detect.browser.version<9||a.detect.browser.quirks)||a.detect.browser.mozilla?(k.embedType="flash",k.asset=c(h)):(k.embedType="external",k.asset=c(h)),k}}})}(Wistia),function(a){a.extend({embed:function(b,c){var d,e,f;return c||(c={}),f=new a._embed.Video({},c),a.data(["video",f.uuid],f),d=a._embed.getContainer(b,c),a.detect.browser.old&&(d.style.width=""+a.util.elemWidth(d)+"px",d.style.height=""+a.util.elemHeight(d)+"px"),a.gridify&&!f.params.noGrid?f.grid=a.gridify(f,d):"transparent"!==c.wmode&&(d.style.backgroundColor="#000000"),e=function(b){var c,d,e,g,h;if(b.error)return"undefined"!=typeof console&&null!==console&&console.log(b.error),void 0;d=a.judy.judge(b,f.params),h=a._embed.classFor(d.embedType),g=new h(d,f.options);for(c in g)e=g[c],"uuid"!==c&&(f[c]=e);f.embed()},setTimeout(function(){var c;return"string"==typeof b?(c=b,a.remote.media(c,function(a){return e(a)})):e(b)},100),f},_embed:{getContainer:function(a,b){return"string"==typeof b.container?document.getElementById(b.container):"string"==typeof a?document.getElementById("wistia_"+a):a&&a.media?document.getElementById("wistia_"+a.media.hashedId):a&&a.hashedId?document.getElementById("wistia_"+a.hashedId):null},classFor:function(b){switch(b){case"html5":return a._embed.Html5Video;case"flash":return a._embed.FlashVideo;case"external":return a._embed.ExternalVideo;default:return a._embed.Video}}}})}(Wistia),function(a){var b,c,d,e,f,g;return a.extend({util:{addInlineCss:function(b,c){var d,e;d=document.createElement("style"),d.id=a.seqId("wistia_","_style"),d.setAttribute("type","text/css"),e=document.getElementsByTagName("style"),b.appendChild(d,b.nextSibling),d.styleSheet?d.styleSheet.cssText=c:d.appendChild(document.createTextNode(c))},objToHtml:function(b){var c,d,e,f,g,h,i,j,k,l,m,n;if(/string|number|boolean/.test(typeof b))return b.toString();if(b instanceof Array){for(h="",k=0,m=b.length;m>k;k++)f=b[k],h+=a.util.objToHtml(f);return h}if("object"!=typeof b)return b.toString();d=[];for(g in b)j=b[g],"tagName"===g?i=j:"childNodes"===g?e=j:d.push({key:g,val:j});for(i||(i="div"),h="<"+i,l=0,n=d.length;n>l;l++)c=d[l],h+=" "+c.key+"=\""+c.val+"\"";return/^(br|hr|img|link|meta|input)$/i.test(i)?h+=" />":(h+=">",e&&("string"==typeof e?h+=e:"object"==typeof e&&(h+=a.util.objToHtml(e))),h+="</"+i+">"),h}}}),e=function(a){var b,c,d;c=[];for(b in a)d=a[b],c.push(""+b+"="+encodeURIComponent(d));return c.join("&")},f=function(a,b){return"display:inline-block;*display:inline;height:"+b+";margin:0;padding:0;position:relative;vertical-align:top;width:"+a+";zoom:1;"},c=function(b,c){var d,g,h,i,j,k,l,m;d=b.asset,j=b.media,c=a.extend({flashPlayerUrl:null,pageUrl:null,chromeless:!1,doNotTrack:!1,endVideoCallback:"",controlsVisibleOnLoad:!1,autoLoad:!1,autoPlay:!1,endVideoBehavior:"default",playButton:!0,wmode:"opaque",playerColor:"",smallPlayButton:!0,volumeControl:!1,playbar:!0,fullscreenButton:!0,stillUrl:j.assets.still?j.assets.still.url:""},c),c.unbufferedSeek="flv"===d.type,c.shouldTrack=!c.doNotTrack,h={videoUrl:d.url,hdUrl:j.assets.hdflv?j.assets.hdflv.url:"",stillUrl:c.stillUrl,unbufferedSeek:"flv"===d.type,controlsVisibleOnLoad:c.controlsVisibleOnLoad,autoLoad:c.autoLoad,autoPlay:c.autoPlay&&!c.suppressAutoplay,endVideoBehavior:c.endVideoBehavior,playButtonVisible:c.playButton,mediaDuration:j.duration,customColor:c.playerColor,wemail:c.trackEmail,referrer:c.pageUrl,quality:c.videoQuality,chromeless:c.chromeless?!0:null,endVideoCallback:c.endVideoCallback?c.endVideoCallback:null,showVolume:c.volumeControl?!0:null,showPlaybar:c.playbar===!1?!1:null,showPlayButton:c.smallPlayButton===!1?!1:null,fullscreenDisabled:c.fullscreenButton===!1?!0:null,trackingTransmitInterval:c.trackingTransmitInterval?c.trackingTransmitInterval:null},c.shouldTrack&&(h.embedServiceURL=j.distilleryUrl,h.accountKey=j.accountKey,h.mediaID=j.mediaKey);for(i in h)m=h[i],null==m&&delete h[i];return k={tagName:"object",id:b.uuid,classid:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",style:f("100%","100%")},"transparent"!==c.wmode&&(k.bgcolor="#000000"),l=[{tagName:"param",name:"movie",value:c.flashPlayerUrl||j.flashPlayerUrl},{tagName:"param",name:"allowfullscreen",value:"true"},{tagName:"param",name:"allowscriptaccess",value:"always"},{tagName:"param",name:"wmode",value:c.wmode},{tagName:"param",name:"flashvars",value:e(h)}],g={tagName:"embed",src:c.flashPlayerUrl||j.flashPlayerUrl,name:b.uuid,type:"application/x-shockwave-flash",allowfullscreen:"true",allowscriptaccess:"always",wmode:c.wmode,flashvars:e(h),style:f("100%","100%")},"transparent"!==c.wmode&&(g.bgcolor="#000000"),k.childNodes=l.concat(g),a.detect.browser.msie&&(a.detect.browser.version<9||a.detect.browser.quirks)&&a.detect.flash.version<7&&(k.childNodes=[{style:"background:#666;color:#fff;height:100%;width:100%;","class":"noflash",childNodes:["Whoops! It looks like Flash isn't installed. Please \n<a href=\"http://get.adobe.com/flashplayer/\" style=\"color:white;text-decoration:underline;\" target=\"_blank\">\ndownload and install Adobe's Flash Player plugin\n</a>\nto watch this video."]}]),a.util.objToHtml(k)},d=function(b,c){var d,e,f,g;return d=b.asset,e=b.media,c=a.extend({autoLoad:!0,autoPlay:!1,doNotTrack:!1,stillUrl:e.assets.still?e.assets.still.url:""},c),c.shouldTrack=!c.doNotTrack,g=document.createElement("video"),g.style.width="100%",g.style.height="100%",g.style.position="relative",g.style.display="block",g.controls="controls",g.id=b.uuid,g.poster=c.stillUrl,g.preload="none",c.autoPlay&&!c.suppressAutoplay&&(g.autoplay="autoplay"),f=document.createElement("source"),f.src=d.url.replace(/\.bin$/,"")+"/file.mp4",f.type="video/mp4",g.appendChild(f),g},b=function(b,c){var d,e,h,i;return e=b.asset,i=b.media,c=a.extend({playButton:!0,stillUrl:i.assets.still?i.assets.still.url.replace(/\.bin$/,".jpg?image_play_button=1"):""},c),d={tagName:"a",href:e.url,id:b.uuid,target:"_parent",style:f("100%","100%")},h={tagName:"img",src:g(b,c),border:0,alt:"Play video",style:"height:100%;vertical-align:top;width:100%;"},d.childNodes=[h],a.util.objToHtml(d)},g=function(a,b){var c;return c=a.media,b.videoWidth&&b.videoHeight?b.playButton?c.assets.still.url.replace(/\.bin$/,".jpg?image_play_button=1&image_crop_resized="+b.videoWidth+"x"+b.videoHeight):c.assets.still.url.replace(/\.bin$/,".jpg?image_crop_resized="+b.videoWidth+"x"+b.videoHeight):b.playButton?c.assets.still.url.replace(/\.bin$/,".jpg?image_play_button=1"):c.assets.still.url.replace(/\.bin$/,".jpg")},a.extend({generate:{video:function(a,e,f){return"flash"===a?c(e,f):"html5"===a?d(e,f):"external"===a?b(e,f):"stillUrl"===a?g(e,f):void 0}}})}(Wistia),function(a){a._embed.Video=function(){function b(b,c){var d;this.data=b,this.options=c,this.params=a.extend(this.params||{},this.options),this.params.container=a._embed.getContainer(this.data,this.options),this.options.platformPreference&&(this.params.plea=this.options.platformPreference),this.params.shouldTrack=!this.options.doNotTrack,null!=this.options.playButtonVisible&&(this.params.playButton=this.options.playButtonVisible),this.params.rawEmbed=top===self,this.params.videoWidth&&(this.params.videoWidth=parseInt(this.params.videoWidth,10)),this.params.videoHeight&&(this.params.videoHeight=parseInt(this.params.videoHeight,10)),this.params.aspectRatio=this.params.videoWidth/this.params.videoHeight,this.params.playerColor||(this.params.playerColor="636155"),this.params.trackEmail||null!=(d=location.href.match(/wemail\=([^\&]+)/))&&(this.params.trackEmail=d[1]),this.params.stillUrl||(this.params.stillUrl=a.obj.exists(this.data,"media.assets.still.url")?this.data.media.assets.still.url:""),this.params.uuid||(this.params.uuid=a.seqId()),this.uuid=this.params.uuid}return b.prototype.embed=function(){return this.embedAs(this.embedType),this.ready(__bind(function(){return this.monitorSize()},this))},b.prototype.monitorSize=function(){var b,c,d,e,f;d=__bind(function(){return this.params.rawEmbed&&a.detect.browser.old?this.width():this.params.rawEmbed?a.util.elemWidth(this.container):a.util.winWidth()},this),c=__bind(function(){return this.params.rawEmbed&&a.detect.browser.old?this.height():this.params.rawEmbed?a.util.elemHeight(this.container):a.util.winHeight()},this),f=d(),e=c(),b=__bind(function(){var g,h;h=d(),g=c(),f!==h&&(this.width(h),f=h),e!==g&&(this.height(g),e=g),a.timeout(""+this.uuid+".auto_resize",b,1e3)},this),b()},b.prototype.embedAs=function(b){return this.container=this.params.container,this.embedCode=a.generate.video(b,this.data,this.params),this.placeEmbed(this.embedCode),this},b.prototype.placeEmbed=function(a){var b;return b=this.grid&&this.grid.center||this.container,"string"==typeof a?b.innerHTML=a:(b.innerHTML="",b.appendChild(a)),this.ieSizeHack()},b.prototype.rebuildAs=function(b){var c,d,e,f,g,h;e=this.uuid,d=a.judy.judge(this.data.media,{force:b}),h=a._embed.classFor(d.embedType),g=new h(d,this.options);for(c in g)f=g[c],this[c]=f;return this.uuid=e,a.clearTimeouts(this.uuid),this._isReady=!1,this.embed(this.params.container),this},b.prototype.remove=function(){a.clearTimeouts(this.uuid),a._data.video[this.uuid]=null,delete a._data.video[this.uuid],this.container.innerHTML=""},b.prototype.bind=function(a,b){return this._bindings||(this._bindings={}),this._bindings[a]||(this._bindings[a]=[]),this._bindings[a].push(b),this},b.prototype.unbind=function(a,b){var c,d,e,f;if(c=this._bindings[a],c)if(b){for(e=[],d=0,f=c.length;f>=0?f>d:d>f;f>=0?d++:d--)b!==c[d]&&e.push(c[d]);this._bindings[a]=e}else this._bindings[a]=[];return this._bindings[a]&&!this._bindings[a].length&&(this._bindings[a]=null,delete this._bindings[a]),this},b.prototype.hasBindings=function(){var a,b,c,d;b=!1,d=this._bindings;for(a in d)c=d[a],this._bindings.hasOwnProperty(a)&&(b=!0);return b},b.prototype.trigger=function(){var a,b,c,d,e,f;if(d=arguments[0],a=2<=arguments.length?__slice.call(arguments,1):[],b=this._bindings[d])for(e=0,f=b.length;f>e;e++)c=b[e],c&&c.apply(this,a);return this},b.prototype._eventLoopDuration=300,b.prototype.play=function(){return this.ready("play")},b.prototype.pause=function(){return this.ready("pause")},b.prototype.time=function(a){return null!=a?(this.ready("time",a),this):void 0},b.prototype.state=function(){return"unknown"},b.prototype.duration=function(){return 0},b.prototype.getEventKey=function(){return null},b.prototype.volume=function(a){return null!=a?this.ready("volume",a):0},b.prototype.setPlayerColor=function(a){return this.ready("setPlayerColor",a),this},b.prototype.ready=function(){var a,b,c,d,e,f;if(b=arguments[0],a=2<=arguments.length?__slice.call(arguments,1):[],this._readyQueue||(this._readyQueue=[]),this._isReady){for(b&&this._readyQueue.push({callback:b,args:a}),f=this._readyQueue,d=0,e=f.length;e>d;d++)c=f[d],"string"==typeof c.callback?this[c.callback].apply(this,c.args):c.callback.apply(this,c.args);this._readyQueue=[]}else b&&this._readyQueue.push({callback:b,args:a});return this},b.prototype.width=function(b){var c;return null!=b?(b=parseInt(b,10),this.grid?(this.container.style.width=this.grid.wrapper.style.width=""+b+"px",this.grid.center.style.width="100%",this.elem().style.width="100%",a.grid.fitHorizontal(this),a.grid.fitVertical(this)):(this.container.style.width=""+b+"px",this.elem().style.width="100%"),this):(a.detect.browser.old&&(this.elem().style.position="absolute"),c=this.grid?a.util.elemWidth(this.grid.left)+a.util.elemWidth(this.grid.center)+a.util.elemWidth(this.grid.right):a.util.elemWidth(this.container),a.detect.browser.old&&(this.elem().style.position="static"),c)},b.prototype.height=function(b){var c;return null!=b?(b=parseInt(b,10),this.grid?(this.container.style.height=this.grid.wrapper.style.height=""+b+"px",this.grid.center.style.height="100%",this.elem().style.height="100%",a.grid.fitHorizontal(this),a.grid.fitVertical(this)):(this.container.style.height=""+b+"px",this.elem().style.height="100%"),this):(a.detect.browser.old&&(this.elem().style.position="absolute"),c=this.grid?a.util.elemHeight(this.grid.center)+Math.max(a.util.elemHeight(this.grid.above),a.util.elemHeight(this.grid.top))+Math.max(a.util.elemHeight(this.grid.below),a.util.elemHeight(this.grid.bottom)):a.util.elemHeight(this.container),a.detect.browser.old&&(this.elem().style.position="static"),c)},b.prototype.videoWidth=function(b){var c,d;return null!=b?(b=parseInt(b,10),this.grid?(this.grid.center.style.width="100%",this.grid.main.style.width=""+b+"px",this.grid.main.style.width=""+b+"px",c=a.util.elemWidth(this.grid.left)+a.util.elemWidth(this.grid.right),this.container.style.width=this.grid.wrapper.style.width=""+(b+c)+"px",a.grid.fitHorizontal(this),a.grid.fitVertical(this)):(this.container.style.width=""+b+"px",this.elem().style.width="100%"),this):(a.detect.browser.old&&(this.elem().style.position="absolute"),d=this.grid?a.util.elemWidth(this.grid.center):a.util.elemWidth(this.container),a.detect.browser.old&&(this.elem().style.position="static"),d)},b.prototype.videoHeight=function(b){var c,d,e,f;return null!=b?(b=parseInt(b,10),this.grid?(this.grid.main.style.height=""+b+"px",this.grid.center.style.height="100%",this.grid.main.style.height=""+b+"px",f=Math.max(a.util.elemHeight(this.grid.above),a.util.elemHeight(this.grid.top)),c=Math.max(a.util.elemHeight(this.grid.below),a.util.elemHeight(this.grid.bottom)),d=f+c,this.container.style.height=this.grid.wrapper.style.height=""+(b+d)+"px",a.grid.fitHorizontal(this),a.grid.fitVertical(this)):(this.container.style.height=""+b+"px",this.elem().style.height="100%"),this):(a.detect.browser.old&&(this.elem().style.position="absolute"),e=this.grid?a.util.elemHeight(this.grid.center):a.util.elemHeight(this.container),a.detect.browser.old&&(this.elem().style.position="static"),e)},b.prototype.ieSizeHack=function(){a.detect.browser.msie&&this.elem&&this.elem()&&(this.elem().offsetLeft%2===0?this.elem().style.width=""+(this.videoWidth()+1)+"px":this.elem().style.width="100%")},b.prototype.setEmail=function(a){return this.params.trackEmail=a},b.prototype.getVisitorKey=function(){return this.tracker?this.tracker.visitorKey():""},b.prototype.getEventKey=function(){return this.tracker?this.tracker.eventKey():""},b}()}(Wistia),function(a){a._embed.FlashVideo=function(){function b(){b.__super__.constructor.apply(this,arguments)}return __extends(b,a._embed.Video),b.prototype.embedType="flash",b.prototype.elem=function(){return document[this.data.uuid]},b.prototype.embed=function(){var c;return b.__super__.embed.apply(this,arguments),this._lastTimePosition=0,a.timeout(""+this.uuid+".quick_repair",__bind(function(){this.isBroken()&&(a.clearTimeouts(this.uuid),this.repair())},this),50),c=__bind(function(b){b>=50||(this.elem()&&this.elem().getCurrentTime?this.isBroken()||a.timeout(""+this.uuid+".ready_delay",__bind(function(){return this._isReady=!0,this.ready(),this.listenForEvents(),this.tracker?void 0:this.tracker=a.tracker(this)},this),200):a.timeout(""+this.uuid+".ready_check",__bind(function(){return c.call(this,b+1)},this),200))},this),c(),this},b.prototype.remove=function(){return a.clearTimeouts(this.uuid),b.__super__.remove.call(this)},b.prototype.listenForEvents=function(){this._fireIfChanged=__bind(function(){var b,c;this.hasBindings()&&(a.timeout(""+this.uuid+".fire_if_changed",__bind(function(){return this._fireIfChanged.call(this)},this),this._eventLoopDuration),b=this.state(),c=this.time(),b!==this._lastState&&("playing"===b?this.trigger("play"):"paused"===b?this.trigger("pause"):"ended"===b&&this.trigger("end")),c!==this._lastTimePosition&&(this.trigger("timechange",c),this._lastTimePosition=c),this._lastState=b)},this),this._fireIfChanged.call(this)},b.prototype.bind=function(){var c;if(c=1<=arguments.length?__slice.call(arguments,0):[],b.__super__.bind.apply(this,c),null==a.timeout(""+this.uuid+".fire_if_changed")){if(!this._isReady)return this.ready("listenForEvents");this.listenForEvents()}return this},b.prototype.play=function(){return this._isReady?(this.elem().videoPlay(),this):this.ready("play")},b.prototype.pause=function(){return this._isReady?(this.elem().videoPause(),this):this.ready("pause")},b.prototype.time=function(a){var b,c,d;if(null!=a&&!this._isReady)return this.ready("time",a);if(null!=a)return d=this.state(),"unknown"===d?(this.elem().videoPlay(),c=this,b=function(){return c.unbind("timechange",b),c.elem().videoSeek(a)},this.bind("timechange",b)):(this.elem().videoSeek(a),"paused"!==d&&"ended"!==d||this.pause()),this;try{return this.elem().getCurrentTime()}catch(e){return-1}},b.prototype.state=function(){try{switch(this.elem().getCurrentState()){case 0:return"ended";case 1:return"playing";case 2:return"paused";default:return"unknown"}}catch(a){return"unknown"}},b.prototype.volume=function(a){var b;return a&&!this._isReady?this.ready("volume",a):null!=a?(this.elem().setVolume(Math.min(Math.round(100*a),100)),this):(b=this.elem().getVolume(),b>0&&(b/=100),b)},b.prototype.duration=function(){return this.data.media.duration},b.prototype.outsideContainer=function(){var a;for(a=this.elem();1===a.nodeType;)if(a=a.parentNode,a===this.container)return!1;return!0},b.prototype.ctfBlocked=function(){return document.getElementById("CTFstack")&&this.outsideContainer()},b.prototype.chromeFlashBlocked=function(){var b,c;return a.detect.browser.webkit&&this.elem()?(b=this.elem().parentNode.previousSibling,b&&(c=b.childNodes[0]),c&&c.getAttribute("style")&&-1!==c.getAttribute("style").indexOf("gofhjkjmkpinhpoiabjplobcaignabnl")):void 0},b.prototype.ffFlashBlocked=function(){var a;return a=this.container.childNodes[0],a&&a.getAttribute("bgactive")&&-1!==a.getAttribute("bgactive").indexOf("flashblock")},b.prototype.isBlocked=function(){return a.detect.flash.version>=7&&(this.ctfBlocked()||this.chromeFlashBlocked())},b.prototype.isBroken=function(){return a.detect.flash.version<7||this.isBlocked()},b.prototype.repair=function(){this.isBlocked()&&a.detect.video.h264&&(a.clearTimeouts(this.uuid),this.rebuildAs("html5"))},b.prototype.getEventKey=function(){try{return this.elem().getEventKey()}catch(a){return""}},b.prototype.setPlayerColor=function(a){this.params.playerColor=a,this._isReady?this.elem().changeColor(a):this.ready("setPlayerColor",a)},b.prototype.setEmail=function(a){return b.__super__.setEmail.call(this,a),this.elem().setEmail(a)},b}()}(Wistia),function(a){var b;b=function(a,b,c){var d;d=__bind(function(){return a.removeEventListener(b,d),c()},this),a.addEventListener(b,d)},a._embed.Html5Video=function(){function c(){c.__super__.constructor.apply(this,arguments)}return __extends(c,a._embed.Video),c.prototype.embedType="html5",c.prototype.elem=function(){return document.getElementById(this.data.uuid)},c.prototype.embed=function(){return c.__super__.embed.apply(this,arguments),this.hasPreRoll?this.embedExternal():this.embedHtml5(),this.hasPostRoll&&(this.preloadStill(),this.bind("end",__bind(function(){return this.embedExternal()},this))),this},c.prototype.preloadStill=function(){var b;return b=new Image,this.options.playButton?b.src=a.generate.video("stillUrl",this.data,this.params):b.src=a.generate.video("stillUrl",this.data,this.params)},c.prototype.embedExternal=function(){var b;return this.tracker&&this.tracker.stopMonitoring(),b=this.params.playButton,this.params.playButton=this.options.playButton,this.embedAs("external"),this.params.playButton=b,a.timeout(""+this.uuid+".vid_ready",__bind(function(){return this._isReady=!0,this.ready()},this)),this.elem().addEventListener("click",__bind(function(a){return a.preventDefault(),this.embedHtml5(),this.play()},this))},c.prototype.embedHtml5=function(){return this._isReady=!1,this.embedAs("external"),this.embedAs("html5"),this.tracker||(this.tracker=a.tracker(this)),this.params.shouldTrack&&this.ready(__bind(function(){return this.tracker.monitor()},this)),this.elem().addEventListener("playing",__bind(function(){return this.trigger("play")},this)),this.elem().addEventListener("pause",__bind(function(){return this.trigger("pause")},this)),this.elem().addEventListener("ended",__bind(function(){return this.trigger("end")},this)),a.timeout(""+this.uuid+".vid_ready",__bind(function(){return this._isReady=!0,this.ready()},this)),this.listenForEvents()},c.prototype.remove=function(){return a.clearTimeouts(this.uuid),c.__super__.remove.call(this)},c.prototype.listenForEvents=function(){this._bindings||(this._bindings={}),this._fireIfChanged=__bind(function(){var b;this.hasBindings()&&(a.timeout(""+this.uuid+".fire_if_changed",__bind(function(){return this._fireIfChanged.call(this)},this),this._eventLoopDuration),(b=this.time())!==this._lastTimePosition&&(this.trigger("timechange",b),this._lastTimePosition=b))},this),this._fireIfChanged()},c.prototype.bind=function(){var b;return b=1<=arguments.length?__slice.call(arguments,0):[],c.__super__.bind.apply(this,b),a.timeout(""+this.uuid+".fire_if_changed")||this.listenForEvents(),this},c.prototype.play=function(a){if(/video/i.test(this.elem().tagName)){if(!this._isReady)return this.ready("play");this.elem().play()}else this.embedHtml5(),this.play();return this},c.prototype.pause=function(){return this._isReady?(this.elem().pause(),this):this.ready("pause")},c.prototype.time=function(a){return a&&!this._isReady?this.ready("time",a):null!=a?("unknown"===this.state()?(b("playing",__bind(function(){b(this.elem(),"seeked",__bind(function(){return this.pause()},this)),this.elem().currentTime=a},this)),this.play()):this.elem().currentTime=a,this):this.elem().currentTime},c.prototype.state=function(){try{return this.elem().ended?"ended":0===this.elem().played.length?"paused":this.elem().paused?"paused":"playing"}catch(a){return"unknown"}},c.prototype.volume=function(a){return a&&!this._isReady?this.ready("volume",a):null!=a?(this.elem().volume=a,this):this.elem().volume},c.prototype.duration=function(){return this.data.media.duration},c.prototype.setPlayerColor=function(){},c}()}(Wistia),function(a){a._embed.ExternalVideo=function(){function b(){b.__super__.constructor.apply(this,arguments)}return __extends(b,a._embed.Video),b.prototype.embedType="external",b.prototype.elem=function(){return document.getElementById(this.data.uuid)},b.prototype.embed=function(c){return b.__super__.embed.call(this,c),this.params.stillUrl=this.elem().childNodes[0].src,this.elem().addEventListener("click",__bind(function(){return this.trigger("play"),a.timeout(""+this.uuid+".fake_video_end",__bind(function(){return this.trigger("end")},this),500),!1},this)),this._isReady=!0,this.ready(),this},b.prototype.duration=function(){return this.data.media.duration},b}()}(Wistia),function(a){return a.extend({tracker:function(b,c){return new a.VideoTracker(b,c||{})}}),a.VideoTracker=function(){function b(b,d){this.video=b,this.options=d,this.params=a.extend({transmitInterval:1e4},this.options),f=[],c=(new Date).getTime(),this._eventKey=this.newEventKey(),this._visitorKey=this.visitorKeyFromCookie()||this.newVisitorKey(),this.log("initialized"),"html5"===this.video.embedType&&this.transmit(),this}var c,d,e,f,g,h,i,j,k;return j=i=h=k=function(){},g=!1,d="",e="",c=0,f=[],b.prototype._dataPrefix=function(){var a;return a="{\n\"account_key\":\""+this.video.data.media.accountKey+"\",\n\"session_id\":\""+this._visitorKey+"\",\n\"media_id\":\""+this.video.data.media.mediaKey+"\",\n\"event_key\":\""+this._eventKey+"\",\n\"media_duration\":"+parseFloat(this.video.data.media.duration)+",\n\"referrer\":\""+(this.video.params.pageUrl||window.location.href)+"\",",this.video.params.trackEmail&&(a+="\"email\":\""+this.video.params.trackEmail+"\","),a+="\"event_details\":[",a},b.prototype._dataSuffix=function(){return"]}"},b.prototype.visitorKeyFromCookie=function(){var a,b,c;for(a=document.cookie.split("; "),b=0;b<a.length;){if(c=a[b].split("="),"__distillery"===c[0])return c[1];b++}},b.prototype.newVisitorKey=function(){var a,b;return b=(new Date).getTime().toString()+"-"+Math.random(),a=new Date,a.setTime(a.getTime()+31536e6),document.cookie="__distillery="+b+"; expires="+a.toGMTString()+"; path=/",b},b.prototype.newEventKey=function(){return"flash"===this.video.embedType?this.video.getEventKey():(new Date).getTime().toString()+"e"+Math.random()},b.prototype.monitor=function(){j=__bind(function(){this.log("play")},this),i=__bind(function(){Math.abs(this.video.duration()-this.video.time())>.3&&this.log("pause")},this),h=__bind(function(){this.log("end"),this.transmit()},this),k=__bind(function(a){Math.abs(this.video._lastTimePosition-a)>=5&&this.log("seek")},this),g=!0,this.video.bind("play",j),this.video.bind("pause",i),this.video.bind("end",h),this.video.bind("timechange",k),a.timeout(""+this.uuid+".start_tracking_timeout",__bind(function(){var b;b=__bind(function(){return"playing"===this.video.state()&&this.log("update"),this.transmit(),a.timeout(""+this.uuid+".tracking_loop",b,this.params.transmitInterval)},this),a.timeout(""+this.uuid+".tracking_loop",b,this.params.transmitInterval),this.transmit()},this),Math.random()*this.params.transmitInterval+1e3),"playing"===this.video.state()&&j()},b.prototype.stopMonitoring=function(){g=!1,this.video.unbind("play",j),this.video.unbind("pause",i),this.video.unbind("end",h),this.video.unbind("timechange",k)},b.prototype.postToDistillery=function(b){a.remote.post(""+this.video.data.media.distilleryUrl+"?data="+encodeURIComponent(b))},b.prototype.transmit=function(){var b;this.video.params.doNotTrack||0!==f.length&&(b=this._dataPrefix()+f.join(",")+this._dataSuffix(),this.postToDistillery(a.base64.encode(b)),f=[])},b.prototype.log=function(a){var b,d;this.video.params.doNotTrack||(d=this.video.time(),null==d&&(d="unknown"===this.video.state()?0:this.video.duration()),d=d.toFixed(1),b=(new Date).getTime()-c,f.push("{\n\"key\":\""+a+"\",\n\"value\":"+d+",\n\"timeDelta\":"+b+"\n}"))},b.prototype.visitorKey=function(){return this._visitorKey},b.prototype.eventKey=function(){return this._eventKey},b}()}(Wistia),Wistia.extend({base64:{_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(a){var b,c,d,e,f,g,h,i,j;
for(i=0,j="";i<a.length;)b=a.charCodeAt(i++),c=a.charCodeAt(i++),d=a.charCodeAt(i++),e=b>>2,f=(3&b)<<4|c>>4,g=(15&c)<<2|d>>6,h=63&d,isNaN(c)?g=h=64:isNaN(d)&&(h=64),j=j+this._keyStr.charAt(e)+this._keyStr.charAt(f)+this._keyStr.charAt(g)+this._keyStr.charAt(h);return j}}}),function(a){return a.extend({constant:{embedHost:"fast.wistia.com"},remote:{post:function(a){var b;b=window.XDomainRequest?new window.XDomainRequest:new window.XMLHttpRequest,b.open("POST",a,!0),b.send()},media:function(b,c){var d;a.data(["remote-media",b])?a.timeout("remote-media."+b+"."+a.seqId(),function(){return c(a.data(["remote-media",b]))}):(d=""+window.location.protocol+"//"+a.constant.embedHost+"/embed/medias/"+b+".json",this.fetch(d,{},function(d){d.error?(a.data(["remote-media",b],d),c(d)):(a.data(["remote-media",b],d.media),c(d.media))},{onerror:function(){window.console&&console.log("Timed out fetching "+d)},timeout:1e4}))},playlist:function(b,c){var d;a.data(["remote-playlist",b])?a.timeout("remote-playlist."+b+"."+a.seqId(),function(){return c(a.data(["remote-playlist",b]))}):(d=""+window.location.protocol+"//"+a.constant.embedHost+"/embed/playlists/"+b+".json",this.fetch(d,{},function(d){a.data(["remote-playlist",b],d),c(d)},{onerror:function(){window.console&&console.log("Timed out fetching "+d)},timeout:1e4}))},fetch:function(b,c,d,e){var f;e.timeout||(e.timeout=5e3),e.onerror||(e.onerror=function(){}),f=setTimeout(e.onerror,e.timeout),a.jsonp.get(b,c,function(a){clearTimeout(f),d&&d(a)})}}})}(Wistia),Wistia.jsonp||(Wistia.jsonp=function(){function a(a){var b=document.createElement('script'),c=!1;b.src=a,b.async=!0,b.onload=b.onreadystatechange=function(){c||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(c=!0,b.onload=b.onreadystatechange=null,b&&b.parentNode&&b.parentNode.removeChild(b))},d||(d=document.getElementsByTagName('head')[0]),d.appendChild(b)}function b(b,d,h){e="?",d=d||{};for(f in d)d.hasOwnProperty(f)&&(e+=encodeURIComponent(f)+"="+encodeURIComponent(d[f])+"&");var i="json"+ ++c;return g[i]=function(a){h(a);try{delete g[i]}catch(b){}g[i]=null},a(b+e+"callback="+i),i}var c=0,d,e,f,g=this;return{get:b}}()),function(a){return a.Plugin||(a.Plugin={}),a.Plugin.Base=function(){function b(){this.pluginName="plugin",this}return b.prototype.instances=function(){return a.data(["plugins",this.pluginName,this.video.uuid])},b.prototype.register=function(b){return this.video.plugins[this.uuid]=b,a.data(["plugins",this.pluginName,this.video.uuid,this.uuid],b)},b.prototype.remove=function(){return this.video.plugins[this.uuid]=null,a.removeData(["plugins",this.pluginName,this.video.uuid,this.uuid]),delete this.video.plugins[this.uuid],this.video.grid?(a.grid.fitHorizontal(this.video),a.grid.fitVertical(this.video)):void 0},b.prototype.fit=function(){},b.prototype.init=function(b,c){return null==b.plugins&&(b.plugins={}),this.video=b,this.options=c||{},this.params=a.extend({},c||{}),this.uuid=this.params.uuid||a.seqId("wistia_","_plugin")},b}(),a.extend({plugin:{init:function(b,c,d){var e,f,g;return g=b.charAt(0).toUpperCase()+b.substr(1),f=a.Plugin[g],e=new f,e.init(c,d),e},instance:function(b,c,d){return a.data(["plugins",b,c.uuid,d])},remove:function(a,b,c){var d;null!=(d=this.instance(a,b,c))&&d.remove()},isActive:function(a,b,c){return!!this.instance(a,b,c)}}})}(Wistia),define("wistia",function(a){return function(){var b,c;return b||a.Wistia}}(this)),define('l10n',['underscore','module'],function(a,b){var c=b.config?b.config():{},d='en-us',e=c.locale||d,f,g;e=e.toLowerCase().replace(/_/g,'-'),f=d.split('-')[0],g=e.split('-')[0];var h={normalize:function(a,b){return b(a.replace(/%locale%/g,e).replace(/%lang%/g,g).replace('iw','he'))},load:function(b,c,d,f){f.isBuild?d(null):c([b],function(a){d(a)},function(i){if(a.contains(e,'-')){var j=b.replace(e,g);console.info("Module '%s' wasn't found, falling back to: '%s'",b,j),h.load(j,c,d,f)}else console.error(i)})}};return h}),define('soy!jive.i18n.keys.dateFormatJsSunShort',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsSunShort=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('7a16c1',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsSunShort}),define('soy!jive.i18n.keys.dateFormatJsMonShort',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsMonShort=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('6214af',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsMonShort}),define('soy!jive.i18n.keys.dateFormatJsTueShort',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsTueShort=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('93ab0f',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsTueShort}),define('soy!jive.i18n.keys.dateFormatJsWedShort',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsWedShort=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('1a0a26',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsWedShort}),define('soy!jive.i18n.keys.dateFormatJsThurShort',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsThurShort=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('fc731a',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsThurShort}),define('soy!jive.i18n.keys.dateFormatJsFriShort',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsFriShort=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('505ea4',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsFriShort}),define('soy!jive.i18n.keys.dateFormatJsSatShort',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsSatShort=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('bc972b',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsSatShort}),define('soy!jive.i18n.keys.dateFormatJsSunLong',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsSunLong=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('c6675b',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsSunLong}),define('soy!jive.i18n.keys.dateFormatJsMonLong',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsMonLong=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('4f457e',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsMonLong}),define('soy!jive.i18n.keys.dateFormatJsTueLong',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsTueLong=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('067037',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsTueLong}),define('soy!jive.i18n.keys.dateFormatJsWedLong',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsWedLong=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('84e096',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsWedLong}),define('soy!jive.i18n.keys.dateFormatJsThurLong',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsThurLong=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('8b2242',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsThurLong}),define('soy!jive.i18n.keys.dateFormatJsFriLong',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsFriLong=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('8937a0',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsFriLong}),define('soy!jive.i18n.keys.dateFormatJsSatLong',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsSatLong=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('131bef',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsSatLong}),define('soy!jive.i18n.keys.dateFormatJsJanShort',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsJanShort=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('690cdc',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsJanShort}),define('soy!jive.i18n.keys.dateFormatJsFebShort',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsFebShort=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('d4e7fa',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsFebShort}),define('soy!jive.i18n.keys.dateFormatJsMarShort',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsMarShort=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('3fed0d',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsMarShort}),define('soy!jive.i18n.keys.dateFormatJsAprShort',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsAprShort=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('54a4f0',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsAprShort}),define('soy!jive.i18n.keys.dateFormatJsMayShort',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsMayShort=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('fce0db',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsMayShort}),define('soy!jive.i18n.keys.dateFormatJsJunShort',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsJunShort=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('b1d230',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsJunShort}),define('soy!jive.i18n.keys.dateFormatJsJulShort',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsJulShort=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('24d309',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsJulShort}),define('soy!jive.i18n.keys.dateFormatJsAugShort',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsAugShort=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('9d8b69',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsAugShort}),define('soy!jive.i18n.keys.dateFormatJsSepShort',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsSepShort=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('212dff',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsSepShort}),define('soy!jive.i18n.keys.dateFormatJsOctShort',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsOctShort=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('d36ef1',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsOctShort}),define('soy!jive.i18n.keys.dateFormatJsNovShort',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsNovShort=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('063aa5',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsNovShort}),define('soy!jive.i18n.keys.dateFormatJsDecShort',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsDecShort=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('0a5d69',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsDecShort}),define('soy!jive.i18n.keys.dateFormatJsJanLong',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsJanLong=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('2b6d2a',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsJanLong}),define('soy!jive.i18n.keys.dateFormatJsFebLong',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsFebLong=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('692391',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsFebLong}),define('soy!jive.i18n.keys.dateFormatJsMarLong',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsMarLong=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('0f005e',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsMarLong}),define('soy!jive.i18n.keys.dateFormatJsAprLong',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsAprLong=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('e1f2bc',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsAprLong}),define('soy!jive.i18n.keys.dateFormatJsMayLong',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsMayLong=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('8177ef',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsMayLong}),define('soy!jive.i18n.keys.dateFormatJsJunLong',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsJunLong=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('d5c28f',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsJunLong}),define('soy!jive.i18n.keys.dateFormatJsJulLong',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsJulLong=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('108d34',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsJulLong}),define('soy!jive.i18n.keys.dateFormatJsAugLong',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsAugLong=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('45e28b',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsAugLong}),define('soy!jive.i18n.keys.dateFormatJsSepLong',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsSepLong=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('b6399c',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsSepLong}),define('soy!jive.i18n.keys.dateFormatJsOctLong',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsOctLong=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('5b9ab4',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsOctLong}),define('soy!jive.i18n.keys.dateFormatJsNovLong',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsNovLong=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('9d8101',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsNovLong}),define('soy!jive.i18n.keys.dateFormatJsDecLong',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.dateFormatJsDecLong=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('2c3bea',[]))),c?'':d.toString()},jive.i18n.keys.dateFormatJsDecLong}),define('date/format',['soy!jive.i18n.keys.dateFormatJsSunShort','soy!jive.i18n.keys.dateFormatJsMonShort','soy!jive.i18n.keys.dateFormatJsTueShort','soy!jive.i18n.keys.dateFormatJsWedShort','soy!jive.i18n.keys.dateFormatJsThurShort','soy!jive.i18n.keys.dateFormatJsFriShort','soy!jive.i18n.keys.dateFormatJsSatShort','soy!jive.i18n.keys.dateFormatJsSunLong','soy!jive.i18n.keys.dateFormatJsMonLong','soy!jive.i18n.keys.dateFormatJsTueLong','soy!jive.i18n.keys.dateFormatJsWedLong','soy!jive.i18n.keys.dateFormatJsThurLong','soy!jive.i18n.keys.dateFormatJsFriLong','soy!jive.i18n.keys.dateFormatJsSatLong','soy!jive.i18n.keys.dateFormatJsJanShort','soy!jive.i18n.keys.dateFormatJsFebShort','soy!jive.i18n.keys.dateFormatJsMarShort','soy!jive.i18n.keys.dateFormatJsAprShort','soy!jive.i18n.keys.dateFormatJsMayShort','soy!jive.i18n.keys.dateFormatJsJunShort','soy!jive.i18n.keys.dateFormatJsJulShort','soy!jive.i18n.keys.dateFormatJsAugShort','soy!jive.i18n.keys.dateFormatJsSepShort','soy!jive.i18n.keys.dateFormatJsOctShort','soy!jive.i18n.keys.dateFormatJsNovShort','soy!jive.i18n.keys.dateFormatJsDecShort','soy!jive.i18n.keys.dateFormatJsJanLong','soy!jive.i18n.keys.dateFormatJsFebLong','soy!jive.i18n.keys.dateFormatJsMarLong','soy!jive.i18n.keys.dateFormatJsAprLong','soy!jive.i18n.keys.dateFormatJsMayLong','soy!jive.i18n.keys.dateFormatJsJunLong','soy!jive.i18n.keys.dateFormatJsJulLong','soy!jive.i18n.keys.dateFormatJsAugLong','soy!jive.i18n.keys.dateFormatJsSepLong','soy!jive.i18n.keys.dateFormatJsOctLong','soy!jive.i18n.keys.dateFormatJsNovLong','soy!jive.i18n.keys.dateFormatJsDecLong'],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L){var M=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,b){for(a=String(a),b=b||2;a.length<b;)a='0'+a;return a},e=function(a,b){var c=a.getTime(),d=6e4*a.getTimezoneOffset(),e=c+d;return new Date(e+36e5*b)};return function(f,g,h){var i=M;if(1!=arguments.length||'[object String]'!=Object.prototype.toString.call(f)||/\d/.test(f)||(g=f,f=void 0),f=f?new Date(f):new Date,isNaN(f))throw SyntaxError('invalid date');f=e(f,_jive_timezoneoffset),g=String(i.masks[g]||g||i.masks['default']),'UTC:'==g.slice(0,4)&&(g=g.slice(4),h=!0);var j=h?'getUTC':'get',k=f[j+'Date'](),l=f[j+'Day'](),m=f[j+'Month'](),n=f[j+'FullYear'](),o=f[j+'Hours'](),p=f[j+'Minutes'](),q=f[j+'Seconds'](),r=f[j+'Milliseconds'](),s=h?0:f.getTimezoneOffset(),t={d:k,dd:d(k),ddd:i.i18n.dayNames[l],dddd:i.i18n.dayNames[l+7],m:m+1,mm:d(m+1),mmm:i.i18n.monthNames[m],mmmm:i.i18n.monthNames[m+12],yy:String(n).slice(2),yyyy:n,h:o%12||12,hh:d(o%12||12),H:o,HH:d(o),M:p,MM:d(p),s:q,ss:d(q),l:d(r,3),L:d(r>99?Math.round(r/10):r),t:12>o?'a':'p',tt:12>o?'am':'pm',T:12>o?'A':'P',TT:12>o?'AM':'PM',Z:h?'UTC':(String(f).match(b)||['']).pop().replace(c,''),o:(s>0?'-':'+')+d(100*Math.floor(Math.abs(s)/60)+Math.abs(s)%60,4),S:['th','st','nd','rd'][k%10>3?0:(k%100-k%10!=10)*k%10]};return g.replace(a,function(a){return a in t?t[a]:a.slice(1,a.length-1)})}}();M.masks={'default':'ddd mmm dd yyyy HH:MM:ss',longDate:'m/d/yy',mediumDate:'mmm d, yyyy',longDate:'mmmm d, yyyy',fullDate:'dddd, mmmm d, yyyy',longTime:'h:MM TT',mediumTime:'h:MM:ss TT',longTime:'h:MM:ss TT Z',isoDate:'yyyy-mm-dd',isoTime:'HH:MM:ss',isoDateTime:'yyyy-mm-dd\'T\'HH:MM:ss',isoUtcDateTime:'UTC:yyyy-mm-dd\'T\'HH:MM:ss\'Z\''},M.i18n={dayNames:[a(),b(),c(),d(),e(),f(),g(),h(),i(),j(),k(),l(),m(),n()],monthNames:[o(),p(),q(),r(),s(),t(),u(),v(),w(),x(),y(),z(),A(),B(),C(),D(),E(),F(),G(),H(),I(),J(),K(),L()]},Date.prototype.format=function(a,b){return M(this,a,b)}}),define('date/formatRelative',['moment','l10n!moment-l10n/%locale%','./format'],function(a){Date.prototype.formatRelative=function(b,c){var d=_jive_locale.toLowerCase().replace('_','-'),e=a(this).locale(d);return d.slice(0,2)==e._locale._abbr.slice(0,2)?e.fromNow(c):b?e.format(b):null}}),define('apps/shared/controllers/localexchange',['jiverscripts/conc/observable'],function(a){return jive.localexchange=a({}),jive.localexchange}),define('soy!jive.shared.breadcrumb.placeLinkPopoverResults',['soyDeps'],function(a){return jive.namespace.call(this,'jive.shared.breadcrumb'),jive.shared.breadcrumb.placeLinkPopoverResults=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<ul class="j-icon-list">'),b.places.length>0){for(var e=b.places,f=e.length,g=0;f>g;g++){var h=e[g];d.append('<li class="j-shared-place-link">',h.name?'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,h.resources.html.ref)))+'" class="j-shared-place js-shared-place-link"><span class="jive-icon-big '+soy.$$escapeHtmlAttribute(h.iconCss)+' js-place-link-popover-icon"></span><span class="lnk js-place-link-popover-name">'+soy.$$escapeHtml(h.name)+'</span></a>':'<span>'+soy.$$escapeHtml(a._i18n('46292d',[]))+'</span>',h.canDeletePlaceRelationship?'<a href="#" class="js-remove-rel-confirm j-remove-share font-color-meta" title="'+soy.$$escapeHtmlAttribute(a._i18n('c96d7a',[]))+'"'+soy.$$filterHtmlAttributes(a._i18n('c96d7a',[]))+' data-relationship-id="'+soy.$$escapeHtmlAttribute(h.contentPlaceRelationshipID)+'"><span>'+soy.$$escapeHtml(a._i18n('c96d7a',[]))+'</span></a>':'','</li>')}if(b.placeLinkCount-b.places.length>0)switch(b.placeLinkCount-b.places.length){case 0:break;case 1:d.append('<li><span>',soy.$$escapeHtml(a._i18n('030f58',[b.placeLinkCount-b.places.length])),'</span></li>');break;case 2:d.append('<li><span>',soy.$$escapeHtml(a._i18n('e3bafd',[b.placeLinkCount-b.places.length])),'</span></li>');break;case 3:d.append('<li><span>',soy.$$escapeHtml(a._i18n('4f6da1',[b.placeLinkCount-b.places.length])),'</span></li>');break;default:d.append('<li>',soy.$$escapeHtml(a._i18n('b8e3ca',[b.placeLinkCount-b.places.length])),'</li>')}}else d.append('<li>',1==b.placeLinkCount?soy.$$escapeHtml(a._i18n('d24809',[])):soy.$$escapeHtml(a._i18n('f1ed5b',[])),'</li>');return d.append('</ul>'),c?'':d.toString()},jive.shared.breadcrumb.placeLinkPopoverResults}),define('soy!jive.shared.breadcrumb.placeLinkPopover',['soyDeps'],function(a){return jive.namespace.call(this,'jive.shared.breadcrumb'),jive.shared.breadcrumb.placeLinkPopover=function(a,b){var c=b||new soy.StringBuilder;return c.append('<span id="js-place-linked-content-container-placeholder"></span><div id="js-place-linked-content-container" class="j-pop-main j-place-linked-content-container js-place-linked-content-container" style="display: none"></div>'),b?'':c.toString()},jive.shared.breadcrumb.placeLinkPopover}),define('soy!jive.shared.breadcrumb.placeLinkBreadcrumb',['soyDeps','soy!jive.shared.breadcrumb.placeLinkPopover'],function(a){return jive.namespace.call(this,'jive.shared.breadcrumb'),jive.shared.breadcrumb.placeLinkBreadcrumb=function(b,c){var d=c||new soy.StringBuilder;return b.placeLinkCount&&b.placeLinkCount>0&&b.linkedContentType&&b.linkedContentID&&(d.append(b.legacy?(b.place||b.parents?' '+soy.$$escapeHtml(a._i18n('b9ef1a',[]))+' ':'')+'<a href="#" class="js-place-linked-content-link">'+(1==b.placeLinkCount?soy.$$escapeHtml(a._i18n('8309b2',[b.placeLinkCount])):2==b.placeLinkCount?soy.$$escapeHtml(a._i18n('15021b',[b.placeLinkCount])):3==b.placeLinkCount?soy.$$escapeHtml(a._i18n('3d7264',[b.placeLinkCount])):soy.$$escapeHtml(a._i18n('b910c6',[b.placeLinkCount])))+'</a>':b.userContainer?'<span>'+(38!=b.linkedContentType?soy.$$escapeHtml(a._i18n('b9ef1a',[])):'')+' <a href="#" class="js-place-linked-content-link">'+(1==b.placeLinkCount?soy.$$escapeHtml(a._i18n('a29ad7',[b.placeLinkCount])):2==b.placeLinkCount?soy.$$escapeHtml(a._i18n('2b9dd2',[b.placeLinkCount])):3==b.placeLinkCount?soy.$$escapeHtml(a._i18n('b185d6',[b.placeLinkCount])):soy.$$escapeHtml(a._i18n('c75498',[b.placeLinkCount])))+'</a>'+soy.$$escapeHtml(a._i18n('0b3fc8',[]))+'</span>':'<span> '+soy.$$escapeHtml(a._i18n('7b9e65',[]))+' <a href="#" class="js-place-linked-content-link">'+(1==b.placeLinkCount?soy.$$escapeHtml(a._i18n('c1af5c',[b.placeLinkCount])):2==b.placeLinkCount?soy.$$escapeHtml(a._i18n('60387c',[b.placeLinkCount])):3==b.placeLinkCount?soy.$$escapeHtml(a._i18n('856218',[b.placeLinkCount])):soy.$$escapeHtml(a._i18n('32ed3d',[b.placeLinkCount])))+'</a></span>'),b.renderPopoverContainer&&jive.shared.breadcrumb.placeLinkPopover(null,d)),c?'':d.toString()},jive.shared.breadcrumb.placeLinkBreadcrumb}),define('soy!jive.shared.breadcrumb.placeLinkRemoveConfirm',['soyDeps'],function(a){return jive.namespace.call(this,'jive.shared.breadcrumb'),jive.shared.breadcrumb.placeLinkRemoveConfirm=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-remove-share-confirm">',b.placeLink&&b.placeIconCss&&b.placeName?'<p>'+soy.$$escapeHtml(a._i18n('57b5d4',[]))+'&nbsp;</p><p class="clearfix"><a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.placeLink))+'"><span class="jive-icon-med '+soy.$$escapeHtmlAttribute(b.placeIconCss)+'"></span>'+soy.$$escapeHtml(b.placeName)+'</a>'+soy.$$escapeHtml(a._i18n('8c51b9',[]))+'</p>':'<p>'+soy.$$escapeHtml(a._i18n('e3f8a6',[]))+'</p>','<a href="#" class="js-remove-rel j-remove-rel-confirm j-btn-global" data-relationship-id="',soy.$$escapeHtmlAttribute(b.relationshipID),'" data-command="deleteContentPlaceRelBreadcrumb" >',soy.$$escapeHtml(a._i18n('119ac7',[])),'</a><a href="#" class="js-remove-rel-cancel j-remove-rel-confirm close j-btn-global">',soy.$$escapeHtml(a._i18n('586877',[])),'</a></div>'),c?'':d.toString()},jive.shared.breadcrumb.placeLinkRemoveConfirm}),define('soy!jive.shared.soy.i18nHelper',['soyDeps'],function(a){return jive.namespace.call(this,'jive.shared.soy'),jive.shared.soy.i18nHelper=function(b,c){var d=c||new soy.StringBuilder;return d.append(b.noAutoEscape?soy.$$escapeHtml(a._i18n(b.i18nKey,[new soydata.VERY_UNSAFE.ordainSanitizedHtml(b.arg0),new soydata.VERY_UNSAFE.ordainSanitizedHtml(b.arg1),new soydata.VERY_UNSAFE.ordainSanitizedHtml(b.arg2),new soydata.VERY_UNSAFE.ordainSanitizedHtml(b.arg3),new soydata.VERY_UNSAFE.ordainSanitizedHtml(b.arg4),new soydata.VERY_UNSAFE.ordainSanitizedHtml(b.arg5),new soydata.VERY_UNSAFE.ordainSanitizedHtml(b.arg6),new soydata.VERY_UNSAFE.ordainSanitizedHtml(b.arg7),new soydata.VERY_UNSAFE.ordainSanitizedHtml(b.arg8),new soydata.VERY_UNSAFE.ordainSanitizedHtml(b.arg9)])):soy.$$escapeHtml(a._i18n(b.i18nKey,[b.arg0,b.arg1,b.arg2,b.arg3,b.arg4,b.arg5,b.arg6,b.arg7,b.arg8,b.arg9]))),c?'':d.toString()},jive.shared.soy.i18nHelper}),define('soy!jive.shared.breadcrumb.breadcrumbIntroText',['soyDeps','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.shared.breadcrumb'),jive.shared.breadcrumb.breadcrumbIntroText=function(b,c){var d=c||new soy.StringBuilder;return b.hasRelationships?jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml(a.getMinKey(b.messageKey)),arg0:'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.containerUrl))+'"><span class="'+soy.$$escapeHtmlAttribute(b.containerCss)+'"></span>'+soy.$$escapeHtml(b.containerName)+'</a>',noAutoEscape:!0},d):jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml(a.getMinKey(b.messageKey)),arg0:b.browseFromRootSpace?'<a href="'+(b.browseFilter?soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.browseFilter)):'')+'">':'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.containerUrl))+(b.browseFilter?soy.$$escapeHtmlAttribute(b.browseFilter):'')+'">',arg1:'</a>',arg2:'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.containerUrl))+'"><span class="'+soy.$$escapeHtmlAttribute(b.containerCss)+'"></span>'+soy.$$escapeHtml(b.containerName)+'</a>',noAutoEscape:!0},d),c?'':d.toString()},jive.shared.breadcrumb.breadcrumbIntroText}),define('breadcrumb',['jquery','apps/shared/models/core_deferred','apps/shared/controllers/localexchange','soy!jive.shared.breadcrumb.placeLinkPopoverResults','soy!jive.shared.breadcrumb.placeLinkBreadcrumb','soy!jive.shared.breadcrumb.placeLinkRemoveConfirm','soy!jive.shared.breadcrumb.breadcrumbIntroText','soy!jive.shared.displayutil.a11yBoundary','domReady!','jquery-plugin/jquery.popover'],function(a,b,c,d,e,f,g,h){function i(){a('#js-place-link-breadcrumb').off('click','a.js-place-linked-content-link')}function j(){a('#js-place-link-breadcrumb').on('click','a.js-place-linked-content-link',function(c){c.preventDefault();var d=a('#js-place-linked-content-container'),e=a('#js-place-link-breadcrumb'),f=e.attr('data-linked-content-id'),g=a(this),h={contentID:''+f};b.runQuery(function(a){return a.jive.corev3.places.getPlacesRelatedToContentCount(h)}).then(function(b){var c=b.content.count;c>0&&d.popover({context:g,darkPopover:!0,destroyOnClose:!1,hoverSelection:!0,onLoad:function(){k(d,a('#js-place-link-breadcrumb'),c)},onClose:function(){d.empty()}}),c!=parseInt(e.attr('data-place-link-count'))&&m(c,!1)})})}function k(c,e,f){var g=e||a('#js-place-link-breadcrumb'),i=g.attr('data-linked-content-id'),j={contentID:''+i};b.runQuery(function(a){return a.jive.corev3.places.getPlacesRelatedToContent(j)}).then(function(b){var e=c.children('span');if(0==e.length){var g=h({type:'menu'}),i=h({type:'menu',isEnd:!0});c.prepend(g).append(i),e=c.children('span')}var j={places:b,placeLinkCount:f};e.length>0&&a(e[0]).after(d(j)),l(c)},function(){console.log('retrieving related places failed')})}function l(b){b.find('a.js-remove-rel-confirm').on('click',function(c){var d=a(c.target);d.is('a')||(d=d.closest('a'));var e=d.attr('data-relationship-id'),g=d.closest('li').find('a.js-shared-place-link'),h,i,j;g&&g.length>0&&(h=g.attr('href'),i=g.children('span.js-place-link-popover-icon').attr('class'),j=g.children('span.js-place-link-popover-name').text());var k={relationshipID:e,placeLink:h,placeIconCss:i,placeName:j};b.html(f(k)),a('#js-place-link-breadcrumb').on('click','#js-place-linked-content-container a.js-remove-rel-cancel',function(){a('#js-place-linked-content-container-placeholder').click()})})}function m(b,c){var d=a('#js-place-link-breadcrumb'),f=d&&d.length>0;if(f){var h=parseInt(d.attr('data-place-link-count')),l=parseInt(d.attr('data-linked-content-id')),m=parseInt(d.attr('data-linked-content-type'));if('number'==typeof h&&'number'==typeof l&&'number'==typeof m){var n='true'===d.attr('data-is-usercontainer'),o='true'===d.attr('data-legacy'),p='true'===d.attr('data-place'),q='true'===d.attr('data-parents'),r={placeLinkCount:b,linkedContentID:l,linkedContentType:m,userContainer:n,legacy:o,place:p,parents:q,renderPopoverContainer:0==h},s;if(h>0&&(s=a('#js-place-linked-content-container')),d.attr('data-place-link-count',b),i(),d=d.html(e(r)),j(),c&&(h>0&&s.empty(),b>0?k(s,d,b):s.closest('div.js-pop').remove()),!o&&!n&&(0==h&&b>0||0==b&&h>0)){var t=a('#js-breadcrumb-intro'),u={messageKey:b>0?t.attr('data-has-content-rel-intro-key'):t.attr('data-no-content-rel-intro-key'),hasRelationships:b>0,containerName:t.attr('data-container-display-name'),containerUrl:t.attr('data-container-url'),containerCss:t.attr('data-container-icon-css'),browseFilter:t.attr('data-content-browse-filter'),browseFromRootSpace:18==m};u.messageKey&&t.html(g(u))}}else location.reload()}else location.reload()}a('#js-place-parents-link').on('click',function(b){b.preventDefault(),a('#js-place-parents-container').popover({context:a(this),darkPopover:!0,destroyOnClose:!1,hoverSelection:!0})}),j(),c.addListener('content.place.relationship.delete',function(){var c=a('#js-place-link-breadcrumb'),d=c.attr('data-linked-content-id'),e={contentID:''+d};b.runQuery(function(a){return a.jive.corev3.places.getPlacesRelatedToContentCount(e)}).then(function(a){var b=a.content.count;m(b,!0)})}),c.addListener('content.place.relationship.share.added',function(a,c){b.getObject(a,c).then(function(a){var c={contentID:''+a.contentID};return b.runQuery(function(a){return a.jive.corev3.places.getPlacesRelatedToContentCount(c)})}).then(function(a){var b=a.content.count;m(b,!1)})})}),define('i18nbundle',['l10n'],function(a){return{normalize:function(a,b){return'l10n!i18n/keys/%locale%/bundle_%locale%'},load:function(a,b,c,d){d.isBuild?c(null):b([a],function(a){c(a)})}}}),define('application/view_loader',['jquery','underscore'],function(a,b){'use strict';var c='jiveView',d='jiveViewInstance',e='[data-jive-view]';
return{load:function(f,g){g=g||b.constant(!0);var h=a.Deferred(),i=[],j=a(f).find(e).addBack(e).filter(g).filter(function(){return!a(this).data(d)}),k=b.unique(j.toArray().map(function(b){return a(b).data(c)}));return require(k,function(){for(var e=b.object(k,b.take(arguments,k.length)),f=a();j.length>0;){var g=a();j=j.filter(function(){return 0!==a(this).find(j).length?!0:(g=g.add(this),void 0)}),g.each(function(){var g=a(this),h=e[g.data(c)];if(b.isFunction(h)){var j=b.extend(b.omit(g.data(),c),{el:this}),k=new h(j);g.data(d,k),f=f.add(g)}else i.push({el:this,message:'Constructor function expected',module:g.data(c)})})}0===i.length?h.resolve(f):h.reject('Module instantiation error(s) occurred',i)},function(a){i.push({message:a.message,error:a}),h.reject('Module load error(s) occurred',i)}),h.promise()}}}),define('application/base_page_controller',['underscore','channel!app','channel!views','./view_loader','backbone-plugin/backbone-super'],function(a,b,c,d){'use strict';var e={appChannel:a.constant(b),viewChannel:a.constant(c),loader:d,loadViews:function(b){return e.loader.load('#j-main',b||a.constant(!0))},extend:function(){var b=[{},e].concat(a.toArray(arguments));return a.extend.apply(a,b)},start:function(){},stop:function(){}};return e}),define('application/constants/contentTypes',['../native_shims'],function(){'use strict';return Object.freeze({BOOKMARK:800,DIRECT_MESSAGE:109016030,STATUS_UPDATE:1464927464,TASK:602})}),define('application/constants',['./native_shims','./constants/contentTypes'],function(a){'use strict';return Object.freeze({CONTENT_TYPES:a})}),define('application/default_click_handler',['jquery'],function(a){return a(document).on('click','a[href="#"], a[href^=javascript]',function(a){a.preventDefault()}),{}}),define('application/pageManager',['jquery','underscore','application/config','channel!views','application/view_loader'],function(a,b,c,d,e){var f=!1,g=a.Deferred(),h=a.Deferred().reject(),i=c.jsPageController||a('body').data('jsPageController');d.reply('enabled',function(){return f}),d.on('enable',function(){f=!0}),d.on('disable',function(){f=!1}),i&&(h=a.Deferred(),require([i],h.resolve,h.reject)),a(function(){var b=a('#j-main');e.load('body',function(a,c){return!b.find(c).length}).then(g.resolve,g.reject)}),g.then(function(){h.then(function(c){var e=a.when();if(!c||!b.isFunction(c.start))throw new Error('Controller does not implement correct interface');c.loadViews&&(e=c.loadViews()),e.then(function(){c.start(),d.trigger('enable')})},function(a){i&&console.warn('Unable to load page controller: %s',i,a),d.trigger('enable')})})}),define('apps/shared/controllers/switchboard',['underscore','jquery','jiverscripts/conc/observable','vendor/jquery/plugins/jquery.browser'],function(a,b,c){function d(b){function c(a){var b=e(a),c=d(a);return f(c,{filter:function(c){var d=c[0];return'string'==typeof d&&d===b||g(a,d)},map:function(a){return a[1]},revMap:function(b){return[a,b]}})}function d(a){var b=e(a);return h.hasOwnProperty(b)||(h[b]=[]),h[b]}function e(a){return'string'==typeof a?a:a.eventType}function g(b,c){return Object.keys(c).every(function(d){return a.isEqual(b[d],c[d])})}var h={};b.listeners=c,b.allListeners=function(a){return d(a).slice()}}function e(a){function c(b){var c=e(),f,j;return f=new Date,f.setMilliseconds(f.getMilliseconds()+a.ttl),j={type:b,params:Array.prototype.slice.call(arguments,0),uuid:d(),expires:f.getTime()},g[j.uuid]=j,c.push(j),localStorage.setItem(h,JSON.stringify(c)),i.apply(a,JSON.parse(JSON.stringify(j.params)))}function d(){return j+=1,(j+Math.floor(1e5*Math.random())).toString()}function e(){var a=localStorage.getItem(h),c;try{c=a?JSON.parse(a):[]}catch(d){if(!(d instanceof SyntaxError))throw d;c=[]}return b.isArray(c)?c:[]}function f(c){var d=(new Date).getTime(),f=e(),j=f.filter(function(a){return a.expires>d});f.length!=j.length&&localStorage.setItem(h,JSON.stringify(j)),j.forEach(function(b){g[b.uuid]||(i.apply(a,b.params),g[b.uuid]=b)}),Object.keys(g).forEach(function(a){g[a].expires<d&&delete g[a]}),'object'!=typeof c||'storage'!==c.type||b.browser.msie||clearInterval(k)}var g={},h='jive.switchboard',i=a.emit,j=0,k;return a.emit=c,b.each(e(),function(a,b){g[b.uuid]=b}),k=setInterval(f,333),b(window).bind('storage',f),a}function f(a,b){function c(c,e){0>c&&(c=this.length-c);var f=Array.prototype.slice.call(arguments,2),g,h,i;if(e>0){h=[];for(var j=c;c+e>j;j+=1)h.push(d[j]);g=Array.prototype.splice.call(this,c,e),d.splice(c,e),h.forEach(function(b){a.splice(b,1),d=d.map(function(a){return a>b?a+1:a})})}return f.length>0&&(h=f.map(function(b,c){return a.length+c}),i=b.revMap?f.map(b.revMap):f,a.push.apply(a,i),Array.prototype.splice.apply(this,[c,0].concat(f)),d.splice.apply(d,[c,0].concat(h))),g||[]}b=b||{};var d=[],e=a.filter(function(a,c){var e=!b.filter||b.filter(a,c);return e&&d.push(c),e});return b.map&&(e=e.map(b.map)),e.splice=c,e.push=function(){return this.splice.bind(this,this.length,0).apply(this,arguments),this.length},e.pop=function(){return this.splice(this.length-1,1)[0]},e.shift=function(){return this.splice(0,1)[0]},e.unshift=function(){return this.splice.bind(this,0,0).apply(this,arguments),this.length},e.reverse=function(){return Array.prototype.reverse.apply(this),d.reverse(),this},e}var g=function(){try{var a=!!localStorage.setItem&&!!localStorage.getItem;return a&&(localStorage.setItem("testkey","testval"),a="testval"==localStorage.getItem("testkey"),localStorage.removeItem("testkey")),a}catch(b){return!1}}(),h=c({ttl:500});return d(h),g&&(h.ttl=5e3,e(h)),h}),define('soy!jive.error.form.fieldError',['soyDeps'],function(a){return jive.namespace.call(this,'jive.error.form'),jive.error.form.fieldError=function(a,b){var c=b||new soy.StringBuilder;return c.append('<span class="jive-error-message">',soy.$$filterNoAutoescape(a.msg),'</span>'),b?'':c.toString()},jive.error.form.fieldError}),define('soy!jive.error.form.fieldErrors',['soyDeps','soy!jive.error.form.fieldError'],function(a){return jive.namespace.call(this,'jive.error.form'),jive.error.form.fieldErrors=function(a,b){var c=b||new soy.StringBuilder;if(a.fieldErrors&&a.name&&a.fieldErrors.length>0)for(var d=a.fieldErrors,e=d.length,f=0;e>f;f++){var g=d[f];if(g&&g.name==a.name&&g.messages)for(var h=g.messages,i=h.length,j=0;i>j;j++){var k=h[j];jive.error.form.fieldError({msg:soy.$$escapeHtml(k)},c)}}return b?'':c.toString()},jive.error.form.fieldErrors}),define('apps/content/common/validator',['jquery','jiverscripts/oo/class','jiverscripts/conc/next_tick','apps/shared/controllers/switchboard','underscore','jive/i18n','soy!jive.error.form.fieldErrors','jquery-mobile/jquery.mobile.vmouse','vendor/jquery/plugins/jquery.scrollTo','vendor/jquery/plugins/jquery.validator'],function(a,b,c,d,e){return jive.Validator=b.extend(function(b){function c(a){return a+g++}function f(b,d){var e=a(b);return e.attr('id')||e.attr('id',c(d)),e.attr('id')}var g=0;this.init=function(b){var c='content.validation';this.options=a.extend({form:null,validator:this.validator,onSuccess:this.onSuccess,keys:{any:c+'.any',email:c+'.email',number:c+'.number',url:c+'.url',max:c+'.max',min:c+'.min',required:c+'.required'},appendLast:!1,scrollToError:!0,noScrollOffset:!1},b);var g=this;g.debouncedScrollTo=e.debounce(function(b,c,d){a.scrollTo(b,800,function(){if(d.length>0)editor.get(c.attr('id')).focus();else{var b;b=c.prop('errorFocus')?a(c.prop('errorFocus')):c,b.focus()}})},300,!0);var h=function(b){var c=a(this);c.attr('formaction')&&g.options.form.data('formaction',c.attr('formaction')),void 0!=c.attr('formnovalidate')&&g.options.form.data('formnovalidate',!0),c.attr('formenctype')&&g.options.form.data('formenctype',c.attr('formenctype')),c.attr('formmethod')&&g.options.form.data('formmethod',c.attr('formmethod')),c.attr('data-submit-id')&&g.options.form.data('submit-id',c.attr('data-submit-id'))};g.options.form.on('vclick','input[type=submit]',h),g.options.form.on('vclick','button[type=submit]',h),g.getValidator(),g.options.form.submit(function(a){g.options.form.data().formnovalidate||g.getValidator().checkValidity()||a.preventDefault(),setTimeout(function(){g.options.form.removeData('formaction'),g.options.form.removeData('formnovalidate'),g.options.form.removeData('formenctype'),g.options.form.removeData('formmethod'),g.options.form.removeData('submit-id')},100)}),a.tools.validator.localize('jive',{'*':'any',':email':'email',':number':'number',':url':'url','[max]':'max','[min]':'min','[required]':'required'}),a.tools.validator.addEffect('jive',function(b,c){a.each(b,function(b,c){function d(b){var c=a('#j-compact-header').length>0?60:0;return a(b).offset().top-c}var e=c.input,h=a('label[for="'+f(e,'field_')+'"]'),i=a('iframe[id^='+e.attr('id')+'_ifr]'),j=a('<div>').append(c.messages[0]).text(),k=jive.i18n.jsGetMsg(j)!=j,l,m,n;g.options.appendLast?h.parent('div').length?h.parent('div').find('.jive-error-message').remove():e.nextUntil(':input','.jive-error-message').remove():(h.parent('div').find('.jive-error-message').remove(),h.find('.jive-error-message').remove()),e.prev('.jive-error-message').remove(),l=k?jive.i18n.jsGetMsg(j):e.data(j)||(g.options.keys[j]?jive.i18n.jsGetMsg(g.options.keys[j]):j),n=m=a(jive.error.form.fieldError({msg:l})),e.attr('aria-invalid','true'),'body'==e.attr('name')?e.parent('div').length?e.parent('div').prepend(m):e.after(m):g.options.appendLast&&'subject'!=e.attr('name')?e.parent('div').length?e.parent('div').append(m):e.after(m):0==h.length||h.is('.j-508-label')?(n=m.clone(),e.before(n)):h.append(m),i.length>0&&i.attr('title',l);var o=e.closest('form');if(e.parentsUntil(o,':hidden').show(),0==b&&g.options.scrollToError){var p;p=g.options.noScrollOffset?e:d(n),g.debouncedScrollTo(p,e,i)}}),d.emit('responsive.enableSubmit')},function(b){b.each(function(){var b=a('label[for="'+f(this,'field_')+'"]');g.options.appendLast?b.parent().find('.jive-error-message').remove():b.find('.jive-error-message').remove()}),b.prev('.jive-error-message').empty().removeClass('show'),b.attr('aria-invalid','false')})},this.getValidator=function(){var a=this.options.form.find(':input').data('validator');return a&&a.destroy({}),this.options.form.find(':input').validator({lang:'jive',position:'top left',messageClass:'jive-field-error',inputEvent:'change',effect:'jive',formEvent:null}),this.options.form.find(':input').data('validator')}}),jive.Validator}),define('apps/shared/models/location_state',['jquery','url','jiverscripts/oo/class','jiverscripts/conc/observable','modernizr','vendor/jquery/plugins/jquery.ba-bbq'],function(a,b,c,d,e){return jive.LocationState&&window.jive.locationState?window.jive.locationState:(jive.LocationState=c.extend(function(c){d(this),c.defaults={supportPushState:!0,supportFragment:!0},c.init=function(b){var c=a.extend({},this.defaults,b||{}),d=location.href,e=this;this.location=d,this.description='',this.manuallyUpdatingHash=!1,this.supportPushState=c.supportPushState&&!(!window.history||!window.history.pushState),this.supportFragment=c.supportFragment;var f=[this.supportPushState?'popstate':null,this.supportFragment?'hashchange':null].filter(function(a){return!!a}).join(' ');a(window).bind(f,function(a){var b=location.href;(e.afterInit||b!==d)&&(e.location=b,e.manuallyUpdatingHash||e.emitChange(e.current(),e.description,b),e.manuallyUpdatingHash=!1)})},this.get=function(a){return this.current()[a]},this.getState=function(){return this.current()},this.getEphemeralState=function(){return a.deparam.fragment()},c.getPermaState=function(){return a.deparam.querystring()},this.pushState=function(b,c){var d=a.extend(this.current(),b);Object.keys(b).forEach(function(c){('undefined'==typeof b[c]||a.isArray(b[c])&&b[c].length<1)&&delete d[c]}),this.setState(d,c)},this.setState=function(a,b,c){this.doStateChange(!1,a,b,c)},this.replaceState=function(a,b,c){this.doStateChange(!0,a,b,c)},this.watchParam=function(a,b){var c=this.getState()[a];this.addListener('change',function(d,e,f){var g=d[a];g!==c&&(b(g,d,e,f),c=g)})},c.doStateChange=function(a,b,c,d){var f=this.lastLocation;if(this.location=e.history?this.newLocation(b,d):this.newFragment(b,d),this.description=c||'',this.emitChange(b,c,this.location),this.location!==f)if(e.history)try{a===!0?history.replaceState(this.current(),this.description,this.location):history.pushState(this.current(),this.description,this.location)}catch(g){window.location=this.location}else this.supportFragment&&this.updateLocationHash(this.location)},c.current=function(){var b=this.location.match(/\?/)?a.deparam.querystring(this.location):{},c=this.location.match(/#/)?a.deparam.fragment(this.location):{},d=a.extend({},b,c),e={};return Object.keys(d).forEach(function(a){''!==d[a]&&(e[a]=d[a])}),e},c.newLocation=function(c,d){var e;return e=d?d.slice(0,_jive_base_url.length)===_jive_base_url||d.match(/^[a-z]+:/i)?d:b.baseUrl(d.replace(/^\//,'')):location.href.split(/[?#]/)[0],a.param.querystring(e,c)},c.newFragment=function(b,c){var d={},e=a.deparam.querystring(),f;f=location.href.split('#')[0],c&&(b.nPLoc=c),Object.keys(e).forEach(function(c){('undefined'==typeof b[c]||a.isArray(b[c])&&b[c].length<1)&&(d[c]='')}),Object.keys(b).forEach(function(a){e[a]!==String(b[a])&&(d[a]=b[a])});var g=a.param.fragment(f,d);return/#[^=&]+=$/.test(g)&&(g=g.substring(0,g.length-1)),g},c.emitChange=function(a,b,c){c!==this.lastLocation?(this.emit('change',a,b,c),this.lastLocation=c,this.afterInit=!0):this.emit('noChange',a,b,c)},c.updateLocationHash=function(b){function c(){d.preserveScrollPosition(b.split('#')[1],function(){d.manuallyUpdatingHash=!0,location.href=b})}var d=this;a.browser.msie&&a.browser.version<8?((this.locationHashTimeouts||[]).forEach(function(a){clearTimeout(a)}),this.locationHashTimeouts=[],this.locationHashTimeouts.push(setTimeout(function(){d.locationHashTimeouts.push(setTimeout(c,100))},100))):c()},c.preserveScrollPosition=function(b,c){var d;b?(d=a(window).scrollTop(),c(),a(window).scrollTop(d)):c()}}),window.jive.locationState=new jive.LocationState,window.jive.locationState)}),define('apps/shared/views/tab_view',['jquery','jiverscripts/conc/observable','channel!page'],function(a,b,c){return jive.TabView=function(d,e){function f(){return a(d).find(n)}function g(){return f().filter(function(){return a(this).hasClass(m)})}function h(){return o(f().filter(function(){return a(this).hasClass(m)}))}function i(b){f().each(function(){var c=a(this),d=o(c);c.toggleClass(m,d==b)}),f().each(function(){var d=a(this),e=o(d),f=a('[id="'+e+'"]');f.length<1||(e==b?(f.show(),c.command('start')):f.hide())})}function j(a){p.emit('tabSwitch',a,g())}function k(a){i(a),j(a)}function l(b,c){var d=f().filter(function(){return o(a(this))==b});d.toggle(!!c)}b(this),e=e||{};var m=e.activeClass||'jive-body-tabcurrent',n=e.tabSelector||'.jive-body-tab',o=e.nameFromTab||function(a){return(a.attr('id')||'').replace(/-tab$/,'')},p=this;this.switchTo=k,this.setVisibility=l,this.activeTabName=h,this.activeTab=g,a(document).ready(function(){a(d).on('click',n,function(b){var c=a(this),d=o(c);k(d),b.preventDefault()}),f().hasClass(m)||f().first().trigger('click')})},jive.TabView}),define('apps/usergrouppicker/models/usergrouppicker_source',['jquery','jiverscripts/oo/class','jiverscripts/conc/promise','jive/namespace'],function(a,b,c){return jive.namespace('UserGroupPicker'),jive.UserGroupPicker.Source=b.extend(function(b){this.init=function(a){this.options=a,this.urls={groupAutocomplete:_jive_base_url+'/group-autocomplete.jspa',browseModal:_jive_base_url+'/group-autocomplete-modal.jspa'}},this.autocomplete=function(b){var d=new c,e=this;e.lastAjaxObj&&e.lastAjaxObj.abort();var f={groupAllowed:!0,includeGuestUsers:!1,includeRegisteredUsers:!0};return e.lastAjaxObj=a.ajax({url:_jive_base_url+'/__services/v2/rest/groups/search/'+encodeURI(b),data:f,dataType:'json',success:function(a){d.emitSuccess(a)},error:function(a){d.emitError()}}),d},this.save=function(b){var d=new c,e=this,f={};return f[this.resourceType]=b,a.ajax({type:'POST',url:this.RESOURCE_ENDPOINT+'/'+b.objectID+'/members',dataType:'json',data:JSON.stringify(f),contentType:'application/json; charset=utf-8',success:function(a,b,c){d.emitSuccess(a)},error:function(b,c,e){try{var f=a.parseJSON(b.responseText);f&&f.error&&f.error.message&&d.emitError(f.error.message,f.error.code)}catch(g){d.emitError(null,b&&b.status)}}}),d}}),jive.UserGroupPicker.Source}),define('soy!jive.UserPicker.soy.search',['soyDeps'],function(a){return jive.namespace.call(this,'jive.UserPicker.soy'),jive.UserPicker.soy.search=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('8791ba',[]))),c?'':d.toString()},jive.UserPicker.soy.search}),define('soy!jive.UserPicker.soy.searching',['soyDeps'],function(a){return jive.namespace.call(this,'jive.UserPicker.soy'),jive.UserPicker.soy.searching=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('fd3757',[]))),c?'':d.toString()},jive.UserPicker.soy.searching}),define('soy!jive.UserPicker.soy.renderModalLoading',['soyDeps'],function(a){return jive.namespace.call(this,'jive.UserPicker.soy'),jive.UserPicker.soy.renderModalLoading=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class=\'jive-user-modal-loading\'>',soy.$$escapeHtml(a._i18n('172a83',[])),'</div>'),c?'':d.toString()},jive.UserPicker.soy.renderModalLoading}),define('soy!jive.UserGroupPicker.soy.renderGroupPickerModal',['soyDeps'],function(a){return jive.namespace.call(this,'jive.UserGroupPicker.soy'),jive.UserGroupPicker.soy.renderGroupPickerModal=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="jive-modal" id="user-autocomplete-modal-container" style="display: none;"><header><h2>',soy.$$escapeHtml(a._i18n('cdc8e3',[])),'</h2></header><label class="j-508-label" id="close-modal-508">',soy.$$escapeHtml(a._i18n('a94563',[])),'</label><a href="javascript:;" class="j-modal-close-top close" aria-labelledby="close-modal-508" title="',soy.$$escapeHtml(a._i18n('a94563',[])),'">',soy.$$escapeHtml(a._i18n('0a3236',[])),' <span class="j-close-icon j-ui-elem" role="img"></span></a><section id="group-picker-modal-content" class="jive-modal-content jive-modal-content-userpicker">',soy.$$filterNoAutoescape(b.body),'</section></div>'),c?'':d.toString()},jive.UserGroupPicker.soy.renderGroupPickerModal}),define('apps/usergrouppicker/views/select_usergroups_view',['jquery','jiverscripts/conc/promise','soy!jive.UserPicker.soy.search','soy!jive.UserPicker.soy.searching','soy!jive.UserPicker.soy.renderModalLoading','soy!jive.UserGroupPicker.soy.renderGroupPickerModal','jquery-plugin/jquery.form','jquery-plugin/jquery.lightbox_me','jive/namespace'],function(a,b){return jive.namespace('UserGroupPicker'),jive.UserGroupPicker.SelectGroupsView=function(){function c(a){u.hasOwnProperty(a.groupID)||(u[a.groupID]=a,++t,o(),e(),!s&&k())}function d(){var b=Object.keys(u).join(', #groupChk-');b.length&&(b='#groupChk-'+b),a(b).prop('checked',!0).each(function(){a(this).closest('tr').addClass('selected')})}function e(){var b=[];a.each(u,function(){b.push(this.displayName)}),a('#preview').text(b.join(', '))}function f(b){delete u[b.groupID],--t,o(),e(),a('#groupChk-'+b.groupID).closest('tr').removeClass('selected')}function g(b,c){var d=a(b).data();return c?d[c]:d}function h(){q.delegate('#grouppicker-addGroupsButton','click',function(b){b.preventDefault(),!a(this).hasClass('j-disabled')&&k()}),q.delegate('#group-picker-modal-content a:not([data-action])','click',function(b){b.preventDefault(),l(a(this).attr('href')).addCallback(m)}),q.delegate('#group-picker-modal-content a[data-action=goToPage]','click',function(b){b.preventDefault(),a('#profilesearchform-start').val(a(this).data().page),q.find('form').submit()}),q.delegate('#group-picker-modal-content :checkbox','click',function(){var b=a(this),d=b.closest('.jive-table-cell-checkbox'),e={avatar:a('#'+b.val()+'-avatar').html(),displayName:d.children().not('input').html(),groupID:b.val(),groupName:d.find(':hidden').val()};this.checked?c(e):f(e)}),q.delegate('.grouppicker-sort-link','click',function(b){b.preventDefault(),a('#profilesearchform-sort').val(g(this,'sortType')),a('#profilesearchform').submit()})}function i(){q.find('form').ajaxForm({beforeSubmit:function(b){b.push({name:'selectedGroups',value:j()}),a('#people-search-submit').prop('disabled',!0),a('#people-search-submit').val(jive.UserPicker.soy.searching())},success:function(a){m(a)},error:function(a,b,c){n(a,b,c)}})}function j(){var b=[];return a.each(u,function(a){return b.push(a)}),b.join(',')}function k(){var b=[];a.each(u,function(){b.push(this)}),u={},t=0,q.find('#grouppicker-addGroupsButton').after(jive.UserPicker.soy.renderModalLoading()),p.emit('select',{groups:b})}function l(c){var d=new b;return a.get(c+'&selectedGroups='+j(),d.emitSuccess.bind(d)),d}function m(b){var c=a(jive.UserGroupPicker.soy.renderGroupPickerModal({body:b}));a('#group-picker-modal-content').replaceWith(c.find('#group-picker-modal-content')),o(),e(),d(),i()}function n(b,c,f){a('#people-search-submit').prop('disabled',!1),a('#people-search-submit').val(jive.UserPicker.soy.search()),o(),e(),d(),i()}function o(){var a=t>0?'removeClass':'addClass';q.find('#grouppicker-addGroupsButton')[a]('j-disabled')}var p={},q,r=a(this).closest('.jive-modal:visible'),s=!1,t=0,u={},v=_jive_base_url+'/group-autocomplete-modal.jspa';return p.setOptions=function(a){return s='undefined'!=typeof a.multiple?a.multiple:!1,p},p.open=function(){return a.ajax({url:v,data:{multiple:s},success:function(a){p.render({body:a})}}),p},p.close=function(){return q.find('.close').trigger('click'),p},p.render=function(b){q=a(jive.UserGroupPicker.soy.renderGroupPickerModal(b)),h(),o(),q.lightbox_me({zIndex:300015,destroyOnClose:!0,parentLightbox:r,onLoad:function(){var a=q.find('.jive-body-popup-container-grouppicker');s=g(a,'isMultiple'),i()}})},jive.conc.observable(p),p},jive.UserGroupPicker.SelectGroupsView}),define('jive/ext/y/y_core',['underscore','jive/namespace'],function(a){return jive.namespace('ext.y'),jive.ext.y.HashTable=function(){var b=this,c=0;this.getCount=function(){return c},this.undefined={},this.cache={},this.put=function(a,d){b.clear(a),b.cache[a]=d,c+=1},this.get=function(a){return'undefined'!=typeof b.cache[a]&&b.cache[a]!=b.undefined?b.cache[a]:!1},this.clear=function(a){b.cache[a]!=b.undefined&&null!=b.cache[a]&&(c-=1),b.cache[a]=b.undefined},this.toArray=function(c){return'function'!=typeof c&&(c=function(){return!0}),a.values(b.cache).filter(function(a){return c(a)&&a!=b.undefined&&null!==a})},this.toKeysArray=function(a){return Object.keys(b.cache)}},jive.ext.y.yBottom=function(a,b){if(!(a=jive.ext.x.xGetElementById(a)))return 0;var c=$def(a.style);return c&&$str(a.style.bottom)?$num(b)?a.style.bottom=b+'px':(b=parseInt(a.style.bottom),isNaN(b)&&(b=0)):c&&$def(a.style.pixelBottom)&&($num(b)?a.style.pixelBottom=b:b=a.style.pixelBottom),b},jive.ext.y.yOpacity=function(a,b){if(a=jive.ext.x.xGetElementById(a)){if(jotlet.external.x.xNum(b)){if(b=0>b?0:b>100?100:Math.round(b),jotlet.external.x.xDef(a.style.MozOpacity))return a.style.MozOpacity=b/100,100*a.style.MozOpacity;if(jotlet.external.x.xDef(a.style.opacity))return a.style.opacity=b/100,100*a.style.opacity;if(jotlet.external.x.xStr(a.style.filter))return a.style.filter='alpha(opacity='+b+')',a.yOpacity=b,a.yOpacity}return jotlet.external.x.xDef(a.style.MozOpacity)?100*a.style.MozOpacity:jotlet.external.x.xDef(a.style.opacity)?100*a.style.opacity:jotlet.external.x.xDef(a.filters)&&jotlet.external.x.xDef(a.filters.alpha)&&jotlet.external.x.xDef(a.filters.alpha.opacity)?a.filters.alpha.opacity:void 0}},jive.ext.y}),define('soy!jive.UserGroupPicker.soy.renderModalBrowseButton',['soyDeps'],function(a){return jive.namespace.call(this,'jive.UserGroupPicker.soy'),jive.UserGroupPicker.soy.renderModalBrowseButton=function(b,c){var d=c||new soy.StringBuilder;return d.append('<a href="javascript:;" class="jive-chooser-browse">',b.plural?soy.$$escapeHtml(a._i18n('cdc8e3',[])):soy.$$escapeHtml(a._i18n('a05c2b',[])),'</a>'),c?'':d.toString()},jive.UserGroupPicker.soy.renderModalBrowseButton}),define('soy!jive.UserGroupPicker.soy.renderSelectedGroupsList',['soyDeps'],function(a){return jive.namespace.call(this,'jive.UserGroupPicker.soy'),jive.UserGroupPicker.soy.renderSelectedGroupsList=function(b,c){var d=c||new soy.StringBuilder;if(b.results.groupLists.length>0||b.results.groups.length>0){d.append(b.message?soy.$$filterNoAutoescape(b.message):'','<ul>');for(var e=b.results.groupLists,f=e.length,g=0;f>g;g++){var h=e[g];d.append('<li style="display: list-item;" class="connections d" data-list-id="',soy.$$escapeHtml(h.id),'"><img width="16" height="16" border="0" alt="',soy.$$escapeHtml(h.displayName),'" style="background-color: #',soy.$$escapeHtml(h.style),';" src="',soy.$$escapeHtml(jive.soy.func.resourceUrl('/images/transparent.png')),'" class="lbl jive-icon-med jive-icon-label-frame"><strong>',h.excluded?'<span class="excluded">':'',soy.$$escapeHtml(h.displayName),' <span>(',soy.$$escapeHtml(h.groups.length),')</span>',h.excluded?'</span>':'','</strong><em><a class="showConnections" href="javascript:;">',soy.$$escapeHtml(a._i18n('e21e5d',[])),'</a>',b.disabled?'':' '+(h.excluded?'<a class="add" href="javascript:;">'+soy.$$escapeHtml(a._i18n('6b7580',[]))+'</a>':'<a class="remove" href="javascript:;">'+soy.$$escapeHtml(a._i18n('fbb6e8',[]))+'</a>'),'</em><div class="js-grouped-users-popover">');for(var i=h.groups,j=i.length,k=0;j>k;k++){var l=i[k];d.append(soy.$$escapeHtml(l.displayName),k!=j-1?', ':'')}d.append('</div></li>')}for(var m=b.results.groups,n=m.length,o=0;n>o;o++){var p=m[o];d.append('<li style="display: list-item;" class="',p.disabled?'disabled':'',' ',p.entitled?'':'j-warning','" data-group-id="',soy.$$escapeHtml(p.id),'"><span class="font-color-meta ',p.excluded?'excluded':'','">',soy.$$escapeHtml(p.displayName),' ',b.disabled?'':'<em>('+(p.excluded?'<a class="add" href="javascript:;">'+soy.$$escapeHtml(a._i18n('6b7580',[]))+'</a>':'<a class="remove" href="javascript:;">'+soy.$$escapeHtml(a._i18n('fbb6e8',[]))+'</a>')+')</em>','</span>',p.entitled?'':'<span class="jive-icon-sml jive-icon-warn"></span>','</li>')}d.append('</ul>')}return c?'':d.toString()},jive.UserGroupPicker.soy.renderSelectedGroupsList}),define('soy!jive.UserGroupPicker.soy.renderSelectedGroup',['soyDeps'],function(a){return jive.namespace.call(this,'jive.UserGroupPicker.soy'),jive.UserGroupPicker.soy.renderSelectedGroup=function(b,c){var d=c||new soy.StringBuilder;if(b.results.groups.length>0){d.append('<ul class="jive-chooser-list j-people-list clearfix">');for(var e=b.results.groups,f=e.length,g=0;f>g;g++){var h=e[g];d.append(0==g?'<li style="display: list-item;" class="'+(h.disabled?'disabled':'')+(h.entitled?'':'notEntitled ')+'" data-group-id="'+soy.$$escapeHtml(h.id)+'"><span class="font-color-meta">'+soy.$$escapeHtml(h.displayName)+' '+(b.disabled?'':'<em>(<a class="remove" href="javascript:;" style="display: inline;">'+soy.$$escapeHtml(a._i18n('4e1dbe',[]))+'</a>)</em>')+'</span></li>':'')}d.append('</ul>')}return c?'':d.toString()},jive.UserGroupPicker.soy.renderSelectedGroup}),define('soy!jive.UserGroupPicker.soy.pleaseEnterValidName',['soyDeps'],function(a){return jive.namespace.call(this,'jive.UserGroupPicker.soy'),jive.UserGroupPicker.soy.pleaseEnterValidName=function(b,c){var d=c||new soy.StringBuilder;return d.append('<p class="font-color-meta">',soy.$$escapeHtml(a._i18n('8c18e7',[])),'</p>'),c?'':d.toString()},jive.UserGroupPicker.soy.pleaseEnterValidName}),define('soy!jive.UserGroupPicker.soy.noUserGroupsMatchMessage',['soyDeps'],function(a){return jive.namespace.call(this,'jive.UserGroupPicker.soy'),jive.UserGroupPicker.soy.noUserGroupsMatchMessage=function(b,c){var d=c||new soy.StringBuilder;return d.append('<p class="font-color-meta">',soy.$$escapeHtml(a._i18n('bb44c1',[])),'</p>'),c?'':d.toString()},jive.UserGroupPicker.soy.noUserGroupsMatchMessage}),define('soy!jive.UserGroupPicker.soy.renderGroupsList',['soyDeps'],function(a){return jive.namespace.call(this,'jive.UserGroupPicker.soy'),jive.UserGroupPicker.soy.renderGroupsList=function(b,c){var d=c||new soy.StringBuilder;if(b.results.groupLists.length>0){d.append('<header class="font-color-meta-light">',soy.$$escapeHtml(a._i18n('2beae7',[])),'</header><ul class="j-label-list">');for(var e=b.results.groupLists,f=e.length,g=0;f>g;g++){var h=e[g];d.append('<li class="user-autocomplete-item clearfix"><a href="#" id="userlist_',soy.$$escapeHtml(h.id),'" data-list-id="',soy.$$escapeHtml(h.id),'"><img width="26" height="26" border="0" alt="',soy.$$escapeHtml(h.displayName),'" style="background-color: #',soy.$$escapeHtml(h.style),';" src="',soy.$$escapeHtml(jive.soy.func.resourceUrl('/images/transparent.png')),'" class="lbl jive-icon-med jive-icon-label-frame">',soy.$$escapeHtml(h.displayName),' <span>(',soy.$$escapeHtml(h.groups.length),')</span></a></li>')}d.append('</ul>')}if(b.results.groups.length>0){d.append(b.results.groups.length>0&&b.results.groupLists.length>0?'<header class="font-color-meta-light">'+soy.$$escapeHtml(a._i18n('218aef',[]))+'</header>':'','<ul class="j-people-list">');for(var i=b.results.groups,j=i.length,k=0;j>k;k++){var l=i[k];d.append('<li class="user-autocomplete-item clearfix"><a href="#" id="usergroup_',soy.$$escapeHtml(l.id),'" data-group-id="',soy.$$escapeHtml(l.id),'"><span>',soy.$$escapeHtml(l.displayName),'</span></a></li>')}d.append('</ul>')}return d.append(0==b.results.groups.length&&0==b.results.groupLists.length?soy.$$filterNoAutoescape(b.noResultsMessage):''),c?'':d.toString()},jive.UserGroupPicker.soy.renderGroupsList}),define('apps/usergrouppicker/views/usergrouppicker_view',['jquery','jiverscripts/oo/class','jiverscripts/conc/observable','./select_usergroups_view','jive/rtl','jive/ext/y/y_core','soy!jive.UserGroupPicker.soy.renderModalBrowseButton','soy!jive.UserGroupPicker.soy.renderSelectedGroupsList','soy!jive.UserGroupPicker.soy.renderSelectedGroup','soy!jive.UserGroupPicker.soy.pleaseEnterValidName','soy!jive.UserGroupPicker.soy.noUserGroupsMatchMessage','soy!jive.UserGroupPicker.soy.renderGroupPickerModal','soy!jive.UserGroupPicker.soy.renderGroupsList','jive/namespace'],function(a,b,c,d,e){return jive.namespace('UserGroupPicker'),jive.UserGroupPicker.View=b.extend(function(b){function f(b,c){var d=!1;return a(b).each(function(a,b){d=-1==c.id?d||b.displayName==c.displayName:d||b.id==c.id&&b.objectType==c.objectType}),d}function g(a){return{displayName:a.displayName,id:a.id,enabled:a.enabled,objectType:a.objectType,name:a.name,entitled:a.entitled,avatarID:a.avatarID,excluded:'undefined'!=typeof a.excluded?a.excluded:!1}}function h(b){var c={displayName:b.displayName,id:b.id,objectType:b.objectType,style:b.style,groups:[],excluded:'undefined'!=typeof b.excluded?b.excluded:!1};return a(b.groups).each(function(a,b){c.groups.push(g(b))}),c}function i(a){return'undefined'!=typeof innerShiv?innerShiv(a):a}var j=new d;c(this),this.setSelectedGroups=function(b){b||(b=[]);var c=this;a(b).each(function(a,b){f(c.selectedGroups,b)||c.selectedGroups.push(g(b))});for(var d=0;d<this.selectedGroups.length;d++)f(b,this.selectedGroups[d])||(this.selectedGroups.splice(d,1),d--);this.refreshSelectedGroupsDisplayAndHiddenInput()},this.setSelectedLists=function(b){b||(b=[]);var c=this;a(b).each(function(a,b){f(c.selectedLists,b)||c.selectedLists.push(h(b))});for(var d=0;d<this.selectedLists.length;d++)f(b,this.selectedLists[d])||(this.selectedLists.splice(d,1),d--);this.refreshSelectedGroupsDisplayAndHiddenInput()},this.val=function(){return this.$valueStore.val()},this.init=function(b,c){function d(b){var c=b.groups;if(c.length>0)for(var d=c.length,e=0;e<c.length;e++)a.ajax({url:_jive_base_url+'/__services/v2/rest/groups/'+c[e].groupID,dataType:'json',success:function(a){console.log('success'),d--,a&&!f(n.selectedGroups,a)&&(n.selectedGroups.push(a),n.refreshSelectedGroupsDisplayAndHiddenInput()),0==d&&(j.close(),n.emit('selectedGroupsChanged',{groups:n.selectedGroups,
grouplists:n.selectedLists}))},error:function(){d--,0==d&&(j.close(),n.emit('selectedGroupsChanged',{groups:n.selectedGroups,grouplists:n.selectedLists}))}})}function g(){return j.setOptions(n.options).addListener('select',d).open(),!1}function h(){n.$chooser.find('li.hover').next().length?n.$chooser.find('li.hover').removeClass('hover').next().addClass('hover'):n.$chooser.find('li.hover').parent('ul').nextAll('ul:first').length&&n.$chooser.find('li.hover').removeClass('hover').parent('ul').nextAll('ul:first').find('li:first').addClass('hover')}function i(){n.$chooser.find('li.hover').prev().length?n.$chooser.find('li.hover').removeClass('hover').prev().addClass('hover'):n.$chooser.find('li.hover').parent('ul').prevAll('ul:first').length&&n.$chooser.find('li.hover').removeClass('hover').parent('ul').prevAll('ul:first').find('li:last').addClass('hover')}function k(a){n.$chooser.hide(),a||b.val('')}function l(){return q!=b.val()&&b.val().length?(q=b.val(),n.emit('autocompleteRequest',q)):q.length&&b.val().length&&(n.highlightFirst(),n.$chooser.css(e('left'),n.$input.offset()[e('left')]).css('top',n.$input.offset().top+n.$input.height()+10),n.$chooser.show()),!0}function m(b){switch(b.keyCode){case a.ui.keyCode.UP:return i(),!1;case a.ui.keyCode.DOWN:return h(),!1;case a.ui.keyCode.ENTER:return n.clickTheSelectedGroup(),!1;case a.ui.keyCode.ESCAPE:return k(),!1;case a.ui.keyCode.LEFT:case a.ui.keyCode.RIGHT:case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:return!1}return!0}var n=this;this.$input=b,this.urls={groupAutocomplete:_jive_base_url+'/group-autocomplete.jspa',browseModal:_jive_base_url+'/group-autocomplete-modal.jspa'},this.showNoPicker=!1,this.options=c,this.groupStore=new jive.ext.y.HashTable,this.listStore=new jive.ext.y.HashTable,this.selectedGroups=[],this.selectedLists=[],b.addClass('jive-chooser-input jive-form-textinput-variable'),b.before('<input type=\'hidden\'/>'),this.$valueStore=b.prev(),this.$valueStore.attr('name',b.attr('name')),b.removeAttr('name');var o=a('<div class="jive-chooser-list j-result-list j-people-list j-rc4 clearfix"></div>');b.before(o.hide()),this.$chooser=a('<div class="jive-chooser-autocomplete j-result-list j-rc4"></div>'),a('body').append(this.$chooser.hide());var p=this.options.permissionsMessage;p&&b.before(p.hide()),n.options.groupAllowed&&(n.$browse=a(jive.UserGroupPicker.soy.renderModalBrowseButton({plural:n.options.multiple})),b.after(n.$browse),n.$browse.click(g));var q='';this.refreshSelectedGroupsDisplayAndHiddenInput=function(){var c=[],d=[],e=!0;a(n.selectedGroups).each(function(a,b){e=e&&b.entitled,f(c,b)||b.excluded||(c.push(b),-1==b.id?d.push(b.name):n.options.valueIsUserGroupName?d.push(b.name):d.push(b.id))}),a(n.selectedLists).each(function(b,g){g.excluded||a(g.groups).each(function(a,b){e=e&&b.entitled,f(c,b)||(c.push(b),-1==b.id?d.push(b.name):n.options.valueIsUserGroupName?d.push(b.name):d.push(b.id))})}),p&&(e?p.hide():p.show()),this.$valueStore.val(d.join(',')),n.selectedLists.length||n.selectedGroups.length?(n.options.multiple?o.html(jive.UserGroupPicker.soy.renderSelectedGroupsList({results:{groups:n.selectedGroups,groupLists:n.selectedLists},message:n.options.message,disabled:n.options.disabled})).show():(o.html(jive.UserGroupPicker.soy.renderSelectedGroup({results:{groups:n.selectedGroups,groupLists:n.selectedLists},disabled:n.options.disabled})).show(),n.selectedGroups.length&&(b.hide(),n.$browse.hide())),o.find('li').each(function(){function b(a){return function(){var b=c.attr('data-list-id');b&&(n.showNoPicker?n.selectedGroupLists=n.selectedGroupLists.map(function(c){return c.id==b&&(c.excluded=a),c}):n.selectedGroupLists=n.selectedGroupLists.filter(function(a){return a.id!=b}));var d=c.attr('data-group-id');if(d&&-1!=d)n.showNoPicker?n.selectedGroups=n.selectedGroups.map(function(b){return b.id==d&&(b.excluded=a),b}):n.selectedGroups=n.selectedGroups.filter(function(a){return a.id!=d});else{var e=c.attr('data-group-name');e&&(n.selectedGroups=n.selectedGroups.filter(function(a){return a.name!=e}))}n.emit('selectedGroupsChanged',{groups:n.selectedGroups,groupLists:n.selectedLists}),n.refreshSelectedGroupsDisplayAndHiddenInput()}}var c=a(this);c.find('a.showConnections').click(function(){return c.find('.js-grouped-users-popover').popover({context:a(this),putBack:!0,hoverSelection:!0,destroyOnClose:!1,container:o.closest('.j-modal')}),!1}),c.find('em a.add').click(b(!1)),c.find('em a.remove').click(b(!0))})):(o.html(''),o.hide(),n.show())},this.clickTheSelectedGroup=function(){var a=n.$chooser.find('li.hover a').attr('data-group-id'),c=n.$chooser.find('li.hover a').attr('data-list-id');if(n.$chooser.val(''),a){var d=n.groupStore.get(a);d&&!f(n.selectedGroups,d)&&(n.selectedGroups.push(d),n.emit('selectedGroupsChanged',{groups:n.selectedGroups,groupLists:n.selectedLists}))}else if(c){var e=n.listStore.get(c);e&&!f(n.selectedLists,e)&&(n.selectedLists.push(e),n.emit('selectedGroupsChanged',{groups:n.selectedGroups,groupLists:n.selectedLists}))}b.focus(),n.refreshSelectedGroupsDisplayAndHiddenInput(),k()},this.highlightRow=function(a){n.$chooser.find('li.hover').removeClass('hover'),a.addClass('hover')},this.highlightFirst=function(){n.$chooser.find('li.hover').removeClass('hover'),n.$chooser.find('li:first').addClass('hover')};var r=!0;b.keydown(function(a){return r=m(a)}).keypress(function(){return r}).keyup(function(a){return r&&l(),r}),b.blur(function(){setTimeout(function(){k(!0)},250)}).focus(function(){l()}),this.setSelectedGroups(n.options.startingGroups.groups),this.setSelectedLists(n.options.startingGroups.groupLists)},this.setDisabled=function(a){this.options.disabled=a,this.refreshSelectedGroupsDisplayAndHiddenInput()},this.hide=function(){this.$input.hide(),this.$browse&&this.$browse.hide()},this.show=function(){this.showNoPicker?this.hide():(this.$input.show(),this.$browse&&this.$browse.show())},this.setNoPicker=function(a){this.showNoPicker=a,this.show()},this.autocompleteResponse=function(b){var c=this;a(b.groups).each(function(a,b){c.groupStore.put(b.id,b)}),a(b.groupLists).each(function(a,b){c.listStore.put(b.id,b)});var d;d=this.options.groupAllowed||this.options.listAllowed?jive.UserGroupPicker.soy.noUserGroupsMatchMessage():jive.UserGroupPicker.soy.pleaseEnterValidName(),this.$chooser.html(jive.UserGroupPicker.soy.renderGroupsList({results:b,noResultsMessage:d})).show(),this.$chooser.css(e('left'),this.$input.offset()[e('left')]).css('top',this.$input.offset().top+this.$input.height()+10),this.highlightFirst(),this.$chooser.find('a').mouseover(function(){c.highlightRow(a(this).parent('li'))}).click(function(){return c.clickTheSelectedGroup(),!1})}}),jive.UserGroupPicker.View}),define('apps/usergrouppicker/main',['jquery','jiverscripts/oo/class','jiverscripts/conc/observable','./models/usergrouppicker_source','./views/usergrouppicker_view'],function(a,b,c,d,e){return jive.namespace('UserGroupPicker'),jive.UserGroupPicker.Main=b.extend(function(b){c(this),this.init=function(b){var c=this,f={startingGroups:{groups:[],groupLists:[]},multiple:!1,groupAllowed:!0,listAllowed:!1,disabled:!1,valueIsUserGroupName:!1,document:a(document),object:null,entitlement:'VIEW',$input:null,existingModal:{modalContainer:'',prevContainer:'',browseContainer:''}};c.options=a.extend(f,b),c.options.view||(c.options.view=new e(c.options.$input,c.options)),c.options.model||(c.options.model=new d(c.options)),this.options.view.addListener('autocompleteRequest',function(a){c.options.model.autocomplete(a).addCallback(function(a){'object'==typeof a&&c.options.view.autocompleteResponse(a)})}),this.options.view.addListener('selectedUserGroupsChanged',function(a){c.emit('selectedUserGroupsChanged',a)}),this.options.view.addListener('selectedGroupsChanged',function(a){c.emit('selectedGroupsChanged',a)})},this.setDisabled=function(a){this.options.view.setDisabled(a)},this.setUserGroups=function(a){this.options.view.setSelectedGroups(a)},this.setLists=function(a){this.options.view.setSelectedLists(a)},this.hide=function(){this.options.view.hide()},this.show=function(){this.options.view.show()},this.val=function(){return this.options.view.val()},this.setNoPicker=function(a){this.options.view.setNoPicker(a)},this.reset=function(){this.options.view.setSelectedGroups(this.options.startingGroups.groups),this.options.view.setSelectedLists(this.options.startingGroups.groupLists)}}),jive.UserGroupPicker.Main}),define('apps/video/vars',{videos:{},enableAutoResize:!0,fixedPlayerSize:!1,fixedWidth:void 0,fixedHeight:void 0,lastAutoplay:!1,lastWatermark:!1,enterKeyCode:13,arrowUpKeyCode:38,arrowDownKeyCode:40}),define('apps/video/channel',['jquery','underscore','channel!video','url','./vars'],function(a,b,c,d,e){'use strict';return c.reply('thumbnail:getUrl',function(b,d){var e=a.Deferred();return require(['apps/video/helpers/thumbnail'],function(a){c.request('video:load',b,d).then(function(b){a(b).then(e.resolve,e.reject)})}),e.promise()}),c.reply('thumbnail:render',function(b,d,e){return c.request('thumbnail:getUrl',d,e).then(function(c){return c&&a('img','#'+b).attr('src',c.replace('http://','//')),c})}),c.reply('video:fetch',function(b,c){var e=a.Deferred();return a.ajax({type:'GET',url:d.v2Url('/videos/'+b,c),dataType:'json',success:function(a){const b='jive'===a.videoType.toLowerCase()||'embedded'===a.videoType.toLowerCase();b||a.authtoken?e.resolve(a):e.reject('No authtoken detected')},error:function(a){e.reject()}}),e.promise()}),c.reply('video:load',function(d,f){return d in e.videos?a.Deferred().resolve(e.videos[d]).promise():c.request('video:fetch',d,b.pick(f,'objectID','objectType')).then(function(c){var g=b.pick(f,'autoplay','height','width');return g.width>0&&(g.setSizes=!0),c=a.extend({videoID:d},g,c),e.videos[d]=c,c})}),c.reply('browse:mount',function(b){var c=a.Deferred();return require(['apps/video/helpers/mount'],function(a){a.browse(b).then(c.resolve,c.reject)}),c.promise()}),c.reply('create:mount',function(b){var c=a.Deferred();return require(['apps/video/helpers/mount'],function(a){a.create(b).then(c.resolve,c.reject)}),c.promise()}),c}),define('global/window',[],function(){return window}),define('global/document',['global/window'],function(a){return a.document}),function(a,b){'object'==typeof exports&&'undefined'!=typeof module?module.exports=b(require('global/window'),require('global/document')):'function'==typeof define&&define.amd?define('videojs',['global/window','global/document'],b):(a=a||self,a.videojs=b(a.window,a.document))}(this,function(a,b){function c(a){var b='info',d,e=function f(){for(var a=arguments.length,c=new Array(a),e=0;a>e;e++)c[e]=arguments[e];d('log',b,c)};return d=yb(a,e),e.createLogger=function(b){return c(a+': '+b)},e.levels={all:'debug|log|warn|error',off:'',debug:'debug|log|warn|error',info:'log|warn|error',warn:'warn|error',error:'error',DEFAULT:b},e.level=function(a){if('string'==typeof a){if(!e.levels.hasOwnProperty(a))throw new Error("\""+a+"\" in not a valid log level");b=a}return b},e.history=function(){return xb?[].concat(xb):[]},e.history.filter=function(a){return(xb||[]).filter(function(b){return new RegExp(".*"+a+".*").test(b[0])})},e.history.clear=function(){xb&&(xb.length=0)},e.history.disable=function(){null!==xb&&(xb.length=0,xb=null)},e.history.enable=function(){null===xb&&(xb=[])},e.error=function(){for(var a=arguments.length,c=new Array(a),e=0;a>e;e++)c[e]=arguments[e];return d('error',b,c)},e.warn=function(){for(var a=arguments.length,c=new Array(a),e=0;a>e;e++)c[e]=arguments[e];return d('warn',b,c)},e.debug=function(){for(var a=arguments.length,c=new Array(a),e=0;a>e;e++)c[e]=arguments[e];return d('debug',b,c)},e}function d(a,b){Cb(a).forEach(function(c){return b(a[c],c)})}function e(a,b,c){return void 0===c&&(c=0),Cb(a).reduce(function(c,d){return b(c,a[d],d)},c)}function f(a){for(var b=arguments.length,c=new Array(b>1?b-1:0),e=1;b>e;e++)c[e-1]=arguments[e];return Object.assign?Object.assign.apply(Object,[a].concat(c)):(c.forEach(function(b){b&&d(b,function(b,c){a[c]=b})}),a)}function g(a){return!!a&&'object'==typeof a}function h(a){return g(a)&&'[object Object]'===Bb.call(a)&&a.constructor===Object}function i(b,c){if(!b||!c)return'';if('function'==typeof a.getComputedStyle){var d=a.getComputedStyle(b);return d?d.getPropertyValue(c)||d[c]:''}return''}function j(a){return'string'==typeof a&&/\S/.test(a)}function k(a){if(/\s/.test(a))throw new Error('class has illegal whitespace characters')}function l(a){return new RegExp('(^|\\s)'+a+'($|\\s)')}function m(){return b===a.document}function n(a){return g(a)&&1===a.nodeType}function o(){try{return a.parent!==a.self}catch(b){return!0}}function p(a){return function(c,d){if(!j(c))return b[a](null);j(d)&&(d=b.querySelector(d));var e=n(d)?d:b;return e[a]&&e[a](c)}}function q(a,c,d,e){void 0===a&&(a='div'),void 0===c&&(c={}),void 0===d&&(d={});var f=b.createElement(a);return Object.getOwnPropertyNames(c).forEach(function(a){var b=c[a];-1!==a.indexOf('aria-')||'role'===a||'type'===a?(zb.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\n"+("createEl(type, properties, attributes). Attempting to set "+a+" to "+b+".")),f.setAttribute(a,b)):'textContent'===a?r(f,b):f[a]=b}),Object.getOwnPropertyNames(d).forEach(function(a){f.setAttribute(a,d[a])}),e&&K(f,e),f}function r(a,b){return'undefined'==typeof a.textContent?a.innerText=b:a.textContent=b,a}function s(a,b){b.firstChild?b.insertBefore(a,b.firstChild):b.appendChild(a)}function t(a,b){return k(b),a.classList?a.classList.contains(b):l(b).test(a.className)}function u(a,b){return a.classList?a.classList.add(b):t(a,b)||(a.className=(a.className+' '+b).trim()),a}function v(a,b){return a.classList?a.classList.remove(b):(k(b),a.className=a.className.split(/\s+/).filter(function(a){return a!==b}).join(' ')),a}function w(a,b,c){var d=t(a,b);return'function'==typeof c&&(c=c(a,b)),'boolean'!=typeof c&&(c=!d),c!==d?(c?u(a,b):v(a,b),a):void 0}function x(a,b){Object.getOwnPropertyNames(b).forEach(function(c){var d=b[c];null===d||'undefined'==typeof d||d===!1?a.removeAttribute(c):a.setAttribute(c,d===!0?'':d)})}function y(a){var b={},c=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(a&&a.attributes&&a.attributes.length>0)for(var d=a.attributes,e=d.length-1;e>=0;e--){var f=d[e].name,g=d[e].value;'boolean'!=typeof a[f]&&-1===c.indexOf(','+f+',')||(g=null!==g),b[f]=g}return b}function z(a,b){return a.getAttribute(b)}function A(a,b,c){a.setAttribute(b,c)}function B(a,b){a.removeAttribute(b)}function C(){b.body.focus(),b.onselectstart=function(){return!1}}function D(){b.onselectstart=function(){return!0}}function E(a){if(a&&a.getBoundingClientRect&&a.parentNode){var b=a.getBoundingClientRect(),c={};return['bottom','height','left','right','top','width'].forEach(function(a){void 0!==b[a]&&(c[a]=b[a])}),c.height||(c.height=parseFloat(i(a,'height'))),c.width||(c.width=parseFloat(i(a,'width'))),c}}function F(c){var d;if(c.getBoundingClientRect&&c.parentNode&&(d=c.getBoundingClientRect()),!d)return{left:0,top:0};var e=b.documentElement,f=b.body,g=e.clientLeft||f.clientLeft||0,h=a.pageXOffset||f.scrollLeft,i=d.left+h-g,j=e.clientTop||f.clientTop||0,k=a.pageYOffset||f.scrollTop,l=d.top+k-j;return{left:Math.round(i),top:Math.round(l)}}function G(a,b){var c={},d=F(a),e=a.offsetWidth,f=a.offsetHeight,g=d.top,h=d.left,i=b.pageY,j=b.pageX;return b.changedTouches&&(j=b.changedTouches[0].pageX,i=b.changedTouches[0].pageY),c.y=Math.max(0,Math.min(1,(g-i+f)/f)),c.x=Math.max(0,Math.min(1,(j-h)/e)),c}function H(a){return g(a)&&3===a.nodeType}function I(a){for(;a.firstChild;)a.removeChild(a.firstChild);return a}function J(a){return'function'==typeof a&&(a=a()),(Array.isArray(a)?a:[a]).map(function(a){return'function'==typeof a&&(a=a()),n(a)||H(a)?a:'string'==typeof a&&/\S/.test(a)?b.createTextNode(a):void 0}).filter(function(a){return a})}function K(a,b){return J(b).forEach(function(b){return a.appendChild(b)}),a}function L(a,b){return K(I(a),b)}function M(a){return void 0===a.button&&void 0===a.buttons?!0:0===a.button&&void 0===a.buttons?!0:'mouseup'===a.type&&0===a.button&&0===a.buttons?!0:0===a.button&&1===a.buttons}function N(b,c){c&&(Hb=c),a.setTimeout(Ib,b)}function O(){Gb=!0,a.removeEventListener('load',O)}function P(){return Mb++}function Q(a,b){if(Ob.has(a)){var c=Ob.get(a);0===c.handlers[b].length&&(delete c.handlers[b],a.removeEventListener?a.removeEventListener(b,c.dispatcher,!1):a.detachEvent&&a.detachEvent('on'+b,c.dispatcher)),Object.getOwnPropertyNames(c.handlers).length<=0&&(delete c.handlers,delete c.dispatcher,delete c.disabled),0===Object.getOwnPropertyNames(c).length&&Ob["delete"](a)}}function R(a,b,c,d){c.forEach(function(c){a(b,c,d)})}function S(c){function d(){return!0}function e(){return!1}if(!c||!c.isPropagationStopped){var f=c||a.event;c={};for(var g in f)'layerX'!==g&&'layerY'!==g&&'keyLocation'!==g&&'webkitMovementX'!==g&&'webkitMovementY'!==g&&('returnValue'===g&&f.preventDefault||(c[g]=f[g]));if(c.target||(c.target=c.srcElement||b),c.relatedTarget||(c.relatedTarget=c.fromElement===c.target?c.toElement:c.fromElement),c.preventDefault=function(){f.preventDefault&&f.preventDefault(),c.returnValue=!1,f.returnValue=!1,c.defaultPrevented=!0},c.defaultPrevented=!1,c.stopPropagation=function(){f.stopPropagation&&f.stopPropagation(),c.cancelBubble=!0,f.cancelBubble=!0,c.isPropagationStopped=d},c.isPropagationStopped=e,c.stopImmediatePropagation=function(){f.stopImmediatePropagation&&f.stopImmediatePropagation(),c.isImmediatePropagationStopped=d,c.stopPropagation()},c.isImmediatePropagationStopped=e,null!==c.clientX&&void 0!==c.clientX){var h=b.documentElement,i=b.body;c.pageX=c.clientX+(h&&h.scrollLeft||i&&i.scrollLeft||0)-(h&&h.clientLeft||i&&i.clientLeft||0),c.pageY=c.clientY+(h&&h.scrollTop||i&&i.scrollTop||0)-(h&&h.clientTop||i&&i.clientTop||0)}c.which=c.charCode||c.keyCode,null!==c.button&&void 0!==c.button&&(c.button=1&c.button?0:4&c.button?1:2&c.button?2:0)}return c}function T(a,b,c){if(Array.isArray(b))return R(T,a,b,c);Ob.has(a)||Ob.set(a,{});var d=Ob.get(a);if(d.handlers||(d.handlers={}),d.handlers[b]||(d.handlers[b]=[]),c.guid||(c.guid=P()),d.handlers[b].push(c),d.dispatcher||(d.disabled=!1,d.dispatcher=function(b,c){if(!d.disabled){b=S(b);var e=d.handlers[b.type];if(e)for(var f=e.slice(0),g=0,h=f.length;h>g&&!b.isImmediatePropagationStopped();g++)try{f[g].call(a,b,c)}catch(i){zb.error(i)}}}),1===d.handlers[b].length)if(a.addEventListener){var e=!1;Pb&&Qb.indexOf(b)>-1&&(e={passive:!0}),a.addEventListener(b,d.dispatcher,e)}else a.attachEvent&&a.attachEvent('on'+b,d.dispatcher)}function U(a,b,c){if(Ob.has(a)){var d=Ob.get(a);if(d.handlers){if(Array.isArray(b))return R(U,a,b,c);var e=function i(a,b){d.handlers[b]=[],Q(a,b)};if(void 0!==b){var f=d.handlers[b];if(f){if(!c)return e(a,b),void 0;if(c.guid)for(var g=0;g<f.length;g++)f[g].guid===c.guid&&f.splice(g--,1);Q(a,b)}}else for(var h in d.handlers)Object.prototype.hasOwnProperty.call(d.handlers||{},h)&&e(a,h)}}}function V(a,b,c){var d=Ob.has(a)?Ob.get(a):{},e=a.parentNode||a.ownerDocument;if('string'==typeof b?b={type:b,target:a}:b.target||(b.target=a),b=S(b),d.dispatcher&&d.dispatcher.call(a,b,c),e&&!b.isPropagationStopped()&&b.bubbles===!0)V.call(null,e,b,c);else if(!e&&!b.defaultPrevented&&b.target&&b.target[b.type]){Ob.has(b.target)||Ob.set(b.target,{});var f=Ob.get(b.target);b.target[b.type]&&(f.disabled=!0,'function'==typeof b.target[b.type]&&b.target[b.type](),f.disabled=!1)}return!b.defaultPrevented}function W(a,b,c){if(Array.isArray(b))return R(W,a,b,c);var d=function e(){U(a,b,e),c.apply(this,arguments)};d.guid=c.guid=c.guid||P(),T(a,b,d)}function X(a,b,c){var d=function e(){U(a,b,e),c.apply(this,arguments)};d.guid=c.guid=c.guid||P(),T(a,b,d)}function Y(b,c){void 0===c&&(c={});var d=c,e=d.eventBusKey;if(e){if(!b[e].nodeName)throw new Error("The eventBusKey \""+e+"\" does not refer to an element.");b.eventBusEl_=b[e]}else b.eventBusEl_=q('span',{className:'vjs-event-bus'});return f(b,ec),b.eventedCallbacks&&b.eventedCallbacks.forEach(function(a){a()}),b.on('dispose',function(){b.off(),a.setTimeout(function(){b.eventBusEl_=null},0)}),b}function Z(a,b){return f(a,fc),a.state=f({},a.state,b),'function'==typeof a.handleStateChanged&&Yb(a)&&a.on('statechanged',a.handleStateChanged),a}function $(){for(var a={},b=arguments.length,c=new Array(b),e=0;b>e;e++)c[e]=arguments[e];return c.forEach(function(b){b&&d(b,function(b,c){return h(b)?(h(a[c])||(a[c]={}),a[c]=$(a[c],b),void 0):(a[c]=b,void 0)})}),a}function _(a,b){a.prototype=Object.create(b.prototype),a.prototype.constructor=a,a.__proto__=b}function aa(a,b){return aa=Object.setPrototypeOf||function c(a,b){return a.__proto__=b,a},aa(a,b)}function ba(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(a){return!1}}function ca(a,b,c){return ca=ba()?Reflect.construct:function d(a,b,c){var d=[null];d.push.apply(d,b);var e=Function.bind.apply(a,d),f=new e;return c&&aa(f,c.prototype),f},ca.apply(null,arguments)}function da(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function ea(a,b,c){if('number'!=typeof b||0>b||b>c)throw new Error("Failed to execute '"+a+"' on 'TimeRanges': The index provided ("+b+") is non-numeric or out of bounds (0-"+c+").")}function fa(a,b,c,d){return ea(a,d,c.length-1),c[d][b]}function ga(a){return void 0===a||0===a.length?{length:0,start:function b(){throw new Error('This TimeRanges object is empty')},end:function c(){throw new Error('This TimeRanges object is empty')}}:{length:a.length,start:fa.bind(null,'start',0,a),end:fa.bind(null,'end',1,a)}}function ha(a,b){return Array.isArray(a)?ga(a):void 0===a||void 0===b?ga():ga([[a,b]])}function ia(a,b){var c=0,d,e;if(!b)return 0;a&&a.length||(a=ha(0,0));for(var f=0;f<a.length;f++)d=a.start(f),e=a.end(f),e>b&&(e=b),c+=e-d;return c/b}function ja(a){return a instanceof ja?a:('number'==typeof a?this.code=a:'string'==typeof a?this.message=a:g(a)&&('number'==typeof a.code&&(this.code=a.code),f(this,a)),this.message||(this.message=ja.defaultMessages[this.code]||''),void 0)}function ka(a,b){var c,d=null;try{c=JSON.parse(a,b)}catch(e){d=e}return[d,c]}function la(a){return void 0!==a&&null!==a&&'function'==typeof a.then}function ma(a){la(a)&&a.then(null,function(a){})}function na(a,b){return b={exports:{}},a(b,b.exports),b.exports}function oa(a){var b=rd.call(a);return'[object Function]'===b||'function'==typeof a&&'[object RegExp]'!==b||'undefined'!=typeof window&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}function pa(){for(var a={},b=0;b<arguments.length;b++){var c=arguments[b];for(var d in c)df.call(c,d)&&(a[d]=c[d])}return a}function qa(a,b){for(var c=0;c<a.length;c++)b(a[c])}function ra(a){for(var b in a)if(a.hasOwnProperty(b))return!1;return!0}function sa(a,b,c){var d=a;return qd(b)?(c=b,"string"==typeof a&&(d={uri:a})):d=cf(b,{uri:a}),d.callback=c,d}function ta(a,b,c){return b=sa(a,b,c),ua(b)}function ua(a){function b(){4===h.readyState&&setTimeout(e,0)}function c(){var a=void 0;if(a=h.response?h.response:h.responseText||va(h),p)try{a=JSON.parse(a)}catch(b){}return a}function d(a){return clearTimeout(q),a instanceof Error||(a=new Error(""+(a||"Unknown XMLHttpRequest Error"))),a.statusCode=0,g(a,r)}function e(){if(!j){var b;clearTimeout(q),b=a.useXDR&&void 0===h.status?200:1223===h.status?204:h.status;var d=r,e=null;return 0!==b?(d={body:c(),statusCode:b,method:l,headers:{},url:k,rawRequest:h},h.getAllResponseHeaders&&(d.headers=bf(h.getAllResponseHeaders()))):e=new Error("Internal XMLHttpRequest Error"),g(e,d,d.body)}}if("undefined"==typeof a.callback)throw new Error("callback argument missing");var f=!1,g=function s(b,c,d){f||(f=!0,a.callback(b,c,d))},h=a.xhr||null;h||(h=a.cors||a.useXDR?new ta.XDomainRequest:new ta.XMLHttpRequest);var i,j,k=h.url=a.uri||a.url,l=h.method=a.method||"GET",m=a.body||a.data,n=h.headers=a.headers||{},o=!!a.sync,p=!1,q,r={body:void 0,headers:{},statusCode:0,method:l,url:k,rawRequest:h};if("json"in a&&a.json!==!1&&(p=!0,n.accept||n.Accept||(n.Accept="application/json"),"GET"!==l&&"HEAD"!==l&&(n["content-type"]||n["Content-Type"]||(n["Content-Type"]="application/json"),m=JSON.stringify(a.json===!0?m:a.json))),h.onreadystatechange=b,h.onload=e,h.onerror=d,h.onprogress=function(){},h.onabort=function(){j=!0},h.ontimeout=d,h.open(l,k,!o,a.username,a.password),o||(h.withCredentials=!!a.withCredentials),!o&&a.timeout>0&&(q=setTimeout(function(){if(!j){j=!0,h.abort("timeout");var a=new Error("XMLHttpRequest timeout");a.code="ETIMEDOUT",d(a)}},a.timeout)),h.setRequestHeader)for(i in n)n.hasOwnProperty(i)&&h.setRequestHeader(i,n[i]);else if(a.headers&&!ra(a.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in a&&(h.responseType=a.responseType),"beforeSend"in a&&"function"==typeof a.beforeSend&&a.beforeSend(h),h.send(m||null),h}function va(a){if("document"===a.responseType)return a.responseXML;var b=a.responseXML&&"parsererror"===a.responseXML.documentElement.nodeName;return""!==a.responseType||b?null:a.responseXML}function wa(){}function xa(a,b){this.name="ParsingError",this.code=a.code,this.message=b||a.message}function ya(a){function b(a,b,c,d){return 3600*(0|a)+60*(0|b)+(0|c)+(0|d)/1e3}var c=a.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return c?c[3]?b(c[1],c[2],c[3].replace(":",""),c[4]):c[1]>59?b(c[1],c[2],0,c[4]):b(0,c[1],c[2],c[4]):null}function za(){this.values=tf(null)}function Aa(a,b,c,d){var e=d?a.split(d):[a];for(var f in e)if("string"==typeof e[f]){var g=e[f].split(c);if(2===g.length){var h=g[0],i=g[1];b(h,i)}}}function Ba(a,b,c){function d(){var b=ya(a);if(null===b)throw new xa(xa.Errors.BadTimeStamp,"Malformed timestamp: "+g);return a=a.replace(/^[^\sa-zA-Z-]+/,""),b}function e(a,b){var d=new za;Aa(a,function(a,b){switch(a){case"region":for(var e=c.length-1;e>=0;e--)if(c[e].id===b){d.set(a,c[e].region);break}break;case"vertical":d.alt(a,b,["rl","lr"]);break;case"line":var f=b.split(","),g=f[0];d.integer(a,g),d.percent(a,g)?d.set("snapToLines",!1):null,d.alt(a,g,["auto"]),2===f.length&&d.alt("lineAlign",f[1],["start","middle","end"]);break;case"position":f=b.split(","),d.percent(a,f[0]),2===f.length&&d.alt("positionAlign",f[1],["start","middle","end"]);break;case"size":d.percent(a,b);break;case"align":d.alt(a,b,["start","middle","end","left","right"])}},/:/,/\s/),b.region=d.get("region",null),b.vertical=d.get("vertical",""),b.line=d.get("line","auto"),b.lineAlign=d.get("lineAlign","start"),b.snapToLines=d.get("snapToLines",!0),b.size=d.get("size",100),b.align=d.get("align","middle"),b.position=d.get("position",{start:0,left:0,middle:50,end:100,right:100},b.align),b.positionAlign=d.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},b.align)}function f(){a=a.replace(/^\s+/,"")}var g=a;if(f(),b.startTime=d(),f(),"-->"!==a.substr(0,3))throw new xa(xa.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+g);a=a.substr(3),f(),b.endTime=d(),f(),e(a,b)}function Ca(a,b){function c(){function a(a){return b=b.substr(a.length),a}if(!b)return null;var c=b.match(/^([^<]*)(<[^>]*>?)?/);return a(c[1]?c[1]:c[2])}function d(a){return uf[a]}function e(a){for(;n=a.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)a=a.replace(n[0],d);return a}function f(a,b){return!xf[b.localName]||xf[b.localName]===a.localName}function g(b,c){var d=vf[b];if(!d)return null;var e=a.document.createElement(d);e.localName=d;var f=wf[b];return f&&c&&(e[f]=c.trim()),e}for(var h=a.document.createElement("div"),i=h,j,k=[];null!==(j=c());)if('<'!==j[0])i.appendChild(a.document.createTextNode(e(j)));else{if("/"===j[1]){k.length&&k[k.length-1]===j.substr(2).replace(">","")&&(k.pop(),i=i.parentNode);continue}var l=ya(j.substr(1,j.length-2)),m;if(l){m=a.document.createProcessingInstruction("timestamp",l),i.appendChild(m);continue}var n=j.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!n)continue;if(m=g(n[1],n[3]),!m)continue;if(!f(i,m))continue;n[2]&&(m.className=n[2].substr(1).replace('.',' ')),k.push(n[1]),i.appendChild(m),i=m}return h}function Da(a){for(var b=0;b<yf.length;b++){var c=yf[b];if(a>=c[0]&&a<=c[1])return!0}return!1}function Ea(a){function b(a,b){for(var c=b.childNodes.length-1;c>=0;c--)a.push(b.childNodes[c])}function c(a){if(!a||!a.length)return null;var d=a.pop(),e=d.textContent||d.innerText;if(e){var f=e.match(/^.*(\n|\r)/);return f?(a.length=0,f[0]):e}return"ruby"===d.tagName?c(a):d.childNodes?(b(a,d),c(a)):void 0}var d=[],e="",f;if(!a||!a.childNodes)return"ltr";for(b(d,a);e=c(d);)for(var g=0;g<e.length;g++)if(f=e.charCodeAt(g),Da(f))return"rtl";return"ltr"}function Fa(a){if("number"==typeof a.line&&(a.snapToLines||a.line>=0&&a.line<=100))return a.line;if(!a.track||!a.track.textTrackList||!a.track.textTrackList.mediaElement)return-1;for(var b=a.track,c=b.textTrackList,d=0,e=0;e<c.length&&c[e]!==b;e++)"showing"===c[e].mode&&d++;return-1*++d}function Ga(){}function Ha(a,b,c){Ga.call(this),this.cue=b,this.cueDiv=Ca(a,b.text);var d={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===b.vertical?"horizontal-tb":"lr"===b.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(d,this.cueDiv),this.div=a.document.createElement("div"),d={direction:Ea(this.cueDiv),writingMode:""===b.vertical?"horizontal-tb":"lr"===b.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===b.align?"center":b.align,font:c.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(d),this.div.appendChild(this.cueDiv);var e=0;switch(b.positionAlign){case"start":e=b.position;break;case"middle":e=b.position-b.size/2;break;case"end":e=b.position-b.size}""===b.vertical?this.applyStyles({left:this.formatStyle(e,"%"),width:this.formatStyle(b.size,"%")}):this.applyStyles({top:this.formatStyle(e,"%"),height:this.formatStyle(b.size,"%")}),this.move=function(a){this.applyStyles({top:this.formatStyle(a.top,"px"),bottom:this.formatStyle(a.bottom,"px"),left:this.formatStyle(a.left,"px"),right:this.formatStyle(a.right,"px"),height:this.formatStyle(a.height,"px"),width:this.formatStyle(a.width,"px")})}}function Ia(a){var b,c,d,e;if(a.div){c=a.div.offsetHeight,d=a.div.offsetWidth,e=a.div.offsetTop;var f=(f=a.div.childNodes)&&(f=f[0])&&f.getClientRects&&f.getClientRects();a=a.div.getBoundingClientRect(),b=f?Math.max(f[0]&&f[0].height||0,a.height/f.length):0}this.left=a.left,this.right=a.right,this.top=a.top||e,this.height=a.height||c,this.bottom=a.bottom||e+(a.height||c),this.width=a.width||d,this.lineHeight=void 0!==b?b:a.lineHeight}function Ja(a,b,c,d){function e(a,b){for(var e,f=new Ia(a),g=1,h=0;h<b.length;h++){for(;a.overlapsOppositeAxis(c,b[h])||a.within(c)&&a.overlapsAny(d);)a.move(b[h]);if(a.within(c))return a;var i=a.intersectPercentage(c);g>i&&(e=new Ia(a),g=i),a=new Ia(f)}return e||f}var f=new Ia(b),g=b.cue,h=Fa(g),i=[];if(g.snapToLines){var j;switch(g.vertical){case"":i=["+y","-y"],j="height";break;case"rl":i=["+x","-x"],j="width";break;case"lr":i=["-x","+x"],j="width"}var k=f.lineHeight,l=k*Math.round(h),m=c[j]+k,n=i[0];Math.abs(l)>m&&(l=0>l?-1:1,l*=Math.ceil(m/k)*k),0>h&&(l+=""===g.vertical?c.height:c.width,i=i.reverse()),f.move(n,l)}else{var o=f.lineHeight/c.height*100;switch(g.lineAlign){case"middle":h-=o/2;break;case"end":h-=o}switch(g.vertical){case"":b.applyStyles({top:b.formatStyle(h,"%")});break;case"rl":b.applyStyles({left:b.formatStyle(h,"%")});break;case"lr":b.applyStyles({right:b.formatStyle(h,"%")})}i=["+y","-x","+x","-y"],f=new Ia(b)}var p=e(f,i);b.move(p.toCSSCompatValues(c))}function Ka(){}function La(a){if("string"!=typeof a)return!1;var b=Ef[a.toLowerCase()];return b?a.toLowerCase():!1;
}function Ma(a){if("string"!=typeof a)return!1;var b=Ff[a.toLowerCase()];return b?a.toLowerCase():!1}function Na(a,b,c){this.hasBeenReset=!1;var d="",e=!1,f=a,g=b,h=c,i=null,j="",k=!0,l="auto",m="start",n=50,o="middle",p=50,q="middle";Object.defineProperties(this,{id:{enumerable:!0,get:function r(){return d},set:function s(a){d=""+a}},pauseOnExit:{enumerable:!0,get:function t(){return e},set:function u(a){e=!!a}},startTime:{enumerable:!0,get:function v(){return f},set:function w(a){if("number"!=typeof a)throw new TypeError("Start time must be set to a number.");f=a,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function x(){return g},set:function y(a){if("number"!=typeof a)throw new TypeError("End time must be set to a number.");g=a,this.hasBeenReset=!0}},text:{enumerable:!0,get:function z(){return h},set:function A(a){h=""+a,this.hasBeenReset=!0}},region:{enumerable:!0,get:function B(){return i},set:function C(a){i=a,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function D(){return j},set:function E(a){var b=La(a);if(b===!1)throw new SyntaxError("An invalid or illegal string was specified.");j=b,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function F(){return k},set:function G(a){k=!!a,this.hasBeenReset=!0}},line:{enumerable:!0,get:function H(){return l},set:function I(a){if("number"!=typeof a&&a!==Df)throw new SyntaxError("An invalid number or illegal string was specified.");l=a,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function J(){return m},set:function K(a){var b=Ma(a);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");m=b,this.hasBeenReset=!0}},position:{enumerable:!0,get:function L(){return n},set:function M(a){if(0>a||a>100)throw new Error("Position must be between 0 and 100.");n=a,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function N(){return o},set:function O(a){var b=Ma(a);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");o=b,this.hasBeenReset=!0}},size:{enumerable:!0,get:function P(){return p},set:function Q(a){if(0>a||a>100)throw new Error("Size must be between 0 and 100.");p=a,this.hasBeenReset=!0}},align:{enumerable:!0,get:function R(){return q},set:function S(a){var b=Ma(a);if(!b)throw new SyntaxError("An invalid or illegal string was specified.");q=b,this.hasBeenReset=!0}}}),this.displayState=void 0}function Oa(a){if("string"!=typeof a)return!1;var b=Hf[a.toLowerCase()];return b?a.toLowerCase():!1}function Pa(a){return"number"==typeof a&&a>=0&&100>=a}function Qa(){var a=100,b=3,c=0,d=100,e=0,f=100,g="";Object.defineProperties(this,{width:{enumerable:!0,get:function h(){return a},set:function i(b){if(!Pa(b))throw new Error("Width must be between 0 and 100.");a=b}},lines:{enumerable:!0,get:function j(){return b},set:function k(a){if("number"!=typeof a)throw new TypeError("Lines must be set to a number.");b=a}},regionAnchorY:{enumerable:!0,get:function l(){return d},set:function m(a){if(!Pa(a))throw new Error("RegionAnchorX must be between 0 and 100.");d=a}},regionAnchorX:{enumerable:!0,get:function n(){return c},set:function o(a){if(!Pa(a))throw new Error("RegionAnchorY must be between 0 and 100.");c=a}},viewportAnchorY:{enumerable:!0,get:function p(){return f},set:function q(a){if(!Pa(a))throw new Error("ViewportAnchorY must be between 0 and 100.");f=a}},viewportAnchorX:{enumerable:!0,get:function r(){return e},set:function s(a){if(!Pa(a))throw new Error("ViewportAnchorX must be between 0 and 100.");e=a}},scroll:{enumerable:!0,get:function t(){return g},set:function u(a){var b=Oa(a);if(b===!1)throw new SyntaxError("An invalid or illegal string was specified.");g=b}}})}function Ra(a,b,c,d,e){void 0===e&&(e={});var f=a.textTracks();e.kind=b,c&&(e.label=c),d&&(e.language=d),e.tech=a;var g=new sf.text.TrackClass(e);return f.addTrack(g),g}function Sa(a,b){Of[a]=Of[a]||[],Of[a].push(b)}function Ta(a,b,c){a.setTimeout(function(){return ab(b,Of[b.type],c,a)},1)}function Ua(a,b){a.forEach(function(a){return a.setTech&&a.setTech(b)})}function Va(a,b,c){return a.reduceRight(Ya(c),b[c]())}function Wa(a,b,c,d){return b[c](a.reduce(Ya(c),d))}function Xa(a,b,c,d){void 0===d&&(d=null);var e='call'+hc(c),f=a.reduce(Ya(e),d),g=f===Qf,h=g?null:b[c](f);return Za(a,c,h,g),h}function Ya(a){return function(b,c){return b===Qf?Qf:c[a]?c[a](b):b}}function Za(a,b,c,d){for(var e=a.length-1;e>=0;e--){var f=a[e];f[b]&&f[b](d,c)}}function $a(a){Pf[a.id()]=null}function _a(a,b){var c=Pf[a.id()],d=null;if(void 0===c||null===c)return d=b(a),Pf[a.id()]=[[b,d]],d;for(var e=0;e<c.length;e++){var f=c[e],g=f[0],h=f[1];g===b&&(d=h)}return null===d&&(d=b(a),c.push([b,d])),d}function ab(a,b,c,d,e,g){void 0===a&&(a={}),void 0===b&&(b=[]),void 0===e&&(e=[]),void 0===g&&(g=!1);var h=b,i=h[0],j=h.slice(1);if('string'==typeof i)ab(a,Of[i],c,d,e,g);else if(i){var k=_a(d,i);if(!k.setSource)return e.push(k),ab(a,j,c,d,e,g);k.setSource(f({},a),function(b,f){return b?ab(a,j,c,d,e,g):(e.push(k),ab(f,a.type===f.type?j:Of[f.type],c,d,e,g),void 0)})}else j.length?ab(a,j,c,d,e,g):g?c(a,e):ab(a,Of['*'],c,d,e,!0)}function bb(a){if(!a.type){var b=Vf(a.src);b&&(a.type=b)}return a}function cb(a,b){var c;if(4===a.length)c=a[1]+a[1]+a[2]+a[2]+a[3]+a[3];else{if(7!==a.length)throw new Error('Invalid color code provided, '+a+'; must be formatted as e.g. #f0e or #f604e2.');c=a.slice(1)}return'rgba('+parseInt(c.slice(0,2),16)+','+parseInt(c.slice(2,4),16)+','+parseInt(c.slice(4,6),16)+','+b+')'}function db(a,b,c){try{a.style[b]=c}catch(d){return}}function eb(a){jg=a}function fb(){jg=ig}function gb(a,b){return void 0===b&&(b=a),jg(a,b)}function hb(a,b){return b&&(a=b(a)),a&&'none'!==a?a:void 0}function ib(a,b){var c=a.options[a.options.selectedIndex].value;return hb(c,b)}function jb(a,b,c){if(b)for(var d=0;d<a.options.length;d++)if(hb(a.options[d].value,c)===b){a.selectedIndex=d;break}}function kb(a,b,c){var d=kb.getPlayer(a);if(d)return b&&zb.warn("Player \""+a+"\" is already initialised. Options will not be applied."),c&&d.ready(c),d;var e='string'==typeof a?Db('#'+bi(a)):a;if(!n(e))throw new TypeError('The element or ID supplied is not valid. (videojs)');e.ownerDocument.defaultView&&e.ownerDocument.body.contains(e)||zb.warn('The element supplied is not included in the DOM'),b=b||{},kb.hooks('beforesetup').forEach(function(a){var c=a(e,$(b));return!g(c)||Array.isArray(c)?(zb.error('please return an object in beforesetup hooks'),void 0):(b=$(b,c),void 0)});var f=jc.getComponent('Player');return d=new f(e,b,c),kb.hooks('setup').forEach(function(a){return a(d)}),d}function lb(){return lb=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},lb.apply(this,arguments)}function mb(a,b){a.prototype=Object.create(b.prototype),a.prototype.constructor=a,a.__proto__=b}function nb(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function ob(b){for(var c=a.atob(b||''),d=new Uint8Array(c.length),e=0;e<c.length;e++)d[e]=c.charCodeAt(e);return d}function pb(a,b){return b={exports:{}},a(b,b.exports),b.exports}function qb(b){for(var c=a.atob(b),d=new Uint8Array(c.length),e=0;e<c.length;e++)d[e]=c.charCodeAt(e);return d}function rb(a){return a.subarray(0,a.byteLength-a[a.byteLength-1])}function sb(a,b){return function c(d){var e=this;if(!b)return new Sm(a);if(Sm&&!d){var f=b.toString().replace(/^function.+?{/,'').slice(0,-1),g=tb(f);return this[Om]=new Sm(g),ub(this[Om],g),this[Om]}var h={postMessage:function i(a){e.onmessage&&setTimeout(function(){e.onmessage({data:a,target:h})})}};b.call(h),this.postMessage=function(a){setTimeout(function(){h.onmessage({data:a,target:e})})},this.isThisThread=!0}}function tb(a){try{return Rm.createObjectURL(new Blob([a],{type:Pm}))}catch(b){var c=new Qm;return c.append(a),Rm.createObjectURL(c.getBlob(type))}}function ub(a,b){if(a&&b){var c=a.terminate;a.objURL=b,a.terminate=function(){a.objURL&&Rm.revokeObjectURL(a.objURL),c.call(a)}}}function vb(){}a=a&&a.hasOwnProperty('default')?a['default']:a,b=b&&b.hasOwnProperty('default')?b['default']:b;var wb="7.6.6",xb=[],yb=function dp(b,c){return function(d,e,f){var g=c.levels[e],h=new RegExp("^("+g+")$");if('log'!==d&&f.unshift(d.toUpperCase()+':'),f.unshift(b+':'),xb&&xb.push([].concat(f)),a.console){var i=a.console[d];i||'debug'!==d||(i=a.console.info||a.console.log),i&&g&&h.test(d)&&i[Array.isArray(f)?'apply':'call'](a.console,f)}}},zb=c('VIDEOJS'),Ab=zb.createLogger,Bb=Object.prototype.toString,Cb=function ep(a){return g(a)?Object.keys(a):[]},Db=p('querySelector'),Eb=p('querySelectorAll'),Fb=Object.freeze({isReal:m,isEl:n,isInFrame:o,createEl:q,textContent:r,prependTo:s,hasClass:t,addClass:u,removeClass:v,toggleClass:w,setAttributes:x,getAttributes:y,getAttribute:z,setAttribute:A,removeAttribute:B,blockTextSelection:C,unblockTextSelection:D,getBoundingClientRect:E,findPosition:F,getPointerPosition:G,isTextNode:H,emptyEl:I,normalizeContent:J,appendContent:K,insertContent:L,isSingleLeftClick:M,$:Db,$$:Eb}),Gb=!1,Hb,Ib=function fp(){if(m()&&Hb.options.autoSetup!==!1){var a=Array.prototype.slice.call(b.getElementsByTagName('video')),c=Array.prototype.slice.call(b.getElementsByTagName('audio')),d=Array.prototype.slice.call(b.getElementsByTagName('video-js')),e=a.concat(c,d);if(e&&e.length>0)for(var f=0,g=e.length;g>f;f++){var h=e[f];if(!h||!h.getAttribute){N(1);break}if(void 0===h.player){var i=h.getAttribute('data-setup');null!==i&&Hb(h)}}else Gb||N(1)}};m()&&('complete'===b.readyState?O():a.addEventListener('load',O));var Jb=function gp(a){var c=b.createElement('style');return c.className=a,c},Kb=function hp(a,b){a.styleSheet?a.styleSheet.cssText=b:a.textContent=b},Lb=3,Mb=Lb,Nb;a.WeakMap||(Nb=function(){function b(){this.vdata='vdata'+Math.floor(a.performance&&a.performance.now()||Date.now()),this.data={}}var c=b.prototype;return c.set=function d(a,b){var c=a[this.vdata]||P();return a[this.vdata]||(a[this.vdata]=c),this.data[c]=b,this},c.get=function e(a){var b=a[this.vdata];return b?this.data[b]:(zb('We have no data for this element',a),void 0)},c.has=function f(a){var b=a[this.vdata];return b in this.data},c["delete"]=function g(a){var b=a[this.vdata];b&&(delete this.data[b],delete a[this.vdata])},b}());var Ob=a.WeakMap?new WeakMap:new Nb,Pb=!1;!function(){try{var b=Object.defineProperty({},'passive',{get:function d(){Pb=!0}});a.addEventListener('test',null,b),a.removeEventListener('test',null,b)}catch(c){}}();var Qb=['touchstart','touchmove'],Rb=Object.freeze({fixEvent:S,on:T,off:U,trigger:V,one:W,any:X}),Sb=30,Tb=function ip(a,b,c){b.guid||(b.guid=P());var d=b.bind(a);return d.guid=c?c+'_'+b.guid:b.guid,d},Ub=function jp(b,c){var d=a.performance.now(),e=function f(){var e=a.performance.now();e-d>=c&&(b.apply(void 0,arguments),d=e)};return e},Vb=function kp(b,c,d,e){void 0===e&&(e=a);var f,g=function i(){e.clearTimeout(f),f=null},h=function j(){var a=this,g=arguments,h=function i(){f=null,h=null,d||b.apply(a,g)};!f&&d&&b.apply(a,g),e.clearTimeout(f),f=e.setTimeout(h,c)};return h.cancel=g,h},Wb=function lp(){};Wb.prototype.allowedEvents_={},Wb.prototype.on=function(a,b){var c=this.addEventListener;this.addEventListener=function(){},T(this,a,b),this.addEventListener=c},Wb.prototype.addEventListener=Wb.prototype.on,Wb.prototype.off=function(a,b){U(this,a,b)},Wb.prototype.removeEventListener=Wb.prototype.off,Wb.prototype.one=function(a,b){var c=this.addEventListener;this.addEventListener=function(){},W(this,a,b),this.addEventListener=c},Wb.prototype.any=function(a,b){var c=this.addEventListener;this.addEventListener=function(){},X(this,a,b),this.addEventListener=c},Wb.prototype.trigger=function(a){var b=a.type||a;'string'==typeof a&&(a={type:b}),a=S(a),this.allowedEvents_[b]&&this['on'+b]&&this['on'+b](a),V(this,a)},Wb.prototype.dispatchEvent=Wb.prototype.trigger;var Xb;Wb.prototype.queueTrigger=function(b){var c=this;Xb||(Xb=new Map);var d=b.type||b,e=Xb.get(this);e||(e=new Map,Xb.set(this,e));var f=e.get(d);e["delete"](d),a.clearTimeout(f);var g=a.setTimeout(function(){0===e.size&&(e=null,Xb["delete"](c)),c.trigger(b)},0);e.set(d,g)};var Yb=function mp(a){return a instanceof Wb||!!a.eventBusEl_&&['on','one','off','trigger'].every(function(b){return'function'==typeof a[b]})},Zb=function np(a,b){Yb(a)?b():(a.eventedCallbacks||(a.eventedCallbacks=[]),a.eventedCallbacks.push(b))},$b=function op(a){return'string'==typeof a&&/\S/.test(a)||Array.isArray(a)&&!!a.length},_b=function pp(a){if(!a.nodeName&&!Yb(a))throw new Error('Invalid target; must be a DOM node or evented object.')},ac=function qp(a){if(!$b(a))throw new Error('Invalid event type; must be a non-empty string or array.')},bc=function rp(a){if('function'!=typeof a)throw new Error('Invalid listener; must be a function.')},cc=function sp(a,b){var c=b.length<3||b[0]===a||b[0]===a.eventBusEl_,d,e,f;return c?(d=a.eventBusEl_,b.length>=3&&b.shift(),e=b[0],f=b[1]):(d=b[0],e=b[1],f=b[2]),_b(d),ac(e),bc(f),f=Tb(a,f),{isTargetingSelf:c,target:d,type:e,listener:f}},dc=function tp(a,b,c,d){_b(a),a.nodeName?Rb[b](a,c,d):a[b](c,d)},ec={on:function up(){for(var a=this,b=arguments.length,c=new Array(b),d=0;b>d;d++)c[d]=arguments[d];var e=cc(this,c),f=e.isTargetingSelf,g=e.target,h=e.type,i=e.listener;if(dc(g,'on',h,i),!f){var j=function l(){return a.off(g,h,i)};j.guid=i.guid;var k=function m(){return a.off('dispose',j)};k.guid=i.guid,dc(this,'on','dispose',j),dc(g,'on','dispose',k)}},one:function vp(){for(var a=this,b=arguments.length,c=new Array(b),d=0;b>d;d++)c[d]=arguments[d];var e=cc(this,c),f=e.isTargetingSelf,g=e.target,h=e.type,i=e.listener;if(f)dc(g,'one',h,i);else{var j=function k(){a.off(g,h,k);for(var b=arguments.length,c=new Array(b),d=0;b>d;d++)c[d]=arguments[d];i.apply(null,c)};j.guid=i.guid,dc(g,'one',h,j)}},any:function wp(){for(var a=this,b=arguments.length,c=new Array(b),d=0;b>d;d++)c[d]=arguments[d];var e=cc(this,c),f=e.isTargetingSelf,g=e.target,h=e.type,i=e.listener;if(f)dc(g,'any',h,i);else{var j=function k(){a.off(g,h,k);for(var b=arguments.length,c=new Array(b),d=0;b>d;d++)c[d]=arguments[d];i.apply(null,c)};j.guid=i.guid,dc(g,'any',h,j)}},off:function xp(a,b,c){if(!a||$b(a))U(this.eventBusEl_,a,b);else{var d=a,e=b;_b(d),ac(e),bc(c),c=Tb(this,c),this.off('dispose',c),d.nodeName?(U(d,e,c),U(d,'dispose',c)):Yb(d)&&(d.off(e,c),d.off('dispose',c))}},trigger:function yp(a,b){return V(this.eventBusEl_,a,b)}},fc={state:{},setState:function zp(a){var b=this;'function'==typeof a&&(a=a());var c;return d(a,function(a,d){b.state[d]!==a&&(c=c||{},c[d]={from:b.state[d],to:a}),b.state[d]=a}),c&&Yb(this)&&this.trigger({changes:c,type:'statechanged'}),c}},gc=function Ap(a){return'string'!=typeof a?a:a.replace(/./,function(a){return a.toLowerCase()})},hc=function Bp(a){return'string'!=typeof a?a:a.replace(/./,function(a){return a.toUpperCase()})},ic=function Cp(a,b){return hc(a)===hc(b)},jc=function(){function b(b,c,d){if(!b&&this.play?this.player_=b=this:this.player_=b,this.parentComponent_=null,this.options_=$({},this.options_),c=this.options_=$(this.options_,c),this.id_=c.id||c.el&&c.el.id,!this.id_){var e=b&&b.id&&b.id()||'no_player';this.id_=e+"_component_"+P()}this.name_=c.name||null,c.el?this.el_=c.el:c.createEl!==!1&&(this.el_=this.createEl()),c.evented!==!1&&Y(this,{eventBusKey:this.el_?'el_':null}),Z(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={};var f;a.Set||(f=function(){function a(){this.set_={}}var b=a.prototype;return b.has=function c(a){return a in this.set_},b["delete"]=function d(a){var b=this.has(a);return delete this.set_[a],b},b.add=function e(a){return this.set_[a]=1,this},b.forEach=function f(a,b){for(var c in this.set_)a.call(b,c,c,this)},a}()),this.setTimeoutIds_=a.Set?new Set:new f,this.setIntervalIds_=a.Set?new Set:new f,this.rafIds_=a.Set?new Set:new f,this.clearingTimersOnDispose_=!1,c.initChildren!==!1&&this.initChildren(),this.ready(d),c.reportTouchActivity!==!1&&this.enableTouchActivity()}var c=b.prototype;return c.dispose=function d(){if(this.trigger({type:'dispose',bubbles:!1}),this.children_)for(var a=this.children_.length-1;a>=0;a--)this.children_[a].dispose&&this.children_[a].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Ob.has(this.el_)&&Ob["delete"](this.el_),this.el_=null),this.player_=null},c.player=function e(){return this.player_},c.options=function f(a){return a?(this.options_=$(this.options_,a),this.options_):this.options_},c.el=function g(){return this.el_},c.createEl=function h(a,b,c){return q(a,b,c)},c.localize=function j(a,b,c){void 0===c&&(c=a);var d=this.player_.language&&this.player_.language(),e=this.player_.languages&&this.player_.languages(),f=e&&e[d],g=d&&d.split('-')[0],h=e&&e[g],i=c;return f&&f[a]?i=f[a]:h&&h[a]&&(i=h[a]),b&&(i=i.replace(/\{(\d+)\}/g,function(a,c){var d=b[c-1],e=d;return'undefined'==typeof d&&(e=a),e})),i},c.contentEl=function k(){return this.contentEl_||this.el_},c.id=function l(){return this.id_},c.name=function m(){return this.name_},c.children=function n(){return this.children_},c.getChildById=function o(a){return this.childIndex_[a]},c.getChild=function p(a){return a?this.childNameIndex_[a]:void 0},c.addChild=function r(a,c,d){void 0===c&&(c={}),void 0===d&&(d=this.children_.length);var e,f;if('string'==typeof a){f=hc(a);var g=c.componentClass||f;c.name=f;var h=b.getComponent(g);if(!h)throw new Error("Component "+g+" does not exist");if('function'!=typeof h)return null;e=new h(this.player_||this,c)}else e=a;if(e.parentComponent_&&e.parentComponent_.removeChild(e),this.children_.splice(d,0,e),e.parentComponent_=this,'function'==typeof e.id&&(this.childIndex_[e.id()]=e),f=f||e.name&&hc(e.name()),f&&(this.childNameIndex_[f]=e,this.childNameIndex_[gc(f)]=e),'function'==typeof e.el&&e.el()){var i=this.contentEl().children,j=i[d]||null;this.contentEl().insertBefore(e.el(),j)}return e},c.removeChild=function s(a){if('string'==typeof a&&(a=this.getChild(a)),a&&this.children_){for(var b=!1,c=this.children_.length-1;c>=0;c--)if(this.children_[c]===a){b=!0,this.children_.splice(c,1);break}if(b){a.parentComponent_=null,this.childIndex_[a.id()]=null,this.childNameIndex_[hc(a.name())]=null,this.childNameIndex_[gc(a.name())]=null;var d=a.el();d&&d.parentNode===this.contentEl()&&this.contentEl().removeChild(a.el())}}},c.initChildren=function x(){var a=this,c=this.options_.children;if(c){var d=this.options_,e=function h(b){var c=b.name,e=b.opts;if(void 0!==d[c]&&(e=d[c]),e!==!1){e===!0&&(e={}),e.playerOptions=a.options_.playerOptions;var f=a.addChild(c,e);f&&(a[c]=f)}},f,g=b.getComponent('Tech');f=Array.isArray(c)?c:Object.keys(c),f.concat(Object.keys(this.options_).filter(function(a){return!f.some(function(b){return'string'==typeof b?a===b:a===b.name})})).map(function(b){var d,e;return'string'==typeof b?(d=b,e=c[d]||a.options_[d]||{}):(d=b.name,e=b),{name:d,opts:e}}).filter(function(a){var c=b.getComponent(a.opts.componentClass||hc(a.name));return c&&!g.isTech(c)}).forEach(e)}},c.buildCSSClass=function y(){return''},c.ready=function C(a,b){return void 0===b&&(b=!1),a?this.isReady_?(b?a.call(this):this.setTimeout(a,1),void 0):(this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(a),void 0):void 0},c.triggerReady=function D(){this.isReady_=!0,this.setTimeout(function(){var a=this.readyQueue_;this.readyQueue_=[],a&&a.length>0&&a.forEach(function(a){a.call(this)},this),this.trigger('ready')},1)},c.$=function E(a,b){return Db(a,b||this.contentEl())},c.$$=function F(a,b){return Eb(a,b||this.contentEl())},c.hasClass=function G(a){return t(this.el_,a)},c.addClass=function H(a){u(this.el_,a)},c.removeClass=function I(a){v(this.el_,a)},c.toggleClass=function J(a,b){w(this.el_,a,b)},c.show=function K(){this.removeClass('vjs-hidden')},c.hide=function L(){this.addClass('vjs-hidden')},c.lockShowing=function M(){this.addClass('vjs-lock-showing')},c.unlockShowing=function N(){this.removeClass('vjs-lock-showing')},c.getAttribute=function O(a){return z(this.el_,a)},c.setAttribute=function Q(a,b){A(this.el_,a,b)},c.removeAttribute=function R(a){B(this.el_,a)},c.width=function S(a,b){return this.dimension('width',a,b)},c.height=function T(a,b){return this.dimension('height',a,b)},c.dimensions=function U(a,b){this.width(a,!0),this.height(b)},c.dimension=function V(a,b,c){if(void 0!==b)return null!==b&&b===b||(b=0),-1!==(''+b).indexOf('%')||-1!==(''+b).indexOf('px')?this.el_.style[a]=b:'auto'===b?this.el_.style[a]='':this.el_.style[a]=b+'px',c||this.trigger('componentresize'),void 0;if(!this.el_)return 0;var d=this.el_.style[a],e=d.indexOf('px');return-1!==e?parseInt(d.slice(0,e),10):parseInt(this.el_['offset'+hc(a)],10)},c.currentDimension=function W(a){var b=0;if('width'!==a&&'height'!==a)throw new Error('currentDimension only accepts width or height value');if(b=i(this.el_,a),b=parseFloat(b),0===b||isNaN(b)){var c="offset"+hc(a);b=this.el_[c]}return b},c.currentDimensions=function X(){return{width:this.currentDimension('width'),height:this.currentDimension('height')}},c.currentWidth=function _(){return this.currentDimension('width')},c.currentHeight=function aa(){return this.currentDimension('height')},c.focus=function ba(){this.el_.focus()},c.blur=function ca(){this.el_.blur()},c.handleKeyDown=function da(a){this.player_&&(a.stopPropagation(),this.player_.handleKeyDown(a))},c.handleKeyPress=function ea(a){this.handleKeyDown(a)},c.emitTapEvents=function fa(){var b=0,c=null,d=10,e=200,f;this.on('touchstart',function(d){1===d.touches.length&&(c={pageX:d.touches[0].pageX,pageY:d.touches[0].pageY},b=a.performance.now(),f=!0)}),this.on('touchmove',function(a){if(a.touches.length>1)f=!1;else if(c){var b=a.touches[0].pageX-c.pageX,e=a.touches[0].pageY-c.pageY,g=Math.sqrt(b*b+e*e);g>d&&(f=!1)}});var g=function h(){f=!1};this.on('touchleave',g),this.on('touchcancel',g),this.on('touchend',function(d){if(c=null,f===!0){var g=a.performance.now()-b;e>g&&(d.preventDefault(),this.trigger('tap'))}})},c.enableTouchActivity=function ga(){if(this.player()&&this.player().reportUserActivity){var a=Tb(this.player(),this.player().reportUserActivity),b;this.on('touchstart',function(){a(),this.clearInterval(b),b=this.setInterval(a,250)});var c=function d(c){a(),this.clearInterval(b)};this.on('touchmove',a),this.on('touchend',c),this.on('touchcancel',c)}},c.setTimeout=function ha(b,c){var d=this,e;return b=Tb(this,b),this.clearTimersOnDispose_(),e=a.setTimeout(function(){d.setTimeoutIds_.has(e)&&d.setTimeoutIds_["delete"](e),b()},c),this.setTimeoutIds_.add(e),e},c.clearTimeout=function ia(b){return this.setTimeoutIds_.has(b)&&(this.setTimeoutIds_["delete"](b),a.clearTimeout(b)),b},c.setInterval=function ja(b,c){b=Tb(this,b),this.clearTimersOnDispose_();var d=a.setInterval(b,c);return this.setIntervalIds_.add(d),d},c.clearInterval=function ka(b){return this.setIntervalIds_.has(b)&&(this.setIntervalIds_["delete"](b),a.clearInterval(b)),b},c.requestAnimationFrame=function la(b){var c=this;if(!this.supportsRaf_)return this.setTimeout(b,1e3/60);this.clearTimersOnDispose_();var d;return b=Tb(this,b),d=a.requestAnimationFrame(function(){c.rafIds_.has(d)&&c.rafIds_["delete"](d),b()}),this.rafIds_.add(d),d},c.cancelAnimationFrame=function ma(b){return this.supportsRaf_?(this.rafIds_.has(b)&&(this.rafIds_["delete"](b),a.cancelAnimationFrame(b)),b):this.clearTimeout(b)},c.clearTimersOnDispose_=function na(){var a=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one('dispose',function(){[['rafIds_','cancelAnimationFrame'],['setTimeoutIds_','clearTimeout'],['setIntervalIds_','clearInterval']].forEach(function(b){var c=b[0],d=b[1];a[c].forEach(a[d],a)}),a.clearingTimersOnDispose_=!1}))},b.registerComponent=function oa(a,c){if('string'!=typeof a||!a)throw new Error("Illegal component name, \""+a+"\"; must be a non-empty string.");var d=b.getComponent('Tech'),e=d&&d.isTech(c),f=b===c||b.prototype.isPrototypeOf(c.prototype);if(e||!f){var g;throw g=e?'techs must be registered using Tech.registerTech()':'must be a Component subclass',new Error("Illegal component, \""+a+"\"; "+g+".")}a=hc(a),b.components_||(b.components_={});var h=b.getComponent('Player');if('Player'===a&&h&&h.players){var i=h.players,j=Object.keys(i);if(i&&j.length>0&&j.map(function(a){return i[a]}).every(Boolean))throw new Error('Can not register Player component after player has been created.')}return b.components_[a]=c,b.components_[gc(a)]=c,c},b.getComponent=function pa(a){return a&&b.components_?b.components_[a]:void 0},b}();jc.prototype.supportsRaf_='function'==typeof a.requestAnimationFrame&&'function'==typeof a.cancelAnimationFrame,jc.registerComponent('Component',jc);for(var kc=a.navigator&&a.navigator.userAgent||'',lc=/AppleWebKit\/([\d.]+)/i.exec(kc),mc=lc?parseFloat(lc.pop()):null,nc=/iPad/i.test(kc),oc=/iPhone/i.test(kc)&&!nc,pc=/iPod/i.test(kc),qc=oc||nc||pc,rc=function(){var a=kc.match(/OS (\d+)_/i);return a&&a[1]?a[1]:null}(),sc=/Android/i.test(kc),tc=function(){var a=kc.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!a)return null;var b=a[1]&&parseFloat(a[1]),c=a[2]&&parseFloat(a[2]);return b&&c?parseFloat(a[1]+'.'+a[2]):b?b:null}(),uc=sc&&5>tc&&537>mc,vc=/Firefox/i.test(kc),wc=/Edge/i.test(kc),xc=!wc&&(/Chrome/i.test(kc)||/CriOS/i.test(kc)),yc=function(){var a=kc.match(/(Chrome|CriOS)\/(\d+)/);return a&&a[2]?parseFloat(a[2]):null}(),zc=function(){var a=/MSIE\s(\d+)\.\d/.exec(kc),b=a&&parseFloat(a[1]);return!b&&/Trident\/7.0/i.test(kc)&&/rv:11.0/.test(kc)&&(b=11),b}(),Ac=/Safari/i.test(kc)&&!xc&&!sc&&!wc,Bc=(Ac||qc)&&!xc,Cc=/Windows/i.test(kc),Dc=(m()&&('ontouchstart'in a||a.navigator.maxTouchPoints||a.DocumentTouch&&a.document instanceof a.DocumentTouch)),Ec=Object.freeze({IS_IPAD:nc,IS_IPHONE:oc,IS_IPOD:pc,IS_IOS:qc,IOS_VERSION:rc,IS_ANDROID:sc,ANDROID_VERSION:tc,IS_NATIVE_ANDROID:uc,IS_FIREFOX:vc,IS_EDGE:wc,IS_CHROME:xc,CHROME_VERSION:yc,IE_VERSION:zc,IS_SAFARI:Ac,IS_ANY_SAFARI:Bc,IS_WINDOWS:Cc,TOUCH_ENABLED:Dc}),Fc={prefixed:!0},Gc=[['requestFullscreen','exitFullscreen','fullscreenElement','fullscreenEnabled','fullscreenchange','fullscreenerror','fullscreen'],['webkitRequestFullscreen','webkitExitFullscreen','webkitFullscreenElement','webkitFullscreenEnabled','webkitfullscreenchange','webkitfullscreenerror','-webkit-full-screen'],['mozRequestFullScreen','mozCancelFullScreen','mozFullScreenElement','mozFullScreenEnabled','mozfullscreenchange','mozfullscreenerror','-moz-full-screen'],['msRequestFullscreen','msExitFullscreen','msFullscreenElement','msFullscreenEnabled','MSFullscreenChange','MSFullscreenError','-ms-fullscreen']],Hc=Gc[0],Ic,Jc=0;Jc<Gc.length;Jc++)if(Gc[Jc][1]in b){Ic=Gc[Jc];break}if(Ic){for(var Kc=0;Kc<Ic.length;Kc++)Fc[Hc[Kc]]=Ic[Kc];Fc.prefixed=Ic[0]!==Hc[0]}ja.prototype.code=0,ja.prototype.message='',ja.prototype.status=null,ja.errorTypes=['MEDIA_ERR_CUSTOM','MEDIA_ERR_ABORTED','MEDIA_ERR_NETWORK','MEDIA_ERR_DECODE','MEDIA_ERR_SRC_NOT_SUPPORTED','MEDIA_ERR_ENCRYPTED'],ja.defaultMessages={1:'You aborted the media playback',2:'A network error caused the media download to fail part-way.',3:'The media playback was aborted due to a corruption problem or because the media used features your browser did not support.',4:'The media could not be loaded, either because the server or network failed or because the format is not supported.',5:'The media is encrypted and we do not have the keys to decrypt it.'};for(var Lc=0;Lc<ja.errorTypes.length;Lc++)ja[ja.errorTypes[Lc]]=Lc,ja.prototype[ja.errorTypes[Lc]]=Lc;var Mc=ka,Nc=function Dp(a){var b=['kind','label','language','id','inBandMetadataTrackDispatchType','mode','src'].reduce(function(b,c,d){return a[c]&&(b[c]=a[c]),b},{cues:a.cues&&Array.prototype.map.call(a.cues,function(a){return{startTime:a.startTime,endTime:a.endTime,text:a.text,id:a.id}})});return b},Oc=function Ep(a){var b=a.$$('track'),c=Array.prototype.map.call(b,function(a){return a.track}),d=Array.prototype.map.call(b,function(a){var b=Nc(a.track);return a.src&&(b.src=a.src),b});return d.concat(Array.prototype.filter.call(a.textTracks(),function(a){return-1===c.indexOf(a)}).map(Nc))},Pc=function Fp(a,b){return a.forEach(function(a){var c=b.addRemoteTextTrack(a).track;!a.src&&a.cues&&a.cues.forEach(function(a){return c.addCue(a)})}),b.textTracks()},Qc={textTracksToJson:Oc,jsonToTextTracks:Pc,trackToJson_:Nc},Rc=na(function(a,b){function c(a){if(a&&'object'==typeof a){var b=a.which||a.keyCode||a.charCode;b&&(a=b)}if('number'==typeof a)return g[a];var c=String(a),f=d[c.toLowerCase()];if(f)return f;var f=e[c.toLowerCase()];return f?f:1===c.length?c.charCodeAt(0):void 0}c.isEventKey=function i(a,b){if(a&&'object'==typeof a){var c=a.which||a.keyCode||a.charCode;if(null===c||void 0===c)return!1;if('string'==typeof b){var f=d[b.toLowerCase()];if(f)return f===c;var f=e[b.toLowerCase()];if(f)return f===c}else if('number'==typeof b)return b===c;return!1}},b=a.exports=c;var d=b.code=b.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,'pause/break':19,'caps lock':20,esc:27,space:32,'page up':33,'page down':34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,'delete':46,command:91,'left command':91,'right command':93,'numpad *':106,'numpad +':107,'numpad -':109,'numpad .':110,'numpad /':111,'num lock':144,'scroll lock':145,'my computer':182,'my calculator':183,';':186,'=':187,',':188,'-':189,'.':190,'/':191,'`':192,'[':219,'\\':220,']':221,"'":222},e=b.aliases={windows:91,'⇧':16,'⌥':18,'⌃':17,'⌘':91,ctl:17,control:17,option:18,pause:19,'break':19,caps:20,'return':13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(f=97;123>f;f++)d[String.fromCharCode(f)]=f-32;for(var f=48;58>f;f++)d[f-48]=f;for(f=1;13>f;f++)d['f'+f]=f+111;for(f=0;10>f;f++)d['numpad '+f]=f+96;var g=b.names=b.title={};for(f in d)g[d[f]]=f;for(var h in e)d[h]=e[h]}),Sc=Rc.code,Tc=Rc.codes,Uc=Rc.aliases,Vc=Rc.names,Wc=Rc.title,Xc='vjs-modal-dialog',Yc=function(c){function d(a,b){var d;return d=c.call(this,a,b)||this,d.opened_=d.hasBeenOpened_=d.hasBeenFilled_=!1,d.closeable(!d.options_.uncloseable),d.content(d.options_.content),d.contentEl_=q('div',{className:Xc+"-content"},{role:'document'}),d.descEl_=q('p',{className:Xc+"-description vjs-control-text",id:d.el().getAttribute('aria-describedby')}),r(d.descEl_,d.description()),d.el_.appendChild(d.descEl_),d.el_.appendChild(d.contentEl_),d}_(d,c);var e=d.prototype;return e.createEl=function f(){return c.prototype.createEl.call(this,'div',{className:this.buildCSSClass(),tabIndex:-1},{'aria-describedby':this.id()+"_description",'aria-hidden':'true','aria-label':this.label(),role:'dialog'})},e.dispose=function g(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,c.prototype.dispose.call(this)},e.buildCSSClass=function h(){return Xc+" vjs-hidden "+c.prototype.buildCSSClass.call(this)},e.label=function i(){return this.localize(this.options_.label||'Modal Window')},e.description=function j(){var a=this.options_.description||this.localize('This is a modal window.');return this.closeable()&&(a+=' '+this.localize('This modal can be closed by pressing the Escape key or activating the close button.')),a},e.open=function k(){if(!this.opened_){var a=this.player();this.trigger('beforemodalopen'),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!a.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&a.pause(),this.on('keydown',this.handleKeyDown),this.hadControls_=a.controls(),a.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute('aria-hidden','false'),this.trigger('modalopen'),this.hasBeenOpened_=!0}},e.opened=function l(a){return'boolean'==typeof a&&this[a?'open':'close'](),this.opened_},e.close=function m(){if(this.opened_){var a=this.player();this.trigger('beforemodalclose'),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&a.play(),this.off('keydown',this.handleKeyDown),this.hadControls_&&a.controls(!0),this.hide(),
this.el().setAttribute('aria-hidden','true'),this.trigger('modalclose'),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},e.closeable=function n(a){if('boolean'==typeof a){var n=this.closeable_=!!a,b=this.getChild('closeButton');if(n&&!b){var c=this.contentEl_;this.contentEl_=this.el_,b=this.addChild('closeButton',{controlText:'Close Modal Dialog'}),this.contentEl_=c,this.on(b,'close',this.close)}!n&&b&&(this.off(b,'close',this.close),this.removeChild(b),b.dispose())}return this.closeable_},e.fill=function o(){this.fillWith(this.content())},e.fillWith=function p(a){var b=this.contentEl(),c=b.parentNode,d=b.nextSibling;this.trigger('beforemodalfill'),this.hasBeenFilled_=!0,c.removeChild(b),this.empty(),L(b,a),this.trigger('modalfill'),d?c.insertBefore(b,d):c.appendChild(b);var e=this.getChild('closeButton');e&&c.appendChild(e.el_)},e.empty=function s(){this.trigger('beforemodalempty'),I(this.contentEl()),this.trigger('modalempty')},e.content=function t(a){return'undefined'!=typeof a&&(this.content_=a),this.content_},e.conditionalFocus_=function u(){var a=b.activeElement,c=this.player_.el_;this.previouslyActiveEl_=null,(c.contains(a)||c===a)&&(this.previouslyActiveEl_=a,this.focus())},e.conditionalBlur_=function v(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},e.handleKeyDown=function w(a){if(a.stopPropagation(),Rc.isEventKey(a,'Escape')&&this.closeable())return a.preventDefault(),this.close(),void 0;if(Rc.isEventKey(a,'Tab')){for(var c=this.focusableEls_(),d=this.el_.querySelector(':focus'),e,f=0;f<c.length;f++)if(d===c[f]){e=f;break}b.activeElement===this.el_&&(e=0),a.shiftKey&&0===e?(c[c.length-1].focus(),a.preventDefault()):a.shiftKey||e!==c.length-1||(c[0].focus(),a.preventDefault())}},e.focusableEls_=function x(){var b=this.el_.querySelectorAll('*');return Array.prototype.filter.call(b,function(b){return(b instanceof a.HTMLAnchorElement||b instanceof a.HTMLAreaElement)&&b.hasAttribute('href')||(b instanceof a.HTMLInputElement||b instanceof a.HTMLSelectElement||b instanceof a.HTMLTextAreaElement||b instanceof a.HTMLButtonElement)&&!b.hasAttribute('disabled')||b instanceof a.HTMLIFrameElement||b instanceof a.HTMLObjectElement||b instanceof a.HTMLEmbedElement||b.hasAttribute('tabindex')&&-1!==b.getAttribute('tabindex')||b.hasAttribute('contenteditable')})},d}(jc);Yc.prototype.options_={pauseOnOpen:!0,temporary:!0},jc.registerComponent('ModalDialog',Yc);var Zc=function(a){function b(b){var c;void 0===b&&(b=[]),c=a.call(this)||this,c.tracks_=[],Object.defineProperty(da(c),'length',{get:function e(){return this.tracks_.length}});for(var d=0;d<b.length;d++)c.addTrack(b[d]);return c}_(b,a);var c=b.prototype;return c.addTrack=function d(a){var b=this.tracks_.length;''+b in this||Object.defineProperty(this,b,{get:function c(){return this.tracks_[b]}}),-1===this.tracks_.indexOf(a)&&(this.tracks_.push(a),this.trigger({track:a,type:'addtrack',target:this}))},c.removeTrack=function e(a){for(var b,c=0,d=this.length;d>c;c++)if(this[c]===a){b=this[c],b.off&&b.off(),this.tracks_.splice(c,1);break}b&&this.trigger({track:b,type:'removetrack',target:this})},c.getTrackById=function f(a){for(var b=null,c=0,d=this.length;d>c;c++){var e=this[c];if(e.id===a){b=e;break}}return b},b}(Wb);Zc.prototype.allowedEvents_={change:'change',addtrack:'addtrack',removetrack:'removetrack'};for(var $c in Zc.prototype.allowedEvents_)Zc.prototype['on'+$c]=null;var _c=function Gp(a,b){for(var c=0;c<a.length;c++)Object.keys(a[c]).length&&b.id!==a[c].id&&(a[c].enabled=!1)},ad=function(a){function b(b){var c;void 0===b&&(b=[]);for(var d=b.length-1;d>=0;d--)if(b[d].enabled){_c(b,b[d]);break}return c=a.call(this,b)||this,c.changing_=!1,c}_(b,a);var c=b.prototype;return c.addTrack=function d(b){var c=this;b.enabled&&_c(this,b),a.prototype.addTrack.call(this,b),b.addEventListener&&(b.enabledChange_=function(){c.changing_||(c.changing_=!0,_c(c,b),c.changing_=!1,c.trigger('change'))},b.addEventListener('enabledchange',b.enabledChange_))},c.removeTrack=function e(b){a.prototype.removeTrack.call(this,b),b.removeEventListener&&b.enabledChange_&&(b.removeEventListener('enabledchange',b.enabledChange_),b.enabledChange_=null)},b}(Zc),bd=function Hp(a,b){for(var c=0;c<a.length;c++)Object.keys(a[c]).length&&b.id!==a[c].id&&(a[c].selected=!1)},cd=function(a){function b(b){var c;void 0===b&&(b=[]);for(var d=b.length-1;d>=0;d--)if(b[d].selected){bd(b,b[d]);break}return c=a.call(this,b)||this,c.changing_=!1,Object.defineProperty(da(c),'selectedIndex',{get:function e(){for(var a=0;a<this.length;a++)if(this[a].selected)return a;return-1},set:function f(){}}),c}_(b,a);var c=b.prototype;return c.addTrack=function d(b){var c=this;b.selected&&bd(this,b),a.prototype.addTrack.call(this,b),b.addEventListener&&(b.selectedChange_=function(){c.changing_||(c.changing_=!0,bd(c,b),c.changing_=!1,c.trigger('change'))},b.addEventListener('selectedchange',b.selectedChange_))},c.removeTrack=function e(b){a.prototype.removeTrack.call(this,b),b.removeEventListener&&b.selectedChange_&&(b.removeEventListener('selectedchange',b.selectedChange_),b.selectedChange_=null)},b}(Zc),dd=function(a){function b(){return a.apply(this,arguments)||this}_(b,a);var c=b.prototype;return c.addTrack=function d(b){var c=this;a.prototype.addTrack.call(this,b),this.queueChange_||(this.queueChange_=function(){return c.queueTrigger('change')}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return c.trigger('selectedlanguagechange')}),b.addEventListener('modechange',this.queueChange_);var d=['metadata','chapters'];-1===d.indexOf(b.kind)&&b.addEventListener('modechange',this.triggerSelectedlanguagechange_)},c.removeTrack=function e(b){a.prototype.removeTrack.call(this,b),b.removeEventListener&&(this.queueChange_&&b.removeEventListener('modechange',this.queueChange_),this.selectedlanguagechange_&&b.removeEventListener('modechange',this.triggerSelectedlanguagechange_))},b}(Zc),ed=function(){function a(a){void 0===a&&(a=[]),this.trackElements_=[],Object.defineProperty(this,'length',{get:function d(){return this.trackElements_.length}});for(var b=0,c=a.length;c>b;b++)this.addTrackElement_(a[b])}var b=a.prototype;return b.addTrackElement_=function c(a){var b=this.trackElements_.length;''+b in this||Object.defineProperty(this,b,{get:function c(){return this.trackElements_[b]}}),-1===this.trackElements_.indexOf(a)&&this.trackElements_.push(a)},b.getTrackElementByTrack_=function d(a){for(var b,c=0,d=this.trackElements_.length;d>c;c++)if(a===this.trackElements_[c].track){b=this.trackElements_[c];break}return b},b.removeTrackElement_=function e(a){for(var b=0,c=this.trackElements_.length;c>b;b++)if(a===this.trackElements_[b]){this.trackElements_[b].track&&'function'==typeof this.trackElements_[b].track.off&&this.trackElements_[b].track.off(),'function'==typeof this.trackElements_[b].off&&this.trackElements_[b].off(),this.trackElements_.splice(b,1);break}},a}(),fd=function(){function a(b){a.prototype.setCues_.call(this,b),Object.defineProperty(this,'length',{get:function c(){return this.length_}})}var b=a.prototype;return b.setCues_=function c(a){var b=this.length||0,c=0,d=a.length;this.cues_=a,this.length_=a.length;var e=function f(a){''+a in this||Object.defineProperty(this,''+a,{get:function b(){return this.cues_[a]}})};if(d>b)for(c=b;d>c;c++)e.call(this,c)},b.getCueById=function d(a){for(var b=null,c=0,d=this.length;d>c;c++){var e=this[c];if(e.id===a){b=e;break}}return b},a}(),gd={alternative:'alternative',captions:'captions',main:'main',sign:'sign',subtitles:'subtitles',commentary:'commentary'},hd={alternative:'alternative',descriptions:'descriptions',main:'main','main-desc':'main-desc',translation:'translation',commentary:'commentary'},id={subtitles:'subtitles',captions:'captions',descriptions:'descriptions',chapters:'chapters',metadata:'metadata'},jd={disabled:'disabled',hidden:'hidden',showing:'showing'},kd=function(a){function b(b){var c;void 0===b&&(b={}),c=a.call(this)||this;var d={id:b.id||'vjs_track_'+P(),kind:b.kind||'',label:b.label||'',language:b.language||''},e=function g(a){Object.defineProperty(da(c),a,{get:function b(){return d[a]},set:function e(){}})};for(var f in d)e(f);return c}return _(b,a),b}(Wb),ld=function Ip(c){var d=['protocol','hostname','port','pathname','search','hash','host'],e=b.createElement('a');e.href=c;var f=''===e.host&&'file:'!==e.protocol,g;f&&(g=b.createElement('div'),g.innerHTML="<a href=\""+c+"\"></a>",e=g.firstChild,g.setAttribute('style','display:none; position:absolute;'),b.body.appendChild(g));for(var h={},i=0;i<d.length;i++)h[d[i]]=e[d[i]];return'http:'===h.protocol&&(h.host=h.host.replace(/:80$/,'')),'https:'===h.protocol&&(h.host=h.host.replace(/:443$/,'')),h.protocol||(h.protocol=a.location.protocol),f&&b.body.removeChild(g),h},md=function Jp(a){if(!a.match(/^https?:\/\//)){var c=b.createElement('div');c.innerHTML="<a href=\""+a+"\">x</a>",a=c.firstChild.href}return a},nd=function Kp(a){if('string'==typeof a){var b=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/,c=b.exec(a);if(c)return c.pop().toLowerCase()}return''},od=function Lp(b){var c=a.location,d=ld(b),e=':'===d.protocol?c.protocol:d.protocol,f=e+d.host!==c.protocol+c.host;return f},pd=Object.freeze({parseUrl:ld,getAbsoluteURL:md,getFileExtension:nd,isCrossOrigin:od}),qd=oa,rd=Object.prototype.toString,sd='Function.prototype.bind called on incompatible ',td=Array.prototype.slice,ud=Object.prototype.toString,vd='[object Function]',wd=function Mp(a){var b=this;if('function'!=typeof b||ud.call(b)!==vd)throw new TypeError(sd+b);for(var c=td.call(arguments,1),d,e=function j(){if(this instanceof d){var e=b.apply(this,c.concat(td.call(arguments)));return Object(e)===e?e:this}return b.apply(a,c.concat(td.call(arguments)))},f=Math.max(0,b.length-c.length),g=[],h=0;f>h;h++)g.push('$'+h);if(d=Function('binder','return function ('+g.join(',')+'){ return binder.apply(this,arguments); }')(e),b.prototype){var i=function k(){};i.prototype=b.prototype,d.prototype=new i,i.prototype=null}return d},xd=Function.prototype.bind||wd,yd=Object.prototype.toString,zd=function Np(a){var b=yd.call(a),c='[object Arguments]'===b;return c||(c='[object Array]'!==b&&null!==a&&'object'==typeof a&&'number'==typeof a.length&&a.length>=0&&'[object Function]'===yd.call(a.callee)),c},Ad;if(!Object.keys){var Bd=Object.prototype.hasOwnProperty,Cd=Object.prototype.toString,Dd=zd,Ed=Object.prototype.propertyIsEnumerable,Fd=!Ed.call({toString:null},'toString'),Gd=Ed.call(function(){},'prototype'),Hd=['toString','toLocaleString','valueOf','hasOwnProperty','isPrototypeOf','propertyIsEnumerable','constructor'],Id=function Op(a){var b=a.constructor;return b&&b.prototype===a},Jd={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},Kd=function(){if('undefined'==typeof window)return!1;for(var a in window)try{if(!Jd['$'+a]&&Bd.call(window,a)&&null!==window[a]&&'object'==typeof window[a])try{Id(window[a])}catch(b){return!0}}catch(b){return!0}return!1}(),Ld=function Pp(a){if('undefined'==typeof window||!Kd)return Id(a);try{return Id(a)}catch(b){return!1}};Ad=function Qp(a){var b=null!==a&&'object'==typeof a,c='[object Function]'===Cd.call(a),d=Dd(a),e=b&&'[object String]'===Cd.call(a),f=[];if(!b&&!c&&!d)throw new TypeError('Object.keys called on a non-object');var g=Gd&&c;if(e&&a.length>0&&!Bd.call(a,0))for(var h=0;h<a.length;++h)f.push(String(h));if(d&&a.length>0)for(var i=0;i<a.length;++i)f.push(String(i));else for(var j in a)g&&'prototype'===j||!Bd.call(a,j)||f.push(String(j));if(Fd)for(var k=Ld(a),l=0;l<Hd.length;++l)k&&'constructor'===Hd[l]||!Bd.call(a,Hd[l])||f.push(Hd[l]);return f}}var Md=Ad,Nd=Array.prototype.slice,Od=Object.keys,Pd=Od?function Rp(a){return Od(a)}:Md,Qd=Object.keys;Pd.shim=function Sp(){if(Object.keys){var a=function(){var a=Object.keys(arguments);return a&&a.length===arguments.length}(1,2);a||(Object.keys=function b(a){return Qd(zd(a)?Nd.call(a):a)})}else Object.keys=Pd;return Object.keys||Pd};var Rd=Pd,Sd='function'==typeof Symbol&&'symbol'==typeof Symbol('foo'),Td=Object.prototype.toString,Ud=Array.prototype.concat,Vd=Object.defineProperty,Wd=function Tp(a){return'function'==typeof a&&'[object Function]'===Td.call(a)},Xd=function Up(){var a={};try{Vd(a,'x',{enumerable:!1,value:a});for(var b in a)return!1;return a.x===a}catch(c){return!1}},Yd=Vd&&Xd(),Zd=function Vp(a,b,c,d){(!(b in a)||Wd(d)&&d())&&(Yd?Vd(a,b,{configurable:!0,enumerable:!1,value:c,writable:!0}):a[b]=c)},$d=function Wp(a,b){var c=arguments.length>2?arguments[2]:{},d=Rd(b);Sd&&(d=Ud.call(d,Object.getOwnPropertySymbols(b)));for(var e=0;e<d.length;e+=1)Zd(a,d[e],b[d[e]],c[d[e]])};$d.supportsDescriptors=!!Yd;var _d=$d,ae,be=Object.getOwnPropertyDescriptor?function(){return Object.getOwnPropertyDescriptor(arguments,'callee').get}():function(){throw new TypeError},ce='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator,de=Object.getPrototypeOf||function(a){return a.__proto__},ee=ae,fe=ae,ge=ae,he='undefined'==typeof Uint8Array?ae:de(Uint8Array),ie={'$ %Array%':Array,'$ %ArrayBuffer%':'undefined'==typeof ArrayBuffer?ae:ArrayBuffer,'$ %ArrayBufferPrototype%':'undefined'==typeof ArrayBuffer?ae:ArrayBuffer.prototype,'$ %ArrayIteratorPrototype%':ce?de([][Symbol.iterator]()):ae,'$ %ArrayPrototype%':Array.prototype,'$ %ArrayProto_entries%':Array.prototype.entries,'$ %ArrayProto_forEach%':Array.prototype.forEach,'$ %ArrayProto_keys%':Array.prototype.keys,'$ %ArrayProto_values%':Array.prototype.values,'$ %AsyncFromSyncIteratorPrototype%':ae,'$ %AsyncFunction%':fe,'$ %AsyncFunctionPrototype%':ae,'$ %AsyncGenerator%':ae,'$ %AsyncGeneratorFunction%':ge,'$ %AsyncGeneratorPrototype%':ae,'$ %AsyncIteratorPrototype%':ae,'$ %Atomics%':'undefined'==typeof Atomics?ae:Atomics,'$ %Boolean%':Boolean,'$ %BooleanPrototype%':Boolean.prototype,'$ %DataView%':'undefined'==typeof DataView?ae:DataView,'$ %DataViewPrototype%':'undefined'==typeof DataView?ae:DataView.prototype,'$ %Date%':Date,'$ %DatePrototype%':Date.prototype,'$ %decodeURI%':decodeURI,'$ %decodeURIComponent%':decodeURIComponent,'$ %encodeURI%':encodeURI,'$ %encodeURIComponent%':encodeURIComponent,'$ %Error%':Error,'$ %ErrorPrototype%':Error.prototype,'$ %eval%':eval,'$ %EvalError%':EvalError,'$ %EvalErrorPrototype%':EvalError.prototype,'$ %Float32Array%':'undefined'==typeof Float32Array?ae:Float32Array,'$ %Float32ArrayPrototype%':'undefined'==typeof Float32Array?ae:Float32Array.prototype,'$ %Float64Array%':'undefined'==typeof Float64Array?ae:Float64Array,'$ %Float64ArrayPrototype%':'undefined'==typeof Float64Array?ae:Float64Array.prototype,'$ %Function%':Function,'$ %FunctionPrototype%':Function.prototype,'$ %Generator%':ae,'$ %GeneratorFunction%':ee,'$ %GeneratorPrototype%':ae,'$ %Int8Array%':'undefined'==typeof Int8Array?ae:Int8Array,'$ %Int8ArrayPrototype%':'undefined'==typeof Int8Array?ae:Int8Array.prototype,'$ %Int16Array%':'undefined'==typeof Int16Array?ae:Int16Array,'$ %Int16ArrayPrototype%':'undefined'==typeof Int16Array?ae:Int8Array.prototype,'$ %Int32Array%':'undefined'==typeof Int32Array?ae:Int32Array,'$ %Int32ArrayPrototype%':'undefined'==typeof Int32Array?ae:Int32Array.prototype,'$ %isFinite%':isFinite,'$ %isNaN%':isNaN,'$ %IteratorPrototype%':ce?de(de([][Symbol.iterator]())):ae,'$ %JSON%':JSON,'$ %JSONParse%':JSON.parse,'$ %Map%':'undefined'==typeof Map?ae:Map,'$ %MapIteratorPrototype%':'undefined'!=typeof Map&&ce?de((new Map)[Symbol.iterator]()):ae,'$ %MapPrototype%':'undefined'==typeof Map?ae:Map.prototype,'$ %Math%':Math,'$ %Number%':Number,'$ %NumberPrototype%':Number.prototype,'$ %Object%':Object,'$ %ObjectPrototype%':Object.prototype,'$ %ObjProto_toString%':Object.prototype.toString,'$ %ObjProto_valueOf%':Object.prototype.valueOf,'$ %parseFloat%':parseFloat,'$ %parseInt%':parseInt,'$ %Promise%':'undefined'==typeof Promise?ae:Promise,'$ %PromisePrototype%':'undefined'==typeof Promise?ae:Promise.prototype,'$ %PromiseProto_then%':'undefined'==typeof Promise?ae:Promise.prototype.then,'$ %Promise_all%':'undefined'==typeof Promise?ae:Promise.all,'$ %Promise_reject%':'undefined'==typeof Promise?ae:Promise.reject,'$ %Promise_resolve%':'undefined'==typeof Promise?ae:Promise.resolve,'$ %Proxy%':'undefined'==typeof Proxy?ae:Proxy,'$ %RangeError%':RangeError,'$ %RangeErrorPrototype%':RangeError.prototype,'$ %ReferenceError%':ReferenceError,'$ %ReferenceErrorPrototype%':ReferenceError.prototype,'$ %Reflect%':'undefined'==typeof Reflect?ae:Reflect,'$ %RegExp%':RegExp,'$ %RegExpPrototype%':RegExp.prototype,'$ %Set%':'undefined'==typeof Set?ae:Set,'$ %SetIteratorPrototype%':'undefined'!=typeof Set&&ce?de((new Set)[Symbol.iterator]()):ae,'$ %SetPrototype%':'undefined'==typeof Set?ae:Set.prototype,'$ %SharedArrayBuffer%':'undefined'==typeof SharedArrayBuffer?ae:SharedArrayBuffer,'$ %SharedArrayBufferPrototype%':'undefined'==typeof SharedArrayBuffer?ae:SharedArrayBuffer.prototype,'$ %String%':String,'$ %StringIteratorPrototype%':ce?de(''[Symbol.iterator]()):ae,'$ %StringPrototype%':String.prototype,'$ %Symbol%':ce?Symbol:ae,'$ %SymbolPrototype%':ce?Symbol.prototype:ae,'$ %SyntaxError%':SyntaxError,'$ %SyntaxErrorPrototype%':SyntaxError.prototype,'$ %ThrowTypeError%':be,'$ %TypedArray%':he,'$ %TypedArrayPrototype%':he?he.prototype:ae,'$ %TypeError%':TypeError,'$ %TypeErrorPrototype%':TypeError.prototype,'$ %Uint8Array%':'undefined'==typeof Uint8Array?ae:Uint8Array,'$ %Uint8ArrayPrototype%':'undefined'==typeof Uint8Array?ae:Uint8Array.prototype,'$ %Uint8ClampedArray%':'undefined'==typeof Uint8ClampedArray?ae:Uint8ClampedArray,'$ %Uint8ClampedArrayPrototype%':'undefined'==typeof Uint8ClampedArray?ae:Uint8ClampedArray.prototype,'$ %Uint16Array%':'undefined'==typeof Uint16Array?ae:Uint16Array,'$ %Uint16ArrayPrototype%':'undefined'==typeof Uint16Array?ae:Uint16Array.prototype,'$ %Uint32Array%':'undefined'==typeof Uint32Array?ae:Uint32Array,'$ %Uint32ArrayPrototype%':'undefined'==typeof Uint32Array?ae:Uint32Array.prototype,'$ %URIError%':URIError,'$ %URIErrorPrototype%':URIError.prototype,'$ %WeakMap%':'undefined'==typeof WeakMap?ae:WeakMap,'$ %WeakMapPrototype%':'undefined'==typeof WeakMap?ae:WeakMap.prototype,'$ %WeakSet%':'undefined'==typeof WeakSet?ae:WeakSet,'$ %WeakSetPrototype%':'undefined'==typeof WeakSet?ae:WeakSet.prototype},je=function Xp(a,b){if(arguments.length>1&&'boolean'!=typeof b)throw new TypeError('"allowMissing" argument must be a boolean');var c='$ '+a;if(!(c in ie))throw new SyntaxError('intrinsic '+a+' does not exist!');if('undefined'==typeof ie[c]&&!b)throw new TypeError('intrinsic '+a+' exists, but is not available. Please file an issue!');return ie[c]},ke=xd.call(Function.call,Object.prototype.hasOwnProperty),le=je('%TypeError%'),me=je('%SyntaxError%'),ne={'Property Descriptor':function Yp(a,b){if('Object'!==a.Type(b))return!1;var c={'[[Configurable]]':!0,'[[Enumerable]]':!0,'[[Get]]':!0,'[[Set]]':!0,'[[Value]]':!0,'[[Writable]]':!0};for(var d in b)if(ke(b,d)&&!c[d])return!1;var e=ke(b,'[[Value]]'),f=ke(b,'[[Get]]')||ke(b,'[[Set]]');if(e&&f)throw new le('Property Descriptors may not be both accessor and data descriptors');return!0}},oe=function Zp(a,b,c,d){var e=ne[b];if('function'!=typeof e)throw new me('unknown record type: '+b);if(!e(a,d))throw new le(c+' must be a '+b);console.log(e(a,d),d)},pe=Number.isNaN||function $p(a){return a!==a},qe=Number.isNaN||function(a){return a!==a},re=Number.isFinite||function(a){return'number'==typeof a&&!qe(a)&&a!==1/0&&a!==-(1/0)},se=function _p(a){return a>=0?1:-1},te=function aq(a,b){var c=a%b;return Math.floor(c>=0?c:c+b)},ue=Function.prototype.toString,ve=/^\s*class\b/,we=function bq(a){try{var b=ue.call(a);return ve.test(b)}catch(c){return!1}},xe=function cq(a){try{return we(a)?!1:(ue.call(a),!0)}catch(b){return!1}},ye=Object.prototype.toString,ze='[object Function]',Ae='[object GeneratorFunction]',Be='function'==typeof Symbol&&'symbol'==typeof Symbol.toStringTag,Ce=function dq(a){if(!a)return!1;if('function'!=typeof a&&'object'!=typeof a)return!1;if('function'==typeof a&&!a.prototype)return!0;if(Be)return xe(a);if(we(a))return!1;var b=ye.call(a);return b===ze||b===Ae},De=function eq(a){return null===a||'function'!=typeof a&&'object'!=typeof a},Ee=Object.prototype.toString,Fe={'[[DefaultValue]]':function fq(a){var b;if(b=arguments.length>1?arguments[1]:'[object Date]'===Ee.call(a)?String:Number,b===String||b===Number){var c=b===String?['toString','valueOf']:['valueOf','toString'],d,e;for(e=0;e<c.length;++e)if(Ce(a[c[e]])&&(d=a[c[e]](),De(d)))return d;throw new TypeError('No default value')}throw new TypeError('invalid [[DefaultValue]] hint supplied')}},Ge=function gq(a){return De(a)?a:arguments.length>1?Fe['[[DefaultValue]]'](a,arguments[1]):Fe['[[DefaultValue]]'](a)},He=je('%Object%'),Ie=je('%TypeError%'),Je=je('%String%'),Ke={ToPrimitive:Ge,ToBoolean:function hq(a){return!!a},ToNumber:function iq(a){return+a},ToInteger:function jq(a){var b=this.ToNumber(a);return pe(b)?0:0!==b&&re(b)?se(b)*Math.floor(Math.abs(b)):b},ToInt32:function kq(a){return this.ToNumber(a)>>0},ToUint32:function lq(a){return this.ToNumber(a)>>>0},ToUint16:function mq(a){var b=this.ToNumber(a);if(pe(b)||0===b||!re(b))return 0;var c=se(b)*Math.floor(Math.abs(b));return te(c,65536)},ToString:function nq(a){return Je(a)},ToObject:function oq(a){return this.CheckObjectCoercible(a),He(a)},CheckObjectCoercible:function pq(a,b){if(null==a)throw new Ie(b||'Cannot call method on '+a);return a},IsCallable:Ce,SameValue:function qq(a,b){return a===b?0===a?1/a===1/b:!0:pe(a)&&pe(b)},Type:function rq(a){return null===a?'Null':'undefined'==typeof a?'Undefined':'function'==typeof a||'object'==typeof a?'Object':'number'==typeof a?'Number':'boolean'==typeof a?'Boolean':'string'==typeof a?'String':void 0},IsPropertyDescriptor:function sq(a){if('Object'!==this.Type(a))return!1;var b={'[[Configurable]]':!0,'[[Enumerable]]':!0,'[[Get]]':!0,'[[Set]]':!0,'[[Value]]':!0,'[[Writable]]':!0};for(var c in a)if(ke(a,c)&&!b[c])return!1;var d=ke(a,'[[Value]]'),e=ke(a,'[[Get]]')||ke(a,'[[Set]]');if(d&&e)throw new Ie('Property Descriptors may not be both accessor and data descriptors');return!0},IsAccessorDescriptor:function tq(a){return'undefined'==typeof a?!1:(oe(this,'Property Descriptor','Desc',a),!(!ke(a,'[[Get]]')&&!ke(a,'[[Set]]')))},IsDataDescriptor:function uq(a){return'undefined'==typeof a?!1:(oe(this,'Property Descriptor','Desc',a),!(!ke(a,'[[Value]]')&&!ke(a,'[[Writable]]')))},IsGenericDescriptor:function vq(a){return'undefined'==typeof a?!1:(oe(this,'Property Descriptor','Desc',a),!this.IsAccessorDescriptor(a)&&!this.IsDataDescriptor(a))},FromPropertyDescriptor:function wq(a){if('undefined'==typeof a)return a;if(oe(this,'Property Descriptor','Desc',a),this.IsDataDescriptor(a))return{value:a['[[Value]]'],writable:!!a['[[Writable]]'],enumerable:!!a['[[Enumerable]]'],configurable:!!a['[[Configurable]]']};if(this.IsAccessorDescriptor(a))return{get:a['[[Get]]'],set:a['[[Set]]'],enumerable:!!a['[[Enumerable]]'],configurable:!!a['[[Configurable]]']};throw new Ie('FromPropertyDescriptor must be called with a fully populated Property Descriptor')},ToPropertyDescriptor:function xq(a){if('Object'!==this.Type(a))throw new Ie('ToPropertyDescriptor requires an object');var b={};if(ke(a,'enumerable')&&(b['[[Enumerable]]']=this.ToBoolean(a.enumerable)),ke(a,'configurable')&&(b['[[Configurable]]']=this.ToBoolean(a.configurable)),ke(a,'value')&&(b['[[Value]]']=a.value),ke(a,'writable')&&(b['[[Writable]]']=this.ToBoolean(a.writable)),ke(a,'get')){var c=a.get;if('undefined'!=typeof c&&!this.IsCallable(c))throw new TypeError('getter must be a function');b['[[Get]]']=c}if(ke(a,'set')){var d=a.set;if('undefined'!=typeof d&&!this.IsCallable(d))throw new Ie('setter must be a function');b['[[Set]]']=d}if((ke(b,'[[Get]]')||ke(b,'[[Set]]'))&&(ke(b,'[[Value]]')||ke(b,'[[Writable]]')))throw new Ie('Invalid property descriptor. Cannot both specify accessors and a value or writable attribute');return b}},Le=Ke,Me=xd.call(Function.call,String.prototype.replace),Ne=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,Oe=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/,Pe=function yq(){var a=Le.ToString(Le.CheckObjectCoercible(this));return Me(Me(a,Ne,''),Oe,'')},Qe="​",Re=function zq(){return String.prototype.trim&&Qe.trim()===Qe?String.prototype.trim:Pe},Se=function Aq(){var a=Re();return _d(String.prototype,{trim:a},{trim:function b(){return String.prototype.trim!==a}}),a},Te=xd.call(Function.call,Re());_d(Te,{getPolyfill:Re,implementation:Pe,shim:Se});var Ue=Te,Ve=Object.prototype.toString,We=Object.prototype.hasOwnProperty,Xe=function Bq(a,b,c){for(var d=0,e=a.length;e>d;d++)We.call(a,d)&&(null==c?b(a[d],d,a):b.call(c,a[d],d,a))},Ye=function Cq(a,b,c){for(var d=0,e=a.length;e>d;d++)null==c?b(a.charAt(d),d,a):b.call(c,a.charAt(d),d,a)},Ze=function Dq(a,b,c){for(var d in a)We.call(a,d)&&(null==c?b(a[d],d,a):b.call(c,a[d],d,a))},$e=function Eq(a,b,c){if(!Ce(b))throw new TypeError('iterator must be a function');var d;arguments.length>=3&&(d=c),'[object Array]'===Ve.call(a)?Xe(a,b,d):'string'==typeof a?Ye(a,b,d):Ze(a,b,d)},_e=$e,af=function Fq(a){return'[object Array]'===Object.prototype.toString.call(a)},bf=function Gq(a){if(!a)return{};var b={};return _e(Ue(a).split('\n'),function(a){var c=a.indexOf(':'),d=Ue(a.slice(0,c)).toLowerCase(),e=Ue(a.slice(c+1));'undefined'==typeof b[d]?b[d]=e:af(b[d])?b[d].push(e):b[d]=[b[d],e]}),b},cf=pa,df=Object.prototype.hasOwnProperty,ef=ta;ta.XMLHttpRequest=a.XMLHttpRequest||wa,ta.XDomainRequest="withCredentials"in new ta.XMLHttpRequest?ta.XMLHttpRequest:a.XDomainRequest,qa(["get","put","post","patch","head","delete"],function(a){ta["delete"===a?"del":a]=function(b,c,d){return c=sa(b,c,d),c.method=a.toUpperCase(),ua(c)}});var ff=function Hq(b,c){var d=new a.WebVTT.Parser(a,a.vttjs,a.WebVTT.StringDecoder()),e=[];d.oncue=function(a){c.addCue(a)},d.onparsingerror=function(a){e.push(a)},d.onflush=function(){c.trigger({type:'loadeddata',target:c})},d.parse(b),e.length>0&&(a.console&&a.console.groupCollapsed&&a.console.groupCollapsed("Text Track parsing errors for "+c.src),e.forEach(function(a){return zb.error(a)}),a.console&&a.console.groupEnd&&a.console.groupEnd()),d.flush()},gf=function Iq(b,c){var d={uri:b},e=od(b);e&&(d.cors=e),ef(d,Tb(this,function(b,d,e){return b?zb.error(b,d):(c.loaded_=!0,'function'!=typeof a.WebVTT?c.tech_&&c.tech_.any(['vttjsloaded','vttjserror'],function(a){return'vttjserror'===a.type?(zb.error("vttjs failed to load, stopping trying to process "+c.src),void 0):ff(e,c)}):ff(e,c),void 0)}))},hf=function(b){function c(a){var c;if(void 0===a&&(a={}),!a.tech)throw new Error('A tech was not provided.');var d=$(a,{kind:id[a.kind]||'subtitles',language:a.language||a.srclang||''}),e=jd[d.mode]||'disabled',f=d["default"];'metadata'!==d.kind&&'chapters'!==d.kind||(e='hidden'),c=b.call(this,d)||this,c.tech_=d.tech,c.cues_=[],c.activeCues_=[];var g=new fd(c.cues_),h=new fd(c.activeCues_),i=!1,j=Tb(da(c),function(){this.activeCues=this.activeCues,i&&(this.trigger('cuechange'),i=!1)});return'disabled'!==e&&c.tech_.ready(function(){c.tech_.on('timeupdate',j)},!0),Object.defineProperties(da(c),{"default":{get:function k(){return f},set:function l(){}},mode:{get:function m(){return e},set:function n(a){var b=this;jd[a]&&(e=a,'disabled'!==e?this.tech_.ready(function(){b.tech_.on('timeupdate',j)},!0):this.tech_.off('timeupdate',j),this.trigger('modechange'))}},cues:{get:function o(){return this.loaded_?g:null},set:function p(){}},activeCues:{get:function q(){if(!this.loaded_)return null;if(0===this.cues.length)return h;for(var a=this.tech_.currentTime(),b=[],c=0,d=this.cues.length;d>c;c++){var e=this.cues[c];e.startTime<=a&&e.endTime>=a?b.push(e):e.startTime===e.endTime&&e.startTime<=a&&e.startTime+.5>=a&&b.push(e)}if(i=!1,b.length!==this.activeCues_.length)i=!0;else for(var f=0;f<b.length;f++)-1===this.activeCues_.indexOf(b[f])&&(i=!0);return this.activeCues_=b,h.setCues_(this.activeCues_),h},set:function r(){}}}),d.src?(c.src=d.src,gf(d.src,da(c))):c.loaded_=!0,c}_(c,b);var d=c.prototype;return d.addCue=function e(b){var c=b;if(a.vttjs&&!(b instanceof a.vttjs.VTTCue)){c=new a.vttjs.VTTCue(b.startTime,b.endTime,b.text);for(var d in b)d in c||(c[d]=b[d]);c.id=b.id,c.originalCue_=b}for(var e=this.tech_.textTracks(),f=0;f<e.length;f++)e[f]!==this&&e[f].removeCue(c);this.cues_.push(c),this.cues.setCues_(this.cues_)},d.removeCue=function f(a){for(var b=this.cues_.length;b--;){var c=this.cues_[b];if(c===a||c.originalCue_&&c.originalCue_===a){this.cues_.splice(b,1),this.cues.setCues_(this.cues_);break}}},c}(kd);hf.prototype.allowedEvents_={cuechange:'cuechange'};var jf=function(a){function b(b){var c;void 0===b&&(b={});var d=$(b,{kind:hd[b.kind]||''});c=a.call(this,d)||this;var e=!1;return Object.defineProperty(da(c),'enabled',{get:function f(){return e},set:function g(a){'boolean'==typeof a&&a!==e&&(e=a,this.trigger('enabledchange'))}}),d.enabled&&(c.enabled=d.enabled),c.loaded_=!0,c}return _(b,a),b}(kd),kf=function(a){function b(b){var c;void 0===b&&(b={});var d=$(b,{kind:gd[b.kind]||''});c=a.call(this,d)||this;var e=!1;return Object.defineProperty(da(c),'selected',{get:function f(){return e},set:function g(a){'boolean'==typeof a&&a!==e&&(e=a,this.trigger('selectedchange'))}}),d.selected&&(c.selected=d.selected),c}return _(b,a),b}(kd),lf=0,mf=1,nf=2,of=3,pf=function(a){function b(b){var c;void 0===b&&(b={}),c=a.call(this)||this;var d,e=new hf(b);return c.kind=e.kind,c.src=e.src,c.srclang=e.language,c.label=e.label,c["default"]=e["default"],Object.defineProperties(da(c),{readyState:{get:function f(){return d}},track:{get:function g(){return e}}}),d=lf,e.addEventListener('loadeddata',function(){d=nf,c.trigger({type:'load',target:da(c)})}),c}return _(b,a),b}(Wb);pf.prototype.allowedEvents_={load:'load'},pf.NONE=lf,pf.LOADING=mf,pf.LOADED=nf,pf.ERROR=of;var qf={audio:{ListClass:ad,TrackClass:jf,capitalName:'Audio'},video:{ListClass:cd,TrackClass:kf,capitalName:'Video'},text:{ListClass:dd,TrackClass:hf,capitalName:'Text'}};Object.keys(qf).forEach(function(a){qf[a].getterName=a+"Tracks",qf[a].privateName=a+"Tracks_"});var rf={remoteText:{ListClass:dd,TrackClass:hf,capitalName:'RemoteText',getterName:'remoteTextTracks',privateName:'remoteTextTracks_'},remoteTextEl:{ListClass:ed,TrackClass:pf,capitalName:'RemoteTextTrackEls',getterName:'remoteTextTrackEls',privateName:'remoteTextTrackEls_'}},sf=$(qf,rf);rf.names=Object.keys(rf),qf.names=Object.keys(qf),sf.names=[].concat(rf.names).concat(qf.names);var tf=Object.create||function(){function a(){}return function(b){if(1!==arguments.length)throw new Error('Object.create shim only accepts one parameter.');return a.prototype=b,new a}}();xa.prototype=tf(Error.prototype),xa.prototype.constructor=xa,xa.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},za.prototype={set:function Jq(a,b){this.get(a)||""===b||(this.values[a]=b)},get:function Kq(a,b,c){return c?this.has(a)?this.values[a]:b[c]:this.has(a)?this.values[a]:b},has:function Lq(a){return a in this.values},alt:function Mq(a,b,c){for(var d=0;d<c.length;++d)if(b===c[d]){this.set(a,b);break}},integer:function Nq(a,b){/^-?\d+$/.test(b)&&this.set(a,parseInt(b,10))},percent:function Oq(a,b){var c;return(c=b.match(/^([\d]{1,3})(\.[\d]*)?%$/))&&(b=parseFloat(b),b>=0&&100>=b)?(this.set(a,b),!0):!1}};var uf={"&amp;":"&","&lt;":"<","&gt;":">","&lrm;":"‎","&rlm;":"‏","&nbsp;":" "},vf={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",
lang:"span"},wf={v:"title",lang:"lang"},xf={rt:"ruby"},yf=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];Ga.prototype.applyStyles=function(a,b){b=b||this.div;for(var c in a)a.hasOwnProperty(c)&&(b.style[c]=a[c])},Ga.prototype.formatStyle=function(a,b){return 0===a?0:a+b},Ha.prototype=tf(Ga.prototype),Ha.prototype.constructor=Ha,Ia.prototype.move=function(a,b){switch(b=void 0!==b?b:this.lineHeight,a){case"+x":this.left+=b,this.right+=b;break;case"-x":this.left-=b,this.right-=b;break;case"+y":this.top+=b,this.bottom+=b;break;case"-y":this.top-=b,this.bottom-=b}},Ia.prototype.overlaps=function(a){return this.left<a.right&&this.right>a.left&&this.top<a.bottom&&this.bottom>a.top},Ia.prototype.overlapsAny=function(a){for(var b=0;b<a.length;b++)if(this.overlaps(a[b]))return!0;return!1},Ia.prototype.within=function(a){return this.top>=a.top&&this.bottom<=a.bottom&&this.left>=a.left&&this.right<=a.right},Ia.prototype.overlapsOppositeAxis=function(a,b){switch(b){case"+x":return this.left<a.left;case"-x":return this.right>a.right;case"+y":return this.top<a.top;case"-y":return this.bottom>a.bottom}},Ia.prototype.intersectPercentage=function(a){var b=Math.max(0,Math.min(this.right,a.right)-Math.max(this.left,a.left)),c=Math.max(0,Math.min(this.bottom,a.bottom)-Math.max(this.top,a.top)),d=b*c;return d/(this.height*this.width)},Ia.prototype.toCSSCompatValues=function(a){return{top:this.top-a.top,bottom:a.bottom-this.bottom,left:this.left-a.left,right:a.right-this.right,height:this.height,width:this.width}},Ia.getSimpleBoxPosition=function(a){var b=a.div?a.div.offsetHeight:a.tagName?a.offsetHeight:0,c=a.div?a.div.offsetWidth:a.tagName?a.offsetWidth:0,d=a.div?a.div.offsetTop:a.tagName?a.offsetTop:0;a=a.div?a.div.getBoundingClientRect():a.tagName?a.getBoundingClientRect():a;var e={left:a.left,right:a.right,top:a.top||d,height:a.height||b,bottom:a.bottom||d+(a.height||b),width:a.width||c};return e},Ka.StringDecoder=function(){return{decode:function a(b){if(!b)return"";if("string"!=typeof b)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(b))}}},Ka.convertCueToDOMTree=function(a,b){return a&&b?Ca(a,b):null};var zf=.05,Af="sans-serif",Bf="1.5%";Ka.processCues=function(a,b,c){function d(a){for(var b=0;b<a.length;b++)if(a[b].hasBeenReset||!a[b].displayState)return!0;return!1}if(!a||!b||!c)return null;for(;c.firstChild;)c.removeChild(c.firstChild);var e=a.document.createElement("div");if(e.style.position="absolute",e.style.left="0",e.style.right="0",e.style.top="0",e.style.bottom="0",e.style.margin=Bf,c.appendChild(e),d(b)){var f=[],g=Ia.getSimpleBoxPosition(e),h=Math.round(g.height*zf*100)/100,i={font:h+"px "+Af};!function(){for(var c,d,h=0;h<b.length;h++)d=b[h],c=new Ha(a,d,i),e.appendChild(c.div),Ja(a,c,g,f),d.displayState=c.div,f.push(Ia.getSimpleBoxPosition(c))}()}else for(var j=0;j<b.length;j++)e.appendChild(b[j].displayState)},Ka.Parser=function(a,b,c){c||(c=b,b={}),b||(b={}),this.window=a,this.vttjs=b,this.state="INITIAL",this.buffer="",this.decoder=c||new TextDecoder("utf8"),this.regionList=[]},Ka.Parser.prototype={reportOrThrowError:function Pq(a){if(!(a instanceof xa))throw a;this.onparsingerror&&this.onparsingerror(a)},parse:function Qq(a){function b(){for(var a=f.buffer,b=0;b<a.length&&'\r'!==a[b]&&'\n'!==a[b];)++b;var c=a.substr(0,b);return'\r'===a[b]&&++b,'\n'===a[b]&&++b,f.buffer=a.substr(b),c}function c(a){var b=new za;if(Aa(a,function(a,c){switch(a){case"id":b.set(a,c);break;case"width":b.percent(a,c);break;case"lines":b.integer(a,c);break;case"regionanchor":case"viewportanchor":var d=c.split(',');if(2!==d.length)break;var e=new za;if(e.percent("x",d[0]),e.percent("y",d[1]),!e.has("x")||!e.has("y"))break;b.set(a+"X",e.get("x")),b.set(a+"Y",e.get("y"));break;case"scroll":b.alt(a,c,["up"])}},/=/,/\s/),b.has("id")){var c=new(f.vttjs.VTTRegion||f.window.VTTRegion);c.width=b.get("width",100),c.lines=b.get("lines",3),c.regionAnchorX=b.get("regionanchorX",0),c.regionAnchorY=b.get("regionanchorY",100),c.viewportAnchorX=b.get("viewportanchorX",0),c.viewportAnchorY=b.get("viewportanchorY",100),c.scroll=b.get("scroll",""),f.onregion&&f.onregion(c),f.regionList.push({id:b.get("id"),region:c})}}function d(a){var b=new za;Aa(a,function(a,c){switch(a){case"MPEGT":b.integer(a+'S',c);break;case"LOCA":b.set(a+'L',ya(c))}},/[^\d]:/,/,/),f.ontimestampmap&&f.ontimestampmap({MPEGTS:b.get("MPEGTS"),LOCAL:b.get("LOCAL")})}function e(a){a.match(/X-TIMESTAMP-MAP/)?Aa(a,function(a,b){switch(a){case"X-TIMESTAMP-MAP":d(b)}},/=/):Aa(a,function(a,b){switch(a){case"Region":c(b)}},/:/)}var f=this;a&&(f.buffer+=f.decoder.decode(a,{stream:!0}));try{var g;if("INITIAL"===f.state){if(!/\r\n|\n/.test(f.buffer))return this;g=b();var h=g.match(/^WEBVTT([ \t].*)?$/);if(!h||!h[0])throw new xa(xa.Errors.BadSignature);f.state="HEADER"}for(var i=!1;f.buffer;){if(!/\r\n|\n/.test(f.buffer))return this;switch(i?i=!1:g=b(),f.state){case"HEADER":/:/.test(g)?e(g):g||(f.state="ID");continue;case"NOTE":g||(f.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(g)){f.state="NOTE";break}if(!g)continue;if(f.cue=new(f.vttjs.VTTCue||f.window.VTTCue)(0,0,""),f.state="CUE",-1===g.indexOf("-->")){f.cue.id=g;continue}case"CUE":try{Ba(g,f.cue,f.regionList)}catch(j){f.reportOrThrowError(j),f.cue=null,f.state="BADCUE";continue}f.state="CUETEXT";continue;case"CUETEXT":var k=-1!==g.indexOf("-->");if(!g||k&&(i=!0)){f.oncue&&f.oncue(f.cue),f.cue=null,f.state="ID";continue}f.cue.text&&(f.cue.text+="\n"),f.cue.text+=g;continue;case"BADCUE":g||(f.state="ID");continue}}}catch(j){f.reportOrThrowError(j),"CUETEXT"===f.state&&f.cue&&f.oncue&&f.oncue(f.cue),f.cue=null,f.state="INITIAL"===f.state?"BADWEBVTT":"BADCUE"}return this},flush:function Rq(){var a=this;try{if(a.buffer+=a.decoder.decode(),(a.cue||"HEADER"===a.state)&&(a.buffer+="\n\n",a.parse()),"INITIAL"===a.state)throw new xa(xa.Errors.BadSignature)}catch(b){a.reportOrThrowError(b)}return a.onflush&&a.onflush(),this}};var Cf=Ka,Df="auto",Ef={"":1,lr:1,rl:1},Ff={start:1,middle:1,end:1,left:1,right:1};Na.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var Gf=Na,Hf={"":!0,up:!0},If=Qa,Jf=na(function(b){var c=b.exports={WebVTT:Cf,VTTCue:Gf,VTTRegion:If};a.vttjs=c,a.WebVTT=c.WebVTT;var d=c.VTTCue,e=c.VTTRegion,f=a.VTTCue,g=a.VTTRegion;c.shim=function(){a.VTTCue=d,a.VTTRegion=e},c.restore=function(){a.VTTCue=f,a.VTTRegion=g},a.VTTCue||c.shim()}),Kf=Jf.WebVTT,Lf=Jf.VTTCue,Mf=Jf.VTTRegion,Nf=function(c){function d(a,b){var d;return void 0===a&&(a={}),void 0===b&&(b=function e(){}),a.reportTouchActivity=!1,d=c.call(this,null,a,b)||this,d.hasStarted_=!1,d.on('playing',function(){this.hasStarted_=!0}),d.on('loadstart',function(){this.hasStarted_=!1}),sf.names.forEach(function(b){var c=sf[b];a&&a[c.getterName]&&(d[c.privateName]=a[c.getterName])}),d.featuresProgressEvents||d.manualProgressOn(),d.featuresTimeupdateEvents||d.manualTimeUpdatesOn(),['Text','Audio','Video'].forEach(function(b){a["native"+b+"Tracks"]===!1&&(d["featuresNative"+b+"Tracks"]=!1)}),a.nativeCaptions===!1||a.nativeTextTracks===!1?d.featuresNativeTextTracks=!1:a.nativeCaptions!==!0&&a.nativeTextTracks!==!0||(d.featuresNativeTextTracks=!0),d.featuresNativeTextTracks||d.emulateTextTracks(),d.autoRemoteTextTracks_=new sf.text.ListClass,d.initTrackListeners(),a.nativeControlsForTouch||d.emitTapEvents(),d.constructor&&(d.name_=d.constructor.name||'Unknown Tech'),d}_(d,c);var e=d.prototype;return e.triggerSourceset=function f(a){var b=this;this.isReady_||this.one('ready',function(){return b.setTimeout(function(){return b.triggerSourceset(a)},1)}),this.trigger({src:a,type:'sourceset'})},e.manualProgressOn=function g(){this.on('durationchange',this.onDurationChange),this.manualProgress=!0,this.one('ready',this.trackProgress)},e.manualProgressOff=function i(){this.manualProgress=!1,this.stopTrackingProgress(),this.off('durationchange',this.onDurationChange)},e.trackProgress=function j(a){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Tb(this,function(){var a=this.bufferedPercent();this.bufferedPercent_!==a&&this.trigger('progress'),this.bufferedPercent_=a,1===a&&this.stopTrackingProgress()}),500)},e.onDurationChange=function k(a){this.duration_=this.duration()},e.buffered=function l(){return ha(0,0)},e.bufferedPercent=function m(){return ia(this.buffered(),this.duration_)},e.stopTrackingProgress=function n(){this.clearInterval(this.progressInterval)},e.manualTimeUpdatesOn=function o(){this.manualTimeUpdates=!0,this.on('play',this.trackCurrentTime),this.on('pause',this.stopTrackingCurrentTime)},e.manualTimeUpdatesOff=function p(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off('play',this.trackCurrentTime),this.off('pause',this.stopTrackingCurrentTime)},e.trackCurrentTime=function q(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:'timeupdate',target:this,manuallyTriggered:!0})},250)},e.stopTrackingCurrentTime=function r(){this.clearInterval(this.currentTimeInterval),this.trigger({type:'timeupdate',target:this,manuallyTriggered:!0})},e.dispose=function s(){this.clearTracks(qf.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),c.prototype.dispose.call(this)},e.clearTracks=function t(a){var b=this;a=[].concat(a),a.forEach(function(a){for(var c=b[a+"Tracks"]()||[],d=c.length;d--;){var e=c[d];'text'===a&&b.removeRemoteTextTrack(e),c.removeTrack(e)}})},e.cleanupAutoTextTracks=function u(){for(var a=this.autoRemoteTextTracks_||[],b=a.length;b--;){var c=a[b];this.removeRemoteTextTrack(c)}},e.reset=function v(){},e.error=function w(a){return void 0!==a&&(this.error_=new ja(a),this.trigger('error')),this.error_},e.played=function x(){return this.hasStarted_?ha(0,0):ha()},e.setCurrentTime=function y(){this.manualTimeUpdates&&this.trigger({type:'timeupdate',target:this,manuallyTriggered:!0})},e.initTrackListeners=function z(){var a=this;qf.names.forEach(function(b){var c=qf[b],d=function f(){a.trigger(b+"trackchange")},e=a[c.getterName]();e.addEventListener('removetrack',d),e.addEventListener('addtrack',d),a.on('dispose',function(){e.removeEventListener('removetrack',d),e.removeEventListener('addtrack',d)})})},e.addWebVttScript_=function A(){var c=this;if(!a.WebVTT)if(b.body.contains(this.el())){if(!this.options_['vtt.js']&&h(Jf)&&Object.keys(Jf).length>0)return this.trigger('vttjsloaded'),void 0;var d=b.createElement('script');d.src=this.options_['vtt.js']||'https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js',d.onload=function(){c.trigger('vttjsloaded')},d.onerror=function(){c.trigger('vttjserror')},this.on('dispose',function(){d.onload=null,d.onerror=null}),a.WebVTT=!0,this.el().parentNode.appendChild(d)}else this.ready(this.addWebVttScript_)},e.emulateTextTracks=function B(){var a=this,b=this.textTracks(),c=this.remoteTextTracks(),d=function h(a){return b.addTrack(a.track)},e=function i(a){return b.removeTrack(a.track)};c.on('addtrack',d),c.on('removetrack',e),this.addWebVttScript_();var f=function j(){return a.trigger('texttrackchange')},g=function k(){f();for(var a=0;a<b.length;a++){var c=b[a];c.removeEventListener('cuechange',f),'showing'===c.mode&&c.addEventListener('cuechange',f)}};g(),b.addEventListener('change',g),b.addEventListener('addtrack',g),b.addEventListener('removetrack',g),this.on('dispose',function(){c.off('addtrack',d),c.off('removetrack',e),b.removeEventListener('change',g),b.removeEventListener('addtrack',g),b.removeEventListener('removetrack',g);for(var a=0;a<b.length;a++){var h=b[a];h.removeEventListener('cuechange',f)}})},e.addTextTrack=function C(a,b,c){if(!a)throw new Error('TextTrack kind is required but was not provided');return Ra(this,a,b,c)},e.createRemoteTextTrack=function D(a){var b=$(a,{tech:this});return new rf.remoteTextEl.TrackClass(b)},e.addRemoteTextTrack=function E(a,b){var c=this;void 0===a&&(a={});var d=this.createRemoteTextTrack(a);return b!==!0&&b!==!1&&(zb.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),b=!0),this.remoteTextTrackEls().addTrackElement_(d),this.remoteTextTracks().addTrack(d.track),b!==!0&&this.ready(function(){return c.autoRemoteTextTracks_.addTrack(d.track)}),d},e.removeRemoteTextTrack=function F(a){var b=this.remoteTextTrackEls().getTrackElementByTrack_(a);this.remoteTextTrackEls().removeTrackElement_(b),this.remoteTextTracks().removeTrack(a),this.autoRemoteTextTracks_.removeTrack(a)},e.getVideoPlaybackQuality=function G(){return{}},e.requestPictureInPicture=function H(){var b=this.options_.Promise||a.Promise;return b?b.reject():void 0},e.setPoster=function I(){},e.playsinline=function J(){},e.setPlaysinline=function K(){},e.overrideNativeAudioTracks=function L(){},e.overrideNativeVideoTracks=function M(){},e.canPlayType=function N(){return''},d.canPlayType=function O(){return''},d.canPlaySource=function P(a,b){return d.canPlayType(a.type)},d.isTech=function Q(a){return a.prototype instanceof d||a instanceof d||a===d},d.registerTech=function R(a,b){if(d.techs_||(d.techs_={}),!d.isTech(b))throw new Error("Tech "+a+" must be a Tech");if(!d.canPlayType)throw new Error('Techs must have a static canPlayType method on them');if(!d.canPlaySource)throw new Error('Techs must have a static canPlaySource method on them');return a=hc(a),d.techs_[a]=b,d.techs_[gc(a)]=b,'Tech'!==a&&d.defaultTechOrder_.push(a),b},d.getTech=function S(b){return b?d.techs_&&d.techs_[b]?d.techs_[b]:(b=hc(b),a&&a.videojs&&a.videojs[b]?(zb.warn("The "+b+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),a.videojs[b]):void 0):void 0},d}(jc);sf.names.forEach(function(a){var b=sf[a];Nf.prototype[b.getterName]=function(){return this[b.privateName]=this[b.privateName]||new b.ListClass,this[b.privateName]}}),Nf.prototype.featuresVolumeControl=!0,Nf.prototype.featuresMuteControl=!0,Nf.prototype.featuresFullscreenResize=!1,Nf.prototype.featuresPlaybackRate=!1,Nf.prototype.featuresProgressEvents=!1,Nf.prototype.featuresSourceset=!1,Nf.prototype.featuresTimeupdateEvents=!1,Nf.prototype.featuresNativeTextTracks=!1,Nf.withSourceHandlers=function(a){a.registerSourceHandler=function(b,c){var d=a.sourceHandlers;d||(d=a.sourceHandlers=[]),void 0===c&&(c=d.length),d.splice(c,0,b)},a.canPlayType=function(b){for(var c=a.sourceHandlers||[],d,e=0;e<c.length;e++)if(d=c[e].canPlayType(b),d)return d;return''},a.selectSourceHandler=function(b,c){for(var d=a.sourceHandlers||[],e,f=0;f<d.length;f++)if(e=d[f].canHandleSource(b,c),e)return d[f];return null},a.canPlaySource=function(b,c){var d=a.selectSourceHandler(b,c);return d?d.canHandleSource(b,c):''};var b=['seekable','seeking','duration'];b.forEach(function(a){var b=this[a];'function'==typeof b&&(this[a]=function(){return this.sourceHandler_&&this.sourceHandler_[a]?this.sourceHandler_[a].apply(this.sourceHandler_,arguments):b.apply(this,arguments)})},a.prototype),a.prototype.setSource=function(b){var c=a.selectSourceHandler(b,this.options_);c||(a.nativeSourceHandler?c=a.nativeSourceHandler:zb.error('No source handler found for the current source.')),this.disposeSourceHandler(),this.off('dispose',this.disposeSourceHandler),c!==a.nativeSourceHandler&&(this.currentSource_=b),this.sourceHandler_=c.handleSource(b,this,this.options_),this.one('dispose',this.disposeSourceHandler)},a.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(['audio','video']),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},jc.registerComponent('Tech',Nf),Nf.registerTech('Tech',Nf),Nf.defaultTechOrder_=[];var Of={},Pf={},Qf={},Rf={buffered:1,currentTime:1,duration:1,seekable:1,played:1,paused:1,volume:1},Sf={setCurrentTime:1,setVolume:1},Tf={play:1,pause:1},Uf={opus:'video/ogg',ogv:'video/ogg',mp4:'video/mp4',mov:'video/mp4',m4v:'video/mp4',mkv:'video/x-matroska',m4a:'audio/mp4',mp3:'audio/mpeg',aac:'audio/aac',oga:'audio/ogg',m3u8:'application/x-mpegURL',jpg:'image/jpeg',jpeg:'image/jpeg',gif:'image/gif',png:'image/png',svg:'image/svg+xml',webp:'image/webp'},Vf=function Sq(a){void 0===a&&(a='');var b=nd(a),c=Uf[b.toLowerCase()];return c||''},Wf=function Tq(a,b){if(!b)return'';if(a.cache_.source.src===b&&a.cache_.source.type)return a.cache_.source.type;var c=a.cache_.sources.filter(function(a){return a.src===b});if(c.length)return c[0].type;for(var d=a.$$('source'),e=0;e<d.length;e++){var f=d[e];if(f.type&&f.src&&f.src===b)return f.type}return Vf(b)},Xf=function Uq(a){if(Array.isArray(a)){var b=[];a.forEach(function(a){a=Uq(a),Array.isArray(a)?b=b.concat(a):g(a)&&b.push(a)}),a=b}else a='string'==typeof a&&a.trim()?[bb({src:a})]:g(a)&&'string'==typeof a.src&&a.src&&a.src.trim()?[bb(a)]:[];return a},Yf=function(a){function b(b,c,d){var e,f=$({createEl:!1},c);if(e=a.call(this,b,f,d)||this,c.playerOptions.sources&&0!==c.playerOptions.sources.length)b.src(c.playerOptions.sources);else for(var g=0,h=c.playerOptions.techOrder;g<h.length;g++){var i=hc(h[g]),j=Nf.getTech(i);if(i||(j=jc.getComponent(i)),j&&j.isSupported()){b.loadTech_(i);break}}return e}return _(b,a),b}(jc);jc.registerComponent('MediaLoader',Yf);var Zf=function(a){function b(b,c){var d;return d=a.call(this,b,c)||this,d.emitTapEvents(),d.enable(),d}_(b,a);var c=b.prototype;return c.createEl=function d(b,c,e){void 0===b&&(b='div'),void 0===c&&(c={}),void 0===e&&(e={}),c=f({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},c),'button'===b&&zb.error("Creating a ClickableComponent with an HTML element of "+b+" is not supported; use a Button instead."),e=f({role:'button'},e),this.tabIndex_=c.tabIndex;var g=a.prototype.createEl.call(this,b,c,e);return this.createControlTextEl(g),g},c.dispose=function e(){this.controlTextEl_=null,a.prototype.dispose.call(this)},c.createControlTextEl=function g(a){return this.controlTextEl_=q('span',{className:'vjs-control-text'},{'aria-live':'polite'}),a&&a.appendChild(this.controlTextEl_),this.controlText(this.controlText_,a),this.controlTextEl_},c.controlText=function h(a,b){if(void 0===b&&(b=this.el()),void 0===a)return this.controlText_||'Need Text';var c=this.localize(a);this.controlText_=a,r(this.controlTextEl_,c),this.nonIconControl||b.setAttribute('title',c)},c.buildCSSClass=function i(){return"vjs-control vjs-button "+a.prototype.buildCSSClass.call(this)},c.enable=function j(){this.enabled_||(this.enabled_=!0,this.removeClass('vjs-disabled'),this.el_.setAttribute('aria-disabled','false'),'undefined'!=typeof this.tabIndex_&&this.el_.setAttribute('tabIndex',this.tabIndex_),this.on(['tap','click'],this.handleClick),this.on('keydown',this.handleKeyDown))},c.disable=function k(){this.enabled_=!1,this.addClass('vjs-disabled'),this.el_.setAttribute('aria-disabled','true'),'undefined'!=typeof this.tabIndex_&&this.el_.removeAttribute('tabIndex'),this.off('mouseover',this.handleMouseOver),this.off('mouseout',this.handleMouseOut),this.off(['tap','click'],this.handleClick),this.off('keydown',this.handleKeyDown)},c.handleClick=function l(a){},c.handleKeyDown=function m(b){Rc.isEventKey(b,'Space')||Rc.isEventKey(b,'Enter')?(b.preventDefault(),b.stopPropagation(),this.trigger('click')):a.prototype.handleKeyDown.call(this,b)},b}(jc);jc.registerComponent('ClickableComponent',Zf);var $f=function(a){function b(b,c){var d;return d=a.call(this,b,c)||this,d.update(),b.on('posterchange',Tb(da(d),d.update)),d}_(b,a);var c=b.prototype;return c.dispose=function d(){this.player().off('posterchange',this.update),a.prototype.dispose.call(this)},c.createEl=function e(){var a=q('div',{className:'vjs-poster',tabIndex:-1});return a},c.update=function f(a){var b=this.player().poster();this.setSrc(b),b?this.show():this.hide()},c.setSrc=function g(a){var b='';a&&(b="url(\""+a+"\")"),this.el_.style.backgroundImage=b},c.handleClick=function h(a){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?ma(this.player_.play()):this.player_.pause())},b}(Zf);jc.registerComponent('PosterImage',$f);var _f='#222',ag='#ccc',bg={monospace:'monospace',sansSerif:'sans-serif',serif:'serif',monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:'sans-serif',proportionalSerif:'serif',casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'},cg=function(b){function c(c,d,e){var f;f=b.call(this,c,d,e)||this;var g=Tb(da(f),f.updateDisplay);return c.on('loadstart',Tb(da(f),f.toggleDisplay)),c.on('texttrackchange',g),c.on('loadedmetadata',Tb(da(f),f.preselectTrack)),c.ready(Tb(da(f),function(){if(c.tech_&&c.tech_.featuresNativeTextTracks)return this.hide(),void 0;c.on('fullscreenchange',g),c.on('playerresize',g),a.addEventListener('orientationchange',g),c.on('dispose',function(){return a.removeEventListener('orientationchange',g)});for(var b=this.options_.playerOptions.tracks||[],d=0;d<b.length;d++)this.player_.addRemoteTextTrack(b[d],!0);this.preselectTrack()})),f}_(c,b);var d=c.prototype;return d.preselectTrack=function e(){for(var a={captions:1,subtitles:1},b=this.player_.textTracks(),c=this.player_.cache_.selectedLanguage,d,e,f,g=0;g<b.length;g++){var h=b[g];c&&c.enabled&&c.language&&c.language===h.language&&h.kind in a?h.kind===c.kind?f=h:f||(f=h):c&&!c.enabled?(f=null,d=null,e=null):h["default"]&&('descriptions'!==h.kind||d?h.kind in a&&!e&&(e=h):d=h)}f?f.mode='showing':e?e.mode='showing':d&&(d.mode='showing')},d.toggleDisplay=function f(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},d.createEl=function g(){return b.prototype.createEl.call(this,'div',{className:'vjs-text-track-display'},{'aria-live':'off','aria-atomic':'true'})},d.clearDisplay=function h(){'function'==typeof a.WebVTT&&a.WebVTT.processCues(a,[],this.el_)},d.updateDisplay=function i(){var a=this.player_.textTracks(),b=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),b){for(var c=[],d=0;d<a.length;++d){var e=a[d];'showing'===e.mode&&c.push(e)}return this.updateForTrack(c),void 0}for(var f=null,g=null,h=a.length;h--;){var i=a[h];'showing'===i.mode&&('descriptions'===i.kind?f=i:g=i)}g?('off'!==this.getAttribute('aria-live')&&this.setAttribute('aria-live','off'),this.updateForTrack(g)):f&&('assertive'!==this.getAttribute('aria-live')&&this.setAttribute('aria-live','assertive'),this.updateForTrack(f))},d.updateDisplayState=function j(b){for(var c=this.player_.textTrackSettings.getValues(),d=b.activeCues,e=d.length;e--;){var f=d[e];if(f){var g=f.displayState;if(c.color&&(g.firstChild.style.color=c.color),c.textOpacity&&db(g.firstChild,'color',cb(c.color||'#fff',c.textOpacity)),c.backgroundColor&&(g.firstChild.style.backgroundColor=c.backgroundColor),c.backgroundOpacity&&db(g.firstChild,'backgroundColor',cb(c.backgroundColor||'#000',c.backgroundOpacity)),c.windowColor&&(c.windowOpacity?db(g,'backgroundColor',cb(c.windowColor,c.windowOpacity)):g.style.backgroundColor=c.windowColor),c.edgeStyle&&('dropshadow'===c.edgeStyle?g.firstChild.style.textShadow="2px 2px 3px "+_f+", 2px 2px 4px "+_f+", 2px 2px 5px "+_f:'raised'===c.edgeStyle?g.firstChild.style.textShadow="1px 1px "+_f+", 2px 2px "+_f+", 3px 3px "+_f:'depressed'===c.edgeStyle?g.firstChild.style.textShadow="1px 1px "+ag+", 0 1px "+ag+", -1px -1px "+_f+", 0 -1px "+_f:'uniform'===c.edgeStyle&&(g.firstChild.style.textShadow="0 0 4px "+_f+", 0 0 4px "+_f+", 0 0 4px "+_f+", 0 0 4px "+_f)),c.fontPercent&&1!==c.fontPercent){var h=a.parseFloat(g.style.fontSize);g.style.fontSize=h*c.fontPercent+'px',g.style.height='auto',g.style.top='auto',g.style.bottom='2px'}c.fontFamily&&'default'!==c.fontFamily&&('small-caps'===c.fontFamily?g.firstChild.style.fontVariant='small-caps':g.firstChild.style.fontFamily=bg[c.fontFamily])}}},d.updateForTrack=function k(b){if(Array.isArray(b)||(b=[b]),'function'==typeof a.WebVTT&&!b.every(function(a){return!a.activeCues})){for(var c=[],d=0;d<b.length;++d)for(var e=b[d],f=0;f<e.activeCues.length;++f)c.push(e.activeCues[f]);a.WebVTT.processCues(a,c,this.el_);for(var g=0;g<b.length;++g){for(var h=b[g],i=0;i<h.activeCues.length;++i){var j=h.activeCues[i].displayState;u(j,'vjs-text-track-cue'),u(j,'vjs-text-track-cue-'+(h.language?h.language:g))}this.player_.textTrackSettings&&this.updateDisplayState(h)}}},c}(jc);jc.registerComponent('TextTrackDisplay',cg);var dg=function(a){function b(){return a.apply(this,arguments)||this}_(b,a);var c=b.prototype;return c.createEl=function d(){var b=this.player_.isAudio(),c=this.localize(b?'Audio Player':'Video Player'),d=q('span',{className:'vjs-control-text',innerHTML:this.localize('{1} is loading.',[c])}),e=a.prototype.createEl.call(this,'div',{className:'vjs-loading-spinner',dir:'ltr'});return e.appendChild(d),e},b}(jc);jc.registerComponent('LoadingSpinner',dg);var eg=function(a){function b(){return a.apply(this,arguments)||this}_(b,a);var c=b.prototype;return c.createEl=function d(a,b,c){void 0===b&&(b={}),void 0===c&&(c={}),a='button',b=f({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},b),c=f({type:'button'},c);var d=jc.prototype.createEl.call(this,a,b,c);return this.createControlTextEl(d),d},c.addChild=function e(a,b){void 0===b&&(b={});var c=this.constructor.name;return zb.warn("Adding an actionable (user controllable) child to a Button ("+c+") is not supported; use a ClickableComponent instead."),jc.prototype.addChild.call(this,a,b)},c.enable=function g(){a.prototype.enable.call(this),this.el_.removeAttribute('disabled')},c.disable=function h(){a.prototype.disable.call(this),this.el_.setAttribute('disabled','disabled')},c.handleKeyDown=function i(b){return Rc.isEventKey(b,'Space')||Rc.isEventKey(b,'Enter')?(b.stopPropagation(),void 0):(a.prototype.handleKeyDown.call(this,b),void 0)},b}(Zf);jc.registerComponent('Button',eg);var fg=function(a){function b(b,c){var d;return d=a.call(this,b,c)||this,d.mouseused_=!1,d.on('mousedown',d.handleMouseDown),d}_(b,a);var c=b.prototype;return c.buildCSSClass=function d(){return'vjs-big-play-button'},c.handleClick=function e(a){var b=this.player_.play();if(this.mouseused_&&a.clientX&&a.clientY)return ma(b),this.player_.tech(!0)&&this.player_.tech(!0).focus(),void 0;var c=this.player_.getChild('controlBar'),d=c&&c.getChild('playToggle');if(!d)return this.player_.tech(!0).focus(),void 0;var e=function f(){return d.focus()};la(b)?b.then(e,function(){}):this.setTimeout(e,1)},c.handleKeyDown=function f(b){this.mouseused_=!1,a.prototype.handleKeyDown.call(this,b)},c.handleMouseDown=function g(a){this.mouseused_=!0},b}(eg);fg.prototype.controlText_='Play Video',jc.registerComponent('BigPlayButton',fg);var gg=function(a){function b(b,c){var d;return d=a.call(this,b,c)||this,d.controlText(c&&c.controlText||d.localize('Close')),d}_(b,a);var c=b.prototype;return c.buildCSSClass=function d(){return"vjs-close-button "+a.prototype.buildCSSClass.call(this)},c.handleClick=function e(a){this.trigger({type:'close',bubbles:!1})},c.handleKeyDown=function f(b){Rc.isEventKey(b,'Esc')?(b.preventDefault(),b.stopPropagation(),this.trigger('click')):a.prototype.handleKeyDown.call(this,b)},b}(eg);jc.registerComponent('CloseButton',gg);var hg=function(a){function b(b,c){var d;return void 0===c&&(c={}),d=a.call(this,b,c)||this,c.replay=void 0===c.replay||c.replay,d.on(b,'play',d.handlePlay),d.on(b,'pause',d.handlePause),c.replay&&d.on(b,'ended',d.handleEnded),d}_(b,a);var c=b.prototype;return c.buildCSSClass=function d(){return"vjs-play-control "+a.prototype.buildCSSClass.call(this)},c.handleClick=function e(a){this.player_.paused()?this.player_.play():this.player_.pause()},c.handleSeeked=function f(a){this.removeClass('vjs-ended'),this.player_.paused()?this.handlePause(a):this.handlePlay(a)},c.handlePlay=function g(a){this.removeClass('vjs-ended'),this.removeClass('vjs-paused'),this.addClass('vjs-playing'),this.controlText('Pause')},c.handlePause=function h(a){this.removeClass('vjs-playing'),this.addClass('vjs-paused'),this.controlText('Play')},c.handleEnded=function i(a){this.removeClass('vjs-playing'),this.addClass('vjs-ended'),this.controlText('Replay'),this.one(this.player_,'seeked',this.handleSeeked)},b}(eg);hg.prototype.controlText_='Play',jc.registerComponent('PlayToggle',hg);var ig=function Vq(a,b){a=0>a?0:a;var c=Math.floor(a%60),d=Math.floor(a/60%60),e=Math.floor(a/3600),f=Math.floor(b/60%60),g=Math.floor(b/3600);return(isNaN(a)||a===1/0)&&(e=d=c='-'),e=e>0||g>0?e+':':'',d=((e||f>=10)&&10>d?'0'+d:d)+':',c=10>c?'0'+c:c,e+d+c},jg=ig,kg=function(a){function c(b,c){var d;return d=a.call(this,b,c)||this,d.throttledUpdateContent=Ub(Tb(da(d),d.updateContent),Sb),d.on(b,'timeupdate',d.throttledUpdateContent),d}_(c,a);var d=c.prototype;return d.createEl=function e(){var b=this.buildCSSClass(),c=a.prototype.createEl.call(this,'div',{className:b+" vjs-time-control vjs-control",innerHTML:"<span class=\"vjs-control-text\" role=\"presentation\">"+this.localize(this.labelText_)+" </span>"});return this.contentEl_=q('span',{className:b+"-display"},{'aria-live':'off',role:'presentation'}),this.updateTextNode_(),c.appendChild(this.contentEl_),c},d.dispose=function f(){this.contentEl_=null,this.textNode_=null,a.prototype.dispose.call(this)},d.updateTextNode_=function g(){if(this.contentEl_){for(;this.contentEl_.firstChild;)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=b.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},d.formatTime_=function h(a){return gb(a)},d.updateFormattedTime_=function i(a){var b=this.formatTime_(a);b!==this.formattedTime_&&(this.formattedTime_=b,this.requestAnimationFrame(this.updateTextNode_))},d.updateContent=function j(a){},c}(jc);kg.prototype.labelText_='Time',kg.prototype.controlText_='Time',jc.registerComponent('TimeDisplay',kg);var lg=function(a){function b(b,c){var d;return d=a.call(this,b,c)||this,d.on(b,'ended',d.handleEnded),d}_(b,a);var c=b.prototype;return c.buildCSSClass=function d(){return'vjs-current-time'},c.updateContent=function e(a){var b=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(b)},c.handleEnded=function f(a){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},b}(kg);
lg.prototype.labelText_='Current Time',lg.prototype.controlText_='Current Time',jc.registerComponent('CurrentTimeDisplay',lg);var mg=function(a){function b(b,c){var d;return d=a.call(this,b,c)||this,d.on(b,'durationchange',d.updateContent),d.on(b,'loadstart',d.updateContent),d.on(b,'loadedmetadata',d.throttledUpdateContent),d}_(b,a);var c=b.prototype;return c.buildCSSClass=function d(){return'vjs-duration'},c.updateContent=function e(a){var b=this.player_.duration();this.duration_!==b&&(this.duration_=b,this.updateFormattedTime_(b))},b}(kg);mg.prototype.labelText_='Duration',mg.prototype.controlText_='Duration',jc.registerComponent('DurationDisplay',mg);var ng=function(a){function b(){return a.apply(this,arguments)||this}_(b,a);var c=b.prototype;return c.createEl=function d(){return a.prototype.createEl.call(this,'div',{className:'vjs-time-control vjs-time-divider',innerHTML:'<div><span>/</span></div>'},{'aria-hidden':!0})},b}(jc);jc.registerComponent('TimeDivider',ng);var og=function(a){function b(b,c){var d;return d=a.call(this,b,c)||this,d.on(b,'durationchange',d.throttledUpdateContent),d.on(b,'ended',d.handleEnded),d}_(b,a);var c=b.prototype;return c.buildCSSClass=function d(){return'vjs-remaining-time'},c.createEl=function e(){var b=a.prototype.createEl.call(this);return b.insertBefore(q('span',{},{'aria-hidden':!0},'-'),this.contentEl_),b},c.updateContent=function f(a){'number'==typeof this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},c.handleEnded=function g(a){this.player_.duration()&&this.updateFormattedTime_(0)},b}(kg);og.prototype.labelText_='Remaining Time',og.prototype.controlText_='Remaining Time',jc.registerComponent('RemainingTimeDisplay',og);var pg=function(a){function b(b,c){var d;return d=a.call(this,b,c)||this,d.updateShowing(),d.on(d.player(),'durationchange',d.updateShowing),d}_(b,a);var c=b.prototype;return c.createEl=function d(){var b=a.prototype.createEl.call(this,'div',{className:'vjs-live-control vjs-control'});return this.contentEl_=q('div',{className:'vjs-live-display',innerHTML:"<span class=\"vjs-control-text\">"+this.localize('Stream Type')+" </span>"+this.localize('LIVE')},{'aria-live':'off'}),b.appendChild(this.contentEl_),b},c.dispose=function e(){this.contentEl_=null,a.prototype.dispose.call(this)},c.updateShowing=function f(a){this.player().duration()===1/0?this.show():this.hide()},b}(jc);jc.registerComponent('LiveDisplay',pg);var qg=function(a){function b(b,c){var d;return d=a.call(this,b,c)||this,d.updateLiveEdgeStatus(),d.player_.liveTracker&&d.on(d.player_.liveTracker,'liveedgechange',d.updateLiveEdgeStatus),d}_(b,a);var c=b.prototype;return c.createEl=function d(){var b=a.prototype.createEl.call(this,'button',{className:'vjs-seek-to-live-control vjs-control'});return this.textEl_=q('span',{className:'vjs-seek-to-live-text',innerHTML:this.localize('LIVE')},{'aria-hidden':'true'}),b.appendChild(this.textEl_),b},c.updateLiveEdgeStatus=function e(a){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute('aria-disabled',!0),this.addClass('vjs-at-live-edge'),this.controlText('Seek to live, currently playing live')):(this.setAttribute('aria-disabled',!1),this.removeClass('vjs-at-live-edge'),this.controlText('Seek to live, currently behind live'))},c.handleClick=function f(){this.player_.liveTracker.seekToLiveEdge()},c.dispose=function g(){this.player_.liveTracker&&this.off(this.player_.liveTracker,'liveedgechange',this.updateLiveEdgeStatus),this.textEl_=null,a.prototype.dispose.call(this)},b}(eg);qg.prototype.controlText_='Seek to live, currently playing live',jc.registerComponent('SeekToLive',qg);var rg=function(a){function b(b,c){var d;return d=a.call(this,b,c)||this,d.bar=d.getChild(d.options_.barName),d.vertical(!!d.options_.vertical),d.enable(),d}_(b,a);var c=b.prototype;return c.enabled=function d(){return this.enabled_},c.enable=function e(){this.enabled()||(this.on('mousedown',this.handleMouseDown),this.on('touchstart',this.handleMouseDown),this.on('keydown',this.handleKeyDown),this.on('click',this.handleClick),this.on(this.player_,'controlsvisible',this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass('disabled'),this.setAttribute('tabindex',0),this.enabled_=!0)},c.disable=function g(){if(this.enabled()){var a=this.bar.el_.ownerDocument;this.off('mousedown',this.handleMouseDown),this.off('touchstart',this.handleMouseDown),this.off('keydown',this.handleKeyDown),this.off('click',this.handleClick),this.off(this.player_,'controlsvisible',this.update),this.off(a,'mousemove',this.handleMouseMove),this.off(a,'mouseup',this.handleMouseUp),this.off(a,'touchmove',this.handleMouseMove),this.off(a,'touchend',this.handleMouseUp),this.removeAttribute('tabindex'),this.addClass('disabled'),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},c.createEl=function h(b,c,d){return void 0===c&&(c={}),void 0===d&&(d={}),c.className=c.className+' vjs-slider',c=f({tabIndex:0},c),d=f({role:'slider','aria-valuenow':0,'aria-valuemin':0,'aria-valuemax':100,tabIndex:0},d),a.prototype.createEl.call(this,b,c,d)},c.handleMouseDown=function i(a){var b=this.bar.el_.ownerDocument;'mousedown'===a.type&&a.preventDefault(),'touchstart'!==a.type||xc||a.preventDefault(),C(),this.addClass('vjs-sliding'),this.trigger('slideractive'),this.on(b,'mousemove',this.handleMouseMove),this.on(b,'mouseup',this.handleMouseUp),this.on(b,'touchmove',this.handleMouseMove),this.on(b,'touchend',this.handleMouseUp),this.handleMouseMove(a)},c.handleMouseMove=function j(a){},c.handleMouseUp=function k(){var a=this.bar.el_.ownerDocument;D(),this.removeClass('vjs-sliding'),this.trigger('sliderinactive'),this.off(a,'mousemove',this.handleMouseMove),this.off(a,'mouseup',this.handleMouseUp),this.off(a,'touchmove',this.handleMouseMove),this.off(a,'touchend',this.handleMouseUp),this.update()},c.update=function l(){if(this.el_){var a=this.getPercent(),b=this.bar;if(b){('number'!=typeof a||a!==a||0>a||a===1/0)&&(a=0);var c=(100*a).toFixed(2)+'%',d=b.el().style,e=this.vertical()?'height':'width';return d[e]!==c&&(d[e]=c),a}}},c.calculateDistance=function m(a){var b=G(this.el_,a);return this.vertical()?b.y:b.x},c.handleKeyDown=function n(b){Rc.isEventKey(b,'Left')||Rc.isEventKey(b,'Down')?(b.preventDefault(),b.stopPropagation(),this.stepBack()):Rc.isEventKey(b,'Right')||Rc.isEventKey(b,'Up')?(b.preventDefault(),b.stopPropagation(),this.stepForward()):a.prototype.handleKeyDown.call(this,b)},c.handleClick=function o(a){a.stopPropagation(),a.preventDefault()},c.vertical=function p(a){return void 0===a?this.vertical_||!1:(this.vertical_=!!a,this.vertical_?this.addClass('vjs-slider-vertical'):this.addClass('vjs-slider-horizontal'),void 0)},b}(jc);jc.registerComponent('Slider',rg);var sg=function(a){function b(b,c){var d;return d=a.call(this,b,c)||this,d.partEls_=[],d.on(b,'progress',d.update),d}_(b,a);var c=b.prototype;return c.createEl=function d(){return a.prototype.createEl.call(this,'div',{className:'vjs-load-progress',innerHTML:"<span class=\"vjs-control-text\"><span>"+this.localize('Loaded')+"</span>: <span class=\"vjs-control-text-loaded-percentage\">0%</span></span>"})},c.dispose=function e(){this.partEls_=null,a.prototype.dispose.call(this)},c.update=function f(a){var b=this.player_.liveTracker,c=this.player_.buffered(),d=b&&b.isLive()?b.seekableEnd():this.player_.duration(),e=this.player_.bufferedEnd(),f=this.partEls_,g=this.$('.vjs-control-text-loaded-percentage'),h=function n(a,b,c){var d=a/b||0;return d=100*(d>=1?1:d),c&&(d=d.toFixed(2)),d+'%'};this.el_.style.width=h(e,d),r(g,h(e,d,!0));for(var i=0;i<c.length;i++){var j=c.start(i),k=c.end(i),l=f[i];l||(l=this.el_.appendChild(q()),f[i]=l),l.style.left=h(j,e),l.style.width=h(k-j,e)}for(var m=f.length;m>c.length;m--)this.el_.removeChild(f[m-1]);f.length=c.length},b}(jc);jc.registerComponent('LoadProgressBar',sg);var tg=function(a){function b(b,c){var d;return d=a.call(this,b,c)||this,d.update=Ub(Tb(da(d),d.update),Sb),d}_(b,a);var c=b.prototype;return c.createEl=function d(){return a.prototype.createEl.call(this,'div',{className:'vjs-time-tooltip'},{'aria-hidden':'true'})},c.update=function e(a,b,c){var d=E(this.el_),e=E(this.player_.el()),f=a.width*b;if(e&&d){var g=a.left-e.left+f,h=a.width-f+(e.right-a.right),i=d.width/2;i>g?i+=i-g:i>h&&(i=h),0>i?i=0:i>d.width&&(i=d.width),this.el_.style.right="-"+i+"px",this.write(c)}},c.write=function f(a){r(this.el_,a)},c.updateTime=function g(a,b,c,d){var e=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var f,g=e.player_.duration();if(e.player_.liveTracker&&e.player_.liveTracker.isLive()){var h=e.player_.liveTracker.liveWindow(),i=h-b*h;f=(1>i?'':'-')+gb(i,h)}else f=gb(c,g);e.update(a,b,f),d&&d()})},b}(jc);jc.registerComponent('TimeTooltip',tg);var ug=function(a){function b(b,c){var d;return d=a.call(this,b,c)||this,d.update=Ub(Tb(da(d),d.update),Sb),d}_(b,a);var c=b.prototype;return c.createEl=function d(){return a.prototype.createEl.call(this,'div',{className:'vjs-play-progress vjs-slider-bar'},{'aria-hidden':'true'})},c.update=function e(a,b){var c=this.getChild('timeTooltip');if(c){var d=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();c.updateTime(a,b,d)}},b}(jc);ug.prototype.options_={children:[]},qc||sc||ug.prototype.options_.children.push('timeTooltip'),jc.registerComponent('PlayProgressBar',ug);var vg=function(a){function b(b,c){var d;return d=a.call(this,b,c)||this,d.update=Ub(Tb(da(d),d.update),Sb),d}_(b,a);var c=b.prototype;return c.createEl=function d(){return a.prototype.createEl.call(this,'div',{className:'vjs-mouse-display'})},c.update=function e(a,b){var c=this,d=b*this.player_.duration();this.getChild('timeTooltip').updateTime(a,b,d,function(){c.el_.style.left=a.width*b+"px"})},b}(jc);vg.prototype.options_={children:['timeTooltip']},jc.registerComponent('MouseTimeDisplay',vg);var wg=5,xg=12,yg=30,zg=function(a){function c(b,c){var d;return d=a.call(this,b,c)||this,d.setEventHandlers_(),d}_(c,a);var d=c.prototype;return d.setEventHandlers_=function e(){this.update=Ub(Tb(this,this.update),yg),this.on(this.player_,'timeupdate',this.update),this.on(this.player_,'ended',this.handleEnded),this.on(this.player_,'durationchange',this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,'liveedgechange',this.update),this.updateInterval=null,this.on(this.player_,['playing'],this.enableInterval_),this.on(this.player_,['ended','pause','waiting'],this.disableInterval_),'hidden'in b&&'visibilityState'in b&&this.on(b,'visibilitychange',this.toggleVisibility_)},d.toggleVisibility_=function f(a){b.hidden?this.disableInterval_(a):(this.enableInterval_(),this.requestAnimationFrame(this.update))},d.enableInterval_=function g(){var a=this;this.clearInterval(this.updateInterval),this.updateInterval=this.setInterval(function(){a.requestAnimationFrame(a.update)},yg)},d.disableInterval_=function h(a){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&'ended'!==a.type||this.clearInterval(this.updateInterval)},d.createEl=function i(){return a.prototype.createEl.call(this,'div',{className:'vjs-progress-holder'},{'aria-label':this.localize('Progress Bar')})},d.update_=function j(a,b){var c=this.player_.liveTracker,d=this.player_.duration();c&&c.isLive()&&(d=this.player_.liveTracker.liveCurrentTime()),this.el_.setAttribute('aria-valuenow',(100*b).toFixed(2)),this.el_.setAttribute('aria-valuetext',this.localize('progress bar timing: currentTime={1} duration={2}',[gb(a,d),gb(d,d)],'{1} of {2}')),this.bar&&this.bar.update(E(this.el_),b)},d.update=function k(b){if(null!==this.el().offsetParent){var c=a.prototype.update.call(this);return this.update_(this.getCurrentTime_(),c),c}},d.getCurrentTime_=function l(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},d.handleEnded=function m(a){this.update_(this.player_.duration(),1)},d.getPercent=function n(){var a=this.getCurrentTime_(),b,c=this.player_.liveTracker;return c&&c.isLive()?(b=(a-c.seekableStart())/c.liveWindow(),c.atLiveEdge()&&(b=1)):b=a/this.player_.duration(),b>=1?1:b||0},d.handleMouseDown=function o(b){M(b)&&(b.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),a.prototype.handleMouseDown.call(this,b))},d.handleMouseMove=function p(a){if(M(a)){var b,c=this.calculateDistance(a),d=this.player_.liveTracker;if(d&&d.isLive()){var e=d.seekableStart(),f=d.liveCurrentTime();if(b=e+c*d.liveWindow(),b>=f&&(b=f),e>=b&&(b=e+.1),b===1/0)return}else b=c*this.player_.duration(),b===this.player_.duration()&&(b-=.1);this.player_.currentTime(b)}},d.enable=function q(){a.prototype.enable.call(this);var b=this.getChild('mouseTimeDisplay');b&&b.show()},d.disable=function r(){a.prototype.disable.call(this);var b=this.getChild('mouseTimeDisplay');b&&b.hide()},d.handleMouseUp=function s(b){a.prototype.handleMouseUp.call(this,b),b&&b.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:'timeupdate',target:this,manuallyTriggered:!0}),this.videoWasPlaying&&ma(this.player_.play())},d.stepForward=function t(){this.player_.currentTime(this.player_.currentTime()+wg)},d.stepBack=function u(){this.player_.currentTime(this.player_.currentTime()-wg)},d.handleAction=function v(a){this.player_.paused()?this.player_.play():this.player_.pause()},d.handleKeyDown=function w(b){if(Rc.isEventKey(b,'Space')||Rc.isEventKey(b,'Enter'))b.preventDefault(),b.stopPropagation(),this.handleAction(b);else if(Rc.isEventKey(b,'Home'))b.preventDefault(),b.stopPropagation(),this.player_.currentTime(0);else if(Rc.isEventKey(b,'End'))b.preventDefault(),b.stopPropagation(),this.player_.currentTime(this.player_.duration());else if(/^[0-9]$/.test(Rc(b))){b.preventDefault(),b.stopPropagation();var c=10*(Rc.codes[Rc(b)]-Rc.codes[0])/100;this.player_.currentTime(this.player_.duration()*c)}else Rc.isEventKey(b,'PgDn')?(b.preventDefault(),b.stopPropagation(),this.player_.currentTime(this.player_.currentTime()-wg*xg)):Rc.isEventKey(b,'PgUp')?(b.preventDefault(),b.stopPropagation(),this.player_.currentTime(this.player_.currentTime()+wg*xg)):a.prototype.handleKeyDown.call(this,b)},c}(rg);zg.prototype.options_={children:['loadProgressBar','playProgressBar'],barName:'playProgressBar'},qc||sc||zg.prototype.options_.children.splice(1,0,'mouseTimeDisplay'),jc.registerComponent('SeekBar',zg);var Ag=function(a){function b(b,c){var d;return d=a.call(this,b,c)||this,d.handleMouseMove=Ub(Tb(da(d),d.handleMouseMove),Sb),d.throttledHandleMouseSeek=Ub(Tb(da(d),d.handleMouseSeek),Sb),d.enable(),d}_(b,a);var c=b.prototype;return c.createEl=function d(){return a.prototype.createEl.call(this,'div',{className:'vjs-progress-control vjs-control'})},c.handleMouseMove=function e(a){var b=this.getChild('seekBar');if(b){var c=b.getChild('mouseTimeDisplay'),d=b.el(),e=E(d),f=G(d,a).x;f>1?f=1:0>f&&(f=0),c&&c.update(e,f)}},c.handleMouseSeek=function f(a){var b=this.getChild('seekBar');b&&b.handleMouseMove(a)},c.enabled=function g(){return this.enabled_},c.disable=function h(){this.children().forEach(function(a){return a.disable&&a.disable()}),this.enabled()&&(this.off(['mousedown','touchstart'],this.handleMouseDown),this.off(this.el_,'mousemove',this.handleMouseMove),this.handleMouseUp(),this.addClass('disabled'),this.enabled_=!1)},c.enable=function i(){this.children().forEach(function(a){return a.enable&&a.enable()}),this.enabled()||(this.on(['mousedown','touchstart'],this.handleMouseDown),this.on(this.el_,'mousemove',this.handleMouseMove),this.removeClass('disabled'),this.enabled_=!0)},c.handleMouseDown=function j(a){var b=this.el_.ownerDocument,c=this.getChild('seekBar');c&&c.handleMouseDown(a),this.on(b,'mousemove',this.throttledHandleMouseSeek),this.on(b,'touchmove',this.throttledHandleMouseSeek),this.on(b,'mouseup',this.handleMouseUp),this.on(b,'touchend',this.handleMouseUp)},c.handleMouseUp=function k(a){var b=this.el_.ownerDocument,c=this.getChild('seekBar');c&&c.handleMouseUp(a),this.off(b,'mousemove',this.throttledHandleMouseSeek),this.off(b,'touchmove',this.throttledHandleMouseSeek),this.off(b,'mouseup',this.handleMouseUp),this.off(b,'touchend',this.handleMouseUp)},b}(jc);Ag.prototype.options_={children:['seekBar']},jc.registerComponent('ProgressControl',Ag);var Bg=function(a){function c(c,d){var e;return e=a.call(this,c,d)||this,e.on(c,['enterpictureinpicture','leavepictureinpicture'],e.handlePictureInPictureChange),b.pictureInPictureEnabled||e.disable(),e}_(c,a);var d=c.prototype;return d.buildCSSClass=function e(){return"vjs-picture-in-picture-control "+a.prototype.buildCSSClass.call(this)},d.handlePictureInPictureChange=function f(a){this.player_.isInPictureInPicture()?this.controlText('Exit Picture-in-Picture'):this.controlText('Picture-in-Picture')},d.handleClick=function g(a){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},c}(eg);Bg.prototype.controlText_='Picture-in-Picture',jc.registerComponent('PictureInPictureToggle',Bg);var Cg=function(a){function c(c,d){var e;return e=a.call(this,c,d)||this,e.on(c,'fullscreenchange',e.handleFullscreenChange),b[c.fsApi_.fullscreenEnabled]===!1&&e.disable(),e}_(c,a);var d=c.prototype;return d.buildCSSClass=function e(){return"vjs-fullscreen-control "+a.prototype.buildCSSClass.call(this)},d.handleFullscreenChange=function f(a){this.player_.isFullscreen()?this.controlText('Non-Fullscreen'):this.controlText('Fullscreen')},d.handleClick=function g(a){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},c}(eg);Cg.prototype.controlText_='Fullscreen',jc.registerComponent('FullscreenToggle',Cg);var Dg=function Wq(a,b){b.tech_&&!b.tech_.featuresVolumeControl&&a.addClass('vjs-hidden'),a.on(b,'loadstart',function(){b.tech_.featuresVolumeControl?a.removeClass('vjs-hidden'):a.addClass('vjs-hidden')})},Eg=function(a){function b(){return a.apply(this,arguments)||this}_(b,a);var c=b.prototype;return c.createEl=function d(){return a.prototype.createEl.call(this,'div',{className:'vjs-volume-level',innerHTML:'<span class="vjs-control-text"></span>'})},b}(jc);jc.registerComponent('VolumeLevel',Eg);var Fg=function(a){function b(b,c){var d;return d=a.call(this,b,c)||this,d.on('slideractive',d.updateLastVolume_),d.on(b,'volumechange',d.updateARIAAttributes),b.ready(function(){return d.updateARIAAttributes()}),d}_(b,a);var c=b.prototype;return c.createEl=function d(){return a.prototype.createEl.call(this,'div',{className:'vjs-volume-bar vjs-slider-bar'},{'aria-label':this.localize('Volume Level'),'aria-live':'polite'})},c.handleMouseDown=function e(b){M(b)&&a.prototype.handleMouseDown.call(this,b)},c.handleMouseMove=function f(a){M(a)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(a)))},c.checkMuted=function g(){this.player_.muted()&&this.player_.muted(!1)},c.getPercent=function h(){return this.player_.muted()?0:this.player_.volume()},c.stepForward=function i(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},c.stepBack=function j(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},c.updateARIAAttributes=function k(a){var b=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute('aria-valuenow',b),this.el_.setAttribute('aria-valuetext',b+'%')},c.volumeAsPercentage_=function l(){return Math.round(100*this.player_.volume())},c.updateLastVolume_=function m(){var a=this,b=this.player_.volume();this.one('sliderinactive',function(){0===a.player_.volume()&&a.player_.lastVolume_(b)})},b}(rg);Fg.prototype.options_={children:['volumeLevel'],barName:'volumeLevel'},Fg.prototype.playerEvent='volumechange',jc.registerComponent('VolumeBar',Fg);var Gg=function(a){function b(b,c){var d;return void 0===c&&(c={}),c.vertical=c.vertical||!1,('undefined'==typeof c.volumeBar||h(c.volumeBar))&&(c.volumeBar=c.volumeBar||{},c.volumeBar.vertical=c.vertical),d=a.call(this,b,c)||this,Dg(da(d),b),d.throttledHandleMouseMove=Ub(Tb(da(d),d.handleMouseMove),Sb),d.on('mousedown',d.handleMouseDown),d.on('touchstart',d.handleMouseDown),d.on(d.volumeBar,['focus','slideractive'],function(){d.volumeBar.addClass('vjs-slider-active'),d.addClass('vjs-slider-active'),d.trigger('slideractive')}),d.on(d.volumeBar,['blur','sliderinactive'],function(){d.volumeBar.removeClass('vjs-slider-active'),d.removeClass('vjs-slider-active'),d.trigger('sliderinactive')}),d}_(b,a);var c=b.prototype;return c.createEl=function d(){var b='vjs-volume-horizontal';return this.options_.vertical&&(b='vjs-volume-vertical'),a.prototype.createEl.call(this,'div',{className:"vjs-volume-control vjs-control "+b})},c.handleMouseDown=function e(a){var b=this.el_.ownerDocument;this.on(b,'mousemove',this.throttledHandleMouseMove),this.on(b,'touchmove',this.throttledHandleMouseMove),this.on(b,'mouseup',this.handleMouseUp),this.on(b,'touchend',this.handleMouseUp)},c.handleMouseUp=function f(a){var b=this.el_.ownerDocument;this.off(b,'mousemove',this.throttledHandleMouseMove),this.off(b,'touchmove',this.throttledHandleMouseMove),this.off(b,'mouseup',this.handleMouseUp),this.off(b,'touchend',this.handleMouseUp)},c.handleMouseMove=function g(a){this.volumeBar.handleMouseMove(a)},b}(jc);Gg.prototype.options_={children:['volumeBar']},jc.registerComponent('VolumeControl',Gg);var Hg=function Xq(a,b){b.tech_&&!b.tech_.featuresMuteControl&&a.addClass('vjs-hidden'),a.on(b,'loadstart',function(){b.tech_.featuresMuteControl?a.removeClass('vjs-hidden'):a.addClass('vjs-hidden')})},Ig=function(a){function b(b,c){var d;return d=a.call(this,b,c)||this,Hg(da(d),b),d.on(b,['loadstart','volumechange'],d.update),d}_(b,a);var c=b.prototype;return c.buildCSSClass=function d(){return"vjs-mute-control "+a.prototype.buildCSSClass.call(this)},c.handleClick=function e(a){var b=this.player_.volume(),c=this.player_.lastVolume_();if(0===b){var d=.1>c?.1:c;this.player_.volume(d),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},c.update=function f(a){this.updateIcon_(),this.updateControlText_()},c.updateIcon_=function g(){var a=this.player_.volume(),b=3;qc&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===a||this.player_.muted()?b=0:.33>a?b=1:.67>a&&(b=2);for(var c=0;4>c;c++)v(this.el_,"vjs-vol-"+c);u(this.el_,"vjs-vol-"+b)},c.updateControlText_=function h(){var a=this.player_.muted()||0===this.player_.volume(),b=a?'Unmute':'Mute';this.controlText()!==b&&this.controlText(b)},b}(eg);Ig.prototype.controlText_='Mute',jc.registerComponent('MuteToggle',Ig);var Jg=function(a){function c(b,c){var d;return void 0===c&&(c={}),'undefined'!=typeof c.inline?c.inline=c.inline:c.inline=!0,('undefined'==typeof c.volumeControl||h(c.volumeControl))&&(c.volumeControl=c.volumeControl||{},c.volumeControl.vertical=!c.inline),d=a.call(this,b,c)||this,d.on(b,['loadstart'],d.volumePanelState_),d.on(d.muteToggle,'keyup',d.handleKeyPress),d.on(d.volumeControl,'keyup',d.handleVolumeControlKeyUp),d.on('keydown',d.handleKeyPress),d.on('mouseover',d.handleMouseOver),d.on('mouseout',d.handleMouseOut),d.on(d.volumeControl,['slideractive'],d.sliderActive_),d.on(d.volumeControl,['sliderinactive'],d.sliderInactive_),d}_(c,a);var d=c.prototype;return d.sliderActive_=function e(){this.addClass('vjs-slider-active')},d.sliderInactive_=function f(){this.removeClass('vjs-slider-active')},d.volumePanelState_=function g(){this.volumeControl.hasClass('vjs-hidden')&&this.muteToggle.hasClass('vjs-hidden')&&this.addClass('vjs-hidden'),this.volumeControl.hasClass('vjs-hidden')&&!this.muteToggle.hasClass('vjs-hidden')&&this.addClass('vjs-mute-toggle-only')},d.createEl=function i(){var b='vjs-volume-panel-horizontal';return this.options_.inline||(b='vjs-volume-panel-vertical'),a.prototype.createEl.call(this,'div',{className:"vjs-volume-panel vjs-control "+b})},d.dispose=function j(){this.handleMouseOut(),a.prototype.dispose.call(this)},d.handleVolumeControlKeyUp=function k(a){Rc.isEventKey(a,'Esc')&&this.muteToggle.focus()},d.handleMouseOver=function l(a){this.addClass('vjs-hover'),T(b,'keyup',Tb(this,this.handleKeyPress))},d.handleMouseOut=function m(a){this.removeClass('vjs-hover'),U(b,'keyup',Tb(this,this.handleKeyPress))},d.handleKeyPress=function n(a){Rc.isEventKey(a,'Esc')&&this.handleMouseOut()},c}(jc);Jg.prototype.options_={children:['muteToggle','volumeControl']},jc.registerComponent('VolumePanel',Jg);var Kg=function(a){function c(b,c){var d;return d=a.call(this,b,c)||this,c&&(d.menuButton_=c.menuButton),d.focusedChild_=-1,d.on('keydown',d.handleKeyDown),d.boundHandleBlur_=Tb(da(d),d.handleBlur),d.boundHandleTapClick_=Tb(da(d),d.handleTapClick),d}_(c,a);var d=c.prototype;return d.addEventListenerForItem=function e(a){a instanceof jc&&(this.on(a,'blur',this.boundHandleBlur_),this.on(a,['tap','click'],this.boundHandleTapClick_))},d.removeEventListenerForItem=function f(a){a instanceof jc&&(this.off(a,'blur',this.boundHandleBlur_),this.off(a,['tap','click'],this.boundHandleTapClick_))},d.removeChild=function g(b){'string'==typeof b&&(b=this.getChild(b)),this.removeEventListenerForItem(b),a.prototype.removeChild.call(this,b)},d.addItem=function h(a){var b=this.addChild(a);b&&this.addEventListenerForItem(b)},d.createEl=function i(){var b=this.options_.contentElType||'ul';this.contentEl_=q(b,{className:'vjs-menu-content'}),this.contentEl_.setAttribute('role','menu');var c=a.prototype.createEl.call(this,'div',{append:this.contentEl_,className:'vjs-menu'});return c.appendChild(this.contentEl_),T(c,'click',function(a){a.preventDefault(),a.stopImmediatePropagation()}),c},d.dispose=function j(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,a.prototype.dispose.call(this)},d.handleBlur=function k(a){var c=a.relatedTarget||b.activeElement;if(!this.children().some(function(a){return a.el()===c})){var d=this.menuButton_;d&&d.buttonPressed_&&c!==d.el().firstChild&&d.unpressButton()}},d.handleTapClick=function l(a){if(this.menuButton_){this.menuButton_.unpressButton();var b=this.children();if(!Array.isArray(b))return;var c=b.filter(function(b){return b.el()===a.target})[0];if(!c)return;'CaptionSettingsMenuItem'!==c.name()&&this.menuButton_.focus()}},d.handleKeyDown=function m(a){Rc.isEventKey(a,'Left')||Rc.isEventKey(a,'Down')?(a.preventDefault(),a.stopPropagation(),this.stepForward()):(Rc.isEventKey(a,'Right')||Rc.isEventKey(a,'Up'))&&(a.preventDefault(),a.stopPropagation(),this.stepBack())},d.stepForward=function n(){var a=0;void 0!==this.focusedChild_&&(a=this.focusedChild_+1),this.focus(a)},d.stepBack=function o(){var a=0;void 0!==this.focusedChild_&&(a=this.focusedChild_-1),this.focus(a)},d.focus=function p(a){void 0===a&&(a=0);var b=this.children().slice(),c=b.length&&b[0].className&&/vjs-menu-title/.test(b[0].className);c&&b.shift(),b.length>0&&(0>a?a=0:a>=b.length&&(a=b.length-1),this.focusedChild_=a,b[a].el_.focus())},c}(jc);jc.registerComponent('Menu',Kg);var Lg=function(a){function c(c,d){var e;void 0===d&&(d={}),e=a.call(this,c,d)||this,e.menuButton_=new eg(c,d),e.menuButton_.controlText(e.controlText_),e.menuButton_.el_.setAttribute('aria-haspopup','true');var f=eg.prototype.buildCSSClass();return e.menuButton_.el_.className=e.buildCSSClass()+' '+f,e.menuButton_.removeClass('vjs-control'),e.addChild(e.menuButton_),e.update(),e.enabled_=!0,e.on(e.menuButton_,'tap',e.handleClick),e.on(e.menuButton_,'click',e.handleClick),e.on(e.menuButton_,'keydown',e.handleKeyDown),e.on(e.menuButton_,'mouseenter',function(){e.addClass('vjs-hover'),e.menu.show(),T(b,'keyup',Tb(da(e),e.handleMenuKeyUp))}),e.on('mouseleave',e.handleMouseLeave),e.on('keydown',e.handleSubmenuKeyDown),e}_(c,a);var d=c.prototype;return d.update=function e(){var a=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=a,this.addChild(a),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute('aria-expanded','false'),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},d.createMenu=function f(){var a=new Kg(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var b=q('li',{className:'vjs-menu-title',innerHTML:hc(this.options_.title),tabIndex:-1});this.hideThreshold_+=1;var c=new jc(this.player_,{el:b});a.addItem(c)}if(this.items=this.createItems(),this.items)for(var d=0;d<this.items.length;d++)a.addItem(this.items[d]);return a},d.createItems=function g(){},d.createEl=function h(){return a.prototype.createEl.call(this,'div',{className:this.buildWrapperCSSClass()},{})},d.buildWrapperCSSClass=function i(){var b='vjs-menu-button';b+=this.options_.inline===!0?'-inline':'-popup';var c=eg.prototype.buildCSSClass();return"vjs-menu-button "+b+" "+c+" "+a.prototype.buildCSSClass.call(this)},d.buildCSSClass=function j(){var b='vjs-menu-button';return b+=this.options_.inline===!0?'-inline':'-popup',"vjs-menu-button "+b+" "+a.prototype.buildCSSClass.call(this)},d.controlText=function k(a,b){return void 0===b&&(b=this.menuButton_.el()),this.menuButton_.controlText(a,b)},d.dispose=function l(){this.handleMouseLeave(),a.prototype.dispose.call(this)},d.handleClick=function m(a){(Hb.browser.IS_ANDROID||Hb.browser.IS_IPHONE||Hb.browser.IS_NATIVE_ANDROID)&&(this.parentComponent_[this.name_]||(this.parentComponent_[this.name_]=this),'playbackRateMenuButton'!==this.name_&&((this.parentComponent_||{}).playbackRateMenuButton||{}).buttonPressed_&&this.parentComponent_.playbackRateMenuButton.unpressButton(),'SubsCapsButton'!==this.name_&&((this.parentComponent_||{}).subsCapsButton||{}).buttonPressed_&&this.parentComponent_.subsCapsButton.unpressButton(),'TranscriptionMenuButton'!==this.name_&&((this.parentComponent_||{}).TranscriptionMenuButton||{}).buttonPressed_&&this.parentComponent_.TranscriptionMenuButton.unpressButton(),'QualityButton'!==this.name_&&((this.parentComponent_||{}).QualityButton||{}).buttonPressed_&&this.parentComponent_.QualityButton.unpressButton(),this.buttonPressed_?this.unpressButton():this.pressButton())},d.handleMouseLeave=function n(a){this.removeClass('vjs-hover'),U(b,'keyup',Tb(this,this.handleMenuKeyUp))},d.focus=function p(){this.menuButton_.focus()},d.blur=function r(){this.menuButton_.blur()},d.handleKeyDown=function s(a){Rc.isEventKey(a,'Esc')||Rc.isEventKey(a,'Tab')?(this.buttonPressed_&&this.unpressButton(),Rc.isEventKey(a,'Tab')||(a.preventDefault(),this.menuButton_.focus())):(Rc.isEventKey(a,'Up')||Rc.isEventKey(a,'Down'))&&(this.buttonPressed_||(a.preventDefault(),this.pressButton()))},d.handleMenuKeyUp=function t(a){(Rc.isEventKey(a,'Esc')||Rc.isEventKey(a,'Tab'))&&this.removeClass('vjs-hover')},d.handleSubmenuKeyPress=function u(a){this.handleSubmenuKeyDown(a)},d.handleSubmenuKeyDown=function v(a){(Rc.isEventKey(a,'Esc')||Rc.isEventKey(a,'Tab'))&&(this.buttonPressed_&&this.unpressButton(),Rc.isEventKey(a,'Tab')||(a.preventDefault(),this.menuButton_.focus()))},d.pressButton=function w(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute('aria-expanded','true'),qc&&o())return;this.menu.focus()}},d.unpressButton=function x(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute('aria-expanded','false'))},d.disable=function y(){this.unpressButton(),this.enabled_=!1,this.addClass('vjs-disabled'),this.menuButton_.disable()},d.enable=function z(){this.enabled_=!0,this.removeClass('vjs-disabled'),this.menuButton_.enable()},c}(jc);jc.registerComponent('MenuButton',Lg);var Mg=function(a){function b(b,c){var d,e=c.tracks;if(d=a.call(this,b,c)||this,d.items.length<=1&&d.hide(),!e)return da(d);var f=Tb(da(d),d.update);return e.addEventListener('removetrack',f),e.addEventListener('addtrack',f),d.player_.on('ready',f),d.player_.on('dispose',function(){e.removeEventListener('removetrack',f),
e.removeEventListener('addtrack',f)}),d}return _(b,a),b}(Lg);jc.registerComponent('TrackButton',Mg);var Ng=['Tab','Esc','Up','Down','Right','Left'],Og=function(a){function b(b,c){var d;return d=a.call(this,b,c)||this,d.selectable=c.selectable,d.isSelected_=c.selected||!1,d.multiSelectable=c.multiSelectable,d.selected(d.isSelected_),d.selectable?d.multiSelectable?d.el_.setAttribute('role','menuitemcheckbox'):d.el_.setAttribute('role','menuitemradio'):d.el_.setAttribute('role','menuitem'),d}_(b,a);var c=b.prototype;return c.createEl=function d(b,c,e){return this.nonIconControl=!0,a.prototype.createEl.call(this,'li',f({className:'vjs-menu-item',innerHTML:"<span class=\"vjs-menu-item-text\">"+this.localize(this.options_.label)+"</span>",tabIndex:-1},c),e)},c.handleKeyDown=function e(b){Ng.some(function(a){return Rc.isEventKey(b,a)})||a.prototype.handleKeyDown.call(this,b)},c.handleClick=function g(a){this.selected(!0)},c.selected=function h(a){this.selectable&&(a?(this.addClass('vjs-selected'),this.el_.setAttribute('aria-checked','true'),this.controlText(', selected'),this.isSelected_=!0):(this.removeClass('vjs-selected'),this.el_.setAttribute('aria-checked','false'),this.controlText(''),this.isSelected_=!1))},b}(Zf);jc.registerComponent('MenuItem',Og);var Pg=function(c){function d(d,e){var f,g=e.track,h=d.textTracks();e.label=g.label||g.language||'Unknown',e.selected='showing'===g.mode,f=c.call(this,d,e)||this,f.track=g,f.kinds=(e.kinds||[e.kind||f.track.kind]).filter(Boolean);var i=function l(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];f.handleTracksChange.apply(da(f),b)},j=function m(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];f.handleSelectedLanguageChange.apply(da(f),b)};if(d.on(['loadstart','texttrackchange'],i),h.addEventListener('change',i),h.addEventListener('selectedlanguagechange',j),f.on('dispose',function(){d.off(['loadstart','texttrackchange'],i),h.removeEventListener('change',i),h.removeEventListener('selectedlanguagechange',j)}),void 0===h.onchange){var k;f.on(['tap','click'],function(){if('object'!=typeof a.Event)try{k=new a.Event('change')}catch(c){}k||(k=b.createEvent('Event'),k.initEvent('change',!0,!0)),h.dispatchEvent(k)})}return f.handleTracksChange(),f}_(d,c);var e=d.prototype;return e.handleClick=function f(a){var b=this.track,d=this.player_.textTracks();if(c.prototype.handleClick.call(this,a),d)for(var e=0;e<d.length;e++){var f=d[e];-1!==this.kinds.indexOf(f.kind)&&(f===b?'showing'!==f.mode&&(f.mode='showing'):'disabled'!==f.mode&&(f.mode='disabled'))}},e.handleTracksChange=function g(a){var b='showing'===this.track.mode;b!==this.isSelected_&&this.selected(b)},e.handleSelectedLanguageChange=function h(a){if('showing'===this.track.mode){var b=this.player_.cache_.selectedLanguage;if(b&&b.enabled&&b.language===this.track.language&&b.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},e.dispose=function i(){this.track=null,c.prototype.dispose.call(this)},d}(Og);jc.registerComponent('TextTrackMenuItem',Pg);var Qg=function(a){function b(b,c){return c.track={player:b,kind:c.kind,kinds:c.kinds,"default":!1,mode:'disabled'},c.kinds||(c.kinds=[c.kind]),c.label?c.track.label=c.label:c.track.label=c.kinds.join(' and ')+' off',c.selectable=!0,c.multiSelectable=!1,a.call(this,b,c)||this}_(b,a);var c=b.prototype;return c.handleTracksChange=function d(a){for(var b=this.player().textTracks(),c=!0,d=0,e=b.length;e>d;d++){var f=b[d];if(this.options_.kinds.indexOf(f.kind)>-1&&'showing'===f.mode){c=!1;break}}c!==this.isSelected_&&this.selected(c)},c.handleSelectedLanguageChange=function e(a){for(var b=this.player().textTracks(),c=!0,d=0,e=b.length;e>d;d++){var f=b[d];if(['captions','descriptions','subtitles'].indexOf(f.kind)>-1&&'showing'===f.mode){c=!1;break}}c&&(this.player_.cache_.selectedLanguage={enabled:!1})},b}(Pg);jc.registerComponent('OffTextTrackMenuItem',Qg);var Rg=function(a){function b(b,c){return void 0===c&&(c={}),c.tracks=b.textTracks(),a.call(this,b,c)||this}_(b,a);var c=b.prototype;return c.createItems=function d(a,b){void 0===a&&(a=[]),void 0===b&&(b=Pg);var c;this.label_&&(c=this.label_+" off"),a.push(new Qg(this.player_,{kinds:this.kinds_,kind:this.kind_,label:c})),this.hideThreshold_+=1;var d=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var e=0;e<d.length;e++){var f=d[e];if(this.kinds_.indexOf(f.kind)>-1){var g=new b(this.player_,{track:f,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});g.addClass("vjs-"+f.kind+"-menu-item"),a.push(g)}}return a},b}(Mg);jc.registerComponent('TextTrackButton',Rg);var Sg=function(a){function b(b,c){var d,e=c.track,f=c.cue,g=b.currentTime();return c.selectable=!0,c.multiSelectable=!1,c.label=f.text,c.selected=f.startTime<=g&&g<f.endTime,d=a.call(this,b,c)||this,d.track=e,d.cue=f,e.addEventListener('cuechange',Tb(da(d),d.update)),d}_(b,a);var c=b.prototype;return c.handleClick=function d(b){a.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},c.update=function e(a){var b=this.cue,c=this.player_.currentTime();this.selected(b.startTime<=c&&c<b.endTime)},b}(Og);jc.registerComponent('ChaptersTrackMenuItem',Sg);var Tg=function(a){function b(b,c,d){return a.call(this,b,c,d)||this}_(b,a);var c=b.prototype;return c.buildCSSClass=function d(){return"vjs-chapters-button "+a.prototype.buildCSSClass.call(this)},c.buildWrapperCSSClass=function e(){return"vjs-chapters-button "+a.prototype.buildWrapperCSSClass.call(this)},c.update=function f(b){this.track_&&(!b||'addtrack'!==b.type&&'removetrack'!==b.type)||this.setTrack(this.findChaptersTrack()),a.prototype.update.call(this)},c.setTrack=function g(a){if(this.track_!==a){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var b=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);b&&b.removeEventListener('load',this.updateHandler_),this.track_=null}if(this.track_=a,this.track_){this.track_.mode='hidden';var c=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);c&&c.addEventListener('load',this.updateHandler_)}}},c.findChaptersTrack=function h(){for(var a=this.player_.textTracks()||[],b=a.length-1;b>=0;b--){var c=a[b];if(c.kind===this.kind_)return c}},c.getMenuCaption=function i(){return this.track_&&this.track_.label?this.track_.label:this.localize(hc(this.kind_))},c.createMenu=function j(){return this.options_.title=this.getMenuCaption(),a.prototype.createMenu.call(this)},c.createItems=function k(){var a=[];if(!this.track_)return a;var b=this.track_.cues;if(!b)return a;for(var c=0,d=b.length;d>c;c++){var e=b[c],f=new Sg(this.player_,{track:this.track_,cue:e});a.push(f)}return a},b}(Rg);Tg.prototype.kind_='chapters',Tg.prototype.controlText_='Chapters',jc.registerComponent('ChaptersButton',Tg);var Ug=function(a){function b(b,c,d){var e;e=a.call(this,b,c,d)||this;var f=b.textTracks(),g=Tb(da(e),e.handleTracksChange);return f.addEventListener('change',g),e.on('dispose',function(){f.removeEventListener('change',g)}),e}_(b,a);var c=b.prototype;return c.handleTracksChange=function d(a){for(var b=this.player().textTracks(),c=!1,d=0,e=b.length;e>d;d++){var f=b[d];if(f.kind!==this.kind_&&'showing'===f.mode){c=!0;break}}c?this.disable():this.enable()},c.buildCSSClass=function e(){return"vjs-descriptions-button "+a.prototype.buildCSSClass.call(this)},c.buildWrapperCSSClass=function f(){return"vjs-descriptions-button "+a.prototype.buildWrapperCSSClass.call(this)},b}(Rg);Ug.prototype.kind_='descriptions',Ug.prototype.controlText_='Descriptions',jc.registerComponent('DescriptionsButton',Ug);var Vg=function(a){function b(b,c,d){return a.call(this,b,c,d)||this}_(b,a);var c=b.prototype;return c.buildCSSClass=function d(){return"vjs-subtitles-button "+a.prototype.buildCSSClass.call(this)},c.buildWrapperCSSClass=function e(){return"vjs-subtitles-button "+a.prototype.buildWrapperCSSClass.call(this)},b}(Rg);Vg.prototype.kind_='subtitles',Vg.prototype.controlText_='Subtitles',jc.registerComponent('SubtitlesButton',Vg);var Wg=function(a){function b(b,c){var d;return c.track={player:b,kind:c.kind,label:c.kind+' settings',selectable:!1,"default":!1,mode:'disabled'},c.selectable=!1,c.name='CaptionSettingsMenuItem',d=a.call(this,b,c)||this,d.addClass('vjs-texttrack-settings'),d.controlText(', opens '+c.kind+' settings dialog'),d}_(b,a);var c=b.prototype;return c.handleClick=function d(a){this.player().getChild('textTrackSettings').open()},b}(Pg);jc.registerComponent('CaptionSettingsMenuItem',Wg);var Xg=function(a){function b(b,c,d){return a.call(this,b,c,d)||this}_(b,a);var c=b.prototype;return c.buildCSSClass=function d(){return"vjs-captions-button "+a.prototype.buildCSSClass.call(this)},c.buildWrapperCSSClass=function e(){return"vjs-captions-button "+a.prototype.buildWrapperCSSClass.call(this)},c.createItems=function f(){var b=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild('textTrackSettings')||(b.push(new Wg(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),a.prototype.createItems.call(this,b)},b}(Rg);Xg.prototype.kind_='captions',Xg.prototype.controlText_='Captions',jc.registerComponent('CaptionsButton',Xg);var Yg=function(a){function b(){return a.apply(this,arguments)||this}_(b,a);var c=b.prototype;return c.createEl=function d(b,c,e){var g="<span class=\"vjs-menu-item-text\">"+this.localize(this.options_.label);'captions'===this.options_.track.kind&&(g+="\n        <span aria-hidden=\"true\" class=\"vjs-icon-placeholder\"></span>\n        <span class=\"vjs-control-text\"> "+this.localize('Captions')+"</span>\n      "),g+='</span>';var h=a.prototype.createEl.call(this,b,f({innerHTML:g},c),e);return h},b}(Pg);jc.registerComponent('SubsCapsMenuItem',Yg);var Zg=function(a){function b(b,c){var d;return void 0===c&&(c={}),d=a.call(this,b,c)||this,d.label_='subtitles',['en','en-us','en-ca','fr-ca'].indexOf(d.player_.language_)>-1&&(d.label_='captions'),d.menuButton_.controlText(hc(d.label_)),d}_(b,a);var c=b.prototype;return c.buildCSSClass=function d(){return"vjs-subs-caps-button "+a.prototype.buildCSSClass.call(this)},c.buildWrapperCSSClass=function e(){return"vjs-subs-caps-button "+a.prototype.buildWrapperCSSClass.call(this)},c.createItems=function f(){var b=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild('textTrackSettings')||(b.push(new Wg(this.player_,{kind:this.label_})),this.hideThreshold_+=1),b=a.prototype.createItems.call(this,b,Yg),b},b}(Rg);Zg.prototype.kinds_=['captions','subtitles'],Zg.prototype.controlText_='Subtitles',jc.registerComponent('SubsCapsButton',Zg);var $g=function(a){function b(b,c){var d,e=c.track,f=b.audioTracks();c.label=e.label||e.language||'Unknown',c.selected=e.enabled,d=a.call(this,b,c)||this,d.track=e,d.addClass("vjs-"+e.kind+"-menu-item");var g=function h(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];d.handleTracksChange.apply(da(d),b)};return f.addEventListener('change',g),d.on('dispose',function(){f.removeEventListener('change',g)}),d}_(b,a);var c=b.prototype;return c.createEl=function d(b,c,e){var g="<span class=\"vjs-menu-item-text\">"+this.localize(this.options_.label);'main-desc'===this.options_.track.kind&&(g+="\n        <span aria-hidden=\"true\" class=\"vjs-icon-placeholder\"></span>\n        <span class=\"vjs-control-text\"> "+this.localize('Descriptions')+"</span>\n      "),g+='</span>';var h=a.prototype.createEl.call(this,b,f({innerHTML:g},c),e);return h},c.handleClick=function e(b){var c=this.player_.audioTracks();a.prototype.handleClick.call(this,b);for(var d=0;d<c.length;d++){var e=c[d];e.enabled=e===this.track}},c.handleTracksChange=function g(a){this.selected(this.track.enabled)},b}(Og);jc.registerComponent('AudioTrackMenuItem',$g);var _g=function(a){function b(b,c){return void 0===c&&(c={}),c.tracks=b.audioTracks(),a.call(this,b,c)||this}_(b,a);var c=b.prototype;return c.buildCSSClass=function d(){return"vjs-audio-button "+a.prototype.buildCSSClass.call(this)},c.buildWrapperCSSClass=function e(){return"vjs-audio-button "+a.prototype.buildWrapperCSSClass.call(this)},c.createItems=function f(a){void 0===a&&(a=[]),this.hideThreshold_=1;for(var b=this.player_.audioTracks(),c=0;c<b.length;c++){var d=b[c];a.push(new $g(this.player_,{track:d,selectable:!0,multiSelectable:!1}))}return a},b}(Mg);_g.prototype.controlText_='Audio Track',jc.registerComponent('AudioTrackButton',_g);var ah=function(a){function b(b,c){var d,e=c.rate,f=parseFloat(e,10);return c.label=e,c.selected=1===f,c.selectable=!0,c.multiSelectable=!1,d=a.call(this,b,c)||this,d.label=e,d.rate=f,d.on(b,'ratechange',d.update),d}_(b,a);var c=b.prototype;return c.handleClick=function d(b){a.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},c.update=function e(a){this.selected(this.player().playbackRate()===this.rate)},b}(Og);ah.prototype.contentElType='button',jc.registerComponent('PlaybackRateMenuItem',ah);var bh=function(a){function b(b,c){var d;return d=a.call(this,b,c)||this,d.updateVisibility(),d.updateLabel(),d.on(b,'loadstart',d.updateVisibility),d.on(b,'ratechange',d.updateLabel),d}_(b,a);var c=b.prototype;return c.createEl=function d(){var b=a.prototype.createEl.call(this);return this.labelEl_=q('div',{className:'vjs-playback-rate-value',innerHTML:'1x'}),b.appendChild(this.labelEl_),b},c.dispose=function e(){this.labelEl_=null,a.prototype.dispose.call(this)},c.buildCSSClass=function f(){return"vjs-playback-rate "+a.prototype.buildCSSClass.call(this)},c.buildWrapperCSSClass=function g(){return"vjs-playback-rate "+a.prototype.buildWrapperCSSClass.call(this)},c.createMenu=function h(){var a=new Kg(this.player()),b=this.playbackRates();if(b)for(var c=b.length-1;c>=0;c--)a.addChild(new ah(this.player(),{rate:b[c]+'x'}));return a},c.updateARIAAttributes=function i(){this.el().setAttribute('aria-valuenow',this.player().playbackRate())},c.handleClick=function j(a){for(var b=this.player().playbackRate(),c=this.playbackRates(),d=c[0],e=0;e<c.length;e++)if(c[e]>b){d=c[e];break}this.player().playbackRate(d)},c.playbackRates=function k(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},c.playbackRateSupported=function l(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},c.updateVisibility=function m(a){this.playbackRateSupported()?this.removeClass('vjs-hidden'):this.addClass('vjs-hidden')},c.updateLabel=function n(a){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+'x')},b}(Lg);bh.prototype.controlText_='Playback Rate',jc.registerComponent('PlaybackRateMenuButton',bh);var ch=function(a){function b(){return a.apply(this,arguments)||this}_(b,a);var c=b.prototype;return c.buildCSSClass=function d(){return"vjs-spacer "+a.prototype.buildCSSClass.call(this)},c.createEl=function e(){return a.prototype.createEl.call(this,'div',{className:this.buildCSSClass()})},b}(jc);jc.registerComponent('Spacer',ch);var dh=function(a){function b(){return a.apply(this,arguments)||this}_(b,a);var c=b.prototype;return c.buildCSSClass=function d(){return"vjs-custom-control-spacer "+a.prototype.buildCSSClass.call(this)},c.createEl=function e(){var b=a.prototype.createEl.call(this,{className:this.buildCSSClass()});return b.innerHTML=" ",b},b}(ch);jc.registerComponent('CustomControlSpacer',dh);var eh=function(a){function b(){return a.apply(this,arguments)||this}_(b,a);var c=b.prototype;return c.createEl=function d(){return a.prototype.createEl.call(this,'div',{className:'vjs-control-bar',dir:'ltr'})},b}(jc);eh.prototype.options_={children:['playToggle','volumePanel','currentTimeDisplay','timeDivider','durationDisplay','progressControl','liveDisplay','seekToLive','remainingTimeDisplay','customControlSpacer','playbackRateMenuButton','chaptersButton','descriptionsButton','subsCapsButton','audioTrackButton','fullscreenToggle']},'exitPictureInPicture'in b&&eh.prototype.options_.children.splice(eh.prototype.options_.children.length-1,0,'pictureInPictureToggle'),jc.registerComponent('ControlBar',eh);var fh=function(a){function b(b,c){var d;return d=a.call(this,b,c)||this,d.on(b,'error',d.open),d}_(b,a);var c=b.prototype;return c.buildCSSClass=function d(){return"vjs-error-display "+a.prototype.buildCSSClass.call(this)},c.content=function e(){var a=this.player().error();return a?this.localize(a.message):''},b}(Yc);fh.prototype.options_=$(Yc.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),jc.registerComponent('ErrorDisplay',fh);var gh='vjs-text-track-settings',hh=['#000','Black'],ih=['#00F','Blue'],jh=['#0FF','Cyan'],kh=['#0F0','Green'],lh=['#F0F','Magenta'],mh=['#F00','Red'],nh=['#FFF','White'],oh=['#FF0','Yellow'],ph=['1','Opaque'],qh=['0.5','Semi-Transparent'],rh=['0','Transparent'],sh={backgroundColor:{selector:'.vjs-bg-color > select',id:'captions-background-color-%s',label:'Color',options:[hh,nh,mh,kh,ih,oh,lh,jh]},backgroundOpacity:{selector:'.vjs-bg-opacity > select',id:'captions-background-opacity-%s',label:'Transparency',options:[ph,qh,rh]},color:{selector:'.vjs-fg-color > select',id:'captions-foreground-color-%s',label:'Color',options:[nh,hh,mh,kh,ih,oh,lh,jh]},edgeStyle:{selector:'.vjs-edge-style > select',id:'%s',label:'Text Edge Style',options:[['none','None'],['raised','Raised'],['depressed','Depressed'],['uniform','Uniform'],['dropshadow','Dropshadow']]},fontFamily:{selector:'.vjs-font-family > select',id:'captions-font-family-%s',label:'Font Family',options:[['proportionalSansSerif','Proportional Sans-Serif'],['monospaceSansSerif','Monospace Sans-Serif'],['proportionalSerif','Proportional Serif'],['monospaceSerif','Monospace Serif'],['casual','Casual'],['script','Script'],['small-caps','Small Caps']]},fontPercent:{selector:'.vjs-font-percent > select',id:'captions-font-size-%s',label:'Font Size',options:[['0.50','50%'],['0.75','75%'],['1.00','100%'],['1.25','125%'],['1.50','150%'],['1.75','175%'],['2.00','200%'],['3.00','300%'],['4.00','400%']],"default":2,parser:function Yq(a){return'1.00'===a?null:Number(a)}},textOpacity:{selector:'.vjs-text-opacity > select',id:'captions-foreground-opacity-%s',label:'Transparency',options:[ph,qh]},windowColor:{selector:'.vjs-window-color > select',id:'captions-window-color-%s',label:'Color'},windowOpacity:{selector:'.vjs-window-opacity > select',id:'captions-window-opacity-%s',label:'Transparency',options:[rh,qh,ph]}};sh.windowColor.options=sh.backgroundColor.options;var th=function(b){function c(a,c){var e;return c.temporary=!1,e=b.call(this,a,c)||this,e.updateDisplay=Tb(da(e),e.updateDisplay),e.fill(),e.hasBeenOpened_=e.hasBeenFilled_=!0,e.endDialog=q('p',{className:'vjs-control-text',textContent:e.localize('End of dialog window.')}),e.el().appendChild(e.endDialog),e.setDefaults(),void 0===c.persistTextTrackSettings&&(e.options_.persistTextTrackSettings=e.options_.playerOptions.persistTextTrackSettings),e.on(e.$('.vjs-done-button'),'click',function(){e.saveSettings(),e.close()}),e.on(e.$('.vjs-default-button'),'click',function(){e.setDefaults(),e.updateDisplay()}),d(sh,function(a){e.on(e.$(a.selector),'change',e.updateDisplay)}),e.options_.persistTextTrackSettings&&e.restoreSettings(),e}_(c,b);var f=c.prototype;return f.dispose=function g(){this.endDialog=null,b.prototype.dispose.call(this)},f.createElSelect_=function h(a,b,c){var d=this;void 0===b&&(b=''),void 0===c&&(c='label');var e=sh[a],f=e.id.replace('%s',this.id_),g=[b,f].join(' ').trim();return["<"+c+" id=\""+f+"\" class=\""+('label'===c?'vjs-label':'')+"\">",this.localize(e.label),"</"+c+">","<select aria-labelledby=\""+g+"\">"].concat(e.options.map(function(a){var b=f+'-'+a[1].replace(/\W+/g,'');return["<option id=\""+b+"\" value=\""+a[0]+"\" ","aria-labelledby=\""+g+" "+b+"\">",d.localize(a[1]),'</option>'].join('')})).concat('</select>').join('')},f.createElFgColor_=function i(){var a="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">',"<legend id=\""+a+"\">",this.localize('Text'),'</legend>',this.createElSelect_('color',a),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_('textOpacity',a),'</span>','</fieldset>'].join('')},f.createElBgColor_=function j(){var a="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">',"<legend id=\""+a+"\">",this.localize('Background'),'</legend>',this.createElSelect_('backgroundColor',a),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_('backgroundOpacity',a),'</span>','</fieldset>'].join('')},f.createElWinColor_=function k(){var a="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">',"<legend id=\""+a+"\">",this.localize('Window'),'</legend>',this.createElSelect_('windowColor',a),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_('windowOpacity',a),'</span>','</fieldset>'].join('')},f.createElColors_=function l(){return q('div',{className:'vjs-track-settings-colors',innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join('')})},f.createElFont_=function m(){return q('div',{className:'vjs-track-settings-font',innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_('fontPercent','','legend'),'</fieldset>','<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_('edgeStyle','','legend'),'</fieldset>','<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_('fontFamily','','legend'),'</fieldset>'].join('')})},f.createElControls_=function n(){var a=this.localize('restore all settings to the default values');return q('div',{className:'vjs-track-settings-controls',innerHTML:["<button type=\"button\" class=\"vjs-default-button\" title=\""+a+"\">",this.localize('Reset'),"<span class=\"vjs-control-text\"> "+a+"</span>",'</button>',"<button type=\"button\" class=\"vjs-done-button\">"+this.localize('Done')+"</button>"].join('')})},f.content=function o(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},f.label=function p(){return this.localize('Caption Settings Dialog')},f.description=function r(){return this.localize('Beginning of dialog window. Escape will cancel and close the window.')},f.buildCSSClass=function s(){return b.prototype.buildCSSClass.call(this)+' vjs-text-track-settings'},f.getValues=function t(){var a=this;return e(sh,function(b,c,d){var e=ib(a.$(c.selector),c.parser);return void 0!==e&&(b[d]=e),b},{})},f.setValues=function u(a){var b=this;d(sh,function(c,d){jb(b.$(c.selector),a[d],c.parser)})},f.setDefaults=function v(){var a=this;d(sh,function(b){var c=b.hasOwnProperty('default')?b["default"]:0;a.$(b.selector).selectedIndex=c})},f.restoreSettings=function w(){var b;try{b=JSON.parse(a.localStorage.getItem(gh))}catch(c){zb.warn(c)}b&&this.setValues(b)},f.saveSettings=function x(){if(this.options_.persistTextTrackSettings){var b=this.getValues();try{Object.keys(b).length?a.localStorage.setItem(gh,JSON.stringify(b)):a.localStorage.removeItem(gh)}catch(c){zb.warn(c)}}},f.updateDisplay=function y(){var a=this.player_.getChild('textTrackDisplay');a&&a.updateDisplay()},f.conditionalBlur_=function z(){this.previouslyActiveEl_=null;var a=this.player_.controlBar,b=a&&a.subsCapsButton,c=a&&a.captionsButton;b?b.focus():c&&c.focus()},c}(Yc);jc.registerComponent('TextTrackSettings',th);var uh=function(b){function c(c,d){var e,f=d.ResizeObserver||a.ResizeObserver;null===d.ResizeObserver&&(f=!1);var g=$({createEl:!f,reportTouchActivity:!1},d);return e=b.call(this,c,g)||this,e.ResizeObserver=d.ResizeObserver||a.ResizeObserver,e.loadListener_=null,e.resizeObserver_=null,e.debouncedHandler_=Vb(function(){e.resizeHandler()},100,!1,da(e)),f?(e.resizeObserver_=new e.ResizeObserver(e.debouncedHandler_),e.resizeObserver_.observe(c.el())):(e.loadListener_=function(){if(e.el_&&e.el_.contentWindow){var a=e.debouncedHandler_,b=e.unloadListener_=function(){U(this,'resize',a),U(this,'unload',b),b=null};T(e.el_.contentWindow,'unload',b),T(e.el_.contentWindow,'resize',a)}},e.one('load',e.loadListener_)),e}_(c,b);var d=c.prototype;return d.createEl=function e(){return b.prototype.createEl.call(this,'iframe',{className:'vjs-resize-manager',tabIndex:-1},{'aria-hidden':'true'})},d.resizeHandler=function f(){this.player_&&this.player_.trigger&&this.player_.trigger('playerresize')},d.dispose=function g(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off('load',this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,b.prototype.dispose.call(this)},c}(jc);jc.registerComponent('ResizeManager',uh);var vh=function Zq(a){var b=Math.floor(a.length/2),c=[].concat(a).sort(function(a,b){return a-b});return a.length%2!==0?c[b]:(c[b-1]+c[b])/2},wh=function(a){function c(c,d){var e,f=$({createEl:!1},d);return e=a.call(this,c,f)||this,e.reset_(),e.on(e.player_,'durationchange',e.handleDurationchange),zc&&'hidden'in b&&'visibilityState'in b&&e.on(b,'visibilitychange',e.handleVisibilityChange),e}_(c,a);var d=c.prototype;return d.handleVisibilityChange=function e(){this.player_.duration()===1/0&&(b.hidden?this.stopTracking():this.startTracking())},d.isBehind_=function f(){if(!this.timeupdateSeen_)return!1;var a=this.liveCurrentTime(),b=this.player_.currentTime(),c=2*this.seekableIncrement_+.07;return a!==1/0&&a-c>=b},d.trackLive_=function g(){this.pastSeekEnd_=this.pastSeekEnd_;var a=this.player_.seekable();if(a&&a.length){var b=this.seekableEnd();b!==this.lastSeekEnd_&&(this.lastSeekEnd_&&(this.seekableIncrementList_=this.seekableIncrementList_.slice(-11),this.seekableIncrementList_.push(Math.abs(b-this.lastSeekEnd_)),this.seekableIncrementList_.length>3&&(this.seekableIncrement_=vh(this.seekableIncrementList_))),this.pastSeekEnd_=0,this.lastSeekEnd_=b,this.trigger('seekableendchange')),this.pastSeekEnd_=this.pastSeekEnd()+.03,this.isBehind_()!==this.behindLiveEdge()&&(this.behindLiveEdge_=this.isBehind_(),this.trigger('liveedgechange'))}},d.handleDurationchange=function h(){this.player_.duration()===1/0?this.startTracking():this.stopTracking()},d.startTracking=function i(){var a=this;this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLive_,30),this.trackLive_(),this.on(this.player_,'play',this.trackLive_),this.on(this.player_,'pause',this.trackLive_),this.timeupdateSeen_||(this.one(this.player_,'play',this.handlePlay),this.handleTimeupdate=function(){a.timeupdateSeen_=!0,a.handleTimeupdate=null},this.one(this.player_,'timeupdate',this.handleTimeupdate)))},d.handlePlay=function j(){this.one(this.player_,'timeupdate',this.seekToLiveEdge)},d.reset_=function k(){this.pastSeekEnd_=0,this.lastSeekEnd_=null,this.behindLiveEdge_=null,this.timeupdateSeen_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.seekableIncrement_=12,this.seekableIncrementList_=[],this.off(this.player_,'play',this.trackLive_),this.off(this.player_,'pause',this.trackLive_),this.off(this.player_,'play',this.handlePlay),this.off(this.player_,'timeupdate',this.seekToLiveEdge),this.handleTimeupdate&&(this.off(this.player_,'timeupdate',this.handleTimeupdate),this.handleTimeupdate=null)},d.stopTracking=function l(){this.isTracking()&&this.reset_()},d.seekableEnd=function m(){for(var a=this.player_.seekable(),b=[],c=a?a.length:0;c--;)b.push(a.end(c));return b.length?b.sort()[b.length-1]:1/0},d.seekableStart=function n(){for(var a=this.player_.seekable(),b=[],c=a?a.length:0;c--;)b.push(a.start(c));return b.length?b.sort()[0]:0},d.liveWindow=function o(){var a=this.liveCurrentTime();return a===1/0?1/0:a-this.seekableStart()},d.isLive=function p(){return this.isTracking()},d.atLiveEdge=function q(){return!this.behindLiveEdge()},d.liveCurrentTime=function r(){return this.pastSeekEnd()+this.seekableEnd()},d.pastSeekEnd=function s(){return this.pastSeekEnd_},d.behindLiveEdge=function t(){return this.behindLiveEdge_},d.isTracking=function u(){return'number'==typeof this.trackingInterval_},d.seekToLiveEdge=function v(){this.atLiveEdge()||(this.player_.currentTime(this.liveCurrentTime()),this.player_.paused()&&this.player_.play())},d.dispose=function w(){this.stopTracking(),a.prototype.dispose.call(this)},c}(jc);jc.registerComponent('LiveTracker',wh);var xh=function $q(a){var b=a.el();if(b.hasAttribute('src'))return a.triggerSourceset(b.src),!0;var c=a.$$('source'),d=[],e='';if(!c.length)return!1;for(var f=0;f<c.length;f++){var g=c[f].src;g&&-1===d.indexOf(g)&&d.push(g)}return d.length?(1===d.length&&(e=d[0]),a.triggerSourceset(e),!0):!1},yh=Object.defineProperty({},'innerHTML',{get:function _q(){return this.cloneNode(!0).innerHTML},set:function ar(c){var d=b.createElement(this.nodeName.toLowerCase());d.innerHTML=c;for(var e=b.createDocumentFragment();d.childNodes.length;)e.appendChild(d.childNodes[0]);return this.innerText='',a.Element.prototype.appendChild.call(this,e),this.innerHTML}}),zh=function br(a,b){for(var c={},d=0;d<a.length&&(c=Object.getOwnPropertyDescriptor(a[d],b),!(c&&c.set&&c.get));d++);return c.enumerable=!0,c.configurable=!0,c},Ah=function cr(b){return zh([b.el(),a.HTMLMediaElement.prototype,a.Element.prototype,yh],'innerHTML')},Bh=function dr(a){var b=a.el();if(!b.resetSourceWatch_){var c={},d=Ah(a),e=function f(c){return function(){for(var d=arguments.length,e=new Array(d),f=0;d>f;f++)e[f]=arguments[f];var g=c.apply(b,e);return xh(a),g}};['append','appendChild','insertAdjacentHTML'].forEach(function(a){b[a]&&(c[a]=b[a],b[a]=e(c[a]))}),Object.defineProperty(b,'innerHTML',$(d,{set:e(d.set)})),b.resetSourceWatch_=function(){b.resetSourceWatch_=null,Object.keys(c).forEach(function(a){b[a]=c[a]}),Object.defineProperty(b,'innerHTML',d)},a.one('sourceset',b.resetSourceWatch_)}},Ch=Object.defineProperty({},'src',{get:function er(){return this.hasAttribute('src')?md(a.Element.prototype.getAttribute.call(this,'src')):''},set:function fr(b){return a.Element.prototype.setAttribute.call(this,'src',b),b}}),Dh=function gr(b){return zh([b.el(),a.HTMLMediaElement.prototype,Ch],'src')},Eh=function hr(a){if(a.featuresSourceset){var b=a.el();if(!b.resetSourceset_){var c=Dh(a),d=b.setAttribute,e=b.load;Object.defineProperty(b,'src',$(c,{set:function f(d){var e=c.set.call(b,d);return a.triggerSourceset(b.src),e}})),b.setAttribute=function(c,e){var f=d.call(b,c,e);return/src/i.test(c)&&a.triggerSourceset(b.src),f},b.load=function(){var c=e.call(b);return xh(a)||(a.triggerSourceset(''),Bh(a)),c},b.currentSrc?a.triggerSourceset(b.currentSrc):xh(a)||Bh(a),b.resetSourceset_=function(){b.resetSourceset_=null,b.load=e,b.setAttribute=d,Object.defineProperty(b,'src',c),b.resetSourceWatch_&&b.resetSourceWatch_()}}}},Fh=function(c){function d(a,b){var d;d=c.call(this,a,b)||this;var e=a.source,f=!1;if(e&&(d.el_.currentSrc!==e.src||a.tag&&3===a.tag.initNetworkState_)?d.setSource(e):d.handleLateInit_(d.el_),a.enableSourceset&&d.setupSourcesetHandling_(),d.el_.hasChildNodes()){for(var g=d.el_.childNodes,h=g.length,i=[];h--;){var j=g[h],k=j.nodeName.toLowerCase();'track'===k&&(d.featuresNativeTextTracks?(d.remoteTextTrackEls().addTrackElement_(j),d.remoteTextTracks().addTrack(j.track),d.textTracks().addTrack(j.track),f||d.el_.hasAttribute('crossorigin')||!od(j.src)||(f=!0)):i.push(j))}for(var l=0;l<i.length;l++)d.el_.removeChild(i[l])}return d.proxyNativeTracks_(),d.featuresNativeTextTracks&&f&&zb.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),
d.restoreMetadataTracksInIOSNativePlayer_(),(Dc||oc||uc)&&a.nativeControlsForTouch===!0&&d.setControls(!0),d.proxyWebkitFullscreen_(),d.triggerReady(),d}_(d,c);var e=d.prototype;return e.dispose=function g(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),d.disposeMediaElement(this.el_),this.options_=null,c.prototype.dispose.call(this)},e.setupSourcesetHandling_=function h(){Eh(this)},e.restoreMetadataTracksInIOSNativePlayer_=function i(){var a=this.textTracks(),b,c=function e(){b=[];for(var c=0;c<a.length;c++){var d=a[c];'metadata'===d.kind&&b.push({track:d,storedMode:d.mode})}};c(),a.addEventListener('change',c),this.on('dispose',function(){return a.removeEventListener('change',c)});var d=function f(){for(var c=0;c<b.length;c++){var d=b[c];'disabled'===d.track.mode&&d.track.mode!==d.storedMode&&(d.track.mode=d.storedMode)}a.removeEventListener('change',f)};this.on('webkitbeginfullscreen',function(){a.removeEventListener('change',c),a.removeEventListener('change',d),a.addEventListener('change',d)}),this.on('webkitendfullscreen',function(){a.removeEventListener('change',c),a.addEventListener('change',c),a.removeEventListener('change',d)})},e.overrideNative_=function j(a,b){var c=this;if(b===this["featuresNative"+a+"Tracks"]){var d=a.toLowerCase();this[d+"TracksListeners_"]&&Object.keys(this[d+"TracksListeners_"]).forEach(function(a){var b=c.el()[d+"Tracks"];b.removeEventListener(a,c[d+"TracksListeners_"][a])}),this["featuresNative"+a+"Tracks"]=!b,this[d+"TracksListeners_"]=null,this.proxyNativeTracksForType_(d)}},e.overrideNativeAudioTracks=function k(a){this.overrideNative_('Audio',a)},e.overrideNativeVideoTracks=function l(a){this.overrideNative_('Video',a)},e.proxyNativeTracksForType_=function m(a){var b=this,c=qf[a],d=this.el()[c.getterName],e=this[c.getterName]();if(this["featuresNative"+c.capitalName+"Tracks"]&&d&&d.addEventListener){var f={change:function h(a){e.trigger({type:'change',target:e,currentTarget:e,srcElement:e})},addtrack:function i(a){e.addTrack(a.track)},removetrack:function j(a){e.removeTrack(a.track)}},g=function k(){for(var a=[],b=0;b<e.length;b++){for(var c=!1,f=0;f<d.length;f++)if(d[f]===e[b]){c=!0;break}c||a.push(e[b])}for(;a.length;)e.removeTrack(a.shift())};this[c.getterName+'Listeners_']=f,Object.keys(f).forEach(function(a){var c=f[a];d.addEventListener(a,c),b.on('dispose',function(b){return d.removeEventListener(a,c)})}),this.on('loadstart',g),this.on('dispose',function(a){return b.off('loadstart',g)})}},e.proxyNativeTracks_=function n(){var a=this;qf.names.forEach(function(b){a.proxyNativeTracksForType_(b)})},e.createEl=function o(){var a=this.options_.tag;if(!a||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(a){var c=a.cloneNode(!0);a.parentNode&&a.parentNode.insertBefore(c,a),d.disposeMediaElement(a),a=c}else{a=b.createElement('video');var e=this.options_.tag&&y(this.options_.tag),g=$({},e);Dc&&this.options_.nativeControlsForTouch===!0||delete g.controls,x(a,f(g,{id:this.options_.techId,"class":'vjs-tech'}))}a.playerId=this.options_.playerId}'undefined'!=typeof this.options_.preload&&A(a,'preload',this.options_.preload);for(var h=['loop','muted','playsinline','autoplay'],i=0;i<h.length;i++){var j=h[i],k=this.options_[j];'undefined'!=typeof k&&(k?A(a,j,j):B(a,j),a[j]=k)}return a},e.handleLateInit_=function p(a){if(0!==a.networkState&&3!==a.networkState){if(0===a.readyState){var b=!1,c=function f(){b=!0};this.on('loadstart',c);var d=function g(){b||this.trigger('loadstart')};return this.on('loadedmetadata',d),this.ready(function(){this.off('loadstart',c),this.off('loadedmetadata',d),b||this.trigger('loadstart')}),void 0}var e=['loadstart'];e.push('loadedmetadata'),a.readyState>=2&&e.push('loadeddata'),a.readyState>=3&&e.push('canplay'),a.readyState>=4&&e.push('canplaythrough'),this.ready(function(){e.forEach(function(a){this.trigger(a)},this)})}},e.setCurrentTime=function q(a){try{this.el_.currentTime=a}catch(b){zb(b,'Video is not ready. (Video.js)')}},e.duration=function r(){var a=this;if(this.el_.duration===1/0&&sc&&xc&&0===this.el_.currentTime){var b=function c(){a.el_.currentTime>0&&(a.el_.duration===1/0&&a.trigger('durationchange'),a.off('timeupdate',c))};return this.on('timeupdate',b),NaN}return this.el_.duration||NaN},e.width=function s(){return this.el_.offsetWidth},e.height=function t(){return this.el_.offsetHeight},e.proxyWebkitFullscreen_=function u(){var a=this;if('webkitDisplayingFullscreen'in this.el_){var b=function d(){this.trigger('fullscreenchange',{isFullscreen:!1})},c=function e(){'webkitPresentationMode'in this.el_&&'picture-in-picture'!==this.el_.webkitPresentationMode&&(this.one('webkitendfullscreen',b),this.trigger('fullscreenchange',{isFullscreen:!0}))};this.on('webkitbeginfullscreen',c),this.on('dispose',function(){a.off('webkitbeginfullscreen',c),a.off('webkitendfullscreen',b)})}},e.supportsFullScreen=function v(){if('function'==typeof this.el_.webkitEnterFullScreen){var b=a.navigator&&a.navigator.userAgent||'';if(/Android/.test(b)||!/Chrome|Mac OS X 10.5/.test(b))return!0}return!1},e.enterFullScreen=function w(){var a=this.el_;a.paused&&a.networkState<=a.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){a.pause(),a.webkitEnterFullScreen()},0)):a.webkitEnterFullScreen()},e.exitFullScreen=function z(){this.el_.webkitExitFullScreen()},e.requestPictureInPicture=function C(){return this.el_.requestPictureInPicture()},e.src=function D(a){return void 0===a?this.el_.src:(this.setSrc(a),void 0)},e.reset=function E(){d.resetMediaElement(this.el_)},e.currentSrc=function F(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},e.setControls=function G(a){this.el_.controls=!!a},e.addTextTrack=function H(a,b,d){return this.featuresNativeTextTracks?this.el_.addTextTrack(a,b,d):c.prototype.addTextTrack.call(this,a,b,d)},e.createRemoteTextTrack=function I(a){if(!this.featuresNativeTextTracks)return c.prototype.createRemoteTextTrack.call(this,a);var d=b.createElement('track');return a.kind&&(d.kind=a.kind),a.label&&(d.label=a.label),(a.language||a.srclang)&&(d.srclang=a.language||a.srclang),a["default"]&&(d["default"]=a["default"]),a.id&&(d.id=a.id),a.src&&(d.src=a.src),d},e.addRemoteTextTrack=function J(a,b){var d=c.prototype.addRemoteTextTrack.call(this,a,b);return this.featuresNativeTextTracks&&this.el().appendChild(d),d},e.removeRemoteTextTrack=function K(a){if(c.prototype.removeRemoteTextTrack.call(this,a),this.featuresNativeTextTracks)for(var b=this.$$('track'),d=b.length;d--;)a!==b[d]&&a!==b[d].track||this.el().removeChild(b[d])},e.getVideoPlaybackQuality=function L(){if('function'==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var b={};return'undefined'!=typeof this.el().webkitDroppedFrameCount&&'undefined'!=typeof this.el().webkitDecodedFrameCount&&(b.droppedVideoFrames=this.el().webkitDroppedFrameCount,b.totalVideoFrames=this.el().webkitDecodedFrameCount),a.performance&&'function'==typeof a.performance.now?b.creationTime=a.performance.now():a.performance&&a.performance.timing&&'number'==typeof a.performance.timing.navigationStart&&(b.creationTime=a.Date.now()-a.performance.timing.navigationStart),b},d}(Nf);if(m()){Fh.TEST_VID=b.createElement('video');var Gh=b.createElement('track');Gh.kind='captions',Gh.srclang='en',Gh.label='English',Fh.TEST_VID.appendChild(Gh)}Fh.isSupported=function(){try{Fh.TEST_VID.volume=.5}catch(a){return!1}return!(!Fh.TEST_VID||!Fh.TEST_VID.canPlayType)},Fh.canPlayType=function(a){return Fh.TEST_VID.canPlayType(a)},Fh.canPlaySource=function(a,b){return Fh.canPlayType(a.type)},Fh.canControlVolume=function(){try{var a=Fh.TEST_VID.volume;return Fh.TEST_VID.volume=a/2+.1,a!==Fh.TEST_VID.volume}catch(b){return!1}},Fh.canMuteVolume=function(){try{var a=Fh.TEST_VID.muted;return Fh.TEST_VID.muted=!a,Fh.TEST_VID.muted?A(Fh.TEST_VID,'muted','muted'):B(Fh.TEST_VID,'muted','muted'),a!==Fh.TEST_VID.muted}catch(b){return!1}},Fh.canControlPlaybackRate=function(){if(sc&&xc&&58>yc)return!1;try{var a=Fh.TEST_VID.playbackRate;return Fh.TEST_VID.playbackRate=a/2+.1,a!==Fh.TEST_VID.playbackRate}catch(b){return!1}},Fh.canOverrideAttributes=function(){try{var a=function d(){};Object.defineProperty(b.createElement('video'),'src',{get:a,set:a}),Object.defineProperty(b.createElement('audio'),'src',{get:a,set:a}),Object.defineProperty(b.createElement('video'),'innerHTML',{get:a,set:a}),Object.defineProperty(b.createElement('audio'),'innerHTML',{get:a,set:a})}catch(c){return!1}return!0},Fh.supportsNativeTextTracks=function(){return Bc||qc&&xc},Fh.supportsNativeVideoTracks=function(){return!(!Fh.TEST_VID||!Fh.TEST_VID.videoTracks)},Fh.supportsNativeAudioTracks=function(){return!(!Fh.TEST_VID||!Fh.TEST_VID.audioTracks)},Fh.Events=['loadstart','suspend','abort','error','emptied','stalled','loadedmetadata','loadeddata','canplay','canplaythrough','playing','waiting','seeking','seeked','ended','durationchange','timeupdate','progress','play','pause','ratechange','resize','volumechange'],Fh.prototype.featuresVolumeControl=Fh.canControlVolume(),Fh.prototype.featuresMuteControl=Fh.canMuteVolume(),Fh.prototype.featuresPlaybackRate=Fh.canControlPlaybackRate(),Fh.prototype.featuresSourceset=Fh.canOverrideAttributes(),Fh.prototype.movingMediaElementInDOM=!qc,Fh.prototype.featuresFullscreenResize=!0,Fh.prototype.featuresProgressEvents=!0,Fh.prototype.featuresTimeupdateEvents=!0,Fh.prototype.featuresNativeTextTracks=Fh.supportsNativeTextTracks(),Fh.prototype.featuresNativeVideoTracks=Fh.supportsNativeVideoTracks(),Fh.prototype.featuresNativeAudioTracks=Fh.supportsNativeAudioTracks();var Hh=Fh.TEST_VID&&Fh.TEST_VID.constructor.prototype.canPlayType,Ih=/^application\/(?:x-|vnd\.apple\.)mpegurl/i;Fh.patchCanPlayType=function(){tc>=4&&!vc&&!xc&&(Fh.TEST_VID.constructor.prototype.canPlayType=function(a){return a&&Ih.test(a)?'maybe':Hh.call(this,a)})},Fh.unpatchCanPlayType=function(){var a=Fh.TEST_VID.constructor.prototype.canPlayType;return Fh.TEST_VID.constructor.prototype.canPlayType=Hh,a},Fh.patchCanPlayType(),Fh.disposeMediaElement=function(a){if(a){for(a.parentNode&&a.parentNode.removeChild(a);a.hasChildNodes();)a.removeChild(a.firstChild);a.removeAttribute('src'),'function'==typeof a.load&&!function(){try{a.load()}catch(b){}}()}},Fh.resetMediaElement=function(a){if(a){for(var b=a.querySelectorAll('source'),c=b.length;c--;)a.removeChild(b[c]);a.removeAttribute('src'),'function'==typeof a.load&&!function(){try{a.load()}catch(b){}}()}},['muted','defaultMuted','autoplay','controls','loop','playsinline'].forEach(function(a){Fh.prototype[a]=function(){return this.el_[a]||this.el_.hasAttribute(a)}}),['muted','defaultMuted','autoplay','loop','playsinline'].forEach(function(a){Fh.prototype['set'+hc(a)]=function(b){this.el_[a]=b,b?this.el_.setAttribute(a,a):this.el_.removeAttribute(a)}}),['paused','currentTime','buffered','volume','poster','preload','error','seeking','seekable','ended','playbackRate','defaultPlaybackRate','played','networkState','readyState','videoWidth','videoHeight'].forEach(function(a){Fh.prototype[a]=function(){return this.el_[a]}}),['volume','src','poster','preload','playbackRate','defaultPlaybackRate'].forEach(function(a){Fh.prototype['set'+hc(a)]=function(b){this.el_[a]=b}}),['pause','load','play'].forEach(function(a){Fh.prototype[a]=function(){return this.el_[a]()}}),Nf.withSourceHandlers(Fh),Fh.nativeSourceHandler={},Fh.nativeSourceHandler.canPlayType=function(a){try{return Fh.TEST_VID.canPlayType(a)}catch(b){return''}},Fh.nativeSourceHandler.canHandleSource=function(a,b){if(a.type)return Fh.nativeSourceHandler.canPlayType(a.type);if(a.src){var c=nd(a.src);return Fh.nativeSourceHandler.canPlayType("video/"+c)}return''},Fh.nativeSourceHandler.handleSource=function(a,b,c){b.setSrc(a.src)},Fh.nativeSourceHandler.dispose=function(){},Fh.registerSourceHandler(Fh.nativeSourceHandler),Nf.registerTech('Html5',Fh);var Jh=['progress','abort','suspend','emptied','stalled','loadedmetadata','loadeddata','timeupdate','resize','volumechange','texttrackchange'],Kh={canplay:'CanPlay',canplaythrough:'CanPlayThrough',playing:'Playing',seeked:'Seeked'},Lh=['tiny','xsmall','small','medium','large','xlarge','huge'],Mh={};Lh.forEach(function(a){var b='x'===a.charAt(0)?"x-"+a.substring(1):a;Mh[a]="vjs-layout-"+b});var Nh={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Oh=function(c){function d(a,b,e){var g;if(a.id=a.id||b.id||"vjs_video_"+P(),b=f(d.getTagSettings(a),b),b.initChildren=!1,b.createEl=!1,b.evented=!1,b.reportTouchActivity=!1,!b.language)if('function'==typeof a.closest){var h=a.closest('[lang]');h&&h.getAttribute&&(b.language=h.getAttribute('lang'))}else for(var i=a;i&&1===i.nodeType;){if(y(i).hasOwnProperty('lang')){b.language=i.getAttribute('lang');break}i=i.parentNode}if(g=c.call(this,null,b,e)||this,g.boundDocumentFullscreenChange_=Tb(da(g),g.documentFullscreenChange_),g.boundFullWindowOnEscKey_=Tb(da(g),g.fullWindowOnEscKey),g.log=Ab(g.id_),g.fsApi_=Fc,g.isPosterFromTech_=!1,g.queuedCallbacks_=[],g.isReady_=!1,g.hasStarted_=!1,g.userActive_=!1,!g.options_||!g.options_.techOrder||!g.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(g.tag=a,g.tagAttributes=a&&y(a),g.language(g.options_.language),b.languages){var j={};Object.getOwnPropertyNames(b.languages).forEach(function(a){j[a.toLowerCase()]=b.languages[a]}),g.languages_=j}else g.languages_=d.prototype.options_.languages;g.resetCache_(),g.poster_=b.poster||'',g.controls_=!!b.controls,a.controls=!1,a.removeAttribute('controls'),g.changingSrc_=!1,g.playCallbacks_=[],g.playTerminatedQueue_=[],a.hasAttribute('autoplay')?g.autoplay(!0):g.autoplay(g.options_.autoplay),b.plugins&&Object.keys(b.plugins).forEach(function(a){if('function'!=typeof g[a])throw new Error("plugin \""+a+"\" does not exist")}),g.scrubbing_=!1,g.el_=g.createEl(),Y(da(g),{eventBusKey:'el_'}),g.fluid_&&g.on('playerreset',g.updateStyleEl_);var k=$(g.options_);b.plugins&&Object.keys(b.plugins).forEach(function(a){g[a](b.plugins[a])}),g.options_.playerOptions=k,g.middleware_=[],g.initChildren(),g.isAudio('audio'===a.nodeName.toLowerCase()),g.controls()?g.addClass('vjs-controls-enabled'):g.addClass('vjs-controls-disabled'),g.el_.setAttribute('role','region'),g.isAudio()?g.el_.setAttribute('aria-label',g.localize('Audio Player')):g.el_.setAttribute('aria-label',g.localize('Video Player')),g.isAudio()&&g.addClass('vjs-audio'),g.flexNotSupported_()&&g.addClass('vjs-no-flex'),Dc&&g.addClass('vjs-touch-enabled'),qc||g.addClass('vjs-workinghover'),d.players[g.id_]=da(g);var l=wb.split('.')[0];return g.addClass("vjs-v"+l),g.userActive(!0),g.reportUserActivity(),g.one('play',g.listenForUserActivity_),g.on('stageclick',g.handleStageClick_),g.on('keydown',g.handleKeyDown),g.breakpoints(g.options_.breakpoints),g.responsive(g.options_.responsive),g}_(d,c);var e=d.prototype;return e.dispose=function g(){var a=this;this.trigger('dispose'),this.off('dispose'),U(b,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),U(b,'keydown',this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),d.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=''),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),$a(this),sf.names.forEach(function(b){var c=sf[b],d=a[c.getterName]();d&&d.off&&d.off()}),c.prototype.dispose.call(this)},e.createEl=function h(){var d=this.tag,e,f=this.playerElIngest_=d.parentNode&&d.parentNode.hasAttribute&&d.parentNode.hasAttribute('data-vjs-player'),g='video-js'===this.tag.tagName.toLowerCase();f?e=this.el_=d.parentNode:g||(e=this.el_=c.prototype.createEl.call(this,'div'));var h=y(d);if(g){for(e=this.el_=d,d=this.tag=b.createElement('video');e.children.length;)d.appendChild(e.firstChild);t(e,'video-js')||u(e,'video-js'),e.appendChild(d),f=this.playerElIngest_=e,Object.keys(e).forEach(function(a){try{d[a]=e[a]}catch(b){}})}if(d.setAttribute('tabindex','-1'),h.tabindex='-1',(zc||xc&&Cc)&&(d.setAttribute('role','application'),h.role='application'),d.removeAttribute('width'),d.removeAttribute('height'),'width'in h&&delete h.width,'height'in h&&delete h.height,Object.getOwnPropertyNames(h).forEach(function(a){g&&'class'===a||e.setAttribute(a,h[a]),g&&d.setAttribute(a,h[a])}),d.playerId=d.id,d.id+='_html5_api',d.className='vjs-tech',d.player=e.player=this,this.addClass('vjs-paused'),a.VIDEOJS_NO_DYNAMIC_STYLE!==!0){this.styleEl_=Jb('vjs-styles-dimensions');var i=Db('.vjs-styles-defaults'),j=Db('head');j.insertBefore(this.styleEl_,i?i.nextSibling:j.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var k=d.getElementsByTagName('a'),l=0;l<k.length;l++){var m=k.item(l);u(m,'vjs-hidden'),m.setAttribute('hidden','hidden')}return d.removeAttribute('style'),d.initNetworkState_=d.networkState,d.parentNode&&!f&&d.parentNode.insertBefore(e,d),s(d,e),this.children_.unshift(d),this.el_.setAttribute('lang',this.language_),this.el_=e,e},e.width=function i(a){return this.dimension('width',a)},e.height=function j(a){return this.dimension('height',a)},e.dimension=function k(a,b){var c=a+'_';if(void 0===b)return this[c]||0;if(''===b)return this[c]=void 0,this.updateStyleEl_(),void 0;var d=parseFloat(b);return isNaN(d)?(zb.error("Improper value \""+b+"\" supplied for for "+a),void 0):(this[c]=d,this.updateStyleEl_(),void 0)},e.fluid=function l(a){return void 0===a?!!this.fluid_:(this.fluid_=!!a,Yb(this)&&this.off('playerreset',this.updateStyleEl_),a?(this.addClass('vjs-fluid'),this.fill(!1),Zb(function(){this.on('playerreset',this.updateStyleEl_)})):this.removeClass('vjs-fluid'),this.updateStyleEl_(),void 0)},e.fill=function m(a){return void 0===a?!!this.fill_:(this.fill_=!!a,a?(this.addClass('vjs-fill'),this.fluid(!1)):this.removeClass('vjs-fill'),void 0)},e.aspectRatio=function n(a){if(void 0===a)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(a))throw new Error('Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.');this.aspectRatio_=a,this.fluid(!0),this.updateStyleEl_()},e.updateStyleEl_=function o(){if(a.VIDEOJS_NO_DYNAMIC_STYLE===!0){var b='number'==typeof this.width_?this.width_:this.options_.width,c='number'==typeof this.height_?this.height_:this.options_.height,d=this.tech_&&this.tech_.el();return d&&(b>=0&&(d.width=b),c>=0&&(d.height=c)),void 0}var e,f,g,h;g=void 0!==this.aspectRatio_&&'auto'!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+':'+this.videoHeight():'16:9';var i=g.split(':'),j=i[1]/i[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/j:this.videoWidth()||300,f=void 0!==this.height_?this.height_:e*j,h=/^[^a-zA-Z]/.test(this.id())?'dimensions-'+this.id():this.id()+'-dimensions',this.addClass(h),Kb(this.styleEl_,"\n      ."+h+" {\n        width: 100%;\n        height: auto;\n      }\n\n      ."+h+".vjs-fluid {\n        padding-top: "+100*j+"%;\n      }\n\n      #"+this.id()+"_html5_api {\n        position: relative;\n      }\n    ")},e.loadTech_=function p(a,b){var c=this;this.tech_&&this.unloadTech_();var d=hc(a),e=a.charAt(0).toLowerCase()+a.slice(1);'Html5'!==d&&this.tag&&(Nf.getTech('Html5').disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=d,this.isReady_=!1;var g='string'==typeof this.autoplay()?!1:this.autoplay(),h={source:b,autoplay:g,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+e+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,'vtt.js':this.options_['vtt.js'],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};sf.names.forEach(function(a){var b=sf[a];h[b.getterName]=c[b.privateName]}),f(h,this.options_[d]),f(h,this.options_[e]),f(h,this.options_[a.toLowerCase()]),this.tag&&(h.tag=this.tag),b&&b.src===this.cache_.src&&this.cache_.currentTime>0&&(h.startTime=this.cache_.currentTime);var i=Nf.getTech(a);if(!i)throw new Error("No Tech named '"+d+"' exists! '"+d+"' should be registered using videojs.registerTech()'");this.tech_=new i(h),this.tech_.ready(Tb(this,this.handleTechReady_),!0),Qc.jsonToTextTracks(this.textTracksJson_||[],this.tech_),Jh.forEach(function(a){c.on(c.tech_,a,c["handleTech"+hc(a)+"_"])}),Object.keys(Kh).forEach(function(a){c.on(c.tech_,a,function(b){return 0===c.tech_.playbackRate()&&c.tech_.seeking()?(c.queuedCallbacks_.push({callback:c["handleTech"+Kh[a]+"_"].bind(c),event:b}),void 0):(c["handleTech"+Kh[a]+"_"](b),void 0)})}),this.on(this.tech_,'loadstart',this.handleTechLoadStart_),this.on(this.tech_,'sourceset',this.handleTechSourceset_),this.on(this.tech_,'waiting',this.handleTechWaiting_),this.on(this.tech_,'ended',this.handleTechEnded_),this.on(this.tech_,'seeking',this.handleTechSeeking_),this.on(this.tech_,'play',this.handleTechPlay_),this.on(this.tech_,'firstplay',this.handleTechFirstPlay_),this.on(this.tech_,'pause',this.handleTechPause_),this.on(this.tech_,'durationchange',this.handleTechDurationChange_),this.on(this.tech_,'fullscreenchange',this.handleTechFullscreenChange_),this.on(this.tech_,'enterpictureinpicture',this.handleTechEnterPictureInPicture_),this.on(this.tech_,'leavepictureinpicture',this.handleTechLeavePictureInPicture_),this.on(this.tech_,'error',this.handleTechError_),this.on(this.tech_,'loadedmetadata',this.updateStyleEl_),this.on(this.tech_,'posterchange',this.handleTechPosterChange_),this.on(this.tech_,'textdata',this.handleTechTextData_),this.on(this.tech_,'ratechange',this.handleTechRateChange_),this.usingNativeControls(this.techGet_('controls')),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||'Html5'===d&&this.tag||s(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},e.unloadTech_=function q(){var a=this;sf.names.forEach(function(b){var c=sf[b];a[c.privateName]=a[c.getterName]()}),this.textTracksJson_=Qc.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_='',this.trigger('posterchange')),this.isPosterFromTech_=!1},e.tech=function r(a){return void 0===a&&zb.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},e.addTechControlsListeners_=function w(){this.removeTechControlsListeners_(),this.on(this.tech_,'mouseup',this.handleTechClick_),this.on(this.tech_,'dblclick',this.handleTechDoubleClick_),this.on(this.tech_,'touchstart',this.handleTechTouchStart_),this.on(this.tech_,'touchmove',this.handleTechTouchMove_),this.on(this.tech_,'touchend',this.handleTechTouchEnd_),this.on(this.tech_,'tap',this.handleTechTap_)},e.removeTechControlsListeners_=function x(){this.off(this.tech_,'tap',this.handleTechTap_),this.off(this.tech_,'touchstart',this.handleTechTouchStart_),this.off(this.tech_,'touchmove',this.handleTechTouchMove_),this.off(this.tech_,'touchend',this.handleTechTouchEnd_),this.off(this.tech_,'mouseup',this.handleTechClick_),this.off(this.tech_,'dblclick',this.handleTechDoubleClick_)},e.handleTechReady_=function z(){this.triggerReady(),this.cache_.volume&&this.techCall_('setVolume',this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},e.handleTechLoadStart_=function A(){this.removeClass('vjs-ended'),this.removeClass('vjs-seeking'),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger('loadstart')):(this.trigger('loadstart'),this.trigger('firstplay')),this.manualAutoplay_(this.autoplay())},e.manualAutoplay_=function B(a){var b=this;if(this.tech_&&'string'==typeof a){var c=function e(){var a=b.muted();b.muted(!0);var c=function e(){b.muted(a)};b.playTerminatedQueue_.push(c);var d=b.play();if(la(d))return d["catch"](c)},d;if('any'===a&&this.muted()!==!0?(d=this.play(),la(d)&&(d=d["catch"](c))):d='muted'===a&&this.muted()!==!0?c():this.play(),la(d))return d.then(function(){b.trigger({type:'autoplay-success',autoplay:a})})["catch"](function(c){b.trigger({type:'autoplay-failure',autoplay:a})})}},e.updateSourceCaches_=function C(a){void 0===a&&(a='');var b=a,c='';'string'!=typeof b&&(b=a.src,c=a.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],b&&!c&&(c=Wf(this,b)),this.cache_.source=$({},a,{src:b,type:c});for(var d=this.cache_.sources.filter(function(a){return a.src&&a.src===b}),e=[],f=this.$$('source'),g=[],h=0;h<f.length;h++){var i=y(f[h]);e.push(i),i.src&&i.src===b&&g.push(i.src)}g.length&&!d.length?this.cache_.sources=e:d.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=b},e.handleTechSourceset_=function D(a){var b=this;if(!this.changingSrc_){var c=function f(a){return b.updateSourceCaches_(a)},d=this.currentSource().src,e=a.src;d&&!/^blob:/.test(d)&&/^blob:/.test(e)&&(!this.lastSource_||this.lastSource_.tech!==e&&this.lastSource_.player!==d)&&(c=function g(){}),c(e),a.src||this.tech_.any(['sourceset','loadstart'],function(a){if('sourceset'!==a.type){var c=b.techGet('currentSrc');b.lastSource_.tech=c,b.updateSourceCaches_(c)}})}this.lastSource_={player:this.currentSource().src,tech:a.src},this.trigger({src:a.src,type:'sourceset'})},e.hasStarted=function E(a){return void 0===a?this.hasStarted_:(a!==this.hasStarted_&&(this.hasStarted_=a,this.hasStarted_?(this.addClass('vjs-has-started'),this.trigger('firstplay')):this.removeClass('vjs-has-started')),void 0)},e.handleTechPlay_=function F(){this.removeClass('vjs-ended'),this.removeClass('vjs-paused'),this.addClass('vjs-playing'),this.hasStarted(!0),this.trigger('play')},e.handleTechRateChange_=function G(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(a){return a.callback(a.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger('ratechange')},e.handleTechWaiting_=function H(){var a=this;this.addClass('vjs-waiting'),this.trigger('waiting');var b=this.currentTime(),c=function d(){b!==a.currentTime()&&(a.removeClass('vjs-waiting'),a.off('timeupdate',d))};this.on('timeupdate',c)},e.handleTechCanPlay_=function I(){this.removeClass('vjs-waiting'),this.trigger('canplay')},e.handleTechCanPlayThrough_=function J(){this.removeClass('vjs-waiting'),this.trigger('canplaythrough')},e.handleTechPlaying_=function K(){this.removeClass('vjs-waiting'),this.trigger('playing')},e.handleTechSeeking_=function L(){this.addClass('vjs-seeking'),this.trigger('seeking')},e.handleTechSeeked_=function N(){this.removeClass('vjs-seeking'),this.removeClass('vjs-ended'),this.trigger('seeked')},e.handleTechFirstPlay_=function O(){this.options_.starttime&&(zb.warn('Passing the `starttime` option to the player will be deprecated in 6.0'),this.currentTime(this.options_.starttime)),this.addClass('vjs-has-started'),this.trigger('firstplay')},e.handleTechPause_=function Q(){this.removeClass('vjs-playing'),this.addClass('vjs-paused'),this.trigger('pause')},e.handleTechEnded_=function R(){this.addClass('vjs-ended'),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger('ended')},e.handleTechDurationChange_=function S(){this.duration(this.techGet_('duration'))},e.handleTechClick_=function V(a){M(a)&&this.controls_&&(this.paused()?ma(this.play()):this.pause())},e.handleTechDoubleClick_=function W(a){if(this.controls_){var b=Array.prototype.some.call(this.$$('.vjs-control-bar, .vjs-modal-dialog'),function(b){return b.contains(a.target)});b||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&this.options_.userActions.doubleClick===!1||(void 0!==this.options_&&void 0!==this.options_.userActions&&'function'==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,a):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen())}},e.handleTechTap_=function X(){this.userActive(!this.userActive())},e.handleTechTouchStart_=function Z(){this.userWasActive=this.userActive()},e.handleTechTouchMove_=function aa(){this.userWasActive&&this.reportUserActivity()},e.handleTechTouchEnd_=function ba(a){a.preventDefault()},e.handleStageClick_=function ca(){this.reportUserActivity()},e.toggleFullscreenClass_=function ea(){this.isFullscreen()?this.addClass('vjs-fullscreen'):this.removeClass('vjs-fullscreen')},e.documentFullscreenChange_=function fa(a){var c=this.el(),d=b[this.fsApi_.fullscreenElement]===c;!d&&c.matches?d=c.matches(':'+this.fsApi_.fullscreen):!d&&c.msMatchesSelector&&(d=c.msMatchesSelector(':'+this.fsApi_.fullscreen)),this.isFullscreen(d),this.isFullscreen()===!1&&U(b,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.fsApi_.prefixed&&this.trigger('fullscreenchange')},e.handleTechFullscreenChange_=function ga(a,b){b&&this.isFullscreen(b.isFullscreen),this.trigger('fullscreenchange')},e.togglePictureInPictureClass_=function ka(){this.isInPictureInPicture()?this.addClass('vjs-picture-in-picture'):this.removeClass('vjs-picture-in-picture')},e.handleTechEnterPictureInPicture_=function na(a){this.isInPictureInPicture(!0)},e.handleTechLeavePictureInPicture_=function oa(a){this.isInPictureInPicture(!1)},e.handleTechError_=function pa(){var a=this.tech_.error();this.error(a)},e.handleTechTextData_=function qa(){var a=null;arguments.length>1&&(a=arguments[1]),this.trigger('textdata',a)},e.getCache=function ra(){return this.cache_},e.resetCache_=function sa(){this.cache_={currentTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:'',source:{},sources:[],volume:1}},e.techCall_=function ta(a,b){this.ready(function(){if(a in Sf)return Wa(this.middleware_,this.tech_,a,b);if(a in Tf)return Xa(this.middleware_,this.tech_,a,b);try{this.tech_&&this.tech_[a](b)}catch(c){throw zb(c),c}},!0)},e.techGet_=function ua(a){if(this.tech_&&this.tech_.isReady_){if(a in Rf)return Va(this.middleware_,this.tech_,a);if(a in Tf)return Xa(this.middleware_,this.tech_,a);try{return this.tech_[a]()}catch(b){if(void 0===this.tech_[a])throw zb("Video.js: "+a+" method not defined for "+this.techName_+" playback technology.",b),b;if('TypeError'===b.name)throw zb("Video.js: "+a+" unavailable on "+this.techName_+" playback technology element.",b),this.tech_.isReady_=!1,b;throw zb(b),b}}},e.play=function va(){var b=this,c=this.options_.Promise||a.Promise;return c?new c(function(a){b.play_(a)}):this.play_()},e.play_=function wa(a){var b=this;void 0===a&&(a=ma),this.playCallbacks_.push(a);var c=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(['ready','loadstart'],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!c)return this.waitToPlay_=function(a){b.play_()},this.one(['ready','loadstart'],this.waitToPlay_),c||!Bc&&!qc||this.load(),void 0;var d=this.techGet_('play');null===d?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(d)},e.runPlayTerminatedQueue_=function xa(){var a=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],a.forEach(function(a){a()})},e.runPlayCallbacks_=function ya(a){var b=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],b.forEach(function(b){b(a)})},e.pause=function za(){this.techCall_('pause')},e.paused=function Aa(){return this.techGet_('paused')!==!1},e.played=function Ba(){return this.techGet_('played')||ha(0,0);
},e.scrubbing=function Ca(a){return'undefined'==typeof a?this.scrubbing_:(this.scrubbing_=!!a,a?this.addClass('vjs-scrubbing'):this.removeClass('vjs-scrubbing'),void 0)},e.currentTime=function Da(a){return'undefined'!=typeof a?(0>a&&(a=0),this.techCall_('setCurrentTime',a),void 0):(this.cache_.currentTime=this.techGet_('currentTime')||0,this.cache_.currentTime)},e.duration=function Ea(a){return void 0===a?void 0!==this.cache_.duration?this.cache_.duration:NaN:(a=parseFloat(a),0>a&&(a=1/0),a!==this.cache_.duration&&(this.cache_.duration=a,a===1/0?(this.addClass('vjs-live'),this.options_.liveui&&this.player_.liveTracker&&this.addClass('vjs-liveui')):(this.removeClass('vjs-live'),this.removeClass('vjs-liveui')),isNaN(a)||this.trigger('durationchange')),void 0)},e.remainingTime=function Fa(){return this.duration()-this.currentTime()},e.remainingTimeDisplay=function Ga(){return Math.floor(this.duration())-Math.floor(this.currentTime())},e.buffered=function Ha(){var Ha=this.techGet_('buffered');return Ha&&Ha.length||(Ha=ha(0,0)),Ha},e.bufferedPercent=function Ia(){return ia(this.buffered(),this.duration())},e.bufferedEnd=function Ja(){var a=this.buffered(),b=this.duration(),c=a.end(a.length-1);return c>b&&(c=b),c},e.volume=function Ka(a){var b;return void 0!==a?(b=Math.max(0,Math.min(1,parseFloat(a))),this.cache_.volume=b,this.techCall_('setVolume',b),b>0&&this.lastVolume_(b),void 0):(b=parseFloat(this.techGet_('volume')),isNaN(b)?1:b)},e.muted=function La(a){return void 0!==a?(this.techCall_('setMuted',a),void 0):this.techGet_('muted')||!1},e.defaultMuted=function Ma(a){return void 0!==a?this.techCall_('setDefaultMuted',a):this.techGet_('defaultMuted')||!1},e.lastVolume_=function Na(a){return void 0!==a&&0!==a?(this.cache_.lastVolume=a,void 0):this.cache_.lastVolume},e.supportsFullScreen=function Oa(){return this.techGet_('supportsFullScreen')||!1},e.isFullscreen=function Pa(a){return void 0!==a?(this.isFullscreen_=!!a,this.toggleFullscreenClass_(),void 0):!!this.isFullscreen_},e.requestFullscreen=function Qa(a){var c;this.isFullscreen(!0),this.fsApi_.requestFullscreen?(T(b,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.fsApi_.prefixed||(c=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==a&&(c=a)),ma(this.el_[this.fsApi_.requestFullscreen](c))):this.tech_.supportsFullScreen()?this.techCall_('enterFullScreen'):(this.enterFullWindow(),this.trigger('fullscreenchange'))},e.exitFullscreen=function Ra(){this.isFullscreen(!1),this.fsApi_.requestFullscreen?ma(b[this.fsApi_.exitFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_('exitFullScreen'):(this.exitFullWindow(),this.trigger('fullscreenchange'))},e.enterFullWindow=function Sa(){this.isFullWindow=!0,this.docOrigOverflow=b.documentElement.style.overflow,T(b,'keydown',this.boundFullWindowOnEscKey_),b.documentElement.style.overflow='hidden',u(b.body,'vjs-full-window'),this.trigger('enterFullWindow')},e.fullWindowOnEscKey=function Ya(a){Rc.isEventKey(a,'Esc')&&(this.isFullscreen()===!0?this.exitFullscreen():this.exitFullWindow())},e.exitFullWindow=function Za(){this.isFullWindow=!1,U(b,'keydown',this.boundFullWindowOnEscKey_),b.documentElement.style.overflow=this.docOrigOverflow,v(b.body,'vjs-full-window'),this.trigger('exitFullWindow')},e.isInPictureInPicture=function _a(a){return void 0!==a?(this.isInPictureInPicture_=!!a,this.togglePictureInPictureClass_(),void 0):!!this.isInPictureInPicture_},e.requestPictureInPicture=function ab(){return'pictureInPictureEnabled'in b?this.techGet_('requestPictureInPicture'):void 0},e.exitPictureInPicture=function bb(){return'pictureInPictureEnabled'in b?b.exitPictureInPicture():void 0},e.handleKeyDown=function cb(a){var b=this.options_.userActions;if(b&&b.hotkeys){var c=function d(a){var b=a.tagName.toLowerCase();if(a.isContentEditable)return!0;var c=['button','checkbox','hidden','radio','reset','submit'];if('input'===b)return-1===c.indexOf(a.type);var d=['textarea'];return-1!==d.indexOf(b)};c(this.el_.ownerDocument.activeElement)||('function'==typeof b.hotkeys?b.hotkeys.call(this,a):this.handleHotkeys(a))}},e.handleHotkeys=function db(a){var c=this.options_.userActions?this.options_.userActions.hotkeys:{},d=c.fullscreenKey,e=void 0===d?function(a){return Rc.isEventKey(a,'f')}:d,f=c.muteKey,g=void 0===f?function(a){return Rc.isEventKey(a,'m')}:f,h=c.playPauseKey,i=void 0===h?function(a){return Rc.isEventKey(a,'k')||Rc.isEventKey(a,'Space')}:h;if(e.call(this,a)){a.preventDefault(),a.stopPropagation();var j=jc.getComponent('FullscreenToggle');b[this.fsApi_.fullscreenEnabled]!==!1&&j.prototype.handleClick.call(this,a)}else if(g.call(this,a)){a.preventDefault(),a.stopPropagation();var k=jc.getComponent('MuteToggle');k.prototype.handleClick.call(this,a)}else if(i.call(this,a)){a.preventDefault(),a.stopPropagation();var l=jc.getComponent('PlayToggle');l.prototype.handleClick.call(this,a)}},e.canPlayType=function eb(a){for(var b,c=0,d=this.options_.techOrder;c<d.length;c++){var e=d[c],f=Nf.getTech(e);if(f||(f=jc.getComponent(e)),f){if(f.isSupported()&&(b=f.canPlayType(a),b))return b}else zb.error("The \""+e+"\" tech is undefined. Skipped browser support check for that tech.")}return''},e.selectSource=function fb(a){var b=this,c=this.options_.techOrder.map(function(a){return[a,Nf.getTech(a)]}).filter(function(a){var b=a[0],c=a[1];return c?c.isSupported():(zb.error("The \""+b+"\" tech is undefined. Skipped browser support check for that tech."),!1)}),d=function h(a,b,c){var d;return a.some(function(a){return b.some(function(b){return d=c(a,b),d?!0:void 0})}),d},e,f=function i(a){return function(b,c){return a(c,b)}},g=function j(a,c){var d=a[0],e=a[1];return e.canPlaySource(c,b.options_[d.toLowerCase()])?{source:c,tech:d}:void 0};return e=this.options_.sourceOrder?d(a,c,f(g)):d(c,a,g),e||!1},e.src=function gb(a){var b=this;if('undefined'==typeof a)return this.cache_.src||'';var c=Xf(a);return c.length?(this.changingSrc_=!0,this.cache_.sources=c,this.updateSourceCaches_(c[0]),Ta(this,c[0],function(a,d){b.middleware_=d,b.cache_.sources=c,b.updateSourceCaches_(a);var e=b.src_(a);return e?c.length>1?b.src(c.slice(1)):(b.changingSrc_=!1,b.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),b.triggerReady(),void 0):(Ua(d,b.tech_),void 0)}),void 0):(this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void 0)},e.src_=function hb(a){var b=this,c=this.selectSource([a]);return c?ic(c.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty('setSource')?this.techCall_('setSource',a):this.techCall_('src',a.src),this.changingSrc_=!1},!0),!1):(this.changingSrc_=!0,this.loadTech_(c.tech,c.source),this.tech_.ready(function(){b.changingSrc_=!1}),!1):!0},e.load=function ib(){this.techCall_('load')},e.reset=function jb(){var b=this,c=this.options_.Promise||a.Promise;if(this.paused()||!c)this.doReset_();else{var d=this.play();ma(d.then(function(){return b.doReset_()}))}},e.doReset_=function kb(){this.tech_&&this.tech_.clearTracks('text'),this.resetCache_(),this.poster(''),this.loadTech_(this.options_.techOrder[0],null),this.techCall_('reset'),this.resetControlBarUI_(),Yb(this)&&this.trigger('playerreset')},e.resetControlBarUI_=function lb(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},e.resetProgressBar_=function mb(){this.currentTime(0);var a=this.controlBar,b=a.durationDisplay,c=a.remainingTimeDisplay;b&&b.updateContent(),c&&c.updateContent()},e.resetPlaybackRate_=function nb(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},e.resetVolumeBar_=function ob(){this.volume(1),this.trigger('volumechange')},e.currentSources=function pb(){var a=this.currentSource(),b=[];return 0!==Object.keys(a).length&&b.push(a),this.cache_.sources||b},e.currentSource=function qb(){return this.cache_.source||{}},e.currentSrc=function rb(){return this.currentSource()&&this.currentSource().src||''},e.currentType=function sb(){return this.currentSource()&&this.currentSource().type||''},e.preload=function tb(a){return void 0!==a?(this.techCall_('setPreload',a),this.options_.preload=a,void 0):this.techGet_('preload')},e.autoplay=function ub(a){if(void 0===a)return this.options_.autoplay||!1;var b;'string'==typeof a&&/(any|play|muted)/.test(a)?(this.options_.autoplay=a,this.manualAutoplay_(a),b=!1):a?this.options_.autoplay=!0:this.options_.autoplay=!1,b='undefined'==typeof b?this.options_.autoplay:b,this.tech_&&this.techCall_('setAutoplay',b)},e.playsinline=function vb(a){return void 0!==a?(this.techCall_('setPlaysinline',a),this.options_.playsinline=a,this):this.techGet_('playsinline')},e.loop=function xb(a){return void 0!==a?(this.techCall_('setLoop',a),this.options_.loop=a,void 0):this.techGet_('loop')},e.poster=function yb(a){return void 0===a?this.poster_:(a||(a=''),a!==this.poster_&&(this.poster_=a,this.techCall_('setPoster',a),this.isPosterFromTech_=!1,this.trigger('posterchange')),void 0)},e.handleTechPosterChange_=function Bb(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var a=this.tech_.poster()||'';a!==this.poster_&&(this.poster_=a,this.isPosterFromTech_=!0,this.trigger('posterchange'))}},e.controls=function Cb(a){return void 0===a?!!this.controls_:(a=!!a,this.controls_!==a&&(this.controls_=a,this.usingNativeControls()&&this.techCall_('setControls',a),this.controls_?(this.removeClass('vjs-controls-disabled'),this.addClass('vjs-controls-enabled'),this.trigger('controlsenabled'),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass('vjs-controls-enabled'),this.addClass('vjs-controls-disabled'),this.trigger('controlsdisabled'),this.usingNativeControls()||this.removeTechControlsListeners_())),void 0)},e.usingNativeControls=function Eb(a){return void 0===a?!!this.usingNativeControls_:(a=!!a,this.usingNativeControls_!==a&&(this.usingNativeControls_=a,this.usingNativeControls_?(this.addClass('vjs-using-native-controls'),this.trigger('usingnativecontrols')):(this.removeClass('vjs-using-native-controls'),this.trigger('usingcustomcontrols'))),void 0)},e.error=function Fb(a){if(void 0===a)return this.error_||null;if(this.options_.suppressNotSupportedError&&a&&a.message&&a.message===this.localize(this.options_.notSupportedMessage)){var b=function c(){this.error(a)};return this.options_.suppressNotSupportedError=!1,this.any(['click','touchstart'],b),this.one('loadstart',function(){this.off(['click','touchstart'],b)}),void 0}return null===a?(this.error_=a,this.removeClass('vjs-error'),this.errorDisplay&&this.errorDisplay.close(),void 0):(this.error_=new ja(a),this.addClass('vjs-error'),zb.error("(CODE:"+this.error_.code+" "+ja.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger('error'),void 0)},e.reportUserActivity=function Gb(a){this.userActivity_=!0},e.userActive=function Hb(a){if(void 0===a)return this.userActive_;if(a=!!a,a!==this.userActive_){if(this.userActive_=a,this.userActive_)return this.userActivity_=!0,this.removeClass('vjs-user-inactive'),this.addClass('vjs-user-active'),this.trigger('useractive'),void 0;this.tech_&&this.tech_.one('mousemove',function(a){a.stopPropagation(),a.preventDefault()}),this.userActivity_=!1,this.removeClass('vjs-user-active'),this.addClass('vjs-user-inactive'),this.trigger('userinactive')}},e.listenForUserActivity_=function Ib(){var a,b,c,d=Tb(this,this.reportUserActivity),e=function j(a){a.screenX===b&&a.screenY===c||(b=a.screenX,c=a.screenY,d())},f=function k(){d(),this.clearInterval(a),a=this.setInterval(d,250)},g=function l(b){d(),this.clearInterval(a)};this.on('mousedown',f),this.on('mousemove',e),this.on('mouseup',g);var h=this.getChild('controlBar');!h||qc||sc||(h.on('mouseenter',function(a){this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout,this.player().options_.inactivityTimeout=0}),h.on('mouseleave',function(a){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on('keydown',d),this.on('keyup',d);var i;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(i);var a=this.options_.inactivityTimeout;0>=a||(i=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},a))}},250)},e.playbackRate=function Lb(a){return void 0!==a?(this.techCall_('setPlaybackRate',a),void 0):this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_('playbackRate'):1},e.defaultPlaybackRate=function Mb(a){return void 0!==a?this.techCall_('setDefaultPlaybackRate',a):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_('defaultPlaybackRate'):1},e.isAudio=function Nb(a){return void 0!==a?(this.isAudio_=!!a,void 0):!!this.isAudio_},e.addTextTrack=function Ob(a,b,c){return this.tech_?this.tech_.addTextTrack(a,b,c):void 0},e.addRemoteTextTrack=function Pb(a,b){return this.tech_?this.tech_.addRemoteTextTrack(a,b):void 0},e.removeRemoteTextTrack=function Qb(a){void 0===a&&(a={});var b=a,c=b.track;return c||(c=a),this.tech_?this.tech_.removeRemoteTextTrack(c):void 0},e.getVideoPlaybackQuality=function Rb(){return this.techGet_('getVideoPlaybackQuality')},e.videoWidth=function Sb(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},e.videoHeight=function Ub(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},e.language=function Vb(a){return void 0===a?this.language_:(this.language_=String(a).toLowerCase(),void 0)},e.languages=function Wb(){return $(d.prototype.options_.languages,this.languages_)},e.toJSON=function Xb(){var a=$(this.options_),b=a.tracks;a.tracks=[];for(var c=0;c<b.length;c++){var d=b[c];d=$(d),d.player=void 0,a.tracks[c]=d}return a},e.createModal=function $b(a,b){var c=this;b=b||{},b.content=a||'';var d=new Yc(this,b);return this.addChild(d),d.on('dispose',function(){c.removeChild(d)}),d.open(),d},e.updateCurrentBreakpoint_=function _b(){if(this.responsive())for(var a=this.currentBreakpoint(),b=this.currentWidth(),c=0;c<Lh.length;c++){var d=Lh[c],e=this.breakpoints_[d];if(e>=b){if(a===d)return;a&&this.removeClass(Mh[a]),this.addClass(Mh[d]),this.breakpoint_=d;break}}},e.removeCurrentBreakpoint_=function ac(){var a=this.currentBreakpointClass();this.breakpoint_='',a&&this.removeClass(a)},e.breakpoints=function bc(a){return void 0===a?f(this.breakpoints_):(this.breakpoint_='',this.breakpoints_=f({},Nh,a),this.updateCurrentBreakpoint_(),f(this.breakpoints_))},e.responsive=function cc(a){if(void 0===a)return this.responsive_;a=Boolean(a);var b=this.responsive_;if(a!==b)return this.responsive_=a,a?(this.on('playerresize',this.updateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off('playerresize',this.updateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),a},e.currentBreakpoint=function dc(){return this.breakpoint_},e.currentBreakpointClass=function ec(){return Mh[this.breakpoint_]||''},e.loadMedia=function fc(a,b){var c=this;if(a&&'object'==typeof a){this.reset(),this.cache_.media=$(a);var d=this.cache_.media,e=d.artwork,f=d.poster,g=d.src,h=d.textTracks;!e&&f&&(this.cache_.media.artwork=[{src:f,type:Vf(f)}]),g&&this.src(g),f&&this.poster(f),Array.isArray(h)&&h.forEach(function(a){return c.addRemoteTextTrack(a,!1)}),this.ready(b)}},e.getMedia=function gc(){if(!this.cache_.media){var a=this.poster(),b=this.currentSources(),c=Array.prototype.map.call(this.remoteTextTracks(),function(a){return{kind:a.kind,label:a.label,language:a.language,src:a.src}}),d={src:b,textTracks:c};return a&&(d.poster=a,d.artwork=[{src:d.poster,type:Vf(d.poster)}]),d}return $(this.cache_.media)},d.getTagSettings=function kc(a){var b={sources:[],tracks:[]},c=y(a),d=c['data-setup'];if(t(a,'vjs-fill')&&(c.fill=!0),t(a,'vjs-fluid')&&(c.fluid=!0),null!==d){var e=Mc(d||'{}'),g=e[0],h=e[1];g&&zb.error(g),f(c,h)}if(f(b,c),a.hasChildNodes())for(var i=a.childNodes,j=0,k=i.length;k>j;j++){var l=i[j],m=l.nodeName.toLowerCase();'source'===m?b.sources.push(y(l)):'track'===m&&b.tracks.push(y(l))}return b},e.flexNotSupported_=function lc(){var a=b.createElement('i');return!('flexBasis'in a.style||'webkitFlexBasis'in a.style||'mozFlexBasis'in a.style||'msFlexBasis'in a.style||'msFlexOrder'in a.style)},d}(jc);sf.names.forEach(function(a){var b=sf[a];Oh.prototype[b.getterName]=function(){return this.tech_?this.tech_[b.getterName]():(this[b.privateName]=this[b.privateName]||new b.ListClass,this[b.privateName])}}),Oh.players={};var Ph=a.navigator;Oh.prototype.options_={techOrder:Nf.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:['mediaLoader','posterImage','textTrackDisplay','loadingSpinner','bigPlayButton','liveTracker','controlBar','errorDisplay','textTrackSettings','resizeManager'],language:Ph&&(Ph.languages&&Ph.languages[0]||Ph.userLanguage||Ph.language)||'en',languages:{},notSupportedMessage:'No compatible source was found for this media.',fullscreen:{options:{navigationUI:'hide'}},breakpoints:{},responsive:!1},['ended','seeking','seekable','networkState','readyState'].forEach(function(a){Oh.prototype[a]=function(){return this.techGet_(a)}}),Jh.forEach(function(a){Oh.prototype["handleTech"+hc(a)+"_"]=function(){return this.trigger(a)}}),jc.registerComponent('Player',Oh);var Qh=function(a){function c(c,d){var e=a.call(this,c,d)||this;return e.markers=d.markers?d.markers:[],e.playerId=c.id_,e.updateMarkers=function(a){Hb.dom.emptyEl(e.el()),e.markers=a,e.renderMarkers(),b.querySelector('.video-js').classList.toggle('vjs-user-interactive',!1)},this.pushMarker=function(a){const b=e.markers.find(function(b){return b.id===a.id&&b.symbol===a.symbol});if(b){const c=e.markers.indexOf(b);e.markers[c]=a}else e.markers.push(a);e.updateMarkers(e.markers)},this.removeMarker=function(a,b){for(var c=-1,d=0;d<e.markers.length;d++)if(e.markers[d].id===a&&e.markers[d].symbol===b){c=d;break}-1!==c&&(e.markers.splice(c,1),e.clearMarkers(),e.renderMarkers())},e.clearMarkers=function(){const a=b.querySelectorAll('.vjs-marker'),c=b.querySelectorAll('.vjs-marker-text');a.forEach(function(a){a.remove()}),c.forEach(function(a){a.remove()})},e.renderMarkers=function(){var a;const b=50,c=Hb(e.playerId).duration();isNaN(c)||(null===(a=e.markers)||void 0===a?void 0:a.forEach(function(a){var d=a.id,f=a.time,g=a.symbol,h=a.text,i=a.onclick,j=a.index;if(!(f>c||0>f)){var k='vjs-marker',l="vjs-marker-"+j+"-"+d,m=Hb.dom.createEl('span',{className:k,id:l},{},String.fromCodePoint(parseInt(g))),n=f/c*100;if(m.style.left=n+"%",m.addEventListener('click',function(a){e.player_.currentTime(f),i(d,j)}),Hb.dom.appendContent(e.el(),m),h){var o=jQuery('<div>'+h+'</div>').text(),p=!1;o.length>b&&(o=o.substring(0,b)+'...',p=!0);const q=Hb.dom.createEl('span',{className:'vjs-marker-text'},{},o);Hb.dom.appendContent(e.el(),q),q.style.left=n+"%",p&&(q.style.minWidth='80px')}}}))},c.on('loadedmetadata',function(){e.renderMarkers()}),c.on('timeupdate',function(){b.querySelectorAll(".vjs-marker-hover").forEach(function(a){return a.classList.remove('vjs-marker-hover')});var a=e.markers.filter(function(a){return Math.abs(a.time-c.currentTime())<=1});0===a.length?c.userActive_||b.querySelector(".video-js").classList.toggle("vjs-user-inactive",!0):(b.querySelector(".video-js").classList.toggle("vjs-user-inactive",!1),a.map(function(a){return b.querySelector("#vjs-marker-"+a.index+"-"+a.id)}).forEach(function(a){return a.classList.add('vjs-marker-hover')}))}),e}return _(c,a),c.prototype.createEl=function(){return a.prototype.createEl.call(this,'div',{className:'vjs-marker-bar'})},c}(jc);jc.registerComponent('MarkerBar',Qh);var Rh='plugin',Sh='activePlugins_',Th={},Uh=function ir(a){return Th.hasOwnProperty(a)},Vh=function jr(a){return Uh(a)?Th[a]:void 0},Wh=function kr(a,b){a[Sh]=a[Sh]||{},a[Sh][b]=!0},Xh=function lr(a,b,c){var d=(c?'before':'')+'pluginsetup';a.trigger(d,b),a.trigger(d+':'+b.name,b)},Yh=function mr(a,b){var c=function d(){Xh(this,{name:a,plugin:b,instance:null},!0);var c=b.apply(this,arguments);return Wh(this,a),Xh(this,{name:a,plugin:b,instance:c}),c};return Object.keys(b).forEach(function(a){c[a]=b[a]}),c},Zh=function nr(a,b){return b.prototype.name=a,function(){Xh(this,{name:a,plugin:b,instance:null},!0);for(var c=arguments.length,d=new Array(c),e=0;c>e;e++)d[e]=arguments[e];var f=ca(b,[this].concat(d));return this[a]=function(){return f},Xh(this,f.getEventHash()),f}},$h=function(){function a(b){if(this.constructor===a)throw new Error('Plugin must be sub-classed; not directly instantiated.');this.player=b,Y(this),delete this.trigger,Z(this,this.constructor.defaultState),Wh(b,this.name),this.dispose=Tb(this,this.dispose),b.on('dispose',this.dispose)}var b=a.prototype;return b.version=function c(){return this.constructor.VERSION},b.getEventHash=function d(a){return void 0===a&&(a={}),a.name=this.name,a.plugin=this.constructor,a.instance=this,a},b.trigger=function e(a,b){return void 0===b&&(b={}),V(this.eventBusEl_,a,this.getEventHash(b))},b.handleStateChanged=function f(a){},b.dispose=function g(){var a=this.name,b=this.player;this.trigger('dispose'),this.off(),b.off('dispose',this.dispose),b[Sh][a]=!1,this.player=this.state=null,b[a]=Zh(a,Th[a])},a.isBasic=function h(b){var c='string'==typeof b?Vh(b):b;return'function'==typeof c&&!a.prototype.isPrototypeOf(c.prototype)},a.registerPlugin=function i(b,c){if('string'!=typeof b)throw new Error("Illegal plugin name, \""+b+"\", must be a string, was "+typeof b+".");if(Uh(b))zb.warn("A plugin named \""+b+"\" already exists. You may want to avoid re-registering plugins!");else if(Oh.prototype.hasOwnProperty(b))throw new Error("Illegal plugin name, \""+b+"\", cannot share a name with an existing player method!");if('function'!=typeof c)throw new Error("Illegal plugin for \""+b+"\", must be a function, was "+typeof c+".");return Th[b]=c,b!==Rh&&(a.isBasic(c)?Oh.prototype[b]=Yh(b,c):Oh.prototype[b]=Zh(b,c)),c},a.deregisterPlugin=function j(a){if(a===Rh)throw new Error('Cannot de-register base plugin.');Uh(a)&&(delete Th[a],delete Oh.prototype[a])},a.getPlugins=function k(a){void 0===a&&(a=Object.keys(Th));var b;return a.forEach(function(a){var c=Vh(a);c&&(b=b||{},b[a]=c)}),b},a.getPluginVersion=function l(a){var b=Vh(a);return b&&b.VERSION||''},a}();$h.getPlugin=Vh,$h.BASE_PLUGIN_NAME=Rh,$h.registerPlugin(Rh,$h),Oh.prototype.usingPlugin=function(a){return!!this[Sh]&&this[Sh][a]===!0},Oh.prototype.hasPlugin=function(a){return!!Uh(a)};var _h=function or(a,b){if('function'!=typeof b&&null!==b)throw new TypeError('Super expression must either be null or a function, not '+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(a.super_=b)},ai=function pr(a,b){void 0===b&&(b={});var c=function f(){a.apply(this,arguments)},d={};'object'==typeof b?(b.constructor!==Object.prototype.constructor&&(c=b.constructor),d=b):'function'==typeof b&&(c=b),_h(c,a);for(var e in d)d.hasOwnProperty(e)&&(c.prototype[e]=d[e]);return c},bi=function qr(a){return 0===a.indexOf('#')?a.slice(1):a};if(kb.hooks_={},kb.hooks=function(a,b){return kb.hooks_[a]=kb.hooks_[a]||[],b&&(kb.hooks_[a]=kb.hooks_[a].concat(b)),kb.hooks_[a]},kb.hook=function(a,b){kb.hooks(a,b)},kb.hookOnce=function(a,b){kb.hooks(a,[].concat(b).map(function(b){var c=function d(){return kb.removeHook(a,d),b.apply(void 0,arguments)};return c}))},kb.removeHook=function(a,b){var c=kb.hooks(a).indexOf(b);return-1>=c?!1:(kb.hooks_[a]=kb.hooks_[a].slice(),kb.hooks_[a].splice(c,1),!0)},a.VIDEOJS_NO_DYNAMIC_STYLE!==!0&&m()){var ci=Db('.vjs-styles-defaults');if(!ci){ci=Jb('vjs-styles-defaults');var di=Db('head');di&&di.insertBefore(ci,di.firstChild),Kb(ci,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid {\n        padding-top: 56.25%\n      }\n    ")}}N(1,kb),kb.VERSION=wb,kb.options=Oh.prototype.options_,kb.getPlayers=function(){return Oh.players},kb.getPlayer=function(a){var b=Oh.players,c;if('string'==typeof a){var d=bi(a),e=b[d];if(e)return e;c=Db('#'+d)}else c=a;if(n(c)){var f=c,g=f.player,h=f.playerId;if(g||b[h])return g||b[h]}},kb.getAllPlayers=function(){return Object.keys(Oh.players).map(function(a){return Oh.players[a]}).filter(Boolean)},kb.players=Oh.players,kb.getComponent=jc.getComponent,kb.registerComponent=function(a,b){Nf.isTech(b)&&zb.warn("The "+a+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),jc.registerComponent.call(jc,a,b)},kb.getTech=Nf.getTech,kb.registerTech=Nf.registerTech,kb.use=Sa,Object.defineProperty(kb,'middleware',{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(kb.middleware,'TERMINATOR',{value:Qf,writeable:!1,enumerable:!0}),kb.browser=Ec,kb.TOUCH_ENABLED=Dc,kb.extend=ai,kb.mergeOptions=$,kb.bind=Tb,kb.registerPlugin=$h.registerPlugin,kb.deregisterPlugin=$h.deregisterPlugin,kb.plugin=function(a,b){return $h.registerPlugin(a,b)},kb.getPlugins=$h.getPlugins,kb.getPlugin=$h.getPlugin,kb.getPluginVersion=$h.getPluginVersion,kb.addLanguage=function(a,b){var c;return a=(''+a).toLowerCase(),kb.options.languages=$(kb.options.languages,(c={},c[a]=b,c)),kb.options.languages[a]},kb.log=zb,kb.createLogger=Ab,kb.createTimeRange=kb.createTimeRanges=ha,kb.formatTime=gb,kb.setFormatTime=eb,kb.resetFormatTime=fb,kb.parseUrl=ld,kb.isCrossOrigin=od,kb.EventTarget=Wb,kb.on=T,kb.one=W,kb.off=U,kb.trigger=V,kb.xhr=ef,kb.TextTrack=hf,kb.AudioTrack=jf,kb.VideoTrack=kf,['isEl','isTextNode','createEl','hasClass','addClass','removeClass','toggleClass','setAttributes','getAttributes','emptyEl','appendContent','insertContent'].forEach(function(a){kb[a]=function(){return zb.warn("videojs."+a+"() is deprecated; use videojs.dom."+a+"() instead"),Fb[a].apply(null,arguments)}}),kb.computedStyle=i,kb.dom=Fb,kb.url=pd;var ei=na(function(a,b){!function(b){var c=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/\?#]*\/)*.*?)??(;.*?)?(\?.*?)?(#.*?)?$/,d=/^([^\/?#]*)(.*)$/,e=/(?:\/|^)\.(?=\/)/g,f=/(?:\/|^)\.\.\/(?!\.\.\/).*?(?=\/)/g,g={buildAbsoluteURL:function h(a,b,c){if(c=c||{},a=a.trim(),b=b.trim(),!b){if(!c.alwaysNormalize)return a;var e=g.parseURL(a);if(!e)throw new Error('Error trying to parse base URL.');return e.path=g.normalizePath(e.path),g.buildURLFromParts(e)}var f=g.parseURL(b);if(!f)throw new Error('Error trying to parse relative URL.');if(f.scheme)return c.alwaysNormalize?(f.path=g.normalizePath(f.path),g.buildURLFromParts(f)):b;var h=g.parseURL(a);if(!h)throw new Error('Error trying to parse base URL.');if(!h.netLoc&&h.path&&'/'!==h.path[0]){var i=d.exec(h.path);h.netLoc=i[1],h.path=i[2]}h.netLoc&&!h.path&&(h.path='/');var j={scheme:h.scheme,netLoc:f.netLoc,path:null,params:f.params,query:f.query,fragment:f.fragment};if(!f.netLoc&&(j.netLoc=h.netLoc,'/'!==f.path[0]))if(f.path){var k=h.path,l=k.substring(0,k.lastIndexOf('/')+1)+f.path;j.path=g.normalizePath(l)}else j.path=h.path,f.params||(j.params=h.params,f.query||(j.query=h.query));return null===j.path&&(j.path=c.alwaysNormalize?g.normalizePath(f.path):f.path),g.buildURLFromParts(j)},parseURL:function i(a){var b=c.exec(a);return b?{scheme:b[1]||'',netLoc:b[2]||'',path:b[3]||'',params:b[4]||'',query:b[5]||'',fragment:b[6]||''}:null},normalizePath:function j(a){for(a=a.split('').reverse().join('').replace(e,'');a.length!==(a=a.replace(f,'')).length;);return a.split('').reverse().join('')},buildURLFromParts:function k(a){return a.scheme+a.netLoc+a.path+a.params+a.query+a.fragment}};a.exports=g}()}),fi=function(){function a(){this.listeners={}}var b=a.prototype;return b.on=function c(a,b){this.listeners[a]||(this.listeners[a]=[]),this.listeners[a].push(b)},b.off=function d(a,b){if(!this.listeners[a])return!1;var c=this.listeners[a].indexOf(b);return this.listeners[a].splice(c,1),c>-1},b.trigger=function e(a){var b=this.listeners[a],c,d,e;if(b)if(2===arguments.length)for(d=b.length,c=0;d>c;++c)b[c].call(this,arguments[1]);else for(e=Array.prototype.slice.call(arguments,1),d=b.length,c=0;d>c;++c)b[c].apply(this,e)},b.dispose=function f(){this.listeners={}},b.pipe=function g(a){this.on('data',function(b){a.push(b)})},a}(),gi=function(a){function b(){var b;return b=a.call(this)||this,b.buffer='',b}mb(b,a);var c=b.prototype;return c.push=function d(a){var b;for(this.buffer+=a,b=this.buffer.indexOf('\n');b>-1;b=this.buffer.indexOf('\n'))this.trigger('data',this.buffer.substring(0,b)),this.buffer=this.buffer.substring(b+1)},b}(fi),hi=function rr(){var a='[^=]*',b='"[^"]*"|[^,]*',c='(?:'+a+')=(?:'+b+')';return new RegExp('(?:^|,)('+c+')')},ii=function sr(a){for(var b=a.split(hi()),c={},d=b.length,e;d--;)''!==b[d]&&(e=/([^=]*)=(.*)/.exec(b[d]).slice(1),e[0]=e[0].replace(/^\s+|\s+$/g,''),e[1]=e[1].replace(/^\s+|\s+$/g,''),e[1]=e[1].replace(/^['"](.*)['"]$/g,'$1'),c[e[0]]=e[1]);return c},ji=function(a){function b(){var b;return b=a.call(this)||this,b.customParsers=[],b.tagMappers=[],b}mb(b,a);var c=b.prototype;return c.push=function d(a){var b=this,c,d;if(a=a.trim(),0!==a.length){if('#'!==a[0])return this.trigger('data',{type:'uri',uri:a}),void 0;var e=this.tagMappers.reduce(function(b,c){var d=c(a);return d===a?b:b.concat([d])},[a]);e.forEach(function(a){for(var e=0;e<b.customParsers.length;e++)if(b.customParsers[e].call(b,a))return;if(0!==a.indexOf('#EXT'))return b.trigger('data',{type:'comment',text:a.slice(1)}),void 0;if(a=a.replace('\r',''),c=/^#EXTM3U/.exec(a),c)return b.trigger('data',{type:'tag',tagType:'m3u'}),void 0;if(c=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(a),c)return d={type:'tag',tagType:'inf'},c[1]&&(d.duration=parseFloat(c[1])),c[2]&&(d.title=c[2]),b.trigger('data',d),void 0;if(c=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(a),c)return d={type:'tag',tagType:'targetduration'},c[1]&&(d.duration=parseInt(c[1],10)),b.trigger('data',d),void 0;if(c=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(a),c)return d={type:'tag',tagType:'totalduration'},c[1]&&(d.duration=parseInt(c[1],10)),b.trigger('data',d),void 0;if(c=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(a),c)return d={type:'tag',tagType:'version'},c[1]&&(d.version=parseInt(c[1],10)),b.trigger('data',d),void 0;if(c=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(a),c)return d={type:'tag',tagType:'media-sequence'},c[1]&&(d.number=parseInt(c[1],10)),b.trigger('data',d),void 0;if(c=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(a),c)return d={type:'tag',tagType:'discontinuity-sequence'},c[1]&&(d.number=parseInt(c[1],10)),b.trigger('data',d),void 0;if(c=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(a),c)return d={type:'tag',tagType:'playlist-type'},c[1]&&(d.playlistType=c[1]),b.trigger('data',d),void 0;if(c=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(a),c)return d={type:'tag',tagType:'byterange'},c[1]&&(d.length=parseInt(c[1],10)),c[2]&&(d.offset=parseInt(c[2],10)),b.trigger('data',d),void 0;if(c=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(a),c)return d={type:'tag',tagType:'allow-cache'},c[1]&&(d.allowed=!/NO/.test(c[1])),b.trigger('data',d),void 0;if(c=/^#EXT-X-MAP:?(.*)$/.exec(a),c){if(d={type:'tag',tagType:'map'},c[1]){var f=ii(c[1]);if(f.URI&&(d.uri=f.URI),f.BYTERANGE){var g=f.BYTERANGE.split('@'),h=g[0],i=g[1];d.byterange={},h&&(d.byterange.length=parseInt(h,10)),i&&(d.byterange.offset=parseInt(i,10))}}return b.trigger('data',d),void 0}if(c=/^#EXT-X-STREAM-INF:?(.*)$/.exec(a),c){if(d={type:'tag',tagType:'stream-inf'},c[1]){if(d.attributes=ii(c[1]),d.attributes.RESOLUTION){var j=d.attributes.RESOLUTION.split('x'),k={};j[0]&&(k.width=parseInt(j[0],10)),j[1]&&(k.height=parseInt(j[1],10)),d.attributes.RESOLUTION=k}d.attributes.BANDWIDTH&&(d.attributes.BANDWIDTH=parseInt(d.attributes.BANDWIDTH,10)),d.attributes['PROGRAM-ID']&&(d.attributes['PROGRAM-ID']=parseInt(d.attributes['PROGRAM-ID'],10))}return b.trigger('data',d),void 0}return c=/^#EXT-X-MEDIA:?(.*)$/.exec(a),c?(d={type:'tag',tagType:'media'},c[1]&&(d.attributes=ii(c[1])),b.trigger('data',d),void 0):(c=/^#EXT-X-ENDLIST/.exec(a),c?(b.trigger('data',{type:'tag',tagType:'endlist'}),void 0):(c=/^#EXT-X-DISCONTINUITY/.exec(a),c?(b.trigger('data',{
type:'tag',tagType:'discontinuity'}),void 0):(c=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(a),c?(d={type:'tag',tagType:'program-date-time'},c[1]&&(d.dateTimeString=c[1],d.dateTimeObject=new Date(c[1])),b.trigger('data',d),void 0):(c=/^#EXT-X-KEY:?(.*)$/.exec(a),c?(d={type:'tag',tagType:'key'},c[1]&&(d.attributes=ii(c[1]),d.attributes.IV&&('0x'===d.attributes.IV.substring(0,2).toLowerCase()&&(d.attributes.IV=d.attributes.IV.substring(2)),d.attributes.IV=d.attributes.IV.match(/.{8}/g),d.attributes.IV[0]=parseInt(d.attributes.IV[0],16),d.attributes.IV[1]=parseInt(d.attributes.IV[1],16),d.attributes.IV[2]=parseInt(d.attributes.IV[2],16),d.attributes.IV[3]=parseInt(d.attributes.IV[3],16),d.attributes.IV=new Uint32Array(d.attributes.IV))),b.trigger('data',d),void 0):(c=/^#EXT-X-START:?(.*)$/.exec(a),c?(d={type:'tag',tagType:'start'},c[1]&&(d.attributes=ii(c[1]),d.attributes['TIME-OFFSET']=parseFloat(d.attributes['TIME-OFFSET']),d.attributes.PRECISE=/YES/.test(d.attributes.PRECISE)),b.trigger('data',d),void 0):(c=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(a),c?(d={type:'tag',tagType:'cue-out-cont'},c[1]?d.data=c[1]:d.data='',b.trigger('data',d),void 0):(c=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(a),c?(d={type:'tag',tagType:'cue-out'},c[1]?d.data=c[1]:d.data='',b.trigger('data',d),void 0):(c=/^#EXT-X-CUE-IN:?(.*)?$/.exec(a),c?(d={type:'tag',tagType:'cue-in'},c[1]?d.data=c[1]:d.data='',b.trigger('data',d),void 0):(b.trigger('data',{type:'tag',data:a.slice(4)}),void 0)))))))))})}},c.addParser=function e(a){var b=this,c=a.expression,d=a.customType,e=a.dataParser,f=a.segment;'function'!=typeof e&&(e=function g(a){return a}),this.customParsers.push(function(a){var g=c.exec(a);return g?(b.trigger('data',{type:'custom',data:e(a),customType:d,segment:f}),!0):void 0})},c.addTagMapper=function f(a){var b=a.expression,c=a.map,d=function e(a){return b.test(a)?c(a):a};this.tagMappers.push(d)},b}(fi),ki=function(a){function b(){var b;b=a.call(this)||this,b.lineStream=new gi,b.parseStream=new ji,b.lineStream.pipe(b.parseStream);var c=nb(b),d=[],e={},f,g,h=function l(){},i={AUDIO:{},VIDEO:{},'CLOSED-CAPTIONS':{},SUBTITLES:{}},j='urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed',k=0;return b.manifest={allowCache:!0,discontinuityStarts:[],segments:[]},b.parseStream.on('data',function(a){var b,l;({tag:function m(){(({'allow-cache':function m(){this.manifest.allowCache=a.allowed,'allowed'in a||(this.trigger('info',{message:'defaulting allowCache to YES'}),this.manifest.allowCache=!0)},byterange:function n(){var n={};'length'in a&&(e.byterange=n,n.length=a.length,'offset'in a||(this.trigger('info',{message:'defaulting offset to zero'}),a.offset=0)),'offset'in a&&(e.byterange=n,n.offset=a.offset)},endlist:function o(){this.manifest.endList=!0},inf:function p(){'mediaSequence'in this.manifest||(this.manifest.mediaSequence=0,this.trigger('info',{message:'defaulting media sequence to zero'})),'discontinuitySequence'in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger('info',{message:'defaulting discontinuity sequence to zero'})),a.duration>0&&(e.duration=a.duration),0===a.duration&&(e.duration=.01,this.trigger('info',{message:'updating zero segment duration to a small value'})),this.manifest.segments=d},key:function q(){if(!a.attributes)return this.trigger('warn',{message:'ignoring key declaration without attribute list'}),void 0;if('NONE'===a.attributes.METHOD)return g=null,void 0;if(!a.attributes.URI)return this.trigger('warn',{message:'ignoring key declaration without URI'}),void 0;if(a.attributes.KEYFORMAT===j){var b=['SAMPLE-AES','SAMPLE-AES-CTR','SAMPLE-AES-CENC'];return-1===b.indexOf(a.attributes.METHOD)?(this.trigger('warn',{message:'invalid key method provided for Widevine'}),void 0):('SAMPLE-AES-CENC'===a.attributes.METHOD&&this.trigger('warn',{message:'SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead'}),'data:text/plain;base64,'!==a.attributes.URI.substring(0,23)?(this.trigger('warn',{message:'invalid key URI provided for Widevine'}),void 0):a.attributes.KEYID&&'0x'===a.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection={'com.widevine.alpha':{attributes:{schemeIdUri:a.attributes.KEYFORMAT,keyId:a.attributes.KEYID.substring(2)},pssh:ob(a.attributes.URI.split(',')[1])}},void 0):(this.trigger('warn',{message:'invalid key ID provided for Widevine'}),void 0))}a.attributes.METHOD||this.trigger('warn',{message:'defaulting key method to AES-128'}),g={method:a.attributes.METHOD||'AES-128',uri:a.attributes.URI},'undefined'!=typeof a.attributes.IV&&(g.iv=a.attributes.IV)},'media-sequence':function r(){return isFinite(a.number)?(this.manifest.mediaSequence=a.number,void 0):(this.trigger('warn',{message:'ignoring invalid media sequence: '+a.number}),void 0)},'discontinuity-sequence':function s(){return isFinite(a.number)?(this.manifest.discontinuitySequence=a.number,k=a.number,void 0):(this.trigger('warn',{message:'ignoring invalid discontinuity sequence: '+a.number}),void 0)},'playlist-type':function t(){return/VOD|EVENT/.test(a.playlistType)?(this.manifest.playlistType=a.playlistType,void 0):(this.trigger('warn',{message:'ignoring unknown playlist type: '+a.playlist}),void 0)},map:function u(){f={},a.uri&&(f.uri=a.uri),a.byterange&&(f.byterange=a.byterange)},'stream-inf':function v(){return this.manifest.playlists=d,this.manifest.mediaGroups=this.manifest.mediaGroups||i,a.attributes?(e.attributes||(e.attributes={}),lb(e.attributes,a.attributes),void 0):(this.trigger('warn',{message:'ignoring empty stream-inf attributes'}),void 0)},media:function w(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||i,!(a.attributes&&a.attributes.TYPE&&a.attributes['GROUP-ID']&&a.attributes.NAME))return this.trigger('warn',{message:'ignoring incomplete or missing media group'}),void 0;var c=this.manifest.mediaGroups[a.attributes.TYPE];c[a.attributes['GROUP-ID']]=c[a.attributes['GROUP-ID']]||{},b=c[a.attributes['GROUP-ID']],l={"default":/yes/i.test(a.attributes.DEFAULT)},l["default"]?l.autoselect=!0:l.autoselect=/yes/i.test(a.attributes.AUTOSELECT),a.attributes.LANGUAGE&&(l.language=a.attributes.LANGUAGE),a.attributes.URI&&(l.uri=a.attributes.URI),a.attributes['INSTREAM-ID']&&(l.instreamId=a.attributes['INSTREAM-ID']),a.attributes.CHARACTERISTICS&&(l.characteristics=a.attributes.CHARACTERISTICS),a.attributes.FORCED&&(l.forced=/yes/i.test(a.attributes.FORCED)),b[a.attributes.NAME]=l},discontinuity:function x(){k+=1,e.discontinuity=!0,this.manifest.discontinuityStarts.push(d.length)},'program-date-time':function y(){'undefined'==typeof this.manifest.dateTimeString&&(this.manifest.dateTimeString=a.dateTimeString,this.manifest.dateTimeObject=a.dateTimeObject),e.dateTimeString=a.dateTimeString,e.dateTimeObject=a.dateTimeObject},targetduration:function z(){return!isFinite(a.duration)||a.duration<0?(this.trigger('warn',{message:'ignoring invalid target duration: '+a.duration}),void 0):(this.manifest.targetDuration=a.duration,void 0)},totalduration:function A(){return!isFinite(a.duration)||a.duration<0?(this.trigger('warn',{message:'ignoring invalid total duration: '+a.duration}),void 0):(this.manifest.totalDuration=a.duration,void 0)},start:function B(){return!a.attributes||isNaN(a.attributes['TIME-OFFSET'])?(this.trigger('warn',{message:'ignoring start declaration without appropriate attribute list'}),void 0):(this.manifest.start={timeOffset:a.attributes['TIME-OFFSET'],precise:a.attributes.PRECISE},void 0)},'cue-out':function C(){e.cueOut=a.data},'cue-out-cont':function D(){e.cueOutCont=a.data},'cue-in':function E(){e.cueIn=a.data}})[a.tagType]||h).call(c)},uri:function n(){e.uri=a.uri,d.push(e),!this.manifest.targetDuration||'duration'in e||(this.trigger('warn',{message:'defaulting segment duration to the target duration'}),e.duration=this.manifest.targetDuration),g&&(e.key=g),e.timeline=k,f&&(e.map=f),e={}},comment:function o(){},custom:function p(){a.segment?(e.custom=e.custom||{},e.custom[a.customType]=a.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[a.customType]=a.data)}})[a.type].call(c)}),b}mb(b,a);var c=b.prototype;return c.push=function d(a){this.lineStream.push(a)},c.end=function e(){this.lineStream.push('\n')},c.addParser=function f(a){this.parseStream.addParser(a)},c.addTagMapper=function g(a){this.parseStream.addTagMapper(a)},b}(fi),li=function tr(a){return!!a&&'object'==typeof a},mi=function ur(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];return b.reduce(function(a,b){return Object.keys(b).forEach(function(c){Array.isArray(a[c])&&Array.isArray(b[c])?a[c]=a[c].concat(b[c]):li(a[c])&&li(b[c])?a[c]=ur(a[c],b[c]):a[c]=b[c]}),a},{})},ni=function vr(a){return Object.keys(a).map(function(b){return a[b]})},oi=function wr(a,b){for(var c=[],d=a;b>d;d++)c.push(d);return c},pi=function xr(a){return a.reduce(function(a,b){return a.concat(b)},[])},qi=function yr(a){if(!a.length)return[];for(var b=[],c=0;c<a.length;c++)b.push(a[c]);return b},ri=function zr(a,b){return a.reduce(function(a,c,d){return c[b]&&a.push(d),a},[])},si={INVALID_NUMBER_OF_PERIOD:'INVALID_NUMBER_OF_PERIOD',DASH_EMPTY_MANIFEST:'DASH_EMPTY_MANIFEST',DASH_INVALID_XML:'DASH_INVALID_XML',NO_BASE_URL:'NO_BASE_URL',MISSING_SEGMENT_INFORMATION:'MISSING_SEGMENT_INFORMATION',SEGMENT_TIME_UNSPECIFIED:'SEGMENT_TIME_UNSPECIFIED',UNSUPPORTED_UTC_TIMING_SCHEME:'UNSUPPORTED_UTC_TIMING_SCHEME'},ti=pb(function(a,b){!function(b){var c=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/\?#]*\/)*.*?)??(;.*?)?(\?.*?)?(#.*?)?$/,d=/^([^\/?#]*)(.*)$/,e=/(?:\/|^)\.(?=\/)/g,f=/(?:\/|^)\.\.\/(?!\.\.\/).*?(?=\/)/g,g={buildAbsoluteURL:function h(a,b,c){if(c=c||{},a=a.trim(),b=b.trim(),!b){if(!c.alwaysNormalize)return a;var e=g.parseURL(a);if(!e)throw new Error('Error trying to parse base URL.');return e.path=g.normalizePath(e.path),g.buildURLFromParts(e)}var f=g.parseURL(b);if(!f)throw new Error('Error trying to parse relative URL.');if(f.scheme)return c.alwaysNormalize?(f.path=g.normalizePath(f.path),g.buildURLFromParts(f)):b;var h=g.parseURL(a);if(!h)throw new Error('Error trying to parse base URL.');if(!h.netLoc&&h.path&&'/'!==h.path[0]){var i=d.exec(h.path);h.netLoc=i[1],h.path=i[2]}h.netLoc&&!h.path&&(h.path='/');var j={scheme:h.scheme,netLoc:f.netLoc,path:null,params:f.params,query:f.query,fragment:f.fragment};if(!f.netLoc&&(j.netLoc=h.netLoc,'/'!==f.path[0]))if(f.path){var k=h.path,l=k.substring(0,k.lastIndexOf('/')+1)+f.path;j.path=g.normalizePath(l)}else j.path=h.path,f.params||(j.params=h.params,f.query||(j.query=h.query));return null===j.path&&(j.path=c.alwaysNormalize?g.normalizePath(f.path):f.path),g.buildURLFromParts(j)},parseURL:function i(a){var b=c.exec(a);return b?{scheme:b[1]||'',netLoc:b[2]||'',path:b[3]||'',params:b[4]||'',query:b[5]||'',fragment:b[6]||''}:null},normalizePath:function j(a){for(a=a.split('').reverse().join('').replace(e,'');a.length!==(a=a.replace(f,'')).length;);return a.split('').reverse().join('')},buildURLFromParts:function k(a){return a.scheme+a.netLoc+a.path+a.params+a.query+a.fragment}};a.exports=g}()}),ui=function Ar(b,c){return/^[a-z]+:/i.test(c)?c:(/\/\//i.test(b)||(b=ti.buildAbsoluteURL(a.location.href,b)),ti.buildAbsoluteURL(b,c))},vi=function Br(a){var b=a.baseUrl,c=void 0===b?'':b,d=a.source,e=void 0===d?'':d,f=a.range,g=void 0===f?'':f,h=a.indexRange,i=void 0===h?'':h,j={uri:e,resolvedUri:ui(c||'',e)};if(g||i){var k=g?g:i,l=k.split('-'),m=parseInt(l[0],10),n=parseInt(l[1],10);j.byterange={length:n-m+1,offset:m}}return j},wi=function Cr(a){var b=a.offset+a.length-1;return a.offset+"-"+b},xi={"static":function Dr(a){var b=a.duration,c=a.timescale,d=void 0===c?1:c,e=a.sourceDuration;return{start:0,end:Math.ceil(e/(b/d))}},dynamic:function Er(a){var b=a.NOW,c=a.clientOffset,d=a.availabilityStartTime,e=a.timescale,f=void 0===e?1:e,g=a.duration,h=a.start,i=void 0===h?0:h,j=a.minimumUpdatePeriod,k=void 0===j?0:j,l=a.timeShiftBufferDepth,m=void 0===l?1/0:l,n=(b+c)/1e3,o=d+i,p=n+k,q=p-o,r=Math.ceil(q*f/g),s=Math.floor((n-o-m)*f/g),t=Math.floor((n-o)*f/g);return{start:Math.max(0,s),end:Math.min(r,t)}}},yi=function Fr(a){return function(b,c){var d=a.duration,e=a.timescale,f=void 0===e?1:e,g=a.periodIndex,h=a.startNumber,i=void 0===h?1:h;return{number:i+b,duration:d/f,timeline:g,time:c*d}}},zi=function Gr(a){var b=a.type,c=void 0===b?'static':b,d=a.duration,e=a.timescale,f=void 0===e?1:e,g=a.sourceDuration,h=xi[c](a),i=h.start,j=h.end,k=oi(i,j).map(yi(a));if('static'===c){var l=k.length-1;k[l].duration=g-d/f*l}return k},Ai=function Hr(a){var b=a.baseUrl,c=a.initialization,d=void 0===c?{}:c,e=a.sourceDuration,f=a.timescale,g=void 0===f?1:f,h=a.indexRange,i=void 0===h?'':h,j=a.duration;if(!b)throw new Error(si.NO_BASE_URL);var k=vi({baseUrl:b,source:d.sourceURL,range:d.range}),l=vi({baseUrl:b,source:b,indexRange:i});if(l.map=k,j){var m=zi(a);m.length&&(l.duration=m[0].duration,l.timeline=m[0].timeline)}else e&&(l.duration=e/g,l.timeline=0);return l.number=0,[l]},Bi=function Ir(a,b,c){for(var d=a.sidx.map?a.sidx.map:null,e=a.sidx.duration,f=a.timeline||0,g=a.sidx.byterange,h=g.offset+g.length,i=b.timescale,j=b.references.filter(function(a){return 1!==a.referenceType}),k=[],l=h+b.firstOffset,m=0;m<j.length;m++){var n=b.references[m],o=n.referencedSize,p=n.subsegmentDuration,q=l+o-1,r=l+"-"+q,s={baseUrl:c,timescale:i,timeline:f,periodIndex:f,duration:p,sourceDuration:e,indexRange:r},t=Ai(s)[0];d&&(t.map=d),k.push(t),l+=o}return a.segments=k,a},Ci=function Jr(a){var b=ni(a.reduce(function(a,b){var c=b.attributes.id+(b.attributes.lang||'');if(a[c]){var d;b.segments[0]&&(b.segments[0].discontinuity=!0),(d=a[c].segments).push.apply(d,b.segments),b.attributes.contentProtection&&(a[c].attributes.contentProtection=b.attributes.contentProtection)}else a[c]=b;return a},{}));return b.map(function(a){return a.discontinuityStarts=ri(a.segments,'discontinuity'),a})},Di=function Kr(a,b){if(void 0===b&&(b={}),!Object.keys(b).length)return a;for(var c in a){var d=a[c];if(d.sidx){var e=d.sidx.uri+'-'+wi(d.sidx.byterange),f=b[e]&&b[e].sidx;d.sidx&&f&&Bi(d,f,d.sidx.resolvedUri)}}return a},Ei=function Lr(a){var b,c=a.attributes,d=a.segments,e=a.sidx,f={attributes:(b={NAME:c.id,BANDWIDTH:c.bandwidth,CODECS:c.codecs},b['PROGRAM-ID']=1,b),uri:'',endList:'static'===(c.type||'static'),timeline:c.periodIndex,resolvedUri:'',targetDuration:c.duration,segments:d,mediaSequence:d.length?d[0].number:1};return c.contentProtection&&(f.contentProtection=c.contentProtection),e&&(f.sidx=e),f},Fi=function Mr(a){var b,c=a.attributes,d=a.segments;return'undefined'==typeof d&&(d=[{uri:c.baseUrl,timeline:c.periodIndex,resolvedUri:c.baseUrl||'',duration:c.sourceDuration,number:0}],c.duration=c.sourceDuration),{attributes:(b={NAME:c.id,BANDWIDTH:c.bandwidth},b['PROGRAM-ID']=1,b),uri:'',endList:'static'===(c.type||'static'),timeline:c.periodIndex,resolvedUri:c.baseUrl||'',targetDuration:c.duration,segments:d,mediaSequence:d.length?d[0].number:1}},Gi=function Nr(a,b){void 0===b&&(b={});var c,d=a.reduce(function(a,d){var e=d.attributes.role&&d.attributes.role.value||'',f=d.attributes.lang||'',g='main';if(f){var h=e?" ("+e+")":'';g=""+d.attributes.lang+h}return a[g]&&a[g].playlists[0].attributes.BANDWIDTH>d.attributes.bandwidth?a:(a[g]={language:f,autoselect:!0,"default":'main'===e,playlists:Di([Ei(d)],b),uri:''},'undefined'==typeof c&&'main'===e&&(c=d,c["default"]=!0),a)},{});if(!c){var e=Object.keys(d)[0];d[e]["default"]=!0}return d},Hi=function Or(a,b){return void 0===b&&(b={}),a.reduce(function(a,c){var d=c.attributes.lang||'text';return a[d]?a:(a[d]={language:d,"default":!1,autoselect:!1,playlists:Di([Fi(c)],b),uri:''},a)},{})},Ii=function Pr(a){var b,c=a.attributes,d=a.segments,e=a.sidx,f={attributes:(b={NAME:c.id,AUDIO:'audio',SUBTITLES:'subs',RESOLUTION:{width:c.width,height:c.height},CODECS:c.codecs,BANDWIDTH:c.bandwidth},b['PROGRAM-ID']=1,b),uri:'',endList:'static'===(c.type||'static'),timeline:c.periodIndex,resolvedUri:'',targetDuration:c.duration,segments:d,mediaSequence:d.length?d[0].number:1};return c.contentProtection&&(f.contentProtection=c.contentProtection),e&&(f.sidx=e),f},Ji=function Qr(a,b){var c;if(void 0===b&&(b={}),!a.length)return{};var d=a[0].attributes,e=d.sourceDuration,f=d.minimumUpdatePeriod,g=void 0===f?0:f,h=function o(a){var b=a.attributes;return'video/mp4'===b.mimeType||'video'===b.contentType},i=function p(a){var b=a.attributes;return'audio/mp4'===b.mimeType||'audio'===b.contentType},j=function q(a){var b=a.attributes;return'text/vtt'===b.mimeType||'text'===b.contentType},k=Ci(a.filter(h)).map(Ii),l=Ci(a.filter(i)),m=a.filter(j),n={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(c={AUDIO:{},VIDEO:{}},c['CLOSED-CAPTIONS']={},c.SUBTITLES={},c),uri:'',duration:e,playlists:Di(k,b),minimumUpdatePeriod:1e3*g};return l.length&&(n.mediaGroups.AUDIO.audio=Gi(l,b)),m.length&&(n.mediaGroups.SUBTITLES.subs=Hi(m,b)),n},Ki=function Rr(a,b,c){var d=a.NOW,e=a.clientOffset,f=a.availabilityStartTime,g=a.timescale,h=void 0===g?1:g,i=a.start,j=void 0===i?0:i,k=a.minimumUpdatePeriod,l=void 0===k?0:k,m=(d+e)/1e3,n=f+j,o=m+l,p=o-n;return Math.ceil((p*h-b)/c)},Li=function Sr(a,b){for(var c=a.type,d=void 0===c?'static':c,e=a.minimumUpdatePeriod,f=void 0===e?0:e,g=a.media,h=void 0===g?'':g,i=a.sourceDuration,j=a.timescale,k=void 0===j?1:j,l=a.startNumber,m=void 0===l?1:l,n=a.periodIndex,o=[],p=-1,q=0;q<b.length;q++){var r=b[q],s=r.d,t=r.r||0,u=r.t||0;0>p&&(p=u),u&&u>p&&(p=u);var v=void 0;if(0>t){var w=q+1;v=w===b.length?'dynamic'===d&&f>0&&h.indexOf('$Number$')>0?Ki(a,p,s):(i*k-p)/s:(b[w].t-p)/s}else v=t+1;for(var x=m+o.length+v,y=m+o.length;x>y;)o.push({number:y,duration:s/k,time:p,timeline:n}),p+=s,y++}return o},Mi=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,Ni=function Tr(a){return function(b,c,d,e){if('$$'===b)return'$';if('undefined'==typeof a[c])return b;var f=''+a[c];return'RepresentationID'===c?f:(e=d?parseInt(e,10):1,f.length>=e?f:""+new Array(e-f.length+1).join('0')+f)}},Oi=function Ur(a,b){return a.replace(Mi,Ni(b))},Pi=function Vr(a,b){return a.duration||b?a.duration?zi(a):Li(a,b):[{number:a.startNumber||1,duration:a.sourceDuration,time:0,timeline:a.periodIndex}]},Qi=function Wr(a,b){var c={RepresentationID:a.id,Bandwidth:a.bandwidth||0},d=a.initialization,e=void 0===d?{sourceURL:'',range:''}:d,f=vi({baseUrl:a.baseUrl,source:Oi(e.sourceURL,c),range:e.range}),g=Pi(a,b);return g.map(function(b){c.Number=b.number,c.Time=b.time;var d=Oi(a.media||'',c);return{uri:d,timeline:b.timeline,duration:b.duration,resolvedUri:ui(a.baseUrl||'',d),map:f,number:b.number}})},Ri=function Xr(a,b){var c=a.baseUrl,d=a.initialization,e=void 0===d?{}:d,f=vi({baseUrl:c,source:e.sourceURL,range:e.range}),g=vi({baseUrl:c,source:b.media,range:b.mediaRange});return g.map=f,g},Si=function Yr(a,b){var c=a.duration,d=a.segmentUrls,e=void 0===d?[]:d;if(!c&&!b||c&&b)throw new Error(si.SEGMENT_TIME_UNSPECIFIED);var f=e.map(function(b){return Ri(a,b)}),g;c&&(g=zi(a)),b&&(g=Li(a,b));var h=g.map(function(a,b){if(f[b]){var c=f[b];return c.timeline=a.timeline,c.duration=a.duration,c.number=a.number,c}}).filter(function(a){return a});return h},Ti=function Zr(a){var b=a.attributes,c=a.segmentInfo,d,e;c.template?(e=Qi,d=mi(b,c.template)):c.base?(e=Ai,d=mi(b,c.base)):c.list&&(e=Si,d=mi(b,c.list));var f={attributes:b};if(!e)return f;var g=e(d,c.timeline);if(d.duration){var h=d,i=h.duration,j=h.timescale,k=void 0===j?1:j;d.duration=i/k}else g.length?d.duration=g.reduce(function(a,b){return Math.max(a,Math.ceil(b.duration))},0):d.duration=0;return f.attributes=d,f.segments=g,c.base&&d.indexRange&&(f.sidx=g[0],f.segments=[]),f},Ui=function $r(a){return a.map(Ti)},Vi=function _r(a,b){return qi(a.childNodes).filter(function(a){var c=a.tagName;return c===b})},Wi=function as(a){return a.textContent.trim()},Xi=function bs(a){var b=31536e3,c=2592e3,d=86400,e=3600,f=60,g=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/,h=g.exec(a);if(!h)return 0;var i=h.slice(1),j=i[0],k=i[1],l=i[2],m=i[3],n=i[4],o=i[5];return parseFloat(j||0)*b+parseFloat(k||0)*c+parseFloat(l||0)*d+parseFloat(m||0)*e+parseFloat(n||0)*f+parseFloat(o||0)},Yi=function cs(a){var b=/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/;return b.test(a)&&(a+='Z'),Date.parse(a)},Zi={mediaPresentationDuration:function ds(a){return Xi(a)},availabilityStartTime:function es(a){return Yi(a)/1e3},minimumUpdatePeriod:function fs(a){return Xi(a)},timeShiftBufferDepth:function gs(a){return Xi(a)},start:function hs(a){return Xi(a)},width:function is(a){return parseInt(a,10)},height:function js(a){return parseInt(a,10)},bandwidth:function ks(a){return parseInt(a,10)},startNumber:function ls(a){return parseInt(a,10)},timescale:function ms(a){return parseInt(a,10)},duration:function ns(a){var b=parseInt(a,10);return isNaN(b)?Xi(a):b},d:function os(a){return parseInt(a,10)},t:function ps(a){return parseInt(a,10)},r:function qs(a){return parseInt(a,10)},DEFAULT:function rs(a){return a}},$i=function ss(a){return a&&a.attributes?qi(a.attributes).reduce(function(a,b){var c=Zi[b.name]||Zi.DEFAULT;return a[b.name]=c(b.value),a},{}):{}},_i={'urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b':'org.w3.clearkey','urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed':'com.widevine.alpha','urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95':'com.microsoft.playready','urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb':'com.adobe.primetime'},aj=function ts(a,b){return b.length?pi(a.map(function(a){return b.map(function(b){return ui(a,Wi(b))})})):a},bj=function us(a){var b=Vi(a,'SegmentTemplate')[0],c=Vi(a,'SegmentList')[0],d=c&&Vi(c,'SegmentURL').map(function(a){return mi({tag:'SegmentURL'},$i(a))}),e=Vi(a,'SegmentBase')[0],f=c||b,g=f&&Vi(f,'SegmentTimeline')[0],h=c||e||b,i=h&&Vi(h,'Initialization')[0],j=b&&$i(b);j&&i?j.initialization=i&&$i(i):j&&j.initialization&&(j.initialization={sourceURL:j.initialization});var k={template:j,timeline:g&&Vi(g,'S').map(function(a){return $i(a)}),list:c&&mi($i(c),{segmentUrls:d,initialization:$i(i)}),base:e&&mi($i(e),{initialization:$i(i)})};return Object.keys(k).forEach(function(a){k[a]||delete k[a]}),k},cj=function vs(a,b,c){return function(d){var e=Vi(d,'BaseURL'),f=aj(b,e),g=mi(a,$i(d)),h=bj(d);return f.map(function(a){return{segmentInfo:mi(c,h),attributes:mi(g,{baseUrl:a})}})}},dj=function ws(a){return a.reduce(function(a,b){var c=$i(b),d=_i[c.schemeIdUri];if(d){a[d]={attributes:c};var e=Vi(b,'cenc:pssh')[0];if(e){var f=Wi(e),g=f&&qb(f);a[d].pssh=g}}return a},{})},ej=function xs(a,b,c){return function(d){var e=$i(d),f=aj(b,Vi(d,'BaseURL')),g=Vi(d,'Role')[0],h={role:$i(g)},i=mi(a,e,h),j=dj(Vi(d,'ContentProtection'));Object.keys(j).length&&(i=mi(i,{contentProtection:j}));var k=bj(d),l=Vi(d,'Representation'),m=mi(c,k);return pi(l.map(cj(i,f,m)))}},fj=function ys(b,c){return function(d,e){var f=aj(c,Vi(d,'BaseURL')),g=$i(d),h=parseInt(g.id,10),i=a.isNaN(h)?e:h,j=mi(b,{periodIndex:i}),k=Vi(d,'AdaptationSet'),l=bj(d);return pi(k.map(ej(j,f,l)))}},gj=function zs(a,b){void 0===b&&(b={});var c=b,d=c.manifestUri,e=void 0===d?'':d,f=c.NOW,g=void 0===f?Date.now():f,h=c.clientOffset,i=void 0===h?0:h,j=Vi(a,'Period');if(!j.length)throw new Error(si.INVALID_NUMBER_OF_PERIOD);var k=$i(a),l=aj([e],Vi(a,'BaseURL'));return k.sourceDuration=k.mediaPresentationDuration||0,k.NOW=g,k.clientOffset=i,pi(j.map(fj(k,l)))},hj=function As(b){if(''===b)throw new Error(si.DASH_EMPTY_MANIFEST);var c=new a.DOMParser,d=c.parseFromString(b,'application/xml'),e=d&&'MPD'===d.documentElement.tagName?d.documentElement:null;if(!e||e&&e.getElementsByTagName('parsererror').length>0)throw new Error(si.DASH_INVALID_XML);return e},ij=function Bs(a){var b=Vi(a,'UTCTiming')[0];if(!b)return null;var c=$i(b);switch(c.schemeIdUri){case'urn:mpeg:dash:utc:http-head:2014':case'urn:mpeg:dash:utc:http-head:2012':c.method='HEAD';break;case'urn:mpeg:dash:utc:http-xsdate:2014':case'urn:mpeg:dash:utc:http-iso:2014':case'urn:mpeg:dash:utc:http-xsdate:2012':case'urn:mpeg:dash:utc:http-iso:2012':c.method='GET';break;case'urn:mpeg:dash:utc:direct:2014':case'urn:mpeg:dash:utc:direct:2012':c.method='DIRECT',c.value=Date.parse(c.value);break;case'urn:mpeg:dash:utc:http-ntp:2014':case'urn:mpeg:dash:utc:ntp:2014':case'urn:mpeg:dash:utc:sntp:2014':default:throw new Error(si.UNSUPPORTED_UTC_TIMING_SCHEME)}return c},jj=function Cs(a,b){return void 0===b&&(b={}),Ji(Ui(gj(hj(a),b)),b.sidxMapping)},kj=function Ds(a){return ij(hj(a))},lj=function Es(a){return a>>>0},mj=function Fs(a){return('00'+a.toString(16)).slice(-2)},nj={toUnsigned:lj,toHexString:mj},oj=nj.toUnsigned,pj=nj.toHexString,qj,rj,sj,tj,uj,vj;qj=function Gs(a,b){var c=[],d,e,f,g,h;if(!b.length)return null;for(d=0;d<a.byteLength;)e=oj(a[d]<<24|a[d+1]<<16|a[d+2]<<8|a[d+3]),f=rj(a.subarray(d+4,d+8)),g=e>1?d+e:a.byteLength,f===b[0]&&(1===b.length?c.push(a.subarray(d+8,g)):(h=qj(a.subarray(d+8,g),b.slice(1)),h.length&&(c=c.concat(h)))),d=g;return c},rj=function Hs(a){var b='';return b+=String.fromCharCode(a[0]),b+=String.fromCharCode(a[1]),b+=String.fromCharCode(a[2]),b+=String.fromCharCode(a[3]),b},sj=function Is(a){var b={},c=qj(a,['moov','trak']);return c.reduce(function(a,b){var c,d,e,f,g;return c=qj(b,['tkhd'])[0],c?(d=c[0],e=0===d?12:20,f=oj(c[e]<<24|c[e+1]<<16|c[e+2]<<8|c[e+3]),g=qj(b,['mdia','mdhd'])[0],g?(d=g[0],e=0===d?12:20,a[f]=oj(g[e]<<24|g[e+1]<<16|g[e+2]<<8|g[e+3]),a):null):null},b)},tj=function Js(a,b){var c,d,e;return c=qj(b,['moof','traf']),d=[].concat.apply([],c.map(function(b){return qj(b,['tfhd']).map(function(c){var d,e,f;return d=oj(c[4]<<24|c[5]<<16|c[6]<<8|c[7]),e=a[d]||9e4,f=qj(b,['tfdt']).map(function(a){var b,c;return b=a[0],c=oj(a[4]<<24|a[5]<<16|a[6]<<8|a[7]),1===b&&(c*=Math.pow(2,32),c+=oj(a[8]<<24|a[9]<<16|a[10]<<8|a[11])),c})[0],f=f||1/0,f/e})})),e=Math.min.apply(null,d),isFinite(e)?e:0},uj=function Ks(a){var b=qj(a,['moov','trak']),c=[];return b.forEach(function(a){var b=qj(a,['mdia','hdlr']),d=qj(a,['tkhd']);b.forEach(function(a,b){var e=rj(a.subarray(8,12)),f=d[b],g,h,i;'vide'===e&&(g=new DataView(f.buffer,f.byteOffset,f.byteLength),h=g.getUint8(0),i=0===h?g.getUint32(12):g.getUint32(20),c.push(i))})}),c},vj=function Ls(a){var b=qj(a,['moov','trak']),c=[];return b.forEach(function(a){var b={},d=qj(a,['tkhd'])[0],e,f;d&&(e=new DataView(d.buffer,d.byteOffset,d.byteLength),f=e.getUint8(0),b.id=0===f?e.getUint32(12):e.getUint32(20));var g=qj(a,['mdia','hdlr'])[0];if(g){var h=rj(g.subarray(8,12));'vide'===h?b.type='video':'soun'===h?b.type='audio':b.type=h}var i=qj(a,['mdia','minf','stbl','stsd'])[0];if(i){var j=i.subarray(8);b.codec=rj(j.subarray(4,8));var k=qj(j,[b.codec])[0],l,m;k&&(/^[a-z]vc[1-9]$/i.test(b.codec)?(l=k.subarray(78),m=rj(l.subarray(4,8)),'avcC'===m&&l.length>11?(b.codec+='.',b.codec+=pj(l[9]),b.codec+=pj(l[10]),b.codec+=pj(l[11])):b.codec='avc1.4d400d'):/^mp4[a,v]$/i.test(b.codec)&&(l=k.subarray(28),m=rj(l.subarray(4,8)),'esds'===m&&l.length>20&&0!==l[19]?(b.codec+='.'+pj(l[19]),b.codec+='.'+pj(l[20]>>>2&63).replace(/^0/,'')):b.codec='mp4a.40.2'))}var n=qj(a,['mdia','mdhd'])[0];if(n&&d){var o=0===f?12:20;b.timescale=oj(n[o]<<24|n[o+1]<<16|n[o+2]<<8|n[o+3])}c.push(b)}),c};var wj={findBox:qj,parseType:rj,timescale:sj,startTime:tj,videoTrackIds:uj,tracks:vj},xj,yj,zj=wj.parseType,Aj=function Ms(a){return new Date(1e3*a-20828448e5)},Bj=function Ns(a){return{isLeading:(12&a[0])>>>2,dependsOn:3&a[0],isDependedOn:(192&a[1])>>>6,hasRedundancy:(48&a[1])>>>4,paddingValue:(14&a[1])>>>1,isNonSyncSample:1&a[1],degradationPriority:a[2]<<8|a[3]}},Cj=function Os(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c=[],d,e;for(d=0;d+4<a.length;d+=e)if(e=b.getUint32(d),d+=4,0>=e)c.push('<span style=\'color:red;\'>MALFORMED DATA</span>');else switch(31&a[d]){case 1:c.push('slice_layer_without_partitioning_rbsp');break;case 5:c.push('slice_layer_without_partitioning_rbsp_idr');break;case 6:c.push('sei_rbsp');break;case 7:c.push('seq_parameter_set_rbsp');break;case 8:c.push('pic_parameter_set_rbsp');break;case 9:c.push('access_unit_delimiter_rbsp');break;default:c.push('UNKNOWN NAL - '+a[d]&31)}return c},Dj={avc1:function Ps(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength);return{dataReferenceIndex:b.getUint16(6),width:b.getUint16(24),height:b.getUint16(26),horizresolution:b.getUint16(28)+b.getUint16(30)/16,vertresolution:b.getUint16(32)+b.getUint16(34)/16,frameCount:b.getUint16(40),depth:b.getUint16(74),config:xj(a.subarray(78,a.byteLength))}},avcC:function Qs(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c={configurationVersion:a[0],avcProfileIndication:a[1],profileCompatibility:a[2],avcLevelIndication:a[3],lengthSizeMinusOne:3&a[4],sps:[],pps:[]},d=31&a[5],e,f,g,h;for(g=6,h=0;d>h;h++)f=b.getUint16(g),g+=2,c.sps.push(new Uint8Array(a.subarray(g,g+f))),g+=f;for(e=a[g],g++,h=0;e>h;h++)f=b.getUint16(g),g+=2,c.pps.push(new Uint8Array(a.subarray(g,g+f))),g+=f;return c},btrt:function Rs(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength);return{bufferSizeDB:b.getUint32(0),maxBitrate:b.getUint32(4),avgBitrate:b.getUint32(8)}},esds:function Ss(a){return{version:a[0],flags:new Uint8Array(a.subarray(1,4)),esId:a[6]<<8|a[7],streamPriority:31&a[8],decoderConfig:{objectProfileIndication:a[11],streamType:a[12]>>>2&63,bufferSize:a[13]<<16|a[14]<<8|a[15],maxBitrate:a[16]<<24|a[17]<<16|a[18]<<8|a[19],avgBitrate:a[20]<<24|a[21]<<16|a[22]<<8|a[23],decoderConfigDescriptor:{tag:a[24],length:a[25],audioObjectType:a[26]>>>3&31,samplingFrequencyIndex:(7&a[26])<<1|a[27]>>>7&1,channelConfiguration:a[27]>>>3&15}}}},ftyp:function Ts(a){for(var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c={majorBrand:zj(a.subarray(0,4)),minorVersion:b.getUint32(4),compatibleBrands:[]},d=8;d<a.byteLength;)c.compatibleBrands.push(zj(a.subarray(d,d+4))),d+=4;return c},dinf:function Us(a){return{boxes:xj(a)}},dref:function Vs(a){return{version:a[0],flags:new Uint8Array(a.subarray(1,4)),dataReferences:xj(a.subarray(8))}},hdlr:function Ws(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c={version:b.getUint8(0),flags:new Uint8Array(a.subarray(1,4)),handlerType:zj(a.subarray(8,12)),name:''},d=8;for(d=24;d<a.byteLength;d++){if(0===a[d]){d++;break}c.name+=String.fromCharCode(a[d])}return c.name=decodeURIComponent(escape(c.name)),c},mdat:function Xs(a){return{byteLength:a.byteLength,nals:Cj(a)}},mdhd:function Ys(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c=4,d,e={version:b.getUint8(0),flags:new Uint8Array(a.subarray(1,4)),language:''};return 1===e.version?(c+=4,e.creationTime=Aj(b.getUint32(c)),c+=8,e.modificationTime=Aj(b.getUint32(c)),c+=4,e.timescale=b.getUint32(c),c+=8,e.duration=b.getUint32(c)):(e.creationTime=Aj(b.getUint32(c)),c+=4,e.modificationTime=Aj(b.getUint32(c)),c+=4,e.timescale=b.getUint32(c),c+=4,e.duration=b.getUint32(c)),c+=4,d=b.getUint16(c),e.language+=String.fromCharCode((d>>10)+96),e.language+=String.fromCharCode(((992&d)>>5)+96),e.language+=String.fromCharCode((31&d)+96),e},mdia:function Zs(a){return{boxes:xj(a)}},mfhd:function $s(a){return{version:a[0],flags:new Uint8Array(a.subarray(1,4)),sequenceNumber:a[4]<<24|a[5]<<16|a[6]<<8|a[7]}},minf:function _s(a){return{boxes:xj(a)}},mp4a:function at(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c={dataReferenceIndex:b.getUint16(6),channelcount:b.getUint16(16),samplesize:b.getUint16(18),samplerate:b.getUint16(24)+b.getUint16(26)/65536};return a.byteLength>28&&(c.streamDescriptor=xj(a.subarray(28))[0]),c},moof:function bt(a){return{boxes:xj(a)}},moov:function ct(a){return{boxes:xj(a)}},mvex:function dt(a){return{boxes:xj(a)}},mvhd:function et(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c=4,d={version:b.getUint8(0),flags:new Uint8Array(a.subarray(1,4))};return 1===d.version?(c+=4,d.creationTime=Aj(b.getUint32(c)),c+=8,d.modificationTime=Aj(b.getUint32(c)),c+=4,d.timescale=b.getUint32(c),c+=8,d.duration=b.getUint32(c)):(d.creationTime=Aj(b.getUint32(c)),c+=4,d.modificationTime=Aj(b.getUint32(c)),c+=4,d.timescale=b.getUint32(c),c+=4,d.duration=b.getUint32(c)),c+=4,d.rate=b.getUint16(c)+b.getUint16(c+2)/16,c+=4,d.volume=b.getUint8(c)+b.getUint8(c+1)/8,c+=2,c+=2,c+=8,
d.matrix=new Uint32Array(a.subarray(c,c+36)),c+=36,c+=24,d.nextTrackId=b.getUint32(c),d},pdin:function ft(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength);return{version:b.getUint8(0),flags:new Uint8Array(a.subarray(1,4)),rate:b.getUint32(4),initialDelay:b.getUint32(8)}},sdtp:function gt(a){var b={version:a[0],flags:new Uint8Array(a.subarray(1,4)),samples:[]},c;for(c=4;c<a.byteLength;c++)b.samples.push({dependsOn:(48&a[c])>>4,isDependedOn:(12&a[c])>>2,hasRedundancy:3&a[c]});return b},sidx:function ht(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c={version:a[0],flags:new Uint8Array(a.subarray(1,4)),references:[],referenceId:b.getUint32(4),timescale:b.getUint32(8),earliestPresentationTime:b.getUint32(12),firstOffset:b.getUint32(16)},d=b.getUint16(22),e;for(e=24;d;e+=12,d--)c.references.push({referenceType:(128&a[e])>>>7,referencedSize:2147483647&b.getUint32(e),subsegmentDuration:b.getUint32(e+4),startsWithSap:!!(128&a[e+8]),sapType:(112&a[e+8])>>>4,sapDeltaTime:268435455&b.getUint32(e+8)});return c},smhd:function it(a){return{version:a[0],flags:new Uint8Array(a.subarray(1,4)),balance:a[4]+a[5]/256}},stbl:function jt(a){return{boxes:xj(a)}},stco:function kt(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c={version:a[0],flags:new Uint8Array(a.subarray(1,4)),chunkOffsets:[]},d=b.getUint32(4),e;for(e=8;d;e+=4,d--)c.chunkOffsets.push(b.getUint32(e));return c},stsc:function lt(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c=b.getUint32(4),d={version:a[0],flags:new Uint8Array(a.subarray(1,4)),sampleToChunks:[]},e;for(e=8;c;e+=12,c--)d.sampleToChunks.push({firstChunk:b.getUint32(e),samplesPerChunk:b.getUint32(e+4),sampleDescriptionIndex:b.getUint32(e+8)});return d},stsd:function mt(a){return{version:a[0],flags:new Uint8Array(a.subarray(1,4)),sampleDescriptions:xj(a.subarray(8))}},stsz:function nt(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c={version:a[0],flags:new Uint8Array(a.subarray(1,4)),sampleSize:b.getUint32(4),entries:[]},d;for(d=12;d<a.byteLength;d+=4)c.entries.push(b.getUint32(d));return c},stts:function ot(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c={version:a[0],flags:new Uint8Array(a.subarray(1,4)),timeToSamples:[]},d=b.getUint32(4),e;for(e=8;d;e+=8,d--)c.timeToSamples.push({sampleCount:b.getUint32(e),sampleDelta:b.getUint32(e+4)});return c},styp:function pt(a){return Dj.ftyp(a)},tfdt:function qt(a){var b={version:a[0],flags:new Uint8Array(a.subarray(1,4)),baseMediaDecodeTime:a[4]<<24|a[5]<<16|a[6]<<8|a[7]};return 1===b.version&&(b.baseMediaDecodeTime*=Math.pow(2,32),b.baseMediaDecodeTime+=a[8]<<24|a[9]<<16|a[10]<<8|a[11]),b},tfhd:function rt(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c={version:a[0],flags:new Uint8Array(a.subarray(1,4)),trackId:b.getUint32(4)},d=1&c.flags[2],e=2&c.flags[2],f=8&c.flags[2],g=16&c.flags[2],h=32&c.flags[2],i=65536&c.flags[0],j=131072&c.flags[0],k;return k=8,d&&(k+=4,c.baseDataOffset=b.getUint32(12),k+=4),e&&(c.sampleDescriptionIndex=b.getUint32(k),k+=4),f&&(c.defaultSampleDuration=b.getUint32(k),k+=4),g&&(c.defaultSampleSize=b.getUint32(k),k+=4),h&&(c.defaultSampleFlags=b.getUint32(k)),i&&(c.durationIsEmpty=!0),!d&&j&&(c.baseDataOffsetIsMoof=!0),c},tkhd:function st(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c=4,d={version:b.getUint8(0),flags:new Uint8Array(a.subarray(1,4))};return 1===d.version?(c+=4,d.creationTime=Aj(b.getUint32(c)),c+=8,d.modificationTime=Aj(b.getUint32(c)),c+=4,d.trackId=b.getUint32(c),c+=4,c+=8,d.duration=b.getUint32(c)):(d.creationTime=Aj(b.getUint32(c)),c+=4,d.modificationTime=Aj(b.getUint32(c)),c+=4,d.trackId=b.getUint32(c),c+=4,c+=4,d.duration=b.getUint32(c)),c+=4,c+=8,d.layer=b.getUint16(c),c+=2,d.alternateGroup=b.getUint16(c),c+=2,d.volume=b.getUint8(c)+b.getUint8(c+1)/8,c+=2,c+=2,d.matrix=new Uint32Array(a.subarray(c,c+36)),c+=36,d.width=b.getUint16(c)+b.getUint16(c+2)/16,c+=4,d.height=b.getUint16(c)+b.getUint16(c+2)/16,d},traf:function tt(a){return{boxes:xj(a)}},trak:function ut(a){return{boxes:xj(a)}},trex:function vt(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength);return{version:a[0],flags:new Uint8Array(a.subarray(1,4)),trackId:b.getUint32(4),defaultSampleDescriptionIndex:b.getUint32(8),defaultSampleDuration:b.getUint32(12),defaultSampleSize:b.getUint32(16),sampleDependsOn:3&a[20],sampleIsDependedOn:(192&a[21])>>6,sampleHasRedundancy:(48&a[21])>>4,samplePaddingValue:(14&a[21])>>1,sampleIsDifferenceSample:!!(1&a[21]),sampleDegradationPriority:b.getUint16(22)}},trun:function wt(a){var b={version:a[0],flags:new Uint8Array(a.subarray(1,4)),samples:[]},c=new DataView(a.buffer,a.byteOffset,a.byteLength),d=1&b.flags[2],e=4&b.flags[2],f=1&b.flags[1],g=2&b.flags[1],h=4&b.flags[1],i=8&b.flags[1],j=c.getUint32(4),k=8,l;for(d&&(b.dataOffset=c.getInt32(k),k+=4),e&&j&&(l={flags:Bj(a.subarray(k,k+4))},k+=4,f&&(l.duration=c.getUint32(k),k+=4),g&&(l.size=c.getUint32(k),k+=4),i&&(l.compositionTimeOffset=c.getUint32(k),k+=4),b.samples.push(l),j--);j--;)l={},f&&(l.duration=c.getUint32(k),k+=4),g&&(l.size=c.getUint32(k),k+=4),h&&(l.flags=Bj(a.subarray(k,k+4)),k+=4),i&&(l.compositionTimeOffset=c.getUint32(k),k+=4),b.samples.push(l);return b},'url ':function xt(a){return{version:a[0],flags:new Uint8Array(a.subarray(1,4))}},vmhd:function yt(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength);return{version:a[0],flags:new Uint8Array(a.subarray(1,4)),graphicsmode:b.getUint16(4),opcolor:new Uint16Array([b.getUint16(6),b.getUint16(8),b.getUint16(10)])}}};xj=function zt(a){for(var b=0,c=[],d,e,f,g,h,i=new ArrayBuffer(a.length),j=new Uint8Array(i),k=0;k<a.length;++k)j[k]=a[k];for(d=new DataView(i);b<a.byteLength;)e=d.getUint32(b),f=zj(a.subarray(b+4,b+8)),g=e>1?b+e:a.byteLength,h=(Dj[f]||function(a){return{data:a}})(a.subarray(b+8,g)),h.size=e,h.type=f,c.push(h),b=g;return c},yj=function At(a,b){var c;return b=b||0,c=new Array(2*b+1).join(' '),a.map(function(a,d){return c+a.type+'\n'+Object.keys(a).filter(function(a){return'type'!==a&&'boxes'!==a}).map(function(b){var d=c+'  '+b+': ',e=a[b];if(e instanceof Uint8Array||e instanceof Uint32Array){var f=Array.prototype.slice.call(new Uint8Array(e.buffer,e.byteOffset,e.byteLength)).map(function(a){return' '+('00'+a.toString(16)).slice(-2)}).join('').match(/.{1,24}/g);return f?1===f.length?d+'<'+f.join('').slice(1)+'>':d+'<\n'+f.map(function(a){return c+'  '+a}).join('\n')+'\n'+c+'  >':d+'<>'}return d+JSON.stringify(e,null,2).split('\n').map(function(a,b){return 0===b?a:c+'  '+a}).join('\n')}).join('\n')+(a.boxes?'\n'+yj(a.boxes,b+1):'')}).join('\n')};var Ej={inspect:xj,textify:yj,parseTfdt:Dj.tfdt,parseHdlr:Dj.hdlr,parseTfhd:Dj.tfhd,parseTrun:Dj.trun,parseSidx:Dj.sidx},Fj=4,Gj=128,Hj=function Bt(a){for(var b=0,c={payloadType:-1,payloadSize:0},d=0,e=0;b<a.byteLength&&a[b]!==Gj;){for(;255===a[b];)d+=255,b++;for(d+=a[b++];255===a[b];)e+=255,b++;if(e+=a[b++],!c.payload&&d===Fj){c.payloadType=d,c.payloadSize=e,c.payload=a.subarray(b,b+e);break}b+=e,d=0,e=0}return c},Ij=function Ct(a){return 181!==a.payload[0]?null:49!==(a.payload[1]<<8|a.payload[2])?null:'GA94'!==String.fromCharCode(a.payload[3],a.payload[4],a.payload[5],a.payload[6])?null:3!==a.payload[7]?null:a.payload.subarray(8,a.payload.length-1)},Jj=function Dt(a,b){var c=[],d,e,f,g;if(!(64&b[0]))return c;for(e=31&b[0],d=0;e>d;d++)f=3*d,g={type:3&b[f+2],pts:a},4&b[f+2]&&(g.ccData=b[f+3]<<8|b[f+4],c.push(g));return c},Kj=function Et(a){for(var b=a.byteLength,c=[],d=1,e,f;b-2>d;)0===a[d]&&0===a[d+1]&&3===a[d+2]?(c.push(d+2),d+=2):d++;if(0===c.length)return a;e=b-c.length,f=new Uint8Array(e);var g=0;for(d=0;e>d;g++,d++)g===c[0]&&(g++,c.shift()),f[d]=a[g];return f},Lj={parseSei:Hj,parseUserData:Ij,parseCaptionPackets:Jj,discardEmulationPreventionBytes:Kj,USER_DATA_REGISTERED_ITU_T_T35:Fj},Mj=function Ft(){this.init=function(){var a={};this.on=function(b,c){a[b]||(a[b]=[]),a[b]=a[b].concat(c)},this.off=function(b,c){var d;return a[b]?(d=a[b].indexOf(c),a[b]=a[b].slice(),a[b].splice(d,1),d>-1):!1},this.trigger=function(b){var c,d,e,f;if(c=a[b],c)if(2===arguments.length)for(e=c.length,d=0;e>d;++d)c[d].call(this,arguments[1]);else{for(f=[],d=arguments.length,d=1;d<arguments.length;++d)f.push(arguments[d]);for(e=c.length,d=0;e>d;++d)c[d].apply(this,f)}},this.dispose=function(){a={}}}};Mj.prototype.pipe=function(a){return this.on('data',function(b){a.push(b)}),this.on('done',function(b){a.flush(b)}),this.on('partialdone',function(b){a.partialFlush(b)}),this.on('endedtimeline',function(b){a.endTimeline(b)}),this.on('reset',function(b){a.reset(b)}),a},Mj.prototype.push=function(a){this.trigger('data',a)},Mj.prototype.flush=function(a){this.trigger('done',a)},Mj.prototype.partialFlush=function(a){this.trigger('partialdone',a)},Mj.prototype.endTimeline=function(a){this.trigger('endedtimeline',a)},Mj.prototype.reset=function(a){this.trigger('reset',a)};var Nj=Mj,Oj=function Gt(){Gt.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new Uj(0,0),new Uj(0,1),new Uj(1,0),new Uj(1,1)],this.reset(),this.ccStreams_.forEach(function(a){a.on('data',this.trigger.bind(this,'data')),a.on('partialdone',this.trigger.bind(this,'partialdone')),a.on('done',this.trigger.bind(this,'done'))},this)};Oj.prototype=new Nj,Oj.prototype.push=function(a){var b,c,d;if('sei_rbsp'===a.nalUnitType&&(b=Lj.parseSei(a.escapedRBSP),b.payloadType===Lj.USER_DATA_REGISTERED_ITU_T_T35&&(c=Lj.parseUserData(b),c))){if(a.dts<this.latestDts_)return this.ignoreNextEqualDts_=!0,void 0;if(a.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,this.numSameDts_||(this.ignoreNextEqualDts_=!1),void 0;d=Lj.parseCaptionPackets(a.pts,c),this.captionPackets_=this.captionPackets_.concat(d),this.latestDts_!==a.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=a.dts}},Oj.prototype.flushCCStreams=function(a){this.ccStreams_.forEach(function(b){return'flush'===a?b.flush():b.partialFlush()},this)},Oj.prototype.flushStream=function(a){return this.captionPackets_.length?(this.captionPackets_.forEach(function(a,b){a.presortIndex=b}),this.captionPackets_.sort(function(a,b){return a.pts===b.pts?a.presortIndex-b.presortIndex:a.pts-b.pts}),this.captionPackets_.forEach(function(a){a.type<2&&this.dispatchCea608Packet(a)},this),this.captionPackets_.length=0,this.flushCCStreams(a),void 0):(this.flushCCStreams(a),void 0)},Oj.prototype.flush=function(){return this.flushStream('flush')},Oj.prototype.partialFlush=function(){return this.flushStream('partialFlush')},Oj.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(a){a.reset()})},Oj.prototype.dispatchCea608Packet=function(a){this.setsTextOrXDSActive(a)?this.activeCea608Channel_[a.type]=null:this.setsChannel1Active(a)?this.activeCea608Channel_[a.type]=0:this.setsChannel2Active(a)&&(this.activeCea608Channel_[a.type]=1),null!==this.activeCea608Channel_[a.type]&&this.ccStreams_[(a.type<<1)+this.activeCea608Channel_[a.type]].push(a)},Oj.prototype.setsChannel1Active=function(a){return 4096===(30720&a.ccData)},Oj.prototype.setsChannel2Active=function(a){return 6144===(30720&a.ccData)},Oj.prototype.setsTextOrXDSActive=function(a){return 256===(28928&a.ccData)||4138===(30974&a.ccData)||6186===(30974&a.ccData)};var Pj={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Qj=function Ht(a){return null===a?'':(a=Pj[a]||a,String.fromCharCode(a))},Rj=14,Sj=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Tj=function It(){for(var a=[],b=Rj+1;b--;)a.push('');return a},Uj=function Jt(a,b){Jt.prototype.init.call(this),this.field_=a||0,this.dataChannel_=b||0,this.name_='CC'+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(a){var b,c,d,e,f;if(b=32639&a.ccData,b===this.lastControlCode_)return this.lastControlCode_=null,void 0;if(4096===(61440&b)?this.lastControlCode_=b:b!==this.PADDING_&&(this.lastControlCode_=null),d=b>>>8,e=255&b,b!==this.PADDING_)if(b===this.RESUME_CAPTION_LOADING_)this.mode_='popOn';else if(b===this.END_OF_CAPTION_)this.mode_='popOn',this.clearFormatting(a.pts),this.flushDisplayed(a.pts),c=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=c,this.startPts_=a.pts;else if(b===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(a.pts);else if(b===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(a.pts);else if(b===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(a.pts);else if(b===this.CARRIAGE_RETURN_)this.clearFormatting(a.pts),this.flushDisplayed(a.pts),this.shiftRowsUp_(),this.startPts_=a.pts;else if(b===this.BACKSPACE_)'popOn'===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(b===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(a.pts),this.displayed_=Tj();else if(b===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Tj();else if(b===this.RESUME_DIRECT_CAPTIONING_)'paintOn'!==this.mode_&&(this.flushDisplayed(a.pts),this.displayed_=Tj()),this.mode_='paintOn',this.startPts_=a.pts;else if(this.isSpecialCharacter(d,e))d=(3&d)<<8,f=Qj(d|e),this[this.mode_](a.pts,f),this.column_++;else if(this.isExtCharacter(d,e))'popOn'===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),d=(3&d)<<8,f=Qj(d|e),this[this.mode_](a.pts,f),this.column_++;else if(this.isMidRowCode(d,e))this.clearFormatting(a.pts),this[this.mode_](a.pts,' '),this.column_++,14===(14&e)&&this.addFormatting(a.pts,['i']),1===(1&e)&&this.addFormatting(a.pts,['u']);else if(this.isOffsetControlCode(d,e))this.column_+=3&e;else if(this.isPAC(d,e)){var g=Sj.indexOf(7968&b);'rollUp'===this.mode_&&(g-this.rollUpRows_+1<0&&(g=this.rollUpRows_-1),this.setRollUp(a.pts,g)),g!==this.row_&&(this.clearFormatting(a.pts),this.row_=g),1&e&&-1===this.formatting_.indexOf('u')&&this.addFormatting(a.pts,['u']),16===(16&b)&&(this.column_=4*((14&b)>>1)),this.isColorPAC(e)&&14===(14&e)&&this.addFormatting(a.pts,['i'])}else this.isNormalChar(d)&&(0===e&&(e=null),f=Qj(d),f+=Qj(e),this[this.mode_](a.pts,f),this.column_+=f.length)}};Uj.prototype=new Nj,Uj.prototype.flushDisplayed=function(a){var b=this.displayed_.map(function(a){try{return a.trim()}catch(b){return console.error('Skipping malformed caption.'),''}}).join('\n').replace(/^\n+|\n+$/g,'');b.length&&this.trigger('data',{startPts:this.startPts_,endPts:a,text:b,stream:this.name_})},Uj.prototype.reset=function(){this.mode_='popOn',this.topRow_=0,this.startPts_=0,this.displayed_=Tj(),this.nonDisplayed_=Tj(),this.lastControlCode_=null,this.column_=0,this.row_=Rj,this.rollUpRows_=2,this.formatting_=[]},Uj.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Uj.prototype.isSpecialCharacter=function(a,b){return a===this.EXT_&&b>=48&&63>=b},Uj.prototype.isExtCharacter=function(a,b){return(a===this.EXT_+1||a===this.EXT_+2)&&b>=32&&63>=b},Uj.prototype.isMidRowCode=function(a,b){return a===this.EXT_&&b>=32&&47>=b},Uj.prototype.isOffsetControlCode=function(a,b){return a===this.OFFSET_&&b>=33&&35>=b},Uj.prototype.isPAC=function(a,b){return a>=this.BASE_&&a<this.BASE_+8&&b>=64&&127>=b},Uj.prototype.isColorPAC=function(a){return a>=64&&79>=a||a>=96&&127>=a},Uj.prototype.isNormalChar=function(a){return a>=32&&127>=a},Uj.prototype.setRollUp=function(a,b){if('rollUp'!==this.mode_&&(this.row_=Rj,this.mode_='rollUp',this.flushDisplayed(a),this.nonDisplayed_=Tj(),this.displayed_=Tj()),void 0!==b&&b!==this.row_)for(var c=0;c<this.rollUpRows_;c++)this.displayed_[b-c]=this.displayed_[this.row_-c],this.displayed_[this.row_-c]='';void 0===b&&(b=this.row_),this.topRow_=b-this.rollUpRows_+1},Uj.prototype.addFormatting=function(a,b){this.formatting_=this.formatting_.concat(b);var c=b.reduce(function(a,b){return a+'<'+b+'>'},'');this[this.mode_](a,c)},Uj.prototype.clearFormatting=function(a){if(this.formatting_.length){var b=this.formatting_.reverse().reduce(function(a,b){return a+'</'+b+'>'},'');this.formatting_=[],this[this.mode_](a,b)}},Uj.prototype.popOn=function(a,b){var c=this.nonDisplayed_[this.row_];c+=b,this.nonDisplayed_[this.row_]=c},Uj.prototype.rollUp=function(a,b){var c=this.displayed_[this.row_];c+=b,this.displayed_[this.row_]=c},Uj.prototype.shiftRowsUp_=function(){var a;for(a=0;a<this.topRow_;a++)this.displayed_[a]='';for(a=this.row_+1;Rj+1>a;a++)this.displayed_[a]='';for(a=this.topRow_;a<this.row_;a++)this.displayed_[a]=this.displayed_[a+1];this.displayed_[this.row_]=''},Uj.prototype.paintOn=function(a,b){var c=this.displayed_[this.row_];c+=b,this.displayed_[this.row_]=c};var Vj={CaptionStream:Oj,Cea608Stream:Uj},Wj=Lj.discardEmulationPreventionBytes,Xj=Vj.CaptionStream,Yj=function Kt(a,b){for(var c=a,d=0;d<b.length;d++){var e=b[d];if(c<e.size)return e;c-=e.size}return null},Zj=function Lt(a,b,c){var d=new DataView(a.buffer,a.byteOffset,a.byteLength),e=[],f,g,h,i;for(g=0;g+4<a.length;g+=h)if(h=d.getUint32(g),g+=4,!(0>=h))switch(31&a[g]){case 6:var j=a.subarray(g+1,g+1+h),k=Yj(g,b);f={nalUnitType:'sei_rbsp',size:h,data:j,escapedRBSP:Wj(j),trackId:c},k?(f.pts=k.pts,f.dts=k.dts,i=k):(f.pts=i.pts,f.dts=i.dts),e.push(f)}return e},$j=function Mt(a,b,c){var d=b,e=c.defaultSampleDuration||0,f=c.defaultSampleSize||0,g=c.trackId,h=[];return a.forEach(function(a){var b=Ej.parseTrun(a),c=b.samples;c.forEach(function(a){void 0===a.duration&&(a.duration=e),void 0===a.size&&(a.size=f),a.trackId=g,a.dts=d,void 0===a.compositionTimeOffset&&(a.compositionTimeOffset=0),a.pts=d+a.compositionTimeOffset,d+=a.duration}),h=h.concat(c)}),h},_j=function Nt(a,b){var c=wj.findBox(a,['moof','traf']),d=wj.findBox(a,['mdat']),e={},f=[];return d.forEach(function(a,b){var d=c[b];f.push({mdat:a,traf:d})}),f.forEach(function(a){var c=a.mdat,d=a.traf,f=wj.findBox(d,['tfhd']),g=Ej.parseTfhd(f[0]),h=g.trackId,i=wj.findBox(d,['tfdt']),j=i.length>0?Ej.parseTfdt(i[0]).baseMediaDecodeTime:0,k=wj.findBox(d,['trun']),l,m;b===h&&k.length>0&&(l=$j(k,j,g),m=Zj(c,l,h),e[h]||(e[h]=[]),e[h]=e[h].concat(m))}),e},ak=function Ot(a,b,c){var d;return null===b?null:(d=_j(a,b),{seiNals:d[b],timescale:c})},bk=function Pt(){var a=!1,b,c,d,e,f,g;this.isInitialized=function(){return a},this.init=function(c){b=new Xj,a=!0,g=c?c.isPartial:!1,b.on('data',function(a){a.startTime=a.startPts/e,a.endTime=a.endPts/e,f.captions.push(a),f.captionStreams[a.stream]=!0})},this.isNewInit=function(a,b){return a&&0===a.length||b&&'object'==typeof b&&0===Object.keys(b).length?!1:d!==a[0]||e!==b[d]},this.parse=function(a,b,g){var h;if(!this.isInitialized())return null;if(!b||!g)return null;if(this.isNewInit(b,g))d=b[0],e=g[d];else if(null===d||!e)return c.push(a),null;for(;c.length>0;){var i=c.shift();this.parse(i,b,g)}return h=ak(a,d,e),null!==h&&h.seiNals?(this.pushNals(h.seiNals),this.flushStream(),f):null},this.pushNals=function(a){return this.isInitialized()&&a&&0!==a.length?(a.forEach(function(a){b.push(a)}),void 0):null},this.flushStream=function(){return this.isInitialized()?(g?b.partialFlush():b.flush(),void 0):null},this.clearParsedCaptions=function(){f.captions=[],f.captionStreams={}},this.resetCaptionStream=function(){return this.isInitialized()?(b.reset(),void 0):null},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){c=[],d=null,e=null,f?this.clearParsedCaptions():f={captions:[],captionStreams:{}},this.resetCaptionStream()},this.reset()},ck=bk,dk={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},ek=8589934592,fk=4294967296,gk='shared',hk=function Qt(a,b){var c=1;for(a>b&&(c=-1);Math.abs(b-a)>fk;)a+=c*ek;return a},ik=function Rt(a){var b,c;Rt.prototype.init.call(this),this.type_=a||gk,this.push=function(a){this.type_!==gk&&a.type!==this.type_||(void 0===c&&(c=a.dts),a.dts=hk(a.dts,c),a.pts=hk(a.pts,c),b=a.dts,this.trigger('data',a))},this.flush=function(){c=b,this.trigger('done')},this.endTimeline=function(){this.flush(),this.trigger('endedtimeline')},this.discontinuity=function(){c=void 0,b=void 0},this.reset=function(){this.discontinuity(),this.trigger('reset')}};ik.prototype=new Nj;var jk={TimestampRolloverStream:ik,handleRollover:hk},kk=function St(a){var b=31&a[1];return b<<=8,b|=a[2],b},lk=function Tt(a){return!!(64&a[1])},mk=function Ut(a){var b=0;return(48&a[3])>>>4>1&&(b+=a[4]+1),b},nk=function Vt(a,b){var c=kk(a);return 0===c?'pat':c===b?'pmt':b?'pes':null},ok=function Wt(a){var b=lk(a),c=4+mk(a);return b&&(c+=a[c]+1),(31&a[c+10])<<8|a[c+11]},pk=function Xt(a){var b={},c=lk(a),d=4+mk(a);if(c&&(d+=a[d]+1),1&a[d+5]){var e,f,g;e=(15&a[d+1])<<8|a[d+2],f=3+e-4,g=(15&a[d+10])<<8|a[d+11];for(var h=12+g;f>h;){var i=d+h;b[(31&a[i+1])<<8|a[i+2]]=a[i],h+=((15&a[i+3])<<8|a[i+4])+5}return b}},qk=function Yt(a,b){var c=kk(a),d=b[c];switch(d){case dk.H264_STREAM_TYPE:return'video';case dk.ADTS_STREAM_TYPE:return'audio';case dk.METADATA_STREAM_TYPE:return'timed-metadata';default:return null}},rk=function Zt(a){var b=lk(a);if(!b)return null;var c=4+mk(a);if(c>=a.byteLength)return null;var d=null,e;return e=a[c+7],192&e&&(d={},d.pts=(14&a[c+9])<<27|(255&a[c+10])<<20|(254&a[c+11])<<12|(255&a[c+12])<<5|(254&a[c+13])>>>3,d.pts*=4,d.pts+=(6&a[c+13])>>>1,d.dts=d.pts,64&e&&(d.dts=(14&a[c+14])<<27|(255&a[c+15])<<20|(254&a[c+16])<<12|(255&a[c+17])<<5|(254&a[c+18])>>>3,d.dts*=4,d.dts+=(6&a[c+18])>>>1)),d},sk=function $t(a){switch(a){case 5:return'slice_layer_without_partitioning_rbsp_idr';case 6:return'sei_rbsp';case 7:return'seq_parameter_set_rbsp';case 8:return'pic_parameter_set_rbsp';case 9:return'access_unit_delimiter_rbsp';default:return null}},tk=function _t(a){for(var b=4+mk(a),c=a.subarray(b),d=0,e=0,f=!1,g;e<c.byteLength-3;e++)if(1===c[e+2]){d=e+5;break}for(;d<c.byteLength;)switch(c[d]){case 0:if(0!==c[d-1]){d+=2;break}if(0!==c[d-2]){d++;break}e+3!==d-2&&(g=sk(31&c[e+3]),'slice_layer_without_partitioning_rbsp_idr'===g&&(f=!0));do d++;while(1!==c[d]&&d<c.length);e=d-2,d+=3;break;case 1:if(0!==c[d-1]||0!==c[d-2]){d+=3;break}g=sk(31&c[e+3]),'slice_layer_without_partitioning_rbsp_idr'===g&&(f=!0),e=d-2,d+=3;break;default:d+=3}return c=c.subarray(e),d-=e,e=0,c&&c.byteLength>3&&(g=sk(31&c[e+3]),'slice_layer_without_partitioning_rbsp_idr'===g&&(f=!0)),f},uk={parseType:nk,parsePat:ok,parsePmt:pk,parsePayloadUnitStartIndicator:lk,parsePesType:qk,parsePesTime:rk,videoPacketContainsKeyFrame:tk},vk=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],wk=function au(a){return a[0]==='I'.charCodeAt(0)&&a[1]==='D'.charCodeAt(0)&&a[2]==='3'.charCodeAt(0)},xk=function bu(a){return a[0]<<21|a[1]<<14|a[2]<<7|a[3]},yk=function cu(a,b,c){var d,e='';for(d=b;c>d;d++)e+='%'+('00'+a[d].toString(16)).slice(-2);return e},zk=function du(a,b,c){return unescape(yk(a,b,c))},Ak=function eu(a,b){var c=a[b+6]<<21|a[b+7]<<14|a[b+8]<<7|a[b+9],d=a[b+5],e=(16&d)>>4;return e?c+20:c+10},Bk=function fu(a,b){var c=(224&a[b+5])>>5,d=a[b+4]<<3,e=6144&a[b+3];return e|d|c},Ck=function gu(a,b){return a[b]==='I'.charCodeAt(0)&&a[b+1]==='D'.charCodeAt(0)&&a[b+2]==='3'.charCodeAt(0)?'timed-metadata':a[b]&!0&&240===(240&a[b+1])?'audio':null},Dk=function hu(a){for(var b=0;b+5<a.length;){if(255===a[b]&&240===(246&a[b+1]))return vk[(60&a[b+2])>>>2];b++}return null},Ek=function iu(a){var b,c,d,e;b=10,64&a[5]&&(b+=4,b+=xk(a.subarray(10,14)));do{if(c=xk(a.subarray(b+4,b+8)),1>c)return null;if(e=String.fromCharCode(a[b],a[b+1],a[b+2],a[b+3]),'PRIV'===e){d=a.subarray(b+10,b+c+10);for(var f=0;f<d.byteLength;f++)if(0===d[f]){var g=zk(d,0,f);if('com.apple.streaming.transportStreamTimestamp'===g){var h=d.subarray(f+1),i=(1&h[3])<<30|h[4]<<22|h[5]<<14|h[6]<<6|h[7]>>>2;return i*=4,i+=3&h[7],i}break}}b+=10,b+=c}while(b<a.byteLength);return null},Fk={isLikelyAacData:wk,parseId3TagSize:Ak,parseAdtsSize:Bk,parseType:Ck,parseSampleRate:Dk,parseAacTimestamp:Ek},Gk=9e4,Hk,Ik,Jk,Kk,Lk,Mk,Nk;Hk=function ju(a){return a*Gk},Ik=function ku(a,b){return a*b},Jk=function lu(a){return a/Gk},Kk=function mu(a,b){return a/b},Lk=function nu(a,b){return Hk(Kk(a,b))},Mk=function ou(a,b){return Ik(Jk(a),b)},Nk=function pu(a,b,c){return Jk(c?a:a-b)};var Ok={ONE_SECOND_IN_TS:Gk,secondsToVideoTs:Hk,secondsToAudioTs:Ik,videoTsToSeconds:Jk,audioTsToSeconds:Kk,audioTsToVideoTs:Lk,videoTsToAudioTs:Mk,metadataTsToSeconds:Nk},Pk=jk.handleRollover,Qk={};Qk.ts=uk,Qk.aac=Fk;var Rk=Ok.ONE_SECOND_IN_TS,Sk=188,Tk=71,Uk=function qu(a,b){for(var c=0,d=Sk,e,f;d<a.byteLength;)if(a[c]!==Tk||a[d]!==Tk)c++,d++;else{switch(e=a.subarray(c,d),f=Qk.ts.parseType(e,b.pid),f){case'pat':b.pid||(b.pid=Qk.ts.parsePat(e));break;case'pmt':b.table||(b.table=Qk.ts.parsePmt(e))}if(b.pid&&b.table)return;c+=Sk,d+=Sk}},Vk=function ru(a,b,c){for(var d=0,e=Sk,f,g,h,i,j,k=!1;e<=a.byteLength;)if(a[d]!==Tk||a[e]!==Tk&&e!==a.byteLength)d++,e++;else{switch(f=a.subarray(d,e),g=Qk.ts.parseType(f,b.pid),g){case'pes':h=Qk.ts.parsePesType(f,b.table),i=Qk.ts.parsePayloadUnitStartIndicator(f),'audio'===h&&i&&(j=Qk.ts.parsePesTime(f),j&&(j.type='audio',c.audio.push(j),k=!0))}if(k)break;d+=Sk,e+=Sk}for(e=a.byteLength,d=e-Sk,k=!1;d>=0;)if(a[d]!==Tk||a[e]!==Tk&&e!==a.byteLength)d--,e--;else{switch(f=a.subarray(d,e),g=Qk.ts.parseType(f,b.pid),g){case'pes':h=Qk.ts.parsePesType(f,b.table),i=Qk.ts.parsePayloadUnitStartIndicator(f),'audio'===h&&i&&(j=Qk.ts.parsePesTime(f),j&&(j.type='audio',c.audio.push(j),k=!0))}if(k)break;d-=Sk,e-=Sk}},Wk=function su(a,b,c){for(var d=0,e=Sk,f,g,h,i,j,k,l,m,n=!1,o={data:[],size:0};e<a.byteLength;)if(a[d]!==Tk||a[e]!==Tk)d++,e++;else{switch(f=a.subarray(d,e),g=Qk.ts.parseType(f,b.pid),g){case'pes':if(h=Qk.ts.parsePesType(f,b.table),i=Qk.ts.parsePayloadUnitStartIndicator(f),'video'===h&&(i&&!n&&(j=Qk.ts.parsePesTime(f),j&&(j.type='video',c.video.push(j),n=!0)),!c.firstKeyFrame)){if(i&&0!==o.size){for(k=new Uint8Array(o.size),l=0;o.data.length;)m=o.data.shift(),k.set(m,l),l+=m.byteLength;if(Qk.ts.videoPacketContainsKeyFrame(k)){var p=Qk.ts.parsePesTime(k);p?(c.firstKeyFrame=p,c.firstKeyFrame.type='video'):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}o.size=0}o.data.push(f),o.size+=f.byteLength}}if(n&&c.firstKeyFrame)break;d+=Sk,e+=Sk}for(e=a.byteLength,d=e-Sk,n=!1;d>=0;)if(a[d]!==Tk||a[e]!==Tk)d--,e--;else{switch(f=a.subarray(d,e),g=Qk.ts.parseType(f,b.pid),g){case'pes':h=Qk.ts.parsePesType(f,b.table),i=Qk.ts.parsePayloadUnitStartIndicator(f),'video'===h&&i&&(j=Qk.ts.parsePesTime(f),j&&(j.type='video',c.video.push(j),n=!0))}if(n)break;d-=Sk,e-=Sk}},Xk=function tu(a,b){if(a.audio&&a.audio.length){var c=b;'undefined'==typeof c&&(c=a.audio[0].dts),a.audio.forEach(function(a){a.dts=Pk(a.dts,c),a.pts=Pk(a.pts,c),a.dtsTime=a.dts/Rk,a.ptsTime=a.pts/Rk})}if(a.video&&a.video.length){var d=b;if('undefined'==typeof d&&(d=a.video[0].dts),a.video.forEach(function(a){a.dts=Pk(a.dts,d),a.pts=Pk(a.pts,d),a.dtsTime=a.dts/Rk,a.ptsTime=a.pts/Rk}),a.firstKeyFrame){var e=a.firstKeyFrame;e.dts=Pk(e.dts,d),e.pts=Pk(e.pts,d),e.dtsTime=e.dts/Rk,e.ptsTime=e.dts/Rk}}},Yk=function uu(a){for(var b=!1,c=0,d=null,e=null,f=0,g=0,h;a.length-g>=3;){var i=Qk.aac.parseType(a,g);switch(i){case'timed-metadata':if(a.length-g<10){b=!0;break}if(f=Qk.aac.parseId3TagSize(a,g),f>a.length){b=!0;break}null===e&&(h=a.subarray(g,g+f),e=Qk.aac.parseAacTimestamp(h)),g+=f;break;case'audio':if(a.length-g<7){b=!0;break}if(f=Qk.aac.parseAdtsSize(a,g),f>a.length){b=!0;break}null===d&&(h=a.subarray(g,g+f),d=Qk.aac.parseSampleRate(h)),c++,g+=f;break;default:g++}if(b)return null}if(null===d||null===e)return null;var j=Rk/d,k={audio:[{type:'audio',dts:e,pts:e},{type:'audio',dts:e+1024*c*j,pts:e+1024*c*j}]};return k},Zk=function vu(a){var b={pid:null,table:null},c={};Uk(a,b);for(var d in b.table)if(b.table.hasOwnProperty(d)){var e=b.table[d];switch(e){case dk.H264_STREAM_TYPE:c.video=[],Wk(a,b,c),0===c.video.length&&delete c.video;break;case dk.ADTS_STREAM_TYPE:c.audio=[],Vk(a,b,c),0===c.audio.length&&delete c.audio}}return c},$k=function wu(a,b){var c=Qk.aac.isLikelyAacData(a),d;return d=c?Yk(a):Zk(a),d&&(d.audio||d.video)?(Xk(d,b),d):null},_k={inspect:$k,parseAudioPes_:Vk},al=function xu(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},bl=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),cl=function yu(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)},dl=function zu(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b},el=function Au(){var a=[[[],[],[],[],[]],[[],[],[],[],[]]],b=a[0],c=a[1],d=b[4],e=c[4],f=void 0,g=void 0,h=void 0,i=[],j=[],k=void 0,l=void 0,m=void 0,n=void 0,o=void 0,p=void 0;for(f=0;256>f;f++)j[(i[f]=f<<1^283*(f>>7))^f]=f;for(g=h=0;!d[g];g^=k||1,h=j[h]||1)for(n=h^h<<1^h<<2^h<<3^h<<4,n=n>>8^255&n^99,d[g]=n,e[n]=g,m=i[l=i[k=i[g]]],p=16843009*m^65537*l^257*k^16843008*g,o=257*i[n]^16843008*n,f=0;4>f;f++)b[f][g]=o=o<<24^o>>>8,c[f][n]=p=p<<24^p>>>8;for(f=0;5>f;f++)b[f]=b[f].slice(0),c[f]=c[f].slice(0);return a},fl=null,gl=function(){function a(b){al(this,a),fl||(fl=el()),this._tables=[[fl[0][0].slice(),fl[0][1].slice(),fl[0][2].slice(),fl[0][3].slice(),fl[0][4].slice()],[fl[1][0].slice(),fl[1][1].slice(),fl[1][2].slice(),fl[1][3].slice(),fl[1][4].slice()]];var c=void 0,d=void 0,e=void 0,f=void 0,g=void 0,h=this._tables[0][4],i=this._tables[1],j=b.length,k=1;if(4!==j&&6!==j&&8!==j)throw new Error('Invalid aes key size');for(f=b.slice(0),g=[],this._key=[f,g],c=j;4*j+28>c;c++)e=f[c-1],(c%j===0||8===j&&c%j===4)&&(e=h[e>>>24]<<24^h[e>>16&255]<<16^h[e>>8&255]<<8^h[255&e],c%j===0&&(e=e<<8^e>>>24^k<<24,k=k<<1^283*(k>>7))),f[c]=f[c-j]^e;for(d=0;c;d++,c--)e=f[3&d?c:c-4],4>=c||4>d?g[d]=e:g[d]=i[0][h[e>>>24]]^i[1][h[e>>16&255]]^i[2][h[e>>8&255]]^i[3][h[255&e]]}return a.prototype.decrypt=function b(a,c,d,e,f,g){var h=this._key[1],i=a^h[0],j=e^h[1],k=d^h[2],l=c^h[3],m=void 0,n=void 0,o=void 0,p=h.length/4-2,q=void 0,r=4,s=this._tables[1],t=s[0],u=s[1],v=s[2],w=s[3],x=s[4];for(q=0;p>q;q++)m=t[i>>>24]^u[j>>16&255]^v[k>>8&255]^w[255&l]^h[r],n=t[j>>>24]^u[k>>16&255]^v[l>>8&255]^w[255&i]^h[r+1],o=t[k>>>24]^u[l>>16&255]^v[i>>8&255]^w[255&j]^h[r+2],
l=t[l>>>24]^u[i>>16&255]^v[j>>8&255]^w[255&k]^h[r+3],r+=4,i=m,j=n,k=o;for(q=0;4>q;q++)f[(3&-q)+g]=x[i>>>24]<<24^x[j>>16&255]<<16^x[k>>8&255]<<8^x[255&l]^h[r++],m=i,i=j,j=k,k=l,l=m},a}(),hl=function(){function a(){al(this,a),this.listeners={}}return a.prototype.on=function b(a,c){this.listeners[a]||(this.listeners[a]=[]),this.listeners[a].push(c)},a.prototype.off=function c(a,b){if(!this.listeners[a])return!1;var c=this.listeners[a].indexOf(b);return this.listeners[a].splice(c,1),c>-1},a.prototype.trigger=function d(a){var b=this.listeners[a];if(b)if(2===arguments.length)for(var c=b.length,d=0;c>d;++d)b[d].call(this,arguments[1]);else for(var e=Array.prototype.slice.call(arguments,1),f=b.length,g=0;f>g;++g)b[g].apply(this,e)},a.prototype.dispose=function e(){this.listeners={}},a.prototype.pipe=function f(a){this.on('data',function(b){a.push(b)})},a}(),il=function(a){function b(){al(this,b);var c=dl(this,a.call(this,hl));return c.jobs=[],c.delay=1,c.timeout_=null,c}return cl(b,a),b.prototype.processJob_=function c(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},b.prototype.push=function d(a){this.jobs.push(a),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},b}(hl),jl=function Bu(a){return a<<24|(65280&a)<<8|(16711680&a)>>8|a>>>24},kl=function Cu(a,b,c){var d=new Int32Array(a.buffer,a.byteOffset,a.byteLength>>2),e=new gl(Array.prototype.slice.call(b)),f=new Uint8Array(a.byteLength),g=new Int32Array(f.buffer),h=void 0,i=void 0,j=void 0,k=void 0,l=void 0,m=void 0,n=void 0,o=void 0,p=void 0;for(h=c[0],i=c[1],j=c[2],k=c[3],p=0;p<d.length;p+=4)l=jl(d[p]),m=jl(d[p+1]),n=jl(d[p+2]),o=jl(d[p+3]),e.decrypt(l,m,n,o,g,p),g[p]=jl(g[p]^h),g[p+1]=jl(g[p+1]^i),g[p+2]=jl(g[p+2]^j),g[p+3]=jl(g[p+3]^k),h=l,i=m,j=n,k=o;return f},ll=function(){function a(b,c,d,e){al(this,a);var f=a.STEP,g=new Int32Array(b.buffer),h=new Uint8Array(b.byteLength),i=0;for(this.asyncStream_=new il,this.asyncStream_.push(this.decryptChunk_(g.subarray(i,i+f),c,d,h)),i=f;i<g.length;i+=f)d=new Uint32Array([jl(g[i-4]),jl(g[i-3]),jl(g[i-2]),jl(g[i-1])]),this.asyncStream_.push(this.decryptChunk_(g.subarray(i,i+f),c,d,h));this.asyncStream_.push(function(){e(null,rb(h))})}return a.prototype.decryptChunk_=function b(a,c,d,e){return function(){var b=kl(a,c,d);e.set(b,a.byteOffset)}},bl(a,null,[{key:'STEP',get:function c(){return 32e3}}]),a}(),ml=function Du(b,c){return/^[a-z]+:/i.test(c)?c:(/\/\//i.test(b)||(b=ei.buildAbsoluteURL(a.location.href,b)),ei.buildAbsoluteURL(b,c))},nl=function Eu(a,b,c){return a&&c.responseURL&&b!==c.responseURL?c.responseURL:b},ol=function Fu(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},pl=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),ql=function Gu(a,b,c){null===a&&(a=Function.prototype);var d=Object.getOwnPropertyDescriptor(a,b);if(void 0===d){var e=Object.getPrototypeOf(a);return null===e?void 0:Gu(e,b,c)}if("value"in d)return d.value;var f=d.get;if(void 0!==f)return f.call(c)},rl=function Hu(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)},sl=function Iu(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b},tl=function(){function a(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g=a[Symbol.iterator](),h;!(d=(h=g.next()).done)&&(c.push(h.value),!b||c.length!==b);d=!0);}catch(i){e=!0,f=i}finally{try{!d&&g["return"]&&g["return"]()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return a(b,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ul=kb.mergeOptions,vl=kb.EventTarget,wl=kb.log,xl=function Ju(a,b){['AUDIO','SUBTITLES'].forEach(function(c){for(var d in a.mediaGroups[c])for(var e in a.mediaGroups[c][d]){var f=a.mediaGroups[c][d][e];b(f,c,d,e)}})},yl=function Ku(a,b,c){var d=b.slice();c=c||0;for(var e=Math.min(a.length,b.length+c),f=c;e>f;f++)d[f-c]=ul(a[f],d[f-c]);return d},zl=function Lu(a,b){a.resolvedUri||(a.resolvedUri=ml(b,a.uri)),a.key&&!a.key.resolvedUri&&(a.key.resolvedUri=ml(b,a.key.uri)),a.map&&!a.map.resolvedUri&&(a.map.resolvedUri=ml(b,a.map.uri))},Al=function Mu(a,b){var c=ul(a,{}),d=c.playlists[b.uri];if(!d)return null;if(d.segments&&b.segments&&d.segments.length===b.segments.length&&d.endList===b.endList&&d.mediaSequence===b.mediaSequence)return null;var e=ul(d,b);d.segments&&(e.segments=yl(d.segments,b.segments,b.mediaSequence-d.mediaSequence)),e.segments.forEach(function(a){zl(a,e.resolvedUri)});for(var f=0;f<c.playlists.length;f++)c.playlists[f].uri===b.uri&&(c.playlists[f]=e);return c.playlists[b.uri]=e,c},Bl=function Nu(a){for(var b=a.playlists.length;b--;){var c=a.playlists[b];a.playlists[c.uri]=c,c.resolvedUri=ml(a.uri,c.uri),c.id=b,c.attributes||(c.attributes={},wl.warn('Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.'))}},Cl=function Ou(a){xl(a,function(b){b.uri&&(b.resolvedUri=ml(a.uri,b.uri))})},Dl=function Pu(a,b){var c=a.segments[a.segments.length-1],d=void 0;return d=b&&c&&c.duration?1e3*c.duration:500*(a.targetDuration||10),d},El=function(b){function c(a,b){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ol(this,c);var e=sl(this,(c.__proto__||Object.getPrototypeOf(c)).call(this)),f=d.withCredentials,g=void 0===f?!1:f,h=d.handleManifestRedirects,i=void 0===h?!1:h;e.srcUrl=a,e.hls_=b,e.withCredentials=g,e.handleManifestRedirects=i;var j=b.options_;if(e.customTagParsers=j&&j.customTagParsers||[],e.customTagMappers=j&&j.customTagMappers||[],!e.srcUrl)throw new Error('A non-empty playlist URL is required');return e.state='HAVE_NOTHING',e.on('mediaupdatetimeout',function(){'HAVE_METADATA'===e.state&&(e.state='HAVE_CURRENT_METADATA',e.request=e.hls_.xhr({uri:ml(e.master.uri,e.media().uri),withCredentials:e.withCredentials},function(a,b){return e.request?a?e.playlistRequestError(e.request,e.media().uri,'HAVE_METADATA'):(e.haveMetadata(e.request,e.media().uri),void 0):void 0}))}),e}return rl(c,b),pl(c,[{key:'playlistRequestError',value:function d(a,b,c){this.request=null,c&&(this.state=c),this.error={playlist:this.master.playlists[b],status:a.status,message:'HLS playlist request error at URL: '+b+'.',responseText:a.responseText,code:a.status>=500?4:2},this.trigger('error')}},{key:'haveMetadata',value:function e(b,c){var d=this;this.request=null,this.state='HAVE_METADATA';var e=new ki;this.customTagParsers.forEach(function(a){return e.addParser(a)}),this.customTagMappers.forEach(function(a){return e.addTagMapper(a)}),e.push(b.responseText),e.end(),e.manifest.uri=c,e.manifest.attributes=e.manifest.attributes||{};var f=Al(this.master,e.manifest);this.targetDuration=e.manifest.targetDuration,f?(this.master=f,this.media_=this.master.playlists[e.manifest.uri]):this.trigger('playlistunchanged'),this.media().endList||(a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=a.setTimeout(function(){d.trigger('mediaupdatetimeout')},Dl(this.media(),!!f))),this.trigger('loadedplaylist')}},{key:'dispose',value:function f(){this.stopRequest(),a.clearTimeout(this.mediaUpdateTimeout),a.clearTimeout(this.finalRenditionTimeout)}},{key:'stopRequest',value:function g(){if(this.request){var a=this.request;this.request=null,a.onreadystatechange=null,a.abort()}}},{key:'media',value:function h(b,c){var d=this;if(!b)return this.media_;if('HAVE_NOTHING'===this.state)throw new Error('Cannot switch media playlist from '+this.state);if('string'==typeof b){if(!this.master.playlists[b])throw new Error('Unknown playlist URI: '+b);b=this.master.playlists[b]}if(a.clearTimeout(this.finalRenditionTimeout),c){var e=b.targetDuration/2*1e3||5e3;return this.finalRenditionTimeout=a.setTimeout(this.media.bind(this,b,!1),e),void 0}var f=this.state,g=!this.media_||b.uri!==this.media_.uri;if(this.master.playlists[b.uri].endList)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state='HAVE_METADATA',this.media_=b,g&&(this.trigger('mediachanging'),this.trigger('mediachange')),void 0;if(g){if(this.state='SWITCHING_MEDIA',this.request){if(b.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger('mediachanging'),this.request=this.hls_.xhr({uri:b.resolvedUri,withCredentials:this.withCredentials},function(a,c){if(d.request){if(b.resolvedUri=nl(d.handleManifestRedirects,b.resolvedUri,c),a)return d.playlistRequestError(d.request,b.uri,f);d.haveMetadata(c,b.uri),'HAVE_MASTER'===f?d.trigger('loadedmetadata'):d.trigger('mediachange')}})}}},{key:'pause',value:function i(){this.stopRequest(),a.clearTimeout(this.mediaUpdateTimeout),'HAVE_NOTHING'===this.state&&(this.started=!1),'SWITCHING_MEDIA'===this.state?this.media_?this.state='HAVE_METADATA':this.state='HAVE_MASTER':'HAVE_CURRENT_METADATA'===this.state&&(this.state='HAVE_METADATA')}},{key:'load',value:function j(b){var c=this;a.clearTimeout(this.mediaUpdateTimeout);var d=this.media();if(b){var e=d?d.targetDuration/2*1e3:5e3;return this.mediaUpdateTimeout=a.setTimeout(function(){return c.load()},e),void 0}return this.started?(d&&!d.endList?this.trigger('mediaupdatetimeout'):this.trigger('loadedplaylist'),void 0):(this.start(),void 0)}},{key:'start',value:function k(){var b=this;this.started=!0,this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(c,d){if(b.request){if(b.request=null,c)return b.error={status:d.status,message:'HLS playlist request error at URL: '+b.srcUrl+'.',responseText:d.responseText,code:2},'HAVE_NOTHING'===b.state&&(b.started=!1),b.trigger('error');var e=new ki;return b.customTagParsers.forEach(function(a){return e.addParser(a)}),b.customTagMappers.forEach(function(a){return e.addTagMapper(a)}),e.push(d.responseText),e.end(),b.state='HAVE_MASTER',b.srcUrl=nl(b.handleManifestRedirects,b.srcUrl,d),e.manifest.uri=b.srcUrl,e.manifest.playlists?(b.master=e.manifest,Bl(b.master),Cl(b.master),b.trigger('loadedplaylist'),b.request||b.media(e.manifest.playlists[0]),void 0):(b.master={mediaGroups:{AUDIO:{},VIDEO:{},'CLOSED-CAPTIONS':{},SUBTITLES:{}},uri:a.location.href,playlists:[{uri:b.srcUrl,id:0,resolvedUri:b.srcUrl,attributes:{}}]},b.master.playlists[b.srcUrl]=b.master.playlists[0],b.haveMetadata(d,b.srcUrl),b.trigger('loadedmetadata'))}})}}]),c}(vl),Fl=kb.createTimeRange,Gl=function Qu(a,b){var c=0,d=b-a.mediaSequence,e=a.segments[d];if(e){if('undefined'!=typeof e.start)return{result:e.start,precise:!0};if('undefined'!=typeof e.end)return{result:e.end-e.duration,precise:!0}}for(;d--;){if(e=a.segments[d],'undefined'!=typeof e.end)return{result:c+e.end,precise:!0};if(c+=e.duration,'undefined'!=typeof e.start)return{result:c+e.start,precise:!0}}return{result:c,precise:!1}},Hl=function Ru(a,b){for(var c=0,d=void 0,e=b-a.mediaSequence;e<a.segments.length;e++){if(d=a.segments[e],'undefined'!=typeof d.start)return{result:d.start-c,precise:!0};if(c+=d.duration,'undefined'!=typeof d.end)return{result:d.end-c,precise:!0}}return{result:-1,precise:!1}},Il=function Su(a,b,c){var d=void 0,e=void 0;return'undefined'==typeof b&&(b=a.mediaSequence+a.segments.length),b<a.mediaSequence?0:(d=Gl(a,b),d.precise?d.result:(e=Hl(a,b),e.precise?e.result:d.result+c))},Jl=function Tu(b,c,d){if(!b)return 0;if('number'!=typeof d&&(d=0),'undefined'==typeof c){if(b.totalDuration)return b.totalDuration;if(!b.endList)return a.Infinity}return Il(b,c,d)},Kl=function Uu(a,b,c){var d=0;if(b>c){var e=[c,b];b=e[0],c=e[1]}if(0>b){for(var f=b;f<Math.min(0,c);f++)d+=a.targetDuration;b=0}for(var g=b;c>g;g++)d+=a.segments[g].duration;return d},Ll=function Vu(a){if(!a.segments.length)return 0;for(var b=a.segments.length-1,c=a.segments[b].duration||a.targetDuration,d=c+2*a.targetDuration;b--&&(c+=a.segments[b].duration,!(c>=d)););return Math.max(0,b)},Ml=function Wu(a,b,c){if(!a||!a.segments)return null;if(a.endList)return Jl(a);if(null===b)return null;b=b||0;var d=c?Ll(a):a.segments.length;return Il(a,a.mediaSequence+d,b)},Nl=function Xu(a,b){var c=!0,d=b||0,e=Ml(a,b,c);return null===e?Fl():Fl(d,e)},Ol=function Yu(a){return a-Math.floor(a)===0},Pl=function Zu(a,b){if(Ol(b))return b+.1*a;for(var c=b.toString().split('.')[1].length,d=1;c>=d;d++){var e=Math.pow(10,d),f=b*e;if(Ol(f)||d===c)return(f+a)/e}},Ql=Pl.bind(null,1),Rl=Pl.bind(null,-1),Sl=function $u(a,b,c,d){var e=void 0,f=void 0,g=a.segments.length,h=b-d;if(0>h){if(c>0)for(e=c-1;e>=0;e--)if(f=a.segments[e],h+=Rl(f.duration),h>0)return{mediaIndex:e,startTime:d-Kl(a,c,e)};return{mediaIndex:0,startTime:b}}if(0>c){for(e=c;0>e;e++)if(h-=a.targetDuration,0>h)return{mediaIndex:0,startTime:b};c=0}for(e=c;g>e;e++)if(f=a.segments[e],h-=Ql(f.duration),0>h)return{mediaIndex:e,startTime:d+Kl(a,c,e)};return{mediaIndex:g-1,startTime:b}},Tl=function _u(a){return a.excludeUntil&&a.excludeUntil>Date.now()},Ul=function av(a){return a.excludeUntil&&a.excludeUntil===1/0},Vl=function bv(a){var b=Tl(a);return!a.disabled&&!b},Wl=function cv(a){return a.disabled},Xl=function dv(a){for(var b=0;b<a.segments.length;b++)if(a.segments[b].key)return!0;return!1},Yl=function ev(a){for(var b=0;b<a.segments.length;b++)if(a.segments[b].map)return!0;return!1},Zl=function fv(a,b){return b.attributes&&b.attributes[a]},$l=function gv(a,b,c){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!Zl('BANDWIDTH',c))return NaN;var e=a*c.attributes.BANDWIDTH;return(e-8*d)/b},_l=function hv(a,b){if(1===a.playlists.length)return!0;var c=b.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===a.playlists.filter(function(a){return Vl(a)?(a.attributes.BANDWIDTH||0)<c:!1}).length},am={duration:Jl,seekable:Nl,safeLiveIndex:Ll,getMediaInfoForTime:Sl,isEnabled:Vl,isDisabled:Wl,isBlacklisted:Tl,isIncompatible:Ul,playlistEnd:Ml,isAes:Xl,isFmp4:Yl,hasAttribute:Zl,estimateSegmentRequestTime:$l,isLowestEnabledRendition:_l},bm=kb.xhr,cm=kb.mergeOptions,dm=function iv(){var a=function b(a,c){a=cm({timeout:45e3},a);var d=b.beforeRequest||kb.Hls.xhr.beforeRequest;if(d&&'function'==typeof d){var e=d(a);e&&(a=e)}var f=bm(a,function(a,b){var d=f.response;!a&&d&&(f.responseTime=Date.now(),f.roundTripTime=f.responseTime-f.requestTime,f.bytesReceived=d.byteLength||d.length,f.bandwidth||(f.bandwidth=Math.floor(f.bytesReceived/f.roundTripTime*8*1e3))),b.headers&&(f.responseHeaders=b.headers),a&&'ETIMEDOUT'===a.code&&(f.timedout=!0),a||f.aborted||200===b.statusCode||206===b.statusCode||0===b.statusCode||(a=new Error('XHR Failed with a response of: '+(f&&(d||f.responseText)))),c(a,f)}),g=f.abort;return f.abort=function(){return f.aborted=!0,g.apply(f,arguments)},f.uri=a.uri,f.requestTime=Date.now(),f};return a},em=function jv(a){var b=void 0,c=void 0;return c=a.offset+a.length-1,b=a.offset,'bytes='+b+'-'+c},fm=function kv(a){var b={};return a.byterange&&(b.Range=em(a.byterange)),b},gm=function lv(a,b){return a.start(b)+'-'+a.end(b)},hm=function mv(a,b){var c=a.toString(16);return'00'.substring(0,2-c.length)+c+(b%2?' ':'')},im=function nv(a){return a>=32&&126>a?String.fromCharCode(a):'.'},jm=function ov(a){var b={};return Object.keys(a).forEach(function(c){var d=a[c];ArrayBuffer.isView(d)?b[c]={bytes:d.buffer,byteOffset:d.byteOffset,byteLength:d.byteLength}:b[c]=d}),b},km=function pv(a){var b=a.byterange||{length:1/0,offset:0};return[b.length,b.offset,a.resolvedUri].join(',')},lm=function qv(a){return a.resolvedUri},mm=function rv(a){for(var b=Array.prototype.slice.call(a),c=16,d='',e=void 0,f=void 0,g=0;g<b.length/c;g++)e=b.slice(g*c,g*c+c).map(hm).join(''),f=b.slice(g*c,g*c+c).map(im).join(''),d+=e+' '+f+'\n';return d},nm=function sv(a){var b=a.bytes;return mm(b)},om=function tv(a){var b='',c=void 0;for(c=0;c<a.length;c++)b+=gm(a,c)+' ';return b},pm=Object.freeze({createTransferableMessage:jm,initSegmentId:km,segmentKeyId:lm,hexDump:mm,tagDump:nm,textRanges:om}),qm=.25,rm=function uv(a,b){if(!b.dateTimeObject)return null;var c=b.videoTimingInfo.transmuxerPrependedSeconds,d=b.videoTimingInfo.transmuxedPresentationStart,e=d+c,f=a-e;return new Date(b.dateTimeObject.getTime()+1e3*f)},sm=function vv(a){return a.transmuxedPresentationEnd-a.transmuxedPresentationStart-a.transmuxerPrependedSeconds},tm=function wv(a,b){var c=void 0;try{c=new Date(a)}catch(d){return null}if(!b||!b.segments||0===b.segments.length)return null;var e=b.segments[0];if(c<e.dateTimeObject)return null;for(var f=0;f<b.segments.length-1;f++){e=b.segments[f];var g=b.segments[f+1].dateTimeObject;if(g>c)break}var h=b.segments[b.segments.length-1],i=h.dateTimeObject,j=h.videoTimingInfo?sm(h.videoTimingInfo):h.duration+h.duration*qm,k=new Date(i.getTime()+1e3*j);return c>k?null:(c>i&&(e=h),{segment:e,estimatedStart:e.videoTimingInfo?e.videoTimingInfo.transmuxedPresentationStart:am.duration(b,b.mediaSequence+b.segments.indexOf(e)),type:e.videoTimingInfo?'accurate':'estimate'})},um=function xv(a,b){if(!b||!b.segments||0===b.segments.length)return null;for(var c=0,d=void 0,e=0;e<b.segments.length&&(d=b.segments[e],c=d.videoTimingInfo?d.videoTimingInfo.transmuxedPresentationEnd:c+d.duration,!(c>=a));e++);var f=b.segments[b.segments.length-1];if(f.videoTimingInfo&&f.videoTimingInfo.transmuxedPresentationEnd<a)return null;if(a>c){if(a>c+f.duration*qm)return null;d=f}return{segment:d,estimatedStart:d.videoTimingInfo?d.videoTimingInfo.transmuxedPresentationStart:c-d.duration,type:d.videoTimingInfo?'accurate':'estimate'}},vm=function yv(a,b){var c=void 0,d=void 0;try{c=new Date(a),d=new Date(b)}catch(e){}var f=c.getTime(),g=d.getTime();return(g-f)/1e3},wm=function zv(a){if(!a.segments||0===a.segments.length)return!1;for(var b=0;b<a.segments.length;b++){var c=a.segments[b];if(!c.dateTimeObject)return!1}return!0},xm=function Av(a){var b=a.playlist,c=a.time,d=void 0===c?void 0:c,e=a.callback;if(!e)throw new Error('getProgramTime: callback must be provided');if(!b||void 0===d)return e({message:'getProgramTime: playlist and time must be provided'});var f=um(d,b);if(!f)return e({message:'valid programTime was not found'});if('estimate'===f.type)return e({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:f.estimatedStart});var g={mediaSeconds:d},h=rm(d,f.segment);return h&&(g.programDateTime=h.toISOString()),e(null,g)},ym=function Bv(a){var b=a.programTime,c=a.playlist,d=a.retryCount,e=void 0===d?2:d,f=a.seekTo,g=a.pauseAfterSeek,h=void 0===g?!0:g,i=a.tech,j=a.callback;if(!j)throw new Error('seekToProgramTime: callback must be provided');if('undefined'==typeof b||!c||!f)return j({message:'seekToProgramTime: programTime, seekTo and playlist must be provided'});if(!c.endList&&!i.hasStarted_)return j({message:'player must be playing a live stream to start buffering'});if(!wm(c))return j({message:'programDateTime tags must be provided in the manifest '+c.resolvedUri});var k=tm(b,c);if(!k)return j({message:b+' was not found in the stream'});var l=k.segment,m=vm(l.dateTimeObject,b);if('estimate'===k.type)return 0===e?j({message:b+' is not buffered yet. Try again'}):(f(k.estimatedStart+m),i.one('seeked',function(){Bv({programTime:b,playlist:c,retryCount:e-1,seekTo:f,pauseAfterSeek:h,tech:i,callback:j})}),void 0);var n=l.start+m,o=function p(){return j(null,i.currentTime())};i.one('seeked',o),h&&i.pause(),f(n)},zm=1/30,Am=3*zm,Bm=function Cv(a,b){var c=[],d=void 0;if(a&&a.length)for(d=0;d<a.length;d++)b(a.start(d),a.end(d))&&c.push([a.start(d),a.end(d)]);return kb.createTimeRanges(c)},Cm=function Dv(a,b){return Bm(a,function(a,c){return b>=a-Am&&c+Am>=b})},Dm=function Ev(a,b){return Bm(a,function(a){return a-zm>=b})},Em=function Fv(a){if(a.length<2)return kb.createTimeRanges();for(var b=[],c=1;c<a.length;c++){var d=a.end(c-1),e=a.start(c);b.push([d,e])}return kb.createTimeRanges(b)},Fm=function Gv(a){var b=[];if(!a||!a.length)return'';for(var c=0;c<a.length;c++)b.push(a.start(c)+' => '+a.end(c));return b.join(', ')},Gm=function Hv(a,b){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,d=a.length?a.end(a.length-1):0;return(d-b)/c},Hm=function Iv(a){for(var b=[],c=0;c<a.length;c++)b.push({start:a.start(c),end:a.end(c)});return b},Im=function Jv(a,b,c){var d=b.player_;if(c.captions&&c.captions.length){a.inbandTextTracks_||(a.inbandTextTracks_={});for(var e in c.captionStreams)if(!a.inbandTextTracks_[e]){d.tech_.trigger({type:'usage',name:'hls-608'});var f=d.textTracks().getTrackById(e);f?a.inbandTextTracks_[e]=f:a.inbandTextTracks_[e]=d.addRemoteTextTrack({kind:'captions',id:e,label:e},!1).track}}c.metadata&&c.metadata.length&&!a.metadataTrack_&&(a.metadataTrack_=d.addRemoteTextTrack({kind:'metadata',label:'Timed Metadata'},!1).track,a.metadataTrack_.inBandMetadataTrackDispatchType=c.metadata.dispatchType)},Jm=function Kv(a,b,c){var d=void 0,e=void 0;if(c&&c.cues)for(d=c.cues.length;d--;)e=c.cues[d],e.startTime<=b&&e.endTime>=a&&c.removeCue(e)},Km=function Lv(a){Object.defineProperties(a.frame,{id:{get:function b(){return kb.log.warn('cue.frame.id is deprecated. Use cue.value.key instead.'),a.value.key}},value:{get:function c(){return kb.log.warn('cue.frame.value is deprecated. Use cue.value.data instead.'),a.value.data}},privateData:{get:function d(){return kb.log.warn('cue.frame.privateData is deprecated. Use cue.value.data instead.'),a.value.data}}})},Lm=function Mv(a){var b=void 0;return b=isNaN(a)||Math.abs(a)===1/0?Number.MAX_VALUE:a,b},Mm=function Nv(b,c,d){var e=a.WebKitDataCue||a.VTTCue;if(c&&c.forEach(function(a){var b=a.stream;this.inbandTextTracks_[b].addCue(new e(a.startTime+this.timestampOffset,a.endTime+this.timestampOffset,a.text))},b),d){var f=Lm(b.mediaSource_.duration);if(d.forEach(function(b){var c=b.cueTime+this.timestampOffset;!('number'!=typeof c||a.isNaN(c)||0>c)&&1/0>c&&b.frames.forEach(function(a){var b=new e(c,c,a.value||a.url||a.data||'');b.frame=a,b.value=a,Km(b),this.metadataTrack_.addCue(b)},this)},b),b.metadataTrack_&&b.metadataTrack_.cues&&b.metadataTrack_.cues.length){for(var g=b.metadataTrack_.cues,h=[],i=0;i<g.length;i++)g[i]&&h.push(g[i]);var j=h.reduce(function(a,b){var c=a[b.startTime]||[];return c.push(b),a[b.startTime]=c,a},{}),k=Object.keys(j).sort(function(a,b){return Number(a)-Number(b)});k.forEach(function(a,b){var c=j[a],d=Number(k[b+1])||f;c.forEach(function(a){a.endTime=d})})}}},Nm='undefined'!=typeof window?window:{},Om='undefined'==typeof Symbol?'__target':Symbol(),Pm='application/javascript',Qm=Nm.BlobBuilder||Nm.WebKitBlobBuilder||Nm.MozBlobBuilder||Nm.MSBlobBuilder,Rm=Nm.URL||Nm.webkitURL||Rm&&Rm.msURL,Sm=Nm.Worker;if(Sm){var Tm,Um=tb('self.onmessage = function () {}'),Vm=new Uint8Array(1);try{Tm=new Sm(Um),Tm.postMessage(Vm,[Vm.buffer])}catch(Wm){Sm=null}finally{Rm.revokeObjectURL(Um),Tm&&Tm.terminate()}}var Xm=new sb("./transmuxer-worker.worker.js",function(a,b){var c=this,d=function(){var a=function Wb(){this.init=function(){var a={};this.on=function(b,c){a[b]||(a[b]=[]),a[b]=a[b].concat(c)},this.off=function(b,c){var d;return a[b]?(d=a[b].indexOf(c),a[b]=a[b].slice(),a[b].splice(d,1),d>-1):!1},this.trigger=function(b){var c,d,e,f;if(c=a[b],c)if(2===arguments.length)for(e=c.length,d=0;e>d;++d)c[d].call(this,arguments[1]);else{for(f=[],d=arguments.length,d=1;d<arguments.length;++d)f.push(arguments[d]);for(e=c.length,d=0;e>d;++d)c[d].apply(this,f)}},this.dispose=function(){a={}}}};a.prototype.pipe=function(a){return this.on('data',function(b){a.push(b)}),this.on('done',function(b){a.flush(b)}),this.on('partialdone',function(b){a.partialFlush(b)}),this.on('endedtimeline',function(b){a.endTimeline(b)}),this.on('reset',function(b){a.reset(b)}),a},a.prototype.push=function(a){this.trigger('data',a)},a.prototype.flush=function(a){this.trigger('done',a)},a.prototype.partialFlush=function(a){this.trigger('partialdone',a)},a.prototype.endTimeline=function(a){this.trigger('endedtimeline',a)},a.prototype.reset=function(a){this.trigger('reset',a)};var b=a,d=Math.pow(2,32)-1,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N;!function(){var a;if(A={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},'undefined'!=typeof Uint8Array){for(a in A)A.hasOwnProperty(a)&&(A[a]=[a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2),a.charCodeAt(3)]);B=new Uint8Array(['i'.charCodeAt(0),'s'.charCodeAt(0),'o'.charCodeAt(0),'m'.charCodeAt(0)]),D=new Uint8Array(['a'.charCodeAt(0),'v'.charCodeAt(0),'c'.charCodeAt(0),'1'.charCodeAt(0)]),C=new Uint8Array([0,0,0,1]),E=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),F=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),G={video:E,audio:F},J=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),I=new Uint8Array([0,0,0,0,0,0,0,0]),K=new Uint8Array([0,0,0,0,0,0,0,0]),L=K,M=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),N=K,H=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),e=function Xb(a){var b=[],c=0,d,e,f;for(d=1;d<arguments.length;d++)b.push(arguments[d]);for(d=b.length;d--;)c+=b[d].byteLength;for(e=new Uint8Array(c+8),f=new DataView(e.buffer,e.byteOffset,e.byteLength),f.setUint32(0,e.byteLength),e.set(a,4),d=0,c=8;d<b.length;d++)e.set(b[d],c),c+=b[d].byteLength;return e},f=function Yb(){return e(A.dinf,e(A.dref,J))},g=function Zb(a){return e(A.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,a.audioobjecttype<<3|a.samplingfrequencyindex>>>1,a.samplingfrequencyindex<<7|a.channelcount<<3,6,1,2]))},h=function $b(){return e(A.ftyp,B,C,B,D)},t=function _b(a){return e(A.hdlr,G[a])},i=function ac(a){return e(A.mdat,a)},s=function bc(a){var b=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,a.duration>>>24&255,a.duration>>>16&255,a.duration>>>8&255,255&a.duration,85,196,0,0]);return a.samplerate&&(b[12]=a.samplerate>>>24&255,b[13]=a.samplerate>>>16&255,b[14]=a.samplerate>>>8&255,b[15]=255&a.samplerate),e(A.mdhd,b)},r=function cc(a){return e(A.mdia,s(a),t(a.type),k(a))},j=function dc(a){return e(A.mfhd,new Uint8Array([0,0,0,0,(4278190080&a)>>24,(16711680&a)>>16,(65280&a)>>8,255&a]))},k=function ec(a){return e(A.minf,'video'===a.type?e(A.vmhd,H):e(A.smhd,I),f(),v(a))},l=function fc(a,b){for(var c=[],d=b.length;d--;)c[d]=x(b[d]);return e.apply(null,[A.moof,j(a)].concat(c))},m=function gc(a){for(var b=a.length,c=[];b--;)c[b]=p(a[b]);return e.apply(null,[A.moov,o(4294967295)].concat(c).concat(n(a)))},n=function hc(a){for(var b=a.length,c=[];b--;)c[b]=y(a[b]);return e.apply(null,[A.mvex].concat(c))},o=function ic(a){var b=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&a)>>24,(16711680&a)>>16,(65280&a)>>8,255&a,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return e(A.mvhd,b)},u=function jc(a){var b=a.samples||[],c=new Uint8Array(4+b.length),d,f;for(f=0;f<b.length;f++)d=b[f].flags,c[f+4]=d.dependsOn<<4|d.isDependedOn<<2|d.hasRedundancy;return e(A.sdtp,c)},v=function kc(a){return e(A.stbl,w(a),e(A.stts,N),e(A.stsc,L),e(A.stsz,M),e(A.stco,K))},function(){var a,b;w=function c(d){return e(A.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),'video'===d.type?a(d):b(d))},a=function d(a){var b=a.sps||[],c=a.pps||[],d=[],f=[],g,h;for(g=0;g<b.length;g++)d.push((65280&b[g].byteLength)>>>8),d.push(255&b[g].byteLength),d=d.concat(Array.prototype.slice.call(b[g]));for(g=0;g<c.length;g++)f.push((65280&c[g].byteLength)>>>8),f.push(255&c[g].byteLength),f=f.concat(Array.prototype.slice.call(c[g]));if(h=[A.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&a.width)>>8,255&a.width,(65280&a.height)>>8,255&a.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),e(A.avcC,new Uint8Array([1,a.profileIdc,a.profileCompatibility,a.levelIdc,255].concat([b.length],d,[c.length],f))),e(A.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],a.sarRatio){var i=a.sarRatio[0],j=a.sarRatio[1];h.push(e(A.pasp,new Uint8Array([(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i,(4278190080&j)>>24,(16711680&j)>>16,(65280&j)>>8,255&j])))}return e.apply(null,h)},b=function f(a){return e(A.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&a.channelcount)>>8,255&a.channelcount,(65280&a.samplesize)>>8,255&a.samplesize,0,0,0,0,(65280&a.samplerate)>>8,255&a.samplerate,0,0]),g(a))}}(),q=function lc(a){var b=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&a.id)>>24,(16711680&a.id)>>16,(65280&a.id)>>8,255&a.id,0,0,0,0,(4278190080&a.duration)>>24,(16711680&a.duration)>>16,(65280&a.duration)>>8,255&a.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&a.width)>>8,255&a.width,0,0,(65280&a.height)>>8,255&a.height,0,0]);return e(A.tkhd,b)},x=function mc(a){var b,c,f,g,h,i,j;return b=e(A.tfhd,new Uint8Array([0,0,0,58,(4278190080&a.id)>>24,(16711680&a.id)>>16,(65280&a.id)>>8,255&a.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),i=Math.floor(a.baseMediaDecodeTime/(d+1)),j=Math.floor(a.baseMediaDecodeTime%(d+1)),c=e(A.tfdt,new Uint8Array([1,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,j>>>24&255,j>>>16&255,j>>>8&255,255&j])),h=92,'audio'===a.type?(f=z(a,h),e(A.traf,b,c,f)):(g=u(a),f=z(a,g.length+h),e(A.traf,b,c,f,g))},p=function nc(a){return a.duration=a.duration||4294967295,e(A.trak,q(a),r(a))},y=function oc(a){var b=new Uint8Array([0,0,0,0,(4278190080&a.id)>>24,(16711680&a.id)>>16,(65280&a.id)>>8,255&a.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return'video'!==a.type&&(b[b.length-1]=0),e(A.trex,b)},function(){var a,b,c;c=function d(a,b){var c=0,d=0,e=0,f=0;return a.length&&(void 0!==a[0].duration&&(c=1),void 0!==a[0].size&&(d=2),void 0!==a[0].flags&&(e=4),void 0!==a[0].compositionTimeOffset&&(f=8)),[0,0,c|d|e|f,1,(4278190080&a.length)>>>24,(16711680&a.length)>>>16,(65280&a.length)>>>8,255&a.length,(4278190080&b)>>>24,(16711680&b)>>>16,(65280&b)>>>8,255&b]},b=function f(a,b){var d,f,g,h;for(f=a.samples||[],b+=20+16*f.length,d=c(f,b),h=0;h<f.length;h++)g=f[h],d=d.concat([(4278190080&g.duration)>>>24,(16711680&g.duration)>>>16,(65280&g.duration)>>>8,255&g.duration,(4278190080&g.size)>>>24,(16711680&g.size)>>>16,(65280&g.size)>>>8,255&g.size,g.flags.isLeading<<2|g.flags.dependsOn,g.flags.isDependedOn<<6|g.flags.hasRedundancy<<4|g.flags.paddingValue<<1|g.flags.isNonSyncSample,61440&g.flags.degradationPriority,15&g.flags.degradationPriority,(4278190080&g.compositionTimeOffset)>>>24,(16711680&g.compositionTimeOffset)>>>16,(65280&g.compositionTimeOffset)>>>8,255&g.compositionTimeOffset]);return e(A.trun,new Uint8Array(d))},a=function g(a,b){var d,f,g,h;for(f=a.samples||[],b+=20+8*f.length,d=c(f,b),h=0;h<f.length;h++)g=f[h],d=d.concat([(4278190080&g.duration)>>>24,(16711680&g.duration)>>>16,(65280&g.duration)>>>8,255&g.duration,(4278190080&g.size)>>>24,(16711680&g.size)>>>16,(65280&g.size)>>>8,255&g.size]);return e(A.trun,new Uint8Array(d))},z=function h(c,d){return'audio'===c.type?a(c,d):b(c,d)}}();var O={ftyp:h,mdat:i,moof:l,moov:m,initSegment:function pc(a){var b=h(),c=m(a),d;return d=new Uint8Array(b.byteLength+c.byteLength),d.set(b),d.set(c,b.byteLength),d}},P=function qc(a){var b,c,d=[],e=[];for(e.byteLength=0,e.nalCount=0,e.duration=0,d.byteLength=0,b=0;b<a.length;b++)c=a[b],'access_unit_delimiter_rbsp'===c.nalUnitType?(d.length&&(d.duration=c.dts-d.dts,
e.byteLength+=d.byteLength,e.nalCount+=d.length,e.duration+=d.duration,e.push(d)),d=[c],d.byteLength=c.data.byteLength,d.pts=c.pts,d.dts=c.dts):('slice_layer_without_partitioning_rbsp_idr'===c.nalUnitType&&(d.keyFrame=!0),d.duration=c.dts-d.dts,d.byteLength+=c.data.byteLength,d.push(c));return e.length&&(!d.duration||d.duration<=0)&&(d.duration=e[e.length-1].duration),e.byteLength+=d.byteLength,e.nalCount+=d.length,e.duration+=d.duration,e.push(d),e},Q=function rc(a){var b,c,d=[],e=[];for(d.byteLength=0,d.nalCount=0,d.duration=0,d.pts=a[0].pts,d.dts=a[0].dts,e.byteLength=0,e.nalCount=0,e.duration=0,e.pts=a[0].pts,e.dts=a[0].dts,b=0;b<a.length;b++)c=a[b],c.keyFrame?(d.length&&(e.push(d),e.byteLength+=d.byteLength,e.nalCount+=d.nalCount,e.duration+=d.duration),d=[c],d.nalCount=c.length,d.byteLength=c.byteLength,d.pts=c.pts,d.dts=c.dts,d.duration=c.duration):(d.duration+=c.duration,d.nalCount+=c.length,d.byteLength+=c.byteLength,d.push(c));return e.length&&d.duration<=0&&(d.duration=e[e.length-1].duration),e.byteLength+=d.byteLength,e.nalCount+=d.nalCount,e.duration+=d.duration,e.push(d),e},R=function sc(a){var b;return!a[0][0].keyFrame&&a.length>1&&(b=a.shift(),a.byteLength-=b.byteLength,a.nalCount-=b.nalCount,a[0][0].dts=b.dts,a[0][0].pts=b.pts,a[0][0].duration+=b.duration),a},S=function tc(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},T=function uc(a,b){var c=S();return c.dataOffset=b,c.compositionTimeOffset=a.pts-a.dts,c.duration=a.duration,c.size=4*a.length,c.size+=a.byteLength,a.keyFrame&&(c.flags.dependsOn=2,c.flags.isNonSyncSample=0),c},U=function vc(a,b){var c,d,e,f,g,h=b||0,i=[];for(c=0;c<a.length;c++)for(f=a[c],d=0;d<f.length;d++)g=f[d],e=T(g,h),h+=e.size,i.push(e);return i},V=function wc(a){var b,c,d,e,f,g,h=0,i=a.byteLength,j=a.nalCount,k=i+4*j,l=new Uint8Array(k),m=new DataView(l.buffer);for(b=0;b<a.length;b++)for(e=a[b],c=0;c<e.length;c++)for(f=e[c],d=0;d<f.length;d++)g=f[d],m.setUint32(h,g.data.byteLength),h+=4,l.set(g.data,h),h+=g.data.byteLength;return l},W=function xc(a,b){var c,d=b||0,e=[];return c=T(a,d),e.push(c),e},X=function yc(a){var b,c,d=0,e=a.byteLength,f=a.length,g=e+4*f,h=new Uint8Array(g),i=new DataView(h.buffer);for(b=0;b<a.length;b++)c=a[b],i.setUint32(d,c.data.byteLength),d+=4,h.set(c.data,d),d+=c.data.byteLength;return h},Y={groupNalsIntoFrames:P,groupFramesIntoGops:Q,extendFirstKeyFrame:R,generateSampleTable:U,concatenateNalData:V,generateSampleTableForFrame:W,concatenateNalDataForFrame:X},Z=[33,16,5,32,164,27],$=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],_=function zc(a){for(var b=[];a--;)b.push(0);return b},aa=function Ac(a){return Object.keys(a).reduce(function(b,c){return b[c]=new Uint8Array(a[c].reduce(function(a,b){return a.concat(b)},[])),b},{})},ba={96e3:[Z,[227,64],_(154),[56]],88200:[Z,[231],_(170),[56]],64e3:[Z,[248,192],_(240),[56]],48e3:[Z,[255,192],_(268),[55,148,128],_(54),[112]],44100:[Z,[255,192],_(268),[55,163,128],_(84),[112]],32e3:[Z,[255,192],_(268),[55,234],_(226),[112]],24e3:[Z,[255,192],_(268),[55,255,128],_(268),[111,112],_(126),[224]],16e3:[Z,[255,192],_(268),[55,255,128],_(268),[111,255],_(269),[223,108],_(195),[1,192]],12e3:[$,_(268),[3,127,248],_(268),[6,255,240],_(268),[13,255,224],_(268),[27,253,128],_(259),[56]],11025:[$,_(268),[3,127,248],_(268),[6,255,240],_(268),[13,255,224],_(268),[27,255,192],_(268),[55,175,128],_(108),[112]],8e3:[$,_(268),[3,121,16],_(47),[7]]},ca=aa(ba),da=9e4,ea,fa,ga,ha,ia,ja,ka;ea=function Bc(a){return a*da},fa=function Cc(a,b){return a*b},ga=function Dc(a){return a/da},ha=function Ec(a,b){return a/b},ia=function Fc(a,b){return ea(ha(a,b))},ja=function Gc(a,b){return fa(ga(a),b)},ka=function Hc(a,b,c){return ga(c?a:a-b)};var la={ONE_SECOND_IN_TS:da,secondsToVideoTs:ea,secondsToAudioTs:fa,videoTsToSeconds:ga,audioTsToSeconds:ha,audioTsToVideoTs:ia,videoTsToAudioTs:ja,metadataTsToSeconds:ka},ma=function Ic(a){var b,c,d=0;for(b=0;b<a.length;b++)c=a[b],d+=c.data.byteLength;return d},na=function Jc(a,b,c,d){var e,f=0,g=0,h=0,i=0,j,k,l;if(b.length&&(e=la.audioTsToVideoTs(a.baseMediaDecodeTime,a.samplerate),f=Math.ceil(la.ONE_SECOND_IN_TS/(a.samplerate/1024)),c&&d&&(g=e-Math.max(c,d),h=Math.floor(g/f),i=h*f),!(1>h||i>la.ONE_SECOND_IN_TS/2))){for(j=ca[a.samplerate],j||(j=b[0].data),k=0;h>k;k++)l=b[0],b.splice(0,0,{data:j,dts:l.dts-f,pts:l.pts-f});a.baseMediaDecodeTime-=Math.floor(la.videoTsToAudioTs(i,a.samplerate))}},oa=function Kc(a,b,c){return b.minSegmentDts>=c?a:(b.minSegmentDts=1/0,a.filter(function(a){return a.dts>=c?(b.minSegmentDts=Math.min(b.minSegmentDts,a.dts),b.minSegmentPts=b.minSegmentDts,!0):!1}))},pa=function Lc(a){var b,c,d=[];for(b=0;b<a.length;b++)c=a[b],d.push({size:c.data.byteLength,duration:1024});return d},qa=function Mc(a){var b,c,d=0,e=new Uint8Array(ma(a));for(b=0;b<a.length;b++)c=a[b],e.set(c.data,d),d+=c.data.byteLength;return e},ra={prefixWithSilence:na,trimAdtsFramesByEarliestDts:oa,generateSampleTable:pa,concatenateFrameData:qa},sa=la.ONE_SECOND_IN_TS,ta=function Nc(a,b){'number'==typeof b.pts&&(void 0===a.timelineStartInfo.pts&&(a.timelineStartInfo.pts=b.pts),void 0===a.minSegmentPts?a.minSegmentPts=b.pts:a.minSegmentPts=Math.min(a.minSegmentPts,b.pts),void 0===a.maxSegmentPts?a.maxSegmentPts=b.pts:a.maxSegmentPts=Math.max(a.maxSegmentPts,b.pts)),'number'==typeof b.dts&&(void 0===a.timelineStartInfo.dts&&(a.timelineStartInfo.dts=b.dts),void 0===a.minSegmentDts?a.minSegmentDts=b.dts:a.minSegmentDts=Math.min(a.minSegmentDts,b.dts),void 0===a.maxSegmentDts?a.maxSegmentDts=b.dts:a.maxSegmentDts=Math.max(a.maxSegmentDts,b.dts))},ua=function Oc(a){delete a.minSegmentDts,delete a.maxSegmentDts,delete a.minSegmentPts,delete a.maxSegmentPts},va=function Pc(a,b){var c,d,e=a.minSegmentDts;return b||(e-=a.timelineStartInfo.dts),c=a.timelineStartInfo.baseMediaDecodeTime,c+=e,c=Math.max(0,c),'audio'===a.type&&(d=a.samplerate/sa,c*=d,c=Math.floor(c)),c},wa={clearDtsInfo:ua,calculateTrackBaseMediaDecodeTime:va,collectDtsInfo:ta},xa=4,ya=128,za=function Qc(a){for(var b=0,c={payloadType:-1,payloadSize:0},d=0,e=0;b<a.byteLength&&a[b]!==ya;){for(;255===a[b];)d+=255,b++;for(d+=a[b++];255===a[b];)e+=255,b++;if(e+=a[b++],!c.payload&&d===xa){c.payloadType=d,c.payloadSize=e,c.payload=a.subarray(b,b+e);break}b+=e,d=0,e=0}return c},Aa=function Rc(a){return 181!==a.payload[0]?null:49!==(a.payload[1]<<8|a.payload[2])?null:'GA94'!==String.fromCharCode(a.payload[3],a.payload[4],a.payload[5],a.payload[6])?null:3!==a.payload[7]?null:a.payload.subarray(8,a.payload.length-1)},Ba=function Sc(a,b){var c=[],d,e,f,g;if(!(64&b[0]))return c;for(e=31&b[0],d=0;e>d;d++)f=3*d,g={type:3&b[f+2],pts:a},4&b[f+2]&&(g.ccData=b[f+3]<<8|b[f+4],c.push(g));return c},Ca=function Tc(a){for(var b=a.byteLength,c=[],d=1,e,f;b-2>d;)0===a[d]&&0===a[d+1]&&3===a[d+2]?(c.push(d+2),d+=2):d++;if(0===c.length)return a;e=b-c.length,f=new Uint8Array(e);var g=0;for(d=0;e>d;g++,d++)g===c[0]&&(g++,c.shift()),f[d]=a[g];return f},Da={parseSei:za,parseUserData:Aa,parseCaptionPackets:Ba,discardEmulationPreventionBytes:Ca,USER_DATA_REGISTERED_ITU_T_T35:xa},Ea=function Uc(){Uc.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new Ka(0,0),new Ka(0,1),new Ka(1,0),new Ka(1,1)],this.reset(),this.ccStreams_.forEach(function(a){a.on('data',this.trigger.bind(this,'data')),a.on('partialdone',this.trigger.bind(this,'partialdone')),a.on('done',this.trigger.bind(this,'done'))},this)};Ea.prototype=new b,Ea.prototype.push=function(a){var b,c,d;if('sei_rbsp'===a.nalUnitType&&(b=Da.parseSei(a.escapedRBSP),b.payloadType===Da.USER_DATA_REGISTERED_ITU_T_T35&&(c=Da.parseUserData(b),c))){if(a.dts<this.latestDts_)return this.ignoreNextEqualDts_=!0,void 0;if(a.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,this.numSameDts_||(this.ignoreNextEqualDts_=!1),void 0;d=Da.parseCaptionPackets(a.pts,c),this.captionPackets_=this.captionPackets_.concat(d),this.latestDts_!==a.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=a.dts}},Ea.prototype.flushCCStreams=function(a){this.ccStreams_.forEach(function(b){return'flush'===a?b.flush():b.partialFlush()},this)},Ea.prototype.flushStream=function(a){return this.captionPackets_.length?(this.captionPackets_.forEach(function(a,b){a.presortIndex=b}),this.captionPackets_.sort(function(a,b){return a.pts===b.pts?a.presortIndex-b.presortIndex:a.pts-b.pts}),this.captionPackets_.forEach(function(a){a.type<2&&this.dispatchCea608Packet(a)},this),this.captionPackets_.length=0,this.flushCCStreams(a),void 0):(this.flushCCStreams(a),void 0)},Ea.prototype.flush=function(){return this.flushStream('flush')},Ea.prototype.partialFlush=function(){return this.flushStream('partialFlush')},Ea.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(a){a.reset()})},Ea.prototype.dispatchCea608Packet=function(a){this.setsTextOrXDSActive(a)?this.activeCea608Channel_[a.type]=null:this.setsChannel1Active(a)?this.activeCea608Channel_[a.type]=0:this.setsChannel2Active(a)&&(this.activeCea608Channel_[a.type]=1),null!==this.activeCea608Channel_[a.type]&&this.ccStreams_[(a.type<<1)+this.activeCea608Channel_[a.type]].push(a)},Ea.prototype.setsChannel1Active=function(a){return 4096===(30720&a.ccData)},Ea.prototype.setsChannel2Active=function(a){return 6144===(30720&a.ccData)},Ea.prototype.setsTextOrXDSActive=function(a){return 256===(28928&a.ccData)||4138===(30974&a.ccData)||6186===(30974&a.ccData)};var Fa={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Ga=function Vc(a){return null===a?'':(a=Fa[a]||a,String.fromCharCode(a))},Ha=14,Ia=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Ja=function Wc(){for(var a=[],b=Ha+1;b--;)a.push('');return a},Ka=function Xc(a,b){Xc.prototype.init.call(this),this.field_=a||0,this.dataChannel_=b||0,this.name_='CC'+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(a){var b,c,d,e,f;if(b=32639&a.ccData,b===this.lastControlCode_)return this.lastControlCode_=null,void 0;if(4096===(61440&b)?this.lastControlCode_=b:b!==this.PADDING_&&(this.lastControlCode_=null),d=b>>>8,e=255&b,b!==this.PADDING_)if(b===this.RESUME_CAPTION_LOADING_)this.mode_='popOn';else if(b===this.END_OF_CAPTION_)this.mode_='popOn',this.clearFormatting(a.pts),this.flushDisplayed(a.pts),c=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=c,this.startPts_=a.pts;else if(b===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(a.pts);else if(b===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(a.pts);else if(b===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(a.pts);else if(b===this.CARRIAGE_RETURN_)this.clearFormatting(a.pts),this.flushDisplayed(a.pts),this.shiftRowsUp_(),this.startPts_=a.pts;else if(b===this.BACKSPACE_)'popOn'===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(b===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(a.pts),this.displayed_=Ja();else if(b===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Ja();else if(b===this.RESUME_DIRECT_CAPTIONING_)'paintOn'!==this.mode_&&(this.flushDisplayed(a.pts),this.displayed_=Ja()),this.mode_='paintOn',this.startPts_=a.pts;else if(this.isSpecialCharacter(d,e))d=(3&d)<<8,f=Ga(d|e),this[this.mode_](a.pts,f),this.column_++;else if(this.isExtCharacter(d,e))'popOn'===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),d=(3&d)<<8,f=Ga(d|e),this[this.mode_](a.pts,f),this.column_++;else if(this.isMidRowCode(d,e))this.clearFormatting(a.pts),this[this.mode_](a.pts,' '),this.column_++,14===(14&e)&&this.addFormatting(a.pts,['i']),1===(1&e)&&this.addFormatting(a.pts,['u']);else if(this.isOffsetControlCode(d,e))this.column_+=3&e;else if(this.isPAC(d,e)){var g=Ia.indexOf(7968&b);'rollUp'===this.mode_&&(g-this.rollUpRows_+1<0&&(g=this.rollUpRows_-1),this.setRollUp(a.pts,g)),g!==this.row_&&(this.clearFormatting(a.pts),this.row_=g),1&e&&-1===this.formatting_.indexOf('u')&&this.addFormatting(a.pts,['u']),16===(16&b)&&(this.column_=4*((14&b)>>1)),this.isColorPAC(e)&&14===(14&e)&&this.addFormatting(a.pts,['i'])}else this.isNormalChar(d)&&(0===e&&(e=null),f=Ga(d),f+=Ga(e),this[this.mode_](a.pts,f),this.column_+=f.length)}};Ka.prototype=new b,Ka.prototype.flushDisplayed=function(a){var b=this.displayed_.map(function(a){try{return a.trim()}catch(b){return console.error('Skipping malformed caption.'),''}}).join('\n').replace(/^\n+|\n+$/g,'');b.length&&this.trigger('data',{startPts:this.startPts_,endPts:a,text:b,stream:this.name_})},Ka.prototype.reset=function(){this.mode_='popOn',this.topRow_=0,this.startPts_=0,this.displayed_=Ja(),this.nonDisplayed_=Ja(),this.lastControlCode_=null,this.column_=0,this.row_=Ha,this.rollUpRows_=2,this.formatting_=[]},Ka.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Ka.prototype.isSpecialCharacter=function(a,b){return a===this.EXT_&&b>=48&&63>=b},Ka.prototype.isExtCharacter=function(a,b){return(a===this.EXT_+1||a===this.EXT_+2)&&b>=32&&63>=b},Ka.prototype.isMidRowCode=function(a,b){return a===this.EXT_&&b>=32&&47>=b},Ka.prototype.isOffsetControlCode=function(a,b){return a===this.OFFSET_&&b>=33&&35>=b},Ka.prototype.isPAC=function(a,b){return a>=this.BASE_&&a<this.BASE_+8&&b>=64&&127>=b},Ka.prototype.isColorPAC=function(a){return a>=64&&79>=a||a>=96&&127>=a},Ka.prototype.isNormalChar=function(a){return a>=32&&127>=a},Ka.prototype.setRollUp=function(a,b){if('rollUp'!==this.mode_&&(this.row_=Ha,this.mode_='rollUp',this.flushDisplayed(a),this.nonDisplayed_=Ja(),this.displayed_=Ja()),void 0!==b&&b!==this.row_)for(var c=0;c<this.rollUpRows_;c++)this.displayed_[b-c]=this.displayed_[this.row_-c],this.displayed_[this.row_-c]='';void 0===b&&(b=this.row_),this.topRow_=b-this.rollUpRows_+1},Ka.prototype.addFormatting=function(a,b){this.formatting_=this.formatting_.concat(b);var c=b.reduce(function(a,b){return a+'<'+b+'>'},'');this[this.mode_](a,c)},Ka.prototype.clearFormatting=function(a){if(this.formatting_.length){var b=this.formatting_.reverse().reduce(function(a,b){return a+'</'+b+'>'},'');this.formatting_=[],this[this.mode_](a,b)}},Ka.prototype.popOn=function(a,b){var c=this.nonDisplayed_[this.row_];c+=b,this.nonDisplayed_[this.row_]=c},Ka.prototype.rollUp=function(a,b){var c=this.displayed_[this.row_];c+=b,this.displayed_[this.row_]=c},Ka.prototype.shiftRowsUp_=function(){var a;for(a=0;a<this.topRow_;a++)this.displayed_[a]='';for(a=this.row_+1;Ha+1>a;a++)this.displayed_[a]='';for(a=this.topRow_;a<this.row_;a++)this.displayed_[a]=this.displayed_[a+1];this.displayed_[this.row_]=''},Ka.prototype.paintOn=function(a,b){var c=this.displayed_[this.row_];c+=b,this.displayed_[this.row_]=c};var La={CaptionStream:Ea,Cea608Stream:Ka},Ma={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Na=8589934592,Oa=4294967296,Pa='shared',Qa=function Yc(a,b){var c=1;for(a>b&&(c=-1);Math.abs(b-a)>Oa;)a+=c*Na;return a},Ra=function Zc(a){var b,c;Zc.prototype.init.call(this),this.type_=a||Pa,this.push=function(a){this.type_!==Pa&&a.type!==this.type_||(void 0===c&&(c=a.dts),a.dts=Qa(a.dts,c),a.pts=Qa(a.pts,c),b=a.dts,this.trigger('data',a))},this.flush=function(){c=b,this.trigger('done')},this.endTimeline=function(){this.flush(),this.trigger('endedtimeline')},this.discontinuity=function(){c=void 0,b=void 0},this.reset=function(){this.discontinuity(),this.trigger('reset')}};Ra.prototype=new b;var Sa={TimestampRolloverStream:Ra,handleRollover:Qa},Ta=function $c(a,b,c){var d,e='';for(d=b;c>d;d++)e+='%'+('00'+a[d].toString(16)).slice(-2);return e},Ua=function _c(a,b,c){return decodeURIComponent(Ta(a,b,c))},Va=function ad(a,b,c){return unescape(Ta(a,b,c))},Wa=function bd(a){return a[0]<<21|a[1]<<14|a[2]<<7|a[3]},Xa={TXXX:function cd(a){var b;if(3===a.data[0]){for(b=1;b<a.data.length;b++)if(0===a.data[b]){a.description=Ua(a.data,1,b),a.value=Ua(a.data,b+1,a.data.length).replace(/\0*$/,'');break}a.data=a.value}},WXXX:function dd(a){var b;if(3===a.data[0])for(b=1;b<a.data.length;b++)if(0===a.data[b]){a.description=Ua(a.data,1,b),a.url=Ua(a.data,b+1,a.data.length);break}},PRIV:function ed(a){var b;for(b=0;b<a.data.length;b++)if(0===a.data[b]){a.owner=Va(a.data,0,b);break}a.privateData=a.data.subarray(b+1),a.data=a.privateData}},Ya;Ya=function fd(a){var b={debug:!(!a||!a.debug),descriptor:a&&a.descriptor},c=0,d=[],e=0,f;if(Ya.prototype.init.call(this),this.dispatchType=Ma.METADATA_STREAM_TYPE.toString(16),b.descriptor)for(f=0;f<b.descriptor.length;f++)this.dispatchType+=('00'+b.descriptor[f].toString(16)).slice(-2);this.push=function(a){var f,g,h,i,j,k;if('timed-metadata'===a.type){if(a.dataAlignmentIndicator&&(e=0,d.length=0),0===d.length&&(a.data.length<10||a.data[0]!=='I'.charCodeAt(0)||a.data[1]!=='D'.charCodeAt(0)||a.data[2]!=='3'.charCodeAt(0)))return b.debug&&console.log('Skipping unrecognized metadata packet'),void 0;if(d.push(a),e+=a.data.byteLength,1===d.length&&(c=Wa(a.data.subarray(6,10)),c+=10),!(c>e)){for(f={data:new Uint8Array(c),frames:[],pts:d[0].pts,dts:d[0].dts},j=0;c>j;)f.data.set(d[0].data.subarray(0,c-j),j),j+=d[0].data.byteLength,e-=d[0].data.byteLength,d.shift();g=10,64&f.data[5]&&(g+=4,g+=Wa(f.data.subarray(10,14)),c-=Wa(f.data.subarray(16,20)));do{if(h=Wa(f.data.subarray(g+4,g+8)),1>h)return console.log('Malformed ID3 frame encountered. Skipping metadata parsing.');if(k=String.fromCharCode(f.data[g],f.data[g+1],f.data[g+2],f.data[g+3]),i={id:k,data:f.data.subarray(g+10,g+h+10)},i.key=i.id,Xa[i.id]&&(Xa[i.id](i),'com.apple.streaming.transportStreamTimestamp'===i.owner)){var l=i.data,m=(1&l[3])<<30|l[4]<<22|l[5]<<14|l[6]<<6|l[7]>>>2;m*=4,m+=3&l[7],i.timeStamp=m,void 0===f.pts&&void 0===f.dts&&(f.pts=i.timeStamp,f.dts=i.timeStamp),this.trigger('timestamp',i)}f.frames.push(i),g+=10,g+=h}while(c>g);this.trigger('data',f)}}}},Ya.prototype=new b;var Za=Ya,$a=Sa.TimestampRolloverStream,_a,ab,bb,cb=188,db=71;_a=function gd(){var a=new Uint8Array(cb),b=0;_a.prototype.init.call(this),this.push=function(c){var d=0,e=cb,f;for(b?(f=new Uint8Array(c.byteLength+b),f.set(a.subarray(0,b)),f.set(c,b),b=0):f=c;e<f.byteLength;)f[d]!==db||f[e]!==db?(d++,e++):(this.trigger('data',f.subarray(d,e)),d+=cb,e+=cb);d<f.byteLength&&(a.set(f.subarray(d),0),b=f.byteLength-d)},this.flush=function(){b===cb&&a[0]===db&&(this.trigger('data',a),b=0),this.trigger('done')},this.endTimeline=function(){this.flush(),this.trigger('endedtimeline')},this.reset=function(){b=0,this.trigger('reset')}},_a.prototype=new b,ab=function hd(){var a,b,c,d;ab.prototype.init.call(this),d=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,a=function e(a,d){var e=0;d.payloadUnitStartIndicator&&(e+=a[e]+1),'pat'===d.type?b(a.subarray(e),d):c(a.subarray(e),d)},b=function f(a,b){b.section_number=a[7],b.last_section_number=a[8],d.pmtPid=(31&a[10])<<8|a[11],b.pmtPid=d.pmtPid},c=function g(a,b){var c,e,f,g;if(1&a[5]){for(d.programMapTable={video:null,audio:null,'timed-metadata':{}},c=(15&a[1])<<8|a[2],e=3+c-4,f=(15&a[10])<<8|a[11],g=12+f;e>g;){var h=a[g],i=(31&a[g+1])<<8|a[g+2];h===Ma.H264_STREAM_TYPE&&null===d.programMapTable.video?d.programMapTable.video=i:h===Ma.ADTS_STREAM_TYPE&&null===d.programMapTable.audio?d.programMapTable.audio=i:h===Ma.METADATA_STREAM_TYPE&&(d.programMapTable['timed-metadata'][i]=h),g+=((15&a[g+3])<<8|a[g+4])+5}b.programMapTable=d.programMapTable}},this.push=function(b){var c={},d=4;if(c.payloadUnitStartIndicator=!!(64&b[1]),c.pid=31&b[1],c.pid<<=8,c.pid|=b[2],(48&b[3])>>>4>1&&(d+=b[d]+1),0===c.pid)c.type='pat',a(b.subarray(d),c),this.trigger('data',c);else if(c.pid===this.pmtPid)for(c.type='pmt',a(b.subarray(d),c),this.trigger('data',c);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([b,d,c]):this.processPes_(b,d,c)},this.processPes_=function(a,b,c){c.pid===this.programMapTable.video?c.streamType=Ma.H264_STREAM_TYPE:c.pid===this.programMapTable.audio?c.streamType=Ma.ADTS_STREAM_TYPE:c.streamType=this.programMapTable['timed-metadata'][c.pid],c.type='pes',c.data=a.subarray(b),this.trigger('data',c)}},ab.prototype=new b,ab.STREAM_TYPES={h264:27,adts:15},bb=function id(){var a=this,b={data:[],size:0},c={data:[],size:0},d={data:[],size:0},e,f=function h(a,b){var c;b.packetLength=6+(a[4]<<8|a[5]),b.dataAlignmentIndicator=0!==(4&a[6]),c=a[7],192&c&&(b.pts=(14&a[9])<<27|(255&a[10])<<20|(254&a[11])<<12|(255&a[12])<<5|(254&a[13])>>>3,b.pts*=4,b.pts+=(6&a[13])>>>1,b.dts=b.pts,64&c&&(b.dts=(14&a[14])<<27|(255&a[15])<<20|(254&a[16])<<12|(255&a[17])<<5|(254&a[18])>>>3,b.dts*=4,b.dts+=(6&a[18])>>>1)),b.data=a.subarray(9+a[8])},g=function i(b,c,d){var e=new Uint8Array(b.size),g={type:c},h=0,i=0,j=!1,k;if(b.data.length&&!(b.size<9)){for(g.trackId=b.data[0].pid,h=0;h<b.data.length;h++)k=b.data[h],e.set(k.data,i),i+=k.data.byteLength;f(e,g),j='video'===c||g.packetLength<=b.size,(d||j)&&(b.size=0,b.data.length=0),j&&a.trigger('data',g)}};bb.prototype.init.call(this),this.push=function(f){({pat:function h(){},pes:function i(){var a,e;switch(f.streamType){case Ma.H264_STREAM_TYPE:case Ma.H264_STREAM_TYPE:a=b,e='video';break;case Ma.ADTS_STREAM_TYPE:a=c,e='audio';break;case Ma.METADATA_STREAM_TYPE:a=d,e='timed-metadata';break;default:return}f.payloadUnitStartIndicator&&g(a,e,!0),a.data.push(f),a.size+=f.data.byteLength},pmt:function j(){var b={type:'metadata',tracks:[]};e=f.programMapTable,null!==e.video&&b.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:'avc',type:'video'}),null!==e.audio&&b.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:'adts',type:'audio'}),a.trigger('data',b)}})[f.type]()},this.reset=function(){b.size=0,b.data.length=0,c.size=0,c.data.length=0,this.trigger('reset')},this.flushStreams_=function(){g(b,'video'),g(c,'audio'),g(d,'timed-metadata')},this.flush=function(){this.flushStreams_(),this.trigger('done')}},bb.prototype=new b;var eb={PAT_PID:0,MP2T_PACKET_LENGTH:cb,TransportPacketStream:_a,TransportParseStream:ab,ElementaryStream:bb,TimestampRolloverStream:$a,CaptionStream:La.CaptionStream,Cea608Stream:La.Cea608Stream,MetadataStream:Za};for(var fb in Ma)Ma.hasOwnProperty(fb)&&(eb[fb]=Ma[fb]);var gb=eb,hb=la.ONE_SECOND_IN_TS,ib,jb=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];ib=function jd(a){var b,c=0;ib.prototype.init.call(this),this.push=function(d){var e=0,f,g,h,i,j,k;if(a||(c=0),'audio'===d.type)for(b?(i=b,b=new Uint8Array(i.byteLength+d.data.byteLength),b.set(i),b.set(d.data,i.byteLength)):b=d.data;e+5<b.length;)if(255===b[e]&&240===(246&b[e+1])){if(g=2*(1&~b[e+1]),f=(3&b[e+3])<<11|b[e+4]<<3|(224&b[e+5])>>5,j=1024*((3&b[e+6])+1),k=j*hb/jb[(60&b[e+2])>>>2],h=e+f,b.byteLength<h)return;if(this.trigger('data',{pts:d.pts+c*k,dts:d.dts+c*k,sampleCount:j,audioobjecttype:(b[e+2]>>>6&3)+1,channelcount:(1&b[e+2])<<2|(192&b[e+3])>>>6,samplerate:jb[(60&b[e+2])>>>2],samplingfrequencyindex:(60&b[e+2])>>>2,samplesize:16,data:b.subarray(e+7+g,h)}),c++,b.byteLength===h)return b=void 0,void 0;b=b.subarray(h)}else e++},this.flush=function(){c=0,this.trigger('done')},this.reset=function(){b=void 0,this.trigger('reset')},this.endTimeline=function(){b=void 0,this.trigger('endedtimeline')}},ib.prototype=new b;var kb=ib,lb;lb=function kd(a){var b=a.byteLength,c=0,d=0;this.length=function(){return 8*b},this.bitsAvailable=function(){return 8*b+d},this.loadWord=function(){var e=a.byteLength-b,f=new Uint8Array(4),g=Math.min(4,b);if(0===g)throw new Error('no bytes available');f.set(a.subarray(e,e+g)),c=new DataView(f.buffer).getUint32(0),d=8*g,b-=g},this.skipBits=function(a){var e;d>a?(c<<=a,d-=a):(a-=d,e=Math.floor(a/8),a-=8*e,b-=e,this.loadWord(),c<<=a,d-=a)},this.readBits=function(a){var e=Math.min(d,a),f=c>>>32-e;return d-=e,d>0?c<<=e:b>0&&this.loadWord(),e=a-e,e>0?f<<e|this.readBits(e):f},this.skipLeadingZeros=function(){var a;for(a=0;d>a;++a)if(0!==(c&2147483648>>>a))return c<<=a,d-=a,a;return this.loadWord(),a+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var a=this.skipLeadingZeros();return this.readBits(a+1)-1},this.readExpGolomb=function(){var a=this.readUnsignedExpGolomb();return 1&a?1+a>>>1:-1*(a>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var mb=lb,nb,ob,pb;ob=function ld(){var a=0,b,c;ob.prototype.init.call(this),this.push=function(d){var e;c?(e=new Uint8Array(c.byteLength+d.data.byteLength),e.set(c),e.set(d.data,c.byteLength),c=e):c=d.data;for(var f=c.byteLength;f-3>a;a++)if(1===c[a+2]){b=a+5;break}for(;f>b;)switch(c[b]){case 0:if(0!==c[b-1]){b+=2;break}if(0!==c[b-2]){b++;break}a+3!==b-2&&this.trigger('data',c.subarray(a+3,b-2));do b++;while(1!==c[b]&&f>b);a=b-2,b+=3;break;case 1:if(0!==c[b-1]||0!==c[b-2]){b+=3;break}this.trigger('data',c.subarray(a+3,b-2)),a=b-2,b+=3;break;default:b+=3}c=c.subarray(a),b-=a,a=0},this.reset=function(){c=null,a=0,this.trigger('reset')},this.flush=function(){c&&c.byteLength>3&&this.trigger('data',c.subarray(a+3)),c=null,a=0,this.trigger('done')},this.endTimeline=function(){this.flush(),this.trigger('endedtimeline')}},ob.prototype=new b,pb={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},nb=function md(){var a=new ob,b,c,d,e,f,g,h;nb.prototype.init.call(this),b=this,this.push=function(b){'video'===b.type&&(c=b.trackId,d=b.pts,e=b.dts,a.push(b))},a.on('data',function(a){var h={trackId:c,pts:d,dts:e,data:a};switch(31&a[0]){case 5:h.nalUnitType='slice_layer_without_partitioning_rbsp_idr';break;case 6:h.nalUnitType='sei_rbsp',h.escapedRBSP=f(a.subarray(1));break;case 7:h.nalUnitType='seq_parameter_set_rbsp',h.escapedRBSP=f(a.subarray(1)),h.config=g(h.escapedRBSP);break;case 8:h.nalUnitType='pic_parameter_set_rbsp';break;case 9:h.nalUnitType='access_unit_delimiter_rbsp'}b.trigger('data',h)}),a.on('done',function(){b.trigger('done')}),a.on('partialdone',function(){b.trigger('partialdone')}),a.on('reset',function(){b.trigger('reset')}),a.on('endedtimeline',function(){b.trigger('endedtimeline')}),this.flush=function(){a.flush()},this.partialFlush=function(){a.partialFlush()},this.reset=function(){a.reset()},this.endTimeline=function(){a.endTimeline()},h=function i(a,b){var c=8,d=8,e,f;for(e=0;a>e;e++)0!==d&&(f=b.readExpGolomb(),d=(c+f+256)%256),c=0===d?c:d},f=function j(a){for(var b=a.byteLength,c=[],d=1,e,f;b-2>d;)0===a[d]&&0===a[d+1]&&3===a[d+2]?(c.push(d+2),d+=2):d++;if(0===c.length)return a;e=b-c.length,f=new Uint8Array(e);var g=0;for(d=0;e>d;g++,d++)g===c[0]&&(g++,c.shift()),f[d]=a[g];return f},g=function k(a){var b=0,c=0,d=0,e=0,f=1,g,i,j,k,l,m,n,o,p,q,r,s,t,u;if(g=new mb(a),i=g.readUnsignedByte(),k=g.readUnsignedByte(),j=g.readUnsignedByte(),g.skipUnsignedExpGolomb(),pb[i]&&(l=g.readUnsignedExpGolomb(),3===l&&g.skipBits(1),g.skipUnsignedExpGolomb(),g.skipUnsignedExpGolomb(),g.skipBits(1),g.readBoolean()))for(r=3!==l?8:12,u=0;r>u;u++)g.readBoolean()&&(6>u?h(16,g):h(64,g));if(g.skipUnsignedExpGolomb(),m=g.readUnsignedExpGolomb(),0===m)g.readUnsignedExpGolomb();else if(1===m)for(g.skipBits(1),g.skipExpGolomb(),g.skipExpGolomb(),n=g.readUnsignedExpGolomb(),u=0;n>u;u++)g.skipExpGolomb();if(g.skipUnsignedExpGolomb(),g.skipBits(1),o=g.readUnsignedExpGolomb(),p=g.readUnsignedExpGolomb(),q=g.readBits(1),0===q&&g.skipBits(1),g.skipBits(1),g.readBoolean()&&(b=g.readUnsignedExpGolomb(),c=g.readUnsignedExpGolomb(),d=g.readUnsignedExpGolomb(),e=g.readUnsignedExpGolomb()),g.readBoolean()&&g.readBoolean()){switch(t=g.readUnsignedByte(),t){case 1:s=[1,1];break;case 2:s=[12,11];break;case 3:s=[10,11];break;case 4:s=[16,11];break;case 5:s=[40,33];break;case 6:s=[24,11];break;case 7:s=[20,11];break;case 8:s=[32,11];break;case 9:s=[80,33];break;case 10:s=[18,11];break;case 11:s=[15,11];break;case 12:s=[64,33];break;case 13:s=[160,99];break;case 14:s=[4,3];break;case 15:s=[3,2];break;case 16:s=[2,1];break;case 255:s=[g.readUnsignedByte()<<8|g.readUnsignedByte(),g.readUnsignedByte()<<8|g.readUnsignedByte()]}s&&(f=s[0]/s[1])}return{profileIdc:i,levelIdc:j,profileCompatibility:k,width:Math.ceil((16*(o+1)-2*b-2*c)*f),height:(2-q)*(p+1)*16-2*d-2*e,sarRatio:s}}},nb.prototype=new b;var qb={H264Stream:nb,NalByteStream:ob},rb=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],sb=function nd(a){return a[0]==='I'.charCodeAt(0)&&a[1]==='D'.charCodeAt(0)&&a[2]==='3'.charCodeAt(0)},tb=function od(a){return a[0]<<21|a[1]<<14|a[2]<<7|a[3]},ub=function pd(a,b,c){var d,e='';for(d=b;c>d;d++)e+='%'+('00'+a[d].toString(16)).slice(-2);return e},vb=function qd(a,b,c){return unescape(ub(a,b,c))},wb=function rd(a,b){var c=a[b+6]<<21|a[b+7]<<14|a[b+8]<<7|a[b+9],d=a[b+5],e=(16&d)>>4;return e?c+20:c+10},xb=function sd(a,b){var c=(224&a[b+5])>>5,d=a[b+4]<<3,e=6144&a[b+3];return e|d|c},yb=function td(a,b){return a[b]==='I'.charCodeAt(0)&&a[b+1]==='D'.charCodeAt(0)&&a[b+2]==='3'.charCodeAt(0)?'timed-metadata':a[b]&!0&&240===(240&a[b+1])?'audio':null},zb=function ud(a){for(var b=0;b+5<a.length;){if(255===a[b]&&240===(246&a[b+1]))return rb[(60&a[b+2])>>>2];b++}return null},Ab=function vd(a){var b,c,d,e;b=10,64&a[5]&&(b+=4,b+=tb(a.subarray(10,14)));do{if(c=tb(a.subarray(b+4,b+8)),1>c)return null;if(e=String.fromCharCode(a[b],a[b+1],a[b+2],a[b+3]),'PRIV'===e){d=a.subarray(b+10,b+c+10);for(var f=0;f<d.byteLength;f++)if(0===d[f]){var g=vb(d,0,f);if('com.apple.streaming.transportStreamTimestamp'===g){var h=d.subarray(f+1),i=(1&h[3])<<30|h[4]<<22|h[5]<<14|h[6]<<6|h[7]>>>2;return i*=4,i+=3&h[7],i}break}}b+=10,b+=c}while(b<a.byteLength);return null},Bb={isLikelyAacData:sb,parseId3TagSize:wb,parseAdtsSize:xb,parseType:yb,parseSampleRate:zb,parseAacTimestamp:Ab},Cb;Cb=function wd(){var a=new Uint8Array,b=0;Cb.prototype.init.call(this),this.setTimestamp=function(a){b=a},this.push=function(c){var d=0,e=0,f,g,h,i;for(a.length?(i=a.length,a=new Uint8Array(c.byteLength+i),a.set(a.subarray(0,i)),a.set(c,i)):a=c;a.length-e>=3;)if(a[e]!=='I'.charCodeAt(0)||a[e+1]!=='D'.charCodeAt(0)||a[e+2]!=='3'.charCodeAt(0))if(255!==(255&a[e])||240!==(240&a[e+1]))e++;else{if(a.length-e<7)break;if(d=Bb.parseAdtsSize(a,e),e+d>a.length)break;h={type:'audio',data:a.subarray(e,e+d),pts:b,dts:b},this.trigger('data',h),e+=d}else{if(a.length-e<10)break;if(d=Bb.parseId3TagSize(a,e),e+d>a.length)break;g={type:'timed-metadata',data:a.subarray(e,e+d)},this.trigger('data',g),e+=d}f=a.length-e,a=f>0?a.subarray(e):new Uint8Array;
},this.reset=function(){a=new Uint8Array,this.trigger('reset')},this.endTimeline=function(){a=new Uint8Array,this.trigger('endedtimeline')}},Cb.prototype=new b;var Db=Cb,Eb=qb.H264Stream,Fb=Bb.isLikelyAacData,Gb=la.ONE_SECOND_IN_TS,Hb=['audioobjecttype','channelcount','samplerate','samplingfrequencyindex','samplesize'],Ib=['width','height','profileIdc','levelIdc','profileCompatibility','sarRatio'],Jb,Kb,Lb,Mb,Nb=function xd(a,b){var c;if(a.length!==b.length)return!1;for(c=0;c<a.length;c++)if(a[c]!==b[c])return!1;return!0},Ob=function yd(a,b,c,d,e,f){var g=c-b,h=d-b,i=e-c;return{start:{dts:a,pts:a+g},end:{dts:a+h,pts:a+i},prependedContentDuration:f,baseMediaDecodeTime:a}};Kb=function zd(a,b){var c=[],d=0,e=0,f=0,g=1/0;b=b||{},Kb.prototype.init.call(this),this.push=function(b){wa.collectDtsInfo(a,b),a&&Hb.forEach(function(c){a[c]=b[c]}),c.push(b)},this.setEarliestDts=function(b){e=b-a.timelineStartInfo.baseMediaDecodeTime},this.setVideoBaseMediaDecodeTime=function(a){g=a},this.setAudioAppendStart=function(a){f=a},this.flush=function(){var h,i,j,k,l;return 0===c.length?(this.trigger('done','AudioSegmentStream'),void 0):(h=ra.trimAdtsFramesByEarliestDts(c,a,e),a.baseMediaDecodeTime=wa.calculateTrackBaseMediaDecodeTime(a,b.keepOriginalTimestamps),ra.prefixWithSilence(a,h,f,g),a.samples=ra.generateSampleTable(h),j=O.mdat(ra.concatenateFrameData(h)),c=[],i=O.moof(d,[a]),k=new Uint8Array(i.byteLength+j.byteLength),d++,k.set(i),k.set(j,i.byteLength),wa.clearDtsInfo(a),l=Math.ceil(1024*Gb/a.samplerate),h.length&&this.trigger('timingInfo',{start:h[0].dts,end:h[0].dts+h.length*l}),this.trigger('data',{track:a,boxes:k}),this.trigger('done','AudioSegmentStream'),void 0)},this.reset=function(){wa.clearDtsInfo(a),c=[],this.trigger('reset')}},Kb.prototype=new b,Jb=function Ad(a,b){var c=0,d=[],e=[],f,g;b=b||{},Jb.prototype.init.call(this),delete a.minPTS,this.gopCache_=[],this.push=function(b){wa.collectDtsInfo(a,b),'seq_parameter_set_rbsp'!==b.nalUnitType||f||(f=b.config,a.sps=[b.data],Ib.forEach(function(b){a[b]=f[b]},this)),'pic_parameter_set_rbsp'!==b.nalUnitType||g||(g=b.data,a.pps=[b.data]),d.push(b)},this.flush=function(){for(var f,g,h,i,j,k,l=0,m,n;d.length&&'access_unit_delimiter_rbsp'!==d[0].nalUnitType;)d.shift();if(0===d.length)return this.resetStream_(),this.trigger('done','VideoSegmentStream'),void 0;if(f=Y.groupNalsIntoFrames(d),h=Y.groupFramesIntoGops(f),h[0][0].keyFrame||(g=this.getGopForFusion_(d[0],a),g?(l=g.duration,h.unshift(g),h.byteLength+=g.byteLength,h.nalCount+=g.nalCount,h.pts=g.pts,h.dts=g.dts,h.duration+=g.duration):h=Y.extendFirstKeyFrame(h)),e.length){var o;if(o=b.alignGopsAtEnd?this.alignGopsAtEnd_(h):this.alignGopsAtStart_(h),!o)return this.gopCache_.unshift({gop:h.pop(),pps:a.pps,sps:a.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),d=[],this.resetStream_(),this.trigger('done','VideoSegmentStream'),void 0;wa.clearDtsInfo(a),h=o}wa.collectDtsInfo(a,h),a.samples=Y.generateSampleTable(h),j=O.mdat(Y.concatenateNalData(h)),a.baseMediaDecodeTime=wa.calculateTrackBaseMediaDecodeTime(a,b.keepOriginalTimestamps),this.trigger('processedGopsInfo',h.map(function(a){return{pts:a.pts,dts:a.dts,byteLength:a.byteLength}})),m=h[0],n=h[h.length-1],this.trigger('segmentTimingInfo',Ob(a.baseMediaDecodeTime,m.dts,m.pts,n.dts+n.duration,n.pts+n.duration,l)),this.trigger('timingInfo',{start:h[0].dts,end:h[h.length-1].dts+h[h.length-1].duration}),this.gopCache_.unshift({gop:h.pop(),pps:a.pps,sps:a.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),d=[],this.trigger('baseMediaDecodeTime',a.baseMediaDecodeTime),this.trigger('timelineStartInfo',a.timelineStartInfo),i=O.moof(c,[a]),k=new Uint8Array(i.byteLength+j.byteLength),c++,k.set(i),k.set(j,i.byteLength),this.trigger('data',{track:a,boxes:k}),this.resetStream_(),this.trigger('done','VideoSegmentStream')},this.reset=function(){this.resetStream_(),d=[],this.gopCache_.length=0,e.length=0,this.trigger('reset')},this.resetStream_=function(){wa.clearDtsInfo(a),f=void 0,g=void 0},this.getGopForFusion_=function(b){var c=45e3,d=1e4,e=1/0,f,g,h,i,j;for(j=0;j<this.gopCache_.length;j++)i=this.gopCache_[j],h=i.gop,a.pps&&Nb(a.pps[0],i.pps[0])&&a.sps&&Nb(a.sps[0],i.sps[0])&&(h.dts<a.timelineStartInfo.dts||(f=b.dts-h.dts-h.duration,f>=-d&&c>=f&&(!g||e>f)&&(g=i,e=f)));return g?g.gop:null},this.alignGopsAtStart_=function(a){var b,c,d,f,g,h,i,j;for(g=a.byteLength,h=a.nalCount,i=a.duration,b=c=0;b<e.length&&c<a.length&&(d=e[b],f=a[c],d.pts!==f.pts);)f.pts>d.pts?b++:(c++,g-=f.byteLength,h-=f.nalCount,i-=f.duration);return 0===c?a:c===a.length?null:(j=a.slice(c),j.byteLength=g,j.duration=i,j.nalCount=h,j.pts=j[0].pts,j.dts=j[0].dts,j)},this.alignGopsAtEnd_=function(a){var b,c,d,f,g,h;for(b=e.length-1,c=a.length-1,g=null,h=!1;b>=0&&c>=0;){if(d=e[b],f=a[c],d.pts===f.pts){h=!0;break}d.pts>f.pts?b--:(b===e.length-1&&(g=c),c--)}if(!h&&null===g)return null;var i;if(i=h?c:g,0===i)return a;var j=a.slice(i),k=j.reduce(function(a,b){return a.byteLength+=b.byteLength,a.duration+=b.duration,a.nalCount+=b.nalCount,a},{byteLength:0,duration:0,nalCount:0});return j.byteLength=k.byteLength,j.duration=k.duration,j.nalCount=k.nalCount,j.pts=j[0].pts,j.dts=j[0].dts,j},this.alignGopsWith=function(a){e=a}},Jb.prototype=new b,Mb=function Bd(a,b){this.numberOfTracks=0,this.metadataStream=b,a=a||{},'undefined'!=typeof a.remux?this.remuxTracks=!!a.remux:this.remuxTracks=!0,'boolean'==typeof a.keepOriginalTimestamps?this.keepOriginalTimestamps=a.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Mb.prototype.init.call(this),this.push=function(a){return a.text?this.pendingCaptions.push(a):a.frames?this.pendingMetadata.push(a):(this.pendingTracks.push(a.track),this.pendingBytes+=a.boxes.byteLength,'video'===a.track.type&&(this.videoTrack=a.track,this.pendingBoxes.push(a.boxes)),'audio'===a.track.type&&(this.audioTrack=a.track,this.pendingBoxes.unshift(a.boxes)),void 0)}},Mb.prototype=new b,Mb.prototype.flush=function(a){var b=0,c={captions:[],captionStreams:{},metadata:[],info:{}},d,e,f,g=0,h;if(this.pendingTracks.length<this.numberOfTracks){if('VideoSegmentStream'!==a&&'AudioSegmentStream'!==a)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,this.emittedTracks>=this.numberOfTracks&&(this.trigger('done'),this.emittedTracks=0),void 0}if(this.videoTrack?(g=this.videoTrack.timelineStartInfo.pts,Ib.forEach(function(a){c.info[a]=this.videoTrack[a]},this)):this.audioTrack&&(g=this.audioTrack.timelineStartInfo.pts,Hb.forEach(function(a){c.info[a]=this.audioTrack[a]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?c.type=this.pendingTracks[0].type:c.type='combined',this.emittedTracks+=this.pendingTracks.length,f=O.initSegment(this.pendingTracks),c.initSegment=new Uint8Array(f.byteLength),c.initSegment.set(f),c.data=new Uint8Array(this.pendingBytes),h=0;h<this.pendingBoxes.length;h++)c.data.set(this.pendingBoxes[h],b),b+=this.pendingBoxes[h].byteLength;for(h=0;h<this.pendingCaptions.length;h++)d=this.pendingCaptions[h],d.startTime=la.metadataTsToSeconds(d.startPts,g,this.keepOriginalTimestamps),d.endTime=la.metadataTsToSeconds(d.endPts,g,this.keepOriginalTimestamps),c.captionStreams[d.stream]=!0,c.captions.push(d);for(h=0;h<this.pendingMetadata.length;h++)e=this.pendingMetadata[h],e.cueTime=la.metadataTsToSeconds(e.pts,g,this.keepOriginalTimestamps),c.metadata.push(e);for(c.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger('data',c),h=0;h<c.captions.length;h++)d=c.captions[h],this.trigger('caption',d);for(h=0;h<c.metadata.length;h++)e=c.metadata[h],this.trigger('id3Frame',e)}this.emittedTracks>=this.numberOfTracks&&(this.trigger('done'),this.emittedTracks=0)},Mb.prototype.setRemux=function(a){this.remuxTracks=a},Lb=function Cd(a){var b=this,c=!0,d,e;Lb.prototype.init.call(this),a=a||{},this.baseMediaDecodeTime=a.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var c={};this.transmuxPipeline_=c,c.type='aac',c.metadataStream=new gb.MetadataStream,c.aacStream=new Db,c.audioTimestampRolloverStream=new gb.TimestampRolloverStream('audio'),c.timedMetadataTimestampRolloverStream=new gb.TimestampRolloverStream('timed-metadata'),c.adtsStream=new kb,c.coalesceStream=new Mb(a,c.metadataStream),c.headOfPipeline=c.aacStream,c.aacStream.pipe(c.audioTimestampRolloverStream).pipe(c.adtsStream),c.aacStream.pipe(c.timedMetadataTimestampRolloverStream).pipe(c.metadataStream).pipe(c.coalesceStream),c.metadataStream.on('timestamp',function(a){c.aacStream.setTimestamp(a.timeStamp)}),c.aacStream.on('data',function(f){'timed-metadata'!==f.type||c.audioSegmentStream||(e=e||{timelineStartInfo:{baseMediaDecodeTime:b.baseMediaDecodeTime},codec:'adts',type:'audio'},c.coalesceStream.numberOfTracks++,c.audioSegmentStream=new Kb(e,a),c.audioSegmentStream.on('timingInfo',b.trigger.bind(b,'audioTimingInfo')),c.adtsStream.pipe(c.audioSegmentStream).pipe(c.coalesceStream)),b.trigger('trackinfo',{hasAudio:!!e,hasVideo:!!d})}),c.coalesceStream.on('data',this.trigger.bind(this,'data')),c.coalesceStream.on('done',this.trigger.bind(this,'done'))},this.setupTsPipeline=function(){var c={};this.transmuxPipeline_=c,c.type='ts',c.metadataStream=new gb.MetadataStream,c.packetStream=new gb.TransportPacketStream,c.parseStream=new gb.TransportParseStream,c.elementaryStream=new gb.ElementaryStream,c.timestampRolloverStream=new gb.TimestampRolloverStream,c.adtsStream=new kb,c.h264Stream=new Eb,c.captionStream=new gb.CaptionStream,c.coalesceStream=new Mb(a,c.metadataStream),c.headOfPipeline=c.packetStream,c.packetStream.pipe(c.parseStream).pipe(c.elementaryStream).pipe(c.timestampRolloverStream),c.timestampRolloverStream.pipe(c.h264Stream),c.timestampRolloverStream.pipe(c.adtsStream),c.timestampRolloverStream.pipe(c.metadataStream).pipe(c.coalesceStream),c.h264Stream.pipe(c.captionStream).pipe(c.coalesceStream),c.elementaryStream.on('data',function(f){var g;if('metadata'===f.type){for(g=f.tracks.length;g--;)d||'video'!==f.tracks[g].type?e||'audio'!==f.tracks[g].type||(e=f.tracks[g],e.timelineStartInfo.baseMediaDecodeTime=b.baseMediaDecodeTime):(d=f.tracks[g],d.timelineStartInfo.baseMediaDecodeTime=b.baseMediaDecodeTime);d&&!c.videoSegmentStream&&(c.coalesceStream.numberOfTracks++,c.videoSegmentStream=new Jb(d,a),c.videoSegmentStream.on('timelineStartInfo',function(a){e&&(e.timelineStartInfo=a,c.audioSegmentStream.setEarliestDts(a.dts))}),c.videoSegmentStream.on('processedGopsInfo',b.trigger.bind(b,'gopInfo')),c.videoSegmentStream.on('segmentTimingInfo',b.trigger.bind(b,'videoSegmentTimingInfo')),c.videoSegmentStream.on('baseMediaDecodeTime',function(a){e&&c.audioSegmentStream.setVideoBaseMediaDecodeTime(a)}),c.videoSegmentStream.on('timingInfo',b.trigger.bind(b,'videoTimingInfo')),c.h264Stream.pipe(c.videoSegmentStream).pipe(c.coalesceStream)),e&&!c.audioSegmentStream&&(c.coalesceStream.numberOfTracks++,c.audioSegmentStream=new Kb(e,a),c.audioSegmentStream.on('timingInfo',b.trigger.bind(b,'audioTimingInfo')),c.adtsStream.pipe(c.audioSegmentStream).pipe(c.coalesceStream)),b.trigger('trackinfo',{hasAudio:!!e,hasVideo:!!d})}}),c.coalesceStream.on('data',this.trigger.bind(this,'data')),c.coalesceStream.on('id3Frame',function(a){a.dispatchType=c.metadataStream.dispatchType,b.trigger('id3Frame',a)}),c.coalesceStream.on('caption',this.trigger.bind(this,'caption')),c.coalesceStream.on('done',this.trigger.bind(this,'done'))},this.setBaseMediaDecodeTime=function(b){var c=this.transmuxPipeline_;a.keepOriginalTimestamps||(this.baseMediaDecodeTime=b),e&&(e.timelineStartInfo.dts=void 0,e.timelineStartInfo.pts=void 0,wa.clearDtsInfo(e),a.keepOriginalTimestamps||(e.timelineStartInfo.baseMediaDecodeTime=b),c.audioTimestampRolloverStream&&c.audioTimestampRolloverStream.discontinuity()),d&&(c.videoSegmentStream&&(c.videoSegmentStream.gopCache_=[]),d.timelineStartInfo.dts=void 0,d.timelineStartInfo.pts=void 0,wa.clearDtsInfo(d),c.captionStream.reset(),a.keepOriginalTimestamps||(d.timelineStartInfo.baseMediaDecodeTime=b)),c.timestampRolloverStream&&c.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(a){e&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(a)},this.setRemux=function(b){var c=this.transmuxPipeline_;a.remux=b,c&&c.coalesceStream&&c.coalesceStream.setRemux(b)},this.alignGopsWith=function(a){d&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(a)},this.push=function(a){if(c){var b=Fb(a);b&&'aac'!==this.transmuxPipeline_.type?this.setupAacPipeline():b||'ts'===this.transmuxPipeline_.type||this.setupTsPipeline(),c=!1}this.transmuxPipeline_.headOfPipeline.push(a)},this.flush=function(){c=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},Lb.prototype=new b;var Pb={Transmuxer:Lb,VideoSegmentStream:Jb,AudioSegmentStream:Kb,AUDIO_PROPERTIES:Hb,VIDEO_PROPERTIES:Ib,generateVideoSegmentTimingInfo:Ob},Qb=function Dd(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},Rb=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),Sb=function Ed(a,b){b.on('data',function(b){var c=b.initSegment;b.initSegment={data:c.buffer,byteOffset:c.byteOffset,byteLength:c.byteLength};var d=b.data;b.data=d.buffer,a.postMessage({action:'data',segment:b,byteOffset:d.byteOffset,byteLength:d.byteLength},[b.data])}),b.captionStream&&b.captionStream.on('data',function(b){a.postMessage({action:'caption',data:b})}),b.on('done',function(b){a.postMessage({action:'done'})}),b.on('gopInfo',function(b){a.postMessage({action:'gopInfo',gopInfo:b})}),b.on('videoSegmentTimingInfo',function(b){a.postMessage({action:'videoSegmentTimingInfo',videoSegmentTimingInfo:b})})},Tb=function(){function a(b,c){Qb(this,a),this.options=c||{},this.self=b,this.init()}return Rb(a,[{key:'init',value:function b(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Pb.Transmuxer(this.options),Sb(this.self,this.transmuxer)}},{key:'push',value:function c(a){var b=new Uint8Array(a.data,a.byteOffset,a.byteLength);this.transmuxer.push(b)}},{key:'reset',value:function d(){this.init()}},{key:'setTimestampOffset',value:function e(a){var b=a.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(9e4*b))}},{key:'setAudioAppendStart',value:function f(a){this.transmuxer.setAudioAppendStart(Math.ceil(9e4*a.appendStart))}},{key:'flush',value:function g(a){this.transmuxer.flush()}},{key:'resetCaptions',value:function h(){this.transmuxer.resetCaptions()}},{key:'alignGopsWith',value:function i(a){this.transmuxer.alignGopsWith(a.gopsToAlignWith.slice())}}]),a}(),Ub=function Fd(a){a.onmessage=function(b){return'init'===b.data.action&&b.data.options?(this.messageHandlers=new Tb(a,b.data.options),void 0):(this.messageHandlers||(this.messageHandlers=new Tb(a)),b.data&&b.data.action&&'init'!==b.data.action&&this.messageHandlers[b.data.action]&&this.messageHandlers[b.data.action](b.data),void 0)}},Vb=new Ub(c);return Vb}()}),Ym={videoCodec:'avc1',videoObjectTypeIndicator:'.4d400d',audioProfile:'2'},Zm=function Ov(a){return a.map(function(a){return a.replace(/avc1\.(\d+)\.(\d+)/i,function(a,b,c){var d=('00'+Number(b).toString(16)).slice(-2),e=('00'+Number(c).toString(16)).slice(-2);return'avc1.'+d+'00'+e})})},$m=function Pv(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'',b={codecCount:0},c=void 0;return b.codecCount=a.split(',').length,b.codecCount=b.codecCount||2,c=/(^|\s|,)+(avc[13])([^ ,]*)/i.exec(a),c&&(b.videoCodec=c[2],b.videoObjectTypeIndicator=c[3]),b.audioProfile=/(^|\s|,)+mp4a.[0-9A-Fa-f]+\.([0-9A-Fa-f]+)/i.exec(a),b.audioProfile=b.audioProfile&&b.audioProfile[2],b},_m=function Qv(a){return a.replace(/avc1\.(\d+)\.(\d+)/i,function(a){return Zm([a])[0]})},an=function Rv(a,b,c){return a+'/'+b+'; codecs="'+c.filter(function(a){return!!a}).join(', ')+'"'},bn=function Sv(a){return a.segments&&a.segments.length&&a.segments[0].map?'mp4':'mp2t'},cn=function Tv(a){var b=a.attributes||{};return b.CODECS?$m(b.CODECS):Ym},dn=function Uv(a,b){if(!a.mediaGroups.AUDIO||!b)return null;var c=a.mediaGroups.AUDIO[b];if(!c)return null;for(var d in c){var e=c[d];if(e["default"]&&e.playlists)return $m(e.playlists[0].attributes.CODECS).audioProfile}return null},en=function Vv(a,b){var c=bn(b),d=cn(b),e=b.attributes||{},f=!0,g=!1;if(!b)return[];if(a.mediaGroups.AUDIO&&e.AUDIO){var h=a.mediaGroups.AUDIO[e.AUDIO];if(h){g=!0,f=!1;for(var i in h)if(!h[i].uri&&!h[i].playlists){f=!0;break}}}g&&!d.audioProfile&&(f||(d.audioProfile=dn(a,e.AUDIO)),d.audioProfile||(kb.log.warn("Multiple audio tracks present but no audio codec string is specified. Attempting to use the default audio codec (mp4a.40.2)"),d.audioProfile=Ym.audioProfile));var j={};d.videoCodec&&(j.video=''+d.videoCodec+d.videoObjectTypeIndicator),d.audioProfile&&(j.audio='mp4a.40.'+d.audioProfile);var k=an('audio',c,[j.audio]),l=an('video',c,[j.video]),m=an('video',c,[j.video,j.audio]);return g?!f&&j.video?[l,k]:f||j.video?[m,k]:[k,k]:j.video?[m]:[k]},fn=function Wv(a){var b={type:'',parameters:{}},c=a.trim().split(';');return b.type=c.shift().trim(),c.forEach(function(a){var c=a.trim().split('=');if(c.length>1){var d=c[0].replace(/"/g,'').trim(),e=c[1].replace(/"/g,'').trim();b.parameters[d]=e}}),b},gn=function Xv(a){return/mp4a\.\d+.\d+/i.test(a)},hn=function Yv(a){return/avc1\.[\da-f]+/i.test(a)},jn=function Zv(a,b,c){if('undefined'==typeof b||null===b||!a.length)return[];var d=Math.ceil(9e4*(b-c+3)),e=void 0;for(e=0;e<a.length&&!(a[e].pts>d);e++);return a.slice(e)},kn=function $v(a,b,c){if(!b.length)return a;if(c)return b.slice();var d=b[0].pts,e=0;for(e;e<a.length&&!(a[e].pts>=d);e++);return a.slice(0,e).concat(b)},ln=function _v(a,b,c,d){for(var e=Math.ceil(9e4*(b-d)),f=Math.ceil(9e4*(c-d)),g=a.slice(),h=a.length;h--&&!(a[h].pts<=f););if(-1===h)return g;for(var i=h+1;i--&&!(a[i].pts<=e););return i=Math.max(i,0),g.splice(i,h-i+1),g},mn=function aw(a,b,c){var d=null,e=null,f=0,g=[],h=[];if(!a&&!b)return kb.createTimeRange();if(!a)return b.buffered;if(!b)return a.buffered;if(c)return a.buffered;if(0===a.buffered.length&&0===b.buffered.length)return kb.createTimeRange();for(var i=a.buffered,j=b.buffered,k=i.length;k--;)g.push({time:i.start(k),type:'start'}),g.push({time:i.end(k),type:'end'});for(k=j.length;k--;)g.push({time:j.start(k),type:'start'}),g.push({time:j.end(k),type:'end'});for(g.sort(function(a,b){return a.time-b.time}),k=0;k<g.length;k++)'start'===g[k].type?(f++,2===f&&(d=g[k].time)):'end'===g[k].type&&(f--,1===f&&(e=g[k].time)),null!==d&&null!==e&&(h.push([d,e]),d=null,e=null);return kb.createTimeRanges(h)},nn=9e4,on=function bw(a,b){var c=a.addSourceBuffer(b),d=Object.create(null);d.updating=!1,d.realBuffer_=c;var e=function g(a){'function'==typeof c[a]?d[a]=function(){return c[a].apply(c,arguments)}:'undefined'==typeof d[a]&&Object.defineProperty(d,a,{get:function b(){return c[a]},set:function e(b){return c[a]=b}})};for(var f in c)e(f);return d},pn=function(a){function b(a,c){ol(this,b);var d=sl(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,kb.EventTarget));d.timestampOffset_=0,d.pendingBuffers_=[],d.bufferUpdating_=!1,d.mediaSource_=a,d.codecs_=c,d.audioCodec_=null,d.videoCodec_=null,d.audioDisabled_=!1,d.appendAudioInitSegment_=!0,d.gopBuffer_=[],d.timeMapping_=0,d.safeAppend_=kb.browser.IE_VERSION>=11;var e={remux:!1,alignGopsAtEnd:d.safeAppend_};return d.codecs_.forEach(function(a){gn(a)?d.audioCodec_=a:hn(a)&&(d.videoCodec_=a)}),d.transmuxer_=new Xm,d.transmuxer_.postMessage({action:'init',options:e}),d.transmuxer_.onmessage=function(a){return'data'===a.data.action?d.data_(a):'done'===a.data.action?d.done_(a):'gopInfo'===a.data.action?d.appendGopInfo_(a):'videoSegmentTimingInfo'===a.data.action?d.videoSegmentTimingInfo_(a.data.videoSegmentTimingInfo):void 0},Object.defineProperty(d,'timestampOffset',{get:function f(){return this.timestampOffset_},set:function g(a){'number'==typeof a&&a>=0&&(this.timestampOffset_=a,this.appendAudioInitSegment_=!0,this.gopBuffer_.length=0,this.timeMapping_=0,this.transmuxer_.postMessage({action:'setTimestampOffset',timestampOffset:a}))}}),Object.defineProperty(d,'appendWindowStart',{get:function h(){return(this.videoBuffer_||this.audioBuffer_).appendWindowStart},set:function i(a){this.videoBuffer_&&(this.videoBuffer_.appendWindowStart=a),this.audioBuffer_&&(this.audioBuffer_.appendWindowStart=a)}}),Object.defineProperty(d,'updating',{get:function j(){return!!(this.bufferUpdating_||!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.updating||this.videoBuffer_&&this.videoBuffer_.updating)}}),Object.defineProperty(d,'buffered',{get:function k(){return mn(this.videoBuffer_,this.audioBuffer_,this.audioDisabled_)}}),d}return rl(b,a),pl(b,[{key:'data_',value:function c(a){var b=a.data.segment;b.data=new Uint8Array(b.data,a.data.byteOffset,a.data.byteLength),b.initSegment=new Uint8Array(b.initSegment.data,b.initSegment.byteOffset,b.initSegment.byteLength),Im(this,this.mediaSource_,b),this.pendingBuffers_.push(b)}},{key:'done_',value:function d(a){return'closed'===this.mediaSource_.readyState?(this.pendingBuffers_.length=0,void 0):(this.processPendingSegments_(),void 0)}},{key:'videoSegmentTimingInfo_',value:function e(a){var b={start:{decode:a.start.dts/nn,presentation:a.start.pts/nn},end:{decode:a.end.dts/nn,presentation:a.end.pts/nn},baseMediaDecodeTime:a.baseMediaDecodeTime/nn};a.prependedContentDuration&&(b.prependedContentDuration=a.prependedContentDuration/nn),this.trigger({type:'videoSegmentTimingInfo',videoSegmentTimingInfo:b})}},{key:'createRealSourceBuffers_',value:function f(){var a=this,b=['audio','video'];b.forEach(function(c){if(a[c+'Codec_']&&!a[c+'Buffer_']){var d=null;if(a.mediaSource_[c+'Buffer_'])d=a.mediaSource_[c+'Buffer_'],d.updating=!1;else{var e=c+'Codec_',f=c+'/mp4;codecs="'+a[e]+'"';d=on(a.mediaSource_.nativeMediaSource_,f),a.mediaSource_[c+'Buffer_']=d}a[c+'Buffer_']=d,['update','updatestart','updateend'].forEach(function(e){d.addEventListener(e,function(){if('audio'!==c||!a.audioDisabled_){'updateend'===e&&(a[c+'Buffer_'].updating=!1);var d=b.every(function(b){return'audio'===b&&a.audioDisabled_?!0:c===b||!a[b+'Buffer_']||!a[b+'Buffer_'].updating});return d?a.trigger(e):void 0}})})}})}},{key:'appendBuffer',value:function g(a){if(this.bufferUpdating_=!0,this.audioBuffer_&&this.audioBuffer_.buffered.length){var b=this.audioBuffer_.buffered;this.transmuxer_.postMessage({action:'setAudioAppendStart',appendStart:b.end(b.length-1)})}this.videoBuffer_&&this.transmuxer_.postMessage({action:'alignGopsWith',gopsToAlignWith:jn(this.gopBuffer_,this.mediaSource_.player_?this.mediaSource_.player_.currentTime():null,this.timeMapping_)}),this.transmuxer_.postMessage({action:'push',data:a.buffer,byteOffset:a.byteOffset,byteLength:a.byteLength},[a.buffer]),this.transmuxer_.postMessage({action:'flush'})}},{key:'appendGopInfo_',value:function h(a){this.gopBuffer_=kn(this.gopBuffer_,a.data.gopInfo,this.safeAppend_)}},{key:'remove',value:function i(a,b){if(this.videoBuffer_&&(this.videoBuffer_.updating=!0,this.videoBuffer_.remove(a,b),this.gopBuffer_=ln(this.gopBuffer_,a,b,this.timeMapping_)),!this.audioDisabled_&&this.audioBuffer_&&(this.audioBuffer_.updating=!0,this.audioBuffer_.remove(a,b)),Jm(a,b,this.metadataTrack_),this.inbandTextTracks_)for(var c in this.inbandTextTracks_)Jm(a,b,this.inbandTextTracks_[c])}},{key:'processPendingSegments_',value:function j(){var a={video:{segments:[],bytes:0},audio:{segments:[],bytes:0},captions:[],metadata:[]};if(!this.pendingBuffers_.length)return this.trigger('updateend'),this.bufferUpdating_=!1,void 0;a=this.pendingBuffers_.reduce(function(a,b){var c=b.type,d=b.data,e=b.initSegment;return a[c].segments.push(d),a[c].bytes+=d.byteLength,a[c].initSegment=e,b.captions&&(a.captions=a.captions.concat(b.captions)),b.info&&(a[c].info=b.info),b.metadata&&(a.metadata=a.metadata.concat(b.metadata)),a},a),this.videoBuffer_||this.audioBuffer_||(0===a.video.bytes&&(this.videoCodec_=null),0===a.audio.bytes&&(this.audioCodec_=null),this.createRealSourceBuffers_()),a.audio.info&&this.mediaSource_.trigger({type:'audioinfo',info:a.audio.info}),a.video.info&&this.mediaSource_.trigger({type:'videoinfo',info:a.video.info}),this.appendAudioInitSegment_&&(!this.audioDisabled_&&this.audioBuffer_&&(a.audio.segments.unshift(a.audio.initSegment),a.audio.bytes+=a.audio.initSegment.byteLength),this.appendAudioInitSegment_=!1);var b=!1;this.videoBuffer_&&a.video.bytes?(a.video.segments.unshift(a.video.initSegment),a.video.bytes+=a.video.initSegment.byteLength,this.concatAndAppendSegments_(a.video,this.videoBuffer_)):!this.videoBuffer_||!this.audioDisabled_&&this.audioBuffer_||(b=!0),Mm(this,a.captions,a.metadata),!this.audioDisabled_&&this.audioBuffer_&&this.concatAndAppendSegments_(a.audio,this.audioBuffer_),this.pendingBuffers_.length=0,b&&this.trigger('updateend'),this.bufferUpdating_=!1}},{key:'concatAndAppendSegments_',value:function k(a,b){var c=0,d=void 0;if(a.bytes){d=new Uint8Array(a.bytes),a.segments.forEach(function(a){d.set(a,c),c+=a.byteLength});try{b.updating=!0,b.appendBuffer(d)}catch(e){this.mediaSource_.player_&&this.mediaSource_.player_.error({code:-3,type:'APPEND_BUFFER_ERR',message:e.message,originalError:e})}}}},{key:'abort',value:function l(){this.videoBuffer_&&this.videoBuffer_.abort(),!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:'reset'}),this.pendingBuffers_.length=0,this.bufferUpdating_=!1}}]),b}(kb.EventTarget),qn=function(c){function d(){ol(this,d);var c=sl(this,(d.__proto__||Object.getPrototypeOf(d)).call(this)),e=void 0;c.nativeMediaSource_=new a.MediaSource;for(e in c.nativeMediaSource_)e in d.prototype||'function'!=typeof c.nativeMediaSource_[e]||(c[e]=c.nativeMediaSource_[e].bind(c.nativeMediaSource_));return c.duration_=NaN,Object.defineProperty(c,'duration',{get:function f(){return this.duration_===1/0?this.duration_:this.nativeMediaSource_.duration},set:function g(a){return this.duration_=a,a!==1/0?(this.nativeMediaSource_.duration=a,void 0):void 0}}),Object.defineProperty(c,'seekable',{get:function h(){return this.duration_===1/0?kb.createTimeRanges([[0,this.nativeMediaSource_.duration]]):this.nativeMediaSource_.seekable}}),Object.defineProperty(c,'readyState',{get:function i(){return this.nativeMediaSource_.readyState}}),Object.defineProperty(c,'activeSourceBuffers',{get:function j(){return this.activeSourceBuffers_}}),c.sourceBuffers=[],c.activeSourceBuffers_=[],c.updateActiveSourceBuffers_=function(){if(c.activeSourceBuffers_.length=0,1===c.sourceBuffers.length){var a=c.sourceBuffers[0];return a.appendAudioInitSegment_=!0,a.audioDisabled_=!a.audioCodec_,c.activeSourceBuffers_.push(a),void 0}for(var b=!1,d=!0,e=0;e<c.player_.audioTracks().length;e++){var f=c.player_.audioTracks()[e];if(f.enabled&&'main'!==f.kind){b=!0,d=!1;break}}c.sourceBuffers.forEach(function(a,e){if(a.appendAudioInitSegment_=!0,a.videoCodec_&&a.audioCodec_)a.audioDisabled_=b;else if(a.videoCodec_&&!a.audioCodec_)a.audioDisabled_=!0,d=!1;else if(!a.videoCodec_&&a.audioCodec_&&(a.audioDisabled_=e?d:!d,a.audioDisabled_))return;c.activeSourceBuffers_.push(a)})},c.onPlayerMediachange_=function(){c.sourceBuffers.forEach(function(a){a.appendAudioInitSegment_=!0})},c.onHlsReset_=function(){c.sourceBuffers.forEach(function(a){a.transmuxer_&&a.transmuxer_.postMessage({action:'resetCaptions'})})},c.onHlsSegmentTimeMapping_=function(a){c.sourceBuffers.forEach(function(b){return b.timeMapping_=a.mapping})},['sourceopen','sourceclose','sourceended'].forEach(function(a){this.nativeMediaSource_.addEventListener(a,this.trigger.bind(this))},c),c.on('sourceopen',function(a){var d=b.querySelector('[src="'+c.url_+'"]');d&&(c.player_=kb(d.parentNode),c.player_&&(c.player_.tech_.on('hls-reset',c.onHlsReset_),c.player_.tech_.on('hls-segment-time-mapping',c.onHlsSegmentTimeMapping_),c.player_.audioTracks&&c.player_.audioTracks()&&(c.player_.audioTracks().on('change',c.updateActiveSourceBuffers_),c.player_.audioTracks().on('addtrack',c.updateActiveSourceBuffers_),c.player_.audioTracks().on('removetrack',c.updateActiveSourceBuffers_)),c.player_.on('mediachange',c.onPlayerMediachange_)))}),c.on('sourceended',function(a){for(var b=Lm(c.duration),d=0;d<c.sourceBuffers.length;d++){var e=c.sourceBuffers[d],f=e.metadataTrack_&&e.metadataTrack_.cues;f&&f.length&&(f[f.length-1].endTime=b)}}),c.on('sourceclose',function(a){this.sourceBuffers.forEach(function(a){a.transmuxer_&&a.transmuxer_.terminate()}),this.sourceBuffers.length=0,this.player_&&(this.player_.audioTracks&&this.player_.audioTracks()&&(this.player_.audioTracks().off('change',this.updateActiveSourceBuffers_),this.player_.audioTracks().off('addtrack',this.updateActiveSourceBuffers_),this.player_.audioTracks().off('removetrack',this.updateActiveSourceBuffers_)),this.player_.el_&&this.player_.off('mediachange',this.onPlayerMediachange_),this.player_.tech_&&this.player_.tech_.el_&&(this.player_.tech_.off('hls-reset',this.onHlsReset_),this.player_.tech_.off('hls-segment-time-mapping',this.onHlsSegmentTimeMapping_)))}),c}return rl(d,c),pl(d,[{key:'addSeekableRange_',value:function e(a,b){var c=void 0;if(this.duration!==1/0)throw c=new Error("MediaSource.addSeekableRange() can only be invoked when the duration is Infinity"),c.name='InvalidStateError',c.code=11,c;(b>this.nativeMediaSource_.duration||isNaN(this.nativeMediaSource_.duration))&&(this.nativeMediaSource_.duration=b)}},{key:'addSourceBuffer',value:function f(a){var b=void 0,c=fn(a);if(/^(video|audio)\/mp2t$/i.test(c.type)){var d=[];c.parameters&&c.parameters.codecs&&(d=c.parameters.codecs.split(','),d=Zm(d),d=d.filter(function(a){return gn(a)||hn(a)})),0===d.length&&(d=['avc1.4d400d','mp4a.40.2']),b=new pn(this,d),0!==this.sourceBuffers.length&&(this.sourceBuffers[0].createRealSourceBuffers_(),b.createRealSourceBuffers_(),this.sourceBuffers[0].audioDisabled_=!0)}else b=this.nativeMediaSource_.addSourceBuffer(a);return this.sourceBuffers.push(b),b}}]),d}(kb.EventTarget),rn=0;kb.mediaSources={};var sn=function cw(a,b){var c=kb.mediaSources[a];if(!c)throw new Error('Media Source not found (Video.js)');c.trigger({type:'sourceopen',swfId:b})},tn=function dw(){return!!a.MediaSource&&!!a.MediaSource.isTypeSupported&&a.MediaSource.isTypeSupported('video/mp4;codecs="avc1.4d400d,mp4a.40.2"')},un=function ew(){if(this.MediaSource={open:sn,supportsNativeMediaSources:tn},tn())return new qn;throw new Error('Cannot use create a virtual MediaSource for this video')};un.open=sn,un.supportsNativeMediaSources=tn;var vn={createObjectURL:function fw(b){var c='blob:vjs-media-source/',d=void 0;return b instanceof qn?(d=a.URL.createObjectURL(b.nativeMediaSource_),b.url_=d,d):b instanceof qn?(d=c+rn,rn++,kb.mediaSources[d]=b,d):(d=a.URL.createObjectURL(b),b.url_=d,d)}};kb.MediaSource=un,kb.URL=vn;var wn=kb.EventTarget,xn=kb.mergeOptions,yn=function gw(a,b){for(var c=void 0,d=xn(a,{duration:b.duration,minimumUpdatePeriod:b.minimumUpdatePeriod}),e=0;e<b.playlists.length;e++){var f=Al(d,b.playlists[e]);f?d=f:c=!0}return xl(b,function(a,b,e,f){if(a.playlists&&a.playlists.length){var g=a.playlists[0].uri,h=Al(d,a.playlists[0]);h&&(d=h,d.mediaGroups[b][e][f].playlists[0]=d.playlists[g],c=!1)}}),c?null:d},zn=function hw(a){
var b=a.byterange.offset+a.byterange.length-1;return a.uri+'-'+a.byterange.offset+'-'+b},An=function iw(a,b){var c=Boolean(!a.map&&!b.map),d=c||Boolean(a.map&&b.map&&a.map.byterange.offset===b.map.byterange.offset&&a.map.byterange.length===b.map.byterange.length);return d&&a.uri===b.uri&&a.byterange.offset===b.byterange.offset&&a.byterange.length===b.byterange.length},Bn=function jw(a,b){var c={};for(var d in a){var e=a[d],f=e.sidx;if(f){var g=zn(f);if(!b[g])break;var h=b[g].sidxInfo;An(h,f)&&(c[g]=b[g])}}return c},Cn=function kw(a,b,c,d){var e=jj(a,{manifestUri:b,clientOffset:c}),f=Bn(e.playlists,d),g=f;return xl(e,function(a,b,c,e){if(a.playlists&&a.playlists.length){var f=a.playlists;g=xn(g,Bn(f,d))}}),g},Dn=function lw(a,b,c,d,e){var f={uri:nl(d.handleManifestRedirects,a.resolvedUri),byterange:a.byterange,playlist:b},g=kb.mergeOptions(f,{responseType:'arraybuffer',headers:fm(f)});return c(g,e)},En=function(b){function c(a,b){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},e=arguments[3];ol(this,c);var f=sl(this,(c.__proto__||Object.getPrototypeOf(c)).call(this)),g=d.withCredentials,h=void 0===g?!1:g,i=d.handleManifestRedirects,j=void 0===i?!1:i;if(f.hls_=b,f.withCredentials=h,f.handleManifestRedirects=j,!a)throw new Error('A non-empty playlist URL or playlist is required');return f.on('minimumUpdatePeriod',function(){f.refreshXml_()}),f.on('mediaupdatetimeout',function(){f.refreshMedia_(f.media().uri)}),f.state='HAVE_NOTHING',f.loadedPlaylists_={},'string'==typeof a?(f.srcUrl=a,f.sidxMapping_={},sl(f)):(f.setupChildLoader(e,a),f)}return rl(c,b),pl(c,[{key:'setupChildLoader',value:function d(a,b){this.masterPlaylistLoader_=a,this.childPlaylist_=b}},{key:'dispose',value:function e(){this.stopRequest(),this.loadedPlaylists_={},a.clearTimeout(this.minimumUpdatePeriodTimeout_),a.clearTimeout(this.mediaRequest_),a.clearTimeout(this.mediaUpdateTimeout)}},{key:'hasPendingRequest',value:function f(){return this.request||this.mediaRequest_}},{key:'stopRequest',value:function g(){if(this.request){var a=this.request;this.request=null,a.onreadystatechange=null,a.abort()}}},{key:'sidxRequestFinished_',value:function h(a,b,c,d){var e=this;return function(f,g){if(e.request){if(e.request=null,f)return e.error={status:g.status,message:'DASH playlist request error at URL: '+a.uri,response:g.response,code:2},c&&(e.state=c),e.trigger('error'),d(b,null);var h=new Uint8Array(g.response),i=Ej.parseSidx(h.subarray(8));return d(b,i)}}}},{key:'media',value:function i(b){var c=this;if(!b)return this.media_;if('HAVE_NOTHING'===this.state)throw new Error('Cannot switch media playlist from '+this.state);var d=this.state;if('string'==typeof b){if(!this.master.playlists[b])throw new Error('Unknown playlist URI: '+b);b=this.master.playlists[b]}var e=!this.media_||b.uri!==this.media_.uri;if(e&&this.loadedPlaylists_[b.uri]&&this.loadedPlaylists_[b.uri].endList)return this.state='HAVE_METADATA',this.media_=b,e&&(this.trigger('mediachanging'),this.trigger('mediachange')),void 0;if(e){if(this.media_&&this.trigger('mediachanging'),!b.sidx)return this.mediaRequest_=a.setTimeout(this.haveMetadata.bind(this,{startingState:d,playlist:b}),0),void 0;var f=void 0,g=void 0;this.masterPlaylistLoader_?(f=this.masterPlaylistLoader_.master,g=this.masterPlaylistLoader_.sidxMapping_):(f=this.master,g=this.sidxMapping_);var h=zn(b.sidx);g[h]={sidxInfo:b.sidx},this.request=Dn(b.sidx,b,this.hls_.xhr,{handleManifestRedirects:this.handleManifestRedirects},this.sidxRequestFinished_(b,f,d,function(a,e){if(!a||!e)throw new Error('failed to request sidx');g[h].sidx=e,c.haveMetadata({startingState:d,playlist:a.playlists[b.uri]})}))}}},{key:'haveMetadata',value:function j(a){var b=a.startingState,c=a.playlist;this.state='HAVE_METADATA',this.loadedPlaylists_[c.uri]=c,this.mediaRequest_=null,this.refreshMedia_(c.uri),'HAVE_MASTER'===b?this.trigger('loadedmetadata'):this.trigger('mediachange')}},{key:'pause',value:function k(){this.stopRequest(),a.clearTimeout(this.mediaUpdateTimeout),a.clearTimeout(this.minimumUpdatePeriodTimeout_),'HAVE_NOTHING'===this.state&&(this.started=!1)}},{key:'load',value:function l(b){var c=this;a.clearTimeout(this.mediaUpdateTimeout),a.clearTimeout(this.minimumUpdatePeriodTimeout_);var d=this.media();if(b){var e=d?d.targetDuration/2*1e3:5e3;return this.mediaUpdateTimeout=a.setTimeout(function(){return c.load()},e),void 0}return this.started?(this.trigger('loadedplaylist'),void 0):(this.start(),void 0)}},{key:'parseMasterXml',value:function m(){var a=jj(this.masterXml_,{manifestUri:this.srcUrl,clientOffset:this.clientOffset_,sidxMapping:this.sidxMapping_});a.uri=this.srcUrl;for(var b=0;b<a.playlists.length;b++){var c='placeholder-uri-'+b;a.playlists[b].uri=c,a.playlists[c]=a.playlists[b]}return xl(a,function(b,c,d,e){if(b.playlists&&b.playlists.length){var f='placeholder-uri-'+c+'-'+d+'-'+e;b.playlists[0].uri=f,a.playlists[f]=b.playlists[0]}}),Bl(a),Cl(a),a}},{key:'start',value:function n(){var b=this;return this.started=!0,this.masterPlaylistLoader_?(this.mediaRequest_=a.setTimeout(this.haveMaster_.bind(this),0),void 0):(this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(a,c){if(b.request){if(b.request=null,a)return b.error={status:c.status,message:'DASH playlist request error at URL: '+b.srcUrl,responseText:c.responseText,code:2},'HAVE_NOTHING'===b.state&&(b.started=!1),b.trigger('error');b.masterXml_=c.responseText,c.responseHeaders&&c.responseHeaders.date?b.masterLoaded_=Date.parse(c.responseHeaders.date):b.masterLoaded_=Date.now(),b.srcUrl=nl(b.handleManifestRedirects,b.srcUrl,c),b.syncClientServerClock_(b.onClientServerClockSync_.bind(b))}}),void 0)}},{key:'syncClientServerClock_',value:function o(a){var b=this,c=kj(this.masterXml_);return null===c?(this.clientOffset_=this.masterLoaded_-Date.now(),a()):'DIRECT'===c.method?(this.clientOffset_=c.value-Date.now(),a()):(this.request=this.hls_.xhr({uri:ml(this.srcUrl,c.value),method:c.method,withCredentials:this.withCredentials},function(d,e){if(b.request){if(d)return b.clientOffset_=b.masterLoaded_-Date.now(),a();var f=void 0;f='HEAD'===c.method?e.responseHeaders&&e.responseHeaders.date?Date.parse(e.responseHeaders.date):b.masterLoaded_:Date.parse(e.responseText),b.clientOffset_=f-Date.now(),a()}}),void 0)}},{key:'haveMaster_',value:function p(){this.state='HAVE_MASTER',this.mediaRequest_=null,this.masterPlaylistLoader_?this.media_||this.media(this.childPlaylist_):(this.master=this.parseMasterXml(),this.trigger('loadedplaylist'))}},{key:'onClientServerClockSync_',value:function q(){var b=this;this.haveMaster_(),this.hasPendingRequest()||this.media_||this.media(this.master.playlists[0]),this.master&&this.master.minimumUpdatePeriod&&(this.minimumUpdatePeriodTimeout_=a.setTimeout(function(){b.trigger('minimumUpdatePeriod')},this.master.minimumUpdatePeriod))}},{key:'refreshXml_',value:function r(){var b=this;this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(c,d){if(b.request){if(b.request=null,c)return b.error={status:d.status,message:'DASH playlist request error at URL: '+b.srcUrl,responseText:d.responseText,code:2},'HAVE_NOTHING'===b.state&&(b.started=!1),b.trigger('error');b.masterXml_=d.responseText,b.sidxMapping_=Cn(b.masterXml_,b.srcUrl,b.clientOffset_,b.sidxMapping_);var e=b.parseMasterXml(),f=yn(b.master,e),g=b.media().sidx;if(f)if(g){var h=zn(g);if(!b.sidxMapping_[h]){var i=b.media();b.request=Dn(i.sidx,i,b.hls_.xhr,{handleManifestRedirects:b.handleManifestRedirects},b.sidxRequestFinished_(i,e,b.state,function(c,d){if(!c||!d)throw new Error('failed to request sidx on minimumUpdatePeriod');b.sidxMapping_[h].sidx=d,b.minimumUpdatePeriodTimeout_=a.setTimeout(function(){b.trigger('minimumUpdatePeriod')},b.master.minimumUpdatePeriod),b.refreshMedia_(b.media().uri)}))}}else b.master=f;b.minimumUpdatePeriodTimeout_=a.setTimeout(function(){b.trigger('minimumUpdatePeriod')},b.master.minimumUpdatePeriod)}})}},{key:'refreshMedia_',value:function s(b){var c=this;if(!b)throw new Error('refreshMedia_ must take a media uri');var d=void 0,e=void 0;this.masterPlaylistLoader_?(d=this.masterPlaylistLoader_.master,e=this.masterPlaylistLoader_.parseMasterXml()):(d=this.master,e=this.parseMasterXml());var f=yn(d,e);f?(this.masterPlaylistLoader_?this.masterPlaylistLoader_.master=f:this.master=f,this.media_=f.playlists[b]):(this.media_=e.playlists[b],this.trigger('playlistunchanged')),this.media().endList||(this.mediaUpdateTimeout=a.setTimeout(function(){c.trigger('mediaupdatetimeout')},Dl(this.media(),!!f))),this.trigger('loadedplaylist')}}]),c}(wn),Fn=function mw(a){return kb.log.debug?kb.log.debug.bind(kb,'VHS:',a+' >'):function(){}},Gn=function(){function a(b,c,d,e){ol(this,a),this.callbacks_=[],this.pendingCallback_=null,this.timestampOffset_=0,this.mediaSource=b,this.processedAppend_=!1,this.type_=d,this.mimeType_=c,this.logger_=Fn('SourceUpdater['+d+']['+c+']'),'closed'===b.readyState?b.addEventListener('sourceopen',this.createSourceBuffer_.bind(this,c,e)):this.createSourceBuffer_(c,e)}return pl(a,[{key:'createSourceBuffer_',value:function b(a,c){var d=this;return this.sourceBuffer_=this.mediaSource.addSourceBuffer(a),this.logger_('created SourceBuffer'),c&&(c.trigger('sourcebufferadded'),this.mediaSource.sourceBuffers.length<2)?(c.on('sourcebufferadded',function(){d.start_()}),void 0):(this.start_(),void 0)}},{key:'start_',value:function c(){var a=this;this.started_=!0,this.onUpdateendCallback_=function(){var b=a.pendingCallback_;a.pendingCallback_=null,a.sourceBuffer_.removing=!1,a.logger_('buffered ['+Fm(a.buffered())+']'),b&&b(),a.runCallback_()},this.sourceBuffer_.addEventListener('updateend',this.onUpdateendCallback_),this.runCallback_()}},{key:'abort',value:function d(a){var b=this;this.processedAppend_&&this.queueCallback_(function(){b.sourceBuffer_.abort()},a)}},{key:'appendBuffer',value:function e(a,b){var c=this;this.processedAppend_=!0,this.queueCallback_(function(){a.videoSegmentTimingInfoCallback&&c.sourceBuffer_.addEventListener('videoSegmentTimingInfo',a.videoSegmentTimingInfoCallback),c.sourceBuffer_.appendBuffer(a.bytes)},function(){a.videoSegmentTimingInfoCallback&&c.sourceBuffer_.removeEventListener('videoSegmentTimingInfo',a.videoSegmentTimingInfoCallback),b()})}},{key:'buffered',value:function f(){return this.sourceBuffer_?this.sourceBuffer_.buffered:kb.createTimeRanges()}},{key:'remove',value:function g(a,b){var c=this,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vb;this.processedAppend_&&this.queueCallback_(function(){c.logger_('remove ['+a+' => '+b+']'),c.sourceBuffer_.removing=!0,c.sourceBuffer_.remove(a,b)},d)}},{key:'updating',value:function h(){return!this.sourceBuffer_||this.sourceBuffer_.updating||!!this.pendingCallback_&&this.pendingCallback_!==vb}},{key:'timestampOffset',value:function i(a){var b=this;return'undefined'!=typeof a&&(this.queueCallback_(function(){b.sourceBuffer_.timestampOffset=a,b.runCallback_()}),this.timestampOffset_=a),this.timestampOffset_}},{key:'queueCallback_',value:function j(a,b){this.callbacks_.push([a.bind(this),b]),this.runCallback_()}},{key:'runCallback_',value:function k(){var a=void 0;!this.updating()&&this.callbacks_.length&&this.started_&&(a=this.callbacks_.shift(),this.pendingCallback_=a[1],a[0]())}},{key:'dispose',value:function l(){var a=this,b=function c(){a.sourceBuffer_&&'open'===a.mediaSource.readyState&&a.sourceBuffer_.abort(),a.sourceBuffer_.removeEventListener('updateend',c)};this.sourceBuffer_.removeEventListener('updateend',this.onUpdateendCallback_),this.sourceBuffer_.removing?this.sourceBuffer_.addEventListener('updateend',b):b()}}]),a}(),Hn={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,BUFFER_LOW_WATER_LINE_RATE:1},In={FAILURE:2,TIMEOUT:-101,ABORTED:-102},Jn=function nw(a){a.forEach(function(a){a.abort()})},Kn=function ow(a){return{bandwidth:a.bandwidth,bytesReceived:a.bytesReceived||0,roundTripTime:a.roundTripTime||0}},Ln=function pw(a){var b=a.target,c=Date.now()-b.requestTime,d={bandwidth:1/0,bytesReceived:0,roundTripTime:c||0};return d.bytesReceived=a.loaded,d.bandwidth=Math.floor(d.bytesReceived/d.roundTripTime*8*1e3),d},Mn=function qw(a,b){return b.timedout?{status:b.status,message:'HLS request timed-out at URL: '+b.uri,code:In.TIMEOUT,xhr:b}:b.aborted?{status:b.status,message:'HLS request aborted at URL: '+b.uri,code:In.ABORTED,xhr:b}:a?{status:b.status,message:'HLS request errored at URL: '+b.uri,code:In.FAILURE,xhr:b}:null},Nn=function rw(a,b){return function(c,d){var e=d.response,f=Mn(c,d);if(f)return b(f,a);if(16!==e.byteLength)return b({status:d.status,message:'Invalid HLS key at URL: '+d.uri,code:In.FAILURE,xhr:d},a);var g=new DataView(e);return a.key.bytes=new Uint32Array([g.getUint32(0),g.getUint32(4),g.getUint32(8),g.getUint32(12)]),b(null,a)}},On=function sw(a,b,c){return function(d,e){var f=e.response,g=Mn(d,e);return g?c(g,a):0===f.byteLength?c({status:e.status,message:'Empty HLS segment content at URL: '+e.uri,code:In.FAILURE,xhr:e},a):(a.map.bytes=new Uint8Array(e.response),b&&!b.isInitialized()&&b.init(),a.map.timescales=wj.timescale(a.map.bytes),a.map.videoTrackIds=wj.videoTrackIds(a.map.bytes),c(null,a))}},Pn=function tw(a,b,c){return function(d,e){var f=e.response,g=Mn(d,e),h=void 0;return g?c(g,a):0===f.byteLength?c({status:e.status,message:'Empty HLS segment content at URL: '+e.uri,code:In.FAILURE,xhr:e},a):(a.stats=Kn(e),a.key?a.encryptedBytes=new Uint8Array(e.response):a.bytes=new Uint8Array(e.response),b&&a.map&&a.map.bytes&&(b.isInitialized()||b.init(),h=b.parse(a.bytes,a.map.videoTrackIds,a.map.timescales),h&&h.captions&&(a.captionStreams=h.captionStreams,a.fmp4Captions=h.captions)),c(null,a))}},Qn=function uw(a,b,c){var d=function f(d){if(d.data.source===b.requestId){a.removeEventListener('message',f);var e=d.data.decrypted;return b.bytes=new Uint8Array(e.bytes,e.byteOffset,e.byteLength),c(null,b)}};a.addEventListener('message',d);var e=void 0;e=b.key.bytes.slice?b.key.bytes.slice():new Uint32Array(Array.prototype.slice.call(b.key.bytes)),a.postMessage(jm({source:b.requestId,encrypted:b.encryptedBytes,key:e,iv:b.key.iv}),[b.encryptedBytes.buffer,e.buffer])},Rn=function vw(a,b,c){var d=0,e=!1;return function(f,g){return e?void 0:f?(e=!0,Jn(a),c(f,g)):(d+=1,d===a.length?(g.endOfAllRequests=Date.now(),g.encryptedBytes?Qn(b,g,c):c(null,g)):void 0)}},Sn=function ww(a,b){return function(c){return a.stats=kb.mergeOptions(a.stats,Ln(c)),!a.stats.firstBytesReceivedAt&&a.stats.bytesReceived&&(a.stats.firstBytesReceivedAt=Date.now()),b(c,a)}},Tn=function xw(a,b,c,d,e,f,g){var h=[],i=Rn(h,c,g);if(e.key&&!e.key.bytes){var j=kb.mergeOptions(b,{uri:e.key.resolvedUri,responseType:'arraybuffer'}),k=Nn(e,i),l=a(j,k);h.push(l)}if(e.map&&!e.map.bytes){var m=kb.mergeOptions(b,{uri:e.map.resolvedUri,responseType:'arraybuffer',headers:fm(e.map)}),n=On(e,d,i),o=a(m,n);h.push(o)}var p=kb.mergeOptions(b,{uri:e.resolvedUri,responseType:'arraybuffer',headers:fm(e)}),q=Pn(e,d,i),r=a(p,q);return r.addEventListener('progress',Sn(e,f)),h.push(r),function(){return Jn(h)}},Un=function yw(b,c){var d=void 0;return b?(d=a.getComputedStyle(b),d?d[c]:''):''},Vn=function zw(a,b){var c=a.slice();a.sort(function(a,d){var e=b(a,d);return 0===e?c.indexOf(a)-c.indexOf(d):e})},Wn=function Aw(b,c){var d=void 0,e=void 0;return b.attributes.BANDWIDTH&&(d=b.attributes.BANDWIDTH),d=d||a.Number.MAX_VALUE,c.attributes.BANDWIDTH&&(e=c.attributes.BANDWIDTH),e=e||a.Number.MAX_VALUE,d-e},Xn=function Bw(b,c){var d=void 0,e=void 0;return b.attributes.RESOLUTION&&b.attributes.RESOLUTION.width&&(d=b.attributes.RESOLUTION.width),d=d||a.Number.MAX_VALUE,c.attributes.RESOLUTION&&c.attributes.RESOLUTION.width&&(e=c.attributes.RESOLUTION.width),e=e||a.Number.MAX_VALUE,d===e&&b.attributes.BANDWIDTH&&c.attributes.BANDWIDTH?b.attributes.BANDWIDTH-c.attributes.BANDWIDTH:d-e},Yn=function Cw(b,c,d,e,f){var g=b.playlists.map(function(b){var c=void 0,d=void 0,e=void 0;return c=b.attributes.RESOLUTION&&b.attributes.RESOLUTION.width,d=b.attributes.RESOLUTION&&b.attributes.RESOLUTION.height,e=b.attributes.BANDWIDTH,e=e||a.Number.MAX_VALUE,{bandwidth:e,width:c,height:d,playlist:b}});Vn(g,function(a,b){return a.bandwidth-b.bandwidth}),g=g.filter(function(a){return!am.isIncompatible(a.playlist)});var h=g.filter(function(a){return am.isEnabled(a.playlist)});h.length||(h=g.filter(function(a){return!am.isDisabled(a.playlist)}));var i=h.filter(function(a){return a.bandwidth*Hn.BANDWIDTH_VARIANCE<c}),j=i[i.length-1],k=i.filter(function(a){return a.bandwidth===j.bandwidth})[0];if(f===!1){var l=k||h[0]||g[0];return l?l.playlist:null}var m=i.filter(function(a){return a.width&&a.height});Vn(m,function(a,b){return a.width-b.width});var n=m.filter(function(a){return a.width===d&&a.height===e});j=n[n.length-1];var o=n.filter(function(a){return a.bandwidth===j.bandwidth})[0],p=void 0,q=void 0,r=void 0;o||(p=m.filter(function(a){return a.width>d||a.height>e}),q=p.filter(function(a){return a.width===p[0].width&&a.height===p[0].height}),j=q[q.length-1],r=q.filter(function(a){return a.bandwidth===j.bandwidth})[0]);var s=r||o||k||h[0]||g[0];return s?s.playlist:null},Zn=function Dw(){return Yn(this.playlists.master,this.systemBandwidth,parseInt(Un(this.tech_.el(),'width'),10),parseInt(Un(this.tech_.el(),'height'),10),this.limitRenditionByPlayerDimensions)},$n=function Ew(a){var b=a.master,c=a.currentTime,d=a.bandwidth,e=a.duration,f=a.segmentDuration,g=a.timeUntilRebuffer,h=a.currentTimeline,i=a.syncController,j=b.playlists.filter(function(a){return!am.isIncompatible(a)}),k=j.filter(am.isEnabled);k.length||(k=j.filter(function(a){return!am.isDisabled(a)}));var l=k.filter(am.hasAttribute.bind(null,'BANDWIDTH')),m=l.map(function(a){var b=i.getSyncPoint(a,e,h,c),j=b?1:2,k=am.estimateSegmentRequestTime(f,d,a),l=k*j-g;return{playlist:a,rebufferingImpact:l}}),n=m.filter(function(a){return a.rebufferingImpact<=0});return Vn(n,function(a,b){return Wn(b.playlist,a.playlist)}),n.length?n[0]:(Vn(m,function(a,b){return a.rebufferingImpact-b.rebufferingImpact}),m[0]||null)},_n=function Fw(){var a=this.playlists.master.playlists.filter(am.isEnabled);Vn(a,function(a,b){return Wn(a,b)});var b=a.filter(function(a){return $m(a.attributes.CODECS).videoCodec});return b[0]||null},ao=function Gw(a,b,c){for(var d in c)if(!a[d]){b.trigger({type:'usage',name:'hls-608'});var e=b.textTracks().getTrackById(d);e?a[d]=e:a[d]=b.addRemoteTextTrack({kind:'captions',id:d,label:d},!1).track}},bo=function Hw(a){var b=a.inbandTextTracks,c=a.captionArray,d=a.timestampOffset;if(c){var e=window.WebKitDataCue||window.VTTCue;c.forEach(function(a){var c=a.stream,f=a.startTime,g=a.endTime;b[c]&&(f+=d,g+=d,b[c].addCue(new e(f,g,a.text)))})}},co=500,eo=function Iw(a,b,c){if(!a||!b)return!1;var d=a.segments,e=c===d.length;return a.endList&&'open'===b.readyState&&e},fo=function Jw(a){return'number'==typeof a&&isFinite(a)},go=function Kw(a,b,c){return'main'===a&&b&&c?c.containsAudio||c.containsVideo?b.containsVideo&&!c.containsVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!b.containsVideo&&c.containsVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:'Neither audio nor video found in segment.':null},ho=function Lw(a,b,c){var d=void 0;return d=a.length&&a.start(0)>0&&a.start(0)<b?a.start(0):b-30,Math.min(d,b-c)},io=function Mw(a){var b=a.segment,c=b.start,d=b.end,e=a.playlist,f=e.mediaSequence,g=e.id,h=e.segments,i=void 0===h?[]:h,j=a.mediaIndex,k=a.timeline;return['appending ['+j+'] of ['+f+', '+(f+i.length)+'] from playlist ['+g+']','['+c+' => '+d+'] in timeline ['+k+']'].join(' ')},jo=function(b){function c(a){ol(this,c);var b=sl(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));if(!a)throw new TypeError('Initialization settings are required');if('function'!=typeof a.currentTime)throw new TypeError('No currentTime getter specified');if(!a.mediaSource)throw new TypeError('No MediaSource specified');return b.bandwidth=a.bandwidth,b.throughput={rate:0,count:0},b.roundTrip=NaN,b.resetStats_(),b.mediaIndex=null,b.hasPlayed_=a.hasPlayed,b.currentTime_=a.currentTime,b.seekable_=a.seekable,b.seeking_=a.seeking,b.duration_=a.duration,b.mediaSource_=a.mediaSource,b.hls_=a.hls,b.loaderType_=a.loaderType,b.startingMedia_=void 0,b.segmentMetadataTrack_=a.segmentMetadataTrack,b.goalBufferLength_=a.goalBufferLength,b.sourceType_=a.sourceType,b.inbandTextTracks_=a.inbandTextTracks,b.state_='INIT',b.checkBufferTimeout_=null,b.error_=void 0,b.currentTimeline_=-1,b.pendingSegment_=null,b.mimeType_=null,b.sourceUpdater_=null,b.xhrOptions_=null,b.activeInitSegmentId_=null,b.initSegments_={},b.cacheEncryptionKeys_=a.cacheEncryptionKeys,b.keyCache_={},'main'===b.loaderType_?b.captionParser_=new ck:b.captionParser_=null,b.decrypter_=a.decrypter,b.syncController_=a.syncController,b.syncPoint_={segmentIndex:0,time:0},b.syncController_.on('syncinfoupdate',function(){return b.trigger('syncinfoupdate')}),b.mediaSource_.addEventListener('sourceopen',function(){return b.ended_=!1}),b.fetchAtBuffer_=!1,b.logger_=Fn('SegmentLoader['+b.loaderType_+']'),Object.defineProperty(b,'state',{get:function d(){return this.state_},set:function e(a){a!==this.state_&&(this.logger_(this.state_+' -> '+a),this.state_=a)}}),b}return rl(c,b),pl(c,[{key:'resetStats_',value:function d(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0}},{key:'dispose',value:function e(){this.state='DISPOSED',this.pause(),this.abort_(),this.sourceUpdater_&&this.sourceUpdater_.dispose(),this.resetStats_(),this.captionParser_&&this.captionParser_.reset()}},{key:'abort',value:function f(){return'WAITING'!==this.state?(this.pendingSegment_&&(this.pendingSegment_=null),void 0):(this.abort_(),this.state='READY',this.paused()||this.monitorBuffer_(),void 0)}},{key:'abort_',value:function g(){this.pendingSegment_&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null}},{key:'error',value:function h(a){return'undefined'!=typeof a&&(this.error_=a),this.pendingSegment_=null,this.error_}},{key:'endOfStream',value:function i(){this.ended_=!0,this.pause(),this.trigger('ended')}},{key:'buffered_',value:function j(){return this.sourceUpdater_?this.sourceUpdater_.buffered():kb.createTimeRanges()}},{key:'initSegment',value:function k(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!1;if(!a)return null;var c=km(a),d=this.initSegments_[c];return b&&!d&&a.bytes&&(this.initSegments_[c]=d={resolvedUri:a.resolvedUri,byterange:a.byterange,bytes:a.bytes,timescales:a.timescales,videoTrackIds:a.videoTrackIds}),d||a}},{key:'segmentKey',value:function l(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!1;if(!a)return null;var c=lm(a),d=this.keyCache_[c];this.cacheEncryptionKeys_&&b&&!d&&a.bytes&&(this.keyCache_[c]=d={resolvedUri:a.resolvedUri,bytes:a.bytes});var e={resolvedUri:(d||a).resolvedUri};return d&&(e.bytes=d.bytes),e}},{key:'couldBeginLoading_',value:function m(){return this.playlist_&&(this.sourceUpdater_||this.mimeType_&&'INIT'===this.state)&&!this.paused()}},{key:'load',value:function n(){return this.monitorBuffer_(),this.playlist_?(this.syncController_.setDateTimeMapping(this.playlist_),'INIT'===this.state&&this.couldBeginLoading_()?this.init_():(!this.couldBeginLoading_()||'READY'!==this.state&&'INIT'!==this.state||(this.state='READY'),void 0)):void 0}},{key:'init_',value:function o(){return this.state='READY',this.sourceUpdater_=new Gn(this.mediaSource_,this.mimeType_,this.loaderType_,this.sourceBufferEmitter_),this.resetEverything(),this.monitorBuffer_()}},{key:'playlist',value:function p(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(a){var c=this.playlist_,d=this.pendingSegment_;this.playlist_=a,this.xhrOptions_=b,this.hasPlayed_()||(a.syncInfo={mediaSequence:a.mediaSequence,time:0});var e=null;if(c&&(c.id?e=c.id:c.uri&&(e=c.uri)),this.logger_('playlist update ['+e+' => '+(a.id||a.uri)+']'),this.trigger('syncinfoupdate'),'INIT'===this.state&&this.couldBeginLoading_())return this.init_();if(!c||c.uri!==a.uri)return null!==this.mediaIndex&&this.resyncLoader(),void 0;var f=a.mediaSequence-c.mediaSequence;this.logger_('live window shift ['+f+']'),null!==this.mediaIndex&&(this.mediaIndex-=f),d&&(d.mediaIndex-=f,d.mediaIndex>=0&&(d.segment=a.segments[d.mediaIndex])),this.syncController_.saveExpiredSegmentInfo(c,a)}}},{key:'pause',value:function q(){this.checkBufferTimeout_&&(a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}},{key:'paused',value:function r(){return null===this.checkBufferTimeout_}},{key:'mimeType',value:function s(a,b){this.mimeType_||(this.mimeType_=a,this.sourceBufferEmitter_=b,'INIT'===this.state&&this.couldBeginLoading_()&&this.init_())}},{key:'resetEverything',value:function t(a){this.ended_=!1,this.resetLoader(),this.remove(0,this.duration_(),a),this.captionParser_&&this.captionParser_.clearAllCaptions(),this.trigger('reseteverything')}},{key:'resetLoader',value:function u(){this.fetchAtBuffer_=!1,this.resyncLoader()}},{key:'resyncLoader',value:function v(){this.mediaIndex=null,this.syncPoint_=null,this.abort()}},{key:'remove',value:function w(a,b,c){if(this.sourceUpdater_&&this.sourceUpdater_.remove(a,b,c),Jm(a,b,this.segmentMetadataTrack_),this.inbandTextTracks_)for(var d in this.inbandTextTracks_)Jm(a,b,this.inbandTextTracks_[d])}},{key:'monitorBuffer_',value:function x(){this.checkBufferTimeout_&&a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=a.setTimeout(this.monitorBufferTick_.bind(this),1)}},{key:'monitorBufferTick_',value:function y(){'READY'===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=a.setTimeout(this.monitorBufferTick_.bind(this),co)}},{key:'fillBuffer_',value:function z(){if(!this.sourceUpdater_.updating()){this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var a=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(a)return this.isEndOfStream_(a.mediaIndex)?(this.endOfStream(),void 0):((a.mediaIndex!==this.playlist_.segments.length-1||'ended'!==this.mediaSource_.readyState||this.seeking_())&&(a.timeline!==this.currentTimeline_&&(this.syncController_.reset(),a.timestampOffset=a.startOfSegment,this.captionParser_&&this.captionParser_.clearAllCaptions()),this.loadSegment_(a)),void 0)}}},{key:'isEndOfStream_',value:function A(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.playlist_;return eo(b,this.mediaSource_,a)&&!this.sourceUpdater_.updating()}},{key:'checkBuffer_',value:function B(a,b,c,d,e,f){var g=0,h=void 0;a.length&&(g=a.end(a.length-1));var i=Math.max(0,g-e);if(!b.segments.length)return null;if(i>=this.goalBufferLength_())return null;if(!d&&i>=1)return null;if(null===f)return c=this.getSyncSegmentCandidate_(b),this.generateSegmentInfo_(b,c,null,!0);if(null!==c){var j=b.segments[c];return h=g,this.generateSegmentInfo_(b,c+1,h,!1)}if(this.fetchAtBuffer_){var k=am.getMediaInfoForTime(b,g,f.segmentIndex,f.time);c=k.mediaIndex,h=k.startTime}else{var l=am.getMediaInfoForTime(b,e,f.segmentIndex,f.time);c=l.mediaIndex,h=l.startTime}return this.generateSegmentInfo_(b,c,h,!1)}},{key:'getSyncSegmentCandidate_',value:function C(a){var b=this;if(-1===this.currentTimeline_)return 0;var c=a.segments.map(function(a,b){return{timeline:a.timeline,segmentIndex:b}}).filter(function(a){return a.timeline===b.currentTimeline_});return c.length?c[Math.min(c.length-1,1)].segmentIndex:Math.max(a.segments.length-1,0)}},{key:'generateSegmentInfo_',value:function D(a,b,c,d){if(0>b||b>=a.segments.length)return null;var e=a.segments[b];return{requestId:'segment-loader-'+Math.random(),uri:e.resolvedUri,mediaIndex:b,isSyncRequest:d,startOfSegment:c,playlist:a,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:e.timeline,duration:e.duration,segment:e}}},{key:'abortRequestEarly_',value:function E(a){if(this.hls_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH)return!1;if(Date.now()-(a.firstBytesReceivedAt||Date.now())<1e3)return!1;var b=this.currentTime_(),c=a.bandwidth,d=this.pendingSegment_.duration,e=am.estimateSegmentRequestTime(d,c,this.playlist_,a.bytesReceived),f=Gm(this.buffered_(),b,this.hls_.tech_.playbackRate())-1;if(f>=e)return!1;var g=$n({master:this.hls_.playlists.master,currentTime:b,bandwidth:c,duration:this.duration_(),segmentDuration:d,timeUntilRebuffer:f,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(g){var h=e-f,i=h-g.rebufferingImpact,j=.5;return zm>=f&&(j=1),!g.playlist||g.playlist.uri===this.playlist_.uri||j>i?!1:(this.bandwidth=g.playlist.attributes.BANDWIDTH*Hn.BANDWIDTH_VARIANCE+1,this.abort(),this.trigger('earlyabort'),!0)}}},{key:'handleProgress_',value:function F(a,b){this.pendingSegment_&&b.requestId===this.pendingSegment_.requestId&&!this.abortRequestEarly_(b.stats)&&this.trigger('progress')}},{key:'loadSegment_',value:function G(a){this.state='WAITING',this.pendingSegment_=a,this.trimBackBuffer_(a),a.abortRequests=Tn(this.hls_.xhr,this.xhrOptions_,this.decrypter_,this.captionParser_,this.createSimplifiedSegmentObj_(a),this.handleProgress_.bind(this),this.segmentRequestFinished_.bind(this))}},{key:'trimBackBuffer_',value:function H(a){var b=ho(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);b>0&&this.remove(0,b)}},{key:'createSimplifiedSegmentObj_',value:function I(a){var b=a.segment,c={resolvedUri:b.resolvedUri,byterange:b.byterange,requestId:a.requestId};if(b.key){var d=b.key.iv||new Uint32Array([0,0,0,a.mediaIndex+a.playlist.mediaSequence]);c.key=this.segmentKey(b.key),c.key.iv=d}return b.map&&(c.map=this.initSegment(b.map)),c}},{key:'segmentRequestFinished_',value:function J(a,b){if(this.mediaRequests+=1,b.stats&&(this.mediaBytesTransferred+=b.stats.bytesReceived,this.mediaTransferDuration+=b.stats.roundTripTime),!this.pendingSegment_)return this.mediaRequestsAborted+=1,void 0;if(b.requestId===this.pendingSegment_.requestId){if(a)return this.pendingSegment_=null,this.state='READY',a.code===In.ABORTED?(this.mediaRequestsAborted+=1,void 0):(this.pause(),a.code===In.TIMEOUT?(this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger('bandwidthupdate'),void 0):(this.mediaRequestsErrored+=1,this.error(a),this.trigger('error'),void 0));this.bandwidth=b.stats.bandwidth,this.roundTrip=b.stats.roundTripTime,b.map&&(b.map=this.initSegment(b.map,!0)),b.key&&this.segmentKey(b.key,!0),this.processSegmentResponse_(b)}}},{key:'processSegmentResponse_',value:function K(a){var b=this.pendingSegment_;b.bytes=a.bytes,a.map&&(b.segment.map.bytes=a.map.bytes),b.endOfAllRequests=a.endOfAllRequests,a.fmp4Captions&&(ao(this.inbandTextTracks_,this.hls_.tech_,a.captionStreams),bo({inbandTextTracks:this.inbandTextTracks_,captionArray:a.fmp4Captions,timestampOffset:0}),this.captionParser_&&this.captionParser_.clearParsedCaptions()),this.handleSegment_()}},{key:'handleSegment_',value:function L(){var a=this;if(!this.pendingSegment_)return this.state='READY',void 0;var b=this.pendingSegment_,c=b.segment,d=this.syncController_.probeSegmentInfo(b);'undefined'==typeof this.startingMedia_&&d&&(d.containsAudio||d.containsVideo)&&(this.startingMedia_={containsAudio:d.containsAudio,containsVideo:d.containsVideo});var e=go(this.loaderType_,this.startingMedia_,d);if(e)return this.error({message:e,blacklistDuration:1/0}),this.trigger('error'),
void 0;if(b.isSyncRequest)return this.trigger('syncinfoupdate'),this.pendingSegment_=null,this.state='READY',void 0;if(null!==b.timestampOffset&&b.timestampOffset!==this.sourceUpdater_.timestampOffset()){if(d&&d.segmentTimestampInfo){var f=d.segmentTimestampInfo[0].ptsTime,g=d.segmentTimestampInfo[0].dtsTime;b.timestampOffset-=f-g}this.sourceUpdater_.timestampOffset(b.timestampOffset),this.trigger('timestampoffset')}var h=this.syncController_.mappingForTimeline(b.timeline);if(null!==h&&this.trigger({type:'segmenttimemapping',mapping:h}),this.state='APPENDING',c.map){var i=km(c.map);if(!this.activeInitSegmentId_||this.activeInitSegmentId_!==i){var j=this.initSegment(c.map);this.sourceUpdater_.appendBuffer({bytes:j.bytes},function(){a.activeInitSegmentId_=i})}}b.byteLength=b.bytes.byteLength,'number'==typeof c.start&&'number'==typeof c.end?this.mediaSecondsLoaded+=c.end-c.start:this.mediaSecondsLoaded+=c.duration,this.logger_(io(b)),this.sourceUpdater_.appendBuffer({bytes:b.bytes,videoSegmentTimingInfoCallback:this.handleVideoSegmentTimingInfo_.bind(this,b.requestId)},this.handleUpdateEnd_.bind(this))}},{key:'handleVideoSegmentTimingInfo_',value:function M(a,b){if(this.pendingSegment_&&a===this.pendingSegment_.requestId){var c=this.pendingSegment_.segment;c.videoTimingInfo||(c.videoTimingInfo={}),c.videoTimingInfo.transmuxerPrependedSeconds=b.videoSegmentTimingInfo.prependedContentDuration||0,c.videoTimingInfo.transmuxedPresentationStart=b.videoSegmentTimingInfo.start.presentation,c.videoTimingInfo.transmuxedPresentationEnd=b.videoSegmentTimingInfo.end.presentation,c.videoTimingInfo.baseMediaDecodeTime=b.videoSegmentTimingInfo.baseMediaDecodeTime}}},{key:'handleUpdateEnd_',value:function N(){if(!this.pendingSegment_)return this.state='READY',this.paused()||this.monitorBuffer_(),void 0;var a=this.pendingSegment_,b=a.segment,c=null!==this.mediaIndex;return this.pendingSegment_=null,this.recordThroughput_(a),this.addSegmentMetadataCue_(a),this.state='READY',this.mediaIndex=a.mediaIndex,this.fetchAtBuffer_=!0,this.currentTimeline_=a.timeline,this.trigger('syncinfoupdate'),b.end&&this.currentTime_()-b.end>3*a.playlist.targetDuration?(this.resetEverything(),void 0):(c&&this.trigger('bandwidthupdate'),this.trigger('progress'),this.isEndOfStream_(a.mediaIndex+1,a.playlist)&&this.endOfStream(),this.paused()||this.monitorBuffer_(),void 0)}},{key:'recordThroughput_',value:function O(a){var b=this.throughput.rate,c=Date.now()-a.endOfAllRequests+1,d=Math.floor(a.byteLength/c*8*1e3);this.throughput.rate+=(d-b)/++this.throughput.count}},{key:'addSegmentMetadataCue_',value:function P(b){if(this.segmentMetadataTrack_){var c=b.segment,d=c.start,e=c.end;if(fo(d)&&fo(e)){Jm(d,e,this.segmentMetadataTrack_);var f=a.WebKitDataCue||a.VTTCue,g={custom:c.custom,dateTimeObject:c.dateTimeObject,dateTimeString:c.dateTimeString,bandwidth:b.playlist.attributes.BANDWIDTH,resolution:b.playlist.attributes.RESOLUTION,codecs:b.playlist.attributes.CODECS,byteLength:b.byteLength,uri:b.uri,timeline:b.timeline,playlist:b.playlist.uri,start:d,end:e},h=JSON.stringify(g),i=new f(d,e,h);i.value=g,this.segmentMetadataTrack_.addCue(i)}}}}]),c}(kb.EventTarget),ko=function Nw(a){return decodeURIComponent(escape(String.fromCharCode.apply(null,a)))},lo=new Uint8Array('\n\n'.split('').map(function(a){return a.charCodeAt(0)})),mo=function(b){function c(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ol(this,c);var d=sl(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,a,b));return d.mediaSource_=null,d.subtitlesTrack_=null,d}return rl(c,b),pl(c,[{key:'buffered_',value:function d(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues.length)return kb.createTimeRanges();var a=this.subtitlesTrack_.cues,b=a[0].startTime,c=a[a.length-1].startTime;return kb.createTimeRanges([[b,c]])}},{key:'initSegment',value:function e(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!1;if(!a)return null;var c=km(a),d=this.initSegments_[c];if(b&&!d&&a.bytes){var e=lo.byteLength+a.bytes.byteLength,f=new Uint8Array(e);f.set(a.bytes),f.set(lo,a.bytes.byteLength),this.initSegments_[c]=d={resolvedUri:a.resolvedUri,byterange:a.byterange,bytes:f}}return d||a}},{key:'couldBeginLoading_',value:function f(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}},{key:'init_',value:function g(){return this.state='READY',this.resetEverything(),this.monitorBuffer_()}},{key:'track',value:function h(a){return'undefined'==typeof a?this.subtitlesTrack_:(this.subtitlesTrack_=a,'INIT'===this.state&&this.couldBeginLoading_()&&this.init_(),this.subtitlesTrack_)}},{key:'remove',value:function i(a,b){Jm(a,b,this.subtitlesTrack_)}},{key:'fillBuffer_',value:function j(){var a=this;this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var b=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(b=this.skipEmptySegments_(b),b){if(null===this.syncController_.timestampOffsetForTimeline(b.timeline)){var c=function d(){a.state='READY',a.paused()||a.monitorBuffer_()};return this.syncController_.one('timestampoffset',c),this.state='WAITING_ON_TIMELINE',void 0}this.loadSegment_(b)}}},{key:'skipEmptySegments_',value:function k(a){for(;a&&a.segment.empty;)a=this.generateSegmentInfo_(a.playlist,a.mediaIndex+1,a.startOfSegment+a.duration,a.isSyncRequest);return a}},{key:'handleSegment_',value:function l(){var b=this;if(!this.pendingSegment_||!this.subtitlesTrack_)return this.state='READY',void 0;this.state='APPENDING';var c=this.pendingSegment_,d=c.segment;if('function'!=typeof a.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var e=void 0,f=function h(){b.subtitlesTrack_.tech_.off('vttjsloaded',e),b.error({message:'Error loading vtt.js'}),b.state='READY',b.pause(),b.trigger('error')};return e=function i(){b.subtitlesTrack_.tech_.off('vttjserror',f),b.handleSegment_()},this.state='WAITING_ON_VTTJS',this.subtitlesTrack_.tech_.one('vttjsloaded',e),this.subtitlesTrack_.tech_.one('vttjserror',f),void 0}d.requested=!0;try{this.parseVTTCues_(c)}catch(g){return this.error({message:g.message}),this.state='READY',this.pause(),this.trigger('error')}return this.updateTimeMapping_(c,this.syncController_.timelines[c.timeline],this.playlist_),c.isSyncRequest?(this.trigger('syncinfoupdate'),this.pendingSegment_=null,this.state='READY',void 0):(c.byteLength=c.bytes.byteLength,this.mediaSecondsLoaded+=d.duration,c.cues.length&&this.remove(c.cues[0].endTime,c.cues[c.cues.length-1].endTime),c.cues.forEach(function(a){b.subtitlesTrack_.addCue(a)}),this.handleUpdateEnd_(),void 0)}},{key:'parseVTTCues_',value:function m(b){var c=void 0,d=!1;'function'==typeof a.TextDecoder?c=new a.TextDecoder('utf8'):(c=a.WebVTT.StringDecoder(),d=!0);var e=new a.WebVTT.Parser(a,a.vttjs,c);if(b.cues=[],b.timestampmap={MPEGTS:0,LOCAL:0},e.oncue=b.cues.push.bind(b.cues),e.ontimestampmap=function(a){return b.timestampmap=a},e.onparsingerror=function(a){kb.log.warn('Error encountered when parsing cues: '+a.message)},b.segment.map){var f=b.segment.map.bytes;d&&(f=ko(f)),e.parse(f)}var g=b.bytes;d&&(g=ko(g)),e.parse(g),e.flush()}},{key:'updateTimeMapping_',value:function n(a,b,c){var d=a.segment;if(b){if(!a.cues.length)return d.empty=!0,void 0;var e=a.timestampmap,f=e.MPEGTS/9e4-e.LOCAL+b.mapping;if(a.cues.forEach(function(a){a.startTime+=f,a.endTime+=f}),!c.syncInfo){var g=a.cues[0].startTime,h=a.cues[a.cues.length-1].startTime;c.syncInfo={mediaSequence:c.mediaSequence+a.mediaIndex,time:Math.min(g,h-d.duration)}}}}}]),c}(jo),no=function Ow(a,b){for(var c=a.cues,d=0;d<c.length;d++){var e=c[d];if(b>=e.adStartTime&&b<=e.adEndTime)return e}return null},oo=function Pw(b,c){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(b.segments)for(var e=d,f=void 0,g=0;g<b.segments.length;g++){var h=b.segments[g];if(f||(f=no(c,e+h.duration/2)),f){if('cueIn'in h){f.endTime=e,f.adEndTime=e,e+=h.duration,f=null;continue}if(e<f.endTime){e+=h.duration;continue}f.endTime+=h.duration}else if('cueOut'in h&&(f=new a.VTTCue(e,e+h.duration,h.cueOut),f.adStartTime=e,f.adEndTime=e+parseFloat(h.cueOut),c.addCue(f)),'cueOutCont'in h){var i=void 0,j=void 0,k=h.cueOutCont.split('/').map(parseFloat),l=tl(k,2);i=l[0],j=l[1],f=new a.VTTCue(e,e+h.duration,''),f.adStartTime=e-i,f.adEndTime=f.adStartTime+j,c.addCue(f)}e+=h.duration}},po=_k.inspect,qo=[{name:'VOD',run:function Qw(a,b,c,d,e){if(c!==1/0){var f={time:0,segmentIndex:0};return f}return null}},{name:'ProgramDateTime',run:function Rw(a,b,c,d,e){if(!a.datetimeToDisplayTime)return null;var f=b.segments||[],g=null,h=null;e=e||0;for(var i=0;i<f.length;i++){var j=f[i];if(j.dateTimeObject){var k=j.dateTimeObject.getTime()/1e3,l=k+a.datetimeToDisplayTime,m=Math.abs(e-l);if(null!==h&&(0===m||m>h))break;h=m,g={time:l,segmentIndex:i}}}return g}},{name:'Segment',run:function Sw(a,b,c,d,e){var f=b.segments||[],g=null,h=null;e=e||0;for(var i=0;i<f.length;i++){var j=f[i];if(j.timeline===d&&'undefined'!=typeof j.start){var k=Math.abs(e-j.start);if(null!==h&&k>h)break;(!g||null===h||h>=k)&&(h=k,g={time:j.start,segmentIndex:i})}}return g}},{name:'Discontinuity',run:function Tw(a,b,c,d,e){var f=null;if(e=e||0,b.discontinuityStarts&&b.discontinuityStarts.length)for(var g=null,h=0;h<b.discontinuityStarts.length;h++){var i=b.discontinuityStarts[h],j=b.discontinuitySequence+h+1,k=a.discontinuities[j];if(k){var l=Math.abs(e-k.time);if(null!==g&&l>g)break;(!f||null===g||g>=l)&&(g=l,f={time:k.time,segmentIndex:i})}}return f}},{name:'Playlist',run:function Uw(a,b,c,d,e){if(b.syncInfo){var f={time:b.syncInfo.time,segmentIndex:b.syncInfo.mediaSequence-b.mediaSequence};return f}return null}}],ro=function(a){function b(){ol(this,b);var a=sl(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));return a.inspectCache_=void 0,a.timelines=[],a.discontinuities=[],a.datetimeToDisplayTime=null,a.logger_=Fn('SyncController'),a}return rl(b,a),pl(b,[{key:'getSyncPoint',value:function c(a,b,d,e){var f=this.runStrategies_(a,b,d,e);return f.length?this.selectSyncPoint_(f,{key:'time',value:e}):null}},{key:'getExpiredTime',value:function d(a,b){if(!a||!a.segments)return null;var c=this.runStrategies_(a,b,a.discontinuitySequence,0);if(!c.length)return null;var d=this.selectSyncPoint_(c,{key:'segmentIndex',value:0});return d.segmentIndex>0&&(d.time*=-1),Math.abs(d.time+Kl(a,d.segmentIndex,0))}},{key:'runStrategies_',value:function e(a,b,c,d){for(var e=[],f=0;f<qo.length;f++){var g=qo[f],h=g.run(this,a,b,c,d);h&&(h.strategy=g.name,e.push({strategy:g.name,syncPoint:h}))}return e}},{key:'selectSyncPoint_',value:function f(a,b){for(var c=a[0].syncPoint,d=Math.abs(a[0].syncPoint[b.key]-b.value),e=a[0].strategy,f=1;f<a.length;f++){var g=Math.abs(a[f].syncPoint[b.key]-b.value);d>g&&(d=g,c=a[f].syncPoint,e=a[f].strategy)}return this.logger_('syncPoint for ['+b.key+': '+b.value+'] chosen with strategy'+(' ['+e+']: [time:'+c.time+',')+(' segmentIndex:'+c.segmentIndex+']')),c}},{key:'saveExpiredSegmentInfo',value:function g(a,b){for(var c=b.mediaSequence-a.mediaSequence,d=c-1;d>=0;d--){var e=a.segments[d];if(e&&'undefined'!=typeof e.start){b.syncInfo={mediaSequence:a.mediaSequence+d,time:e.start},this.logger_('playlist refresh sync: [time:'+b.syncInfo.time+','+(' mediaSequence: '+b.syncInfo.mediaSequence+']')),this.trigger('syncinfoupdate');break}}}},{key:'setDateTimeMapping',value:function h(a){if(!this.datetimeToDisplayTime&&a.segments&&a.segments.length&&a.segments[0].dateTimeObject){var b=a.segments[0].dateTimeObject.getTime()/1e3;this.datetimeToDisplayTime=-b}}},{key:'reset',value:function i(){this.inspectCache_=void 0}},{key:'probeSegmentInfo',value:function j(a){var b=a.segment,c=a.playlist,d=void 0;return d=b.map?this.probeMp4Segment_(a):this.probeTsSegment_(a),d&&this.calculateSegmentTimeMapping_(a,d)&&(this.saveDiscontinuitySyncInfo_(a),c.syncInfo||(c.syncInfo={mediaSequence:c.mediaSequence+a.mediaIndex,time:b.start})),d}},{key:'probeMp4Segment_',value:function k(a){var b=a.segment,c=wj.timescale(b.map.bytes),d=wj.startTime(c,a.bytes);return null!==a.timestampOffset&&(a.timestampOffset-=d),{start:d,end:d+b.duration}}},{key:'probeTsSegment_',value:function l(a){var b=po(a.bytes,this.inspectCache_),c=void 0,d=void 0,e=void 0;if(!b)return null;b.video&&2===b.video.length?(this.inspectCache_=b.video[1].dts,c=b.video[0].dtsTime,d=b.video[1].dtsTime,e=b.video):b.audio&&2===b.audio.length&&(this.inspectCache_=b.audio[1].dts,c=b.audio[0].dtsTime,d=b.audio[1].dtsTime,e=b.audio);var f={segmentTimestampInfo:e,start:c,end:d,containsVideo:b.video&&2===b.video.length,containsAudio:b.audio&&2===b.audio.length};return f}},{key:'timestampOffsetForTimeline',value:function m(a){return'undefined'==typeof this.timelines[a]?null:this.timelines[a].time}},{key:'mappingForTimeline',value:function n(a){return'undefined'==typeof this.timelines[a]?null:this.timelines[a].mapping}},{key:'calculateSegmentTimeMapping_',value:function o(a,b){var c=a.segment,d=this.timelines[a.timeline];if(null!==a.timestampOffset)d={time:a.startOfSegment,mapping:a.startOfSegment-b.start},this.timelines[a.timeline]=d,this.trigger('timestampoffset'),this.logger_('time mapping for timeline '+a.timeline+': '+('[time: '+d.time+'] [mapping: '+d.mapping+']')),c.start=a.startOfSegment,c.end=b.end+d.mapping;else{if(!d)return!1;c.start=b.start+d.mapping,c.end=b.end+d.mapping}return!0}},{key:'saveDiscontinuitySyncInfo_',value:function p(a){var b=a.playlist,c=a.segment;if(c.discontinuity)this.discontinuities[c.timeline]={time:c.start,accuracy:0};else if(b.discontinuityStarts&&b.discontinuityStarts.length)for(var d=0;d<b.discontinuityStarts.length;d++){var e=b.discontinuityStarts[d],f=b.discontinuitySequence+d+1,g=e-a.mediaIndex,h=Math.abs(g);if(!this.discontinuities[f]||this.discontinuities[f].accuracy>h){var i=void 0;i=0>g?c.start-Kl(b,a.mediaIndex,e):c.end+Kl(b,a.mediaIndex+1,e),this.discontinuities[f]={time:i,accuracy:h}}}}}]),b}(kb.EventTarget),so=new sb("./decrypter-worker.worker.js",function(a,b){var c=this,d=function(){function a(a){return a.subarray(0,a.byteLength-a[a.byteLength-1])}var b=function r(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),e=function s(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)},f=function t(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b},g=function u(){var a=[[[],[],[],[],[]],[[],[],[],[],[]]],b=a[0],c=a[1],d=b[4],e=c[4],f=void 0,g=void 0,h=void 0,i=[],j=[],k=void 0,l=void 0,m=void 0,n=void 0,o=void 0,p=void 0;for(f=0;256>f;f++)j[(i[f]=f<<1^283*(f>>7))^f]=f;for(g=h=0;!d[g];g^=k||1,h=j[h]||1)for(n=h^h<<1^h<<2^h<<3^h<<4,n=n>>8^255&n^99,d[g]=n,e[n]=g,m=i[l=i[k=i[g]]],p=16843009*m^65537*l^257*k^16843008*g,o=257*i[n]^16843008*n,f=0;4>f;f++)b[f][g]=o=o<<24^o>>>8,c[f][n]=p=p<<24^p>>>8;for(f=0;5>f;f++)b[f]=b[f].slice(0),c[f]=c[f].slice(0);return a},h=null,i=function(){function a(c){b(this,a),h||(h=g()),this._tables=[[h[0][0].slice(),h[0][1].slice(),h[0][2].slice(),h[0][3].slice(),h[0][4].slice()],[h[1][0].slice(),h[1][1].slice(),h[1][2].slice(),h[1][3].slice(),h[1][4].slice()]];var d=void 0,e=void 0,f=void 0,i=void 0,j=void 0,k=this._tables[0][4],l=this._tables[1],m=c.length,n=1;if(4!==m&&6!==m&&8!==m)throw new Error('Invalid aes key size');for(i=c.slice(0),j=[],this._key=[i,j],d=m;4*m+28>d;d++)f=i[d-1],(d%m===0||8===m&&d%m===4)&&(f=k[f>>>24]<<24^k[f>>16&255]<<16^k[f>>8&255]<<8^k[255&f],d%m===0&&(f=f<<8^f>>>24^n<<24,n=n<<1^283*(n>>7))),i[d]=i[d-m]^f;for(e=0;d;e++,d--)f=i[3&e?d:d-4],4>=d||4>e?j[e]=f:j[e]=l[0][k[f>>>24]]^l[1][k[f>>16&255]]^l[2][k[f>>8&255]]^l[3][k[255&f]]}return a.prototype.decrypt=function c(a,b,d,e,f,g){var h=this._key[1],i=a^h[0],j=e^h[1],k=d^h[2],l=b^h[3],m=void 0,n=void 0,o=void 0,p=h.length/4-2,q=void 0,r=4,s=this._tables[1],t=s[0],u=s[1],v=s[2],w=s[3],x=s[4];for(q=0;p>q;q++)m=t[i>>>24]^u[j>>16&255]^v[k>>8&255]^w[255&l]^h[r],n=t[j>>>24]^u[k>>16&255]^v[l>>8&255]^w[255&i]^h[r+1],o=t[k>>>24]^u[l>>16&255]^v[i>>8&255]^w[255&j]^h[r+2],l=t[l>>>24]^u[i>>16&255]^v[j>>8&255]^w[255&k]^h[r+3],r+=4,i=m,j=n,k=o;for(q=0;4>q;q++)f[(3&-q)+g]=x[i>>>24]<<24^x[j>>16&255]<<16^x[k>>8&255]<<8^x[255&l]^h[r++],m=i,i=j,j=k,k=l,l=m},a}(),j=function(){function a(){b(this,a),this.listeners={}}return a.prototype.on=function c(a,b){this.listeners[a]||(this.listeners[a]=[]),this.listeners[a].push(b)},a.prototype.off=function d(a,b){if(!this.listeners[a])return!1;var c=this.listeners[a].indexOf(b);return this.listeners[a].splice(c,1),c>-1},a.prototype.trigger=function e(a){var b=this.listeners[a];if(b)if(2===arguments.length)for(var c=b.length,d=0;c>d;++d)b[d].call(this,arguments[1]);else for(var e=Array.prototype.slice.call(arguments,1),f=b.length,g=0;f>g;++g)b[g].apply(this,e)},a.prototype.dispose=function f(){this.listeners={}},a.prototype.pipe=function g(a){this.on('data',function(b){a.push(b)})},a}(),k=function(a){function c(){b(this,c);var d=f(this,a.call(this,j));return d.jobs=[],d.delay=1,d.timeout_=null,d}return e(c,a),c.prototype.processJob_=function d(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},c.prototype.push=function g(a){this.jobs.push(a),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},c}(j),l=function v(a){return a<<24|(65280&a)<<8|(16711680&a)>>8|a>>>24},m=function w(a,b,c){var d=new Int32Array(a.buffer,a.byteOffset,a.byteLength>>2),e=new i(Array.prototype.slice.call(b)),f=new Uint8Array(a.byteLength),g=new Int32Array(f.buffer),h=void 0,j=void 0,k=void 0,m=void 0,n=void 0,o=void 0,p=void 0,q=void 0,r=void 0;for(h=c[0],j=c[1],k=c[2],m=c[3],r=0;r<d.length;r+=4)n=l(d[r]),o=l(d[r+1]),p=l(d[r+2]),q=l(d[r+3]),e.decrypt(n,o,p,q,g,r),g[r]=l(g[r]^h),g[r+1]=l(g[r+1]^j),g[r+2]=l(g[r+2]^k),g[r+3]=l(g[r+3]^m),h=n,j=o,k=p,m=q;return f},n=function(){function c(d,e,f,g){b(this,c);var h=c.STEP,i=new Int32Array(d.buffer),j=new Uint8Array(d.byteLength),m=0;for(this.asyncStream_=new k,this.asyncStream_.push(this.decryptChunk_(i.subarray(m,m+h),e,f,j)),m=h;m<i.length;m+=h)f=new Uint32Array([l(i[m-4]),l(i[m-3]),l(i[m-2]),l(i[m-1])]),this.asyncStream_.push(this.decryptChunk_(i.subarray(m,m+h),e,f,j));this.asyncStream_.push(function(){g(null,a(j))})}return c.prototype.decryptChunk_=function e(a,b,c,d){return function(){var e=m(a,b,c);d.set(e,a.byteOffset)}},d(c,null,[{key:'STEP',get:function f(){return 32e3}}]),c}(),o=function x(a){var b={};return Object.keys(a).forEach(function(c){var d=a[c];ArrayBuffer.isView(d)?b[c]={bytes:d.buffer,byteOffset:d.byteOffset,byteLength:d.byteLength}:b[c]=d}),b},p=function y(a){a.onmessage=function(b){var c=b.data,d=new Uint8Array(c.encrypted.bytes,c.encrypted.byteOffset,c.encrypted.byteLength),e=new Uint32Array(c.key.bytes,c.key.byteOffset,c.key.byteLength/4),f=new Uint32Array(c.iv.bytes,c.iv.byteOffset,c.iv.byteLength/4);new n(d,e,f,function(b,d){a.postMessage(o({source:c.source,decrypted:d}),[d.buffer])})}},q=new p(c);return q}()}),to=function Vw(a){var b=a["default"]?'main':'alternative';return a.characteristics&&a.characteristics.indexOf('public.accessibility.describes-video')>=0&&(b='main-desc'),b},uo=function Ww(a,b){a.abort(),a.pause(),b&&b.activePlaylistLoader&&(b.activePlaylistLoader.pause(),b.activePlaylistLoader=null)},vo=function Xw(a,b){b.activePlaylistLoader=a,a.load()},wo=function Yw(a,b){return function(){var c=b.segmentLoaders,d=c[a],e=c.main,f=b.mediaTypes[a],g=f.activeTrack(),h=f.activeGroup(g),i=f.activePlaylistLoader;if(uo(d,f),h){if(!h.playlistLoader)return i&&e.resetEverything(),void 0;d.resyncLoader(),vo(h.playlistLoader,f)}}},xo=function Zw(a,b){return function(){var c=b.segmentLoaders,d=c[a],e=c.main,f=b.mediaTypes[a],g=f.activeTrack(),h=f.activeGroup(g),i=f.activePlaylistLoader;if(uo(d,f),h){if(!h.playlistLoader)return e.resetEverything(),void 0;if(i===h.playlistLoader)return vo(h.playlistLoader,f),void 0;d.track&&d.track(g),d.resetEverything(),vo(h.playlistLoader,f)}}},yo={AUDIO:function $w(a,b){return function(){var c=b.segmentLoaders[a],d=b.mediaTypes[a],e=b.blacklistCurrentPlaylist;uo(c,d);var f=d.activeTrack(),g=d.activeGroup(),h=(g.filter(function(a){return a["default"]})[0]||g[0]).id,i=d.tracks[h];if(f===i)return e({message:'Problem encountered loading the default audio track.'}),void 0;kb.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(var j in d.tracks)d.tracks[j].enabled=d.tracks[j]===i;d.onTrackChanged()}},SUBTITLES:function _w(a,b){return function(){var c=b.segmentLoaders[a],d=b.mediaTypes[a];kb.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),uo(c,d);var e=d.activeTrack();e&&(e.mode='disabled'),d.onTrackChanged()}}},zo={AUDIO:function ax(a,b,c){if(b){var d=c.tech,e=c.requestOptions,f=c.segmentLoaders[a];b.on('loadedmetadata',function(){var a=b.media();f.playlist(a,e),(!d.paused()||a.endList&&'none'!==d.preload())&&f.load()}),b.on('loadedplaylist',function(){f.playlist(b.media(),e),d.paused()||f.load()}),b.on('error',yo[a](a,c))}},SUBTITLES:function bx(a,b,c){var d=c.tech,e=c.requestOptions,f=c.segmentLoaders[a],g=c.mediaTypes[a];b.on('loadedmetadata',function(){var a=b.media();f.playlist(a,e),f.track(g.activeTrack()),(!d.paused()||a.endList&&'none'!==d.preload())&&f.load()}),b.on('loadedplaylist',function(){f.playlist(b.media(),e),d.paused()||f.load()}),b.on('error',yo[a](a,c))}},Ao={AUDIO:function cx(a,b){var c=b.hls,d=b.sourceType,e=b.segmentLoaders[a],f=b.requestOptions,g=b.master.mediaGroups,h=b.mediaTypes[a],i=h.groups,j=h.tracks,k=b.masterPlaylistLoader;g[a]&&0!==Object.keys(g[a]).length||(g[a]={main:{"default":{"default":!0}}});for(var l in g[a]){i[l]||(i[l]=[]);for(var m in g[a][l]){var n=g[a][l][m],o=void 0;if(o=n.resolvedUri?new El(n.resolvedUri,c,f):n.playlists&&'dash'===d?new En(n.playlists[0],c,f,k):null,n=kb.mergeOptions({id:m,playlistLoader:o},n),zo[a](a,n.playlistLoader,b),i[l].push(n),'undefined'==typeof j[m]){var p=new kb.AudioTrack({id:m,kind:to(n),enabled:!1,language:n.language,"default":n["default"],label:m});j[m]=p}}}e.on('error',yo[a](a,b))},SUBTITLES:function dx(a,b){var c=b.tech,d=b.hls,e=b.sourceType,f=b.segmentLoaders[a],g=b.requestOptions,h=b.master.mediaGroups,i=b.mediaTypes[a],j=i.groups,k=i.tracks,l=b.masterPlaylistLoader;for(var m in h[a]){j[m]||(j[m]=[]);for(var n in h[a][m])if(!h[a][m][n].forced){var o=h[a][m][n],p=void 0;if('hls'===e?p=new El(o.resolvedUri,d,g):'dash'===e&&(p=new En(o.playlists[0],d,g,l)),o=kb.mergeOptions({id:n,playlistLoader:p},o),zo[a](a,o.playlistLoader,b),j[m].push(o),'undefined'==typeof k[n]){var q=c.addRemoteTextTrack({id:n,kind:'subtitles',"default":o["default"]&&o.autoselect,language:o.language,label:n},!1).track;k[n]=q}}}f.on('error',yo[a](a,b))},'CLOSED-CAPTIONS':function ex(a,b){var c=b.tech,d=b.master.mediaGroups,e=b.mediaTypes[a],f=e.groups,g=e.tracks;for(var h in d[a]){f[h]||(f[h]=[]);for(var i in d[a][h]){var j=d[a][h][i];if(j.instreamId.match(/CC\d/)&&(f[h].push(kb.mergeOptions({id:i},j)),'undefined'==typeof g[i])){var k=c.addRemoteTextTrack({id:j.instreamId,kind:'captions',"default":j["default"]&&j.autoselect,language:j.language,label:i},!1).track;g[i]=k}}}}},Bo=function fx(a,b){return function(c){var d=b.masterPlaylistLoader,e=b.mediaTypes[a].groups,f=d.media();if(!f)return null;var g=null;return f.attributes[a]&&(g=e[f.attributes[a]]),g=g||e.main,'undefined'==typeof c?g:null===c?null:g.filter(function(a){return a.id===c.id})[0]||null}},Co={AUDIO:function gx(a,b){return function(){var c=b.mediaTypes[a].tracks;for(var d in c)if(c[d].enabled)return c[d];return null}},SUBTITLES:function hx(a,b){return function(){var c=b.mediaTypes[a].tracks;for(var d in c)if('showing'===c[d].mode)return c[d];return null}}},Do=function ix(a){['AUDIO','SUBTITLES','CLOSED-CAPTIONS'].forEach(function(b){Ao[b](b,a)});var b=a.mediaTypes,c=a.masterPlaylistLoader,d=a.tech,e=a.hls;['AUDIO','SUBTITLES'].forEach(function(c){b[c].activeGroup=Bo(c,a),b[c].activeTrack=Co[c](c,a),b[c].onGroupChanged=wo(c,a),b[c].onTrackChanged=xo(c,a)});var f=b.AUDIO.activeGroup(),g=(f.filter(function(a){return a["default"]})[0]||f[0]).id;b.AUDIO.tracks[g].enabled=!0,b.AUDIO.onTrackChanged(),c.on('mediachange',function(){['AUDIO','SUBTITLES'].forEach(function(a){return b[a].onGroupChanged()})});var h=function j(){b.AUDIO.onTrackChanged(),d.trigger({type:'usage',name:'hls-audio-change'})};d.audioTracks().addEventListener('change',h),d.remoteTextTracks().addEventListener('change',b.SUBTITLES.onTrackChanged),e.on('dispose',function(){d.audioTracks().removeEventListener('change',h),d.remoteTextTracks().removeEventListener('change',b.SUBTITLES.onTrackChanged)}),d.clearTracks('audio');for(var i in b.AUDIO.tracks)d.audioTracks().addTrack(b.AUDIO.tracks[i])},Eo=function jx(){var a={};return['AUDIO','SUBTITLES','CLOSED-CAPTIONS'].forEach(function(b){a[b]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:vb,activeTrack:vb,onGroupChanged:vb,onTrackChanged:vb}}),a},Fo=120,Go=void 0,Ho=['mediaRequests','mediaRequestsAborted','mediaRequestsTimedout','mediaRequestsErrored','mediaTransferDuration','mediaBytesTransferred'],Io=function kx(a){return this.audioSegmentLoader_[a]+this.mainSegmentLoader_[a]},Jo=function(b){function c(a){ol(this,c);var b=sl(this,(c.__proto__||Object.getPrototypeOf(c)).call(this)),d=a.url,e=a.handleManifestRedirects,f=a.withCredentials,g=a.tech,h=a.bandwidth,i=a.externHls,j=a.useCueTags,k=a.blacklistDuration,l=a.enableLowInitialPlaylist,m=a.sourceType,n=a.seekTo,o=a.cacheEncryptionKeys;if(!d)throw new Error('A non-empty playlist URL is required');Go=i,b.withCredentials=f,b.tech_=g,b.hls_=g.hls,b.seekTo_=n,b.sourceType_=m,b.useCueTags_=j,b.blacklistDuration=k,b.enableLowInitialPlaylist=l,b.useCueTags_&&(b.cueTagsTrack_=b.tech_.addTextTrack('metadata','ad-cues'),b.cueTagsTrack_.inBandMetadataTrackDispatchType=''),b.requestOptions_={withCredentials:f,handleManifestRedirects:e,timeout:null},b.mediaTypes_=Eo(),b.mediaSource=new kb.MediaSource,b.mediaSource.addEventListener('sourceopen',b.handleSourceOpen_.bind(b)),b.seekable_=kb.createTimeRanges(),b.hasPlayed_=function(){return!1},b.syncController_=new ro(a),b.segmentMetadataTrack_=g.addRemoteTextTrack({kind:'metadata',label:'segment-metadata'},!1).track,b.decrypter_=new so,b.inbandTextTracks_={};var p={hls:b.hls_,mediaSource:b.mediaSource,currentTime:b.tech_.currentTime.bind(b.tech_),seekable:function q(){return b.seekable()},seeking:function r(){return b.tech_.seeking()},duration:function s(){return b.mediaSource.duration},hasPlayed:function t(){return b.hasPlayed_()},goalBufferLength:function u(){return b.goalBufferLength()},bandwidth:h,syncController:b.syncController_,decrypter:b.decrypter_,sourceType:b.sourceType_,inbandTextTracks:b.inbandTextTracks_,cacheEncryptionKeys:o};return b.masterPlaylistLoader_='dash'===b.sourceType_?new En(d,b.hls_,b.requestOptions_):new El(d,b.hls_,b.requestOptions_),b.setupMasterPlaylistLoaderListeners_(),b.mainSegmentLoader_=new jo(kb.mergeOptions(p,{segmentMetadataTrack:b.segmentMetadataTrack_,loaderType:'main'}),a),b.audioSegmentLoader_=new jo(kb.mergeOptions(p,{loaderType:'audio'}),a),b.subtitleSegmentLoader_=new mo(kb.mergeOptions(p,{loaderType:'vtt'}),a),b.setupSegmentLoaderListeners_(),Ho.forEach(function(a){b[a+'_']=Io.bind(b,a)}),b.logger_=Fn('MPC'),b.masterPlaylistLoader_.load(),b}return rl(c,b),pl(c,[{key:'setupMasterPlaylistLoaderListeners_',value:function d(){var a=this;this.masterPlaylistLoader_.on('loadedmetadata',function(){var b=a.masterPlaylistLoader_.media(),c=1.5*b.targetDuration*1e3;_l(a.masterPlaylistLoader_.master,a.masterPlaylistLoader_.media())?a.requestOptions_.timeout=0:a.requestOptions_.timeout=c,b.endList&&'none'!==a.tech_.preload()&&(a.mainSegmentLoader_.playlist(b,a.requestOptions_),a.mainSegmentLoader_.load()),Do({sourceType:a.sourceType_,segmentLoaders:{AUDIO:a.audioSegmentLoader_,SUBTITLES:a.subtitleSegmentLoader_,main:a.mainSegmentLoader_},tech:a.tech_,requestOptions:a.requestOptions_,masterPlaylistLoader:a.masterPlaylistLoader_,hls:a.hls_,master:a.master(),mediaTypes:a.mediaTypes_,blacklistCurrentPlaylist:a.blacklistCurrentPlaylist.bind(a)}),a.triggerPresenceUsage_(a.master(),b);try{a.setupSourceBuffers_()}catch(d){return kb.log.warn('Failed to create SourceBuffers',d),a.mediaSource.endOfStream('decode')}a.setupFirstPlay(),!a.mediaTypes_.AUDIO.activePlaylistLoader||a.mediaTypes_.AUDIO.activePlaylistLoader.media()?a.trigger('selectedinitialmedia'):a.mediaTypes_.AUDIO.activePlaylistLoader.one('loadedmetadata',function(){a.trigger('selectedinitialmedia')})}),this.masterPlaylistLoader_.on('loadedplaylist',function(){var b=a.masterPlaylistLoader_.media();if(!b){a.excludeUnsupportedVariants_();var c=void 0;return a.enableLowInitialPlaylist&&(c=a.selectInitialPlaylist()),c||(c=a.selectPlaylist()),a.initialMedia_=c,a.masterPlaylistLoader_.media(a.initialMedia_),void 0}if(a.useCueTags_&&a.updateAdCues_(b),a.mainSegmentLoader_.playlist(b,a.requestOptions_),a.updateDuration(),a.tech_.paused()||(a.mainSegmentLoader_.load(),a.audioSegmentLoader_&&a.audioSegmentLoader_.load()),!b.endList){var d=function f(){var b=a.seekable();0!==b.length&&a.mediaSource.addSeekableRange_(b.start(0),b.end(0))};if(a.duration()!==1/0){var e=function g(){a.duration()===1/0?d():a.tech_.one('durationchange',g)};a.tech_.one('durationchange',e)}else d()}}),this.masterPlaylistLoader_.on('error',function(){a.blacklistCurrentPlaylist(a.masterPlaylistLoader_.error)}),this.masterPlaylistLoader_.on('mediachanging',function(){a.mainSegmentLoader_.abort(),a.mainSegmentLoader_.pause()}),this.masterPlaylistLoader_.on('mediachange',function(){var b=a.masterPlaylistLoader_.media(),c=1.5*b.targetDuration*1e3;_l(a.masterPlaylistLoader_.master,a.masterPlaylistLoader_.media())?a.requestOptions_.timeout=0:a.requestOptions_.timeout=c,a.mainSegmentLoader_.playlist(b,a.requestOptions_),a.mainSegmentLoader_.load(),a.tech_.trigger({type:'mediachange',bubbles:!0})}),this.masterPlaylistLoader_.on('playlistunchanged',function(){var b=a.masterPlaylistLoader_.media(),c=a.stuckAtPlaylistEnd_(b);c&&(a.blacklistCurrentPlaylist({message:'Playlist no longer updating.'}),a.tech_.trigger('playliststuck'))}),this.masterPlaylistLoader_.on('renditiondisabled',function(){a.tech_.trigger({type:'usage',name:'hls-rendition-disabled'})}),this.masterPlaylistLoader_.on('renditionenabled',function(){a.tech_.trigger({type:'usage',name:'hls-rendition-enabled'})})}},{key:'triggerPresenceUsage_',value:function e(a,b){var c=a.mediaGroups||{},d=!0,e=Object.keys(c.AUDIO);for(var f in c.AUDIO)for(var g in c.AUDIO[f]){var h=c.AUDIO[f][g];h.uri||(d=!1)}d&&this.tech_.trigger({type:'usage',name:'hls-demuxed'}),Object.keys(c.SUBTITLES).length&&this.tech_.trigger({type:'usage',name:'hls-webvtt'}),Go.Playlist.isAes(b)&&this.tech_.trigger({type:'usage',name:'hls-aes'}),Go.Playlist.isFmp4(b)&&this.tech_.trigger({type:'usage',name:'hls-fmp4'}),e.length&&Object.keys(c.AUDIO[e[0]]).length>1&&this.tech_.trigger({type:'usage',name:'hls-alternate-audio'}),this.useCueTags_&&this.tech_.trigger({type:'usage',name:'hls-playlist-cue-tags'})}},{key:'setupSegmentLoaderListeners_',value:function f(){var a=this;this.mainSegmentLoader_.on('bandwidthupdate',function(){var b=a.selectPlaylist(),c=a.masterPlaylistLoader_.media(),d=a.tech_.buffered(),e=d.length?d.end(d.length-1)-a.tech_.currentTime():0,f=a.bufferLowWaterLine();(!c.endList||a.duration()<Hn.MAX_BUFFER_LOW_WATER_LINE||b.attributes.BANDWIDTH<c.attributes.BANDWIDTH||e>=f)&&a.masterPlaylistLoader_.media(b),
a.tech_.trigger('bandwidthupdate')}),this.mainSegmentLoader_.on('progress',function(){a.trigger('progress')}),this.mainSegmentLoader_.on('error',function(){a.blacklistCurrentPlaylist(a.mainSegmentLoader_.error())}),this.mainSegmentLoader_.on('syncinfoupdate',function(){a.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on('timestampoffset',function(){a.tech_.trigger({type:'usage',name:'hls-timestamp-offset'})}),this.audioSegmentLoader_.on('syncinfoupdate',function(){a.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on('ended',function(){a.onEndOfStream()}),this.mainSegmentLoader_.on('earlyabort',function(){a.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},Fo)}),this.mainSegmentLoader_.on('reseteverything',function(){a.tech_.trigger('hls-reset')}),this.mainSegmentLoader_.on('segmenttimemapping',function(b){a.tech_.trigger({type:'hls-segment-time-mapping',mapping:b.mapping})}),this.audioSegmentLoader_.on('ended',function(){a.onEndOfStream()})}},{key:'mediaSecondsLoaded_',value:function g(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}},{key:'load',value:function h(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}},{key:'smoothQualityChange_',value:function i(){var a=this.selectPlaylist();a!==this.masterPlaylistLoader_.media()&&(this.masterPlaylistLoader_.media(a),this.mainSegmentLoader_.resetLoader())}},{key:'fastQualityChange_',value:function j(){var a=this,b=this.selectPlaylist();b!==this.masterPlaylistLoader_.media()&&(this.masterPlaylistLoader_.media(b),this.mainSegmentLoader_.resetEverything(function(){kb.browser.IE_VERSION||kb.browser.IS_EDGE?a.tech_.setCurrentTime(a.tech_.currentTime()+.04):a.tech_.setCurrentTime(a.tech_.currentTime())}))}},{key:'play',value:function k(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.seekTo_(0),this.hasPlayed_()&&this.load();var a=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<a.start(0)?this.seekTo_(a.end(a.length-1)):void 0}}},{key:'setupFirstPlay',value:function l(){var a=this,b=this.masterPlaylistLoader_.media();if(!b||this.tech_.paused()||this.hasPlayed_())return!1;if(!b.endList){var c=this.seekable();if(!c.length)return!1;if(kb.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one('loadedmetadata',function(){a.trigger('firstplay'),a.seekTo_(c.end(0)),a.hasPlayed_=function(){return!0}}),!1;this.trigger('firstplay'),this.seekTo_(c.end(0))}return this.hasPlayed_=function(){return!0},this.load(),!0}},{key:'handleSourceOpen_',value:function m(){try{this.setupSourceBuffers_()}catch(a){return kb.log.warn('Failed to create Source Buffers',a),this.mediaSource.endOfStream('decode')}if(this.tech_.autoplay()){var b=this.tech_.play();'undefined'!=typeof b&&'function'==typeof b.then&&b.then(null,function(a){})}this.trigger('sourceopen')}},{key:'onEndOfStream',value:function n(){var a=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader&&(a=!this.mainSegmentLoader_.startingMedia_||this.mainSegmentLoader_.startingMedia_.containsVideo?a&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_),a){this.logger_('calling mediaSource.endOfStream()');try{this.mediaSource.endOfStream()}catch(b){kb.log.warn('Failed to call media source endOfStream',b)}}}},{key:'stuckAtPlaylistEnd_',value:function o(a){var b=this.seekable();if(!b.length)return!1;var c=this.syncController_.getExpiredTime(a,this.mediaSource.duration);if(null===c)return!1;var d=Go.Playlist.playlistEnd(a,c),e=this.tech_.currentTime(),f=this.tech_.buffered();if(!f.length)return Am>=d-e;var g=f.end(f.length-1);return Am>=g-e&&Am>=d-g}},{key:'blacklistCurrentPlaylist',value:function p(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},b=arguments[1],c=void 0,d=void 0;if(c=a.playlist||this.masterPlaylistLoader_.media(),b=b||a.blacklistDuration||this.blacklistDuration,!c){this.error=a;try{return this.mediaSource.endOfStream('network')}catch(e){return this.trigger('error')}}var f=1===this.masterPlaylistLoader_.master.playlists.filter(Vl).length,g=this.masterPlaylistLoader_.master.playlists;return 1===g.length?(kb.log.warn("Problem encountered with the current HLS playlist. Trying again since it is the only playlist."),this.tech_.trigger('retryplaylist'),this.masterPlaylistLoader_.load(f)):(f&&(kb.log.warn("Removing all playlists from the blacklist because the last rendition is about to be blacklisted."),g.forEach(function(a){a.excludeUntil!==1/0&&delete a.excludeUntil}),this.tech_.trigger('retryplaylist')),c.excludeUntil=Date.now()+1e3*b,this.tech_.trigger('blacklistplaylist'),this.tech_.trigger({type:'usage',name:'hls-rendition-blacklisted'}),d=this.selectPlaylist(),kb.log.warn('Problem encountered with the current HLS playlist.'+(a.message?' '+a.message:'')+' Switching to another playlist.'),this.masterPlaylistLoader_.media(d,f))}},{key:'pauseLoading',value:function q(){this.mainSegmentLoader_.pause(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.pause(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.pause()}},{key:'setCurrentTime',value:function r(a){var b=Cm(this.tech_.buffered(),a);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?b&&b.length?a:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),this.load(),void 0):0}},{key:'duration',value:function s(){return this.masterPlaylistLoader_?this.mediaSource?this.mediaSource.duration:Go.Playlist.duration(this.masterPlaylistLoader_.media()):0}},{key:'seekable',value:function t(){return this.seekable_}},{key:'onSyncInfoUpdate_',value:function u(){var a=void 0,b=void 0;if(this.masterPlaylistLoader_){var c=this.masterPlaylistLoader_.media();if(c){var d=this.syncController_.getExpiredTime(c,this.mediaSource.duration);if(null!==d&&(a=Go.Playlist.seekable(c,d),0!==a.length)){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(c=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),d=this.syncController_.getExpiredTime(c,this.mediaSource.duration),null===d)return;if(b=Go.Playlist.seekable(c,d),0===b.length)return}var e=void 0,f=void 0;this.seekable_&&this.seekable_.length&&(e=this.seekable_.end(0),f=this.seekable_.start(0)),b?b.start(0)>a.end(0)||a.start(0)>b.end(0)?this.seekable_=a:this.seekable_=kb.createTimeRanges([[b.start(0)>a.start(0)?b.start(0):a.start(0),b.end(0)<a.end(0)?b.end(0):a.end(0)]]):this.seekable_=a,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===e&&this.seekable_.start(0)===f||(this.logger_('seekable updated ['+Fm(this.seekable_)+']'),this.tech_.trigger('seekablechanged'))}}}}},{key:'updateDuration',value:function v(){var a=this,b=this.mediaSource.duration,c=Go.Playlist.duration(this.masterPlaylistLoader_.media()),d=this.tech_.buffered(),e=function f(){a.logger_('Setting duration from '+a.mediaSource.duration+' => '+c);try{a.mediaSource.duration=c}catch(b){kb.log.warn('Failed to set media source duration',b)}a.tech_.trigger('durationchange'),a.mediaSource.removeEventListener('sourceopen',f)};d.length>0&&(c=Math.max(c,d.end(d.length-1))),b!==c&&('open'!==this.mediaSource.readyState?this.mediaSource.addEventListener('sourceopen',e):e())}},{key:'dispose',value:function w(){var a=this;this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),['AUDIO','SUBTITLES'].forEach(function(b){var c=a.mediaTypes_[b].groups;for(var d in c)c[d].forEach(function(a){a.playlistLoader&&a.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose()}},{key:'master',value:function x(){return this.masterPlaylistLoader_.master}},{key:'media',value:function y(){return this.masterPlaylistLoader_.media()||this.initialMedia_}},{key:'setupSourceBuffers_',value:function z(){var a=this.masterPlaylistLoader_.media(),b=void 0;if(a&&'open'===this.mediaSource.readyState){if(b=en(this.masterPlaylistLoader_.master,a),b.length<1)return this.error='No compatible SourceBuffer configuration for the variant stream:'+a.resolvedUri,this.mediaSource.endOfStream('decode');this.configureLoaderMimeTypes_(b),this.excludeIncompatibleVariants_(a)}}},{key:'configureLoaderMimeTypes_',value:function A(a){var b=a.length>1&&-1===a[0].indexOf(',')&&a[0]!==a[1]?new kb.EventTarget:null;this.mainSegmentLoader_.mimeType(a[0],b),a[1]&&this.audioSegmentLoader_.mimeType(a[1],b)}},{key:'excludeUnsupportedVariants_',value:function B(){this.master().playlists.forEach(function(b){b.attributes.CODECS&&a.MediaSource&&a.MediaSource.isTypeSupported&&!a.MediaSource.isTypeSupported('video/mp4; codecs="'+_m(b.attributes.CODECS)+'"')&&(b.excludeUntil=1/0)})}},{key:'excludeIncompatibleVariants_',value:function C(a){var b=2,c=null,d=void 0;a.attributes.CODECS&&(d=$m(a.attributes.CODECS),c=d.videoCodec,b=d.codecCount),this.master().playlists.forEach(function(a){var d={codecCount:2,videoCodec:null};a.attributes.CODECS&&(d=$m(a.attributes.CODECS)),d.codecCount!==b&&(a.excludeUntil=1/0),d.videoCodec!==c&&(a.excludeUntil=1/0)})}},{key:'updateAdCues_',value:function D(a){var b=0,c=this.seekable();c.length&&(b=c.start(0)),oo(a,this.cueTagsTrack_,b)}},{key:'goalBufferLength',value:function E(){var a=this.tech_.currentTime(),b=Hn.GOAL_BUFFER_LENGTH,c=Hn.GOAL_BUFFER_LENGTH_RATE,d=Math.max(b,Hn.MAX_GOAL_BUFFER_LENGTH);return Math.min(b+a*c,d)}},{key:'bufferLowWaterLine',value:function F(){var a=this.tech_.currentTime(),b=Hn.BUFFER_LOW_WATER_LINE,c=Hn.BUFFER_LOW_WATER_LINE_RATE,d=Math.max(b,Hn.MAX_BUFFER_LOW_WATER_LINE);return Math.min(b+a*c,d)}}]),c}(kb.EventTarget),Ko=function lx(a,b,c){return function(d){var e=a.master.playlists[b],f=Ul(e),g=Vl(e);return'undefined'==typeof d?g:(d?delete e.disabled:e.disabled=!0,d===g||f||(c(),d?a.trigger('renditionenabled'):a.trigger('renditiondisabled')),d)}},Lo=function mx(a,b,c){ol(this,mx);var d=a.masterPlaylistController_,e=a.options_.smoothQualityChange,f=e?'smooth':'fast',g=d[f+'QualityChange_'].bind(d);if(b.attributes.RESOLUTION){var h=b.attributes.RESOLUTION;this.width=h.width,this.height=h.height}this.bandwidth=b.attributes.BANDWIDTH,this.id=c,this.enabled=Ko(a.playlists,b.uri,g)},Mo=function nx(a){var b=a.playlists;a.representations=function(){return b.master.playlists.filter(function(a){return!Ul(a)}).map(function(b,c){return new Lo(a,b,b.uri)})}},No=['seeking','seeked','pause','playing','error'],Oo=function(){function b(c){var d=this;ol(this,b),this.tech_=c.tech,this.seekable=c.seekable,this.seekTo=c.seekTo,this.allowSeeksWithinUnsafeLiveWindow=c.allowSeeksWithinUnsafeLiveWindow,this.media=c.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=Fn('PlaybackWatcher'),this.logger_('initialize');var e=function i(){return d.monitorCurrentTime_()},f=function j(){return d.techWaiting_()},g=function k(){return d.cancelTimer_()},h=function l(){return d.fixesBadSeeks_()};this.tech_.on('seekablechanged',h),this.tech_.on('waiting',f),this.tech_.on(No,g),this.tech_.on('canplay',e),this.dispose=function(){d.logger_('dispose'),d.tech_.off('seekablechanged',h),d.tech_.off('waiting',f),d.tech_.off(No,g),d.tech_.off('canplay',e),d.checkCurrentTimeTimeout_&&a.clearTimeout(d.checkCurrentTimeTimeout_),d.cancelTimer_()}}return pl(b,[{key:'monitorCurrentTime_',value:function c(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&a.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=a.setTimeout(this.monitorCurrentTime_.bind(this),250)}},{key:'checkCurrentTime_',value:function d(){if(this.tech_.seeking()&&this.fixesBadSeeks_())return this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),void 0;if(!this.tech_.paused()&&!this.tech_.seeking()){var a=this.tech_.currentTime(),b=this.tech_.buffered();return this.lastRecordedTime===a&&(!b.length||a+Am>=b.end(b.length-1))?this.techWaiting_():(this.consecutiveUpdates>=5&&a===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):a===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=a),void 0)}}},{key:'cancelTimer_',value:function e(){this.consecutiveUpdates=0,this.timer_&&(this.logger_('cancelTimer_'),clearTimeout(this.timer_)),this.timer_=null}},{key:'fixesBadSeeks_',value:function f(){var a=this.tech_.seeking();if(!a)return!1;var b=this.seekable(),c=this.tech_.currentTime(),d=this.afterSeekableWindow_(b,c,this.media(),this.allowSeeksWithinUnsafeLiveWindow),e=void 0;if(d){var f=b.end(b.length-1);e=f}if(this.beforeSeekableWindow_(b,c)){var g=b.start(0);e=g+Am}return'undefined'!=typeof e?(this.logger_('Trying to seek outside of seekable at time '+c+' with '+('seekable range '+Fm(b)+'. Seeking to ')+(e+'.')),this.seekTo(e),!0):!1}},{key:'waiting_',value:function g(){if(!this.techWaiting_()){var a=this.tech_.currentTime(),b=this.tech_.buffered(),c=Cm(b,a);return c.length&&a+3<=c.end(0)?(this.cancelTimer_(),this.seekTo(a),this.logger_('Stopped at '+a+' while inside a buffered region '+('['+c.start(0)+' -> '+c.end(0)+']. Attempting to resume ')+'playback by seeking to the current time.'),this.tech_.trigger({type:'usage',name:'hls-unknown-waiting'}),void 0):void 0}}},{key:'techWaiting_',value:function h(){var a=this.seekable(),b=this.tech_.currentTime();if(this.tech_.seeking()&&this.fixesBadSeeks_())return!0;if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(a,b)){var c=a.end(a.length-1);return this.logger_('Fell out of live window at time '+b+". Seeking to live point (seekable end) "+c),this.cancelTimer_(),this.seekTo(c),this.tech_.trigger({type:'usage',name:'hls-live-resync'}),!0}var d=this.tech_.buffered(),e=Dm(d,b);if(this.videoUnderflow_(e,d,b))return this.cancelTimer_(),this.seekTo(b),this.tech_.trigger({type:'usage',name:'hls-video-underflow'}),!0;if(e.length>0){var f=e.start(0)-b;return this.logger_('Stopped at '+b+', setting timer for '+f+", seeking to "+e.start(0)),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*f,b),!0}return!1}},{key:'afterSeekableWindow_',value:function i(a,b,c){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:!1;if(!a.length)return!1;var e=a.end(a.length-1)+Am,f=!c.endList;return f&&d&&(e=a.end(a.length-1)+3*c.targetDuration),b>e}},{key:'beforeSeekableWindow_',value:function j(a,b){return!!(a.length&&a.start(0)>0&&b<a.start(0)-Am)}},{key:'videoUnderflow_',value:function k(a,b,c){if(0===a.length){var d=this.gapFromVideoUnderflow_(b,c);if(d)return this.logger_('Encountered a gap in video from '+d.start+' to '+d.end+". Seeking to current time "+c),!0}return!1}},{key:'skipTheGap_',value:function l(a){var b=this.tech_.buffered(),c=this.tech_.currentTime(),d=Dm(b,c);this.cancelTimer_(),0!==d.length&&c===a&&(this.logger_('skipTheGap_:','currentTime:',c,'scheduled currentTime:',a,'nextRange start:',d.start(0)),this.seekTo(d.start(0)+zm),this.tech_.trigger({type:'usage',name:'hls-gap-skip'}))}},{key:'gapFromVideoUnderflow_',value:function m(a,b){for(var c=Em(a),d=0;d<c.length;d++){var e=c.start(d),f=c.end(d);if(4>b-e&&b-e>2)return{start:e,end:f}}return null}}]),b}(),Po={errorInterval:30,getSource:function ox(a){var b=this.tech({IWillNotUseThisInPlugins:!0}),c=b.currentSource_;return a(c)}},Qo=function px(a,b){var c=0,d=0,e=kb.mergeOptions(Po,b);a.ready(function(){a.trigger({type:'usage',name:'hls-error-reload-initialized'})});var f=function k(){d&&a.currentTime(d)},g=function l(b){null!==b&&void 0!==b&&(d=a.duration()!==1/0&&a.currentTime()||0,a.one('loadedmetadata',f),a.src(b),a.trigger({type:'usage',name:'hls-error-reload'}),a.play())},h=function m(){return Date.now()-c<1e3*e.errorInterval?(a.trigger({type:'usage',name:'hls-error-reload-canceled'}),void 0):e.getSource&&'function'==typeof e.getSource?(c=Date.now(),e.getSource.call(a,g)):(kb.log.error('ERROR: reloadSourceOnError - The option getSource must be a function!'),void 0)},i=function n(){a.off('loadedmetadata',f),a.off('error',h),a.off('dispose',n)},j=function o(b){i(),px(a,b)};a.on('error',h),a.on('dispose',i),a.reloadSourceOnError=j},Ro=function qx(a){Qo(this,a)},So="1.10.6";kb.use('*',function(a){return{setSource:function b(a,c){c(null,a)},setCurrentTime:function c(b){return a.vhs&&a.currentSource().src===a.vhs.source_.src&&a.vhs.setCurrentTime(b),b},play:function d(){a.vhs&&a.currentSource().src===a.vhs.source_.src&&a.vhs.setCurrentTime(a.tech_.currentTime())}}});var To={PlaylistLoader:El,Playlist:am,Decrypter:ll,AsyncStream:il,decrypt:kl,utils:pm,STANDARD_PLAYLIST_SELECTOR:Zn,INITIAL_PLAYLIST_SELECTOR:_n,comparePlaylistBandwidth:Wn,comparePlaylistResolution:Xn,xhr:dm()};['GOAL_BUFFER_LENGTH','MAX_GOAL_BUFFER_LENGTH','GOAL_BUFFER_LENGTH_RATE','BUFFER_LOW_WATER_LINE','MAX_BUFFER_LOW_WATER_LINE','BUFFER_LOW_WATER_LINE_RATE','BANDWIDTH_VARIANCE'].forEach(function(a){Object.defineProperty(To,a,{get:function b(){return kb.log.warn('using Hls.'+a+' is UNSAFE be sure you know what you are doing'),Hn[a]},set:function c(b){return kb.log.warn('using Hls.'+a+' is UNSAFE be sure you know what you are doing'),'number'!=typeof b||0>b?(kb.log.warn('value of Hls.'+a+' must be greater than or equal to 0'),void 0):(Hn[a]=b,void 0)}})});var Uo='videojs-vhs',Vo=function rx(a){var b=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i;if(b.test(a))return'hls';var c=/^application\/dash\+xml/i;return c.test(a)?'dash':null},Wo=function sx(a,b){for(var c=b.media(),d=-1,e=0;e<a.length;e++)if(a[e].id===c.uri){d=e;break}a.selectedIndex_=d,a.trigger({selectedIndex:d,type:'change'})},Xo=function tx(a,b){b.representations().forEach(function(b){a.addQualityLevel(b)}),Wo(a,b.playlists)};To.canPlaySource=function(){return kb.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Yo=function ux(a,b,c){if(!a)return a;var d={};for(var e in a)d[e]={audioContentType:'audio/mp4; codecs="'+c.attributes.CODECS+'"',videoContentType:'video/mp4; codecs="'+b.attributes.CODECS+'"'},b.contentProtection&&b.contentProtection[e]&&b.contentProtection[e].pssh&&(d[e].pssh=b.contentProtection[e].pssh),'string'==typeof a[e]&&(d[e].url=a[e]);return kb.mergeOptions(a,d)},Zo=function vx(a){if('dash'===a.options_.sourceType){var b=kb.players[a.tech_.options_.playerId];if(b.eme){var c=Yo(a.source_.keySystems,a.playlists.media(),a.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader.media());c&&(b.currentSource().keySystems=c,b.eme.initializeMediaKeys&&b.eme.initializeMediaKeys())}}},$o=function wx(){if(!window.localStorage)return null;var a=window.localStorage.getItem(Uo);if(!a)return null;try{return JSON.parse(a)}catch(b){return null}},_o=function xx(a){if(!window.localStorage)return!1;var b=$o();b=b?kb.mergeOptions(b,a):a;try{window.localStorage.setItem(Uo,JSON.stringify(b))}catch(c){return!1}return b};To.supportsNativeHls=function(){var a=b.createElement('video');if(!kb.getTech('Html5').isSupported())return!1;var c=['application/vnd.apple.mpegurl','audio/mpegurl','audio/x-mpegurl','application/x-mpegurl','video/x-mpegurl','video/mpegurl','application/mpegurl'];return c.some(function(b){return/maybe|probably/i.test(a.canPlayType(b))})}(),To.supportsNativeDash=function(){return kb.getTech('Html5').isSupported()?/maybe|probably/i.test(b.createElement('video').canPlayType('application/dash+xml')):!1}(),To.supportsTypeNatively=function(a){return'hls'===a?To.supportsNativeHls:'dash'===a?To.supportsNativeDash:!1},To.isSupported=function(){return kb.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var ap=kb.getComponent('Component'),bp=function(a){function c(a,d,e){ol(this,c);var f=sl(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,d,e.hls));if(d.options_&&d.options_.playerId){var g=kb(d.options_.playerId);g.hasOwnProperty('hls')||Object.defineProperty(g,'hls',{get:function h(){return kb.log.warn('player.hls is deprecated. Use player.tech().hls instead.'),d.trigger({type:'usage',name:'hls-player-access'}),f},configurable:!0}),g.vhs=f,g.dash=f,f.player_=g}if(f.tech_=d,f.source_=a,f.stats={},f.setOptions_(),f.options_.overrideNative&&d.overrideNativeAudioTracks&&d.overrideNativeVideoTracks)d.overrideNativeAudioTracks(!0),d.overrideNativeVideoTracks(!0);else if(f.options_.overrideNative&&(d.featuresNativeVideoTracks||d.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return f.on(b,['fullscreenchange','webkitfullscreenchange','mozfullscreenchange','MSFullscreenChange'],function(a){var c=b.fullscreenElement||b.webkitFullscreenElement||b.mozFullScreenElement||b.msFullscreenElement;c&&c.contains(f.tech_.el())&&f.masterPlaylistController_.smoothQualityChange_()}),f.on(f.tech_,'seeking',function(){0===this.tech_.currentTime()&&this.tech_.player_.loop()&&this.setCurrentTime(0)}),f.on(f.tech_,'error',function(){this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()}),f.on(f.tech_,'play',f.play),f}return rl(c,a),pl(c,[{key:'setOptions_',value:function d(){var a=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=this.options_.handleManifestRedirects||!1,this.options_.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions!==!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage='undefined'!=typeof this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,'number'!=typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),'number'!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var b=$o();b&&b.bandwidth&&(this.options_.bandwidth=b.bandwidth,this.tech_.trigger({type:'usage',name:'hls-bandwidth-from-local-storage'})),b&&b.throughput&&(this.options_.throughput=b.throughput,this.tech_.trigger({type:'usage',name:'hls-throughput-from-local-storage'}))}'number'!=typeof this.options_.bandwidth&&(this.options_.bandwidth=Hn.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Hn.INITIAL_BANDWIDTH,['withCredentials','limitRenditionByPlayerDimensions','bandwidth','smoothQualityChange','customTagParsers','customTagMappers','handleManifestRedirects','cacheEncryptionKeys'].forEach(function(b){'undefined'!=typeof a.source_[b]&&(a.options_[b]=a.source_[b])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions}},{key:'src',value:function e(a,b){var c=this;a&&(this.setOptions_(),this.options_.url=this.source_.src,this.options_.tech=this.tech_,this.options_.externHls=To,this.options_.sourceType=Vo(b),this.options_.seekTo=function(a){c.tech_.setCurrentTime(a),c.setCurrentTime(a)},this.masterPlaylistController_=new Jo(this.options_),this.playbackWatcher_=new Oo(kb.mergeOptions(this.options_,{seekable:function d(){return c.seekable()},media:function e(){return c.masterPlaylistController_.media()}})),this.masterPlaylistController_.on('error',function(){var a=kb.players[c.tech_.options_.playerId];a.error(c.masterPlaylistController_.error)}),this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):To.STANDARD_PLAYLIST_SELECTOR.bind(this),this.masterPlaylistController_.selectInitialPlaylist=To.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function f(){return this.masterPlaylistController_.selectPlaylist},set:function g(a){this.masterPlaylistController_.selectPlaylist=a.bind(this)}},throughput:{get:function h(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function i(a){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=a,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function j(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth},set:function k(a){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=a,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function l(){var a=1/(this.bandwidth||1),b=void 0;b=this.throughput>0?1/this.throughput:0;var c=Math.floor(1/(a+b));return c},set:function m(){kb.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function n(){return c.bandwidth||0},enumerable:!0},mediaRequests:{get:function o(){return c.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function p(){return c.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function q(){return c.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function r(){return c.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function s(){return c.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function t(){return c.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function u(){return c.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},buffered:{get:function v(){return Hm(c.tech_.buffered())},enumerable:!0},currentTime:{get:function w(){return c.tech_.currentTime()},enumerable:!0},currentSource:{get:function x(){return c.tech_.currentSource_},enumerable:!0},currentTech:{get:function y(){return c.tech_.name_},enumerable:!0},duration:{get:function z(){return c.tech_.duration()},enumerable:!0},master:{get:function A(){return c.playlists.master},enumerable:!0},playerDimensions:{get:function B(){return c.tech_.currentDimensions()},enumerable:!0},seekable:{get:function C(){return Hm(c.tech_.seekable())},enumerable:!0},timestamp:{get:function D(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function E(){return c.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one('canplay',this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on('bandwidthupdate',function(){c.options_.useBandwidthFromLocalStorage&&_o({bandwidth:c.bandwidth,throughput:Math.round(c.throughput)})}),this.masterPlaylistController_.on('selectedinitialmedia',function(){Mo(c),Zo(c)}),this.on(this.masterPlaylistController_,'progress',function(){this.tech_.trigger('progress')}),this.tech_.ready(function(){return c.setupQualityLevels_()}),this.tech_.el()&&this.tech_.src(kb.URL.createObjectURL(this.masterPlaylistController_.mediaSource)))}},{key:'setupQualityLevels_',value:function f(){var a=this,b=kb.players[this.tech_.options_.playerId];b&&b.qualityLevels&&(this.qualityLevels_=b.qualityLevels(),this.masterPlaylistController_.on('selectedinitialmedia',function(){Xo(a.qualityLevels_,a)}),this.playlists.on('mediachange',function(){Wo(a.qualityLevels_,a.playlists)}))}},{key:'play',value:function g(){this.masterPlaylistController_.play()}},{key:'setCurrentTime',value:function h(a){this.masterPlaylistController_.setCurrentTime(a)}},{key:'duration',value:function i(){return this.masterPlaylistController_.duration()}},{key:'seekable',value:function j(){return this.masterPlaylistController_.seekable()}},{key:'dispose',value:function k(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.hls&&delete this.tech_.hls,ql(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),'dispose',this).call(this)}},{key:'convertToProgramTime',value:function l(a,b){return xm({playlist:this.masterPlaylistController_.media(),time:a,callback:b})}},{key:'seekToProgramTime',value:function m(a,b){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:!0,d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2;return ym({programTime:a,playlist:this.masterPlaylistController_.media(),retryCount:d,pauseAfterSeek:c,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:b})}}]),c}(ap),cp={name:'videojs-http-streaming',VERSION:So,canHandleSource:function yx(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=kb.mergeOptions(kb.options,b);return cp.canPlayType(a.type,c)},handleSource:function zx(a,b){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},d=kb.mergeOptions(kb.options,c);return b.hls=new bp(a,b,d),b.hls.xhr=dm(),b.hls.src(a.src,a.type),b.hls},canPlayType:function Ax(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=kb.mergeOptions(kb.options,b),d=c.hls.overrideNative,e=Vo(a),f=e&&(!To.supportsTypeNatively(e)||d);return f?'maybe':''}};return'undefined'!=typeof kb.MediaSource&&'undefined'!=typeof kb.URL||(kb.MediaSource=un,kb.URL=vn),un.supportsNativeMediaSources()&&kb.getTech('Html5').registerSourceHandler(cp,0),kb.HlsHandler=bp,kb.HlsSourceHandler=cp,kb.Hls=To,kb.use||kb.registerComponent('Hls',To),kb.options.hls=kb.options.hls||{},kb.registerPlugin?kb.registerPlugin('reloadSourceOnError',Ro):kb.plugin('reloadSourceOnError',Ro),kb}),define("addVideoJsInGlobalScope",["videojs"],function(a){window.videojs=a}),define('transcript',['global/window','videojs'],function(a,b){'use strict';!function(){for(var b=0,c=['ms','moz','webkit','o'],d=0;d<c.length&&!a.requestAnimationFrame;++d)a.requestAnimationFrame=a[c[d]+'RequestAnimationFrame'],a.cancelAnimationFrame=a[c[d]+'CancelAnimationFrame']||a[c[d]+'CancelRequestAnimationFrame'];a.requestAnimationFrame||(a.requestAnimationFrame=function(c,d){var e=(new Date).getTime(),f=Math.max(0,16-(e-b)),g=a.setTimeout(function(){c(e+f)},f);return b=e+f,g}),a.cancelAnimationFrame||(a.cancelAnimationFrame=function(a){clearTimeout(a)})}(),'function'!=typeof Object.create&&(Object.create=function(){var a=function(){};return function(b){if(arguments.length>1)throw Error('Second argument not supported');if('object'!=typeof b)throw TypeError('Argument must be an object');a.prototype=b;var c=new a;return a.prototype=null,c}}()),Array.prototype.forEach||(Array.prototype.forEach=function(a,b){var c,d;if(null==this)throw new TypeError(' this is null or not defined');var e=Object(this),f=e.length>>>0;if("function"!=typeof a)throw new TypeError(a+' is not a function');for(arguments.length>1&&(c=b),d=0;f>d;){var g;d in e&&(g=e[d],a.call(c,g,d,e)),d++}}),"document"in self&&!("classList"in document.createElement("_"))&&!function(a){if("Element"in a){var b="classList",c="prototype",d=a.Element[c],e=Object,f=String[c].trim||function(){return this.replace(/^\s+|\s+$/g,"")},g=Array[c].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1},h=function(a,b){this.name=a,this.code=DOMException[a],this.message=b},i=function(a,b){if(""===b)throw new h("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(b))throw new h("INVALID_CHARACTER_ERR","String contains an invalid character");return g.call(a,b)},j=function(a){
for(var b=f.call(a.getAttribute("class")||""),c=b?b.split(/\s+/):[],d=0,e=c.length;e>d;d++)this.push(c[d]);this._updateClassName=function(){a.setAttribute("class",this.toString())}},k=j[c]=[],l=function(){return new j(this)};if(h[c]=Error[c],k.item=function(a){return this[a]||null},k.contains=function(a){return a+="",-1!==i(this,a)},k.add=function(){var a=arguments,b=0,c=a.length,d,e=!1;do d=a[b]+"",-1===i(this,d)&&(this.push(d),e=!0);while(++b<c);e&&this._updateClassName()},k.remove=function(){var a=arguments,b=0,c=a.length,d,e=!1;do{d=a[b]+"";var f=i(this,d);-1!==f&&(this.splice(f,1),e=!0)}while(++b<c);e&&this._updateClassName()},k.toggle=function(a,b){a+="";var c=this.contains(a),d=c?b!==!0&&"remove":b!==!1&&"add";return d&&this[d](a),!c},k.toString=function(){return this.join(" ")},e.defineProperty){var m={get:l,enumerable:!0,configurable:!0};try{e.defineProperty(d,b,m)}catch(n){-2146823252===n.number&&(m.enumerable=!1,e.defineProperty(d,b,m))}}else e[c].__defineGetter__&&d.__defineGetter__(b,l)}}(self);var c={};c.settings={},c.prefix='transcript',c.player=this;var d={autoscroll:!0,clickArea:'text',showTitle:!0,showTrackSelector:!0,followPlayerTrack:!0,stopScrollWhenInUse:!0},e=function(a){return{secondsToTime:function(a){var b=Math.floor(a/3600),c=Math.floor(a%3600/60),d=Math.floor(a%60);return d=10>d?'0'+d:d,c=b>0&&10>c?'0'+c:c,b>0?b+':'+c+':'+d:c+':'+d},localize:function(a){return a},createEl:function(b,c){c=c||'';var d=document.createElement(b);return d.className=a.prefix+c,d},extend:function(a){var b=typeof a;if(!('function'===b||'object'===b&&a))return a;for(var c,d,e=1,f=arguments.length;f>e;e++){c=arguments[e];for(d in c)a[d]=c[d]}return a}}}(c),f={handlers_:[],on:function l(a,b,c){if('function'!=typeof c)throw new TypeError('Callback is not a function.');this.handlers_.push([a,b,c])},trigger:function m(a,b){this.handlers_.forEach(function(c){c[0]===a&&c[1]===b&&c[2].apply()})}},g=function(a){var b=function(a){var b=this;a.addEventListener('scroll',function(){b.isAutoScrolling?b.isAutoScrolling=!1:(b.userIsScrolling=!0,a.classList.add('is-inuse'))}),a.addEventListener('mouseenter',function(){b.mouseIsOverTranscript=!0}),a.addEventListener('mouseleave',function(){b.mouseIsOverTranscript=!1,setTimeout(function(){b.mouseIsOverTranscript||(b.userIsScrolling=!1,a.classList.remove('is-inuse'))},1e3)})},c=function(a,c){return this.element=a,this.userIsScrolling=!1,this.mouseIsOverTranscript=!0,this.isAutoScrolling=!0,b.call(this,this.element),this},d=function(a,b,c,d){return b+c*Math.sin(Math.min(1,a/d)*(Math.PI/2))},e=function(a,b,c){var e=Date.now(),f=a.scrollTop,g=this;b=Math.max(0,b),b=Math.min(a.scrollHeight-a.clientHeight,b);var h=b-f,i=function(){var j=Date.now(),k=j-e;g.isAutoScrolling=!0,a.scrollTop=d(k,f,h,c),a.scrollTop!==b&&requestAnimationFrame(i,a)};requestAnimationFrame(i,a)},f=function(a){if(this.canScroll()){var b=a.parentElement,c=b.offsetTop+b.clientHeight,d=a.offsetTop+a.clientHeight,f=a.offsetTop-b.offsetTop,g=a.offsetTop+a.clientHeight-b.offsetTop,h;f<b.scrollTop?h=a.offsetTop-b.offsetTop:g>b.scrollTop+b.clientHeight&&(h=d-c),void 0!==h&&b.scrollTop!==h&&e.call(this,b,h,400)}},g=function(){var a=this.element;return a.scrollHeight>a.offsetHeight},h=function(){return this.userIsScrolling};return{init:c,to:f,canScroll:g,inUse:h}}(c),h=function(a){return Object.create(g).init(a)},i=function(a){var b;return{get:function(){var a=[],b,d;for(c.tracks=c.player.textTracks(),b=0;b<c.tracks.length;b++)d=c.tracks[b],'captions'!==d.kind&&'subtitles'!==d.kind||a.push(d);return a},active:function(a){var d,e;for(d=0;d<c.tracks.length;d++)if(e=c.tracks[d],'showing'===e.mode)return b=e,e;return b||a[0]}}}(c),j=function(b){var c={};c.element={},c.body={};var d=function(a,b){f.on(this,a,b)},g=function(a){f.trigger(this,a)},i=function(){var a=e.createEl('header','-header');return a.textContent=e.localize('Transcript'),a},j=function(){var a=e.createEl('select','-selector');return b.validTracks.forEach(function(b,c){var d=document.createElement('option');d.value=c,d.textContent=b.label+' ('+b.language+')',a.appendChild(d)}),a.addEventListener('change',function(a){o(document.querySelector('#'+b.prefix+'-'+b.player.id()+' option:checked').value),g('trackchanged')}),a},k=function(a){var c=a.target.classList,d=a.target.getAttribute('data-begin')||a.target.parentElement.getAttribute('data-begin');void 0!==d&&null!==d&&('line'===b.settings.clickArea||'timestamp'===b.settings.clickArea&&c.contains(b.prefix+'-timestamp')||'text'===b.settings.clickArea&&c.contains(b.prefix+'-text'))&&b.player.currentTime(d)},l=function(a){var b=e.createEl('div','-line'),c=e.createEl('span','-timestamp'),d=e.createEl('span','-text');return b.setAttribute('data-begin',a.startTime),c.textContent=e.secondsToTime(a.startTime),d.innerHTML=a.text,b.appendChild(c),b.appendChild(d),b},m=function(d){if('object'!=typeof d){var f=parseInt(d);d=b.player.textTracks()[f+1]}var g=e.createEl('div','-body'),i,j,n=document.createDocumentFragment();if(d&&!d.activeCues)'showing'!==d.mode&&(d.mode='hidden'),a.setTimeout(function(){m(d)},100);else{var o=d.cues;for(j=0;j<o.length;j++)i=l(o[j]),i.tabIndex=j,n.appendChild(i);g.innerHTML='',g.appendChild(n),g.setAttribute('lang',d.language),g.scroll=h(g),g.addEventListener('click',k),c.element.replaceChild(g,c.body),c.body=g}},n=function(){var a=document.createElement('div');if(c.element=a,a.setAttribute('id',b.prefix+'-'+b.player.id()),b.settings.showTitle){var d=i();a.appendChild(d)}if(b.settings.showTrackSelector){var f=j();a.appendChild(f)}return c.body=e.createEl('div','-body'),a.appendChild(c.body),o(b.currentTrack),this},o=function(a,b){m(a,b)},p=function(a){var d,e,f,g,h,i=c.body.children;for(e=0;e<i.length;e++)f=i[e],g=f.getAttribute('data-begin'),h=e<i.length-1?i[e+1].getAttribute('data-begin'):b.player.duration()||1/0,a>g&&h>a?f.classList.contains('is-active')||(f.classList.add('is-active'),!b.settings.autoscroll||b.settings.stopScrollWhenInUse&&c.body.scroll.inUse()||c.body.scroll.to(f)):f.classList.remove('is-active')},q=function(){return c.element};return{create:n,setTrack:o,setCue:p,el:q,on:d,trigger:g}}(c),k=function(a){c.player=this,c.validTracks=i.get(),c.currentTrack=i.active(c.validTracks),c.settings=b.mergeOptions(d,a),c.widget=j.create();var e=function(){c.widget.setCue(c.player.currentTime())},f=function(){c.currentTrack=i.active(c.validTracks),c.widget.setTrack(c.currentTrack)};if(!(c.validTracks.length>0))throw new Error('videojs-transcript: No tracks found!');return f(),c.player.on('timeupdate',e),c.settings.followPlayerTrack&&(c.player.on('captionstrackchange',f),c.player.on('subtitlestrackchange',f)),{el:function(){return c.widget.el()},setTrack:c.widget.setTrack}};b.plugin('transcript',k)}),define('device-detector',[],function(){function a(){const a={};return navigator&&navigator.userAgent&&b(a,navigator.appVersion),a}function b(a,b){const c='PHONE',d='TABLET',e='DESKTOP',f='UNKNOWN',g=/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/,h=/(IEMobile|iPhone|Android)/,i=/(Macintosh|Mac OS|Windows|Linux)/;g.test(b)?a.device=d:h.test(b)?a.device=c:i.test(b)?a.device=e:a.device=f}return a}),define('videoPlayerUtil',['jquery','videojs','url','device-detector'],function(a,b,c,d){function e(a){a.playbackDuration=0,a.visitorDevice=d().device,n(a),s(a),f(a),h(a),g(a),i(a)}function f(a){const b='BUFFERING';document.getElementById(a.playerId).addEventListener(u,function(){t(a,b)})}function g(a){const b='PAUSE';document.getElementById(a.playerId).addEventListener(w,function(){a.playbackDuration=a.playbackDuration+q(a.startTime.getTime()),t(a,b)})}function h(a){const b='PLAY';document.getElementById(a.playerId).addEventListener(v,function(){k(),a.startTime=new Date,t(a,b)})}function i(a){document.getElementById(a.playerId).addEventListener(x,function(){j(a)})}function j(a){const b='ENDED',c=p(a);a.playbackDuration=0,a.startTime=0,t(a,b,c)}function k(){const b=a('.vjs-subs-caps-button .vjs-menu'),c='.vjs-icon-placeholder';b.find(c).each(function(b,c){a(c).remove()})}function l(a){const c=b(a.playerId);var d=0;return c?m(c.duration(),c.currentTime()):d}function m(a,b){var c=0;const d=100;return a&&b&&a>0&&(c=Math.floor(b/a*d)),c}function n(a){a.visitorCountryCode=window.visitorCountryCode||o(a)}function o(b){const c='https://'+b.ipLocatorHost,d='html',e='GET',f=function(){};a.ajax({type:e,url:c,dataType:d,beforeSend:f,success:function(a){window.visitorCountryCode=a}}),window.visitorCountryCode='ERR'}function p(a){return{completion:l(a),countryCode:window.visitorCountryCode,startTime:a.startTime.getTime(),duration:a.playbackDuration,deviceType:a.visitorDevice}}function q(a){return Math.floor((new Date).getTime()-a)}function r(a){return a.startTime&&0!==a.startTime}function s(b){a(window).on(A,function(){r(b)&&j(b),clearPlayerCookies(b.videoID)})}function t(b,d,e){var f={};const g='POST',h='/',i={type:g,url:c.v2Url(y)+b.videoID+h+d};e&&(f=JSON.stringify(e)),i.data=f,i.contentType=z,a.ajax(i)}const u='loadStart',v='playing',w='pause',x='ended',y='/videos/stats/',z='application/json',A='beforeunload',B={registerVideoPlayerEventHandlers:e};return B}),!function(a){if("object"==typeof exports)module.exports=a();else if("function"==typeof define&&define.amd)define('querystring',a);else{var b;"undefined"!=typeof window?b=window:"undefined"!=typeof global?b=global:"undefined"!=typeof self&&(b=self),b.querystring=a()}}(function(){var a,b,c;return function d(a,b,c){function e(g,h){if(!b[g]){if(!a[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=b[g]={exports:{}};a[g][0].call(j.exports,function(b){var c=a[g][1][b];return e(c?c:b)},j,j.exports,d,a,b,c)}return b[g].exports}for(var f="function"==typeof require&&require,g=0;g<c.length;g++)e(c[g]);return e}({1:[function(a,b,c){function d(a,b){return Object.prototype.hasOwnProperty.call(a,b)}b.exports=function(a,b,c,f){b=b||'&',c=c||'=';var g={};if('string'!=typeof a||0===a.length)return g;var h=/\+/g;a=a.split(b);var i=1e3;f&&'number'==typeof f.maxKeys&&(i=f.maxKeys);var j=a.length;i>0&&j>i&&(j=i);for(var k=0;j>k;++k){var l=a[k].replace(h,'%20'),m=l.indexOf(c),n,o,p,q;m>=0?(n=l.substr(0,m),o=l.substr(m+1)):(n=l,o=''),p=decodeURIComponent(n),q=decodeURIComponent(o),d(g,p)?e(g[p])?g[p].push(q):g[p]=[g[p],q]:g[p]=q}return g};var e=Array.isArray||function(a){return'[object Array]'===Object.prototype.toString.call(a)}},{}],2:[function(a,b,c){function d(a,b){if(a.map)return a.map(b);for(var c=[],d=0;d<a.length;d++)c.push(b(a[d],d));return c}var e=function(a){switch(typeof a){case'string':return a;case'boolean':return a?'true':'false';case'number':return isFinite(a)?a:'';default:return''}};b.exports=function(a,b,c,h){return b=b||'&',c=c||'=',null===a&&(a=void 0),'object'==typeof a?d(g(a),function(d){var g=encodeURIComponent(e(d))+c;return f(a[d])?a[d].map(function(a){return g+encodeURIComponent(e(a))}).join(b):g+encodeURIComponent(e(a[d]))}).join(b):h?encodeURIComponent(e(h))+c+encodeURIComponent(e(a)):''};var f=Array.isArray||function(a){return'[object Array]'===Object.prototype.toString.call(a)},g=Object.keys||function(a){var b=[];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c);return b}},{}],3:[function(a,b,c){'use strict';c.decode=c.parse=a('./decode'),c.encode=c.stringify=a('./encode')},{"./decode":1,"./encode":2}],4:[function(a,b,c){b.exports=a('querystring')},{querystring:3}]},{},[4])(4)}),define('apps/video/constants',{VIDEO_EMBEDDED_TYPE:'embedded',VIDEO_PERCEPTIVE_TYPE:'perceptive',VIDEO_JIVE_TYPE:'jive',VIDEO_IFRAME:'iframe',JIVE:'jive',SINGLE_SPACE:'',CONTENT_TYPE:'application/json',STATS_URL:'/videos/stats/',DEFAULT_WIDTH:'520px',DEFAULT_HEIGHT:'328px',LANGUAGE_CODE_LENGTH:2,FEATURED_VIDEO_ID_PREFIX:'video-tile-link',FEATURED_VIDEO_TILE_HEIGHT:'240px',FEATURED_VIDEO_TILE_WIDTH:'300px',AUTO:'auto'}),define('videojs-ar',{Play:'تشغيل',Pause:'إيقاف مؤقت','Current Time':'الوقت الحالي',Duration:'المدة','Remaining Time':'الوقت المتبقي',Loaded:'تم التحميل',Progress:'التقدم',Fullscreen:'وضع ملء الشاشة','Non-Fullscreen':'إلغاء وضع ملء الشاشة',Mute:'كتم الصوت',Unmute:'إلغاء كتم الصوت','Playback Rate':'معدل التشغيل',Subtitles:'شرائط الترجمة','subtitles off':'إيقاف تشغيل شرائط الترجمة',Captions:'التعليقات التوضيحية','captions off':'إيقاف تشغيل التعليقات التوضيحية',Chapters:'الفصول','Close Modal Dialog':'إغلاق مربع الحوار المشروط','You aborted the video playback':'لقد أوقفت تشغيل الفيديو.','A network error caused the video download to fail part-way.':'تسبَّب خطأ في الشبكة في فشل تنزيل الفيديو جزئيًا.','The video could not be loaded either because the server or network failed or because the format is not supported.':'يتعذَّر تحميل الفيديو إما بسبب فشل الخادم أو الشبكة أو لأن التنسيق غير مدعوم.','The video playback was aborted due to a corruption problem or because the video used features your browser did not support.':'تم إيقاف تشغيل الفيديو بسبب مشكلة تلف أو لأن الفيديو استخدَم ميزات لا يدعمها المستعرض الخاص بك.','No compatible source was found for this video.':'لم يتم العثور على أي مصدر متوافق لهذا الفيديو.','Transcription off':'إيقاف تشغيل النص المكتوب',Transcription:'النص المكتوب',Afrikaans:'الأفريقانية','Simplified Chinese)':'الصينية (المبسّطة)','Traditional Chinese)':'الصينية (التقليدية)',Dari:'الدارية','French (Canada)':'الفرنسية (كندا)',Hausa:'الهاوسا',Pashto:'الباشتو',Serbian:'الصربية',Slovenian:'السلوفينية','Spanish (Mexico)':'الإسبانية (المكسيك)',Swahili:'السواحيلية',Albanian:'الألبانية',Amharic:'الأمهرية',Arabic:'العربية','Arabic (Egyptian)':'العربية (المصرية)','Arabic (Gulf)':'العربية (الخليج)','Arabic (Levantino)':'العربية (الشامية)','Arabic (Meghrebi)':'العربية (المغربية)',Armenian:'الأرمنية',Azerbaijani:'الأذربيجانية',Basque:'الباسكية',Belarusian:'البيلاروسية',Bengali:'البنغالية',Bosnian:'البوسنية',Bulgarian:'البلغارية',Burmese:'البورمية',Catalan:'الكاتالونية','Traditional Chinese Cantonese':'الكانتونية التقليدية الصينية','Simplified Chinese Mandarin':'الماندارين الصينية المبسّطة','Traditional Chinese Mandarin':'الماندارين الصينية التقليدية',Croatian:'الكرواتية',Czech:'التشيكية',Danish:'الدانماركية',Dutch:'الهولندية','Australian English':'الإنجليزية الأسترالية','British English':'الإنجليزية البريطانية','Indian English':'الإنجليزية الهندية','Irish English':'الإنجليزية الأيرلندية','Scottish English':'الإنجليزية الاسكتلندية','US English':'الإنجليزية الأمريكية','Welsh English':'الإنجليزية الويلزية',Estonian:'الإستونية',Finnish:'الفنلندية','Flamengo (Belgian)':'الفلمنكية (البلجيكية)',French:'الفرنسية',Georgian:'الجورجية',German:'الألمانية',Greek:'اليونانية',Gujarati:'الجيوجاراتية','Haitian Creole':'الكريولية الهايتية',Hebrew:'العبرية',Hindi:'الهندية',Hungarian:'المجرية',Icelandic:'الأيسلندية',Indonesian:'الإندونيسية','Irish Gaelic':'الغالية الأيرلندية',Italian:'الإيطالية',Japanese:'اليابانية',Kannada:'الكانادية',Kazakh:'الكازاخية',Khmer:'الخميرية',Korean:'الكورية',Kurdish:'الكردية',Laothian:'اللاوية',Latvian:'اللاتفية',Lithuanian:'الليتوانية',Macedonian:'المقدونية',Malay:'الملايو',Malayalam:'المالايالامية',Maltese:'المالطية',Marati:'الماراثية',Mongolian:'المنغولية',Montenegrin:'المونتنغرية',Nepalese:'النيبالية',Norwegian:'النرويجية',Farsi:'بارسيان',Polish:'البولندية','Portuguese - Brazil)':'البرتغالية (البرازيل)','Portuguese Portugal)':'البرتغالية (البرتغال)',Punjabi:'البنجابية',Romanian:'الرومانية',Russian:'الروسية','Serbian (Cyrillic)':'الصربية (السيريلية)',Shanghai:'شنغهاي',Sinhala:'السنهالية',Slovak:'السلوفاكية','Slovenian (Slovenian)':'السلوفينية (سلوفينيا)',Somali:'الصومالية',Spanish:'الإسبانية','US Spanish':'الإسبانية الأمريكية','Spanish (Latin America)':'الإسبانية (أمريكا اللاتينية)',Swedish:'السويدية','Swiss French':'الفرنسية السويسرية','Swiss German':'الألمانية السويسرية','Swiss Italian':'الإيطالية السويسرية',Tagalog:'التاجالوج',Tajik:'الطاجيكية',Tamil:'التاميلية',Telugu:'التيلوغوية',Thai:'التايلاندية',Tigrinya:'التيغرينية',Turkish:'التركية',Ukrainian:'الأوكرانية',Uzbek:'الأوزبكية',Vietnamese:'الفيتنامية',Welsh:'الويلزية',Xhosa:'الخوسا',Yoruba:'اليوروبا',Zulu:'الزولو',Quality:'جودة','Picture-in-Picture':'صور في صور','Play Video':'تشغيل الفيديو'}),define('videojs-cs',{Play:'Přehrát',Pause:'Pozastavit','Current Time':'Aktuální čas',Duration:'Trvání','Remaining Time':'Zbývající čas',Loaded:'Načteno',Progress:'Průběh',Fullscreen:'Celá obrazovka','Non-Fullscreen':'Část obrazovky',Mute:'Ztlumit',Unmute:'Zrušit ztlumení','Playback Rate':'Rychlost přehrávání',Subtitles:'Titulky','subtitles off':'titulky vypnuty',Captions:'Titulky','captions off':'titulky vypnuty',Chapters:'Kapitoly','Close Modal Dialog':'Zavřít modální dialogové okno','You aborted the video playback':'Přerušili jste přehrávání videa','A network error caused the video download to fail part-way.':'Chyba sítě způsobila částečné selhání stahování videa.','The video could not be loaded either because the server or network failed or because the format is not supported.':'Video nelze načíst z důvodu chyby serveru či sítě nebo nepodporovaného formátu.','The video playback was aborted due to a corruption problem or because the video used features your browser did not support.':'"Přehrávání videa bylo přerušeno, protože došlo k jeho poškození nebo protože používá funkce, které váš prohlížeč nepodporuje."','No compatible source was found for this video.':'Pro video nebyl nalezen žádný kompatibilní zdroj.','Transcription off':'Přepis vypnut',Transcription:'Přepis',Arabic:'arabština',Afrikaans:'afrikánština',Albanian:'Albánci',Amharic:'Amharština',Azerbaijani:'Ázerbájdžán',Bengali:'bengálský',Bosnian:'Bosenské',Bulgarian:'bulharský','Chinese (Simplified)':'Čínština (zjednodušená)','Chinese (Traditional)':'Čínština (Traditional)',Croatian:'chorvatský',Czech:'čeština',Danish:'dánština',Dari:'Dari',Dutch:'holandský',English:'Angličtina',Estonian:'estonština',Finnish:'Finsky',French:'francouzština','French (Canada)':'Francouzština (Kanada)',Georgian:'Gruzínské',German:'Němec',Greek:'řecký',Hausa:'Hausa',Hebrew:'hebrejština',Hindi:'hindština',Hungarian:'maďarský',Indonesian:'indonéština',Italian:'italština',Japanese:'japonský',Korean:'korejština',Latvian:'lotyšský',Malay:'Malay',Norwegian:'Norština',Persian:'Peršan',Pashto:'Pashto',Polish:'polština',Portuguese:'portugalština',Romanian:'rumunština',Russian:'ruština',Serbian:'srbština',Slovak:'Slovák',Slovenian:'slovinský',Somali:'Somálsko',Spanish:'španělština','Spanish (Mexico)':'Španělština (Mexiko)',Swahili:'Svahilsky',Swedish:'švédský',Tagalog:'Tagalog',Tamil:'Tamil',Thai:'Thajské',Turkish:'turečtina',Ukrainian:'ukrajinština',Urdu:'Urdu',Vietnamese:'vietnamština',Quality:'Kvalitní','Picture-in-Picture':'Obrázek v obraze',auto:'auto',Replay:'Přehrát','subtitles settings':'nastavení titulků','Play Video':'Přehrát video'}),define('videojs-da',{Play:'Afspil',Pause:'Pause','Current Time':'Aktuel tid',Duration:'Varighed','Remaining Time':'Resterende tid',Loaded:'Indlæst',Progress:'Status',Fullscreen:'Fuldskærm','Non-Fullscreen':'Ikke-fuldskærm',Mute:'Slå lyd fra',Unmute:'Slå lyd til','Playback Rate':'Afspilningshastighed',Subtitles:'Undertekster','subtitles off':'undertekster fra',Captions:'Billedtekster','captions off':'billedtekster fra',Chapters:'Kapitler','Close Modal Dialog':'Luk modaldialogboks','You aborted the video playback':'Du afbrød videoafspilningen','A network error caused the video download to fail part-way.':'En netværksfejl fik download af videoen til delvist at mislykkes.','The video could not be loaded either because the server or network failed or because the format is not supported.':'"Videoen kunne ikke indlæses, fordi der opstod en fejl med serveren eller netværket, eller fordi formatet ikke understøttes."','The video playback was aborted due to a corruption problem or because the video used features your browser did not support.':'"Videoafspilningen blev afbrudt på grund af et beskadigelsesproblem, eller fordi videoen anvendte funktioner, som din browser ikke understøttede."','No compatible source was found for this video.':'Der blev ikke fundet en kompatibel kilde for denne video.','Transcription off':'Transskribering fra',Transcription:'Transskribering',Arabic:'arabisk',Afrikaans:'Afrikaans',Albanian:'Albansk',Amharic:'amharisk',Azerbaijani:'Aserbajdsjansk',Bengali:'bengalsk',Bosnian:'bosnisk',Bulgarian:'bulgarsk','Chinese (Simplified)':'Kinesisk (Simplified)','Chinese (Traditional)':'Kinesisk (Traditional)',Croatian:'Kroatisk',Czech:'tjekkisk',Danish:'dansk',Dari:'Dari',Dutch:'hollandske',English:'engelsk',Estonian:'estisk',Finnish:'Finsk',French:'fransk','French (Canada)':'Fransk (Canada)',Georgian:'georgisk',German:'tysk',Greek:'græsk',Hausa:'Hausa',Hebrew:'Hebrew',Hindi:'Hindi',Hungarian:'ungarsk',Indonesian:'Indonesisk',Italian:'italiensk',Japanese:'japansk',Korean:'Korean',Latvian:'lettisk',Malay:'Malay',Norwegian:'Norsk',Persian:'persisk',Pashto:'pashto',Polish:'Polere',Portuguese:'portugisisk',Romanian:'rumænsk',Russian:'Russisk',Serbian:'serbisk',Slovak:'slovakisk',Slovenian:'slovensk',Somali:'somalisk',Spanish:'spansk','Spanish (Mexico)':'Spansk (Mexico)',Swahili:'Swahili',Swedish:'Svensk',Tagalog:'Tagalog',Tamil:'Tamil',Thai:'Thai',Turkish:'tyrkisk',Ukrainian:'ukrainsk',Urdu:'Urdu',Vietnamese:'Vietnamesisk',Quality:'Kvalitet','Picture-in-Picture':'Picture-in-Picture',auto:'auto',Replay:'Replay','subtitles settings':'indstillinger for undertekster','Play Video':'Afspil video'}),define('videojs-de',{Play:'Abspielen',Pause:'Anhalten','Current Time':'Aktuelle Zeit',Duration:'Dauer','Remaining Time':'Verbleibende Zeit',Loaded:'Geladen',Progress:'Fortschritt',Fullscreen:'Vollbild','Non-Fullscreen':'Kein Vollbild',Mute:'Stumm',Unmute:'Stummschaltung aufheben','Playback Rate':'Wiedergabegeschwindigkeit',Subtitles:'Untertitel','subtitles off':'Untertitel aus',Captions:'Untertitel','captions off':'Untertitel aus',Chapters:'Kapitel','Close Modal Dialog':'Modales Dialogfeld schließen','You aborted the video playback':'Sie haben die Videowiedergabe abgebrochen','A network error caused the video download to fail part-way.':'Der Videodownload wurde aufgrund eines Netzwerkfehlers abgebrochen.','The video could not be loaded either because the server or network failed or because the format is not supported.':'"Das Video konnte nicht geladen werden, da es einen Server- oder Netzwerkfehler gab oder das Format nicht unterstützt wird."','The video playback was aborted due to a corruption problem or because the video used features your browser did not support.':'"Die Videowiedergabe wurde abgebrochen, weil das Video beschädigt ist oder Funktionen verwendet, die Ihr Browser nicht unterstützt."','No compatible source was found for this video.':'Für dieses Video wurde keine kompatible Quelle gefunden.','Transcription off':'Transkription aus',Transcription:'Transkription',Arabic:'Arabisch',Afrikaans:'Afrikaans',Albanian:'albanisch',Amharic:'Amharisch',Azerbaijani:'Aserbaidschanisch',Bengali:'Bengali',Bosnian:'bosnisch',Bulgarian:'bulgarisch','Chinese (Simplified)':'Chinesisch (Simplified)','Chinese (Traditional)':'Chinesisch (Traditional)',Croatian:'kroatisch',Czech:'Tschechisch',Danish:'dänisch',Dari:'Dari',Dutch:'Niederländisch',English:'Englisch',Estonian:'estnisch',Finnish:'finnisch',French:'Französisch','French (Canada)':'Französisch (Kanada)',Georgian:'georgisch',German:'Deutsche',Greek:'griechisch',Hausa:'Hausa',Hebrew:'hebräisch',Hindi:'Hindi',Hungarian:'ungarisch',Indonesian:'Indonesisch',Italian:'Italienisch',Japanese:'japanisch',Korean:'Koreanisch',Latvian:'lettisch',Malay:'malaiisch',Norwegian:'norwegisch',Persian:'persisch',Pashto:'Paschtu',Polish:'Polieren',Portuguese:'Portugiesisch',Romanian:'rumänisch',Russian:'Russisch',Serbian:'serbisch',Slovak:'slowakisch',Slovenian:'Slowenisch',Somali:'somali',Spanish:'Spanisch','Spanish (Mexico)':'Spanisch (Mexiko)',Swahili:'Swahili',Swedish:'Schwedisch',Tagalog:'Tagalog',Tamil:'Tamil',Thai:'Thai',Turkish:'Türkisch',Ukrainian:'ukrainisch',Urdu:'Urdu',Vietnamese:'Vietnamesisch',Quality:'Qualität','Picture-in-Picture':'Bild im Bild',Replay:'Wiederholung',auto:'auto','subtitles settings':'Untertiteleinstellungen','Play Video':'Video abspielen'}),define('videojs-el',{Play:'Αναπαραγωγή',Pause:'Παύση','Current Time':'Τρέχον χρόνος',Duration:'Διάρκεια','Remaining Time':'Υπολειπόμενος χρόνος',Loaded:'Έγινε αποστολή',Progress:'Πρόοδος',Fullscreen:'Πλήρης οθόνη','Non-Fullscreen':'Μη πλήρης οθόνη',Mute:'Σίγαση',Unmute:'Διακοπή σίγασης','Playback Rate':'Ρυθμός αναπαραγωγής',Subtitles:'Υπότιτλοι','subtitles off':'υπότιτλοι off',Captions:'Υπότιτλοι','captions off':'υπότιτλοι off',Chapters:'Κεφάλαια','Close Modal Dialog':'Κλείσιμο παράθυρο διαλόγου','You aborted the video playback':'Ακυρώσατε την αναπαραγωγή του βίντεο','A network error caused the video download to fail part-way.':'Κάποιο σφάλμα δικτύου προκάλεσε τη μερική αποτυχία λήψης βίντεο.','The video could not be loaded either because the server or network failed or because the format is not supported.':'"Δεν ήταν δυνατή η φόρτωση του βίντεο, επειδή ο διακομιστής ή το δίκτυο απέτυχαν ή επειδή η μορφή δεν υποστηρίζεται."','The video playback was aborted due to a corruption problem or because the video used features your browser did not support.':'Η αναπαραγωγή βίντεο ακυρώθηκε λόγω προβλήματος διαφθοράς ή επειδή το βίντεο χρησιμοποίησε δυνατότητες που δεν υποστηρίζει το πρόγραμμα περιήγησής σας.','No compatible source was found for this video.':'Δεν βρέθηκε συμβατή πηγή για αυτό το βίντεο.','Transcription off':'Μεταγραφή off',Transcription:'Μεταγραφή',Afrikaans:'Αφρικανικά','Simplified Chinese)':'Κινέζικα (απλοποιημένα)','Traditional Chinese)':'Κινέζικα (παραδοσιακά)',Dari:'Νταρί','French (Canada)':'Γαλλικά (Καναδά)',Hausa:'Χάουζα',Persian:'Περσικά',Pashto:'Πάστο',Serbian:'Σερβικά',Slovenian:'Σλοβενικά','Spanish (Mexico)':'Ισπανικά (Μεξικού)',Swahili:'Σουαχίλι',Urdu:'Ουρντού',Albanian:'Αλβανικά',Amharic:'Αμχαρικά',Arabic:'Αραβικά','Arabic (Egyptian)':'Αραβικά (Αιγύπτου)','Arabic (Gulf)':'Αραβικά (Κόλπου)','Arabic (Levantino)':'Αραβικά (Λεβάντες)','Arabic (Meghrebi)':'Αραβικά (Μαγκρέμπ)',Armenian:'Αρμενικά',Azerbaijani:'Αζερμπαϊτζανικά',Basque:'Βασκικά',Belarusian:'Λευκορωσικά',Bengali:'Μπενγκάλι',Bosnian:'Βοσνιακά',Bulgarian:'Βουλγαρικά',Burmese:'Βιρμανικά',Catalan:'Καταλανικά','Traditional Chinese Cantonese':'Κινέζικα παραδοσιακά Καντονικά','Simplified Chinese Mandarin':'Κινέζικα Μανταρινικά-απλοποιημένα','Traditional Chinese Mandarin':'Κινέζικα Μανταρινικά-παραδοσιακά',Croatian:'Κροατικά',Czech:'Τσεχικά',Danish:'Δανικά',Dutch:'Ολλανδικά','Australian English':'Αγγλικά Αυστραλίας','British English':'Αγγλικά Βρετανίας','Indian English':'Αγγλικά Ινδίας','Irish English':'Αγγλικά Ιρλανδίας','Scottish English':'Αγγλικά Σκωτίας','US English':'Αγγλικά ΗΠΑ','Welsh English':'Αγγλικά Ουαλίας',Estonian:'Εσθονικά',Finnish:'Φιλανδικά','Flamengo (Belgian)':'Φλαμανδικά (Βελγίου)',French:'Γαλλικά',Georgian:'Γεωργιανά',German:'Γερμανικά',Greek:'Ελληνικά',Gujarati:'Γκουγιαράτι','Haitian Creole':'Αϊτινή κρεολή γλώσσα',Hebrew:'Εβραϊκά',Hindi:'Χίντι',Hungarian:'Ουγγρικά',Icelandic:'Ισλανδικά',Indonesian:'Ινδονησιακά','Irish Gaelic':'Αγγλικά Γαελικά',Italian:'Ιταλικά',Japanese:'Ιαπωνικά',Kannada:'Κανάντα',Kazakh:'Καζαχτστανικά',Khmer:'Χμερ',Korean:'Κορεάτικα',Kurdish:'Κουρδικά',Laothian:'Λαοϊκά',Latvian:'Λετονικά',Lithuanian:'Λιθουανικά',Macedonian:'Σλαβομακεδονικά (Βόρειας Μακεδονίας)',Malay:'Μαλαϊκά',Malayalam:'Μαλαγιάλαμ',Maltese:'Μαλτεζικά',Marati:'Μαράθι',Mongolian:'Μογγολικά',Montenegrin:'Μαυροβούνια',Nepalese:'Νεπαλικά',Norwegian:'Νορβηγικά',Farsi:'Πάρσιαν',Polish:'Πολωνικά','Portuguese - Brazil)':'Πορτογαλικά (Βραζιλίας)','Portuguese Portugal)':'Πορτογαλικά (Πορτογαλίας)',Punjabi:'Παντζαπικά',Romanian:'Ρουμανικά',Russian:'Ρωσικά','Serbian (Cyrillic)':'Σερβικά (Κυριλλικά)',Shanghai:'Σανγκαϊνέζικα',Sinhala:'Σιναλεζικά',Slovak:'Σλοβακικά','Slovenian (Slovenian)':'Σλοβενικά (Σλοβενίας)',Somali:'Σομαλικά',Spanish:'Ισπανικά','US Spanish':'Ισπανικά ΗΠΑ','Spanish (Latin America)':'Ισπανικά (Λατινικής Αμερικής)',Swedish:'Σουηδικά','Swiss French':'Γαλλικά Ελβετίας','Swiss German':'Γερμανικά Ελβετίας','Swiss Italian':'Ιταλικά Ελβετίας',Tagalog:'Ταγκαλόγκ',Tajik:'Τατζικικά',Tamil:'Ταμιλικά',Telugu:'Τελούγκου',Thai:'Ταϊλανδικά',Tigrinya:'Τιγκρινικά',Turkish:'Τουρκικά',Ukrainian:'Ουκρανικά',Uzbek:'Ουζμπεκικά',Vietnamese:'Βιετναμέζικα',Welsh:'Ουαλικά',Xhosa:'Ξόσα',Yoruba:'Γιορούμπα',Zulu:'Ζουλού',Quality:'Ποιότητα','Picture-in-Picture':'Εικόνα-σε-εικόνα','Play Video':'Αναπαραγωγή βίντεο'}),define('videojs-es',{Play:'Reproducción',Pause:'Pausa','Current Time':'Tiempo actual',Duration:'Duración','Remaining Time':'Tiempo restante',Loaded:'Cargado',Progress:'Progreso',Fullscreen:'Pantalla completa','Non-Fullscreen':'Sin pantalla completa',Mute:'Silenciar',Unmute:'Reactivar audio','Playback Rate':'Velocidad de reproducción',Subtitles:'Subtítulos','subtitles off':'subtítulos desactivados',Captions:'Subtítulos','captions off':'subtítulos desactivados',Chapters:'Capítulos','Close Modal Dialog':'Cerrar el cuadro de diálogo Modal','You aborted the video playback':'Ha anulado la reproducción de vídeo','A network error caused the video download to fail part-way.':'Un error en la red ha provocado un error parcial en la descarga del vídeo.','The video could not be loaded either because the server or network failed or because the format is not supported.':'"No se ha podido cargar el vídeo, ya sea debido a un error de servidor o de la red o porque el formato no es compatible."','The video playback was aborted due to a corruption problem or because the video used features your browser did not support.':'La reproducción de vídeo se ha anulado debido a que está dañado o a que usa funciones que no son compatibles con el explorador.','No compatible source was found for this video.':'No se ha encontrado ningún origen compatible para este vídeo.','Transcription off':'Transcripción desactivada',Transcription:'Transcripción',Arabic:'Arábica',Afrikaans:'africaans',Albanian:'albanés',Amharic:'Amárico',Azerbaijani:'Azerbaiyano',Bengali:'bengalí',Bosnian:'bosnio',Bulgarian:'búlgaro','Chinese (Simplified)':'Chino simplificado)','Chinese (Traditional)':'Chino tradicional)',Croatian:'croata',Czech:'checo',Danish:'danés',Dari:'Dari',Dutch:'holandés',English:'Inglés',Estonian:'Estonio',Finnish:'finlandés',French:'francés','French (Canada)':'Francés (Canadá)',Georgian:'georgiano',German:'alemán',Greek:'griego',Hausa:'Hausa',Hebrew:'hebreo',Hindi:'hindi',Hungarian:'húngaro',Indonesian:'indonesio',Italian:'italiano',Japanese:'japonés',Korean:'coreano',Latvian:'letón',Malay:'malayo',Norwegian:'noruego',Persian:'persa',Pashto:'Pashto',Polish:'polaco',Portuguese:'portugués',Romanian:'rumano',Russian:'ruso',Serbian:'serbio',Slovak:'eslovaco',Slovenian:'esloveno',Somali:'somalí',Spanish:'Español','Spanish (Mexico)':'Español (mexico)',Swahili:'swahili',Swedish:'sueco',Tagalog:'Tagalo',Tamil:'Tamil',Thai:'tailandés',Turkish:'turco',Ukrainian:'ucranio',Urdu:'Urdu',Vietnamese:'vietnamita',Quality:'calidad','Picture-in-Picture':'Imagen-en-Imagen',Replay:'Repetición',auto:'auto','subtitles settings':'configuración de subtítulos','Play Video':'Reproducir vídeo'}),define('videojs-fi',{Play:'Toista',Pause:'Tauko','Current Time':'Nykyinen aika',Duration:'Kesto','Remaining Time':'Jäljellä oleva aika',Loaded:'Ladattu',Progress:'Eteneminen',Fullscreen:'Koko näyttö','Non-Fullscreen':'Ei koko näyttö',Mute:'Mykistys',Unmute:'Mykistys pois','Playback Rate':'Toistonopeus',Subtitles:'Tekstitys','subtitles off':'tekstitys pois',Captions:'Tekstitykset','captions off':'tekstitykset pois',Chapters:'Kappaleet','Close Modal Dialog':'Sulje modaalinen valintaikkuna','You aborted the video playback':'Keskeytit videon toiston','A network error caused the video download to fail part-way.':'Verkkovirheen vuoksi videon lataus keskeytyi ennen valmistumistaan.','The video could not be loaded either because the server or network failed or because the format is not supported.':'Videota ei voitu ladata palvelimen tai verkon virheen vuoksi tai koska videon muotoa ei tueta.',
'The video playback was aborted due to a corruption problem or because the video used features your browser did not support.':'"Videon toisto keskeytyi vioittumisen vuoksi tai koska video käytti ominaisuuksia, joita selain ei tukenut."','No compatible source was found for this video.':'Yhteensopivaa lähdettä ei löytynyt tälle videolle.','Transcription off':'Transkriptio pois',Transcription:'Transkriptio',Arabic:'arabialainen',Afrikaans:'afrikaans',Albanian:'albanialainen',Amharic:'amhara',Azerbaijani:'Azerbaidžanin',Bengali:'Bengali',Bosnian:'Bosnia',Bulgarian:'bulgarialainen','Chinese (Simplified)':'Kiina (yksinkertaistettu','Chinese (Traditional)':'Kiina (Traditional)',Croatian:'kroaatti',Czech:'czech',Danish:'Tanskan kieli',Dari:'Dari',Dutch:'Hollannin kieli',English:'Englanti',Estonian:'Virolainen',Finnish:'Suomalainen',French:'Ranskan kieli','French (Canada)':'Ranska (Kanada)',Georgian:'georgialainen',German:'Saksan kieli',Greek:'kreikkalainen',Hausa:'hausa',Hebrew:'heprealainen',Hindi:'hindi',Hungarian:'Unkarin kieli',Indonesian:'indonesialainen',Italian:'italialainen',Japanese:'japanilainen',Korean:'Korealainen',Latvian:'Latvialainen',Malay:'Malaiji',Norwegian:'Norjan kieli',Persian:'persialainen',Pashto:'paštu',Polish:'Kiillottaa',Portuguese:'Portugalin kieli',Romanian:'romanialainen',Russian:'Venäjän kieli',Serbian:'serbialainen',Slovak:'Slovakian',Slovenian:'slovenian',Somali:'somali',Spanish:'Espanja','Spanish (Mexico)':'Espanja (Meksiko)',Swahili:'Suahili',Swedish:'Ruotsin kieli',Tagalog:'Tagalog',Tamil:'tamil',Thai:'thaimaalainen',Turkish:'turkki',Ukrainian:'ukrainalainen',Urdu:'Urdu',Vietnamese:'vietnam',Quality:'Laatu','Picture-in-Picture':'Kuva-kuvassa',Replay:'Uusinta',auto:'auto','subtitles settings':'tekstitysasetukset','Play Video':'Toista video'}),define('videojs-fr',{Play:'Lecture',Pause:'Pause','Current Time':'Temps actuel',Duration:'Durée','Remaining Time':'Temps restant',Loaded:'Chargé',Progress:'Progrès',Fullscreen:'Plein écran','Non-Fullscreen':'Quitter le mode Plein écran',Mute:'Désactiver le son',Unmute:'Activer le son','Playback Rate':'Vitesse de lecture',Subtitles:'Sous-titres','subtitles off':'Sous-titres désactivés',Captions:'Sous-titres','captions off':'Sous-titres désactivés',Chapters:'Chapitres','Close Modal Dialog':'Fermer la boîte de dialogue modale','You aborted the video playback':'Vous avez interrompu la lecture vidéo','A network error caused the video download to fail part-way.':'Une erreur réseau a provoqué l\'échec du téléchargement vidéo en cours de route.','The video could not be loaded either because the server or network failed or because the format is not supported.':'Impossible de charger la vidéo en raison d\'un échec du serveur ou du réseau ou d\'un format non pris en charge.','The video playback was aborted due to a corruption problem or because the video used features your browser did not support.':'La lecture de la vidéo a été abandonnée en raison d\'un problème de corruption ou de l\'utilisation de fonctionnalités non prises en charge par votre navigateur.','No compatible source was found for this video.':'Aucune source vidéo compatible n\'a été trouvée pour cette vidéo.','Transcription off':'Transcription désactivée',Transcription:'Transcription',Arabic:'arabe',Afrikaans:'afrikaans',Albanian:'albanais',Amharic:'Amharique',Azerbaijani:'azerbaïdjanais',Bengali:'bengali',Bosnian:'Bosniaque',Bulgarian:'bulgare','Chinese (Simplified)':'Chinois (Simplifiée)','Chinese (Traditional)':'Chinois (Traditionnelle)',Croatian:'croate',Czech:'tchèque',Danish:'danois',Dari:'Dari',Dutch:'néerlandais',English:'Anglais',Estonian:'estonien',Finnish:'finlandais',French:'français','French (Canada)':'Français (Canada)',Georgian:'géorgien',German:'allemand',Greek:'grec',Hausa:'Haoussa',Hebrew:'hébreu',Hindi:'hindi',Hungarian:'hongrois',Indonesian:'indonésien',Italian:'italien',Japanese:'Japonais',Korean:'coréen',Latvian:'letton',Malay:'malais',Norwegian:'norvégien',Persian:'persan',Pashto:'Pachto',Polish:'polonais',Portuguese:'Portugais',Romanian:'roumain',Russian:'russe',Serbian:'serbe',Slovak:'slovaque',Slovenian:'slovène',Somali:'somali',Spanish:'Espagnol','Spanish (Mexico)':'Espagnol (Mexique)',Swahili:'Swahili',Swedish:'suédois',Tagalog:'Tagalog',Tamil:'Tamil',Thai:'thaïlandais',Turkish:'turc',Ukrainian:'ukrainien',Urdu:'Ourdou',Vietnamese:'vietnamien',Quality:'Qualité','Picture-in-Picture':'Image dans Image',Replay:'Rejouer',auto:'auto','subtitles settings':'paramètres des sous-titres','Play Video':'Lire la vidéo'}),define('videojs-he',{Play:'הפעל',Pause:'השהה','Current Time':'זמן נוכחי',Duration:'משך','Remaining Time':'זמן נותר',Loaded:'טעון',Progress:'התקדמות',Fullscreen:'במסך מלא','Non-Fullscreen':'לא במסך מלא',Mute:'השתק',Unmute:'בטל השתקה','Playback Rate':'מהירות ההפעלה',Subtitles:'כתוביות','subtitles off':'כתוביות מושבתות',Captions:'כתוביות מלאות','captions off':'כתוביות מלאות מושבתות',Chapters:'פרקים','Close Modal Dialog':'סגור את החלון המודאלי','You aborted the video playback':'ביטלת את הפעלת הסרטון','A network error caused the video download to fail part-way.':'שגיאת רשת גרמה להורדת הסרטון להיפסק לפני השלמתה.','The video could not be loaded either because the server or network failed or because the format is not supported.':'לא ניתן לטעון את הסרטון מאחר שהשרת או הרשת נכשלו או מאחר שהפורמט לא נתמך.','The video playback was aborted due to a corruption problem or because the video used features your browser did not support.':'הפעלת הסרטון הופסקה כתוצאה מבעיית פגם או מאחר שנעשה בו שימוש בתכונות שהדפדפן שלך לא תומך בהן.','No compatible source was found for this video.':'לא נמצא מקור תואם עבור הסרטון הזה.','Transcription off':'התמלול מושבת',Transcription:'תמלול',Afrikaans:'אפריקאנס','Simplified Chinese)':'סינית (פשוטה)','Traditional Chinese)':'סינית (מסורתית)',Dari:'דארי','French (Canada)':'צרפתית (קנדה)',Hausa:'האוסה',Persian:'פרסית',Pashto:'פשטו',Serbian:'סרבית',Slovenian:'סלובנית','Spanish (Mexico)':'ספרדית (מקסיקו)',Swahili:'סווהילי',Urdu:'אורדו',Albanian:'אלבנית',Amharic:'אמהרית',Arabic:'ערבית','Arabic (Egyptian)':'ערבית (מצרית)','Arabic (Gulf)':'ערבית (המפרץ)','Arabic (Levantino)':'ערבית (הלבנט)','Arabic (Meghrebi)':'עברית (מגרב)',Armenian:'ארמנית',Azerbaijani:'אזרית',Basque:'בסקית',Belarusian:'בלרוסית',Bengali:'בנגאלית',Bosnian:'בוסנית',Bulgarian:'בולגרית',Burmese:'בורמזית',Catalan:'קטלאנית','Traditional Chinese Cantonese':'סינית מסורתית קנטונזית','Simplified Chinese Mandarin':'סינית מנדרינית-פשוטה','Traditional Chinese Mandarin':'סינית מנדרינית-מסורתית',Croatian:'קרואטית',Czech:'\'צ\'כית',Danish:'דנית',Dutch:'הולנדית','Australian English':'אנגלית אוסטרלית','British English':'אנגלית בריטית','Indian English':'אנגלית הודית','Irish English':'אנגלית אירית','Scottish English':'אנגלית סקוטית','US English':'אנגלית אמריקאית','Welsh English':'אנגלית וולשית',Estonian:'אסטונית',Finnish:'פינית','Flamengo (Belgian)':'פלמית (בלגיה)',French:'צרפתית',Georgian:'גיאורגית',German:'גרמנית',Greek:'יוונית',Gujarati:'\'גוג\'ראטית','Haitian Creole':'קריאולית האיטית',Hebrew:'עברית',Hindi:'הינדית',Hungarian:'הונגרית',Icelandic:'איסלנדית',Indonesian:'אינדונזית','Irish Gaelic':'גאלית אירית',Italian:'איטלקית',Japanese:'יפנית',Kannada:'קאנדה',Kazakh:'קזחית',Khmer:'חמרית',Korean:'קוריאנית',Kurdish:'כורדית',Laothian:'לאוסית',Latvian:'לטבית',Lithuanian:'ליטאית',Macedonian:'מקדונית',Malay:'מלאית',Malayalam:'מלאיאלאם',Maltese:'מלטית',Marati:'מראטהית',Mongolian:'מונגולית',Montenegrin:'מונטנגרית',Nepalese:'נפאלית',Norwegian:'נורווגית',Farsi:'פרסית',Polish:'פולנית','Portuguese - Brazil)':'פורטוגזית (ברזיל)','Portuguese Portugal)':'פורטוגזית (פורטוגל)',Punjabi:'\'פנג\'אבי',Romanian:'רומנית',Russian:'רוסית','Serbian (Cyrillic)':'סרבית (קירילית)',Shanghai:'ניב שנגחאי',Sinhala:'סינהלית',Slovak:'סלובקית','Slovenian (Slovenian)':'סלובנית (סלובניה)',Somali:'סומלית',Spanish:'ספרדית','US Spanish':'ספרדית אמריקאית','Spanish (Latin America)':'ספרדית (אמריקה הלטינית)',Swedish:'שוודית','Swiss French':'צרפתית שווייצרית','Swiss German':'גרמנית שווייצרית','Swiss Italian':'איטלקית שווייצרית',Tagalog:'טאגאלוג',Tajik:'\'טג\'יקית',Tamil:'טאמילית',Telugu:'טלוגו',Thai:'תאילנדית',Tigrinya:'תיגרינית',Turkish:'טורקית',Ukrainian:'אוקראינית',Uzbek:'אוזבקית',Vietnamese:'וייטנאמית',Welsh:'וולשית',Xhosa:'קוסה',Yoruba:'יורובה',Zulu:'זולו',Quality:'איכות','Picture-in-Picture':'תמונה בתמונה','Play Video':'הפעל וידאו'}),define('videojs-hu',{Play:'Lejátszás',Pause:'Szünet','Current Time':'Aktuális idő',Duration:'Időtartam','Remaining Time':'Hátralevő idő',Loaded:'Betöltve',Progress:'Előrehaladás',Fullscreen:'Teljes képernyő','Non-Fullscreen':'Nem teljes képernyő',Mute:'Némítás',Unmute:'Némítás feloldása','Playback Rate':'Lejátszási sebesség',Subtitles:'Feliratok','subtitles off':'feliratok ki',Captions:'Feliratozás','captions off':'feliratozás ki',Chapters:'Fejezetek','Close Modal Dialog':'Modális párbeszéd bezárása','You aborted the video playback':'Megszakította a videolejátszást','A network error caused the video download to fail part-way.':'Egy hálózati hiba miatt a videó letöltése részlegesen sikertelen.','The video could not be loaded either because the server or network failed or because the format is not supported.':'"A videó a kiszolgáló vagy a hálózat hibája, vagy a nem támogatott formátum miatt nem tölthető be."','The video playback was aborted due to a corruption problem or because the video used features your browser did not support.':'A videó lejátszása sérülési probléma vagy a videóban a böngésző által nem támogatott szolgáltatások használata miatt megszakadt.','No compatible source was found for this video.':'Nem található kompatibilis forrás ehhez a videóhoz.','Transcription off':'Átírás ki',Transcription:'Átírás',Arabic:'arab',Afrikaans:'Afrikaans',Albanian:'albán',Amharic:'amhara',Azerbaijani:'azerbajdzsáni',Bengali:'bengáli',Bosnian:'bosnyák',Bulgarian:'bolgár','Chinese (Simplified)':'Kínai (egyszerűsített','Chinese (Traditional)':'Kínai (Traditional)',Croatian:'horvát',Czech:'cseh',Danish:'dán',Dari:'Dari',Dutch:'holland',English:'angol',Estonian:'észt',Finnish:'finn',French:'Francia','French (Canada)':'Francia (Kanada)',Georgian:'grúz',German:'német',Greek:'görög',Hausa:'Hausa',Hebrew:'héber',Hindi:'hindi',Hungarian:'Magyar',Indonesian:'indonéz',Italian:'olasz',Japanese:'japán',Korean:'koreai',Latvian:'lett',Malay:'maláj',Norwegian:'norvég',Persian:'perzsa',Pashto:'pastu',Polish:'fényesít',Portuguese:'portugál',Romanian:'román',Russian:'orosz',Serbian:'szerb',Slovak:'szlovák',Slovenian:'szlovén',Somali:'szomáliai',Spanish:'spanyol','Spanish (Mexico)':'Spanyol (Mexikó)',Swahili:'szuahéli',Swedish:'svéd',Tagalog:'tagalog',Tamil:'tamil',Thai:'thai',Turkish:'török',Ukrainian:'ukrán',Urdu:'urdu',Vietnamese:'vietnami',Quality:'Minőség','Picture-in-Picture':'Picture-in-Picture',Replay:'Visszajátszás',auto:'kocsi','subtitles settings':'felirat beállításai','Play Video':'Videó lejátszása'}),define('videojs-it',{Play:'Riproduci',Pause:'Sospendi','Current Time':'Tempo corrente',Duration:'Durata','Remaining Time':'Tempo rimanente',Loaded:'Caricato',Progress:'Avanzamento',Fullscreen:'A schermo intero','Non-Fullscreen':'Non a schermo intero',Mute:'Disattiva audio',Unmute:'Attiva audio','Playback Rate':'Velocità di riproduzione',Subtitles:'Sottotitoli','subtitles off':'sottotitoli disattivati',Captions:'Didascalie','captions off':'didascalie disattivate',Chapters:'Capitoli','Close Modal Dialog':'Chiudi finestra di dialogo modale','You aborted the video playback':'La riproduzione del video è stata interrotta','A network error caused the video download to fail part-way.':'A causa di un errore di rete il download del video non è stato completato.','The video could not be loaded either because the server or network failed or because the format is not supported.':'"Il caricamento del video non è riuscito a causa di un errore del server o di rete, oppure poiché il formato non è supportato."','The video playback was aborted due to a corruption problem or because the video used features your browser did not support.':'La riproduzione è stata interrotta poiché il video è danneggiato o il video utilizza funzioni non supportate dal browser.','No compatible source was found for this video.':'Nessuna origine compatibile per questo video.','Transcription off':'Trascrizione disattivata',Transcription:'Trascrizione',Arabic:'Arabo',Afrikaans:'afrikaans',Albanian:'albanese',Amharic:'amarico',Azerbaijani:'Azero',Bengali:'bengalese',Bosnian:'bosniaco',Bulgarian:'bulgaro','Chinese (Simplified)':'Cinese (Simplified)','Chinese (Traditional)':'Cinese (Traditional)',Croatian:'croato',Czech:'ceco',Danish:'danese',Dari:'Dari',Dutch:'olandese',English:'Inglese',Estonian:'estone',Finnish:'finlandese',French:'francese','French (Canada)':'Francese (Canada)',Georgian:'georgiano',German:'Tedesco',Greek:'greco',Hausa:'Hausa',Hebrew:'ebraico',Hindi:'hindi',Hungarian:'ungherese',Indonesian:'indonesiano',Italian:'italiano',Japanese:'giapponese',Korean:'coreano',Latvian:'lettone',Malay:'malese',Norwegian:'norvegese',Persian:'persiano',Pashto:'Pashto',Polish:'polacco',Portuguese:'portoghese',Romanian:'rumeno',Russian:'russo',Serbian:'serbo',Slovak:'slovacco',Slovenian:'sloveno',Somali:'somalo',Spanish:'spagnolo','Spanish (Mexico)':'Spagnolo (Messico)',Swahili:'Swahili',Swedish:'svedese',Tagalog:'Tagalog',Tamil:'Tamil',Thai:'tailandese',Turkish:'Turco',Ukrainian:'ucraino',Urdu:'Urdu',Vietnamese:'vietnamita',Quality:'Qualità','Picture-in-Picture':'Picture-in-Picture',Replay:'Replay',auto:'auto','subtitles settings':'impostazioni dei sottotitoli','Play Video':'Riproduci video'}),define('videojs-ja',{Play:'再生',Pause:'一時停止','Current Time':'現在の時間',Duration:'所要時間','Remaining Time':'残りの時間',Loaded:'読み込まれました',Progress:'進行状況',Fullscreen:'全画面表示','Non-Fullscreen':'全画面表示解除',Mute:'ミュート',Unmute:'ミュート解除','Playback Rate':'再生速度',Subtitles:'字幕','subtitles off':'字幕オフ',Captions:'キャプション','captions off':'キャプションオフ',Chapters:'章','Close Modal Dialog':'モーダルダイアログを閉じる','You aborted the video playback':'ビデオの再生を中止しました','A network error caused the video download to fail part-way.':'ネットワークエラーが発生したため、ビデオのダウンロードが途中で失敗しました。','The video could not be loaded either because the server or network failed or because the format is not supported.':'サーバーまたはネットワークに障害が発生したか、サポートされていない形式であったため、ビデオを読み込めませんでした。','The video playback was aborted due to a corruption problem or because the video used features your browser did not support.':'ビデオが破損していたか、ブラウザでサポートされていない機能が使われていたため、ビデオの再生が中止されました。','No compatible source was found for this video.':'このビデオの互換性のあるソースが見つかりませんでした。','Transcription off':'トランスクリプションオフ',Transcription:'トランスクリプション',Afrikaans:'アフリカーンス語','Simplified Chinese)':'中国語 (簡体字)','Traditional Chinese)':'中国語 (繁体字)',Dari:'ダリー語','French (Canada)':'フランス語 (カナダ)',Hausa:'ハウサ語',Persian:'ペルシャ語',Pashto:'パシュトゥー語',Serbian:'セルビア語',Slovenian:'スロベニア語','Spanish (Mexico)':'スペイン語 (メキシコ)',Swahili:'スワヒリ語',Urdu:'ウルドゥ語',Albanian:'アルバニア語',Amharic:'アムハラ語',Arabic:'アラビア語','Arabic (Egyptian)':'アラビア語 (エジプト方言)','Arabic (Gulf)':'アラビア語 (湾岸方言)','Arabic (Levantino)':'アラビア語 (レバント方言)','Arabic (Meghrebi)':'アラビア語 (マグリブ方言)',Armenian:'アルメニア語',Azerbaijani:'アゼルバイジャン語',Basque:'バスク語',Belarusian:'ベラルーシ語',Bengali:'ベンガル語',Bosnian:'ボスニア語',Bulgarian:'ブルガリア語',Burmese:'ビルマ語',Catalan:'カタルーニャ語','Traditional Chinese Cantonese':'中国語 (広東語)','Simplified Chinese Mandarin':'中国語 (簡体字)','Traditional Chinese Mandarin':'中国語 (繁体字)',Croatian:'クロアチア語',Czech:'チェコ語',Danish:'デンマーク語',Dutch:'オランダ語','Australian English':'英語 (オーストラリア)','British English':'英語 (英国)','Indian English':'英語 (インド)','Irish English':'英語 (アイルランド)','Scottish English':'英語 (スコットランド)','US English':'英語 (米国)','Welsh English':'英語 (ウェールズ)',Estonian:'エストニア語',Finnish:'フィンランド語','Flamengo (Belgian)':'フラマン語 (ベルギー)',French:'フランス語',Georgian:'ジョージア語',German:'ドイツ語',Greek:'ギリシャ語',Gujarati:'グジャラート語','Haitian Creole':'ハイチ・クレオール語',Hebrew:'ヘブライ語',Hindi:'ヒンディー語',Hungarian:'ハンガリー語',Icelandic:'アイスランド語',Indonesian:'インドネシア語','Irish Gaelic':'ゲール語 (アイルランド)',Italian:'イタリア語',Japanese:'日本語',Kannada:'カンナダ語',Kazakh:'カザフ語',Khmer:'クメール語',Korean:'韓国語',Kurdish:'クルド語',Laothian:'ラオス語',Latvian:'ラトビア語',Lithuanian:'リトアニア語',Macedonian:'マケドニア語',Malay:'マレー語',Malayalam:'マラヤーラム語',Maltese:'マルタ語',Marati:'マラーティー語',Mongolian:'モンゴル語',Montenegrin:'モンテネグロ語',Nepalese:'ネパール語',Norwegian:'ノルウェー語',Farsi:'ペルシャ語',Polish:'ポーランド語','Portuguese - Brazil)':'ポルトガル語 (ブラジル)','Portuguese Portugal)':'ポルトガル語 (ポルトガル)',Punjabi:'パンジャーブ語',Romanian:'ルーマニア語',Russian:'ロシア語','Serbian (Cyrillic)':'セルビア語 (キリル)',Shanghai:'上海語',Sinhala:'シンハラ語',Slovak:'スロバキア語','Slovenian (Slovenian)':'スロベニア語 (スロベニア)',Somali:'ソマリ語',Spanish:'スペイン語','US Spanish':'スペイン語 (米国)','Spanish (Latin America)':'スペイン語 (ラテンアメリカ)',Swedish:'スウェーデン語','Swiss French':'フランス語 (スイス)','Swiss German':'ドイツ語 (スイス)','Swiss Italian':'イタリア語 (スイス)',Tagalog:'タガログ語',Tajik:'タジク語',Tamil:'タミル語',Telugu:'テルグ語',Thai:'タイ語',Tigrinya:'ティグリニャ語',Turkish:'トルコ語',Ukrainian:'ウクライナ語',Uzbek:'ウズベク語',Vietnamese:'ベトナム語',Welsh:'ウェールズ語',Xhosa:'コサ語',Yoruba:'ヨルバ語',Zulu:'ズールー語',Quality:'品質','Picture-in-Picture':'ピクチャーインピクチャー','Play Video':'ビデオを再生'}),define('videojs-ko',{Play:'재생',Pause:'일시 정지','Current Time':'현재 시간',Duration:'재생 기간','Remaining Time':'남은 시간',Loaded:'로드됨',Progress:'진행 중',Fullscreen:'전체 화면','Non-Fullscreen':'부분 화면',Mute:'음소거',Unmute:'음소거 해제','Playback Rate':'재생 속도',Subtitles:'자막','subtitles off':'자막 끄기',Captions:'캡션','captions off':'캡션 끄기',Chapters:'장','Close Modal Dialog':'모달 대화상자 닫기','You aborted the video playback':'동영상 재생을 중단하셨습니다.','A network error caused the video download to fail part-way.':'네트워크 오류로 인해 동영상 다운로드가 중단되었습니다.','The video could not be loaded either because the server or network failed or because the format is not supported.':'서버 또는 네트워크에 오류가 있거나 해당 형식이 지원되지 않기 때문에 동영상을 로드할 수 없습니다.','The video playback was aborted due to a corruption problem or because the video used features your browser did not support.':'동영상이 손상되었거나 해당 브라우저에서는 지원되지 않는 기능을 사용하기 때문에 동영상 재생이 중단되었습니다.','No compatible source was found for this video.':'이 동영상의 호환 가능한 소스를 찾을 수 없습니다.','Transcription off':'자막 끄기',Transcription:'자막',Afrikaans:'아프리카 어',Albanian:'알바니아',Amharic:'암하라 어',Azerbaijani:'아제르바이잔',Bengali:'벵골 사람',Bosnian:'보스니아 어',Bulgarian:'불가리아 사람','Chinese (Simplified)':'중국어 (간체)','Chinese (Traditional)':'중국어 (트 라디오)',Croatian:'크로아티아어',Czech:'체코 사람',Danish:'덴마크 말',Dari:'다리',Dutch:'네덜란드 사람',English:'영어',Estonian:'에스토니아 사람',Finnish:'핀란드어',French:'프랑스 국민','French (Canada)':'프랑스어 (캐나다)',Georgian:'조르지아 주 사람',German:'독일 사람',Greek:'그리스 어',Hausa:'하우사',Hebrew:'헤브라이 사람',Hindi:'힌디 어',Hungarian:'헝가리 인',Indonesian:'인도네시아 인',Italian:'이탈리아 사람',Japanese:'일본어',Korean:'한국어',Latvian:'라트비아 사람',Malay:'말레이 사람',Norwegian:'노르웨이 인',Persian:'페르시아 인',Pashto:'파슈토',Polish:'광택',Portuguese:'포르투갈 인',Romanian:'루마니아 사람',Russian:'러시아인',Serbian:'세르비아 사람',Slovak:'슬로바키아 사람',Slovenian:'슬로베니아',Somali:'소말리아',Spanish:'스페인의','Spanish (Mexico)':'스페인어 (멕시코)',Swahili:'스와힐리어',Swedish:'스웨덴어',Tagalog:'타갈로그어',Tamil:'타밀 사람',Thai:'타이',Turkish:'터키어',Ukrainian:'우크라이나 인',Urdu:'우르두어',Vietnamese:'베트남어',Quality:'품질',Replay:'다시 하다','Picture-in-Picture':'사진 속의 사진',auto:'자동','subtitles settings':'자막 설정','Play Video':'비디오 재생'}),define('videojs-nl',{Play:'Afspelen',Pause:'Pauzeren','Current Time':'Huidige tijd',Duration:'Duur','Remaining Time':'Resterende tijd',Loaded:'Geladen',Progress:'Voortgang',Fullscreen:'Volledig scherm','Non-Fullscreen':'Niet-volledig scherm',Mute:'Dempen',Unmute:'Dempen opheffen','Playback Rate':'Afspeelsnelheid',Subtitles:'Ondertiteling','subtitles off':'ondertiteling uit',Captions:'Ondertiteling','captions off':'ondertiteling uit',Chapters:'Hoofdstukken','Close Modal Dialog':'Dialoogvenster sluiten','You aborted the video playback':'U hebt het afspelen van de video afgebroken','A network error caused the video download to fail part-way.':'Het downloaden van de video is afgebroken voordat het was voltooid vanwege een netwerkfout.','The video could not be loaded either because the server or network failed or because the format is not supported.':'De video is niet geladen omdat de verbinding met het netwerk of de server is verbroken of omdat de indeling niet wordt ondersteund.','The video playback was aborted due to a corruption problem or because the video used features your browser did not support.':'Het afspelen van de video is afgebroken omdat deze is beschadigd of omdat voor de video functies worden gebruikt die uw browser niet ondersteunt.','No compatible source was found for this video.':'Er is geen compatibele bron gevonden voor deze video.','Transcription off':'Transcriptie uit',Transcription:'Transcriptie',Arabic:'Arabisch',Afrikaans:'Afrikaans',Albanian:'Albanees',Amharic:'Amhaars',Azerbaijani:'Azerbeidzjaans',Bengali:'Bengaals',Bosnian:'Bosnisch',Bulgarian:'Bulgaars','Chinese (Simplified)':'Chinees (Simplified)','Chinese (Traditional)':'Chinees (Traditional)',Croatian:'Kroatisch',Czech:'Tsjechisch',Danish:'Deens',Dari:'Dari',Dutch:'Nederlands',English:'Engels',Estonian:'Ests',Finnish:'Fins',French:'Frans','French (Canada)':'Frans (Canada)',Georgian:'Georgisch',German:'Duitse',Greek:'Grieks',Hausa:'Hausa',Hebrew:'Hebreeuws',Hindi:'Hindi',Hungarian:'Hongaars',Indonesian:'Indonesisch',Italian:'Italiaans',Japanese:'Japans',Korean:'Koreaans',Latvian:'Lets',Malay:'Maleis',Norwegian:'Noors',Persian:'Perzisch',Pashto:'Pasjtoe',Polish:'Pools',Portuguese:'Portugees',Romanian:'Roemeense',Russian:'Russisch',Serbian:'Servisch',Slovak:'Slowaaks',Slovenian:'Sloveens',Somali:'Somalisch',Spanish:'Spaans','Spanish (Mexico)':'Spaans (Mexico)',Swahili:'Swahili',Swedish:'Zweeds',Tagalog:'Tagalog',Tamil:'Tamil',Thai:'Thais',Turkish:'Turks',Ukrainian:'Oekraïens',Urdu:'Urdu',Vietnamese:'Vietnamees',Quality:'Kwaliteit','Picture-in-Picture':'Foto in foto',Replay:'Herhaling',auto:'auto','subtitles settings':'ondertitelinstellingen','Play Video':'Video afspelen'}),define('videojs-no',{Play:'Spill av',Pause:'Pause','Current Time':'Gjeldende tid',Duration:'Varighet','Remaining Time':'Gjenværende tid',Loaded:'Lastet inn',Progress:'Fremdrift',Fullscreen:'Fullskjerm','Non-Fullscreen':'Ikke fullskjerm',Mute:'Demp',Unmute:'Slå på lyd','Playback Rate':'Avspillingshastighet',Subtitles:'Teksting','subtitles off':'teksting av',Captions:'Bildetekster','captions off':'bildetekster av',Chapters:'Kapitler','Close Modal Dialog':'Lukk modaldialog','You aborted the video playback':'Du avsluttet videoavspillingen','A network error caused the video download to fail part-way.':'En nettverksfeil førte til at nedlasting av video ble avsluttet halvveis.','The video could not be loaded either because the server or network failed or because the format is not supported.':'"Videoen kunne ikke lastes inn, enten på grunn av server- eller nettverksfeil eller fordi formatet ikke støttes."','The video playback was aborted due to a corruption problem or because the video used features your browser did not support.':'Videoavspillingen ble avbrutt på grunn av videoen er skadet eller fordi den brukte funksjoner som nettleseren din ikke støtter.','No compatible source was found for this video.':'Det ble ikke funnet noen kompatibel kilde for denne videoen.','Transcription off':'Transkripsjon av',Transcription:'Transkripsjon',Arabic:'Arabisk',Afrikaans:'afrikaans',Albanian:'Albansk',Amharic:'amharisk',Azerbaijani:'aserbajdsjanske',Bengali:'bengali',Bosnian:'bosnisk',Bulgarian:'bulgarian','Chinese (Simplified)':'Kinesisk (forenklet','Chinese (Traditional)':'Kinesisk (Traditional)',Croatian:'Kroatisk',Czech:'Czech',Danish:'dansk',Dari:'Dari',Dutch:'nederlandsk',English:'Engelsk',Estonian:'estonian',Finnish:'finsk',French:'fransk','French (Canada)':'Fransk (Canada)',Georgian:'georgian',German:'tysk',Greek:'gresk',Hausa:'Hausa',Hebrew:'Hebraisk',Hindi:'hindi',Hungarian:'ungarsk',Indonesian:'indonesian',Italian:'italiensk',Japanese:'japansk',Korean:'Korean',Latvian:'latvisk',Malay:'Malay',Norwegian:'norsk',Persian:'Persian',Pashto:'pashto',Polish:'Pusse',Portuguese:'portugisisk',Romanian:'rumensk',Russian:'russisk',Serbian:'serbisk',Slovak:'slovak',Slovenian:'slovenian',Somali:'Somali',Spanish:'spansk','Spanish (Mexico)':'Spansk (Mexico)',Swahili:'swahili',Swedish:'svensk',Tagalog:'tagalog',Tamil:'Tamil',Thai:'Thai',Turkish:'Turkish',Ukrainian:'ukrainsk',Urdu:'urdu',Vietnamese:'Vietnamesisk',Quality:'Kvalitet','Picture-in-Picture':'Bilde-i-bilde',Replay:'Replay',auto:'auto','subtitles settings':'innstillinger for undertekster','Play Video':'Spill av video'}),define('videojs-pl',{Play:'Odtwarzaj',Pause:'Zatrzymaj','Current Time':'Bieżący czas',Duration:'Czas trwania','Remaining Time':'Pozostały czas',Loaded:'Załadowano',Progress:'Postęp',Fullscreen:'Pełny ekran','Non-Fullscreen':'Nie pełny ekran',Mute:'Wycisz',Unmute:'Wyłącz wyciszenie','Playback Rate':'Szybkość odtwarzania',Subtitles:'Napisy','subtitles off':'Wyłącz napisy',Captions:'Napisy','captions off':'Wyłącz napisy',Chapters:'Rozdziały','Close Modal Dialog':'Zamknij modalne okno dialogowe','You aborted the video playback':'Przerwałeś odtwarzanie wideo','A network error caused the video download to fail part-way.':'Błąd sieci spowodował częściowe niepowodzenie pobierania wideo.','The video could not be loaded either because the server or network failed or because the format is not supported.':'"Nie można załadować wideo, ponieważ wystąpił błąd serwera lub sieci albo format nie jest obsługiwany."','The video playback was aborted due to a corruption problem or because the video used features your browser did not support.':'Odtwarzanie wideo zostało przerwane z powodu uszkodzenia lub ponieważ funkcje używane w wideo nie były obsługiwane przez przeglądarkę.','No compatible source was found for this video.':'Nie znaleziono kompatybilnego źródła dla tego wideo.','Transcription off':'Wyłącz transkrypcję',Transcription:'Transkrypcja',Arabic:'arabski',Afrikaans:'Afrikaans',Albanian:'albański',Amharic:'amharski',Azerbaijani:'azerbejdżański',Bengali:'bengalski',Bosnian:'bośniacki',Bulgarian:'bułgarski','Chinese (Simplified)':'Chiński (Simplified)','Chinese (Traditional)':'Chiński (Traditional)',Croatian:'chorwacki',Czech:'Czech',Danish:'duński',Dari:'Dari',Dutch:'holenderski',English:'język angielski',Estonian:'estoński',Finnish:'fiński',French:'Francuski','French (Canada)':'Francuski (Kanada)',Georgian:'gruziński',German:'Niemiecki',Greek:'grecki',Hausa:'Hausa',Hebrew:'hebrajski',Hindi:'hinduski',Hungarian:'język węgierski',Indonesian:'indonezyjski',Italian:'Włoski',Japanese:'język japoński',Korean:'koreański',Latvian:'łotewski',Malay:'malajski',Norwegian:'norweski',Persian:'perski',Pashto:'Paszto',Polish:'Polskie',Portuguese:'portugalski',Romanian:'rumuński',Russian:'Rosyjski',Serbian:'serbski',Slovak:'słowacki',Slovenian:'słoweński',Somali:'Somalijski',Spanish:'hiszpański','Spanish (Mexico)':'Hiszpański (Meksyk)',Swahili:'Suahili',Swedish:'szwedzki',Tagalog:'Tagalog',Tamil:'Tamil',Thai:'tajski',Turkish:'turecki',Ukrainian:'ukraiński',Urdu:'Urdu',Vietnamese:'wietnamski',Quality:'Jakość','Picture-in-Picture':'Obrazek w obrazku',Replay:'Powtórna rozgrywka',auto:'automatyczny','Play Video':'Odtwórz wideo'}),define('videojs-pt',{Play:'Reproduzir',Pause:'Pausar','Current Time':'Tempo atual',Duration:'Duração','Remaining Time':'Tempo restante',Loaded:'Carregado',Progress:'Progresso',Fullscreen:'Tela cheia','Non-Fullscreen':'Não tela cheia',Mute:'Mudo',Unmute:'Desativar mudo','Playback Rate':'Taxa de reprodução',Subtitles:'Legendas','subtitles off':'legendas desligadas',Captions:'Legendas','captions off':'legendas desligadas',Chapters:'Capítulos','Close Modal Dialog':'Fechar caixa de diálogo modal','You aborted the video playback':'Você abortou a reprodução do vídeo','A network error caused the video download to fail part-way.':'Um erro de rede causou falha no download parcial do vídeo.','The video could not be loaded either because the server or network failed or because the format is not supported.':'"O vídeo não pode ser carregador devido à falha no servidor ou na rede, ou porque o formato não é compatível."','The video playback was aborted due to a corruption problem or because the video used features your browser did not support.':'A reprodução do vídeo foi abortada devido a um problema de corrupção ou porque o vídeo usou recursos incompatíveis com o seu navegador.','No compatible source was found for this video.':'Nenhuma fonte compatível foi encontrada para este vídeo.','Transcription off':'Transcrição desligada',Transcription:'Transcrição',Arabic:'árabe',Afrikaans:'afrikaans',Albanian:'albanês',Amharic:'Amárico',Azerbaijani:'Azerbaijão',Bengali:'bengali',Bosnian:'Bósnio',Bulgarian:'búlgaro','Chinese (Simplified)':'Chinês (Simplified)','Chinese (Traditional)':'Chinês (Traditional)',Croatian:'croata',Czech:'Tcheco',Danish:'dinamarquês',Dari:'Dari',Dutch:'holandês',English:'Inglês',Estonian:'estoniano',Finnish:'finlandês',French:'francês','French (Canada)':'Francês (Canadá)',Georgian:'Georgiano',German:'alemão',Greek:'grego',Hausa:'Hausa',Hebrew:'hebraico',Hindi:'hindi',Hungarian:'húngaro',Indonesian:'indonésio',Italian:'italiano',Japanese:'japonês',Korean:'coreano',Latvian:'letão',Malay:'malaio',Norwegian:'norueguês',Persian:'persa',Pashto:'Pashto',Polish:'polonês',Portuguese:'Português',Romanian:'romena',Russian:'russo',Serbian:'sérvio',Slovak:'Eslovaco',Slovenian:'esloveno',Somali:'Somali',Spanish:'espanhol','Spanish (Mexico)':'Espanhol (México)',Swahili:'Suaíli',Swedish:'sueco',Tagalog:'Tagalo',Tamil:'tâmil',Thai:'tailandês',Turkish:'turco',Ukrainian:'ucraniano',Urdu:'urdu',Vietnamese:'vietnamita',Quality:'Qualidade','Picture-in-Picture':'Imagem em Imagem',Replay:'Repetir',auto:'auto','subtitles settings':'configurações de legendas','Play Video':'Reproduzir vídeo'}),define('videojs-ru',{Play:'Воспроизведение',Pause:'Пауза','Current Time':'Текущее время',Duration:'Продолжительность','Remaining Time':'Оставшееся время',Loaded:'Загружено',Progress:'Выполнение',Fullscreen:'Полный экран','Non-Fullscreen':'Не полный экран',Mute:'Выключить звук',Unmute:'Включить звук','Playback Rate':'Скорость воспроизведения',Subtitles:'Субтитры','subtitles off':'отключить субтитры',Captions:'Субтитры для слабослышащих','captions off':'отключить субтитры для слабослышащих',Chapters:'Главы','Close Modal Dialog':'Закрыть модальное окно','You aborted the video playback':'Вы прервали воспроизведение видео','A network error caused the video download to fail part-way.':'Ошибка сети. Не удалось скачать видео.','The video could not be loaded either because the server or network failed or because the format is not supported.':'"Видео не может быть загружено из-за ошибки сервера или сети, или формат данного файла не поддерживается."','The video playback was aborted due to a corruption problem or because the video used features your browser did not support.':'"Воспроизведение видео было остановлено из-за поврежденного файла или из-за того, что ваш браузер не поддерживает некоторые параметры данного видео."','No compatible source was found for this video.':'Не найден совместимый источник для данного видео.','Transcription off':'Отключить транскрибирование',Transcription:'Транскрибирование',Afrikaans:'Африкаанс','Simplified Chinese)':'Китайский (упрощенный)','Traditional Chinese)':'Китайский (традиционный)',Dari:'Дари','French (Canada)':'Французский (Канада)',Hausa:'Хауса',Persian:'Персидский',Pashto:'Пушту',Serbian:'Сербский',Slovenian:'Словенский','Spanish (Mexico)':'Испанский (Мексика)',Swahili:'Суахили',Urdu:'Урду',Albanian:'Албанский',Amharic:'Амхарский',Arabic:'Арабский','Arabic (Egyptian)':'Арабский (египетский диалект)','Arabic (Gulf)':'Арабский (диалект Персидского залива)','Arabic (Levantino)':'Арабский (сиро-палестинский диалект)','Arabic (Meghrebi)':'Арабский (магрибский диалект)',Armenian:'Армянский',Azerbaijani:'Азербайджанский',Basque:'Баскский',Belarusian:'Белорусский',Bengali:'Бенгальский',Bosnian:'Боснийский',Bulgarian:'Болгарский',Burmese:'Бирманский',Catalan:'Каталанский','Traditional Chinese Cantonese':'Китайский (кантонский диалект)','Simplified Chinese Mandarin':'Китайский (мандарин упрощенный)','Traditional Chinese Mandarin':'Китайский (мандарин традиционный)',
Croatian:'Хорватский',Czech:'Чешский',Danish:'Датский',Dutch:'Нидерландский','Australian English':'Английский (Австралия)','British English':'Английский (Великобритания)','Indian English':'Английский (Индия)','Irish English':'Английский (Ирландия)','Scottish English':'Английский (Шотландия)','US English':'Английский (США)','Welsh English':'Английский (Уэльс)',Estonian:'Эстонский',Finnish:'Финский','Flamengo (Belgian)':'Фламандский (Бельгия)',French:'Французский',Georgian:'Грузинский',German:'Немецкий',Greek:'Греческий',Gujarati:'Гуджарати','Haitian Creole':'Гаитянский креольский',Hebrew:'Иврит',Hindi:'Хинди',Hungarian:'Венгерский',Icelandic:'Исландский',Indonesian:'Индонезийский','Irish Gaelic':'Irish Gaelic',Italian:'Итальянский',Japanese:'Японский',Kannada:'Каннада',Kazakh:'Казахский',Khmer:'Кхмерский',Korean:'Корейский',Kurdish:'Курдский',Laothian:'Лаосский',Latvian:'Латвийский',Lithuanian:'Литовский',Macedonian:'Македонский',Malay:'Малайский',Malayalam:'Малаялам',Maltese:'Мальтийский',Marati:'Маратхи',Mongolian:'Монгольский',Montenegrin:'Черногорский',Nepalese:'Непальский',Norwegian:'Норвежский',Farsi:'Фарси',Polish:'Польский','Portuguese - Brazil)':'Португальский (Бразилия)','Portuguese Portugal)':'Португальский (Португалия)',Punjabi:'Панджаби',Romanian:'Румынский',Russian:'Русский','Serbian (Cyrillic)':'Сербский (кириллица)',Shanghai:'Шанхайский',Sinhala:'Сингальский',Slovak:'Словацкий','Slovenian (Slovenian)':'Словенский',Somali:'Сомали',Spanish:'Испанский','US Spanish':'Испанский (США)','Spanish (Latin America)':'Испанский (Латинская Америка)',Swedish:'Шведский','Swiss French':'Французский (Швейцария)','Swiss German':'Немецкий (Швейцария)','Swiss Italian':'Итальянский (Швейцария)',Tagalog:'Тагальский',Tajik:'Таджикский',Tamil:'Тамильский',Telugu:'Телугу',Thai:'Тайский',Tigrinya:'Tigrinya',Turkish:'Турецкий',Ukrainian:'Украинский',Uzbek:'Узбекский',Vietnamese:'Вьетнамский',Welsh:'Валлийский',Xhosa:'Кхоса',Yoruba:'Йоруба',Zulu:'Зулусский',Quality:'Качественный','Picture-in-Picture':'Картинка в картинке','Play Video':'Воспроизведение видео'}),define('videojs-sv',{Play:'Spela upp',Pause:'Paus','Current Time':'Aktuell tid',Duration:'Varaktighet','Remaining Time':'Återstående tid',Loaded:'Laddad',Progress:'Förlopp',Fullscreen:'Helskärm','Non-Fullscreen':'Icke-helskärm',Mute:'Stäng av ljud',Unmute:'Slå på ljud','Playback Rate':'Uppspelningshastighet',Subtitles:'Undertexter','subtitles off':'undertexter av',Captions:'Texter','captions off':'texter av',Chapters:'Kapitel','Close Modal Dialog':'Stäng lägesdialogrutan','You aborted the video playback':'Du avbröt videouppspelningen','A network error caused the video download to fail part-way.':'På grund av ett nätverksfel misslyckades videouppspelningen delvis.','The video could not be loaded either because the server or network failed or because the format is not supported.':'Det gick inte att läsa in videon antingen p.g.a. fel på servern eller nätverket eller p.g.a. att formatet inte stöds.','The video playback was aborted due to a corruption problem or because the video used features your browser did not support.':'Videouppspelningen avbröts p.g.a. att videon har skadats eller har funktioner som din webbläsare inte stöder.','No compatible source was found for this video.':'Det hittades ingen kompatibel källa för den här videon.','Transcription off':'Transkription av',Transcription:'Transkription',Arabic:'Arabiska',Afrikaans:'afrikaans',Albanian:'albanska',Amharic:'amhariska',Azerbaijani:'azerbajdzjanska',Bengali:'bengali',Bosnian:'bosniska',Bulgarian:'bulgariska','Chinese (Simplified)':'Kinesiska (förenklad','Chinese (Traditional)':'Kinesiska (Traditional)',Croatian:'Kroatisk',Czech:'tjeck',Danish:'danska',Dari:'Dari',Dutch:'Dutch',English:'engelsk',Estonian:'estniska',Finnish:'finska',French:'franska','French (Canada)':'Franska (Kanada)',Georgian:'georgiansk',German:'tysk',Greek:'grekisk',Hausa:'Hausa',Hebrew:'Hebrew',Hindi:'Hindi',Hungarian:'ungerska',Indonesian:'indonesiska',Italian:'italiensk',Japanese:'japansk',Korean:'koreanska',Latvian:'Lettiska',Malay:'Malay',Norwegian:'Norwegian',Persian:'Persiska',Pashto:'afghanska',Polish:'putsa',Portuguese:'portugisiska',Romanian:'rumänska',Russian:'ryska',Serbian:'Serbiska',Slovak:'Slovak',Slovenian:'slovenska',Somali:'Somali',Spanish:'spanska','Spanish (Mexico)':'Spanska (Mexiko)',Swahili:'Swahili',Swedish:'svenska',Tagalog:'Tagalog',Tamil:'Tamil',Thai:'Thai',Turkish:'Turkish',Ukrainian:'ukrainska',Urdu:'Urdu',Vietnamese:'vietnames',Quality:'Kvalitet','Picture-in-Picture':'Bild-i-bild',Replay:'Repris',auto:'bil','Play Video':'Spela upp video'}),define('videojs-th',{Play:'เล่น',Pause:'หยุดชั่วคราว','Current Time':'เวลาปัจจุบัน',Duration:'ระยะเวลา','Remaining Time':'เวลาที่เหลือ',Loaded:'โหลดแล้ว',Progress:'ความคืบหน้า',Fullscreen:'เต็มหน้าจอ','Non-Fullscreen':'ไม่เต็มหน้าจอ',Mute:'ปิดเสียง',Unmute:'เปิดเสียง','Playback Rate':'อัตราการเล่น',Subtitles:'ซับไตเติล','subtitles off':'ปิดซับไตเติล',Captions:'คำบรรยาย','captions off':'ปิดคำบรรยาย',Chapters:'บท','Close Modal Dialog':'ปิดกล่องโต้ตอบโมดอล','You aborted the video playback':'คุณยกเลิกการเล่นวิดีโอ','A network error caused the video download to fail part-way.':'ข้อผิดพลาดเนื่องจากเครือข่ายทำให้การดาวน์โหลดวิดีโอล้มเหลวกลางคัน','The video could not be loaded either because the server or network failed or because the format is not supported.':'โหลดวิดีโอไม่ได้เนื่องจากเซิร์ฟเวอร์/เครือข่ายล้มเหลวหรือเนื่องจากไม่รองรับรูปแบบ','The video playback was aborted due to a corruption problem or because the video used features your browser did not support.':'ยกเลิกการเล่นวิดีโอเนื่องจากมีปัญหาจากความเสียหายหรือเพราะวิดีโอใช้คุณลักษณะที่เบราว์เซอร์ไม่รองรับ','No compatible source was found for this video.':'ไม่พบแหล่งที่มาที่เข้ากันได้สำหรับวิดีโอนี้','Transcription off':'ปิดข้อความถอดเสียง',Transcription:'ข้อความถอดเสียง',Afrikaans:'อาฟรีกานส์','Simplified Chinese)':'จีน (ตัวย่อ)','Traditional Chinese)':'จีน (ตัวเต็ม)',Dari:'ดารี','French (Canada)':'ฝรั่งเศส (แคนาดา)',Hausa:'เฮาซา',Persian:'เปอร์เซีย',Pashto:'พาชโต',Serbian:'เซอร์เบีย',Slovenian:'สโลวีเนีย','Spanish (Mexico)':'สเปน (เม็กซิโก)',Swahili:'สวาฮีลี',Urdu:'อูรดู',Albanian:'แอลเบเนีย',Amharic:'อัมฮาริก',Arabic:'อาหรับ','Arabic (Egyptian)':'อาหรับ (อียิปต์)','Arabic (Gulf)':'อาหรับ (อ่าวเปอร์เซีย)','Arabic (Levantino)':'อาหรับ (เลแวนต์)','Arabic (Meghrebi)':'อาหรับ (เมเกร็บ)',Armenian:'อาร์มีเนีย',Azerbaijani:'อาเซอร์ไบจาน',Basque:'บาสก์',Belarusian:'เบลารุส',Bengali:'เบงกาลี',Bosnian:'บอสเนีย',Bulgarian:'บัลแกเรีย',Burmese:'พม่า',Catalan:'กาตาลัน','Traditional Chinese Cantonese':'จีนตัวเต็ม กวางตุ้ง','Simplified Chinese Mandarin':'จีนกลาง-ตัวย่อ','Traditional Chinese Mandarin':'จีนกลาง-ตัวเต็ม',Croatian:'โครเอเชีย',Czech:'เช็ก',Danish:'เดนมาร์ก',Dutch:'ดัตช์','Australian English':'อังกฤษในออสเตรเลีย','British English':'อังกฤษในสหราชอาณาจักร','Indian English':'อังกฤษในออสเตรเลีย','Irish English':'อังกฤษในไอร์แลนด์','Scottish English':'อังกฤษในสก็อตแลนด์','US English':'อังกฤษในสหรัฐอเมริกา','Welsh English':'อังกฤษในเวลส์',Estonian:'เอสโตเนีย',Finnish:'ฟินแลนด์','Flamengo (Belgian)':'เฟลมิช (เบลเยียม)',French:'ฝรั่งเศส',Georgian:'จอร์เจีย',German:'เยอรมัน',Greek:'กรีก',Gujarati:'คุชราต','Haitian Creole':'เฮติครีโอล',Hebrew:'ฮีบรู',Hindi:'ฮินดี',Hungarian:'ฮังการี',Icelandic:'ไอซ์แลนด์',Indonesian:'อินโดนีเซีย','Irish Gaelic':'ไอริช',Italian:'อิตาลี',Japanese:'ญี่ปุ่น',Kannada:'กันนาดา',Kazakh:'คาซัค',Khmer:'เขมร',Korean:'เกาหลี',Kurdish:'เคิร์ด',Laothian:'ลาว',Latvian:'ลัตเวีย',Lithuanian:'ลิทัวเนีย',Macedonian:'มาซิโดเนีย',Malay:'มาเลย์',Malayalam:'มลยาฬัม',Maltese:'มอลตา',Marati:'มาราฐี',Mongolian:'มองโกเลีย',Montenegrin:'มอนเตเนโกร',Nepalese:'เนปาล',Norwegian:'นอร์เวย์',Farsi:'เปอร์เซีย',Polish:'โปแลนด์','Portuguese - Brazil)':'โปรตุเกส (บราซิล)','Portuguese Portugal)':'โปรตุเกส (โปรตุเกส)',Punjabi:'ปัญจาบ',Romanian:'โรมาเนีย',Russian:'รัสเซีย','Serbian (Cyrillic)':'เซอร์เบีย (ซีริลลิก)',Shanghai:'เซี่ยงไฮ้',Sinhala:'สิงหล',Slovak:'สโลวัก','Slovenian (Slovenian)':'สโลวีเนีย (สโลวีเนีย)',Somali:'โซมาลี',Spanish:'สเปน','US Spanish':'สเปนในสหรัฐอเมริกา','Spanish (Latin America)':'สเปน (ลาตินอเมริกา)',Swedish:'สวีเดน','Swiss French':'ฝรั่งเศสในสวิตเซอร์แลนด์','Swiss German':'เยอรมันในสวิตเซอร์แลนด์','Swiss Italian':'อิตาลีในสวิตเซอร์แลนด์',Tagalog:'ตากาล็อก',Tajik:'ทาจิก',Tamil:'ทมิฬ',Telugu:'เตลูกู',Thai:'ไทย',Tigrinya:'ทิกรินยา',Turkish:'ตุรกี',Ukrainian:'ยูเครน',Uzbek:'อุซเบก',Vietnamese:'เวียดนาม',Welsh:'เวลส์',Xhosa:'โซซา',Yoruba:'โยรูบา',Zulu:'ซูลู',Quality:'คุณภาพ','Picture-in-Picture':'ภาพในรูปภาพ','Play Video':'เล่นวีดีโอ'}),define('videojs-zh',{Play:'播放',Pause:'暂停','Current Time':'当前时间',Duration:'持续时间','Remaining Time':'剩余时间',Loaded:'已加载',Progress:'进度',Fullscreen:'全屏','Non-Fullscreen':'非全屏',Mute:'静音',Unmute:'取消静音','Playback Rate':'播放速率',Subtitles:'翻译字幕','subtitles off':'关闭翻译字幕',Captions:'字幕','captions off':'关闭字幕',Chapters:'章节','Close Modal Dialog':'关闭模式对话框','You aborted the video playback':'您已中止视频播放','A network error caused the video download to fail part-way.':'网络错误导致视频下载中途失败。','The video could not be loaded either because the server or network failed or because the format is not supported.':'由于服务器或网络故障或不支持的文件格式,无法加载视频。','The video playback was aborted due to a corruption problem or because the video used features your browser did not support.':'由于文件损坏或您的浏览器不支持视频使用的某些功能,视频播放中止。','No compatible source was found for this video.':'没有找到与此视频兼容的来源。','Transcription off':'转写关闭',Transcription:'转写',Arabic:'阿拉伯',Afrikaans:'南非语',Albanian:'阿尔巴尼亚语',Amharic:'阿姆哈拉语',Azerbaijani:'阿塞拜疆人',Bengali:'孟加拉',Bosnian:'波斯尼亚人',Bulgarian:'保加利亚语','Chinese (Simplified)':'中文(简体)','Chinese (Traditional)':'中文(繁体)',Croatian:'克罗地亚语',Czech:'捷克文',Danish:'丹麦文',Dari:'达里',Dutch:'荷兰语',English:'英语',Estonian:'爱沙尼亚语',Finnish:'芬兰',French:'法文','French (Canada)':'法语(加拿大)',Georgian:'格鲁吉亚人',German:'德语',Greek:'希腊语',Hausa:'豪萨',Hebrew:'希伯来语',Hindi:'印地语',Hungarian:'匈牙利',Indonesian:'印度尼西亚',Italian:'义大利文',Japanese:'日本',Korean:'韩语',Latvian:'拉脱维亚语',Malay:'马来语',Norwegian:'挪威',Persian:'波斯语',Pashto:'普什图语',Polish:'抛光',Portuguese:'葡萄牙语',Romanian:'罗马尼亚语',Russian:'俄语',Serbian:'塞尔维亚',Slovak:'斯洛伐克文',Slovenian:'斯洛文尼亚文',Somali:'索马里',Spanish:'西班牙文','Spanish (Mexico)':'西班牙语(墨西哥)',Swahili:'斯瓦希里语',Swedish:'瑞典',Tagalog:'他加禄语',Tamil:'泰米尔语',Thai:'泰国',Turkish:'土耳其',Ukrainian:'乌克兰',Urdu:'乌尔都语',Vietnamese:'越南文',Quality:'质量','Picture-in-Picture':'画中画',Replay:'重播',auto:'汽车','subtitles settings':'字幕设定','Play Video':'播放视频'}),define('videojs-lang',['videojs-ar','videojs-cs','videojs-da','videojs-de','videojs-el','videojs-es','videojs-fi','videojs-fr','videojs-he','videojs-hu','videojs-it','videojs-ja','videojs-ko','videojs-nl','videojs-no','videojs-pl','videojs-pt','videojs-ru','videojs-sv','videojs-th','videojs-zh'],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){function v(a,b,c){const d=w(a);'en'!==a&&'en'!==d&&(b.addLanguage(a,d),c.language=a)}function w(v){switch(v){case'ar':return a;case'cs':return b;case'da':return c;case'de':return d;case'el':return e;case'es':return f;case'fi':return g;case'fr':return h;case'iw':return i;case'ja':return l;case'hu':return j;case'it':return k;case'ko':return m;case'nl':return n;case'no':return o;case'no':return o;case'pl':return p;case'pt':return q;case'ru':return r;case'sv':return s;case'th':return t;case'zh':return u;default:return'en'}}return v}),define('soy!jive.video.errors.videoEncodingError',['soyDeps'],function(a){return jive.namespace.call(this,'jive.video.errors'),jive.video.errors.videoEncodingError=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="jive-video-encode-box"><div class="jive-video-message-large">',soy.$$escapeHtml(a._i18n('3a1158',[])),'</div><div class="jive-video-encode-icon"><span class="jive-icon-glyph icon-j-mov"></span><span class="jive-icon-glyph icon-gear"></span></div></div>'),c?'':d.toString()},jive.video.errors.videoEncodingError}),define('apps/defaults',{width:747,height:420,aspectRatio:1.77}),define('apps/centerElement',['jquery','jive/rtl'],function(a,b){function c(b,c){if(0===b.closest('#j-stream, #j-js-communications').length)if(0!==b.find('object').length){var d=b.find('object'),e=parseInt((c.height()-d.height())/2),f=parseInt((c.width()-d.width())/2);a('.j-responsive-sm').length>0?d.css('padding-top',e+"px"):b.css('top',e+"px")}else{var e=parseInt((c.height()-b.height())/2),f=parseInt((c.width()-b.width())/2);b.css('top',e+"px"),220>f?(a('#transcript').css("top",c.height()+20+'px'),a('#transcript').css("width",b.width()+'px'),a('#transcript').css("height",'100px'),a('#transcript').css("right",f+'px'),a('#transcript-videoArea').css("height",'100px'),a('.transcript-body').css("height",'85px'),a('#transcript').is(":visible")&&a('.jive-video-content').css("padding-bottom",'150px')):(a('#transcript').css("top",''),a('#transcript').css("width",''),a('#transcript').css("right",''),a('#transcript').css("height",''),a('#transcript-videoArea').css("height",''),a('.transcript-body').css("height",''),a('.jive-video-content').css("padding-bottom",''))}}return c}),define('apps/setPlayerSizes',['jquery','./video/vars'],function(a,b){function c(c,d){var e=a('.jive-video-base'),f=e.find(".jive-video-player");e.width(c),e.height(d);var g="100%",h="100%";b.fixedPlayerSize&&(g=b.fixedWidth,h=b.fixedHeight),f.css("width",g),f.css("height",h),f.children().css("width",g),f.children().css("height",h),f.children().attr("width",g),f.children().attr("height",h)}return c}),define('apps/resizePlayer',['jquery','./defaults','./centerElement','./setPlayerSizes','./video/vars','videojs'],function(a,b,c,d,e,f){function g(){return f.browser.IS_ANDROID||f.browser.IS_IPHONE||f.browser.IS_NATIVE_ANDROID}function h(f){if(e.fixedPlayerSize)c(a('.jive-video-base'),a(".jive-video-content"));else{const h=355,j=406;var k,l,m,n;f&&0!==a('#j-stream, #j-js-communications').length?(k=a(f),l=k.parent(),m=k.find('img').width(),n=k.find('img').height()):f&&f.find&&f.find('img').length&&!f.find('img').hasClass('jive-video-poster')?(l=f.find('img'),k=l,m=k.width(),n=k.height()):(l=a('.jive-video-base').length?a('.jive-video-base'):a('.jive-video-view.jive-content-video').find('img'),k=a('.jive-video-content').length?a('.jive-video-content'):l,!k.length&&f&&f.find&&f.find('iframe').length&&(l=k=f.find('iframe')),m=k.width(),n=k.height());var o=parseInt(i/100*n),p=parseInt(b.aspectRatio*o);p>=m*i/100&&(p=parseInt(m*i/100),o=parseInt(p/b.aspectRatio)),o>=n*i/100&&(o=parseInt(n*i/100),p=parseInt(b.aspectRatio*o)),g()&&h>p?p=h:j>p&&(p=j),d(p,o),c(l,k)}return{width:p,height:o}}var i=95;return h}),define('soy!jive.video.errors.videoStatusError',['soyDeps'],function(a){return jive.namespace.call(this,'jive.video.errors'),jive.video.errors.videoStatusError=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="jive-video-encode-box"><div class="jive-video-message-large">',soy.$$escapeHtml(a._i18n('cf48be',[])),'</div><div class="jive-video-encode-icon"><span class="jive-icon-glyph icon-j-mov"></span><span class="jive-icon-glyph icon-gear"></span></div></div>'),c?'':d.toString()},jive.video.errors.videoStatusError}),define('i18nReady',['jive/i18nInitialMap'],function(a){'use strict';return{load:function(b,c,d,e){e.isBuild?d():a.then(d)}}}),define('apps/renderVideo',['jquery','underscore','./defaults','./resizePlayer','soy!jive.video.errors.videoEncodingError','soy!jive.video.errors.videoStatusError','i18nReady!','domReady!'],function(a,b,c,d,e,f){function g(c,d){function e(){return a('body').hasClass('j-responsive-sm')}function f(){return c.find('.j-video-preview').length}function g(){return a('.j-tile-body').length&&b.filter(a('.j-tile-body'),function(a){return a.contains(c[0])}).length}function h(){return!(d>0)}return h()&&(c.length&&g()||e()||f())}function h(b,h){var j=a('#'+b);if("error"===h.status)return j.replaceWith(a(f())),void 0;if(!h.ready){const k=a(e());return k.attr("style",j.attr("style")),j.replaceWith(k),void 0}var l=h.externalID?''+h.externalID:'',m=d(j);m.width=g(j,m.width)?j.find('img').width():m.width;var n=m.width||Math.min(h.width,c.width);0===a('#j-stream, #j-js-communications').length&&(n=Math.min(n,a('.jive-video-base').width()-10)>0?Math.min(n,a('.jive-video-base').width()-10):n);var o=m.height||Math.min(h.height,Math.round(n/c.aspectRatio));j.closest('#j-stream, #j-js-communications').length>0&&(n=Math.min(j.find('img').width(),n),o=Math.min(j.find('img').height(),n)),j.height(o+50),j.width(n+25);var p=a("<iframe width=\""+(n+25)+"\" height=\""+(o+25)+"\" allowfullscreen=\"true\" class=\"j-rte-video\" id=\"iframe_"+l+"\" title=\"embedded video\" src=\"/video/playback?playbackType=standalone&videoId="+l+"&width="+n+"&height="+o+"&autoplay="+h.autoplay+"&authtoken="+h.authtoken+"&inline="+h.inline+'">');i(j,p),null==p[0].contentWindow&&i(j,p)}function i(a,b){a.children().remove(),a.append(b)}return h}),define('soy!jive.video.errors.videoPermissionsError',['soyDeps'],function(a){return jive.namespace.call(this,'jive.video.errors'),jive.video.errors.videoPermissionsError=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="jive-video-encode-box"><div class="jive-video-message-large">',soy.$$escapeHtml(a._i18n('67bd7e',[])),'</div><div class="jive-video-encode-icon"><span class="jive-icon-glyph icon-j-mov"></span><span class="jive-icon-glyph icon-warning2"></span></div></div>'),c?'':d.toString()},jive.video.errors.videoPermissionsError}),define('soy!jive.video.errors.videoServiceLoginAgain',['soyDeps'],function(a){return jive.namespace.call(this,'jive.video.errors'),jive.video.errors.videoServiceLoginAgain=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="jive-video-error-box jive-video-message-large"><div class="jive-video-error-large">',soy.$$escapeHtml(a._i18n('37e911',[])),'</div><div class="jive-video-message-icon"><span class="jive-icon-glyph icon-j-mov"></span><span class="jive-icon-glyph icon-warning2"></span></div></div>'),c?'':d.toString()},jive.video.errors.videoServiceLoginAgain}),define('apps/publish_bar/captions_main',['jquery','jiverscripts/oo/class','jiverscripts/conc/observable','jive/i18n','apps/shared/views/loader_view','apps/publish_bar/views/s3_helper'],function(a,b,c,d,e){function f(){a('#remove-caption').show();const b=a('#jive-caption-custom-values .j-form .j-form-row').first().clone(),c=l(),d="caption-file-"+c;a(b).find(':input[type="file"]').attr('id',d).attr('data-id',c).attr('required','').removeAttr('data-preloaded').val(''),a(b).find(':input[type="hidden"]').attr('id',d+o).val(''),a(b).find('label[name="caption-file"]').attr('for',d).text(jive.i18n.i18nText(jive.i18n.jsGetMsg('publishbar.captions.upload.default.label'),[]).content),a(b).find("option:selected").removeAttr("selected"),a('#jive-caption-custom-values .j-form').append(b),h()}function g(b){const c=a('#jive-caption-custom-values .j-form .j-form-row'),d=a(c).length;return 1>=d?(alert(jive.i18n.i18nText(jive.i18n.jsGetMsg('publishbar.captions.min.required.instructions'),[]).content),void 0):(a(b).parent().remove(),h(),void 0)}function h(){const b=a('.j-select-lang').map(function(){return a(this).children('option:selected').text()}).filter(function(a){return''!==a}).toArray();a('.j-select-lang').each(function(){const c=a(this).find('option:not(:selected)');c.each(function(){b.includes(a(this).text())&&a(this).text()!==jive.i18n.i18nText(jive.i18n.jsGetMsg('publishbar.captions.language.default'),[]).content?a(this).toggleOption(!1,a(this)):a(this).toggleOption(!0,a(this))})}),a('.jive-error-message').remove()}function i(b){const c=a('#caption-file-1-filename').val();c&&''!==c?(a(b).attr('data-required',''),a(b).attr('required',!1)):(a(b).attr('data-required',jive.i18n.i18nText(jive.i18n.jsGetMsg('publishbar.captions.upload.instructions'),[]).content),a(b).attr('aria-required','true'));const d=b.files[0];return d&&d.size>m.maxSize?(alert(jive.i18n.i18nText(jive.i18n.jsGetMsg('publishbar.captions.max.size.instructions'),[d.name,this.maxSize/1024/1024]).content),void 0):(j(b),k(b),void 0)}function j(b){const c=a('#'+a(b).id()+o),d=b.nextElementSibling,e=d.innerHTML,f=b.files;var g='';g=f&&f.length>1?(b.getAttribute('data-multiple-caption')||'').replace('{count}',b.files.length):b.value.split('\\').pop(),g?(d.innerHTML=g,c.val(g)):(d.innerHTML=e,c.val(e))}function k(b){const c=a(b).attr('data-id'),d=b.files[0],f=a('#videoID').val(),g=a('#externalVideoID').val(),h=new e({size:'big',showLabel:!1});h.appendTo(m.jiveBodyMain),uploadToS3(f,'caption',g,d,c,h,function(b){a('#caption-file-'+c+'-filename').val(b.getResponseHeader('jive-s3-key'))})}function l(){return Date.now()+Math.floor(100*Math.random()+1)}const m=this;this.jiveBodyMain='#jive-body-main';const n='caption-file',o='-filename';return jQuery.fn.toggleOption=function(a,b){b.toggle(a),a?b.parent('span.toggleOption').length&&b.unwrap():0==b.parent('span.toggleOption').length&&b.wrap('<span class="toggleOption" style="display: none;" />')},a.extend(window,{addCaption:f,removeCaption:g,valueUpdated:h,onChange:i}),b.extend(function(b){c(this),b.init=function(b){const c=b.initData||{},d=c.captionBean||{};m.maxSize=1024*d.maxSize*1024,d.supportedFormats&&(a('#jive-caption-custom-values .j-form .j-form-row :input[type="file"]').attr('accept',d.supportedFormats),a('#user-caption-supportedLabel').text(jive.i18n.i18nText(jive.i18n.jsGetMsg('publishbar.captions.option.user.label'),[]).content+d.supportedFormats))}})}),define('apps/publish_bar/views/s3_helper',['jquery','url','soy!jive.video.errors.videoServiceLoginAgain','jive/i18n','apps/publish_bar/captions_main'],function(a,b,c){function d(a,b,c,d){const e=new XMLHttpRequest,g=f(a,b,c,d);return e.open('HEAD',g,!1),e.send(),e.status===t}function e(a,c){const d=new Date;return b.v3Url(r+a+'/'+c+'?d='+d.getTime())}function f(a,c,d,e){const f=new Date,g=d||'';return b.v3Url(p+a+'?type='+encodeURIComponent(c)+'&filename='+encodeURIComponent(e)+s+g+'&d='+f.getTime())}function g(a,c,d,e){const f=c||'';return b.v3Url('videos/trim-video/'+a+"?videoTimestampStart="+d+'&videoTimestampEnd='+e+s+f)}function h(c,d,e,f,g,h,i){const j=new Date,k=e||'';var l=a.ajax({url:b.v3Url(p+c+'?type='+encodeURIComponent(d)+'&index='+encodeURIComponent(g)+'&filename='+encodeURIComponent(f.name)+'&scope='+k+'&d='+j.getTime()),type:'PUT',data:f,processData:!1,contentType:!1,headers:{'x-amz-acl':'bucket-owner-full-control'}}).done(function(){i(l),h&&(h.getContent().remove(),h.destroy())}).fail(function(){if(h&&(h.getContent().remove(),h.destroy()),'thumbnail'===d){const b=a('.uploaded-image')[a('.uploaded-image').length-1];b.parentNode.removeChild(b),a(a('.uploaded-image').get(0)).addClass('selected'),a('#videoThumbnail').val('thumb1.jpg')}'caption'===d&&(a('#jive-caption-custom-values .j-form .j-form-row').length<=1&&addCaption(),a('#jive-caption-custom-values .j-form .j-form-row').find(':input[data-id="'+g+'"]').parent().remove());var c=l.getResponseHeader("validation-failures"),e="";null==c?e+=jive.i18n.i18nText(jive.i18n.jsGetMsg('publishbar.upload.invalid'),[]).content:c.split('|').forEach(function(a){const b=a.split(','),c=b[0];b.splice(0,1),e+=jive.i18n.i18nText(jive.i18n.jsGetMsg(c),b).content+'\n'}),alert(e)})}function i(c){a.ajax({type:'GET',url:b.v3Url('videos/get-video-endpoint-url'),data:{videoID:c},async:!1,error:function(){alert(jive.i18n.i18nText(jive.i18n.jsGetMsg('publishbar.upload.authenticaton.failed'),[]).content)}})}function j(b){a.ajax({type:'GET',url:'/__services/v2/rest/videos/'+b,async:!1,error:function(b){const c=a('#jive-video-display');c&&o(c)}})}function k(c){a.get(b.v3Url('videos/downloadOptions/'+c),{object:!0}).fail(function(){alert(jive.i18n.i18nText(jive.i18n.jsGetMsg('publishbar.upload.authenticaton.failed'),[]).content)})}function l(a){const c=b.v3Url(p+a);n(c)}function m(a){const c=b.v3Url(q+a);n(c)}function n(b){a.get('/jive/invalidate/cookies',{path:b})}function o(b){b.replaceWith(a(c()))}jive.namespace('PublishBar');const p='videos/video-storage/',q='videos/video-player/',r='videos/video-assets/',s='&scope=',t=200;a.extend(window,{fetchS3ReadPath:f,fetchS3VideoAssetPath:e,fetchS3TrimPath:g,uploadToS3:h,signedCookies:i,downloaderSignedCookies:k,clearSignedCookies:l,clearPlayerCookies:m,getVideoPlayerSignedCookie:j,showTemporaryError:o,isS3ResourceAvailable:d})}),function(a,b){'object'==typeof exports&&'undefined'!=typeof module?b(exports,require('videojs')):'function'==typeof define&&define.amd?define('http-streaming',['exports','videojs'],b):b(a.videojsHttpStreaming={},a.videojs)}(this,function(a,b){'use strict';function c(a,b){return b={exports:{}},a(b,b.exports),b.exports}function d(){return d=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},d.apply(this,arguments)}function e(a,b){a.prototype=Object.create(b.prototype),a.prototype.constructor=a,a.__proto__=b}function f(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function g(a){for(var b=va.atob(a||''),c=new Uint8Array(b.length),d=0;d<b.length;d++)c[d]=b.charCodeAt(d);return c}function h(a){return a.subarray(0,a.byteLength-a[a.byteLength-1])}function i(a,b){return function c(d){var e=this;if(!b)return new tc(a);if(tc&&!d){var f=b.toString().replace(/^function.+?{/,'').slice(0,-1),g=j(f);return this[pc]=new tc(g),k(this[pc],g),this[pc]}var h={postMessage:function i(a){e.onmessage&&setTimeout(function(){e.onmessage({data:a,target:h})})}};b.call(h),this.postMessage=function(a){setTimeout(function(){h.onmessage({data:a,target:e})})},this.isThisThread=!0}}function j(a){try{return sc.createObjectURL(new Blob([a],{type:qc}))}catch(b){var c=new rc;return c.append(a),sc.createObjectURL(c.getBlob(type))}}function k(a,b){if(a&&b){var c=a.terminate;a.objURL=b,a.terminate=function(){a.objURL&&sc.revokeObjectURL(a.objURL),c.call(a)}}}function l(a){return a&&'object'==typeof a&&'default'in a?a['default']:a}function m(a){return a&&'object'==typeof a&&'default'in a?a['default']:a}function n(a){for(var b=bd(a),c=new Uint8Array(b.length),d=0;d<b.length;d++)c[d]=b.charCodeAt(d);return c}function o(){}function p(a,b,c,d,e){function f(a){if(a>65535){a-=65536;var b=55296+(a>>10),c=56320+(1023&a);return String.fromCharCode(b,c)}return String.fromCharCode(a)}function g(a){var b=a.slice(1,-1);return b in c?c[b]:'#'===b.charAt(0)?f(parseInt(b.substr(1).replace('x','0x'))):(e.error('entity not found:'+a),a)}function h(b){if(b>p){var c=a.substring(p,b).replace(/&#?\w+;/g,g);m&&i(p),d.characters(c,0,b-p),p=b}}function i(b,c){for(;b>=k&&(c=l.exec(a));)j=c.index,k=j+c[0].length,m.lineNumber++;m.columnNumber=b-j+1}for(var j=0,k=0,l=/.*(?:\r\n?|\n)|.*$/g,m=d.locator,n=[{currentNSMap:b}],o={},p=0;;){try{var v=a.indexOf('<',p);if(0>v){if(!a.substr(p).match(/^\s*$/)){var z=d.doc,A=z.createTextNode(a.substr(p));z.appendChild(A),d.currentElement=A}return}switch(v>p&&h(v),a.charAt(v+1)){case'/':var B=a.indexOf('>',v+3),C=a.substring(v+2,B),D=n.pop();0>B?(C=a.substring(v+2).replace(/[\s<].*/,''),e.error("end tag name: "+C+' is not complete:'+D.tagName),B=v+1+C.length):C.match(/\s</)&&(C=C.replace(/[\s<].*/,''),e.error("end tag name: "+C+' maybe not complete'),B=v+1+C.length);var E=D.localNSMap,F=D.tagName==C,G=F||D.tagName&&D.tagName.toLowerCase()==C.toLowerCase();if(G){if(d.endElement(D.uri,D.localName,C),E)for(var H in E)d.endPrefixMapping(H);F||e.fatalError("end tag name: "+C+' is not match the current start tagName:'+D.tagName)}else n.push(D);B++;break;case'?':m&&i(v),B=x(a,v,d);break;case'!':m&&i(v),B=w(a,v,d,e);break;default:m&&i(v);var I=new y,J=n[n.length-1].currentNSMap,B=r(a,v,I,J,g,e),K=I.length;if(!I.closed&&u(a,B,I.tagName,o)&&(I.closed=!0,c.nbsp||e.warning('unclosed xml attribute')),m&&K){for(var L=q(m,{}),M=0;K>M;M++){var N=I[M];i(N.offset),N.locator=q(m,{})}d.locator=L,s(I,d,J)&&n.push(I),d.locator=m}else s(I,d,J)&&n.push(I);'http://www.w3.org/1999/xhtml'!==I.uri||I.closed?B++:B=t(a,B,I.tagName,g,d)}}catch(O){e.error('element parse error: '+O),B=-1}B>p?p=B:h(Math.max(v,p)+1)}}function q(a,b){return b.lineNumber=a.lineNumber,b.columnNumber=a.columnNumber,b}function r(a,b,c,d,e,f){for(var g,h,i=++b,j=gd;;){var k=a.charAt(i);switch(k){case'=':if(j===hd)g=a.slice(b,i),j=jd;else{if(j!==id)throw new Error('attribute equal must after attrName');j=jd}break;case'\'':case'"':if(j===jd||j===hd){if(j===hd&&(f.warning('attribute value must after "="'),g=a.slice(b,i)),b=i+1,i=a.indexOf(k,b),!(i>0))throw new Error('attribute value no end \''+k+'\' match');h=a.slice(b,i).replace(/&#?\w+;/g,e),c.add(g,h,b-1),j=ld}else{if(j!=kd)throw new Error('attribute value must after "="');h=a.slice(b,i).replace(/&#?\w+;/g,e),c.add(g,h,b),f.warning('attribute "'+g+'" missed start quot('+k+')!!'),b=i+1,j=ld}break;case'/':switch(j){case gd:c.setTagName(a.slice(b,i));case ld:case md:case nd:j=nd,c.closed=!0;case kd:case hd:case id:break;default:throw new Error("attribute invalid close char('/')")}break;case'':return f.error('unexpected end of input'),j==gd&&c.setTagName(a.slice(b,i)),i;case'>':switch(j){case gd:c.setTagName(a.slice(b,i));case ld:case md:case nd:break;case kd:case hd:h=a.slice(b,i),'/'===h.slice(-1)&&(c.closed=!0,h=h.slice(0,-1));case id:j===id&&(h=g),j==kd?(f.warning('attribute "'+h+'" missed quot(")!!'),c.add(g,h.replace(/&#?\w+;/g,e),b)):('http://www.w3.org/1999/xhtml'===d['']&&h.match(/^(?:disabled|checked|selected)$/i)||f.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),c.add(h,h,b));break;case jd:throw new Error('attribute value missed!!')}return i;case"€":k=' ';default:if(' '>=k)switch(j){case gd:c.setTagName(a.slice(b,i)),j=md;break;case hd:g=a.slice(b,i),j=id;break;case kd:var h=a.slice(b,i).replace(/&#?\w+;/g,e);f.warning('attribute "'+h+'" missed quot(")!!'),c.add(g,h,b);case ld:j=md}else switch(j){case id:var l=c.tagName;'http://www.w3.org/1999/xhtml'===d['']&&g.match(/^(?:disabled|checked|selected)$/i)||f.warning('attribute "'+g+'" missed value!! "'+g+'" instead2!!'),c.add(g,g,b),b=i,j=hd;break;case ld:f.warning('attribute space is required"'+g+'"!!');case md:j=hd,b=i;break;case jd:j=kd,b=i;break;case nd:throw new Error("elements closed character '/' and '>' must be connected to")}}i++}}function s(a,b,c){for(var d=a.tagName,e=null,f=a.length;f--;){var g=a[f],h=g.qName,i=g.value,j=h.indexOf(':');if(j>0)var k=g.prefix=h.slice(0,j),l=h.slice(j+1),m='xmlns'===k&&l;else l=h,k=null,m='xmlns'===h&&'';g.localName=l,m!==!1&&(null==e&&(e={},v(c,c={})),c[m]=e[m]=i,g.uri='http://www.w3.org/2000/xmlns/',b.startPrefixMapping(m,i))}for(var f=a.length;f--;){g=a[f];var k=g.prefix;k&&('xml'===k&&(g.uri='http://www.w3.org/XML/1998/namespace'),'xmlns'!==k&&(g.uri=c[k||'']))}var j=d.indexOf(':');j>0?(k=a.prefix=d.slice(0,j),l=a.localName=d.slice(j+1)):(k=null,l=a.localName=d);var n=a.uri=c[k||''];if(b.startElement(n,l,d,a),!a.closed)return a.currentNSMap=c,a.localNSMap=e,!0;if(b.endElement(n,l,d),e)for(k in e)b.endPrefixMapping(k)}function t(a,b,c,d,e){if(/^(?:script|textarea)$/i.test(c)){var f=a.indexOf('</'+c+'>',b),g=a.substring(b+1,f);if(/[&<]/.test(g))return/^script$/i.test(c)?(e.characters(g,0,g.length),f):(g=g.replace(/&#?\w+;/g,d),e.characters(g,0,g.length),f)}return b+1}function u(a,b,c,d){var e=d[c];return null==e&&(e=a.lastIndexOf('</'+c+'>'),b>e&&(e=a.lastIndexOf('</'+c)),d[c]=e),b>e}function v(a,b){for(var c in a)b[c]=a[c]}function w(a,b,c,d){var e=a.charAt(b+2);switch(e){case'-':if('-'===a.charAt(b+3)){var f=a.indexOf('-->',b+4);return f>b?(c.comment(a,b+4,f-b-4),f+3):(d.error("Unclosed comment"),-1)}return-1;default:if('CDATA['==a.substr(b+3,6)){var f=a.indexOf(']]>',b+9);return c.startCDATA(),c.characters(a,b+9,f-b-9),c.endCDATA(),f+3}var g=A(a,b),h=g.length;if(h>1&&/!doctype/i.test(g[0][0])){var i=g[1][0],j=h>3&&/^public$/i.test(g[2][0])&&g[3][0],k=h>4&&g[4][0],l=g[h-1];return c.startDTD(i,j&&j.replace(/^(['"])(.*?)\1$/,'$2'),k&&k.replace(/^(['"])(.*?)\1$/,'$2')),c.endDTD(),l.index+l[0].length}}return-1}function x(a,b,c){var d=a.indexOf('?>',b);
if(d){var e=a.substring(b,d).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(e){var f=e[0].length;return c.processingInstruction(e[1],e[2]),d+2}return-1}return-1}function y(a){}function z(a,b){return a.__proto__=b,a}function A(a,b){var c,d=[],e=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(e.lastIndex=b,e.exec(a);c=e.exec(a);)if(d.push(c),c[1])return d}function B(a,b){for(var c in a)b[c]=a[c]}function C(a,b){var c=a.prototype;if(Object.create){var d=Object.create(b.prototype);c.__proto__=d}if(!(c instanceof b)){var e=function f(){};e.prototype=b.prototype,e=new e,B(c,e),a.prototype=c=e}c.constructor!=a&&('function'!=typeof a&&console.error("unknow Class:"+a),c.constructor=a)}function D(a,b){if(b instanceof Error)var c=b;else c=this,Error.call(this,Fd[a]),this.message=Fd[a],Error.captureStackTrace&&Error.captureStackTrace(this,D);return c.code=a,b&&(this.message=this.message+": "+b),c}function E(){}function F(a,b){this._node=a,this._refresh=b,G(this)}function G(a){var b=a._node._inc||a._node.ownerDocument._inc;if(a._inc!=b){var c=a._refresh(a._node);ma(a,'length',c.length),B(c,a),a._inc=b}}function H(){}function I(a,b){for(var c=a.length;c--;)if(a[c]===b)return c}function J(a,b,c,d){if(d?b[I(b,d)]=c:b[b.length++]=c,a){c.ownerElement=a;var e=a.ownerDocument;e&&(d&&R(e,a,d),Q(e,a,c))}}function K(a,b,c){var d=I(b,c);if(!(d>=0))throw D(Nd,new Error(a.tagName+'@'+c));for(var e=b.length-1;e>d;)b[d]=b[++d];if(b.length=e,a){var f=a.ownerDocument;f&&(R(f,a,c),c.ownerElement=null)}}function L(a){if(this._features={},a)for(var b in a)this._features=a[b]}function M(){}function N(a){return'<'==a&&'&lt;'||'>'==a&&'&gt;'||'&'==a&&'&amp;'||'"'==a&&'&quot;'||'&#'+a.charCodeAt()+';'}function O(a,b){if(b(a))return!0;if(a=a.firstChild)do if(O(a,b))return!0;while(a=a.nextSibling)}function P(){}function Q(a,b,c){a&&a._inc++;var d=c.namespaceURI;'http://www.w3.org/2000/xmlns/'==d&&(b._nsMap[c.prefix?c.localName:'']=c.value)}function R(a,b,c,d){a&&a._inc++;var e=c.namespaceURI;'http://www.w3.org/2000/xmlns/'==e&&delete b._nsMap[c.prefix?c.localName:'']}function S(a,b,c){if(a&&a._inc){a._inc++;var d=b.childNodes;if(c)d[d.length++]=c;else{for(var e=b.firstChild,f=0;e;)d[f++]=e,e=e.nextSibling;d.length=f}}}function T(a,b){var c=b.previousSibling,d=b.nextSibling;return c?c.nextSibling=d:a.firstChild=d,d?d.previousSibling=c:a.lastChild=c,S(a.ownerDocument,a),b}function U(a,b,c){var d=b.parentNode;if(d&&d.removeChild(b),b.nodeType===Cd){var e=b.firstChild;if(null==e)return b;var f=b.lastChild}else e=f=b;var g=c?c.previousSibling:a.lastChild;e.previousSibling=g,f.nextSibling=c,g?g.nextSibling=e:a.firstChild=e,null==c?a.lastChild=f:c.previousSibling=f;do e.parentNode=a;while(e!==f&&(e=e.nextSibling));return S(a.ownerDocument||a,a),b.nodeType==Cd&&(b.firstChild=b.lastChild=null),b}function V(a,b){var c=b.parentNode;if(c){var d=a.lastChild;c.removeChild(b);var d=a.lastChild}var d=a.lastChild;return b.parentNode=a,b.previousSibling=d,b.nextSibling=null,d?d.nextSibling=b:a.firstChild=b,a.lastChild=b,S(a.ownerDocument,a,b),b}function W(){this._nsMap={}}function X(){}function Y(){}function Z(){}function $(){}function _(){}function aa(){}function ba(){}function ca(){}function da(){}function ea(){}function fa(){}function ga(){}function ha(a,b){var c=[],d=9==this.nodeType?this.documentElement:this,e=d.prefix,f=d.namespaceURI;if(f&&null==e){var e=d.lookupPrefix(f);if(null==e)var g=[{namespace:f,prefix:null}]}return ja(this,c,a,b,g),c.join('')}function ia(a,b,c){var d=a.prefix||'',e=a.namespaceURI;if(!d&&!e)return!1;if("xml"===d&&"http://www.w3.org/XML/1998/namespace"===e||'http://www.w3.org/2000/xmlns/'==e)return!1;for(var f=c.length;f--;){var g=c[f];if(g.prefix==d)return g.namespace!=e}return!0}function ja(a,b,c,d,e){if(d){if(a=d(a),!a)return;if('string'==typeof a)return b.push(a),void 0}switch(a.nodeType){case sd:e||(e=[]);var f=e.length,g=a.attributes,h=g.length,i=a.firstChild,j=a.tagName;c=qd===a.namespaceURI||c,b.push('<',j);for(var k=0;h>k;k++){var l=g.item(k);'xmlns'==l.prefix?e.push({prefix:l.localName,namespace:l.value}):'xmlns'==l.nodeName&&e.push({prefix:'',namespace:l.value})}for(var k=0;h>k;k++){var l=g.item(k);if(ia(l,c,e)){var m=l.prefix||'',n=l.namespaceURI,o=m?' xmlns:'+m:" xmlns";b.push(o,'="',n,'"'),e.push({prefix:m,namespace:n})}ja(l,b,c,d,e)}if(ia(a,c,e)){var m=a.prefix||'',n=a.namespaceURI,o=m?' xmlns:'+m:" xmlns";b.push(o,'="',n,'"'),e.push({prefix:m,namespace:n})}if(i||c&&!/^(?:meta|link|img|br|hr|input)$/i.test(j)){if(b.push('>'),c&&/^script$/i.test(j))for(;i;)i.data?b.push(i.data):ja(i,b,c,d,e),i=i.nextSibling;else for(;i;)ja(i,b,c,d,e),i=i.nextSibling;b.push('</',j,'>')}else b.push('/>');return;case Ad:case Cd:for(var i=a.firstChild;i;)ja(i,b,c,d,e),i=i.nextSibling;return;case td:return b.push(' ',a.name,'="',a.value.replace(/[<&"]/g,N),'"');case ud:return b.push(a.data.replace(/[<&]/g,N));case vd:return b.push('<![CDATA[',a.data,']]>');case zd:return b.push("<!--",a.data,"-->");case Bd:var p=a.publicId,q=a.systemId;if(b.push('<!DOCTYPE ',a.name),p)b.push(' PUBLIC "',p),q&&'.'!=q&&b.push('" "',q),b.push('">');else if(q&&'.'!=q)b.push(' SYSTEM "',q,'">');else{var r=a.internalSubset;r&&b.push(" [",r,"]"),b.push(">")}return;case yd:return b.push("<?",a.target," ",a.data,"?>");case wd:return b.push('&',a.nodeName,';');default:b.push('??',a.nodeName)}}function ka(a,b,c){var d;switch(b.nodeType){case sd:d=b.cloneNode(!1),d.ownerDocument=a;case Cd:break;case td:c=!0}if(d||(d=b.cloneNode(!1)),d.ownerDocument=a,d.parentNode=null,c)for(var e=b.firstChild;e;)d.appendChild(ka(a,e,c)),e=e.nextSibling;return d}function la(a,b,c){var d=new b.constructor;for(var e in b){var f=b[e];'object'!=typeof f&&f!=d[e]&&(d[e]=f)}switch(b.childNodes&&(d.childNodes=new E),d.ownerDocument=a,d.nodeType){case sd:var g=b.attributes,h=d.attributes=new H,i=g.length;h._ownerElement=d;for(var j=0;i>j;j++)d.setAttributeNode(la(a,g.item(j),!0));break;case td:c=!0}if(c)for(var k=b.firstChild;k;)d.appendChild(la(a,k,c)),k=k.nextSibling;return d}function ma(a,b,c){a[b]=c}function na(){}b=b&&b.hasOwnProperty('default')?b['default']:b;var oa='undefined'!=typeof globalThis?globalThis:'undefined'!=typeof window?window:'undefined'!=typeof global?global:'undefined'!=typeof self?self:{},pa={},qa='undefined'!=typeof oa?oa:'undefined'!=typeof window?window:{},ra;'undefined'!=typeof document?ra=document:(ra=qa['__GLOBAL_DOCUMENT_CACHE@4'],ra||(ra=qa['__GLOBAL_DOCUMENT_CACHE@4']=pa));var sa=ra,ta=c(function(a,b){!function(b){var c=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/\?#]*\/)*.*?)??(;.*?)?(\?.*?)?(#.*?)?$/,d=/^([^\/?#]*)(.*)$/,e=/(?:\/|^)\.(?=\/)/g,f=/(?:\/|^)\.\.\/(?!\.\.\/).*?(?=\/)/g,g={buildAbsoluteURL:function h(a,b,c){if(c=c||{},a=a.trim(),b=b.trim(),!b){if(!c.alwaysNormalize)return a;var e=g.parseURL(a);if(!e)throw new Error('Error trying to parse base URL.');return e.path=g.normalizePath(e.path),g.buildURLFromParts(e)}var f=g.parseURL(b);if(!f)throw new Error('Error trying to parse relative URL.');if(f.scheme)return c.alwaysNormalize?(f.path=g.normalizePath(f.path),g.buildURLFromParts(f)):b;var h=g.parseURL(a);if(!h)throw new Error('Error trying to parse base URL.');if(!h.netLoc&&h.path&&'/'!==h.path[0]){var i=d.exec(h.path);h.netLoc=i[1],h.path=i[2]}h.netLoc&&!h.path&&(h.path='/');var j={scheme:h.scheme,netLoc:f.netLoc,path:null,params:f.params,query:f.query,fragment:f.fragment};if(!f.netLoc&&(j.netLoc=h.netLoc,'/'!==f.path[0]))if(f.path){var k=h.path,l=k.substring(0,k.lastIndexOf('/')+1)+f.path;j.path=g.normalizePath(l)}else j.path=h.path,f.params||(j.params=h.params,f.query||(j.query=h.query));return null===j.path&&(j.path=c.alwaysNormalize?g.normalizePath(f.path):f.path),g.buildURLFromParts(j)},parseURL:function i(a){var b=c.exec(a);return b?{scheme:b[1]||'',netLoc:b[2]||'',path:b[3]||'',params:b[4]||'',query:b[5]||'',fragment:b[6]||''}:null},normalizePath:function j(a){for(a=a.split('').reverse().join('').replace(e,'');a.length!==(a=a.replace(f,'')).length;);return a.split('').reverse().join('')},buildURLFromParts:function k(a){return a.scheme+a.netLoc+a.path+a.params+a.query+a.fragment}};a.exports=g}(oa)}),ua;ua="undefined"!=typeof window?window:"undefined"!=typeof oa?oa:"undefined"!=typeof self?self:{};var va=ua,wa=function zi(a,b){return/^[a-z]+:/i.test(b)?b:(/\/\//i.test(a)||(a=ta.buildAbsoluteURL(va.location.href,a)),ta.buildAbsoluteURL(a,b))},xa=function Ai(a,b,c){return a&&c.responseURL&&b!==c.responseURL?c.responseURL:b},ya=function(){function a(){this.listeners={}}var b=a.prototype;return b.on=function c(a,b){this.listeners[a]||(this.listeners[a]=[]),this.listeners[a].push(b)},b.off=function d(a,b){if(!this.listeners[a])return!1;var c=this.listeners[a].indexOf(b);return this.listeners[a].splice(c,1),c>-1},b.trigger=function e(a){var b=this.listeners[a],c,d,e;if(b)if(2===arguments.length)for(d=b.length,c=0;d>c;++c)b[c].call(this,arguments[1]);else for(e=Array.prototype.slice.call(arguments,1),d=b.length,c=0;d>c;++c)b[c].apply(this,e)},b.dispose=function f(){this.listeners={}},b.pipe=function g(a){this.on('data',function(b){a.push(b)})},a}(),za=function(a){function b(){var b;return b=a.call(this)||this,b.buffer='',b}e(b,a);var c=b.prototype;return c.push=function d(a){var b;for(this.buffer+=a,b=this.buffer.indexOf('\n');b>-1;b=this.buffer.indexOf('\n'))this.trigger('data',this.buffer.substring(0,b)),this.buffer=this.buffer.substring(b+1)},b}(ya),Aa=function Bi(){var a='[^=]*',b='"[^"]*"|[^,]*',c='(?:'+a+')=(?:'+b+')';return new RegExp('(?:^|,)('+c+')')},Ba=function Ci(a){for(var b=a.split(Aa()),c={},d=b.length,e;d--;)''!==b[d]&&(e=/([^=]*)=(.*)/.exec(b[d]).slice(1),e[0]=e[0].replace(/^\s+|\s+$/g,''),e[1]=e[1].replace(/^\s+|\s+$/g,''),e[1]=e[1].replace(/^['"](.*)['"]$/g,'$1'),c[e[0]]=e[1]);return c},Ca=function(a){function b(){var b;return b=a.call(this)||this,b.customParsers=[],b.tagMappers=[],b}e(b,a);var c=b.prototype;return c.push=function d(a){var b=this,c,d;if(a=a.trim(),0!==a.length){if('#'!==a[0])return this.trigger('data',{type:'uri',uri:a}),void 0;var e=this.tagMappers.reduce(function(b,c){var d=c(a);return d===a?b:b.concat([d])},[a]);e.forEach(function(a){for(var e=0;e<b.customParsers.length;e++)if(b.customParsers[e].call(b,a))return;if(0!==a.indexOf('#EXT'))return b.trigger('data',{type:'comment',text:a.slice(1)}),void 0;if(a=a.replace('\r',''),c=/^#EXTM3U/.exec(a),c)return b.trigger('data',{type:'tag',tagType:'m3u'}),void 0;if(c=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(a),c)return d={type:'tag',tagType:'inf'},c[1]&&(d.duration=parseFloat(c[1])),c[2]&&(d.title=c[2]),b.trigger('data',d),void 0;if(c=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(a),c)return d={type:'tag',tagType:'targetduration'},c[1]&&(d.duration=parseInt(c[1],10)),b.trigger('data',d),void 0;if(c=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(a),c)return d={type:'tag',tagType:'totalduration'},c[1]&&(d.duration=parseInt(c[1],10)),b.trigger('data',d),void 0;if(c=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(a),c)return d={type:'tag',tagType:'version'},c[1]&&(d.version=parseInt(c[1],10)),b.trigger('data',d),void 0;if(c=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(a),c)return d={type:'tag',tagType:'media-sequence'},c[1]&&(d.number=parseInt(c[1],10)),b.trigger('data',d),void 0;if(c=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(a),c)return d={type:'tag',tagType:'discontinuity-sequence'},c[1]&&(d.number=parseInt(c[1],10)),b.trigger('data',d),void 0;if(c=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(a),c)return d={type:'tag',tagType:'playlist-type'},c[1]&&(d.playlistType=c[1]),b.trigger('data',d),void 0;if(c=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(a),c)return d={type:'tag',tagType:'byterange'},c[1]&&(d.length=parseInt(c[1],10)),c[2]&&(d.offset=parseInt(c[2],10)),b.trigger('data',d),void 0;if(c=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(a),c)return d={type:'tag',tagType:'allow-cache'},c[1]&&(d.allowed=!/NO/.test(c[1])),b.trigger('data',d),void 0;if(c=/^#EXT-X-MAP:?(.*)$/.exec(a),c){if(d={type:'tag',tagType:'map'},c[1]){var f=Ba(c[1]);if(f.URI&&(d.uri=f.URI),f.BYTERANGE){var g=f.BYTERANGE.split('@'),h=g[0],i=g[1];d.byterange={},h&&(d.byterange.length=parseInt(h,10)),i&&(d.byterange.offset=parseInt(i,10))}}return b.trigger('data',d),void 0}if(c=/^#EXT-X-STREAM-INF:?(.*)$/.exec(a),c){if(d={type:'tag',tagType:'stream-inf'},c[1]){if(d.attributes=Ba(c[1]),d.attributes.RESOLUTION){var j=d.attributes.RESOLUTION.split('x'),k={};j[0]&&(k.width=parseInt(j[0],10)),j[1]&&(k.height=parseInt(j[1],10)),d.attributes.RESOLUTION=k}d.attributes.BANDWIDTH&&(d.attributes.BANDWIDTH=parseInt(d.attributes.BANDWIDTH,10)),d.attributes['PROGRAM-ID']&&(d.attributes['PROGRAM-ID']=parseInt(d.attributes['PROGRAM-ID'],10))}return b.trigger('data',d),void 0}return c=/^#EXT-X-MEDIA:?(.*)$/.exec(a),c?(d={type:'tag',tagType:'media'},c[1]&&(d.attributes=Ba(c[1])),b.trigger('data',d),void 0):(c=/^#EXT-X-ENDLIST/.exec(a),c?(b.trigger('data',{type:'tag',tagType:'endlist'}),void 0):(c=/^#EXT-X-DISCONTINUITY/.exec(a),c?(b.trigger('data',{type:'tag',tagType:'discontinuity'}),void 0):(c=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(a),c?(d={type:'tag',tagType:'program-date-time'},c[1]&&(d.dateTimeString=c[1],d.dateTimeObject=new Date(c[1])),b.trigger('data',d),void 0):(c=/^#EXT-X-KEY:?(.*)$/.exec(a),c?(d={type:'tag',tagType:'key'},c[1]&&(d.attributes=Ba(c[1]),d.attributes.IV&&('0x'===d.attributes.IV.substring(0,2).toLowerCase()&&(d.attributes.IV=d.attributes.IV.substring(2)),d.attributes.IV=d.attributes.IV.match(/.{8}/g),d.attributes.IV[0]=parseInt(d.attributes.IV[0],16),d.attributes.IV[1]=parseInt(d.attributes.IV[1],16),d.attributes.IV[2]=parseInt(d.attributes.IV[2],16),d.attributes.IV[3]=parseInt(d.attributes.IV[3],16),d.attributes.IV=new Uint32Array(d.attributes.IV))),b.trigger('data',d),void 0):(c=/^#EXT-X-START:?(.*)$/.exec(a),c?(d={type:'tag',tagType:'start'},c[1]&&(d.attributes=Ba(c[1]),d.attributes['TIME-OFFSET']=parseFloat(d.attributes['TIME-OFFSET']),d.attributes.PRECISE=/YES/.test(d.attributes.PRECISE)),b.trigger('data',d),void 0):(c=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(a),c?(d={type:'tag',tagType:'cue-out-cont'},c[1]?d.data=c[1]:d.data='',b.trigger('data',d),void 0):(c=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(a),c?(d={type:'tag',tagType:'cue-out'},c[1]?d.data=c[1]:d.data='',b.trigger('data',d),void 0):(c=/^#EXT-X-CUE-IN:?(.*)?$/.exec(a),c?(d={type:'tag',tagType:'cue-in'},c[1]?d.data=c[1]:d.data='',b.trigger('data',d),void 0):(b.trigger('data',{type:'tag',data:a.slice(4)}),void 0)))))))))})}},c.addParser=function f(a){var b=this,c=a.expression,d=a.customType,e=a.dataParser,f=a.segment;'function'!=typeof e&&(e=function g(a){return a}),this.customParsers.push(function(a){var g=c.exec(a);return g?(b.trigger('data',{type:'custom',data:e(a),customType:d,segment:f}),!0):void 0})},c.addTagMapper=function g(a){var b=a.expression,c=a.map,d=function e(a){return b.test(a)?c(a):a};this.tagMappers.push(d)},b}(ya),Da=function(a){function b(){var b;b=a.call(this)||this,b.lineStream=new za,b.parseStream=new Ca,b.lineStream.pipe(b.parseStream);var c=f(b),e=[],h={},i,j,k=function o(){},l={AUDIO:{},VIDEO:{},'CLOSED-CAPTIONS':{},SUBTITLES:{}},m='urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed',n=0;return b.manifest={allowCache:!0,discontinuityStarts:[],segments:[]},b.parseStream.on('data',function(a){var b,f;({tag:function o(){(({'allow-cache':function o(){this.manifest.allowCache=a.allowed,'allowed'in a||(this.trigger('info',{message:'defaulting allowCache to YES'}),this.manifest.allowCache=!0)},byterange:function p(){var p={};'length'in a&&(h.byterange=p,p.length=a.length,'offset'in a||(this.trigger('info',{message:'defaulting offset to zero'}),a.offset=0)),'offset'in a&&(h.byterange=p,p.offset=a.offset)},endlist:function q(){this.manifest.endList=!0},inf:function r(){'mediaSequence'in this.manifest||(this.manifest.mediaSequence=0,this.trigger('info',{message:'defaulting media sequence to zero'})),'discontinuitySequence'in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger('info',{message:'defaulting discontinuity sequence to zero'})),a.duration>0&&(h.duration=a.duration),0===a.duration&&(h.duration=.01,this.trigger('info',{message:'updating zero segment duration to a small value'})),this.manifest.segments=e},key:function s(){if(!a.attributes)return this.trigger('warn',{message:'ignoring key declaration without attribute list'}),void 0;if('NONE'===a.attributes.METHOD)return j=null,void 0;if(!a.attributes.URI)return this.trigger('warn',{message:'ignoring key declaration without URI'}),void 0;if(a.attributes.KEYFORMAT===m){var b=['SAMPLE-AES','SAMPLE-AES-CTR','SAMPLE-AES-CENC'];return-1===b.indexOf(a.attributes.METHOD)?(this.trigger('warn',{message:'invalid key method provided for Widevine'}),void 0):('SAMPLE-AES-CENC'===a.attributes.METHOD&&this.trigger('warn',{message:'SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead'}),'data:text/plain;base64,'!==a.attributes.URI.substring(0,23)?(this.trigger('warn',{message:'invalid key URI provided for Widevine'}),void 0):a.attributes.KEYID&&'0x'===a.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection={'com.widevine.alpha':{attributes:{schemeIdUri:a.attributes.KEYFORMAT,keyId:a.attributes.KEYID.substring(2)},pssh:g(a.attributes.URI.split(',')[1])}},void 0):(this.trigger('warn',{message:'invalid key ID provided for Widevine'}),void 0))}a.attributes.METHOD||this.trigger('warn',{message:'defaulting key method to AES-128'}),j={method:a.attributes.METHOD||'AES-128',uri:a.attributes.URI},'undefined'!=typeof a.attributes.IV&&(j.iv=a.attributes.IV)},'media-sequence':function t(){return isFinite(a.number)?(this.manifest.mediaSequence=a.number,void 0):(this.trigger('warn',{message:'ignoring invalid media sequence: '+a.number}),void 0)},'discontinuity-sequence':function u(){return isFinite(a.number)?(this.manifest.discontinuitySequence=a.number,n=a.number,void 0):(this.trigger('warn',{message:'ignoring invalid discontinuity sequence: '+a.number}),void 0)},'playlist-type':function v(){return/VOD|EVENT/.test(a.playlistType)?(this.manifest.playlistType=a.playlistType,void 0):(this.trigger('warn',{message:'ignoring unknown playlist type: '+a.playlist}),void 0)},map:function w(){i={},a.uri&&(i.uri=a.uri),a.byterange&&(i.byterange=a.byterange)},'stream-inf':function x(){return this.manifest.playlists=e,this.manifest.mediaGroups=this.manifest.mediaGroups||l,a.attributes?(h.attributes||(h.attributes={}),d(h.attributes,a.attributes),void 0):(this.trigger('warn',{message:'ignoring empty stream-inf attributes'}),void 0)},media:function y(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||l,!(a.attributes&&a.attributes.TYPE&&a.attributes['GROUP-ID']&&a.attributes.NAME))return this.trigger('warn',{message:'ignoring incomplete or missing media group'}),void 0;var c=this.manifest.mediaGroups[a.attributes.TYPE];c[a.attributes['GROUP-ID']]=c[a.attributes['GROUP-ID']]||{},b=c[a.attributes['GROUP-ID']],f={"default":/yes/i.test(a.attributes.DEFAULT)},f["default"]?f.autoselect=!0:f.autoselect=/yes/i.test(a.attributes.AUTOSELECT),a.attributes.LANGUAGE&&(f.language=a.attributes.LANGUAGE),a.attributes.URI&&(f.uri=a.attributes.URI),a.attributes['INSTREAM-ID']&&(f.instreamId=a.attributes['INSTREAM-ID']),a.attributes.CHARACTERISTICS&&(f.characteristics=a.attributes.CHARACTERISTICS),a.attributes.FORCED&&(f.forced=/yes/i.test(a.attributes.FORCED)),b[a.attributes.NAME]=f},discontinuity:function z(){n+=1,h.discontinuity=!0,this.manifest.discontinuityStarts.push(e.length)},'program-date-time':function A(){'undefined'==typeof this.manifest.dateTimeString&&(this.manifest.dateTimeString=a.dateTimeString,this.manifest.dateTimeObject=a.dateTimeObject),h.dateTimeString=a.dateTimeString,h.dateTimeObject=a.dateTimeObject},targetduration:function B(){return!isFinite(a.duration)||a.duration<0?(this.trigger('warn',{message:'ignoring invalid target duration: '+a.duration}),void 0):(this.manifest.targetDuration=a.duration,void 0)},totalduration:function C(){return!isFinite(a.duration)||a.duration<0?(this.trigger('warn',{message:'ignoring invalid total duration: '+a.duration}),void 0):(this.manifest.totalDuration=a.duration,void 0)},start:function D(){return!a.attributes||isNaN(a.attributes['TIME-OFFSET'])?(this.trigger('warn',{message:'ignoring start declaration without appropriate attribute list'}),void 0):(this.manifest.start={timeOffset:a.attributes['TIME-OFFSET'],precise:a.attributes.PRECISE},void 0)},'cue-out':function E(){h.cueOut=a.data},'cue-out-cont':function F(){h.cueOutCont=a.data},'cue-in':function G(){h.cueIn=a.data}})[a.tagType]||k).call(c)},uri:function p(){h.uri=a.uri,e.push(h),!this.manifest.targetDuration||'duration'in h||(this.trigger('warn',{message:'defaulting segment duration to the target duration'}),h.duration=this.manifest.targetDuration),j&&(h.key=j),h.timeline=n,i&&(h.map=i),h={}},comment:function q(){},custom:function r(){a.segment?(h.custom=h.custom||{},h.custom[a.customType]=a.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[a.customType]=a.data)}})[a.type].call(c)}),b}e(b,a);var c=b.prototype;return c.push=function h(a){this.lineStream.push(a)},c.end=function i(){this.lineStream.push('\n')},c.addParser=function j(a){this.parseStream.addParser(a)},c.addTagMapper=function k(a){this.parseStream.addTagMapper(a)},b}(ya),Ea=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},Fa=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),Ga=function Di(a,b,c){null===a&&(a=Function.prototype);var d=Object.getOwnPropertyDescriptor(a,b);if(void 0===d){var e=Object.getPrototypeOf(a);return null===e?void 0:Di(e,b,c)}if("value"in d)return d.value;var f=d.get;if(void 0!==f)return f.call(c)},Ha=function(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)},Ia=function(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b},Ja=function(){function a(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var g=a[Symbol.iterator](),h;!(d=(h=g.next()).done)&&(c.push(h.value),!b||c.length!==b);d=!0);}catch(i){e=!0,f=i}finally{try{!d&&g["return"]&&g["return"]()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b))return b;if(Symbol.iterator in Object(b))return a(b,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Ka=b.mergeOptions,La=b.EventTarget,Ma=b.log,Na=function Ei(a,b){['AUDIO','SUBTITLES'].forEach(function(c){for(var d in a.mediaGroups[c])for(var e in a.mediaGroups[c][d]){var f=a.mediaGroups[c][d][e];b(f,c,d,e)}})},Oa=function Fi(a,b,c){var d=b.slice();c=c||0;for(var e=Math.min(a.length,b.length+c),f=c;e>f;f++)d[f-c]=Ka(a[f],d[f-c]);return d},Pa=function Gi(a,b){a.resolvedUri||(a.resolvedUri=wa(b,a.uri)),a.key&&!a.key.resolvedUri&&(a.key.resolvedUri=wa(b,a.key.uri)),a.map&&!a.map.resolvedUri&&(a.map.resolvedUri=wa(b,a.map.uri))},Qa=function Hi(a,b){var c=Ka(a,{}),d=c.playlists[b.id];if(!d)return null;if(d.segments&&b.segments&&d.segments.length===b.segments.length&&d.endList===b.endList&&d.mediaSequence===b.mediaSequence)return null;var e=Ka(d,b);d.segments&&(e.segments=Oa(d.segments,b.segments,b.mediaSequence-d.mediaSequence)),e.segments.forEach(function(a){Pa(a,e.resolvedUri)});for(var f=0;f<c.playlists.length;f++)c.playlists[f].id===b.id&&(c.playlists[f]=e);return c.playlists[b.id]=e,c.playlists[b.uri]=e,c},Ra=function Ii(a,b){return a+'-'+b},Sa=function Ji(a){for(var b=a.playlists.length;b--;){var c=a.playlists[b];c.resolvedUri=wa(a.uri,c.uri),c.id=Ra(b,c.uri),a.playlists[c.id]=c,a.playlists[c.uri]=c,c.attributes||(c.attributes={},Ma.warn('Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.'))}},Ta=function Ki(a){Na(a,function(b){b.uri&&(b.resolvedUri=wa(a.uri,b.uri))})},Ua=function Li(a,b){var c=a.segments[a.segments.length-1],d=void 0;return d=b&&c&&c.duration?1e3*c.duration:500*(a.targetDuration||10),d},Va=function(a){function b(a,c){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ea(this,b);var e=Ia(this,(b.__proto__||Object.getPrototypeOf(b)).call(this)),f=d.withCredentials,g=void 0===f?!1:f,h=d.handleManifestRedirects,i=void 0===h?!1:h;e.srcUrl=a,e.hls_=c,e.withCredentials=g,e.handleManifestRedirects=i;var j=c.options_;if(e.customTagParsers=j&&j.customTagParsers||[],e.customTagMappers=j&&j.customTagMappers||[],!e.srcUrl)throw new Error('A non-empty playlist URL is required');return e.state='HAVE_NOTHING',e.on('mediaupdatetimeout',function(){'HAVE_METADATA'===e.state&&(e.state='HAVE_CURRENT_METADATA',e.request=e.hls_.xhr({uri:wa(e.master.uri,e.media().uri),withCredentials:e.withCredentials},function(a,b){return e.request?a?e.playlistRequestError(e.request,e.media(),'HAVE_METADATA'):(e.haveMetadata(e.request,e.media().uri,e.media().id),void 0):void 0}))}),e}return Ha(b,a),Fa(b,[{key:'playlistRequestError',value:function c(a,b,d){var e=b.uri,f=b.id;this.request=null,d&&(this.state=d),this.error={playlist:this.master.playlists[f],status:a.status,message:'HLS playlist request error at URL: '+e+'.',responseText:a.responseText,code:a.status>=500?4:2},this.trigger('error')}},{key:'haveMetadata',value:function d(a,b,c){var d=this;this.request=null,this.state='HAVE_METADATA';var e=new Da;this.customTagParsers.forEach(function(a){return e.addParser(a)}),this.customTagMappers.forEach(function(a){return e.addTagMapper(a)}),e.push(a.responseText),e.end(),e.manifest.uri=b,e.manifest.id=c,e.manifest.attributes=e.manifest.attributes||{};var f=Qa(this.master,e.manifest);this.targetDuration=e.manifest.targetDuration,f?(this.master=f,this.media_=this.master.playlists[c]):this.trigger('playlistunchanged'),this.media().endList||(va.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=va.setTimeout(function(){d.trigger('mediaupdatetimeout')},Ua(this.media(),!!f))),this.trigger('loadedplaylist')}},{key:'dispose',value:function e(){this.trigger('dispose'),this.stopRequest(),va.clearTimeout(this.mediaUpdateTimeout),va.clearTimeout(this.finalRenditionTimeout),this.off()}},{key:'stopRequest',value:function f(){if(this.request){var a=this.request;this.request=null,a.onreadystatechange=null,a.abort()}}},{key:'media',value:function g(a,b){var c=this;if(!a)return this.media_;if('HAVE_NOTHING'===this.state)throw new Error('Cannot switch media playlist from '+this.state);if('string'==typeof a){if(!this.master.playlists[a])throw new Error('Unknown playlist URI: '+a);a=this.master.playlists[a]}if(va.clearTimeout(this.finalRenditionTimeout),b){var d=a.targetDuration/2*1e3||5e3;return this.finalRenditionTimeout=va.setTimeout(this.media.bind(this,a,!1),d),void 0}var e=this.state,f=!this.media_||a.id!==this.media_.id;if(this.master.playlists[a.id].endList)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state='HAVE_METADATA',this.media_=a,f&&(this.trigger('mediachanging'),this.trigger('mediachange')),void 0;if(f){if(this.state='SWITCHING_MEDIA',this.request){if(a.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger('mediachanging'),this.request=this.hls_.xhr({uri:a.resolvedUri,withCredentials:this.withCredentials},function(b,d){if(c.request){if(a.resolvedUri=xa(c.handleManifestRedirects,a.resolvedUri,d),b)return c.playlistRequestError(c.request,a,e);c.haveMetadata(d,a.uri,a.id),'HAVE_MASTER'===e?c.trigger('loadedmetadata'):c.trigger('mediachange')}})}}},{key:'pause',value:function h(){this.stopRequest(),va.clearTimeout(this.mediaUpdateTimeout),'HAVE_NOTHING'===this.state&&(this.started=!1),'SWITCHING_MEDIA'===this.state?this.media_?this.state='HAVE_METADATA':this.state='HAVE_MASTER':'HAVE_CURRENT_METADATA'===this.state&&(this.state='HAVE_METADATA')}},{key:'load',value:function i(a){var b=this;va.clearTimeout(this.mediaUpdateTimeout);var c=this.media();if(a){var d=c?c.targetDuration/2*1e3:5e3;return this.mediaUpdateTimeout=va.setTimeout(function(){return b.load()},d),void 0}return this.started?(c&&!c.endList?this.trigger('mediaupdatetimeout'):this.trigger('loadedplaylist'),void 0):(this.start(),void 0)}},{key:'start',value:function j(){var a=this;this.started=!0,this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(b,c){if(a.request){if(a.request=null,b)return a.error={status:c.status,message:'HLS playlist request error at URL: '+a.srcUrl+'.',responseText:c.responseText,code:2},'HAVE_NOTHING'===a.state&&(a.started=!1),a.trigger('error');var d=new Da;if(a.customTagParsers.forEach(function(a){return d.addParser(a)}),a.customTagMappers.forEach(function(a){return d.addTagMapper(a)}),d.push(c.responseText),d.end(),a.state='HAVE_MASTER',a.srcUrl=xa(a.handleManifestRedirects,a.srcUrl,c),d.manifest.uri=a.srcUrl,d.manifest.playlists)return a.master=d.manifest,Sa(a.master),Ta(a.master),a.trigger('loadedplaylist'),a.request||a.media(d.manifest.playlists[0]),void 0;var e=Ra(0,a.srcUrl);return a.master={mediaGroups:{AUDIO:{},VIDEO:{},'CLOSED-CAPTIONS':{},SUBTITLES:{}},uri:va.location.href,playlists:[{uri:a.srcUrl,id:e,resolvedUri:a.srcUrl,attributes:{}}]},a.master.playlists[e]=a.master.playlists[0],a.master.playlists[a.srcUrl]=a.master.playlists[0],a.haveMetadata(c,a.srcUrl,e),a.trigger('loadedmetadata')}})}}]),b}(La),Wa=b.createTimeRange,Xa=function Mi(a,b){var c=0,d=b-a.mediaSequence,e=a.segments[d];if(e){if('undefined'!=typeof e.start)return{result:e.start,precise:!0};if('undefined'!=typeof e.end)return{result:e.end-e.duration,precise:!0}}for(;d--;){if(e=a.segments[d],'undefined'!=typeof e.end)return{result:c+e.end,precise:!0};if(c+=e.duration,'undefined'!=typeof e.start)return{result:c+e.start,precise:!0}}return{result:c,precise:!1}},Ya=function Ni(a,b){for(var c=0,d=void 0,e=b-a.mediaSequence;e<a.segments.length;e++){if(d=a.segments[e],'undefined'!=typeof d.start)return{result:d.start-c,precise:!0};if(c+=d.duration,'undefined'!=typeof d.end)return{result:d.end-c,precise:!0}}return{result:-1,precise:!1}},Za=function Oi(a,b,c){var d=void 0,e=void 0;return'undefined'==typeof b&&(b=a.mediaSequence+a.segments.length),b<a.mediaSequence?0:(d=Xa(a,b),d.precise?d.result:(e=Ya(a,b),e.precise?e.result:d.result+c))},$a=function Pi(a,b,c){if(!a)return 0;if('number'!=typeof c&&(c=0),'undefined'==typeof b){if(a.totalDuration)return a.totalDuration;if(!a.endList)return va.Infinity}return Za(a,b,c)},_a=function Qi(a,b,c){var d=0;if(b>c){var e=[c,b];b=e[0],c=e[1]}if(0>b){for(var f=b;f<Math.min(0,c);f++)d+=a.targetDuration;b=0}for(var g=b;c>g;g++)d+=a.segments[g].duration;return d},ab=function Ri(a,b){if(!a.segments.length)return 0;var c=a.segments.length,d=a.segments[c-1].duration||a.targetDuration,e='number'==typeof b?b:d+2*a.targetDuration;if(0===e)return c;for(var f=0;c--&&(f+=a.segments[c].duration,!(f>=e)););return Math.max(0,c)},bb=function Si(a,b,c,d){if(!a||!a.segments)return null;if(a.endList)return $a(a);if(null===b)return null;b=b||0;var e=c?ab(a,d):a.segments.length;return Za(a,a.mediaSequence+e,b)},cb=function Ti(a,b,c){var d=!0,e=b||0,f=bb(a,b,d,c);return null===f?Wa():Wa(e,f)},db=function Ui(a){return a-Math.floor(a)===0},eb=function Vi(a,b){if(db(b))return b+.1*a;for(var c=b.toString().split('.')[1].length,d=1;c>=d;d++){var e=Math.pow(10,d),f=b*e;if(db(f)||d===c)return(f+a)/e}},fb=eb.bind(null,1),gb=eb.bind(null,-1),hb=function Wi(a,b,c,d){var e=void 0,f=void 0,g=a.segments.length,h=b-d;if(0>h){if(c>0)for(e=c-1;e>=0;e--)if(f=a.segments[e],h+=gb(f.duration),h>0)return{mediaIndex:e,startTime:d-_a(a,c,e)};return{mediaIndex:0,startTime:b}}if(0>c){for(e=c;0>e;e++)if(h-=a.targetDuration,0>h)return{mediaIndex:0,
startTime:b};c=0}for(e=c;g>e;e++)if(f=a.segments[e],h-=fb(f.duration),0>h)return{mediaIndex:e,startTime:d+_a(a,c,e)};return{mediaIndex:g-1,startTime:b}},ib=function Xi(a){return a.excludeUntil&&a.excludeUntil>Date.now()},jb=function Yi(a){return a.excludeUntil&&a.excludeUntil===1/0},kb=function Zi(a){var b=ib(a);return!a.disabled&&!b},lb=function $i(a){return a.disabled},mb=function _i(a){for(var b=0;b<a.segments.length;b++)if(a.segments[b].key)return!0;return!1},nb=function aj(a){for(var b=0;b<a.segments.length;b++)if(a.segments[b].map)return!0;return!1},ob=function bj(a,b){return b.attributes&&b.attributes[a]},pb=function cj(a,b,c){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(!ob('BANDWIDTH',c))return NaN;var e=a*c.attributes.BANDWIDTH;return(e-8*d)/b},qb=function dj(a,b){if(1===a.playlists.length)return!0;var c=b.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===a.playlists.filter(function(a){return kb(a)?(a.attributes.BANDWIDTH||0)<c:!1}).length},rb={duration:$a,seekable:cb,safeLiveIndex:ab,getMediaInfoForTime:hb,isEnabled:kb,isDisabled:lb,isBlacklisted:ib,isIncompatible:jb,playlistEnd:bb,isAes:mb,isFmp4:nb,hasAttribute:ob,estimateSegmentRequestTime:pb,isLowestEnabledRendition:qb},sb=b.xhr,tb=b.mergeOptions,ub=function ej(){var a=function c(a,d){a=tb({timeout:45e3},a);var e=c.beforeRequest||b.Hls.xhr.beforeRequest;if(e&&'function'==typeof e){var f=e(a);f&&(a=f)}var g=sb(a,function(a,b){var c=g.response;!a&&c&&(g.responseTime=Date.now(),g.roundTripTime=g.responseTime-g.requestTime,g.bytesReceived=c.byteLength||c.length,g.bandwidth||(g.bandwidth=Math.floor(g.bytesReceived/g.roundTripTime*8*1e3))),b.headers&&(g.responseHeaders=b.headers),a&&'ETIMEDOUT'===a.code&&(g.timedout=!0),a||g.aborted||200===b.statusCode||206===b.statusCode||0===b.statusCode||(a=new Error('XHR Failed with a response of: '+(g&&(c||g.responseText)))),d(a,g)}),h=g.abort;return g.abort=function(){return g.aborted=!0,h.apply(g,arguments)},g.uri=a.uri,g.requestTime=Date.now(),g};return a},vb=function fj(a){var b=void 0,c=void 0;return c=a.offset+a.length-1,b=a.offset,'bytes='+b+'-'+c},wb=function gj(a){var b={};return a.byterange&&(b.Range=vb(a.byterange)),b},xb=function hj(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},yb=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),zb=function ij(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)},Ab=function jj(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b},Bb=function kj(){var a=[[[],[],[],[],[]],[[],[],[],[],[]]],b=a[0],c=a[1],d=b[4],e=c[4],f=void 0,g=void 0,h=void 0,i=[],j=[],k=void 0,l=void 0,m=void 0,n=void 0,o=void 0,p=void 0;for(f=0;256>f;f++)j[(i[f]=f<<1^283*(f>>7))^f]=f;for(g=h=0;!d[g];g^=k||1,h=j[h]||1)for(n=h^h<<1^h<<2^h<<3^h<<4,n=n>>8^255&n^99,d[g]=n,e[n]=g,m=i[l=i[k=i[g]]],p=16843009*m^65537*l^257*k^16843008*g,o=257*i[n]^16843008*n,f=0;4>f;f++)b[f][g]=o=o<<24^o>>>8,c[f][n]=p=p<<24^p>>>8;for(f=0;5>f;f++)b[f]=b[f].slice(0),c[f]=c[f].slice(0);return a},Cb=null,Db=function(){function a(b){xb(this,a),Cb||(Cb=Bb()),this._tables=[[Cb[0][0].slice(),Cb[0][1].slice(),Cb[0][2].slice(),Cb[0][3].slice(),Cb[0][4].slice()],[Cb[1][0].slice(),Cb[1][1].slice(),Cb[1][2].slice(),Cb[1][3].slice(),Cb[1][4].slice()]];var c=void 0,d=void 0,e=void 0,f=void 0,g=void 0,h=this._tables[0][4],i=this._tables[1],j=b.length,k=1;if(4!==j&&6!==j&&8!==j)throw new Error('Invalid aes key size');for(f=b.slice(0),g=[],this._key=[f,g],c=j;4*j+28>c;c++)e=f[c-1],(c%j===0||8===j&&c%j===4)&&(e=h[e>>>24]<<24^h[e>>16&255]<<16^h[e>>8&255]<<8^h[255&e],c%j===0&&(e=e<<8^e>>>24^k<<24,k=k<<1^283*(k>>7))),f[c]=f[c-j]^e;for(d=0;c;d++,c--)e=f[3&d?c:c-4],4>=c||4>d?g[d]=e:g[d]=i[0][h[e>>>24]]^i[1][h[e>>16&255]]^i[2][h[e>>8&255]]^i[3][h[255&e]]}return a.prototype.decrypt=function b(a,c,d,e,f,g){var h=this._key[1],i=a^h[0],j=e^h[1],k=d^h[2],l=c^h[3],m=void 0,n=void 0,o=void 0,p=h.length/4-2,q=void 0,r=4,s=this._tables[1],t=s[0],u=s[1],v=s[2],w=s[3],x=s[4];for(q=0;p>q;q++)m=t[i>>>24]^u[j>>16&255]^v[k>>8&255]^w[255&l]^h[r],n=t[j>>>24]^u[k>>16&255]^v[l>>8&255]^w[255&i]^h[r+1],o=t[k>>>24]^u[l>>16&255]^v[i>>8&255]^w[255&j]^h[r+2],l=t[l>>>24]^u[i>>16&255]^v[j>>8&255]^w[255&k]^h[r+3],r+=4,i=m,j=n,k=o;for(q=0;4>q;q++)f[(3&-q)+g]=x[i>>>24]<<24^x[j>>16&255]<<16^x[k>>8&255]<<8^x[255&l]^h[r++],m=i,i=j,j=k,k=l,l=m},a}(),Eb=function(){function a(){xb(this,a),this.listeners={}}return a.prototype.on=function b(a,c){this.listeners[a]||(this.listeners[a]=[]),this.listeners[a].push(c)},a.prototype.off=function c(a,b){if(!this.listeners[a])return!1;var c=this.listeners[a].indexOf(b);return this.listeners[a].splice(c,1),c>-1},a.prototype.trigger=function d(a){var b=this.listeners[a];if(b)if(2===arguments.length)for(var c=b.length,d=0;c>d;++d)b[d].call(this,arguments[1]);else for(var e=Array.prototype.slice.call(arguments,1),f=b.length,g=0;f>g;++g)b[g].apply(this,e)},a.prototype.dispose=function e(){this.listeners={}},a.prototype.pipe=function f(a){this.on('data',function(b){a.push(b)})},a}(),Fb=function(a){function b(){xb(this,b);var c=Ab(this,a.call(this,Eb));return c.jobs=[],c.delay=1,c.timeout_=null,c}return zb(b,a),b.prototype.processJob_=function c(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},b.prototype.push=function d(a){this.jobs.push(a),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},b}(Eb),Gb=function lj(a){return a<<24|(65280&a)<<8|(16711680&a)>>8|a>>>24},Hb=function mj(a,b,c){var d=new Int32Array(a.buffer,a.byteOffset,a.byteLength>>2),e=new Db(Array.prototype.slice.call(b)),f=new Uint8Array(a.byteLength),g=new Int32Array(f.buffer),h=void 0,i=void 0,j=void 0,k=void 0,l=void 0,m=void 0,n=void 0,o=void 0,p=void 0;for(h=c[0],i=c[1],j=c[2],k=c[3],p=0;p<d.length;p+=4)l=Gb(d[p]),m=Gb(d[p+1]),n=Gb(d[p+2]),o=Gb(d[p+3]),e.decrypt(l,m,n,o,g,p),g[p]=Gb(g[p]^h),g[p+1]=Gb(g[p+1]^i),g[p+2]=Gb(g[p+2]^j),g[p+3]=Gb(g[p+3]^k),h=l,i=m,j=n,k=o;return f},Ib=function(){function a(b,c,d,e){xb(this,a);var f=a.STEP,g=new Int32Array(b.buffer),i=new Uint8Array(b.byteLength),j=0;for(this.asyncStream_=new Fb,this.asyncStream_.push(this.decryptChunk_(g.subarray(j,j+f),c,d,i)),j=f;j<g.length;j+=f)d=new Uint32Array([Gb(g[j-4]),Gb(g[j-3]),Gb(g[j-2]),Gb(g[j-1])]),this.asyncStream_.push(this.decryptChunk_(g.subarray(j,j+f),c,d,i));this.asyncStream_.push(function(){e(null,h(i))})}return a.prototype.decryptChunk_=function b(a,c,d,e){return function(){var b=Hb(a,c,d);e.set(b,a.byteOffset)}},yb(a,null,[{key:'STEP',get:function c(){return 32e3}}]),a}(),Jb=function nj(a,b){return a.start(b)+'-'+a.end(b)},Kb=function oj(a,b){var c=a.toString(16);return'00'.substring(0,2-c.length)+c+(b%2?' ':'')},Lb=function pj(a){return a>=32&&126>a?String.fromCharCode(a):'.'},Mb=function qj(a){var b={};return Object.keys(a).forEach(function(c){var d=a[c];ArrayBuffer.isView(d)?b[c]={bytes:d.buffer,byteOffset:d.byteOffset,byteLength:d.byteLength}:b[c]=d}),b},Nb=function rj(a){var b=a.byterange||{length:1/0,offset:0};return[b.length,b.offset,a.resolvedUri].join(',')},Ob=function sj(a){return a.resolvedUri},Pb=function tj(a){for(var b=Array.prototype.slice.call(a),c=16,d='',e=void 0,f=void 0,g=0;g<b.length/c;g++)e=b.slice(g*c,g*c+c).map(Kb).join(''),f=b.slice(g*c,g*c+c).map(Lb).join(''),d+=e+' '+f+'\n';return d},Qb=function uj(a){var b=a.bytes;return Pb(b)},Rb=function vj(a){var b='',c=void 0;for(c=0;c<a.length;c++)b+=Jb(a,c)+' ';return b},Sb=Object.freeze({createTransferableMessage:Mb,initSegmentId:Nb,segmentKeyId:Ob,hexDump:Pb,tagDump:Qb,textRanges:Rb}),Tb=.25,Ub=function wj(a,b){if(!b.dateTimeObject)return null;var c=b.videoTimingInfo.transmuxerPrependedSeconds,d=b.videoTimingInfo.transmuxedPresentationStart,e=d+c,f=a-e;return new Date(b.dateTimeObject.getTime()+1e3*f)},Vb=function xj(a){return a.transmuxedPresentationEnd-a.transmuxedPresentationStart-a.transmuxerPrependedSeconds},Wb=function yj(a,b){var c=void 0;try{c=new Date(a)}catch(d){return null}if(!b||!b.segments||0===b.segments.length)return null;var e=b.segments[0];if(c<e.dateTimeObject)return null;for(var f=0;f<b.segments.length-1;f++){e=b.segments[f];var g=b.segments[f+1].dateTimeObject;if(g>c)break}var h=b.segments[b.segments.length-1],i=h.dateTimeObject,j=h.videoTimingInfo?Vb(h.videoTimingInfo):h.duration+h.duration*Tb,k=new Date(i.getTime()+1e3*j);return c>k?null:(c>i&&(e=h),{segment:e,estimatedStart:e.videoTimingInfo?e.videoTimingInfo.transmuxedPresentationStart:rb.duration(b,b.mediaSequence+b.segments.indexOf(e)),type:e.videoTimingInfo?'accurate':'estimate'})},Xb=function zj(a,b){if(!b||!b.segments||0===b.segments.length)return null;for(var c=0,d=void 0,e=0;e<b.segments.length&&(d=b.segments[e],c=d.videoTimingInfo?d.videoTimingInfo.transmuxedPresentationEnd:c+d.duration,!(c>=a));e++);var f=b.segments[b.segments.length-1];if(f.videoTimingInfo&&f.videoTimingInfo.transmuxedPresentationEnd<a)return null;if(a>c){if(a>c+f.duration*Tb)return null;d=f}return{segment:d,estimatedStart:d.videoTimingInfo?d.videoTimingInfo.transmuxedPresentationStart:c-d.duration,type:d.videoTimingInfo?'accurate':'estimate'}},Yb=function Aj(a,b){var c=void 0,d=void 0;try{c=new Date(a),d=new Date(b)}catch(e){}var f=c.getTime(),g=d.getTime();return(g-f)/1e3},Zb=function Bj(a){if(!a.segments||0===a.segments.length)return!1;for(var b=0;b<a.segments.length;b++){var c=a.segments[b];if(!c.dateTimeObject)return!1}return!0},$b=function Cj(a){var b=a.playlist,c=a.time,d=void 0===c?void 0:c,e=a.callback;if(!e)throw new Error('getProgramTime: callback must be provided');if(!b||void 0===d)return e({message:'getProgramTime: playlist and time must be provided'});var f=Xb(d,b);if(!f)return e({message:'valid programTime was not found'});if('estimate'===f.type)return e({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:f.estimatedStart});var g={mediaSeconds:d},h=Ub(d,f.segment);return h&&(g.programDateTime=h.toISOString()),e(null,g)},_b=function Dj(a){var b=a.programTime,c=a.playlist,d=a.retryCount,e=void 0===d?2:d,f=a.seekTo,g=a.pauseAfterSeek,h=void 0===g?!0:g,i=a.tech,j=a.callback;if(!j)throw new Error('seekToProgramTime: callback must be provided');if('undefined'==typeof b||!c||!f)return j({message:'seekToProgramTime: programTime, seekTo and playlist must be provided'});if(!c.endList&&!i.hasStarted_)return j({message:'player must be playing a live stream to start buffering'});if(!Zb(c))return j({message:'programDateTime tags must be provided in the manifest '+c.resolvedUri});var k=Wb(b,c);if(!k)return j({message:b+' was not found in the stream'});var l=k.segment,m=Yb(l.dateTimeObject,b);if('estimate'===k.type)return 0===e?j({message:b+' is not buffered yet. Try again'}):(f(k.estimatedStart+m),i.one('seeked',function(){Dj({programTime:b,playlist:c,retryCount:e-1,seekTo:f,pauseAfterSeek:h,tech:i,callback:j})}),void 0);var n=l.start+m,o=function p(){return j(null,i.currentTime())};i.one('seeked',o),h&&i.pause(),f(n)},ac=1/30,bc=3*ac,cc=function Ej(a,c){var d=[],e=void 0;if(a&&a.length)for(e=0;e<a.length;e++)c(a.start(e),a.end(e))&&d.push([a.start(e),a.end(e)]);return b.createTimeRanges(d)},dc=function Fj(a,b){return cc(a,function(a,c){return b>=a-bc&&c+bc>=b})},ec=function Gj(a,b){return cc(a,function(a){return a-ac>=b})},fc=function Hj(a){if(a.length<2)return b.createTimeRanges();for(var c=[],d=1;d<a.length;d++){var e=a.end(d-1),f=a.start(d);c.push([e,f])}return b.createTimeRanges(c)},gc=function Ij(a){var b=[];if(!a||!a.length)return'';for(var c=0;c<a.length;c++)b.push(a.start(c)+' => '+a.end(c));return b.join(', ')},hc=function Jj(a,b){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,d=a.length?a.end(a.length-1):0;return(d-b)/c},ic=function Kj(a){for(var b=[],c=0;c<a.length;c++)b.push({start:a.start(c),end:a.end(c)});return b},jc=function Lj(a,b,c){var d=b.player_;if(c.captions&&c.captions.length){a.inbandTextTracks_||(a.inbandTextTracks_={});for(var e in c.captionStreams)if(!a.inbandTextTracks_[e]){d.tech_.trigger({type:'usage',name:'hls-608'});var f=d.textTracks().getTrackById(e);f?a.inbandTextTracks_[e]=f:a.inbandTextTracks_[e]=d.addRemoteTextTrack({kind:'captions',id:e,label:e},!1).track}}c.metadata&&c.metadata.length&&!a.metadataTrack_&&(a.metadataTrack_=d.addRemoteTextTrack({kind:'metadata',label:'Timed Metadata'},!1).track,a.metadataTrack_.inBandMetadataTrackDispatchType=c.metadata.dispatchType)},kc=function Mj(a,b,c){var d=void 0,e=void 0;if(c&&c.cues)for(d=c.cues.length;d--;)e=c.cues[d],e.startTime<=b&&e.endTime>=a&&c.removeCue(e)},lc=function Nj(a){Object.defineProperties(a.frame,{id:{get:function c(){return b.log.warn('cue.frame.id is deprecated. Use cue.value.key instead.'),a.value.key}},value:{get:function d(){return b.log.warn('cue.frame.value is deprecated. Use cue.value.data instead.'),a.value.data}},privateData:{get:function e(){return b.log.warn('cue.frame.privateData is deprecated. Use cue.value.data instead.'),a.value.data}}})},mc=function Oj(a){var b=void 0;return b=isNaN(a)||Math.abs(a)===1/0?Number.MAX_VALUE:a,b},nc=function Pj(a,b,c){var d=va.WebKitDataCue||va.VTTCue;if(b&&b.forEach(function(a){var b=a.stream;this.inbandTextTracks_[b].addCue(new d(a.startTime+this.timestampOffset,a.endTime+this.timestampOffset,a.text))},a),c){var e=mc(a.mediaSource_.duration);if(c.forEach(function(a){var b=a.cueTime+this.timestampOffset;!('number'!=typeof b||va.isNaN(b)||0>b)&&1/0>b&&a.frames.forEach(function(a){var c=new d(b,b,a.value||a.url||a.data||'');c.frame=a,c.value=a,lc(c),this.metadataTrack_.addCue(c)},this)},a),a.metadataTrack_&&a.metadataTrack_.cues&&a.metadataTrack_.cues.length){for(var f=a.metadataTrack_.cues,g=[],h=0;h<f.length;h++)f[h]&&g.push(f[h]);var i=g.reduce(function(a,b){var c=a[b.startTime]||[];return c.push(b),a[b.startTime]=c,a},{}),j=Object.keys(i).sort(function(a,b){return Number(a)-Number(b)});j.forEach(function(a,b){var c=i[a],d=Number(j[b+1])||e;c.forEach(function(a){a.endTime=d})})}}},oc='undefined'!=typeof window?window:{},pc='undefined'==typeof Symbol?'__target':Symbol(),qc='application/javascript',rc=oc.BlobBuilder||oc.WebKitBlobBuilder||oc.MozBlobBuilder||oc.MSBlobBuilder,sc=oc.URL||oc.webkitURL||sc&&sc.msURL,tc=oc.Worker;if(tc){var uc,vc=j('self.onmessage = function () {}'),wc=new Uint8Array(1);try{uc=new tc(vc),uc.postMessage(wc,[wc.buffer])}catch(xc){tc=null}finally{sc.revokeObjectURL(vc),uc&&uc.terminate()}}var yc=new i("./transmuxer-worker.worker.js",function(a,b){var c=this,d=function(){var a=function Wb(){this.init=function(){var a={};this.on=function(b,c){a[b]||(a[b]=[]),a[b]=a[b].concat(c)},this.off=function(b,c){var d;return a[b]?(d=a[b].indexOf(c),a[b]=a[b].slice(),a[b].splice(d,1),d>-1):!1},this.trigger=function(b){var c,d,e,f;if(c=a[b],c)if(2===arguments.length)for(e=c.length,d=0;e>d;++d)c[d].call(this,arguments[1]);else{for(f=[],d=arguments.length,d=1;d<arguments.length;++d)f.push(arguments[d]);for(e=c.length,d=0;e>d;++d)c[d].apply(this,f)}},this.dispose=function(){a={}}}};a.prototype.pipe=function(a){return this.on('data',function(b){a.push(b)}),this.on('done',function(b){a.flush(b)}),this.on('partialdone',function(b){a.partialFlush(b)}),this.on('endedtimeline',function(b){a.endTimeline(b)}),this.on('reset',function(b){a.reset(b)}),a},a.prototype.push=function(a){this.trigger('data',a)},a.prototype.flush=function(a){this.trigger('done',a)},a.prototype.partialFlush=function(a){this.trigger('partialdone',a)},a.prototype.endTimeline=function(a){this.trigger('endedtimeline',a)},a.prototype.reset=function(a){this.trigger('reset',a)};var b=a,d=Math.pow(2,32)-1,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N;!function(){var a;if(A={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},'undefined'!=typeof Uint8Array){for(a in A)A.hasOwnProperty(a)&&(A[a]=[a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2),a.charCodeAt(3)]);B=new Uint8Array(['i'.charCodeAt(0),'s'.charCodeAt(0),'o'.charCodeAt(0),'m'.charCodeAt(0)]),D=new Uint8Array(['a'.charCodeAt(0),'v'.charCodeAt(0),'c'.charCodeAt(0),'1'.charCodeAt(0)]),C=new Uint8Array([0,0,0,1]),E=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),F=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),G={video:E,audio:F},J=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),I=new Uint8Array([0,0,0,0,0,0,0,0]),K=new Uint8Array([0,0,0,0,0,0,0,0]),L=K,M=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),N=K,H=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),e=function Xb(a){var b=[],c=0,d,e,f;for(d=1;d<arguments.length;d++)b.push(arguments[d]);for(d=b.length;d--;)c+=b[d].byteLength;for(e=new Uint8Array(c+8),f=new DataView(e.buffer,e.byteOffset,e.byteLength),f.setUint32(0,e.byteLength),e.set(a,4),d=0,c=8;d<b.length;d++)e.set(b[d],c),c+=b[d].byteLength;return e},f=function Yb(){return e(A.dinf,e(A.dref,J))},g=function Zb(a){return e(A.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,a.audioobjecttype<<3|a.samplingfrequencyindex>>>1,a.samplingfrequencyindex<<7|a.channelcount<<3,6,1,2]))},h=function $b(){return e(A.ftyp,B,C,B,D)},t=function _b(a){return e(A.hdlr,G[a])},i=function ac(a){return e(A.mdat,a)},s=function bc(a){var b=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,a.duration>>>24&255,a.duration>>>16&255,a.duration>>>8&255,255&a.duration,85,196,0,0]);return a.samplerate&&(b[12]=a.samplerate>>>24&255,b[13]=a.samplerate>>>16&255,b[14]=a.samplerate>>>8&255,b[15]=255&a.samplerate),e(A.mdhd,b)},r=function cc(a){return e(A.mdia,s(a),t(a.type),k(a))},j=function dc(a){return e(A.mfhd,new Uint8Array([0,0,0,0,(4278190080&a)>>24,(16711680&a)>>16,(65280&a)>>8,255&a]))},k=function ec(a){return e(A.minf,'video'===a.type?e(A.vmhd,H):e(A.smhd,I),f(),v(a))},l=function fc(a,b){for(var c=[],d=b.length;d--;)c[d]=x(b[d]);return e.apply(null,[A.moof,j(a)].concat(c))},m=function gc(a){for(var b=a.length,c=[];b--;)c[b]=p(a[b]);return e.apply(null,[A.moov,o(4294967295)].concat(c).concat(n(a)))},n=function hc(a){for(var b=a.length,c=[];b--;)c[b]=y(a[b]);return e.apply(null,[A.mvex].concat(c))},o=function ic(a){var b=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&a)>>24,(16711680&a)>>16,(65280&a)>>8,255&a,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return e(A.mvhd,b)},u=function jc(a){var b=a.samples||[],c=new Uint8Array(4+b.length),d,f;for(f=0;f<b.length;f++)d=b[f].flags,c[f+4]=d.dependsOn<<4|d.isDependedOn<<2|d.hasRedundancy;return e(A.sdtp,c)},v=function kc(a){return e(A.stbl,w(a),e(A.stts,N),e(A.stsc,L),e(A.stsz,M),e(A.stco,K))},function(){var a,b;w=function c(d){return e(A.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),'video'===d.type?a(d):b(d))},a=function d(a){var b=a.sps||[],c=a.pps||[],d=[],f=[],g,h;for(g=0;g<b.length;g++)d.push((65280&b[g].byteLength)>>>8),d.push(255&b[g].byteLength),d=d.concat(Array.prototype.slice.call(b[g]));for(g=0;g<c.length;g++)f.push((65280&c[g].byteLength)>>>8),f.push(255&c[g].byteLength),f=f.concat(Array.prototype.slice.call(c[g]));if(h=[A.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&a.width)>>8,255&a.width,(65280&a.height)>>8,255&a.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),e(A.avcC,new Uint8Array([1,a.profileIdc,a.profileCompatibility,a.levelIdc,255].concat([b.length],d,[c.length],f))),e(A.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],a.sarRatio){var i=a.sarRatio[0],j=a.sarRatio[1];h.push(e(A.pasp,new Uint8Array([(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i,(4278190080&j)>>24,(16711680&j)>>16,(65280&j)>>8,255&j])))}return e.apply(null,h)},b=function f(a){return e(A.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&a.channelcount)>>8,255&a.channelcount,(65280&a.samplesize)>>8,255&a.samplesize,0,0,0,0,(65280&a.samplerate)>>8,255&a.samplerate,0,0]),g(a))}}(),q=function lc(a){var b=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&a.id)>>24,(16711680&a.id)>>16,(65280&a.id)>>8,255&a.id,0,0,0,0,(4278190080&a.duration)>>24,(16711680&a.duration)>>16,(65280&a.duration)>>8,255&a.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&a.width)>>8,255&a.width,0,0,(65280&a.height)>>8,255&a.height,0,0]);return e(A.tkhd,b)},x=function mc(a){var b,c,f,g,h,i,j;return b=e(A.tfhd,new Uint8Array([0,0,0,58,(4278190080&a.id)>>24,(16711680&a.id)>>16,(65280&a.id)>>8,255&a.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),i=Math.floor(a.baseMediaDecodeTime/(d+1)),j=Math.floor(a.baseMediaDecodeTime%(d+1)),c=e(A.tfdt,new Uint8Array([1,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,j>>>24&255,j>>>16&255,j>>>8&255,255&j])),h=92,'audio'===a.type?(f=z(a,h),e(A.traf,b,c,f)):(g=u(a),f=z(a,g.length+h),e(A.traf,b,c,f,g))},p=function nc(a){return a.duration=a.duration||4294967295,e(A.trak,q(a),r(a))},y=function oc(a){var b=new Uint8Array([0,0,0,0,(4278190080&a.id)>>24,(16711680&a.id)>>16,(65280&a.id)>>8,255&a.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return'video'!==a.type&&(b[b.length-1]=0),e(A.trex,b)},function(){var a,b,c;c=function d(a,b){var c=0,d=0,e=0,f=0;return a.length&&(void 0!==a[0].duration&&(c=1),void 0!==a[0].size&&(d=2),void 0!==a[0].flags&&(e=4),void 0!==a[0].compositionTimeOffset&&(f=8)),[0,0,c|d|e|f,1,(4278190080&a.length)>>>24,(16711680&a.length)>>>16,(65280&a.length)>>>8,255&a.length,(4278190080&b)>>>24,(16711680&b)>>>16,(65280&b)>>>8,255&b]},b=function f(a,b){var d,f,g,h;for(f=a.samples||[],b+=20+16*f.length,d=c(f,b),h=0;h<f.length;h++)g=f[h],d=d.concat([(4278190080&g.duration)>>>24,(16711680&g.duration)>>>16,(65280&g.duration)>>>8,255&g.duration,(4278190080&g.size)>>>24,(16711680&g.size)>>>16,(65280&g.size)>>>8,255&g.size,g.flags.isLeading<<2|g.flags.dependsOn,g.flags.isDependedOn<<6|g.flags.hasRedundancy<<4|g.flags.paddingValue<<1|g.flags.isNonSyncSample,61440&g.flags.degradationPriority,15&g.flags.degradationPriority,(4278190080&g.compositionTimeOffset)>>>24,(16711680&g.compositionTimeOffset)>>>16,(65280&g.compositionTimeOffset)>>>8,255&g.compositionTimeOffset]);return e(A.trun,new Uint8Array(d))},a=function g(a,b){var d,f,g,h;for(f=a.samples||[],b+=20+8*f.length,d=c(f,b),h=0;h<f.length;h++)g=f[h],d=d.concat([(4278190080&g.duration)>>>24,(16711680&g.duration)>>>16,(65280&g.duration)>>>8,255&g.duration,(4278190080&g.size)>>>24,(16711680&g.size)>>>16,(65280&g.size)>>>8,255&g.size]);return e(A.trun,new Uint8Array(d))},z=function h(c,d){return'audio'===c.type?a(c,d):b(c,d)}}();var O={ftyp:h,mdat:i,moof:l,moov:m,initSegment:function pc(a){var b=h(),c=m(a),d;return d=new Uint8Array(b.byteLength+c.byteLength),d.set(b),d.set(c,b.byteLength),d}},P=function qc(a){var b,c,d=[],e=[];for(e.byteLength=0,e.nalCount=0,e.duration=0,d.byteLength=0,b=0;b<a.length;b++)c=a[b],'access_unit_delimiter_rbsp'===c.nalUnitType?(d.length&&(d.duration=c.dts-d.dts,e.byteLength+=d.byteLength,e.nalCount+=d.length,e.duration+=d.duration,e.push(d)),d=[c],d.byteLength=c.data.byteLength,d.pts=c.pts,d.dts=c.dts):('slice_layer_without_partitioning_rbsp_idr'===c.nalUnitType&&(d.keyFrame=!0),d.duration=c.dts-d.dts,d.byteLength+=c.data.byteLength,d.push(c));return e.length&&(!d.duration||d.duration<=0)&&(d.duration=e[e.length-1].duration),e.byteLength+=d.byteLength,e.nalCount+=d.length,e.duration+=d.duration,e.push(d),e},Q=function rc(a){var b,c,d=[],e=[];for(d.byteLength=0,d.nalCount=0,d.duration=0,d.pts=a[0].pts,d.dts=a[0].dts,e.byteLength=0,e.nalCount=0,e.duration=0,e.pts=a[0].pts,e.dts=a[0].dts,b=0;b<a.length;b++)c=a[b],c.keyFrame?(d.length&&(e.push(d),e.byteLength+=d.byteLength,e.nalCount+=d.nalCount,e.duration+=d.duration),d=[c],d.nalCount=c.length,d.byteLength=c.byteLength,d.pts=c.pts,d.dts=c.dts,d.duration=c.duration):(d.duration+=c.duration,d.nalCount+=c.length,d.byteLength+=c.byteLength,d.push(c));return e.length&&d.duration<=0&&(d.duration=e[e.length-1].duration),e.byteLength+=d.byteLength,e.nalCount+=d.nalCount,e.duration+=d.duration,e.push(d),e},R=function sc(a){var b;return!a[0][0].keyFrame&&a.length>1&&(b=a.shift(),a.byteLength-=b.byteLength,a.nalCount-=b.nalCount,a[0][0].dts=b.dts,a[0][0].pts=b.pts,a[0][0].duration+=b.duration),a},S=function tc(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},T=function uc(a,b){var c=S();return c.dataOffset=b,c.compositionTimeOffset=a.pts-a.dts,c.duration=a.duration,c.size=4*a.length,c.size+=a.byteLength,a.keyFrame&&(c.flags.dependsOn=2,c.flags.isNonSyncSample=0),c},U=function vc(a,b){var c,d,e,f,g,h=b||0,i=[];for(c=0;c<a.length;c++)for(f=a[c],d=0;d<f.length;d++)g=f[d],e=T(g,h),h+=e.size,i.push(e);return i},V=function wc(a){var b,c,d,e,f,g,h=0,i=a.byteLength,j=a.nalCount,k=i+4*j,l=new Uint8Array(k),m=new DataView(l.buffer);for(b=0;b<a.length;b++)for(e=a[b],c=0;c<e.length;c++)for(f=e[c],d=0;d<f.length;d++)g=f[d],m.setUint32(h,g.data.byteLength),h+=4,l.set(g.data,h),h+=g.data.byteLength;return l},W=function xc(a,b){var c,d=b||0,e=[];return c=T(a,d),e.push(c),e},X=function yc(a){var b,c,d=0,e=a.byteLength,f=a.length,g=e+4*f,h=new Uint8Array(g),i=new DataView(h.buffer);for(b=0;b<a.length;b++)c=a[b],i.setUint32(d,c.data.byteLength),d+=4,h.set(c.data,d),d+=c.data.byteLength;return h},Y={groupNalsIntoFrames:P,groupFramesIntoGops:Q,extendFirstKeyFrame:R,generateSampleTable:U,concatenateNalData:V,generateSampleTableForFrame:W,concatenateNalDataForFrame:X},Z=[33,16,5,32,164,27],$=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],_=function zc(a){for(var b=[];a--;)b.push(0);return b},aa=function Ac(a){return Object.keys(a).reduce(function(b,c){return b[c]=new Uint8Array(a[c].reduce(function(a,b){return a.concat(b)},[])),b},{})},ba={96e3:[Z,[227,64],_(154),[56]],88200:[Z,[231],_(170),[56]],64e3:[Z,[248,192],_(240),[56]],48e3:[Z,[255,192],_(268),[55,148,128],_(54),[112]],44100:[Z,[255,192],_(268),[55,163,128],_(84),[112]],32e3:[Z,[255,192],_(268),[55,234],_(226),[112]],24e3:[Z,[255,192],_(268),[55,255,128],_(268),[111,112],_(126),[224]],16e3:[Z,[255,192],_(268),[55,255,128],_(268),[111,255],_(269),[223,108],_(195),[1,192]],12e3:[$,_(268),[3,127,248],_(268),[6,255,240],_(268),[13,255,224],_(268),[27,253,128],_(259),[56]],11025:[$,_(268),[3,127,248],_(268),[6,255,240],_(268),[13,255,224],_(268),[27,255,192],_(268),[55,175,128],_(108),[112]],8e3:[$,_(268),[3,121,16],_(47),[7]]},ca=aa(ba),da=9e4,ea,fa,ga,ha,ia,ja,ka;ea=function Bc(a){return a*da},fa=function Cc(a,b){return a*b},ga=function Dc(a){return a/da},ha=function Ec(a,b){return a/b},ia=function Fc(a,b){return ea(ha(a,b))},ja=function Gc(a,b){return fa(ga(a),b)},ka=function Hc(a,b,c){return ga(c?a:a-b)};var la={ONE_SECOND_IN_TS:da,secondsToVideoTs:ea,secondsToAudioTs:fa,videoTsToSeconds:ga,audioTsToSeconds:ha,audioTsToVideoTs:ia,videoTsToAudioTs:ja,metadataTsToSeconds:ka},ma=function Ic(a){var b,c,d=0;for(b=0;b<a.length;b++)c=a[b],d+=c.data.byteLength;return d},na=function Jc(a,b,c,d){var e,f=0,g=0,h=0,i=0,j,k,l;if(b.length&&(e=la.audioTsToVideoTs(a.baseMediaDecodeTime,a.samplerate),f=Math.ceil(la.ONE_SECOND_IN_TS/(a.samplerate/1024)),c&&d&&(g=e-Math.max(c,d),h=Math.floor(g/f),i=h*f),!(1>h||i>la.ONE_SECOND_IN_TS/2))){for(j=ca[a.samplerate],j||(j=b[0].data),k=0;h>k;k++)l=b[0],b.splice(0,0,{data:j,dts:l.dts-f,pts:l.pts-f});a.baseMediaDecodeTime-=Math.floor(la.videoTsToAudioTs(i,a.samplerate))}},oa=function Kc(a,b,c){return b.minSegmentDts>=c?a:(b.minSegmentDts=1/0,a.filter(function(a){return a.dts>=c?(b.minSegmentDts=Math.min(b.minSegmentDts,a.dts),b.minSegmentPts=b.minSegmentDts,!0):!1}))},pa=function Lc(a){var b,c,d=[];for(b=0;b<a.length;b++)c=a[b],d.push({size:c.data.byteLength,duration:1024});return d},qa=function Mc(a){var b,c,d=0,e=new Uint8Array(ma(a));for(b=0;b<a.length;b++)c=a[b],e.set(c.data,d),d+=c.data.byteLength;return e},ra={prefixWithSilence:na,trimAdtsFramesByEarliestDts:oa,generateSampleTable:pa,concatenateFrameData:qa},sa=la.ONE_SECOND_IN_TS,ta=function Nc(a,b){'number'==typeof b.pts&&(void 0===a.timelineStartInfo.pts&&(a.timelineStartInfo.pts=b.pts),void 0===a.minSegmentPts?a.minSegmentPts=b.pts:a.minSegmentPts=Math.min(a.minSegmentPts,b.pts),void 0===a.maxSegmentPts?a.maxSegmentPts=b.pts:a.maxSegmentPts=Math.max(a.maxSegmentPts,b.pts)),'number'==typeof b.dts&&(void 0===a.timelineStartInfo.dts&&(a.timelineStartInfo.dts=b.dts),void 0===a.minSegmentDts?a.minSegmentDts=b.dts:a.minSegmentDts=Math.min(a.minSegmentDts,b.dts),void 0===a.maxSegmentDts?a.maxSegmentDts=b.dts:a.maxSegmentDts=Math.max(a.maxSegmentDts,b.dts))},ua=function Oc(a){delete a.minSegmentDts,delete a.maxSegmentDts,delete a.minSegmentPts,delete a.maxSegmentPts},va=function Pc(a,b){var c,d,e=a.minSegmentDts;return b||(e-=a.timelineStartInfo.dts),c=a.timelineStartInfo.baseMediaDecodeTime,c+=e,c=Math.max(0,c),'audio'===a.type&&(d=a.samplerate/sa,c*=d,c=Math.floor(c)),c},wa={clearDtsInfo:ua,calculateTrackBaseMediaDecodeTime:va,collectDtsInfo:ta},xa=4,ya=128,za=function Qc(a){for(var b=0,c={payloadType:-1,payloadSize:0},d=0,e=0;b<a.byteLength&&a[b]!==ya;){for(;255===a[b];)d+=255,b++;for(d+=a[b++];255===a[b];)e+=255,b++;if(e+=a[b++],!c.payload&&d===xa){c.payloadType=d,c.payloadSize=e,c.payload=a.subarray(b,b+e);break}b+=e,d=0,e=0}return c},Aa=function Rc(a){return 181!==a.payload[0]?null:49!==(a.payload[1]<<8|a.payload[2])?null:'GA94'!==String.fromCharCode(a.payload[3],a.payload[4],a.payload[5],a.payload[6])?null:3!==a.payload[7]?null:a.payload.subarray(8,a.payload.length-1)},Ba=function Sc(a,b){var c=[],d,e,f,g;if(!(64&b[0]))return c;for(e=31&b[0],d=0;e>d;d++)f=3*d,g={type:3&b[f+2],pts:a},4&b[f+2]&&(g.ccData=b[f+3]<<8|b[f+4],c.push(g));return c},Ca=function Tc(a){for(var b=a.byteLength,c=[],d=1,e,f;b-2>d;)0===a[d]&&0===a[d+1]&&3===a[d+2]?(c.push(d+2),d+=2):d++;if(0===c.length)return a;e=b-c.length,f=new Uint8Array(e);var g=0;for(d=0;e>d;g++,d++)g===c[0]&&(g++,c.shift()),f[d]=a[g];return f},Da={parseSei:za,parseUserData:Aa,parseCaptionPackets:Ba,discardEmulationPreventionBytes:Ca,USER_DATA_REGISTERED_ITU_T_T35:xa},Ea=function Uc(){Uc.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new Ka(0,0),new Ka(0,1),new Ka(1,0),new Ka(1,1)],this.reset(),this.ccStreams_.forEach(function(a){a.on('data',this.trigger.bind(this,'data')),a.on('partialdone',this.trigger.bind(this,'partialdone')),a.on('done',this.trigger.bind(this,'done'))},this)};Ea.prototype=new b,Ea.prototype.push=function(a){var b,c,d;if('sei_rbsp'===a.nalUnitType&&(b=Da.parseSei(a.escapedRBSP),b.payloadType===Da.USER_DATA_REGISTERED_ITU_T_T35&&(c=Da.parseUserData(b),c))){if(a.dts<this.latestDts_)return this.ignoreNextEqualDts_=!0,void 0;if(a.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,this.numSameDts_||(this.ignoreNextEqualDts_=!1),void 0;d=Da.parseCaptionPackets(a.pts,c),this.captionPackets_=this.captionPackets_.concat(d),this.latestDts_!==a.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=a.dts}},Ea.prototype.flushCCStreams=function(a){this.ccStreams_.forEach(function(b){return'flush'===a?b.flush():b.partialFlush()},this)},
Ea.prototype.flushStream=function(a){return this.captionPackets_.length?(this.captionPackets_.forEach(function(a,b){a.presortIndex=b}),this.captionPackets_.sort(function(a,b){return a.pts===b.pts?a.presortIndex-b.presortIndex:a.pts-b.pts}),this.captionPackets_.forEach(function(a){a.type<2&&this.dispatchCea608Packet(a)},this),this.captionPackets_.length=0,this.flushCCStreams(a),void 0):(this.flushCCStreams(a),void 0)},Ea.prototype.flush=function(){return this.flushStream('flush')},Ea.prototype.partialFlush=function(){return this.flushStream('partialFlush')},Ea.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(a){a.reset()})},Ea.prototype.dispatchCea608Packet=function(a){this.setsTextOrXDSActive(a)?this.activeCea608Channel_[a.type]=null:this.setsChannel1Active(a)?this.activeCea608Channel_[a.type]=0:this.setsChannel2Active(a)&&(this.activeCea608Channel_[a.type]=1),null!==this.activeCea608Channel_[a.type]&&this.ccStreams_[(a.type<<1)+this.activeCea608Channel_[a.type]].push(a)},Ea.prototype.setsChannel1Active=function(a){return 4096===(30720&a.ccData)},Ea.prototype.setsChannel2Active=function(a){return 6144===(30720&a.ccData)},Ea.prototype.setsTextOrXDSActive=function(a){return 256===(28928&a.ccData)||4138===(30974&a.ccData)||6186===(30974&a.ccData)};var Fa={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Ga=function Vc(a){return null===a?'':(a=Fa[a]||a,String.fromCharCode(a))},Ha=14,Ia=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Ja=function Wc(){for(var a=[],b=Ha+1;b--;)a.push('');return a},Ka=function Xc(a,b){Xc.prototype.init.call(this),this.field_=a||0,this.dataChannel_=b||0,this.name_='CC'+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(a){var b,c,d,e,f;if(b=32639&a.ccData,b===this.lastControlCode_)return this.lastControlCode_=null,void 0;if(4096===(61440&b)?this.lastControlCode_=b:b!==this.PADDING_&&(this.lastControlCode_=null),d=b>>>8,e=255&b,b!==this.PADDING_)if(b===this.RESUME_CAPTION_LOADING_)this.mode_='popOn';else if(b===this.END_OF_CAPTION_)this.mode_='popOn',this.clearFormatting(a.pts),this.flushDisplayed(a.pts),c=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=c,this.startPts_=a.pts;else if(b===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(a.pts);else if(b===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(a.pts);else if(b===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(a.pts);else if(b===this.CARRIAGE_RETURN_)this.clearFormatting(a.pts),this.flushDisplayed(a.pts),this.shiftRowsUp_(),this.startPts_=a.pts;else if(b===this.BACKSPACE_)'popOn'===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(b===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(a.pts),this.displayed_=Ja();else if(b===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Ja();else if(b===this.RESUME_DIRECT_CAPTIONING_)'paintOn'!==this.mode_&&(this.flushDisplayed(a.pts),this.displayed_=Ja()),this.mode_='paintOn',this.startPts_=a.pts;else if(this.isSpecialCharacter(d,e))d=(3&d)<<8,f=Ga(d|e),this[this.mode_](a.pts,f),this.column_++;else if(this.isExtCharacter(d,e))'popOn'===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),d=(3&d)<<8,f=Ga(d|e),this[this.mode_](a.pts,f),this.column_++;else if(this.isMidRowCode(d,e))this.clearFormatting(a.pts),this[this.mode_](a.pts,' '),this.column_++,14===(14&e)&&this.addFormatting(a.pts,['i']),1===(1&e)&&this.addFormatting(a.pts,['u']);else if(this.isOffsetControlCode(d,e))this.column_+=3&e;else if(this.isPAC(d,e)){var g=Ia.indexOf(7968&b);'rollUp'===this.mode_&&(g-this.rollUpRows_+1<0&&(g=this.rollUpRows_-1),this.setRollUp(a.pts,g)),g!==this.row_&&(this.clearFormatting(a.pts),this.row_=g),1&e&&-1===this.formatting_.indexOf('u')&&this.addFormatting(a.pts,['u']),16===(16&b)&&(this.column_=4*((14&b)>>1)),this.isColorPAC(e)&&14===(14&e)&&this.addFormatting(a.pts,['i'])}else this.isNormalChar(d)&&(0===e&&(e=null),f=Ga(d),f+=Ga(e),this[this.mode_](a.pts,f),this.column_+=f.length)}};Ka.prototype=new b,Ka.prototype.flushDisplayed=function(a){var b=this.displayed_.map(function(a){try{return a.trim()}catch(b){return console.error('Skipping malformed caption.'),''}}).join('\n').replace(/^\n+|\n+$/g,'');b.length&&this.trigger('data',{startPts:this.startPts_,endPts:a,text:b,stream:this.name_})},Ka.prototype.reset=function(){this.mode_='popOn',this.topRow_=0,this.startPts_=0,this.displayed_=Ja(),this.nonDisplayed_=Ja(),this.lastControlCode_=null,this.column_=0,this.row_=Ha,this.rollUpRows_=2,this.formatting_=[]},Ka.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Ka.prototype.isSpecialCharacter=function(a,b){return a===this.EXT_&&b>=48&&63>=b},Ka.prototype.isExtCharacter=function(a,b){return(a===this.EXT_+1||a===this.EXT_+2)&&b>=32&&63>=b},Ka.prototype.isMidRowCode=function(a,b){return a===this.EXT_&&b>=32&&47>=b},Ka.prototype.isOffsetControlCode=function(a,b){return a===this.OFFSET_&&b>=33&&35>=b},Ka.prototype.isPAC=function(a,b){return a>=this.BASE_&&a<this.BASE_+8&&b>=64&&127>=b},Ka.prototype.isColorPAC=function(a){return a>=64&&79>=a||a>=96&&127>=a},Ka.prototype.isNormalChar=function(a){return a>=32&&127>=a},Ka.prototype.setRollUp=function(a,b){if('rollUp'!==this.mode_&&(this.row_=Ha,this.mode_='rollUp',this.flushDisplayed(a),this.nonDisplayed_=Ja(),this.displayed_=Ja()),void 0!==b&&b!==this.row_)for(var c=0;c<this.rollUpRows_;c++)this.displayed_[b-c]=this.displayed_[this.row_-c],this.displayed_[this.row_-c]='';void 0===b&&(b=this.row_),this.topRow_=b-this.rollUpRows_+1},Ka.prototype.addFormatting=function(a,b){this.formatting_=this.formatting_.concat(b);var c=b.reduce(function(a,b){return a+'<'+b+'>'},'');this[this.mode_](a,c)},Ka.prototype.clearFormatting=function(a){if(this.formatting_.length){var b=this.formatting_.reverse().reduce(function(a,b){return a+'</'+b+'>'},'');this.formatting_=[],this[this.mode_](a,b)}},Ka.prototype.popOn=function(a,b){var c=this.nonDisplayed_[this.row_];c+=b,this.nonDisplayed_[this.row_]=c},Ka.prototype.rollUp=function(a,b){var c=this.displayed_[this.row_];c+=b,this.displayed_[this.row_]=c},Ka.prototype.shiftRowsUp_=function(){var a;for(a=0;a<this.topRow_;a++)this.displayed_[a]='';for(a=this.row_+1;Ha+1>a;a++)this.displayed_[a]='';for(a=this.topRow_;a<this.row_;a++)this.displayed_[a]=this.displayed_[a+1];this.displayed_[this.row_]=''},Ka.prototype.paintOn=function(a,b){var c=this.displayed_[this.row_];c+=b,this.displayed_[this.row_]=c};var La={CaptionStream:Ea,Cea608Stream:Ka},Ma={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Na=8589934592,Oa=4294967296,Pa='shared',Qa=function Yc(a,b){var c=1;for(a>b&&(c=-1);Math.abs(b-a)>Oa;)a+=c*Na;return a},Ra=function Zc(a){var b,c;Zc.prototype.init.call(this),this.type_=a||Pa,this.push=function(a){this.type_!==Pa&&a.type!==this.type_||(void 0===c&&(c=a.dts),a.dts=Qa(a.dts,c),a.pts=Qa(a.pts,c),b=a.dts,this.trigger('data',a))},this.flush=function(){c=b,this.trigger('done')},this.endTimeline=function(){this.flush(),this.trigger('endedtimeline')},this.discontinuity=function(){c=void 0,b=void 0},this.reset=function(){this.discontinuity(),this.trigger('reset')}};Ra.prototype=new b;var Sa={TimestampRolloverStream:Ra,handleRollover:Qa},Ta=function $c(a,b,c){var d,e='';for(d=b;c>d;d++)e+='%'+('00'+a[d].toString(16)).slice(-2);return e},Ua=function _c(a,b,c){return decodeURIComponent(Ta(a,b,c))},Va=function ad(a,b,c){return unescape(Ta(a,b,c))},Wa=function bd(a){return a[0]<<21|a[1]<<14|a[2]<<7|a[3]},Xa={TXXX:function cd(a){var b;if(3===a.data[0]){for(b=1;b<a.data.length;b++)if(0===a.data[b]){a.description=Ua(a.data,1,b),a.value=Ua(a.data,b+1,a.data.length).replace(/\0*$/,'');break}a.data=a.value}},WXXX:function dd(a){var b;if(3===a.data[0])for(b=1;b<a.data.length;b++)if(0===a.data[b]){a.description=Ua(a.data,1,b),a.url=Ua(a.data,b+1,a.data.length);break}},PRIV:function ed(a){var b;for(b=0;b<a.data.length;b++)if(0===a.data[b]){a.owner=Va(a.data,0,b);break}a.privateData=a.data.subarray(b+1),a.data=a.privateData}},Ya;Ya=function fd(a){var b={debug:!(!a||!a.debug),descriptor:a&&a.descriptor},c=0,d=[],e=0,f;if(Ya.prototype.init.call(this),this.dispatchType=Ma.METADATA_STREAM_TYPE.toString(16),b.descriptor)for(f=0;f<b.descriptor.length;f++)this.dispatchType+=('00'+b.descriptor[f].toString(16)).slice(-2);this.push=function(a){var f,g,h,i,j,k;if('timed-metadata'===a.type){if(a.dataAlignmentIndicator&&(e=0,d.length=0),0===d.length&&(a.data.length<10||a.data[0]!=='I'.charCodeAt(0)||a.data[1]!=='D'.charCodeAt(0)||a.data[2]!=='3'.charCodeAt(0)))return b.debug&&console.log('Skipping unrecognized metadata packet'),void 0;if(d.push(a),e+=a.data.byteLength,1===d.length&&(c=Wa(a.data.subarray(6,10)),c+=10),!(c>e)){for(f={data:new Uint8Array(c),frames:[],pts:d[0].pts,dts:d[0].dts},j=0;c>j;)f.data.set(d[0].data.subarray(0,c-j),j),j+=d[0].data.byteLength,e-=d[0].data.byteLength,d.shift();g=10,64&f.data[5]&&(g+=4,g+=Wa(f.data.subarray(10,14)),c-=Wa(f.data.subarray(16,20)));do{if(h=Wa(f.data.subarray(g+4,g+8)),1>h)return console.log('Malformed ID3 frame encountered. Skipping metadata parsing.');if(k=String.fromCharCode(f.data[g],f.data[g+1],f.data[g+2],f.data[g+3]),i={id:k,data:f.data.subarray(g+10,g+h+10)},i.key=i.id,Xa[i.id]&&(Xa[i.id](i),'com.apple.streaming.transportStreamTimestamp'===i.owner)){var l=i.data,m=(1&l[3])<<30|l[4]<<22|l[5]<<14|l[6]<<6|l[7]>>>2;m*=4,m+=3&l[7],i.timeStamp=m,void 0===f.pts&&void 0===f.dts&&(f.pts=i.timeStamp,f.dts=i.timeStamp),this.trigger('timestamp',i)}f.frames.push(i),g+=10,g+=h}while(c>g);this.trigger('data',f)}}}},Ya.prototype=new b;var Za=Ya,$a=Sa.TimestampRolloverStream,_a,ab,bb,cb=188,db=71;_a=function gd(){var a=new Uint8Array(cb),b=0;_a.prototype.init.call(this),this.push=function(c){var d=0,e=cb,f;for(b?(f=new Uint8Array(c.byteLength+b),f.set(a.subarray(0,b)),f.set(c,b),b=0):f=c;e<f.byteLength;)f[d]!==db||f[e]!==db?(d++,e++):(this.trigger('data',f.subarray(d,e)),d+=cb,e+=cb);d<f.byteLength&&(a.set(f.subarray(d),0),b=f.byteLength-d)},this.flush=function(){b===cb&&a[0]===db&&(this.trigger('data',a),b=0),this.trigger('done')},this.endTimeline=function(){this.flush(),this.trigger('endedtimeline')},this.reset=function(){b=0,this.trigger('reset')}},_a.prototype=new b,ab=function hd(){var a,b,c,d;ab.prototype.init.call(this),d=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,a=function e(a,d){var e=0;d.payloadUnitStartIndicator&&(e+=a[e]+1),'pat'===d.type?b(a.subarray(e),d):c(a.subarray(e),d)},b=function f(a,b){b.section_number=a[7],b.last_section_number=a[8],d.pmtPid=(31&a[10])<<8|a[11],b.pmtPid=d.pmtPid},c=function g(a,b){var c,e,f,g;if(1&a[5]){for(d.programMapTable={video:null,audio:null,'timed-metadata':{}},c=(15&a[1])<<8|a[2],e=3+c-4,f=(15&a[10])<<8|a[11],g=12+f;e>g;){var h=a[g],i=(31&a[g+1])<<8|a[g+2];h===Ma.H264_STREAM_TYPE&&null===d.programMapTable.video?d.programMapTable.video=i:h===Ma.ADTS_STREAM_TYPE&&null===d.programMapTable.audio?d.programMapTable.audio=i:h===Ma.METADATA_STREAM_TYPE&&(d.programMapTable['timed-metadata'][i]=h),g+=((15&a[g+3])<<8|a[g+4])+5}b.programMapTable=d.programMapTable}},this.push=function(b){var c={},d=4;if(c.payloadUnitStartIndicator=!!(64&b[1]),c.pid=31&b[1],c.pid<<=8,c.pid|=b[2],(48&b[3])>>>4>1&&(d+=b[d]+1),0===c.pid)c.type='pat',a(b.subarray(d),c),this.trigger('data',c);else if(c.pid===this.pmtPid)for(c.type='pmt',a(b.subarray(d),c),this.trigger('data',c);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([b,d,c]):this.processPes_(b,d,c)},this.processPes_=function(a,b,c){c.pid===this.programMapTable.video?c.streamType=Ma.H264_STREAM_TYPE:c.pid===this.programMapTable.audio?c.streamType=Ma.ADTS_STREAM_TYPE:c.streamType=this.programMapTable['timed-metadata'][c.pid],c.type='pes',c.data=a.subarray(b),this.trigger('data',c)}},ab.prototype=new b,ab.STREAM_TYPES={h264:27,adts:15},bb=function id(){var a=this,b={data:[],size:0},c={data:[],size:0},d={data:[],size:0},e,f=function h(a,b){var c;b.packetLength=6+(a[4]<<8|a[5]),b.dataAlignmentIndicator=0!==(4&a[6]),c=a[7],192&c&&(b.pts=(14&a[9])<<27|(255&a[10])<<20|(254&a[11])<<12|(255&a[12])<<5|(254&a[13])>>>3,b.pts*=4,b.pts+=(6&a[13])>>>1,b.dts=b.pts,64&c&&(b.dts=(14&a[14])<<27|(255&a[15])<<20|(254&a[16])<<12|(255&a[17])<<5|(254&a[18])>>>3,b.dts*=4,b.dts+=(6&a[18])>>>1)),b.data=a.subarray(9+a[8])},g=function i(b,c,d){var e=new Uint8Array(b.size),g={type:c},h=0,i=0,j=!1,k;if(b.data.length&&!(b.size<9)){for(g.trackId=b.data[0].pid,h=0;h<b.data.length;h++)k=b.data[h],e.set(k.data,i),i+=k.data.byteLength;f(e,g),j='video'===c||g.packetLength<=b.size,(d||j)&&(b.size=0,b.data.length=0),j&&a.trigger('data',g)}};bb.prototype.init.call(this),this.push=function(f){({pat:function h(){},pes:function i(){var a,e;switch(f.streamType){case Ma.H264_STREAM_TYPE:case Ma.H264_STREAM_TYPE:a=b,e='video';break;case Ma.ADTS_STREAM_TYPE:a=c,e='audio';break;case Ma.METADATA_STREAM_TYPE:a=d,e='timed-metadata';break;default:return}f.payloadUnitStartIndicator&&g(a,e,!0),a.data.push(f),a.size+=f.data.byteLength},pmt:function j(){var b={type:'metadata',tracks:[]};e=f.programMapTable,null!==e.video&&b.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:'avc',type:'video'}),null!==e.audio&&b.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:'adts',type:'audio'}),a.trigger('data',b)}})[f.type]()},this.reset=function(){b.size=0,b.data.length=0,c.size=0,c.data.length=0,this.trigger('reset')},this.flushStreams_=function(){g(b,'video'),g(c,'audio'),g(d,'timed-metadata')},this.flush=function(){this.flushStreams_(),this.trigger('done')}},bb.prototype=new b;var eb={PAT_PID:0,MP2T_PACKET_LENGTH:cb,TransportPacketStream:_a,TransportParseStream:ab,ElementaryStream:bb,TimestampRolloverStream:$a,CaptionStream:La.CaptionStream,Cea608Stream:La.Cea608Stream,MetadataStream:Za};for(var fb in Ma)Ma.hasOwnProperty(fb)&&(eb[fb]=Ma[fb]);var gb=eb,hb=la.ONE_SECOND_IN_TS,ib,jb=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];ib=function jd(a){var b,c=0;ib.prototype.init.call(this),this.push=function(d){var e=0,f,g,h,i,j,k;if(a||(c=0),'audio'===d.type)for(b?(i=b,b=new Uint8Array(i.byteLength+d.data.byteLength),b.set(i),b.set(d.data,i.byteLength)):b=d.data;e+5<b.length;)if(255===b[e]&&240===(246&b[e+1])){if(g=2*(1&~b[e+1]),f=(3&b[e+3])<<11|b[e+4]<<3|(224&b[e+5])>>5,j=1024*((3&b[e+6])+1),k=j*hb/jb[(60&b[e+2])>>>2],h=e+f,b.byteLength<h)return;if(this.trigger('data',{pts:d.pts+c*k,dts:d.dts+c*k,sampleCount:j,audioobjecttype:(b[e+2]>>>6&3)+1,channelcount:(1&b[e+2])<<2|(192&b[e+3])>>>6,samplerate:jb[(60&b[e+2])>>>2],samplingfrequencyindex:(60&b[e+2])>>>2,samplesize:16,data:b.subarray(e+7+g,h)}),c++,b.byteLength===h)return b=void 0,void 0;b=b.subarray(h)}else e++},this.flush=function(){c=0,this.trigger('done')},this.reset=function(){b=void 0,this.trigger('reset')},this.endTimeline=function(){b=void 0,this.trigger('endedtimeline')}},ib.prototype=new b;var kb=ib,lb;lb=function kd(a){var b=a.byteLength,c=0,d=0;this.length=function(){return 8*b},this.bitsAvailable=function(){return 8*b+d},this.loadWord=function(){var e=a.byteLength-b,f=new Uint8Array(4),g=Math.min(4,b);if(0===g)throw new Error('no bytes available');f.set(a.subarray(e,e+g)),c=new DataView(f.buffer).getUint32(0),d=8*g,b-=g},this.skipBits=function(a){var e;d>a?(c<<=a,d-=a):(a-=d,e=Math.floor(a/8),a-=8*e,b-=e,this.loadWord(),c<<=a,d-=a)},this.readBits=function(a){var e=Math.min(d,a),f=c>>>32-e;return d-=e,d>0?c<<=e:b>0&&this.loadWord(),e=a-e,e>0?f<<e|this.readBits(e):f},this.skipLeadingZeros=function(){var a;for(a=0;d>a;++a)if(0!==(c&2147483648>>>a))return c<<=a,d-=a,a;return this.loadWord(),a+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var a=this.skipLeadingZeros();return this.readBits(a+1)-1},this.readExpGolomb=function(){var a=this.readUnsignedExpGolomb();return 1&a?1+a>>>1:-1*(a>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var mb=lb,nb,ob,pb;ob=function ld(){var a=0,b,c;ob.prototype.init.call(this),this.push=function(d){var e;c?(e=new Uint8Array(c.byteLength+d.data.byteLength),e.set(c),e.set(d.data,c.byteLength),c=e):c=d.data;for(var f=c.byteLength;f-3>a;a++)if(1===c[a+2]){b=a+5;break}for(;f>b;)switch(c[b]){case 0:if(0!==c[b-1]){b+=2;break}if(0!==c[b-2]){b++;break}a+3!==b-2&&this.trigger('data',c.subarray(a+3,b-2));do b++;while(1!==c[b]&&f>b);a=b-2,b+=3;break;case 1:if(0!==c[b-1]||0!==c[b-2]){b+=3;break}this.trigger('data',c.subarray(a+3,b-2)),a=b-2,b+=3;break;default:b+=3}c=c.subarray(a),b-=a,a=0},this.reset=function(){c=null,a=0,this.trigger('reset')},this.flush=function(){c&&c.byteLength>3&&this.trigger('data',c.subarray(a+3)),c=null,a=0,this.trigger('done')},this.endTimeline=function(){this.flush(),this.trigger('endedtimeline')}},ob.prototype=new b,pb={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},nb=function md(){var a=new ob,b,c,d,e,f,g,h;nb.prototype.init.call(this),b=this,this.push=function(b){'video'===b.type&&(c=b.trackId,d=b.pts,e=b.dts,a.push(b))},a.on('data',function(a){var h={trackId:c,pts:d,dts:e,data:a};switch(31&a[0]){case 5:h.nalUnitType='slice_layer_without_partitioning_rbsp_idr';break;case 6:h.nalUnitType='sei_rbsp',h.escapedRBSP=f(a.subarray(1));break;case 7:h.nalUnitType='seq_parameter_set_rbsp',h.escapedRBSP=f(a.subarray(1)),h.config=g(h.escapedRBSP);break;case 8:h.nalUnitType='pic_parameter_set_rbsp';break;case 9:h.nalUnitType='access_unit_delimiter_rbsp'}b.trigger('data',h)}),a.on('done',function(){b.trigger('done')}),a.on('partialdone',function(){b.trigger('partialdone')}),a.on('reset',function(){b.trigger('reset')}),a.on('endedtimeline',function(){b.trigger('endedtimeline')}),this.flush=function(){a.flush()},this.partialFlush=function(){a.partialFlush()},this.reset=function(){a.reset()},this.endTimeline=function(){a.endTimeline()},h=function i(a,b){var c=8,d=8,e,f;for(e=0;a>e;e++)0!==d&&(f=b.readExpGolomb(),d=(c+f+256)%256),c=0===d?c:d},f=function j(a){for(var b=a.byteLength,c=[],d=1,e,f;b-2>d;)0===a[d]&&0===a[d+1]&&3===a[d+2]?(c.push(d+2),d+=2):d++;if(0===c.length)return a;e=b-c.length,f=new Uint8Array(e);var g=0;for(d=0;e>d;g++,d++)g===c[0]&&(g++,c.shift()),f[d]=a[g];return f},g=function k(a){var b=0,c=0,d=0,e=0,f=1,g,i,j,k,l,m,n,o,p,q,r,s,t,u;if(g=new mb(a),i=g.readUnsignedByte(),k=g.readUnsignedByte(),j=g.readUnsignedByte(),g.skipUnsignedExpGolomb(),pb[i]&&(l=g.readUnsignedExpGolomb(),3===l&&g.skipBits(1),g.skipUnsignedExpGolomb(),g.skipUnsignedExpGolomb(),g.skipBits(1),g.readBoolean()))for(r=3!==l?8:12,u=0;r>u;u++)g.readBoolean()&&(6>u?h(16,g):h(64,g));if(g.skipUnsignedExpGolomb(),m=g.readUnsignedExpGolomb(),0===m)g.readUnsignedExpGolomb();else if(1===m)for(g.skipBits(1),g.skipExpGolomb(),g.skipExpGolomb(),n=g.readUnsignedExpGolomb(),u=0;n>u;u++)g.skipExpGolomb();if(g.skipUnsignedExpGolomb(),g.skipBits(1),o=g.readUnsignedExpGolomb(),p=g.readUnsignedExpGolomb(),q=g.readBits(1),0===q&&g.skipBits(1),g.skipBits(1),g.readBoolean()&&(b=g.readUnsignedExpGolomb(),c=g.readUnsignedExpGolomb(),d=g.readUnsignedExpGolomb(),e=g.readUnsignedExpGolomb()),g.readBoolean()&&g.readBoolean()){switch(t=g.readUnsignedByte(),t){case 1:s=[1,1];break;case 2:s=[12,11];break;case 3:s=[10,11];break;case 4:s=[16,11];break;case 5:s=[40,33];break;case 6:s=[24,11];break;case 7:s=[20,11];break;case 8:s=[32,11];break;case 9:s=[80,33];break;case 10:s=[18,11];break;case 11:s=[15,11];break;case 12:s=[64,33];break;case 13:s=[160,99];break;case 14:s=[4,3];break;case 15:s=[3,2];break;case 16:s=[2,1];break;case 255:s=[g.readUnsignedByte()<<8|g.readUnsignedByte(),g.readUnsignedByte()<<8|g.readUnsignedByte()]}s&&(f=s[0]/s[1])}return{profileIdc:i,levelIdc:j,profileCompatibility:k,width:Math.ceil((16*(o+1)-2*b-2*c)*f),height:(2-q)*(p+1)*16-2*d-2*e,sarRatio:s}}},nb.prototype=new b;var qb={H264Stream:nb,NalByteStream:ob},rb=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],sb=function nd(a){return a[0]==='I'.charCodeAt(0)&&a[1]==='D'.charCodeAt(0)&&a[2]==='3'.charCodeAt(0)},tb=function od(a){return a[0]<<21|a[1]<<14|a[2]<<7|a[3]},ub=function pd(a,b,c){var d,e='';for(d=b;c>d;d++)e+='%'+('00'+a[d].toString(16)).slice(-2);return e},vb=function qd(a,b,c){return unescape(ub(a,b,c))},wb=function rd(a,b){var c=a[b+6]<<21|a[b+7]<<14|a[b+8]<<7|a[b+9],d=a[b+5],e=(16&d)>>4;return e?c+20:c+10},xb=function sd(a,b){var c=(224&a[b+5])>>5,d=a[b+4]<<3,e=6144&a[b+3];return e|d|c},yb=function td(a,b){return a[b]==='I'.charCodeAt(0)&&a[b+1]==='D'.charCodeAt(0)&&a[b+2]==='3'.charCodeAt(0)?'timed-metadata':a[b]&!0&&240===(240&a[b+1])?'audio':null},zb=function ud(a){for(var b=0;b+5<a.length;){if(255===a[b]&&240===(246&a[b+1]))return rb[(60&a[b+2])>>>2];b++}return null},Ab=function vd(a){var b,c,d,e;b=10,64&a[5]&&(b+=4,b+=tb(a.subarray(10,14)));do{if(c=tb(a.subarray(b+4,b+8)),1>c)return null;if(e=String.fromCharCode(a[b],a[b+1],a[b+2],a[b+3]),'PRIV'===e){d=a.subarray(b+10,b+c+10);for(var f=0;f<d.byteLength;f++)if(0===d[f]){var g=vb(d,0,f);if('com.apple.streaming.transportStreamTimestamp'===g){var h=d.subarray(f+1),i=(1&h[3])<<30|h[4]<<22|h[5]<<14|h[6]<<6|h[7]>>>2;return i*=4,i+=3&h[7],i}break}}b+=10,b+=c}while(b<a.byteLength);return null},Bb={isLikelyAacData:sb,parseId3TagSize:wb,parseAdtsSize:xb,parseType:yb,parseSampleRate:zb,parseAacTimestamp:Ab},Cb;Cb=function wd(){var a=new Uint8Array,b=0;Cb.prototype.init.call(this),this.setTimestamp=function(a){b=a},this.push=function(c){var d=0,e=0,f,g,h,i;for(a.length?(i=a.length,a=new Uint8Array(c.byteLength+i),a.set(a.subarray(0,i)),a.set(c,i)):a=c;a.length-e>=3;)if(a[e]!=='I'.charCodeAt(0)||a[e+1]!=='D'.charCodeAt(0)||a[e+2]!=='3'.charCodeAt(0))if(255!==(255&a[e])||240!==(240&a[e+1]))e++;else{if(a.length-e<7)break;if(d=Bb.parseAdtsSize(a,e),e+d>a.length)break;h={type:'audio',data:a.subarray(e,e+d),pts:b,dts:b},this.trigger('data',h),e+=d}else{if(a.length-e<10)break;if(d=Bb.parseId3TagSize(a,e),e+d>a.length)break;g={type:'timed-metadata',data:a.subarray(e,e+d)},this.trigger('data',g),e+=d}f=a.length-e,a=f>0?a.subarray(e):new Uint8Array},this.reset=function(){a=new Uint8Array,this.trigger('reset')},this.endTimeline=function(){a=new Uint8Array,this.trigger('endedtimeline')}},Cb.prototype=new b;var Db=Cb,Eb=qb.H264Stream,Fb=Bb.isLikelyAacData,Gb=la.ONE_SECOND_IN_TS,Hb=['audioobjecttype','channelcount','samplerate','samplingfrequencyindex','samplesize'],Ib=['width','height','profileIdc','levelIdc','profileCompatibility','sarRatio'],Jb,Kb,Lb,Mb,Nb=function xd(a,b){var c;if(a.length!==b.length)return!1;for(c=0;c<a.length;c++)if(a[c]!==b[c])return!1;return!0},Ob=function yd(a,b,c,d,e,f){var g=c-b,h=d-b,i=e-c;return{start:{dts:a,pts:a+g},end:{dts:a+h,pts:a+i},prependedContentDuration:f,baseMediaDecodeTime:a}};Kb=function zd(a,b){var c=[],d=0,e=0,f=0,g=1/0;b=b||{},Kb.prototype.init.call(this),this.push=function(b){wa.collectDtsInfo(a,b),a&&Hb.forEach(function(c){a[c]=b[c]}),c.push(b)},this.setEarliestDts=function(b){e=b-a.timelineStartInfo.baseMediaDecodeTime},this.setVideoBaseMediaDecodeTime=function(a){g=a},this.setAudioAppendStart=function(a){f=a},this.flush=function(){var h,i,j,k,l;return 0===c.length?(this.trigger('done','AudioSegmentStream'),void 0):(h=ra.trimAdtsFramesByEarliestDts(c,a,e),a.baseMediaDecodeTime=wa.calculateTrackBaseMediaDecodeTime(a,b.keepOriginalTimestamps),ra.prefixWithSilence(a,h,f,g),a.samples=ra.generateSampleTable(h),j=O.mdat(ra.concatenateFrameData(h)),c=[],i=O.moof(d,[a]),k=new Uint8Array(i.byteLength+j.byteLength),d++,k.set(i),k.set(j,i.byteLength),wa.clearDtsInfo(a),l=Math.ceil(1024*Gb/a.samplerate),h.length&&this.trigger('timingInfo',{start:h[0].pts,end:h[0].pts+h.length*l}),this.trigger('data',{track:a,boxes:k}),this.trigger('done','AudioSegmentStream'),void 0)},this.reset=function(){wa.clearDtsInfo(a),c=[],this.trigger('reset')}},Kb.prototype=new b,Jb=function Ad(a,b){var c=0,d=[],e=[],f,g;b=b||{},Jb.prototype.init.call(this),delete a.minPTS,this.gopCache_=[],this.push=function(b){wa.collectDtsInfo(a,b),'seq_parameter_set_rbsp'!==b.nalUnitType||f||(f=b.config,a.sps=[b.data],Ib.forEach(function(b){a[b]=f[b]},this)),'pic_parameter_set_rbsp'!==b.nalUnitType||g||(g=b.data,a.pps=[b.data]),d.push(b)},this.flush=function(){for(var f,g,h,i,j,k,l=0,m,n;d.length&&'access_unit_delimiter_rbsp'!==d[0].nalUnitType;)d.shift();if(0===d.length)return this.resetStream_(),this.trigger('done','VideoSegmentStream'),void 0;if(f=Y.groupNalsIntoFrames(d),h=Y.groupFramesIntoGops(f),h[0][0].keyFrame||(g=this.getGopForFusion_(d[0],a),g?(l=g.duration,h.unshift(g),h.byteLength+=g.byteLength,h.nalCount+=g.nalCount,h.pts=g.pts,h.dts=g.dts,h.duration+=g.duration):h=Y.extendFirstKeyFrame(h)),e.length){var o;if(o=b.alignGopsAtEnd?this.alignGopsAtEnd_(h):this.alignGopsAtStart_(h),!o)return this.gopCache_.unshift({gop:h.pop(),pps:a.pps,sps:a.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),d=[],this.resetStream_(),this.trigger('done','VideoSegmentStream'),void 0;wa.clearDtsInfo(a),h=o}wa.collectDtsInfo(a,h),a.samples=Y.generateSampleTable(h),j=O.mdat(Y.concatenateNalData(h)),a.baseMediaDecodeTime=wa.calculateTrackBaseMediaDecodeTime(a,b.keepOriginalTimestamps),this.trigger('processedGopsInfo',h.map(function(a){return{pts:a.pts,dts:a.dts,byteLength:a.byteLength}})),m=h[0],n=h[h.length-1],this.trigger('segmentTimingInfo',Ob(a.baseMediaDecodeTime,m.dts,m.pts,n.dts+n.duration,n.pts+n.duration,l)),this.trigger('timingInfo',{start:h[0].pts,end:h[h.length-1].pts+h[h.length-1].duration}),this.gopCache_.unshift({gop:h.pop(),pps:a.pps,sps:a.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),d=[],this.trigger('baseMediaDecodeTime',a.baseMediaDecodeTime),this.trigger('timelineStartInfo',a.timelineStartInfo),i=O.moof(c,[a]),k=new Uint8Array(i.byteLength+j.byteLength),c++,k.set(i),k.set(j,i.byteLength),this.trigger('data',{track:a,boxes:k}),this.resetStream_(),this.trigger('done','VideoSegmentStream')},this.reset=function(){this.resetStream_(),d=[],this.gopCache_.length=0,e.length=0,this.trigger('reset')},this.resetStream_=function(){wa.clearDtsInfo(a),f=void 0,g=void 0},this.getGopForFusion_=function(b){var c=45e3,d=1e4,e=1/0,f,g,h,i,j;for(j=0;j<this.gopCache_.length;j++)i=this.gopCache_[j],h=i.gop,a.pps&&Nb(a.pps[0],i.pps[0])&&a.sps&&Nb(a.sps[0],i.sps[0])&&(h.dts<a.timelineStartInfo.dts||(f=b.dts-h.dts-h.duration,f>=-d&&c>=f&&(!g||e>f)&&(g=i,e=f)));return g?g.gop:null},this.alignGopsAtStart_=function(a){var b,c,d,f,g,h,i,j;for(g=a.byteLength,h=a.nalCount,i=a.duration,b=c=0;b<e.length&&c<a.length&&(d=e[b],f=a[c],d.pts!==f.pts);)f.pts>d.pts?b++:(c++,g-=f.byteLength,h-=f.nalCount,i-=f.duration);return 0===c?a:c===a.length?null:(j=a.slice(c),j.byteLength=g,j.duration=i,j.nalCount=h,j.pts=j[0].pts,j.dts=j[0].dts,j)},this.alignGopsAtEnd_=function(a){var b,c,d,f,g,h;for(b=e.length-1,c=a.length-1,g=null,h=!1;b>=0&&c>=0;){if(d=e[b],f=a[c],d.pts===f.pts){h=!0;break}d.pts>f.pts?b--:(b===e.length-1&&(g=c),c--)}if(!h&&null===g)return null;var i;if(i=h?c:g,0===i)return a;var j=a.slice(i),k=j.reduce(function(a,b){return a.byteLength+=b.byteLength,a.duration+=b.duration,a.nalCount+=b.nalCount,a},{byteLength:0,duration:0,nalCount:0});return j.byteLength=k.byteLength,j.duration=k.duration,j.nalCount=k.nalCount,j.pts=j[0].pts,j.dts=j[0].dts,j},this.alignGopsWith=function(a){e=a}},Jb.prototype=new b,Mb=function Bd(a,b){this.numberOfTracks=0,this.metadataStream=b,a=a||{},'undefined'!=typeof a.remux?this.remuxTracks=!!a.remux:this.remuxTracks=!0,'boolean'==typeof a.keepOriginalTimestamps?this.keepOriginalTimestamps=a.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Mb.prototype.init.call(this),this.push=function(a){return a.text?this.pendingCaptions.push(a):a.frames?this.pendingMetadata.push(a):(this.pendingTracks.push(a.track),this.pendingBytes+=a.boxes.byteLength,'video'===a.track.type&&(this.videoTrack=a.track,this.pendingBoxes.push(a.boxes)),'audio'===a.track.type&&(this.audioTrack=a.track,this.pendingBoxes.unshift(a.boxes)),void 0)}},Mb.prototype=new b,Mb.prototype.flush=function(a){var b=0,c={captions:[],captionStreams:{},metadata:[],info:{}},d,e,f,g=0,h;if(this.pendingTracks.length<this.numberOfTracks){if('VideoSegmentStream'!==a&&'AudioSegmentStream'!==a)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,this.emittedTracks>=this.numberOfTracks&&(this.trigger('done'),this.emittedTracks=0),void 0}if(this.videoTrack?(g=this.videoTrack.timelineStartInfo.pts,Ib.forEach(function(a){c.info[a]=this.videoTrack[a]},this)):this.audioTrack&&(g=this.audioTrack.timelineStartInfo.pts,Hb.forEach(function(a){c.info[a]=this.audioTrack[a]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?c.type=this.pendingTracks[0].type:c.type='combined',this.emittedTracks+=this.pendingTracks.length,f=O.initSegment(this.pendingTracks),c.initSegment=new Uint8Array(f.byteLength),c.initSegment.set(f),c.data=new Uint8Array(this.pendingBytes),h=0;h<this.pendingBoxes.length;h++)c.data.set(this.pendingBoxes[h],b),b+=this.pendingBoxes[h].byteLength;for(h=0;h<this.pendingCaptions.length;h++)d=this.pendingCaptions[h],d.startTime=la.metadataTsToSeconds(d.startPts,g,this.keepOriginalTimestamps),d.endTime=la.metadataTsToSeconds(d.endPts,g,this.keepOriginalTimestamps),c.captionStreams[d.stream]=!0,c.captions.push(d);for(h=0;h<this.pendingMetadata.length;h++)e=this.pendingMetadata[h],e.cueTime=la.metadataTsToSeconds(e.pts,g,this.keepOriginalTimestamps),c.metadata.push(e);for(c.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger('data',c),h=0;h<c.captions.length;h++)d=c.captions[h],this.trigger('caption',d);for(h=0;h<c.metadata.length;h++)e=c.metadata[h],this.trigger('id3Frame',e)}this.emittedTracks>=this.numberOfTracks&&(this.trigger('done'),this.emittedTracks=0)},Mb.prototype.setRemux=function(a){this.remuxTracks=a},Lb=function Cd(a){var b=this,c=!0,d,e;Lb.prototype.init.call(this),
a=a||{},this.baseMediaDecodeTime=a.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var c={};this.transmuxPipeline_=c,c.type='aac',c.metadataStream=new gb.MetadataStream,c.aacStream=new Db,c.audioTimestampRolloverStream=new gb.TimestampRolloverStream('audio'),c.timedMetadataTimestampRolloverStream=new gb.TimestampRolloverStream('timed-metadata'),c.adtsStream=new kb,c.coalesceStream=new Mb(a,c.metadataStream),c.headOfPipeline=c.aacStream,c.aacStream.pipe(c.audioTimestampRolloverStream).pipe(c.adtsStream),c.aacStream.pipe(c.timedMetadataTimestampRolloverStream).pipe(c.metadataStream).pipe(c.coalesceStream),c.metadataStream.on('timestamp',function(a){c.aacStream.setTimestamp(a.timeStamp)}),c.aacStream.on('data',function(f){'timed-metadata'!==f.type||c.audioSegmentStream||(e=e||{timelineStartInfo:{baseMediaDecodeTime:b.baseMediaDecodeTime},codec:'adts',type:'audio'},c.coalesceStream.numberOfTracks++,c.audioSegmentStream=new Kb(e,a),c.audioSegmentStream.on('timingInfo',b.trigger.bind(b,'audioTimingInfo')),c.adtsStream.pipe(c.audioSegmentStream).pipe(c.coalesceStream)),b.trigger('trackinfo',{hasAudio:!!e,hasVideo:!!d})}),c.coalesceStream.on('data',this.trigger.bind(this,'data')),c.coalesceStream.on('done',this.trigger.bind(this,'done'))},this.setupTsPipeline=function(){var c={};this.transmuxPipeline_=c,c.type='ts',c.metadataStream=new gb.MetadataStream,c.packetStream=new gb.TransportPacketStream,c.parseStream=new gb.TransportParseStream,c.elementaryStream=new gb.ElementaryStream,c.timestampRolloverStream=new gb.TimestampRolloverStream,c.adtsStream=new kb,c.h264Stream=new Eb,c.captionStream=new gb.CaptionStream,c.coalesceStream=new Mb(a,c.metadataStream),c.headOfPipeline=c.packetStream,c.packetStream.pipe(c.parseStream).pipe(c.elementaryStream).pipe(c.timestampRolloverStream),c.timestampRolloverStream.pipe(c.h264Stream),c.timestampRolloverStream.pipe(c.adtsStream),c.timestampRolloverStream.pipe(c.metadataStream).pipe(c.coalesceStream),c.h264Stream.pipe(c.captionStream).pipe(c.coalesceStream),c.elementaryStream.on('data',function(f){var g;if('metadata'===f.type){for(g=f.tracks.length;g--;)d||'video'!==f.tracks[g].type?e||'audio'!==f.tracks[g].type||(e=f.tracks[g],e.timelineStartInfo.baseMediaDecodeTime=b.baseMediaDecodeTime):(d=f.tracks[g],d.timelineStartInfo.baseMediaDecodeTime=b.baseMediaDecodeTime);d&&!c.videoSegmentStream&&(c.coalesceStream.numberOfTracks++,c.videoSegmentStream=new Jb(d,a),c.videoSegmentStream.on('timelineStartInfo',function(a){e&&(e.timelineStartInfo=a,c.audioSegmentStream.setEarliestDts(a.dts))}),c.videoSegmentStream.on('processedGopsInfo',b.trigger.bind(b,'gopInfo')),c.videoSegmentStream.on('segmentTimingInfo',b.trigger.bind(b,'videoSegmentTimingInfo')),c.videoSegmentStream.on('baseMediaDecodeTime',function(a){e&&c.audioSegmentStream.setVideoBaseMediaDecodeTime(a)}),c.videoSegmentStream.on('timingInfo',b.trigger.bind(b,'videoTimingInfo')),c.h264Stream.pipe(c.videoSegmentStream).pipe(c.coalesceStream)),e&&!c.audioSegmentStream&&(c.coalesceStream.numberOfTracks++,c.audioSegmentStream=new Kb(e,a),c.audioSegmentStream.on('timingInfo',b.trigger.bind(b,'audioTimingInfo')),c.adtsStream.pipe(c.audioSegmentStream).pipe(c.coalesceStream)),b.trigger('trackinfo',{hasAudio:!!e,hasVideo:!!d})}}),c.coalesceStream.on('data',this.trigger.bind(this,'data')),c.coalesceStream.on('id3Frame',function(a){a.dispatchType=c.metadataStream.dispatchType,b.trigger('id3Frame',a)}),c.coalesceStream.on('caption',this.trigger.bind(this,'caption')),c.coalesceStream.on('done',this.trigger.bind(this,'done'))},this.setBaseMediaDecodeTime=function(b){var c=this.transmuxPipeline_;a.keepOriginalTimestamps||(this.baseMediaDecodeTime=b),e&&(e.timelineStartInfo.dts=void 0,e.timelineStartInfo.pts=void 0,wa.clearDtsInfo(e),a.keepOriginalTimestamps||(e.timelineStartInfo.baseMediaDecodeTime=b),c.audioTimestampRolloverStream&&c.audioTimestampRolloverStream.discontinuity()),d&&(c.videoSegmentStream&&(c.videoSegmentStream.gopCache_=[]),d.timelineStartInfo.dts=void 0,d.timelineStartInfo.pts=void 0,wa.clearDtsInfo(d),c.captionStream.reset(),a.keepOriginalTimestamps||(d.timelineStartInfo.baseMediaDecodeTime=b)),c.timestampRolloverStream&&c.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(a){e&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(a)},this.setRemux=function(b){var c=this.transmuxPipeline_;a.remux=b,c&&c.coalesceStream&&c.coalesceStream.setRemux(b)},this.alignGopsWith=function(a){d&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(a)},this.push=function(a){if(c){var b=Fb(a);b&&'aac'!==this.transmuxPipeline_.type?this.setupAacPipeline():b||'ts'===this.transmuxPipeline_.type||this.setupTsPipeline(),c=!1}this.transmuxPipeline_.headOfPipeline.push(a)},this.flush=function(){c=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},Lb.prototype=new b;var Pb={Transmuxer:Lb,VideoSegmentStream:Jb,AudioSegmentStream:Kb,AUDIO_PROPERTIES:Hb,VIDEO_PROPERTIES:Ib,generateVideoSegmentTimingInfo:Ob},Qb=function Dd(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},Rb=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),Sb=function Ed(a,b){b.on('data',function(b){var c=b.initSegment;b.initSegment={data:c.buffer,byteOffset:c.byteOffset,byteLength:c.byteLength};var d=b.data;b.data=d.buffer,a.postMessage({action:'data',segment:b,byteOffset:d.byteOffset,byteLength:d.byteLength},[b.data])}),b.captionStream&&b.captionStream.on('data',function(b){a.postMessage({action:'caption',data:b})}),b.on('done',function(b){a.postMessage({action:'done'})}),b.on('gopInfo',function(b){a.postMessage({action:'gopInfo',gopInfo:b})}),b.on('videoSegmentTimingInfo',function(b){a.postMessage({action:'videoSegmentTimingInfo',videoSegmentTimingInfo:b})})},Tb=function(){function a(b,c){Qb(this,a),this.options=c||{},this.self=b,this.init()}return Rb(a,[{key:'init',value:function b(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Pb.Transmuxer(this.options),Sb(this.self,this.transmuxer)}},{key:'push',value:function c(a){var b=new Uint8Array(a.data,a.byteOffset,a.byteLength);this.transmuxer.push(b)}},{key:'reset',value:function d(){this.init()}},{key:'setTimestampOffset',value:function e(a){var b=a.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(9e4*b))}},{key:'setAudioAppendStart',value:function f(a){this.transmuxer.setAudioAppendStart(Math.ceil(9e4*a.appendStart))}},{key:'flush',value:function g(a){this.transmuxer.flush()}},{key:'resetCaptions',value:function h(){this.transmuxer.resetCaptions()}},{key:'alignGopsWith',value:function i(a){this.transmuxer.alignGopsWith(a.gopsToAlignWith.slice())}}]),a}(),Ub=function Fd(a){a.onmessage=function(b){return'init'===b.data.action&&b.data.options?(this.messageHandlers=new Tb(a,b.data.options),void 0):(this.messageHandlers||(this.messageHandlers=new Tb(a)),b.data&&b.data.action&&'init'!==b.data.action&&this.messageHandlers[b.data.action]&&this.messageHandlers[b.data.action](b.data),void 0)}},Vb=new Ub(c);return Vb}()}),zc={videoCodec:'avc1',videoObjectTypeIndicator:'.4d400d',audioProfile:'2'},Ac=function Qj(a){return a.map(function(a){return a.replace(/avc1\.(\d+)\.(\d+)/i,function(a,b,c){var d=('00'+Number(b).toString(16)).slice(-2),e=('00'+Number(c).toString(16)).slice(-2);return'avc1.'+d+'00'+e})})},Bc=function Rj(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'',b={codecCount:0},c=void 0;return b.codecCount=a.split(',').length,b.codecCount=b.codecCount||2,c=/(^|\s|,)+(avc[13])([^ ,]*)/i.exec(a),c&&(b.videoCodec=c[2],b.videoObjectTypeIndicator=c[3]),b.audioProfile=/(^|\s|,)+mp4a.[0-9A-Fa-f]+\.([0-9A-Fa-f]+)/i.exec(a),b.audioProfile=b.audioProfile&&b.audioProfile[2],b},Cc=function Sj(a){return a.replace(/avc1\.(\d+)\.(\d+)/i,function(a){return Ac([a])[0]})},Dc=function Tj(a,b,c){return a+'/'+b+'; codecs="'+c.filter(function(a){return!!a}).join(', ')+'"'},Ec=function Uj(a){return a.segments&&a.segments.length&&a.segments[0].map?'mp4':'mp2t'},Fc=function Vj(a){var b=a.attributes||{};return b.CODECS?Bc(b.CODECS):zc},Gc=function Wj(a,b){if(!a.mediaGroups.AUDIO||!b)return null;var c=a.mediaGroups.AUDIO[b];if(!c)return null;for(var d in c){var e=c[d];if(e["default"]&&e.playlists)return Bc(e.playlists[0].attributes.CODECS).audioProfile}return null},Hc=function Xj(a,c){var d=Ec(c),e=Fc(c),f=c.attributes||{},g=!0,h=!1;if(!c)return[];if(a.mediaGroups.AUDIO&&f.AUDIO){var i=a.mediaGroups.AUDIO[f.AUDIO];if(i){h=!0,g=!1;for(var j in i)if(!i[j].uri&&!i[j].playlists){g=!0;break}}}h&&!e.audioProfile&&(g||(e.audioProfile=Gc(a,f.AUDIO)),e.audioProfile||(b.log.warn("Multiple audio tracks present but no audio codec string is specified. Attempting to use the default audio codec (mp4a.40.2)"),e.audioProfile=zc.audioProfile));var k={};e.videoCodec&&(k.video=''+e.videoCodec+e.videoObjectTypeIndicator),e.audioProfile&&(k.audio='mp4a.40.'+e.audioProfile);var l=Dc('audio',d,[k.audio]),m=Dc('video',d,[k.video]),n=Dc('video',d,[k.video,k.audio]);return h?!g&&k.video?[m,l]:g||k.video?[n,l]:[l,l]:k.video?[n]:[l]},Ic=function Yj(a){var b={type:'',parameters:{}},c=a.trim().split(';');return b.type=c.shift().trim(),c.forEach(function(a){var c=a.trim().split('=');if(c.length>1){var d=c[0].replace(/"/g,'').trim(),e=c[1].replace(/"/g,'').trim();b.parameters[d]=e}}),b},Jc=function Zj(a){return/mp4a\.\d+.\d+/i.test(a)},Kc=function $j(a){return/avc1\.[\da-f]+/i.test(a)},Lc=function _j(a,b,c){if('undefined'==typeof b||null===b||!a.length)return[];var d=Math.ceil(9e4*(b-c+3)),e=void 0;for(e=0;e<a.length&&!(a[e].pts>d);e++);return a.slice(e)},Mc=function ak(a,b,c){if(!b.length)return a;if(c)return b.slice();var d=b[0].pts,e=0;for(e;e<a.length&&!(a[e].pts>=d);e++);return a.slice(0,e).concat(b)},Nc=function bk(a,b,c,d){for(var e=Math.ceil(9e4*(b-d)),f=Math.ceil(9e4*(c-d)),g=a.slice(),h=a.length;h--&&!(a[h].pts<=f););if(-1===h)return g;for(var i=h+1;i--&&!(a[i].pts<=e););return i=Math.max(i,0),g.splice(i,h-i+1),g},Oc=function ck(a,c,d){var e=null,f=null,g=0,h=[],i=[];if(!a&&!c)return b.createTimeRange();if(!a)return c.buffered;if(!c)return a.buffered;if(d)return a.buffered;if(0===a.buffered.length&&0===c.buffered.length)return b.createTimeRange();for(var j=a.buffered,k=c.buffered,l=j.length;l--;)h.push({time:j.start(l),type:'start'}),h.push({time:j.end(l),type:'end'});for(l=k.length;l--;)h.push({time:k.start(l),type:'start'}),h.push({time:k.end(l),type:'end'});for(h.sort(function(a,b){return a.time-b.time}),l=0;l<h.length;l++)'start'===h[l].type?(g++,2===g&&(e=h[l].time)):'end'===h[l].type&&(g--,1===g&&(f=h[l].time)),null!==e&&null!==f&&(i.push([e,f]),e=null,f=null);return b.createTimeRanges(i)},Pc=9e4,Qc=function dk(a,b){var c=a.addSourceBuffer(b),d=Object.create(null);d.updating=!1,d.realBuffer_=c;var e=function g(a){'function'==typeof c[a]?d[a]=function(){return c[a].apply(c,arguments)}:'undefined'==typeof d[a]&&Object.defineProperty(d,a,{get:function b(){return c[a]},set:function e(b){return c[a]=b}})};for(var f in c)e(f);return d},Rc=function(a){function c(a,d){Ea(this,c);var e=Ia(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,b.EventTarget));e.timestampOffset_=0,e.pendingBuffers_=[],e.bufferUpdating_=!1,e.mediaSource_=a,e.codecs_=d,e.audioCodec_=null,e.videoCodec_=null,e.audioDisabled_=!1,e.appendAudioInitSegment_=!0,e.gopBuffer_=[],e.timeMapping_=0,e.safeAppend_=b.browser.IE_VERSION>=11;var f={remux:!1,alignGopsAtEnd:e.safeAppend_};return e.codecs_.forEach(function(a){Jc(a)?e.audioCodec_=a:Kc(a)&&(e.videoCodec_=a)}),e.transmuxer_=new yc,e.transmuxer_.postMessage({action:'init',options:f}),e.transmuxer_.onmessage=function(a){return'data'===a.data.action?e.data_(a):'done'===a.data.action?e.done_(a):'gopInfo'===a.data.action?e.appendGopInfo_(a):'videoSegmentTimingInfo'===a.data.action?e.videoSegmentTimingInfo_(a.data.videoSegmentTimingInfo):void 0},Object.defineProperty(e,'timestampOffset',{get:function g(){return this.timestampOffset_},set:function h(a){'number'==typeof a&&a>=0&&(this.timestampOffset_=a,this.appendAudioInitSegment_=!0,this.gopBuffer_.length=0,this.timeMapping_=0,this.transmuxer_.postMessage({action:'setTimestampOffset',timestampOffset:a}))}}),Object.defineProperty(e,'appendWindowStart',{get:function i(){return(this.videoBuffer_||this.audioBuffer_).appendWindowStart},set:function j(a){this.videoBuffer_&&(this.videoBuffer_.appendWindowStart=a),this.audioBuffer_&&(this.audioBuffer_.appendWindowStart=a)}}),Object.defineProperty(e,'updating',{get:function k(){return!!(this.bufferUpdating_||!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.updating||this.videoBuffer_&&this.videoBuffer_.updating)}}),Object.defineProperty(e,'buffered',{get:function l(){return Oc(this.videoBuffer_,this.audioBuffer_,this.audioDisabled_)}}),e}return Ha(c,a),Fa(c,[{key:'data_',value:function d(a){var b=a.data.segment;b.data=new Uint8Array(b.data,a.data.byteOffset,a.data.byteLength),b.initSegment=new Uint8Array(b.initSegment.data,b.initSegment.byteOffset,b.initSegment.byteLength),jc(this,this.mediaSource_,b),this.pendingBuffers_.push(b)}},{key:'done_',value:function e(a){return'closed'===this.mediaSource_.readyState?(this.pendingBuffers_.length=0,void 0):(this.processPendingSegments_(),void 0)}},{key:'videoSegmentTimingInfo_',value:function f(a){var b={start:{decode:a.start.dts/Pc,presentation:a.start.pts/Pc},end:{decode:a.end.dts/Pc,presentation:a.end.pts/Pc},baseMediaDecodeTime:a.baseMediaDecodeTime/Pc};a.prependedContentDuration&&(b.prependedContentDuration=a.prependedContentDuration/Pc),this.trigger({type:'videoSegmentTimingInfo',videoSegmentTimingInfo:b})}},{key:'createRealSourceBuffers_',value:function g(){var a=this,b=['audio','video'];b.forEach(function(c){if(a[c+'Codec_']&&!a[c+'Buffer_']){var d=null;if(a.mediaSource_[c+'Buffer_'])d=a.mediaSource_[c+'Buffer_'],d.updating=!1;else{var e=c+'Codec_',f=c+'/mp4;codecs="'+a[e]+'"';d=Qc(a.mediaSource_.nativeMediaSource_,f),a.mediaSource_[c+'Buffer_']=d}a[c+'Buffer_']=d,['update','updatestart','updateend'].forEach(function(e){d.addEventListener(e,function(){if('audio'!==c||!a.audioDisabled_){'updateend'===e&&(a[c+'Buffer_'].updating=!1);var d=b.every(function(b){return'audio'===b&&a.audioDisabled_?!0:c===b||!a[b+'Buffer_']||!a[b+'Buffer_'].updating});return d?a.trigger(e):void 0}})})}})}},{key:'appendBuffer',value:function h(a){if(this.bufferUpdating_=!0,this.audioBuffer_&&this.audioBuffer_.buffered.length){var b=this.audioBuffer_.buffered;this.transmuxer_.postMessage({action:'setAudioAppendStart',appendStart:b.end(b.length-1)})}this.videoBuffer_&&this.transmuxer_.postMessage({action:'alignGopsWith',gopsToAlignWith:Lc(this.gopBuffer_,this.mediaSource_.player_?this.mediaSource_.player_.currentTime():null,this.timeMapping_)}),this.transmuxer_.postMessage({action:'push',data:a.buffer,byteOffset:a.byteOffset,byteLength:a.byteLength},[a.buffer]),this.transmuxer_.postMessage({action:'flush'})}},{key:'appendGopInfo_',value:function i(a){this.gopBuffer_=Mc(this.gopBuffer_,a.data.gopInfo,this.safeAppend_)}},{key:'remove',value:function j(a,b){if(this.videoBuffer_&&(this.videoBuffer_.updating=!0,this.videoBuffer_.remove(a,b),this.gopBuffer_=Nc(this.gopBuffer_,a,b,this.timeMapping_)),!this.audioDisabled_&&this.audioBuffer_&&(this.audioBuffer_.updating=!0,this.audioBuffer_.remove(a,b)),kc(a,b,this.metadataTrack_),this.inbandTextTracks_)for(var c in this.inbandTextTracks_)kc(a,b,this.inbandTextTracks_[c])}},{key:'processPendingSegments_',value:function k(){var a={video:{segments:[],bytes:0},audio:{segments:[],bytes:0},captions:[],metadata:[]};if(!this.pendingBuffers_.length)return this.trigger('updateend'),this.bufferUpdating_=!1,void 0;a=this.pendingBuffers_.reduce(function(a,b){var c=b.type,d=b.data,e=b.initSegment;return a[c].segments.push(d),a[c].bytes+=d.byteLength,a[c].initSegment=e,b.captions&&(a.captions=a.captions.concat(b.captions)),b.info&&(a[c].info=b.info),b.metadata&&(a.metadata=a.metadata.concat(b.metadata)),a},a),this.videoBuffer_||this.audioBuffer_||(0===a.video.bytes&&(this.videoCodec_=null),0===a.audio.bytes&&(this.audioCodec_=null),this.createRealSourceBuffers_()),a.audio.info&&this.mediaSource_.trigger({type:'audioinfo',info:a.audio.info}),a.video.info&&this.mediaSource_.trigger({type:'videoinfo',info:a.video.info}),this.appendAudioInitSegment_&&(!this.audioDisabled_&&this.audioBuffer_&&(a.audio.segments.unshift(a.audio.initSegment),a.audio.bytes+=a.audio.initSegment.byteLength),this.appendAudioInitSegment_=!1);var b=!1;this.videoBuffer_&&a.video.bytes?(a.video.segments.unshift(a.video.initSegment),a.video.bytes+=a.video.initSegment.byteLength,this.concatAndAppendSegments_(a.video,this.videoBuffer_)):!this.videoBuffer_||!this.audioDisabled_&&this.audioBuffer_||(b=!0),nc(this,a.captions,a.metadata),!this.audioDisabled_&&this.audioBuffer_&&this.concatAndAppendSegments_(a.audio,this.audioBuffer_),this.pendingBuffers_.length=0,b&&this.trigger('updateend'),this.bufferUpdating_=!1}},{key:'concatAndAppendSegments_',value:function l(a,b){var c=0,d=void 0;if(a.bytes){d=new Uint8Array(a.bytes),a.segments.forEach(function(a){d.set(a,c),c+=a.byteLength});try{b.updating=!0,b.appendBuffer(d)}catch(e){this.mediaSource_.player_&&this.mediaSource_.player_.error({code:-3,type:'APPEND_BUFFER_ERR',message:e.message,originalError:e})}}}},{key:'abort',value:function m(){this.videoBuffer_&&this.videoBuffer_.abort(),!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:'reset'}),this.pendingBuffers_.length=0,this.bufferUpdating_=!1}},{key:'dispose',value:function n(){this.transmuxer_&&this.transmuxer_.terminate(),this.trigger('dispose'),this.off()}}]),c}(b.EventTarget),Sc=function(a){function c(){Ea(this,c);var a=Ia(this,(c.__proto__||Object.getPrototypeOf(c)).call(this)),d=void 0;a.nativeMediaSource_=new va.MediaSource;for(d in a.nativeMediaSource_)d in c.prototype||'function'!=typeof a.nativeMediaSource_[d]||(a[d]=a.nativeMediaSource_[d].bind(a.nativeMediaSource_));return a.duration_=NaN,Object.defineProperty(a,'duration',{get:function e(){return this.duration_===1/0?this.duration_:this.nativeMediaSource_.duration},set:function f(a){return this.duration_=a,a!==1/0?(this.nativeMediaSource_.duration=a,void 0):void 0}}),Object.defineProperty(a,'seekable',{get:function g(){return this.duration_===1/0?b.createTimeRanges([[0,this.nativeMediaSource_.duration]]):this.nativeMediaSource_.seekable}}),Object.defineProperty(a,'readyState',{get:function h(){return this.nativeMediaSource_.readyState}}),Object.defineProperty(a,'activeSourceBuffers',{get:function i(){return this.activeSourceBuffers_}}),a.sourceBuffers=[],a.activeSourceBuffers_=[],a.updateActiveSourceBuffers_=function(){if(a.activeSourceBuffers_.length=0,1===a.sourceBuffers.length){var b=a.sourceBuffers[0];return b.appendAudioInitSegment_=!0,b.audioDisabled_=!b.audioCodec_,a.activeSourceBuffers_.push(b),void 0}for(var c=!1,d=!0,e=0;e<a.player_.audioTracks().length;e++){var f=a.player_.audioTracks()[e];if(f.enabled&&'main'!==f.kind){c=!0,d=!1;break}}a.sourceBuffers.forEach(function(b,e){if(b.appendAudioInitSegment_=!0,b.videoCodec_&&b.audioCodec_)b.audioDisabled_=c;else if(b.videoCodec_&&!b.audioCodec_)b.audioDisabled_=!0,d=!1;else if(!b.videoCodec_&&b.audioCodec_&&(b.audioDisabled_=e?d:!d,b.audioDisabled_))return;a.activeSourceBuffers_.push(b)})},a.onPlayerMediachange_=function(){a.sourceBuffers.forEach(function(a){a.appendAudioInitSegment_=!0})},a.onHlsReset_=function(){a.sourceBuffers.forEach(function(a){a.transmuxer_&&a.transmuxer_.postMessage({action:'resetCaptions'})})},a.onHlsSegmentTimeMapping_=function(b){a.sourceBuffers.forEach(function(a){return a.timeMapping_=b.mapping})},['sourceopen','sourceclose','sourceended'].forEach(function(a){this.nativeMediaSource_.addEventListener(a,this.trigger.bind(this))},a),a.on('sourceopen',function(c){var d=sa.querySelector('[src="'+a.url_+'"]');d&&(a.player_=b(d.parentNode),a.player_&&(a.player_.tech_.on('hls-reset',a.onHlsReset_),a.player_.tech_.on('hls-segment-time-mapping',a.onHlsSegmentTimeMapping_),a.player_.audioTracks&&a.player_.audioTracks()&&(a.player_.audioTracks().on('change',a.updateActiveSourceBuffers_),a.player_.audioTracks().on('addtrack',a.updateActiveSourceBuffers_),a.player_.audioTracks().on('removetrack',a.updateActiveSourceBuffers_)),a.player_.on('mediachange',a.onPlayerMediachange_)))}),a.on('sourceended',function(b){for(var c=mc(a.duration),d=0;d<a.sourceBuffers.length;d++){var e=a.sourceBuffers[d],f=e.metadataTrack_&&e.metadataTrack_.cues;f&&f.length&&(f[f.length-1].endTime=c)}}),a.on('sourceclose',function(a){this.sourceBuffers.forEach(function(a){a.transmuxer_&&a.transmuxer_.terminate()}),this.sourceBuffers.length=0,this.player_&&(this.player_.audioTracks&&this.player_.audioTracks()&&(this.player_.audioTracks().off('change',this.updateActiveSourceBuffers_),this.player_.audioTracks().off('addtrack',this.updateActiveSourceBuffers_),this.player_.audioTracks().off('removetrack',this.updateActiveSourceBuffers_)),this.player_.el_&&this.player_.off('mediachange',this.onPlayerMediachange_),this.player_.tech_&&this.player_.tech_.el_&&(this.player_.tech_.off('hls-reset',this.onHlsReset_),this.player_.tech_.off('hls-segment-time-mapping',this.onHlsSegmentTimeMapping_)))}),a}return Ha(c,a),Fa(c,[{key:'addSeekableRange_',value:function d(a,b){var c=void 0;if(this.duration!==1/0)throw c=new Error("MediaSource.addSeekableRange() can only be invoked when the duration is Infinity"),c.name='InvalidStateError',c.code=11,c;(b>this.nativeMediaSource_.duration||isNaN(this.nativeMediaSource_.duration))&&(this.nativeMediaSource_.duration=b)}},{key:'addSourceBuffer',value:function e(a){var b=void 0,c=Ic(a);if(/^(video|audio)\/mp2t$/i.test(c.type)){var d=[];c.parameters&&c.parameters.codecs&&(d=c.parameters.codecs.split(','),d=Ac(d),d=d.filter(function(a){return Jc(a)||Kc(a)})),0===d.length&&(d=['avc1.4d400d','mp4a.40.2']),b=new Rc(this,d),0!==this.sourceBuffers.length&&(this.sourceBuffers[0].createRealSourceBuffers_(),b.createRealSourceBuffers_(),this.sourceBuffers[0].audioDisabled_=!0)}else b=this.nativeMediaSource_.addSourceBuffer(a);return this.sourceBuffers.push(b),b}},{key:'dispose',value:function f(){this.trigger('dispose'),this.off(),this.sourceBuffers.forEach(function(a){a.dispose&&a.dispose()}),this.sourceBuffers.length=0}}]),c}(b.EventTarget),Tc=0;b.mediaSources={};var Uc=function ek(a,c){var d=b.mediaSources[a];if(!d)throw new Error('Media Source not found (Video.js)');d.trigger({type:'sourceopen',swfId:c})},Vc=function fk(){return!!va.MediaSource&&!!va.MediaSource.isTypeSupported&&va.MediaSource.isTypeSupported('video/mp4;codecs="avc1.4d400d,mp4a.40.2"')},Wc=function gk(){if(this.MediaSource={open:Uc,supportsNativeMediaSources:Vc},Vc())return new Sc;throw new Error('Cannot use create a virtual MediaSource for this video')};Wc.open=Uc,Wc.supportsNativeMediaSources=Vc;var Xc={createObjectURL:function hk(a){var c='blob:vjs-media-source/',d=void 0;return a instanceof Sc?(d=va.URL.createObjectURL(a.nativeMediaSource_),a.url_=d,d):a instanceof Sc?(d=c+Tc,Tc++,b.mediaSources[d]=a,d):(d=va.URL.createObjectURL(a),a.url_=d,d)}};b.MediaSource=Wc,b.URL=Xc;var Yc=l(ta),Zc=l(va),$c=function ik(a,b){return/^[a-z]+:/i.test(b)?b:(/\/\//i.test(a)||(a=Yc.buildAbsoluteURL(Zc.location&&Zc.location.href||'',a)),Yc.buildAbsoluteURL(a,b))},_c=$c,ad=m(va),bd=function jk(a){return ad.atob?ad.atob(a):Buffer.from(a,'base64').toString('binary')},cd=n,dd=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,ed=new RegExp("[\\-\\.0-9"+dd.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),fd=new RegExp('^'+dd.source+ed.source+'*(?::'+dd.source+ed.source+'*)?$'),gd=0,hd=1,id=2,jd=3,kd=4,ld=5,md=6,nd=7;o.prototype={parse:function kk(a,b,c){var d=this.domBuilder;d.startDocument(),v(b,b={}),p(a,b,c,d,this.errorHandler),d.endDocument()}},y.prototype={setTagName:function lk(a){if(!fd.test(a))throw new Error('invalid tagName:'+a);this.tagName=a},add:function mk(a,b,c){if(!fd.test(a))throw new Error('invalid attribute:'+a);this[this.length++]={qName:a,value:b,offset:c}},length:0,getLocalName:function nk(a){return this[a].localName},getLocator:function ok(a){return this[a].locator},getQName:function pk(a){return this[a].qName},getURI:function qk(a){return this[a].uri},getValue:function rk(a){return this[a].value}},z({},z.prototype)instanceof z||(z=function sk(a,b){function c(){}c.prototype=b,c=new c;for(b in a)c[b]=a[b];return c});var od=o,pd={XMLReader:od},qd='http://www.w3.org/1999/xhtml',rd={},sd=rd.ELEMENT_NODE=1,td=rd.ATTRIBUTE_NODE=2,ud=rd.TEXT_NODE=3,vd=rd.CDATA_SECTION_NODE=4,wd=rd.ENTITY_REFERENCE_NODE=5,xd=rd.ENTITY_NODE=6,yd=rd.PROCESSING_INSTRUCTION_NODE=7,zd=rd.COMMENT_NODE=8,Ad=rd.DOCUMENT_NODE=9,Bd=rd.DOCUMENT_TYPE_NODE=10,Cd=rd.DOCUMENT_FRAGMENT_NODE=11,Dd=rd.NOTATION_NODE=12,Ed={},Fd={},Gd=Ed.INDEX_SIZE_ERR=(Fd[1]="Index size error",1),Hd=Ed.DOMSTRING_SIZE_ERR=(Fd[2]="DOMString size error",2),Id=Ed.HIERARCHY_REQUEST_ERR=(Fd[3]="Hierarchy request error",3),Jd=Ed.WRONG_DOCUMENT_ERR=(Fd[4]="Wrong document",4),Kd=Ed.INVALID_CHARACTER_ERR=(Fd[5]="Invalid character",5),Ld=Ed.NO_DATA_ALLOWED_ERR=(Fd[6]="No data allowed",6),Md=Ed.NO_MODIFICATION_ALLOWED_ERR=(Fd[7]="No modification allowed",7),Nd=Ed.NOT_FOUND_ERR=(Fd[8]="Not found",8),Od=Ed.NOT_SUPPORTED_ERR=(Fd[9]="Not supported",9),Pd=Ed.INUSE_ATTRIBUTE_ERR=(Fd[10]="Attribute in use",10),Qd=Ed.INVALID_STATE_ERR=(Fd[11]="Invalid state",11),Rd=Ed.SYNTAX_ERR=(Fd[12]="Syntax error",12),Sd=Ed.INVALID_MODIFICATION_ERR=(Fd[13]="Invalid modification",13),Td=Ed.NAMESPACE_ERR=(Fd[14]="Invalid namespace",14),Ud=Ed.INVALID_ACCESS_ERR=(Fd[15]="Invalid access",15);D.prototype=Error.prototype,B(Ed,D),E.prototype={length:0,item:function tk(a){return this[a]||null},toString:function uk(a,b){for(var c=[],d=0;d<this.length;d++)ja(this[d],c,a,b);return c.join('')}},F.prototype.item=function(a){return G(this),this[a]},C(F,E),H.prototype={length:0,item:E.prototype.item,getNamedItem:function vk(a){for(var b=this.length;b--;){var c=this[b];if(c.nodeName==a)return c}},setNamedItem:function wk(a){var b=a.ownerElement;if(b&&b!=this._ownerElement)throw new D(Pd);var c=this.getNamedItem(a.nodeName);return J(this._ownerElement,this,a,c),c},setNamedItemNS:function xk(a){var b=a.ownerElement,c;if(b&&b!=this._ownerElement)throw new D(Pd);return c=this.getNamedItemNS(a.namespaceURI,a.localName),J(this._ownerElement,this,a,c),c},removeNamedItem:function yk(a){var b=this.getNamedItem(a);return K(this._ownerElement,this,b),b},removeNamedItemNS:function zk(a,b){var c=this.getNamedItemNS(a,b);return K(this._ownerElement,this,c),c},getNamedItemNS:function Ak(a,b){for(var c=this.length;c--;){var d=this[c];if(d.localName==b&&d.namespaceURI==a)return d}return null}},L.prototype={hasFeature:function Bk(a,b){var c=this._features[a.toLowerCase()];return!(!c||b&&!(b in c))},createDocument:function Ck(a,b,c){var d=new P;if(d.implementation=this,d.childNodes=new E,d.doctype=c,c&&d.appendChild(c),b){var e=d.createElementNS(a,b);d.appendChild(e)}return d},createDocumentType:function Dk(a,b,c){var d=new aa;return d.name=a,d.nodeName=a,d.publicId=b,d.systemId=c,d}},M.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function Ek(a,b){return U(this,a,b)},replaceChild:function Fk(a,b){this.insertBefore(a,b),b&&this.removeChild(b)},removeChild:function Gk(a){return T(this,a)},appendChild:function Hk(a){return this.insertBefore(a,null)},hasChildNodes:function Ik(){return null!=this.firstChild},cloneNode:function Jk(a){return la(this.ownerDocument||this,this,a)},normalize:function Kk(){for(var a=this.firstChild;a;){var b=a.nextSibling;b&&b.nodeType==ud&&a.nodeType==ud?(this.removeChild(b),a.appendData(b.data)):(a.normalize(),a=b)}},isSupported:function Lk(a,b){return this.ownerDocument.implementation.hasFeature(a,b)},hasAttributes:function Mk(){return this.attributes.length>0},lookupPrefix:function Nk(a){for(var b=this;b;){var c=b._nsMap;if(c)for(var d in c)if(c[d]==a)return d;b=b.nodeType==td?b.ownerDocument:b.parentNode}return null},lookupNamespaceURI:function Ok(a){for(var b=this;b;){var c=b._nsMap;if(c&&a in c)return c[a];b=b.nodeType==td?b.ownerDocument:b.parentNode}return null},isDefaultNamespace:function Pk(a){var b=this.lookupPrefix(a);return null==b}},B(rd,M),B(rd,M.prototype),P.prototype={nodeName:'#document',nodeType:Ad,doctype:null,documentElement:null,_inc:1,insertBefore:function Qk(a,b){if(a.nodeType==Cd){for(var c=a.firstChild;c;){var d=c.nextSibling;this.insertBefore(c,b),c=d}return a}return null==this.documentElement&&a.nodeType==sd&&(this.documentElement=a),U(this,a,b),a.ownerDocument=this,a},removeChild:function Rk(a){return this.documentElement==a&&(this.documentElement=null),T(this,a)},importNode:function Sk(a,b){return ka(this,a,b)},getElementById:function Tk(a){var b=null;return O(this.documentElement,function(c){return c.nodeType==sd&&c.getAttribute('id')==a?(b=c,!0):void 0}),b},createElement:function Uk(a){var b=new W;b.ownerDocument=this,b.nodeName=a,b.tagName=a,b.childNodes=new E;var c=b.attributes=new H;return c._ownerElement=b,b},createDocumentFragment:function Vk(){var a=new ea;return a.ownerDocument=this,a.childNodes=new E,a},createTextNode:function Wk(a){var b=new Z;return b.ownerDocument=this,b.appendData(a),b},createComment:function Xk(a){var b=new $;return b.ownerDocument=this,b.appendData(a),b},createCDATASection:function Yk(a){var b=new _;return b.ownerDocument=this,b.appendData(a),b},createProcessingInstruction:function Zk(a,b){var c=new fa;return c.ownerDocument=this,c.tagName=c.target=a,c.nodeValue=c.data=b,c},createAttribute:function $k(a){var b=new X;return b.ownerDocument=this,b.name=a,b.nodeName=a,b.localName=a,b.specified=!0,b},createEntityReference:function _k(a){var b=new da;return b.ownerDocument=this,b.nodeName=a,b},createElementNS:function al(a,b){var c=new W,d=b.split(':'),e=c.attributes=new H;return c.childNodes=new E,c.ownerDocument=this,c.nodeName=b,c.tagName=b,c.namespaceURI=a,2==d.length?(c.prefix=d[0],c.localName=d[1]):c.localName=b,e._ownerElement=c,c},createAttributeNS:function bl(a,b){var c=new X,d=b.split(':');return c.ownerDocument=this,c.nodeName=b,c.name=b,c.namespaceURI=a,c.specified=!0,2==d.length?(c.prefix=d[0],c.localName=d[1]):c.localName=b,c}},C(P,M),W.prototype={nodeType:sd,hasAttribute:function cl(a){return null!=this.getAttributeNode(a)},getAttribute:function dl(a){var b=this.getAttributeNode(a);return b&&b.value||''},getAttributeNode:function el(a){return this.attributes.getNamedItem(a)},setAttribute:function fl(a,b){var c=this.ownerDocument.createAttribute(a);c.value=c.nodeValue=""+b,this.setAttributeNode(c)},removeAttribute:function gl(a){var b=this.getAttributeNode(a);b&&this.removeAttributeNode(b)},appendChild:function hl(a){return a.nodeType===Cd?this.insertBefore(a,null):V(this,a)},setAttributeNode:function il(a){return this.attributes.setNamedItem(a)},setAttributeNodeNS:function jl(a){return this.attributes.setNamedItemNS(a)},removeAttributeNode:function kl(a){return this.attributes.removeNamedItem(a.nodeName)},removeAttributeNS:function ll(a,b){var c=this.getAttributeNodeNS(a,b);c&&this.removeAttributeNode(c)},hasAttributeNS:function ml(a,b){return null!=this.getAttributeNodeNS(a,b);
},getAttributeNS:function nl(a,b){var c=this.getAttributeNodeNS(a,b);return c&&c.value||''},setAttributeNS:function ol(a,b,c){var d=this.ownerDocument.createAttributeNS(a,b);d.value=d.nodeValue=""+c,this.setAttributeNode(d)},getAttributeNodeNS:function pl(a,b){return this.attributes.getNamedItemNS(a,b)},getElementsByTagName:function ql(a){return new F(this,function(b){var c=[];return O(b,function(d){d===b||d.nodeType!=sd||'*'!==a&&d.tagName!=a||c.push(d)}),c})},getElementsByTagNameNS:function rl(a,b){return new F(this,function(c){var d=[];return O(c,function(e){e===c||e.nodeType!==sd||'*'!==a&&e.namespaceURI!==a||'*'!==b&&e.localName!=b||d.push(e)}),d})}},P.prototype.getElementsByTagName=W.prototype.getElementsByTagName,P.prototype.getElementsByTagNameNS=W.prototype.getElementsByTagNameNS,C(W,M),X.prototype.nodeType=td,C(X,M),Y.prototype={data:'',substringData:function sl(a,b){return this.data.substring(a,a+b)},appendData:function tl(a){a=this.data+a,this.nodeValue=this.data=a,this.length=a.length},insertData:function ul(a,b){this.replaceData(a,0,b)},appendChild:function vl(a){throw new Error(Fd[Id])},deleteData:function wl(a,b){this.replaceData(a,b,"")},replaceData:function xl(a,b,c){var d=this.data.substring(0,a),e=this.data.substring(a+b);c=d+c+e,this.nodeValue=this.data=c,this.length=c.length}},C(Y,M),Z.prototype={nodeName:"#text",nodeType:ud,splitText:function yl(a){var b=this.data,c=b.substring(a);b=b.substring(0,a),this.data=this.nodeValue=b,this.length=b.length;var d=this.ownerDocument.createTextNode(c);return this.parentNode&&this.parentNode.insertBefore(d,this.nextSibling),d}},C(Z,Y),$.prototype={nodeName:"#comment",nodeType:zd},C($,Y),_.prototype={nodeName:"#cdata-section",nodeType:vd},C(_,Y),aa.prototype.nodeType=Bd,C(aa,M),ba.prototype.nodeType=Dd,C(ba,M),ca.prototype.nodeType=xd,C(ca,M),da.prototype.nodeType=wd,C(da,M),ea.prototype.nodeName="#document-fragment",ea.prototype.nodeType=Cd,C(ea,M),fa.prototype.nodeType=yd,C(fa,M),ga.prototype.serializeToString=function(a,b,c){return ha.call(a,b,c)},M.prototype.toString=ha;try{if(Object.defineProperty){var Vd=function zl(a){switch(a.nodeType){case sd:case Cd:var b=[];for(a=a.firstChild;a;)7!==a.nodeType&&8!==a.nodeType&&b.push(zl(a)),a=a.nextSibling;return b.join('');default:return a.nodeValue}};Object.defineProperty(F.prototype,'length',{get:function Al(){return G(this),this.$$length}}),Object.defineProperty(M.prototype,'textContent',{get:function Bl(){return Vd(this)},set:function Cl(a){switch(this.nodeType){case sd:case Cd:for(;this.firstChild;)this.removeChild(this.firstChild);(a||String(a))&&this.appendChild(this.ownerDocument.createTextNode(a));break;default:this.data=a,this.value=a,this.nodeValue=a}}}),ma=function Dl(a,b,c){a['$$'+b]=c}}}catch(xc){}var Wd=L,Xd=ga,Yd={DOMImplementation:Wd,XMLSerializer:Xd},Zd=c(function(a,b){function c(a){this.options=a||{locator:{}}}function d(a,b,c){function d(b){var d=a[b];!d&&h&&(d=2==a.length?function(c){a(b,c)}:a),f[b]=d&&function(a){d('[xmldom '+b+']	'+a+g(c))}||function(){}}if(!a){if(b instanceof e)return b;a=b}var f={},h=a instanceof Function;return c=c||{},d('warning'),d('error'),d('fatalError'),f}function e(){this.cdata=!1}function f(a,b){b.lineNumber=a.lineNumber,b.columnNumber=a.columnNumber}function g(a){return a?'\n@'+(a.systemId||'')+'#[line:'+a.lineNumber+',col:'+a.columnNumber+']':void 0}function h(a,b,c){return'string'==typeof a?a.substr(b,c):a.length>=b+c||b?new java.lang.String(a,b,c)+'':a}function i(a,b){a.currentElement?a.currentElement.appendChild(b):a.doc.appendChild(b)}c.prototype.parseFromString=function(a,b){var c=this.options,f=new j,g=c.domBuilder||new e,h=c.errorHandler,i=c.locator,k=c.xmlns||{},l={lt:'<',gt:'>',amp:'&',quot:'"',apos:"'"};return i&&g.setDocumentLocator(i),f.errorHandler=d(h,g,i),f.domBuilder=c.domBuilder||g,/\/x?html?$/.test(b)&&(l.nbsp=' ',l.copy='©',k['']='http://www.w3.org/1999/xhtml'),k.xml=k.xml||'http://www.w3.org/XML/1998/namespace',a?f.parse(a,k,l):f.errorHandler.error("invalid doc source"),g.doc},e.prototype={startDocument:function l(){this.doc=(new k).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function m(a,b,c,d){var e=this.doc,g=e.createElementNS(a,c||b),h=d.length;i(this,g),this.currentElement=g,this.locator&&f(this.locator,g);for(var j=0;h>j;j++){var a=d.getURI(j),k=d.getValue(j),c=d.getQName(j),l=e.createAttributeNS(a,c);this.locator&&f(d.getLocator(j),l),l.value=l.nodeValue=k,g.setAttributeNode(l)}},endElement:function n(a,b,c){var d=this.currentElement,e=d.tagName;this.currentElement=d.parentNode},startPrefixMapping:function o(a,b){},endPrefixMapping:function p(a){},processingInstruction:function q(a,b){var c=this.doc.createProcessingInstruction(a,b);this.locator&&f(this.locator,c),i(this,c)},ignorableWhitespace:function r(a,b,c){},characters:function s(a,b,c){if(a=h.apply(this,arguments),a){if(this.cdata)var d=this.doc.createCDATASection(a);else var d=this.doc.createTextNode(a);this.currentElement?this.currentElement.appendChild(d):/^\s*$/.test(a)&&this.doc.appendChild(d),this.locator&&f(this.locator,d)}},skippedEntity:function t(a){},endDocument:function u(){this.doc.normalize()},setDocumentLocator:function v(a){(this.locator=a)&&(a.lineNumber=0)},comment:function w(a,b,c){a=h.apply(this,arguments);var d=this.doc.createComment(a);this.locator&&f(this.locator,d),i(this,d)},startCDATA:function x(){this.cdata=!0},endCDATA:function y(){this.cdata=!1},startDTD:function z(a,b,c){var d=this.doc.implementation;if(d&&d.createDocumentType){var e=d.createDocumentType(a,b,c);this.locator&&f(this.locator,e),i(this,e)}},warning:function A(a){console.warn('[xmldom warning]	'+a,g(this.locator))},error:function B(a){console.error('[xmldom error]	'+a,g(this.locator))},fatalError:function C(a){throw console.error('[xmldom fatalError]	'+a,g(this.locator)),a}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(a){e.prototype[a]=function(){return null}});var j=pd.XMLReader,k=b.DOMImplementation=Yd.DOMImplementation;b.XMLSerializer=Yd.XMLSerializer,b.DOMParser=c}),$d=Zd.DOMImplementation,_d=Zd.XMLSerializer,ae=Zd.DOMParser,be=function El(a){return!!a&&'object'==typeof a},ce=function Fl(){for(var a=arguments.length,b=new Array(a),c=0;a>c;c++)b[c]=arguments[c];return b.reduce(function(a,b){return Object.keys(b).forEach(function(c){Array.isArray(a[c])&&Array.isArray(b[c])?a[c]=a[c].concat(b[c]):be(a[c])&&be(b[c])?a[c]=Fl(a[c],b[c]):a[c]=b[c]}),a},{})},de=function Gl(a){return Object.keys(a).map(function(b){return a[b]})},ee=function Hl(a,b){for(var c=[],d=a;b>d;d++)c.push(d);return c},fe=function Il(a){return a.reduce(function(a,b){return a.concat(b)},[])},ge=function Jl(a){if(!a.length)return[];for(var b=[],c=0;c<a.length;c++)b.push(a[c]);return b},he=function Kl(a,b){return a.reduce(function(a,c,d){return c[b]&&a.push(d),a},[])},ie={INVALID_NUMBER_OF_PERIOD:'INVALID_NUMBER_OF_PERIOD',DASH_EMPTY_MANIFEST:'DASH_EMPTY_MANIFEST',DASH_INVALID_XML:'DASH_INVALID_XML',NO_BASE_URL:'NO_BASE_URL',MISSING_SEGMENT_INFORMATION:'MISSING_SEGMENT_INFORMATION',SEGMENT_TIME_UNSPECIFIED:'SEGMENT_TIME_UNSPECIFIED',UNSUPPORTED_UTC_TIMING_SCHEME:'UNSUPPORTED_UTC_TIMING_SCHEME'},je=function Ll(a){var b=a.baseUrl,c=void 0===b?'':b,d=a.source,e=void 0===d?'':d,f=a.range,g=void 0===f?'':f,h=a.indexRange,i=void 0===h?'':h,j={uri:e,resolvedUri:_c(c||'',e)};if(g||i){var k=g?g:i,l=k.split('-'),m=parseInt(l[0],10),n=parseInt(l[1],10);j.byterange={length:n-m+1,offset:m}}return j},ke=function Ml(a){var b=a.offset+a.length-1;return a.offset+"-"+b},le={"static":function Nl(a){var b=a.duration,c=a.timescale,d=void 0===c?1:c,e=a.sourceDuration;return{start:0,end:Math.ceil(e/(b/d))}},dynamic:function Ol(a){var b=a.NOW,c=a.clientOffset,d=a.availabilityStartTime,e=a.timescale,f=void 0===e?1:e,g=a.duration,h=a.start,i=void 0===h?0:h,j=a.minimumUpdatePeriod,k=void 0===j?0:j,l=a.timeShiftBufferDepth,m=void 0===l?1/0:l,n=(b+c)/1e3,o=d+i,p=n+k,q=p-o,r=Math.ceil(q*f/g),s=Math.floor((n-o-m)*f/g),t=Math.floor((n-o)*f/g);return{start:Math.max(0,s),end:Math.min(r,t)}}},me=function Pl(a){return function(b,c){var d=a.duration,e=a.timescale,f=void 0===e?1:e,g=a.periodIndex,h=a.startNumber,i=void 0===h?1:h;return{number:i+b,duration:d/f,timeline:g,time:c*d}}},ne=function Ql(a){var b=a.type,c=void 0===b?'static':b,d=a.duration,e=a.timescale,f=void 0===e?1:e,g=a.sourceDuration,h=le[c](a),i=h.start,j=h.end,k=ee(i,j).map(me(a));if('static'===c){var l=k.length-1;k[l].duration=g-d/f*l}return k},oe=function Rl(a){var b=a.baseUrl,c=a.initialization,d=void 0===c?{}:c,e=a.sourceDuration,f=a.timescale,g=void 0===f?1:f,h=a.indexRange,i=void 0===h?'':h,j=a.duration;if(!b)throw new Error(ie.NO_BASE_URL);var k=je({baseUrl:b,source:d.sourceURL,range:d.range}),l=je({baseUrl:b,source:b,indexRange:i});if(l.map=k,j){var m=ne(a);m.length&&(l.duration=m[0].duration,l.timeline=m[0].timeline)}else e&&(l.duration=e/g,l.timeline=0);return l.number=0,[l]},pe=function Sl(a,b,c){for(var d=a.sidx.map?a.sidx.map:null,e=a.sidx.duration,f=a.timeline||0,g=a.sidx.byterange,h=g.offset+g.length,i=b.timescale,j=b.references.filter(function(a){return 1!==a.referenceType}),k=[],l=h+b.firstOffset,m=0;m<j.length;m++){var n=b.references[m],o=n.referencedSize,p=n.subsegmentDuration,q=l+o-1,r=l+"-"+q,s={baseUrl:c,timescale:i,timeline:f,periodIndex:f,duration:p,sourceDuration:e,indexRange:r},t=oe(s)[0];d&&(t.map=d),k.push(t),l+=o}return a.segments=k,a},qe=function Tl(a){var b=de(a.reduce(function(a,b){var c=b.attributes.id+(b.attributes.lang||'');if(a[c]){var d;b.segments[0]&&(b.segments[0].discontinuity=!0),(d=a[c].segments).push.apply(d,b.segments),b.attributes.contentProtection&&(a[c].attributes.contentProtection=b.attributes.contentProtection)}else a[c]=b;return a},{}));return b.map(function(a){return a.discontinuityStarts=he(a.segments,'discontinuity'),a})},re=function Ul(a,b){if(void 0===b&&(b={}),!Object.keys(b).length)return a;for(var c in a){var d=a[c];if(d.sidx){var e=d.sidx.uri+'-'+ke(d.sidx.byterange),f=b[e]&&b[e].sidx;d.sidx&&f&&pe(d,f,d.sidx.resolvedUri)}}return a},se=function Vl(a){var b,c=a.attributes,d=a.segments,e=a.sidx,f={attributes:(b={NAME:c.id,BANDWIDTH:c.bandwidth,CODECS:c.codecs},b['PROGRAM-ID']=1,b),uri:'',endList:'static'===(c.type||'static'),timeline:c.periodIndex,resolvedUri:'',targetDuration:c.duration,segments:d,mediaSequence:d.length?d[0].number:1};return c.contentProtection&&(f.contentProtection=c.contentProtection),e&&(f.sidx=e),f},te=function Wl(a){var b,c=a.attributes,d=a.segments;return'undefined'==typeof d&&(d=[{uri:c.baseUrl,timeline:c.periodIndex,resolvedUri:c.baseUrl||'',duration:c.sourceDuration,number:0}],c.duration=c.sourceDuration),{attributes:(b={NAME:c.id,BANDWIDTH:c.bandwidth},b['PROGRAM-ID']=1,b),uri:'',endList:'static'===(c.type||'static'),timeline:c.periodIndex,resolvedUri:c.baseUrl||'',targetDuration:c.duration,segments:d,mediaSequence:d.length?d[0].number:1}},ue=function Xl(a,b){void 0===b&&(b={});var c,d=a.reduce(function(a,d){var e=d.attributes.role&&d.attributes.role.value||'',f=d.attributes.lang||'',g='main';if(f){var h=e?" ("+e+")":'';g=""+d.attributes.lang+h}return a[g]&&a[g].playlists[0].attributes.BANDWIDTH>d.attributes.bandwidth?a:(a[g]={language:f,autoselect:!0,"default":'main'===e,playlists:re([se(d)],b),uri:''},'undefined'==typeof c&&'main'===e&&(c=d,c["default"]=!0),a)},{});if(!c){var e=Object.keys(d)[0];d[e]["default"]=!0}return d},ve=function Yl(a,b){return void 0===b&&(b={}),a.reduce(function(a,c){var d=c.attributes.lang||'text';return a[d]?a:(a[d]={language:d,"default":!1,autoselect:!1,playlists:re([te(c)],b),uri:''},a)},{})},we=function Zl(a){var b,c=a.attributes,d=a.segments,e=a.sidx,f={attributes:(b={NAME:c.id,AUDIO:'audio',SUBTITLES:'subs',RESOLUTION:{width:c.width,height:c.height},CODECS:c.codecs,BANDWIDTH:c.bandwidth},b['PROGRAM-ID']=1,b),uri:'',endList:'static'===(c.type||'static'),timeline:c.periodIndex,resolvedUri:'',targetDuration:c.duration,segments:d,mediaSequence:d.length?d[0].number:1};return c.contentProtection&&(f.contentProtection=c.contentProtection),e&&(f.sidx=e),f},xe=function $l(a,b){var c;if(void 0===b&&(b={}),!a.length)return{};var d=a[0].attributes,e=d.sourceDuration,f=d.type,g=void 0===f?'static':f,h=d.suggestedPresentationDelay,i=d.minimumUpdatePeriod,j=void 0===i?0:i,k=function r(a){var b=a.attributes;return'video/mp4'===b.mimeType||'video'===b.contentType},l=function s(a){var b=a.attributes;return'audio/mp4'===b.mimeType||'audio'===b.contentType},m=function t(a){var b=a.attributes;return'text/vtt'===b.mimeType||'text'===b.contentType},n=qe(a.filter(k)).map(we),o=qe(a.filter(l)),p=a.filter(m),q={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(c={AUDIO:{},VIDEO:{}},c['CLOSED-CAPTIONS']={},c.SUBTITLES={},c),uri:'',duration:e,playlists:re(n,b),minimumUpdatePeriod:1e3*j};return'dynamic'===g&&(q.suggestedPresentationDelay=h),o.length&&(q.mediaGroups.AUDIO.audio=ue(o,b)),p.length&&(q.mediaGroups.SUBTITLES.subs=ve(p,b)),q},ye=function _l(a,b,c){var d=a.NOW,e=a.clientOffset,f=a.availabilityStartTime,g=a.timescale,h=void 0===g?1:g,i=a.start,j=void 0===i?0:i,k=a.minimumUpdatePeriod,l=void 0===k?0:k,m=(d+e)/1e3,n=f+j,o=m+l,p=o-n;return Math.ceil((p*h-b)/c)},ze=function am(a,b){for(var c=a.type,d=void 0===c?'static':c,e=a.minimumUpdatePeriod,f=void 0===e?0:e,g=a.media,h=void 0===g?'':g,i=a.sourceDuration,j=a.timescale,k=void 0===j?1:j,l=a.startNumber,m=void 0===l?1:l,n=a.periodIndex,o=[],p=-1,q=0;q<b.length;q++){var r=b[q],s=r.d,t=r.r||0,u=r.t||0;0>p&&(p=u),u&&u>p&&(p=u);var v=void 0;if(0>t){var w=q+1;v=w===b.length?'dynamic'===d&&f>0&&h.indexOf('$Number$')>0?ye(a,p,s):(i*k-p)/s:(b[w].t-p)/s}else v=t+1;for(var x=m+o.length+v,y=m+o.length;x>y;)o.push({number:y,duration:s/k,time:p,timeline:n}),p+=s,y++}return o},Ae=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,Be=function bm(a){return function(b,c,d,e){if('$$'===b)return'$';if('undefined'==typeof a[c])return b;var f=''+a[c];return'RepresentationID'===c?f:(e=d?parseInt(e,10):1,f.length>=e?f:""+new Array(e-f.length+1).join('0')+f)}},Ce=function cm(a,b){return a.replace(Ae,Be(b))},De=function dm(a,b){return a.duration||b?a.duration?ne(a):ze(a,b):[{number:a.startNumber||1,duration:a.sourceDuration,time:0,timeline:a.periodIndex}]},Ee=function em(a,b){var c={RepresentationID:a.id,Bandwidth:a.bandwidth||0},d=a.initialization,e=void 0===d?{sourceURL:'',range:''}:d,f=je({baseUrl:a.baseUrl,source:Ce(e.sourceURL,c),range:e.range}),g=De(a,b);return g.map(function(b){c.Number=b.number,c.Time=b.time;var d=Ce(a.media||'',c);return{uri:d,timeline:b.timeline,duration:b.duration,resolvedUri:_c(a.baseUrl||'',d),map:f,number:b.number}})},Fe=function fm(a,b){var c=a.baseUrl,d=a.initialization,e=void 0===d?{}:d,f=je({baseUrl:c,source:e.sourceURL,range:e.range}),g=je({baseUrl:c,source:b.media,range:b.mediaRange});return g.map=f,g},Ge=function gm(a,b){var c=a.duration,d=a.segmentUrls,e=void 0===d?[]:d;if(!c&&!b||c&&b)throw new Error(ie.SEGMENT_TIME_UNSPECIFIED);var f=e.map(function(b){return Fe(a,b)}),g;c&&(g=ne(a)),b&&(g=ze(a,b));var h=g.map(function(a,b){if(f[b]){var c=f[b];return c.timeline=a.timeline,c.duration=a.duration,c.number=a.number,c}}).filter(function(a){return a});return h},He=function hm(a){var b=a.attributes,c=a.segmentInfo,d,e;c.template?(e=Ee,d=ce(b,c.template)):c.base?(e=oe,d=ce(b,c.base)):c.list&&(e=Ge,d=ce(b,c.list));var f={attributes:b};if(!e)return f;var g=e(d,c.timeline);if(d.duration){var h=d,i=h.duration,j=h.timescale,k=void 0===j?1:j;d.duration=i/k}else g.length?d.duration=g.reduce(function(a,b){return Math.max(a,Math.ceil(b.duration))},0):d.duration=0;return f.attributes=d,f.segments=g,c.base&&d.indexRange&&(f.sidx=g[0],f.segments=[]),f},Ie=function im(a){return a.map(He)},Je=function jm(a,b){return ge(a.childNodes).filter(function(a){var c=a.tagName;return c===b})},Ke=function km(a){return a.textContent.trim()},Le=function lm(a){var b=31536e3,c=2592e3,d=86400,e=3600,f=60,g=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/,h=g.exec(a);if(!h)return 0;var i=h.slice(1),j=i[0],k=i[1],l=i[2],m=i[3],n=i[4],o=i[5];return parseFloat(j||0)*b+parseFloat(k||0)*c+parseFloat(l||0)*d+parseFloat(m||0)*e+parseFloat(n||0)*f+parseFloat(o||0)},Me=function mm(a){var b=/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/;return b.test(a)&&(a+='Z'),Date.parse(a)},Ne={mediaPresentationDuration:function nm(a){return Le(a)},availabilityStartTime:function om(a){return Me(a)/1e3},minimumUpdatePeriod:function pm(a){return Le(a)},suggestedPresentationDelay:function qm(a){return Le(a)},type:function rm(a){return a},timeShiftBufferDepth:function sm(a){return Le(a)},start:function tm(a){return Le(a)},width:function um(a){return parseInt(a,10)},height:function vm(a){return parseInt(a,10)},bandwidth:function wm(a){return parseInt(a,10)},startNumber:function xm(a){return parseInt(a,10)},timescale:function ym(a){return parseInt(a,10)},duration:function zm(a){var b=parseInt(a,10);return isNaN(b)?Le(a):b},d:function Am(a){return parseInt(a,10)},t:function Bm(a){return parseInt(a,10)},r:function Cm(a){return parseInt(a,10)},DEFAULT:function Dm(a){return a}},Oe=function Em(a){return a&&a.attributes?ge(a.attributes).reduce(function(a,b){var c=Ne[b.name]||Ne.DEFAULT;return a[b.name]=c(b.value),a},{}):{}},Pe={'urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b':'org.w3.clearkey','urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed':'com.widevine.alpha','urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95':'com.microsoft.playready','urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb':'com.adobe.primetime'},Qe=function Fm(a,b){return b.length?fe(a.map(function(a){return b.map(function(b){return _c(a,Ke(b))})})):a},Re=function Gm(a){var b=Je(a,'SegmentTemplate')[0],c=Je(a,'SegmentList')[0],d=c&&Je(c,'SegmentURL').map(function(a){return ce({tag:'SegmentURL'},Oe(a))}),e=Je(a,'SegmentBase')[0],f=c||b,g=f&&Je(f,'SegmentTimeline')[0],h=c||e||b,i=h&&Je(h,'Initialization')[0],j=b&&Oe(b);j&&i?j.initialization=i&&Oe(i):j&&j.initialization&&(j.initialization={sourceURL:j.initialization});var k={template:j,timeline:g&&Je(g,'S').map(function(a){return Oe(a)}),list:c&&ce(Oe(c),{segmentUrls:d,initialization:Oe(i)}),base:e&&ce(Oe(e),{initialization:Oe(i)})};return Object.keys(k).forEach(function(a){k[a]||delete k[a]}),k},Se=function Hm(a,b,c){return function(d){var e=Je(d,'BaseURL'),f=Qe(b,e),g=ce(a,Oe(d)),h=Re(d);return f.map(function(a){return{segmentInfo:ce(c,h),attributes:ce(g,{baseUrl:a})}})}},Te=function Im(a){return a.reduce(function(a,b){var c=Oe(b),d=Pe[c.schemeIdUri];if(d){a[d]={attributes:c};var e=Je(b,'cenc:pssh')[0];if(e){var f=Ke(e),g=f&&cd(f);a[d].pssh=g}}return a},{})},Ue=function Jm(a,b,c){return function(d){var e=Oe(d),f=Qe(b,Je(d,'BaseURL')),g=Je(d,'Role')[0],h={role:Oe(g)},i=ce(a,e,h),j=Te(Je(d,'ContentProtection'));Object.keys(j).length&&(i=ce(i,{contentProtection:j}));var k=Re(d),l=Je(d,'Representation'),m=ce(c,k);return fe(l.map(Se(i,f,m)))}},Ve=function Km(a,b){return function(c,d){var e=Qe(b,Je(c,'BaseURL')),f=Oe(c),g=parseInt(f.id,10),h=va.isNaN(g)?d:g,i=ce(a,{periodIndex:h}),j=Je(c,'AdaptationSet'),k=Re(c);return fe(j.map(Ue(i,e,k)))}},We=function Lm(a,b){void 0===b&&(b={});var c=b,d=c.manifestUri,e=void 0===d?'':d,f=c.NOW,g=void 0===f?Date.now():f,h=c.clientOffset,i=void 0===h?0:h,j=Je(a,'Period');if(!j.length)throw new Error(ie.INVALID_NUMBER_OF_PERIOD);var k=Oe(a),l=Qe([e],Je(a,'BaseURL'));return k.sourceDuration=k.mediaPresentationDuration||0,k.NOW=g,k.clientOffset=i,fe(j.map(Ve(k,l)))},Xe=function Mm(a){if(''===a)throw new Error(ie.DASH_EMPTY_MANIFEST);var b=new ae,c=b.parseFromString(a,'application/xml'),d=c&&'MPD'===c.documentElement.tagName?c.documentElement:null;if(!d||d&&d.getElementsByTagName('parsererror').length>0)throw new Error(ie.DASH_INVALID_XML);return d},Ye=function Nm(a){var b=Je(a,'UTCTiming')[0];if(!b)return null;var c=Oe(b);switch(c.schemeIdUri){case'urn:mpeg:dash:utc:http-head:2014':case'urn:mpeg:dash:utc:http-head:2012':c.method='HEAD';break;case'urn:mpeg:dash:utc:http-xsdate:2014':case'urn:mpeg:dash:utc:http-iso:2014':case'urn:mpeg:dash:utc:http-xsdate:2012':case'urn:mpeg:dash:utc:http-iso:2012':c.method='GET';break;case'urn:mpeg:dash:utc:direct:2014':case'urn:mpeg:dash:utc:direct:2012':c.method='DIRECT',c.value=Date.parse(c.value);break;case'urn:mpeg:dash:utc:http-ntp:2014':case'urn:mpeg:dash:utc:ntp:2014':case'urn:mpeg:dash:utc:sntp:2014':default:throw new Error(ie.UNSUPPORTED_UTC_TIMING_SCHEME)}return c},Ze=function Om(a,b){return void 0===b&&(b={}),xe(Ie(We(Xe(a),b)),b.sidxMapping)},$e=function Pm(a){return Ye(Xe(a))},_e=function Qm(a){return a>>>0},af=function Rm(a){return('00'+a.toString(16)).slice(-2)},bf={toUnsigned:_e,toHexString:af},cf,df,ef=bf.toUnsigned,ff=function Sm(a){return new Date(1e3*a-20828448e5)},gf=function Tm(a){return{isLeading:(12&a[0])>>>2,dependsOn:3&a[0],isDependedOn:(192&a[1])>>>6,hasRedundancy:(48&a[1])>>>4,paddingValue:(14&a[1])>>>1,isNonSyncSample:1&a[1],degradationPriority:a[2]<<8|a[3]}},hf=function Um(a){var b='';return b+=String.fromCharCode(a[0]),b+=String.fromCharCode(a[1]),b+=String.fromCharCode(a[2]),b+=String.fromCharCode(a[3]),b},jf=function Vm(a,b){var c=[],d,e,f,g,h;if(!b.length)return null;for(d=0;d<a.byteLength;)e=ef(a[d]<<24|a[d+1]<<16|a[d+2]<<8|a[d+3]),f=hf(a.subarray(d+4,d+8)),g=e>1?d+e:a.byteLength,f===b[0]&&(1===b.length?c.push(a.subarray(d+8,g)):(h=Vm(a.subarray(d+8,g),b.slice(1)),h.length&&(c=c.concat(h)))),d=g;return c},kf=function Wm(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c=[],d,e;for(d=0;d+4<a.length;d+=e)if(e=b.getUint32(d),d+=4,0>=e)c.push('<span style=\'color:red;\'>MALFORMED DATA</span>');else switch(31&a[d]){case 1:c.push('slice_layer_without_partitioning_rbsp');break;case 5:c.push('slice_layer_without_partitioning_rbsp_idr');break;case 6:c.push('sei_rbsp');break;case 7:c.push('seq_parameter_set_rbsp');break;case 8:c.push('pic_parameter_set_rbsp');break;case 9:c.push('access_unit_delimiter_rbsp');break;default:c.push('UNKNOWN NAL - '+a[d]&31)}return c},lf={avc1:function Xm(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength);return{dataReferenceIndex:b.getUint16(6),width:b.getUint16(24),height:b.getUint16(26),horizresolution:b.getUint16(28)+b.getUint16(30)/16,vertresolution:b.getUint16(32)+b.getUint16(34)/16,frameCount:b.getUint16(40),depth:b.getUint16(74),config:cf(a.subarray(78,a.byteLength))}},avcC:function Ym(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c={configurationVersion:a[0],avcProfileIndication:a[1],profileCompatibility:a[2],avcLevelIndication:a[3],lengthSizeMinusOne:3&a[4],sps:[],pps:[]},d=31&a[5],e,f,g,h;for(g=6,h=0;d>h;h++)f=b.getUint16(g),g+=2,c.sps.push(new Uint8Array(a.subarray(g,g+f))),g+=f;for(e=a[g],g++,h=0;e>h;h++)f=b.getUint16(g),g+=2,c.pps.push(new Uint8Array(a.subarray(g,g+f))),g+=f;return c},btrt:function Zm(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength);return{bufferSizeDB:b.getUint32(0),maxBitrate:b.getUint32(4),avgBitrate:b.getUint32(8)}},esds:function $m(a){return{version:a[0],flags:new Uint8Array(a.subarray(1,4)),esId:a[6]<<8|a[7],streamPriority:31&a[8],decoderConfig:{objectProfileIndication:a[11],streamType:a[12]>>>2&63,bufferSize:a[13]<<16|a[14]<<8|a[15],maxBitrate:a[16]<<24|a[17]<<16|a[18]<<8|a[19],avgBitrate:a[20]<<24|a[21]<<16|a[22]<<8|a[23],decoderConfigDescriptor:{tag:a[24],length:a[25],audioObjectType:a[26]>>>3&31,samplingFrequencyIndex:(7&a[26])<<1|a[27]>>>7&1,channelConfiguration:a[27]>>>3&15}}}},ftyp:function _m(a){for(var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c={majorBrand:hf(a.subarray(0,4)),minorVersion:b.getUint32(4),compatibleBrands:[]},d=8;d<a.byteLength;)c.compatibleBrands.push(hf(a.subarray(d,d+4))),d+=4;return c},dinf:function an(a){return{boxes:cf(a)}},dref:function bn(a){return{version:a[0],flags:new Uint8Array(a.subarray(1,4)),dataReferences:cf(a.subarray(8))}},hdlr:function cn(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c={version:b.getUint8(0),flags:new Uint8Array(a.subarray(1,4)),handlerType:hf(a.subarray(8,12)),name:''},d=8;for(d=24;d<a.byteLength;d++){if(0===a[d]){d++;break}c.name+=String.fromCharCode(a[d])}return c.name=decodeURIComponent(escape(c.name)),c},mdat:function dn(a){return{byteLength:a.byteLength,nals:kf(a)}},mdhd:function en(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c=4,d,e={version:b.getUint8(0),flags:new Uint8Array(a.subarray(1,4)),language:''};return 1===e.version?(c+=4,e.creationTime=ff(b.getUint32(c)),c+=8,e.modificationTime=ff(b.getUint32(c)),c+=4,e.timescale=b.getUint32(c),c+=8,e.duration=b.getUint32(c)):(e.creationTime=ff(b.getUint32(c)),c+=4,e.modificationTime=ff(b.getUint32(c)),c+=4,e.timescale=b.getUint32(c),c+=4,e.duration=b.getUint32(c)),c+=4,d=b.getUint16(c),e.language+=String.fromCharCode((d>>10)+96),e.language+=String.fromCharCode(((992&d)>>5)+96),e.language+=String.fromCharCode((31&d)+96),e},mdia:function fn(a){return{boxes:cf(a)}},mfhd:function gn(a){return{version:a[0],flags:new Uint8Array(a.subarray(1,4)),sequenceNumber:a[4]<<24|a[5]<<16|a[6]<<8|a[7]}},minf:function hn(a){return{boxes:cf(a)}},mp4a:function jn(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c={dataReferenceIndex:b.getUint16(6),channelcount:b.getUint16(16),samplesize:b.getUint16(18),samplerate:b.getUint16(24)+b.getUint16(26)/65536};return a.byteLength>28&&(c.streamDescriptor=cf(a.subarray(28))[0]),c},moof:function kn(a){return{boxes:cf(a)}},moov:function ln(a){return{boxes:cf(a)}},mvex:function mn(a){return{boxes:cf(a)}},mvhd:function nn(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c=4,d={version:b.getUint8(0),flags:new Uint8Array(a.subarray(1,4))};return 1===d.version?(c+=4,d.creationTime=ff(b.getUint32(c)),c+=8,d.modificationTime=ff(b.getUint32(c)),c+=4,d.timescale=b.getUint32(c),c+=8,d.duration=b.getUint32(c)):(d.creationTime=ff(b.getUint32(c)),c+=4,d.modificationTime=ff(b.getUint32(c)),c+=4,d.timescale=b.getUint32(c),c+=4,d.duration=b.getUint32(c)),c+=4,d.rate=b.getUint16(c)+b.getUint16(c+2)/16,c+=4,d.volume=b.getUint8(c)+b.getUint8(c+1)/8,c+=2,c+=2,c+=8,d.matrix=new Uint32Array(a.subarray(c,c+36)),c+=36,c+=24,d.nextTrackId=b.getUint32(c),d},pdin:function on(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength);return{version:b.getUint8(0),flags:new Uint8Array(a.subarray(1,4)),rate:b.getUint32(4),initialDelay:b.getUint32(8)}},sdtp:function pn(a){var b={version:a[0],flags:new Uint8Array(a.subarray(1,4)),samples:[]},c;for(c=4;c<a.byteLength;c++)b.samples.push({dependsOn:(48&a[c])>>4,isDependedOn:(12&a[c])>>2,hasRedundancy:3&a[c]});return b},sidx:function qn(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c={version:a[0],flags:new Uint8Array(a.subarray(1,4)),references:[],referenceId:b.getUint32(4),timescale:b.getUint32(8),earliestPresentationTime:b.getUint32(12),firstOffset:b.getUint32(16)},d=b.getUint16(22),e;for(e=24;d;e+=12,d--)c.references.push({referenceType:(128&a[e])>>>7,referencedSize:2147483647&b.getUint32(e),subsegmentDuration:b.getUint32(e+4),startsWithSap:!!(128&a[e+8]),sapType:(112&a[e+8])>>>4,sapDeltaTime:268435455&b.getUint32(e+8)});return c},smhd:function rn(a){return{version:a[0],flags:new Uint8Array(a.subarray(1,4)),balance:a[4]+a[5]/256}},stbl:function sn(a){return{boxes:cf(a)}},stco:function tn(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c={version:a[0],flags:new Uint8Array(a.subarray(1,4)),chunkOffsets:[]},d=b.getUint32(4),e;for(e=8;d;e+=4,d--)c.chunkOffsets.push(b.getUint32(e));return c},stsc:function un(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c=b.getUint32(4),d={version:a[0],flags:new Uint8Array(a.subarray(1,4)),sampleToChunks:[]},e;for(e=8;c;e+=12,c--)d.sampleToChunks.push({firstChunk:b.getUint32(e),samplesPerChunk:b.getUint32(e+4),sampleDescriptionIndex:b.getUint32(e+8)});return d},stsd:function vn(a){return{version:a[0],flags:new Uint8Array(a.subarray(1,4)),sampleDescriptions:cf(a.subarray(8))}},stsz:function wn(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c={version:a[0],flags:new Uint8Array(a.subarray(1,4)),sampleSize:b.getUint32(4),entries:[]},d;for(d=12;d<a.byteLength;d+=4)c.entries.push(b.getUint32(d));return c},stts:function xn(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c={version:a[0],flags:new Uint8Array(a.subarray(1,4)),timeToSamples:[]},d=b.getUint32(4),e;for(e=8;d;e+=8,d--)c.timeToSamples.push({sampleCount:b.getUint32(e),sampleDelta:b.getUint32(e+4)});return c},styp:function yn(a){return lf.ftyp(a)},tfdt:function zn(a){var b={version:a[0],flags:new Uint8Array(a.subarray(1,4)),baseMediaDecodeTime:ef(a[4]<<24|a[5]<<16|a[6]<<8|a[7])};return 1===b.version&&(b.baseMediaDecodeTime*=Math.pow(2,32),b.baseMediaDecodeTime+=ef(a[8]<<24|a[9]<<16|a[10]<<8|a[11])),b},tfhd:function An(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c={version:a[0],flags:new Uint8Array(a.subarray(1,4)),trackId:b.getUint32(4)},d=1&c.flags[2],e=2&c.flags[2],f=8&c.flags[2],g=16&c.flags[2],h=32&c.flags[2],i=65536&c.flags[0],j=131072&c.flags[0],k;return k=8,d&&(k+=4,c.baseDataOffset=b.getUint32(12),k+=4),e&&(c.sampleDescriptionIndex=b.getUint32(k),k+=4),f&&(c.defaultSampleDuration=b.getUint32(k),k+=4),g&&(c.defaultSampleSize=b.getUint32(k),k+=4),h&&(c.defaultSampleFlags=b.getUint32(k)),i&&(c.durationIsEmpty=!0),!d&&j&&(c.baseDataOffsetIsMoof=!0),c},tkhd:function Bn(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c=4,d={version:b.getUint8(0),flags:new Uint8Array(a.subarray(1,4))};return 1===d.version?(c+=4,d.creationTime=ff(b.getUint32(c)),c+=8,d.modificationTime=ff(b.getUint32(c)),c+=4,d.trackId=b.getUint32(c),c+=4,c+=8,d.duration=b.getUint32(c)):(d.creationTime=ff(b.getUint32(c)),c+=4,d.modificationTime=ff(b.getUint32(c)),c+=4,d.trackId=b.getUint32(c),c+=4,c+=4,d.duration=b.getUint32(c)),c+=4,c+=8,d.layer=b.getUint16(c),c+=2,d.alternateGroup=b.getUint16(c),c+=2,d.volume=b.getUint8(c)+b.getUint8(c+1)/8,c+=2,c+=2,d.matrix=new Uint32Array(a.subarray(c,c+36)),c+=36,d.width=b.getUint16(c)+b.getUint16(c+2)/16,c+=4,d.height=b.getUint16(c)+b.getUint16(c+2)/16,d},traf:function Cn(a){return{boxes:cf(a)}},trak:function Dn(a){return{boxes:cf(a)}},trex:function En(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength);return{version:a[0],flags:new Uint8Array(a.subarray(1,4)),trackId:b.getUint32(4),defaultSampleDescriptionIndex:b.getUint32(8),defaultSampleDuration:b.getUint32(12),defaultSampleSize:b.getUint32(16),sampleDependsOn:3&a[20],sampleIsDependedOn:(192&a[21])>>6,sampleHasRedundancy:(48&a[21])>>4,samplePaddingValue:(14&a[21])>>1,sampleIsDifferenceSample:!!(1&a[21]),sampleDegradationPriority:b.getUint16(22)}},trun:function Fn(a){var b={version:a[0],flags:new Uint8Array(a.subarray(1,4)),samples:[]},c=new DataView(a.buffer,a.byteOffset,a.byteLength),d=1&b.flags[2],e=4&b.flags[2],f=1&b.flags[1],g=2&b.flags[1],h=4&b.flags[1],i=8&b.flags[1],j=c.getUint32(4),k=8,l;for(d&&(b.dataOffset=c.getInt32(k),k+=4),e&&j&&(l={flags:gf(a.subarray(k,k+4))},k+=4,f&&(l.duration=c.getUint32(k),k+=4),g&&(l.size=c.getUint32(k),k+=4),i&&(l.compositionTimeOffset=c.getUint32(k),k+=4),b.samples.push(l),j--);j--;)l={},f&&(l.duration=c.getUint32(k),k+=4),g&&(l.size=c.getUint32(k),k+=4),h&&(l.flags=gf(a.subarray(k,k+4)),k+=4),i&&(l.compositionTimeOffset=c.getUint32(k),k+=4),b.samples.push(l);return b},'url ':function Gn(a){return{version:a[0],flags:new Uint8Array(a.subarray(1,4))}},vmhd:function Hn(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength);return{version:a[0],flags:new Uint8Array(a.subarray(1,4)),graphicsmode:b.getUint16(4),opcolor:new Uint16Array([b.getUint16(6),b.getUint16(8),b.getUint16(10)])}}};cf=function In(a){for(var b=0,c=[],d,e,f,g,h,i=new ArrayBuffer(a.length),j=new Uint8Array(i),k=0;k<a.length;++k)j[k]=a[k];for(d=new DataView(i);b<a.byteLength;)e=d.getUint32(b),f=hf(a.subarray(b+4,b+8)),g=e>1?b+e:a.byteLength,h=(lf[f]||function(a){return{data:a}})(a.subarray(b+8,g)),h.size=e,h.type=f,c.push(h),b=g;return c},df=function Jn(a,b){
var c;return b=b||0,c=new Array(2*b+1).join(' '),a.map(function(a,d){return c+a.type+'\n'+Object.keys(a).filter(function(a){return'type'!==a&&'boxes'!==a}).map(function(b){var d=c+'  '+b+': ',e=a[b];if(e instanceof Uint8Array||e instanceof Uint32Array){var f=Array.prototype.slice.call(new Uint8Array(e.buffer,e.byteOffset,e.byteLength)).map(function(a){return' '+('00'+a.toString(16)).slice(-2)}).join('').match(/.{1,24}/g);return f?1===f.length?d+'<'+f.join('').slice(1)+'>':d+'<\n'+f.map(function(a){return c+'  '+a}).join('\n')+'\n'+c+'  >':d+'<>'}return d+JSON.stringify(e,null,2).split('\n').map(function(a,b){return 0===b?a:c+'  '+a}).join('\n')}).join('\n')+(a.boxes?'\n'+df(a.boxes,b+1):'')}).join('\n')};var mf={inspect:cf,textify:df,parseType:hf,findBox:jf,parseTraf:lf.traf,parseTfdt:lf.tfdt,parseHdlr:lf.hdlr,parseTfhd:lf.tfhd,parseTrun:lf.trun,parseSidx:lf.sidx},nf=b.EventTarget,of=b.mergeOptions,pf=function Kn(a,b){for(var c=void 0,d=of(a,{duration:b.duration,minimumUpdatePeriod:b.minimumUpdatePeriod}),e=0;e<b.playlists.length;e++){var f=Qa(d,b.playlists[e]);f?d=f:c=!0}return Na(b,function(a,b,e,f){if(a.playlists&&a.playlists.length){var g=a.playlists[0].id,h=Qa(d,a.playlists[0]);h&&(d=h,d.mediaGroups[b][e][f].playlists[0]=d.playlists[g],c=!1)}}),c?null:d},qf=function Ln(a){var b=a.byterange.offset+a.byterange.length-1;return a.uri+'-'+a.byterange.offset+'-'+b},rf=function Mn(a,b){var c=Boolean(!a.map&&!b.map),d=c||Boolean(a.map&&b.map&&a.map.byterange.offset===b.map.byterange.offset&&a.map.byterange.length===b.map.byterange.length);return d&&a.uri===b.uri&&a.byterange.offset===b.byterange.offset&&a.byterange.length===b.byterange.length},sf=function Nn(a,b){var c={};for(var d in a){var e=a[d],f=e.sidx;if(f){var g=qf(f);if(!b[g])break;var h=b[g].sidxInfo;rf(h,f)&&(c[g]=b[g])}}return c},tf=function On(a,b,c,d){var e=Ze(a,{manifestUri:b,clientOffset:c}),f=sf(e.playlists,d),g=f;return Na(e,function(a,b,c,e){if(a.playlists&&a.playlists.length){var f=a.playlists;g=of(g,sf(f,d))}}),g},uf=function Pn(a,c,d,e,f){var g={uri:xa(e.handleManifestRedirects,a.resolvedUri),byterange:a.byterange,playlist:c},h=b.mergeOptions(g,{responseType:'arraybuffer',headers:wb(g)});return d(h,f)},vf=function(a){function b(a,c){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},e=arguments[3];Ea(this,b);var f=Ia(this,(b.__proto__||Object.getPrototypeOf(b)).call(this)),g=d.withCredentials,h=void 0===g?!1:g,i=d.handleManifestRedirects,j=void 0===i?!1:i;if(f.hls_=c,f.withCredentials=h,f.handleManifestRedirects=j,!a)throw new Error('A non-empty playlist URL or playlist is required');return f.on('minimumUpdatePeriod',function(){f.refreshXml_()}),f.on('mediaupdatetimeout',function(){f.refreshMedia_(f.media().id)}),f.state='HAVE_NOTHING',f.loadedPlaylists_={},'string'==typeof a?(f.srcUrl=a,f.sidxMapping_={},Ia(f)):(f.setupChildLoader(e,a),f)}return Ha(b,a),Fa(b,[{key:'setupChildLoader',value:function c(a,b){this.masterPlaylistLoader_=a,this.childPlaylist_=b}},{key:'dispose',value:function d(){this.trigger('dispose'),this.stopRequest(),this.loadedPlaylists_={},va.clearTimeout(this.minimumUpdatePeriodTimeout_),va.clearTimeout(this.mediaRequest_),va.clearTimeout(this.mediaUpdateTimeout),this.off()}},{key:'hasPendingRequest',value:function e(){return this.request||this.mediaRequest_}},{key:'stopRequest',value:function f(){if(this.request){var a=this.request;this.request=null,a.onreadystatechange=null,a.abort()}}},{key:'sidxRequestFinished_',value:function g(a,b,c,d){var e=this;return function(f,g){if(e.request){if(e.request=null,f)return e.error={status:g.status,message:'DASH playlist request error at URL: '+a.uri,response:g.response,code:2},c&&(e.state=c),e.trigger('error'),d(b,null);var h=new Uint8Array(g.response),i=mf.parseSidx(h.subarray(8));return d(b,i)}}}},{key:'media',value:function h(a){var b=this;if(!a)return this.media_;if('HAVE_NOTHING'===this.state)throw new Error('Cannot switch media playlist from '+this.state);var c=this.state;if('string'==typeof a){if(!this.master.playlists[a])throw new Error('Unknown playlist URI: '+a);a=this.master.playlists[a]}var d=!this.media_||a.id!==this.media_.id;if(d&&this.loadedPlaylists_[a.id]&&this.loadedPlaylists_[a.id].endList)return this.state='HAVE_METADATA',this.media_=a,d&&(this.trigger('mediachanging'),this.trigger('mediachange')),void 0;if(d){if(this.media_&&this.trigger('mediachanging'),!a.sidx)return this.mediaRequest_=va.setTimeout(this.haveMetadata.bind(this,{startingState:c,playlist:a}),0),void 0;var e=void 0,f=void 0;this.masterPlaylistLoader_?(e=this.masterPlaylistLoader_.master,f=this.masterPlaylistLoader_.sidxMapping_):(e=this.master,f=this.sidxMapping_);var g=qf(a.sidx);f[g]={sidxInfo:a.sidx},this.request=uf(a.sidx,a,this.hls_.xhr,{handleManifestRedirects:this.handleManifestRedirects},this.sidxRequestFinished_(a,e,c,function(d,e){if(!d||!e)throw new Error('failed to request sidx');f[g].sidx=e,b.haveMetadata({startingState:c,playlist:d.playlists[a.id]})}))}}},{key:'haveMetadata',value:function i(a){var b=a.startingState,c=a.playlist;this.state='HAVE_METADATA',this.loadedPlaylists_[c.id]=c,this.mediaRequest_=null,this.refreshMedia_(c.id),'HAVE_MASTER'===b?this.trigger('loadedmetadata'):this.trigger('mediachange')}},{key:'pause',value:function j(){this.stopRequest(),va.clearTimeout(this.mediaUpdateTimeout),va.clearTimeout(this.minimumUpdatePeriodTimeout_),'HAVE_NOTHING'===this.state&&(this.started=!1)}},{key:'load',value:function k(a){var b=this;va.clearTimeout(this.mediaUpdateTimeout),va.clearTimeout(this.minimumUpdatePeriodTimeout_);var c=this.media();if(a){var d=c?c.targetDuration/2*1e3:5e3;return this.mediaUpdateTimeout=va.setTimeout(function(){return b.load()},d),void 0}return this.started?(c&&!c.endList?this.trigger('mediaupdatetimeout'):this.trigger('loadedplaylist'),void 0):(this.start(),void 0)}},{key:'parseMasterXml',value:function l(){var a=Ze(this.masterXml_,{manifestUri:this.srcUrl,clientOffset:this.clientOffset_,sidxMapping:this.sidxMapping_});a.uri=this.srcUrl;for(var b=0;b<a.playlists.length;b++){var c='placeholder-uri-'+b;a.playlists[b].uri=c}return Na(a,function(b,c,d,e){if(b.playlists&&b.playlists.length){var f='placeholder-uri-'+c+'-'+d+'-'+e,g=Ra(0,f);b.playlists[0].uri=f,b.playlists[0].id=g,a.playlists[g]=b.playlists[0],a.playlists[f]=b.playlists[0]}}),Sa(a),Ta(a),a}},{key:'start',value:function m(){var a=this;return this.started=!0,this.masterPlaylistLoader_?(this.mediaRequest_=va.setTimeout(this.haveMaster_.bind(this),0),void 0):(this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(b,c){if(a.request){if(a.request=null,b)return a.error={status:c.status,message:'DASH playlist request error at URL: '+a.srcUrl,responseText:c.responseText,code:2},'HAVE_NOTHING'===a.state&&(a.started=!1),a.trigger('error');a.masterXml_=c.responseText,c.responseHeaders&&c.responseHeaders.date?a.masterLoaded_=Date.parse(c.responseHeaders.date):a.masterLoaded_=Date.now(),a.srcUrl=xa(a.handleManifestRedirects,a.srcUrl,c),a.syncClientServerClock_(a.onClientServerClockSync_.bind(a))}}),void 0)}},{key:'syncClientServerClock_',value:function n(a){var b=this,c=$e(this.masterXml_);return null===c?(this.clientOffset_=this.masterLoaded_-Date.now(),a()):'DIRECT'===c.method?(this.clientOffset_=c.value-Date.now(),a()):(this.request=this.hls_.xhr({uri:wa(this.srcUrl,c.value),method:c.method,withCredentials:this.withCredentials},function(d,e){if(b.request){if(d)return b.clientOffset_=b.masterLoaded_-Date.now(),a();var f=void 0;f='HEAD'===c.method?e.responseHeaders&&e.responseHeaders.date?Date.parse(e.responseHeaders.date):b.masterLoaded_:Date.parse(e.responseText),b.clientOffset_=f-Date.now(),a()}}),void 0)}},{key:'haveMaster_',value:function o(){this.state='HAVE_MASTER',this.mediaRequest_=null,this.masterPlaylistLoader_?this.media_||this.media(this.childPlaylist_):(this.master=this.parseMasterXml(),this.trigger('loadedplaylist'))}},{key:'onClientServerClockSync_',value:function p(){var a=this;this.haveMaster_(),this.hasPendingRequest()||this.media_||this.media(this.master.playlists[0]),this.master&&this.master.minimumUpdatePeriod&&(this.minimumUpdatePeriodTimeout_=va.setTimeout(function(){a.trigger('minimumUpdatePeriod')},this.master.minimumUpdatePeriod))}},{key:'refreshXml_',value:function q(){var a=this;this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(b,c){if(a.request){if(a.request=null,b)return a.error={status:c.status,message:'DASH playlist request error at URL: '+a.srcUrl,responseText:c.responseText,code:2},'HAVE_NOTHING'===a.state&&(a.started=!1),a.trigger('error');a.masterXml_=c.responseText,a.sidxMapping_=tf(a.masterXml_,a.srcUrl,a.clientOffset_,a.sidxMapping_);var d=a.parseMasterXml(),e=pf(a.master,d),f=a.media().sidx;if(e)if(f){var g=qf(f);if(!a.sidxMapping_[g]){var h=a.media();a.request=uf(h.sidx,h,a.hls_.xhr,{handleManifestRedirects:a.handleManifestRedirects},a.sidxRequestFinished_(h,d,a.state,function(b,c){if(!b||!c)throw new Error('failed to request sidx on minimumUpdatePeriod');a.sidxMapping_[g].sidx=c,a.minimumUpdatePeriodTimeout_=va.setTimeout(function(){a.trigger('minimumUpdatePeriod')},a.master.minimumUpdatePeriod),a.refreshMedia_(a.media().id)}))}}else a.master=e;a.minimumUpdatePeriodTimeout_=va.setTimeout(function(){a.trigger('minimumUpdatePeriod')},a.master.minimumUpdatePeriod)}})}},{key:'refreshMedia_',value:function r(a){var b=this;if(!a)throw new Error('refreshMedia_ must take a media id');var c=void 0,d=void 0;this.masterPlaylistLoader_?(c=this.masterPlaylistLoader_.master,d=this.masterPlaylistLoader_.parseMasterXml()):(c=this.master,d=this.parseMasterXml());var e=pf(c,d);e?(this.masterPlaylistLoader_?this.masterPlaylistLoader_.master=e:this.master=e,this.media_=e.playlists[a]):(this.media_=d.playlists[a],this.trigger('playlistunchanged')),this.media().endList||(this.mediaUpdateTimeout=va.setTimeout(function(){b.trigger('mediaupdatetimeout')},Ua(this.media(),!!e))),this.trigger('loadedplaylist')}}]),b}(nf),wf=function Qn(a){return b.log.debug?b.log.debug.bind(b,'VHS:',a+' >'):function(){}},xf=function(){function a(b,c,d,e){Ea(this,a),this.callbacks_=[],this.pendingCallback_=null,this.timestampOffset_=0,this.mediaSource=b,this.processedAppend_=!1,this.type_=d,this.mimeType_=c,this.logger_=wf('SourceUpdater['+d+']['+c+']'),'closed'===b.readyState?b.addEventListener('sourceopen',this.createSourceBuffer_.bind(this,c,e)):this.createSourceBuffer_(c,e)}return Fa(a,[{key:'createSourceBuffer_',value:function c(a,b){var c=this;return this.sourceBuffer_=this.mediaSource.addSourceBuffer(a),this.logger_('created SourceBuffer'),b&&(b.trigger('sourcebufferadded'),this.mediaSource.sourceBuffers.length<2)?(b.on('sourcebufferadded',function(){c.start_()}),void 0):(this.start_(),void 0)}},{key:'start_',value:function d(){var a=this;this.started_=!0,this.onUpdateendCallback_=function(){var b=a.pendingCallback_;a.pendingCallback_=null,a.sourceBuffer_.removing=!1,a.logger_('buffered ['+gc(a.buffered())+']'),b&&b(),a.runCallback_()},this.sourceBuffer_.addEventListener('updateend',this.onUpdateendCallback_),this.runCallback_()}},{key:'abort',value:function e(a){var b=this;this.processedAppend_&&this.queueCallback_(function(){b.sourceBuffer_.abort()},a)}},{key:'appendBuffer',value:function f(a,b){var c=this;this.processedAppend_=!0,this.queueCallback_(function(){a.videoSegmentTimingInfoCallback&&c.sourceBuffer_.addEventListener('videoSegmentTimingInfo',a.videoSegmentTimingInfoCallback),c.sourceBuffer_.appendBuffer(a.bytes)},function(){a.videoSegmentTimingInfoCallback&&c.sourceBuffer_.removeEventListener('videoSegmentTimingInfo',a.videoSegmentTimingInfoCallback),b()})}},{key:'buffered',value:function g(){return this.sourceBuffer_?this.sourceBuffer_.buffered:b.createTimeRanges()}},{key:'remove',value:function h(a,b){var c=this,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:na;this.processedAppend_&&this.queueCallback_(function(){c.logger_('remove ['+a+' => '+b+']'),c.sourceBuffer_.removing=!0,c.sourceBuffer_.remove(a,b)},d)}},{key:'updating',value:function i(){return!this.sourceBuffer_||this.sourceBuffer_.updating||!!this.pendingCallback_&&this.pendingCallback_!==na}},{key:'timestampOffset',value:function j(a){var b=this;return'undefined'!=typeof a&&(this.queueCallback_(function(){b.sourceBuffer_.timestampOffset=a,b.runCallback_()}),this.timestampOffset_=a),this.timestampOffset_}},{key:'queueCallback_',value:function k(a,b){this.callbacks_.push([a.bind(this),b]),this.runCallback_()}},{key:'runCallback_',value:function l(){var a=void 0;!this.updating()&&this.callbacks_.length&&this.started_&&(a=this.callbacks_.shift(),this.pendingCallback_=a[1],a[0]())}},{key:'dispose',value:function m(){var a=this,b=function c(){a.sourceBuffer_&&'open'===a.mediaSource.readyState&&a.sourceBuffer_.abort(),a.sourceBuffer_.removeEventListener('updateend',c)};this.sourceBuffer_.removeEventListener('updateend',this.onUpdateendCallback_),this.sourceBuffer_.removing?this.sourceBuffer_.addEventListener('updateend',b):b()}}]),a}(),yf={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,BUFFER_LOW_WATER_LINE_RATE:1},zf=bf.toUnsigned,Af=bf.toHexString,Bf,Cf,Df,Ef,Ff;Bf=function Rn(a){var b={},c=mf.findBox(a,['moov','trak']);return c.reduce(function(a,b){var c,d,e,f,g;return c=mf.findBox(b,['tkhd'])[0],c?(d=c[0],e=0===d?12:20,f=zf(c[e]<<24|c[e+1]<<16|c[e+2]<<8|c[e+3]),g=mf.findBox(b,['mdia','mdhd'])[0],g?(d=g[0],e=0===d?12:20,a[f]=zf(g[e]<<24|g[e+1]<<16|g[e+2]<<8|g[e+3]),a):null):null},b)},Cf=function Sn(a,b){var c,d,e;return c=mf.findBox(b,['moof','traf']),d=[].concat.apply([],c.map(function(b){return mf.findBox(b,['tfhd']).map(function(c){var d,e,f;return d=zf(c[4]<<24|c[5]<<16|c[6]<<8|c[7]),e=a[d]||9e4,f=mf.findBox(b,['tfdt']).map(function(a){var b,c;return b=a[0],c=zf(a[4]<<24|a[5]<<16|a[6]<<8|a[7]),1===b&&(c*=Math.pow(2,32),c+=zf(a[8]<<24|a[9]<<16|a[10]<<8|a[11])),c})[0],f=f||1/0,f/e})})),e=Math.min.apply(null,d),isFinite(e)?e:0},Df=function Tn(a,b){var c=mf.findBox(b,['moof','traf']),d=0,e=0,f;if(c&&c.length)for(var g=mf.parseTraf(c[0]),h=0;h<g.boxes.length;h++)'tfhd'===g.boxes[h].type?f=g.boxes[h].trackId:'tfdt'===g.boxes[h].type?d=g.boxes[h].baseMediaDecodeTime:'trun'===g.boxes[h].type&&g.boxes[h].samples.length&&(e=g.boxes[h].samples[0].compositionTimeOffset||0);var i=a[f]||9e4;return(d+e)/i},Ef=function Un(a){var b=mf.findBox(a,['moov','trak']),c=[];return b.forEach(function(a){var b=mf.findBox(a,['mdia','hdlr']),d=mf.findBox(a,['tkhd']);b.forEach(function(a,b){var e=mf.parseType(a.subarray(8,12)),f=d[b],g,h,i;'vide'===e&&(g=new DataView(f.buffer,f.byteOffset,f.byteLength),h=g.getUint8(0),i=0===h?g.getUint32(12):g.getUint32(20),c.push(i))})}),c},Ff=function Vn(a){var b=mf.findBox(a,['moov','trak']),c=[];return b.forEach(function(a){var b={},d=mf.findBox(a,['tkhd'])[0],e,f;d&&(e=new DataView(d.buffer,d.byteOffset,d.byteLength),f=e.getUint8(0),b.id=0===f?e.getUint32(12):e.getUint32(20));var g=mf.findBox(a,['mdia','hdlr'])[0];if(g){var h=mf.parseType(g.subarray(8,12));'vide'===h?b.type='video':'soun'===h?b.type='audio':b.type=h}var i=mf.findBox(a,['mdia','minf','stbl','stsd'])[0];if(i){var j=i.subarray(8);b.codec=mf.parseType(j.subarray(4,8));var k=mf.findBox(j,[b.codec])[0],l,m;k&&(/^[a-z]vc[1-9]$/i.test(b.codec)?(l=k.subarray(78),m=mf.parseType(l.subarray(4,8)),'avcC'===m&&l.length>11?(b.codec+='.',b.codec+=Af(l[9]),b.codec+=Af(l[10]),b.codec+=Af(l[11])):b.codec='avc1.4d400d'):/^mp4[a,v]$/i.test(b.codec)&&(l=k.subarray(28),m=mf.parseType(l.subarray(4,8)),'esds'===m&&l.length>20&&0!==l[19]?(b.codec+='.'+Af(l[19]),b.codec+='.'+Af(l[20]>>>2&63).replace(/^0/,'')):b.codec='mp4a.40.2'))}var n=mf.findBox(a,['mdia','mdhd'])[0];if(n&&d){var o=0===f?12:20;b.timescale=zf(n[o]<<24|n[o+1]<<16|n[o+2]<<8|n[o+3])}c.push(b)}),c};var Gf={findBox:mf.findBox,parseType:mf.parseType,timescale:Bf,startTime:Cf,compositionStartTime:Df,videoTrackIds:Ef,tracks:Ff},Hf={FAILURE:2,TIMEOUT:-101,ABORTED:-102},If=function Wn(a){a.forEach(function(a){a.abort()})},Jf=function Xn(a){return{bandwidth:a.bandwidth,bytesReceived:a.bytesReceived||0,roundTripTime:a.roundTripTime||0}},Kf=function Yn(a){var b=a.target,c=Date.now()-b.requestTime,d={bandwidth:1/0,bytesReceived:0,roundTripTime:c||0};return d.bytesReceived=a.loaded,d.bandwidth=Math.floor(d.bytesReceived/d.roundTripTime*8*1e3),d},Lf=function Zn(a,b){return b.timedout?{status:b.status,message:'HLS request timed-out at URL: '+b.uri,code:Hf.TIMEOUT,xhr:b}:b.aborted?{status:b.status,message:'HLS request aborted at URL: '+b.uri,code:Hf.ABORTED,xhr:b}:a?{status:b.status,message:'HLS request errored at URL: '+b.uri,code:Hf.FAILURE,xhr:b}:null},Mf=function $n(a,b){return function(c,d){var e=d.response,f=Lf(c,d);if(f)return b(f,a);if(16!==e.byteLength)return b({status:d.status,message:'Invalid HLS key at URL: '+d.uri,code:Hf.FAILURE,xhr:d},a);var g=new DataView(e);return a.key.bytes=new Uint32Array([g.getUint32(0),g.getUint32(4),g.getUint32(8),g.getUint32(12)]),b(null,a)}},Nf=function _n(a,b,c){return function(d,e){var f=e.response,g=Lf(d,e);return g?c(g,a):0===f.byteLength?c({status:e.status,message:'Empty HLS segment content at URL: '+e.uri,code:Hf.FAILURE,xhr:e},a):(a.map.bytes=new Uint8Array(e.response),b&&!b.isInitialized()&&b.init(),a.map.timescales=Gf.timescale(a.map.bytes),a.map.videoTrackIds=Gf.videoTrackIds(a.map.bytes),c(null,a))}},Of=function ao(a,b,c){return function(d,e){var f=e.response,g=Lf(d,e),h=void 0;return g?c(g,a):0===f.byteLength?c({status:e.status,message:'Empty HLS segment content at URL: '+e.uri,code:Hf.FAILURE,xhr:e},a):(a.stats=Jf(e),a.key?a.encryptedBytes=new Uint8Array(e.response):a.bytes=new Uint8Array(e.response),b&&a.map&&a.map.bytes&&(b.isInitialized()||b.init(),h=b.parse(a.bytes,a.map.videoTrackIds,a.map.timescales),h&&h.captions&&(a.captionStreams=h.captionStreams,a.fmp4Captions=h.captions)),c(null,a))}},Pf=function bo(a,b,c){var d=function f(d){if(d.data.source===b.requestId){a.removeEventListener('message',f);var e=d.data.decrypted;return b.bytes=new Uint8Array(e.bytes,e.byteOffset,e.byteLength),c(null,b)}};a.addEventListener('message',d);var e=void 0;e=b.key.bytes.slice?b.key.bytes.slice():new Uint32Array(Array.prototype.slice.call(b.key.bytes)),a.postMessage(Mb({source:b.requestId,encrypted:b.encryptedBytes,key:e,iv:b.key.iv}),[b.encryptedBytes.buffer,e.buffer])},Qf=function co(a,b,c){var d=0,e=!1;return function(f,g){return e?void 0:f?(e=!0,If(a),c(f,g)):(d+=1,d===a.length?(g.endOfAllRequests=Date.now(),g.encryptedBytes?Pf(b,g,c):c(null,g)):void 0)}},Rf=function eo(a,c){return function(d){return a.stats=b.mergeOptions(a.stats,Kf(d)),!a.stats.firstBytesReceivedAt&&a.stats.bytesReceived&&(a.stats.firstBytesReceivedAt=Date.now()),c(d,a)}},Sf=function fo(a,c,d,e,f,g,h){var i=[],j=Qf(i,d,h);if(f.key&&!f.key.bytes){var k=b.mergeOptions(c,{uri:f.key.resolvedUri,responseType:'arraybuffer'}),l=Mf(f,j),m=a(k,l);i.push(m)}if(f.map&&!f.map.bytes){var n=b.mergeOptions(c,{uri:f.map.resolvedUri,responseType:'arraybuffer',headers:wb(f.map)}),o=Nf(f,e,j),p=a(n,o);i.push(p)}var q=b.mergeOptions(c,{uri:f.resolvedUri,responseType:'arraybuffer',headers:wb(f)}),r=Of(f,e,j),s=a(q,r);return s.addEventListener('progress',Rf(f,g)),i.push(s),function(){return If(i)}},Tf=function go(a,b){var c=void 0;return a?(c=va.getComputedStyle(a),c?c[b]:''):''},Uf=function ho(a,b){var c=a.slice();a.sort(function(a,d){var e=b(a,d);return 0===e?c.indexOf(a)-c.indexOf(d):e})},Vf=function io(a,b){var c=void 0,d=void 0;return a.attributes.BANDWIDTH&&(c=a.attributes.BANDWIDTH),c=c||va.Number.MAX_VALUE,b.attributes.BANDWIDTH&&(d=b.attributes.BANDWIDTH),d=d||va.Number.MAX_VALUE,c-d},Wf=function jo(a,b){var c=void 0,d=void 0;return a.attributes.RESOLUTION&&a.attributes.RESOLUTION.width&&(c=a.attributes.RESOLUTION.width),c=c||va.Number.MAX_VALUE,b.attributes.RESOLUTION&&b.attributes.RESOLUTION.width&&(d=b.attributes.RESOLUTION.width),d=d||va.Number.MAX_VALUE,c===d&&a.attributes.BANDWIDTH&&b.attributes.BANDWIDTH?a.attributes.BANDWIDTH-b.attributes.BANDWIDTH:c-d},Xf=function ko(a,b,c,d,e){var f=a.playlists.map(function(a){var b=void 0,c=void 0,d=void 0;return b=a.attributes.RESOLUTION&&a.attributes.RESOLUTION.width,c=a.attributes.RESOLUTION&&a.attributes.RESOLUTION.height,d=a.attributes.BANDWIDTH,d=d||va.Number.MAX_VALUE,{bandwidth:d,width:b,height:c,playlist:a}});Uf(f,function(a,b){return a.bandwidth-b.bandwidth}),f=f.filter(function(a){return!rb.isIncompatible(a.playlist)});var g=f.filter(function(a){return rb.isEnabled(a.playlist)});g.length||(g=f.filter(function(a){return!rb.isDisabled(a.playlist)}));var h=g.filter(function(a){return a.bandwidth*yf.BANDWIDTH_VARIANCE<b}),i=h[h.length-1],j=h.filter(function(a){return a.bandwidth===i.bandwidth})[0];if(e===!1){var k=j||g[0]||f[0];return k?k.playlist:null}var l=h.filter(function(a){return a.width&&a.height});Uf(l,function(a,b){return a.width-b.width});var m=l.filter(function(a){return a.width===c&&a.height===d});i=m[m.length-1];var n=m.filter(function(a){return a.bandwidth===i.bandwidth})[0],o=void 0,p=void 0,q=void 0;n||(o=l.filter(function(a){return a.width>c||a.height>d}),p=o.filter(function(a){return a.width===o[0].width&&a.height===o[0].height}),i=p[p.length-1],q=p.filter(function(a){return a.bandwidth===i.bandwidth})[0]);var r=q||n||j||g[0]||f[0];return r?r.playlist:null},Yf=function lo(){var a=this.useDevicePixelRatio?va.devicePixelRatio||1:1;return Xf(this.playlists.master,this.systemBandwidth,parseInt(Tf(this.tech_.el(),'width'),10)*a,parseInt(Tf(this.tech_.el(),'height'),10)*a,this.limitRenditionByPlayerDimensions)},Zf=function mo(a){var b=a.master,c=a.currentTime,d=a.bandwidth,e=a.duration,f=a.segmentDuration,g=a.timeUntilRebuffer,h=a.currentTimeline,i=a.syncController,j=b.playlists.filter(function(a){return!rb.isIncompatible(a)}),k=j.filter(rb.isEnabled);k.length||(k=j.filter(function(a){return!rb.isDisabled(a)}));var l=k.filter(rb.hasAttribute.bind(null,'BANDWIDTH')),m=l.map(function(a){var b=i.getSyncPoint(a,e,h,c),j=b?1:2,k=rb.estimateSegmentRequestTime(f,d,a),l=k*j-g;return{playlist:a,rebufferingImpact:l}}),n=m.filter(function(a){return a.rebufferingImpact<=0});return Uf(n,function(a,b){return Vf(b.playlist,a.playlist)}),n.length?n[0]:(Uf(m,function(a,b){return a.rebufferingImpact-b.rebufferingImpact}),m[0]||null)},$f=function no(){var a=this.playlists.master.playlists.filter(rb.isEnabled);Uf(a,function(a,b){return Vf(a,b)});var b=a.filter(function(a){return Bc(a.attributes.CODECS).videoCodec});return b[0]||null},_f=function oo(a,b,c){for(var d in c)if(!a[d]){b.trigger({type:'usage',name:'hls-608'});var e=b.textTracks().getTrackById(d);e?a[d]=e:a[d]=b.addRemoteTextTrack({kind:'captions',id:d,label:d},!1).track}},ag=function po(a){var b=a.inbandTextTracks,c=a.captionArray,d=a.timestampOffset;if(c){var e=window.WebKitDataCue||window.VTTCue;c.forEach(function(a){var c=a.stream,f=a.startTime,g=a.endTime;b[c]&&(f+=d,g+=d,b[c].addCue(new e(f,g,a.text)))})}},bg=4,cg=128,dg=function qo(a){for(var b=0,c={payloadType:-1,payloadSize:0},d=0,e=0;b<a.byteLength&&a[b]!==cg;){for(;255===a[b];)d+=255,b++;for(d+=a[b++];255===a[b];)e+=255,b++;if(e+=a[b++],!c.payload&&d===bg){c.payloadType=d,c.payloadSize=e,c.payload=a.subarray(b,b+e);break}b+=e,d=0,e=0}return c},eg=function ro(a){return 181!==a.payload[0]?null:49!==(a.payload[1]<<8|a.payload[2])?null:'GA94'!==String.fromCharCode(a.payload[3],a.payload[4],a.payload[5],a.payload[6])?null:3!==a.payload[7]?null:a.payload.subarray(8,a.payload.length-1)},fg=function so(a,b){var c=[],d,e,f,g;if(!(64&b[0]))return c;for(e=31&b[0],d=0;e>d;d++)f=3*d,g={type:3&b[f+2],pts:a},4&b[f+2]&&(g.ccData=b[f+3]<<8|b[f+4],c.push(g));return c},gg=function to(a){for(var b=a.byteLength,c=[],d=1,e,f;b-2>d;)0===a[d]&&0===a[d+1]&&3===a[d+2]?(c.push(d+2),d+=2):d++;if(0===c.length)return a;e=b-c.length,f=new Uint8Array(e);var g=0;for(d=0;e>d;g++,d++)g===c[0]&&(g++,c.shift()),f[d]=a[g];return f},hg={parseSei:dg,parseUserData:eg,parseCaptionPackets:fg,discardEmulationPreventionBytes:gg,USER_DATA_REGISTERED_ITU_T_T35:bg},ig=function uo(){this.init=function(){var a={};this.on=function(b,c){a[b]||(a[b]=[]),a[b]=a[b].concat(c)},this.off=function(b,c){var d;return a[b]?(d=a[b].indexOf(c),a[b]=a[b].slice(),a[b].splice(d,1),d>-1):!1},this.trigger=function(b){var c,d,e,f;if(c=a[b],c)if(2===arguments.length)for(e=c.length,d=0;e>d;++d)c[d].call(this,arguments[1]);else{for(f=[],d=arguments.length,d=1;d<arguments.length;++d)f.push(arguments[d]);for(e=c.length,d=0;e>d;++d)c[d].apply(this,f)}},this.dispose=function(){a={}}}};ig.prototype.pipe=function(a){return this.on('data',function(b){a.push(b)}),this.on('done',function(b){a.flush(b)}),this.on('partialdone',function(b){a.partialFlush(b)}),this.on('endedtimeline',function(b){a.endTimeline(b)}),this.on('reset',function(b){a.reset(b)}),a},ig.prototype.push=function(a){this.trigger('data',a)},ig.prototype.flush=function(a){this.trigger('done',a)},ig.prototype.partialFlush=function(a){this.trigger('partialdone',a)},ig.prototype.endTimeline=function(a){this.trigger('endedtimeline',a)},ig.prototype.reset=function(a){this.trigger('reset',a)};var jg=ig,kg=function vo(){vo.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new qg(0,0),new qg(0,1),new qg(1,0),new qg(1,1)],this.reset(),this.ccStreams_.forEach(function(a){a.on('data',this.trigger.bind(this,'data')),a.on('partialdone',this.trigger.bind(this,'partialdone')),a.on('done',this.trigger.bind(this,'done'))},this)};kg.prototype=new jg,kg.prototype.push=function(a){var b,c,d;if('sei_rbsp'===a.nalUnitType&&(b=hg.parseSei(a.escapedRBSP),b.payloadType===hg.USER_DATA_REGISTERED_ITU_T_T35&&(c=hg.parseUserData(b),c))){if(a.dts<this.latestDts_)return this.ignoreNextEqualDts_=!0,void 0;if(a.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,this.numSameDts_||(this.ignoreNextEqualDts_=!1),void 0;d=hg.parseCaptionPackets(a.pts,c),this.captionPackets_=this.captionPackets_.concat(d),this.latestDts_!==a.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=a.dts}},kg.prototype.flushCCStreams=function(a){this.ccStreams_.forEach(function(b){return'flush'===a?b.flush():b.partialFlush()},this)},kg.prototype.flushStream=function(a){return this.captionPackets_.length?(this.captionPackets_.forEach(function(a,b){a.presortIndex=b}),this.captionPackets_.sort(function(a,b){return a.pts===b.pts?a.presortIndex-b.presortIndex:a.pts-b.pts}),this.captionPackets_.forEach(function(a){a.type<2&&this.dispatchCea608Packet(a)},this),this.captionPackets_.length=0,this.flushCCStreams(a),void 0):(this.flushCCStreams(a),void 0)},kg.prototype.flush=function(){return this.flushStream('flush')},kg.prototype.partialFlush=function(){return this.flushStream('partialFlush')},kg.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(a){a.reset()})},kg.prototype.dispatchCea608Packet=function(a){this.setsTextOrXDSActive(a)?this.activeCea608Channel_[a.type]=null:this.setsChannel1Active(a)?this.activeCea608Channel_[a.type]=0:this.setsChannel2Active(a)&&(this.activeCea608Channel_[a.type]=1),null!==this.activeCea608Channel_[a.type]&&this.ccStreams_[(a.type<<1)+this.activeCea608Channel_[a.type]].push(a)},kg.prototype.setsChannel1Active=function(a){return 4096===(30720&a.ccData)},kg.prototype.setsChannel2Active=function(a){return 6144===(30720&a.ccData)},kg.prototype.setsTextOrXDSActive=function(a){return 256===(28928&a.ccData)||4138===(30974&a.ccData)||6186===(30974&a.ccData)};var lg={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},mg=function wo(a){return null===a?'':(a=lg[a]||a,String.fromCharCode(a))},ng=14,og=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],pg=function xo(){for(var a=[],b=ng+1;b--;)a.push('');return a},qg=function yo(a,b){yo.prototype.init.call(this),this.field_=a||0,this.dataChannel_=b||0,this.name_='CC'+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(a){var b,c,d,e,f;if(b=32639&a.ccData,b===this.lastControlCode_)return this.lastControlCode_=null,void 0;if(4096===(61440&b)?this.lastControlCode_=b:b!==this.PADDING_&&(this.lastControlCode_=null),d=b>>>8,e=255&b,b!==this.PADDING_)if(b===this.RESUME_CAPTION_LOADING_)this.mode_='popOn';else if(b===this.END_OF_CAPTION_)this.mode_='popOn',this.clearFormatting(a.pts),this.flushDisplayed(a.pts),c=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=c,this.startPts_=a.pts;else if(b===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(a.pts);else if(b===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(a.pts);else if(b===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(a.pts);else if(b===this.CARRIAGE_RETURN_)this.clearFormatting(a.pts),this.flushDisplayed(a.pts),this.shiftRowsUp_(),this.startPts_=a.pts;else if(b===this.BACKSPACE_)'popOn'===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(b===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(a.pts),this.displayed_=pg();else if(b===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=pg();else if(b===this.RESUME_DIRECT_CAPTIONING_)'paintOn'!==this.mode_&&(this.flushDisplayed(a.pts),this.displayed_=pg()),this.mode_='paintOn',this.startPts_=a.pts;else if(this.isSpecialCharacter(d,e))d=(3&d)<<8,f=mg(d|e),this[this.mode_](a.pts,f),this.column_++;else if(this.isExtCharacter(d,e))'popOn'===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),d=(3&d)<<8,f=mg(d|e),this[this.mode_](a.pts,f),this.column_++;else if(this.isMidRowCode(d,e))this.clearFormatting(a.pts),this[this.mode_](a.pts,' '),this.column_++,14===(14&e)&&this.addFormatting(a.pts,['i']),1===(1&e)&&this.addFormatting(a.pts,['u']);else if(this.isOffsetControlCode(d,e))this.column_+=3&e;else if(this.isPAC(d,e)){var g=og.indexOf(7968&b);'rollUp'===this.mode_&&(g-this.rollUpRows_+1<0&&(g=this.rollUpRows_-1),this.setRollUp(a.pts,g)),g!==this.row_&&(this.clearFormatting(a.pts),this.row_=g),1&e&&-1===this.formatting_.indexOf('u')&&this.addFormatting(a.pts,['u']),16===(16&b)&&(this.column_=4*((14&b)>>1)),this.isColorPAC(e)&&14===(14&e)&&this.addFormatting(a.pts,['i'])}else this.isNormalChar(d)&&(0===e&&(e=null),f=mg(d),f+=mg(e),this[this.mode_](a.pts,f),this.column_+=f.length)}};qg.prototype=new jg,qg.prototype.flushDisplayed=function(a){var b=this.displayed_.map(function(a){try{return a.trim()}catch(b){return console.error('Skipping malformed caption.'),''}}).join('\n').replace(/^\n+|\n+$/g,'');b.length&&this.trigger('data',{startPts:this.startPts_,endPts:a,text:b,stream:this.name_})},qg.prototype.reset=function(){this.mode_='popOn',this.topRow_=0,this.startPts_=0,this.displayed_=pg(),this.nonDisplayed_=pg(),this.lastControlCode_=null,this.column_=0,this.row_=ng,this.rollUpRows_=2,this.formatting_=[]},qg.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,
this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},qg.prototype.isSpecialCharacter=function(a,b){return a===this.EXT_&&b>=48&&63>=b},qg.prototype.isExtCharacter=function(a,b){return(a===this.EXT_+1||a===this.EXT_+2)&&b>=32&&63>=b},qg.prototype.isMidRowCode=function(a,b){return a===this.EXT_&&b>=32&&47>=b},qg.prototype.isOffsetControlCode=function(a,b){return a===this.OFFSET_&&b>=33&&35>=b},qg.prototype.isPAC=function(a,b){return a>=this.BASE_&&a<this.BASE_+8&&b>=64&&127>=b},qg.prototype.isColorPAC=function(a){return a>=64&&79>=a||a>=96&&127>=a},qg.prototype.isNormalChar=function(a){return a>=32&&127>=a},qg.prototype.setRollUp=function(a,b){if('rollUp'!==this.mode_&&(this.row_=ng,this.mode_='rollUp',this.flushDisplayed(a),this.nonDisplayed_=pg(),this.displayed_=pg()),void 0!==b&&b!==this.row_)for(var c=0;c<this.rollUpRows_;c++)this.displayed_[b-c]=this.displayed_[this.row_-c],this.displayed_[this.row_-c]='';void 0===b&&(b=this.row_),this.topRow_=b-this.rollUpRows_+1},qg.prototype.addFormatting=function(a,b){this.formatting_=this.formatting_.concat(b);var c=b.reduce(function(a,b){return a+'<'+b+'>'},'');this[this.mode_](a,c)},qg.prototype.clearFormatting=function(a){if(this.formatting_.length){var b=this.formatting_.reverse().reduce(function(a,b){return a+'</'+b+'>'},'');this.formatting_=[],this[this.mode_](a,b)}},qg.prototype.popOn=function(a,b){var c=this.nonDisplayed_[this.row_];c+=b,this.nonDisplayed_[this.row_]=c},qg.prototype.rollUp=function(a,b){var c=this.displayed_[this.row_];c+=b,this.displayed_[this.row_]=c},qg.prototype.shiftRowsUp_=function(){var a;for(a=0;a<this.topRow_;a++)this.displayed_[a]='';for(a=this.row_+1;ng+1>a;a++)this.displayed_[a]='';for(a=this.topRow_;a<this.row_;a++)this.displayed_[a]=this.displayed_[a+1];this.displayed_[this.row_]=''},qg.prototype.paintOn=function(a,b){var c=this.displayed_[this.row_];c+=b,this.displayed_[this.row_]=c};var rg={CaptionStream:kg,Cea608Stream:qg},sg=hg.discardEmulationPreventionBytes,tg=rg.CaptionStream,ug=function zo(a,b){for(var c=a,d=0;d<b.length;d++){var e=b[d];if(c<e.size)return e;c-=e.size}return null},vg=function Ao(a,b,c){var d=new DataView(a.buffer,a.byteOffset,a.byteLength),e=[],f,g,h,i;for(g=0;g+4<a.length;g+=h)if(h=d.getUint32(g),g+=4,!(0>=h))switch(31&a[g]){case 6:var j=a.subarray(g+1,g+1+h),k=ug(g,b);f={nalUnitType:'sei_rbsp',size:h,data:j,escapedRBSP:sg(j),trackId:c},k?(f.pts=k.pts,f.dts=k.dts,i=k):(f.pts=i.pts,f.dts=i.dts),e.push(f)}return e},wg=function Bo(a,b,c){var d=b,e=c.defaultSampleDuration||0,f=c.defaultSampleSize||0,g=c.trackId,h=[];return a.forEach(function(a){var b=mf.parseTrun(a),c=b.samples;c.forEach(function(a){void 0===a.duration&&(a.duration=e),void 0===a.size&&(a.size=f),a.trackId=g,a.dts=d,void 0===a.compositionTimeOffset&&(a.compositionTimeOffset=0),a.pts=d+a.compositionTimeOffset,d+=a.duration}),h=h.concat(c)}),h},xg=function Co(a,b){var c=Gf.findBox(a,['moof','traf']),d=Gf.findBox(a,['mdat']),e={},f=[];return d.forEach(function(a,b){var d=c[b];f.push({mdat:a,traf:d})}),f.forEach(function(a){var c=a.mdat,d=a.traf,f=Gf.findBox(d,['tfhd']),g=mf.parseTfhd(f[0]),h=g.trackId,i=Gf.findBox(d,['tfdt']),j=i.length>0?mf.parseTfdt(i[0]).baseMediaDecodeTime:0,k=Gf.findBox(d,['trun']),l,m;b===h&&k.length>0&&(l=wg(k,j,g),m=vg(c,l,h),e[h]||(e[h]=[]),e[h]=e[h].concat(m))}),e},yg=function Do(a,b,c){var d;return null===b?null:(d=xg(a,b),{seiNals:d[b],timescale:c})},zg=function Eo(){var a=!1,b,c,d,e,f,g;this.isInitialized=function(){return a},this.init=function(c){b=new tg,a=!0,g=c?c.isPartial:!1,b.on('data',function(a){a.startTime=a.startPts/e,a.endTime=a.endPts/e,f.captions.push(a),f.captionStreams[a.stream]=!0})},this.isNewInit=function(a,b){return a&&0===a.length||b&&'object'==typeof b&&0===Object.keys(b).length?!1:d!==a[0]||e!==b[d]},this.parse=function(a,b,g){var h;if(!this.isInitialized())return null;if(!b||!g)return null;if(this.isNewInit(b,g))d=b[0],e=g[d];else if(null===d||!e)return c.push(a),null;for(;c.length>0;){var i=c.shift();this.parse(i,b,g)}return h=yg(a,d,e),null!==h&&h.seiNals?(this.pushNals(h.seiNals),this.flushStream(),f):null},this.pushNals=function(a){return this.isInitialized()&&a&&0!==a.length?(a.forEach(function(a){b.push(a)}),void 0):null},this.flushStream=function(){return this.isInitialized()?(g?b.partialFlush():b.flush(),void 0):null},this.clearParsedCaptions=function(){f.captions=[],f.captionStreams={}},this.resetCaptionStream=function(){return this.isInitialized()?(b.reset(),void 0):null},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){c=[],d=null,e=null,f?this.clearParsedCaptions():f={captions:[],captionStreams:{}},this.resetCaptionStream()},this.reset()},Ag=zg,Bg=500,Cg=function Fo(a,b,c){if(!a||!b)return!1;var d=a.segments,e=c===d.length;return a.endList&&'open'===b.readyState&&e},Dg=function Go(a){return'number'==typeof a&&isFinite(a)},Eg=function Ho(a,b,c){return'main'===a&&b&&c?c.containsAudio||c.containsVideo?b.containsVideo&&!c.containsVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!b.containsVideo&&c.containsVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:'Neither audio nor video found in segment.':null},Fg=function Io(a,b,c){var d=b-30;a.length&&(d=Math.max(d,a.start(0)));var e=b-c;return Math.min(e,d)},Gg=function Jo(a){var b=a.segment,c=b.start,d=b.end,e=a.playlist,f=e.mediaSequence,g=e.id,h=e.segments,i=void 0===h?[]:h,j=a.mediaIndex,k=a.timeline;return['appending ['+j+'] of ['+f+', '+(f+i.length)+'] from playlist ['+g+']','['+c+' => '+d+'] in timeline ['+k+']'].join(' ')},Hg=function(a){function c(a){Ea(this,c);var b=Ia(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));if(!a)throw new TypeError('Initialization settings are required');if('function'!=typeof a.currentTime)throw new TypeError('No currentTime getter specified');if(!a.mediaSource)throw new TypeError('No MediaSource specified');return b.bandwidth=a.bandwidth,b.throughput={rate:0,count:0},b.roundTrip=NaN,b.resetStats_(),b.mediaIndex=null,b.hasPlayed_=a.hasPlayed,b.currentTime_=a.currentTime,b.seekable_=a.seekable,b.seeking_=a.seeking,b.duration_=a.duration,b.mediaSource_=a.mediaSource,b.hls_=a.hls,b.loaderType_=a.loaderType,b.startingMedia_=void 0,b.segmentMetadataTrack_=a.segmentMetadataTrack,b.goalBufferLength_=a.goalBufferLength,b.sourceType_=a.sourceType,b.inbandTextTracks_=a.inbandTextTracks,b.state_='INIT',b.checkBufferTimeout_=null,b.error_=void 0,b.currentTimeline_=-1,b.pendingSegment_=null,b.mimeType_=null,b.sourceUpdater_=null,b.xhrOptions_=null,b.activeInitSegmentId_=null,b.initSegments_={},b.cacheEncryptionKeys_=a.cacheEncryptionKeys,b.keyCache_={},'main'===b.loaderType_?b.captionParser_=new Ag:b.captionParser_=null,b.decrypter_=a.decrypter,b.syncController_=a.syncController,b.syncPoint_={segmentIndex:0,time:0},b.triggerSyncInfoUpdate_=function(){return b.trigger('syncinfoupdate')},b.syncController_.on('syncinfoupdate',b.triggerSyncInfoUpdate_),b.mediaSource_.addEventListener('sourceopen',function(){return b.ended_=!1}),b.fetchAtBuffer_=!1,b.logger_=wf('SegmentLoader['+b.loaderType_+']'),Object.defineProperty(b,'state',{get:function d(){return this.state_},set:function e(a){a!==this.state_&&(this.logger_(this.state_+' -> '+a),this.state_=a)}}),b}return Ha(c,a),Fa(c,[{key:'resetStats_',value:function d(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0}},{key:'dispose',value:function e(){this.trigger('dispose'),this.state='DISPOSED',this.pause(),this.abort_(),this.sourceUpdater_&&this.sourceUpdater_.dispose(),this.resetStats_(),this.captionParser_&&this.captionParser_.reset(),this.checkBufferTimeout_&&va.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off('syncinfoupdate',this.triggerSyncInfoUpdate_),this.off()}},{key:'abort',value:function f(){return'WAITING'!==this.state?(this.pendingSegment_&&(this.pendingSegment_=null),void 0):(this.abort_(),this.state='READY',this.paused()||this.monitorBuffer_(),void 0)}},{key:'abort_',value:function g(){this.pendingSegment_&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null}},{key:'error',value:function h(a){return'undefined'!=typeof a&&(this.error_=a),this.pendingSegment_=null,this.error_}},{key:'endOfStream',value:function i(){this.ended_=!0,this.pause(),this.trigger('ended')}},{key:'buffered_',value:function j(){return this.sourceUpdater_?this.sourceUpdater_.buffered():b.createTimeRanges()}},{key:'initSegment',value:function k(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!1;if(!a)return null;var c=Nb(a),d=this.initSegments_[c];return b&&!d&&a.bytes&&(this.initSegments_[c]=d={resolvedUri:a.resolvedUri,byterange:a.byterange,bytes:a.bytes,timescales:a.timescales,videoTrackIds:a.videoTrackIds}),d||a}},{key:'segmentKey',value:function l(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!1;if(!a)return null;var c=Ob(a),d=this.keyCache_[c];this.cacheEncryptionKeys_&&b&&!d&&a.bytes&&(this.keyCache_[c]=d={resolvedUri:a.resolvedUri,bytes:a.bytes});var e={resolvedUri:(d||a).resolvedUri};return d&&(e.bytes=d.bytes),e}},{key:'couldBeginLoading_',value:function m(){return this.playlist_&&(this.sourceUpdater_||this.mimeType_&&'INIT'===this.state)&&!this.paused()}},{key:'load',value:function n(){return this.monitorBuffer_(),this.playlist_?(this.syncController_.setDateTimeMapping(this.playlist_),'INIT'===this.state&&this.couldBeginLoading_()?this.init_():(!this.couldBeginLoading_()||'READY'!==this.state&&'INIT'!==this.state||(this.state='READY'),void 0)):void 0}},{key:'init_',value:function o(){return this.state='READY',this.sourceUpdater_=new xf(this.mediaSource_,this.mimeType_,this.loaderType_,this.sourceBufferEmitter_),this.resetEverything(),this.monitorBuffer_()}},{key:'playlist',value:function p(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(a){var c=this.playlist_,d=this.pendingSegment_;this.playlist_=a,this.xhrOptions_=b,'INIT'===this.state&&(a.syncInfo={mediaSequence:a.mediaSequence,time:0});var e=null;if(c&&(c.id?e=c.id:c.uri&&(e=c.uri)),this.logger_('playlist update ['+e+' => '+(a.id||a.uri)+']'),this.trigger('syncinfoupdate'),'INIT'===this.state&&this.couldBeginLoading_())return this.init_();if(!c||c.uri!==a.uri)return null!==this.mediaIndex&&this.resyncLoader(),void 0;var f=a.mediaSequence-c.mediaSequence;this.logger_('live window shift ['+f+']'),null!==this.mediaIndex&&(this.mediaIndex-=f),d&&(d.mediaIndex-=f,d.mediaIndex>=0&&(d.segment=a.segments[d.mediaIndex])),this.syncController_.saveExpiredSegmentInfo(c,a)}}},{key:'pause',value:function q(){this.checkBufferTimeout_&&(va.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}},{key:'paused',value:function r(){return null===this.checkBufferTimeout_}},{key:'mimeType',value:function s(a,b){this.mimeType_||(this.mimeType_=a,this.sourceBufferEmitter_=b,'INIT'===this.state&&this.couldBeginLoading_()&&this.init_())}},{key:'resetEverything',value:function t(a){this.ended_=!1,this.resetLoader(),this.remove(0,1/0,a),this.captionParser_&&this.captionParser_.clearAllCaptions(),this.trigger('reseteverything')}},{key:'resetLoader',value:function u(){this.fetchAtBuffer_=!1,this.resyncLoader()}},{key:'resyncLoader',value:function v(){this.mediaIndex=null,this.syncPoint_=null,this.abort()}},{key:'remove',value:function w(a,b,c){if(b===1/0&&(b=this.duration_()),this.sourceUpdater_&&this.sourceUpdater_.remove(a,b,c),kc(a,b,this.segmentMetadataTrack_),this.inbandTextTracks_)for(var d in this.inbandTextTracks_)kc(a,b,this.inbandTextTracks_[d])}},{key:'monitorBuffer_',value:function x(){this.checkBufferTimeout_&&va.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=va.setTimeout(this.monitorBufferTick_.bind(this),1)}},{key:'monitorBufferTick_',value:function y(){'READY'===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&va.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=va.setTimeout(this.monitorBufferTick_.bind(this),Bg)}},{key:'fillBuffer_',value:function z(){if(!this.sourceUpdater_.updating()){this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var a=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(a)return this.isEndOfStream_(a.mediaIndex)?(this.endOfStream(),void 0):((a.mediaIndex!==this.playlist_.segments.length-1||'ended'!==this.mediaSource_.readyState||this.seeking_())&&(a.timeline!==this.currentTimeline_&&(this.syncController_.reset(),a.timestampOffset=a.startOfSegment,this.captionParser_&&this.captionParser_.clearAllCaptions()),this.loadSegment_(a)),void 0)}}},{key:'isEndOfStream_',value:function A(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.playlist_;return Cg(b,this.mediaSource_,a)&&!this.sourceUpdater_.updating()}},{key:'checkBuffer_',value:function B(a,b,c,d,e,f){var g=0,h=void 0;a.length&&(g=a.end(a.length-1));var i=Math.max(0,g-e);if(!b.segments.length)return null;if(i>=this.goalBufferLength_())return null;if(!d&&i>=1)return null;if(null===f)return c=this.getSyncSegmentCandidate_(b),this.generateSegmentInfo_(b,c,null,!0);if(null!==c){var j=b.segments[c];return h=g,this.generateSegmentInfo_(b,c+1,h,!1)}if(this.fetchAtBuffer_){var k=rb.getMediaInfoForTime(b,g,f.segmentIndex,f.time);c=k.mediaIndex,h=k.startTime}else{var l=rb.getMediaInfoForTime(b,e,f.segmentIndex,f.time);c=l.mediaIndex,h=l.startTime}return this.generateSegmentInfo_(b,c,h,!1)}},{key:'getSyncSegmentCandidate_',value:function C(a){var b=this;if(-1===this.currentTimeline_)return 0;var c=a.segments.map(function(a,b){return{timeline:a.timeline,segmentIndex:b}}).filter(function(a){return a.timeline===b.currentTimeline_});return c.length?c[Math.min(c.length-1,1)].segmentIndex:Math.max(a.segments.length-1,0)}},{key:'generateSegmentInfo_',value:function D(a,b,c,d){if(0>b||b>=a.segments.length)return null;var e=a.segments[b];return{requestId:'segment-loader-'+Math.random(),uri:e.resolvedUri,mediaIndex:b,isSyncRequest:d,startOfSegment:c,playlist:a,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:e.timeline,duration:e.duration,segment:e}}},{key:'abortRequestEarly_',value:function E(a){if(this.hls_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH)return!1;if(Date.now()-(a.firstBytesReceivedAt||Date.now())<1e3)return!1;var b=this.currentTime_(),c=a.bandwidth,d=this.pendingSegment_.duration,e=rb.estimateSegmentRequestTime(d,c,this.playlist_,a.bytesReceived),f=hc(this.buffered_(),b,this.hls_.tech_.playbackRate())-1;if(f>=e)return!1;var g=Zf({master:this.hls_.playlists.master,currentTime:b,bandwidth:c,duration:this.duration_(),segmentDuration:d,timeUntilRebuffer:f,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(g){var h=e-f,i=h-g.rebufferingImpact,j=.5;return ac>=f&&(j=1),!g.playlist||g.playlist.uri===this.playlist_.uri||j>i?!1:(this.bandwidth=g.playlist.attributes.BANDWIDTH*yf.BANDWIDTH_VARIANCE+1,this.abort(),this.trigger('earlyabort'),!0)}}},{key:'handleProgress_',value:function F(a,b){this.pendingSegment_&&b.requestId===this.pendingSegment_.requestId&&!this.abortRequestEarly_(b.stats)&&this.trigger('progress')}},{key:'loadSegment_',value:function G(a){this.state='WAITING',this.pendingSegment_=a,this.trimBackBuffer_(a),a.abortRequests=Sf(this.hls_.xhr,this.xhrOptions_,this.decrypter_,this.captionParser_,this.createSimplifiedSegmentObj_(a),this.handleProgress_.bind(this),this.segmentRequestFinished_.bind(this))}},{key:'trimBackBuffer_',value:function H(a){var b=Fg(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);b>0&&this.remove(0,b)}},{key:'createSimplifiedSegmentObj_',value:function I(a){var b=a.segment,c={resolvedUri:b.resolvedUri,byterange:b.byterange,requestId:a.requestId};if(b.key){var d=b.key.iv||new Uint32Array([0,0,0,a.mediaIndex+a.playlist.mediaSequence]);c.key=this.segmentKey(b.key),c.key.iv=d}return b.map&&(c.map=this.initSegment(b.map)),c}},{key:'segmentRequestFinished_',value:function J(a,b){if(this.mediaRequests+=1,b.stats&&(this.mediaBytesTransferred+=b.stats.bytesReceived,this.mediaTransferDuration+=b.stats.roundTripTime),!this.pendingSegment_)return this.mediaRequestsAborted+=1,void 0;if(b.requestId===this.pendingSegment_.requestId){if(a)return this.pendingSegment_=null,this.state='READY',a.code===Hf.ABORTED?(this.mediaRequestsAborted+=1,void 0):(this.pause(),a.code===Hf.TIMEOUT?(this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger('bandwidthupdate'),void 0):(this.mediaRequestsErrored+=1,this.error(a),this.trigger('error'),void 0));this.bandwidth=b.stats.bandwidth,this.roundTrip=b.stats.roundTripTime,b.map&&(b.map=this.initSegment(b.map,!0)),b.key&&this.segmentKey(b.key,!0),this.processSegmentResponse_(b)}}},{key:'processSegmentResponse_',value:function K(a){var b=this.pendingSegment_;b.bytes=a.bytes,a.map&&(b.segment.map.bytes=a.map.bytes),b.endOfAllRequests=a.endOfAllRequests,a.fmp4Captions&&(_f(this.inbandTextTracks_,this.hls_.tech_,a.captionStreams),ag({inbandTextTracks:this.inbandTextTracks_,captionArray:a.fmp4Captions,timestampOffset:0}),this.captionParser_&&this.captionParser_.clearParsedCaptions()),this.handleSegment_()}},{key:'handleSegment_',value:function L(){var a=this;if(!this.pendingSegment_)return this.state='READY',void 0;var b=this.pendingSegment_,c=b.segment,d=this.syncController_.probeSegmentInfo(b);'undefined'==typeof this.startingMedia_&&d&&(d.containsAudio||d.containsVideo)&&(this.startingMedia_={containsAudio:d.containsAudio,containsVideo:d.containsVideo});var e=Eg(this.loaderType_,this.startingMedia_,d);if(e)return this.error({message:e,blacklistDuration:1/0}),this.trigger('error'),void 0;if(b.isSyncRequest)return this.trigger('syncinfoupdate'),this.pendingSegment_=null,this.state='READY',void 0;if(null!==b.timestampOffset&&b.timestampOffset!==this.sourceUpdater_.timestampOffset()){if(d&&d.segmentTimestampInfo){var f=d.segmentTimestampInfo[0].ptsTime,g=d.segmentTimestampInfo[0].dtsTime;b.timestampOffset-=f-g}this.sourceUpdater_.timestampOffset(b.timestampOffset),this.trigger('timestampoffset')}var h=this.syncController_.mappingForTimeline(b.timeline);if(null!==h&&this.trigger({type:'segmenttimemapping',mapping:h}),this.state='APPENDING',c.map){var i=Nb(c.map);if(!this.activeInitSegmentId_||this.activeInitSegmentId_!==i){var j=this.initSegment(c.map);this.sourceUpdater_.appendBuffer({bytes:j.bytes},function(){a.activeInitSegmentId_=i})}}b.byteLength=b.bytes.byteLength,'number'==typeof c.start&&'number'==typeof c.end?this.mediaSecondsLoaded+=c.end-c.start:this.mediaSecondsLoaded+=c.duration,this.logger_(Gg(b)),this.sourceUpdater_.appendBuffer({bytes:b.bytes,videoSegmentTimingInfoCallback:this.handleVideoSegmentTimingInfo_.bind(this,b.requestId)},this.handleUpdateEnd_.bind(this))}},{key:'handleVideoSegmentTimingInfo_',value:function M(a,b){if(this.pendingSegment_&&a===this.pendingSegment_.requestId){var c=this.pendingSegment_.segment;c.videoTimingInfo||(c.videoTimingInfo={}),c.videoTimingInfo.transmuxerPrependedSeconds=b.videoSegmentTimingInfo.prependedContentDuration||0,c.videoTimingInfo.transmuxedPresentationStart=b.videoSegmentTimingInfo.start.presentation,c.videoTimingInfo.transmuxedPresentationEnd=b.videoSegmentTimingInfo.end.presentation,c.videoTimingInfo.baseMediaDecodeTime=b.videoSegmentTimingInfo.baseMediaDecodeTime}}},{key:'handleUpdateEnd_',value:function N(){if(!this.pendingSegment_)return this.state='READY',this.paused()||this.monitorBuffer_(),void 0;var a=this.pendingSegment_,b=a.segment,c=null!==this.mediaIndex;return this.pendingSegment_=null,this.recordThroughput_(a),this.addSegmentMetadataCue_(a),this.state='READY',this.mediaIndex=a.mediaIndex,this.fetchAtBuffer_=!0,this.currentTimeline_=a.timeline,this.trigger('syncinfoupdate'),b.end&&this.currentTime_()-b.end>3*a.playlist.targetDuration?(this.resetEverything(),void 0):(c&&this.trigger('bandwidthupdate'),this.trigger('progress'),this.isEndOfStream_(a.mediaIndex+1,a.playlist)&&this.endOfStream(),this.paused()||this.monitorBuffer_(),void 0)}},{key:'recordThroughput_',value:function O(a){var b=this.throughput.rate,c=Date.now()-a.endOfAllRequests+1,d=Math.floor(a.byteLength/c*8*1e3);this.throughput.rate+=(d-b)/++this.throughput.count}},{key:'addSegmentMetadataCue_',value:function P(a){if(this.segmentMetadataTrack_){var b=a.segment,c=b.start,d=b.end;if(Dg(c)&&Dg(d)){kc(c,d,this.segmentMetadataTrack_);var e=va.WebKitDataCue||va.VTTCue,f={custom:b.custom,dateTimeObject:b.dateTimeObject,dateTimeString:b.dateTimeString,bandwidth:a.playlist.attributes.BANDWIDTH,resolution:a.playlist.attributes.RESOLUTION,codecs:a.playlist.attributes.CODECS,byteLength:a.byteLength,uri:a.uri,timeline:a.timeline,playlist:a.playlist.id,start:c,end:d},g=JSON.stringify(f),h=new e(c,d,g);h.value=f,this.segmentMetadataTrack_.addCue(h)}}}}]),c}(b.EventTarget),Ig=function Ko(a){return decodeURIComponent(escape(String.fromCharCode.apply(null,a)))},Jg=new Uint8Array('\n\n'.split('').map(function(a){return a.charCodeAt(0)})),Kg=function(a){function c(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ea(this,c);var d=Ia(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,a,b));return d.mediaSource_=null,d.subtitlesTrack_=null,d.featuresNativeTextTracks_=a.featuresNativeTextTracks,d}return Ha(c,a),Fa(c,[{key:'buffered_',value:function d(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues.length)return b.createTimeRanges();var a=this.subtitlesTrack_.cues,c=a[0].startTime,d=a[a.length-1].startTime;return b.createTimeRanges([[c,d]])}},{key:'initSegment',value:function e(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!1;if(!a)return null;var c=Nb(a),d=this.initSegments_[c];if(b&&!d&&a.bytes){var e=Jg.byteLength+a.bytes.byteLength,f=new Uint8Array(e);f.set(a.bytes),f.set(Jg,a.bytes.byteLength),this.initSegments_[c]=d={resolvedUri:a.resolvedUri,byterange:a.byterange,bytes:f}}return d||a}},{key:'couldBeginLoading_',value:function f(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}},{key:'init_',value:function g(){return this.state='READY',this.resetEverything(),this.monitorBuffer_()}},{key:'track',value:function h(a){return'undefined'==typeof a?this.subtitlesTrack_:(this.subtitlesTrack_=a,'INIT'===this.state&&this.couldBeginLoading_()&&this.init_(),this.subtitlesTrack_)}},{key:'remove',value:function i(a,b){kc(a,b,this.subtitlesTrack_)}},{key:'fillBuffer_',value:function j(){var a=this;this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var b=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(b=this.skipEmptySegments_(b),b){if(null===this.syncController_.timestampOffsetForTimeline(b.timeline)){var c=function d(){a.state='READY',a.paused()||a.monitorBuffer_()};return this.syncController_.one('timestampoffset',c),this.state='WAITING_ON_TIMELINE',void 0}this.loadSegment_(b)}}},{key:'skipEmptySegments_',value:function k(a){for(;a&&a.segment.empty;)a=this.generateSegmentInfo_(a.playlist,a.mediaIndex+1,a.startOfSegment+a.duration,a.isSyncRequest);return a}},{key:'handleSegment_',value:function l(){var a=this;if(!this.pendingSegment_||!this.subtitlesTrack_)return this.state='READY',void 0;this.state='APPENDING';var b=this.pendingSegment_,c=b.segment;if('function'!=typeof va.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var d=void 0,e=function g(){a.subtitlesTrack_.tech_.off('vttjsloaded',d),a.error({message:'Error loading vtt.js'}),a.state='READY',a.pause(),a.trigger('error')};return d=function h(){a.subtitlesTrack_.tech_.off('vttjserror',e),a.handleSegment_()},this.state='WAITING_ON_VTTJS',this.subtitlesTrack_.tech_.one('vttjsloaded',d),this.subtitlesTrack_.tech_.one('vttjserror',e),void 0}c.requested=!0;try{this.parseVTTCues_(b)}catch(f){return this.error({message:f.message}),this.state='READY',this.pause(),this.trigger('error')}return this.updateTimeMapping_(b,this.syncController_.timelines[b.timeline],this.playlist_),b.isSyncRequest?(this.trigger('syncinfoupdate'),this.pendingSegment_=null,this.state='READY',void 0):(b.byteLength=b.bytes.byteLength,this.mediaSecondsLoaded+=c.duration,b.cues.length&&this.remove(b.cues[0].endTime,b.cues[b.cues.length-1].endTime),b.cues.forEach(function(b){a.subtitlesTrack_.addCue(a.featuresNativeTextTracks_?new va.VTTCue(b.startTime,b.endTime,b.text):b)}),this.handleUpdateEnd_(),void 0)}},{key:'parseVTTCues_',value:function m(a){var c=void 0,d=!1;'function'==typeof va.TextDecoder?c=new va.TextDecoder('utf8'):(c=va.WebVTT.StringDecoder(),d=!0);var e=new va.WebVTT.Parser(va,va.vttjs,c);if(a.cues=[],a.timestampmap={MPEGTS:0,LOCAL:0},e.oncue=a.cues.push.bind(a.cues),e.ontimestampmap=function(b){return a.timestampmap=b},e.onparsingerror=function(a){b.log.warn('Error encountered when parsing cues: '+a.message)},a.segment.map){var f=a.segment.map.bytes;d&&(f=Ig(f)),e.parse(f)}var g=a.bytes;d&&(g=Ig(g)),e.parse(g),e.flush()}},{key:'updateTimeMapping_',value:function n(a,b,c){var d=a.segment;if(b){if(!a.cues.length)return d.empty=!0,void 0;var e=a.timestampmap,f=e.MPEGTS/9e4-e.LOCAL+b.mapping;if(a.cues.forEach(function(a){a.startTime+=f,a.endTime+=f}),!c.syncInfo){var g=a.cues[0].startTime,h=a.cues[a.cues.length-1].startTime;c.syncInfo={mediaSequence:c.mediaSequence+a.mediaIndex,time:Math.min(g,h-d.duration)}}}}}]),c}(Hg),Lg=function Lo(a,b){for(var c=a.cues,d=0;d<c.length;d++){var e=c[d];if(b>=e.adStartTime&&b<=e.adEndTime)return e}return null},Mg=function Mo(a,b){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(a.segments)for(var d=c,e=void 0,f=0;f<a.segments.length;f++){var g=a.segments[f];if(e||(e=Lg(b,d+g.duration/2)),e){if('cueIn'in g){e.endTime=d,e.adEndTime=d,d+=g.duration,e=null;continue}if(d<e.endTime){d+=g.duration;continue}e.endTime+=g.duration}else if('cueOut'in g&&(e=new va.VTTCue(d,d+g.duration,g.cueOut),e.adStartTime=d,e.adEndTime=d+parseFloat(g.cueOut),b.addCue(e)),'cueOutCont'in g){var h=void 0,i=void 0,j=g.cueOutCont.split('/').map(parseFloat),k=Ja(j,2);h=k[0],i=k[1],e=new va.VTTCue(d,d+g.duration,''),e.adStartTime=d-h,e.adEndTime=e.adStartTime+i,b.addCue(e)}d+=g.duration}},Ng={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Og=8589934592,Pg=4294967296,Qg='shared',Rg=function No(a,b){var c=1;for(a>b&&(c=-1);Math.abs(b-a)>Pg;)a+=c*Og;return a},Sg=function Oo(a){var b,c;Oo.prototype.init.call(this),this.type_=a||Qg,this.push=function(a){this.type_!==Qg&&a.type!==this.type_||(void 0===c&&(c=a.dts),a.dts=Rg(a.dts,c),a.pts=Rg(a.pts,c),b=a.dts,this.trigger('data',a))},this.flush=function(){c=b,this.trigger('done')},this.endTimeline=function(){this.flush(),this.trigger('endedtimeline')},this.discontinuity=function(){c=void 0,b=void 0},this.reset=function(){this.discontinuity(),this.trigger('reset')}};Sg.prototype=new jg;var Tg={TimestampRolloverStream:Sg,handleRollover:Rg},Ug=function Po(a){var b=31&a[1];return b<<=8,b|=a[2],b},Vg=function Qo(a){return!!(64&a[1])},Wg=function Ro(a){var b=0;return(48&a[3])>>>4>1&&(b+=a[4]+1),b},Xg=function So(a,b){var c=Ug(a);return 0===c?'pat':c===b?'pmt':b?'pes':null},Yg=function To(a){var b=Vg(a),c=4+Wg(a);return b&&(c+=a[c]+1),(31&a[c+10])<<8|a[c+11]},Zg=function Uo(a){var b={},c=Vg(a),d=4+Wg(a);if(c&&(d+=a[d]+1),1&a[d+5]){var e,f,g;e=(15&a[d+1])<<8|a[d+2],f=3+e-4,g=(15&a[d+10])<<8|a[d+11];for(var h=12+g;f>h;){var i=d+h;b[(31&a[i+1])<<8|a[i+2]]=a[i],h+=((15&a[i+3])<<8|a[i+4])+5}return b}},$g=function Vo(a,b){var c=Ug(a),d=b[c];switch(d){case Ng.H264_STREAM_TYPE:return'video';case Ng.ADTS_STREAM_TYPE:return'audio';case Ng.METADATA_STREAM_TYPE:return'timed-metadata';default:return null}},_g=function Wo(a){var b=Vg(a);if(!b)return null;var c=4+Wg(a);if(c>=a.byteLength)return null;var d=null,e;return e=a[c+7],192&e&&(d={},d.pts=(14&a[c+9])<<27|(255&a[c+10])<<20|(254&a[c+11])<<12|(255&a[c+12])<<5|(254&a[c+13])>>>3,d.pts*=4,d.pts+=(6&a[c+13])>>>1,d.dts=d.pts,64&e&&(d.dts=(14&a[c+14])<<27|(255&a[c+15])<<20|(254&a[c+16])<<12|(255&a[c+17])<<5|(254&a[c+18])>>>3,d.dts*=4,d.dts+=(6&a[c+18])>>>1)),d},ah=function Xo(a){switch(a){case 5:return'slice_layer_without_partitioning_rbsp_idr';case 6:return'sei_rbsp';case 7:return'seq_parameter_set_rbsp';case 8:return'pic_parameter_set_rbsp';case 9:return'access_unit_delimiter_rbsp';default:return null}},bh=function Yo(a){for(var b=4+Wg(a),c=a.subarray(b),d=0,e=0,f=!1,g;e<c.byteLength-3;e++)if(1===c[e+2]){d=e+5;break}for(;d<c.byteLength;)switch(c[d]){case 0:if(0!==c[d-1]){d+=2;break}if(0!==c[d-2]){d++;break}e+3!==d-2&&(g=ah(31&c[e+3]),'slice_layer_without_partitioning_rbsp_idr'===g&&(f=!0));do d++;while(1!==c[d]&&d<c.length);e=d-2,d+=3;break;case 1:if(0!==c[d-1]||0!==c[d-2]){d+=3;break}g=ah(31&c[e+3]),'slice_layer_without_partitioning_rbsp_idr'===g&&(f=!0),e=d-2,d+=3;break;default:d+=3}return c=c.subarray(e),d-=e,e=0,c&&c.byteLength>3&&(g=ah(31&c[e+3]),'slice_layer_without_partitioning_rbsp_idr'===g&&(f=!0)),f},ch={parseType:Xg,parsePat:Yg,parsePmt:Zg,parsePayloadUnitStartIndicator:Vg,parsePesType:$g,parsePesTime:_g,videoPacketContainsKeyFrame:bh},dh=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],eh=function Zo(a){return a[0]==='I'.charCodeAt(0)&&a[1]==='D'.charCodeAt(0)&&a[2]==='3'.charCodeAt(0)},fh=function $o(a){return a[0]<<21|a[1]<<14|a[2]<<7|a[3]},gh=function _o(a,b,c){var d,e='';for(d=b;c>d;d++)e+='%'+('00'+a[d].toString(16)).slice(-2);return e},hh=function ap(a,b,c){return unescape(gh(a,b,c))},ih=function bp(a,b){var c=a[b+6]<<21|a[b+7]<<14|a[b+8]<<7|a[b+9],d=a[b+5],e=(16&d)>>4;return e?c+20:c+10},jh=function cp(a,b){var c=(224&a[b+5])>>5,d=a[b+4]<<3,e=6144&a[b+3];return e|d|c},kh=function dp(a,b){return a[b]==='I'.charCodeAt(0)&&a[b+1]==='D'.charCodeAt(0)&&a[b+2]==='3'.charCodeAt(0)?'timed-metadata':a[b]&!0&&240===(240&a[b+1])?'audio':null},lh=function ep(a){for(var b=0;b+5<a.length;){if(255===a[b]&&240===(246&a[b+1]))return dh[(60&a[b+2])>>>2];b++}return null},mh=function fp(a){var b,c,d,e;b=10,64&a[5]&&(b+=4,b+=fh(a.subarray(10,14)));do{if(c=fh(a.subarray(b+4,b+8)),1>c)return null;if(e=String.fromCharCode(a[b],a[b+1],a[b+2],a[b+3]),'PRIV'===e){d=a.subarray(b+10,b+c+10);for(var f=0;f<d.byteLength;f++)if(0===d[f]){var g=hh(d,0,f);if('com.apple.streaming.transportStreamTimestamp'===g){var h=d.subarray(f+1),i=(1&h[3])<<30|h[4]<<22|h[5]<<14|h[6]<<6|h[7]>>>2;return i*=4,i+=3&h[7],i}break}}b+=10,b+=c}while(b<a.byteLength);return null},nh={isLikelyAacData:eh,parseId3TagSize:ih,parseAdtsSize:jh,parseType:kh,parseSampleRate:lh,parseAacTimestamp:mh},oh=9e4,ph,qh,rh,sh,th,uh,vh;ph=function gp(a){return a*oh},qh=function hp(a,b){return a*b},rh=function ip(a){return a/oh},sh=function jp(a,b){return a/b},th=function kp(a,b){return ph(sh(a,b))},uh=function lp(a,b){return qh(rh(a),b)},vh=function mp(a,b,c){return rh(c?a:a-b)};var wh={ONE_SECOND_IN_TS:oh,secondsToVideoTs:ph,secondsToAudioTs:qh,videoTsToSeconds:rh,audioTsToSeconds:sh,audioTsToVideoTs:th,videoTsToAudioTs:uh,metadataTsToSeconds:vh},xh=Tg.handleRollover,yh={};yh.ts=ch,yh.aac=nh;var zh=wh.ONE_SECOND_IN_TS,Ah=188,Bh=71,Ch=function np(a,b){
for(var c=0,d=Ah,e,f;d<a.byteLength;)if(a[c]!==Bh||a[d]!==Bh)c++,d++;else{switch(e=a.subarray(c,d),f=yh.ts.parseType(e,b.pid),f){case'pat':b.pid||(b.pid=yh.ts.parsePat(e));break;case'pmt':b.table||(b.table=yh.ts.parsePmt(e))}if(b.pid&&b.table)return;c+=Ah,d+=Ah}},Dh=function op(a,b,c){for(var d=0,e=Ah,f,g,h,i,j,k=!1;e<=a.byteLength;)if(a[d]!==Bh||a[e]!==Bh&&e!==a.byteLength)d++,e++;else{switch(f=a.subarray(d,e),g=yh.ts.parseType(f,b.pid),g){case'pes':h=yh.ts.parsePesType(f,b.table),i=yh.ts.parsePayloadUnitStartIndicator(f),'audio'===h&&i&&(j=yh.ts.parsePesTime(f),j&&(j.type='audio',c.audio.push(j),k=!0))}if(k)break;d+=Ah,e+=Ah}for(e=a.byteLength,d=e-Ah,k=!1;d>=0;)if(a[d]!==Bh||a[e]!==Bh&&e!==a.byteLength)d--,e--;else{switch(f=a.subarray(d,e),g=yh.ts.parseType(f,b.pid),g){case'pes':h=yh.ts.parsePesType(f,b.table),i=yh.ts.parsePayloadUnitStartIndicator(f),'audio'===h&&i&&(j=yh.ts.parsePesTime(f),j&&(j.type='audio',c.audio.push(j),k=!0))}if(k)break;d-=Ah,e-=Ah}},Eh=function pp(a,b,c){for(var d=0,e=Ah,f,g,h,i,j,k,l,m,n=!1,o={data:[],size:0};e<a.byteLength;)if(a[d]!==Bh||a[e]!==Bh)d++,e++;else{switch(f=a.subarray(d,e),g=yh.ts.parseType(f,b.pid),g){case'pes':if(h=yh.ts.parsePesType(f,b.table),i=yh.ts.parsePayloadUnitStartIndicator(f),'video'===h&&(i&&!n&&(j=yh.ts.parsePesTime(f),j&&(j.type='video',c.video.push(j),n=!0)),!c.firstKeyFrame)){if(i&&0!==o.size){for(k=new Uint8Array(o.size),l=0;o.data.length;)m=o.data.shift(),k.set(m,l),l+=m.byteLength;if(yh.ts.videoPacketContainsKeyFrame(k)){var p=yh.ts.parsePesTime(k);p?(c.firstKeyFrame=p,c.firstKeyFrame.type='video'):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}o.size=0}o.data.push(f),o.size+=f.byteLength}}if(n&&c.firstKeyFrame)break;d+=Ah,e+=Ah}for(e=a.byteLength,d=e-Ah,n=!1;d>=0;)if(a[d]!==Bh||a[e]!==Bh)d--,e--;else{switch(f=a.subarray(d,e),g=yh.ts.parseType(f,b.pid),g){case'pes':h=yh.ts.parsePesType(f,b.table),i=yh.ts.parsePayloadUnitStartIndicator(f),'video'===h&&i&&(j=yh.ts.parsePesTime(f),j&&(j.type='video',c.video.push(j),n=!0))}if(n)break;d-=Ah,e-=Ah}},Fh=function qp(a,b){if(a.audio&&a.audio.length){var c=b;'undefined'==typeof c&&(c=a.audio[0].dts),a.audio.forEach(function(a){a.dts=xh(a.dts,c),a.pts=xh(a.pts,c),a.dtsTime=a.dts/zh,a.ptsTime=a.pts/zh})}if(a.video&&a.video.length){var d=b;if('undefined'==typeof d&&(d=a.video[0].dts),a.video.forEach(function(a){a.dts=xh(a.dts,d),a.pts=xh(a.pts,d),a.dtsTime=a.dts/zh,a.ptsTime=a.pts/zh}),a.firstKeyFrame){var e=a.firstKeyFrame;e.dts=xh(e.dts,d),e.pts=xh(e.pts,d),e.dtsTime=e.dts/zh,e.ptsTime=e.dts/zh}}},Gh=function rp(a){for(var b=!1,c=0,d=null,e=null,f=0,g=0,h;a.length-g>=3;){var i=yh.aac.parseType(a,g);switch(i){case'timed-metadata':if(a.length-g<10){b=!0;break}if(f=yh.aac.parseId3TagSize(a,g),f>a.length){b=!0;break}null===e&&(h=a.subarray(g,g+f),e=yh.aac.parseAacTimestamp(h)),g+=f;break;case'audio':if(a.length-g<7){b=!0;break}if(f=yh.aac.parseAdtsSize(a,g),f>a.length){b=!0;break}null===d&&(h=a.subarray(g,g+f),d=yh.aac.parseSampleRate(h)),c++,g+=f;break;default:g++}if(b)return null}if(null===d||null===e)return null;var j=zh/d,k={audio:[{type:'audio',dts:e,pts:e},{type:'audio',dts:e+1024*c*j,pts:e+1024*c*j}]};return k},Hh=function sp(a){var b={pid:null,table:null},c={};Ch(a,b);for(var d in b.table)if(b.table.hasOwnProperty(d)){var e=b.table[d];switch(e){case Ng.H264_STREAM_TYPE:c.video=[],Eh(a,b,c),0===c.video.length&&delete c.video;break;case Ng.ADTS_STREAM_TYPE:c.audio=[],Dh(a,b,c),0===c.audio.length&&delete c.audio}}return c},Ih=function tp(a,b){var c=yh.aac.isLikelyAacData(a),d;return d=c?Gh(a):Hh(a),d&&(d.audio||d.video)?(Fh(d,b),d):null},Jh={inspect:Ih,parseAudioPes_:Dh},Kh=Jh.inspect,Lh=[{name:'VOD',run:function up(a,b,c,d,e){if(c!==1/0){var f={time:0,segmentIndex:0};return f}return null}},{name:'ProgramDateTime',run:function vp(a,b,c,d,e){if(!a.datetimeToDisplayTime)return null;var f=b.segments||[],g=null,h=null;e=e||0;for(var i=0;i<f.length;i++){var j=f[i];if(j.dateTimeObject){var k=j.dateTimeObject.getTime()/1e3,l=k+a.datetimeToDisplayTime,m=Math.abs(e-l);if(null!==h&&(0===m||m>h))break;h=m,g={time:l,segmentIndex:i}}}return g}},{name:'Segment',run:function wp(a,b,c,d,e){var f=b.segments||[],g=null,h=null;e=e||0;for(var i=0;i<f.length;i++){var j=f[i];if(j.timeline===d&&'undefined'!=typeof j.start){var k=Math.abs(e-j.start);if(null!==h&&k>h)break;(!g||null===h||h>=k)&&(h=k,g={time:j.start,segmentIndex:i})}}return g}},{name:'Discontinuity',run:function xp(a,b,c,d,e){var f=null;if(e=e||0,b.discontinuityStarts&&b.discontinuityStarts.length)for(var g=null,h=0;h<b.discontinuityStarts.length;h++){var i=b.discontinuityStarts[h],j=b.discontinuitySequence+h+1,k=a.discontinuities[j];if(k){var l=Math.abs(e-k.time);if(null!==g&&l>g)break;(!f||null===g||g>=l)&&(g=l,f={time:k.time,segmentIndex:i})}}return f}},{name:'Playlist',run:function yp(a,b,c,d,e){if(b.syncInfo){var f={time:b.syncInfo.time,segmentIndex:b.syncInfo.mediaSequence-b.mediaSequence};return f}return null}}],Mh=function(a){function b(){Ea(this,b);var a=Ia(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));return a.inspectCache_=void 0,a.timelines=[],a.discontinuities=[],a.datetimeToDisplayTime=null,a.logger_=wf('SyncController'),a}return Ha(b,a),Fa(b,[{key:'getSyncPoint',value:function c(a,b,d,e){var f=this.runStrategies_(a,b,d,e);return f.length?this.selectSyncPoint_(f,{key:'time',value:e}):null}},{key:'getExpiredTime',value:function d(a,b){if(!a||!a.segments)return null;var c=this.runStrategies_(a,b,a.discontinuitySequence,0);if(!c.length)return null;var d=this.selectSyncPoint_(c,{key:'segmentIndex',value:0});return d.segmentIndex>0&&(d.time*=-1),Math.abs(d.time+_a(a,d.segmentIndex,0))}},{key:'runStrategies_',value:function e(a,b,c,d){for(var e=[],f=0;f<Lh.length;f++){var g=Lh[f],h=g.run(this,a,b,c,d);h&&(h.strategy=g.name,e.push({strategy:g.name,syncPoint:h}))}return e}},{key:'selectSyncPoint_',value:function f(a,b){for(var c=a[0].syncPoint,d=Math.abs(a[0].syncPoint[b.key]-b.value),e=a[0].strategy,f=1;f<a.length;f++){var g=Math.abs(a[f].syncPoint[b.key]-b.value);d>g&&(d=g,c=a[f].syncPoint,e=a[f].strategy)}return this.logger_('syncPoint for ['+b.key+': '+b.value+'] chosen with strategy'+(' ['+e+']: [time:'+c.time+',')+(' segmentIndex:'+c.segmentIndex+']')),c}},{key:'saveExpiredSegmentInfo',value:function g(a,b){for(var c=b.mediaSequence-a.mediaSequence,d=c-1;d>=0;d--){var e=a.segments[d];if(e&&'undefined'!=typeof e.start){b.syncInfo={mediaSequence:a.mediaSequence+d,time:e.start},this.logger_('playlist refresh sync: [time:'+b.syncInfo.time+','+(' mediaSequence: '+b.syncInfo.mediaSequence+']')),this.trigger('syncinfoupdate');break}}}},{key:'setDateTimeMapping',value:function h(a){if(!this.datetimeToDisplayTime&&a.segments&&a.segments.length&&a.segments[0].dateTimeObject){var b=a.segments[0].dateTimeObject.getTime()/1e3;this.datetimeToDisplayTime=-b}}},{key:'reset',value:function i(){this.inspectCache_=void 0}},{key:'probeSegmentInfo',value:function j(a){var b=a.segment,c=a.playlist,d=void 0;return d=b.map?this.probeMp4Segment_(a):this.probeTsSegment_(a),d&&this.calculateSegmentTimeMapping_(a,d)&&(this.saveDiscontinuitySyncInfo_(a),c.syncInfo||(c.syncInfo={mediaSequence:c.mediaSequence+a.mediaIndex,time:b.start})),d}},{key:'probeMp4Segment_',value:function k(a){var b=a.segment,c=Gf.timescale(b.map.bytes),d=Gf.compositionStartTime(c,a.bytes);return null!==a.timestampOffset&&(a.timestampOffset-=d),{start:d,end:d+b.duration}}},{key:'probeTsSegment_',value:function l(a){var b=Kh(a.bytes,this.inspectCache_),c=void 0,d=void 0,e=void 0;if(!b)return null;b.video&&2===b.video.length?(this.inspectCache_=b.video[1].dts,c=b.video[0].dtsTime,d=b.video[1].dtsTime,e=b.video):b.audio&&2===b.audio.length&&(this.inspectCache_=b.audio[1].dts,c=b.audio[0].dtsTime,d=b.audio[1].dtsTime,e=b.audio);var f={segmentTimestampInfo:e,start:c,end:d,containsVideo:b.video&&2===b.video.length,containsAudio:b.audio&&2===b.audio.length};return f}},{key:'timestampOffsetForTimeline',value:function m(a){return'undefined'==typeof this.timelines[a]?null:this.timelines[a].time}},{key:'mappingForTimeline',value:function n(a){return'undefined'==typeof this.timelines[a]?null:this.timelines[a].mapping}},{key:'calculateSegmentTimeMapping_',value:function o(a,b){var c=a.segment,d=this.timelines[a.timeline];if(null!==a.timestampOffset)d={time:a.startOfSegment,mapping:a.startOfSegment-b.start},this.timelines[a.timeline]=d,this.trigger('timestampoffset'),this.logger_('time mapping for timeline '+a.timeline+': '+('[time: '+d.time+'] [mapping: '+d.mapping+']')),c.start=a.startOfSegment,c.end=b.end+d.mapping;else{if(!d)return!1;c.start=b.start+d.mapping,c.end=b.end+d.mapping}return!0}},{key:'saveDiscontinuitySyncInfo_',value:function p(a){var b=a.playlist,c=a.segment;if(c.discontinuity)this.discontinuities[c.timeline]={time:c.start,accuracy:0};else if(b.discontinuityStarts&&b.discontinuityStarts.length)for(var d=0;d<b.discontinuityStarts.length;d++){var e=b.discontinuityStarts[d],f=b.discontinuitySequence+d+1,g=e-a.mediaIndex,h=Math.abs(g);if(!this.discontinuities[f]||this.discontinuities[f].accuracy>h){var i=void 0;i=0>g?c.start-_a(b,a.mediaIndex,e):c.end+_a(b,a.mediaIndex+1,e),this.discontinuities[f]={time:i,accuracy:h}}}}},{key:'dispose',value:function q(){this.trigger('dispose'),this.off()}}]),b}(b.EventTarget),Nh=new i("./decrypter-worker.worker.js",function(a,b){var c=this,d=function(){function a(a){return a.subarray(0,a.byteLength-a[a.byteLength-1])}var b=function r(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},d=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),e=function s(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)},f=function t(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b},g=function u(){var a=[[[],[],[],[],[]],[[],[],[],[],[]]],b=a[0],c=a[1],d=b[4],e=c[4],f=void 0,g=void 0,h=void 0,i=[],j=[],k=void 0,l=void 0,m=void 0,n=void 0,o=void 0,p=void 0;for(f=0;256>f;f++)j[(i[f]=f<<1^283*(f>>7))^f]=f;for(g=h=0;!d[g];g^=k||1,h=j[h]||1)for(n=h^h<<1^h<<2^h<<3^h<<4,n=n>>8^255&n^99,d[g]=n,e[n]=g,m=i[l=i[k=i[g]]],p=16843009*m^65537*l^257*k^16843008*g,o=257*i[n]^16843008*n,f=0;4>f;f++)b[f][g]=o=o<<24^o>>>8,c[f][n]=p=p<<24^p>>>8;for(f=0;5>f;f++)b[f]=b[f].slice(0),c[f]=c[f].slice(0);return a},h=null,i=function(){function a(c){b(this,a),h||(h=g()),this._tables=[[h[0][0].slice(),h[0][1].slice(),h[0][2].slice(),h[0][3].slice(),h[0][4].slice()],[h[1][0].slice(),h[1][1].slice(),h[1][2].slice(),h[1][3].slice(),h[1][4].slice()]];var d=void 0,e=void 0,f=void 0,i=void 0,j=void 0,k=this._tables[0][4],l=this._tables[1],m=c.length,n=1;if(4!==m&&6!==m&&8!==m)throw new Error('Invalid aes key size');for(i=c.slice(0),j=[],this._key=[i,j],d=m;4*m+28>d;d++)f=i[d-1],(d%m===0||8===m&&d%m===4)&&(f=k[f>>>24]<<24^k[f>>16&255]<<16^k[f>>8&255]<<8^k[255&f],d%m===0&&(f=f<<8^f>>>24^n<<24,n=n<<1^283*(n>>7))),i[d]=i[d-m]^f;for(e=0;d;e++,d--)f=i[3&e?d:d-4],4>=d||4>e?j[e]=f:j[e]=l[0][k[f>>>24]]^l[1][k[f>>16&255]]^l[2][k[f>>8&255]]^l[3][k[255&f]]}return a.prototype.decrypt=function c(a,b,d,e,f,g){var h=this._key[1],i=a^h[0],j=e^h[1],k=d^h[2],l=b^h[3],m=void 0,n=void 0,o=void 0,p=h.length/4-2,q=void 0,r=4,s=this._tables[1],t=s[0],u=s[1],v=s[2],w=s[3],x=s[4];for(q=0;p>q;q++)m=t[i>>>24]^u[j>>16&255]^v[k>>8&255]^w[255&l]^h[r],n=t[j>>>24]^u[k>>16&255]^v[l>>8&255]^w[255&i]^h[r+1],o=t[k>>>24]^u[l>>16&255]^v[i>>8&255]^w[255&j]^h[r+2],l=t[l>>>24]^u[i>>16&255]^v[j>>8&255]^w[255&k]^h[r+3],r+=4,i=m,j=n,k=o;for(q=0;4>q;q++)f[(3&-q)+g]=x[i>>>24]<<24^x[j>>16&255]<<16^x[k>>8&255]<<8^x[255&l]^h[r++],m=i,i=j,j=k,k=l,l=m},a}(),j=function(){function a(){b(this,a),this.listeners={}}return a.prototype.on=function c(a,b){this.listeners[a]||(this.listeners[a]=[]),this.listeners[a].push(b)},a.prototype.off=function d(a,b){if(!this.listeners[a])return!1;var c=this.listeners[a].indexOf(b);return this.listeners[a].splice(c,1),c>-1},a.prototype.trigger=function e(a){var b=this.listeners[a];if(b)if(2===arguments.length)for(var c=b.length,d=0;c>d;++d)b[d].call(this,arguments[1]);else for(var e=Array.prototype.slice.call(arguments,1),f=b.length,g=0;f>g;++g)b[g].apply(this,e)},a.prototype.dispose=function f(){this.listeners={}},a.prototype.pipe=function g(a){this.on('data',function(b){a.push(b)})},a}(),k=function(a){function c(){b(this,c);var d=f(this,a.call(this,j));return d.jobs=[],d.delay=1,d.timeout_=null,d}return e(c,a),c.prototype.processJob_=function d(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},c.prototype.push=function g(a){this.jobs.push(a),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},c}(j),l=function v(a){return a<<24|(65280&a)<<8|(16711680&a)>>8|a>>>24},m=function w(a,b,c){var d=new Int32Array(a.buffer,a.byteOffset,a.byteLength>>2),e=new i(Array.prototype.slice.call(b)),f=new Uint8Array(a.byteLength),g=new Int32Array(f.buffer),h=void 0,j=void 0,k=void 0,m=void 0,n=void 0,o=void 0,p=void 0,q=void 0,r=void 0;for(h=c[0],j=c[1],k=c[2],m=c[3],r=0;r<d.length;r+=4)n=l(d[r]),o=l(d[r+1]),p=l(d[r+2]),q=l(d[r+3]),e.decrypt(n,o,p,q,g,r),g[r]=l(g[r]^h),g[r+1]=l(g[r+1]^j),g[r+2]=l(g[r+2]^k),g[r+3]=l(g[r+3]^m),h=n,j=o,k=p,m=q;return f},n=function(){function c(d,e,f,g){b(this,c);var h=c.STEP,i=new Int32Array(d.buffer),j=new Uint8Array(d.byteLength),m=0;for(this.asyncStream_=new k,this.asyncStream_.push(this.decryptChunk_(i.subarray(m,m+h),e,f,j)),m=h;m<i.length;m+=h)f=new Uint32Array([l(i[m-4]),l(i[m-3]),l(i[m-2]),l(i[m-1])]),this.asyncStream_.push(this.decryptChunk_(i.subarray(m,m+h),e,f,j));this.asyncStream_.push(function(){g(null,a(j))})}return c.prototype.decryptChunk_=function e(a,b,c,d){return function(){var e=m(a,b,c);d.set(e,a.byteOffset)}},d(c,null,[{key:'STEP',get:function f(){return 32e3}}]),c}(),o=function x(a){var b={};return Object.keys(a).forEach(function(c){var d=a[c];ArrayBuffer.isView(d)?b[c]={bytes:d.buffer,byteOffset:d.byteOffset,byteLength:d.byteLength}:b[c]=d}),b},p=function y(a){a.onmessage=function(b){var c=b.data,d=new Uint8Array(c.encrypted.bytes,c.encrypted.byteOffset,c.encrypted.byteLength),e=new Uint32Array(c.key.bytes,c.key.byteOffset,c.key.byteLength/4),f=new Uint32Array(c.iv.bytes,c.iv.byteOffset,c.iv.byteLength/4);new n(d,e,f,function(b,d){a.postMessage(o({source:c.source,decrypted:d}),[d.buffer])})}},q=new p(c);return q}()}),Oh=function zp(a){var b=a["default"]?'main':'alternative';return a.characteristics&&a.characteristics.indexOf('public.accessibility.describes-video')>=0&&(b='main-desc'),b},Ph=function Ap(a,b){a.abort(),a.pause(),b&&b.activePlaylistLoader&&(b.activePlaylistLoader.pause(),b.activePlaylistLoader=null)},Qh=function Bp(a,b){b.activePlaylistLoader=a,a.load()},Rh=function Cp(a,b){return function(){var c=b.segmentLoaders,d=c[a],e=c.main,f=b.mediaTypes[a],g=f.activeTrack(),h=f.activeGroup(g),i=f.activePlaylistLoader;if(Ph(d,f),h){if(!h.playlistLoader)return i&&e.resetEverything(),void 0;d.resyncLoader(),Qh(h.playlistLoader,f)}}},Sh=function Dp(a,b){return function(){var c=b.segmentLoaders,d=c[a],e=c.main,f=b.mediaTypes[a],g=f.activeTrack(),h=f.activeGroup(g),i=f.activePlaylistLoader;if(Ph(d,f),h){if(!h.playlistLoader)return e.resetEverything(),void 0;if(i===h.playlistLoader)return Qh(h.playlistLoader,f),void 0;d.track&&d.track(g),d.resetEverything(),Qh(h.playlistLoader,f)}}},Th={AUDIO:function Ep(a,c){return function(){var d=c.segmentLoaders[a],e=c.mediaTypes[a],f=c.blacklistCurrentPlaylist;Ph(d,e);var g=e.activeTrack(),h=e.activeGroup(),i=(h.filter(function(a){return a["default"]})[0]||h[0]).id,j=e.tracks[i];if(g===j)return f({message:'Problem encountered loading the default audio track.'}),void 0;b.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(var k in e.tracks)e.tracks[k].enabled=e.tracks[k]===j;e.onTrackChanged()}},SUBTITLES:function Fp(a,c){return function(){var d=c.segmentLoaders[a],e=c.mediaTypes[a];b.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),Ph(d,e);var f=e.activeTrack();f&&(f.mode='disabled'),e.onTrackChanged()}}},Uh={AUDIO:function Gp(a,b,c){if(b){var d=c.tech,e=c.requestOptions,f=c.segmentLoaders[a];b.on('loadedmetadata',function(){var a=b.media();f.playlist(a,e),(!d.paused()||a.endList&&'none'!==d.preload())&&f.load()}),b.on('loadedplaylist',function(){f.playlist(b.media(),e),d.paused()||f.load()}),b.on('error',Th[a](a,c))}},SUBTITLES:function Hp(a,b,c){var d=c.tech,e=c.requestOptions,f=c.segmentLoaders[a],g=c.mediaTypes[a];b.on('loadedmetadata',function(){var a=b.media();f.playlist(a,e),f.track(g.activeTrack()),(!d.paused()||a.endList&&'none'!==d.preload())&&f.load()}),b.on('loadedplaylist',function(){f.playlist(b.media(),e),d.paused()||f.load()}),b.on('error',Th[a](a,c))}},Vh={AUDIO:function Ip(a,c){var d=c.hls,e=c.sourceType,f=c.segmentLoaders[a],g=c.requestOptions,h=c.master.mediaGroups,i=c.mediaTypes[a],j=i.groups,k=i.tracks,l=c.masterPlaylistLoader;h[a]&&0!==Object.keys(h[a]).length||(h[a]={main:{"default":{"default":!0}}});for(var m in h[a]){j[m]||(j[m]=[]);for(var n in h[a][m]){var o=h[a][m][n],p=void 0;if(p=o.resolvedUri?new Va(o.resolvedUri,d,g):o.playlists&&'dash'===e?new vf(o.playlists[0],d,g,l):null,o=b.mergeOptions({id:n,playlistLoader:p},o),Uh[a](a,o.playlistLoader,c),j[m].push(o),'undefined'==typeof k[n]){var q=new b.AudioTrack({id:n,kind:Oh(o),enabled:!1,language:o.language,"default":o["default"],label:n});k[n]=q}}}f.on('error',Th[a](a,c))},SUBTITLES:function Jp(a,c){var d=c.tech,e=c.hls,f=c.sourceType,g=c.segmentLoaders[a],h=c.requestOptions,i=c.master.mediaGroups,j=c.mediaTypes[a],k=j.groups,l=j.tracks,m=c.masterPlaylistLoader;for(var n in i[a]){k[n]||(k[n]=[]);for(var o in i[a][n])if(!i[a][n][o].forced){var p=i[a][n][o],q=void 0;if('hls'===f?q=new Va(p.resolvedUri,e,h):'dash'===f&&(q=new vf(p.playlists[0],e,h,m)),p=b.mergeOptions({id:o,playlistLoader:q},p),Uh[a](a,p.playlistLoader,c),k[n].push(p),'undefined'==typeof l[o]){var r=d.addRemoteTextTrack({id:o,kind:'subtitles',"default":p["default"]&&p.autoselect,language:p.language,label:o},!1).track;l[o]=r}}}g.on('error',Th[a](a,c))},'CLOSED-CAPTIONS':function Kp(a,c){var d=c.tech,e=c.master.mediaGroups,f=c.mediaTypes[a],g=f.groups,h=f.tracks;for(var i in e[a]){g[i]||(g[i]=[]);for(var j in e[a][i]){var k=e[a][i][j];if(k.instreamId.match(/CC\d/)&&(g[i].push(b.mergeOptions({id:j},k)),'undefined'==typeof h[j])){var l=d.addRemoteTextTrack({id:k.instreamId,kind:'captions',"default":k["default"]&&k.autoselect,language:k.language,label:j},!1).track;h[j]=l}}}}},Wh=function Lp(a,b){return function(c){var d=b.masterPlaylistLoader,e=b.mediaTypes[a].groups,f=d.media();if(!f)return null;var g=null;return f.attributes[a]&&(g=e[f.attributes[a]]),g=g||e.main,'undefined'==typeof c?g:null===c?null:g.filter(function(a){return a.id===c.id})[0]||null}},Xh={AUDIO:function Mp(a,b){return function(){var c=b.mediaTypes[a].tracks;for(var d in c)if(c[d].enabled)return c[d];return null}},SUBTITLES:function Np(a,b){return function(){var c=b.mediaTypes[a].tracks;for(var d in c)if('showing'===c[d].mode||'hidden'===c[d].mode)return c[d];return null}}},Yh=function Op(a){['AUDIO','SUBTITLES','CLOSED-CAPTIONS'].forEach(function(b){Vh[b](b,a)});var b=a.mediaTypes,c=a.masterPlaylistLoader,d=a.tech,e=a.hls;['AUDIO','SUBTITLES'].forEach(function(c){b[c].activeGroup=Wh(c,a),b[c].activeTrack=Xh[c](c,a),b[c].onGroupChanged=Rh(c,a),b[c].onTrackChanged=Sh(c,a)});var f=b.AUDIO.activeGroup(),g=(f.filter(function(a){return a["default"]})[0]||f[0]).id;b.AUDIO.tracks[g].enabled=!0,b.AUDIO.onTrackChanged(),c.on('mediachange',function(){['AUDIO','SUBTITLES'].forEach(function(a){return b[a].onGroupChanged()})});var h=function j(){b.AUDIO.onTrackChanged(),d.trigger({type:'usage',name:'hls-audio-change'})};d.audioTracks().addEventListener('change',h),d.remoteTextTracks().addEventListener('change',b.SUBTITLES.onTrackChanged),e.on('dispose',function(){d.audioTracks().removeEventListener('change',h),d.remoteTextTracks().removeEventListener('change',b.SUBTITLES.onTrackChanged)}),d.clearTracks('audio');for(var i in b.AUDIO.tracks)d.audioTracks().addTrack(b.AUDIO.tracks[i])},Zh=function Pp(){var a={};return['AUDIO','SUBTITLES','CLOSED-CAPTIONS'].forEach(function(b){a[b]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:na,activeTrack:na,onGroupChanged:na,onTrackChanged:na}}),a},$h=120,_h=void 0,ai=['mediaRequests','mediaRequestsAborted','mediaRequestsTimedout','mediaRequestsErrored','mediaTransferDuration','mediaBytesTransferred'],bi=function Qp(a){return this.audioSegmentLoader_[a]+this.mainSegmentLoader_[a]},ci=function Rp(a){var c=a.currentPlaylist,d=a.nextPlaylist,e=a.forwardBuffer,f=a.bufferLowWaterLine,g=a.duration,h=a.log;return d?c.endList?g<yf.MAX_BUFFER_LOW_WATER_LINE?!0:d.attributes.BANDWIDTH<c.attributes.BANDWIDTH?!0:e>=f:!0:(b.log.warn('We received no playlist to switch to. Please check your stream.'),!1)},di=function(a){function c(a){Ea(this,c);var d=Ia(this,(c.__proto__||Object.getPrototypeOf(c)).call(this)),e=a.url,f=a.handleManifestRedirects,g=a.withCredentials,h=a.tech,i=a.bandwidth,j=a.externHls,k=a.useCueTags,l=a.blacklistDuration,m=a.enableLowInitialPlaylist,n=a.cacheEncryptionKeys,o=a.sourceType;if(!e)throw new Error('A non-empty playlist URL is required');_h=j,d.withCredentials=g,d.tech_=h,d.hls_=h.hls,d.sourceType_=o,d.useCueTags_=k,d.blacklistDuration=l,d.enableLowInitialPlaylist=m,d.useCueTags_&&(d.cueTagsTrack_=d.tech_.addTextTrack('metadata','ad-cues'),d.cueTagsTrack_.inBandMetadataTrackDispatchType=''),d.requestOptions_={withCredentials:g,handleManifestRedirects:f,timeout:null},d.mediaTypes_=Zh(),d.mediaSource=new b.MediaSource,d.mediaSource.addEventListener('sourceopen',d.handleSourceOpen_.bind(d)),d.seekable_=b.createTimeRanges(),d.hasPlayed_=!1,d.syncController_=new Mh(a),d.segmentMetadataTrack_=h.addRemoteTextTrack({kind:'metadata',label:'segment-metadata'},!1).track,d.decrypter_=new Nh,d.inbandTextTracks_={};var p={hls:d.hls_,mediaSource:d.mediaSource,currentTime:d.tech_.currentTime.bind(d.tech_),seekable:function q(){return d.seekable()},seeking:function r(){return d.tech_.seeking()},duration:function s(){return d.mediaSource.duration},hasPlayed:function t(){return d.hasPlayed_},goalBufferLength:function u(){return d.goalBufferLength()},bandwidth:i,syncController:d.syncController_,decrypter:d.decrypter_,sourceType:d.sourceType_,inbandTextTracks:d.inbandTextTracks_,cacheEncryptionKeys:n};return d.masterPlaylistLoader_='dash'===d.sourceType_?new vf(e,d.hls_,d.requestOptions_):new Va(e,d.hls_,d.requestOptions_),d.setupMasterPlaylistLoaderListeners_(),d.mainSegmentLoader_=new Hg(b.mergeOptions(p,{segmentMetadataTrack:d.segmentMetadataTrack_,loaderType:'main'}),a),d.audioSegmentLoader_=new Hg(b.mergeOptions(p,{loaderType:'audio'}),a),d.subtitleSegmentLoader_=new Kg(b.mergeOptions(p,{loaderType:'vtt',featuresNativeTextTracks:d.tech_.featuresNativeTextTracks}),a),d.setupSegmentLoaderListeners_(),ai.forEach(function(a){d[a+'_']=bi.bind(d,a)}),d.logger_=wf('MPC'),d.masterPlaylistLoader_.load(),d}return Ha(c,a),Fa(c,[{key:'setupMasterPlaylistLoaderListeners_',value:function d(){var a=this;this.masterPlaylistLoader_.on('loadedmetadata',function(){var c=a.masterPlaylistLoader_.media(),d=1.5*c.targetDuration*1e3;qb(a.masterPlaylistLoader_.master,a.masterPlaylistLoader_.media())?a.requestOptions_.timeout=0:a.requestOptions_.timeout=d,c.endList&&'none'!==a.tech_.preload()&&(a.mainSegmentLoader_.playlist(c,a.requestOptions_),a.mainSegmentLoader_.load()),Yh({sourceType:a.sourceType_,segmentLoaders:{AUDIO:a.audioSegmentLoader_,SUBTITLES:a.subtitleSegmentLoader_,main:a.mainSegmentLoader_},tech:a.tech_,requestOptions:a.requestOptions_,masterPlaylistLoader:a.masterPlaylistLoader_,hls:a.hls_,master:a.master(),mediaTypes:a.mediaTypes_,blacklistCurrentPlaylist:a.blacklistCurrentPlaylist.bind(a)}),a.triggerPresenceUsage_(a.master(),c);try{a.setupSourceBuffers_()}catch(e){return b.log.warn('Failed to create SourceBuffers',e),a.mediaSource.endOfStream('decode')}a.setupFirstPlay(),!a.mediaTypes_.AUDIO.activePlaylistLoader||a.mediaTypes_.AUDIO.activePlaylistLoader.media()?a.trigger('selectedinitialmedia'):a.mediaTypes_.AUDIO.activePlaylistLoader.one('loadedmetadata',function(){a.trigger('selectedinitialmedia')})}),this.masterPlaylistLoader_.on('loadedplaylist',function(){var b=a.masterPlaylistLoader_.media();if(!b){a.excludeUnsupportedVariants_();var c=void 0;return a.enableLowInitialPlaylist&&(c=a.selectInitialPlaylist()),c||(c=a.selectPlaylist()),a.initialMedia_=c,a.masterPlaylistLoader_.media(a.initialMedia_),void 0}if(a.useCueTags_&&a.updateAdCues_(b),a.mainSegmentLoader_.playlist(b,a.requestOptions_),a.updateDuration(),a.tech_.paused()||(a.mainSegmentLoader_.load(),a.audioSegmentLoader_&&a.audioSegmentLoader_.load()),!b.endList){var d=function f(){var b=a.seekable();0!==b.length&&a.mediaSource.addSeekableRange_(b.start(0),b.end(0))};if(a.duration()!==1/0){var e=function g(){a.duration()===1/0?d():a.tech_.one('durationchange',g)};a.tech_.one('durationchange',e)}else d()}}),this.masterPlaylistLoader_.on('error',function(){a.blacklistCurrentPlaylist(a.masterPlaylistLoader_.error)}),this.masterPlaylistLoader_.on('mediachanging',function(){a.mainSegmentLoader_.abort(),a.mainSegmentLoader_.pause()}),this.masterPlaylistLoader_.on('mediachange',function(){var b=a.masterPlaylistLoader_.media(),c=1.5*b.targetDuration*1e3;qb(a.masterPlaylistLoader_.master,a.masterPlaylistLoader_.media())?a.requestOptions_.timeout=0:a.requestOptions_.timeout=c,a.mainSegmentLoader_.playlist(b,a.requestOptions_),a.mainSegmentLoader_.load(),a.tech_.trigger({type:'mediachange',bubbles:!0})}),this.masterPlaylistLoader_.on('playlistunchanged',function(){var b=a.masterPlaylistLoader_.media(),c=a.stuckAtPlaylistEnd_(b);c&&(a.blacklistCurrentPlaylist({message:'Playlist no longer updating.'}),a.tech_.trigger('playliststuck'))}),this.masterPlaylistLoader_.on('renditiondisabled',function(){a.tech_.trigger({type:'usage',name:'hls-rendition-disabled'})}),this.masterPlaylistLoader_.on('renditionenabled',function(){a.tech_.trigger({type:'usage',name:'hls-rendition-enabled'})})}},{key:'triggerPresenceUsage_',value:function e(a,b){var c=a.mediaGroups||{},d=!0,e=Object.keys(c.AUDIO);for(var f in c.AUDIO)for(var g in c.AUDIO[f]){var h=c.AUDIO[f][g];h.uri||(d=!1)}d&&this.tech_.trigger({type:'usage',name:'hls-demuxed'}),Object.keys(c.SUBTITLES).length&&this.tech_.trigger({type:'usage',name:'hls-webvtt'}),_h.Playlist.isAes(b)&&this.tech_.trigger({type:'usage',name:'hls-aes'}),_h.Playlist.isFmp4(b)&&this.tech_.trigger({type:'usage',name:'hls-fmp4'}),e.length&&Object.keys(c.AUDIO[e[0]]).length>1&&this.tech_.trigger({type:'usage',name:'hls-alternate-audio'}),this.useCueTags_&&this.tech_.trigger({type:'usage',name:'hls-playlist-cue-tags'})}},{key:'setupSegmentLoaderListeners_',value:function f(){var a=this;this.mainSegmentLoader_.on('bandwidthupdate',function(){var b=a.selectPlaylist(),c=a.masterPlaylistLoader_.media(),d=a.tech_.buffered(),e=d.length?d.end(d.length-1)-a.tech_.currentTime():0,f=a.bufferLowWaterLine();ci({currentPlaylist:c,nextPlaylist:b,forwardBuffer:e,bufferLowWaterLine:f,duration:a.duration(),log:a.logger_})&&a.masterPlaylistLoader_.media(b),a.tech_.trigger('bandwidthupdate')}),this.mainSegmentLoader_.on('progress',function(){a.trigger('progress')}),this.mainSegmentLoader_.on('error',function(){a.blacklistCurrentPlaylist(a.mainSegmentLoader_.error())}),this.mainSegmentLoader_.on('syncinfoupdate',function(){a.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on('timestampoffset',function(){a.tech_.trigger({type:'usage',name:'hls-timestamp-offset'})}),this.audioSegmentLoader_.on('syncinfoupdate',function(){a.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on('ended',function(){a.onEndOfStream()}),this.mainSegmentLoader_.on('earlyabort',function(){a.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},$h)}),this.mainSegmentLoader_.on('reseteverything',function(){a.tech_.trigger('hls-reset')}),this.mainSegmentLoader_.on('segmenttimemapping',function(b){a.tech_.trigger({type:'hls-segment-time-mapping',mapping:b.mapping})}),this.audioSegmentLoader_.on('ended',function(){a.onEndOfStream()})}},{key:'mediaSecondsLoaded_',value:function g(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}},{key:'load',value:function h(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}},{key:'smoothQualityChange_',value:function i(){var a=this.selectPlaylist();a!==this.masterPlaylistLoader_.media()&&(this.masterPlaylistLoader_.media(a),this.mainSegmentLoader_.resetLoader())}},{key:'fastQualityChange_',value:function j(){var a=this,c=this.selectPlaylist();c!==this.masterPlaylistLoader_.media()&&(this.masterPlaylistLoader_.media(c),this.mainSegmentLoader_.resetEverything(function(){b.browser.IE_VERSION||b.browser.IS_EDGE?a.tech_.setCurrentTime(a.tech_.currentTime()+.04):a.tech_.setCurrentTime(a.tech_.currentTime())}))}},{key:'play',value:function k(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var a=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<a.start(0)?this.tech_.setCurrentTime(a.end(a.length-1)):void 0}}},{key:'setupFirstPlay',value:function l(){var a=this,c=this.masterPlaylistLoader_.media();if(!c||this.tech_.paused()||this.hasPlayed_)return!1;if(!c.endList){var d=this.seekable();if(!d.length)return!1;if(b.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one('loadedmetadata',function(){a.trigger('firstplay'),a.tech_.setCurrentTime(d.end(0)),a.hasPlayed_=!0}),!1;this.trigger('firstplay'),this.tech_.setCurrentTime(d.end(0))}return this.hasPlayed_=!0,this.load(),!0}},{key:'handleSourceOpen_',value:function m(){try{this.setupSourceBuffers_()}catch(a){return b.log.warn('Failed to create Source Buffers',a),this.mediaSource.endOfStream('decode')}if(this.tech_.autoplay()){var c=this.tech_.play();'undefined'!=typeof c&&'function'==typeof c.then&&c.then(null,function(a){})}this.trigger('sourceopen')}},{key:'onEndOfStream',value:function n(){var a=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader&&(a=!this.mainSegmentLoader_.startingMedia_||this.mainSegmentLoader_.startingMedia_.containsVideo?a&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_),a){this.logger_('calling mediaSource.endOfStream()');try{this.mediaSource.endOfStream()}catch(c){b.log.warn('Failed to call media source endOfStream',c)}}}},{key:'stuckAtPlaylistEnd_',value:function o(a){var b=this.seekable();if(!b.length)return!1;var c=this.syncController_.getExpiredTime(a,this.mediaSource.duration);if(null===c)return!1;var d=_h.Playlist.playlistEnd(a,c),e=this.tech_.currentTime(),f=this.tech_.buffered();if(!f.length)return bc>=d-e;var g=f.end(f.length-1);return bc>=g-e&&bc>=d-g}},{key:'blacklistCurrentPlaylist',value:function p(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=arguments[1],d=void 0,e=void 0;
if(d=a.playlist||this.masterPlaylistLoader_.media(),c=c||a.blacklistDuration||this.blacklistDuration,!d){this.error=a;try{return this.mediaSource.endOfStream('network')}catch(f){return this.trigger('error')}}var g=1===this.masterPlaylistLoader_.master.playlists.filter(kb).length,h=this.masterPlaylistLoader_.master.playlists;return 1===h.length?(b.log.warn("Problem encountered with the current HLS playlist. Trying again since it is the only playlist."),this.tech_.trigger('retryplaylist'),this.masterPlaylistLoader_.load(g)):(g&&(b.log.warn("Removing all playlists from the blacklist because the last rendition is about to be blacklisted."),h.forEach(function(a){a.excludeUntil!==1/0&&delete a.excludeUntil}),this.tech_.trigger('retryplaylist')),d.excludeUntil=Date.now()+1e3*c,this.tech_.trigger('blacklistplaylist'),this.tech_.trigger({type:'usage',name:'hls-rendition-blacklisted'}),e=this.selectPlaylist(),b.log.warn('Problem encountered with the current HLS playlist.'+(a.message?' '+a.message:'')+' Switching to another playlist.'),this.masterPlaylistLoader_.media(e,g))}},{key:'pauseLoading',value:function q(){this.mainSegmentLoader_.pause(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.pause(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.pause()}},{key:'setCurrentTime',value:function r(a){var b=dc(this.tech_.buffered(),a);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?b&&b.length?a:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),this.load(),void 0):0}},{key:'duration',value:function s(){return this.masterPlaylistLoader_?this.mediaSource?this.mediaSource.duration:_h.Playlist.duration(this.masterPlaylistLoader_.media()):0}},{key:'seekable',value:function t(){return this.seekable_}},{key:'onSyncInfoUpdate_',value:function u(){var a=void 0;if(this.masterPlaylistLoader_){var c=this.masterPlaylistLoader_.media();if(c){var d=this.syncController_.getExpiredTime(c,this.mediaSource.duration);if(null!==d){var e=this.masterPlaylistLoader_.master.suggestedPresentationDelay,f=_h.Playlist.seekable(c,d,e);if(0!==f.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(c=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),d=this.syncController_.getExpiredTime(c,this.mediaSource.duration),null===d)return;if(a=_h.Playlist.seekable(c,d,e),0===a.length)return}var g=void 0,h=void 0;this.seekable_&&this.seekable_.length&&(g=this.seekable_.end(0),h=this.seekable_.start(0)),a?a.start(0)>f.end(0)||f.start(0)>a.end(0)?this.seekable_=f:this.seekable_=b.createTimeRanges([[a.start(0)>f.start(0)?a.start(0):f.start(0),a.end(0)<f.end(0)?a.end(0):f.end(0)]]):this.seekable_=f,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===g&&this.seekable_.start(0)===h||(this.logger_('seekable updated ['+gc(this.seekable_)+']'),this.tech_.trigger('seekablechanged'))}}}}}},{key:'updateDuration',value:function v(){var a=this,c=this.mediaSource.duration,d=_h.Playlist.duration(this.masterPlaylistLoader_.media()),e=this.tech_.buffered(),f=function g(){a.logger_('Setting duration from '+a.mediaSource.duration+' => '+d);try{a.mediaSource.duration=d}catch(c){b.log.warn('Failed to set media source duration',c)}a.tech_.trigger('durationchange'),a.mediaSource.removeEventListener('sourceopen',g)};e.length>0&&(d=Math.max(d,e.end(e.length-1))),c!==d&&('open'!==this.mediaSource.readyState?this.mediaSource.addEventListener('sourceopen',f):f())}},{key:'dispose',value:function w(){var a=this;this.trigger('dispose'),this.decrypter_&&this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),['AUDIO','SUBTITLES'].forEach(function(b){var c=a.mediaTypes_[b].groups;for(var d in c)c[d].forEach(function(a){a.playlistLoader&&a.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.off(),this.mediaSource.dispose&&this.mediaSource.dispose()}},{key:'master',value:function x(){return this.masterPlaylistLoader_.master}},{key:'media',value:function y(){return this.masterPlaylistLoader_.media()||this.initialMedia_}},{key:'setupSourceBuffers_',value:function z(){var a=this.masterPlaylistLoader_.media(),b=void 0;if(a&&'open'===this.mediaSource.readyState){if(b=Hc(this.masterPlaylistLoader_.master,a),b.length<1)return this.error='No compatible SourceBuffer configuration for the variant stream:'+a.resolvedUri,this.mediaSource.endOfStream('decode');this.configureLoaderMimeTypes_(b),this.excludeIncompatibleVariants_(a)}}},{key:'configureLoaderMimeTypes_',value:function A(a){var c=a.length>1&&-1===a[0].indexOf(',')&&a[0]!==a[1]?new b.EventTarget:null;this.mainSegmentLoader_.mimeType(a[0],c),a[1]&&this.audioSegmentLoader_.mimeType(a[1],c)}},{key:'excludeUnsupportedVariants_',value:function B(){this.master().playlists.forEach(function(a){a.attributes.CODECS&&va.MediaSource&&va.MediaSource.isTypeSupported&&!va.MediaSource.isTypeSupported('video/mp4; codecs="'+Cc(a.attributes.CODECS)+'"')&&(a.excludeUntil=1/0)})}},{key:'excludeIncompatibleVariants_',value:function C(a){var b=2,c=null,d=void 0;a.attributes.CODECS&&(d=Bc(a.attributes.CODECS),c=d.videoCodec,b=d.codecCount),this.master().playlists.forEach(function(a){var d={codecCount:2,videoCodec:null};a.attributes.CODECS&&(d=Bc(a.attributes.CODECS)),d.codecCount!==b&&(a.excludeUntil=1/0),d.videoCodec!==c&&(a.excludeUntil=1/0)})}},{key:'updateAdCues_',value:function D(a){var b=0,c=this.seekable();c.length&&(b=c.start(0)),Mg(a,this.cueTagsTrack_,b)}},{key:'goalBufferLength',value:function E(){var a=this.tech_.currentTime(),b=yf.GOAL_BUFFER_LENGTH,c=yf.GOAL_BUFFER_LENGTH_RATE,d=Math.max(b,yf.MAX_GOAL_BUFFER_LENGTH);return Math.min(b+a*c,d)}},{key:'bufferLowWaterLine',value:function F(){var a=this.tech_.currentTime(),b=yf.BUFFER_LOW_WATER_LINE,c=yf.BUFFER_LOW_WATER_LINE_RATE,d=Math.max(b,yf.MAX_BUFFER_LOW_WATER_LINE);return Math.min(b+a*c,d)}}]),c}(b.EventTarget),ei=function Sp(a,b,c){return function(d){var e=a.master.playlists[b],f=jb(e),g=kb(e);return'undefined'==typeof d?g:(d?delete e.disabled:e.disabled=!0,d===g||f||(c(),d?a.trigger('renditionenabled'):a.trigger('renditiondisabled')),d)}},fi=function Tp(a,b,c){Ea(this,Tp);var d=a.masterPlaylistController_,e=a.options_.smoothQualityChange,f=e?'smooth':'fast',g=d[f+'QualityChange_'].bind(d);if(b.attributes.RESOLUTION){var h=b.attributes.RESOLUTION;this.width=h.width,this.height=h.height}this.bandwidth=b.attributes.BANDWIDTH,this.id=c,this.enabled=ei(a.playlists,b.id,g)},gi=function Up(a){var b=a.playlists;a.representations=function(){return b&&b.master&&b.master.playlists?b.master.playlists.filter(function(a){return!jb(a)}).map(function(b,c){return new fi(a,b,b.id)}):[]}},hi=['seeking','seeked','pause','playing','error'],ii=function(){function a(b){var c=this;Ea(this,a),this.tech_=b.tech,this.seekable=b.seekable,this.allowSeeksWithinUnsafeLiveWindow=b.allowSeeksWithinUnsafeLiveWindow,this.media=b.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=wf('PlaybackWatcher'),this.logger_('initialize');var d=function h(){return c.monitorCurrentTime_()},e=function i(){return c.techWaiting_()},f=function j(){return c.cancelTimer_()},g=function k(){return c.fixesBadSeeks_()};this.tech_.on('seekablechanged',g),this.tech_.on('waiting',e),this.tech_.on(hi,f),this.tech_.on('canplay',d),this.dispose=function(){c.logger_('dispose'),c.tech_.off('seekablechanged',g),c.tech_.off('waiting',e),c.tech_.off(hi,f),c.tech_.off('canplay',d),c.checkCurrentTimeTimeout_&&va.clearTimeout(c.checkCurrentTimeTimeout_),c.cancelTimer_()}}return Fa(a,[{key:'monitorCurrentTime_',value:function b(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&va.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=va.setTimeout(this.monitorCurrentTime_.bind(this),250)}},{key:'checkCurrentTime_',value:function c(){if(this.tech_.seeking()&&this.fixesBadSeeks_())return this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),void 0;if(!this.tech_.paused()&&!this.tech_.seeking()){var a=this.tech_.currentTime(),b=this.tech_.buffered();return this.lastRecordedTime===a&&(!b.length||a+bc>=b.end(b.length-1))?this.techWaiting_():(this.consecutiveUpdates>=5&&a===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):a===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=a),void 0)}}},{key:'cancelTimer_',value:function d(){this.consecutiveUpdates=0,this.timer_&&(this.logger_('cancelTimer_'),clearTimeout(this.timer_)),this.timer_=null}},{key:'fixesBadSeeks_',value:function e(){var a=this.tech_.seeking();if(!a)return!1;var b=this.seekable(),c=this.tech_.currentTime(),d=this.afterSeekableWindow_(b,c,this.media(),this.allowSeeksWithinUnsafeLiveWindow),e=void 0;if(d){var f=b.end(b.length-1);e=f}if(this.beforeSeekableWindow_(b,c)){var g=b.start(0);e=g+bc}return'undefined'!=typeof e?(this.logger_('Trying to seek outside of seekable at time '+c+' with '+('seekable range '+gc(b)+'. Seeking to ')+(e+'.')),this.tech_.setCurrentTime(e),!0):!1}},{key:'waiting_',value:function f(){if(!this.techWaiting_()){var a=this.tech_.currentTime(),b=this.tech_.buffered(),c=dc(b,a);return c.length&&a+3<=c.end(0)?(this.cancelTimer_(),this.tech_.setCurrentTime(a),this.logger_('Stopped at '+a+' while inside a buffered region '+('['+c.start(0)+' -> '+c.end(0)+']. Attempting to resume ')+'playback by seeking to the current time.'),this.tech_.trigger({type:'usage',name:'hls-unknown-waiting'}),void 0):void 0}}},{key:'techWaiting_',value:function g(){var a=this.seekable(),b=this.tech_.currentTime();if(this.tech_.seeking()&&this.fixesBadSeeks_())return!0;if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(a,b)){var c=a.end(a.length-1);return this.logger_('Fell out of live window at time '+b+". Seeking to live point (seekable end) "+c),this.cancelTimer_(),this.tech_.setCurrentTime(c),this.tech_.trigger({type:'usage',name:'hls-live-resync'}),!0}var d=this.tech_.buffered(),e=ec(d,b);if(this.videoUnderflow_(e,d,b))return this.cancelTimer_(),this.tech_.setCurrentTime(b),this.tech_.trigger({type:'usage',name:'hls-video-underflow'}),!0;if(e.length>0){var f=e.start(0)-b;return this.logger_('Stopped at '+b+', setting timer for '+f+", seeking to "+e.start(0)),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*f,b),!0}return!1}},{key:'afterSeekableWindow_',value:function h(a,b,c){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:!1;if(!a.length)return!1;var e=a.end(a.length-1)+bc,f=!c.endList;return f&&d&&(e=a.end(a.length-1)+3*c.targetDuration),b>e}},{key:'beforeSeekableWindow_',value:function i(a,b){return!!(a.length&&a.start(0)>0&&b<a.start(0)-bc)}},{key:'videoUnderflow_',value:function j(a,b,c){if(0===a.length){var d=this.gapFromVideoUnderflow_(b,c);if(d)return this.logger_('Encountered a gap in video from '+d.start+' to '+d.end+". Seeking to current time "+c),!0}return!1}},{key:'skipTheGap_',value:function k(a){var b=this.tech_.buffered(),c=this.tech_.currentTime(),d=ec(b,c);this.cancelTimer_(),0!==d.length&&c===a&&(this.logger_('skipTheGap_:','currentTime:',c,'scheduled currentTime:',a,'nextRange start:',d.start(0)),this.tech_.setCurrentTime(d.start(0)+ac),this.tech_.trigger({type:'usage',name:'hls-gap-skip'}))}},{key:'gapFromVideoUnderflow_',value:function l(a,b){for(var c=fc(a),d=0;d<c.length;d++){var e=c.start(d),f=c.end(d);if(4>b-e&&b-e>2)return{start:e,end:f}}return null}}]),a}(),ji={errorInterval:30,getSource:function Vp(a){var b=this.tech({IWillNotUseThisInPlugins:!0}),c=b.currentSource_;return a(c)}},ki=function Wp(a,c){var d=0,e=0,f=b.mergeOptions(ji,c);a.ready(function(){a.trigger({type:'usage',name:'hls-error-reload-initialized'})});var g=function l(){e&&a.currentTime(e)},h=function m(b){null!==b&&void 0!==b&&(e=a.duration()!==1/0&&a.currentTime()||0,a.one('loadedmetadata',g),a.src(b),a.trigger({type:'usage',name:'hls-error-reload'}),a.play())},i=function n(){return Date.now()-d<1e3*f.errorInterval?(a.trigger({type:'usage',name:'hls-error-reload-canceled'}),void 0):f.getSource&&'function'==typeof f.getSource?(d=Date.now(),f.getSource.call(a,h)):(b.log.error('ERROR: reloadSourceOnError - The option getSource must be a function!'),void 0)},j=function o(){a.off('loadedmetadata',g),a.off('error',i),a.off('dispose',o)},k=function p(b){j(),Wp(a,b)};a.on('error',i),a.on('dispose',j),a.reloadSourceOnError=k},li=function Xp(a){ki(this,a)},mi="1.13.2",ni={PlaylistLoader:Va,Playlist:rb,Decrypter:Ib,AsyncStream:Fb,decrypt:Hb,utils:Sb,STANDARD_PLAYLIST_SELECTOR:Yf,INITIAL_PLAYLIST_SELECTOR:$f,comparePlaylistBandwidth:Vf,comparePlaylistResolution:Wf,xhr:ub()};['GOAL_BUFFER_LENGTH','MAX_GOAL_BUFFER_LENGTH','GOAL_BUFFER_LENGTH_RATE','BUFFER_LOW_WATER_LINE','MAX_BUFFER_LOW_WATER_LINE','BUFFER_LOW_WATER_LINE_RATE','BANDWIDTH_VARIANCE'].forEach(function(a){Object.defineProperty(ni,a,{get:function c(){return b.log.warn('using Hls.'+a+' is UNSAFE be sure you know what you are doing'),yf[a]},set:function d(c){return b.log.warn('using Hls.'+a+' is UNSAFE be sure you know what you are doing'),'number'!=typeof c||0>c?(b.log.warn('value of Hls.'+a+' must be greater than or equal to 0'),void 0):(yf[a]=c,void 0)}})});var oi='videojs-vhs',pi=function Yp(a){var b=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i;if(b.test(a))return'hls';var c=/^application\/dash\+xml/i;return c.test(a)?'dash':null},qi=function Zp(a,b){for(var c=b.media(),d=-1,e=0;e<a.length;e++)if(a[e].id===c.id){d=e;break}a.selectedIndex_=d,a.trigger({selectedIndex:d,type:'change'})},ri=function $p(a,b){b.representations().forEach(function(b){a.addQualityLevel(b)}),qi(a,b.playlists)};ni.canPlaySource=function(){return b.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var si=function _p(a,c,d){if(!a)return a;var e=void 0,f=void 0;if(d.mimeType_)e=c.mimeType_,f=d.mimeType_;else{var g=Ic(c.mimeType_),h=g.parameters.codecs.split(','),i=void 0,j=void 0;h.forEach(function(a){a=a.trim(),Jc(a)?i=a:Kc(a)&&(j=a)}),e=g.type+'; codecs="'+j+'"',f=g.type.replace('video','audio')+'; codecs="'+i+'"'}var k={},l=c.playlist_;for(var m in a)k[m]={audioContentType:f,videoContentType:e},l.contentProtection&&l.contentProtection[m]&&l.contentProtection[m].pssh&&(k[m].pssh=l.contentProtection[m].pssh),'string'==typeof a[m]&&(k[m].url=a[m]);return b.mergeOptions(a,k)},ti=function aq(a){var c=a.masterPlaylistController_.mainSegmentLoader_,d=a.masterPlaylistController_.audioSegmentLoader_,e=b.players[a.tech_.options_.playerId];if(e.eme){var f=si(a.source_.keySystems,c,d);f&&(e.currentSource().keySystems=f,11!==b.browser.IE_VERSION&&e.eme.initializeMediaKeys&&e.eme.initializeMediaKeys())}},ui=function bq(){if(!window.localStorage)return null;var a=window.localStorage.getItem(oi);if(!a)return null;try{return JSON.parse(a)}catch(b){return null}},vi=function cq(a){if(!window.localStorage)return!1;var c=ui();c=c?b.mergeOptions(c,a):a;try{window.localStorage.setItem(oi,JSON.stringify(c))}catch(d){return!1}return c};ni.supportsNativeHls=function(){var a=sa.createElement('video');if(!b.getTech('Html5').isSupported())return!1;var c=['application/vnd.apple.mpegurl','audio/mpegurl','audio/x-mpegurl','application/x-mpegurl','video/x-mpegurl','video/mpegurl','application/mpegurl'];return c.some(function(b){return/maybe|probably/i.test(a.canPlayType(b))})}(),ni.supportsNativeDash=function(){return b.getTech('Html5').isSupported()?/maybe|probably/i.test(sa.createElement('video').canPlayType('application/dash+xml')):!1}(),ni.supportsTypeNatively=function(a){return'hls'===a?ni.supportsNativeHls:'dash'===a?ni.supportsNativeDash:!1},ni.isSupported=function(){return b.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var wi=b.getComponent('Component'),xi=function(a){function c(a,d,e){Ea(this,c);var f=Ia(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,d,e.hls));if(d.options_&&d.options_.playerId){var g=b(d.options_.playerId);g.hasOwnProperty('hls')||Object.defineProperty(g,'hls',{get:function h(){return b.log.warn('player.hls is deprecated. Use player.tech().hls instead.'),d.trigger({type:'usage',name:'hls-player-access'}),f},configurable:!0}),g.vhs=f,g.dash=f,f.player_=g}if(f.tech_=d,f.source_=a,f.stats={},f.ignoreNextSeekingEvent_=!1,f.setOptions_(),f.options_.overrideNative&&d.overrideNativeAudioTracks&&d.overrideNativeVideoTracks)d.overrideNativeAudioTracks(!0),d.overrideNativeVideoTracks(!0);else if(f.options_.overrideNative&&(d.featuresNativeVideoTracks||d.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return f.on(sa,['fullscreenchange','webkitfullscreenchange','mozfullscreenchange','MSFullscreenChange'],function(a){var b=sa.fullscreenElement||sa.webkitFullscreenElement||sa.mozFullScreenElement||sa.msFullscreenElement;b&&b.contains(f.tech_.el())&&f.masterPlaylistController_.smoothQualityChange_()}),f.on(f.tech_,'seeking',function(){return this.ignoreNextSeekingEvent_?(this.ignoreNextSeekingEvent_=!1,void 0):(this.setCurrentTime(this.tech_.currentTime()),void 0)}),f.on(f.tech_,'error',function(){this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()}),f.on(f.tech_,'play',f.play),f}return Ha(c,a),Fa(c,[{key:'setOptions_',value:function d(){var a=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=this.options_.handleManifestRedirects||!1,this.options_.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions!==!1,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage='undefined'!=typeof this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,'number'!=typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),'number'!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var b=ui();b&&b.bandwidth&&(this.options_.bandwidth=b.bandwidth,this.tech_.trigger({type:'usage',name:'hls-bandwidth-from-local-storage'})),b&&b.throughput&&(this.options_.throughput=b.throughput,this.tech_.trigger({type:'usage',name:'hls-throughput-from-local-storage'}))}'number'!=typeof this.options_.bandwidth&&(this.options_.bandwidth=yf.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===yf.INITIAL_BANDWIDTH,['withCredentials','useDevicePixelRatio','limitRenditionByPlayerDimensions','bandwidth','smoothQualityChange','customTagParsers','customTagMappers','handleManifestRedirects','cacheEncryptionKeys'].forEach(function(b){'undefined'!=typeof a.source_[b]&&(a.options_[b]=a.source_[b])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio}},{key:'src',value:function e(a,c){var d=this;a&&(this.setOptions_(),this.options_.url=this.source_.src,this.options_.tech=this.tech_,this.options_.externHls=ni,this.options_.sourceType=pi(c),this.options_.seekTo=function(a){d.tech_.setCurrentTime(a)},this.masterPlaylistController_=new di(this.options_),this.playbackWatcher_=new ii(b.mergeOptions(this.options_,{seekable:function e(){return d.seekable()},media:function f(){return d.masterPlaylistController_.media()}})),this.masterPlaylistController_.on('error',function(){var a=b.players[d.tech_.options_.playerId];a.error(d.masterPlaylistController_.error)}),this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):ni.STANDARD_PLAYLIST_SELECTOR.bind(this),this.masterPlaylistController_.selectInitialPlaylist=ni.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function g(){return this.masterPlaylistController_.selectPlaylist},set:function h(a){this.masterPlaylistController_.selectPlaylist=a.bind(this)}},throughput:{get:function i(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function j(a){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=a,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function k(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth},set:function l(a){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=a,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function m(){var a=1/(this.bandwidth||1),b=void 0;b=this.throughput>0?1/this.throughput:0;var c=Math.floor(1/(a+b));return c},set:function n(){b.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function o(){return d.bandwidth||0},enumerable:!0},mediaRequests:{get:function p(){return d.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function q(){return d.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function r(){return d.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function s(){return d.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function t(){return d.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function u(){return d.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function v(){return d.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},buffered:{get:function w(){return ic(d.tech_.buffered())},enumerable:!0},currentTime:{get:function x(){return d.tech_.currentTime()},enumerable:!0},currentSource:{get:function y(){return d.tech_.currentSource_},enumerable:!0},currentTech:{get:function z(){return d.tech_.name_},enumerable:!0},duration:{get:function A(){return d.tech_.duration()},enumerable:!0},master:{get:function B(){return d.playlists.master},enumerable:!0},playerDimensions:{get:function C(){return d.tech_.currentDimensions()},enumerable:!0},seekable:{get:function D(){return ic(d.tech_.seekable())},enumerable:!0},timestamp:{get:function E(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function F(){return d.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one('canplay',this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on('bandwidthupdate',function(){d.options_.useBandwidthFromLocalStorage&&vi({bandwidth:d.bandwidth,throughput:Math.round(d.throughput)})}),this.masterPlaylistController_.on('selectedinitialmedia',function(){gi(d),ti(d)}),this.on(this.masterPlaylistController_,'progress',function(){this.tech_.trigger('progress')}),this.on(this.masterPlaylistController_,'firstplay',function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&this.tech_.src(b.URL.createObjectURL(this.masterPlaylistController_.mediaSource)))}},{key:'setupQualityLevels_',value:function f(){var a=this,c=b.players[this.tech_.options_.playerId];c&&c.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=c.qualityLevels(),this.masterPlaylistController_.on('selectedinitialmedia',function(){ri(a.qualityLevels_,a)}),this.playlists.on('mediachange',function(){qi(a.qualityLevels_,a.playlists)}))}},{key:'play',value:function g(){this.masterPlaylistController_.play()}},{key:'setCurrentTime',value:function h(a){this.masterPlaylistController_.setCurrentTime(a)}},{key:'duration',value:function i(){return this.masterPlaylistController_.duration()}},{key:'seekable',value:function j(){return this.masterPlaylistController_.seekable()}},{key:'dispose',value:function k(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.hls&&delete this.tech_.hls,Ga(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),'dispose',this).call(this)}},{key:'convertToProgramTime',value:function l(a,b){return $b({playlist:this.masterPlaylistController_.media(),time:a,callback:b})}},{key:'seekToProgramTime',value:function m(a,b){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:!0,d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2;return _b({programTime:a,playlist:this.masterPlaylistController_.media(),retryCount:d,pauseAfterSeek:c,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:b})}}]),c}(wi),yi={name:'videojs-http-streaming',VERSION:mi,canHandleSource:function dq(a){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=b.mergeOptions(b.options,c);return yi.canPlayType(a.type,d)},handleSource:function eq(a,c){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},e=b.mergeOptions(b.options,d);return c.hls=new xi(a,c,e),c.hls.xhr=ub(),c.hls.src(a.src,a.type),c.hls},canPlayType:function fq(a){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=b.mergeOptions(b.options,c),e=d.hls.overrideNative,f=pi(a),g=f&&(!ni.supportsTypeNatively(f)||e);return g?'maybe':''}};'undefined'!=typeof b.MediaSource&&'undefined'!=typeof b.URL||(b.MediaSource=Wc,b.URL=Xc),Wc.supportsNativeMediaSources()&&b.getTech('Html5').registerSourceHandler(yi,0),b.HlsHandler=xi,b.HlsSourceHandler=yi,b.Hls=ni,b.use||b.registerComponent('Hls',ni),b.options.hls=b.options.hls||{},b.registerPlugin?b.registerPlugin('reloadSourceOnError',li):b.plugin('reloadSourceOnError',li),a.LOCAL_STORAGE_KEY=oi,a.Hls=ni,a.HlsHandler=xi,a.HlsSourceHandler=yi,a.emeKeySystems=si,a.simpleTypeFromSourceType=pi,Object.defineProperty(a,'__esModule',{value:!0})}),function(a,b){if("object"==typeof exports&&"undefined"!=typeof module){var c=require("video.js");module.exports=b(c["default"]||c)}else"function"==typeof define&&define.amd?define('youtube',["videojs"],function(c){return a.Youtube=b(c)}):a.Youtube=b(a.videojs)}(this,function(a){"use strict";function b(){YT.ready(function(){g.isApiReady=!0;for(var a=0;a<g.apiReadyQueue.length;++a)g.apiReadyQueue[a].initYTPlayer()})}function c(a,b){var c=!1,d=document.createElement("script"),e=document.getElementsByTagName("script")[0];e&&(e.parentNode.insertBefore(d,e),d.onload=function(){c||(c=!0,b())},d.onreadystatechange=function(){c||"complete"!==this.readyState&&"loaded"!==this.readyState||(c=!0,b())},d.src=a)}function d(){var a=".vjs-youtube .vjs-iframe-blocker { display: none; }.vjs-youtube.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-youtube .vjs-poster { background-size: cover; }.vjs-youtube-mobile .vjs-big-play-button { display: none; }",b=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.type="text/css",c.styleSheet?c.styleSheet.cssText=a:c.appendChild(document.createTextNode(a)),b.appendChild(c)}var e=a.browser.IS_IOS||a.browser.IS_NATIVE_ANDROID,f=a.getTech("Tech"),g=a.extend(f,{constructor:function(a,b){f.call(this,a,b),this.setPoster(a.poster),this.setSrc(this.options_.source,!0),this.setTimeout(function(){this.el_&&(this.el_.parentNode.className+=" vjs-youtube",e&&(this.el_.parentNode.className+=" vjs-youtube-mobile"),g.isApiReady?this.initYTPlayer():g.apiReadyQueue.push(this))}.bind(this))},dispose:function(){if(this.ytPlayer)this.ytPlayer.stopVideo&&this.ytPlayer.stopVideo(),this.ytPlayer.destroy&&this.ytPlayer.destroy();else{var a=g.apiReadyQueue.indexOf(this);-1!==a&&g.apiReadyQueue.splice(a,1)}this.ytPlayer=null,this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-youtube","").replace(" vjs-youtube-mobile",""),this.el_.parentNode.removeChild(this.el_),f.prototype.dispose.call(this)},createEl:function(){var a=document.createElement("div");a.setAttribute("id",this.options_.techId),a.setAttribute("style","width:100%;height:100%;top:0;left:0;position:absolute"),a.setAttribute("class","vjs-tech");var b=document.createElement("div");if(b.appendChild(a),!e&&!this.options_.ytControls){var c=document.createElement("div");c.setAttribute("class","vjs-iframe-blocker"),c.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),c.onclick=function(){this.pause()}.bind(this),b.appendChild(c)}return b},initYTPlayer:function(){var a={controls:0,modestbranding:1,rel:0,showinfo:0,loop:this.options_.loop?1:0};if("undefined"!=typeof this.options_.autohide&&(a.autohide=this.options_.autohide),"undefined"!=typeof this.options_.cc_load_policy&&(a.cc_load_policy=this.options_.cc_load_policy),"undefined"!=typeof this.options_.ytControls&&(a.controls=this.options_.ytControls),"undefined"!=typeof this.options_.disablekb&&(a.disablekb=this.options_.disablekb),"undefined"!=typeof this.options_.color&&(a.color=this.options_.color),a.controls?"undefined"!=typeof this.options_.fs&&(a.fs=this.options_.fs):a.fs=0,-1!==this.options_.source.src.indexOf("end=")){var b=this.options_.source.src.match(/end=([0-9]*)/);this.options_.end=parseInt(b[1])}if("undefined"!=typeof this.options_.end&&(a.end=this.options_.end),"undefined"!=typeof this.options_.hl?a.hl=this.options_.hl:"undefined"!=typeof this.options_.language&&(a.hl=this.options_.language.substr(0,2)),"undefined"!=typeof this.options_.iv_load_policy&&(a.iv_load_policy=this.options_.iv_load_policy),"undefined"!=typeof this.options_.list?a.list=this.options_.list:this.url&&"undefined"!=typeof this.url.listId&&(a.list=this.url.listId),"undefined"!=typeof this.options_.listType&&(a.listType=this.options_.listType),"undefined"!=typeof this.options_.modestbranding&&(a.modestbranding=this.options_.modestbranding),"undefined"!=typeof this.options_.playlist&&(a.playlist=this.options_.playlist),"undefined"!=typeof this.options_.playsinline&&(a.playsinline=this.options_.playsinline),"undefined"!=typeof this.options_.rel&&(a.rel=this.options_.rel),"undefined"!=typeof this.options_.showinfo&&(a.showinfo=this.options_.showinfo),-1!==this.options_.source.src.indexOf("start=")){var c=this.options_.source.src.match(/start=([0-9]*)/);this.options_.start=parseInt(c[1])}if("undefined"!=typeof this.options_.start&&(a.start=this.options_.start),"undefined"!=typeof this.options_.theme&&(a.theme=this.options_.theme),"undefined"!=typeof this.options_.customVars){var d=this.options_.customVars;Object.keys(d).forEach(function(b){a[b]=d[b]})}this.activeVideoId=this.url?this.url.videoId:null,this.activeList=a.list;var e={videoId:this.activeVideoId,playerVars:a,events:{onReady:this.onPlayerReady.bind(this),onPlaybackQualityChange:this.onPlayerPlaybackQualityChange.bind(this),onPlaybackRateChange:this.onPlayerPlaybackRateChange.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onVolumeChange:this.onPlayerVolumeChange.bind(this),onError:this.onPlayerError.bind(this)}};"undefined"!=typeof this.options_.enablePrivacyEnhancedMode&&this.options_.enablePrivacyEnhancedMode&&(e.host="https://www.youtube-nocookie.com"),this.ytPlayer=new YT.Player(this.options_.techId,e)},onPlayerReady:function(){this.options_.muted&&this.ytPlayer.mute();
var a=this.ytPlayer.getAvailablePlaybackRates();a.length>1&&(this.featuresPlaybackRate=!0),this.playerReady_=!0,this.triggerReady(),this.playOnReady?this.play():this.cueOnReady&&(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)},onPlayerPlaybackQualityChange:function(){},onPlayerPlaybackRateChange:function(){this.trigger("ratechange")},onPlayerStateChange:function(a){var b=a.data;if(b!==this.lastState&&!this.errorNumber)switch(this.lastState=b,b){case-1:this.trigger("loadstart"),this.trigger("loadedmetadata"),this.trigger("durationchange"),this.trigger("ratechange");break;case YT.PlayerState.ENDED:this.trigger("ended");break;case YT.PlayerState.PLAYING:this.trigger("timeupdate"),this.trigger("durationchange"),this.trigger("playing"),this.trigger("play"),this.isSeeking&&this.onSeeked();break;case YT.PlayerState.PAUSED:this.trigger("canplay"),this.isSeeking?this.onSeeked():this.trigger("pause");break;case YT.PlayerState.BUFFERING:this.player_.trigger("timeupdate"),this.player_.trigger("waiting")}},onPlayerVolumeChange:function(){this.trigger("volumechange")},onPlayerError:function(a){this.errorNumber=a.data,this.trigger("pause"),this.trigger("error")},error:function(){var a=1e3+this.errorNumber;switch(this.errorNumber){case 5:return{code:a,message:"Error while trying to play the video"};case 2:case 100:return{code:a,message:"Unable to find the video"};case 101:case 150:return{code:a,message:"Playback on other Websites has been disabled by the video owner."}}return{code:a,message:"YouTube unknown error ("+this.errorNumber+")"}},loadVideoById_:function(a){var b={videoId:a};this.options_.start&&(b.startSeconds=this.options_.start),this.options_.end&&(b.endSeconds=this.options_.end),this.ytPlayer.loadVideoById(b)},cueVideoById_:function(a){var b={videoId:a};this.options_.start&&(b.startSeconds=this.options_.start),this.options_.end&&(b.endSeconds=this.options_.end),this.ytPlayer.cueVideoById(b)},src:function(a){return a&&this.setSrc({src:a}),this.source},poster:function(){return e?null:this.poster_},setPoster:function(a){this.poster_=a},setSrc:function(a){a&&a.src&&(delete this.errorNumber,this.source=a,this.url=g.parseUrl(a.src),this.options_.poster||this.url.videoId&&(this.poster_="https://img.youtube.com/vi/"+this.url.videoId+"/0.jpg",this.trigger("posterchange"),this.checkHighResPoster()),this.options_.autoplay&&!e?this.isReady_?this.play():this.playOnReady=!0:this.activeVideoId!==this.url.videoId&&(this.isReady_?(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId):this.cueOnReady=!0))},autoplay:function(){return this.options_.autoplay},setAutoplay:function(a){this.options_.autoplay=a},loop:function(){return this.options_.loop},setLoop:function(a){this.options_.loop=a},play:function(){this.url&&this.url.videoId&&(this.wasPausedBeforeSeek=!1,this.isReady_?(this.url.listId&&(this.activeList===this.url.listId?this.ytPlayer.playVideo():(this.ytPlayer.loadPlaylist(this.url.listId),this.activeList=this.url.listId)),this.activeVideoId===this.url.videoId?this.ytPlayer.playVideo():(this.loadVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)):(this.trigger("waiting"),this.playOnReady=!0))},pause:function(){this.ytPlayer&&this.ytPlayer.pauseVideo()},paused:function(){return this.ytPlayer?this.lastState!==YT.PlayerState.PLAYING&&this.lastState!==YT.PlayerState.BUFFERING:!0},currentTime:function(){return this.ytPlayer?this.ytPlayer.getCurrentTime():0},setCurrentTime:function(a){this.lastState===YT.PlayerState.PAUSED&&(this.timeBeforeSeek=this.currentTime()),this.isSeeking||(this.wasPausedBeforeSeek=this.paused()),this.ytPlayer.seekTo(a,!0),this.trigger("timeupdate"),this.trigger("seeking"),this.isSeeking=!0,this.lastState===YT.PlayerState.PAUSED&&this.timeBeforeSeek!==a&&(clearInterval(this.checkSeekedInPauseInterval),this.checkSeekedInPauseInterval=setInterval(function(){this.lastState===YT.PlayerState.PAUSED&&this.isSeeking?this.currentTime()!==this.timeBeforeSeek&&(this.trigger("timeupdate"),this.onSeeked()):clearInterval(this.checkSeekedInPauseInterval)}.bind(this),250))},seeking:function(){return this.isSeeking},seekable:function(){return this.ytPlayer?a.createTimeRange(0,this.ytPlayer.getDuration()):a.createTimeRange()},onSeeked:function(){clearInterval(this.checkSeekedInPauseInterval),this.isSeeking=!1,this.wasPausedBeforeSeek&&this.pause(),this.trigger("seeked")},playbackRate:function(){return this.ytPlayer?this.ytPlayer.getPlaybackRate():1},setPlaybackRate:function(a){this.ytPlayer&&this.ytPlayer.setPlaybackRate(a)},duration:function(){return this.ytPlayer?this.ytPlayer.getDuration():0},currentSrc:function(){return this.source&&this.source.src},ended:function(){return this.ytPlayer?this.lastState===YT.PlayerState.ENDED:!1},volume:function(){return this.ytPlayer?this.ytPlayer.getVolume()/100:1},setVolume:function(a){this.ytPlayer&&this.ytPlayer.setVolume(100*a)},muted:function(){return this.ytPlayer?this.ytPlayer.isMuted():!1},setMuted:function(a){this.ytPlayer&&(this.muted(!0),a?this.ytPlayer.mute():this.ytPlayer.unMute(),this.setTimeout(function(){this.trigger("volumechange")},50))},buffered:function(){if(!this.ytPlayer||!this.ytPlayer.getVideoLoadedFraction)return a.createTimeRange();var b=this.ytPlayer.getVideoLoadedFraction()*this.ytPlayer.getDuration();return a.createTimeRange(0,b)},preload:function(){},load:function(){},reset:function(){},networkState:function(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 3:return 2;default:return 1}},readyState:function(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 5:return 1;case 3:return 2;default:return 4}},supportsFullScreen:function(){return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled},checkHighResPoster:function(){var a="https://img.youtube.com/vi/"+this.url.videoId+"/maxresdefault.jpg";try{var b=new Image;b.onload=function(){if("naturalHeight"in b){if(b.naturalHeight<=90||b.naturalWidth<=120)return}else if(b.height<=90||b.width<=120)return;this.poster_=a,this.trigger("posterchange")}.bind(this),b.onerror=function(){},b.src=a}catch(c){}}});g.isSupported=function(){return!0},g.canPlaySource=function(a){return g.canPlayType(a.type)},g.canPlayType=function(a){return"video/youtube"===a},g.parseUrl=function(a){var b={videoId:null},c=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,d=a.match(c);d&&11===d[2].length&&(b.videoId=d[2]);var e=/[?&]list=([^#\&\?]+)/;return d=a.match(e),d&&d[1]&&(b.listId=d[1]),b},g.apiReadyQueue=[],"undefined"!=typeof document&&(c("https://www.youtube.com/iframe_api",b),d()),"undefined"!=typeof a.registerTech?a.registerTech("Youtube",g):a.registerComponent("Youtube",g)}),function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define('vimeo',[],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.videojsVimeo=a()}}(function(){var a,b,c;return function(){function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c||a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}return a}()({1:[function(b,c,d){(function(b,e){!function(b,e){'object'==typeof d&&'undefined'!=typeof c?c.exports=e():'function'==typeof a&&a.amd?a(e):(b.Vimeo=b.Vimeo||{},b.Vimeo.Player=e())}(this,function(){'use strict';function a(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function c(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}function d(a,b,d){return b&&c(a.prototype,b),d&&c(a,d),a}function f(a,b){return 0===a.indexOf(b.toLowerCase())?a:"".concat(b.toLowerCase()).concat(a.substr(0,1).toUpperCase()).concat(a.substr(1))}function g(a){return Boolean(a&&1===a.nodeType&&'nodeName'in a&&a.ownerDocument&&a.ownerDocument.defaultView)}function h(a){return!isNaN(parseFloat(a))&&isFinite(a)&&Math.floor(a)==a}function i(a){return/^(https?:)?\/\/((player|www)\.)?vimeo\.com(?=$|\/)/.test(a)}function j(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},b=a.id,c=a.url,d=b||c;if(!d)throw new Error('An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.');if(h(d))return"https://vimeo.com/".concat(d);if(i(d))return d.replace('http:','https:');if(b)throw new TypeError("“".concat(b,"” is not a valid video id."));throw new TypeError("“".concat(d,"” is not a vimeo.com url."))}function k(a,b){return b={exports:{}},a(b,b.exports),b.exports}function l(a,b,c){var d=D.get(a.element)||{};b in d||(d[b]=[]),d[b].push(c),D.set(a.element,d)}function m(a,b){var c=D.get(a.element)||{};return c[b]||[]}function n(a,b,c){var d=D.get(a.element)||{};if(!d[b])return!0;if(!c)return d[b]=[],D.set(a.element,d),!0;var e=d[b].indexOf(c);return-1!==e&&d[b].splice(e,1),D.set(a.element,d),d[b]&&0===d[b].length}function o(a,b){var c=m(a,b);if(c.length<1)return!1;var d=c.shift();return n(a,b,d),d}function p(a,b){var c=D.get(a);D.set(b,c),D["delete"](a)}function q(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return E.reduce(function(b,c){var d=a.getAttribute("data-vimeo-".concat(c));return(d||''===d)&&(b[c]=''===d?1:d),b},b)}function r(a,b){var c=a.html;if(!b)throw new TypeError('An element must be provided');if(null!==b.getAttribute('data-vimeo-initialized'))return b.querySelector('iframe');var d=document.createElement('div');return d.innerHTML=c,b.appendChild(d.firstChild),b.setAttribute('data-vimeo-initialized','true'),b.querySelector('iframe')}function s(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2?arguments[2]:void 0;return new Promise(function(d,e){if(!i(a))throw new TypeError("“".concat(a,"” is not a vimeo.com url."));var f="https://vimeo.com/api/oembed.json?url=".concat(encodeURIComponent(a),"&domain=").concat(window.location.hostname);for(var g in b)b.hasOwnProperty(g)&&(f+="&".concat(g,"=").concat(encodeURIComponent(b[g])));var h='XDomainRequest'in window?new XDomainRequest:new XMLHttpRequest;h.open('GET',f,!0),h.onload=function(){if(404===h.status)return e(new Error("“".concat(a,"” was not found."))),void 0;if(403===h.status)return e(new Error("“".concat(a,"” is not embeddable."))),void 0;try{var b=JSON.parse(h.responseText);if(403===b.domain_status_code)return r(b,c),e(new Error("“".concat(a,"” is not embeddable."))),void 0;d(b)}catch(f){e(f)}},h.onerror=function(){var a=h.status?" (".concat(h.status,")"):'';e(new Error("There was an error fetching the embed code from Vimeo".concat(a,".")))},h.send()})}function t(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,b=[].slice.call(a.querySelectorAll('[data-vimeo-id], [data-vimeo-url]')),c=function d(a){'console'in window&&console.error&&console.error("There was an error creating an embed: ".concat(a))};b.forEach(function(a){try{if(null!==a.getAttribute('data-vimeo-defer'))return;var b=q(a),d=j(b);s(d,b,a).then(function(b){return r(b,a)})["catch"](c)}catch(e){c(e)}})}function u(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoPlayerResizeEmbeds_){window.VimeoPlayerResizeEmbeds_=!0;var b=function c(b){if(i(b.origin)&&b.data&&'spacechange'===b.data.event)for(var c=a.querySelectorAll('iframe'),d=0;d<c.length;d++)if(c[d].contentWindow===b.source){var e=c[d].parentElement;e.style.paddingBottom="".concat(b.data.data[0].bottom,"px");break}};window.addEventListener?window.addEventListener('message',b,!1):window.attachEvent&&window.attachEvent('onmessage',b)}}function v(a){return'string'==typeof a&&(a=JSON.parse(a)),a}function w(a,b,c){if(a.element.contentWindow&&a.element.contentWindow.postMessage){var d={method:b};void 0!==c&&(d.value=c);var e=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,'$1'));e>=8&&10>e&&(d=JSON.stringify(d)),a.element.contentWindow.postMessage(d,a.origin)}}function x(a,b){b=v(b);var c=[],d;if(b.event){if('error'===b.event){var e=m(a,b.data.method);e.forEach(function(c){var d=new Error(b.data.message);d.name=b.data.name,c.reject(d),n(a,b.data.method,c)})}c=m(a,"event:".concat(b.event)),d=b.data}else if(b.method){var f=o(a,b.method);f&&(c.push(f),d=b.value)}c.forEach(function(b){try{if('function'==typeof b)return b.call(a,d),void 0;b.resolve(d)}catch(c){}})}var y='undefined'!=typeof b&&'[object global]'==={}.toString.call(b),z='undefined'!=typeof Array.prototype.indexOf,A='undefined'!=typeof window&&'undefined'!=typeof window.postMessage;if(!(y||z&&A))throw new Error('Sorry, the Vimeo Player API is not available in this browser.');var B='undefined'!=typeof window?window:'undefined'!=typeof b?b:'undefined'!=typeof self?self:{};!function(a){function b(a){return Object(a)===a}if(!a.WeakMap){var c=Object.prototype.hasOwnProperty,d=function(a,b,c){Object.defineProperty?Object.defineProperty(a,b,{configurable:!0,writable:!0,value:c}):a[b]=c};a.WeakMap=function(){function a(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(d(this,'_id',f('_WeakMap')),arguments.length>0)throw new TypeError('WeakMap iterable is not supported')}function e(a,d){if(!b(a)||!c.call(a,'_id'))throw new TypeError(d+' method called on incompatible receiver '+typeof a)}function f(a){return a+'_'+g()+'.'+g()}function g(){return Math.random().toString().substring(2)}return d(a.prototype,'delete',function(a){if(e(this,'delete'),!b(a))return!1;var c=a[this._id];return c&&c[0]===a?(delete a[this._id],!0):!1}),d(a.prototype,'get',function(a){if(e(this,'get'),b(a)){var c=a[this._id];return c&&c[0]===a?c[1]:void 0}}),d(a.prototype,'has',function(a){if(e(this,'has'),!b(a))return!1;var c=a[this._id];return!(!c||c[0]!==a)}),d(a.prototype,'set',function(a,c){if(e(this,'set'),!b(a))throw new TypeError('Invalid value used as weak map key');var f=a[this._id];return f&&f[0]===a?(f[1]=c,this):(d(a,this._id,[a,c]),this)}),d(a,'_polyfill',!0),a}()}}('undefined'!=typeof self?self:'undefined'!=typeof window?window:'undefined'!=typeof B?B:B);var C=k(function(a){!function b(c,d,e){d[c]=d[c]||e(),a.exports&&(a.exports=d[c])}("Promise","undefined"!=typeof B?B:B,function c(){function a(a,b){n.add(a,b),m||(m=p(n.drain))}function b(a){var b,c=typeof a;return null==a||"object"!=c&&"function"!=c||(b=a.then),"function"==typeof b?b:!1}function c(){for(var a=0;a<this.chain.length;a++)d(this,1===this.state?this.chain[a].success:this.chain[a].failure,this.chain[a]);this.chain.length=0}function d(a,c,d){var e,f;try{c===!1?d.reject(a.msg):(e=c===!0?a.msg:c.call(void 0,a.msg),e===d.promise?d.reject(TypeError("Promise-chain cycle")):(f=b(e))?f.call(e,d.resolve,d.reject):d.resolve(e))}catch(g){d.reject(g)}}function f(d){var e,h=this;if(!h.triggered){h.triggered=!0,h.def&&(h=h.def);try{(e=b(d))?a(function(){var a=new i(h);try{e.call(d,function c(){f.apply(a,arguments)},function j(){g.apply(a,arguments)})}catch(b){g.call(a,b)}}):(h.msg=d,h.state=1,h.chain.length>0&&a(c,h))}catch(j){g.call(new i(h),j)}}}function g(b){var d=this;d.triggered||(d.triggered=!0,d.def&&(d=d.def),d.msg=b,d.state=2,d.chain.length>0&&a(c,d))}function h(a,b,c,d){for(var e=0;e<b.length;e++)!function f(e){a.resolve(b[e]).then(function f(a){c(e,a)},d)}(e)}function i(a){this.def=a,this.triggered=!1}function j(a){this.promise=a,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function k(b){if("function"!=typeof b)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var d=new j(this);this.then=function h(b,e){var f={success:"function"==typeof b?b:!0,failure:"function"==typeof e?e:!1};return f.promise=new this.constructor(function g(a,b){if("function"!=typeof a||"function"!=typeof b)throw TypeError("Not a function");f.resolve=a,f.reject=b}),d.chain.push(f),0!==d.state&&a(c,d),f.promise},this["catch"]=function i(a){return this.then(void 0,a)};try{b.call(void 0,function k(a){f.call(d,a)},function l(a){g.call(d,a)})}catch(e){g.call(d,e)}}var l,m,n,o=Object.prototype.toString,p="undefined"!=typeof e?function s(a){return e(a)}:setTimeout;try{Object.defineProperty({},"x",{}),l=function t(a,b,c,d){return Object.defineProperty(a,b,{value:c,writable:!0,configurable:d!==!1})}}catch(q){l=function u(a,b,c){return a[b]=c,a}}n=function v(){function a(a,b){this.fn=a,this.self=b,this.next=void 0}var b,c,d;return{add:function e(f,g){d=new a(f,g),c?c.next=d:b=d,c=d,d=void 0},drain:function f(){var a=b;for(b=c=m=void 0;a;)a.fn.call(a.self),a=a.next}}}();var r=l({},"constructor",k,!1);return k.prototype=r,l(r,"__NPO__",0,!1),l(k,"resolve",function w(a){var b=this;return a&&"object"==typeof a&&1===a.__NPO__?a:new b(function c(b,d){if("function"!=typeof b||"function"!=typeof d)throw TypeError("Not a function");b(a)})}),l(k,"reject",function x(a){return new this(function b(c,d){if("function"!=typeof c||"function"!=typeof d)throw TypeError("Not a function");d(a)})}),l(k,"all",function y(a){var b=this;return"[object Array]"!=o.call(a)?b.reject(TypeError("Not an array")):0===a.length?b.resolve([]):new b(function c(d,e){if("function"!=typeof d||"function"!=typeof e)throw TypeError("Not a function");var f=a.length,g=Array(f),i=0;h(b,a,function j(a,b){g[a]=b,++i===f&&d(g)},e)})}),l(k,"race",function z(a){var b=this;return"[object Array]"!=o.call(a)?b.reject(TypeError("Not an array")):new b(function c(d,e){if("function"!=typeof d||"function"!=typeof e)throw TypeError("Not a function");h(b,a,function f(a,b){d(b)},e)})}),k})}),D=new WeakMap,E=['autopause','autoplay','background','byline','color','height','id','loop','maxheight','maxwidth','muted','playsinline','portrait','responsive','speed','title','transparent','url','width'],F=new WeakMap,G=new WeakMap,H=function(){function b(c){var d=this,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(a(this,b),window.jQuery&&c instanceof jQuery&&(c.length>1&&window.console&&console.warn&&console.warn('A jQuery object with multiple elements was passed, using the first element.'),c=c[0]),'undefined'!=typeof document&&'string'==typeof c&&(c=document.getElementById(c)),!g(c))throw new TypeError('You must pass either a valid element or a valid id.');var f=c.ownerDocument.defaultView;if('IFRAME'!==c.nodeName){var h=c.querySelector('iframe');h&&(c=h)}if('IFRAME'===c.nodeName&&!i(c.getAttribute('src')||''))throw new Error('The player element passed isn’t a Vimeo embed.');if(F.has(c))return F.get(c);this.element=c,this.origin='*';var k=new C(function(a,b){var g=function l(c){if(i(c.origin)&&d.element.contentWindow===c.source){'*'===d.origin&&(d.origin=c.origin);var e=v(c.data),f=e&&'error'===e.event,g=f&&e.data&&'ready'===e.data.method;if(g){var h=new Error(e.data.message);return h.name=e.data.name,b(h),void 0}var j=e&&'ready'===e.event,k=e&&'ping'===e.method;return j||k?(d.element.setAttribute('data-ready','true'),a(),void 0):(x(d,e),void 0)}};if(f.addEventListener?f.addEventListener('message',g,!1):f.attachEvent&&f.attachEvent('onmessage',g),'IFRAME'!==d.element.nodeName){var h=q(c,e),k=j(h);s(k,h,c).then(function(a){var b=r(a,c);return d.element=b,d._originalElement=c,p(c,b),F.set(d.element,d),a})["catch"](b)}});return G.set(this,k),F.set(this.element,this),'IFRAME'===this.element.nodeName&&w(this,'ping'),this}return d(b,[{key:"callMethod",value:function c(a){var b=this,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new C(function(d,e){return b.ready().then(function(){l(b,a,{resolve:d,reject:e}),w(b,a,c)})["catch"](e)})}},{key:"get",value:function e(a){var b=this;return new C(function(c,d){return a=f(a,'get'),b.ready().then(function(){l(b,a,{resolve:c,reject:d}),w(b,a)})["catch"](d)})}},{key:"set",value:function h(a,b){var c=this;return new C(function(d,e){if(a=f(a,'set'),void 0===b||null===b)throw new TypeError('There must be a value to set.');return c.ready().then(function(){l(c,a,{resolve:d,reject:e}),w(c,a,b)})["catch"](e)})}},{key:"on",value:function k(a,b){if(!a)throw new TypeError('You must pass an event name.');if(!b)throw new TypeError('You must pass a callback function.');if('function'!=typeof b)throw new TypeError('The callback must be a function.');var c=m(this,"event:".concat(a));0===c.length&&this.callMethod('addEventListener',a)["catch"](function(){}),l(this,"event:".concat(a),b)}},{key:"off",value:function o(a,b){if(!a)throw new TypeError('You must pass an event name.');if(b&&'function'!=typeof b)throw new TypeError('The callback must be a function.');var c=n(this,"event:".concat(a),b);c&&this.callMethod('removeEventListener',a)["catch"](function(a){})}},{key:"loadVideo",value:function t(a){return this.callMethod('loadVideo',a)}},{key:"ready",value:function u(){var a=G.get(this)||new C(function(a,b){b(new Error('Unknown player. Probably unloaded.'))});return C.resolve(a)}},{key:"addCuePoint",value:function y(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod('addCuePoint',{time:a,data:b})}},{key:"removeCuePoint",value:function z(a){return this.callMethod('removeCuePoint',a)}},{key:"enableTextTrack",value:function A(a,b){if(!a)throw new TypeError('You must pass a language.');return this.callMethod('enableTextTrack',{language:a,kind:b})}},{key:"disableTextTrack",value:function B(){return this.callMethod('disableTextTrack')}},{key:"pause",value:function D(){return this.callMethod('pause')}},{key:"play",value:function E(){return this.callMethod('play')}},{key:"unload",value:function H(){return this.callMethod('unload')}},{key:"destroy",value:function I(){var a=this;return new C(function(b){G["delete"](a),F["delete"](a.element),a._originalElement&&(F["delete"](a._originalElement),a._originalElement.removeAttribute('data-vimeo-initialized')),a.element&&'IFRAME'===a.element.nodeName&&a.element.parentNode&&a.element.parentNode.removeChild(a.element),b()})}},{key:"getAutopause",value:function J(){return this.get('autopause')}},{key:"setAutopause",value:function K(a){return this.set('autopause',a)}},{key:"getBuffered",value:function L(){return this.get('buffered')}},{key:"getColor",value:function M(){return this.get('color')}},{key:"setColor",value:function N(a){return this.set('color',a)}},{key:"getCuePoints",value:function O(){return this.get('cuePoints')}},{key:"getCurrentTime",value:function P(){return this.get('currentTime')}},{key:"setCurrentTime",value:function Q(a){return this.set('currentTime',a)}},{key:"getDuration",value:function R(){return this.get('duration')}},{key:"getEnded",value:function S(){return this.get('ended')}},{key:"getLoop",value:function T(){return this.get('loop')}},{key:"setLoop",value:function U(a){return this.set('loop',a)}},{key:"getPaused",value:function V(){return this.get('paused')}},{key:"getPlaybackRate",value:function W(){return this.get('playbackRate')}},{key:"setPlaybackRate",value:function X(a){return this.set('playbackRate',a)}},{key:"getPlayed",value:function Y(){return this.get('played')}},{key:"getSeekable",value:function Z(){return this.get('seekable')}},{key:"getTextTracks",value:function $(){return this.get('textTracks')}},{key:"getVideoEmbedCode",value:function _(){return this.get('videoEmbedCode')}},{key:"getVideoId",value:function aa(){return this.get('videoId')}},{key:"getVideoTitle",value:function ba(){return this.get('videoTitle')}},{key:"getVideoWidth",value:function ca(){return this.get('videoWidth')}},{key:"getVideoHeight",value:function da(){return this.get('videoHeight')}},{key:"getVideoUrl",value:function ea(){return this.get('videoUrl')}},{key:"getVolume",value:function fa(){return this.get('volume')}},{key:"setVolume",value:function ga(a){return this.set('volume',a)}}]),b}();return y||(t(),u()),H})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},b("timers").setImmediate)},{timers:2}],2:[function(a,b,c){(function(b,d){function e(a,b){this._id=a,this._clearFn=b}var f=a('process/browser.js').nextTick,g=Function.prototype.apply,h=Array.prototype.slice,i={},j=0;c.setTimeout=function(){return new e(g.call(setTimeout,window,arguments),clearTimeout)},c.setInterval=function(){return new e(g.call(setInterval,window,arguments),clearInterval)},c.clearTimeout=c.clearInterval=function(a){a.close()},e.prototype.unref=e.prototype.ref=function(){},e.prototype.close=function(){this._clearFn.call(window,this._id)},c.enroll=function(a,b){clearTimeout(a._idleTimeoutId),a._idleTimeout=b},c.unenroll=function(a){clearTimeout(a._idleTimeoutId),a._idleTimeout=-1},c._unrefActive=c.active=function(a){clearTimeout(a._idleTimeoutId);var b=a._idleTimeout;b>=0&&(a._idleTimeoutId=setTimeout(function c(){a._onTimeout&&a._onTimeout()},b))},c.setImmediate="function"==typeof b?b:function(a){var b=j++,d=arguments.length<2?!1:h.call(arguments,1);return i[b]=!0,f(function e(){i[b]&&(d?a.apply(null,d):a.call(null),c.clearImmediate(b))}),b},c.clearImmediate="function"==typeof d?d:function(a){delete i[a]}}).call(this,a("timers").setImmediate,a("timers").clearImmediate)},{"process/browser.js":3,timers:2}],3:[function(a,b,c){function d(){throw new Error('setTimeout has not been defined')}function e(){throw new Error('clearTimeout has not been defined')}function f(a){if(m===setTimeout)return setTimeout(a,0);if((m===d||!m)&&setTimeout)return m=setTimeout,setTimeout(a,0);try{return m(a,0)}catch(b){try{return m.call(null,a,0)}catch(b){return m.call(this,a,0)}}}function g(a){if(n===clearTimeout)return clearTimeout(a);if((n===e||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(a);try{return n(a)}catch(b){try{return n.call(null,a)}catch(b){return n.call(this,a)}}}function h(){p&&q&&(p=!1,q.length?o=q.concat(o):r=-1,o.length&&i())}function i(){if(!p){var a=f(h);p=!0;for(var b=o.length;b;){for(q=o,o=[];++r<b;)q&&q[r].run();r=-1,b=o.length}q=null,p=!1,g(a)}}function j(a,b){this.fun=a,this.array=b}function k(){}var l=b.exports={},m,n;!function(){try{m='function'==typeof setTimeout?setTimeout:d}catch(a){m=d}try{n='function'==typeof clearTimeout?clearTimeout:e}catch(a){n=e}}();var o=[],p=!1,q,r=-1;l.nextTick=function(a){var b=new Array(arguments.length-1);if(arguments.length>1)for(var c=1;c<arguments.length;c++)b[c-1]=arguments[c];o.push(new j(a,b)),1!==o.length||p||f(i)},j.prototype.run=function(){this.fun.apply(null,this.array)},l.title='browser',l.browser=!0,l.env={},l.argv=[],l.version='',l.versions={},l.on=k,l.addListener=k,l.once=k,l.off=k,l.removeListener=k,l.removeAllListeners=k,l.emit=k,l.prependListener=k,l.prependOnceListener=k,l.listeners=function(a){return[]},l.binding=function(a){throw new Error('process.binding is not supported')},l.cwd=function(){return'/'},l.chdir=function(a){throw new Error('process.chdir is not supported')},l.umask=function(){return 0}},{}],4:[function(a,b,c){(function(b){'use strict';function d(a){return a&&a.__esModule?a:{"default":a}}function e(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function f(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function g(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function h(){if(!n){n=!0;var a='\n    .vjs-vimeo iframe {\n      position: absolute;\n      top: 0;\n      left: 0;\n      width: 100%;\n      height: 100%;\n    }\n  ',b=document.head||document.getElementsByTagName('head')[0],c=document.createElement('style');c.type='text/css',c.styleSheet?c.styleSheet.cssText=a:c.appendChild(document.createTextNode(a)),b.appendChild(c)}}c.__esModule=!0;var i="undefined"!=typeof window?window.videojs:"undefined"!=typeof b?b.videojs:null,j=d(i),k=a('@vimeo/player'),l=d(k),m=j["default"].getTech('Tech'),n=!1,o=function(a){function b(c,d){e(this,b);var g=f(this,a.call(this,c,d));return h(),g.setPoster(c.poster),g.initVimeoPlayer(),g}return g(b,a),b.prototype.initVimeoPlayer=function c(){var a=this,b={url:this.options_.source.src,byline:!1,portrait:!1,title:!1};this.options_.autoplay&&(b.autoplay=!0),this.options_.height&&(b.height=this.options_.height),this.options_.width&&(b.width=this.options_.width),this.options_.maxheight&&(b.maxheight=this.options_.maxheight),this.options_.maxwidth&&(b.maxwidth=this.options_.maxwidth),this.options_.loop&&(b.loop=this.options_.loop),this.options_.color&&(b.color=this.options_.color.replace(/^#/,'')),this._player=new l["default"](this.el(),b),this.initVimeoState(),['play','pause','ended','timeupdate','progress','seeked'].forEach(function(b){a._player.on(b,function(c){a._vimeoState.progress.duration!==c.duration&&a.trigger('durationchange'),a._vimeoState.progress=c,a.trigger(b)})}),this._player.on('pause',function(){return a._vimeoState.playing=!1}),this._player.on('play',function(){a._vimeoState.playing=!0,a._vimeoState.ended=!1}),this._player.on('ended',function(){a._vimeoState.playing=!1,a._vimeoState.ended=!0}),this._player.on('volumechange',function(b){return a._vimeoState.volume=b}),this._player.on('error',function(b){return a.trigger('error',b)}),this.triggerReady()},b.prototype.initVimeoState=function d(){var a=this._vimeoState={ended:!1,playing:!1,volume:0,progress:{seconds:0,percent:0,duration:0}};this._player.getCurrentTime().then(function(b){return a.progress.seconds=b}),this._player.getDuration().then(function(b){return a.progress.duration=b}),this._player.getPaused().then(function(b){return a.playing=!b}),this._player.getVolume().then(function(b){return a.volume=b})},b.prototype.createEl=function i(){var a=j["default"].createEl('div',{id:this.options_.techId});return a.style.cssText='width:100%;height:100%;top:0;left:0;position:absolute',a.className='vjs-vimeo',a},b.prototype.controls=function k(){return!0},b.prototype.supportsFullScreen=function m(){return!0},b.prototype.src=function n(){return this.options_.source},b.prototype.currentSrc=function o(){return this.options_.source.src},b.prototype.currentTime=function p(){return this._vimeoState.progress.seconds},b.prototype.setCurrentTime=function q(a){this._player.setCurrentTime(a)},b.prototype.volume=function r(){return this._vimeoState.volume},b.prototype.setVolume=function s(a){return this._player.setVolume(a)},b.prototype.duration=function t(){return this._vimeoState.progress.duration},b.prototype.buffered=function u(){var a=this._vimeoState.progress;return j["default"].createTimeRange(0,a.percent*a.duration)},b.prototype.paused=function v(){return!this._vimeoState.playing},b.prototype.pause=function w(){this._player.pause()},b.prototype.play=function x(){this._player.play()},b.prototype.muted=function y(){return 0===this._vimeoState.volume},b.prototype.ended=function z(){return this._vimeoState.ended},b}(m);o.prototype.featuresTimeupdateEvents=!0,o.isSupported=function(){return!0},m.withSourceHandlers(o),o.nativeSourceHandler={},o.nativeSourceHandler.canPlayType=function(a){return'video/vimeo'===a?'maybe':''},o.nativeSourceHandler.canHandleSource=function(a){return a.type?o.nativeSourceHandler.canPlayType(a.type):a.src?o.nativeSourceHandler.canPlayType(a.src):''},o.nativeSourceHandler.handleSource=function(a,b){b.src(a.src)},o.nativeSourceHandler.dispose=function(){},o.registerSourceHandler(o.nativeSourceHandler),'undefined'!=typeof j["default"].registerTech?j["default"].registerTech('Vimeo',o):j["default"].registerComponent('Vimeo',o),o.VERSION='0.0.1',c["default"]=o}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});
},{"@vimeo/player":1}]},{},[4])(4)}),function(a,b){'object'==typeof exports&&'undefined'!=typeof module?module.exports=b(require('videojs'),require('global/document')):'function'==typeof define&&define.amd?define('videojs-contrib-quality-levels',['videojs','global/document'],b):a.videojsContribQualityLevels=b(a.videojs,a.document)}(this,function(a,b){'use strict';function c(a,b){a.prototype=Object.create(b.prototype),a.prototype.constructor=a,a.__proto__=b}function d(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}a=a&&a.hasOwnProperty('default')?a['default']:a,b=b&&b.hasOwnProperty('default')?b['default']:b;var e=function l(c){var d=this;if(a.browser.IS_IE8){d=b.createElement('custom');for(var e in l.prototype)'constructor'!==e&&(d[e]=l.prototype[e])}return d.id=c.id,d.label=d.id,d.width=c.width,d.height=c.height,d.bitrate=c.bandwidth,d.enabled_=c.enabled,Object.defineProperty(d,'enabled',{get:function f(){return d.enabled_()},set:function g(a){d.enabled_(a)}}),d},f=function(f){function g(){var c;c=f.call(this)||this;var e=d(d(c));if(a.browser.IS_IE8){e=b.createElement('custom');for(var h in g.prototype)'constructor'!==h&&(e[h]=g.prototype[h])}return e.levels_=[],e.selectedIndex_=-1,Object.defineProperty(e,'selectedIndex',{get:function i(){return e.selectedIndex_}}),Object.defineProperty(e,'length',{get:function j(){return e.levels_.length}}),e||d(c)}c(g,f);var h=g.prototype;return h.addQualityLevel=function i(a){var b=this.getQualityLevelById(a.id);if(b)return b;var c=this.levels_.length;return b=new e(a),''+c in this||Object.defineProperty(this,c,{get:function d(){return this.levels_[c]}}),this.levels_.push(b),this.trigger({qualityLevel:b,type:'addqualitylevel'}),b},h.removeQualityLevel=function j(a){for(var b=null,c=0,d=this.length;d>c;c++)if(this[c]===a){b=this.levels_.splice(c,1)[0],this.selectedIndex_===c?this.selectedIndex_=-1:this.selectedIndex_>c&&this.selectedIndex_--;break}return b&&this.trigger({qualityLevel:a,type:'removequalitylevel'}),b},h.getQualityLevelById=function k(a){for(var b=0,c=this.length;c>b;b++){var d=this[b];if(d.id===a)return d}return null},h.dispose=function l(){this.selectedIndex_=-1,this.levels_.length=0},g}(a.EventTarget);f.prototype.allowedEvents_={change:'change',addqualitylevel:'addqualitylevel',removequalitylevel:'removequalitylevel'};for(var g in f.prototype.allowedEvents_)f.prototype['on'+g]=null;var h="2.0.9",i=a.registerPlugin||a.plugin,j=function m(a,b){var c=a.qualityLevels,d=new f,e=function g(){d.dispose(),a.qualityLevels=c,a.off('dispose',g)};return a.on('dispose',e),a.qualityLevels=function(){return d},a.qualityLevels.VERSION=h,d},k=function n(b){return j(this,a.mergeOptions({},b))};return i('qualityLevels',k),k.VERSION=h,k}),define('apps/getVideoDataAndRender',['jquery','videojs','transcript','videoPlayerUtil','querystring','url','./video/constants','videojs-lang','soy!jive.video.errors.videoEncodingError','./defaults','./video/vars','./renderVideo','./resizePlayer','soy!jive.video.errors.videoPermissionsError','jive/rtl','jive/i18n','jive/json-security','domReady!','apps/publish_bar/views/s3_helper','addVideoJsInGlobalScope','http-streaming','youtube','vimeo','videojs-contrib-quality-levels'],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){function q(b,c,d,e){c.authtoken||H(),c.isDownloadEnabled&&a('#jive-link-download-video').show(),c.hasOwnProperty("videoType")&&c.videoType!==g.VIDEO_PERCEPTIVE_TYPE?c.videoType===g.VIDEO_EMBEDDED_TYPE&&y(b,c,d,e):x(b,c)}function r(b,c,d){var e=a(b);e.attr("width",c+"px"),e.attr("height",d+"px");for(var f=e.children(),g=0;g<f.length;g++){var h=f[g],i=h.tagName.toLowerCase();"iframe"!=i&&"object"!=i&&"embed"!=i||(a(h).attr("width",c+"px"),a(h).attr("height",d+"px"))}}function s(){a(".jive-video-poster").hide(),a(".jive-video-base").css('display','inline-block'),a(".jive-video-player").show(),a(".jive-video-message").hide()}function t(b,c,d,e,f){if(b){var g=a('#'+b);g.empty().append(c).show(),k.fixedPlayerSize?u(k.fixedWidth,k.fixedHeight):d&&r(c,e,f),s(),g.off().removeClass('j-tile-video-thumb'),m(g)}else{var h=a('<div id="as-video-container" class="media { type:\'swf\' }"><div class="jive-video-base"><div class="jive-video-player" id="jive-video-display"></div></div></div>');$parent_div=a('<div id="lb_image_wrapper" class="jive-modal"><a class="j-modal-close-top close j-icon-close" href="#"><span class="j-close-icon j-ui-elem" role="img"></span></a></div>'),$parent_div.append(h),a('body').append($parent_div),k.fixedPlayerSize?h.width(k.fixedWidth).height(k.fixedHeight):h.width(j.width).height(j.height),k.enableAutoResize=!1,$parent_div.lightbox_me({destroyOnClose:!0,onClose:function(){a('#lb_image_wrapper').remove()},modalCSS:{top:'160px'},closeSelector:".jive-modal-close-top, .close",onLoad:function(){s(),a(".jive-video-base").css("display","block"),a("#jive-video-display").append(c).show().focus(),k.fixedPlayerSize?v(k.fixedWidth,k.fixedHeight):v("100%","100%")}})}}function u(b,c){fixedPlayerSize=!0,v(b,c),w(a('.jive-video-base'),a(".jive-video-content"))}function v(b,c){var d=a('.jive-video-base'),e=a(".jive-video-player");d.width(b),d.height(c),e.css("width","100%"),e.css("height","100%")}function w(a,b){var c=parseInt((b.height()-a.height())/2),d=parseInt((b.width()-a.width())/2);a.css('top',c+"px"),a.css(o('left'),d+"px")}function x(a,b){l(a,b),s(),m('#'+a)}function y(b,c,d,e){var g=c.setSizes,h=c.width,i=a('#'+b),l=z(i,c),m=i.width(),o=c.width,p=c.height;m&&o>m&&(o=m,p=c.height*o/c.width),void 0!==b&&b.match(/video-tile/)?(c.width=k.fixedWidth=i.children('img').width(),c.height=k.fixedHeight=i.children('img').height()):l>0&&l<c.width&&(c.width=l,c.height=Math.min(c.height,Math.round(l/j.aspectRatio)));var q={autoplay:c.autoplay,mediaID:c.videoID,fixedPlayerSize:k.fixedPlayerSize,forceHttps:'https:'===window.location.protocol,objectID:d,objectType:e,playbackType:'embedded',setSizes:g,width:o},r=f.baseUrl('/video/playback',q),s;a.get(r).done(function(){s=a('<iframe frameborder="0" height="'+p+'" width="'+o+"\"  id=\"mediaFrame\" name=\"mediaFrame\" allowTransparency=\"true\" tabIndex=\"0\" title=\"embedded video\" allowfullscreen></iframe>"),s.attr('src',r)}).fail(function(){s=a(n())}).always(function(){t(b,s.get(0),c.setSizes,o,p)})}function z(a,b){return b.videoThumbnail&&a.find('img').width()>0&&!a.find('img').hasClass('jive-video-poster')?a.find('img').width():b.width}function A(b){b.isDownloadEnabled&&a('#downloadVideoLink').show()}function B(a){const b=Ra+a.videoPath+a.tenantId+Ra+a.videoID+Ra;a.baseUrl=f.v3Url('/videos/video-player/'+a.videoID),a.captionsBaseUrl=f.v3Url('/videos/video-assets/'+a.videoID),a.externalID&&''!==a.externalID?(a.captionsURL=a.captionsBaseUrl+b+Na+Oa+a.externalAssetID+Ra+Pa,a.baseVideoUrlDir=a.baseUrl+b+Na+Qa+a.externalID+Ra):(a.captionsURL=a.captionsBaseUrl+b+Pa,a.baseVideoUrlDir=a.baseUrl+b),a.videoURL=a.baseVideoUrlDir+a.videoID}function C(){return b.browser.IS_ANDROID||b.browser.IS_IPHONE||b.browser.IS_NATIVE_ANDROID}function D(){C()&&a('.vjs-picture-in-picture-control').hide()}function E(b,c,d,e){F(b),B(b),A(b),('no'!==b.captionOption||b.numberOfCaptions>0)&&b.isCaptionsEnabled?a.ajax({dataType:'json',url:b.captionsURL+'/config.json',success:function(a){P(d,c,b,e,T(a.captions))},error:function(a){P(d,c,b,e)}}):P(d,c,b,e)}function F(a){if(window&&window.location&&window.location.search&&''!==window.location.search){const b=e.parse(window.location.search.substring(1));b&&b.time&&(a.currentTime=parseInt(b.time)||0)}}function G(b){const c=f.v2Url('/videos/signedUrl');var d='';return a.ajax({type:'GET',url:c+'/'+b,async:!1,dataType:'json',success:function(a){d=a.url}}),''===d&&H(),d}function H(){const b=a('#jive-video-display');b&&(showTemporaryError(b),s())}function I(a,c){const d={controls:!0,poster:c.videoThumbnail,playbackRates:[.25,.5,1,1.5,1.75,2]};return b.browser.IS_IOS?d.sources=[{src:G(c.videoID),type:'video/mp4'}]:d.sources=[{src:a+'.mpd',type:'application/dash+xml'},{src:a+'.mp4',type:'video/mp4'}],J(c,d),d}function J(a,c){a.preferredLanguage&&h(a.preferredLanguage,b,c)}function K(a,b,c){const d=I(a,b),e='jive-video-display',f=c===e;return M(d),d.autoplay=f&&L(b),d}function L(a){return a.autoplay||a.isJiveAutoPlayEnabled||a.currentTime&&a.currentTime>0}function M(a){N()&&(a.html5={hls:{overrideNative:!0},nativeAudioTracks:!1,nativeVideoTracks:!1})}function N(){return b.browser.IS_SAFARI||b.browser.IS_IOS||null!=b.browser.IE_VERSION}function O(a){return"<li class=\"vjs-menu-item vjs-selected transcript-menu-button\" tabindex=\"-1\" role=\"menuitemradio\" aria-disabled=\"false\" aria-checked=\"true\"><span class=\"vjs-menu-item-text\">"+a.localize('Transcription off')+"</span><span class=\"vjs-control-text\" aria-live=\"polite\">, selected</span></li>"}function P(c,d,e,f,g){const h=K(e.videoURL,e,c);h.sources&&''!==h.sources&&(b.browser.IS_IOS||(ya('qualityButton',xa()),console.log(document.body.classList.contains('j-content-video'),c.includes('comment')),document.body.classList.contains('j-content-video')&&!c.includes('comment')&&(ya('likeButton',va()),ya('commentButton',ua()))),g&&(e.isTranscriptionEnabled||e.isCaptionsEnabled)?R(c,h,e,g,d,f):Z(h,e,d,f),s(),a('.vjs-subs-caps-button.vjs-menu-content').find('li:last-child').removeClass())}function Q(b,c,d){return c.isTranscriptionEnabled&&a('#transcript').length>0&&'jive-video-display'===b&&d>0}function R(a,c,d,e,f,g){const h=la(d.captionsURL,e,f);Q(a,d,h)?(ya('transcriptionMenuButton',wa()),b(f,c).ready(function(){b.browser.IS_IOS||this.getChild('controlBar').addChild('qualityButton',{}),d.isTranscriptionEnabled&&h>0&&(U(this),ba(this)),b.browser.IS_IOS||ca(this),D(),ma(d,f),S(d,this),W(this,g)})):Z(c,d,f,g)}function S(a,b){a.currentTime&&a.currentTime>0&&(b.currentTime(a.currentTime),b.play())}function T(a){const b={};return Object.keys(a).sort().forEach(function(c){b[c]=a[c]}),b}function U(b){const c=O(b)+aa(b),d=b.transcript();document.querySelector('#transcript').appendChild(d.el()),document.getElementsByClassName('transcript-selector')[0].style.display='none',a('#transcript-videoArea').addClass('j-content-body'),b.getChild('controlBar').addChild('transcriptionMenuButton',{});const e=a('.transcript-menu');e.find('.vjs-menu-content').append(c),ga(e)}function V(b,c){return c.map(function(a){return{id:a.id,time:a.time,symbol:'0x1F44D',text:a.user.first_name+" "+a.user.last_name,index:1,onclick:function(){}}}).concat(b.map(function(b){return{id:b.id,time:b.time,symbol:'0x1F4AC',text:b.user.first_name+': '+b.content,index:2,onclick:function(){a([document.documentElement,document.body]).animate({scrollTop:a("#comment-"+b.id).offset().top},500)}}}))}function W(c,d){var e=c.getChild('ControlBar'),f=e.getChild('ProgressControl'),g=f.getChild('SeekBar'),h=new XMLHttpRequest;h.onreadystatechange=function(){if(4==this.readyState&&200==this.status){const a=JSON.parse(h.responseText);Sa=V(a.comment_set,a.reaction_set),Ta=g.addChild('MarkerBar',{markers:Sa}),Ta.renderMarkers()}};const i='/api/core/v3/contents/'+d+'/markers';h.open("GET",i,!0),h.send();const j=p.jsGetMsg('doc.main.add_a_comment.link'),k=jQuery('.j-comment-action-bar a strong').text(),l='Add a comment'===k||k===j;l&&document.body.classList.contains('j-content-video')&&c&&!c.id_.includes('comment')&&(e.addChild('commentButton',{}),a('.comment-button').html(String.fromCodePoint(parseInt('0x1F4AC'))),a('.comment-button').click(function(a){b('videoArea').pause(),currentTime=Math.round(1e3*b('videoArea').currentTime())+1;const c=jQuery('.j-comment-action-bar a');c.data('videoTimestamp',currentTime),c.click()}));var m=parseInt(_jive_current_user.ID),n=a('.js-jive-username-link').data('userid'),o=a('#acclaim-container-1100-'+d).data().canApply;m!==n&&o&&(console.log(c.id_),document.body.classList.contains('j-content-video')&&c&&!c.id_.includes('comment')&&(e.addChild('likeButton',{}),a('.like-button').html(String.fromCodePoint(parseInt('0x1F44D'))),a('.like-button').click(function(a){X(a,d)})))}function X(c,d){var e,g,h=1,i=!0,j=a.when(),k='like',l=0,m=0,n=0;try{l=Math.round(1e3*b('videoArea').currentTime())+1}catch(o){console.log('Could not find the video player, or is not a video page...',o.message)}m=(l-2e3)/1e3,n=(l+2e3)/1e3;var p=Sa.filter(function(a){return Y(a,m,n,_jive_current_user.displayName)})[0];p&&(i=!1,l=p.time?1e3*p.time:l),i?(g={ratingType:k,videoTimestamp:l,voteValue:h},e='/acclaim/1100/'+d+'/addvote'):(e='/acclaim/1100/'+d+'/removevote',g={ratingType:k,videoTimestamp:l}),j.then(function(){a.post(f.v2Url(e),g,function(){i?Sa.push({id:1,time:l/1e3,symbol:'0x1F44D',text:_jive_current_user.displayName,index:1,onclick:function(){}}):Sa=Sa.filter(function(a){return!Y(a,m,n,_jive_current_user.displayName)}),Ta.updateMarkers(Sa)}).fail(function(a,b,c){console.log(a.responseJSON.error)})})}function Y(a,b,c,d){return a.time>b&&a.time<c&&a.text===d}function Z(a,c,d,e){b(d,a).ready(function(){b.browser.IS_IOS||(this.getChild('controlBar').addChild('qualityButton',{}),ca(this)),W(this,e),D(),ma(c,d),S(c,this),_(d)&&$.bind(this)(d)})}function $(b){const c='#'+b;a(c+' .vjs-playback-rate').hide(),a(c+' .vjs-picture-in-picture-control').hide(),this.play()}function _(a){return a.includes(g.FEATURED_VIDEO_ID_PREFIX)}function aa(b){var c='';return a('.vjs-subs-caps-button').find('.vjs-menu-content li').find('span:first').each(function(d,e){d>=2&&(c=ka(c,d-2,a(e).clone().children().remove().end().text(),b))}),c}function ba(b){a('.transcript-menu-button, .transcript-menu .vjs-menu-button-popup').click(function(a){a.currentTarget&&na(a.currentTarget,b)})}function ca(b){const c=[];b.on('loadedmetadata',function(){const d=b.qualityLevels(),e=a('.quality-menu');a.each(d,function(b,d){d.height&&-1===a.inArray(d.height,c)&&c.push(d.height)}),e.find('.vjs-menu-content').append(ia(c,b)),a('.quality-menu .vjs-icon-placeholder').addClass('vjs-icon-cog'),da(b),ga(e)})}function da(b){a('.quality-menu').find('.vjs-menu-content li').click(function(c){a('.quality-menu').find('.vjs-menu-content li').removeClass('vjs-selected').prop('aria-checked','false'),a(this).addClass('vjs-selected').prop('aria-checked','true'),ha(a(this),b),a('.quality-menu').has('.vjs-menu-button').focus()})}function ea(b){b.stopPropagation();const c=b.which||b.keyCode;switch(c){case k.enterKeyCode:a(b.currentTarget).click();break;case k.arrowUpKeyCode:a(b.currentTarget).prev().focus();break;case k.arrowDownKeyCode:a(b.currentTarget).next().focus();break;default:return}}function fa(b){b.stopPropagation();const c=b.which||b.keyCode;c===k.arrowUpKeyCode&&a(b.currentTarget).find('.vjs-menu-content li')[0].focus()}function ga(a){a.keyup(fa),a.find('.vjs-menu-content li').keyup(ea)}function ha(a,b){const c=a.attr('bitrate'),d=b.qualityLevels();for(var e={},f=0;f<d.length;f++)'auto'===c?d[f].enabled=!0:d[f].height!=c?d[f].enabled=!1:e=d[f];e.enabled=!0}function ia(b,c){var d='',e=0;return a.each(b,function(a,b){d+='<li class="vjs-menu-item quality-button" tabindex="-1" role="menuitemradio" aria-live="polite" aria-disabled="false" aria-checked="false" bitrate="'+b+"\"><span class=\"vjs-menu-item-text\">"+b+"<span class=\"vjs-control-text\"> Captions</span></span><span class=\"vjs-control-text\" aria-live=\"polite\"></span></li>",e=a}),d+'<li class="vjs-menu-item vjs-selected" tabindex="'+(e+1)+"\" role=\"menuitemradio\" aria-live=\"polite\" aria-disabled=\"false\" aria-checked=\"true\" bitrate=\"auto\"><span class=\"vjs-menu-item-text\">"+c.localize('auto')+'</span></li>'}function ja(a,b){a.playerId=b,d.registerVideoPlayerEventHandlers(a)}function ka(a,b,c,d){return a+"<li class=\"vjs-menu-item transcript-menu-button transcript-list\" tabindex=\"-1\"transcript-index=\""+b+"\" role=\"menuitemradio\" aria-disabled=\"false\" aria-checked=\"false\"><span class=\"vjs-menu-item-text\">"+d.localize(c.trim())+"\n<span class=\"vjs-control-text\"> Captions</span>\n</span><span class=\"vjs-control-text\" aria-live=\"polite\"></span></li>"}function la(b,c,d){var e=0;return a.each(c,function(a,c){const f=document.createElement('track');f.setAttribute('kind','captions'),f.setAttribute('src',b+c.link),f.setAttribute('srclang',c.lang),f.setAttribute('label',a),document.getElementById(d).appendChild(f),e++}),e}function ma(b,c){a('#'+c).click(function(){a(this).hasClass('vjs-ended')&&(getVideoPlayerSignedCookie(b.videoID),b.startTime=new Date)})}function na(b,c){const d='transcript-list',e=za(b,d);e?ta(b):sa();const f='.vjs-menu-content',g='vjs-selected',h='li';a(f).find(h).removeClass(g),a(b).addClass(g),m(),oa(c)}function oa(b){const c='.transcript-line';a(c).keydown(function(a){const c=13,d=38,e=40,f=a.keyCode;f===c?ra(a,b):f===d?pa(a):f===e&&qa(a)})}function pa(b){const c='.transcript-line';a(b.target).prev(c).focus(),b.preventDefault()}function qa(b){const c='.transcript-line';a(b.target).next(c).focus(),b.preventDefault()}function ra(b,c){const d='data-begin',e=a(b.target).attr(d);e&&c.currentTime(e)}function sa(){const b=a('#transcript'),c=5;b.fadeToggle(c,function(){if(b.is(':visible')){const c=parseInt(a('.jive-video-content').width())-a('.jive-video-base').width()/2;825>c&&a('.jive-video-content').css('padding-bottom','150px')}else a('.jive-body-content').css('min-width',''),a('.jive-video-content').css('padding-bottom','')})}function ta(a){const b=document.getElementsByClassName('transcript-selector')[0];b.value=a.getAttribute('transcript-index');const c=document.createEvent('Event');c.initEvent('change',!1,!0),b.dispatchEvent(c),document.getElementById('transcript').style.display='block'}function ua(){const a=b.getComponent('MenuButton');return b.extend(a,{constructor:function(){a.apply(this,arguments),this.controlText('Comment'),this.addClass('vjs-comment-button'),this.addClass('comment-button')}})}function va(){const a=b.getComponent('MenuButton');return b.extend(a,{constructor:function(){a.apply(this,arguments),this.controlText('Like'),this.addClass('vjs-like-button'),this.addClass('like-button')}})}function wa(){const a=b.getComponent('MenuButton');return b.extend(a,{constructor:function(){a.apply(this,arguments),this.controlText('Transcription'),this.addClass('vjs-chapters-button','transcript-menu-button'),this.addClass('transcript-menu')}})}function xa(){const a=b.getComponent('MenuButton');return b.extend(a,{constructor:function(){a.apply(this,arguments),this.controlText('Quality'),this.addClass('quality-menu')}})}function ya(a,c){b.registerComponent(a,c)}function za(a,b){return(' '+a.className+' ').indexOf(' '+b+' ')>-1}function Aa(b,c){const d=a(i());d.attr('style',c.attr('style')),a('#'+b).replaceWith(d),s(),_(b)&&a('.jive-video-encode-box').css({margin:g.AUTO,width:g.FEATURED_VIDEO_TILE_WIDTH,height:g.FEATURED_VIDEO_TILE_HEIGHT})}function Ba(a){return a?a+'px':g.DEFAULT_WIDTH}function Ca(a){return a?a+'px':g.DEFAULT_HEIGHT}function Da(b,c,d,e,f){const h=a('#videoArea').length>0,i=Ba(e),j=Ca(f);var k=a('#'+d),l='';if(c&&c.includes(g.VIDEO_IFRAME))l=c;else{if(!b||!b.includes(g.VIDEO_IFRAME))return H(),void 0;l=b}if(!h){const n=k.attr('style');k.replaceWith('<div '+Fa('id',d)+' ></div>'),k=a('#'+d),k.attr('style',n+'max-width: 100%;'),l=Ea(l,i,j)}k.html(l),h&&(m(),s())}function Ea(b,c,d){const e=a.parseHTML(b);return a(e).css({width:c,height:d,'max-width':'100%'}),e}function Fa(a,b){return g.SINGLE_SPACE+a+'=\''+b+'\' '}function Ga(a,b,c,d,e,f){a.ready?Ha(a,b,c,d,e,f):Aa(b,f)}function Ha(a,b,c,d,e,f){const g=Ia(b,d,e,f);ja(a,g),E(a,g,b,c)}function Ia(b,c,d,e){const f='jive-video-display';var g='videoArea';if(b!==f){const h=Ba(c),i=Ca(d);g+='-'+b,a('#'+b).replaceWith('<div><video '+Fa('id',g)+Fa('class','video-js j-rte-video vjs-default-skin vjs-big-play-centered')+Fa('crossorigin','anonymous')+'style="width: '+h+'; height: '+i+';" ></video></div>'),a('#'+g).attr('style',e.attr('style'))}return g}function Ja(a,b,c,d,e){return a.videoID=e,b&&a&&(a.width=b,a.setSizes=!0),c&&a&&(a.height=c),d&&a?a.autoplay=d:a&&(a.autoplay=!1),k.videos[a.videoID]=a,a}function Ka(b,c,d,e,f,h,i,j){const k=Ja(j,f,h,i,c),l=a('#'+b);switch(k.videoType.toLowerCase()){case g.JIVE:Ga(k,b,e,f,h,l);break;case g.VIDEO_EMBEDDED_TYPE:Da(k.videoSource,k.embedSource,b,k.width,k.height);break;default:q(b,k,e,d)}}function La(b,c,d,e,g,h,i){if(window.queuedVideo||(window.queuedVideo=[],window.initializingVideo=!1),window.queuedVideo.push([b,c,d,e,g,h,i]),!window.videoHandler){var j=function(){if(!window.initializingVideo&&window.queuedVideo.length>0){const b=window.queuedVideo.shift();window.initializingVideo=!0;const c=f.v2Url('/videos');a.ajax({type:'GET',url:c+'/'+b[1]+'?objectType='+b[2]+'&objectID='+b[3],dataType:'json',success:function(a){Ka(b[0],b[1],b[2],b[3],b[4],b[5],b[6],a),window.initializingVideo=!1},error:function(a){H(),window.initializingVideo=!1}})}window.queuedVideo.length<=0&&(clearInterval(window.videoHandler),window.videoHandler=null)};window.videoHandler=setInterval(j,200)}}function Ma(b,c,d,e,f,g,h,i){a('.jive-diff #'+b).length>0||(k.videos&&k.videos[c]?Ka(b,c,d,e,f,g,h,k.videos[c]):La(b,c,d,e,f,g,h))}const Na='v2/',Oa='assets/',Pa='captions',Qa='videos/',Ra='/';var Sa=[],Ta;return Ma}),define('apps/outcomes/outcomeGlobals',['module'],function(a){var b={OUTCOME_ORDER:['wip','finalized','outdated','official','decision','pending','resolved','success','helpful'],TLO_OUTCOME_TYPES:['finalized','outdated','official','wip']},c=a.config();return c&&(b.config=c),b}),define('apps/outcomes/viewUtil',['jquery','apps/outcomes/outcomeGlobals','apps/shared/controllers/localexchange'],function(a,b,c){function d(a){for(var b=[],c=!1,d=j.length-1;d>=0;--d)c?b.push(j[d]):j[d]===a&&(c=!0);return b}function e(a,b){if(a===b)return 0;var c=a.name.toLowerCase(),d=b.name.toLowerCase(),e=c.localeCompare(d);if(0===e)return 0;for(var f=0;f<j.length;++f){var g=j[f];if(g==c)return-1;if(g==d)return 1}return e}function f(){f.timeout&&clearTimeout(f.timeout),f.timeout=setTimeout(function(){f.timeout=null,c.emit('heightChanged')},250)}function g(a,b,c){this.labelSuffix=a,this.event=b,this.actionData=c}function h(b){return a.map(b,function(a){if('get'==a.verb)return null;var b='outcome.'+a.verb,c;c=a.context?{outcomeType:a.subject,predecessor:{url:a.context.resources.self.ref,outcomeType:a.context.outcomeType,shared:a.context.properties?a.context.properties.shared:!1}}:a.subject,c=JSON.stringify(c);var d;return d=a.context?a.context.outcomeType.name.toLowerCase()+'.':'',d+=a.subject.name.toLowerCase()+'.'+a.verb,new g(d,b,c)})}function i(b,c,d){for(var e=c.first(),f=null;e.length;){if(f=null,b.each(function(){return e.has(this).length?(f=a(this),!1):!0}),f)return f;e=e.parent()}return c&&0!=c.length||(b.each(function(){return a(this).data('outcome-type')==d?(f=a(this),!1):!0}),!f)?a():f}var j=b.OUTCOME_ORDER;return{getEd:function k(b){var c=a(b);return{type:c.data('objectType'),timestamp:c.data('objectTimestamp'),id:c.data('objectId')}},getParentEd:function l(b){var c=a(b);return{type:c.data('parentObjectType'),id:c.data('parentObjectId')}},getContext:function m(b){var c=a(b);return c.data('context')},getContextMeta:function n(b){var c=a(b);return c.data('meta-context')},getRootCommunityName:function o(b){var c=a(b);return c.data('root-community')},placeItem:function p(b,c,e,g,h){var i=a(),j=a();return b.each(function(){var b=a(this),f=0==b.children(':visible').length,k=a(c).clone(),l=d(e);if(b.parent().hasClass('j-region-hidden')&&b.parent().removeClass('j-region-hidden'),f&&h&&b.hide(),i=i.add(k),null!=l){var m=a();a.each(l,function(a,c){return m=g(b,c),0==m.length}),0==m.length?b.prepend(k):m.after(k)}else b.append(k);h&&b.slideDown(h),f&&(j=j.add(b))}),j.length>0&&j.promise().done(f),i},outcomeTypeComparator:e,buildLinkActions:h,nearest:i}}),define('apps/outcomes/eventShim',['jquery','underscore','apps/shared/controllers/localexchange','apps/outcomes/viewUtil'],function(a,b,c,d){function e(){var b=[];a('.js-outcome-badge-container',document).not('[data-no-hydrate]').each(function(){b.push(d.getEd(this))}),c.emit('outcome.preload',b)}c.addLazyListener('renderedContent',['apps/outcomes/badgeView'],function(a,b){a.refresh(b)},function(b){return a('.js-outcome-badge-container',b).not('[data-no-hydrate]').length>0}),c.addLazyListener('reply.message.correctAnswer',['apps/outcomes/correctAnswerHelper'],function(a,b,c,d){a.markCorrect(b,c,d)},function(a,b){return a.id>0&&b}),c.addLazyListener('renderedContent',['apps/outcomes/summaryView','apps/outcomes/mostLikedView'],function(a,b,c){a.summarize(c)},function(b){return a('.js-outcome-summary-container',b).length>0}),c.addLazyListener('renderedContent',['apps/outcomes/actionView'],function(a,b){a.tloActionButtonRefresh(b)},function(b){return a('.js-tlo-action-button',b).length>0}),a(function(){a('body').off('.outcomes').on('vclick.outcomes','a.js-outcome-button',function(a){require(['apps/outcomes/actionView'],b.bind(function(a){a.clickHandler.call(this)},this)),a.preventDefault()}).on('vclick.outcomes','.js-outcome-badge-container .js-outcome-badge:not(.js-outcome-badge-noclick):not(.js-outcomes-v2)',function(a){require(['apps/outcomes/badgeView'],b.bind(function(a){a.clickHandler.call(this)},this)),a.preventDefault()}).on('vclick.outcomes','.js-outcome-history-link',function(c){require(['apps/outcomes/historyView'],b.bind(function(b){a(this).parent('j-pop-main').attr('id'),b.clickHandler.call(this)},this)),c.preventDefault()}).on('vclick.outcomes','.j-outcome-link-details',function(a){require(['apps/outcomes/summaryView'],b.bind(function(a){a.clickHandler.call(this)},this))}).on('vclick.outcomes','.js-outcome-helpful-container .js-action-link',function(a){require(['apps/outcomes/helpfulView'],b.bind(function(b){b.clickHandler.call(this,a)},this)),a.preventDefault()}).on('vclick.outcomes','.js-answer-vote button',function(a){require(['apps/questions/helpful_view'],b.bind(function(a){a.clickHandler.call(this)},this)),a.preventDefault()}).on('vclick.outcomes','.js-correct-answer-link',function(a,c){require(['apps/outcomes/correctAnswerView'],b.bind(function(a){a.clickHandler.call(this)},this)),a.preventDefault()}),e(),require(['apps/outcomes/actionView'],function(a){a.tloActionButtonRefresh()})})}),define('soy!jive.integration.tiles.edit.errorEditing',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.edit'),jive.integration.tiles.edit.errorEditing=function(b,c){var d=c||new soy.StringBuilder;return d.append('<p>',soy.$$escapeHtml(a._i18n('94b250',[])),'</p>'),c?'':d.toString()},jive.integration.tiles.edit.errorEditing}),define('apps/tile/tile',['jive/promise_util','underscore','jquery','url','soy!jive.integration.tiles.edit.errorEditing'],function(a,b,c,d,e){function f(a){var b=d.v3Url('/tiles/'+a);return c.getJSON(b).then(function(a,b,c){return k(a)})}function g(b){var d=c(b),g=d.data('tile'),i=d.data('instancePromise'),j=h(d).id,l;return i?i:(g?l=a.success(k(g)):(l=a.retry(f.bind(null,j),3),l.fail(function(){c(e()).message({style:'error'})})),d.data('instancePromise',l),l)}function h(a){var b=c(a);return b.data('tile')||b.data('tileView')}function i(a,b){c(a).data('instancePromise',b.then(k))}function j(a,b){var c=g(a).then(function(a){return b(a)});i(a,c)}function k(a){if(a){var d=b.clone(a);if(d.config){if('string'==typeof d.config)try{d.config=JSON.parse(d.config)}catch(e){console.warn('Error [%s] trying to parse [%s]. Returning empty config.',e,d.config),d.config={}}}else d.config=q;return function f(a){a&&a.action&&a.action.context?'string'==typeof a.action.context&&(a.action.context=JSON.parse(a.action.context)):a&&c.isArray(a)?a.forEach(f):a&&'object'==typeof a&&Object.keys(a).forEach(function(b){f(a[b])})}(d.data),d}}function l(a){return!a.id||'-1'===a.id}function m(a){return!!a.config&&a.config!==q}function n(a){return!!a.definition.config}function o(a){return a.definition.configurationRequired}function p(a){return!!a.definition.register}var q={};return Object.freeze&&Object.freeze(q),{fetch:f,fromDOM:g,viewFromDOM:h,set:i,update:j,isNew:l,isConfigured:m,canBeConfigured:n,requiresConfig:o,isExternal:p,normalized:k}}),define('soy!jive.shared.displayutil.userDisplayNameLink',['soyDeps'],function(a){return jive.namespace.call(this,'jive.shared.displayutil'),jive.shared.displayutil.userDisplayNameLink=function(a,b){var c=b||new soy.StringBuilder,d=null!=a.extraParams?a.extraParams:{},e=a.trackingID?soy.$$augmentMap({sr:a.trackingID},d):a.extraParams;return c.append(a.displayName?a.anonymous?'<em class="guest">'+soy.$$escapeHtml(a.displayName)+'</em>':a.prop&&a.prop.integrationUserInfo&&!a.prop.integrationUserInfo.overrideUrl?'<span class="jive-username-span js-jive-username-link jive-username-link jive-integration-user '+(a.enabled?'':' jive-user-disabled')+' '+(a.extraCss?' '+soy.$$escapeHtml(a.extraCss):'')+'" '+(a.renderInvisible?'style="display:none;"':'')+'>'+(a.displayNameOverride?soy.$$escapeHtml(a.displayNameOverride):soy.$$escapeHtml(a.displayName))+'</span>':a.visible?'<a '+(a.prop&&a.prop.integrationUserInfo?'href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.prop.integrationUserInfo.overrideUrl,e))+'" class="js-jive-username-link jive-username-link ':'href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,'/people/'+encodeURIComponent(a.username),e))+'" data-username="'+soy.$$escapeHtml(a.username)+'" '+(a.avatarID?' data-avatarId="'+soy.$$escapeHtml(a.avatarID)+'"  ':'')+'data-userId="'+soy.$$escapeHtml(a.id)+'" '+(a.prop&&a.prop.presence&&a.prop.presence.jsObject?'data-online="'+soy.$$escapeHtml(a.prop.presence.online)+'" data-presence="'+soy.$$escapeHtml(a.prop.presence.jsObject)+'" data-externalId="'+(a.prop.presence.userExternalID?soy.$$escapeHtml(a.prop.presence.userExternalID):'')+'" ':'')+'class="js-jive-username-link jive-username-link '+(a.hideTooltip?'':' jiveTT-hover-user')+' ')+(a.enabled?'':' jive-user-disabled')+' '+(a.extraCss?' '+soy.$$escapeHtml(a.extraCss):'')+'" '+(a.renderInvisible?'style="display:none;"':'')+'>'+(a.displayNameOverride?soy.$$escapeHtml(a.displayNameOverride):soy.$$escapeHtml(a.displayName))+'</a>':(a.mailto?'<a href="'+soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,a.mailto))+'"':'<span')+' class="jive-username-span js-jive-username-link jive-username-link '+(a.enabled?'':' jive-user-disabled')+' '+(a.extraCss?' '+soy.$$escapeHtml(a.extraCss):'')+'" '+(a.renderInvisible?'style="display:none;"':'')+'>'+(a.displayNameOverride?soy.$$escapeHtml(a.displayNameOverride):soy.$$escapeHtml(a.displayName))+(a.mailto?'</a>':'</span>'):''),b?'':c.toString()},jive.shared.displayutil.userDisplayNameLink}),define('soy!jive.shared.displayutil.userRoleBadgeImage',['soyDeps'],function(a){return jive.namespace.call(this,'jive.shared.displayutil'),jive.shared.displayutil.userRoleBadgeImage=function(b,c){b=b||{};var d=c||new soy.StringBuilder;return d.append(b.groupBadgeUri&&b.groupBadgeRoleName?'<img src="'+soy.$$escapeHtml(b.groupBadgeUri)+'" title="'+soy.$$escapeHtml(a._i18n(a.getMinKey('rolebadge.'+String(b.groupBadgeRoleName).toLowerCase()),[]))+'" alt="'+soy.$$escapeHtml(a._i18n(a.getMinKey('rolebadge.'+String(b.groupBadgeRoleName).toLowerCase()),[]))+'" height="16" width="16" class="j-role-badge">':''),c?'':d.toString()},jive.shared.displayutil.userRoleBadgeImage}),define('soy!jive.integration.tiles.viewstyle.superListUser',['soyDeps','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.displayutil.userRoleBadgeImage'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.superListUser=function(a,b){a=a||{};var c=b||new soy.StringBuilder;return a.author&&(c.append('<span class="font-color-meta j-super-list-user">'),jive.shared.displayutil.userDisplayNameLink({anonymous:a.author.anonymous,enabled:a.author.enabled,username:a.author.username,displayName:a.author.displayName,id:a.author.id,visible:a.author.visible},c),a.author.prop.roleBadgeInfo&&(c.append(' '),jive.shared.displayutil.userRoleBadgeImage(a.author.prop.roleBadgeInfo,c)),c.append('</span>')),
b?'':c.toString()},jive.integration.tiles.viewstyle.superListUser}),define('soy!jive.integration.tiles.viewstyle.unreadIndicator',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.unreadIndicator=function(b,c){b=b||{};var d=c||new soy.StringBuilder,e=b.small?a._i18n('e18ce6',[]):a._i18n('d7fd36',[]);return d.append('<span class="j-indicator-unread',b.small?' small':'','" title="',soy.$$escapeHtmlAttribute(e),'">',soy.$$escapeHtml(e),'</span>'),c?'':d.toString()},jive.integration.tiles.viewstyle.unreadIndicator}),define('soy!jive.integration.tiles.viewstyle.superListReplyLine',['soyDeps','soy!jive.integration.tiles.viewstyle.superListUser','soy!jive.integration.tiles.viewstyle.unreadIndicator','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.superListReplyLine=function(a,b){a=a||{};var c=b||new soy.StringBuilder;if(a.latestReply)if(!a.ignoreContainer&&a.contentContainer&&'user'!=a.contentContainer.objectTypeName){var d=new soy.StringBuilder;jive.integration.tiles.viewstyle.superListUser({author:a.latestReply.author},d);var e=new soy.StringBuilder(soy.$$escapeHtml(a.latestReply.creationDate));a.latestReply.isUnread&&jive.integration.tiles.viewstyle.unreadIndicator({small:!0},e),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('2c1aa7'),arg0:d.toString(),arg1:soy.$$escapeHtml(a.latestReply.url),arg2:'font-color-meta'+(a.latestReply.isUnread?' j-indicator-unread-text':''),arg3:e.toString(),arg4:'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,a.contentContainer.link)))+'" class="font-color-meta j-container jivecontainerTT-hover-container" data-objectId="'+soy.$$escapeHtmlAttribute(a.contentContainer.id)+'" data-objectType="'+soy.$$escapeHtmlAttribute(a.contentContainer.type)+'">'+soy.$$escapeHtml(a.contentContainer.subject)+'</a>',noAutoEscape:'true'},c)}else{var f=new soy.StringBuilder;jive.integration.tiles.viewstyle.superListUser({author:a.latestReply.author},f);var g=new soy.StringBuilder(soy.$$escapeHtml(a.latestReply.creationDate));a.latestReply.isUnread&&jive.integration.tiles.viewstyle.unreadIndicator({small:!0},g),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('d92ae9'),arg0:f.toString(),arg1:soy.$$escapeHtml(a.latestReply.url),arg2:'font-color-meta'+(a.latestReply.isUnread?' j-indicator-unread-text':''),arg3:g.toString(),noAutoEscape:'true'},c)}return b?'':c.toString()},jive.integration.tiles.viewstyle.superListReplyLine}),define('soy!jive.shared.displayutil.avatarImage',['soyDeps'],function(a){return jive.namespace.call(this,'jive.shared.displayutil'),jive.shared.displayutil.avatarImage=function(a,b){var c=b||new soy.StringBuilder;return c.append('<img class="jive-avatar',a.extraClass?' '+soy.$$escapeHtml(a.extraClass):'','" src="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.src)),'"',a.avatarID?' data-avatarId="'+soy.$$escapeHtml(a.avatarID)+'"':'',a.username?' data-username="'+soy.$$escapeHtml(encodeURIComponent(a.username))+'"':'',a.hideHeight?'':' height="'+soy.$$escapeHtml(a.size)+'" data-height="'+soy.$$escapeHtml(a.size)+'"','width="',soy.$$escapeHtml(a.size),'"',a.storeSizeData?' data-size="'+soy.$$escapeHtml(a.size)+'"':'',!a.anonymous&&a.visible&&a.enabled?' data-random="'+soy.$$escapeHtml(jive.soy.func.randomString())+'"':'',a.style?' style="'+soy.$$escapeHtml(a.style)+'"':'',a.visible?a.displayName?' alt="'+soy.$$escapeHtml(a.displayName)+'" title="'+soy.$$escapeHtml(a.displayName)+'"':a.username?' alt="'+soy.$$escapeHtml(a.username)+'" title="'+soy.$$escapeHtml(a.username)+'"':'':'','/>'),b?'':c.toString()},jive.shared.displayutil.avatarImage}),define('soy!jive.shared.displayutil.avatarLink',['soyDeps'],function(a){return jive.namespace.call(this,'jive.shared.displayutil'),jive.shared.displayutil.avatarLink=function(b,c){var d=c||new soy.StringBuilder,e=null!=b.extraParams?b.extraParams:{},f=b.trackingID?soy.$$augmentMap({sr:b.trackingID},e):b.extraParams,g=!(!b.prop||!b.prop.integrationUserInfo||b.prop.integrationUserInfo.overrideUrl);return d.append(!b.anonymous&&b.visible?(b.hideLink||g?'':'<a '+(b.prop&&b.prop.integrationUserInfo?'href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.prop.integrationUserInfo.overrideUrl,f))+'"':'href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,'/people/'+encodeURIComponent(b.username),f))+'"')+'title="'+soy.$$escapeHtml(b.displayName)+'" class="j-avatar '+(b.extraClass?soy.$$escapeHtml(b.extraClass)+' ':'')+(b.hideTooltip||b.prop&&b.prop.integrationUserInfo?'':' jiveTT-hover-user')+(!b.hidePartnerBadge&&!b.currentUserPartner&&b.partner&&b.size>=32?' j-partner':'')+'"'+(b.prop&&b.prop.integrationUserInfo?'':'data-userId="'+(b.ID?soy.$$escapeHtml(b.ID):soy.$$escapeHtml(b.id))+'"')+(!b.prop||!b.prop.presence||b.prop&&b.prop.integrationUserInfo?'':' data-online="'+soy.$$escapeHtml(b.prop.presence.online)+'" data-presence="'+soy.$$escapeHtml(b.prop.presence.jsObject)+'" data-externalId="'+(b.prop.presence.userExternalID?soy.$$escapeHtml(b.prop.presence.userExternalID):'')+'"'+(b.avatarID?' data-avatarId="'+soy.$$escapeHtml(b.avatarID)+'"':'')+(!b.username||b.prop&&b.prop.integrationUserInfo?'':'  data-username="'+soy.$$escapeHtml(encodeURIComponent(b.username))+'"'))+(b.uri?' data-uri="'+soy.$$escapeHtml(b.uri)+'"':'')+'>')+(b.content?soy.$$filterNoAutoescape(b.content):'')+(b.enabled?(!b.hidePartnerBadge&&!b.currentUserPartner&&b.partner&&b.size>=32?'<span class="jive-icon-glyph icon-partner icon-eye" title="'+soy.$$escapeHtml(a._i18n('5e421a',[]))+'"></span>':'')+(b.showDisplayName?soy.$$escapeHtml(b.displayName):''):'')+(b.hideLink||0!=g?'':'</a>'):b.link&&b.content&&b.visible?'<a href="'+soy.$$escapeHtml(b.link)+'" class="j-avatar">'+soy.$$filterNoAutoescape(b.content)+'</a>':b.content?'<span class="j-avatar">'+soy.$$filterNoAutoescape(b.content)+'</span>':''),c?'':d.toString()},jive.shared.displayutil.avatarLink}),define('soy!jive.shared.displayutil.avatar',['soyDeps','soy!jive.shared.displayutil.avatarImage','soy!jive.shared.displayutil.avatarLink'],function(a){return jive.namespace.call(this,'jive.shared.displayutil'),jive.shared.displayutil.avatar=function(a,b){var c=b||new soy.StringBuilder,d=new soy.StringBuilder(a.avatarID?soy.$$escapeHtml(a.avatarID):a.thumbnailId?soy.$$escapeHtml(a.thumbnailId):'0');d=d.toString();var e=new soy.StringBuilder(a.href?soy.$$escapeHtml(a.href):a.thumbnailUrl?soy.$$escapeHtml(a.thumbnailUrl):a.uri?soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.uri+'/avatar',{a:d})):a.id?soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,'/api/core/v3/people/'+a.id+'/avatar',{a:d})):a.ID?soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,'/api/core/v3/people/'+a.ID+'/avatar',{a:d})):a.enabled&&a.visible?a.prop&&a.prop.integrationUserInfo&&a.prop.integrationUserInfo.avatar&&!a.forceAvatarID?soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.prop.integrationUserInfo.avatar)):a.anonymous?'/people/guest/avatar/'+soy.$$escapeHtml(a.size)+'.png':a.username&&a.avatarID?soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,'/people/'+encodeURIComponent(a.username)+'/avatar/'+a.size+'.png',{a:a.avatarID})):a.username?soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,'/people/'+encodeURIComponent(a.username)+'/avatar/'+a.size+'.png')):'/images/jive-avatar-default.png':'/images/jive-avatar-disabled.png');if(e=e.toString(),a.imageOnly||a.prop&&a.prop.integrationUserInfo)c.append('<span class="j-avatar">'),jive.shared.displayutil.avatarImage(soy.$$augmentMap(a,{src:e}),c),c.append('</span>');else{var f=new soy.StringBuilder;jive.shared.displayutil.avatarImage(soy.$$augmentMap(a,{src:e}),f),jive.shared.displayutil.avatarLink(soy.$$augmentMap(a,{displayName:a.displayName,content:f.toString(),currentUserPartner:a.currentUserPartner}),c)}return b?'':c.toString()},jive.shared.displayutil.avatar}),define('soy!jive.integration.tiles.viewstyle.getRichReplyAuthorLine',['soyDeps','soy!jive.integration.tiles.viewstyle.superListReplyLine','soy!jive.shared.displayutil.avatar'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.getRichReplyAuthorLine=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-reply-author-line">'),jive.shared.displayutil.avatar(soy.$$augmentMap(a.latestReply.author,{size:24,visible:a.latestReply.author.visible,anonymous:!1,enabled:a.latestReply.author.enabled,username:a.latestReply.author.username}),c),c.append(' '),jive.integration.tiles.viewstyle.superListReplyLine(soy.$$augmentMap(a,{ignoreContainer:!0}),c),c.append('</div>'),b?'':c.toString()},jive.integration.tiles.viewstyle.getRichReplyAuthorLine}),define('soy!jive.integration.tiles.view.actionLink',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.view'),jive.integration.tiles.view.actionLink=function(a,b){a=a||{};var c=b||new soy.StringBuilder;return c.append((a.context||a.url)&&a.text?'<a href="'+(!a.context&&a.url&&a.containerUrl?soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(a.containerUrl))+soy.$$escapeHtmlAttribute(a.url):!a.context&&a.url?soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.url)):'#')+'" class="'+(a.context?'js-action':'')+(a.classes?' '+soy.$$escapeHtmlAttribute(a.classes):'')+'"'+(a.context?'data-action-context="'+soy.$$escapeHtmlAttribute(JSON.stringify(a.context).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+'"':'')+(a.url&&a.opensInNewTab?'target="_action_link"':'')+(a.attrs?soy.$$filterNoAutoescape(a.attrs):'')+'>'+(a.noEscapeText?soy.$$filterNoAutoescape(a.text):soy.$$escapeHtml(a.text))+'</a>':a.text?a.noEscapeText?soy.$$filterNoAutoescape(a.text):soy.$$escapeHtml(a.text):''),b?'':c.toString()},jive.integration.tiles.view.actionLink}),define('soy!jive.integration.tiles.viewstyle.getRichCreatedLine',['soyDeps','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.getRichCreatedLine=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div>'),a.contentContainer&&'user'!=a.contentContainer.objectTypeName?jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('92d0b2'),arg0:soy.$$escapeHtml(a.contentCreationDate),arg1:'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,a.contentContainer.link)))+'" class="font-color-meta j-container jivecontainerTT-hover-container" data-objectId="'+soy.$$escapeHtmlAttribute(a.contentContainer.id)+'" data-objectType="'+soy.$$escapeHtmlAttribute(a.contentContainer.type)+'">'+soy.$$escapeHtml(a.contentContainer.subject)+'</a>',noAutoEscape:'true'},c):c.append(soy.$$escapeHtml(a.contentCreationDate)),c.append('</div>'),b?'':c.toString()},jive.integration.tiles.viewstyle.getRichCreatedLine}),define('soy!jive.integration.tiles.viewstyle.icon',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.icon=function(a,b){a=a||{};var c=b||new soy.StringBuilder;return c.append(a.jiveIconClasses?'<span class="'+soy.$$escapeHtml(a.jiveIconClasses)+'"></span>':('string'==typeof a.icon?'<img src="'+soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,a.icon))+'" class="jive-ext-icon-'+soy.$$escapeHtml(a.iconClass)+' icn" alt="">':'<img src="'+soy.$$escapeHtml(jive.soy.func.resourceUrl('/images/transparent.png'))+'" class="jive-ext-icon-'+soy.$$escapeHtml(a.iconClass)+' icn"  alt="" style="background-image: url('+soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,a.icon.backgroundUrl))+'); background-position: '+soy.$$escapeHtml(a.icon.backgroundOffset)+';">')+(a.userIsPartner?'<span class="jive-icon-glyph icon-partner icon-eye"></span>':'')),b?'':c.toString()},jive.integration.tiles.viewstyle.icon}),define('soy!jive.integration.tiles.viewstyle.getRichAuthorLine',['soyDeps','soy!jive.integration.tiles.view.actionLink','soy!jive.integration.tiles.viewstyle.getRichCreatedLine','soy!jive.integration.tiles.viewstyle.icon','soy!jive.shared.displayutil.userRoleBadgeImage'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.getRichAuthorLine=function(a,b){var c=b||new soy.StringBuilder;c.append('<div class="font-color-meta linkDescription"><div class="j-author-line ',a.contentAuthorAvatar?'showIcon ic48':'noIcon','">');var d=new soy.StringBuilder;return a.contentAuthorAvatar&&jive.integration.tiles.viewstyle.icon(soy.$$augmentMap(a,{icon:a.contentAuthorAvatar,iconClass:'48 jive-avatar'}),d),d.append(soy.$$escapeHtml(a.contentAuthor.displayName)),a.contentAuthor.prop.roleBadgeInfo&&(d.append(' '),jive.shared.displayutil.userRoleBadgeImage(a.contentAuthor.prop.roleBadgeInfo,d)),jive.integration.tiles.view.actionLink({url:a.contentAuthor.link,classes:'linkText jive-avatar jiveTT-hover-user j-author '+(a.contentAuthor.partner?'j-partner ':''),attrs:a.contentAuthor.id?'data-userid="'+soy.$$escapeHtml(a.contentAuthor.id)+'" ':'',text:d.toString(),noEscapeText:!0},c),jive.integration.tiles.viewstyle.getRichCreatedLine(a,c),c.append('</div></div>'),b?'':c.toString()},jive.integration.tiles.viewstyle.getRichAuthorLine}),define('soy!jive.integration.tiles.viewstyle.getFirstImage',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.getFirstImage=function(a,b){a=a||{};var c=b||new soy.StringBuilder;return c.append(a.contentPreviewImage?'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(a.contentUrl))+'"><img src="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,a.contentPreviewImage.url,{width:'300'})))+'" class="j-excerpt-image" alt=""></a>':''),b?'':c.toString()},jive.integration.tiles.viewstyle.getFirstImage}),define('soy!jive.integration.tiles.viewstyle.getRichBodySnippet',['soyDeps','soy!jive.integration.tiles.viewstyle.getFirstImage'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.getRichBodySnippet=function(a,b){a=a||{};var c=b||new soy.StringBuilder;return a.bodysnippet&&(c.append('<div class="j-contentListItem-bodysnippet j-excerpt clearfix"><div class="j-rich-top-image">'),jive.integration.tiles.viewstyle.getFirstImage(a,c),c.append('</div><span class="j-excerpt-slug">',soy.$$filterNoAutoescape(a.bodysnippet),'</span><div class="j-rich-bottom-image">'),jive.integration.tiles.viewstyle.getFirstImage(a,c),c.append('</div></div>')),b?'':c.toString()},jive.integration.tiles.viewstyle.getRichBodySnippet}),define('soy!jive.integration.tiles.viewstyle.getRichContentTitle',['soyDeps','soy!jive.integration.tiles.viewstyle.icon','soy!jive.integration.tiles.viewstyle.unreadIndicator'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.getRichContentTitle=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-contentListItem-title">'),a.contentIconClasses&&jive.integration.tiles.viewstyle.icon({jiveIconClasses:a.contentIconClasses},c),c.append('<h3>'),a.contentUrl?(c.append('<a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(a.contentUrl)),'" class="linkText',a.isUnread?' j-indicator-unread-text':'','">',soy.$$filterNoAutoescape(a.contentTitle)),a.isUnread&&jive.integration.tiles.viewstyle.unreadIndicator(null,c),c.append('</a>')):c.append(soy.$$escapeHtml(a.contentTitle)),c.append('</h3></div>'),b?'':c.toString()},jive.integration.tiles.viewstyle.getRichContentTitle}),define('soy!jive.integration.tiles.viewstyle.commentsText',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.commentsText=function(b,c){b=b||{};var d=c||new soy.StringBuilder;return d.append(b.commentCount&&1==b.commentCount?soy.$$escapeHtml(a._i18n('cdb2d5',[b.commentCount])):soy.$$escapeHtml(a._i18n('ee25f7',[null!=b.commentCount?b.commentCount:0]))),c?'':d.toString()},jive.integration.tiles.viewstyle.commentsText}),define('soy!jive.integration.tiles.viewstyle.likesText',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.likesText=function(b,c){b=b||{};var d=c||new soy.StringBuilder;return d.append(b.likeCount&&1==b.likeCount?soy.$$escapeHtml(a._i18n('03908b',[b.likeCount])):soy.$$escapeHtml(a._i18n('602276',[null!=b.likeCount?b.likeCount:0]))),c?'':d.toString()},jive.integration.tiles.viewstyle.likesText}),define('soy!jive.integration.tiles.viewstyle.repliesText',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.repliesText=function(b,c){b=b||{};var d=c||new soy.StringBuilder;return d.append(b.replyCount&&1==b.replyCount?soy.$$escapeHtml(a._i18n('859958',[b.replyCount])):soy.$$escapeHtml(a._i18n('2eb614',[null!=b.replyCount?b.replyCount:0]))),c?'':d.toString()},jive.integration.tiles.viewstyle.repliesText}),define('soy!jive.integration.tiles.viewstyle.viewsText',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.viewsText=function(b,c){b=b||{};var d=c||new soy.StringBuilder;return d.append(b.viewCount&&1==b.viewCount?soy.$$escapeHtml(a._i18n('db3942',[b.viewCount])):soy.$$escapeHtml(a._i18n('5944c0',[null!=b.viewCount?b.viewCount:0]))),c?'':d.toString()},jive.integration.tiles.viewstyle.viewsText}),define('soy!jive.integration.tiles.viewstyle.superListActivityInfo',['soyDeps','soy!jive.integration.tiles.viewstyle.commentsText','soy!jive.integration.tiles.viewstyle.likesText','soy!jive.integration.tiles.viewstyle.repliesText','soy!jive.integration.tiles.viewstyle.viewsText'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.superListActivityInfo=function(a,b){a=a||{};var c=b||new soy.StringBuilder;return c.append('<ul class="j-activity-info-list font-color-meta-light">'),a.viewCount&&(c.append('<li class="j-views" label="'),jive.integration.tiles.viewstyle.viewsText(a,c),c.append('"><span class="jive-icon-glyph icon-eye"></span> <span class="lnk">',soy.$$escapeHtml(null!=a.viewCount?a.viewCount:0),'</span></li>')),c.append('<li class="j-likes" label="'),jive.integration.tiles.viewstyle.likesText({likeCount:a.activityInfo.likeCount},c),c.append('"><span class="jive-icon-glyph icon-thumbs-up3"></span> <span class="lnk">',soy.$$escapeHtml(null!=a.activityInfo.likeCount?a.activityInfo.likeCount:0),'</span></li><li class="j-comments" label="'),'discussion'==a.objectTypeName?jive.integration.tiles.viewstyle.repliesText({replyCount:a.activityInfo.replyCount},c):jive.integration.tiles.viewstyle.commentsText({commentCount:a.activityInfo.replyCount},c),c.append('" ><a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(a.url)),'#comments" class="font-color-meta-light j-brick-meta"><span class="jive-icon-glyph icon-comment3"></span> <span class="lnk">',soy.$$escapeHtml(null!=a.activityInfo.replyCount?a.activityInfo.replyCount:0),'</span></a></li></span>'),b?'':c.toString()},jive.integration.tiles.viewstyle.superListActivityInfo}),define('soy!jive.integration.tiles.viewstyle.getRichReplyAndActivityLine',['soyDeps','soy!jive.integration.tiles.viewstyle.getRichReplyAuthorLine','soy!jive.integration.tiles.viewstyle.superListActivityInfo'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.getRichReplyAndActivityLine=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="font-color-meta linkDescription j-rich-reply-line">'),a.latestReply&&jive.integration.tiles.viewstyle.getRichReplyAuthorLine(a,c),jive.integration.tiles.viewstyle.superListActivityInfo(soy.$$augmentMap(a,{url:a.contentUrl}),c),c.append('</div>'),b?'':c.toString()},jive.integration.tiles.viewstyle.getRichReplyAndActivityLine}),define('soy!jive.integration.tiles.viewstyle.superListItemRich',['soyDeps','soy!jive.integration.tiles.viewstyle.getRichAuthorLine','soy!jive.integration.tiles.viewstyle.getRichBodySnippet','soy!jive.integration.tiles.viewstyle.getRichContentTitle','soy!jive.integration.tiles.viewstyle.getRichReplyAndActivityLine'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.superListItemRich=function(a,b){var c=b||new soy.StringBuilder;return c.append('<li class="listItem contentListItem super-list richPreview">'),jive.integration.tiles.viewstyle.getRichAuthorLine(a,c),jive.integration.tiles.viewstyle.getRichContentTitle(a,c),jive.integration.tiles.viewstyle.getRichBodySnippet(a,c),jive.integration.tiles.viewstyle.getRichReplyAndActivityLine(a,c),c.append('</li>'),b?'':c.toString()},jive.integration.tiles.viewstyle.superListItemRich}),define('soy!jive.integration.tiles.view.footer',['soyDeps','soy!jive.integration.tiles.view.actionLink'],function(a){return jive.namespace.call(this,'jive.integration.tiles.view'),jive.integration.tiles.view.footer=function(a,b){a=a||{};var c=b||new soy.StringBuilder;return a.text&&(c.append('<footer class="j-tile-footer clearfix">'),jive.integration.tiles.view.actionLink(soy.$$augmentMap(a,{classes:(a.classes?'$classes ':'')+'j-footer-link'}),c),c.append('</footer>')),b?'':c.toString()},jive.integration.tiles.view.footer}),define('soy!jive.integration.tiles.view.header',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.view'),jive.integration.tiles.view.header=function(a,b){var c=b||new soy.StringBuilder;return c.append('<header class="j-tile-header ',a['class']?soy.$$escapeHtmlAttribute(a['class']):'','"><h1 id="tile-header-',a.tileInstanceId?soy.$$escapeHtmlAttribute(a.tileInstanceId):'-1','" class="font-color-meta">',a.title?soy.$$escapeHtml(a.title):'','</h1></header>'),b?'':c.toString()},jive.integration.tiles.view.header}),define('soy!jive.integration.tiles.viewstyle.contentBody',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.contentBody=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-content-body">',soy.$$filterNoAutoescape(a.body),'</div>'),b?'':c.toString()},jive.integration.tiles.viewstyle.contentBody}),define('soy!jive.outcomes.badge.badgeRaw',['soyDeps'],function(a){return jive.namespace.call(this,'jive.outcomes.badge'),jive.outcomes.badge.badgeRaw=function(b,c){var d=c||new soy.StringBuilder;return d.append('<',soy.$$escapeHtml(b.tagName),' class="js-outcome-badge j-outcome-badge js-outcome-type-',soy.$$escapeHtml(b.outcomeType),' j-outcome-type-',soy.$$escapeHtml(b.outcomeType),'  ',b.useV2outcomes?'js-outcomes-v2':'',' ',b.extraClasses?' '+soy.$$escapeHtml(b.extraClasses):'','"',b.outcomeId?'data-outcome="'+soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_absolute_url,'/api/core/v3/outcomes/'+b.outcomeId))+'"':'',b.objectType&&b.objectId?'data-ed=\'{"type":'+soy.$$escapeHtml(b.objectType)+', "id": '+soy.$$escapeHtml(b.objectId)+'}\'':'','data-outcome-type="',soy.$$escapeHtml(b.outcomeType),'"',b.useV2outcomes?'data-use-v2-outcomes="'+soy.$$escapeHtml(b.useV2outcomes)+'"':'','>',b.embedded?'':'<a href="#" aria-haspopup="true">',soy.$$escapeHtml(a._i18n(a.getMinKey('outcomes.badge.'+b.outcomeType),[])),b.embedded?'':'</a>','</',soy.$$escapeHtml(b.tagName),'>'),c?'':d.toString()},jive.outcomes.badge.badgeRaw}),define('soy!jive.outcomes.badge.badge',['soyDeps','soy!jive.outcomes.badge.badgeRaw'],function(a){return jive.namespace.call(this,'jive.outcomes.badge'),jive.outcomes.badge.badge=function(a,b){var c=b||new soy.StringBuilder;return jive.outcomes.badge.badgeRaw(soy.$$augmentMap(a,{tagName:'li'}),c),b?'':c.toString()},jive.outcomes.badge.badge}),define('soy!jive.outcomes.badge.outcomeBadge',['soyDeps','soy!jive.outcomes.badge.badge'],function(a){return jive.namespace.call(this,'jive.outcomes.badge'),jive.outcomes.badge.outcomeBadge=function(a,b){var c=b||new soy.StringBuilder;return jive.outcomes.badge.badge({outcomeType:String(a.outcome.outcomeType.name).toLowerCase(),embedded:a.embedded,useV2outcomes:a.useV2outcomes},c),b?'':c.toString()},jive.outcomes.badge.outcomeBadge}),define('soy!jive.outcomes.badge.badges',['soyDeps','soy!jive.outcomes.badge.outcomeBadge'],function(a){return jive.namespace.call(this,'jive.outcomes.badge'),jive.outcomes.badge.badges=function(a,b){for(var c=b||new soy.StringBuilder,d=a.outcomes,e=d.length,f=0;e>f;f++){var g=d[f];jive.outcomes.badge.outcomeBadge({outcome:g,embedded:a.embedded},c)}return b?'':c.toString()},jive.outcomes.badge.badges}),define('soy!jive.outcomes.badge.badgeContainer',['soyDeps','soy!jive.outcomes.badge.badge','soy!jive.outcomes.badge.badges'],function(a){return jive.namespace.call(this,'jive.outcomes.badge'),jive.outcomes.badge.badgeContainer=function(b,c){var d=c||new soy.StringBuilder;return d.append('<ul class="js-outcome-badge-container j-outcome-badge-container js-ed-',soy.$$escapeHtml(b.objectType),'-',soy.$$escapeHtml(b.objectId),b.extraClasses?' '+soy.$$escapeHtml(b.extraClasses):'','" data-object-type="',soy.$$escapeHtml(b.objectType),'" data-object-id="',soy.$$escapeHtml(b.objectId),'"',b.parentType?'data-parent-object-type="'+soy.$$escapeHtml(b.parentType)+'"':'',b.parentID?'data-parent-object-id="'+soy.$$escapeHtml(b.parentID)+'"':'','aria-label="',soy.$$escapeHtml(a._i18n('0ee286',[])),'"',b.allowedOutcomeTypes?'data-allowed-outcome-types="'+soy.$$escapeHtml(JSON.stringify(b.allowedOutcomeTypes).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+'"':'','aria-live="polite">'),b.outcomes?jive.outcomes.badge.badges(b,d):b.outcomeTypeName&&jive.outcomes.badge.badge({outcomeType:b.outcomeTypeName,embedded:b.embedded,objectType:b.objectType,objectId:b.objectId,outcomeId:b.outcomeId},d),d.append('</ul>'),c?'':d.toString()},jive.outcomes.badge.badgeContainer}),define('soy!jive.integration.tiles.viewstyle.outcomes',['soyDeps','soy!jive.outcomes.badge.badgeContainer'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.outcomes=function(a,b){var c=b||new soy.StringBuilder;return jive.outcomes.badge.badgeContainer({objectType:a.type,objectId:a.id},c),c.append('<script>require([\'apps/outcomes/eventShim\'])</script>'),b?'':c.toString()},jive.integration.tiles.viewstyle.outcomes}),define('soy!jive.integration.tiles.viewstyle.userLink',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.userLink=function(a,b){var c=b||new soy.StringBuilder;return c.append('<a href="',soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,'/people/'+encodeURIComponent(a.username))),'" class="linkText jiveTT-hover-user ',a.userIsPartner?'j-partner ':'','" target="_action_link" data-userid="',soy.$$escapeHtml(a.userID),'">',soy.$$filterNoAutoescape(a.displayName),'</a>'),b?'':c.toString()},jive.integration.tiles.viewstyle.userLink}),define('soy!jive.integration.tiles.viewstyle.titleAndAuthor',['soyDeps','soy!jive.integration.tiles.viewstyle.userLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.titleAndAuthor=function(a,b){var c=b||new soy.StringBuilder;c.append('<div class="j-title" role="heading">',a.iconClass?'<span class="jive-icon-big '+soy.$$escapeHtml(a.iconClass)+'" role=\'img\'></span>':'','<a class="j-title-text" href="',soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,a.action.url)),'">',soy.$$escapeHtml(a.subject),'</a></div><div class="j-byline font-color-meta">');var d=new soy.StringBuilder;jive.integration.tiles.viewstyle.userLink(a.originalAuthor,d);var e=new soy.StringBuilder;return jive.integration.tiles.viewstyle.userLink(a.lastModifiedBy,e),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('87c968'),arg0:d.toString(),arg1:soy.$$escapeHtml(a.creationDate?require('moment').utc(parseFloat(a.creationDate)?parseFloat(a.creationDate):a.creationDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('lll'):''),arg2:e.toString(),arg3:soy.$$escapeHtml(a.modificationDate?require('moment').utc(parseFloat(a.modificationDate)?parseFloat(a.modificationDate):a.modificationDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('lll'):''),noAutoEscape:!0},c),c.append('</div>'),b?'':c.toString()},jive.integration.tiles.viewstyle.titleAndAuthor}),define('soy!jive.integration.tiles.viewstyle.header',['soyDeps','soy!jive.integration.tiles.viewstyle.outcomes','soy!jive.integration.tiles.viewstyle.titleAndAuthor'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.header=function(a,b){var c=b||new soy.StringBuilder;return a.suppressOutcomes||jive.integration.tiles.viewstyle.outcomes(a,c),a.suppressTitle||jive.integration.tiles.viewstyle.titleAndAuthor(a,c),b?'':c.toString()},jive.integration.tiles.viewstyle.header}),define('soy!jive.eae.acclaim.getAcclaimTextByType',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.acclaim'),jive.eae.acclaim.getAcclaimTextByType=function(b,c){var d=c||new soy.StringBuilder;switch(b.acclaimType){case'same_question':d.append(b.applied?'button'==b.renderType?soy.$$escapeHtml(a._i18n('d048ee',[]))+' &bull; '+soy.$$escapeHtml(b.acclaimCount):soy.$$escapeHtml(a._i18n('e00873',[])):'button'==b.renderType?soy.$$escapeHtml(a._i18n('0a2ccf',[]))+' &bull; '+soy.$$escapeHtml(b.acclaimCount):soy.$$escapeHtml(a._i18n('6a0269',[])));break;default:d.append(b.applied?soy.$$escapeHtml(a._i18n('7691ce',[])):soy.$$escapeHtml(a._i18n('ea2577',[])))}return c?'':d.toString()},jive.eae.acclaim.getAcclaimTextByType}),define('soy!jive.eae.acclaim.renderIcon',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.acclaim'),jive.eae.acclaim.renderIcon=function(a,b){var c=b||new soy.StringBuilder;return c.append('like'==a.acclaimType?'small'==a.iconType?'<span class="jive-icon-glyph icon-thumbs-up3 '+(a.iconClass?soy.$$escapeHtml(a.iconClass):'')+'"></span>':'medium'==a.iconType?'<span class="jive-icon-glyph icon-thumbs-up3"><span class="icon-variant-unlike"></span><span class="icon-variant-disabled"></span></span>':'news'==a.iconType?'<span class="jive-icon-glyph icon-thumbs-up3"></span>':'':''),b?'':c.toString()},jive.eae.acclaim.renderIcon}),define('soy!jive.eae.acclaim.expressLike',['soyDeps','soy!jive.eae.acclaim.getAcclaimTextByType','soy!jive.eae.acclaim.renderIcon'],function(a){return jive.namespace.call(this,'jive.eae.acclaim'),jive.eae.acclaim.expressLike=function(b,c){var d=c||new soy.StringBuilder,e=new soy.StringBuilder;return jive.eae.acclaim.renderIcon(b,e),b.suppressLikeText?(e.append('<span class="j-508-label">'),jive.eae.acclaim.getAcclaimTextByType(b,e),e.append('</span>')):'same_question'!=b.acclaimType&&'uncredit'==b.type&&'none'!=b.iconType?(e.append('<span class="j-acclaim-likelink-liked">'),jive.eae.acclaim.getAcclaimTextByType(b,e),e.append('</span><span class="j-acclaim-likelink-unlike">',soy.$$escapeHtml(a._i18n('97cffa',[])),'</span>')):jive.eae.acclaim.getAcclaimTextByType(b,e),e=e.toString(),b.disabled?d.append(soy.$$filterNoAutoescape(e)):(d.append('<a ',b.id?'id="'+soy.$$escapeHtml(b.id)+'"':'','class="',b.classes?soy.$$escapeHtml(b.classes):'',' ',soy.$$escapeHtml(b.type),'" data-command="',soy.$$escapeHtml(b.type),'" data-object-id="',soy.$$escapeHtml(b.objectId),'" data-object-type="',soy.$$escapeHtml(b.objectType),'" data-acclaim-type="',b.acclaimType?soy.$$escapeHtml(b.acclaimType):'like','"',b.followObjectType&&b.followObjectId?'data-follow-object-type="'+soy.$$escapeHtml(b.followObjectType)+'" data-follow-object-id="'+soy.$$escapeHtml(b.followObjectId)+'"':'','title="'),
jive.eae.acclaim.getAcclaimTextByType(b,d),d.append('" href="#">',soy.$$filterNoAutoescape(e),'</a>')),c?'':d.toString()},jive.eae.acclaim.expressLike}),define('soy!jive.eae.acclaim.acclaimContainerButtonControl',['soyDeps','soy!jive.eae.acclaim.expressLike'],function(a){return jive.namespace.call(this,'jive.eae.acclaim'),jive.eae.acclaim.acclaimContainerButtonControl=function(a,b){var c=b||new soy.StringBuilder;return c.append('<span id="jive-acclaim-like-container-',soy.$$escapeHtml(a.objectType),'-',soy.$$escapeHtml(a.objectId),'" data-can-apply="',soy.$$escapeHtml(a.canApply),'" data-acclaim-count="',soy.$$escapeHtml(a.acclaimCount),'" data-type="',soy.$$escapeHtml(a.type),'" data-show-icon="false" data-bullet="false"',a.followObjectType&&a.followObjectId?'data-follow-object-type="'+soy.$$escapeHtml(a.followObjectType)+'" data-follow-object-id="'+soy.$$escapeHtml(a.followObjectId)+'"':'','class="j-btn-global js-acclaim-container acclaim-like-container">'),jive.eae.acclaim.expressLike(soy.$$augmentMap(a,{disabled:!a.canApply,iconType:'none',type:a.applied?'uncredit':'credit',applied:a.applied,classes:'jive-acclaim-likelink',acclaimType:a.acclaimType,renderType:a.type,followObjectType:a.followObjectType,followObjectId:a.followObjectId,suppressLikeText:!1,acclaimCount:a.acclaimCount}),c),c.append('</span>'),b?'':c.toString()},jive.eae.acclaim.acclaimContainerButtonControl}),define('soy!jive.eae.acclaim.acclaimTypeLargeControlClasses',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.acclaim'),jive.eae.acclaim.acclaimTypeLargeControlClasses=function(a,b){var c=b||new soy.StringBuilder;return c.append(' j-rc3','same_question'==a.acclaimType?' j-same-question-button':''),b?'':c.toString()},jive.eae.acclaim.acclaimTypeLargeControlClasses}),define('soy!jive.eae.acclaim.count',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.acclaim'),jive.eae.acclaim.count=function(a,b){var c=b||new soy.StringBuilder,d=null==a.count?0:a.count;return c.append(a.accessibilityLinkLabel?'<label class="j-508-label" id="'+soy.$$escapeHtmlAttribute(a.command)+'-'+soy.$$escapeHtmlAttribute(a.objectId)+'-'+soy.$$escapeHtmlAttribute(a.objectType)+'-count-label">'+soy.$$escapeHtml(a.accessibilityLinkLabel)+'</label>':'','<a ',a.id?'id="'+soy.$$escapeHtmlAttribute(a.id)+'"':'',' ',a.classes?'class="'+soy.$$escapeHtmlAttribute(a.classes)+'"':'',' data-command="',soy.$$escapeHtmlAttribute(a.command),'"',a.acclaimType?'data-acclaim-type="'+soy.$$escapeHtmlAttribute(a.acclaimType)+'"':'','data-object-id="',soy.$$escapeHtmlAttribute(a.objectId),'" data-object-type="',soy.$$escapeHtmlAttribute(a.objectType),'" data-count="',soy.$$escapeHtmlAttribute(d),'" href="#" role="button"',a.accessibilityLinkLabel?'aria-labelledby="'+soy.$$escapeHtmlAttribute(a.command)+'-'+soy.$$escapeHtmlAttribute(a.objectId)+'-'+soy.$$escapeHtmlAttribute(a.objectType)+'-count-label" title="'+soy.$$escapeHtmlAttribute(a.accessibilityLinkLabel)+'"':'','>',a.text?soy.$$escapeHtml(a.text):soy.$$escapeHtml(d),'</a> '),b?'':c.toString()},jive.eae.acclaim.count}),define('soy!jive.eae.acclaim.showAcclaimsLargeControlClasses',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.acclaim'),jive.eae.acclaim.showAcclaimsLargeControlClasses=function(a,b){var c=b||new soy.StringBuilder;return c.append('j-rc3 jive-acclaim-likedlink','same_question'==a.acclaimType?' j-same-question-button':''),b?'':c.toString()},jive.eae.acclaim.showAcclaimsLargeControlClasses}),define('soy!jive.shared.soy.getCountTextByType',['soyDeps'],function(a){return jive.namespace.call(this,'jive.shared.soy'),jive.shared.soy.getCountTextByType=function(b,c){var d=c||new soy.StringBuilder;switch(b.type){case'reply':d.append(1==b.count?soy.$$escapeHtml(a._i18n('d52bf4',[b.count])):soy.$$escapeHtml(a._i18n('0a94a9',[b.count])));break;case'like':d.append(1==b.count?soy.$$escapeHtml(a._i18n('59b833',[b.count])):soy.$$escapeHtml(a._i18n('459b00',[b.count])));break;case'showlikescount':d.append(1==b.count?soy.$$escapeHtml(a._i18n('fc9be0',[b.count])):soy.$$escapeHtml(a._i18n('a92d6c',[b.count])));break;case'bookmark':d.append(1==b.count?soy.$$escapeHtml(a._i18n('c72e32',[b.count])):soy.$$escapeHtml(a._i18n('be8a42',[b.count])));break;case'showbookmarkscount':d.append(1==b.count?soy.$$escapeHtml(a._i18n('624b96',[b.count])):soy.$$escapeHtml(a._i18n('8881ff',[b.count])));break;case'follow':d.append(1==b.count?soy.$$escapeHtml(a._i18n('b60542',[b.count])):soy.$$escapeHtml(a._i18n('3351ca',[b.count])));break;case'showfollowcount':d.append(1==b.count?soy.$$escapeHtml(a._i18n('8b88d2',[b.count])):soy.$$escapeHtml(a._i18n('53f0f3',[b.count])));break;case'membership':d.append(1==b.count?soy.$$escapeHtml(a._i18n('208171',[b.count])):soy.$$escapeHtml(a._i18n('e3f812',[b.count])));break;case'externalContributorsMembership':d.append(1==b.count?soy.$$escapeHtml(a._i18n('91d0d6',[b.count])):soy.$$escapeHtml(a._i18n('ec7ef5',[b.count])));break;case'showmembercount':d.append(1==b.count?soy.$$escapeHtml(a._i18n('c4414c',[b.count])):soy.$$escapeHtml(a._i18n('904fca',[b.count])));break;case'showexternalcontributorscount':d.append(1==b.count?soy.$$escapeHtml(a._i18n('4704da',[b.count])):soy.$$escapeHtml(a._i18n('ad500e',[b.count])));break;case'connections':d.append(b.bidirectionalGraph?1==b.count?soy.$$escapeHtml(a._i18n('fb9c58',[b.count])):soy.$$escapeHtml(a._i18n('939a16',[b.count])):1==b.count?soy.$$escapeHtml(a._i18n('8a76a7',[b.count])):soy.$$escapeHtml(a._i18n('547f0f',[b.count])));break;case'showconnectioncount':d.append(b.bidirectionalGraph?1==b.count?soy.$$escapeHtml(a._i18n('f572e0',[b.count])):soy.$$escapeHtml(a._i18n('afa543',[b.count])):1==b.count?soy.$$escapeHtml(a._i18n('4c606b',[b.count])):soy.$$escapeHtml(a._i18n('be2ba9',[b.count])));break;case'showsubspacecount':d.append(1==b.count?soy.$$escapeHtml(a._i18n('49ee0f',[b.count])):soy.$$escapeHtml(a._i18n('b81441',[b.count])));break;case'expertise':d.append(1==b.count?'Endorsement':soy.$$escapeHtml(b.count)+' Endorsements');break;case'commentcount':d.append(1==b.count?soy.$$escapeHtml(a._i18n('aa6667',[b.count])):soy.$$escapeHtml(a._i18n('4ac590',[b.count])));break;case'same_question':d.append(0==b.count?soy.$$escapeHtml(a._i18n('c647b2',[b.count])):1==b.count?soy.$$escapeHtml(a._i18n('55eae4',[b.count])):soy.$$escapeHtml(a._i18n('91451c',[b.count])));break;case'items':d.append(0==b.count?soy.$$escapeHtml(a._i18n('4c1e81',[b.count])):1==b.count?soy.$$escapeHtml(a._i18n('c76df1',[b.count])):soy.$$escapeHtml(a._i18n('dfce75',[b.count])));break;default:d.append(1==b.count?soy.$$escapeHtml(a._i18n('8a76a7',[b.count])):soy.$$escapeHtml(a._i18n('547f0f',[b.count])))}return c?'':d.toString()},jive.shared.soy.getCountTextByType}),define('soy!jive.eae.acclaim.acclaimContainerLargeButtons',['soyDeps','soy!jive.eae.acclaim.acclaimTypeLargeControlClasses','soy!jive.eae.acclaim.count','soy!jive.eae.acclaim.expressLike','soy!jive.eae.acclaim.getAcclaimTextByType','soy!jive.eae.acclaim.renderIcon','soy!jive.eae.acclaim.showAcclaimsLargeControlClasses','soy!jive.shared.soy.getCountTextByType'],function(a){return jive.namespace.call(this,'jive.eae.acclaim'),jive.eae.acclaim.acclaimContainerLargeButtons=function(a,b){var c=b||new soy.StringBuilder;if(c.append('<span id="acclaim-container-',soy.$$escapeHtml(a.objectType),'-',soy.$$escapeHtml(a.objectId),'" data-type="large" data-can-apply="',soy.$$escapeHtml(a.canApply),'" data-acclaim-type="',soy.$$escapeHtml(a.acclaimType),'" data-acclaim-count="',soy.$$escapeHtml(a.acclaimCount),'" class="js-acclaim-container acclaim-container acclaim-like-container',a.canApply?'':' j-disabled','"><span>'),a.canApply){var d=new soy.StringBuilder('jive-acclaim-likelink j-social-action');jive.eae.acclaim.acclaimTypeLargeControlClasses(a,d),d=d.toString(),jive.eae.acclaim.expressLike(soy.$$augmentMap(a,{disabled:!a.canApply,iconType:'medium',type:a.applied?'uncredit':'credit',classes:d}),c)}else{var e=new soy.StringBuilder('j-social-action font-color-meta');jive.eae.acclaim.acclaimTypeLargeControlClasses(a,e),e=e.toString(),c.append('<span class="',soy.$$escapeHtml(e),'">'),jive.eae.acclaim.renderIcon({acclaimType:a.acclaimType,iconType:'medium',iconClass:a.iconClass},c),jive.eae.acclaim.getAcclaimTextByType(a,c),c.append('</span>')}var f=new soy.StringBuilder;jive.eae.acclaim.showAcclaimsLargeControlClasses(a,f);var g=new soy.StringBuilder;return jive.shared.soy.getCountTextByType({count:a.acclaimCount,type:'same_question'==a.acclaimType?'same_question':'showlikescount'},g),jive.eae.acclaim.count(soy.$$augmentMap(a,{command:'showAcclaim',count:a.acclaimCount,acclaimType:a.acclaimType,classes:f.toString(),accessibilityLinkLabel:g.toString()}),c),c.append('</span></span>'),b?'':c.toString()},jive.eae.acclaim.acclaimContainerLargeButtons}),define('soy!jive.eae.acclaim.acclaimContainerMedium',['soyDeps','soy!jive.eae.acclaim.count','soy!jive.eae.acclaim.expressLike','soy!jive.eae.acclaim.getAcclaimTextByType','soy!jive.eae.acclaim.renderIcon','soy!jive.shared.soy.getCountTextByType'],function(a){return jive.namespace.call(this,'jive.eae.acclaim'),jive.eae.acclaim.acclaimContainerMedium=function(a,b){var c=b||new soy.StringBuilder;c.append('<span id="acclaim-container-',soy.$$escapeHtml(a.objectType),'-',soy.$$escapeHtml(a.objectId),'" data-type="medium" data-can-apply="',soy.$$escapeHtml(a.canApply),'" data-acclaim-type="',soy.$$escapeHtml(a.acclaimType),'" data-bullet="',soy.$$escapeHtml(null!=a.bullet?a.bullet:!1),'" data-acclaim-count="',soy.$$escapeHtml(a.acclaimCount),'" class="js-acclaim-container acclaim-container acclaim-like-container',a.canApply?'':' j-disabled','">'),a.canApply?jive.eae.acclaim.expressLike(soy.$$augmentMap(a,{disabled:!a.canApply,iconType:'medium',type:a.applied?'uncredit':'credit',classes:'jive-acclaim-likelink j-social-action',suppressLikeText:!1}),c):(c.append('<span class="j-social-action">'),jive.eae.acclaim.renderIcon({acclaimType:a.acclaimType,iconType:'medium',iconClass:a.iconClass},c),jive.eae.acclaim.getAcclaimTextByType(a,c),c.append('</span>')),c.append(a.bullet?'<span class="j-action-bullet"> &bull; </span>':'');var d=new soy.StringBuilder;return jive.shared.soy.getCountTextByType({count:a.acclaimCount,type:'same_question'==a.acclaimType?'same_question':'showlikescount'},d),jive.eae.acclaim.count(soy.$$augmentMap(a,{command:'showAcclaim',count:a.acclaimCount,acclaimType:a.acclaimType,classes:'j-people-count j-rc3 jive-acclaim-likedlink',accessibilityLinkLabel:d.toString()}),c),c.append('</span>'),b?'':c.toString()},jive.eae.acclaim.acclaimContainerMedium}),define('soy!jive.eae.acclaim.activityAcclaimLinkContainer',['soyDeps','soy!jive.eae.acclaim.count','soy!jive.eae.acclaim.expressLike','soy!jive.eae.acclaim.renderIcon','soy!jive.shared.soy.getCountTextByType'],function(a){return jive.namespace.call(this,'jive.eae.acclaim'),jive.eae.acclaim.activityAcclaimLinkContainer=function(a,b){var c=b||new soy.StringBuilder;a.showIcon&&jive.eae.acclaim.renderIcon({acclaimType:a.acclaimType,iconType:'small',showGlyph:a.showGlyph,iconClass:a.iconClass},c),c.append('<span id="acclaim-container-',soy.$$escapeHtml(a.objectType),'-',soy.$$escapeHtml(a.objectId),'" class="acclaim-container"><span id="jive-acclaim-like-container-',soy.$$escapeHtml(a.objectType),'-',soy.$$escapeHtml(a.objectId),'" data-acclaim-count="',soy.$$escapeHtml(a.acclaimCount),'" data-can-apply="',soy.$$escapeHtml(a.canApply),'" data-type="',a.type?soy.$$escapeHtml(a.type):'mini','" data-show-icon="',soy.$$escapeHtml(a.showIcon),'" data-bullet="',soy.$$escapeHtml(null!=a.bullet?a.bullet:!1),'"',a.followObjectType&&a.followObjectId?'data-follow-object-type="'+soy.$$escapeHtml(a.followObjectType)+'" data-follow-object-id="'+soy.$$escapeHtml(a.followObjectId)+'"':'','class="js-acclaim-container acclaim-like-container',('same_question'!=a.acclaimType,""),'"><span class="j-social-action">'),jive.eae.acclaim.expressLike(soy.$$augmentMap(a,{disabled:!a.canApply,iconType:'none',type:a.applied?'uncredit':'credit',applied:a.applied,classes:'jive-acclaim-likelink',acclaimType:a.acclaimType,followObjectType:a.followObjectType,followObjectId:a.followObjectId,suppressLikeText:!1}),c),c.append(a.bullet?'<span class="j-action-bullet"> &bull; </span>':' ');var d=new soy.StringBuilder;return jive.shared.soy.getCountTextByType({count:a.acclaimCount,type:'same_question'==a.acclaimType?'same_question':'showlikescount'},d),jive.eae.acclaim.count(soy.$$augmentMap(a,{command:'showAcclaim',count:a.acclaimCount,acclaimType:a.acclaimType,classes:'jive-acclaim-likedlink',text:a.bullet?soy.$$escapeHtml(a.acclaimCount):'('+soy.$$escapeHtml(a.acclaimCount)+')',accessibilityLinkLabel:d.toString()}),c),c.append('</span></span></span>'),b?'':c.toString()},jive.eae.acclaim.activityAcclaimLinkContainer}),define('soy!jive.eae.acclaim.activityAcclaimLinkContainerNews',['soyDeps','soy!jive.eae.acclaim.count','soy!jive.eae.acclaim.expressLike','soy!jive.shared.soy.getCountTextByType'],function(a){return jive.namespace.call(this,'jive.eae.acclaim'),jive.eae.acclaim.activityAcclaimLinkContainerNews=function(a,b){var c=b||new soy.StringBuilder;c.append('<span class="font-color-meta-light j-brick-meta"><span id="acclaim-container-',soy.$$escapeHtml(a.objectType),'-',soy.$$escapeHtml(a.objectId),'" class="acclaim-container"><span id="jive-acclaim-like-container-',soy.$$escapeHtml(a.objectType),'-',soy.$$escapeHtml(a.objectId),'" data-acclaim-count="',soy.$$escapeHtml(a.acclaimCount),'" data-can-apply="',soy.$$escapeHtml(a.canApply),'" data-type="',a.type?soy.$$escapeHtml(a.type):'mini','"',a.followObjectType&&a.followObjectId?'data-follow-object-type="'+soy.$$escapeHtml(a.followObjectType)+'" data-follow-object-id="'+soy.$$escapeHtml(a.followObjectId)+'"':'','class="js-acclaim-container acclaim-like-container',('same_question'!=a.acclaimType,""),'">'),jive.eae.acclaim.expressLike(soy.$$augmentMap(a,{disabled:!a.canApply,iconType:'news',type:a.applied?'uncredit':'credit',applied:a.applied,classes:'jive-acclaim-likelink',acclaimType:a.acclaimType,followObjectType:a.followObjectType,followObjectId:a.followObjectId,suppressLikeText:!0}),c),c.append(' ');var d=new soy.StringBuilder;return jive.shared.soy.getCountTextByType({count:a.acclaimCount,type:'same_question'==a.acclaimType?'same_question':'showlikescount'},d),jive.eae.acclaim.count(soy.$$augmentMap(a,{command:'showAcclaim',count:a.acclaimCount,acclaimType:a.acclaimType,classes:'jive-acclaim-likedlink lnk',text:!1,accessibilityLinkLabel:d.toString()}),c),c.append('</span></span></span>'),b?'':c.toString()},jive.eae.acclaim.activityAcclaimLinkContainerNews}),define('soy!jive.shared.soy.resourceInlineJs',['soyDeps'],function(a){return jive.namespace.call(this,'jive.shared.soy'),jive.shared.soy.resourceInlineJs=function(a,b){var c=b||new soy.StringBuilder;return c.append(a.id&&a.header?'<script type="text/javascript">'+a.code+'</script>':a.header?'<script type="text/javascript">'+a.code+'</script>':a.id?'<script type="text/javascript">'+a.code+'</script>':'<script type="text/javascript">'+a.code+'</script>'),b?'':c.toString()},jive.shared.soy.resourceInlineJs}),define('soy!jive.eae.acclaim.acclaimControl',['soyDeps','soy!jive.eae.acclaim.acclaimContainerButtonControl','soy!jive.eae.acclaim.acclaimContainerLargeButtons','soy!jive.eae.acclaim.acclaimContainerMedium','soy!jive.eae.acclaim.activityAcclaimLinkContainer','soy!jive.eae.acclaim.activityAcclaimLinkContainerNews','soy!jive.shared.soy.resourceInlineJs'],function(a){return jive.namespace.call(this,'jive.eae.acclaim'),jive.eae.acclaim.acclaimControl=function(a,b){var c=b||new soy.StringBuilder;switch(a.type){case'medium':jive.eae.acclaim.acclaimContainerMedium(a,c);break;case'mini':jive.eae.acclaim.activityAcclaimLinkContainer(a,c);break;case'news':jive.eae.acclaim.activityAcclaimLinkContainerNews(a,c);break;case'small':c.append('<span class="js-liking-control j-liking-control">'),jive.eae.acclaim.activityAcclaimLinkContainer(a,c),c.append('</span>');break;case'large':jive.eae.acclaim.acclaimContainerLargeButtons(a,c);break;case'button':jive.eae.acclaim.acclaimContainerButtonControl(a,c)}return jive.shared.soy.resourceInlineJs({code:'require([\'apps/core_acclaim/core_acclaim_main\']);'},c),b?'':c.toString()},jive.eae.acclaim.acclaimControl}),define('soy!jive.integration.tiles.viewstyle.commentControl',['soyDeps','soy!jive.shared.soy.getCountTextByType'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.commentControl=function(a,b){var c=b||new soy.StringBuilder;switch(a.type){default:c.append('<a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,a.url+'#jive-comments'))),'">'),jive.shared.soy.getCountTextByType({count:a.commentCount,type:'commentcount'},c),c.append('</a>')}return b?'':c.toString()},jive.integration.tiles.viewstyle.commentControl}),define('soy!jive.soy.share.control',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.share'),jive.soy.share.control=function(b,c){var d=c||new soy.StringBuilder;return d.append('<a href="#" class="','text'==b.type?'share-link j-meta-control lnk ':'largeButton'==b.type?'j-social-action ':'',b.classes?soy.$$escapeHtmlAttribute(b.classes):'','" title="',soy.$$escapeHtmlAttribute(a._i18n('5ffff7',[])),'" data-command="share" data-object-type="',soy.$$escapeHtmlAttribute(b.objectType),'" data-object-id="',soy.$$escapeHtmlAttribute(b.objectId),'"',b.contentPlaceRelInfo?'data-relationship-id="'+soy.$$escapeHtmlAttribute(b.contentPlaceRelInfo.relationshipID)+'"':'','>',b.icon?'<span'+('smallButton'==b.type?' class="j-ui-elem"':'')+'><span class="jive-icon-glyph icon-share2"></span>'+(b.shareText?soy.$$escapeHtml(a._i18n(b.shareText,[])):soy.$$escapeHtml(a._i18n('647798',[])))+'</span>':b.shareText?soy.$$escapeHtml(a._i18n(b.shareText,[])):soy.$$escapeHtml(a._i18n('647798',[])),'</a>'),c?'':d.toString()},jive.soy.share.control}),define('soy!jive.integration.tiles.viewstyle.socialActions',['soyDeps','soy!jive.eae.acclaim.acclaimControl','soy!jive.integration.tiles.viewstyle.commentControl','soy!jive.soy.share.control'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.socialActions=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-meta-actions font-color-meta">'),a.shareable&&(jive.soy.share.control({objectId:a.id,objectType:a.type,type:'text'},c),c.append(' <span class="j-bullet">&#8226;</span> ')),a.commentsAllowed&&(c.append('<span id="jive-comments-count" class="j-comment-count">'),jive.integration.tiles.viewstyle.commentControl({commentCount:a.commentCount?a.commentCount:0,url:a.action.url,type:'mini'},c),c.append('</span> <span class="j-bullet">&#8226;</span> ')),a.likeInfo.likeable&&(c.append('<span class="js-liking-control j-liking-control">'),jive.eae.acclaim.acclaimControl({canApply:a.likeInfo.canLike,applied:a.likeInfo.liked,acclaimCount:a.likeInfo.likeCount,acclaimType:'like',objectId:a.id,objectType:a.type,showIcon:!1,type:'mini'},c),c.append('</span>')),c.append('</div>'),b?'':c.toString()},jive.integration.tiles.viewstyle.socialActions}),define('soy!jive.integration.tiles.viewstyle.content',['soyDeps','soy!jive.integration.tiles.view.footer','soy!jive.integration.tiles.view.header','soy!jive.integration.tiles.viewstyle.contentBody','soy!jive.integration.tiles.viewstyle.header','soy!jive.integration.tiles.viewstyle.socialActions'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.content=function(a,b){var c=b||new soy.StringBuilder;return jive.integration.tiles.view.header(a,c),c.append('<section class="j-tile-body j-tile-content">'),a.content&&'string'!=typeof a.content?(jive.integration.tiles.viewstyle.header(soy.$$augmentMap(a.content,{suppressTitle:a.suppressTitle,suppressOutcomes:a.suppressOutcomes}),c),jive.integration.tiles.viewstyle.contentBody(a.content,c),a.suppressSocial||jive.integration.tiles.viewstyle.socialActions(a.content,c)):c.append('<p class="noContent">','string'==typeof a.content?soy.$$escapeHtml(a.content):'','</p>'),c.append('</section>'),a.action&&jive.integration.tiles.view.footer(a.action,c),b?'':c.toString()},jive.integration.tiles.viewstyle.content}),define('soy!jive.shared.soy.render',['soyDeps'],function(a){return jive.namespace.call(this,'jive.shared.soy'),jive.shared.soy.render=function(a,b){var c=b||new soy.StringBuilder;return c.append(soy.$$filterNoAutoescape(jive.soy.func.eval(a.templateName,a.failGracefully,!1,a.data,c))),b?'':c.toString()},jive.shared.soy.render}),define('soy!jive.integration.tiles.defaults.noContent',['soyDeps','soy!jive.shared.soy.render'],function(a){return jive.namespace.call(this,'jive.integration.tiles.defaults'),jive.integration.tiles.defaults.noContent=function(a,b){var c=b||new soy.StringBuilder;return a['default']&&a['default'].defaultTemplate?jive.shared.soy.render({templateName:a['default'].defaultTemplate,data:function(){for(var a={},b=[],c=0;c<b.length;c+=1)a[b[c][0]]=b[c][1];return a}(),failGracefully:!0},c):a['default']&&a['default'].defaultMessage?c.append('<div class="noContent clearfix">',soy.$$escapeHtml(a['default'].defaultMessage),'</div>'):'string'==typeof a.contents&&c.append('<div class="noContent clearfix">',soy.$$escapeHtml(a.contents),'</div>'),b?'':c.toString()},jive.integration.tiles.defaults.noContent}),define('soy!jive.shared.displayutil.containerDisplayNameLink',['soyDeps'],function(a){return jive.namespace.call(this,'jive.shared.displayutil'),jive.shared.displayutil.containerDisplayNameLink=function(b,c){var d=c||new soy.StringBuilder;return d.append('<a href="',soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,b.container.jiveObjectURL)),'" class="font-color-meta j-container ',b.hideTooltip?'':' jivecontainerTT-hover-container','" data-objectId="',soy.$$escapeHtml(b.container.id),'" data-objectType="',soy.$$escapeHtml(b.container.type),'">',b.container.typeSocialGroup?soy.$$filterNoAutoescape(b.container.name):b.container.typeUserContainer&&b.container.typeWallEntry?soy.$$filterNoAutoescape(a._i18n('60b04a',[b.container.userDisplayName])):b.container.typeUserContainer?soy.$$filterNoAutoescape(b.container.userDisplayName):soy.$$filterNoAutoescape(b.container.name),'</a>'),c?'':d.toString()},jive.shared.displayutil.containerDisplayNameLink}),define('soy!jive.eae.common.activityContainer',['soyDeps','soy!jive.shared.displayutil.containerDisplayNameLink','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.activityContainer=function(a,b){var c=b||new soy.StringBuilder;if('subActivity'!=a.location&&a.activityContainer.container.type&&-2!=a.activityContainer.container.type)if(2020==a.activityContainer.container.type){var d=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(a.activityContainer.originalAuthor,d),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('4314b0'),arg0:d.toString(),arg1:a.activityContainer.jiveObject&&a.activityContainer.jiveObject.contentTypeFeatureName?soy.$$escapeHtml(String(a.activityContainer.jiveObject.contentTypeFeatureName).toLowerCase()):'',noAutoEscape:!0},c)}else{var e=new soy.StringBuilder;jive.shared.displayutil.containerDisplayNameLink({container:a.activityContainer.container},e),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('d6dba5'),arg0:e.toString(),noAutoEscape:!0},c)}return b?'':c.toString()},jive.eae.common.activityContainer}),define('soy!jive.eae.tileActivity.renderOnBehalfOModified',['soyDeps','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.tileActivity'),jive.eae.tileActivity.renderOnBehalfOModified=function(b,c){var d=c||new soy.StringBuilder;if(d.append(soy.$$escapeHtml(a._i18n('02d19a',[])),' <span id="act-title-',soy.$$escapeHtmlAttribute(b.viewBean.domIDPostfix),'" class="font-color-meta-light" aria-role="heading">'),b.viewBean.modifierName||b.viewBean.modifierEmail){var e=new soy.StringBuilder;b.viewBean.modifierUser?jive.shared.displayutil.userDisplayNameLink(b.viewBean.modifierUser,e):b.viewBean.modifierName&&b.viewBean.modifierEmail?e.append('<a href="mailto:',soy.$$escapeHtmlAttribute(b.viewBean.attributionEmail),'" class="jive-username-span jive-username-link"> ',soy.$$escapeHtml(b.viewBean.modifierName),'  </a>'):b.viewBean.modifierEmail?e.append('<a href="mailto:',soy.$$escapeHtmlAttribute(b.viewBean.attributionEmail),'" class="jive-username-span jive-username-link"> ',soy.$$escapeHtml(b.viewBean.modifierEmail),'  </a>'):e.append('<span class="jive-username-span jive-username-link"> ',soy.$$escapeHtml(b.viewBean.modifierName),'  </span>'),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('fba5db'),arg0:'<strong class="font-color-normal">'+soy.$$escapeHtml(b.viewBean.tile.serviceName?b.viewBean.tile.serviceName:b.viewBean.tile.displayName)+'</strong>',arg1:e.toString(),noAutoEscape:'true'},d)}else d.append(soy.$$escapeHtml(a._i18n('f745d0',[b.viewBean.tile.serviceName?b.viewBean.tile.serviceName:b.viewBean.tile.displayName])));return d.append(' <span class="font-color-meta-light">',b.viewBean.modificationTime?soy.$$escapeHtml(b.viewBean.modificationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span></span>'),c?'':d.toString()},jive.eae.tileActivity.renderOnBehalfOModified}),define('soy!jive.eae.tileActivity.extModified',['soyDeps','soy!jive.eae.tileActivity.renderOnBehalfOModified'],function(a){return jive.namespace.call(this,'jive.eae.tileActivity'),jive.eae.tileActivity.extModified=function(a,b){var c=b||new soy.StringBuilder;return(a.viewBean.modifierName||a.viewBean.modifierEmail)&&(a.noCell?jive.eae.tileActivity.renderOnBehalfOModified(a,c):(c.append('<div class="j-act-node j-mod font-color-meta-light j-js-collapsed"><span class="jive-icon-sml jive-glyph-edit actglyph"></span>'),jive.eae.tileActivity.renderOnBehalfOModified(a,c),c.append('</div>'))),b?'':c.toString()},jive.eae.tileActivity.extModified}),define('soy!jive.eae.tileActivity.parentPreviewLinks',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.tileActivity'),jive.eae.tileActivity.parentPreviewLinks=function(b,c){var d=c||new soy.StringBuilder;return d.append('<span class="font-color-meta-light paren">(</span><a href=\'#\' class="j-js-show-full-content j-act-preview font-color-meta" data-extVisible="false" data-objectID="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.id),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.objectType),'" ',b.activityContainer.jiveObject.typePoll?'data-containerID="'+soy.$$escapeHtmlAttribute(b.activityContainer.container.id)+'" data-containerType="'+soy.$$escapeHtmlAttribute(b.activityContainer.container.type)+'" ':'',' aria-hidden="false" ',b.activityContainer.jiveObject.typeTask||b.activityContainer.jiveObject.typeExternalActivity?'title="'+soy.$$escapeHtmlAttribute(a._i18n('fdfa98',[]))+'">':'title="'+soy.$$escapeHtmlAttribute(a._i18n('062032',[]))+'">','<span class="lnk">',soy.$$escapeHtml(a._i18n('866792',[])),'</span></a><a href=\'#\' class="j-js-hide-full-content j-act-preview font-color-meta" style="display:none;" aria-hidden="true" ',b.activityContainer.jiveObject.typeTask||b.activityContainer.jiveObject.typeExternalActivity?'title="'+soy.$$escapeHtmlAttribute(a._i18n('fdfa98',[]))+'">':'title="'+soy.$$escapeHtmlAttribute(a._i18n('084537',[]))+'">','<span class="lnk">',soy.$$escapeHtml(a._i18n('5960e9',[])),'</span></a><span class="font-color-meta-light paren">)</span>'),c?'':d.toString()},jive.eae.tileActivity.parentPreviewLinks}),define('soy!jive.eae.tileActivity.renderOnBehalfOf',['soyDeps','soy!jive.eae.common.activityContainer','soy!jive.eae.tileActivity.extModified','soy!jive.eae.tileActivity.parentPreviewLinks','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.tileActivity'),jive.eae.tileActivity.renderOnBehalfOf=function(b,c){var d=c||new soy.StringBuilder;if(b.viewBean.streamTileEntryCreator){var e=new soy.StringBuilder;'true'==b.viewBean.jiveUser?jive.shared.displayutil.userDisplayNameLink(b.viewBean.streamTileEntryCreator,e):b.viewBean.attributionName&&b.viewBean.attributionEmail?e.append('<a href="mailto:',soy.$$escapeHtmlAttribute(b.viewBean.attributionEmail),'" class="jive-username-span jive-username-link"> ',soy.$$escapeHtml(b.viewBean.attributionName),'  </a>'):b.viewBean.attributionEmail?e.append('<a href="mailto:',soy.$$escapeHtmlAttribute(b.viewBean.attributionEmail),'" class="jive-username-span jive-username-link"> ',soy.$$escapeHtml(b.viewBean.attributionEmail),'  </a>'):b.viewBean.attributionName?e.append('<strong class="font-color-normal"> ',soy.$$escapeHtml(b.viewBean.attributionName),'  </strong>'):jive.shared.displayutil.userDisplayNameLink(b.viewBean.streamTileEntryCreator,e),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('4b618b'),arg0:'<strong class="font-color-normal">'+(b.viewBean.tileInstance&&b.viewBean.tileInstance.displayName?soy.$$escapeHtml(b.viewBean.tileInstance.displayName):b.viewBean.tile.serviceName?soy.$$escapeHtml(b.viewBean.tile.serviceName):soy.$$escapeHtml(b.viewBean.tile.displayName))+'</strong>',arg1:e.toString(),noAutoEscape:'true'},d),d.append(' '),b.viewBean.externalGroupName?(d.append('<span>'),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('7055e4'),arg0:'<strong class="font-color-normal"> '+soy.$$escapeHtml(b.viewBean.externalGroupName)+'  </strong>',noAutoEscape:'true'},d),d.append('</span>')):b.activityContainer&&jive.eae.common.activityContainer(b,d)}else d.append(soy.$$escapeHtml(a._i18n('f745d0',[b.viewBean.tile.serviceName?b.viewBean.tile.serviceName:b.viewBean.tile.displayName])));return b.viewBean.creationTime&&!b.hideTimestamp&&(d.append('<span class="j-author-act-meta font-color-meta-light"><span class="j-act-time font-color-meta-light">',b.viewBean.hideJiveObjectURL?'<span class="font-color-meta-light">':'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.viewBean.jiveObjectURL))+'" class="font-color-meta-light">',soy.$$escapeHtml(b.viewBean.creationTime),b.viewBean.hideJiveObjectURL?'</span>':'</a>',b.showGoToItem&&b.viewBean.externalURL?'<span class="act-tile-go-to-item font-color-meta"> <span class="j-bullet">&#8226;</span> <a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.viewBean.externalURL))+'" alt="" target="'+(b.viewBean.relativeUrl?'':'_blank')+'"> '+soy.$$escapeHtml(a._i18n('7c7349',[]))+'</a></span>':''),b.showModified&&(b.viewBean.modifierName||b.viewBean.modifierEmail)&&(d.append(soy.$$escapeHtml(a._i18n('715689',[])),' '),jive.eae.tileActivity.extModified({viewBean:b.viewBean,noCell:!0},d)),b.activityContainer&&(d.append('<span class="j-act-preview-control j-act-show-more"> <span class="j-bullet">&#8226;</span> '),jive.eae.tileActivity.parentPreviewLinks(b,d),d.append('</span>')),d.append('</span></span>')),c?'':d.toString()},jive.eae.tileActivity.renderOnBehalfOf}),define('soy!jive.eae.tileActivity.renderUser',['soyDeps','soy!jive.shared.displayutil.userDisplayNameLink'],function(a){return jive.namespace.call(this,'jive.eae.tileActivity'),jive.eae.tileActivity.renderUser=function(b,c){var d=c||new soy.StringBuilder;return'true'==b.viewBean.jiveUser?jive.shared.displayutil.userDisplayNameLink(b.viewBean.streamTileEntryCreator,d):b.viewBean.attributionName&&b.viewBean.attributionEmail?d.append('<a href="mailto:',soy.$$escapeHtmlAttribute(b.viewBean.attributionEmail),'" class="jive-username-span jive-username-link"> ',soy.$$escapeHtml(b.viewBean.attributionName),'  </a>'):b.viewBean.attributionEmail?d.append('<a href="mailto:',soy.$$escapeHtmlAttribute(b.viewBean.attributionEmail),'" class="jive-username-span jive-username-link"> ',soy.$$escapeHtml(b.viewBean.attributionEmail),'  </a>'):b.viewBean.tileInstance&&b.viewBean.tileInstance.displayName?(d.append('<strong class="font-color-normal">'),
jive.shared.displayutil.userDisplayNameLink(soy.$$augmentMap(b.viewBean.streamTileEntryCreator,{displayNameOverride:b.viewBean.tileInstance.displayName}),d),d.append('</strong>')):jive.shared.displayutil.userDisplayNameLink(b.viewBean.streamTileEntryCreator,d),d.append(b.hideTimestamp?'':' <span class="j-author-act-meta font-color-meta-light"><span class="font-color-meta-light">'+(b.viewBean.modificationTime?soy.$$escapeHtml(b.viewBean.modificationTime):soy.$$escapeHtml(a._i18n('176cfc',[])))+'</span></span>'),c?'':d.toString()},jive.eae.tileActivity.renderUser}),define('soy!jive.integration.tiles.viewstyle.contentIcon',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.contentIcon=function(a,b){a=a||{};var c=b||new soy.StringBuilder;return c.append(a.jiveIconClasses?'<span class="'+soy.$$escapeHtml(a.jiveIconClasses)+'"></span>':('string'==typeof a.icon?'<img src="'+soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,a.icon))+'" class="jive-ext-icon-'+soy.$$escapeHtml(a.iconClass)+' icn jive-avatar" alt="">':a.iconUrl?'<img src="'+soy.$$escapeHtml(a.iconUrl)+'" class="icn '+(a.externalIconClass?soy.$$escapeHtml(a.externalIconClass):'')+'" alt="">':'<img src="'+soy.$$escapeHtml(jive.soy.func.resourceUrl('/images/transparent.png'))+'" class="jive-ext-icon-'+soy.$$escapeHtml(a.iconClass)+' icn"  alt="" style="background-image: url('+soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,a.icon.backgroundUrl))+'); background-position: '+soy.$$escapeHtml(a.icon.backgroundOffset)+';">')+(a.userIsPartner?'<span class="jive-icon-glyph icon-partner icon-eye" role="img"></span>':'')),b?'':c.toString()},jive.integration.tiles.viewstyle.contentIcon}),define('soy!jive.integration.tiles.viewstyle.authorLink',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.authorLink=function(a,b){a=a||{};var c=b||new soy.StringBuilder;return c.append((a.context||a.url)&&a.text?'<a href="'+(a.authorUrl?soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(a.authorUrl)):!a.context&&a.url&&a.containerUrl?soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(a.containerUrl))+soy.$$escapeHtmlAttribute(a.url):!a.context&&a.url?soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,a.url))):'#')+'" class="'+(a.context?'js-action':'')+(a.classes?' '+soy.$$escapeHtmlAttribute(a.classes):'')+'"'+(a.context?'data-action-context="'+soy.$$escapeHtmlAttribute(JSON.stringify(a.context).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+'"':'')+(a.url&&(a.url.match(new RegExp('^https?:','i'))||[]).length>0?'target="_action_link"':'')+(a.attrs?soy.$$filterNoAutoescape(a.attrs):'')+'>'+(a.noEscapeText?soy.$$filterNoAutoescape(a.text):soy.$$escapeHtml(a.text))+'</a>':a.text?a.noEscapeText?soy.$$filterNoAutoescape(a.text):soy.$$escapeHtml(a.text):''),b?'':c.toString()},jive.integration.tiles.viewstyle.authorLink}),define('soy!jive.integration.tiles.viewstyle.renderUser',['soyDeps','soy!jive.integration.tiles.viewstyle.authorLink','soy!jive.integration.tiles.viewstyle.contentIcon','soy!jive.shared.displayutil.userRoleBadgeImage'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.renderUser=function(a,b){var c=b||new soy.StringBuilder;if(jive.integration.tiles.viewstyle.authorLink(soy.$$augmentMap(a.action,{authorUrl:a.authorUsername?soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,'/people/'+encodeURIComponent(a.authorUsername))):'',classes:a.authorID?'jiveTT-hover-user jive-username-link ':'',attrs:a.authorID?'data-userid="'+soy.$$escapeHtml(a.authorID)+'" ':'',text:a.authorDisplayName,noEscapeText:!0}),c),a.roleBadgeInfo&&(c.append(' '),jive.shared.displayutil.userRoleBadgeImage(a.roleBadgeInfo,c)),a.authorDisplayName){if(c.append('<span class="contentAuthor ',a.avatar?'showAvatar':'noAvatar','"><span class="authorInfo">'),a.avatar){var d=new soy.StringBuilder;(a.icon||a.jiveIconClasses)&&jive.integration.tiles.viewstyle.contentIcon({externalIconClass:a.externalIconClass,icon:soy.$$escapeHtml(a.avatar),iconClass:'48',userIsPartner:a.authorIsPartner},d),jive.integration.tiles.viewstyle.authorLink(soy.$$augmentMap(a.action,{authorUrl:a.authorUsername?soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,'/people/'+encodeURIComponent(a.authorUsername))):'',classes:(a.authorID?'jiveTT-hover-user j-avatar ':'')+(a.authorIsPartner?'j-partner ':''),attrs:a.authorID?'data-userid="'+soy.$$escapeHtml(a.authorID)+'" ':'',text:d.toString(),noEscapeText:!0}),c)}c.append('</span></span>')}return b?'':c.toString()},jive.integration.tiles.viewstyle.renderUser}),define('soy!jive.integration.tiles.viewstyle.contentListItem',['soyDeps','soy!jive.eae.tileActivity.renderOnBehalfOf','soy!jive.eae.tileActivity.renderUser','soy!jive.integration.tiles.view.actionLink','soy!jive.integration.tiles.viewstyle.contentIcon','soy!jive.integration.tiles.viewstyle.icon','soy!jive.integration.tiles.viewstyle.renderUser'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.contentListItem=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<li class="listItem showIcon ',soy.$$escapeHtml(null!=b.iconSizes?b.iconSizes:''),' ',b.index%2==0?'odd':'even','">'),b.action){var e=new soy.StringBuilder;(b.icon||b.jiveIconClasses||b.iconUrl)&&jive.integration.tiles.viewstyle.contentIcon(b,e),e.append(b.text?soy.$$escapeHtml(b.text):soy.$$escapeHtml(a._i18n('5c64bb',[]))),jive.integration.tiles.view.actionLink(soy.$$augmentMap(b.action,{classes:'linkText '+(b.description?'showDescription ':''),attrs:b.userID?'data-userid="'+soy.$$escapeHtml(b.userID)+'" ':'',text:e.toString(),noEscapeText:!0}),d)}else(b.icon||b.jiveIconClasses)&&jive.integration.tiles.viewstyle.icon(b,d),d.append(soy.$$escapeHtml(b.text));return d.append('<div class="linkDescription font-color-meta j-timestamp">'),b.viewBean&&!b.viewBean.hideOnBehalfOf?jive.eae.tileActivity.renderOnBehalfOf({viewBean:b.viewBean,showGoToItem:!1,showModified:!1,hideTimestamp:!0},d):b.viewBean?jive.eae.tileActivity.renderUser(soy.$$augmentMap(b,{viewBean:b.viewBean,hideTimestamp:!0}),d):jive.integration.tiles.viewstyle.renderUser(b,d),d.append('  ',soy.$$escapeHtml(b.relativeTimestamp),'</div></li>',b.showDescription&&b.description?'<p class="linkDescription">'+soy.$$escapeHtml(b.description)+'</p>':'',b.showDescription&&b.moreDescription?'<p class="linkDescription">'+soy.$$escapeHtml(b.moreDescription)+'</p>':''),c?'':d.toString()},jive.integration.tiles.viewstyle.contentListItem}),define('soy!jive.integration.tiles.viewstyle.contentSectionClasses',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.contentSectionClasses=function(a,b){var c=b||new soy.StringBuilder;return c.append('j-tile-body j-tile-list-narrow clearfix'),b?'':c.toString()},jive.integration.tiles.viewstyle.contentSectionClasses}),define('soy!jive.integration.tiles.viewstyle.contentlistnarrow',['soyDeps','soy!jive.integration.tiles.defaults.noContent','soy!jive.integration.tiles.view.footer','soy!jive.integration.tiles.view.header','soy!jive.integration.tiles.viewstyle.contentListItem','soy!jive.integration.tiles.viewstyle.contentSectionClasses'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.contentlistnarrow=function(a,b){var c=b||new soy.StringBuilder;if(jive.integration.tiles.view.header(a,c),c.append('<section class="'),jive.integration.tiles.viewstyle.contentSectionClasses(a,c),c.append('">'),a.contents&&'string'!=typeof a.contents&&0!=a.contents.length){c.append('<ul class="contentList j-icon-list">');for(var d=a.contents,e=d.length,f=0;e>f;f++){var g=d[f];jive.integration.tiles.viewstyle.contentListItem(soy.$$augmentMap(g,{iconClass:g.action&&g.action.iconSize?soy.$$escapeHtml(g.action.iconSize):'16',index:f}),c)}c.append('</ul>')}else jive.integration.tiles.defaults.noContent(a,c);return c.append('</section>'),a.action&&jive.integration.tiles.view.footer(a.action,c),b?'':c.toString()},jive.integration.tiles.viewstyle.contentlistnarrow}),define('soy!jive.integration.tiles.viewstyle.byline',['soyDeps','soy!jive.shared.displayutil.userDisplayNameLink'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.byline=function(b,c){b=b||{};var d=c||new soy.StringBuilder;if(b.user)d.append('<div class="linkDescription font-color-meta">',null!=b.user.title?null!=b.user.dept?soy.$$escapeHtml(a._i18n('308cd4',[b.user.title,b.user.dept])):soy.$$escapeHtml(b.user.title):'','</div>');else if(b.content){d.append('<div class="linkDescription font-color-meta" style="display: none;">');var e=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(b.content.author,e),e=e.toString(),d.append(soy.$$escapeHtml(a._i18n('9b2150',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(e),b.content.date])),'</div>')}return c?'':d.toString()},jive.integration.tiles.viewstyle.byline}),define('soy!jive.integration.tiles.viewstyle.link',['soyDeps','soy!jive.integration.tiles.view.actionLink','soy!jive.integration.tiles.viewstyle.byline'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.link=function(b,c){var d=c||new soy.StringBuilder;return d.append('<li class="listItem ',b.jiveIconClasses||b.iconUrl?'showIcon':b.avatar?'showIcon ic24':'noIcon','">'),b.action?(jive.integration.tiles.view.actionLink(soy.$$augmentMap(b.action,{classes:'js-accordion-link linkText '+(b.avatar?'j-avatar  jiveTT-hover-user':'')+' ',attrs:null!=b.action.userId?'data-userid="'+soy.$$escapeHtml(b.action.userId)+'"':'',text:(b.jiveIconClasses?'<span class="'+soy.$$escapeHtml(b.jiveIconClasses)+' icn"></span>':'')+(b.avatar?'<img src="'+soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,b.avatar))+'" class="jive-avatar icn" alt="">':'')+(b.iconUrl?'<img src="'+soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,b.iconUrl))+'" class="icn" alt="">':'')+soy.$$escapeHtml(b.text),noEscapeText:!0}),d),b.byline&&jive.integration.tiles.viewstyle.byline(b.byline,d),d.append(b.external?'<span class="j-browse-external-access"><em>'+(b.avatar?soy.$$escapeHtml(a._i18n('4326ee',[])):soy.$$escapeHtml(a._i18n('317539',[])))+'</em></span>':'')):(d.append(b.jiveIconClasses?'<span class="'+soy.$$escapeHtml(b.jiveIconClasses)+' icn"></span>':'',b.avatar?'<img src="'+soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,b.avatar))+'" class="jive-avatar icn" alt="">':'',soy.$$escapeHtml(b.text)),b.byline&&jive.integration.tiles.viewstyle.byline(b.byline,d),d.append(b.external?'<span class="j-browse-external-access"><em>'+(b.avatar?soy.$$escapeHtml(a._i18n('4326ee',[])):soy.$$escapeHtml(a._i18n('317539',[])))+'</em></span>':'')),d.append('</li>'),c?'':d.toString()},jive.integration.tiles.viewstyle.link}),define('soy!jive.integration.tiles.viewstyle.section',['soyDeps','soy!jive.integration.tiles.viewstyle.link'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.section=function(a,b){var c=b||new soy.StringBuilder;c.append('<li class="listItem ',a.accordion?'showIcon':'noIcon',' ',!a.hide&&a.accordion?'active':'','"><h5>',a.accordion?'<a href="#" class="trigger"><span class="lnk">'+soy.$$escapeHtml(a.text)+'</span></a>':'<span>'+soy.$$escapeHtml(a.text)+'</span>',a.desc?'<div class="linkDescription font-color-normal">'+soy.$$changeNewlineToBr(soy.$$escapeHtml(a.desc))+'</div>':'','</h5><div ',a.hide?'style="display:none;"':'','><ul class="linksDisplay contentList levelTwo j-icon-list">');for(var d=a.items,e=d.length,f=0;e>f;f++){var g=d[f];jive.integration.tiles.viewstyle.link(g,c)}return a.browseFilterURL&&jive.integration.tiles.viewstyle.link(soy.$$augmentMap(a.browseFilterURL,{action:a.browseFilterURL,text:a.browseFilterURL.text}),c),c.append('</ul></div></li>'),b?'':c.toString()},jive.integration.tiles.viewstyle.section}),define('soy!jive.integration.tiles.viewstyle.sectionlist',['soyDeps','soy!jive.integration.tiles.defaults.noContent','soy!jive.integration.tiles.view.header','soy!jive.integration.tiles.viewstyle.section','soy!jive.shared.soy.resourceInlineJs'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.sectionlist=function(a,b){var c=b||new soy.StringBuilder;jive.integration.tiles.view.header(a,c);var d='accordion'==String(a.style).toLowerCase();if(c.append('<section class="j-tile-body j-tile-',soy.$$escapeHtmlAttribute(String(a.style).toLowerCase()),' j-tile-list-narrow ',a.config&&a.config.listStyle?soy.$$escapeHtmlAttribute(a.config.listStyle):'','">'),d&&jive.shared.soy.resourceInlineJs({code:'require([ \'apps/tile/integrations/accordion\', \'domReady!\' ], function(Accordion) {var main = new Accordion({tileID: \''+soy.$$escapeHtml(a.tileInstanceId)+'\'});});'},c),a.content&&'string'!=typeof a.content&&0!=a.content.length){c.append('<ul class="',d?'js-accordion-container':'',' contentList levelOne col',soy.$$escapeHtmlAttribute(a.content.length),'sections">');for(var e=a.content,f=e.length,g=0;f>g;g++){var h=e[g];jive.integration.tiles.viewstyle.section(soy.$$augmentMap(h,{hide:!(0==g)&&d,accordion:d}),c)}c.append('</ul>')}else jive.integration.tiles.defaults.noContent(soy.$$augmentMap(a,{contents:a.content}),c);return c.append('</section>'),b?'':c.toString()},jive.integration.tiles.viewstyle.sectionlist}),define('soy!jive.integration.tiles.viewstyle.lbSectionClasses',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.lbSectionClasses=function(a,b){var c=b||new soy.StringBuilder;return c.append('j-tile-body j-tile-list-narrow clearfix'),b?'':c.toString()},jive.integration.tiles.viewstyle.lbSectionClasses}),define('soy!jive.integration.tiles.viewstyle.lbUlClasses',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.lbUlClasses=function(a,b){a=a||{};var c=b||new soy.StringBuilder;return c.append(a.config&&(a.config.listStyle&&'peopleList'==a.config.listStyle||a.config.style&&'peopleList'==a.config.style)?'peopleList j-icon-list':'contentList j-icon-list'),b?'':c.toString()},jive.integration.tiles.viewstyle.lbUlClasses}),define('soy!jive.integration.tiles.viewstyle.lbIcon',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.lbIcon=function(a,b){a=a||{};var c=b||new soy.StringBuilder;return c.append(a.jiveIconClasses?'<span class="'+soy.$$escapeHtml(a.jiveIconClasses)+'"></span>':('string'==typeof a.icon?'<img src="'+soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,a.icon))+'" class="jive-ext-icon-'+soy.$$escapeHtml(a.iconClass)+' icn" alt="">':'<img src="'+soy.$$escapeHtml(jive.soy.func.resourceUrl('/images/transparent.png'))+'" class="jive-ext-icon-'+soy.$$escapeHtml(a.iconClass)+' icn"  alt="" style="background-image: url('+soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,a.icon.backgroundUrl))+'); background-position: '+soy.$$escapeHtml(a.icon.backgroundOffset)+';">')+(a.userIsPartner?'<span class="jive-icon-glyph icon-partner icon-eye"></span>':'')),b?'':c.toString()},jive.integration.tiles.viewstyle.lbIcon}),define('soy!jive.integration.tiles.viewstyle.leaderboardItem',['soyDeps','soy!jive.integration.tiles.view.actionLink','soy!jive.integration.tiles.viewstyle.lbIcon'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.leaderboardItem=function(a,b){var c=b||new soy.StringBuilder;if(c.append('<li class="listItem ',a.jiveIconClasses?'showIcon':a.icon?'showIcon ic'+soy.$$escapeHtml(a.iconClass):'noIcon',a.viewingUser==a.userID?' currentUserDisplay':'','">'),a.action){var d=new soy.StringBuilder;(a.icon||a.jiveIconClasses)&&jive.integration.tiles.viewstyle.lbIcon(a,d),d.append(soy.$$escapeHtml(a.text)),jive.integration.tiles.view.actionLink(soy.$$augmentMap(a.action,{classes:'linkText '+(a.description?'showDescription ':'')+(a.userID?'jiveTT-hover-user ':'')+(a.userIsPartner?'j-partner ':'')+(a.containerID?'jivecontainerTT-hover-container ':''),attrs:'target="_action_link" '+(a.userID?'data-userid="'+soy.$$escapeHtml(a.userID)+'" ':'')+(a.containerID?'data-objectid="'+soy.$$escapeHtml(a.containerID)+'" ':'')+(a.containerType?'data-objecttype="'+soy.$$escapeHtml(a.containerType)+'" ':''),text:d.toString(),containerUrl:a.action.relativeUrl&&a.place?soy.$$escapeHtml(a.place.objectURL):'',noEscapeText:!0}),c)}else(a.icon||a.jiveIconClasses)&&jive.integration.tiles.viewstyle.lbIcon(a,c),c.append(soy.$$escapeHtml(a.text));return c.append(a.showDescription&&a.description?'<p class="linkDescription">'+soy.$$escapeHtml(a.description)+'</p>':'',a.showDescription&&a.moreDescription?'<p class="linkDescription">'+soy.$$escapeHtml(a.moreDescription)+'</p>':'','<p class="j-leaderboard-position">',soy.$$escapeHtml(a.index),'</p></li>'),b?'':c.toString()},jive.integration.tiles.viewstyle.leaderboardItem}),define('soy!jive.integration.tiles.viewstyle.leaderbordListData',['soyDeps','soy!jive.integration.tiles.viewstyle.lbUlClasses','soy!jive.integration.tiles.viewstyle.leaderboardItem'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.leaderbordListData=function(b,c){var d=c||new soy.StringBuilder;if(b.contents&&'string'!=typeof b.contents&&0!=b.contents.length)for(var e=b.contents,f=e.length,g=0;f>g;g++){var h=e[g];0==g&&(d.append('<ul class="'),jive.integration.tiles.viewstyle.lbUlClasses(b,d),d.append('">')),'string'==typeof h?jive.integration.tiles.viewstyle.leaderboardItem({text:h,place:b.place},d):b.config&&b.config.style&&'peopleList'==b.config.style?h.userID&&jive.integration.tiles.viewstyle.leaderboardItem(soy.$$augmentMap(h,{iconClass:(h.action&&h.action.iconSize?soy.$$escapeHtml(h.action.iconSize):'48')+' jive-avatar',place:b.place,showDescription:!0,viewingUser:b.viewingUser,index:soy.$$escapeHtml(g+1)}),d):jive.integration.tiles.viewstyle.leaderboardItem(soy.$$augmentMap(h,{iconClass:h.action&&h.action.iconSize?soy.$$escapeHtml(h.action.iconSize):'16',place:b.place}),d),d.append(g==f-1?'</ul>':'')}else b.contents?d.append('<p class="noContent">','string'==typeof b.contents?soy.$$escapeHtml(b.contents):'','</p>'):d.append('<p class="noContent">',soy.$$escapeHtml(a._i18n('785312',[])),'</p>');return c?'':d.toString()},jive.integration.tiles.viewstyle.leaderbordListData}),define('soy!jive.integration.tiles.viewstyle.leaderboard',['soyDeps','soy!jive.integration.tiles.view.footer','soy!jive.integration.tiles.view.header','soy!jive.integration.tiles.viewstyle.lbSectionClasses','soy!jive.integration.tiles.viewstyle.leaderbordListData'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.leaderboard=function(b,c){var d=c||new soy.StringBuilder;return b.userIsPartner?d.append('<div class="j-rewards-message j-small"><img src="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/images/jive-icon-rewards.png'))),'" alt="',soy.$$escapeHtmlAttribute(a._i18n('8dbbe1',[])),'"><h2>',soy.$$escapeHtml(a._i18n('8dbbe1',[])),'</h2></div>'):(d.append(b.currentUserAction&&b.viewingUser&&b.currentUserAvatarUrl&&b.viewingUserMonthlyPoints&&b.viewingUserAllTimePoints?'<header class="j-tile-header"><h4 class="font-color-meta">'+soy.$$escapeHtml(a._i18n(b.progressTitle,[]))+'</h4></header>'+(b.validUser?'<section class="j-tile-body j-tile-list-narrow j-tile-leaderboard-user-progress"><ul class="peopleList j-icon-list"><li class="listItem showIcon ic48 jive-avatar"><a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,b.currentUserAction)))+'" class="showDescription jiveTT-hover-user " target="_action_link" data-userid="'+soy.$$escapeHtmlAttribute(b.viewingUser)+'"><img src='+soy.$$escapeHtmlAttributeNospace(soy.$$filterNormalizeUri(b.currentUserAvatarUrl))+' class="jive-ext-icon-48 jive-avatar icn" alt=""></a><p class="leaderboardNumber">'+soy.$$escapeHtml(b.viewingUserMonthlyPoints)+'</p><p class="textDescription">'+soy.$$escapeHtml(a._i18n('edfd75',[]))+'</p><p class="leaderboardNumber">'+soy.$$escapeHtml(b.viewingUserAllTimePoints)+'</p><p class="textDescription">'+soy.$$escapeHtml(a._i18n('563f09',[]))+'</p></li></ul></section>':''):''),b.foundLeaderboard?(jive.integration.tiles.view.header(b,d),d.append('<section class="'),jive.integration.tiles.viewstyle.lbSectionClasses(b,d),d.append(' j-tile-leaderboard-people-list"><div class="j-tile-leaderboard-people-list-menu"><select id="periodSelect" class="periodSelectClass j-leaderboard-select-range" onchange="window.selectPeriod(this)" title="',soy.$$escapeHtmlAttribute(a._i18n('59fe55',[])),'" style="border: 0; float: left;"><option value="all">',soy.$$escapeHtml(a._i18n('454cdb',[])),'</option><option value="monthly" selected>',soy.$$escapeHtml(a._i18n('ac4906',[])),'</option><option value="weekly">',soy.$$escapeHtml(a._i18n('209c6f',[])),'</option></select><a href="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,'/rewards/leaderboards')),'" class="j-tile-leaderboard-more">',soy.$$escapeHtml(a._i18n('9acc6e',[])),'</a></div><script type="text/javascript">window.selectPeriod = function(dropdown) {var x; try {x = dropdown.options[dropdown.selectedIndex].value;}catch(e) {if(e instanceof TypeError) {x = document.getElementById("periodSelect").value;}}finally {var selectors = document.getElementsByClassName("periodSelectClass"); for(i = 0; i < selectors.length; i++){selectors[i].value = x;}if (x == "all") {var allTimes = document.getElementsByClassName("allTimeListDataClass"); for(i = 0; i < allTimes.length; i++){$j(allTimes[i]).show();}var monthlies = document.getElementsByClassName("monthlyListDataClass"); for(i = 0; i < monthlies.length; i++){$j(monthlies[i]).hide();}var weeklies = document.getElementsByClassName("weeklyListDataClass"); for(i = 0; i < weeklies.length; i++){$j(weeklies[i]).hide();}}else if (x == "monthly") {var allTimes = document.getElementsByClassName("allTimeListDataClass"); for(i = 0; i < allTimes.length; i++){$j(allTimes[i]).hide();}var monthlies = document.getElementsByClassName("monthlyListDataClass"); for(i = 0; i < monthlies.length; i++){$j(monthlies[i]).show();}var weeklies = document.getElementsByClassName("weeklyListDataClass"); for(i = 0; i < weeklies.length; i++){$j(weeklies[i]).hide();}}else if (x == "weekly") {var allTimes = document.getElementsByClassName("allTimeListDataClass"); for(i = 0; i < allTimes.length; i++){$j(allTimes[i]).hide();}var monthlies = document.getElementsByClassName("monthlyListDataClass"); for(i = 0; i < monthlies.length; i++){$j(monthlies[i]).hide();}var weeklies = document.getElementsByClassName("weeklyListDataClass"); for(i = 0; i < weeklies.length; i++){$j(weeklies[i]).show();}}require(["channel!tile_data_source"], function(channel) {channel.trigger(\'tile:adjustHeight\');});}};</script><p class="j-tile-subhead">',soy.$$escapeHtml(a._i18n('ae48f0',[])),'</p><div id="allTimeListData" class="allTimeListDataClass" style="display: none">'),jive.integration.tiles.viewstyle.leaderbordListData({contents:b.allTimeContents,place:b.place,config:b.config,viewingUser:b.viewingUser},d),d.append('</div><div id="monthlyListData" class="monthlyListDataClass">'),jive.integration.tiles.viewstyle.leaderbordListData({contents:b.monthlyContents,place:b.place,config:b.config,viewingUser:b.viewingUser},d),d.append('</div><div id="weeklyListData" class="weeklyListDataClass" style="display: none">'),jive.integration.tiles.viewstyle.leaderbordListData({contents:b.weeklyContents,place:b.place,config:b.config,viewingUser:b.viewingUser},d),d.append('</div></section>'),b.action&&jive.integration.tiles.view.footer(b.action,d)):d.append('<header class="j-tile-header"><h4 class="font-color-meta">',soy.$$escapeHtml(b.title),'</h4></header><section class="j-tile-body j-tile-list-narrow clearfix"><div class="noContent clearfix">',soy.$$escapeHtml(a._i18n('7b9bc2',[])),'</div></section>')),c?'':d.toString()},jive.integration.tiles.viewstyle.leaderboard}),define('soy!jive.integration.tiles.viewstyle.listItem_2',['soyDeps','soy!jive.integration.tiles.view.actionLink','soy!jive.integration.tiles.viewstyle.icon'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.listItem_2=function(a,b){var c=b||new soy.StringBuilder;if(c.append('<li class="listItem ',a.jiveIconClasses?'showIcon':a.icon?'showIcon ic'+soy.$$escapeHtml(a.iconClass):'noIcon','">'),a.action){var d=new soy.StringBuilder;(a.icon||a.jiveIconClasses)&&jive.integration.tiles.viewstyle.icon(a,d),d.append(soy.$$escapeHtml(a.text)),jive.integration.tiles.view.actionLink(soy.$$augmentMap(a.action,{classes:'linkText '+(a.description?'showDescription ':'')+(a.userID?'jiveTT-hover-user ':'')+(a.userIsPartner?'j-partner ':'')+(a.containerID?'jivecontainerTT-hover-container ':''),attrs:(a.userID?'data-userid="'+soy.$$escapeHtml(a.userID)+'" ':'')+(a.containerID?'data-objectid="'+soy.$$escapeHtml(a.containerID)+'" ':'')+(a.containerType?'data-objecttype="'+soy.$$escapeHtml(a.containerType)+'" ':''),text:d.toString(),containerUrl:a.action.relativeUrl&&a.place?soy.$$escapeHtml(a.place.objectURL):'',noEscapeText:!0}),c)}else(a.icon||a.jiveIconClasses)&&jive.integration.tiles.viewstyle.icon(a,c),c.append(soy.$$escapeHtml(a.text));return c.append(a.showDescription&&a.description?'<p class="linkDescription">'+soy.$$escapeHtml(a.description)+'</p>':'',a.showDescription&&a.moreDescription?'<p class="linkDescription">'+soy.$$escapeHtml(a.moreDescription)+'</p>':'','</li>'),b?'':c.toString()},jive.integration.tiles.viewstyle.listItem_2}),define('soy!jive.integration.tiles.viewstyle.sectionClasses',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.sectionClasses=function(a,b){a=a||{};var c=b||new soy.StringBuilder;return c.append(a.config&&'WIDE'==a.config.displayWidth?'j-tile-body j-tile-list-wide clearfix':a.config&&'HERO'==a.config.displayWidth?'j-tile-body j-tile-list-hero clearfix':'j-tile-body j-tile-list-narrow clearfix'),b?'':c.toString()},jive.integration.tiles.viewstyle.sectionClasses}),define('soy!jive.integration.tiles.viewstyle.ulClasses',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.ulClasses=function(a,b){a=a||{};var c=b||new soy.StringBuilder;return c.append(a.config&&(a.config.listStyle&&'peopleList'==a.config.listStyle||a.config.style&&'peopleList'==a.config.style)?'peopleList j-icon-list':'contentList j-icon-list'),b?'':c.toString()},jive.integration.tiles.viewstyle.ulClasses}),define('soy!jive.integration.tiles.viewstyle.list_2',['soyDeps','soy!jive.integration.tiles.view.footer','soy!jive.integration.tiles.view.header','soy!jive.integration.tiles.viewstyle.listItem_2','soy!jive.integration.tiles.viewstyle.sectionClasses','soy!jive.integration.tiles.viewstyle.ulClasses'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.list_2=function(a,b){var c=b||new soy.StringBuilder;if(jive.integration.tiles.view.header(a,c),c.append('<section class="'),jive.integration.tiles.viewstyle.sectionClasses(a,c),c.append('">'),a.contents&&'string'!=typeof a.contents&&0!=a.contents.length)for(var d=a.contents,e=d.length,f=0;e>f;f++){var g=d[f];0==f&&(c.append('<ul class="'),jive.integration.tiles.viewstyle.ulClasses(a,c),c.append('">')),'string'==typeof g?jive.integration.tiles.viewstyle.listItem_2({text:g,place:a.place},c):a.config&&a.config.style&&'peopleList'==a.config.style?jive.integration.tiles.viewstyle.listItem_2(soy.$$augmentMap(g,{iconClass:(g.action&&g.action.iconSize?soy.$$escapeHtml(g.action.iconSize):'48')+' jive-avatar',place:a.place,showDescription:!0}),c):jive.integration.tiles.viewstyle.listItem_2(soy.$$augmentMap(g,{iconClass:g.action&&g.action.iconSize?soy.$$escapeHtml(g.action.iconSize):'16',place:a.place}),c),c.append(f==e-1?'</ul>':'')}else c.append('<p class="noContent">','string'==typeof a.contents?soy.$$escapeHtml(a.contents):'','</p>');return c.append('</section>'),a.action&&!a.hideAllContentLink&&jive.integration.tiles.view.footer(a.action,c),b?'':c.toString()},jive.integration.tiles.viewstyle.list_2}),define('soy!jive.integration.tiles.tile_skeletons.content',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.tile_skeletons'),jive.integration.tiles.tile_skeletons.content=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-content-skeleton"><div class="j-skeleton-circle"></div><span class="j-skeleton-tile-text"></span><span class="j-skeleton-tile-text"></span></div>'),b?'':c.toString()},jive.integration.tiles.tile_skeletons.content}),define('soy!jive.integration.tiles.tile_skeletons.subContent',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.tile_skeletons'),jive.integration.tiles.tile_skeletons.subContent=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-sub-content-skeleton"><i class="icon icon-image j-skeleton-img"></i><span class="j-skeleton-tile-text"></span><span class="j-skeleton-tile-text"></span><span class="j-skeleton-tile-text"></span></div>'),b?'':c.toString()},jive.integration.tiles.tile_skeletons.subContent}),define('soy!jive.integration.tiles.tile_skeletons.contentLarge',['soyDeps','soy!jive.integration.tiles.tile_skeletons.content','soy!jive.integration.tiles.tile_skeletons.subContent'],function(a){return jive.namespace.call(this,'jive.integration.tiles.tile_skeletons'),jive.integration.tiles.tile_skeletons.contentLarge=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-content-skeleton-large">'),jive.integration.tiles.tile_skeletons.content(null,c),jive.integration.tiles.tile_skeletons.subContent(null,c),c.append('</div>'),b?'':c.toString()},jive.integration.tiles.tile_skeletons.contentLarge}),define('soy!jive.integration.tiles.tile_skeletons.contentList',['soyDeps','soy!jive.integration.tiles.tile_skeletons.content'],function(a){return jive.namespace.call(this,'jive.integration.tiles.tile_skeletons'),jive.integration.tiles.tile_skeletons.contentList=function(a,b){for(var c=b||new soy.StringBuilder,d=a.numPlaceholders,e=0;d>e;e++)jive.integration.tiles.tile_skeletons.content(null,c);return b?'':c.toString()},jive.integration.tiles.tile_skeletons.contentList}),define('soy!jive.integration.tiles.tile_skeletons.media',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.tile_skeletons'),jive.integration.tiles.tile_skeletons.media=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-media-skeleton"><i class="icon icon-image j-skeleton-img"></i><span class="j-skeleton-tile-text"></span></div>'),b?'':c.toString()},jive.integration.tiles.tile_skeletons.media}),define('soy!jive.integration.tiles.tile_skeletons.person',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.tile_skeletons'),jive.integration.tiles.tile_skeletons.person=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-content-skeleton"><img class="jive-avatar j-skeleton-circle" src="/images/jive-avatar-default.png"><span class="j-skeleton-tile-text"></span><span class="j-skeleton-tile-text"></span></div>'),b?'':c.toString()},jive.integration.tiles.tile_skeletons.person;
}),define('soy!jive.integration.tiles.tile_skeletons.peopleList',['soyDeps','soy!jive.integration.tiles.tile_skeletons.person'],function(a){return jive.namespace.call(this,'jive.integration.tiles.tile_skeletons'),jive.integration.tiles.tile_skeletons.peopleList=function(a,b){for(var c=b||new soy.StringBuilder,d=a.numPlaceholders,e=0;d>e;e++)jive.integration.tiles.tile_skeletons.person(null,c);return b?'':c.toString()},jive.integration.tiles.tile_skeletons.peopleList}),define('soy!jive.integration.tiles.tile_skeletons.skeleton',['soyDeps','soy!jive.integration.tiles.tile_skeletons.contentLarge','soy!jive.integration.tiles.tile_skeletons.contentList','soy!jive.integration.tiles.tile_skeletons.media','soy!jive.integration.tiles.tile_skeletons.peopleList'],function(a){return jive.namespace.call(this,'jive.integration.tiles.tile_skeletons'),jive.integration.tiles.tile_skeletons.skeleton=function(a,b){a=a||{};var c=b||new soy.StringBuilder;return c.append('<div class="j-tile-skeleton ',a.columnWidth?soy.$$escapeHtmlAttribute(a.columnWidth):'','">'),a.style&&'contentlistwide'==a.style||'contentlistnarrow'==a.style||'sectionlist'==a.style||'list'==a.style?jive.integration.tiles.tile_skeletons.contentList({numPlaceholders:5},c):a.style&&'peopleList'==a.style?jive.integration.tiles.tile_skeletons.peopleList({numPlaceholders:5},c):a.style&&'carousel'==a.style||'gallery'==a.style||'video'==a.style||'gauge'==a.style?jive.integration.tiles.tile_skeletons.media(null,c):jive.integration.tiles.tile_skeletons.contentLarge(null,c),c.append('</div>'),b?'':c.toString()},jive.integration.tiles.tile_skeletons.skeleton}),define('soy!jive.integration.tiles.viewstyle.custom_view',['soyDeps','soy!jive.integration.tiles.tile_skeletons.skeleton','soy!jive.integration.tiles.view.footer','soy!jive.integration.tiles.view.header'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.custom_view=function(b,c){var d=c||new soy.StringBuilder;return b.title&&jive.integration.tiles.view.header(b,d),b.editing?d.append('<section class="j-tile-body"><div class="noContent clearfix">',soy.$$escapeHtml(a._i18n('eb5ffb',[])),'</div></section>'):(d.append('<section class="j-tile-body"><div id="j-app-tile-parent-',soy.$$escapeHtmlAttribute(b.tileInstanceId),'"><div class="js-error" style="display: none;"><div>',soy.$$escapeHtml(a._i18n('9dd569',[])),'</div><a href="#">',soy.$$escapeHtml(a._i18n('fdfa98',[])),'</a></div>'),jive.integration.tiles.tile_skeletons.skeleton(null,d),d.append('</div></section>'),b.action&&jive.integration.tiles.view.footer(b.action,d)),d.append('<script>require([ \'apps/tile/integrations/custom_view\', \'domReady!\' ], function(TileAppRenderer) {new TileAppRenderer({domElement: "j-app-tile-parent-',soy.$$escapeJsString(b.tileInstanceId),'"});});</script>'),c?'':d.toString()},jive.integration.tiles.viewstyle.custom_view}),define('soy!jive.integration.tiles.viewstyle.eventLocation',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.eventLocation=function(a,b){var c=b||new soy.StringBuilder;return c.append(a.event.location&&(!a.config||a.config&&a.config.locationDisplay&&'false'!=a.config.locationDisplay)?'<p class="j-eventLocation font-color-meta">'+soy.$$escapeHtml(a.event.location)+'</p>':''),b?'':c.toString()},jive.integration.tiles.viewstyle.eventLocation}),define('soy!jive.integration.tiles.viewstyle.eventList',['soyDeps','soy!jive.integration.tiles.view.actionLink','soy!jive.integration.tiles.viewstyle.eventLocation'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.eventList=function(b,c){var d=c||new soy.StringBuilder;if('string'==typeof b.events)d.append('<p class="noContent">',soy.$$escapeHtml(b.events),'</p>');else if(!b.events||b.events.length<1)d.append(b['default']&&b['default'].defaultMessage?'<div class="noContent clearfix">'+soy.$$escapeHtml(b['default'].defaultMessage)+'</div>':'<p class="noContent">'+soy.$$escapeHtml(a._i18n('1d3ea2',[]))+'</p>');else{var e=b.events,f=e.length;if(f>0)for(var g=0;f>g;g++){var h=e[g];h.title&&(d.append('<li id="event_',soy.$$escapeHtmlAttribute(h.start),'" class="j-calEvent clearfix"><div class="j-tile-calendarIcon"><strong class="month">',soy.$$escapeHtml((h.start?require('jive/model/date').DateUtil.parseISODateTime(h.start):'')?require('moment').utc(parseFloat(h.start?require('jive/model/date').DateUtil.parseISODateTime(h.start):'')?parseFloat(h.start?require('jive/model/date').DateUtil.parseISODateTime(h.start):''):h.start?require('jive/model/date').DateUtil.parseISODateTime(h.start):'').add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('MMM'):''),'</strong><strong class="day">',soy.$$escapeHtml((h.start?require('jive/model/date').DateUtil.parseISODateTime(h.start):'')?require('moment').utc(parseFloat(h.start?require('jive/model/date').DateUtil.parseISODateTime(h.start):'')?parseFloat(h.start?require('jive/model/date').DateUtil.parseISODateTime(h.start):''):h.start?require('jive/model/date').DateUtil.parseISODateTime(h.start):'').add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('D'):''),'</strong></div><header class="j-calEventHeader">',h.color?'<span style="background-color:'+soy.$$escapeHtmlAttribute(soy.$$filterCssValue(h.color))+';" class="jive-calendar-color-dot"></span>':''),h.action?jive.integration.tiles.view.actionLink(soy.$$augmentMap(h.action,{text:h.title}),d):d.append(soy.$$escapeHtml(h.title)),d.append('</header><section class="j-eventDescription"><p class="j-eventDescription">',h.description?soy.$$escapeHtml(h.description):'','</p>'),jive.integration.tiles.viewstyle.eventLocation({event:h,config:b.config},d),d.append('</section></li>'))}else d.append('<li class="j-cal-empty"><p class="noContent"></p></li>')}return c?'':d.toString()},jive.integration.tiles.viewstyle.eventList}),define('soy!jive.integration.tiles.viewstyle.slide',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.slide=function(a,b){var c=b||new soy.StringBuilder;c.append('<div class="j-cSlide js-slide-body"><div class="j-slide-ratio-box"><img class="j-slide-blank" src="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.resourceUrl('/images/spacer/4by3.png'))),'" alt=""><span class="j-slideImgLink">',a.slide.titleLink&&''!=a.slide.titleLink?'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(a.slide.titleLink))+'">':'');var d=(a.slide.image.match(new RegExp('.*\\.gif(\\?.*)?$','i'))||[]).length>0&&a.slide.origImage?a.slide.origImage:a.slide.image;return c.append('<img class="j-slide-image" ',d?'src="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,d))+'"':'',' alt="',soy.$$escapeHtmlAttribute(a.slide.titleText),'" ',a.slide.image?'':' style="display: none"',' />',a.slide.titleLink&&''!=a.slide.titleLink?'</a>':'','</span></div><div class="j-slideInfo"><div class="j-carousel-slideinfo-bg"></div><h2 class="j-slide-title">',a.slide.titleLink&&''!=a.slide.titleLink?'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(a.slide.titleLink))+'" class="j-slideTextLink">'+soy.$$escapeHtml(a.slide.titleText)+'</a>':soy.$$escapeHtml(a.slide.titleText),'</h2>',a.slide.description&&''!=a.slide.description?'<div class="j-slide-caption">'+soy.$$changeNewlineToBr(soy.$$escapeHtml(a.slide.description))+'</div>':'','</div></div>'),b?'':c.toString()},jive.integration.tiles.viewstyle.slide}),define('soy!jive.integration.tiles.viewstyle.slideList',['soyDeps','soy!jive.integration.tiles.viewstyle.slide'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.slideList=function(a,b){var c=b||new soy.StringBuilder;c.append('<ul class="j-cSlides js-main-slide clearfix"><li class="j-slide-item clearfix">'),jive.integration.tiles.viewstyle.slide({slide:a.slides[0]},c),c.append('</li></ul><div class="j-cPreview" ',a.previewPane?'':'style="display:none"','><a href="#" class="j-prev js-prev-slide"><span class="jive-icon-med jive-icon-lb-prev-dk"></span></a><ul class="j-cSlidePreview js-slides clearfix">');for(var d=a.slides,e=d.length,f=0;e>f;f++){var g=d[f];c.append('<li class="j-slide-item js-slide',0==f?' j-active':'','" ',0==f?' style="display:none"':'',' data-index="',soy.$$escapeHtmlAttribute(f),'">'),jive.integration.tiles.viewstyle.slide({slide:g},c),c.append('</li>')}return c.append('</ul><a href="#" class="j-next js-next-slide"><span class="jive-icon-med jive-icon-lb-next-dk"></span></a></div>'),b?'':c.toString()},jive.integration.tiles.viewstyle.slideList}),define('soy!jive.integration.tiles.viewstyle.superListItemBasic',['soyDeps','soy!jive.integration.tiles.viewstyle.icon','soy!jive.integration.tiles.viewstyle.superListUser','soy!jive.integration.tiles.viewstyle.unreadIndicator'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.superListItemBasic=function(a,b){var c=b||new soy.StringBuilder;return c.append('<li class="listItem contentListItem super-list basic ',a.jiveIconClasses?'showIcon':a.icon?'showIcon ic'+soy.$$escapeHtmlAttribute(a.iconClass):'noIcon','"><div>'),(a.icon||a.jiveIconClasses)&&jive.integration.tiles.viewstyle.icon(a,c),a.url?(c.append('<a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(a.url)),'" class="linkText',a.isUnread?' j-indicator-unread-text':'','">',soy.$$filterNoAutoescape(a.text)),a.isUnread&&jive.integration.tiles.viewstyle.unreadIndicator(null,c),c.append('</a>')):c.append(soy.$$escapeHtml(a.text)),c.append('</div><div class="font-color-meta linkDescription">'),jive.integration.tiles.viewstyle.superListUser(a,c),c.append(a.creationDate?' '+soy.$$escapeHtml(a.creationDate):'','</div></li>'),b?'':c.toString()},jive.integration.tiles.viewstyle.superListItemBasic}),define('soy!jive.integration.tiles.viewstyle.superListDetailedAuthorCreatedLine',['soyDeps','soy!jive.integration.tiles.viewstyle.superListUser','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.superListDetailedAuthorCreatedLine=function(a,b){a=a||{};var c=b||new soy.StringBuilder;if(a.contentContainer&&'user'!=a.contentContainer.objectTypeName){var d=new soy.StringBuilder;jive.integration.tiles.viewstyle.superListUser(a,d),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('86329f'),arg0:soy.$$escapeHtml(a.creationDate),arg1:d.toString(),arg2:'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,a.contentContainer.link)))+'" class="font-color-meta j-container jivecontainerTT-hover-container" data-objectId="'+soy.$$escapeHtmlAttribute(a.contentContainer.id)+'" data-objectType="'+soy.$$escapeHtmlAttribute(a.contentContainer.type)+'">'+soy.$$escapeHtml(a.contentContainer.subject)+'</a>',noAutoEscape:'true'},c)}else{var e=new soy.StringBuilder;jive.integration.tiles.viewstyle.superListUser(a,e),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('aa2d70'),arg0:soy.$$escapeHtml(a.creationDate),arg1:e.toString(),noAutoEscape:'true'},c)}return b?'':c.toString()},jive.integration.tiles.viewstyle.superListDetailedAuthorCreatedLine}),define('soy!jive.integration.tiles.viewstyle.superListDetailedAuthorLine',['soyDeps','soy!jive.integration.tiles.viewstyle.superListDetailedAuthorCreatedLine','soy!jive.integration.tiles.viewstyle.superListReplyLine'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.superListDetailedAuthorLine=function(a,b){a=a||{};var c=b||new soy.StringBuilder;return c.append('<div class="j-author-line">'),a.latestReply?jive.integration.tiles.viewstyle.superListReplyLine(a,c):jive.integration.tiles.viewstyle.superListDetailedAuthorCreatedLine(a,c),c.append('</div>'),b?'':c.toString()},jive.integration.tiles.viewstyle.superListDetailedAuthorLine}),define('soy!jive.integration.tiles.viewstyle.superListItemDetailed',['soyDeps','soy!jive.integration.tiles.viewstyle.icon','soy!jive.integration.tiles.viewstyle.superListActivityInfo','soy!jive.integration.tiles.viewstyle.superListDetailedAuthorLine','soy!jive.integration.tiles.viewstyle.unreadIndicator'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.superListItemDetailed=function(a,b){var c=b||new soy.StringBuilder;return c.append('<li class="listItem contentListItem super-list detailed ',a.jiveIconClasses?'showIcon':a.icon?'showIcon ic'+soy.$$escapeHtmlAttribute(a.iconClass):'noIcon','"><div class="j-contentListItem-title">'),(a.icon||a.jiveIconClasses)&&jive.integration.tiles.viewstyle.icon(a,c),a.url?(c.append('<a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(a.url)),'" class="linkText',a.isUnread?' j-indicator-unread-text':'','">',soy.$$filterNoAutoescape(a.text)),a.isUnread&&jive.integration.tiles.viewstyle.unreadIndicator(null,c),c.append('</a>')):c.append(soy.$$escapeHtml(a.text)),c.append('</div>',a.bodysnippet?'<div class="j-contentListItem-bodysnippet">'+soy.$$filterNoAutoescape(a.bodysnippet)+'</div>':'','<div class="font-color-meta linkDescription">'),jive.integration.tiles.viewstyle.superListDetailedAuthorLine(a,c),jive.integration.tiles.viewstyle.superListActivityInfo(a,c),c.append('</div></li>'),b?'':c.toString()},jive.integration.tiles.viewstyle.superListItemDetailed}),define('soy!jive.integration.tiles.viewstyle.superListItem',['soyDeps','soy!jive.integration.tiles.viewstyle.superListItemBasic','soy!jive.integration.tiles.viewstyle.superListItemDetailed','soy!jive.integration.tiles.viewstyle.superListItemRich'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.superListItem=function(a,b){var c=b||new soy.StringBuilder;return'rich'==a.displayFormat?jive.integration.tiles.viewstyle.superListItemRich(a.item,c):'detailed'==a.displayFormat?jive.integration.tiles.viewstyle.superListItemDetailed(a.item,c):jive.integration.tiles.viewstyle.superListItemBasic(a.item,c),b?'':c.toString()},jive.integration.tiles.viewstyle.superListItem}),define('soy!jive.integration.tiles.viewstyle.tileVideoInfo',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.tileVideoInfo=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-stream-comms-video-info clearfix"><a href="#" class="j-tile-video-thumb" id="video-tile-link-',soy.$$escapeHtmlAttribute(b.tileInstanceId),'"><img src="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.video.previewImageURL)),'" width="100%" title="',soy.$$escapeHtmlAttribute(a._i18n('838339',[])),'" alt="',soy.$$escapeHtmlAttribute(a._i18n('838339',[])),'"/><span id=\'video-span-tile-',soy.$$escapeHtmlAttribute(b.tileInstanceId),'\' class=\'j-video-preview\'>▶︎</span></a></div>'),c?'':d.toString()},jive.integration.tiles.viewstyle.tileVideoInfo}),define('soy!jive.integration.tiles.viewstyle.video',['soyDeps','soy!jive.integration.tiles.view.footer','soy!jive.integration.tiles.view.header','soy!jive.integration.tiles.viewstyle.tileVideoInfo'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.video=function(a,b){var c=b||new soy.StringBuilder;return jive.integration.tiles.view.header(a,c),c.append('<section class="j-tile-body j-tile-video">'),!a.video&&a['default']?c.append('<div class="noContent clearfix">',soy.$$escapeHtml(a['default'].defaultMessage),'</div>'):'string'==typeof a.video?c.append('<p class="noContent">',soy.$$escapeHtml(a.video),'</p>'):jive.integration.tiles.viewstyle.tileVideoInfo(a,c),c.append('</section>'),a.action&&jive.integration.tiles.view.footer(a.action,c),b?'':c.toString()},jive.integration.tiles.viewstyle.video}),define('soy!jive.integration.tiles.viewstyle.bannerImage',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.bannerImage=function(a,b){var c=b||new soy.StringBuilder;return c.append('<figure><a href="',null!=a.actionUrl?soy.$$escapeHtml(a.actionUrl):'#','" data-index="',soy.$$escapeHtml(a.index),'" data-caption="',soy.$$escapeHtml(a.title),'" data-src="',soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,a.image)),'"',a.openInNewWindow?'target="_blank"':'','><img class="j-banner-image" src="',soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,a.image)),'" data-src="',soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,a.image)),'" alt="',soy.$$escapeHtml(a.title),'" ><!-- not yet supported in all browsers, see https://developer.mozilla.org/en-US/docs/Link_prefetching_FAQ --><meta http-equiv="Link" content="<',soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,a.image)),'>; rel=prefetch">',a.title&&!a.hideCaptions?'<figcaption class=\'j-banner-caption\'><p>'+soy.$$escapeHtml(a.title)+'</p></figcaption>':'','</a></figure>'),b?'':c.toString()},jive.integration.tiles.viewstyle.bannerImage}),define('soy!jive.integration.tiles.viewstyle.banner',['soyDeps','soy!jive.integration.tiles.view.footer','soy!jive.integration.tiles.viewstyle.bannerImage'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.banner=function(a,b){var c=b||new soy.StringBuilder;if(c.append('<section id="tile-banner-',soy.$$escapeHtmlAttribute(a.tileInstanceId),'" class="j-tile-body  j-tile-banner j-tile-banner-',soy.$$escapeHtmlAttribute(a.config.size),'  js-tile-banner js-tile-banner-',soy.$$escapeHtmlAttribute(a.config.size),'  ',a.config.disableFullScreenView?'':' j-fullscreen-enabled','string'==typeof a.contents||0==a.contents.length?' j-empty-gallery':'','">'),'string'!=typeof a.contents&&0!=a.contents.length){c.append('<ul class="">');for(var d=a.contents,e=d.length,f=0;e>f;f++){var g=d[f];'none'!=g.display&&(c.append('<li class="j-tile-banner-thumb ',a.config&&a.config.largeTile?' j-tile-banner-tall':'','">'),jive.integration.tiles.viewstyle.bannerImage(soy.$$augmentMap(g,{hideCaptions:a.config.hideCaptions,index:f}),c),c.append('</li>'))}c.append('</ul>')}else c.append('<p class="noContent">','string'==typeof a.contents?soy.$$escapeHtml(a.contents):'','</p>');return c.append('</section>'),a.action&&a.config.showAdditionalLink&&jive.integration.tiles.view.footer(a.action,c),b?'':c.toString()},jive.integration.tiles.viewstyle.banner}),define('soy!jive.integration.tiles.viewstyle.userQuestListData',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.userQuestListData=function(b,c){var d=c||new soy.StringBuilder;if(b.userQuests&&'string'!=typeof b.userQuests&&0!=b.userQuests.length)for(var e=b.userQuests,f=e.length,g=0;f>g;g++){var h=e[g];d.append('<li><div class="mqt-row"><div class="mqt-cover"><div><img src="',soy.$$escapeHtml(h.badgeIconUrl),'" class="mqt-quest-badge" alt="',soy.$$escapeHtml(h.description),h.isTargetedQuest?' - '+soy.$$escapeHtml(a._i18n('da5281',[])):'','" title="',soy.$$escapeHtml(h.description),h.isTargetedQuest?' - '+soy.$$escapeHtml(a._i18n('da5281',[])):'','"></div><div class="mqt-points">',soy.$$escapeHtml(h.pointsOnCompletion),'</div></div>',h.isTargetedQuest?'<span class="j-quest-target-quest" title="'+soy.$$escapeHtml(h.description)+' - '+soy.$$escapeHtml(a._i18n('da5281',[]))+'"></span>':'','<div class="mqt-content"><div class="mqt-content-body"><div class="mqt-content-head"><a class="mqt-act-title j-quest-details" href="#" data-id="',soy.$$escapeHtml(h.badgeId),'" data-type="quest" data-iscomplete="',soy.$$escapeHtml(h.isCompleted),'" ',h.userQuestId?' data-user-quest-id="'+soy.$$escapeHtml(h.userQuestId)+'" ':'','  title="',soy.$$escapeHtml(h.name),'">',soy.$$escapeHtml(h.name),'</a>',h.expiration?'<p class="mqt-expiration font-color-meta">'+soy.$$escapeHtml(a._i18n('346b45',[]))+' '+soy.$$escapeHtml(h.expiration)+'</p>':'','</div><p class="mqt-quest-description">',soy.$$escapeHtml(h.description),'</p></div><div class="mqt-q-progress-display"><div class="mqt-q-progress mqt-scoring"><div class="mqt-bar progress-bar p',soy.$$escapeHtml(h.completionPercentage),'"></div></div><p>',soy.$$escapeHtml(h.completedSteps),'/',soy.$$escapeHtml(h.questSteps),' ',soy.$$escapeHtml(a._i18n('9277b3',[])),'</p></div></div><div class="mqt-users"><div class="mqt-users-head">',h.userId1?'<p>'+soy.$$escapeHtml(a._i18n('a969b1',[]))+'</p>':0==h.completedUsersNumber?'<p>'+soy.$$escapeHtml(a._i18n('f4bbf2',[]))+'</p>':'','</div><div class="mqt-users-body">',h.userId1?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,'/people/'+encodeURIComponent(h.userName1)))+'" title="'+soy.$$escapeHtml(h.displayName1)+'" class="j-avatar  jiveTT-hover-user" data-userid="'+soy.$$escapeHtml(h.userId1)+'" data-avatarid="'+soy.$$escapeHtml(h.avatarId1)+'" data-username="'+soy.$$escapeHtml(h.userName1)+'"><img class="jive-avatar" src="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,'/people/'+encodeURIComponent(h.userName1)+'/avatar/48.png?a='+h.userId1))+'" data-username="'+soy.$$escapeHtml(h.userName1)+'" height="48" width="48" alt="" border="0"></a>':'',h.userId2?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,'/people/'+encodeURIComponent(h.userName2)))+'" title="'+soy.$$escapeHtml(h.displayName2)+'" class="j-avatar  jiveTT-hover-user" data-userid="'+soy.$$escapeHtml(h.userId2)+'" data-avatarid="'+soy.$$escapeHtml(h.avatarId2)+'" data-username="'+soy.$$escapeHtml(h.userName2)+'"><img class="jive-avatar" src="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,'/people/'+encodeURIComponent(h.userName2)+'/avatar/48.png?a='+h.userId2))+'" data-username="'+soy.$$escapeHtml(h.userName2)+'" height="48" width="48" alt="" border="0"></a>':'',h.userId3?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,'/people/'+encodeURIComponent(h.userName3)))+'" title="'+soy.$$escapeHtml(h.displayName3)+'" class="j-avatar  jiveTT-hover-user" data-userid="'+soy.$$escapeHtml(h.userId3)+'" data-avatarid="'+soy.$$escapeHtml(h.avatarId3)+'" data-username="'+soy.$$escapeHtml(h.userName3)+'"><img class="jive-avatar" src="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,'/people/'+encodeURIComponent(h.userName3)+'/avatar/48.png?a='+h.userId3))+'" data-username="'+soy.$$escapeHtml(h.userName3)+'" height="48" width="48" alt="" border="0"></a>':'','</div></div></div></li>')}return c?'':d.toString()},jive.integration.tiles.viewstyle.userQuestListData}),define('soy!jive.integration.tiles.viewstyle.contentUlClasses',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.contentUlClasses=function(a,b){a=a||{};var c=b||new soy.StringBuilder;return c.append(a.config&&(a.config.listStyle&&'peopleList'==a.config.listStyle||a.config.style&&'peopleList'==a.config.style)?'peopleList j-icon-list':'contentList j-icon-list'),b?'':c.toString()},jive.integration.tiles.viewstyle.contentUlClasses}),define('soy!jive.integration.tiles.viewstyle.listItem',['soyDeps','soy!jive.integration.tiles.view.actionLink','soy!jive.integration.tiles.viewstyle.icon'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.listItem=function(a,b){var c=b||new soy.StringBuilder;if(c.append('<li class="listItem ',a.jiveIconClasses?'showIcon':a.icon?'showIcon ic'+soy.$$escapeHtml(a.iconClass):'noIcon','">'),a.action){var d=new soy.StringBuilder;(a.icon||a.jiveIconClasses)&&jive.integration.tiles.viewstyle.icon(a,d),d.append(soy.$$escapeHtml(a.text)),jive.integration.tiles.view.actionLink(soy.$$augmentMap(a.action,{classes:'linkText '+(a.linkDescription?'showDescription ':'')+(a.userID?'jiveTT-hover-user ':'')+(a.userIsPartner?'j-partner ':'')+(a.containerID?'jivecontainerTT-hover-container ':''),attrs:(a.userID?'data-userid="'+soy.$$escapeHtml(a.userID)+'" ':'')+(a.containerID?'data-objectid="'+soy.$$escapeHtml(a.containerID)+'" ':'')+(a.containerType?'data-objecttype="'+soy.$$escapeHtml(a.containerType)+'" ':''),text:d.toString(),containerUrl:a.action.relativeUrl&&a.place?soy.$$escapeHtml(a.place.objectURL):'',noEscapeText:!0}),c)}else(a.icon||a.jiveIconClasses)&&jive.integration.tiles.viewstyle.icon(a,c),c.append(a.url?'<a href="'+soy.$$escapeHtml(a.url)+'" class="linkText">'+soy.$$filterNoAutoescape(a.text)+'</a>':soy.$$escapeHtml(a.text));return c.append(a.showDescription&&a.linkDescription?'<p class="linkDescription">'+soy.$$escapeHtml(a.linkDescription)+'</p>':'',a.showDescription&&a.linkMoreDescription?'<p class="linkDescription">'+soy.$$escapeHtml(a.linkMoreDescription)+'</p>':'','</li>'),b?'':c.toString()},jive.integration.tiles.viewstyle.listItem}),define('soy!jive.integration.tiles.viewstyle.list',['soyDeps','soy!jive.integration.tiles.defaults.noContent','soy!jive.integration.tiles.view.footer','soy!jive.integration.tiles.view.header','soy!jive.integration.tiles.viewstyle.listItem','soy!jive.integration.tiles.viewstyle.sectionClasses','soy!jive.integration.tiles.viewstyle.superListItem','soy!jive.integration.tiles.viewstyle.ulClasses'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.list=function(b,c){var d=c||new soy.StringBuilder;if(jive.integration.tiles.view.header({title:b.title,tileInstanceId:b.tileInstanceId,"class":null!=b.headerClass?b.headerClass:''},d),d.append('<section class="'),jive.integration.tiles.viewstyle.sectionClasses(b,d),d.append('">'),b.contents&&'string'!=typeof b.contents&&0!=b.contents.length){d.append('<ul class="'),jive.integration.tiles.viewstyle.ulClasses(b,d),d.append('">');for(var e=b.contents,f=e.length,g=0;f>g;g++){var h=e[g];'string'==typeof h?jive.integration.tiles.viewstyle.listItem(soy.$$augmentMap(h,{text:h,place:b.place}),d):b.config&&'contentList'==b.config.listStyle&&b.config.displayFormat?jive.integration.tiles.viewstyle.superListItem({item:h,place:b.place,displayFormat:b.config.displayFormat},d):b.config&&'peopleList'==b.config.listStyle?jive.integration.tiles.viewstyle.listItem(soy.$$augmentMap(h,{iconClass:(h.action&&h.action.iconSize?soy.$$escapeHtml(h.action.iconSize):'48')+' jive-avatar',place:b.place,showDescription:!0}),d):jive.integration.tiles.viewstyle.listItem(soy.$$augmentMap(h,{iconClass:h.action&&h.action.iconSize?soy.$$escapeHtml(h.action.iconSize):'16',place:b.place}),d)}d.append('</ul>')}else'string'==typeof b.contents?jive.integration.tiles.defaults.noContent(b,d):d.append('<p class="noContent">',soy.$$escapeHtml(a._i18n('ee5acf',[])),'</p>');return d.append('</section>'),b.action&&!b.hideAllContentLink&&jive.integration.tiles.view.footer(b.action,d),c?'':d.toString()},jive.integration.tiles.viewstyle.list}),define('soy!jive.integration.tiles.viewstyle.controls',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.controls=function(b,c){var d=c||new soy.StringBuilder;return d.append('<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"><div class="j-carousel-controls"><a href="#" class="j-prev js-prev-slide"><span class="jive-icon-med jive-icon-lb-prev inv"></span><span class="jive-icon-med jive-icon-lb-prev-dk init"></span><span class="j-508-label">',soy.$$escapeHtml(a._i18n('slide.control.prev',[])),'</span></a><span class="j-carousel-counter"><em class="js-current-slide">1</em><em>/',soy.$$escapeHtml(b.totalSlideNumber),'</em><span class="js-pause" style="cursor: pointer;"><i style="font-size:15px;vertical-align:bottom" class="material-icons">pause</i></span></span><a href="#" class="j-next js-next-slide"><span class="jive-icon-med jive-icon-lb-next inv"></span><span class="jive-icon-med jive-icon-lb-next-dk init"></span><span class="j-508-label">',soy.$$escapeHtml(a._i18n('7f7cfe',[])),'</span></a></div>'),c?'':d.toString()},jive.integration.tiles.viewstyle.controls}),define('soy!jive.integration.tiles.viewstyle.carouselbody',['soyDeps','soy!jive.integration.tiles.viewstyle.controls','soy!jive.integration.tiles.viewstyle.slideList'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.carouselbody=function(a,b){var c=b||new soy.StringBuilder;return a.slides.length>1&&jive.integration.tiles.viewstyle.controls({totalSlideNumber:a.slides.length},c),jive.integration.tiles.viewstyle.slideList(a,c),b?'':c.toString()},jive.integration.tiles.viewstyle.carouselbody}),define('soy!jive.integration.tiles.viewstyle.userQuestList',['soyDeps','soy!jive.integration.tiles.viewstyle.userQuestListData'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.userQuestList=function(a,b){var c=b||new soy.StringBuilder;return c.append('<ul><div id="questsList" class="list mqt-list">'),jive.integration.tiles.viewstyle.userQuestListData(a,c),c.append('</div></ul>'),b?'':c.toString()},jive.integration.tiles.viewstyle.userQuestList}),define('soy!jive.integration.tiles.viewstyle.quest',['soyDeps','soy!jive.integration.tiles.view.header','soy!jive.integration.tiles.viewstyle.userQuestList','soy!jive.shared.soy.resourceInlineJs'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.quest=function(b,c){var d=c||new soy.StringBuilder;return jive.integration.tiles.view.header(b,d),b.userQuests&&'string'!=typeof b.userQuests?(jive.shared.soy.resourceInlineJs({code:'require([ \'apps/tile/massive_quest_tile_controller\', \'domReady!\' ], function(ProfileApp) {var data = '+soy.$$filterNoAutoescape(JSON.stringify(b.userQuests).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+'; new ProfileApp({actionName: "MQT", targetUserId: '+soy.$$escapeHtml(b.currentUserId)+', currentUserId: '+soy.$$escapeHtml(b.currentUserId)+', userQuests: data});});'},d),jive.shared.soy.resourceInlineJs({code:'require([ \'apps/tile/massive_quest_tile\', \'domReady!\' ], function(Quests) {var data = '+soy.$$filterNoAutoescape(JSON.stringify(b.userQuests).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+'; new Quests({userQuests: data, currentUserId: '+soy.$$escapeHtml(b.currentUserId)+'});});'},d),d.append('<body><div class="j-browse-search"><i class="jive-icon-glyph icon-search"></i><input id="searchText" class="j-browse-search" type="text" placeholder="',soy.$$escapeHtmlAttribute(a._i18n('17ac09',[])),'"><div id="selector" style="float: right;cursor: pointer" class="j-quest-sort tab"><p class="mqt-sort">',soy.$$escapeHtml(a._i18n('66cb68',[])),'<span style="color: #666"><select name="select" id="select" class="selectClass" style="border: 0"><option value="Highest" selected>',soy.$$escapeHtml(a._i18n('b123d4',[])),'</option><option value="Name">',soy.$$escapeHtml(a._i18n('2208b2',[])),'</option><option value="Expiration">',soy.$$escapeHtml(a._i18n('770b81',[])),'</option><option value="Rare">',soy.$$escapeHtml(a._i18n('7f65d5',[])),'</option><option value="Common">',soy.$$escapeHtml(a._i18n('6cc48b',[])),'</option></select><i class="fa fa-sort-desc"></i></span></p></div></div><div><header class="j-tab-header j-toggle-btns clearfix"><a href="#" id="allQuestsTab" class="js-toggle-header-first font-color-normal active">',soy.$$escapeHtml(a._i18n('ce9f05',[])),'</a><a href="#" id="inProgressTab" class="js-toggle-header-first font-color-normal">',soy.$$escapeHtml(a._i18n('454d0a',[])),'</a><a href="#" id="expiringTab" class="js-toggle-header-second font-color-normal">',soy.$$escapeHtml(a._i18n('5b0061',[])),'</a><a href="#" id="unstartedTab" class="js-toggle-header-second font-color-normal">',soy.$$escapeHtml(a._i18n('872d45',[])),'</a><a href="#" id="earnedTab" class="js-toggle-header-second font-color-normal">',soy.$$escapeHtml(a._i18n('a60fc3',[])),'</a></header></div><div>'),
jive.integration.tiles.viewstyle.userQuestList(b,d),d.append('</div></body>')):d.append('<section class="j-tile-body j-tile-list clearfix"><div class="noContent clearfix">',soy.$$escapeHtml(a._i18n('c708b5',[])),'</div></section>'),c?'':d.toString()},jive.integration.tiles.viewstyle.quest}),define('soy!jive.integration.tiles.viewstyle.questionResults',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.questionResults=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<div class="j-pop-main j-menu j-quick-menu j-tile-ask-a-question-results js-tile-ask-a-question-results">'),b.isResults){d.append('<ul class="j-icon-list">');for(var e=b.results,f=e.length,g=0;f>g;g++){var h=e[g];d.append('<li><a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(h.objectURL)),'" class="j-result-item"><span class="',soy.$$escapeHtmlAttribute(h.objectCSS),'" /><span class="j-search-result lnk">',soy.$$escapeHtml(h.subject),'</span><span class="j-byline font-color-meta">',soy.$$escapeHtml(h.userDisplayName),'<span class="j-bull"> &bull; </span>',soy.$$escapeHtml((h.created?require('jive/model/date').DateUtil.parseISODateTime(h.created):'')?require('moment').utc(parseFloat(h.created?require('jive/model/date').DateUtil.parseISODateTime(h.created):'')?parseFloat(h.created?require('jive/model/date').DateUtil.parseISODateTime(h.created):''):h.created?require('jive/model/date').DateUtil.parseISODateTime(h.created):'').add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('l'):''),'</span><div class="j-content-snippet">',soy.$$filterNoAutoescape(h.body),'</div></a></li>')}d.append('</ul><a href="#" class="j-view-all-results js-view-all-results">',soy.$$escapeHtml(a._i18n('57ffbb',[])),'</a>')}else d.append('<p class="j-no-results-msg j-results-title">',soy.$$escapeHtml(a._i18n('221f57',[])),'</p><a href="#" class="j-search-all-results js-search-all-results">',soy.$$escapeHtml(a._i18n('57ffbb',[])),'</a>');return d.append('</div>'),c?'':d.toString()},jive.integration.tiles.viewstyle.questionResults}),define('soy!jive.integration.tiles.viewstyle.galleryImage',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.galleryImage=function(a,b){var c=b||new soy.StringBuilder;c.append('<figure><table style="width: 100%"><tr><td><a href="#" data-action="showGallery" data-disabled="',a.disableFullScreen?'true':'false','" data-index="',soy.$$escapeHtml(a.index),'" data-caption="',soy.$$escapeHtml(a.title),'" data-src="',soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,a.image)),'">');var d=(a.image.match(new RegExp('.*\\.gif(\\?.*)?$','i'))||[]).length>0?a.image:a.thumb?a.thumb:a.image;return c.append('<img class="j-slide-image j-gallery js-slide-image " src="',soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,d)),'"',a.thumb?'data-thumb="'+soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,a.thumb))+'"':'','alt="" data-src="',soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,a.image)),'" ><!-- not yet supported in all browsers, see https://developer.mozilla.org/en-US/docs/Link_prefetching_FAQ --><meta http-equiv="Link" content="<',soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,a.image)),'>; rel=prefetch"></a></td></tr><tr><td>',a.title&&!a.hideCaptions?'<figcaption><p>'+soy.$$escapeHtml(a.title)+'</p></figcaption>':'','</td></tr></table></figure>'),b?'':c.toString()},jive.integration.tiles.viewstyle.galleryImage}),define('soy!jive.integration.tiles.viewstyle.gallery',['soyDeps','soy!jive.integration.tiles.view.footer','soy!jive.integration.tiles.view.header','soy!jive.integration.tiles.viewstyle.galleryImage'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.gallery=function(a,b){var c=b||new soy.StringBuilder;if(jive.integration.tiles.view.header(a,c),c.append('<section id="tile-image-gallery-',soy.$$escapeHtmlAttribute(a.tileInstanceId),'" class="j-tile-body  j-tile-image-gallery j-tile-image-gallery-',soy.$$escapeHtmlAttribute(a.config.size),'  js-tile-image-gallery js-tile-image-gallery-',soy.$$escapeHtmlAttribute(a.config.size),'  j-slideshow',a.config.disableFullScreenView?'':' j-fullscreen-enabled','string'==typeof a.contents||0==a.contents.length?' j-empty-gallery':'','">'),'string'!=typeof a.contents&&0!=a.contents.length){c.append('<ul class="',a.config.disableFullScreenView?'':' js-fullscreen-enabled','">');for(var d=a.contents,e=d.length,f=0;e>f;f++){var g=d[f];c.append('<li class="j-tile-image-gallery-thumb j-slide',0==f?' j-selected':'','">'),jive.integration.tiles.viewstyle.galleryImage(soy.$$augmentMap(g,{disableFullScreen:a.config.disableFullScreenView,hideCaptions:a.config.hideCaptions,index:f+1}),c),c.append('</li>')}c.append('</ul>')}else c.append('<p class="noContent">','string'==typeof a.contents?soy.$$escapeHtml(a.contents):'','</p>');return c.append('</section>'),a.action&&a.config.showAdditionalLink&&jive.integration.tiles.view.footer(a.action,c),b?'':c.toString()},jive.integration.tiles.viewstyle.gallery}),define('soy!jive.integration.tiles.viewstyle.noResults',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.noResults=function(b,c){var d=c||new soy.StringBuilder;return d.append('<p class="noContent">',soy.$$escapeHtml(a._i18n('3dc956',[])),'</p>'),c?'':d.toString()},jive.integration.tiles.viewstyle.noResults}),define('soy!jive.integration.tiles.viewstyle.calendar',['soyDeps','soy!jive.integration.tiles.view.footer','soy!jive.integration.tiles.view.header','soy!jive.integration.tiles.viewstyle.eventList'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.calendar=function(a,b){var c=b||new soy.StringBuilder;return jive.integration.tiles.view.header(a,c),c.append('<section class="j-tile-body j-tile-calendar"><ul class="j-calendar">'),jive.integration.tiles.viewstyle.eventList(a,c),c.append('</ul></section>'),a.action&&jive.integration.tiles.view.footer(a.action,c),b?'':c.toString()},jive.integration.tiles.viewstyle.calendar}),define('soy!jive.integration.tiles.viewstyle.rowItem',['soyDeps','soy!jive.integration.tiles.view.actionLink'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.rowItem=function(a,b){var c=b||new soy.StringBuilder;return c.append('<tr class="',a.rowIndex%2==1?'odd':'even','"><td class="key">'),'string'!=typeof a.name?(c.append('<span>'),jive.integration.tiles.view.actionLink(a.name,c),c.append('</span>')):c.append('<span>',soy.$$escapeHtml(a.name),'</span>'),c.append('</td><td class="value">'),'string'!=typeof a.value?(c.append('<span>'),jive.integration.tiles.view.actionLink(a.value,c),c.append('</span>')):c.append('<span>',a.url?'<a href="'+soy.$$escapeHtml(a.url)+'">'+soy.$$escapeHtml(a.value)+'</a>':soy.$$escapeHtml(a.value),'</span>'),c.append('</td></tr>'),b?'':c.toString()},jive.integration.tiles.viewstyle.rowItem}),define('soy!jive.video.embedded.kalturaplayer',['soyDeps'],function(a){return jive.namespace.call(this,'jive.video.embedded'),jive.video.embedded.kalturaplayer=function(a,b){a=a||{};var c=b||new soy.StringBuilder,d=null!=a.sourceDomain?a.sourceDomain:a.bean.sourceDomain,e=null!=a.videoId?a.videoId:a.bean.videoID,f=null!=a.partnerID?a.partnerID:a.bean.partnerID,g=null!=a.playerID?a.playerID:a.bean.playerID,h=null!=a.tileWidth?a.tileWidth:a.bean.width,i=null!=a.tileHeight?a.tileHeight:a.bean.height,j='#FFFFFF';return c.append(''==d?'<script type="text/javascript" src="https://cdnapisec.kaltura.com/p/'+soy.$$escapeHtmlAttribute(f)+'/sp/'+soy.$$escapeHtmlAttribute(f)+'00/embedIframeJs/uiconf_id/'+soy.$$escapeHtmlAttribute(g)+'/partner_id/'+soy.$$escapeHtmlAttribute(f)+'"></script><body><object id="kaltura_player_'+soy.$$escapeHtmlAttribute(e)+'" name="kaltura_player_'+soy.$$escapeHtmlAttribute(e)+'" type="application/x-shockwave-flash" height="'+soy.$$escapeHtmlAttribute(i)+'" width="'+soy.$$escapeHtmlAttribute(h)+'" allowFullScreen="true" allowNetworking="all" allowScriptAccess="always" data="https://cdnapisec.kaltura.com/index.php/kwidget/wid/_'+soy.$$escapeHtmlAttribute(f)+'/uiconf_id/'+soy.$$escapeHtmlAttribute(g)+'/entry_id/'+soy.$$escapeHtmlAttribute(e)+'" style="width: '+soy.$$escapeHtmlAttribute(soy.$$filterCssValue(h))+'px; height: '+soy.$$escapeHtmlAttribute(soy.$$filterCssValue(i))+'px;" xmlns:media="https://search.yahoo.com/searchmonkey/media/" rel="media:video" resource="https://cdnapisec.kaltura.com/index.php/kwidget/wid/_'+soy.$$escapeHtmlAttribute(f)+'/uiconf_id/'+soy.$$escapeHtmlAttribute(g)+'/entry_id/'+soy.$$escapeHtmlAttribute(e)+'"><param name="allowFullScreen" value="true" /><param name="allowNetworking" value="all" /><param name="allowScriptAccess" value="always" /><param name="bgcolor" value="'+soy.$$escapeHtmlAttribute(j)+'" /><param name="flashVars" value="" /><param name="movie" value="https://cdnapisec.kaltura.com/index.php/kwidget/wid/_'+soy.$$escapeHtmlAttribute(f)+'/uiconf_id/'+soy.$$escapeHtmlAttribute(g)+'/entry_id/'+soy.$$escapeHtmlAttribute(e)+'" /><!--You can enter alternate content here. --></object></body>':'<body><object type="text/html" width="'+soy.$$escapeHtmlAttribute(h)+'" height="'+soy.$$escapeHtmlAttribute(i)+'" style="overflow: hidden" data="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(d))+'/embed/secure/iframe/entryId/'+soy.$$escapeHtmlAttribute(e)+'"></object></body>'),b?'':c.toString()},jive.video.embedded.kalturaplayer}),define('soy!jive.video.embedded.externalplayertriage',['soyDeps','soy!jive.video.embedded.kalturaplayer'],function(a){return jive.namespace.call(this,'jive.video.embedded'),jive.video.embedded.externalplayertriage=function(a,b){var c=b||new soy.StringBuilder;return jive.video.embedded.kalturaplayer(a,c),b?'':c.toString()},jive.video.embedded.externalplayertriage}),define('soy!jive.integration.tiles.viewstyle.iframe',['soyDeps','soy!jive.integration.tiles.view.footer','soy!jive.integration.tiles.view.header','soy!jive.video.embedded.externalplayertriage'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.iframe=function(a,b){var c=b||new soy.StringBuilder;if(a.title&&jive.integration.tiles.view.header(a,c),c.append('<section class="j-tile-body clearfix">'),a.config&&a.config.videoProvider&&(a.config.videoProvider.match(new RegExp('(brightcove|kaltura)',''))||[]).length>0)c.append('<div class="j-tile-embed-block"><div class="j-tile-embed-wrapper">'),jive.video.embedded.externalplayertriage(a.config,c),c.append('</div></div>');else if(a.contents&&'string'!=typeof a.contents){var d=jive.soy.func.randomString(),e=(a.contents.url.match(new RegExp('^\\$/',''))||[]).length>0?jive.soy.func.buildSecureSubdomainUrl(a.contents.url.replace(new RegExp('^\\$',''),'')):a.contents.url,f=a.config&&a.config.videoProvider&&(a.config.videoProvider.match(new RegExp('(youtube|vimeo)',''))||[]).length>0;c.append('<iframe src="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(e)),'" id="',soy.$$escapeHtmlAttribute(d),'" data-message="',soy.$$escapeHtmlAttribute(a.message?a.message:''),'"',a.config?'allowfullscreen webkitallowfullscreen mozallowfullscreen':'',' frameborder="0" class="j-tile-iframe js-tile-iframe j-tile-iframe-',soy.$$escapeHtmlAttribute(a.columnWidth?a.columnWidth:a.config.size),a.responsive||f?'':' j-tile-iframe-not-responsive','"',a.height&&(a.height.match(new RegExp('^[1-9]\\d*$',''))||[]).length>0?'style="height:'+soy.$$escapeHtmlAttribute(soy.$$filterCssValue(a.height))+'px;"':'','></iframe>',a.responsive||f?'':'<script type="text/javascript">(function() {require([\'jquery\'], function($) {$("#'+soy.$$escapeJsString(d)+'").closest(".j-tileType-iframe").addClass("j-tile-not-responsive");});})();</script>',a.message&&!f?'<script type="text/javascript">(function() {require([\'apps/tile/html_tile_loader\'], function(loader) {var frame = document.getElementById("'+soy.$$escapeJsString(d)+'"); var target = frame.src.substring(0,frame.src.indexOf(\'/\', 8)); loader.initFrame(frame); frame.addEventListener("load", function(){const location = window.top.location; const baseUrl = location.origin + location.pathname; const messageData = JSON.stringify({"baseUrl":baseUrl}); frame.contentWindow.postMessage(messageData,\'*\');});});})();</script>':'')}else c.append('<p class="noContent">',soy.$$escapeHtml(a.contents),'</p>');return c.append(a.description?'<div class="j-contentDescription">'+soy.$$changeNewlineToBr(soy.$$escapeHtml(a.description))+'</div>':'','</section>'),a.action&&jive.integration.tiles.view.footer(a.action,c),b?'':c.toString()},jive.integration.tiles.viewstyle.iframe}),define('soy!jive.integration.tiles.viewstyle.contentlistwide',['soyDeps','soy!jive.integration.tiles.defaults.noContent','soy!jive.integration.tiles.view.footer','soy!jive.integration.tiles.view.header','soy!jive.integration.tiles.viewstyle.contentListItem','soy!jive.integration.tiles.viewstyle.contentSectionClasses'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.contentlistwide=function(a,b){var c=b||new soy.StringBuilder;if(jive.integration.tiles.view.header(a,c),c.append('<section class="'),jive.integration.tiles.viewstyle.contentSectionClasses(a,c),c.append('">'),a.contents&&'string'!=typeof a.contents&&0!=a.contents.length){c.append('<ul class="contentList">');for(var d=a.contents,e=d.length,f=0;e>f;f++){var g=d[f];jive.integration.tiles.viewstyle.contentListItem(soy.$$augmentMap(g,{iconClass:g.action&&g.action.iconSize?soy.$$escapeHtml(g.action.iconSize):'16',iconSizes:'ic24',index:f,externalIconClass:'jive-icon-big'}),c)}c.append('</ul>')}else jive.integration.tiles.defaults.noContent(a,c);return c.append('</section>'),a.action&&jive.integration.tiles.view.footer(a.action,c),b?'':c.toString()},jive.integration.tiles.viewstyle.contentlistwide}),define('soy!jive.integration.tiles.viewstyle.image_grid',['soyDeps','soy!jive.integration.tiles.defaults.noContent','soy!jive.integration.tiles.view.footer','soy!jive.integration.tiles.view.header'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.image_grid=function(a,b){var c=b||new soy.StringBuilder;if(jive.integration.tiles.view.header(a,c),c.append('<section class="j-image-grid-tile clearfix">'),a.contents&&'string'!=typeof a.contents&&0!=a.contents.length)for(var d=a.contents,e=d.length,f=0;e>f;f++){var g=d[f];c.append('<figure class="j-tile-gallery-img"><a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,g.url))),'"><img src="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,g.image))),'" height="120" width="160" alt="" border="0"></a><figcaption><a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,g.url))),'" class="font-color-white">',soy.$$escapeHtml(g.titleText),'</a></figcaption></figure>')}else jive.integration.tiles.defaults.noContent(a,c);return c.append('</section>'),a.action&&jive.integration.tiles.view.footer(a.action,c),b?'':c.toString()},jive.integration.tiles.viewstyle.image_grid}),define('soy!jive.integration.tiles.viewstyle.question',['soyDeps','soy!jive.integration.tiles.view.header','soy!jive.shared.soy.resourceInlineJs'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.question=function(a,b){var c=b||new soy.StringBuilder;return jive.integration.tiles.view.header({"class":'j-showEmpty',title:a.title,tileInstanceId:a.tileInstanceId},c),c.append('<section id="js-ask-a-question-tile-',soy.$$escapeHtmlAttribute(a.tileInstanceId),'" class="j-tile-body js-ask-a-question-tile">',a.searchFrom?'<span class="j-form"><label class="j-508-label" id="j-508-label-ask-a-question-search" >'+soy.$$escapeHtml(a.textField)+'</label><input required role="combobox" class="ask-a-question-search j-ask-question-input js-ask-a-question-search" data-container-type="'+soy.$$escapeHtmlAttribute(a.searchFrom.objectType)+'" data-container-id="'+soy.$$escapeHtmlAttribute(a.searchFrom.id)+'" data-max-results="'+soy.$$escapeHtmlAttribute(a.maxNumberOfResults)+'" data-all-results-url="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(a.allResultsURL))+'" data-object-id="'+soy.$$escapeHtmlAttribute(a.tileInstanceId)+'" data-place-name="'+soy.$$escapeHtmlAttribute(a.searchFrom.name)+'" type="text" aria-required="true" data-display-questions-only="'+soy.$$escapeHtmlAttribute(a.displayResults.displayQuestionsOnly)+'" data-display-thread-results="'+soy.$$escapeHtmlAttribute(a.displayResults.displayThreadResults)+'" data-display-document-results="'+soy.$$escapeHtmlAttribute(a.displayResults.displayDocumentResults)+'" data-display-video-results="'+soy.$$escapeHtmlAttribute(a.displayResults.displayVideoResults)+'" data-display-blog-post-results="'+soy.$$escapeHtmlAttribute(a.displayResults.displayBlogPostResults)+'" autocomplete="off" placeholder="'+soy.$$escapeHtmlAttribute(a.textField)+'" aria-labelledby="j-508-label-ask-a-question-search"/></span><div class="js-ask-a-question-results j-ask-a-question-results"></div><button class="js-ask-it-button j-ask-a-question-button j-btn-callout"'+(a.editing?' disabled':'')+' data-action="'+soy.$$escapeHtmlAttribute(a.action)+'">'+soy.$$escapeHtml(a.submitButton)+'</button>':'','</section>'),jive.shared.soy.resourceInlineJs({code:'require([ \'jquery\', \'apps/tile/integrations/ask_a_question/main\', \'domReady!\' ], function($j, Question) {var func = new Question({tileInstanceId : \''+soy.$$escapeHtml(a.tileInstanceId)+'\' });});'},c),b?'':c.toString()},jive.integration.tiles.viewstyle.question}),define('soy!jive.integration.tiles.viewstyle.stepStatusList',['soyDeps','soy!jive.shared.soy.resourceInlineJs'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.stepStatusList=function(b,c){var d=c||new soy.StringBuilder;d.append('<ul class="j-icon-list j-sqt-list">');for(var e=b.stepsStatus,f=e.length,g=0;f>g;g++){var h=e[g];d.append(h.eventsStatus.length>1?'<li><h5 class="j-game-quest-link"><strong class="'+(h.completed?'j-game-step-complete':'j-game-step-icon-incomplete')+'  '+(h.blocked?' j-game-quest-text-blocked':'')+' j-game-step-event-state"><span id="custom-step-icon-'+soy.$$escapeHtml(h.orderedPosition)+'" class="'+(h.blocked?'icon-lock':' '+(h.completed?'icon-checkmark':'icon-minus'))+'"></span></strong>'+soy.$$escapeHtml(a._i18n('e56c9f',[]))+'</h5><ul class="j-icon-list">':'');for(var i=h.eventsStatus,j=i.length,k=0;j>k;k++){var l=i[k];d.append('<li><strong class="',l.isCompleted?'j-game-step-complete':'j-game-step-icon-incomplete','  ',h.blocked?'j-game-quest-text-blocked':'',' j-game-step-event-state"><span id="custom-task-icon-',soy.$$escapeHtml(l.id),'" class="',h.blocked&&h.eventsStatus.length<2?'icon-lock':' '+(l.isCompleted?'icon-checkmark':'icon-minus'),'"></span></strong>',0==h.blocked?(l.url?'<a class="j-game-quest-link " data-quest-id="'+soy.$$escapeHtml(b.questId)+'" href="'+soy.$$escapeHtml(l.url)+'">'+soy.$$escapeHtml(l.description)+'</a>':'<span class="j-game-quest-text">'+soy.$$escapeHtml(l.description)+'</span>')+('API'==l.completionOption?'<a href="#" class="j-quest-api-complete-info font-color-meta-light" title="'+soy.$$escapeHtml(a._i18n('d43659',[]))+'"><i class="jive-icon-glyph icon-info2"></i></a>':'Manual'==l.completionOption&&0==l.isCompleted?'<a id="mark-completed-'+soy.$$escapeHtml(l.id)+'" class="j-sqt-item-mark-link mark-custom-task font-color-meta lnk" href="#" data-quest-id="'+soy.$$escapeHtml(b.questId)+'" data-event-id="'+soy.$$escapeHtml(l.id)+'">'+soy.$$escapeHtml(a._i18n('c8e8da',[]))+'</a>':''):'<span class="j-game-quest-text '+(h.blocked?'j-game-quest-text-blocked':'')+'">'+soy.$$escapeHtml(l.description)+'</span>',l.numOfTimes>1?'<span class="j-game-quest-text j-game-quest-text-info '+(h.blocked?'j-game-quest-text-blocked':'')+'">('+soy.$$escapeHtml(a._i18n('2f070e',[l.numOfTimesPerformed,l.numOfTimes]))+')</span>':'','</li>')}d.append(h.eventsStatus.length>1?'</ul></li>':'')}return d.append('</ul>'),jive.shared.soy.resourceInlineJs({code:'require([ \'apps/tile/small_quest\', \'domReady!\' ], function(Quests) {new Quests({userQuests: 3});});'},d),c?'':d.toString()},jive.integration.tiles.viewstyle.stepStatusList}),define('soy!jive.integration.tiles.viewstyle.small_quest',['soyDeps','soy!jive.integration.tiles.view.header','soy!jive.integration.tiles.viewstyle.stepStatusList'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.small_quest=function(b,c){var d=c||new soy.StringBuilder;return jive.integration.tiles.view.header(b,d),d.append('<section class="j-tile-body j-sqt-container">'),b.stepsStatus&&'string'!=typeof b.stepsStatus&&0!=b.stepsStatus.length?(d.append('<div class="j-sqt-header"><img id="sqt-avatar" src="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.badgeIconUrl)),'" alt="',soy.$$escapeHtmlAttribute(b.displayName),b.isTargetedQuest?' - '+soy.$$escapeHtmlAttribute(a._i18n('da5281',[])):'','" title="',soy.$$escapeHtmlAttribute(b.displayName),b.isTargetedQuest?' - '+soy.$$escapeHtmlAttribute(a._i18n('da5281',[])):'','">',b.isTargetedQuest?'<span class="j-quest-target-quest" title="'+soy.$$escapeHtmlAttribute(b.displayName)+' - '+soy.$$escapeHtmlAttribute(a._i18n('da5281',[]))+'"></span>':'','<div class="j-sqt-title">',b.displayName?'<h5>'+soy.$$escapeHtml(b.displayName)+'</h5>':'',b.points?'<p><strong>'+soy.$$escapeHtml(a._i18n('56c0e9',[b.points]))+'</strong></p>':'','</div>',b.completeEventsInOrder?'<br><div class="j-game-award"><strong class="j-game-completeInOrder">'+soy.$$escapeHtml(a._i18n('2f4258',[]))+'</strong>'+(b.isQuestModifiedOrStepsOrderChanged?'<br><br><strong class="j-game-completeInOrder">'+soy.$$escapeHtml(a._i18n('afb9f1',[]))+'</strong>':'')+'</div>':'','</div>'),jive.integration.tiles.viewstyle.stepStatusList(b,d),d.append('<br><p class="j-game-general-message font-color-meta">',b.repeatableQuestDetails.overallLimit>0?soy.$$escapeHtml(a._i18n('45b0d8',[]))+': '+soy.$$escapeHtml(b.repeatableQuestDetails.overallLimit-b.questStats.totalCount):soy.$$escapeHtml(a._i18n('738655',[])),'</p>')):d.append('<div class="noContent clearfix">',soy.$$escapeHtml(a._i18n('dd3d5c',[])),'</div>'),d.append('</section>'),c?'':d.toString()},jive.integration.tiles.viewstyle.small_quest}),define('soy!jive.integration.tiles.viewstyle.hero',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.hero=function(a,b){var c=b||new soy.StringBuilder;if(c.append('<section id="tile-hero-unit-',soy.$$escapeHtmlAttribute(a.tileInstanceId),'" class="j-tile-body j-tile-hero-unit js-tile-hero-unit">'),'string'!=typeof a.contents&&0!=a.contents.length){var d=!!(a.contents[0].caption.headline||a.contents[0].caption.text||a.action.text);c.append('<figure>',!d&&a.action.url?' <a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(a.action.url))+'"> ':'','<img class="j-hero-image" alt="',soy.$$escapeHtmlAttribute(a.contents[0].alt),'" src="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,a.contents[0].image))),'">',!d&&a.action.url?' </a> ':'',d?'<figcaption class="j-hero-caption '+soy.$$escapeHtmlAttribute(a.contents[0].caption.position)+'">'+(a.contents[0].caption.headline?'<h1 class="j-hero-headline">'+soy.$$escapeHtml(a.contents[0].caption.headline)+'</h1>':'')+(a.contents[0].caption.text?'<p class="j-hero-captiontext">'+soy.$$escapeHtml(a.contents[0].caption.text)+'</p>':'')+(a.action.text&&a.action.url?'<a class="j-hero-actionlink" href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(a.action.url))+'">'+soy.$$escapeHtml(a.action.text)+' </a>':a.action.url?'<a class="j-hero-actionlink" href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(a.action.url))+'">Read More </a>':'')+'</figcaption>':'','</figure>')}else c.append('<p class="noContent">','string'==typeof a.contents?soy.$$escapeHtml(a.contents):'','</p>');return c.append('</section>'),b?'':c.toString()},jive.integration.tiles.viewstyle.hero}),define('soy!jive.integration.tiles.viewstyle.customViewError',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.customViewError=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div id="jive-customview-modal-error" class="jive-modal jive-modal-wide" style="display: none;"><header><h2>',a._i18n('d5d5d3',[]),'</h2></header><a href="#" class="j-modal-close-top close">',a._i18n('1ce366',[]),'<span class="j-close-icon j-ui-elem" role="img"></span></a><section class="jive-modal-content clearfix"><textarea readonly rows="10" cols="80">',b.message,'</textarea></section></div>'),c?'':d.toString()},jive.integration.tiles.viewstyle.customViewError}),define('soy!jive.integration.tiles.viewstyle.gauge',['soyDeps','soy!jive.integration.tiles.view.footer','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.gauge=function(b,c){var d=c||new soy.StringBuilder;return d.append('<header class="j-tile-header">'),b.sections&&b.activeIndex>=0&&b.status&&(d.append('<h4 id="tile-header-',soy.$$escapeHtml(b.tileInstanceId),'" class="font-color-meta">'),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('f73dab'),arg0:'<span style="color: '+soy.$$escapeHtml(b.sections[b.activeIndex].color)+';">'+soy.$$escapeHtml(b.status)+'</span>',noAutoEscape:!0},d),d.append('</h4>')),d.append('</header><section class="j-tile-body j-tile-gauge clearfix"><div class="j-gauge js-gauge"></div><script>\n                require([\n                    \'jquery\',\n                    \'apps/tile/integrations/gauge\'\n                ], function($, gaugeController) {\n                    $(gaugeController.render.bind(gaugeController));\n                });\n            </script>',b.message?'<div class="j-gauge-msg-less" '+(b.message.split(new RegExp('','')).length<120?' style="display:none"':'')+'><p class="j-gauge-msg">'+soy.$$truncate(soy.$$escapeHtml(b.message),120,!0)+' <a href="#" class=\'j-gauge-msg-toggle\'>'+soy.$$escapeHtml(a._i18n('0c9f5c',[]))+'</a></p></div><div class="j-gauge-msg-more" '+(b.message.split(new RegExp('','')).length>=120?' style="display:none"':'')+'><p class="j-gauge-msg">'+soy.$$escapeHtml(b.message)+' '+(b.message.split(new RegExp('','')).length>=120?'<a href="#" class=\'j-gauge-msg-toggle\'>'+soy.$$escapeHtml(a._i18n('b1948b',[]))+'</a>':'')+'</p></div>':'','</section>'),b.action&&jive.integration.tiles.view.footer(b.action,d),c?'':d.toString()},jive.integration.tiles.viewstyle.gauge}),define('soy!jive.integration.tiles.viewstyle.table',['soyDeps','soy!jive.integration.tiles.view.footer','soy!jive.integration.tiles.viewstyle.rowItem'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.table=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<header class="j-tile-header"><h4 id="tile-header-',soy.$$escapeHtml(b.tileInstanceId),'" class="font-color-meta">',b.title?soy.$$escapeHtml(b.title):'','</h4></header><section class="j-tile-body j-tile-table">'),'string'!=typeof b.contents&&0!=b.contents.length){d.append('<table>');for(var e=b.contents,f=e.length,g=0;f>g;g++){var h=e[g];jive.integration.tiles.viewstyle.rowItem(soy.$$augmentMap(h,{rowIndex:g}),d)}d.append('</table>')}else d.append('<p class="noContent">',soy.$$escapeHtml(a._i18n('1a9c45',[])),'</p>');return d.append('</section>'),b.action&&jive.integration.tiles.view.footer(b.action,d),c?'':d.toString()},jive.integration.tiles.viewstyle.table}),define('soy!jive.integration.tiles.viewstyle.carousel',['soyDeps','soy!jive.integration.tiles.view.header','soy!jive.integration.tiles.viewstyle.carouselbody','soy!jive.integration.tiles.viewstyle.noResults','soy!jive.shared.soy.resourceInlineJs'],function(a){return jive.namespace.call(this,'jive.integration.tiles.viewstyle'),jive.integration.tiles.viewstyle.carousel=function(a,b){var c=b||new soy.StringBuilder;return a.title&&jive.integration.tiles.view.header(a,c),c.append('<section id="js-tile-carousel-',soy.$$escapeHtmlAttribute(a.tileInstanceId),'" class="j-tile-carousel j-tile-body clearfix ',a.config&&a.config.previewPane?'js-carousel-preview-pane j-carousel-show-previewPane':'','">'),'string'==typeof a.contents||a.contents.length<=0?jive.integration.tiles.viewstyle.noResults(null,c):jive.integration.tiles.viewstyle.carouselbody({slides:a.contents,previewPane:a.config&&a.config.previewPane},c),c.append('</section>'),jive.shared.soy.resourceInlineJs({code:'require([\'apps/tile/integrations/carousel\', \'domReady!\'], function(carouselFunction) {carouselFunction();});'},c),b?'':c.toString()},jive.integration.tiles.viewstyle.carousel}),define('soy!jive.integration.tiles.view.render',['soyDeps','soy!jive.integration.tiles.viewstyle.getRichReplyAuthorLine','soy!jive.integration.tiles.viewstyle.getRichAuthorLine','soy!jive.integration.tiles.viewstyle.superListItemRich','soy!jive.integration.tiles.viewstyle.content','soy!jive.integration.tiles.viewstyle.contentlistnarrow','soy!jive.integration.tiles.viewstyle.sectionlist','soy!jive.integration.tiles.viewstyle.viewsText','soy!jive.integration.tiles.viewstyle.leaderboard','soy!jive.integration.tiles.viewstyle.leaderboardItem','soy!jive.integration.tiles.viewstyle.superListActivityInfo','soy!jive.integration.tiles.viewstyle.list_2','soy!jive.integration.tiles.viewstyle.custom_view','soy!jive.integration.tiles.viewstyle.eventList','soy!jive.integration.tiles.viewstyle.slide','soy!jive.integration.tiles.viewstyle.slideList','soy!jive.integration.tiles.viewstyle.superListItemBasic','soy!jive.integration.tiles.viewstyle.superListItem','soy!jive.integration.tiles.viewstyle.unreadIndicator','soy!jive.integration.tiles.viewstyle.lbUlClasses','soy!jive.integration.tiles.viewstyle.listItem_2','soy!jive.integration.tiles.viewstyle.titleAndAuthor','soy!jive.integration.tiles.viewstyle.video','soy!jive.integration.tiles.viewstyle.banner','soy!jive.integration.tiles.viewstyle.userQuestListData','soy!jive.integration.tiles.viewstyle.contentUlClasses','soy!jive.integration.tiles.viewstyle.list','soy!jive.integration.tiles.viewstyle.contentSectionClasses','soy!jive.integration.tiles.viewstyle.likesText','soy!jive.integration.tiles.viewstyle.carouselbody','soy!jive.integration.tiles.viewstyle.byline','soy!jive.integration.tiles.viewstyle.outcomes','soy!jive.integration.tiles.viewstyle.lbSectionClasses','soy!jive.integration.tiles.viewstyle.socialActions','soy!jive.integration.tiles.viewstyle.superListDetailedAuthorLine','soy!jive.integration.tiles.viewstyle.quest','soy!jive.integration.tiles.viewstyle.commentControl','soy!jive.integration.tiles.viewstyle.getRichCreatedLine','soy!jive.integration.tiles.viewstyle.questionResults','soy!jive.integration.tiles.viewstyle.section','soy!jive.integration.tiles.viewstyle.gallery','soy!jive.integration.tiles.viewstyle.bannerImage','soy!jive.integration.tiles.viewstyle.getRichBodySnippet','soy!jive.integration.tiles.viewstyle.getRichContentTitle','soy!jive.integration.tiles.viewstyle.noResults','soy!jive.integration.tiles.viewstyle.calendar','soy!jive.integration.tiles.viewstyle.eventLocation','soy!jive.integration.tiles.viewstyle.rowItem','soy!jive.integration.tiles.viewstyle.galleryImage','soy!jive.integration.tiles.viewstyle.iframe','soy!jive.integration.tiles.viewstyle.superListUser','soy!jive.integration.tiles.viewstyle.superListReplyLine','soy!jive.integration.tiles.viewstyle.contentlistwide','soy!jive.integration.tiles.viewstyle.lbIcon','soy!jive.integration.tiles.viewstyle.contentBody','soy!jive.integration.tiles.viewstyle.ulClasses','soy!jive.integration.tiles.viewstyle.controls','soy!jive.integration.tiles.viewstyle.getFirstImage','soy!jive.integration.tiles.viewstyle.image_grid','soy!jive.integration.tiles.viewstyle.authorLink','soy!jive.integration.tiles.viewstyle.question','soy!jive.integration.tiles.viewstyle.getRichReplyAndActivityLine','soy!jive.integration.tiles.viewstyle.leaderbordListData','soy!jive.integration.tiles.viewstyle.renderUser','soy!jive.integration.tiles.viewstyle.sectionClasses','soy!jive.integration.tiles.viewstyle.userLink','soy!jive.integration.tiles.viewstyle.contentListItem','soy!jive.integration.tiles.viewstyle.small_quest','soy!jive.integration.tiles.viewstyle.userQuestList','soy!jive.integration.tiles.viewstyle.link','soy!jive.integration.tiles.viewstyle.icon','soy!jive.integration.tiles.viewstyle.hero','soy!jive.integration.tiles.viewstyle.stepStatusList','soy!jive.integration.tiles.viewstyle.superListDetailedAuthorCreatedLine','soy!jive.integration.tiles.viewstyle.commentsText','soy!jive.integration.tiles.viewstyle.customViewError','soy!jive.integration.tiles.viewstyle.gauge','soy!jive.integration.tiles.viewstyle.listItem','soy!jive.integration.tiles.viewstyle.table','soy!jive.integration.tiles.viewstyle.tileVideoInfo','soy!jive.integration.tiles.viewstyle.carousel','soy!jive.integration.tiles.viewstyle.repliesText','soy!jive.integration.tiles.viewstyle.contentIcon','soy!jive.integration.tiles.viewstyle.header','soy!jive.integration.tiles.viewstyle.superListItemDetailed','soy!jive.shared.soy.render'],function(a){
return jive.namespace.call(this,'jive.integration.tiles.view'),jive.integration.tiles.view.render=function(a,b){var c=b||new soy.StringBuilder;return a.id?jive.shared.soy.render({templateName:'jive.integration.tiles.viewstyle.'+String(a.viewstyle).toLowerCase(),data:soy.$$augmentMap(a.data,{tileInstanceId:a.id,place:a.place,displayWidth:a.definition.displayWidth,editing:a.editing,columnWidth:a.columnWidth}),failGracefully:null!=a.failGracefully?a.failGracefully:!0},c):jive.shared.soy.render({templateName:'jive.integration.tiles.viewstyle.'+String(a.viewstyle).toLowerCase(),data:soy.$$augmentMap(a.data,{tileInstanceId:'-1-'+a.definition.id,place:a.place,displayWidth:a.definition.displayWidth,editing:a.editing,columnWidth:a.columnWidth}),failGracefully:null!=a.failGracefully?a.failGracefully:!0},c),b?'':c.toString()},jive.integration.tiles.view.render}),define('soy!jive.integration.tiles.view.renderError',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.view'),jive.integration.tiles.view.renderError=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-tile-error">',soy.$$escapeHtml(a._i18n('27380d',[])),'</div>'),c?'':d.toString()},jive.integration.tiles.view.renderError}),define('soy!jive.integration.tiles.view.renderUnauthorized',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.view'),jive.integration.tiles.view.renderUnauthorized=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-tile-error">',soy.$$escapeHtml(a._i18n('b12bce',[])),'</div>'),c?'':d.toString()},jive.integration.tiles.view.renderUnauthorized}),define('soy!jive.integration.tiles.defaults.emptyDefault',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.defaults'),jive.integration.tiles.defaults.emptyDefault=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="noContent  ',soy.$$escapeHtmlAttribute(b.iconClassOne),' ',soy.$$escapeHtmlAttribute(b.iconClassTwo),' clearfix"><img src="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'../images/empty-tile-1col-oneType.png'))),'" alt="" class="emptyListIcon"><p>',soy.$$escapeHtml(a._i18n(b.i18nKeyOne,[])),'</p><p>',soy.$$escapeHtml(a._i18n(b.i18nKeyTwo,[])),'</p></div>'),c?'':d.toString()},jive.integration.tiles.defaults.emptyDefault}),define('soy!jive.integration.tiles.defaults.trendingContent',['soyDeps','soy!jive.integration.tiles.defaults.emptyDefault'],function(a){return jive.namespace.call(this,'jive.integration.tiles.defaults'),jive.integration.tiles.defaults.trendingContent=function(b,c){var d=c||new soy.StringBuilder;return jive.integration.tiles.defaults.emptyDefault({iconClassOne:'showIconEmpty',iconClassTwo:'',i18nKeyOne:soy.$$escapeHtml(a._i18n('c57e05',[])),i18nKeyTwo:soy.$$escapeHtml(a._i18n('d48369',[]))},d),c?'':d.toString()},jive.integration.tiles.defaults.trendingContent}),define('soy!jive.integration.tiles.defaults.emptyDefaultWide',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.defaults'),jive.integration.tiles.defaults.emptyDefaultWide=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="noContent ',soy.$$escapeHtmlAttribute(b.iconClassOne),'  ',soy.$$escapeHtmlAttribute(b.iconClassTwo),' clearfix"><img src="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'../images/empty-tile-1col-oneType.png'))),'" alt="" class="emptyListIcon"><p>',soy.$$escapeHtml(a._i18n(b.i18nKeyOne,[])),'</p><p>',soy.$$escapeHtml(a._i18n(b.i18nKeyTwo,[])),'</p></div>'),c?'':d.toString()},jive.integration.tiles.defaults.emptyDefaultWide}),define('soy!jive.integration.tiles.defaults.trendingContentWide',['soyDeps','soy!jive.integration.tiles.defaults.emptyDefaultWide'],function(a){return jive.namespace.call(this,'jive.integration.tiles.defaults'),jive.integration.tiles.defaults.trendingContentWide=function(b,c){var d=c||new soy.StringBuilder;return jive.integration.tiles.defaults.emptyDefaultWide({iconClassOne:'showIconEmpty',iconClassTwo:'',i18nKeyOne:soy.$$escapeHtml(a._i18n('c57e05',[])),i18nKeyTwo:soy.$$escapeHtml(a._i18n('d48369',[]))},d),c?'':d.toString()},jive.integration.tiles.defaults.trendingContentWide}),define('soy!jive.integration.tiles.defaults.trendingPeople',['soyDeps','soy!jive.integration.tiles.defaults.emptyDefault'],function(a){return jive.namespace.call(this,'jive.integration.tiles.defaults'),jive.integration.tiles.defaults.trendingPeople=function(b,c){var d=c||new soy.StringBuilder;return jive.integration.tiles.defaults.emptyDefault({iconClassOne:'showIconEmpty',iconClassTwo:'',i18nKeyOne:soy.$$escapeHtml(a._i18n('5b23ba',[])),i18nKeyTwo:soy.$$escapeHtml(a._i18n('20410c',[]))},d),c?'':d.toString()},jive.integration.tiles.defaults.trendingPeople}),define('soy!jive.integration.tiles.defaults.recentBlog',['soyDeps','soy!jive.integration.tiles.defaults.emptyDefault'],function(a){return jive.namespace.call(this,'jive.integration.tiles.defaults'),jive.integration.tiles.defaults.recentBlog=function(b,c){var d=c||new soy.StringBuilder;return jive.integration.tiles.defaults.emptyDefault({iconClassOne:'showIconEmpty',iconClassTwo:'',i18nKeyOne:'',i18nKeyOne:soy.$$escapeHtml(a._i18n('9a4d2e',[])),i18nKeyTwo:soy.$$escapeHtml(a._i18n('ac9f83',[]))},d),c?'':d.toString()},jive.integration.tiles.defaults.recentBlog}),define('soy!jive.integration.tiles.defaults.recentBlogWide',['soyDeps','soy!jive.integration.tiles.defaults.emptyDefaultWide'],function(a){return jive.namespace.call(this,'jive.integration.tiles.defaults'),jive.integration.tiles.defaults.recentBlogWide=function(b,c){var d=c||new soy.StringBuilder;return jive.integration.tiles.defaults.emptyDefaultWide({iconClassOne:'showIconEmpty',iconClassTwo:'',i18nKeyOne:soy.$$escapeHtml(a._i18n('9a4d2e',[])),i18nKeyTwo:soy.$$escapeHtml(a._i18n('ac9f83',[]))},d),c?'':d.toString()},jive.integration.tiles.defaults.recentBlogWide}),define('soy!jive.integration.tiles.defaults.frequentlyViewed',['soyDeps','soy!jive.integration.tiles.defaults.emptyDefault'],function(a){return jive.namespace.call(this,'jive.integration.tiles.defaults'),jive.integration.tiles.defaults.frequentlyViewed=function(b,c){var d=c||new soy.StringBuilder;return jive.integration.tiles.defaults.emptyDefault({iconClassOne:'showIconEmpty',iconClassTwo:'',i18nKeyOne:soy.$$escapeHtml(a._i18n('42f810',[])),i18nKeyTwo:soy.$$escapeHtml(a._i18n('68c211',[]))},d),c?'':d.toString()},jive.integration.tiles.defaults.frequentlyViewed}),define('soy!jive.integration.tiles.defaults.frequentlyViewedWide',['soyDeps','soy!jive.integration.tiles.defaults.emptyDefaultWide'],function(a){return jive.namespace.call(this,'jive.integration.tiles.defaults'),jive.integration.tiles.defaults.frequentlyViewedWide=function(b,c){var d=c||new soy.StringBuilder;return jive.integration.tiles.defaults.emptyDefaultWide({iconClassOne:'showIconEmpty',iconClassTwo:'',i18nKeyOne:soy.$$escapeHtml(a._i18n('42f810',[])),i18nKeyTwo:soy.$$escapeHtml(a._i18n('68c211',[]))},d),c?'':d.toString()},jive.integration.tiles.defaults.frequentlyViewedWide}),define('soy!jive.integration.tiles.defaults.recentlyViewed',['soyDeps','soy!jive.integration.tiles.defaults.emptyDefault'],function(a){return jive.namespace.call(this,'jive.integration.tiles.defaults'),jive.integration.tiles.defaults.recentlyViewed=function(b,c){var d=c||new soy.StringBuilder;return jive.integration.tiles.defaults.emptyDefault({iconClassOne:'showIconEmpty',iconClassTwo:'',i18nKeyOne:soy.$$escapeHtml(a._i18n('5c6f84',[])),i18nKeyTwo:soy.$$escapeHtml(a._i18n('e6f5ba',[]))},d),c?'':d.toString()},jive.integration.tiles.defaults.recentlyViewed}),define('soy!jive.integration.tiles.defaults.recentlyViewedWide',['soyDeps','soy!jive.integration.tiles.defaults.emptyDefaultWide'],function(a){return jive.namespace.call(this,'jive.integration.tiles.defaults'),jive.integration.tiles.defaults.recentlyViewedWide=function(b,c){var d=c||new soy.StringBuilder;return jive.integration.tiles.defaults.emptyDefaultWide({iconClassOne:'showIconEmpty',iconClassTwo:'',i18nKeyOne:soy.$$escapeHtml(a._i18n('5c6f84',[])),i18nKeyTwo:soy.$$escapeHtml(a._i18n('e6f5ba',[]))},d),c?'':d.toString()},jive.integration.tiles.defaults.recentlyViewedWide}),define('jive/bundles/soy/tiles/viewstyles',['soy!jive.integration.tiles.viewstyle.sectionlist','soy!jive.integration.tiles.viewstyle.contentlistnarrow','soy!jive.integration.tiles.viewstyle.list','soy!jive.integration.tiles.viewstyle.list_2','soy!jive.integration.tiles.viewstyle.leaderboard','soy!jive.integration.tiles.viewstyle.quest','soy!jive.integration.tiles.viewstyle.small_quest','soy!jive.integration.tiles.viewstyle.iframe','soy!jive.integration.tiles.viewstyle.banner','soy!jive.integration.tiles.viewstyle.calendar','soy!jive.integration.tiles.viewstyle.carousel','soy!jive.integration.tiles.viewstyle.content','soy!jive.integration.tiles.viewstyle.contentlistwide','soy!jive.integration.tiles.viewstyle.custom_view','soy!jive.integration.tiles.viewstyle.gallery','soy!jive.integration.tiles.viewstyle.gauge','soy!jive.integration.tiles.viewstyle.image_grid','soy!jive.integration.tiles.viewstyle.question','soy!jive.integration.tiles.viewstyle.table','soy!jive.integration.tiles.defaults.trendingContent','soy!jive.integration.tiles.defaults.trendingContentWide','soy!jive.integration.tiles.defaults.trendingPeople','soy!jive.integration.tiles.defaults.recentBlog','soy!jive.integration.tiles.defaults.recentBlogWide','soy!jive.integration.tiles.defaults.frequentlyViewed','soy!jive.integration.tiles.defaults.frequentlyViewedWide','soy!jive.integration.tiles.defaults.recentlyViewed','soy!jive.integration.tiles.defaults.recentlyViewedWide','soy!jive.integration.tiles.defaults.noContent','soy!jive.integration.tiles.defaults.emptyDefault','soy!jive.integration.tiles.defaults.emptyDefaultWide']),define('apps/tile/async/tile_view',['jquery','underscore','application/base_view','apps/tile/tile','soy!jive.integration.tiles.view.render','soy!jive.integration.tiles.view.renderError','soy!jive.integration.tiles.view.renderUnauthorized','backbone-plugin/backbone.radio','channel!tile_data_source','jive/bundles/soy/tiles/viewstyles'],function(a,b,c,d,e,f,g,h,i){return c.extend({events:{},initialize:function(a){this.failGracefully=!window.location.href.indexOf("?failGracefully=false"),this.columnWidth=a.columnWidth,this.tileView=a.tileView,this.retry=!0,this.tileView.data||(this.tileView.id?this.isTileEnabled()&&this.getData():this.getPrototypeData())},handleReply:function(a){a.error?this.retry?(this.getData(),this.retry=!1):this.renderError(a.error):a.tile.error?this.renderError(a.tile.error):(this.updateTileView(a.tile),this.place=a.place,this.render()),i.trigger('tileLoaded',b.get(this.tileView,'definition.name'))},updateTileView:function(b){this.tileView=a.extend(this.tileView,b),this.$el.attr('data-tile-view',JSON.stringify(this.tileView)),this.$el.data('tileView',this.tileView)},render:function(){if(this.isTileEnabled()){var c=a(e(a.extend(this.tileView,{place:this.place,editing:!1,columnWidth:this.columnWidth,failGracefully:this.failGracefully})));this.$el.find('.js-tile-body').children().remove(),this.$el.find('.js-tile-body').append(c);var d=b.get(this.tileView,'definition.name');'documentViewer'!=d&&'documentViewerNarrow'!=d||this.handleDocumentViewerRenderedContent(),'videoFeaturedContent'!=d&&'videoFeaturedContentWide'!=d||this.handleVideoTileRender()}},handleDocumentViewerRenderedContent:function(){var a=this.$el;require(['apps/shared/controllers/localexchange','apps/bootstrapper','jive/rte/renderedContent'],function(b){b.emit('renderedContent',a)})},handleVideoTileRender:function(){var a=this.tileView;require(['apps/tile/async/video_tile_view'],function(b){new b({tileView:a})})},renderError:function(b){this.$el.find('.js-tile-body').children().remove(),b&&403===b.status?this.$el.find('.js-tile-body').append(a(g())):this.$el.find('.js-tile-body').append(a(f()))},initChannel:function(){this.tileChannel=h.channel('tile-'+this.tileView.id)},initUniqueDefinitionChannel:function(){this.tileChannel=h.channel('tile-'+b.get(this.tileView,'definition.name')+b.random(0,1e3))},getData:function(){this.initChannel(),this.tileChannel.replyOnce('render',b.bind(this.handleReply,this));var a={id:b.get(this.tileView,'id'),batch:b.get(this.tileView,'definition.batchDataLoadStrategy')};i.trigger('getData',a)},isTileEnabled:function(){return'disabled'!=b.get(this.tileView,'definition.state')},getPrototypeData:function(){this.initUniqueDefinitionChannel(),this.tileChannel.replyOnce('render',b.bind(this.handleReply,this));var a={tileDefId:b.get(this.tileView,'definition.id'),channel:this.tileChannel};i.trigger('getPrototypeData',a)}})}),define('apps/tile/async/video_tile_view',['jquery','application/base_view','apps/video/channel','apps/getVideoDataAndRender','jive/accessibility'],function(a,b,c,d,e){return b.extend({initialize:function(b){this.tileView=b.tileView,this.videoData=this.tileView.data.video,this.setElement(a('#video-tile-link-'+this.tileView.id)),this.$playButton=a('#video-span-tile-'+this.tileView.id),this.$videoLink=this.$el.find('img'),this.width=this.$videoLink.width(),this.height=this.$videoLink.height()>0?this.$videoLink.height():360,this.render(),this.initHandlers()},render:function(){c.request('thumbnail:render',this.$el.attr('id'),this.videoData.videoID,{objectID:this.videoData.videoID,objectType:this.videoData.objectType,autoplay:!0,width:this.width,height:this.height}).then(this.setPlayButtonPositionHandler.bind(this))},setPlayButtonPositionHandler:function(){this.$videoLink.get(0).complete?this.setPlayButtonPosition():this.$videoLink.on('load',this.setPlayButtonPosition.bind(this))},setPlayButtonPosition:function(){var a=this.$videoLink.position().left+this.$videoLink.width()/2-this.$playButton.width()/2,b=this.$videoLink.height()/2-this.$playButton.height()/2;this.$playButton.css('left',a),this.$playButton.css('top',b),this.$playButton.show()},initHandlers:function(){var b=this;this.$videoLink.get(0).complete||this.$videoLink.on('load',function(){b.height=b.$videoLink.height()}),b.$el.on('click',function(c){e.pushFocus(a(c.target)),d(b.$el.attr('id'),b.videoData.videoID,b.videoData.objectType,b.videoData.videoID,b.width,b.height,!0),c.preventDefault()})}})}),define('apps/tile/async/tile_data_source',['jquery','underscore','jiverscripts/oo/class','url','application/base_page_controller','backbone-plugin/backbone.radio','channel!tile_data_source','jive/json-security'],function(a,b,c,d,e,f,g){return c.extend(function(c){c.init=function(a){c.options=a},c.defaultBatchDataLoadStrategy="single",c.defaultMaxRequests=25,c.batches={},e.loadViews('.js-tile'),g.on('getPrototypeData',function(a){c.getPrototypeData(a)}),g.on('getData',function(a){a.batch&&a.batch!=c.defaultBatchDataLoadStrategy?(c.addToBatch(a.batch,a.id),c.debouncedProcessRequest()):c.getData(a.id)}),g.on('loadTiles',function(){e.loadViews('.js-tile')}),c.sendData=function(a,d){var e={tile:d,place:b.get(c,'options.place')};a.request('render',e)},c.addToBatch=function(a,d){b.has(c.batches,a)||c.setBatch(a,[]);var e=c.getBatch(a);e.push(d)},c.setBatch=function(a,d){b.set(c.batches,a,d)},c.getBatch=function(a){return b.get(c.batches,a)},c.handleError=function(a,b){c.sendData(a,{error:b})},c.getTileChannel=function(a){return f.channel('tile-'+a)},c.getTileUrl=function(a){return d.v3Url('/tiles/'+a+'?fields=+data,-resources,-definition')},c.getTilePrototypeUrl=function(a){return d.v3Url('/tileDefs/'+a+'/prototype?fields=+data,-resources,-definition')},c.getPrototypeData=function(d){a.ajax({contentType:'application/json',type:'GET',url:c.getTilePrototypeUrl(b.get(d,'tileDefId')),dataType:'json',success:b.partial(c.sendData,d.channel),error:b.partial(c.handleError,d.channel)})},c.getData=function(d){var e=c.getTileChannel(d);a.ajax({contentType:'application/json',type:'GET',url:c.getTileUrl(d),dataType:'json',success:b.partial(c.sendData,e),error:b.partial(c.handleError,e)})},c.getBatchData=function(e){var f=[];b.forEach(e,function(a){f.push({key:a,request:{fields:'data',method:'GET',endpoint:c.getTileUrl(a)}})}),a.ajax({contentType:'application/json',data:JSON.stringify(f),type:'POST',url:d.v3Url('/executeBatch'),success:c.processBatchDataResult,error:b.partial(c.handleBatchError,e)})},c.processBatchDataResult=function(a){b.forEach(a,function(a){var b=c.getTileChannel(a.id);a.error?c.getData(a.id):c.sendData(b,a.data)})},c.handleBatchError=function(a,d){b.forEach(a,c.getData)},c.processRequest=function(){b.forEach(c.batches,function(a,d){b.forEach(b.chunk(a,c.getMaxRequests(d)),c.getBatchData),c.setBatch(d,[])})},c.debouncedProcessRequest=b.debounce(c.processRequest,10),c.getMaxRequests=function(a){var d=b.get(c,'options.maxRequestPerTileDataLoadStrategy.'+a,c.defaultMaxRequests),e=b.get(c,'options.maxBatchApiRequests',c.defaultMaxRequests);return Math.min(e,d)}})}),define('apps/tile/html_tile_connector',['jquery','underscore'],function(a,b){'use strict';function c(a){a.postMessage('ready','*')}function d(c,d){var e={resolve:a.noop,node:{frame:b.find(a('iframe').toArray(),function(a){return a.contentWindow===c})}};require(['jive/gala/gadgets'],function(a){d.height>0?a.resizeIframe(e,d):d.width>0&&a.resizeIframeWidth(e,d)})}var e=!1;return{listen:function(){e||(e=!0,a(window).on('message',function(a){try{var e=a.originalEvent.data,f=a.originalEvent.source;switch(b.isString(e)&&b.startsWith(e,'{')&&(e=JSON.parse(e)),e.command){case'HTMLTile:ready':c(f);break;case'HTMLTile:resizeIframe':d(f,e.payload)}}catch(a){}}))}}}),define('soy!jive.trial.openHelp',['soyDeps'],function(a){return jive.namespace.call(this,'jive.trial'),jive.trial.openHelp=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('e931b2',[]))),c?'':d.toString()},jive.trial.openHelp}),define('soy!jive.trial.closeHelp',['soyDeps'],function(a){return jive.namespace.call(this,'jive.trial'),jive.trial.closeHelp=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('d66d92',[]))),c?'':d.toString()},jive.trial.closeHelp}),define('apps/trial/views/trial_help_view',['jquery','apps/shared/views/abstract_view','jiverscripts/conc/observable','soy!jive.trial.openHelp','soy!jive.trial.closeHelp','jive/namespace'],function(a){return jive.namespace('Trial'),jive.AbstractView.extend(function(b){jive.conc.observable(this),this.init=function(c){var d=this;this.trialBannerID='#jive-trial-banner',this.trialHelpLinkID='#jive-trial-help-link',this.trialHelpPanelID='#jive-trial-help-panel';var e=a(d.trialBannerID),f=a(d.trialHelpLinkID),g=a(d.trialHelpPanelID);f&&f.click(function(){var c=g.is('.j-active');return a('#jive-trial-help-link').toggleClass('open',!c),a('#jive-trial-curtain, #jive-trial-help-panel').toggleClass('j-active',!c),b.setJiveHelpCopy(c),c||f.find('.j-js-chat-indicator').hide(),!1}),a('#jive-trial-help-panel a').click(function(a){a.preventDefault(),window.open(this.getAttribute('href'))}),a('#jive-trial-help-panel iframe').load(function(){this.contentWindow.jQuery('body').on('onMessageToVisitor',function(){a('#jive-trial-help-panel').is('.j-active')||a('#jive-trial-help-link .j-js-chat-indicator').show()})}),a('#jive-trial-help-panel .close').click(function(a){a.preventDefault(),f.click()})},b.setJiveHelpCopy=function(b){var c=b?jive.trial.openHelp():jive.trial.closeHelp();a('#jive-trial-help-link .j-js-title').text(c)}})}),define('jive',['jquery','Class'],function(a,b){return{jiveToggleTab:function(b,c){var d=a('body').find('iframe[id^="mce_inlinepopups_"]').length>0?a('body').find('iframe[id^="mce_inlinepopups_"]').contents():a('body');c.forEach(function(b){a(d).find('[id="'+b+'-tab"]').removeClass('jive-body-tabcurrent active j-ui-elem'),a(d).find('[id="'+b+'"]').hide()}),a(d).find('[id="'+b+'-tab"]').addClass('jive-body-tabcurrent active j-ui-elem'),a(d).find('[id="'+b+'"]').show()},callOnLoad:function(b){a(document).ready(b)},AlertMessage:function(b,c){c=c||{};var d=a('[id="'+b+'"]');d.each(function(){c.beforeStart&&c.beforeStart(this)}),d.fadeIn(1e3,function(){var b=a(this);setTimeout(function(){b.fadeOut(1e3,function(){b.each(function(){c.afterFinish&&c.afterFinish(this)})})},3e3)})},TimeoutExecutor:b.extend({init:function(a,b){this.callback=a,this.timeout=b,this.currentlyExecuting=!1,this.registerCallback()},registerCallback:function(){this.timeoutID=setTimeout(this.onTimerEvent.bind(this),this.timeout)},onTimerEvent:function(){try{this.currentlyExecuting=!0,this.callback&&this.callback instanceof Function&&this.callback()}finally{this.currentlyExecuting=!1,delete this.timeoutID}},cancel:function(){!this.currentlyExecuting&&this.timeoutID&&(clearTimeout(this.timeoutID),delete this.timeoutID)},reset:function(){!this.currentlyExecuting&&this.timeoutID&&(clearTimeout(this.timeoutID),delete this.timeoutID,this.registerCallback())}})}}),define('soy!jive.people.profile.bootstrapFollowApp',['soyDeps','soy!jive.shared.soy.resourceInlineJs'],function(a){return jive.namespace.call(this,'jive.people.profile'),jive.people.profile.bootstrapFollowApp=function(b,c){var d=c||new soy.StringBuilder;return jive.shared.soy.resourceInlineJs({code:'if (!window.profileFollowView) {window.profileFollowView = true; require([ \'jquery\', \'apps/follows/user/views/follow_user_link\', \'apps/follows/user/main\', \'jquery-plugin/jquery.placeheld\', \'domReady!\' ], function($, ProfileFollowView, FollowUserApp) {var followView = new ProfileFollowView({i18n: {startFollowingMessage: \'<p>'+soy.$$escapeJsString(a._i18n('333a0c',[]))+'</p>\', stopFollowingMessage:  \'<p>'+soy.$$escapeJsString(a._i18n('e55b09',[]))+'</p>\', pendingConnectionMessage: \'<p>'+soy.$$escapeJsString(a._i18n('906f8a',[]))+'</p>\'}}); var jiveUserFollow = new FollowUserApp({followView: followView}); $("input[placeholder]").placeHeld();});}'},d),c?'':d.toString()},jive.people.profile.bootstrapFollowApp}),define('soy!jive.people.profile.followCounts',['soyDeps'],function(a){return jive.namespace.call(this,'jive.people.profile'),jive.people.profile.followCounts=function(b,c){var d=c||new soy.StringBuilder;return d.append('<ul class="font-color-meta">',b.bidirectional?'<li>'+soy.$$escapeHtml(a._i18n('538c93',[]))+' <span class="js-follower-count">'+soy.$$escapeHtml(b.followerCount)+'</span></li>':'<li>'+soy.$$escapeHtml(a._i18n('e0635b',[]))+' <span class="js-following-count">'+soy.$$escapeHtml(b.followingCount)+'</span></li><li>'+soy.$$escapeHtml(a._i18n('e57521',[]))+' <span class="js-follower-count">'+soy.$$escapeHtml(b.followerCount)+'</span></li>','</ul>'),c?'':d.toString()},jive.people.profile.followCounts}),define('soy!jive.people.profile.followingAssociatedStreamCount',['soyDeps','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.people.profile'),jive.people.profile.followingAssociatedStreamCount=function(b,c){var d=c||new soy.StringBuilder;return d.append('<span class="j-js-streams-assoc-count j-instream-count">'),b.count>0?jive.shared.soy.i18nHelper({i18nKey:'content-page'==b.renderLocation?b.count>1?soy.$$escapeHtml('de8f52'):soy.$$escapeHtml('204315'):b.count>1?soy.$$escapeHtml('c7a9bf'):soy.$$escapeHtml('eed8e2'),arg0:'<span class="jive-icon-glyph icon-pulse j-instreamicon"></span> '+soy.$$escapeHtml(b.count),noAutoEscape:!0},d):d.append(soy.$$escapeHtml(a._i18n('eed8e2',[])),' '),d.append('</span>'),c?'':d.toString()},jive.people.profile.followingAssociatedStreamCount}),define('soy!jive.people.profile.friendListChooserLabel',['soyDeps'],function(a){return jive.namespace.call(this,'jive.people.profile'),jive.people.profile.friendListChooserLabel=function(b,c){var d=c||new soy.StringBuilder;return d.append('<li><a href="#" class="js-label-option j-label-option ',b.selected?'selected':'','" ',b.selected?'title="'+soy.$$escapeHtmlAttribute(a._i18n('ed7846',[]))+'"':'',' data-list-id="',soy.$$escapeHtmlAttribute(b.listID),'"><input type="checkbox" id="label_',soy.$$escapeHtmlAttribute(b.listID),'_',soy.$$escapeHtmlAttribute(b.userID),'" value="',soy.$$escapeHtmlAttribute(b.listID),'" ',b.selected?'checked="checked"':'','><div class="j-label-color"alt="',soy.$$escapeHtmlAttribute(b.name),'" title="',soy.$$escapeHtmlAttribute(b.name),'"><div style="background:#',soy.$$escapeHtmlAttribute(soy.$$filterCssValue(b.css)),'" class="j-rc7"></div></div><label for="label_',soy.$$escapeHtmlAttribute(b.listID),'_',soy.$$escapeHtmlAttribute(b.userID),'"><span class="lnk">',soy.$$escapeHtml(b.name),'</span></label></a></li>'),c?'':d.toString()},jive.people.profile.friendListChooserLabel}),define('soy!jive.people.profile.friendListChooser',['soyDeps','soy!jive.people.profile.friendListChooserLabel'],function(a){return jive.namespace.call(this,'jive.people.profile'),jive.people.profile.friendListChooser=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<span class="j-friend-list-chooser-container j-js-friend-list-chooser-container"',b.hideFriendListChooser||b.friendLists&&0==b.friendLists.length?' style="display: none;"':'','>',b.darkButton?'<a href="#" title="'+soy.$$escapeHtmlAttribute(a._i18n('d47503',[]))+'" class="js-connection-label-btn j-connection-label-btn j-social-action" '+(b.hidden?'style="display:none"':'')+' title="'+soy.$$escapeHtmlAttribute(a._i18n('d47503',[]))+'"><span class="jive-icon-glyph icon-user-plus"></span><span class="j-508-label">'+soy.$$escapeHtml(a._i18n('d47503',[]))+'</span></a>':'<a href="#" title="'+soy.$$escapeHtmlAttribute(a._i18n('d47503',[]))+'" class="js-connection-label-btn j-connection-label-btn j-social-action j-split-button j-btn-global j-btn-small" '+(b.hidden?'style="display:none"':'')+' title="'+soy.$$escapeHtmlAttribute(a._i18n('d47503',[]))+'"><span class="jive-icon-glyph icon-user-plus"></span><span class="j-508-label">'+soy.$$escapeHtml(a._i18n('d47503',[]))+'</span></a>','<div id="label-in-menu" class="j-connection-labels-menu js-connection-labels-menu j-menu j-quick-menu j-pop-main" style="display: none;" data-userid="',soy.$$escapeHtmlAttribute(b.targetUserID),'"><h4 class="font-color-meta-light">',soy.$$escapeHtml(a._i18n('d47503',[])),'</h4><form class="j-js-friend-list-chooser"><ul class="j-icon-list">'),b.friendLists)for(var e=b.friendLists,f=e.length,g=0;f>g;g++){var h=e[g];jive.people.profile.friendListChooserLabel(soy.$$augmentMap(h,{selected:h.targetUserAMember,userID:b.targetUserID}),d)}return d.append('</ul></form></div></span>'),c?'':d.toString()},jive.people.profile.friendListChooser}),define('soy!jive.people.profile.followLink',['soyDeps','soy!jive.people.profile.bootstrapFollowApp','soy!jive.people.profile.followCounts','soy!jive.people.profile.followingAssociatedStreamCount','soy!jive.people.profile.friendListChooser'],function(a){return jive.namespace.call(this,'jive.people.profile'),jive.people.profile.followLink=function(b,c){var d=c||new soy.StringBuilder;return b.targetUserDisabled||(jive.people.profile.bootstrapFollowApp(null,d),d.append('<div class="js-follow-user-link j-follow-user-link clearfix" data-userid="',soy.$$escapeHtmlAttribute(b.targetUserID),'" data-streamsassoc="',soy.$$escapeHtmlAttribute(b.streamsAssociatedCount),'" data-location="',soy.$$escapeHtmlAttribute(b.renderLocation),'" data-bidirectional="',soy.$$escapeHtmlAttribute(b.bidirectional),'" data-follower-count="',soy.$$escapeHtmlAttribute(b.followerCount),'" data-displayname="',soy.$$escapeHtmlAttribute(b.targetUserDisplayName),'" data-approvals-enabled="',soy.$$escapeHtmlAttribute(b.approvalsEnabled),'" aria-live="polite" aria-atomic="true" aria-label="',soy.$$escapeHtmlAttribute(a._i18n('63a577',[])),'"><a href="#" class="js-follow ',b.darkButton?'j-social-action':'j-btn-global j-btn-small','" ',b.targetUserACurrentFriend||b.targetUserAPendingFriend?'style="display:none"':'','>',b.darkButton?'<span class="jive-icon-glyph icon-plus-circle2"></span>':'',b.bidirectional?soy.$$escapeHtml(a._i18n('69f4c2',[])):soy.$$escapeHtml(a._i18n('daa71d',[])),' </a><a href="#" class="j-following js-following ',!b.hideFriendListChooser&&b.friendLists&&b.friendLists.length>0?'j-split-button notlast':'',' ',b.darkButton?'j-social-action':'j-btn-global j-btn-small','" ',b.targetUserACurrentFriend?'':'style="display:none"','>',b.darkButton?'<span class="jive-icon-glyph icon-plus-circle2"></span>':''),jive.people.profile.followingAssociatedStreamCount({count:b.streamsAssociatedCount,renderLocation:b.renderLocation},d),d.append('</a><span class="js-pending j-disabled ',b.darkButton?'j-social-action':'j-btn-global j-btn-small','" ',b.targetUserAPendingFriend?'':'style="display:none"','>',b.darkButton?'<span class="jive-icon-glyph icon-plus-circle2"></span>':'',b.bidirectional?soy.$$escapeHtml(a._i18n('48b92f',[])):soy.$$escapeHtml(a._i18n('e41e39',[])),'</span>'),jive.people.profile.friendListChooser(soy.$$augmentMap(b,{hidden:!b.targetUserACurrentFriend}),d),b.hideFollowingCount||jive.people.profile.followCounts(b,d),d.append('</div>')),c?'':d.toString()},jive.people.profile.followLink}),define('soy!jive.shared.file.fileTypeIconClass',['soyDeps'],function(a){return jive.namespace.call(this,'jive.shared.file'),jive.shared.file.fileTypeIconClass=function(a,b){var c=b||new soy.StringBuilder;switch(c.append('jive-icon-',soy.$$escapeHtml(a.size?a.size:'big'),' '),String(a.extension).toLowerCase()){case'doc':case'docx':case'odt':case'fodt':case'ott':case'sxw':case'stw':case'sdw':case'sgl':case'rtf':case'wpd':case'wps':c.append(' jive-icon-doctype-document');break;case'pdf':c.append(' jive-icon-doctype-acrobat');break;case'zip':case'tar':case'tgz':case'gz':case'bz2':case'rar':case'dmg':case'7z':case'ace':c.append(' jive-icon-doctype-compressed');break;case'jpg':case'jpeg':case'png':case'gif':case'bmp':case'svg':case'exif':case'ico':case'psd':case'pdd':case'psb':case'tiff':case'tif':case'raw':case'xcf':c.append(' jive-icon-doctype-image');break;case'pps':case'ppt':case'pptx':case'pptm':case'potx':case'potm':case'pot':case'ppsx':case'ppsm':case'ppam':case'ppa':case'pptx':case'odp':case'key':c.append(' jive-icon-doctype-presentation');break;case'xls':case'xlk':case'xlsb':case'xlsm':case'xlsx':case'xlt':case'xltm':case'xlw':case'ods':case'ots':case'sdc':case'stc':case'sxc':case'csv':c.append(' jive-icon-doctype-spreadsheet');break;case'txt':c.append(' jive-icon-doctype-text');break;case'avi':case'mov':case'3gp':case'asf':case'flv':case'mpg':case'mpeg':case'mpe':case'mp4':case'm1v':case'm2v':case'fla':case'm4v':case'mkv':case'swf':case'wmv':case'ogv':case'ogx':c.append(' jive-icon-doctype-video');break;default:c.append(' ',a.defaultIcon?soy.$$escapeHtml(a.defaultIcon):'jive-icon-doctype-generic')}return b?'':c.toString()},jive.shared.file.fileTypeIconClass}),define('soy!jive.shared.displayutil.icon',['soyDeps','soy!jive.shared.displayutil.avatar','soy!jive.shared.file.fileTypeIconClass'],function(a){return jive.namespace.call(this,'jive.shared.displayutil'),jive.shared.displayutil.icon=function(b,c){var d=c||new soy.StringBuilder;return'url'==b.type?d.append('<span title="',soy.$$escapeHtml(a._i18n('77a3be',[])),'" role=img class="jive-icon-',soy.$$escapeHtml(b.size),' jive-icon-external-site"></span>'):'favorite'==b.type?d.append('<span title="',soy.$$escapeHtml(a._i18n('97babe',[])),'" role="img" class="jive-icon-',soy.$$escapeHtml(b.size),' jive-icon-bookmark"></span>'):'post'==b.type?d.append('<span title="',soy.$$escapeHtml(a._i18n('5f729e',[])),'" role="img" class="jive-icon-',soy.$$escapeHtml(b.size),' jive-icon-blog"></span>'):'update'==b.type?d.append('<span title="',soy.$$escapeHtml(a._i18n('3e4cb7',[])),'" role="img" class="jive-icon-',soy.$$escapeHtml(b.size),' jive-icon-status"></span>'):'dm'==b.type?d.append('<span title="',soy.$$escapeHtml(a._i18n('976d0f',[])),'" role="img" class="jive-icon-',soy.$$escapeHtml(b.size),' jive-icon-direct-message"></span>'):'comment'==b.type?d.append(b.rootType?'post'==b.rootType?'<span title="'+soy.$$escapeHtml(a._i18n('30958b',[]))+'" role="img" class="jive-icon-'+soy.$$escapeHtml(b.size)+' jive-icon-blog-comment"></span>':'update'==b.rootType?'<span title="'+soy.$$escapeHtml(a._i18n('30958b',[]))+'" role="img" class="jive-icon-'+soy.$$escapeHtml(b.size)+' jive-icon-status-comment"></span>':'file'==b.rootType?'<span title="'+soy.$$escapeHtml(a._i18n('30958b',[]))+'" role="img" class="jive-icon-'+soy.$$escapeHtml(b.size)+' jive-icon-doctype-compressed-comment"></span>':'entry'==b.rootType?'<span title="'+soy.$$escapeHtml(a._i18n('30958b',[]))+'" role="img" class="jive-icon-'+soy.$$escapeHtml(b.size)+' jive-icon-comment"></span>':'dm'==b.rootType?'<span title="'+soy.$$escapeHtml(a._i18n('30958b',[]))+'" role="img" class="jive-icon-'+soy.$$escapeHtml(b.size)+' jive-icon-direct-message"></span>':'comment'!=b.rootType?'<span title="'+soy.$$escapeHtml(a._i18n('30958b',[]))+'" role="img" class="jive-icon-'+soy.$$escapeHtml(b.size)+' jive-icon-'+soy.$$escapeHtml(b.rootType)+'-comment"></span>':'':b.parentContent&&b.parentContent.type?'post'==b.parentContent.type?'<span title="'+soy.$$escapeHtml(a._i18n('30958b',[]))+'" role="img" class="jive-icon-'+soy.$$escapeHtml(b.size)+' jive-icon-blog-comment"></span>':'update'==b.parentContent.type?'<span title="'+soy.$$escapeHtml(a._i18n('30958b',[]))+'" role="img" class="jive-icon-'+soy.$$escapeHtml(b.size)+' jive-icon-status-comment"></span>':'entry'==b.parentContent.type?'<span title="'+soy.$$escapeHtml(a._i18n('30958b',[]))+'" role="img" class="jive-icon-'+soy.$$escapeHtml(b.size)+' jive-icon-comment"></span>':'dm'==b.parentContent.type?'<span title="'+soy.$$escapeHtml(a._i18n('30958b',[]))+'" role="img" class="jive-icon-'+soy.$$escapeHtml(b.size)+' jive-icon-direct-message"></span>':'comment'!=b.parentContent.type?'<span title="'+soy.$$escapeHtml(a._i18n('30958b',[]))+'" role="img" class="jive-icon-'+soy.$$escapeHtml(b.size)+' jive-icon-'+soy.$$escapeHtml(b.parentContent.type)+'-comment"></span>':'':'<span title="'+soy.$$escapeHtml(a._i18n('30958b',[]))+'" role="img" class="jive-icon-'+soy.$$escapeHtml(b.size)+' jive-icon-comment"></span>'):'discussion'==b.type||'message'==b.type?d.append(b.iconCss?'<span title="'+soy.$$escapeHtml(a._i18n('cb9b05',[]))+'" role="img" class="jive-icon-'+soy.$$escapeHtml(b.size)+' '+soy.$$escapeHtml(b.iconCss)+'"></span>':b.answer?'<span title="'+soy.$$escapeHtml(a._i18n('cb9b05',[]))+'" role="img" class="jive-icon-'+soy.$$escapeHtml(b.size)+' jive-icon-discussion-correct"></span>':b.helpful?'<span title="'+soy.$$escapeHtml(a._i18n('cb9b05',[]))+'" role="img" class="jive-icon-'+soy.$$escapeHtml(b.size)+' jive-icon-discussion-helpful"></span>':b.question?'<span title="'+soy.$$escapeHtml(a._i18n('cb9b05',[]))+'" role="img" class="jive-icon-'+soy.$$escapeHtml(b.size)+' jive-icon-discussion-question"></span>':'<span title="'+soy.$$escapeHtml(a._i18n('cb9b05',[]))+'" role="img" class="jive-icon-'+soy.$$escapeHtml(b.size)+' jive-icon-discussion"></span>'):'file'==b.type?(d.append('<span title="',soy.$$escapeHtml(a._i18n('f848e3',[])),'" class="'),
b.iconCss?d.append('jive-icon-',soy.$$escapeHtml(b.size),' ',soy.$$escapeHtml(b.iconCss)):jive.shared.file.fileTypeIconClass({extension:b.extension,size:b.size,defaultIcon:'jive-icon-document-upload'},d),d.append('"></span>')):'person'==b.type&&b.jive?'sml'==b.size?jive.shared.displayutil.avatar(soy.$$augmentMap(b,{username:b.jive.username,size:12,enabled:!0,visible:!0}),d):'med'==b.size?jive.shared.displayutil.avatar(soy.$$augmentMap(b,{username:b.jive.username,size:16,enabled:!0,visible:!0}),d):'big'==b.size?jive.shared.displayutil.avatar(soy.$$augmentMap(b,{username:b.jive.username,size:25,enabled:!0,visible:!0}),d):jive.shared.displayutil.avatar(soy.$$augmentMap(b,{username:b.jive.username,size:b.size,enabled:!0,visible:!0}),d):'userregistration'==b.type?d.append('<span title="',soy.$$escapeHtml(a._i18n('ac2a31',[])),'" role="img" class="jive-icon-med jive-icon-profile"></span>'):'extStreamActivity'==b.type?d.append('<span title="',soy.$$escapeHtml(a._i18n('c8321e',[])),'" role="img" class="jive-icon-',soy.$$escapeHtml(b.size),' jive-icon-extStreamActivity"></span>'):'interaction'==b.type||'collaboration'==b.type?d.append('<span title="',soy.$$escapeHtml(a._i18n('30958b',[])),'" role="img" class="jive-icon-',soy.$$escapeHtml(b.size),' jive-icon-direct-message"></span>'):'profileimage'==b.type?d.append('<span title="',soy.$$escapeHtml(a._i18n('fc0418',[])),'" role="img" class="jive-icon-',soy.$$escapeHtml(b.size),' jive-icon-photo"></span>'):b.type&&d.append('<span title="',soy.$$escapeHtml(a._i18n(a.getMinKey('global.access.content.type.'+b.type),[])),'" role="img" class="jive-icon-',soy.$$escapeHtml(b.size),' jive-icon-',soy.$$escapeHtml(b.type),'"></span>'),c?'':d.toString()},jive.shared.displayutil.icon}),define('soy!jive.soy.acclaim.displayUserRow',['soyDeps','soy!jive.people.profile.followLink','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.icon','soy!jive.shared.displayutil.userDisplayNameLink'],function(a){return jive.namespace.call(this,'jive.soy.acclaim'),jive.soy.acclaim.displayUserRow=function(b,c){var d=c||new soy.StringBuilder;return(!b.onlyFriends||b.onlyFriends&&b.currentUserID!=b.user.id&&b.user.prop.connections.targetUserACurrentFriend)&&(b.onlyNotes&&b.user.prop.hasBookmarknotes||!b.onlyNotes)&&(d.append('<tr data-user-id="',soy.$$escapeHtml(b.user.id),'">'),b.onlyNotes||(d.append('<td class="j-td-avatar ',b.user.prop.hasBookmarknotes?'j-td-topalign':'','">'),'expertise'==b.activityType?jive.shared.displayutil.icon(soy.$$augmentMap(b.user,{size:35}),d):jive.shared.displayutil.avatar(soy.$$augmentMap(b.user,{size:35,currentUserPartner:b.currentUserPartner,extraParams:b.extraParams}),d),d.append('</td>')),d.append('<td class="j-td-name">'),b.currentUserID==b.user.id?jive.shared.displayutil.userDisplayNameLink(soy.$$augmentMap(b.user,{displayNameOverride:a._i18n('1798fd',[]),extraParams:b.extraParams}),d):jive.shared.displayutil.userDisplayNameLink(soy.$$augmentMap(b.user,{extraParams:b.extraParams}),d),d.append(b.onlyNotes?'<!-- TODO: show full, non-plain text / non-escaped version of the full notes -->'+('bookmark'==b.activityType&&b.user.prop.hasBookmarknotes&&b.user.prop.bookmarknotes?'<p class="j-user-bookmark-notes">'+soy.$$filterNoAutoescape(b.user.prop.bookmarknotes)+'</p>':''):'<!-- TODO: show truncated version of the notes -->'+('bookmark'==b.activityType&&b.user.prop.hasBookmarknotes&&b.user.prop.bookmarknotes?'<p class="j-user-bookmark-notes">'+soy.$$filterNoAutoescape(b.user.prop.bookmarknotes)+'</p>':''),'</td>'),'bookmark'==b.activityType||b.hideFollow||b.onlyNotes||(d.append('<td class="j-td-follow">'),b.user.prop.connections&&b.user.prop.connections.followLinkShown&&b.user.id!=b.currentUserID&&b.user.visible&&jive.people.profile.followLink(soy.$$augmentMap(b.user.prop.connections,{targetUserID:b.user.id,targetUserDisplayName:b.user.displayName,hideFollowingCount:!0,renderLocation:'bookmarked-user-list',streamsAssociatedCount:b.user.prop.connections.streamsAssociatedBean?b.user.prop.connections.streamsAssociatedBean.streamIDs.length:0}),d),d.append('</td>')),d.append('</tr>')),c?'':d.toString()},jive.soy.acclaim.displayUserRow}),define('soy!jive.soy.acclaim.renderEmptyListText',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.acclaim'),jive.soy.acclaim.renderEmptyListText=function(b,c){var d=c||new soy.StringBuilder;return d.append('bookmark'==b.activityType?soy.$$escapeHtml(a._i18n('014388',[])):'like'==b.activityType?soy.$$escapeHtml(a._i18n('c08cad',[])):'follow'==b.activityType?soy.$$escapeHtml(a._i18n('9032a9',[])):'connections'==b.activityType?soy.$$escapeHtml(a._i18n('f3b718',[])):'membership'==b.activityType?soy.$$escapeHtml(a._i18n('fb95a3',[])):'same_question'==b.activityType?soy.$$escapeHtml(a._i18n('df315f',[])):''),c?'':d.toString()},jive.soy.acclaim.renderEmptyListText}),define('soy!jive.soy.acclaim.renderUserList',['soyDeps','soy!jive.soy.acclaim.displayUserRow','soy!jive.soy.acclaim.renderEmptyListText'],function(a){return jive.namespace.call(this,'jive.soy.acclaim'),jive.soy.acclaim.renderUserList=function(a,b){var c=b||new soy.StringBuilder;c.append('<table',a.id?' id="'+soy.$$escapeHtml(a.id)+'"':'',a.classNames?' class="'+soy.$$escapeHtml(a.classNames)+'"':'',a.show?'':' style="display: none;"','><tbody>');var d=a.users,e=d.length;if(e>0)for(var f=0;e>f;f++){var g=d[f];jive.soy.acclaim.displayUserRow({activityType:a.activityType,user:g,currentUserID:a.currentUserID,currentUserPartner:a.currentUserPartner,onlyFriends:a.onlyFriends,onlyNotes:a.onlyNotes,hideFollow:a.hideFollow,extraParams:a.extraParams},c)}else c.append('<tr><td><p class="j-empty font-color-meta-light">'),a.emptyContent?c.append(soy.$$filterNoAutoescape(a.emptyContent)):jive.soy.acclaim.renderEmptyListText(a,c),c.append('</p></td></tr>');return c.append('</tbody></table>'),b?'':c.toString()},jive.soy.acclaim.renderUserList}),define('soy!jive.soy.acclaim.renderUserNotesList',['soyDeps','soy!jive.soy.acclaim.displayUserRow'],function(a){return jive.namespace.call(this,'jive.soy.acclaim'),jive.soy.acclaim.renderUserNotesList=function(a,b){var c=b||new soy.StringBuilder;c.append('<table id="',soy.$$escapeHtml(a.id),'" class="',soy.$$escapeHtml(a.classNames),'"',a.show?'':' style="display: none;"','><tbody>');var d=a.users,e=d.length;if(e>0)for(var f=0;e>f;f++){var g=d[f];g.prop.bookmarknotes&&jive.soy.acclaim.displayUserRow({activityType:a.activityType,user:g,currentUserID:a.currentUserID,currentUserPartner:a.currentUserPartner,onlyFriends:a.onlyFriends,onlyNotes:a.onlyNotes},c)}else c.append('<tr><td><p class="j-empty font-color-meta-light">There are no bookmark notes on this item</p></td></tr>');return c.append('</tbody></table>'),b?'':c.toString()},jive.soy.acclaim.renderUserNotesList}),define('soy!jive.soy.acclaim.renderAcclaimModal',['soyDeps','soy!jive.shared.soy.getCountTextByType','soy!jive.soy.acclaim.renderUserList','soy!jive.soy.acclaim.renderUserNotesList'],function(a){return jive.namespace.call(this,'jive.soy.acclaim'),jive.soy.acclaim.renderAcclaimModal=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="jive-modal j-modal j-acclaim-mini-modal j-people-list-modal" data-you-id="',soy.$$escapeHtml(b.youID),'" role="dialog" tabindex="-1" aria-labelledby="acclaim-header"><header role="header" id="acclaim-header"><h2 ','bookmark'==b.activityType?'class="j-modal-bookmark-header"':'','><p class="modal-initially-focused" tabindex="0">'),jive.shared.soy.getCountTextByType({count:b.totalCount,type:b.activityType,bidirectionalGraph:b.bidirectionalGraph},d),d.append('</p></h2></header><label class="j-508-label" id="close-modal-508">',soy.$$escapeHtml(a._i18n('a94563',[])),'</label><a href="#" class="j-modal-close-top close" aria-labelledby="close-modal-508" title="',soy.$$escapeHtml(a._i18n('a94563',[])),'">',soy.$$escapeHtml(a._i18n('1ce366',[])),' <span class="jive-icon-glyph icon-close-med" role="img"></span></a><section  class="jive-modal-content clearfix">',b.guest?'':'<nav id="jive-view-picker" class="j-modal-filter"><input type="checkbox" value="1" id="js-friends" name="user-filter"/><label for="js-friends">'+(b.bidirectionalGraph?soy.$$escapeHtml(a._i18n('1a157b',[])):soy.$$escapeHtml(a._i18n('708f72',[])))+'</label>'+('bookmark'==b.activityType?'<br/><input type="checkbox" value="2" id="js-only-notes" name="user-filter"/><label for="js-only-notes">'+soy.$$escapeHtml(a._i18n('046192',[]))+'</label>':'')+'</nav>'),jive.soy.acclaim.renderUserList({activityType:b.activityType,users:b.users,currentUserID:b.youID,currentUserPartner:b.youPartner,onlyFriends:!1,id:'modal-liked-everyone',classNames:'liked-everyone-list js-everyone-list',show:!0},d),jive.soy.acclaim.renderUserList({activityType:b.activityType,users:b.users,currentUserID:b.youID,currentUserPartner:b.youPartner,onlyFriends:!0,id:'modal-liked-friends',classNames:'liked-friends-list js-friends-list',show:!1},d),'bookmark'==b.activityType&&(jive.soy.acclaim.renderUserNotesList({activityType:b.activityType,users:b.users,currentUserID:b.youID,currentUserPartner:b.youPartner,onlyFriends:!1,onlyNotes:!0,id:'modal-bookmark-notes',classNames:'j-user-bookmark-notes-list j-js-user-bookmark-notes-list',show:!1},d),jive.soy.acclaim.renderUserNotesList({activityType:b.activityType,users:b.users,currentUserID:b.youID,currentUserPartner:b.youPartner,onlyFriends:!0,onlyNotes:!0,id:'modal-bookmark-friends-notes',classNames:'j-user-bookmark-notes-list j-js-user-bookmark-friends-notes-list',show:!1},d)),d.append('</section></div>'),c?'':d.toString()},jive.soy.acclaim.renderAcclaimModal}),define('soy!jive.soy.acclaim.privateBookmarkNotification',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.acclaim'),jive.soy.acclaim.privateBookmarkNotification=function(b,c){var d=c||new soy.StringBuilder;return d.append('<tr class="j-private-bookmark-notification j-js-private-bookmark-notification"><td colspan="3">',soy.$$escapeHtml(a._i18n('7ad8d3',[])),'</td></tr>'),c?'':d.toString()},jive.soy.acclaim.privateBookmarkNotification}),define('soy!jive.soy.acclaim.guestsWithSameQuestionNotShownNotification',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.acclaim'),jive.soy.acclaim.guestsWithSameQuestionNotShownNotification=function(b,c){var d=c||new soy.StringBuilder;return d.append('<tr class="j-private-bookmark-notification j-js-private-bookmark-notification"><td colspan="3">',soy.$$escapeHtml(a._i18n('6a4e53',[])),'</td></tr>'),c?'':d.toString()},jive.soy.acclaim.guestsWithSameQuestionNotShownNotification}),define('apps/browse/activity/info/views/activity_info_view',['jquery','apps/shared/views/abstract_view','apps/shared/controllers/switchboard','soy!jive.soy.acclaim.renderAcclaimModal','soy!jive.soy.acclaim.privateBookmarkNotification','soy!jive.soy.acclaim.guestsWithSameQuestionNotShownNotification','jquery-plugin/jquery.lightbox_me','jive/namespace'],function(a,b,c){return jive.namespace('Activity.Info'),jive.Activity.Info.ActivityInfoView=b.extend(function(b){function d(a){return'bookmark'===a}function e(a){return'same_question'===a}this.init=function(b){var d=this;this.$modal=null,this.pageSize=b.pageSize,this.soyParams={},this.renderModal=function(b){return a(jive.soy.acclaim.renderAcclaimModal(b))},this.handleFollow=function(a){if(this.$modal){var b=this.$modal.find('table.js-everyone-list, table.js-friends-list'),c='tr[data-user-id='+a.id+']';b.eq(1).find(c).length||b.eq(0).find(c).clone().prependTo(b.eq(1).find('tbody'))}},c.addListener('follow.user.complete',this.handleFollow.bind(this))},this.showUsers=function(c,f){var g=this,h={centered:!0,destroyOnClose:!0,closeFocusSelector:f.context,initialFocusSelector:'.modal-initially-focused'};this.soyParams=b.buildSoyParams(c,f),this.$modal&&this.$modal.remove();var i=this.renderModal(this.soyParams);if(d(c.activityType)){var j=jive.soy.acclaim.privateBookmarkNotification();i.find('table.js-everyone-list tbody').each(function(){a(this).append(j)})}else if(e(c.activityType)){var j=jive.soy.acclaim.guestsWithSameQuestionNotShownNotification();i.find('table.js-everyone-list tbody').each(function(){a(this).append(j)})}this.$modal=i.lightbox_me(h),this.$modal.find('#jive-view-picker input:checkbox').click(function(){var b=a('#jive-view-picker input:checked'),c=0;1==b.length?c=b.val():2==b.length&&(c=3),g.$modal.find('table').hide(),g.$modal.find('table').eq(c).show()}),this.$modal.find('.jive-modal-content').endlessScroll({fireDelay:!1,callback:function(a){g.soyParams.moreResults&&g.emitP('loadUsersFromIndex',f,g.pageSize*a).addCallback(function(a){g.soyParams.moreResults=a.moreResults,g.appendUsers(a)})}})},this.appendUsers=function(b){var c=b&&b.items?b.items:[];if(c.length>0){this.$modal.find('.j-js-private-bookmark-notification').remove();var f=this.$modal.find('.jive-modal-content tbody:visible'),g=f.parent().attr('id'),h=this.renderModal(a.extend({},this.soyParams,{users:c})),i=h.find('table#'+g+' tr');if(f.append(i.clone()),d(this.soyParams.activityType)){var j=jive.soy.acclaim.privateBookmarkNotification();f.append(j)}else if(e(this.soyParams.activityType)){var j=jive.soy.acclaim.guestsWithSameQuestionNotShownNotification();f.append(j)}}},b.buildSoyParams=function(a,b){return{activityType:b.activityType,bidirectionalGraph:a.bidirectionalGraph,currentUserID:a.currentUserID,currentUserPartner:a.currentUserPartner,moreResults:a.moreResults,objectID:b.objectID,objectType:b.objectType,totalCount:a.totalCount,users:a.items,youID:b.youID||a.currentUserID,youPartner:b.youPartner||a.currentUserPartner}}}),jive.Activity.Info.ActivityInfoView}),define('apps/browse/activity/model/activity_source',['apps/shared/models/rest_service','jiverscripts/conc/promise','jive/namespace'],function(a,b){return jive.namespace('Activity'),jive.Activity.ItemSource=a.extend(function(a){a.resourceType='activity',a.pluralizedResourceType=a.resourceType,this.getContentActivityUsers=function(a,c,d){var e={cache:!1,data:{count:d,start:c},url:[this.RESOURCE_ENDPOINT,'users',a.activityType,a.objectType,a.objectID].join('/')};return this.commonAjaxRequest(new b,'GET',e)}}),jive.Activity.ItemSource}),define('apps/browse/activity/info/main',['jquery','jiverscripts/oo/class','jiverscripts/conc/promise','./views/activity_info_view','../model/activity_source','jive/namespace'],function(a,b,c,d,e){return jive.namespace('Activity.Info'),jive.Activity.Info.Main=b.extend(function(b){this.init=function(){this.pageSize=20,this.source=new e,this.view=new d({pageSize:this.pageSize});var a=this;this.view.addListener('loadUsersFromIndex',function(b,c,d){a.source.getContentActivityUsers(b,c,a.pageSize).addCallback(function(a){d.emitSuccess(a)})})},this.showUsers=function(b,d){var e=this.view,f=new c;return this.source.getContentActivityUsers(b,d,this.pageSize).addCallback(function(c){e.showUsers(c,b),f.emitSuccess(a.extend({totalCount:c.totalCount},b))}).addErrback(function(){f.emitError()}),f}}),jive.Activity.Info.Main}),define('jive/dispatcher',['jquery','underscore','backbone','jquery-mobile/jquery.mobile.vmouse'],function(a,b,c){var d=b.extend({},c.Events);return window.jive=window.jive||{},jive.dispatcher={listen:function(a,c){return d.on(b.flatten([a]).join(' '),c),jive.dispatcher},dispatch:function(a,c,e){var f=[a,c,a,e].filter(b.identity);d.trigger.apply(d,f)},on:b.bind(d.on,d),off:b.bind(d.off,d)},a(document).on('vclick','[data-command]',function(b){b.preventDefault();var c=a(this),d=c.data();jive.dispatcher.dispatch(d.command,d,c)}),jive.dispatcher}),define('jive/acclaim',['jquery','jiverscripts/conc/observable','apps/browse/activity/info/main','jive/dispatcher'],function(a,b,c,d){function e(a,b){return'showAcclaim'==a?b.acclaimType:g[a]}jive.acclaim=b({});var f=new c,g={showBookmarks:'bookmark',showChildren:'children',showConnections:'connections',showFollowers:'follow',showAcclaim:'credit',showMembers:'membership',showExternalContributorMembers:'externalContributorsMembership'};return d.listen(Object.keys(g),function(b,c){b=a.extend({activityType:e(c,b)},b),delete b.count,delete b.command;var d=a.extend({objectID:b.objectId,context:this},b);delete d.objectId,jive.acclaim.emit('beforeFetch',b),f.showUsers(d,0).addCallback(function(c){jive.acclaim.emit('afterFetch',a.extend({totalCount:c.totalCount},b))}).addErrback(function(){jive.acclaim.emit('afterFetch',b)})}),jive.acclaim}),define('jive/app',['jquery','jive/namespace'],function(a){return jive.namespace('app'),jive.app=jive.app||function(b,c){var d=b.split('.'),e=this,f=c||'Main';return jive.namespace.call(jive.app,b,function(){var c=d.slice(0,-1).reduce(function(a,b){return a[b]},e),g=c[d.last()],h=g[f],i;if(a.isFunction(h))return a.extend(h,g),h[f]=h,c[d.last()]=h,i=Object.create(h.prototype),h.apply(i,arguments),i;throw'No class called `'+f+'` was found in jive.'+b+'.'})},jive.app}),define('soy!jive.apps.alerts.renderDevError',['soyDeps'],function(a){return jive.namespace.call(this,'jive.apps.alerts'),jive.apps.alerts.renderDevError=function(a,b){var c=b||new soy.StringBuilder;return c.append('<p><a href=\'javascript:;\' onclick="$j(\'#j-dev-err-msg-',soy.$$escapeHtml(a.appId),'\').show();">Click here for more info</a></p><div id="j-dev-err-msg-',soy.$$escapeHtml(a.appId),'" class="j-app-error-message"  style="display:none"><p>',soy.$$escapeHtml(a.errorMessage),'</p><a href=\'javascript:;\' onclick="$j(\'#j-dev-err-msg-',soy.$$escapeHtml(a.appId),'\').hide();">Hide this message</a></div>'),b?'':c.toString()},jive.apps.alerts.renderDevError}),define('soy!jive.apps.alerts.renderAppHalt',['soyDeps','soy!jive.apps.alerts.renderDevError'],function(a){return jive.namespace.call(this,'jive.apps.alerts'),jive.apps.alerts.renderAppHalt=function(b,c){var d=c||new soy.StringBuilder;switch(b.code){case 401:d.append('<div class="j-app-alert"><span class="j-ui-elem j-alert-icon"></span><p>',soy.$$escapeHtml(a._i18n('17676f',[])),'</p><button class="j-error-msg-configure-credentials-app-btn">',soy.$$escapeHtml(a._i18n('88e6c3',[])),'</button></div>');break;case 10404:d.append('<div class="j-app-alert"><span class="j-ui-elem j-alert-icon"></span><p>',soy.$$escapeHtml(a._i18n('1e1777',[])),'</p>'),b.errorMessage&&jive.apps.alerts.renderDevError(b,d),d.append('<p>',soy.$$escapeHtml(a._i18n('c3be9a',[])),'</p><button class="j-error-msg-refresh-app-btn">',soy.$$escapeHtml(a._i18n('5759b6',[])),'</button></div>');break;case 10500:d.append('<div class="j-app-alert"><span class="j-ui-elem j-alert-icon"></span><p>',soy.$$escapeHtml(a._i18n('64a3a5',[])),'</p>'),b.fromExtension||(d.append('<ul><li><strong>',soy.$$escapeHtml(a._i18n('6fe69b',[])),'</strong> ',soy.$$escapeHtml(a._i18n('866799',[])),'</li></ul>'),b.errorMessage&&jive.apps.alerts.renderDevError(b,d),d.append('<button class="j-error-msg-delete-app-btn">',soy.$$escapeHtml(a._i18n('9e65b8',[])),'</button><button class="j-error-msg-refresh-app-btn">',soy.$$escapeHtml(a._i18n('5759b6',[])),'</button>')),d.append('</div>');break;case 6e3:d.append('<div class="j-app-alert"><span class="j-ui-elem j-alert-icon"></span><p>',soy.$$escapeHtml(a._i18n('28e012',[])),'</p>'),b.message&&jive.apps.alerts.renderDevError({appId:b.appId,errorMessage:b.message},d),d.append('<button class="j-error-msg-refresh-app-btn">',soy.$$escapeHtml(a._i18n('5759b6',[])),'</button></div>');break;case 1e3:d.append('<div class="j-app-alert"><span class="j-ui-elem j-alert-icon"></span>',b.modifier&&'configurationError'==b.modifier?soy.$$escapeHtml(a._i18n('b47d95',[])):'<p>'+soy.$$escapeHtml(a._i18n('c12d9a',[]))+'</p><button class="j-error-msg-configure-app-btn">'+soy.$$escapeHtml(a._i18n('bee00c',[]))+'</button>','</div>');break;case 1010:d.append('<div class="j-app-alert"><span class="j-ui-elem j-alert-icon"></span>',b.modifier&&'configurationError'==b.modifier?soy.$$escapeHtml(a._i18n('b47d95',[])):'<p>'+soy.$$escapeHtml(a._i18n('8a5e65',[]))+'</p><button class="j-error-msg-configure-app-btn">'+soy.$$escapeHtml(a._i18n('bee00c',[]))+'</button>','</div>');break;case 2010:d.append('<div class="j-app-alert"><span class="j-ui-elem j-alert-icon"></span><p>',soy.$$escapeHtml(a._i18n('4dd4c9',[])),'</p><ul><li><strong>',soy.$$escapeHtml(a._i18n('41969c',[])),'</strong> ',soy.$$escapeHtml(a._i18n('9b736b',[])),'</li></ul><p><a class="j-launch-market-faq" href="javascript:;">',soy.$$escapeHtml(a._i18n('2032dd',[])),'</a>.</p><button class="j-error-msg-delete-app-btn">',soy.$$escapeHtml(a._i18n('9e65b8',[])),'</button></div>');break;case 2020:d.append('<div class="j-app-alert"><span class="j-ui-elem j-alert-icon"></span><p>',soy.$$escapeHtml(a._i18n('175767',[b.creator])),'</p><ul><li><strong>',soy.$$escapeHtml(a._i18n('78ba93',[])),'</strong> ',soy.$$escapeHtml(a._i18n('d2167d',[])),'</li></ul><p><a class="j-launch-market-faq" href="javascript:;">',soy.$$escapeHtml(a._i18n('ed3bbb',[])),'</a>.</p><button class="j-error-msg-delete-app-btn">',soy.$$escapeHtml(a._i18n('9e65b8',[])),'</button></div>');break;case 2040:d.append('<div class="j-app-alert"><span class="j-ui-elem j-alert-icon"></span><p>',soy.$$escapeHtml(a._i18n('e13f95',[])),'</p><button class="j-error-msg-remove-subscription-expired-app-btn">',soy.$$escapeHtml(a._i18n('71c5e8',[])),'</button></div>');break;case 2050:d.append('<div class="j-app-alert"><span class="j-ui-elem j-alert-icon"></span><p>',soy.$$escapeHtml(a._i18n('cdc32f',[])),'</p>',b.message?'<p><b>'+soy.$$escapeHtml(b.message)+'</b></p>':'',b.fromExtension?'':'<div><button class="j-error-msg-delete-app-btn">'+soy.$$escapeHtml(a._i18n('9e65b8',[]))+'</button><button class="j-error-msg-app-more-info-btn">'+soy.$$escapeHtml(a._i18n('4c66fe',[]))+'</button></div>','</div>');break;case 2060:d.append('<div class="j-app-alert"><span class="j-ui-elem j-alert-icon"></span><h3>',soy.$$escapeHtml(a._i18n('c49523',[])),'</h3><div class="j-oauth-grant"><p>',soy.$$escapeHtml(a._i18n('aa2164',[])),'</p><button class="j-error-msg-grant-oauth-access-btn">',soy.$$escapeHtml(a._i18n('b22c15',[])),'</button></div><div class="j-oauth-authorize"><p>',soy.$$escapeHtml(a._i18n('2e86f0',[])),'</p><button class="j-error-msg-granted-oauth-access-btn">',soy.$$escapeHtml(a._i18n('1522fa',[])),'</button><button class="j-error-msg-oauth-approved-btn" style="display:none"></button></div></div>');break;case 5010:d.append('<div class="j-app-alert"><span class="j-ui-elem j-alert-icon"></span><p>',soy.$$escapeHtml(a._i18n('85f573',[])),'</p><button class="j-error-msg-remove-throttle-violation-btn">',soy.$$escapeHtml(a._i18n('68e5c6',[])),'</button></div>');break;case 5020:d.append('<div class="j-app-alert"><span class="j-ui-elem j-alert-icon"></span><p>',soy.$$escapeHtml(a._i18n('b05e9a',[])),'</p><button class="j-error-msg-delete-app-btn">',soy.$$escapeHtml(a._i18n('4eae3f',[])),'</button><button class="j-error-msg-purchase-app-btn">',soy.$$escapeHtml(a._i18n('2305a7',[])),'</button></div>');break;default:d.append('<div class="j-app-alert"><span class="j-ui-elem j-alert-icon"></span><p>',soy.$$escapeHtml(a._i18n('5b1a9d',[])),'(',soy.$$escapeHtml(b.code),')</p>',b.message?'<p>'+soy.$$escapeHtml(b.message)+'</p>':''),b.errorMessage&&jive.apps.alerts.renderDevError(b,d),d.append('</div>')}return c?'':d.toString()},jive.apps.alerts.renderAppHalt}),define('jive/app/alert/views/blocking_alert_view',['jquery','jiverscripts/oo/class','jiverscripts/conc/observable','soy!jive.apps.alerts.renderAppHalt'],function(a,b,c){return b.extend(function(b){c(this),b.init=function(a){this.app=a},this.applyBlockingAlert=function(b,c){var d=this.prepareBlockingAlertHtml(this.app,c);return a(b).append(d),d},b.prepareBlockingAlertHtml=function(b,c){var d,e=this,f=b.id,g='',h=null;if(c)switch(c.code){case 1e3:case 1010:b.configurationError&&(g='configurationError'),d=function(a,c){c.find('.j-error-msg-configure-app-btn').click(function(){e.emit('app.block',{type:'app.launch.config',app:b})})};break;case 2010:d=function(a,c){c.find('.j-error-msg-remove-banned-app-btn').click(function(){e.emit('app.block',{type:'app.remove.banned',app:b})}),c.find('.j-error-msg-delete-app-btn').click(function(){e.emit('app.block',{type:'app.delete',app:b})}),c.find('.j-launch-market-faq').click(function(){h=window.open(window._jive_base_url+'/apps/market/marketfaq/'+b.appUUID,'marketfaq','resizable=yes,scrollbars=yes'),h&&h.focus()})};break;case 2020:d=function(a,c){c.find('.j-error-msg-remove-blacklisted-app-btn').click(function(){e.emit('app.block',{type:'app.remove.blacklisted',app:b})}),c.find('.j-error-msg-delete-app-btn').click(function(){e.emit('app.block',{type:'app.delete',app:b})}),c.find('.j-launch-market-faq').click(function(){h=window.open(window._jive_base_url+'/apps/market/marketfaq/'+b.appUUID,'marketfaq','resizable=yes,scrollbars=yes'),h&&h.focus()})};break;case 2040:d=function(a,c){c.find('.j-error-msg-remove-subscription-expired-app-btn').click(function(){e.emit('app.block',{type:'app.launch.account',app:b})}),c.find('.j-visit-app-market-link').click(function(){h=window.open(window._jive_base_url+'/apps/market/marketfaq/'+b.appUUID,'marketfaq','resizable=yes,scrollbars=yes'),h&&h.focus()})};break;case 2050:d=function(a,c){c.find('.j-error-msg-app-more-info-btn').click(function(){h=window.open(window._jive_base_url+'/apps/market/marketfaq/'+b.appUUID,'marketfaq','resizable=yes,scrollbars=yes'),h&&h.focus()}),c.find('.j-error-msg-delete-app-btn').click(function(){e.emit('app.block',{type:'app.delete',app:b})})};break;case 5010:d=function(a,c){c.find('.j-error-msg-remove-throttle-violation-btn').click(function(){e.emit('app.block',{type:'app.remove.throttle.violation',app:b})}),c.find('.j-why-apps-may-be-suspended').click(function(){h=window.open(window._jive_base_url+'/apps/market/marketfaq/'+b.appUUID,'marketfaq','resizable=yes,scrollbars=yes'),h&&h.focus()})};break;case 5020:d=function(a,c){c.find('.j-error-msg-delete-app-btn').click(function(){e.emit('app.block',{type:'app.delete',app:b})}),c.find('.j-error-msg-purchase-app-btn').click(function(){e.emit('app.block',{type:'app.launch.market',app:b})})};break;case 10404:d=function(a,c){c.find('.j-error-msg-refresh-app-btn').click(function(){e.emit('app.block',{type:'app.refresh',app:b})})};break;case 10500:d=function(a,c){c.find('.j-error-msg-delete-app-btn').click(function(){e.emit('app.block',{type:'app.delete',app:b})}),c.find('.j-error-msg-refresh-app-btn').click(function(){e.emit('app.block',{type:'app.refresh',app:b})})};break;case 6e3:}d||(d=function(a,c){c.find('.j-error-msg-refresh-app-btn').click(function(){e.emit('app.block',{type:'app.refresh',app:b})})});var i={code:c.code,modifier:g,message:c.message,creator:c.creator,errorMessage:c.errorMessage,fromExtension:c.fromExtension,iconSrc:b.iconSrc,appTitle:b.title},j=a(jive.apps.alerts.renderAppHalt(i));return d(this,j),j}})}),define('jive/app/app-feature-disabled',['jquery','jiverscripts/oo/class'],function(a,b){return b.extend(function(b){this.init=function(b,c){function d(b,c,d){'javascript:;'===d?(b.preventDefault(),a('<p/>').html(c).message({style:'warn'})):window.open(d)}c.disabled?a('body').on('click','.j-apps-feature-disabled',function(c){d(c,b.apps_feature_disabled,a(this).attr('href'))}):c.anonymous?a('body').on('click','.jive_macro_appEmbeddedView',function(c){d(c,b.apps_feature_disabled_for_anonymous,a(this).attr('href'))}):c.partner&&a('body').on('click','.jive_macro_appEmbeddedView',function(c){d(c,b.apps_feature_disabled_for_partners,a(this).attr('href'))})}})}),define('jive/app/configure/models/configure_model',['jquery','url','jiverscripts/oo/class','jiverscripts/conc/observable'],function(a,b,c,d){return c.extend(function(c){d(this),c.init=function(){},this.persist_configuration=function(c){var d=this;a.ajax({type:'PUT',url:b.appsUrl('instances/'),data:JSON.stringify(c),contentType:'application/json',dataType:'json',success:function(a){d.emit('app.configure.success')},error:function(a){d.emit('app.configure.failed')}})},this.get_configuration_data=function(c){var d=this,e=b.appsUrl('instances/'+c+'/config_setup');a.getJSON(e,function(a){d.emit('app.got.configure.data',a)})}})}),define('jive/app/configure/views/serviceblocks',['jquery','apps/shared/views/abstract_view'],function(a){return jive.AbstractView.extend(function(b){this.init=function(){this.blocks=a('.app-services-section .j-service-block-alert')},this.validate=function(a){return a(this.blocks)},this.get_services=function(){var b=[];return this.blocks.each(function(){var c=a(this).attr('data-serviceid');if(c)b.push({serviceID:c,alias:a(this).attr('data-alias')});else{var d=a(this).find('input.j-service-radio:checked');d&&b.push({serviceID:d.attr('data-serviceid'),alias:d.attr('data-alias')})}}),b}})}),define('jive/app/configure/views/validate',['jquery','apps/shared/views/abstract_view'],function(a){return jive.AbstractView.extend(function(b){this.init=function(a,b,c){this.serviceBlock=a,this.errorOptions=b,this.invalidFields=c},this.work=function(){var b=this;this.serviceBlock.find('.j-service-error').removeClass('j-service-error');var c=this.serviceBlock.find('INPUT.j-service-radio:visible');0==c.filter(':checked').length&&(this.errorOptions.missing_endpoint=!0,c.each(function(){b.invalidFields.push(this)})),this.serviceBlock.find('INPUT.j-service-credential:visible').each(function(){var c=a.trim(a(this).val());a(this).val(c),c||(b.errorOptions.missing_credential=!0,b.invalidFields.push(this))}),this.serviceBlock.find('textarea.j-service-credential:visible').each(function(){var c=a.trim(a(this).val());a(this).val(c),c||(b.errorOptions.missing_credential=!0,b.invalidFields.push(this))})}})}),define('soy!jive.apps.configure.renderAppDataErrorMessage',['soyDeps'],function(a){return jive.namespace.call(this,'jive.apps.configure'),jive.apps.configure.renderAppDataErrorMessage=function(b,c){for(var d=c||new soy.StringBuilder,e=b.messageKeys,f=e.length,g=0;f>g;g++){var h=e[g];switch(d.append('<span class="error-message">'),h){case'configure.success':d.append(soy.$$escapeHtml(a._i18n('7827a6',[])));break;case'configure.cancel':d.append(soy.$$escapeHtml(a._i18n('3a1991',[])));break;case'configure.cancel.not.changed':d.append(soy.$$escapeHtml(a._i18n('bea4bf',[])));break;case'configure.noneed':d.append(soy.$$escapeHtml(a._i18n('853776',[])));break;case'credentials.cancel':d.append(soy.$$escapeHtml(a._i18n('72c259',[])));break;case'credentials.success':d.append(soy.$$escapeHtml(a._i18n('e723cc',[])));break;case'credentials.fail':d.append(soy.$$escapeHtml(a._i18n('dc7db3',[])));break;case'missing.endpoint':d.append(soy.$$escapeHtml(a._i18n('e522a4',[])));break;case'missing.credential':d.append(soy.$$escapeHtml(a._i18n('acf001',[])));break;case'permissions.acceptance':d.append(soy.$$escapeHtml(a._i18n('47516c',[])));break;case'install.error':d.append(soy.$$escapeHtml(a._i18n('178921',[])));break;default:d.append(soy.$$escapeHtml(a._i18n('8389b4',[])))}d.append('</span>')}return c?'':d.toString()},jive.apps.configure.renderAppDataErrorMessage}),define('jive/app/configure/views/error',['jquery','jiverscripts/oo/class','soy!jive.apps.configure.renderAppDataErrorMessage'],function(a,b){return b.extend(function(b){b.init=function(){},this.clear=function(){a('#jive-modal-app-configure-feedback').hide()},this.render=function(b){if(null!=b){var c=[];if(b.missing_endpoint&&c.push('missing.endpoint'),b.missing_credential&&c.push('missing.credential'),0==c.length&&c.push('error.general'),c.length<1)return this.clear(),void 0;try{a('#jive-modal-app-configure-feedback').show().html(jive.apps.configure.renderAppDataErrorMessage(c))}catch(d){}}},this.fieldsToVisualMarkers=function(b){return a(b).map(function(){var b=a(this);return b.hasClass('j-service-radio')?b.parent()[0]:this}).addClass('j-service-error')}})}),define('soy!jive.apps.configure.renderConfigureAppNotNeeded',['soyDeps'],function(a){return jive.namespace.call(this,'jive.apps.configure'),jive.apps.configure.renderConfigureAppNotNeeded=function(b,c){var d=c||new soy.StringBuilder;return d.append('<section class="clearfix"><p>',soy.$$escapeHtml(a._i18n('ce2606',[])),'</p></section>'),c?'':d.toString();
},jive.apps.configure.renderConfigureAppNotNeeded}),define('soy!jive.apps.configure.renderServicesSection',['soyDeps'],function(a){return jive.namespace.call(this,'jive.apps.configure'),jive.apps.configure.renderServicesSection=function(b,c){var d=c||new soy.StringBuilder;d.append('<section class="app-services-section"><h3 class="j-app-config-header font-color-normal">',soy.$$escapeHtml(a._i18n('af7f5c',[])),'</h3><ul class="ul-sections">');for(var e=b.configureAppView.serviceView,f=e.length,g=0;f>g;g++){var h=e[g];if(b.configureAppView.configured&&h.serviceOptionView.length<2||!b.configureAppView.configured&&h.selected)d.append('<li class="j-service-block-alert" data-serviceid="',soy.$$escapeHtml(h.selectedService.serviceID),'" data-alias="',soy.$$escapeHtml(h.selectedService.alias),'"><p><img alt="" src="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,'/images/jaf/j-icon-service-generic.png')),'" class="jaf-icon-svc" > ',soy.$$escapeHtml(a._i18n('705861',[])),'&nbsp;<b>',soy.$$escapeHtml(h.name),'</b>&nbsp;',soy.$$escapeHtml(a._i18n('105e22',[])),'</p></li>');else{d.append('<li class="j-service-block-alert"><p>',soy.$$escapeHtml(a._i18n('febcc7',[])),'&nbsp;',soy.$$escapeHtml(h.serviceOptionView.length),'&nbsp;',soy.$$escapeHtml(a._i18n('3ec5a0',[])),'&nbsp; <b>',soy.$$escapeHtml(h.name),'</b>.&nbsp;',soy.$$escapeHtml(a._i18n('3f030d',[])),'</p><div>');for(var i=h.serviceOptionView,j=i.length,k=0;j>k;k++){var l=i[k];d.append('<p class="j-form-row"><input type="radio" name="service-',soy.$$escapeHtml(l.optionGroupID),'" value="',soy.$$escapeHtml(l.serviceID),'" class="j-service-radio" data-serviceid="',soy.$$escapeHtml(l.serviceID),'" data-alias="',soy.$$escapeHtml(l.alias),'" data-optionid="',soy.$$escapeHtml(l.optionID),'" data-optiongroupid="',soy.$$escapeHtml(l.optionGroupID),'" id="j-service-',soy.$$escapeHtml(l.optionID),'"',h.selectedService&&h.selectedService.serviceID==l.serviceID?' checked':'','><label for="j-service-',soy.$$escapeHtml(l.optionID),'"><img alt="" src="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,'/images/jaf/j-icon-service-generic.png')),'" class="jaf-icon-svc" > ',soy.$$escapeHtml(l.name),'</label></p>')}d.append('</div></li>')}}return d.append('</ul></section>'),c?'':d.toString()},jive.apps.configure.renderServicesSection}),define('soy!jive.apps.configure.renderConfigureApp',['soyDeps','soy!jive.apps.configure.renderServicesSection'],function(a){return jive.namespace.call(this,'jive.apps.configure'),jive.apps.configure.renderConfigureApp=function(b,c){var d=c||new soy.StringBuilder;return d.append('<section class="clearfix">'),b.configureAppView.cannotConfigure?d.append('<div class="jaf-cannot-configure j-rc4"><p>',soy.$$escapeHtml(a._i18n('b47d95',[])),'</p></div>'):(d.append('<div id="jive-modal-app-configure-feedback" style="display:none; color:red;"></div>'),b.configureAppView.requiresServices&&jive.apps.configure.renderServicesSection(b,d)),d.append('</section>'),c?'':d.toString()},jive.apps.configure.renderConfigureApp}),define('jive/app/configure/views/configure_view',['jquery','apps/shared/views/abstract_view','jive/app/configure/views/serviceblocks','jive/app/configure/views/validate','jive/app/configure/views/error','soy!jive.apps.configure.renderConfigureAppNotNeeded','soy!jive.apps.configure.renderConfigureApp'],function(a,b,c,d,e){return jive.AbstractView.extend(function(b){this.init=function(b,c,d){this.instanceAppID=b.instanceAppID,this.configSetupData=c,this.configSetupData.app=b,c.requiresServices?(this.content=a(jive.apps.configure.renderConfigureApp({configureAppView:c})),d.html(''),d.append(this.content),a('#app-config-save').focus(),this.bindClickEvents()):(this.content=a(jive.apps.configure.renderConfigureAppNotNeeded()),d.html(''),d.append(this.content))},b.bindClickEvents=function(){var b=this,d=this.content;b.emit('app.service.wire.cancel',{callback:function(){b.emit('app.cancel_configuration')}}),b.emit('app.service.wire.submit',{callback:function(){var a=new c,d=a.validate(b.validate);if(d){var e=a.get_services();b.emit('app.save_configuration',e)}}}),d.find('.j-service-radio').each(function(){var b=a(this).attr('data-optiongroupid'),c=a(this).attr('data-optionid');a(this).click(function(){a('.j-service-credentials[data-optiongroupid='+b+']').hide(),a('.j-service-credentials[data-optionid='+c+']').show()})})},b.validate=function(b){var c=new e;c.clear();var f={},g=[];return b.find('.j-service-error').removeClass('j-service-error'),b.each(function(){var b=new d(a(this),f,g);b.work()}),g.length&&(c.render(f),c.fieldsToVisualMarkers(g)),0==g.length}})}),define('jive/app/configure/views/msgposter',['jquery','jiverscripts/oo/class','soy!jive.apps.configure.renderAppDataErrorMessage'],function(a,b){return b.extend(function(b){this.post_message=function(b,c){var d=jive.apps.configure.renderAppDataErrorMessage({messageKeys:[b]});a('<p/>').html(d).message({style:c})}})}),define('jive/app/containerDeferred',['jquery'],function(a){return a.Deferred()}),define('jive/app/container',['./containerDeferred'],function(a){return a.promise()}),define('jive/app/core_container/token_provider',['jquery','shindig','url','jiverscripts/oo/class','jiverscripts/conc/observable','jiverscripts/conc/promise','jive/json-security'],function(a,b,c,d,e,f,g){var h=d.extend(function(d){function h(a,b){document.cookie=a+"=\""+j(b)+"\"; path=/; secure;"}function i(a){for(var b=a+"=",c=document.cookie.split(';'),d=0;d<c.length;d++){for(var e=c[d];' '==e.charAt(0);)e=e.substring(1);if(0==e.indexOf(b))return e.substring(b.length,e.length)}return""}function j(a){return a.token+"#"+a.ttl+"#"+a.anonymous+"#"+a.expirationDate}function k(a){return values=a.replace("\"","").split("#"),4!==values.length?"":{token:values[0],ttl:parseFloat(values[1]),anonymous:'true'===values[2].toLowerCase(),expirationDate:parseFloat(values[3])}}var l=!1;e(this);var m=null,n=1e4,o=5,p=0;this.init=function(){this.tokenRefreshPromise=null,this.tokenRetryPromise=null,g.updateActiveUser()},this.getSecurityToken=function(){return b.auth.getSecurityToken()},this.getSecurityTokenPromise=function(){var a=new f,b=this.getSecurityToken();return b?a.emitSuccess(b):this.getSecurityTokenDataPromise().then(function(b){a.emitSuccess(b.token)},a.emitError.bind(a)),a},this.getContainerSecurityToken=function(){if(!g.checkIfActiveUser())return console&&l&&console.log('containersecuritytoken call blocked'),new f(function(a,b){a({})});if(!this.tokenRefreshPromise){var b=c.appsUrl('containersecuritytoken'),d=this;this.tokenRefreshPromise=(new f).proxy(a.ajax({url:b,contentType:'application/json',dataType:'json',type:'GET',cache:!1})).always(function(){d.tokenRefreshPromise=null})}return this.tokenRefreshPromise},this.getSecurityTokenDataPromise=function(){if(!this.tokenRetryPromise){var a=this;this.tokenRetryPromise=(new f).addCallback(function(b){a.emit('container.token.refreshed',b)}).always(function(){a.tokenRetryPromise=null}),this._fetchToken(this.tokenRetryPromise)}return this.tokenRetryPromise},this._fetchToken=function(a){function b(a){console&&l&&console.log('Fail to update container security token'),o>p?(console&&l&&console.log('Will try to update container security token later.'),m=window.setTimeout(function(){c._fetchToken(a)},n)):(console&&l&&console.log('Max number of tries to update container security token has expired.'),p=0,a.emitError(''))}var c=this,d=c.getStoredContainerSecurityToken();null!==d&&c.isContainerSecurityTokenValid(d)?a.emitSuccess(d):(p++,null!=m&&(window.clearTimeout(m),m=null),this.getContainerSecurityToken().addCallback(function(d){d&&d.token?(p=0,c.storeContainerSecurityToken(d),a.emitSuccess(d)):b(a)}).addErrback(function(c){b(a)}))},this.isContainerSecurityTokenValid=function(a){return a.anonymous==window._jive_current_user.anonymous&&a.ttl>300},this.getStoredContainerSecurityToken=function(){var a=i('containerSecurityToken');if(""!==a){var b=k(a);return b.ttl=~~((b.expirationDate-Date.now())/1e3),b}return null},this.storeContainerSecurityToken=function(a){a.expirationDate=Date.now()+1e3*a.ttl,h('containerSecurityToken',a)}});return new h}),define('jive/app/core_container/models/coreapi_model',['../token_provider','jiverscripts/oo/class','jiverscripts/conc/observable'],function(a,b,c){var d=b.extend(function(b){c(this);var d=3600;this.init=function(){this.initializeCoreApis()},this.getTokenUpdater=function(){var b=this;return function c(b){a.getContainerSecurityToken().addCallback(function(a){var c=a.token,e=a.ttl,f=a.anonymous;c&&!f?b(c,e,null):b(c,d,null)}).addErrback(function(a){var c=d;a&&a.status>=300&&a.status<500&&(c=96e3),b(null,c,a)})}},this.initializeCoreApis=function(){osapi=osapi||{},osapi.jive=osapi.jive||{},osapi.jive.corev3=osapi.jive.corev3||{},osapi.jive.corev3.extensions=osapi.jive.corev3.extensions||{};var b=[];osapi.jive.corev3.extensions.runWhenReady=function(a){b.push(a)},a.addListener('container.token.refreshed',function(){for(var a=0;a<b.length;a++)jive.conc.nextTick(b[a]);delete osapi.jive.corev3.extensions.runWhenReady})}});return new d}),define('jive/app/core_container/common_container',['osapi','./models/coreapi_model','url'],function(a,b,c){function d(){var b=new a.container.Container(e());return a.container.Service.prototype.getLanguage=function(){try{var a=_jive_locale;return a.split('_')[0]||'all'}catch(b){return'all'}},a.container.Service.prototype.getCountry=function(){try{var a=_jive_locale;return a.split('_')[1]||'ALL'}catch(b){return'ALL'}},b}function e(d){d=d||{};var e={};e[a.container.ServiceConfig.API_PATH]=c.baseUrl('/gadgets/api/rpc'),e[a.container.ContainerConfig.RENDER_DEBUG]=window.__JAF_DEBUG;for(var f in a.container.ContainerConfig)a.container.ContainerConfig.hasOwnProperty(f)&&d.hasOwnProperty(f)&&(e[f]=d[f]);return e[a.container.ContainerConfig.GET_CONTAINER_TOKEN]=b.getTokenUpdater(),e}return d()}),define('jive/app/core_container/event_relay',['jquery','apps/shared/controllers/localexchange','apps/shared/controllers/switchboard','domReady!'],function(a,b,c){function d(){i||jive.ActivityStreamApp&&jive.ActivityStreamApp.instance&&(jive.ActivityStreamApp.instance.addActivityStreamListViewListener('formReady',g('setActivityStreamContext')),i=!0)}function e(){j||jive.ActivityStream&&jive.ActivityStream.GlobalCommunicationStreamController&&(jive.ActivityStream.GlobalCommunicationStreamController.attachListEventListener('showRTE',f(function(a,b,c){this.setActivityStreamContext(a)})),j=!0)}function f(a){return jive.conc.observable.makeLazyCallback(['jive/app/core_container/views/modalCommentProviderSingleton'],function(b){var c=Array.prototype.slice.apply(arguments);c.shift(),a.apply(b,c)})}function g(a){return f(function(){this[a].apply(this,arguments)})}var h=g('setCommentContext'),i=!1,j=!1;require(['jive/comment_app'],function(a){a.isReady().then(function(a){jive.CommentApp.comments.addCommentListViewListener('createComment',h),jive.CommentApp.comments.addCommentListViewListener('editComment',h),jive.CommentApp.comments.addCommentListViewListener('replyComment',h),jive.CommentApp.comments.addCommentListViewListener('formClosed',f(function(a){this.commentContext=null}))})}),require(['promise!jive/discussionApp'],function(a){a.addDiscussionListViewListener('formReady',g('setDiscussionContext'))},function(a){}),c.addListener('activity.stream.controller.initialized',d),d(),c.addListener('activity.communication.controller.initialized',e),e(),a('body').on('click','a.app-action',function(c){var d=a(this).data(),e=d.appUuid+d.actionId;return d.actionUrl?(a.browser.msie&&a.browser.version<10?window.open(d.actionUrl,e.replace(/[^a-zA-Z0-9_]/g,''),d.actionWindowSpec):window.open(d.actionUrl,e,d.actionWindowSpec),c.preventDefault(),void 0):(b.emit('app.action',d),c.preventDefault(),void 0)}),b.addLazyListener('app.action',['promise!jive/app/container'],function(a,c){b.emit('createMenu.close'),b.emit('app.action.create.link',c)})}),define('jive/app/core_container/models/appscontainer_model',['jquery','../token_provider','jiverscripts/oo/class','jiverscripts/conc/observable','jiverscripts/conc/promise','url'],function(a,b,c,d,e,f){return c.extend(function(c){d(this);var g={};this.init=function(a){this.options=a},this.initContainerSecurityToken=function(a){b.getSecurityTokenDataPromise().then(function(b){var c=b.token,d=b.ttl;a.updateContainerSecurityToken(function(){},c,d)})},this.getAuthToken=function(){return b.getSecurityTokenPromise()},this.getApp=function(b,c){var d=g[b],h,i=new e,j=this;if(d&&!d.outdated)i.emitSuccess(d);else{var k=function(a){d=j.cacheApp(a,!1,b),i.emitSuccess(d)},l=function(a){var b=null;if(404==a.status)try{var c=JSON.parse(a.responseText);c.appUUID&&(b=d=j.cacheApp(c,!0))}catch(e){}i.emitError(b)};c?(h=f.appsUrl('instances/appinstance'),a.ajax({url:h+'/'+c,contentType:'application/json',dataType:'json',type:'GET',cache:!1,success:k,error:l})):b&&(h=f.appsUrl('instances/my'),a.ajax({url:h+'/'+b,contentType:'application/json',dataType:'json',type:'GET',cache:!1,success:k,error:l}))}return i},this.getAppsMarketApp=function(){var b=g.market,c,d=new e,h=this;return b?d.emitSuccess(b):(c=f.appsUrl('instances/market'),a.ajax({url:c,contentType:'application/json',dataType:'json',type:'GET',cache:!1,success:function(a){b=h.cacheApp(a,!0),d.emitSuccess(b)},error:function(a){d.emitError()}})),d},this.getExtensionPublisherApp=function(){var b=g.publisher,c,d=new e,h=this;return b?d.emitSuccess(b):(c=f.appsUrl('instances/upload-app'),a.ajax({url:c,contentType:'application/json',dataType:'json',type:'GET',cache:!1,success:function(a){b=h.cacheApp(a,!0),d.emitSuccess(b)},error:function(a){d.emitError()}})),d},this.cacheApp=function(b,c,d){if(b.appURL=null,b.src){for(var e=b.src.split('&'),f=0;f<e.length;f++)if(/^url=/.test(e[f])){b.appURL=decodeURIComponent(e[f].substr(4));break}}else b.url&&(b.appURL=b.url);if('undefined'==typeof b.nocache||null===b.nocache){var h=b.src?decodeURIComponent(b.src).match(/nocache=([01]{1})&/)[1]:'0';'1'===h?b.nocache=!0:b.nocache=!1}return d=c?'market':d?d:b.appUUID,d||(d=b.id),b=g[d]=g[d]?a.extend(g[d],b):b,delete b.outdated,b},this.deleteApp=function(b,c,d){c=c||function(){},d=d||function(){};var e=f.appsUrl('instances/instance/'+b);a.ajax({url:e,contentType:'application/json',dataType:'json',type:'DELETE',success:c,error:d})},this.refreshApp=function(b,c,d){c=c||function(){},d=d||function(){},a.ajax({url:b,dataType:'json',type:'POST',success:c,error:d})},this.appRemove=function(b,c,d,e){d=d||function(){},e=e||function(){},a.ajax({type:'PUT',url:f.appsUrl('instances/'+b+'/'+c),success:d,error:e})},this.acknowledgeThrottle=function(b,c,d){c=c||function(){},d=d||function(){},a.ajax({type:'PUT',url:f.appsUrl('instances/throttle/violation/'+b),success:c,error:d})},this.appHide=function(b,c,d){c=c||function(){},d=d||function(){},a.ajax({type:'PUT',url:f.appsUrl('instances/hide/'+b),success:c,error:d})}})}),define('jive/app/configure/main',['./views/configure_view','./models/configure_model','jiverscripts/oo/class','jiverscripts/conc/observable'],function(a,b,c,d){return c.extend(function(c){d(this),c.init=function(c){var d=this,e=c.app;this.domTarget=c.domTarget,this.instanceAppID=e.instanceAppID,this.model=new b,this.model.addListener('app.got.configure.data',function(b){d.configureView=new a(e,b,d.domTarget),d.configureView.addListener('app.save_configuration',function(a){var b={instanceAppID:d.instanceAppID,services:a};d.model.persist_configuration(b)}),d.configureView.addListener('app.cancel_configuration',function(){d.emit('app.configure.cancel',d.instanceAppID)}),d.configureView.addListener('app.service.wire.submit',function(a){d.emit('app.service.wire.submit',a)}),d.configureView.addListener('app.service.wire.cancel',function(a){d.emit('app.service.wire.cancel',a)})}),this.model.get_configuration_data(this.instanceAppID),this.model.addListener('app.configure.success',function(){d.emit('app.configure.success',d.instanceAppID)}),this.model.addListener('app.configure.failed',function(){d.emit('app.configure.failed',d.instanceAppID)})}})}),define('apps/shared/views/typeahead_input',['jquery','jiverscripts/oo/class','jiverscripts/conc/observable','lib/core_ext/function'],function(a,b,c){return jive.TypeaheadInput=b.extend(function(b){function d(b,c){return''===a.trim(c)||c.length<b}c(this),b.init=function(b,c){var e=this;c=c||{},this.element=a(b),this.minLength=c.minLength||2,this.delay=c.delay||333,this.suppressEnterKey=c.suppressEnterKey;var f=this.processKey.bind(this);a.browser.mozilla?this.element.keypress(function(a){f(a)}):this.element.keydown(function(a){f(a)}),this.element.bind('search change',f),this.element.focus(function(){e.focused=!0}),this.element.blur(function(){e.focused=!1}),'placeholder'in a('<input>')[0]||(this.placeholder=this.element.attr('placeholder'),this.placeheldClass=((this.element.data('placeHeld')||{}).options||{}).className);var g=this.delay;this.getDelay=a.isFunction(g)?this.delay:function(){return g},this.isClear=d(this.minLength,this.element.val())},this.val=function(a){if(this.focused&&'undefined'!=typeof a);else{if(''!==a||!this.placeholder)return this.element.val.apply(this.element,arguments);this.element.val(this.placeholder),this.element.addClass(this.placeheldClass)}},b.processKey=function(a){var b=this.element.val(),c=this;a&&'13'==a.which&&c.suppressEnterKey&&a.preventDefault(),b!==this.prevValue&&(this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(function(){c.emitChange(c.element.val())},this.getDelay(b)),this.prevValue=b)},b.emitChange=function(a){!this.isClear&&d(this.minLength,a)?(this.emit('clear'),this.isClear=!0):a.length>=this.minLength&&!this.placeheld()&&(this.emit('change',a),this.isClear=!1)},b.placeheld=function(){return this.placeholder&&this.placeheldClass?this.element.val()===this.placeholder&&this.element.hasClass(this.placeheldClass):!1}}),jive.TypeaheadInput}),define('soy!jive.placepicker.containerLink',['soyDeps'],function(a){return jive.namespace.call(this,'jive.placepicker'),jive.placepicker.containerLink=function(b,c){var d=c||new soy.StringBuilder;return d.append(b.writableByUser?14==b.contentType?'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/edit-place.jspa',{parentObjectID:b.id,parentObjectType:b.type,containerType:b.contentType})))+'" data-objecttype="'+soy.$$escapeHtmlAttribute(b.type)+'" data-objectid="'+soy.$$escapeHtmlAttribute(b.id)+'" data-iconCss="'+soy.$$escapeHtmlAttribute(b.iconCss)+'" class="js-target-container">':'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/choose-container.jspa',{contentType:b.contentType,containerType:b.type,container:b.id,upload:b.upload?'true':'false'})))+'" data-objecttype="'+soy.$$escapeHtmlAttribute(b.type)+'" data-objectid="'+soy.$$escapeHtmlAttribute(b.id)+'" data-icon-css="'+soy.$$escapeHtmlAttribute(b.iconCss)+'"'+(b.alreadyLinkedToPlace?'data-already-linked-to-place='+soy.$$escapeHtmlAttributeNospace(b.alreadyLinkedToPlace):'')+'class="js-target-container">':'','<span   ',b.writableByUser?600==b.type?'title=\''+soy.$$escapeHtmlAttribute(a._i18n('f05a19',[]))+'\'':700==b.type?'title=\''+soy.$$escapeHtmlAttribute(a._i18n('55a79e',[]))+'\'':14==b.type?'title="'+soy.$$escapeHtmlAttribute(a._i18n('83768b',[]))+'"':'':'title=\''+soy.$$escapeHtmlAttribute(a._i18n('eb9d2e',[]))+'\'',' class="',b.writableByUser?soy.$$escapeHtmlAttribute(b.iconCss)+' jive-icon-'+(b.iconSize?soy.$$escapeHtmlAttribute(b.iconSize):'med'):'jive-icon-sml jive-icon-place-unavailable','" role="img"></span><span class="',b.writableByUser?'lnk':'jive-container-unavailable-text',' js-container-title" ',b.writableByUser?'':'title="'+(2020==b.type?soy.$$escapeHtmlAttribute(a._i18n('1434e1',[])):soy.$$escapeHtmlAttribute(a._i18n('c1ddc0',[])))+'"','>',soy.$$escapeHtml(b.subject),'</span>',b.props&&b.props.isVisibleToPartner?'<span class="jive-icon-glyph icon-partner icon-eye" title="'+soy.$$escapeHtmlAttribute(a._i18n('fa6162',[]))+'"></span>':'',b.writableByUser?'</a>':'',b.caption?' <span class="j-container-caption font-color-meta">'+soy.$$escapeHtml(b.caption)+'</span>':''),c?'':d.toString()},jive.placepicker.containerLink}),define('soy!jive.placepicker.containerListEntry',['soyDeps','soy!jive.placepicker.containerLink'],function(a){return jive.namespace.call(this,'jive.placepicker'),jive.placepicker.containerListEntry=function(b,c){var d=c||new soy.StringBuilder;return d.append('<li ',b.container.type==b.containerType&&b.container.id==b.containerID?'class="current"':'','>'),b.isShare?jive.placepicker.containerLink(soy.$$augmentMap(b.container,{contentType:b.contentType,iconSize:'med',upload:b.upload,writableByUser:(b.container.type!=b.containerType||b.container.id!=b.containerID)&&b.container.prop&&b.container.prop.perms&&b.container.prop.perms.allowedToShare,props:b.container.prop}),d):jive.placepicker.containerLink(soy.$$augmentMap(b.container,{contentType:b.contentType,iconSize:'med',upload:b.upload,writableByUser:b.container.prop&&b.container.prop.perms&&b.container.prop.perms.allowedToContribute&&b.container.prop.perms.allowedToMove,props:b.container.prop}),d),d.append(b.container.type==b.containerType&&b.container.id==b.containerID?'<em>'+soy.$$escapeHtml(a._i18n('fa3842',[]))+'</em>':'',b.showSubspaces&&b.container.prop&&b.container.prop.childInfo&&b.container.prop.childInfo.hasChildren?'<a href="#" class="js-child-spaces j-subspace-view-link font-color-meta" data-objecttype="'+soy.$$escapeHtmlAttribute(b.container.type)+'" data-objectid="'+soy.$$escapeHtmlAttribute(b.container.id)+'"'+(b.container.prop.parentInfo?'data-parent-objecttype="'+soy.$$escapeHtmlAttribute(b.container.prop.parentInfo.type)+'" data-parent-objectid="'+soy.$$escapeHtmlAttribute(b.container.prop.parentInfo.id)+'"':'')+' title="'+(1==b.container.prop.childInfo.numChildren?soy.$$escapeHtmlAttribute(a._i18n('c6e54c',[1])):soy.$$escapeHtmlAttribute(a._i18n('469ccb',[b.container.prop.childInfo.numChildren])))+'">'+(1==b.container.prop.childInfo.numChildren?soy.$$escapeHtml(a._i18n('c6e54c',[1])):soy.$$escapeHtml(a._i18n('469ccb',[b.container.prop.childInfo.numChildren])))+'<span class="jive-icon-sml ui-icon-triangle-1-e"></span></a>':'','</li>'),c?'':d.toString()},jive.placepicker.containerListEntry}),define('soy!jive.placepicker.containerList',['soyDeps','soy!jive.placepicker.containerListEntry'],function(a){return jive.namespace.call(this,'jive.placepicker'),jive.placepicker.containerList=function(b,c){var d=c||new soy.StringBuilder;d.append(b.containerName?'<div class="j-container-selected-space"><a href="#" class="js-parent-container j-subspace-back-link"><span class="jive-icon-sml ui-icon-triangle-1-w"></span>'+soy.$$escapeHtml(a._i18n('d16988',[]))+' '+soy.$$escapeHtml(b.containerName)+'</a></div>':'','<ul class="j-icon-list wide">');var e=b.containers,f=e.length;if(f>0)for(var g=0;f>g;g++){var h=e[g];jive.placepicker.containerListEntry({container:h,contentType:b.contentType,containerType:b.containerType,containerID:b.containerID,upload:b.upload,showSubspaces:b.showSubspaces,isShare:b.isShare},d)}else d.append('<li><p class="j-empty">',b.emptyKey?soy.$$escapeHtml(a._i18n(b.emptyKey,[])):soy.$$escapeHtml(a._i18n('c10025',[])),'</p></li>');return d.append('</ul>'),c?'':d.toString()},jive.placepicker.containerList}),define('soy!jive.placepicker.searchResults',['soyDeps','soy!jive.placepicker.containerList'],function(a){return jive.namespace.call(this,'jive.placepicker'),jive.placepicker.searchResults=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-quick-menu"><h4 class="j-place-search-results font-color-meta">',soy.$$escapeHtml(a._i18n('8ad12d',[])),'</h4>'),jive.placepicker.containerList(b,d),d.append('</div>'),c?'':d.toString()},jive.placepicker.searchResults}),define('apps/placepicker/views/container_search_view',['jquery','apps/shared/views/typeahead_input','apps/shared/controllers/localexchange','jiverscripts/oo/class','jiverscripts/conc/observable','soy!jive.placepicker.searchResults','jive/namespace'],function(a,b,c,d,e){return jive.namespace('Placepicker'),jive.Placepicker.ContainerSearchView=d.extend(function(d){e(this),this.init=function(c,d,e){var f=this;f.isShare=e?e.isShare:!1,f.target=a(d),f.prevContent=f.target.children(),f.visibleContent=f.prevContent.filter(':visible'),a(c).each(function(){var c=new b(this);c.addListener('change',function(b){f.emitP('search',b).addCallback(function(b){b.isShare=f.isShare,f.searchResults&&f.searchResults.remove(),f.searchResults=a(jive.placepicker.searchResults(b)),f.flatFind(f.searchResults,'.j-clear-search').click(function(a){f.restoreContent(),c.val(''),a.preventDefault()}),0==f.visibleContent.size()&&(f.visibleContent=f.prevContent.filter(':visible')),f.visibleContent.hide(),d.append(f.searchResults),f.resizePopover()})}),c.addListener('clear',f.restoreContent.bind(f))})},this.update=function(){},d.restoreContent=function(){this.searchResults&&this.searchResults.remove(),this.visibleContent.show(),this.resizePopover()},d.flatFind=function(a,b){return a.find('*').addBack().filter(b)},d.resizePopover=function(){var b=this.target.getPopoverInstance();b&&b.resizePopover(a(),{fade:!1}),c.emit('containerChooserUpdated')}}),jive.Placepicker.ContainerSearchView}),define('soy!jive.i18n.keys.browsePlacesEmptyMessage',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.browsePlacesEmptyMessage=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('b60c89',[]))),c?'':d.toString()},jive.i18n.keys.browsePlacesEmptyMessage}),define('soy!jive.placepicker.browseContainers',['soyDeps','soy!jive.placepicker.containerLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.placepicker'),jive.placepicker.browseContainers=function(b,c){var d=c||new soy.StringBuilder;d.append('<div class="j-container-browse jive-modal"><header><h2>',soy.$$escapeHtml(b.altTitle?a._i18n('400fb0',[]):a._i18n('80505b',[])),'</h2></header><label class="j-508-label" id="close-modal-508">',soy.$$escapeHtml(a._i18n('a94563',[])),'</label><a href="#" class="j-modal-close-top close" aria-labelledby="close-modal-508" title="',soy.$$escapeHtmlAttribute(a._i18n('a94563',[])),'">',soy.$$escapeHtml(a._i18n('1ce366',[])),'  <span class="jive-icon-glyph icon-close-med" role="img"></span></a><section class="jive-modal-content"><div><label for="search-containers" class="j-508-label">',b.selectedContentType.searchPlaceholderKey?soy.$$escapeHtml(a._i18n(b.selectedContentType.searchPlaceholderKey,[])):soy.$$escapeHtml(a._i18n('f5af70',[])),'</label><input type="search" id="search-containers" name="container-filter" ',b.selectedContentType.searchPlaceholderKey?'placeholder="'+soy.$$escapeHtmlAttribute(a._i18n(b.selectedContentType.searchPlaceholderKey,[]))+'"':'',' class="j-form-elem-special j-container-browse-search j-ui-elem" /></div><div class="js-place-picker-content"><div class="j-container-browse-personal">'),b.suggestCreatePersonalBlog?jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('95a2c4'),arg0:'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'blogs-create-blog!input.jspa')))+'">',arg1:'</a>',noAutoEscape:!0},d):b.userContainer&&!b.hideUserContainer&&(38==b.selectedContentType.id?jive.placepicker.containerLink({subject:b.userContainer.subject,type:b.userContainer.type,id:b.userContainer.id,contentType:b.selectedContentType.id,iconCss:'jive-icon-blog',iconSize:'med',caption:a._i18n(b.selectedContentType.personalContainerCaptionKey,[]),writableByUser:b.userContainer.prop&&b.userContainer.prop.perms&&b.userContainer.prop.perms.allowedToContribute&&b.userContainer.prop.perms.allowedToMove,props:b.userContainer.prop},d):jive.placepicker.containerLink({subject:a._i18n(b.selectedContentType.personalContainerTitleKey,[]),type:b.userContainer.type,id:b.userContainer.id,contentType:b.selectedContentType.id,iconCss:'jive-icon-profile',iconSize:'med',caption:a._i18n(b.selectedContentType.personalContainerCaptionKey,[]),writableByUser:b.userContainer.prop&&b.userContainer.prop.perms&&b.userContainer.prop.perms.allowedToContribute&&b.userContainer.prop.perms.allowedToMove,upload:b.upload,props:b.userContainer.prop},d)),d.append('</div><section class="j-accordion-container">');for(var e=b.filterGroupBean.filters,f=e.length,g=0;f>g;g++){var h=e[g];d.append('<h3 class="j-accordion-toggle selected"><a href="#" class="js-accordion-link" data-placefilter="',soy.$$escapeHtmlAttribute(h.id),'">',soy.$$escapeHtml(a._i18n(h.description,[])),'</a></h3><div class="j-places-list j-quick-menu" style="display:none"></div>')}return d.append('</section></div></section><div>'),c?'':d.toString()},jive.placepicker.browseContainers}),define('soy!jive.placepicker.moreContainers',['soyDeps','soy!jive.placepicker.containerListEntry'],function(a){return jive.namespace.call(this,'jive.placepicker'),jive.placepicker.moreContainers=function(a,b){for(var c=b||new soy.StringBuilder,d=a.containers,e=d.length,f=0;e>f;f++){var g=d[f];jive.placepicker.containerListEntry({container:g,contentType:a.contentType,containerType:a.containerType,containerID:a.containerID,upload:a.upload,showSubspaces:a.showSubspaces,isShare:a.isShare},c)}return b?'':c.toString()},jive.placepicker.moreContainers}),define('apps/placepicker/views/container_browse_view',['jquery','jiverscripts/conc/promise','apps/shared/views/abstract_view','apps/placepicker/views/container_search_view','apps/shared/controllers/localexchange','jive/i18n','soy!jive.i18n.keys.browsePlacesEmptyMessage','soy!jive.placepicker.browseContainers','soy!jive.placepicker.searchResults','soy!jive.placepicker.moreContainers','soy!jive.shared.soy.loading','../../../vendor/jquery/plugins/jquery.endless-scroll','jquery-plugin/jquery.lightbox_me','jquery-ui/jquery.ui.accordion','jive/namespace'],function(a,b,c){return jive.namespace('Placepicker'),jive.Placepicker.ContainerBrowseView=c.extend(function(c){var d=jive.i18n.keys.browsePlacesEmptyMessage();c.init=function(a){this.containerStack=[],a=a||{},this.filterGroup=a.filterGroup||'placePicker',this.followLinks=a.followLinks||!1,this.parent=a.parent||null,this.closeOnSelect=a.closeOnSelect||!1,this.hideUserContainer=a.hideUserContainer||!1},this.render=function(c){var e=new b,f=this;f.rootCommunity=c.rootCommunity,f.showRootCommunity=c.showRootCommunity,f.contentType=c.contentType,f.modal=a(jive.placepicker.browseContainers(c)),f.modal.delegate('.js-target-container','click',function(b){var c=a(this).data('objecttype'),d=a(this).data('objectid'),e=a(this).find('.js-container-title').text(),g=a(this).data('iconCss'),h=a(this).data('alreadyLinkedToPlace')||!1;f.emit('container',{targetContainerType:c,targetContainerID:d,targetContainerName:e,iconCss:g,alreadyLinkedToPlace:h}),f.closeOnSelect&&f.modal.trigger('close'),f.followLinks||b.preventDefault()});var g=function(){f.setupSubspaceHandlers(f.modal);var b=f.serviceArgs('following');f.showSpinner(),f.emitP('browseLoad',b).addCallback(function(b){var c=a(jive.placepicker.containerList(a.extend({emptyKey:d},b)));f.addListToAccordionSection(f.modal.find('.j-places-list').first(),c,!0);var e=f.modal.find('.j-accordion-container').accordion({create:function(b,c){a(this).find('h4 a.js-accordion-link').attr('tabindex','-1')},changestart:function(a,b){if(0==b.newContent.find('li').length){var c=b.newHeader.find('.js-accordion-link'),d=f.serviceArgs(c.data('placefilter'));f.setupAccordionSection(b.newHeader.next(),d,!0)}}}),g=new jive.Placepicker.ContainerSearchView(f.modal.find('input[name=container-filter]'),f.modal.find('.js-place-picker-content'),{isShare:b.isShare});f.proxyListener(g,'search')}).always(function(){f.hideSpinner()})};return f.modal.lightbox_me({closeSelector:'.close',destroyOnClose:!0,onLoad:g,showOverlay:!0,closeFocusSelector:'#js-publishbar-place-browse',parentLightbox:a(f.parent).closest('.jive-modal:visible')
}),e},this.close=function(){this.modal&&this.modal.trigger('close')},c.setupAccordionSection=function(b,c,e){var f=this,g=f.isSpacesSection(c.filterID),h=f.isFollowingSection(c.filterID);if(g&&(c=f.setupSpaceArgs(c),b.data('containerType',c.containerType),b.data('containerID',c.containerID),f.isRootCommunity(c))){var i=f.rootCommunityList();return f.addListToAccordionSection(b,i,e)}var j=null;h&&(j=d),f.showSpinner(b),f.emitP('browseLoad',c).addCallback(function(d){f.hideSpinner(b),g&&f.isRootCommunityChildren(c)&&!f.showRootCommunity&&(d.containerName=null);var h=a(jive.placepicker.containerList(a.extend({showSubspaces:g,emptyKey:j},d)));return f.addListToAccordionSection(b,h,e)})},c.addScroller=function(b){var c=this;b.endlessScroll({fireDelay:!1,callback:function(){var d=a(this).find('li').size();if(d%20==0){var e=a(this).prev().find('a'),f=e.data('placefilter'),g=c.serviceArgs(f,d),h=a(this).data('containerID'),i=a(this).data('containerType');h>-1&&(g=a.extend({containerType:i,containerID:h},g)),c.emitP('browseLoad',g).addCallback(function(d){var e=a(jive.placepicker.moreContainers(a.extend({showSubspaces:c.isSpacesSection(f)},d)));b.find('ul').append(e)})}}})},c.setupSubspaceHandlers=function(b){var c=this;c.containerStack.push({containerType:c.rootCommunity.type,containerID:-1}),b.delegate('.js-child-spaces','click',function(b){var d=a(this).closest('.j-places-list').prev('.j-accordion-toggle').find('.js-accordion-link'),e=d.data('placefilter'),f=a.extend({containerType:a(this).data('objecttype'),containerID:a(this).data('objectid')},c.serviceArgs(e));c.containerStack.push({containerType:a(this).data('parent-objecttype'),containerID:a(this).data('parent-objectid')}),c.setupAccordionSection(a(this).closest('.j-places-list'),f,!1),b.preventDefault()}),b.delegate('.js-parent-container','click',function(b){var d=a(this).closest('.j-places-list').prev('.j-accordion-toggle').find('.js-accordion-link'),e=d.data('placefilter'),f=c.containerStack.pop();if(c.isRootCommunity(f)){var g=c.rootCommunityList();c.addListToAccordionSection(a(this).closest('.j-places-list'),g,!1)}else{var h=a.extend({containerType:f.containerType,containerID:f.containerID},c.serviceArgs(e));c.setupAccordionSection(a(this).closest('.j-places-list'),h,!1)}b.preventDefault()})},c.flatFind=function(a,b){return a.find('*').addBack().filter(b)},c.isSpacesSection=function(a){return'space'==a},c.isFollowingSection=function(a){return'following'==a},c.isRootCommunityChildren=function(a){var b=this;return a.containerType==b.rootCommunity.type&&a.containerID==b.rootCommunity.id},c.isRootCommunity=function(a){var b=this;return a.containerType==b.rootCommunity.type&&-1==a.containerID},c.setupSpaceArgs=function(a){var b=this;return a.containerType||a.containerID||(b.showRootCommunity?(a.containerType=b.rootCommunity.type,a.containerID=-1):(a.containerType=b.rootCommunity.type,a.containerID=b.rootCommunity.id)),a},c.addListToAccordionSection=function(a,b,c){var d=this;a.html(b),a.show(),c&&d.addScroller(a),jive.localexchange.emit('containerChooserUpdated')},c.serviceArgs=function(a,b){var c=this,d=c.isSpacesSection(a)?'spaceOrder':'subject';return{filterGroupID:c.filterGroup,filterID:a,start:b?b:0,sortKey:d,numResults:20}},c.rootCommunityList=function(){var b=this;return a(jive.placepicker.containerList({showSubspaces:!0,containers:[b.rootCommunity],contentType:b.contentType,containerType:-1,containerID:-1}))},c.createSpinner=function(b){this.$spinner=a(jive.shared.soy.loading()),b&&b.append(this.$spinner)},c.destroySpinner=function(a){this.$spinner&&this.$spinner.remove()}}),jive.Placepicker.ContainerBrowseView}),define('apps/placepicker/models/browse_containers_source',['jquery','url','apps/shared/models/rest_service','jive/namespace'],function(a,b,c){return jive.namespace('Placepicker'),jive.Placepicker.BrowseContainersSource=c.extend(function(c,d){c.resourceType='container',c.init=function(c){d.init.call(this,c),c&&c.includeShareContext&&a.extend(this.defaultParams,{includeShareContext:c.includeShareContext}),this.RESOURCE_ENDPOINT=b.v2Url('/containers')}}),jive.Placepicker.BrowseContainersSource}),define('apps/placepicker/models/place_picker_source',['jquery','url','apps/shared/models/rest_service','jive/namespace'],function(a,b,c){return jive.namespace('Placepicker'),jive.Placepicker.PlacePickerSource=c.extend(function(c,d){c.resourceType='placepicker',c.init=function(c,e){e=e||{},d.init.call(this,e),a.extend(this.defaultParams,{containerType:e.containerType,containerID:e.containerID}),this.RESOURCE_ENDPOINT=b.v2Url('/placepicker/'+c)}}),jive.Placepicker.PlacePickerSource}),define('apps/placepicker/models/search_containers_source',['jquery','url','apps/shared/models/rest_service','jive/namespace'],function(a,b,c){return jive.namespace('Placepicker'),jive.Placepicker.SearchContainersSource=c.extend(function(c,d){c.resourceType='container',c.init=function(c){d.init.call(this,c),c&&c.placeAllowed&&c.object&&a.extend(this.defaultParams,{contentType:c.object.objectType?c.object.objectType:-1,contentID:c.object.objectID?c.object.objectID:-1,includeShareContext:c.includeShareContext||!1,excludedContainerType:c.containerType||-1,excludedContainerID:c.containerID||-1}),this.RESOURCE_ENDPOINT=b.v2Url('/containers/search')}}),jive.Placepicker.SearchContainersSource}),define('apps/placepicker/main',['jquery','underscore','./views/container_browse_view','./models/browse_containers_source','./models/place_picker_source','./models/search_containers_source','jiverscripts/oo/class','jiverscripts/conc/observable','jive/namespace'],function(a,b,c,d,e,f,g,h){return jive.namespace('Placepicker'),jive.Placepicker.Main=g.extend(function(g){h(this),g.init=function(b){var g=this;this.allowedContainerIds=b.allowedContainerIds,this.pickerContext=b.pickerContext||'create',this.objectType=b.objectType,this.objectID=b.objectID||-1,this.upload=b.upload,this.personalContainerTitleKey=b.personalContainerTitleKey,this.personalContainerCaptionKey=b.personalContainerCaptionKey,this.searchPlaceholderKey=b.searchPlaceholderKey,this.containerType=b.containerType,this.containerID=b.containerID,this.filterGroup=b.filterGroup,this.followLinks=b.followLinks||!1,this.parent=b.parent||null,this.closeOnSelect=b.closeOnSelect||!1,this.filterByContainer=b.filterByContainer||!1,this.hideUserContainer=b.hideUserContainer||!1,this.fromQuest=b.fromQuest,this.includeShareContext=b.includeShareContext||!1,this.containers=new f(b),this.excludedContainers=b.excludedContainers||{},this.useAltTitle=b.useAltTitle||!1,this.browseContainers=new d(b),this.placePicker=new e(this.pickerContext,{containerType:this.containerType,containerID:this.containerID}),this.containerBrowseView=new c({filterGroup:this.filterGroup,parent:this.parent,followLinks:this.followLinks,closeOnSelect:this.closeOnSelect,hideUserContainer:this.hideUserContainer}),this.containerBrowseView.addListener('browseLoad',function(a,b){var c=jQuery.extend({contentType:g.objectType,contentID:g.objectID},a);g.filterByContainer&&(c=jQuery.extend({},{containerType:g.containerType,containerID:g.containerID},c)),g.browseContainers.findAll(c).addCallback(function(a){b.emitSuccess({contentType:g.objectType,containerType:g.containerType,containerID:g.containerID,upload:g.upload,containers:g.filterExcludedContainers(a.items),containerName:a.containerName,parentName:a.parentName,isShare:g.includeShareContext})})}),this.containerBrowseView.addListener('search',function(b,c){g.containers.findAll({query:b,contentType:g.objectType,contentID:g.objectID,allowedContainerIds:g.allowedContainerIds,includeShareContext:g.includeShareContext||!1,excludedContainerType:g.includeShareContext&&g.containerType?g.containerType:-1,excludedContainerID:g.includeShareContext&&g.containerID?g.containerID:-1}).addCallback(function(b){b.containers=g.filterExcludedContainers(b.containers),c.emitSuccess(a.extend({contentType:g.objectType,containerType:g.containerType,containerID:g.containerID,upload:g.upload},b))})}),this.containerBrowseView.addListener('container',function(a){g.emit('container',a)})},this.showPicker=function(){var b=this;b.placePicker.findAll({contentType:b.objectType,contentID:b.objectID}).addCallback(function(c){b.containerBrowseView.render(a.extend({contentID:b.contentID,contentType:b.objectType,containerType:b.containerType,containerID:b.containerID,hideUserContainer:b.hideUserContainer,altTitle:b.useAltTitle,selectedContentType:{id:b.objectType,personalContainerTitleKey:b.personalContainerTitleKey,personalContainerCaptionKey:b.personalContainerCaptionKey,searchPlaceholderKey:b.searchPlaceholderKey}},c))})},this.filterExcludedContainers=function(a){return Object.keys(this.excludedContainers).length?b.filter(a,function(a){return this.excludedContainers[a.type]&&this.excludedContainers[a.type].length?-1===this.excludedContainers[a.type].indexOf(a.id):!0}.bind(this)):a}}),jive.Placepicker.Main}),define('jive/app/placepicker/main',['apps/placepicker/main','jiverscripts/oo/class'],function(a,b){return b.extend(function(b){b.init=function(b){var c=this;this.personalContainerTitleKey=b.personalContainerTitleKey,this.personalContainerCaptionKey=b.personalContainerCaptionKey,this.searchPlaceholderKey=b.searchPlaceholderKey,this.closeOnSelect=!0;var d={closeOnSelect:this.closeOnSelect,filterGroup:'appPlacePicker',personalContainerTitleKey:c.personalContainerTitleKey,personalContainerCaptionKey:c.personalContainerCaptionKey,searchPlaceholderKey:c.searchPlaceholderKey,containerType:b.containerType,pickerContext:'app',filterByContainer:!!b.containerType,objectType:b.contentType};38!=b.contentType&&(d.allowedContainerIds=b.containerType),this.placePicker=new a(d)},this.showPicker=function(a){var b=this;b.placePicker.showPicker(),b.placePicker.addListener('container',function(c){a(c),b.placePicker.removeListener('container')})}})}),define('jive/app/alert/main',['./views/blocking_alert_view','jiverscripts/oo/class','jiverscripts/conc/observable'],function(a,b,c){return b.extend(function(b){c(this),b.init=function(a,b){this.app=a,this.targetDomElement=b,this.blockingAlerts=this.app.blockingAlerts},this.hasBlockingAlerts=function(){return this.blockingAlerts.length>0},this.getApp=function(){return this.app},this.getActiveAlert=function(){return this.hasBlockingAlerts?this.blockingAlerts[0]:!1},this.applyBlock=function(b,c,d){if(c=c||this.app,b=b?b:this.targetDomElement,b&&(d=d||this.getActiveAlert(),d)){var e=this,f=new a(c),g=f.applyBlockingAlert(b,d);return f.addListener('app.block',function(a){e.emit('app.block',a)}),g}},this.routeActionClicks=function(a,b,c,d,e){if('app.launch.config'==a.type)b(this);else if('app.launch.market'==a.type||'launch.market.app.profile'==a.type)window.location=window._jive_base_url+'/apps/market/marketapp/'+a.app.appUUID;else if('launch.market.faq'==a.type){var f=window.open(window._jive_base_url+'/apps/market/marketfaq/'+a.app.appUUID,'marketfaq','resizable=yes,scrollbars=yes');f&&f.focus()}else if('app.launch.account'==a.type)window.location=window._jive_base_url+'/apps/market/marketuser/'+a.app.appUUID;else{var g=function(){},h=function(){};'app.remove.banned'!=a.type&&'app.remove.blacklisted'!=a.type&&'app.delete'!=a.type&&'app.hide'!=a.type||(g=c,h=d),e.emit(a.type,a.app,g,h)}}})}),define('apps/userpicker/models/userpicker_source',['jquery','url','jiverscripts/oo/class','jiverscripts/conc/promise','../../../jive/ext/y/y_core','jive/namespace'],function(a,b,c,d){return jive.namespace('UserPicker'),jive.UserPicker.Source=c.extend(function(c){this.init=function(a){this.options=a,this.urls={userAutocomplete:b.baseUrl('/user-autocomplete.jspa'),browseModal:b.baseUrl('/user-autocomplete-modal.jspa')}},this.autocomplete=function(c){var e=new d,f=this,g='',h=6500;f.lastAjaxObj&&f.lastAjaxObj.abort();var i={emailAllowed:f.options.emailAllowed,userAllowed:f.options.userAllowed,listAllowed:f.options.listAllowed,canInvitePartners:f.options.canInvitePartners,canInviteJustPartners:f.options.canInviteJustPartners,canInvitePreprovisioned:f.options.canInvitePreprovisioned,invitePreprovisionedDomainRestricted:f.options.invitePreprovisionedDomainRestricted,propNames:['avatarID','hasConnection','title','department']};return f.options.object&&(i=a.extend(i,{containerID:f.options.object.containerID||-1,containerType:f.options.object.containerType||-1,objectID:f.options.object.objectID||f.options.object.id,objectType:f.options.object.objectType,entitlement:f.options.entitlement})),this.options&&this.options.filterIDs&&this.options.filterIDs.forEach(function(a){g+=''==g?'?':'&',g+='args='+encodeURIComponent(a)}),this.options&&this.options.resultLimit&&(g+=''==g?'?':'&',g+='numResults='+encodeURIComponent(this.options.resultLimit)),c&&c.length>h&&(c=c.substring(0,h)),f.lastAjaxObj=a.ajax({url:b.v2Url('/users/search/'+encodeURI(c)+g),data:i,dataType:'json',success:function(a){e.emitSuccess(a)},error:function(a){e.emitError()}}),e},this.load=function(c){var e=new d,f=this,g={};return f.options.object&&(g=a.extend(g,{objectID:f.options.object.objectID,objectType:f.options.object.objectType,entitlement:f.options.entitlement})),a.ajax({url:b.v2Url('/users/'+c),dataType:'json',data:g,success:function(a){e.emitSuccess(a)},error:function(a){e.emitError(a)}}),e},this.save=function(b){var c=new d,e={};return e[this.resourceType]=b,a.ajax({type:'POST',url:this.RESOURCE_ENDPOINT+'/'+b.objectID+'/members',dataType:'json',data:JSON.stringify(e),contentType:'application/json; charset=utf-8',success:function(a,b,d){c.emitSuccess(a)},error:function(b,d,e){try{var f=a.parseJSON(b.responseText);f&&f.error&&f.error.message&&c.emitError(f.error.message,f.error.code)}catch(g){c.emitError(null,b&&b.status)}}}),c}}),jive.UserPicker.Source}),define('apps/userpicker/models/result_store',['jquery','jiverscripts/oo/class','jive/ext/y/y_core','jive/namespace'],function(a,b){return jive.namespace('UserPicker'),jive.UserPicker.ResultStore=b.extend(function(b){this.init=function(a){this.userStore=new jive.ext.y.HashTable,this.listStore=new jive.ext.y.HashTable,this.containerStore=new jive.ext.y.HashTable},this.storeResults=function(b){var c=this;a(b.users).each(function(a,b){-1==b.id?c.userStore.put(b.email,b):c.userStore.put(b.id,b)}),a(b.userlists).each(function(a,b){c.listStore.put(b.id,b)}),a(b.containers).each(function(a,b){c.containerStore.put(b.type+'-'+b.id,b)})},this.getUser=function(a,b){return this.userStore.get(a>-1?a:b)},this.getList=function(a){return this.listStore.get(a)},this.getContainer=function(a,b){return this.containerStore.get(a+'-'+b)}}),jive.UserPicker.ResultStore}),define('soy!jive.UserPicker.soy.renderUserPickerModal',['soyDeps'],function(a){return jive.namespace.call(this,'jive.UserPicker.soy'),jive.UserPicker.soy.renderUserPickerModal=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="jive-modal j-modal" id="user-autocomplete-modal-container" style="display: none;"><div class="j-modal-dialog j-modal-xlg"><div class="j-modal-content"><div class="j-modal-body"><header class="j-modal-header"><h2>',soy.$$escapeHtml(a._i18n('e45e72',[])),'</h2></header><label class="j-508-label" id="close-modal-508">',soy.$$escapeHtml(a._i18n('a94563',[])),'</label><a href="javascript:;" class="j-modal-close-top close" aria-labelledby="close-modal-508" title="',soy.$$escapeHtml(a._i18n('a94563',[])),'">',soy.$$escapeHtml(a._i18n('99f858',[])),' <span class="j-close-icon j-ui-elem" role="img"></span></a><section id="user-picker-modal-content" class="j-modal-content jive-modal-content j-pop-main jive-modal-content-userpicker">',soy.$$filterNoAutoescape(b.body),'</section></div></div></div></div>'),c?'':d.toString()},jive.UserPicker.soy.renderUserPickerModal}),define('apps/userpicker/views/select_people_view',['jquery','jiverscripts/conc/observable','jiverscripts/conc/promise','jive/util','soy!jive.UserPicker.soy.searching','soy!jive.UserPicker.soy.renderModalLoading','soy!jive.UserPicker.soy.renderUserPickerModal','jquery-plugin/jquery.form','jquery-plugin/jquery.lightbox_me','jive/namespace'],function(a,b,c){return jive.namespace('UserPicker'),jive.UserPicker.SelectPeopleView=function(){function d(b){var c=b.map(function(a){return'userChk-'+a});return a('input[id^=userChk-]').filter(function(){var b=a(this).attr('id');return c.some(function(a){return b===a})})}function e(a){v[a.userID]=a,p(),g(),!s&&l(),d([a.userID]).closest('tr').addClass('selected')}function f(){d(Object.keys(v)).each(function(){a(this).prop('checked',!0).closest('tr').addClass('selected')})}function g(){var b=[];a.each(v,function(){b.push(this.displayName)});var c=jive.util.escapeHTML(b.join(', '));a('#preview').html(c)}function h(a){delete v[a.userID],p(),g(),d([a.userID]).closest('tr').removeClass('selected')}function i(){r.delegate('#userpicker-options-link','click',function(b){b.preventDefault(),a('#jive-people-search-options').toggle()}),r.delegate('#userpicker-addUsersButton','click',function(b){b.preventDefault(),!a(this).hasClass('j-disabled')&&l()}),r.delegate('#user-picker-modal-content a:not([data-action])','click',function(b){b.preventDefault(),m(a(this).attr('href')).addCallback(n)}),r.delegate('#user-picker-modal-content a[data-action=goToPage]','click',function(b){b.preventDefault(),a('#profilesearchform-start').val(a(this).data('page')),r.find('form').submit()}),r.delegate('#user-picker-modal-content :checkbox','click',function(){var b=a(this),c=b.closest('.jive-table-cell-checkbox'),d={avatar:a('#'+b.val()+'-avatar').html(),displayName:c.children().not('input').html(),userID:b.val(),userName:c.find(':hidden').val()};this.checked?e(d):h(d)}),r.delegate('.userpicker-sort-link','click',function(b){b.preventDefault(),a('#profilesearchform-sort').val(a(this).data('sortType')),a('#profilesearchform').submit()}),r.delegate('#query','input',function(){a('#people-search-submit').prop('disabled',!a('#query').val().trim())})}function j(){r.find('form').ajaxForm({beforeSubmit:function(b){b.push({name:'selectedUsers',value:k()}),a('#people-search-submit').prop('disabled',!0),a('#people-search-submit').val(jive.UserPicker.soy.searching())},success:function(b){n(b),a('#people-search-submit').prop('disabled',!1)},error:function(a,b,c){o(a,b,c)}})}function k(){var b=[];return a.each(v,function(a){return b.push(a)}),b.join(',')}function l(){var b=[];a.each(v,function(){b.push(this)}),v={},r.find('#userpicker-addUsersButton').after(jive.UserPicker.soy.renderModalLoading()),q.emit('select'+u,{users:b})}function m(b){var d=new c;return a.get(b+'&selectedUsers='+k(),d.emitSuccess.bind(d)),d}function n(b){var c=a(jive.UserPicker.soy.renderUserPickerModal({body:b})),d=a('#query').val();a('#user-picker-modal-content').replaceWith(c.find('#user-picker-modal-content')),a('#query').val(d),p(),g(),f(),j()}function o(b,c,d){a('#people-search-submit').prop('disabled',!1),a('#people-search-submit').val(jive.UserPicker.soy.search()),p(),g(),f(),j()}function p(){a('#userpicker-addUsersButton').toggleClass('j-disabled',a.isEmptyObject(v))}var q=b({}),r,s=!1,t=!1,u='',v={},w=_jive_base_url+'/user-autocomplete-modal.jspa',x='';return q.setOptions=function(a){return s='undefined'!=typeof a.multiple?a.multiple:!1,u='undefined'!=typeof a.name?a.name:'',t='undefined'!=typeof a.canInvitePartners?a.canInvitePartners:!1,x='undefined'!=typeof a.closeFocusSelector?a.closeFocusSelector:'',q},q.open=function(b){return a.ajax({url:w,data:{multiple:s,canInvitePartners:t},success:function(a){q.render({body:a}),b&&b()},error:function(){b&&b()}}),q},q.close=function(){return r&&r.find('.close').trigger('click'),q},q.render=function(b){r=a(jive.UserPicker.soy.renderUserPickerModal(b)),i(),p();var c=a('.js-rte-content-picker:visible').length>0,d={zIndex:300015,destroyOnClose:!0,parentLightbox:a('.jive-modal:visible'),closeFocusSelector:x,onLoad:function(){s=r.find('.jive-body-popup-container-userpicker').data('isMultiple'),j()}};c&&a.extend(d,{overlayCSS:{background:'white',opacity:.65},modalCSS:{top:16}}),r.lightbox_me(d)},q},jive.UserPicker.SelectPeopleView}),define('soy!jive.UserPicker.soy.limitMessage',['soyDeps'],function(a){return jive.namespace.call(this,'jive.UserPicker.soy'),jive.UserPicker.soy.limitMessage=function(b,c){var d=c||new soy.StringBuilder;return d.append(b.limit&&b.limit>0?'<div class="jive-warn-box" aria-live="polite" aria-atomic="true"><div><span class="jive-icon-warn jive-icon-sml"></span>'+soy.$$escapeHtml(a._i18n('7d5994',[b.limit]))+'</div></div>':''),c?'':d.toString()},jive.UserPicker.soy.limitMessage}),define('apps/userpicker/views/userpicker_message_view',['jquery','jiverscripts/oo/class','soy!jive.UserPicker.soy.limitMessage','jquery-plugin/jquery.popover','jive/namespace'],function(a,b){return jive.namespace('UserPicker'),jive.UserPicker.Messages=b.extend(function(b){this.init=function(b,c){this.userMessages=c&&c.userMessages||[],this.listMessages=c&&c.listMessages||[],this.placeWarnMessages=c&&c.placeWarnMessages||[],this.placeInfoMessages=c&&c.placeInfoMessages||[],this.messageDelay=c&&c.messageDelay||0;var d=this;a('.j-user-autocomplete').focus(function(){d.hideResultMessages()}),this.$permissionmsg=c&&c.permissionsMessage,this.$permissionmsg&&b.before(this.$permissionmsg.hide()),this.$relatedmsg=c&&c.relatedMessage,this.$relatedmsg&&b.before(this.$relatedmsg.hide());var e=jive.UserPicker.soy.limitMessage({limit:c.maxSelectedCount});this.$limitmsg=c&&c.maxSelectedMessage||a(e),this.$limitmsg&&b.before(this.$limitmsg.hide())},this.showResultMessages=function(a){var b=this;a.pasted&&a.pasted.length?b.handlePaste(a.pasted):a.added&&b.handleAdd(a.added)},b.handlePaste=function(b){var c,d=this;a.each(b,function(b,e){a.each(d.userMessages,function(a,b){var f=d.renderMessage(e,b,!1);f.length&&(c={context:f,user:e,message:b},setTimeout(function(){d.showMessage(c.user,c.message,c.context)},1e3))})})},b.handleAdd=function(b){var c=this;b.users?a.each(c.listMessages,function(a,d){c.renderMessage(b,d,!0)}):a.each(b,function(d,e){var f,g=b.id&&b.archetype&&'containers'==b.archetype;f=e.archetype&&'containers'==e.archetype||g?e.alreadyLinkedToPlace||g&&b.alreadyLinkedToPlace?c.placeWarnMessages:c.placeInfoMessages:c.userMessages,a.each(f,function(a,f){c.renderMessage(g?b:e,f,g||d==b.length-1)})})},b.renderMessage=function(b,c,d){var e=this,f=e.getMessagePopoverContext(b,c);if(f.length){var g=e.getPopoverSelector(b,c);f.closest('.jive-chooser-list').parent().delegate(g,'click',function(d){e.showMessage(b,c,a(g)),d.preventDefault()}),d&&e.showMessage(b,c,f)}return f},b.getPopoverSelector=function(a,b){var c=this;return c.getItemSelector(a)+' '+c.getMessagePopoverContextSelector(b)},b.showMessage=function(b,c,d){var e=this;setTimeout(function(){var e=a(c.render(b)).popover({context:d,position:'right'});e.addClass('js-userpicker-user-msg'),e.addClass('j-userpicker-user-msg'),e.closest('.js-pop').css('z-index',1e4),b.id>0?b.users?e.parent('.js-pop').attr('data-list-id',b.id):b.archetype&&'containers'==b.archetype&&b.type?(e.parent('.js-pop').attr('data-container-id',b.id),e.parent('.js-pop').attr('data-container-type',b.type)):e.parent('.js-pop').attr('data-user-id',b.id):e.parent('.js-pop').attr('data-user-email',b.email)},e.messageDelay)},b.removeMessages=function(a){this.findPopoverForSelected(a).remove()},b.findPopoverForSelected=function(b){return a(b.id>0?b.users?'.js-pop[data-list-id="'+b.id+'"]':b.archetype&&'containers'==b.archetype&&b.type?'.js-pop[data-container-id=\''+b.id+'\'][data-container-type=\''+b.type+'\']':'.js-pop[data-user-id="'+b.id+'"]':'.js-pop[data-user-email="'+b.email+'"]')},b.getMessagePopoverContext=function(a,b){var c=this,d=c.getItem(a);return d.find(c.getMessagePopoverContextSelector(b))},b.getItem=function(b){return a(this.getItemSelector(b))},b.getItemSelector=function(a){return a.id>0?a.users?'li[data-list-id=\''+a.id+'\']':a.archetype&&'containers'==a.archetype&&a.type?'li[data-container-id=\''+a.id+'\'][data-container-type=\''+a.type+'\']':'li[data-user-id=\''+a.id+'\']':a.email?'li[data-user-email=\''+a.email+'\']':(console.error('[no selector can be created for user or list: '+a+']'),void 0)},b.getMessagePopoverContextSelector=function(a){return a.popoverSelector?a.popoverSelector:'info'==a.type?'span.jive-icon-info:visible':'warn'==a.type?'span.jive-icon-warn:visible':'error'==a.type?'span.jive-icon-error:visible':'success'==a.type?'span.jive-icon-success:visible':void 0},this.hideResultMessages=function(){a('.js-userpicker-user-msg').trigger('close')},this.togglePermissionMessage=function(a){this.$permissionmsg&&(a?this.$permissionmsg.hide():this.$permissionmsg.show())},this.toggleRelatedMessage=function(a){this.$relatedmsg&&(a?this.$relatedmsg.hide():this.$relatedmsg.show())},this.toggleLimitMessage=function(a){this.$limitmsg&&(a?this.$limitmsg.show():this.$limitmsg.hide())}}),jive.UserPicker.Messages}),define('soy!jive.UserPicker.soy.renderUserList',['soyDeps','soy!jive.shared.displayutil.a11yBoundary','soy!jive.shared.displayutil.avatar'],function(a){return jive.namespace.call(this,'jive.UserPicker.soy'),jive.UserPicker.soy.renderUserList=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<div class="j-pop-main j-menu j-quick-menu j-people-find" ',b.height?'style=\'max-height:'+soy.$$escapeHtml(b.height)+';\'':'','>'),jive.shared.displayutil.a11yBoundary({type:'menu'},d),b.results.userlists.length>0){d.append('<h4 id="user-picker-label-list-heading" class="j-menu-section-heading font-color-meta-light">',soy.$$escapeHtml(a._i18n('2beae7',[])),'</h4><ul class="j-label-list j-icon-list j-avatar-list" role="listbox" aria-labelledby="user-picker-label-list-heading">');for(var e=b.results.userlists,f=e.length,g=0;f>g;g++){var h=e[g];d.append('<li class="user-autocomplete-item clearfix ',h.displayExternallyVisibleVisualCue?'external-access':'','" role="option"><a href="#" id="userlist_',soy.$$escapeHtml(h.id),'" data-list-id="',soy.$$escapeHtml(h.id),'"><img width="26" height="26" border="0" alt="',soy.$$escapeHtml(h.displayName),'" style="background-color: #',soy.$$escapeHtml(h.style),';" src="',soy.$$escapeHtml(jive.soy.func.resourceUrl('/images/transparent.png')),'" class="lbl jive-icon-med jive-icon-label-frame"><span class="lnk">',soy.$$escapeHtml(h.displayName),'</span> ',h.displayExternallyVisibleVisualCue?'<span class="jive-icon-glyph icon-partner icon-eye" title="'+soy.$$escapeHtml(a._i18n('5e421a',[]))+'"></span>':'','<span>(',soy.$$escapeHtml(h.users.length),')</span></a></li>')}d.append('</ul>')}if(b.results.users.length>0){d.append(b.results.userlists.length>0||b.results.containers.length>0?'<h4 id="user-picker-people-list-heading" class="j-menu-section-heading font-color-meta-light">'+soy.$$escapeHtml(a._i18n('218aef',[]))+'</h4>':'','<ul class="j-avatar-list j-icon-list" role="listbox"',b.results.userlists.length>0||b.results.containers.length>0?'aria-labelledby="user-picker-people-list-heading"':'','>');for(var i=b.results.users,j=i.length,k=0;j>k;k++){var l=i[k];d.append('<li class="user-autocomplete-item clearfix" role="option"><a href="#" id="user_',soy.$$escapeHtml(l.id),'" data-user-id="',soy.$$escapeHtml(l.id),'" data-user-email="',soy.$$escapeHtml(l.email),'" data-user-name="',soy.$$escapeHtml(l.displayName),'" data-user-username="',soy.$$escapeHtml(l.username),'">'),l.anonymous?d.append('<span class="jive-icon-glyph icon-envelope"></span>'):jive.shared.displayutil.avatar(soy.$$augmentMap(l,{size:24,hideLink:!0}),d),d.append('<span class="lnk ',l.anonymous?'user-email':'','">',soy.$$escapeHtml(l.displayName),'</span>');var m=l.prop.title,n=l.prop.department;d.append(m||n?' <em class="font-color-meta-light">'+(m&&n?soy.$$escapeHtml(a._i18n('2262fa',[m,n])):m?soy.$$escapeHtml(m):n?soy.$$escapeHtml(n):'')+'</em>':'',l.displayExternallyVisibleVisualCue||l.prop.isPartner?'<span class="font-color-meta-light j-browse-external-access"><em>'+soy.$$escapeHtml(a._i18n('5e421a',[]))+'</em></span>':'','</a></li>')}d.append('</ul>')}if(b.results.containers.length>0){d.append('<h4 id="user-picker-places-list-heading" class="j-menu-section-heading font-color-meta-light">',soy.$$escapeHtml(a._i18n('b64c73',[])),'</h4><ul class="j-icon-list" role="listbox" aria-labelledby="user-picker-place-list-heading">');for(var o=b.results.containers,p=o.length,q=0;p>q;q++){var r=o[q];d.append('<li class="user-autocomplete-item clearfix" role="option"><a href="#" id="container_',soy.$$escapeHtml(r.type),'_',soy.$$escapeHtml(r.id),'" data-container-id="',soy.$$escapeHtml(r.id),'" data-container-type="',soy.$$escapeHtml(r.type),'"><span class="jive-icon-med ',soy.$$escapeHtml(r.iconCss),'"></span><span class="lnk">',soy.$$escapeHtml(r.subject),'</span> ',r.prop&&r.prop.isVisibleToPartner?'<em class="j-browse-external-access">'+soy.$$escapeHtml(a._i18n('fa6162',[]))+'</em>':'','</a></li>')}d.append('</ul>')}return d.append(0==b.results.users.length&&0==b.results.userlists.length&&0==b.results.containers.length?soy.$$filterNoAutoescape(b.noResultsMessage):''),jive.shared.displayutil.a11yBoundary({type:'menu',isEnd:!0},d),d.append('</div>'),c?'':d.toString()},jive.UserPicker.soy.renderUserList}),define('soy!jive.UserPicker.soy.pleaseEnterEmail',['soyDeps'],function(a){return jive.namespace.call(this,'jive.UserPicker.soy'),jive.UserPicker.soy.pleaseEnterEmail=function(b,c){var d=c||new soy.StringBuilder;return d.append('<p class="font-color-meta empty">',soy.$$escapeHtml(a._i18n('b68068',[])),'</p>'),c?'':d.toString()},jive.UserPicker.soy.pleaseEnterEmail}),define('soy!jive.UserPicker.soy.domainMessage',['soyDeps'],function(a){return jive.namespace.call(this,'jive.UserPicker.soy'),jive.UserPicker.soy.domainMessage=function(b,c){var d=c||new soy.StringBuilder;return d.append(b.domains&&b.domains.length>0?'<p class="font-color-meta empty"><strong>'+(b.trial?soy.$$escapeHtml(a._i18n('b153c2',[b.domains])):soy.$$escapeHtml(a._i18n('12a8ad',[b.domains])))+'</strong></p>':''),c?'':d.toString()},jive.UserPicker.soy.domainMessage}),define('soy!jive.UserPicker.soy.pleaseEnterValidDomain',['soyDeps','soy!jive.UserPicker.soy.domainMessage'],function(a){return jive.namespace.call(this,'jive.UserPicker.soy'),jive.UserPicker.soy.pleaseEnterValidDomain=function(b,c){var d=c||new soy.StringBuilder;return b.trial?d.append('<p class="font-color-normal empty"><span class="jive-icon-sml jive-icon-group-private-glyph"></span><strong>',soy.$$escapeHtml(a._i18n('77cd08',[])),'</strong> ',soy.$$escapeHtml(a._i18n('c518ce',[])),'</p>'):jive.UserPicker.soy.domainMessage(b,d),c?'':d.toString()},jive.UserPicker.soy.pleaseEnterValidDomain}),define('soy!jive.UserPicker.soy.pleaseEnterValidEmail',['soyDeps'],function(a){return jive.namespace.call(this,'jive.UserPicker.soy'),jive.UserPicker.soy.pleaseEnterValidEmail=function(b,c){var d=c||new soy.StringBuilder;return d.append('<p class="font-color-meta empty">',soy.$$escapeHtml(a._i18n('a3d36e',[])),'</p>'),c?'':d.toString()},jive.UserPicker.soy.pleaseEnterValidEmail}),define('soy!jive.UserPicker.soy.noUsersMatchMessage',['soyDeps','soy!jive.UserPicker.soy.domainMessage'],function(a){return jive.namespace.call(this,'jive.UserPicker.soy'),jive.UserPicker.soy.noUsersMatchMessage=function(b,c){var d=c||new soy.StringBuilder;return b.placeAllowed?b.emailAllowed?(d.append('<p class="font-color-meta empty">',soy.$$escapeHtml(a._i18n('f28505',[])),'</p>'),jive.UserPicker.soy.domainMessage(b,d)):d.append('<p class="font-color-meta empty">',soy.$$escapeHtml(a._i18n('77c6cf',[])),'</p>'):b.emailAllowed?(d.append('<p class="font-color-meta empty">',soy.$$escapeHtml(a._i18n('c669e1',[])),'</p>'),jive.UserPicker.soy.domainMessage(b,d)):d.append('<p class="font-color-meta empty">',soy.$$escapeHtml(a._i18n('9b7771',[])),'</p>'),c?'':d.toString()},jive.UserPicker.soy.noUsersMatchMessage}),define('apps/userpicker/views/result_list_view',['jquery','jiverscripts/oo/class','jiverscripts/conc/observable','jive/rtl','soy!jive.UserPicker.soy.renderUserList','soy!jive.UserPicker.soy.pleaseEnterEmail','soy!jive.UserPicker.soy.pleaseEnterValidDomain','soy!jive.UserPicker.soy.pleaseEnterValidEmail','soy!jive.UserPicker.soy.noUsersMatchMessage','jive/namespace'],function(a,b,c,d){
return jive.namespace('UserPicker'),jive.UserPicker.ResultListView=b.extend(function(b){c(this),this.init=function(b){var c=this;this.$chooser=b.$chooser,this.$input=b.$input,this.hidden=!0,this.emailAllowed=b.emailAllowed,this.userAllowed=b.userAllowed,this.listAllowed=b.listAllowed,this.placeAllowed=b.placeAllowed,this.trial=b.trial,this.canInvitePartners=b.canInvitePartners,this.canInvitePreprovisioned=b.canInvitePreprovisioned,this.invitePreprovisionedDomainRestricted=b.invitePreprovisionedDomainRestricted,this.domains=b.domains||[],this.onShow=b.onShow||a.noop,this.onHide=b.onHide||a.noop,this.onSelect=b.onSelect||a.noop,this.$input.after(this.$chooser),this.$chooser.hide()},this.render=function(b){var c=this.getMessage(),d=!1,e=this.$input.offset().top-a(window).scrollTop(),f=a(window).height(),g='400px',h=f-e-50;120>h&&(d=!0),400>h&&!d&&(g=f-e-50+'px'),this.$chooser.html(jive.UserPicker.soy.renderUserList({results:b,noResultsMessage:c,height:g})),this.show(d)},b.getMessage=function(){var a;return a=!this.emailAllowed||this.userAllowed||this.listAllowed?this.emailAllowed?this.isEmailAddressInput(this.$input.val())?this.domains.length>0&&!this.canInvitePartners?jive.UserPicker.soy.pleaseEnterValidDomain({trial:this.trial,domains:this.domains}):jive.UserPicker.soy.pleaseEnterEmail({}):jive.UserPicker.soy.noUsersMatchMessage({trial:this.trial,domains:this.domains,emailAllowed:!0,placeAllowed:this.placeAllowed}):jive.UserPicker.soy.noUsersMatchMessage({emailAllowed:!0,placeAllowed:this.placeAllowed}):this.isValidEmailAddressFragment(this.$input.val())?this.domains.length>0&&!this.canInvitePartners?jive.UserPicker.soy.pleaseEnterValidDomain({trial:this.trial,domains:this.domains}):jive.UserPicker.soy.pleaseEnterEmail({}):jive.UserPicker.soy.pleaseEnterValidEmail({}),a},this.show=function(b){var c=this;b?this.$chooser.css('top','').css('bottom','40px'):this.$chooser.css('bottom','').css('top',this.$input.position().top+this.$input.outerHeight()),this.$chooser.show().css(d('left'),this.$input.position()[d('left')]),this.hidden&&(this._blurHandler&&a(document).off('focus click','body',this._blurHandler),this._blurHandler=function(b){var d=a(b.target),e=b.target==c.$input.get(0),f=d.closest(c.$chooser).length>0;e||f||c.hide()},a(document).on('focus click','body',this._blurHandler),this.emit('show'),this.hidden=!1,this.onShow.call(null,this.$chooser))},this.hide=function(){this.$chooser.hide(),this._blurHandler&&(a(document).off('focus click','body',this._blurHandler),delete this._blurHandler),this.hidden||(this.emit('hide'),this.hidden=!0,this.onHide.call(null))},this.findNameMatches=function(b){return this.$chooser.find('li a').filter(function(c,d){return a(d).data('user-username').toLowerCase().trim().startsWith(b)||jive.util.equalsIgnoreCaseAndPadding(b,a(d).data('user-name'))})},b.isEmailAddressInput=function(a){return a.match('^([\\w\\.!#$%&*\\+/?\\^`{}\\|~_\'=-]+)@([\\w\\.-]+)?$')},b.isValidEmailAddressFragment=function(a){return a.match('^([\\w\\.!#$%&*\\+/?\\^`{}\\|~_\'=-]+)@?([\\w\\.-]+)?$')}}),jive.UserPicker.ResultListView}),define('soy!jive.UserPicker.soy.placeholderEmail',['soyDeps'],function(a){return jive.namespace.call(this,'jive.UserPicker.soy'),jive.UserPicker.soy.placeholderEmail=function(b,c){var d=c||new soy.StringBuilder;return d.append(0==b.index?soy.$$escapeHtml(a._i18n('5e7490',[])):soy.$$escapeHtml(a._i18n('8729c4',[])),b.domains&&b.domains.length>b.index?soy.$$escapeHtml(b.domains[b.index]):b.domains&&b.domains.length?soy.$$escapeHtml(b.domains[0]):soy.$$escapeHtml(a._i18n('751ba3',[]))),c?'':d.toString()},jive.UserPicker.soy.placeholderEmail}),define('soy!jive.UserPicker.soy.placeholderPlace',['soyDeps'],function(a){return jive.namespace.call(this,'jive.UserPicker.soy'),jive.UserPicker.soy.placeholderPlace=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('b550ac',[]))),c?'':d.toString()},jive.UserPicker.soy.placeholderPlace}),define('soy!jive.UserPicker.soy.inputPlaceholder',['soyDeps','soy!jive.UserPicker.soy.placeholderEmail','soy!jive.UserPicker.soy.placeholderPlace'],function(a){return jive.namespace.call(this,'jive.UserPicker.soy'),jive.UserPicker.soy.inputPlaceholder=function(b,c){var d=c||new soy.StringBuilder;return d.append(b.userAllowed?soy.$$escapeHtml(a._i18n('2c5f9a',[])):'',b.userAllowed&&(b.emailAllowed||b.placeAllowed)?', ':''),b.emailAllowed&&(jive.UserPicker.soy.placeholderEmail(soy.$$augmentMap(b,{index:0}),d),d.append(', '),b.multiple&&!b.placeAllowed&&(jive.UserPicker.soy.placeholderEmail(soy.$$augmentMap(b,{index:1}),d),d.append(', '))),b.placeAllowed&&(jive.UserPicker.soy.placeholderPlace(b,d),d.append(', ')),d.append(b.userAllowed&&(b.emailAllowed||b.placeAllowed)?'...':''),c?'':d.toString()},jive.UserPicker.soy.inputPlaceholder}),define('soy!jive.UserPicker.soy.renderModalBrowseButton',['soyDeps'],function(a){return jive.namespace.call(this,'jive.UserPicker.soy'),jive.UserPicker.soy.renderModalBrowseButton=function(b,c){var d=c||new soy.StringBuilder;return d.append('<button class="jive-chooser-browse j-select-people j-btn-global" title="',b.plural?soy.$$escapeHtml(a._i18n('e45e72',[])):soy.$$escapeHtml(a._i18n('35a7a4',[])),'"><span class="j-508-label">',b.plural?soy.$$escapeHtml(a._i18n('e45e72',[])):soy.$$escapeHtml(a._i18n('35a7a4',[])),'</span><span class="jive-icon-glyph icon-users"></span></button>'),c?'':d.toString()},jive.UserPicker.soy.renderModalBrowseButton}),define('soy!jive.UserPicker.soy.renderModalPlaceBrowseButton',['soyDeps'],function(a){return jive.namespace.call(this,'jive.UserPicker.soy'),jive.UserPicker.soy.renderModalPlaceBrowseButton=function(b,c){var d=c||new soy.StringBuilder;return d.append('<a href="#" class="jive-choose-browse j-select-place j-btn-global" title="',soy.$$escapeHtml(a._i18n('b8fb96',[])),'"><span class="j-508-label">',soy.$$escapeHtml(a._i18n('b8fb96',[])),'</span><span class="jive-icon-med jive-icon-group"></span></a>'),c?'':d.toString()},jive.UserPicker.soy.renderModalPlaceBrowseButton}),define('soy!jive.UserPicker.soy.renderedContainer',['soyDeps'],function(a){return jive.namespace.call(this,'jive.UserPicker.soy'),jive.UserPicker.soy.renderedContainer=function(b,c){var d=c||new soy.StringBuilder;return d.append('<li data-container-id="',soy.$$escapeHtml(b.container.id),'" data-container-type="',soy.$$escapeHtml(b.container.type),'" class="',b.container.alreadyLinkedToPlace?'j-warning':'','" data-uib="',soy.$$escapeHtml(JSON.stringify(b.container).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029')),'"><span class="jive-icon-med ',soy.$$escapeHtml(b.container.iconCss),'"></span><span>',soy.$$escapeHtml(b.container.subject),'</span>',b.container.prop&&b.container.prop.isVisibleToPartner?'<span class="jive-icon-glyph icon-partner icon-eye" title="'+soy.$$escapeHtml(a._i18n('0fdf5d',[]))+'"></span>':'',b.disabled?'':'<em>'+(b.container.excluded?'<a class="add" href="javascript:;" title="'+soy.$$escapeHtml(a._i18n('196c30',[]))+'"><span class="j-508-label">'+soy.$$escapeHtml(a._i18n('196c30',[]))+'</span><span class="jive-icon-glyph icon-plus2"></span></a>':'<a class="remove" href="javascript:;" title="'+soy.$$escapeHtml(a._i18n('3a5f0d',[]))+'"><span class="j-508-label">'+soy.$$escapeHtml(a._i18n('3a5f0d',[]))+'</span><span class="jive-icon-glyph icon-close2"></span></a>')+'</em>',b.container.alreadyLinkedToPlace?'<span class="jive-icon-sml jive-icon-warn"></span>':'<span class="jive-icon-sml jive-icon-info"></span>','</li>'),c?'':d.toString()},jive.UserPicker.soy.renderedContainer}),define('soy!jive.UserPicker.soy.renderedUser',['soyDeps','soy!jive.shared.displayutil.avatar'],function(a){return jive.namespace.call(this,'jive.UserPicker.soy'),jive.UserPicker.soy.renderedUser=function(b,c){var d=c||new soy.StringBuilder;return d.append('<li class="',b.user.disabled?'disabled':'',' ',!b.user.entitled||!b.user.prop.hasConnection&&b.relationship?'j-warning':'',' js-single-user" data-user-id="',soy.$$escapeHtml(b.user.id),'" data-user-email="',soy.$$escapeHtml(b.user.email),'" data-user-name="',soy.$$escapeHtml(b.user.username),'" data-uib="',soy.$$escapeHtml(JSON.stringify(b.user).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029')),'"',b.hidden?' style="display:none;"':'','>'),b.user.anonymous||b.user.external?d.append('<span class="jive-icon-glyph icon-envelope"></span>'):jive.shared.displayutil.avatar(soy.$$augmentMap(b.user,{size:20,hideLink:!0}),d),d.append('<span class="',b.user.excluded?'excluded':'','">',soy.$$escapeHtml(b.user.displayName),'</span>',(!b.user.anonymous&&!b.user.external||b.user.prop.isPartner)&&(b.user.prop.isVisibleToPartner||b.user.displayExternallyVisibleVisualCue||b.user.prop.isPartner)?'<span class="jive-icon-glyph icon-partner icon-eye" title="'+soy.$$escapeHtml(a._i18n('5e421a',[]))+'"></span>':'',b.disabled||b.user.disabled?'':'<em>'+(b.user.excluded?'<a class="add" href="#" title="'+soy.$$escapeHtml(a._i18n('196c30',[]))+'"><span class="j-508-label">'+soy.$$escapeHtml(a._i18n('196c30',[]))+'</span><span class="jive-icon-glyph icon-plus2"></span></a>':'<a class="remove" title="'+soy.$$escapeHtml(a._i18n('3a5f0d',[]))+' '+soy.$$escapeHtml(b.user.displayName)+'" href="#"><span class="jive-icon-glyph icon-close2"></span><span class="j-508-label">'+soy.$$escapeHtml(a._i18n('3a5f0d',[]))+'</span></a>')+'</em>',b.user.entitled?'':'<span class="jive-icon-sml jive-icon-warn"></span>',b.relationship&&!b.user.prop.hasConnection?'<span class="jive-icon-sml jive-icon-redalert"></span>':'','</li>'),c?'':d.toString()},jive.UserPicker.soy.renderedUser}),define('soy!jive.UserPicker.soy.renderSelectedUsersList',['soyDeps','soy!jive.UserPicker.soy.renderedContainer','soy!jive.UserPicker.soy.renderedUser','soy!jive.shared.displayutil.userDisplayNameLink'],function(a){return jive.namespace.call(this,'jive.UserPicker.soy'),jive.UserPicker.soy.renderSelectedUsersList=function(b,c){var d=c||new soy.StringBuilder;if(b.results.userlists.length>0||b.results.users.length>0||b.results.containers.length>0){d.append(b.message?soy.$$filterNoAutoescape(b.message):'','<ul class="clearfix">');for(var e=b.results.userlists,f=e.length,g=0;f>g;g++){var h=e[g];d.append('<li style="display: list-item;" class="connections d" data-list-id="',soy.$$escapeHtml(h.id),'"><img width="16" height="16" border="0" alt="',soy.$$escapeHtml(h.displayName),'" style="background-color: #',soy.$$escapeHtml(h.style),';" src="',soy.$$escapeHtml(jive.soy.func.resourceUrl('/images/transparent.png')),'" class="lbl jive-icon-med jive-icon-label-frame"><a class="showConnections" href="javascript:;">',h.excluded?'<span class="excluded">':'',soy.$$escapeHtml(h.displayName),' <span>(',soy.$$escapeHtml(h.users.length),')</span>',h.excluded?'</span>':'','</a>',h.displayExternallyVisibleVisualCue?'<span class="jive-icon-glyph icon-partner icon-eye" title="'+soy.$$escapeHtml(a._i18n('5e421a',[]))+'"></span>':'','<em>',b.disabled?'':' '+(h.excluded?'<a class="add" href="javascript:;">'+soy.$$escapeHtml(a._i18n('196c30',[]))+'</a>':'<a class="remove" href="javascript:;" title="'+soy.$$escapeHtml(a._i18n('3a5f0d',[]))+'"><span class="j-508-label">'+soy.$$escapeHtml(a._i18n('3a5f0d',[]))+'</span><span class="jive-icon-glyph icon-close2"></span></a>'),'</em><div class="js-grouped-users-popover j-grouped-users-popover" id="listContents',soy.$$escapeHtml(h.id),'" style="display: none;"><ul class="j-simple-list">');for(var i=h.users,j=i.length,k=0;j>k;k++){var l=i[k];d.append('<li><span class="lnk">'),jive.shared.displayutil.userDisplayNameLink(l,d),d.append('</span>',l.entitled?'':'<span class="jive-icon-sml jive-icon-warn"></span>',l.prop.isPartner?'<span class="jive-icon-glyph icon-partner icon-eye" title="'+soy.$$escapeHtml(a._i18n('5e421a',[]))+'"></span>':'','</li>')}d.append('</ul></div>',h.entitled?'':'<span class="jive-icon-sml jive-icon-warn"></span>','</li>');for(var m=h.users,n=m.length,o=0;n>o;o++){var p=m[o];jive.UserPicker.soy.renderedUser({user:p,relationship:b.relationship,disabled:b.disabled,hidden:!0},d)}}for(var q=b.results.users,r=q.length,s=0;r>s;s++){var t=q[s];jive.UserPicker.soy.renderedUser({user:t,relationship:b.relationship,disabled:b.disabled,hidden:!1},d)}for(var u=b.results.containers,v=u.length,w=0;v>w;w++){var x=u[w];jive.UserPicker.soy.renderedContainer({container:x,disabled:b.disabled},d)}d.append('</ul>')}return c?'':d.toString()},jive.UserPicker.soy.renderSelectedUsersList}),define('soy!jive.UserPicker.soy.renderSelectedUser',['soyDeps','soy!jive.UserPicker.soy.renderedContainer','soy!jive.shared.displayutil.avatar'],function(a){return jive.namespace.call(this,'jive.UserPicker.soy'),jive.UserPicker.soy.renderSelectedUser=function(b,c){var d=c||new soy.StringBuilder;if(b.results.users.length>0){d.append('<ul class="jive-chooser-list j-people-list clearfix">');for(var e=b.results.users,f=e.length,g=0;f>g;g++){var h=e[g];0==g&&(d.append('<li style="display: list-item;" class="assignee',h.disabled?' disabled':'',h.entitled?'':' notEntitled ','" data-user-id="',soy.$$escapeHtml(h.id),'" data-user-email="',soy.$$escapeHtml(h.email),'" data-user-name="',soy.$$escapeHtml(h.username),'">'),h.anonymous||h.external?d.append('<span class="jive-icon-glyph icon-envelope"></span>'):jive.shared.displayutil.avatar(soy.$$augmentMap(h,{size:20,hideLink:!0}),d),d.append('<span>',soy.$$escapeHtml(h.displayName),'</span>',h.anonymous||h.external?'':h.prop.isVisibleToPartner||h.prop.isPartner?'<span class="jive-icon-glyph icon-partner icon-eye" title="'+soy.$$escapeHtml(a._i18n('5e421a',[]))+'"></span>':'',b.disabled?'':'<em><a class="remove" href="javascript:;" style="display: inline;" title="'+soy.$$escapeHtml(a._i18n('ca1fdc',[]))+' '+soy.$$escapeHtml(h.displayName)+'"><span class="j-508-label">'+soy.$$escapeHtml(a._i18n('ca1fdc',[]))+' '+soy.$$escapeHtml(h.displayName)+'</span><span class="jive-icon-glyph icon-close2"></span></a></em>','</li>'))}d.append('</ul>')}else if(b.results.containers.length>0)for(var i=b.results.containers,j=i.length,k=0;j>k;k++){var l=i[k];0==k&&jive.UserPicker.soy.renderedContainer(soy.$$augmentMap(b,{container:l}),d)}return c?'':d.toString()},jive.UserPicker.soy.renderSelectedUser}),define('apps/userpicker/views/userpicker_view',['jquery','../../shared/views/abstract_view','../models/result_store','./select_people_view','./userpicker_message_view','./result_list_view','../../placepicker/views/container_browse_view','soy!jive.UserPicker.soy.inputPlaceholder','soy!jive.UserPicker.soy.renderModalBrowseButton','soy!jive.UserPicker.soy.renderModalPlaceBrowseButton','soy!jive.UserPicker.soy.renderSelectedUsersList','soy!jive.UserPicker.soy.renderSelectedUser','vendor/jquery/plugins/jquery.scrollTo','jquery-plugin/jquery.typeAhead','jquery-ui/jquery.ui.core','jive/namespace'],function(a,b){return jive.namespace('UserPicker'),jive.UserPicker.View=b.extend(function(b){jive.conc.observable(this),this.init=function(b,c){this.options=c;var d=this;this.$input=b,c.placeHolder?this.setPlaceholder(c.placeHolder):this.setPlaceholder(jive.UserPicker.soy.inputPlaceholder(c)),this.$input.attr('autocomplete','off'),this.$input.parents('form').attr('autocomplete','off'),c.emailAllowed&&!c.userAllowed&&this.$input.addClass('j-user-autocomplete-email'),this.urls={userAutocomplete:_jive_base_url+'/user-autocomplete.jspa'},this.changes={},this.selectPeopleView=new jive.UserPicker.SelectPeopleView,this.selectPlaceView=new jive.Placepicker.ContainerBrowseView({followLinks:!1,closeOnSelect:this.closeOnSelect,hideUserContainer:!0,includeShareContext:c.includeShareContext||!1}),this.selectionCallbacks=c.selectionCallbacks||[],this.messagesView=new jive.UserPicker.Messages(b,c),this.resultStore=new jive.UserPicker.ResultStore,this.showNoPicker=!1,this.selectedUsers=[],this.selectedLists=[],this.selectedContainers=[],this.excludedContainers=[],this.onSelected=this.onSelected.bind(this),b.addClass('jive-chooser-input jive-form-textinput-variable'),b.before('<input type=\'hidden\'/>'),this.$valueStore=b.prev(),this.$valueStore.attr('name',c.userParam||b.attr('name')),b.removeAttr('name'),this.$selected=a('<div class="jive-chooser-list j-result-list j-people-list clearfix"></div>'),this.options.resultListAllowed&&b.after(this.$selected.hide());var e=!1;c.canInvitePartners&&(e=c.canInvitePartners);var f=!1;c.canInvitePreprovisioned&&(f=c.canInvitePreprovisioned);var g=!1;c.invitePreprovisionedDomainRestricted&&(g=c.invitePreprovisionedDomainRestricted);var h=a('<div class="j-pop j-autocomplete j-menu j-quick-menu"></div>');this.chooserView=new jive.UserPicker.ResultListView({$chooser:h,$input:b,emailAllowed:c.emailAllowed,userAllowed:c.userAllowed,listAllowed:c.listAllowed,placeAllowed:c.placeAllowed,domains:c.domains,trial:c.trial,canInvitePartners:e,canInvitePreprovisioned:f,invitePreprovisionedDomainRestricted:g,onShow:function(a){b.data('typeAhead').setSuggestElement(a)},onHide:function(){b.data('typeAhead').updateAriaAttributes()}}),this.maxSelectedCount=c.maxSelectedCount,this.isRelationshipRestricted=!!c.relatedMessage,d.options.userAllowed&&0===c.filterIDs.length&&(d.$browse=a(jive.UserPicker.soy.renderModalBrowseButton({plural:d.options.multiple})),d.options.browseAllowed&&(b.after(d.$browse),d.$browse.click(function(a){a.preventDefault(),this.disabled=!0,d.loadBrowseModal(this)})),c.skillsEnabled&&require(['apps/userpicker/views/select_skill_view','soy!jive.UserPicker.soy.renderModalSkillSearchButton'],function(c,e){var f=new c,g=a(e());b.closest('.js-invitees').append(g),g.click(function(a){a.preventDefault(),d.options.closeFocusSelector=g,f.setOptions(d.options).addListener('select'+d.options.name,function(a){d.selectAction(a),g.focus()}).open()})})),d.options.placeAllowed&&d.options.browsePlaceAllowed&&(d.$browsePlace=a(jive.UserPicker.soy.renderModalPlaceBrowseButton()),d.$browse?(d.$browse.after(d.$browsePlace),d.$browsePlace.click(function(){d.loadPlaceBrowseModal()})):(b.after(d.$browsePlace),d.$browsePlace.click(function(){d.loadPlaceBrowseModal()}))),this.lastAjaxAsk='',b.typeAhead({keystrokeWait:600,itemSelector:'li:visible',selectedClass:'j-selected'}).on('selectionChosen',function(a,b,c){d.selectResult(c.children('a'))}).on('otherEnter',function(a,b){d.selectBestMatch(!1)}).on('keystroke.suggestBox',function(a){var c=b.val();c!=d.lastAjaxAsk&&(/[\|;,@]/.test(c)?d.handlePaste().then(function(){d.ajaxTheUserList()}):d.ajaxTheUserList())}).on('close',function(a){d.hideTheUserList(!0),a.stopPropagation()}).attr('aria-autocomplete','list'),this.typeAhead=b.data('typeAhead'),this.setSelectedUsers(d.options.startingUsers.users),this.setSelectedLists(d.options.startingUsers.userlists),this.setSelectedContainers(d.options.startingContainers),this.setExcludedContainers(d.options.excludedContainers)},b.selectAction=function(a){var b=this,c=a.users;if(b.changes={added:[]},c.length>0){var d=c.length;c.forEach(function(a){b.emitP('loadUser',a.userID).addCallback(function(a){d--,a&&!b.containsItem(b.selectedUsers,a)&&(b.changes.added.push(a),b.selectedUsers.push(a),b.refreshSelectedUserListDisplayAndHiddenInput()),0===d&&(b.selectPeopleView.close(),b.messagesView.showResultMessages(b.changes),b.emit('selectedUsersChanged',b.getSelectedUsersAndLists()))}).addErrback(function(){d--,0===d&&(b.selectPeopleView.close(),b.messagesView.showResultMessages(b.changes),b.emit('selectedUsersChanged',b.getSelectedUsersAndLists()))})})}},this.removeList=function(a,b){var c=this;if(a){var d;c.showNoPicker?c.selectedLists=c.selectedLists.map(function(e){return e.id==a&&(d=c.cloneList(e),e.excluded=b),e}):c.selectedLists=c.selectedLists.filter(function(b){return b.id==a&&(d=c.cloneList(b)),b.id!=a}),b&&d&&(c.changes={removed:d})}},this.removeUser=function(a,b,c){var d=this,e;a&&-1!=a?d.showNoPicker?d.selectedUsers=d.selectedUsers.map(function(b){return b.id==a&&(e=d.cloneUser(b),b.excluded=c),b}):d.selectedUsers=d.selectedUsers.filter(function(b){return b.id==a&&(e=d.cloneUser(b)),b.id!=a}):b&&(d.selectedUsers=d.selectedUsers.filter(function(a){return a.email==b&&(e=d.cloneUser(a)),a.email!=b})),c&&e&&(d.changes={removed:e})},this.removeContainer=function(a,b,c){var d=this;if(a&&b){var e;d.showNoPicker?d.selectedContainers=d.selectedContainers.map(function(f){return f.id==b&&f.type==a&&(e=d.cloneContainer(f),f.excluded=c),f}):d.selectedContainers=d.selectedContainers.filter(function(c){return c.id==b&&c.type==a&&(e=d.cloneContainer(c)),c.id!=b||c.type!=a}),c&&e&&(d.changes={removed:e})}},b.setPlaceholder=function(a){this.$input.attr('placeholder',a),this.$input.placeHeld&&this.$input.placeHeld()},b.refreshSelectedUserListDisplayAndHiddenInput=function(){var b=this,c=[],d=[],e=[],f=!0,g=!0,h=!1;if(a(b.selectedUsers).each(function(a,e){f=f&&e.entitled,e.prop.hasConnection='undefined'!=typeof e.prop&&'undefined'!=typeof e.prop.hasConnection?e.prop.hasConnection:!0,e.prop.isVisibleToPartner='undefined'!=typeof e.prop&&'undefined'!=typeof e.prop.isVisibleToPartner?e.prop.isVisibleToPartner:!1,g=g&&e.prop.hasConnection,b.containsItem(c,e)||e.excluded||(b.inSelectedCountLimit(d)?(c.push(e),-1==e.id?d.push(e.email):b.options.valueIsUsername?d.push(e.username):d.push(e.id)):(b.removeUser(e.id,e.email,!1),h=!0))}),a(b.selectedLists).each(function(e,i){if(!i.excluded){var j=!0;a(i.users).each(function(a,e){j=j&&e.entitled,e.prop.hasConnection='undefined'!=typeof e.prop&&'undefined'!=typeof e.prop.hasConnection?e.prop.hasConnection:!0,g=g&&e.prop.hasConnection,b.containsItem(c,e)||(b.inSelectedCountLimit(d)?(c.push(e),-1==e.id?d.push(e.email):b.options.valueIsUsername?d.push(e.username):d.push(e.id)):(b.removeUser(e.id,e.email,!1),h=!0))}),i.entitled=j,f=f&&j}}),a(b.selectedContainers).each(function(a,c){c.excluded||b.containsItem(e,c)||b.containsItem(b.excludedContainers,c)||(b.inSelectedCountLimit(d)?(e.push(c),d.push(c.type+'-'+c.id)):(b.removeContainer(c.type,c.id,!1),h=!0))}),b.messagesView.togglePermissionMessage(f),b.messagesView.toggleRelatedMessage(g),b.messagesView.toggleLimitMessage(h),b.messagesView.hideResultMessages(),b.$valueStore.val(d.join(',')),b.selectedLists.length||b.selectedUsers.length||b.selectedContainers.length){b.options.multiple?b.$selected.html(jive.UserPicker.soy.renderSelectedUsersList({results:{users:b.selectedUsers,userlists:b.selectedLists,containers:b.selectedContainers},message:b.options.message,disabled:b.options.disabled,relationship:b.isRelationshipRestricted})).show():(b.$selected.html(jive.UserPicker.soy.renderSelectedUser({results:{users:b.selectedUsers,userlists:b.selectedLists,containers:b.selectedContainers},disabled:b.options.disabled})).show(),(b.selectedUsers.length||b.selectedContainers.length)&&(b.$input.hide(),b.$browse&&b.$browse.hide(),b.$browsePlace&&b.$browsePlace.hide()));var i;b.$selected.find('li').each(function(){i=a(this),i.find('a.showConnections').click(function(){var c=this,d=a.find('#listContents'+a(c).closest('li').data('list-id'));return a(d).popover({context:a(c),putBack:!0,destroyOnClose:!1,container:b.$selected.closest('.j-modal')}),!1}),i.find('em a.add, em a.remove').parent().click(function(c){var d=a(this).closest('li'),e=a('a.add, a.remove',this),f=e.hasClass('remove'),g=d.data('list-id'),h=d.data('user-id'),i=d.data('user-email'),j=d.data('container-id'),k=d.data('container-type');d.closest('.j-modal').find('.js-pop').remove(),g&&b.removeList(g,f),(h||i)&&b.removeUser(h,i,f),j&&k&&b.removeContainer(k,j,f),b.emit('selectedUsersChanged',b.getSelectedUsersAndLists()),b.refreshSelectedUserListDisplayAndHiddenInput(),c.preventDefault()})}),i&&b.$selected.find('ul').scrollTo(i)}else b.$selected.html(''),b.$selected.hide(),b.show();b.selectionCallbacks.forEach(function(a){a(b.$selected,b.selectedUsers,b.selectedLists)})},b.inSelectedCountLimit=function(a){return!this.maxSelectedCount||a.length<this.maxSelectedCount},b.selectResult=function(b){var c=this,d=b.data(),e=c.chooseResult(d);if(e){var f=e.prop&&e.prop.matchToken?e.prop.matchToken:a.trim(c.$input.val());if(c.$input.val(c.$input.val().replace(new RegExp(f+'([,;|\\s])?'),'')),c.lastAjaxAsk=c.$input.val(),c.$input.focus(),c.refreshSelectedUserListDisplayAndHiddenInput(),c.hideTheUserList(d.userEmail),3==e.objectType||53==e.objectType||e.archetype&&'containers'==e.archetype){var g={added:[e]};c.messagesView.showResultMessages(g)}}},b.chooseResult=function(a){var b=this,c;if(a.userId||a.userEmail){var d=b.resultStore.getUser(a.userId,a.userEmail);d&&!b.containsItem(b.selectedUsers,d)&&(b.selectedUsers.push(d),b.changes={added:d},b.emit('selectedUsersChanged',b.getSelectedUsersAndLists()),c=d)}else if(a.listId){var e=b.resultStore.getList(a.listId);e&&!b.containsItem(b.selectedLists,e)&&(b.selectedLists.push(e),b.changes={added:e},b.emit('selectedUsersChanged',b.getSelectedUsersAndLists()),c=e)}else if(a.containerId&&a.containerType){var f=b.resultStore.getContainer(a.containerType,a.containerId);f&&b.containsItem(b.excludedContainers,f)&&(f.alreadyLinkedToPlace=!0),f&&!b.containsItem(b.selectedContainers,f)&&(b.selectedContainers.push(f),b.changes={added:[f]},b.emit('selectedUsersChanged',b.getSelectedUsersAndLists()),c=f)}return c},b.containsItem=function(b,c){var d=!1;return a(b).each(function(a,b){d=-1==c.id?d||jive.util.equalsIgnoreCaseAndPadding(b.email,c.email):d||b.id==c.id&&b.objectType==c.objectType&&(!c.type||b.type==c.type)}),d},b.cloneUser=function(a){return{displayName:a.displayName,id:a.id,anonymous:a.anonymous,external:a.external,enabled:a.enabled,visible:a.visible,objectType:a.objectType,username:a.username,email:a.email,entitled:a.entitled,prop:{hasConnection:'undefined'!=typeof a.prop&&'undefined'!=typeof a.prop.hasConnection?a.prop.hasConnection:!0,isVisibleToPartner:'undefined'!=typeof a.prop&&'undefined'!=typeof a.prop.isVisibleToPartner?a.prop.isVisibleToPartner:!1},avatarID:a.avatarID,excluded:'undefined'!=typeof a.excluded?a.excluded:!1,disabled:'undefined'!=typeof a.disabled?a.disabled:!1}},b.cloneList=function(b){var c=this,d={displayName:b.displayName,id:b.id,objectType:b.objectType,style:b.style,users:[],excluded:'undefined'!=typeof b.excluded?b.excluded:!1};return a(b.users).each(function(a,b){d.users.push(c.cloneUser(b))}),d},b.cloneContainer=function(a){return{subject:a.subject,id:a.id,type:a.type,iconCss:a.iconCss,excluded:'undefined'!=typeof a.excluded?a.excluded:!1}},this.shiv=function(a){return'undefined'!=typeof innerShiv?innerShiv(a):a},this.setSelectedUsers=function(b){b||(b=[]);var c=this;a(b).each(function(a,b){c.containsItem(c.selectedUsers,b)||c.selectedUsers.push(c.cloneUser(b))});for(var d=0;d<c.selectedUsers.length;d++)c.containsItem(b,c.selectedUsers[d])||(c.selectedUsers.splice(d,1),d--);this.refreshSelectedUserListDisplayAndHiddenInput()},this.setSelectedLists=function(b){b||(b=[]);var c=this;a(b).each(function(a,b){c.containsItem(c.selectedLists,b)||c.selectedLists.push(c.cloneList(b))});for(var d=0;d<this.selectedLists.length;d++)c.containsItem(b,c.selectedLists[d])||(this.selectedLists.splice(d,1),d--);this.refreshSelectedUserListDisplayAndHiddenInput()},this.setSelectedContainers=function(b){b||(b=[]);var c=this;a(b).each(function(a,b){c.containsItem(c.selectedContainers,b)||c.selectedContainers.push(c.cloneContainer(b))});for(var d=0;d<this.selectedContainers.length;d++)c.containsItem(b,c.selectedContainers[d])||(this.selectedContainers.splice(d,1),d--);this.refreshSelectedUserListDisplayAndHiddenInput()},this.setExcludedContainers=function(b){b||(b=[]);var c=this;a(b).each(function(a,b){c.containsItem(c.excludedContainers,b)||c.excludedContainers.push(c.cloneContainer(b))})},this.getSelectedUsersAndLists=function(b){var c=this,d=a.merge([],this.selectedUsers);return b&&c.selectedLists.forEach(function(a){a.users.forEach(function(a){c.containsItem(d,a)||d.push(a)})}),{users:d,userlists:this.selectedLists,containers:this.selectedContainers,changes:this.changes}},this.val=function(){return this.$valueStore.val()},b.hideTheUserList=function(a){this.chooserView.hide(),a||this.$input.val('')},b.ajaxTheUserList=function(){return this.lastAjaxAsk!=this.$input.val()&&this.$input.val().length?this.$input.val().length>1&&(this.lastAjaxAsk=this.$input.val(),this.emit('autocompleteRequest',this.lastAjaxAsk.replace(';','|'))):this.lastAjaxAsk.length&&this.$input.val().length&&this.chooserView.show(),this.$input.val&&0!==this.$input.val().length||this.chooserView.hide(),!0},b.isEmptyInput=function(){return 0===a.trim(this.$input.val()).length},b.selectBestMatch=function(b){var c=this,d,e=a.trim(this.$input.val());if(e&&e.length>0){if(d=c.typeAhead.getSelectable(),1==d.length)return d=d.find('a:first'),c.selectResult(d),!1;if(c.isValidEmailAddress(e.toLowerCase()))return d=this.typeAhead.getSelected().children('a'),jive.util.equalsIgnoreCaseAndPadding(d.data('user-email'),e)&&c.selectResult(d),!1;if(b)return d=c.chooserView.findNameMatches(e),1==d.length&&c.selectResult(d),!1}return!0},b.handlePaste=function(){var b=this,c={context:a('.j-user-input-typeahead')};return b.showSpinner(c),b.emitP('batchRequest',a.trim(b.$input.val()).replace(/;/g,'|')).always(function(){b.hideSpinner(c)}).then(function(a){if(a.users){b.resultStore.storeResults(a);var c=[],d=b.$input.val().split(new RegExp(/[\|;,]+/)),e=b.$input.val();d.forEach(function(d){var f=d.trim(),g=b.tokenMatchesOneUser(a.users,f);if(1===g.length){var h=b.chooseResult({userId:g[0].id,userEmail:g[0].email});if(h){c.push(h);var i=new RegExp(d+'([,;|\\s])?','g'),j=new RegExp('[,;|\\s]$');e=e.replace(i,''),e=e.replace(j,'')}}}),b.$input.val(e),b.refreshSelectedUserListDisplayAndHiddenInput(),c.length&&(b.changes={added:c[0],pasted:c},b.messagesView.showResultMessages(b.changes)),a.limitExceeded&&b.messagesView.toggleLimitMessage(!0)}})},b.tokenMatchesOneUser=function(a,b){var c=this,d=[];return _.filter(a,function(a){c.matchUserName(a,b)?d.push(a):c.matchEmail(a,b)?d.push(a):c.matchDisplayName(a,b)&&d.push(a)}),d},b.matchEmail=function(a,b){return'email'==a.prop.matchType&&jive.util.equalsIgnoreCaseAndPadding(b,a.email)},b.matchUserName=function(a,b){return jive.util.equalsIgnoreCaseAndPadding(b,a.username)},b.matchDisplayName=function(a,b){return jive.util.equalsIgnoreCaseAndPadding(b,a.displayName)},b.onSelected=function(a){this.selectAction(a),this.$browse.focus()},b.loadBrowseModal=function(a){var b=this;return b.options.closeFocusSelector=b.$browse,b.selectPeopleView.setOptions(b.options).removeListener('select'+b.options.name,this.onSelected).addListener('select'+b.options.name,this.onSelected).open(function(){a.disabled=!1}),!1},b.loadPlaceBrowseModal=function(){var a=this;a.emit('browsePlace')},this.setCanInvitePartners=function(a){this.options.canInvitePartners=a,this.refreshSelectedUserListDisplayAndHiddenInput()},this.setDisabled=function(a){this.options.disabled=a,this.refreshSelectedUserListDisplayAndHiddenInput()},this.hide=function(){this.$input.hide(),this.$browse&&this.$browse.hide()},this.show=function(){this.showNoPicker?this.hide():(this.$input.show(),this.$browse&&this.$browse.css('display','inline-block'))},this.setNoPicker=function(a){console.log('setting user picker to be fake read only: '+a),this.showNoPicker=a,this.show()},this.autocompleteResponse=function(a){var b=this;b.resultStore.storeResults(a),b.chooserView.render(a)},this.selectPlace=function(a){var b=this;a&&b.containsItem(b.excludedContainers,a)&&(a.alreadyLinkedToPlace=!0),a&&!b.containsItem(b.selectedContainers,a)&&(b.selectedContainers.push(a),b.changes={added:[a]},b.emit('selectedUsersChanged',b.getSelectedUsersAndLists()),b.refreshSelectedUserListDisplayAndHiddenInput(),b.messagesView.showResultMessages(b.changes))},b.isValidEmailAddress=function(a){return a.match('^([\\w\\.!#$%&*\\+/?\\^`{}\\|~_\'=-]+)@([\\w\\.-]+)\\.([\\w\\.-]+)$')},this.remove=function(){this.messagesView.hideResultMessages()}}),jive.UserPicker.View}),define('apps/userpicker/main',['jquery','jiverscripts/oo/class','jiverscripts/conc/observable','./models/userpicker_source','./views/userpicker_view','apps/placepicker/models/search_containers_source','apps/placepicker/main','jive/namespace'],function(a,b,c,d,e,f,g){
jive.namespace('UserPicker');var h={startingUsers:{users:[],userlists:[]},multiple:!1,emailAllowed:!1,userAllowed:!0,listAllowed:!1,browseAllowed:!0,resultListAllowed:!0,disabled:!1,valueIsUsername:!1,document:a(document),canInvitePartners:!1,canInviteJustPartners:!1,canInvitePreprovisioned:!1,invitePreprovisionedDomainRestricted:!1,placeAllowed:!1,startingContainers:[],browsePlaceAllowed:!1,containerType:null,containerID:null,object:null,entitlement:'VIEW',name:'',$input:null,existingModal:{modalContainer:'',prevContainer:'',browseContainer:''},filterIDs:[],maxSelectedCount:100,placeHolder:null};jive.UserPicker.Main=b.extend(function(b){c(this),this.init=function(b){var c=this;c.options=a.extend({},h,b),c.options.view||(c.options.view=new e(c.options.$input,c.options)),c.options.model||(c.options.model=new d(a.extend(c.options,{resultLimit:c.options.maxSelectedCount}))),c.options.place_model||(c.options.place_model=new d(a.extend(c.options,{resultLimit:c.options.maxSelectedCount}))),c.options.placeAllowed&&(c.options.place_picker||(c.options.place_picker=new g({pickerContext:c.options.placePickerContext||'move',objectType:c.options.object?c.options.object.objectType:null,objectID:c.options.object?c.options.object.objectID:null,containerType:c.options.containerType,containerID:c.options.containerID,followLinks:!1,closeOnSelect:!0,hideUserContainer:!0,includeShareContext:c.options.includeShareContext||!1,placeAllowed:!0,allowedContainerIds:c.options.allowedContainerIds})),c.options.placepicker_source||(c.options.placepicker_source=new f)),!b.placeHolder&&b.$input.attr('placeholder')&&(c.options.placeHolder=b.$input.attr('placeholder')),this.options.view.addListener('autocompleteRequest',function(b){var d=new a.Deferred,e=new a.Deferred;c.options.placeHolder&&b==c.options.placeHolder||(c.options.model.autocomplete(b).addCallback(function(a){d.resolve(a)}),c.options.placeAllowed?c.options.placepicker_source.findAll({query:b,contentType:c.options.contentType||c.options.object.objectType,contentID:c.options.contentID||c.options.object.objectID,includeShareContext:!0,excludedContainerType:c.options.containerType,excludedContainerID:c.options.containerID,existingRelationshipID:c.options.existingRelationshipID||-1,allowedContainerIds:c.options.allowedContainerIds}).addCallback(function(a){a=c.options.includeShareContext?c.allowedToShare(!0,a):c.allowedToContribute(!0,a),e.resolve(a)}):e.resolve(),a.when(d,e).done(function(a,b){if('object'!=typeof b&&(b={containers:[]}),'object'==typeof a){var d=_.extend(b,a);c.options.view.autocompleteResponse(d)}}))}),this.options.view.addListener('batchRequest',function(a,b){c.options.model.autocomplete(a).addCallback(function(a){'object'==typeof a?b.emitSuccess(a):b.emitSuccess({})}).addErrback(function(a){b.emitError(a)})}),this.options.view.addListener('loadUser',function(a,b){c.options.model.load(a).addCallback(function(a){b.emitSuccess(a)}).addErrback(function(a){b.emitError(a)})}),this.options.view.addListener('browsePlace',function(){c.options.place_picker.showPicker()}),this.options.view.addListener('selectedUsersChanged',function(a){c.emit('selectedUsersChanged',a)}),c.options.place_picker&&c.options.place_picker.addListener('container',function(a){c.options.view.selectPlace({id:a.targetContainerID,type:a.targetContainerType,subject:a.targetContainerName,iconCss:a.iconCss,alreadyLinkedToPlace:a.alreadyLinkedToPlace,archetype:'containers'})})},this.setDisabled=function(a){this.options.view.setDisabled(a)},this.setCanInvitePartners=function(a){this.options.view.setCanInvitePartners(a)},this.setUsers=function(a){this.options.view.setSelectedUsers(a)},this.setLists=function(a){this.options.view.setSelectedLists(a)},this.hide=function(){this.options.view.hide()},this.show=function(){this.options.view.show()},this.val=function(){return this.options.view.val()},this.getSelectedUsersAndLists=function(a){var b=this.options.view.getSelectedUsersAndLists(a);return b.changes={},b},this.setNoPicker=function(a){this.options.view.setNoPicker(a)},this.reset=function(){this.options.view.setSelectedUsers(this.options.startingUsers.users),this.options.view.setSelectedLists(this.options.startingUsers.userlists),this.options.view.setSelectedContainers(this.options.startingContainers)},this.teardown=function(){this.options.view.remove()},b.allowedToShare=function(a,b){var c=['prop','perms','allowedToShare'];return this.allowedTo(c,a,b)},b.allowedToContribute=function(a,b){var c=['prop','perms','allowedToContribute'];return this.allowedTo(c,a,b)},b.allowedTo=function(b,c,d){var e=d.containers.filter(function(a){var d=b.reduce(function(a,b){return'undefined'==typeof a[b]||a[b]},a);return d==c});return a.extend({},d,{containers:e})}});var i=new d(a.extend(h,{resultLimit:h.maxSelectedCount}));return jive.UserPicker.Main.loadUser=function j(a){return i.load(a)},jive.UserPicker.Main}),define('soy!jive.apps.container.blockingAlertView',['soyDeps'],function(a){return jive.namespace.call(this,'jive.apps.container'),jive.apps.container.blockingAlertView=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div id="app-blocking-alert-container" class="j-app-modal-content j-pop-main j-app-alert"><div id="app-blocking-alert-detail"></div><div class="j-modal-footer"><button id="j-app-blocking-alert-submit" type="submit" class="j-btn-callout">Submit</button><button id="j-app-blocking-alert-cancel" type="submit" class="j-btn-global">Cancel</button></div></div>'),b?'':c.toString()},jive.apps.container.blockingAlertView}),define('soy!jive.apps.container.renderMessage',['soyDeps'],function(a){return jive.namespace.call(this,'jive.apps.container'),jive.apps.container.renderMessage=function(a,b){var c=b||new soy.StringBuilder;return c.append('<span>',soy.$$escapeHtml(a.message),'</span>'),b?'':c.toString()},jive.apps.container.renderMessage}),define('soy!jive.i18n.keys.appframeworkAppDevelopmentRefresh',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.appframeworkAppDevelopmentRefresh=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('799bf9',[]))),c?'':d.toString()},jive.i18n.keys.appframeworkAppDevelopmentRefresh}),define('soy!jive.i18n.keys.appframeworkAppConfigureCancel',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.appframeworkAppConfigureCancel=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('3a1991',[]))),c?'':d.toString()},jive.i18n.keys.appframeworkAppConfigureCancel}),define('soy!jive.i18n.keys.appframeworkAppConfigureSuccess',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.appframeworkAppConfigureSuccess=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('7827a6',[]))),c?'':d.toString()},jive.i18n.keys.appframeworkAppConfigureSuccess}),define('soy!jive.i18n.keys.appframeworkAppConfigureFailure',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.appframeworkAppConfigureFailure=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('b47d95',[]))),c?'':d.toString()},jive.i18n.keys.appframeworkAppConfigureFailure}),define('soy!jive.i18n.keys.errorGeneral',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.errorGeneral=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('8389b4',[]))),c?'':d.toString()},jive.i18n.keys.errorGeneral}),define('jive/app/core_container/views/appscontainer_view',['jquery','jive/app/configure/main','jive/app/placepicker/main','jive/app/alert/main','osapi','apps/userpicker/main','soy!jive.apps.container.blockingAlertView','soy!jive.apps.container.renderMessage','soy!jive.i18n.keys.appframeworkAppDevelopmentRefresh','soy!jive.i18n.keys.appframeworkAppConfigureCancel','soy!jive.i18n.keys.appframeworkAppConfigureSuccess','soy!jive.i18n.keys.appframeworkAppConfigureFailure','soy!jive.i18n.keys.errorGeneral','vendor/jquery/plugins/jquery.browser'],function(a,b,c,d,e){return jive.AbstractView.extend(function(f){jive.conc.observable(this);var g={};this.getEmbeddedContext=function(a){return g[a]},this.setEmbeddedContext=function(a,b){g[a]=b},this.deleteEmbeddedContext=function(a){delete g[a]},this.prepareMarketContext=function(a){return g['market-app']={target:{type:'embed'},jive:a},{embeddedID:'market-app'}},this.init=function(a,b){this.commonContainer=a,this.options=b,this.bounds={maxWidth:1200,maxHeight:1200,minWidth:350,minHeight:150},this.addListener('app.apply.alert',this.handleAppAlert)},this.render=function(){},this.handleAppsMarketInstall=function(){},this.renderApp_=function(b,c,e,f){var g=this;if(b){var h=new d(c,a(b.el_));if(h.hasBlockingAlerts())g.emit('app.apply.alert',h);else{var i=this.createRenderParams_(c),j=c.appURL,k=e||function(){},l=f||{};this.commonContainer.navigateGadget(b,j,l,i,k)}}},this.renderAppEE_=function(a,b,c,e,f){var g=new d(b,a);if(g.hasBlockingAlerts())return this.emit('app.apply.alert',g),!1;var h=b.appURL||'';return this.getAppFeatures(h,function(d){if(d.error){var g={};return e(g,{error:d.error}),void 0}this.renderAppEE_impl(a,b,c,d,e,f)}),!0},this.renderAppEE_impl=function(a,b,c,d,g,h){c=c||{};var i=this.isOpenSocialFeatureRequired('2.5',d||{},'embedded-experiences'),j=f.constructEEDataModel(b,c);i&&(c=f.constructOpenSocialEEContext(c),c.appContext&&(j.context=c.appContext));var k=this.createRenderParams_(b),l=g||function(){},m=h||{},n={};n[e.container.ee.RenderParam.GADGET_RENDER_PARAMS]=k,n[e.container.ee.RenderParam.GADGET_VIEW_PARAMS]=m,this.commonContainer.ee.navigate(a,j,n,l,c.containerContext)},f.constructOpenSocialEEContext=function(a){var b={};return a.jive&&a.jive.content&&(b.containerContext={},b.containerContext[e.container.ee.Context.ASSOCIATED_CONTEXT]={},b.containerContext[e.container.ee.Context.ASSOCIATED_CONTEXT]=a.jive.content),a&&a.target&&a.target.context&&(b.appContext=a.target.context),b},f.constructEEDataModel=function(a,b){var c=a.appURL,d=a.view,f={};if(f.gadget=c,f.context=b,b&&(b.target||b.display)){var g=b.display||{},h=b.target||{};h.type&&'embed'===h.type&&(h.type=e.container.ee.TargetType.GADGET),f[e.container.ee.DataModel.PREFERRED_EXPERIENCE]={display:g,target:h},b.target&&!b.target.hasOwnProperty('view')&&(b.target.view=a.view)}return f},this.computeAppDimensions=function(a,b){var c;b&&(c=b.replace('.','_'));var d=c&&a.heightByView&&a.heightByView[c]||a.height||a.actionHeight,e=c&&a.widthByView&&a.widthByView[c]||a.width||a.actionWidth,f=!1;return 9999===d&&9999===e&&(f=!0),{height:d,width:e,isMaximum:f}},f.createRenderParams_=function(a){var b=e.container.RenderParam,c={},d=a.view;c[b.VIEW]=d;var f=this.computeAppDimensions(a,d);return c[b.HEIGHT]=f.height,c[b.WIDTH]=f.width,c[b.USER_PREFS]=a.userPrefs,window.__JAF_DEBUG||(c[b.NO_CACHE]=a.hasOwnProperty(b.NO_CACHE)?a.nocache:!1),c},this.getRealTitle=function(a,b){var c='';return(a.title||b)&&a.actionLabel?c=(b?b:a.title)+' : '+a.actionLabel:a.title||b?c=b?b:a.title:a.actionLabel&&(c=a.actionLabel),c},this.getAppFeatures=function(a,b){var c=this;this.commonContainer.preloadGadget(a,function(d){if(!d[a]||d[a].error)b.call(c,{error:d[a].error});else{var e={},f=d[a].modulePrefs;f&&f.features&&(e=f.features),b.call(c,e)}})},this.isOpenSocialFeatureRequired=function(b,c,d){var e='opensocial-'+b,f=c[e]||null;if(f&&f.required)return!0;if(d){var g=c[d]||null;if(g&&g.params.specificationVersion){var h=g.params.specificationVersion;if(h=a.trim(h.toString()),h.length>b.length&&(h=h.substring(0,b.length)),h===b)return!0}}return!1},this.sendNotification=function(b){b=b||{};var c=b.message,d=b.severity||'info';'undefined'!=typeof c&&a('<p/>').text(c).message({style:d})},this.setTitle=function(){},this.maximizeApp=function(){},this.reload=function(){},this.closeApp=function(){},this.resizeContainerHeight=function(){},this.resizeContainerWidth=function(){},this.requestNavigateTo=function(){},this.scrollIntoView=function(){},this.handleAppAlert=function(a){},this.initPlacePicker=function(a,b){var d=new c(a);d.showPicker(b)},this.initUserPicker=function(b,c){var d={multiple:!1};b=a.extend(d,b);var e=new jive.UserPicker.SelectPeopleView,f=function(a){e.close(),c(a)};e.setOptions(b).addListener('select',f).open()},this.initUnifiedPicker=function(a,b){require(['apps/autosearch/lightbox'],function(c){new c(a).addListener('chosen',function(a){b({type:a.type,id:a.id,ref:a.resources.self.ref})}).addListener('cancel',function(){b()})})},this.invokeCredentials=function(){},this.destroyCredentials=function(){},this.invokeSettings=function(){},this.destroySettings=function(){},this.closeModal=function(a){},this.setModalTitle=function(a){f.setWhichModalTitle(),whichTitle.text(a)},f.setWhichModalTitle=function(){var b='.js-app-title-main',c=a('.js-app-title > *');whichTitle=b?c.filter(b):null},this.refresh=function(){this.emit('app.reload'),this.displayRefreshMsg(!0)},this.displayRefreshMsg=function(a,b){var c=a?'info':'error',d=a?jive.i18n.keys.appframeworkAppDevelopmentRefresh():jive.i18n.keys.errorGeneral(),e=jive.apps.container.renderMessage({message:d});this.sendNotification({message:e,severity:c})},this.handleConfigurationDialog=function(c,d){var e=this,f=c.getApp(),g=a(jive.apps.container.blockingAlertView());f.configurationError&&(g.find('#j-app-blocking-alert-submit').hide(),g.find('#j-app-blocking-alert-cancel').addClass('j-btn-callout'));var h=new b({app:f,domTarget:g.find('#app-blocking-alert-detail')});h.addListener('app.service.wire.cancel',function(b){a('#j-app-blocking-alert-cancel').click(function(){var b=jive.apps.container.renderMessage({message:jive.i18n.keys.appframeworkAppConfigureCancel()});e.sendNotification({severity:'warn',message:b}),a('.j-modal-close-top').click()})}),h.addListener('app.service.wire.submit',function(b){a('#j-app-blocking-alert-submit').click(b.callback)}),h.addListener('app.configure.success',function(){var a=jive.apps.container.renderMessage({message:jive.i18n.keys.appframeworkAppConfigureSuccess()});e.sendNotification({severity:'info',message:a}),d&&d.configureCallback&&d.configureCallback(!0),e.emit('app.reload',!1)}),h.addListener('app.configure.failed',function(){var a=jive.apps.container.renderMessage({message:jive.i18n.keys.appframeworkAppConfigureFailure()});e.sendNotification({severity:'error',message:a}),d&&d.configureCallback&&d.configureCallback(!1)}),a('#j-app-modal-parent iframe').css({display:'none'}),a('#j-app-modal-parent').append(g)},this.resizeModal=function(a,b,c){},this.restoreChromeNav=function(){},this.hideChromeNav=function(){},this.getRenderedApp=function(){},this.getMaximumHeight=function(){},this.getMaximumWidth=function(){},this.boundedHeight=function(a){a=(a+'').match(/\d+/)[0]/1;var b=Math.min(Math.max(a,this.bounds.minHeight),this.bounds.maxHeight);return b},this.boundedWidth=function(a){a=(a+'').match(/\d+/)[0]/1;var b=Math.min(Math.max(a,this.bounds.minWidth),this.bounds.maxWidth);return b},f.delayedRunner=function(a,b,c){var d=(new Date).getTime(),e=window.setInterval(function(){var b=(new Date).getTime();(b-d>1500||c())&&(a(),window.clearInterval(e))},b)},f.recenter=function(b,c){c=!(a.browser.msie&&a.browser.version<9)&&c;var d=b.height(),e=b.width();b.css({position:'fixed',top:'50%',marginTop:b.outerHeight()/-2,left:'50%',marginLeft:b.outerWidth()/-2}),c?b.animate({marginLeft:e/-2,marginTop:d/-2},{duration:300,queue:!1}):b.css({marginLeft:e/-2,marginTop:d/-2},{duration:300,queue:!1})}})}),define('jive/app/core_container/views/modal_comment_provider',['jquery','jiverscripts/conc/observable'],function(a,b){function c(){var b={type:'osapi.jive.core.Comment'},c={type:'osapi.jive.core.Message'},d=this;this.commentContext=null,this.activityStreamContext=null,this.getCommentContext=function(){return this.commentContext},this.getActivityStreamContext=function(){return this.activityStreamContext},this.getInboxEntryContext=function(){return this.activityStreamContext};var e=function(c){var d={content:{}};return a.extend(d.content,c,b),d.content.inReplyTo&&a.extend(d.content.inReplyTo,b),d};this.setCommentContext=function(a){d.commentContext=e(a)};var f=function(b){var d={content:{}};return a.extend(d.content,{id:0},c),b.isReply&&(a.extend(d.content,{inReplyTo:{id:b.parentMessageId}}),d.content.parent=b.parent),d.content.inReplyTo&&a.extend(d.content.inReplyTo,c),d};this.setDiscussionContext=function(a){d.commentContext=f(a)};var g=function(a){var b='osapi.jive.core.Unsupported('+a+')';switch(a){case 2:case'2':b='osapi.jive.core.Discussion';break;case 38:case'38':b='osapi.jive.core.Post';break;case 102:case'102':b='osapi.jive.core.Document';break;case 105:case'105':b='osapi.jive.core.Comment'}return b};this.setActivityStreamContext=function(a){var b;switch(a.objectType){case'2':b=f({discussionId:a.parent.jiveObject.id,parentMessageId:a.objectID,isReply:!0,parent:{id:a.parent.jiveObject.threadID,type:g(a.objectType)}});break;case'18':b=e({id:0,parent:{id:a.parent.jiveObject.id,type:g(a.objectType)}});break;case'38':b=e({id:0,parent:{id:a.parent.jiveObject.id,type:g(a.objectType)}});break;case'102':b=e({id:0,parent:{id:a.parent.jiveObject.id,type:g(a.objectType)}});break;case'105':b=e({id:0,inReplyTo:{id:a.objectID,type:g(a.objectType)},parent:{id:a.parent.jiveObject.id,type:g(a.parent.jiveObject.objectType)}})}d.activityStreamContext=b}}return b(c.prototype),c}),define('jive/app/core_container/views/modalCommentProviderSingleton',['./modal_comment_provider'],function(a){return a.singleton||(a.singleton=new a),a.singleton}),define('jive/app/core_container/site_data',['osapi'],function(a){function b(a,b,c){return{mvcView:a,app:b,view:b.view,viewParams:c,getAppView:function(){return this.view},getActionInfo:function(){return this.actionInfo},setActionInfo:function(a){this.actionInfo=a},getGadgetMetaData:function(){return this.gadgetInfo},setGadgetMetaData:function(a){this.gadgetInfo=a},getEEContext:function(){return this.context},setEEContext:function(a){this.context=a,a&&a.target&&a.target.view&&(this.view=a.target.view)},getSelection:function(){return this.selection},setSelection:function(a){this.selection=a},getLaunchContext:function(){return this.launchContext}}}return b.get=function(b){var c=b[a.container.GadgetSite.RPC_ARG_KEY];return c.jiveData},b}),define('soy!jive.apps.container.appModalHeader',['soyDeps'],function(a){return jive.namespace.call(this,'jive.apps.container'),jive.apps.container.appModalHeader=function(a,b){var c=b||new soy.StringBuilder;return c.append('<header><h2><img alt="" class="j-app-fav-icon" src="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(a.app.favIconSrc)),'" /> <span class="js-app-title"><span class="js-app-title-main"></span></span></h2></header>'),b?'':c.toString()},jive.apps.container.appModalHeader}),define('soy!jive.apps.container.chromeApp',['soyDeps','soy!jive.apps.container.appModalHeader'],function(a){return jive.namespace.call(this,'jive.apps.container'),jive.apps.container.chromeApp=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-pop jive-modal j-app-modal js-app-chrome" id="jive-modal-appAction"><!-- start chrome actions -->',b.app.appSettings?'<a id="jive-app-settings" href="#" data-appuuid="'+soy.$$escapeHtmlAttribute(b.app.appUUID)+'" class="j-modal-gear-top"><span class="jive-icon-med jive-glyph-gear-dkgray"></span></a>':'',b.app.developerRefreshURL?'<a href="#" data-appuuid="'+soy.$$escapeHtmlAttribute(b.app.appUUID)+'" data-endpoint="'+soy.$$escapeHtmlAttribute(b.app.developerRefreshURL)+'" class="j-modal-refresh-top"><span class="jive-icon-sml jive-glyph-refresh j-ui-elem"></span></a>':'','<a href="#" data-appuuid="',soy.$$escapeHtmlAttribute(b.app.appUUID),'" class="j-modal-back-top">Back</a><!-- end chrome actions -->'),jive.apps.container.appModalHeader(b,d),d.append('<label class="j-508-label" id="close-modal-508">',soy.$$escapeHtml(a._i18n('a94563',[])),'</label><a href="#" class="j-modal-close-top close" aria-labelledby="close-modal-508" title="',soy.$$escapeHtmlAttribute(a._i18n('a94563',[])),'"><span class="j-close-icon j-ui-elem" role="img"></span></a><div id="j-app-modal-parent" class="jive-modal-content j-pop-main"></div></div>'),c?'':d.toString()},jive.apps.container.chromeApp}),define('soy!jive.apps.container.unavailableAppView',['soyDeps'],function(a){return jive.namespace.call(this,'jive.apps.container'),jive.apps.container.unavailableAppView=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="jive-modal j-app-modal j-pop js-app-chrome" id="jive-canvas-modal" style="width: 300px;"><div class="j-modal-main j-pop-main"><div>',soy.$$escapeHtml(a._i18n('abd823',[])),'</div><button id="j-app-unavailable-cancel" type="submit" class="j-btn-global" style="float: right;">OK</button></div></div>'),c?'':d.toString()},jive.apps.container.unavailableAppView}),define('jive/app/core_container/views/modal_view',['jquery','./appscontainer_view','jive/app/alert/main','./modalCommentProviderSingleton','../site_data','apps/shared/controllers/localexchange','soy!jive.apps.container.chromeApp','soy!jive.apps.container.renderMessage','soy!jive.apps.container.unavailableAppView','soy!jive.i18n.keys.errorGeneral','jquery-plugin/jquery.lightbox_me','vendor/jquery/plugins/jquery.browser','vendor/jquery/plugins/jquery.ba-resize'],function(a,b,c,d,e,f){return b.extend(function(b,g){jive.conc.observable(this);var h={LINK:'app.link.run',RTE:'app.rte.run',CONTENT:'app.content.run',PROFILE:'app.profile.run'},i,j,k={width:0,height:0};this.init=function(b,c){g.init.call(this,b,c),this.commentContext=null,this.activityStreamContext=null,this.modalCommentProvider=d;var e=this;this.initClickHandler(),jive.localexchange.addListener('renderedContentWithSelector',function(a,b){e.checkForLoadTimeView()}),this.resizeToLatest=function(){k.width&&e.resizeContainerWidth(k.width,!1),k.height&&e.resizeContainerHeight(k.height,!1)},a(window).bind('resize',this.resizeToLatest),a(window).bind('scroll',function(){e.recenterModal(!1)});var i=null;e.appFrame={css:function(b,c){var d=b;(arguments.length=2)&&(d={},d[b]=c),i=a.extend(i||{},d)},animate:function(b){i=a.extend(i||{},b)},applyCSS:function(a){i&&a.css(i),i=null}},f.addListener('app.action.create.link',function(a){var b=(a.actionOriginEnum?h[a.actionOriginEnum]:null)||h.LINK;e.fireActionEvent(b,{actionId:a.actionId,appURL:a.appUrl,appInstanceUUID:a.appInstanceUuid,appUUID:a.appUuid,label:a.label,selectionType:a.selectionType,selectionID:a.selectionId,view:a.view})})},b.handleAppAlert=function(c){var d=c.getActiveAlert(),e=this;return e.hideChromeNav(),a('.j-modal-back-top').hide(),b.revokeStaticModalDimensions(),1e3==d.code||1010==d.code?(this.handleConfigurationDialog(c,{configureCallback:function(a){e.restoreChromeNav(),e.restoreStaticDimensions()}}),e.recenterModal(!1),void 0):(c.applyBlock(),e.recenterModal(!1),b.setStaticDimensions(650,280,!1),c.addListener('app.block',function(a){c.routeActionClicks(a,function(){e.handleConfigurationDialog(c)},function(){e.closeModal()},function(){e.closeModal();var a=jive.apps.container.renderMessage({message:jive.i18n.keys.errorGeneral()});e.sendNotification({severity:'error',message:a})},e)}),void 0)},this.documentReady=function(){this.checkForLoadTimeView()},this.getCommentContext=function(){return this.modalCommentProvider.getCommentContext()},this.getActivityStreamContext=function(){return this.modalCommentProvider.getActivityStreamContext()},this.getInboxEntryContext=function(){return this.modalCommentProvider.getInboxEntryContext()},this.getActionOriginEnum=function(){return h},this.handleCreateActionSelect=function(b,c){var d=b.data();this.fireActionEvent(c,{actionId:d.actionId,appURL:d.appUrl,appInstanceUUID:d.appInstanceUuid,appUUID:d.appUuid,label:a.trim(b.find('span.label').text()),selectionType:d.selectionType,selectionID:d.selectionID,view:d.view})},this.handleEditActionSelect=function(a,b){this.fireActionEvent(b,a)},b.fireActionEvent=function(a,b){this.emit(a,b)},this.handleEmbeddedView=function(b,c,d){var e=b;this.emit(c,{appUUID:e.attr('__appuuid'),isDevelopment:e.hasClass('j-apps-developerApp'),label:a.trim(e.text()),context:JSON.parse(e.attr('__context')||'{}'),view:e.attr('__view'),url:e.attr('__url')||'',embeddedID:d})},this.filterTitle=function(a,b){var c=(b?b:k.width)/8-9;return a=a.length>c?a.substring(0,c)+' ...':a,a},this.resetTitle=function(a,b){if(this.fullTitle||a||j){var c=this.fullTitle?this.fullTitle:this.getRealTitle(a?a:j.jiveData.app);c=this.filterTitle(c,b),this.setModalTitle(c)}},this.render=function(b,c,d,f,g,h){var l=this,m=f||function(){},n=h||{},o=c&&c.embeddedID?c.embeddedID:'',p=l.getEmbeddedContext(o),q=function(){l.resetTitle(b);var a=i.find('.jive-modal-content')[0];if(p&&p.target.type&&'embed'===p.target.type){var f=l.renderAppEE_(a,b,p,function(a,d){j=a,a.jiveData=new e(l,b,n),a.jiveData.setGadgetMetaData(d),a.jiveData.setActionInfo(c),a.jiveData.setEEContext(p),l.renderModalCallback(d,a,b,m),l.registerModalEventHandlers(),w&&l.recenterModal()},n);f||(j=l.commonContainer.newGadgetSite(a),j.jiveData=new e(l,b,n),j.jiveData.setSelection(d),j.jiveData.setActionInfo(c),j.jiveData.setEEContext(p))}else j=l.commonContainer.newGadgetSite(a),j.jiveData=new e(l,b,n),j.jiveData.setSelection(d),j.jiveData.setActionInfo(c),l.renderApp_(j,b,function(a){j.jiveData.setGadgetMetaData(a),l.renderModalCallback(a,j,b,m),l.registerModalEventHandlers(),w&&l.recenterModal()},n)};if(i)q(),this.restoreStaticDimensions();else{this.html=a(jive.apps.container.chromeApp({app:b}));var r=this.html.find('#j-app-modal-parent'),s=b.view;p&&p.target&&(s=p.target.view?p.target.view:'embedded');var t=this.computeAppDimensions(b,s),u=t.width,v=t.height,w=!0;u>0&&(w=!1,r.css({width:u+'px'}),this.html.css({width:u+'px'})),v>0&&(w=!1,r.css({height:v+'px'})),k.height=t.isMaximum?'max':v,k.width=t.isMaximum?'max':u,i=this.html.lightbox_me({closeSelector:'.close',destroyOnClose:!0,centered:!0,modalCSS:{top:'0px'},initialFocusSelector:'#jive-app-settings',onLoad:function(){jive.conc.nextTick(q.bind(l))},onClose:function(){i=null,l.closeApp_(!0,!0),l.rendered=!1,'function'==typeof g&&g()}})}},this.setTitle=function(a){this.fullTitle=a,this.setModalTitle(this.filterTitle(a))},b.registerModalEventHandlers=function(){var b=this;a('.j-modal-gear-top').unbind('click').click(function(c){b.hideChromeNav();var d=a(c.currentTarget).attr('data-appuuid');b.emit('app.services.show',d),c.preventDefault()}),a('.j-modal-refresh-top').unbind('click').click(function(a){b.emit('app.services.refresh',a.currentTarget),a.preventDefault()})},b.restoreChromeNav=function(){a('.j-modal-gear-top').show(),a('.j-modal-refresh-top').show(),a('.j-modal-back-top').hide()},b.hideChromeNav=function(){a('.j-modal-gear-top').hide(),a('.j-modal-refresh-top').hide(),a('.j-modal-back-top').show()},this.maximizeApp=function(){var a=this;this.resizeMax(!1)},this.resizeMax=function(a){this.resizeContainerHeight('max',a),this.resizeContainerWidth('max',a)},this.getRenderedApp=function(){return j?j.jiveData.app:null},this.reload=function(a){if(j){var b=j.jiveData;this.closeApp_(!1,!1),b.app.view=b.getAppView(),this.render(b.app,b.getActionInfo(),b.getSelection(),function(c){a(c,b.getActionInfo())},null,b.viewParams)}},this.closeModal=function(a){if(a=a||{},this.closeApp_(!0,!0),this.html.find('.close').click(),i=null,this.rendered=!1,'undefined'!=typeof a.navigateTo){var b=a.navigateTo;/^http(s)?\:\/\//i.test(b)||(b.startsWith('/')||(b='/'+b),b.startsWith(window._jive_base_url)||(b=window._jive_base_url+b)),window.location.href=b}},this.closeApp_=function(a,b){a&&this.emit('app.chrome.close'),j&&this.commonContainer.closeGadget(j),j=null,b&&(this.html.find('#j-app-modal-parent').css({width:'',height:''}),this.html.css({width:''}),k={width:0,height:0},this.appStaticDimensions=null,this.notPrimary=!1,this.fullTitle=null)},b.getChromeHeight=function(){if(!this.rendered)return 43;var a=this.html.outerHeight(),b=this.appFrame.height();return a-b},b.getChromeWidth=function(){if(!this.rendered)return 10;var a=this.html.outerWidth(),b=this.appFrame.width();return a-b},this.getMaximumHeight=function(){return a(window).height()-b.getChromeHeight()},this.getMaximumWidth=function(){return a(window).width()-b.getChromeWidth()},this.resizeContainerHeight=function(c,d){if(d=!(a.browser.msie&&a.browser.version<9)&&d,!this.notPrimary){'max'!==c&&c<this.bounds.minHeight&&(c=this.bounds.minHeight);var e=a('#j-app-modal-parent iframe').height();if(e!==c){'max'!==c&&c>this.bounds.maxHeight&&(c='max');var f=b.getChromeHeight(),g=this.bounds.minHeight,h=Math.round(.9*this.getMaximumHeight()),i='max'===c;i&&(c=h),k.height=i?'max':c;var j=this,l;d=d&&h/2>c,d?(a('#j-app-modal-parent')[d?'animate':'css']({height:c+'px'},{duration:100,queue:!1}),l=Math.min(Math.max(c,g),h),j.lastResizeTs=(new Date).getTime(),a(j.html).css('position','fixed').animate({top:'50%',marginTop:a(j.html).outerHeight()/-2},{duration:100,queue:!1}),a(j.html).animate({marginTop:l/-2-f/2},{duration:100,queue:!1}),j.appFrame.animate({height:l},{duration:100,queue:!1})):(a('#j-app-modal-parent').css({height:c+'px'}),l=Math.min(Math.max(c,g),h),j.lastResizeTs=(new Date).getTime(),a(j.html).css({position:'fixed',top:'50%',marginTop:a(j.html).outerHeight()/-2}),a(j.html).css({marginTop:l/-2-f/2}),j.appFrame.css({height:l}))}}},this.resizeContainerWidth=function(b,c){if(c=!(a.browser.msie&&a.browser.version<9)&&c,!this.notPrimary){'max'!==b&&b<this.bounds.minWidth&&(b=this.bounds.minWidth);var d=a('#j-app-modal-parent iframe').width();if(d!==b){'max'!==b&&b>this.bounds.maxWidth&&(b='max');var e=this.bounds.minWidth,f=Math.round(.95*this.getMaximumWidth()),g='max'===b;g&&(b=f),k.width=g?'max':b;var h=this,i=a(h.html).outerWidth();c?(a('#j-app-modal-parent, #jive-modal-appAction')[c?'animate':'css']({width:b+'px'},{duration:100,queue:!1}),modalWidth=Math.min(Math.max(b,e),f),h.lastResizeTs=(new Date).getTime(),a(h.html).css('position','fixed').animate({left:'50%',marginLeft:a(h.html).outerWidth()/-2},{duration:100,queue:!1}),a(h.html).animate({marginLeft:modalWidth/-2-4},{duration:100,queue:!1}),h.appFrame.animate({width:modalWidth},{duration:100,queue:!1}),h.resetTitle()):(a('#j-app-modal-parent, #jive-modal-appAction').css({width:b+'px'}),modalWidth=Math.min(Math.max(b,e),f),h.lastResizeTs=(new Date).getTime(),a(h.html).css({position:'fixed',left:'50%',marginLeft:i/-2}),a(h.html).css({marginLeft:modalWidth/-2-4}),h.appFrame.css({width:modalWidth}),h.resetTitle())}}},b.renderModalCallback=function(b,c,d,e){var f=this,g=e||function(){};if(b.error);else{var h=i.find('iframe');f.appFrame.applyCSS&&f.appFrame.applyCSS(h),f.appFrame=h,f.appFrame.removeData(),d.marketFeatureAvailable&&(f.appFrame.data('hasMarketFeature',!0),a('.j-modal-gear-top').hide()),9999===d.actionHeight&&9999===d.actionWidth?(f.appFrame.css({height:f.getMaximumHeight(),width:f.getMaximumWidth}),f.resetTitle()):d.actionHeight&&d.actionWidth&&f.appFrame.css({height:f.boundedHeight(d.actionHeight?d.actionHeight:0),width:f.boundedWidth(d.actionWidth)}),f.rendered=!0,g.call(f,c)}},this.requestNavigateTo=function(a,b,c,d,f){var g=this;a.view=c,b.jiveData=new e(g,a,d),this.renderApp_(b,a,function(c){g.renderModalCallback(c,b,a,f)},d)},this.scrollIntoView=function(b,c){var d=c||{},e=d.bottomOffset,f=null==d.verticalAlignment?'bottom':d.verticalAlignment,g=a('#'+b).parents('.js-app-chrome'),h;'top'===f?h=-8:'center'===f||'middle'===f?h=(20+g.height()-a(window).height())/2:isFinite(f)?h=Number(f):(e=isFinite(e)?Number(e):0,h=5-e+g.height()-a(window).height()),a.scrollTo(g,{duration:500,offset:{left:0,top:h}})},b.restoreAppIframe=function(){var c=this;this.html.find('.j-app-modal-content').remove(),b.restoreStaticDimensions(),a('#j-app-modal-parent iframe').css({display:'block'}),this.recenterModal(!1)},b.resizeModal=function(b,c,d){d=!(a.browser.msie&&a.browser.version<9)&&d;var e=this.html.find('.j-app-modal-content');this.html.css({position:'fixed',
top:'50%',marginTop:this.html.outerHeight()/-2,left:'50%',marginLeft:this.html.outerWidth()/-2}),this.html[d?'animate':'css']({marginLeft:c/-2,marginTop:b/-2},{duration:300,queue:!1}),e[d?'animate':'css']({width:c,height:b},{duration:300,queue:!1})},b.recenterModal=function(c){b.recenter(a('#jive-modal-appAction'),c)},this.invokeSettings=function(c){var d=this;b.invokeNonPrimarySurface(d,function(){b.revokeStaticModalDimensions(),d.hideChromeNav(),a('#j-app-modal-parent iframe').css({display:'none'});var e=c.createUI();a('#j-app-modal-parent').append(e),d.resizeModal(550,600,!1),d.resetTitle(null,500),c.activate()})},this.destroySettings=function(){this.notPrimary=!1,this.restoreChromeNav(),this.restoreAppIframe(),this.resetTitle()},this.invokeCredentials=function(c){var d=this;b.invokeNonPrimarySurface(d,function(){d.hideChromeNav(),b.revokeStaticModalDimensions(),a('#j-app-modal-parent iframe').css({display:'none'});var e=c.createUI();a('#j-app-modal-parent').append(e),a('.j-modal-back-top').hide(),d.resizeModal(200,540,!0),d.resetTitle(null,480),c.activate()})},this.destroyCredentials=function(){this.notPrimary=!1,this.restoreChromeNav(),this.restoreAppIframe(),this.resetTitle()},this.invokeOauthDance=function(d){var e=this;b.invokeNonPrimarySurface(e,function(){e.hideChromeNav(),b.revokeStaticModalDimensions(),a('#j-app-modal-parent iframe').css({display:'none'}),a('.j-modal-back-top').hide();var f=d.getApp(),g=new c(f),h={appTitle:f.title,code:2060,message:'',creator:'',errorMessage:'',iconSrc:f.iconSrc},i=a('#j-app-modal-parent'),j=g.applyBlock(i,f,h);e.recenterModal(!1),d.launch_popup(a(j)),d.addListener('popup.closed',function(){a(j).remove(),e.restoreChromeNav(),e.restoreAppIframe(),b.restoreStaticDimensions(),e.notPrimary=!1,d.invokeCallback()})})},b.invokeNonPrimarySurface=function(a,c){return a.notPrimary?!1:(a.notPrimary=!0,b.delayedRunner(c,150,function(){var b=(new Date).getTime();return!a.lastResizeTs||b-a.lastResizeTs>300}),void 0)},b.revokeStaticModalDimensions=function(b,c){b=!(a.browser.msie&&a.browser.version<9)&&b;var d=a('#j-app-modal-parent'),e=a('#jive-modal-appAction');this.appStaticDimensions={width:d.width()+'px',height:d.height()+'px'},d[b?'animate':'css']({width:'',height:''},300,c||function(){}),e[b?'animate':'css']({width:''},300)},b.restoreStaticDimensions=function(a,c){this.appStaticDimensions&&b.setStaticDimensions(this.appStaticDimensions.width,this.appStaticDimensions.height,a)},b.setStaticDimensions=function(b,c,d){d=!(a.browser.msie&&a.browser.version<9)&&d;var e=a('#j-app-modal-parent'),f=a('#jive-modal-appAction');d?(e.animate({width:b,height:c},300,callback||function(){}),f.animate({width:b},300)):(e.width(b).height(c),f.width(b))},b.initClickHandler=function(){var b=this;a(document).off('click.embeddedAppArtifact').on('click.embeddedAppArtifact','a.jive_macro_appEmbeddedView',function(c){var d=a(this);if(d.hasClass('j-apps-feature-disabled'))return c.preventDefault(),b.showAppUnavailable(),void 0;var e=b.buildEmbedContext(d),f=d.attr('__appuuid')||'',g=d.attr('__action_id')||'',i=d.attr('id')||String(Math.random());b.setEmbeddedContext(i,e),b.setEmbeddedContext('latest',e),36==f.length&&e.target&&'embed'==e.target.type&&(c.preventDefault(),b.handleEmbeddedView(d,h.CONTENT,i))})},this.checkForLoadTimeView=function(){var b=this.getEmbeddedExperienceToShowOnLoad();if(b){var c=a('#'+b).filter('a.jive_macro_appEmbeddedView');c.length&&jive.conc.nextTick(function(){c.click()})}},b.getEmbeddedExperienceToShowOnLoad=function(){if('undefined'==typeof this.embeddedExperienceToShowOnLoad){this.embeddedExperienceToShowOnLoad='';var a=/^#([a-zA-Z0-9_-]+)$/.exec(window.location.hash||'');a||(a=/[?&]ee=([a-zA-Z0-9_-]+)(&|$)/.exec(window.location.search)),this.embeddedExperienceToShowOnLoad=a?a[1]:null}return this.embeddedExperienceToShowOnLoad},b.buildEmbedContext=function(a){var b={},c=a.attr('__view')||a.attr('__context')?'embed':a.attr('href')?'url':'none';switch(c){case'embed':var d=a.attr('__view')||'embedded';b.target={type:'embed',view:d};var e=a.attr('__context');e&&(b.target.context=JSON.parse(e));break;case'url':b.target={type:'url',url:a.attr('href')}}var f=a.hasClass('jive-link-app-preview')?'image':'text';switch(f){case'image':var g=a.find('> img');b.display={type:'image',previewImage:g.attr('src')};var h=g.attr('title');h&&(b.display.label=h);break;case'text':b.display={type:'text',label:a.text()||''},a.hasClass('jive-link-app-icon')&&(b.display.icon=a.attr('__icon'))}return b.actionId=a.attr('__action_id')||'',b.jive=JSON.parse(a.attr('data-jive-context')||'{}'),b},this.computeAppDimensions=function(a,b){var c=g.computeAppDimensions.call(this,a,b),d=c.isMaximum,e=c.width,f=c.height;return d?(f=this.getMaximumHeight(),e=this.getMaximumWidth()):(e&&(e=this.boundedWidth(e)),f&&(f=this.boundedHeight(f))),e=e<this.bounds.minWidth?this.bounds.minWidth:e,f=f<this.bounds.minHeight?this.bounds.minHeight:f,{height:f,width:e,isMaximum:d}},this.showAppUnavailable=function(){var b=a(jive.apps.container.unavailableAppView());b.lightbox_me({closeSelector:'#j-app-unavailable-cancel',destroyOnClose:!0,centered:!0,modalCSS:{top:'0px',width:'300px'},initialFocusSelector:'#j-app-unavailable-cancel'})}})}),define('jive/app/core_container/navigate_app',['jiverscripts/oo/class'],function(a){return a.extend(function(a){var b={},c=/(\/apps\/)([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/,d=/(\/apps\/)([a-zA-Z0-9\/\-._]{1,120})/;this.init=function(a){},this.setCanvasToken=function(a){b=a},this.getCanvasToken=function(){return b},this.getCanvasAppInfoFromUrl=function(a){var b=a||window.location.pathname,e=c.exec(b);return null!==e?e[2]:(e=d.exec(b),null!=e?e[2]:null)},this.addActionQueueItemToViewParams=function(a){var b='undefined'!=typeof a&&null!==a?a:{},c=/&aq=([1-9]\d*)/.exec(window.location.search+' '+window.location.hash);if(c){var d=c[1];b.jive_aq=d}return b}})}),define('soy!jive.apps.container.canvasConfigurationModal',['soyDeps','soy!jive.apps.container.appModalHeader'],function(a){return jive.namespace.call(this,'jive.apps.container'),jive.apps.container.canvasConfigurationModal=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="jive-modal j-app-modal j-pop js-app-chrome" id="jive-canvas-modal">'),jive.apps.container.appModalHeader(b,d),d.append('<label class="j-508-label" id="close-modal-508">',soy.$$escapeHtml(a._i18n('a94563',[])),'</label><a href="#" class="j-modal-close-top close" aria-labelledby="close-modal-508" title="',soy.$$escapeHtmlAttribute(a._i18n('a94563',[])),'"><span class="j-close-icon j-ui-elem" role="img"></span></a><div id="j-app-modal-parent" class="jive-modal-content j-pop-main"></div></div>'),c?'':d.toString()},jive.apps.container.canvasConfigurationModal}),define('jive/app/core_container/views/embedded_view',['jquery','jiverscripts/conc/observable','./appscontainer_view','jive/app/alert/main','../navigate_app','../site_data','soy!jive.apps.container.canvasConfigurationModal','soy!jive.apps.container.renderMessage'],function(a,b,c,d,e,f){return c.extend(function(b,c){jive.conc.observable(this);var g={CANVAS:'app.canvas.run'},h,i=new e;this.init=function(a,b){var d=this;c.init.call(this,a,b)},this.getActionOriginEnum=function(){return g},this.render=function(b,c,d,e,g){var j=a(c)[0],k=this,l=i.addActionQueueItemToViewParams(d),m=i.getCanvasAppInfoFromUrl();if(null!==m){var n=null!==l?l:{};i.setCanvasToken({appInfo:m,view:b.view,params:n})}e=e||{},e.target={},e.target.type='embed',this.renderAppEE_(j,b,e,function(c,d){if(d.error)return c.error=d.error,g.call(c),void 0;h=c,c.jiveData=new f(k,b,l),c.jiveData.setEEContext(e),c.jiveData.setGadgetMetaData(d);var i=a(c.getActiveSiteHolder().getIframeElement());i.attr('width','100%'),g.call(c)},null)},this.getRenderedApp=function(){return h&&h.jiveData?h.jiveData.app:null},this.loadAppIframe=function(b,c,d,e){var g=this;g.renderApp_(c,b,function(h){c.jiveData=new f(g,b,d),c.jiveData.setGadgetMetaData(h);var i=a(c.getActiveSiteHolder().getIframeElement());i.attr('width','100%'),b.marketFeatureAvailable?i.data('hasMarketFeature',!0):(i.removeAttr('scrolling'),i.attr('overflow','auto')),e&&e(h)},d)},this.resizeContainerHeight=function(b,c,d){var e=a(d.getActiveSiteHolder().getIframeElement());'max'===b?b=this.getMaximumHeight(e):0===e.parents('.j-tileType-custom_view').length&&(b=Math.min(this.getMaximumHeight(e),b)),e[c?'animate':'css']({height:b+'px'},{duration:300,queue:!1}),e.trigger('containerResized')},b.getMaximumHeight=function(a){var b=a.parent(),c=Number(/(\d*)/.exec(b.css('max-height'))[1]),d=Number.MAX_VALUE;return c||d},this.resizeContainerWidth=function(b,c,d){var e=a(d.getActiveSiteHolder().getIframeElement());b='max'===b?this.getMaximumWidth(e):Math.min(this.getMaximumWidth(e),b),e[c?'animate':'css']({width:b+'px'},{duration:300,queue:!1})},b.getMaximumWidth=function(b){var c=b.parent(),d=Number(/(\d*)/.exec(c.css('max-width'))[1]),e=a(window).width()-160;return d||e},this.invokeOauthDance=function(b){var c=this,e=a('.j-app-canvas');a('.j-app-canvas iframe').hide();var f=b.getApp(),g=new d(f,e),h={appTitle:f.title,code:2060,message:'',creator:'',errorMessage:'',iconSrc:f.iconSrc},i=g.applyBlock(e,f,h);b.launch_popup(a(i)),b.addListener('popup.closed',function(){a(i).remove(),a('.j-app-canvas iframe').show(),b.invokeCallback()})},b.closeModal=function(){this.html&&this.html.find&&this.html.find('a.close')&&this.html.find('a.close').click()}})}),define('jive/app/preferences/models/preferences_model',['jquery','url','jiverscripts/oo/class','jiverscripts/conc/observable'],function(a,b,c,d){return c.extend(function(c){d(this),c.init=function(){this.GADGET_ENDPOINT=b.v2Url('/app'),this.options=function(b,c,d,e){return d&&(c=c+'?'+a.param(d)),{type:b,url:this.GADGET_ENDPOINT+c,dataType:'json',contentType:'application/json; charset=utf-8',success:e}}},this.setPref=function(b,c,d){var e=this,f={n:c,v:d};a.ajax(this.options('PUT','/'+b+'/prefs',f,function(a){e.emit('app.preferences.set',a)}))},this.getPreferences=function(b){var c=this;a.ajax(this.options('GET','/'+b+'/prefs/',null,function(a){c.emit('app.preferences.get',a.pref)}))},this.setPreferences=function(a){var b=this;a.ajaxSubmit({url:this.GADGET_ENDPOINT+'/setprefs/',type:'POST',dataType:'json',success:function(a){b.emit('app.preferences.set.all',a.dashboardAppSrc)}})},this.cancelEdit=function(b){var c=this;a.ajax(this.options('GET','/'+b,null,function(a){c.emit('app.preferences.cancel.edit',a)}))},this.getPreferencesView=function(b){var c=this;a.ajax(this.options('GET','/'+b+'/prefs/view',null,function(a){c.emit('app.preferences.get.pref.view',a.appPrefView)}))}})}),define("gadgets",["shindig"],function(a){return function(){var b,c;return b||a.gadgets}}(this)),function(a,b,c){"object"==typeof exports?module.exports=exports=b(require("./core")):"function"==typeof define&&define.amd?define('crypto/sha1',["./core"],b):b()}(this,function(a){return function(){var b=a,c=b.lib,d=c.WordArray,e=c.Hasher,f=b.algo,g=[],h=f.SHA1=e.extend({_doReset:function(){this._hash=new d.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(a,b){for(var c=this._hash.words,d=c[0],e=c[1],f=c[2],h=c[3],i=c[4],j=0;80>j;j++){if(16>j)g[j]=0|a[b+j];else{var k=g[j-3]^g[j-8]^g[j-14]^g[j-16];g[j]=k<<1|k>>>31}var l=(d<<5|d>>>27)+i+g[j];l+=20>j?(e&f|~e&h)+1518500249:40>j?(e^f^h)+1859775393:60>j?(e&f|e&h|f&h)-1894007588:(e^f^h)-899497514,i=h,h=f,f=e<<30|e>>>2,e=d,d=l}c[0]=c[0]+d|0,c[1]=c[1]+e|0,c[2]=c[2]+f|0,c[3]=c[3]+h|0,c[4]=c[4]+i|0},_doFinalize:function(){var a=this._data,b=a.words,c=8*this._nDataBytes,d=8*a.sigBytes;return b[d>>>5]|=128<<24-d%32,b[(d+64>>>9<<4)+14]=Math.floor(c/4294967296),b[(d+64>>>9<<4)+15]=c,a.sigBytes=4*b.length,this._process(),this._hash},clone:function(){var a=e.clone.call(this);return a._hash=this._hash.clone(),a}});b.SHA1=e._createHelper(h),b.HmacSHA1=e._createHmacHelper(h)}(),a.SHA1}),define('jive/app/core_container/shared',['jquery','underscore','url','jiverscripts/oo/class','jiverscripts/conc/next_tick','jiverscripts/conc/observable','./models/appscontainer_model','./common_container','./views/modal_view','./views/embedded_view','jive/app/preferences/models/preferences_model','apps/shared/controllers/localexchange','jive/util','osapi','gadgets','crypto/sha1','application/config','channel!tile_data_source'],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){function s(a){return b.extend({},{scrolling:'no',marginwidth:0,marginheight:0,frameborder:0,vspace:0,hspace:0,height:'100',width:'100%'},a)}function t(b,c){var d=b.split('/').slice(0,3).join('/'),e=a('<a />').attr('href',c)[0].pathname;return d+e}function u(a){return JSON.parse(JSON.stringify(a))}return d.extend(function(d){f(this);var e={},j={},t={};this.init=function(b){this.options=b=b||{},'undefined'!=typeof n&&'undefined'!=typeof n.container&&(this.model=new g(b),this.commonContainer=h,n.container.GadgetSite.prototype.getActiveGadgetHolder=function(){return this.getActiveSiteHolder()},this.model.initContainerSecurityToken(this.commonContainer),this.modalView=new i(this.commonContainer,b),jQuery.extend(e,this.modalView.getActionOriginEnum()),a.extend(e,this.modalView.getActionOriginEnum()),this.sharedRpcRegister(),this.rpcRegister(),this.initializeEventHandlers(e),l.addListener('app.actionContextAdded',function(a){t={jive:{content:{extraContext:a}}}}))},d.sharedRpcRegister=function(){var a=this;this.commonContainer.rpcRegister('actions.bindAction',a.bindAction.bind(a)),this.commonContainer.rpcRegister('actions.registerHideCallback',function(a){}),this.commonContainer.rpcRegister('actions.registerShowCallback',function(a){}),this.commonContainer.rpcRegister('actions.get_actions_by_type',function(a){}),this.commonContainer.rpcRegister('actions.get_actions_by_path',function(a){}),this.commonContainer.rpcRegister('actions.removeAction',function(a){}),this.commonContainer.rpcRegister('actions.runAction',function(a){}),this.commonContainer.rpcRegister('set_pref',a.setPref.bind(a)),this.commonContainer.rpcRegister('set_title',a.setTitle.bind(a)),this.commonContainer.rpcRegister('close_app',a.closeApp.bind(a)),this.commonContainer.rpcRegister('send_notification',a.sendNotification.bind(a)),this.commonContainer.rpcRegister('request_place_picker',a.initPlacePicker.bind(a)),this.commonContainer.rpcRegister('request_user_picker',a.initUserPicker.bind(a)),this.commonContainer.rpcRegister('request_unified_picker',a.initUnifiedPicker.bind(a)),this.commonContainer.rpcRegister('requestNavigateTo',a.requestNavigateTo.bind(a)),this.commonContainer.rpcRegister('request_upload_app_data_media_item',a.requestNavigateTo.bind(a)),this.commonContainer.rpcRegister('sample_data',a.sampleData.bind(a)),this.commonContainer.rpcRegister('run_tile_action',a.runTileAction.bind(a)),this.commonContainer.rpcRegister("resize_iframe",a.resizeContainerHeight.bind(a)),this.commonContainer.rpcRegister("resize_iframe_width",a.resizeContainerWidth.bind(a)),this.commonContainer.rpcRegister('request_x_j_token',a.getXJToken.bind(a)),this.commonContainer.rpcRegister("scroll_into_view",a.scrollIntoView.bind(a)),this.commonContainer.rpcRegister("get_canvas_dimensions",a.getCanvasDimensions.bind(a)),this.commonContainer.rpcRegister("get_rte_contents",a.getRTEContents.bind(a)),this.commonContainer.rpcRegister("display_rte",a.displayRTE.bind(a)),this.commonContainer.rpcRegister('ee_gadget_rendered',this.eeGadgetRendered.bind(a)),o.rpc.registerDefault(function(a){})},this.initActionLinkContext=function(a){this.actionLinkContext={jive:{content:{type:a.coreAPIType,id:a.id}}}},d.setPref=function(a,b,c,d){var e=a[n.container.GadgetSite.RPC_ARG_KEY],f=e.jiveData.app,g=new k;g.setPref(f.instanceAppID,c,d)},d.bindAction=function(a,b){j[b.id]&&(o.rpc.call(j[b.id],'actions.runAction',null,b.id,this.commonContainer.selection.getSelection()),delete j[b.id])},d.bindActionOriginEnum=function(b){a.extend(e,b)},d.handleRunAction=function(a,b){if(!window._jive_current_user.anonymous&&(!window._jive_current_user.partner||window.appUUIDs&&!(window.appUUIDs.indexOf(a.appUUID)<0))){var c=this;delete this.postInstallActionRun,this.model.getApp(a.appUUID,a.appInstanceUUID).addCallback(function(d){d.url?d.appURL=d.url:d.appURL='undefined'!=typeof a.appURL?a.appURL:d.appURL,d.view=a.view,d.actionHeight=d.heightByView&&d.heightByView[a.view]||d.height,d.actionWidth=d.widthByView&&d.widthByView[a.view]||d.width,d.actionLabel=a.label,c.runAction(d,a,b)}).addErrback(function(d){d&&a&&a.appUUID&&(console&&console.log('App URL passed to market:',a.url),c.handleMarketContext({experience:'marketapp',appUUID:a.appUUID,embeddedID:a.embeddedID,isDevelopmentApp:a.isDevelopment||!1,alternateUrl:a.url}),c.postInstallActionRun={actionInfo:a,origin:b})})}},d.runAction=function(a,b,c){var d=this.setSelection(b,c),e=this;this.modalView.render(a,b,d,function(a){a.jiveData&&(a.jiveData.appActionDataPromise=e.appActionDataPromise);var c=a.getActiveSiteHolder();c&&(j[b.actionId]=c.getIframeId())})},d.setSelection=function(b,c){var d;switch(c){case e.CONTENT:d=this.initSelection(t);break;case e.LINK:d=this.initSelection(t);break;case e.RTE:d=this.determineContainerContext(),d.jive.rte=this.determineRTEContext(),b.currentArtifact&&a.extend(d,b.currentArtifact),d.actionId=b.actionId;break;case e.PROFILE:d=this.initSelection(t),d.jive.content.type=b.selectionType,d.jive.content.id=b.selectionID}return this.commonContainer.selection.setSelection(d),d},d.initSelection=function(b){return a.extend(!0,{},this.actionLinkContext,b)},d.initPlacePicker=function(a,b){var c=a[n.container.GadgetSite.RPC_ARG_KEY];c.jiveData.mvcView.initPlacePicker(b,a.callback)},d.initUserPicker=function(a,b){var c=a[n.container.GadgetSite.RPC_ARG_KEY];c.jiveData.mvcView.initUserPicker(b,a.callback)},d.initUnifiedPicker=function(a,b){var c=a[n.container.GadgetSite.RPC_ARG_KEY];c.jiveData.mvcView.initUnifiedPicker(b,a.callback)},d.requestNavigateTo=function(a,b,c,d){var e=a[n.container.GadgetSite.RPC_ARG_KEY];e.jiveData.app.view=b,e.jiveData.mvcView.requestNavigateTo(e.jiveData.app,e,b,c,d)},d.setTitle=function(a,b){var c=a[n.container.GadgetSite.RPC_ARG_KEY],d=c.jiveData.app;c.jiveData.mvcView.setTitle(b)},d.scheduleModalClose=function(a,b){jive.conc.nextTick(function(){a.closeModal(b)})},d.closeApp=function(a,c){var e=a[n.container.GadgetSite.RPC_ARG_KEY];e.jiveData.appActionDataPromise=e.jiveData.appActionDataPromise||this.appActionDataPromise;var f=e.jiveData.mvcView;if(e.jiveData.lightWeightApp===!0)'undefined'!=typeof c.data&&e.jiveData.appActionDataPromise?e.jiveData.appActionDataPromise.resolve(c.data):e.jiveData.appActionDataPromise&&e.jiveData.appActionDataPromise.reject();else{if('undefined'!=typeof c.data&&e.jiveData.appActionDataPromise){var g=this;require(['jive/app/rte/artifacts'],function(b){(new b).makeArtifactURLsAbsolute(c.data,e.jiveData.app,null,o.rpc.getOrigin(a.r)),e.jiveData.appActionDataPromise.resolve(c.data,a)})}if('undefined'!=typeof c.navigateTo&&/^http(s)?\:\/\//i.test(c.navigateTo)){var h=o.io.getProxyUrl().split('?')[0].replace(/\/gadgets\/proxy/,'');b.startsWith(c.navigateTo,h)||(console.error('Error: Unable to navigation to external URL: '+c.navigateTo),delete c.navigateTo)}}d.scheduleModalClose(f,c)},d.sendNotification=function(b,c){var d=b?b[n.container.GadgetSite.RPC_ARG_KEY]:null;if(c=c||{},'undefined'!=typeof c.message&&'undefined'!=typeof c.severity&&(c.severity=c.severity.toLowerCase(),!(c.severity in{error:1,info:1,success:1})))throw'Invalid severity: must be \'error\', \'info\' or \'success\'';if(d){var e=d.jiveData.mvcView;e.sendNotification(c)}else{c=c||{};var f=c.message,g=c.severity||'info';'undefined'!=typeof f&&a('<p/>').html(f).message({style:g})}},this.preCacheAppResources=function(b){var d=b.appUUID,e=encodeURIComponent(b.appURL);a('body').append('<iframe src="'+c.baseUrl('/gadgets/concatresources')+'?appId='+d+'&gadget='+e+'" width="1px" height="1px"></iframe>')},d.eeGadgetRendered=function(a){var b=a[n.container.GadgetSite.RPC_ARG_KEY];if(b){var c=b.currentGadgetHolder_.renderParams_,d=c.eeDataModel;return d?d.context:null}var e=this.modalView.getEmbeddedContext('latest');return e?e:{}},d.resizeContainerHeight=function(a,b){var c=a[n.container.GadgetSite.RPC_ARG_KEY];c&&(c.jiveData.mvcView.resizeContainerHeight(b,!0,c),r.trigger('tile:adjustHeight',c.el_,{height:b}))},d.resizeContainerWidth=function(a,b){var c=a[n.container.GadgetSite.RPC_ARG_KEY];c&&(c.jiveData.mvcView.resizeContainerWidth(b,!0,c),a.callback&&a.callback.call())},d.scrollIntoView=function(a){var b=a[n.container.GadgetSite.RPC_ARG_KEY],c=a.f,d=a.a[0]||{};b.jiveData.mvcView.scrollIntoView(c,d)},d.getCanvasDimensions=function(b){var c=a(window),d=c.width(),e=c.height(),f=a('#'+b.f),g=f.parents('.js-app-chrome');g.length&&(d-=g.outerWidth()-f.innerWidth(),e-=g.outerHeight()-f.innerHeight()),b.callback({width:d,height:e})},d.getRTEContents=function(a){a.callback&&a.callback({rteContents:window.__rteView.getBody().innerHTML})},d.displayRTE=function(b,c){var d=this,e='';'undefined'!=typeof c&&null!==c&&(e=c.text),e&&$j("#wysiwygtext").val(e),require(['jive/rte_loader','jive/rte/EntitlementService','jive/rte/ImageService','jive/rte/FormService','jive/rte/FormAttachmentService'],function(b,e,f,g,h){var i=a('#app-canvas-rte'),j=i.data('bean'),k=j.containerContextBean.container.objectID||1,l=j.containerContextBean.container.objectType||14,m={formService:new g({$form:i}),attachmentService:new h({container:i,name:'attachFile',$form:i,attachments:j.attachments,maxSize:j.attachmentConfigActionBean.maxAttachmentSize,maxFiles:0,allowByDefault:j.attachmentConfigActionBean.allowByDefault,attachmentExtensions:j.attachmentConfigActionBean.attachmentExtensions,hasAttachPerms:j.hasAttachPerms}),imageService:new f({objectId:-1,objectType:j.contentType,containerType:l,containerId:k})};window._jive_video_picker__url='?container='+k+'&containerType='+l;var n=a.extend({$element:$j("#wysiwygtext"),preset:"wiki",isEditing:!0,pinToolbar:!1,autoExpand:!1,images_enabled:!0,services:m,height:200},c);b(n).then(function(a){i.show(),window.__rteView=a}.bind(d))})},this.renderEmbeddedView=function(d){function e(a){for(var b=0,c=0;c<a.length;c++)b=31*b+a.charCodeAt(c)&-1;return b}function f(a,c,d){if(b.startsWith(d,'/')){var e=window._jive_base_absolute_url||'http:';d=e.substring(0,e.indexOf(':')+1)+'//127.127.127.127:127/resources'+d}var f=Math.random().toString(36).substr(2,5),g=d.indexOf('?')>=0?'&':'?',h=d.indexOf('#');0>h&&(h=d.length);var i='syn_app='+f+'&ref_'+f+'='+a+':'+c;return d.substring(0,h)+g+i+d.substring(h)}var g={},h=a.when([]),i=e(d.url),j=f(d.objectType,d.objectID,d.url),k=d.actionUrl?f(d.objectType,d.objectID,d.actionUrl):'',l=q.galaEnabled&&!/\?([^#]*&)?features\b[^&#]*[=,]shindig_only\b/.test(j);l&&(h=d.userId>0?a.ajax({type:"POST",url:c.baseUrl('/api/gala/prepare'),dataType:'json',contentType:'application/json; charset=utf-8',data:JSON.stringify({url:j,actionUrl:k})}):a.ajax({type:"GET",url:c.baseUrl('/api/gala/prepare?url='+encodeURIComponent(j))}));var m={instanceAppID:i,developmentApp:!1,title:'[lightweight app]',displayTitle:'[lightweight app]',row:0,column:0,state:200,height:0,width:0,heightByView:{},widthByView:{},userPrefs:{},systemSettingsAvailable:!1,configurationAvailable:!1,configurationError:!1,aboutViewAvailable:!1,userPrefsAvailable:!1,marketFeatureAvailable:!1,locallyManaged:!1,blockedAppInstance:!1,blockingAlerts:[],nonblockingAlerts:[],url:j,id:i},n=String(d.instanceId||'0'),o=d.container&&d.container.type||0,r=d.container&&d.container.id||0,s=d.container&&d.container.name||'',t=d.content&&d.content.type||0,u=d.content&&d.content.id||0,v=d.content&&d.content.name||'',w=d.userId||0,x={container:{type:o,id:r,name:s},content:{type:t,id:u,name:v},actionSupport:'function'==typeof d.actionHandler,identifiers:[{name:'jive',value:n},{name:'viewer',value:n+':'+w},{name:'container',value:n+':'+o+','+r},{name:'content',value:n+':'+t+','+u}],data:d.context||{},global:d.global||{},other:{definitions:d.relatedTiles||[]}};if('tileInstance'===d.objectType&&(x.other.tileInstanceId=d.objectID),d.serviceURL&&(x.other.serviceURL=d.serviceURL),jive.tile&&jive.tile.oauthReceivedCallbackTicket_&&(x.other.ticketId=jive.tile.oauthReceivedCallbackTicket_),x.other.actionSupport=!0,x.other.identifiers=x.identifiers.reduce(function(a,b){return a[b.name]=p(b.name+':'+b.value).toString(),a},{}),x.other.gadgetUrls={appUrl:d.url,jiveUrl:window._jive_base_absolute_url},x.other.environment={marketId:window.appsMarketID,version:window.appContainerVersion,jiveUrl:window._jive_base_absolute_url,jiveTenantID:jive.global.instanceID},window._jive_base_absolute_url&&j.length>window._jive_base_absolute_url.length&&j.substr(0,window._jive_base_absolute_url.length)===window._jive_base_absolute_url){var y=j.substr(window._jive_base_absolute_url.length),z=/^(\/resources\/add-ons\/[0-9a-f-]{36}\/[0-9a-f]{6,16})\/.+/.exec(y);if(z&&z[1]){x.other.gadgetUrls.resourceUrl=window._jive_base_absolute_url+z[1];var A=p(d.url).toString().substr(0,12);x.other.gadgetUrls.secureResourceUrl=jive.global.subdomain.template.replace("%hash%",A).replace("%path%",z[1])}}else if(/^https?:\/\/127\.127\.127\.127:127\/resources\//.test(j)){var B=CS_RESOURCE_BASE_URL.substr(CS_BASE_URL.length);x.other.gadgetUrls.resourceUrl=window._jive_base_absolute_url+B;var A=p(d.url).toString().substr(0,12);x.other.gadgetUrls.secureResourceUrl=jive.global.subdomain.template.replace("%hash%",A).replace("%path%",B)}var C;C=l?this.renderEmbeddedGalaView(h,d.domElement,x,g,d.errorCallback,d.actionHandler):this.renderEmbeddedViewImpl(m,d.domElement,x,g,d.errorCallback,d.actionHandler);for(var D,E=0,F=d.relatedTiles.length;F>E;E++)D=d.relatedTiles[E].name,g[D]=a.Callbacks();return C.data=g,C},this.rejectAppActionDataPromise=function(){this.appActionDataPromise&&this.appActionDataPromise.reject()},d.renderEmbeddedViewImpl=function(c,e,f,g,h,i){var j=this,k=b.pluck(f.other.definitions,'name'),l=a.Deferred();return this.appActionDataPromise=l,c.view=c.view||'embedded.renderDataBlock',require(['jive/app/core_container/views/embedded_view','shindig'],function(a,b){d.loadEmbeddedView(j,a),j.model.getAuthToken().then(function(){c=j.model.cacheApp(c,!1),j.embededView.render(c,e,null,u(f),function(){this.jiveData=this.jiveData||{},this.jiveData.appActionDataPromise=l,e&&this.error&&this.error.message&&(h?h(this.error):e.text(this.error.message)),this.jiveData&&'[lightweight app]'==c.title&&(this.jiveData.lightWeightApp=!0,this.jiveData.sampleDataCallback=function(a,b){k.indexOf(a)>-1&&g[a].fire(u(b))}),'function'==typeof i&&(this.jiveData.actionCallback=i)})},function(){window.location.reload()})}),l.promise().then(u)},d.renderEmbeddedGalaView=function(c,d,e,f,g,h){var i=b.pluck(e.other.definitions,'name'),j=a.Deferred();this.appActionDataPromise=j;var k=function(a,b){i.indexOf(a)>-1&&f[a].fire(u(b))};return require(['jive/gala/gala'],function(f){e.corev3=n.jive.corev3._exportForGala(),c.then(function(c){a(d).empty();var i=b.uniqueId('tileFrame'),l=a('<iframe />').attr(s({id:i,name:i})),m=a('<form/>').attr({id:"form_"+i,target:i,action:c.iFrameURL,method:"post"}),n=a('<input/>').attr({type:"hidden",name:"auth",value:c.proxyAuthToken});l.appendTo(d),n.appendTo(m),m.appendTo(d),window.setTimeout(function(){m.submit(),window.setTimeout(function(){m.remove()},10)},1),e.other.extraHeaders=c.extraHeaders||[];var o='function'==typeof h&&h,p=f.initialize({frame:l[0],url:c.iFrameURL,context:e});p.on('close',function(a){j.resolve(a)}),p.on('cancel',function(){j.reject()}),p.on('sampleData',function(a){b.each(a,function(a){k(a.name,a.data)})}),p.on('tileAction',function(a){if(o){var b=a&&a.data,c={left:a.x,top:a.y,width:a.w,height:a.h},d=o('object'==typeof b?b:{},c);d.then(function(b){a.resolve({state:'success',data:b})},function(){a.resolve({state:'error'})})}else a.resolve({state:'error'})}),d&&this.error&&this.error.message&&(g?g(this.error):a(d).text(this.error.message))})}),j.promise().then(u)},d.loadEmbeddedView=function(a,b){'undefined'==typeof a.embededView&&(a.embededView=new b(a.commonContainer,{}),this.bindActionOriginEnum(a.embededView.getActionOriginEnum()),a.embededView.addListener('app.services.show',function(b){a.servicesView&&a.servicesView.isActive()||(a.servicesView=new AppServicesView(b,a.commonContainer,a.options),a.servicesView.addListener('app.reload',function(){a.reloadApp()}))}),a.embededView.addListener('app.embedded.modal.close',function(){delete a.servicesView,a.credentialsView&&(a.credentialsView.cleanup(),delete a.credentialsView),a.servicesView=null,a.credentialsView=null,a.oauthView=null}))},d.getXJToken=function(a,b){var c=function(){function a(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return function(){return a()+a()+'-'+a()+'-'+a()+'-'+a()+'-'+a()+a()+a()}}();m.securedPost(c()+'.token').addCallback(function(b){a.callback(b)})},d.sampleData=function(a,b){var c=a[n.container.GadgetSite.RPC_ARG_KEY],d=b&&b.data;if(d&&'function'==typeof c.jiveData.sampleDataCallback)for(var e,f,g=0;g<d.length;g+=1)d&&'object'==typeof d&&(e=d[g].name,f=d[g].data,c.jiveData.sampleDataCallback(e,f));a.callback&&a.callback()},d.runTileAction=function(a,b){var c=a[n.container.GadgetSite.RPC_ARG_KEY],d=b&&b.data,e={left:b.x,top:b.y,width:b.w,height:b.h};if('function'==typeof c.jiveData.actionCallback){var f=c.jiveData.actionCallback('object'==typeof d?d:{},e);f.then(function(b){a.callback&&a.callback({state:'success',data:b})},function(){a.callback&&a.callback({state:'error'})})}else a.callback&&a.callback({state:'error'})}})}),define('soy!jive.apps.base.renderAppDataUploadPopup',['soyDeps'],function(a){return jive.namespace.call(this,'jive.apps.base'),jive.apps.base.renderAppDataUploadPopup=function(b,c){var d=c||new soy.StringBuilder;return d.append('<header><h2 class="jive-modal-title">',soy.$$escapeHtml(a._i18n('0fc016',[])),' ',soy.$$escapeHtml(b.options.dialogTitle),'</h2></header><label class="j-508-label" id="close-modal-508">',soy.$$escapeHtml(a._i18n('a94563',[])),'</label><a href="#" class="j-modal-close-top close" aria-labelledby="close-modal-508" title="',soy.$$escapeHtml(a._i18n('a94563',[])),'">',soy.$$escapeHtml(a._i18n('1ce366',[])),'  <span class="j-close-icon j-ui-elem" role="img"></span></a><div class="jive-modal-content j-pop-main"><div class="modal-block">',b.options.instructionMsg?'<p>'+soy.$$escapeHtml(b.options.instructionMsg)+'</p>':'','<form action=',soy.$$escapeHtml(b.options.actionUrl),' class="jive-modal-file-upload" target="jive-modal-file-upload-iframe" enctype="multipart/form-data" method="post"><input type="hidden" name="request" value="" /><input type="hidden" name="jive.token.name" value="cxrf-token" /><input type="hidden" name="cxrf-token" value="" />',1==b.options.binaryDocument?'<p><label for="subject">Subject</label><input type="text" name="subject" id="subject" value="" /></p>':'','<div class="jive-error-box clearfix" style="display:none" aria-live="polite" aria-atomic="true"><div><span class="jive-icon-med jive-icon-redalert"></span><span class="message"></span></div></div><p><label for="file">File:</label><br /><input type="file" name="file" /></p>',b.options.showTitle?'<p><label for="title">'+(1==b.options.showTitle?soy.$$escapeHtml(a._i18n('b9ec9c',[])):soy.$$escapeHtml(a._i18n('4f3ecd',[b.options.showTitle])))+'</label><br /><input type="text" name="title" id="title"/></p>':'',b.options.showDescription?'<p><label for="description">'+(1==b.options.showDescription?soy.$$escapeHtml(a._i18n('699bd3',[])):soy.$$escapeHtml(a._i18n('4f3ecd',[b.options.showTitle])))+'</label><br /><textarea name="description"></textarea></p>':'','<p><input type="submit" value="',soy.$$escapeHtml(b.options.submitText),'" /></p><iframe name="jive-modal-file-upload-iframe" id="jive-modal-file-upload-iframe" style="display:none" src="about:blank"></iframe></form></div></div>'),c?'':d.toString()},jive.apps.base.renderAppDataUploadPopup}),define('jive/app/app-file-uploader',['jquery','Class','soy!jive.apps.base.renderAppDataUploadPopup','jquery-plugin/jquery.lightbox_me'],function(a,b){
return b.extend({init:function(b,c,d,e,f){this.app=b,this.key=c,this.callback=f,this.element=null,this.token=e,this.options=a.extend({showTitle:!1,showDescription:!1,dialogTitle:this.app.title,submitText:'Upload',core:!1,validExtensions:[]},d||{}),this.showDialog()},showDialog:function(){var b=this;a('body').append('<div class="jive-modal" id="app-upload-modal-content" style="display:none;"></div>'),this.element=a('#app-upload-modal-content');var c=this.options||{};if('undefined'==typeof c.actionUrl){var d='';this.token&&(d=encodeURIComponent(this.token)),c.actionUrl=c.actionUrl||'/social/rpc?responseFormat=html'+(d?'&st='+d:'')}var e=a(jive.apps.base.renderAppDataUploadPopup({options:c})),f=this.element.html(e).lightbox_me({closeSelector:'.close',destroyOnClose:!0,onClose:function(){a('iframe:first')[0].contentWindow.postMessage('closedModal','*')}}).find('iframe').bind('load',function(){b.handleIframeLoad()}).end().find('input[type=submit]').click(function(){return b.isValid()&&jive.util.securedForm(f).then(function(){f.submit()}),!1}).end().find('form')},isValid:function(){return this.isFileBlank()?(this.showError('File is required!'),!1):this.isFileExtensionInvalid()?(this.showError('File is invalid. Valid extensions: '+this.options.validExtensions.join(', ')),!1):!0},isFileBlank:function(){return''===this.element.find('input[type=file]').val()},isFileExtensionInvalid:function(){return this.options.validExtensions.length>0&&-1==a.inArray(a(this.element.find('input[type=file]').val().split('.')).last()[0],this.options.validExtensions)},showError:function(a){this.element.find('div.jive-error-box').show().find('span.message').html(a)},hideError:function(){this.element.find('div.jive-error-box').hide()},setRequestParams:function(){if(this.element.find('input[name=request]').val(JSON.stringify(this.generateRequestParams())),!document.cookie.match('X-JCAPI-Token')){var a=this.element.find('form').attr('action'),b;if(a){var c=a.match(/^https?:\/\/.+?(\/[0-9a-zA-Z\/]+)/);c&&c.length>1?b=c[1]:a.match(/^\//)&&(b=a)}b&&(document.cookie='X-JCAPI-Token=MFVrG3oK; path='+b)}},generateRequestParams:function(){var b=[{method:'appdata.uploadContent',params:{appId:'@app',userId:['@viewer'],groupId:'@self',fields:[this.key],data:{}},id:'key'}],c={url:'@field:file'};if(this.options.showTitle){var d=a('#app-upload-modal-content input[name=title]').val();d.length>0&&(c.title=d)}if(this.options.showDescription){var e=a('#app-upload-modal-content textarea[name=description]').val();e.length>0&&(c.description=e)}return b[0].params.data[this.key]=c,b},handleIframeLoad:function(){var b='jive-modal-file-upload-iframe',c=document.getElementById(b),d,e=null;try{d=c.contentDocument?c.contentDocument:c.contentWindow?c.contentWindow.document:window.frames[b].document}catch(f){e=f}var g={};if(null!==e){var h='{"code":"4005","message":"Access denied to object"}';g=JSON.parse(h)}else{if('about:blank'==d.location.href)return;g={}}var i;if(this.options.core===!0)i=g,this.callback(i),a('#app-upload-modal-content').trigger('close');else if(a.isArray(g)&&g[0].result&&g[0].result){var j=this.getValue(g[0].result);j&&j[this.key]&&(i=j[this.key],this.callback(JSON.parse(i)),a('#app-upload-modal-content').trigger('close'))}},getValue:function(b){var c=null;return a.each(b,function(a,b){c=b}),c}})}),define('jive/app/oauth/views/oauthoverlay',['apps/shared/views/abstract_view'],function(a){return a.extend(function(a){this.init=function(a,b,c){this.content=b;var d=this;b.find('.j-oauth-authorize').append('<input type=\'hidden\' id=\'_alias\' value=\''+c+'\'/>');var e=this.content.find('.j-error-msg-grant-oauth-access-btn');e.bind('click',a.get_oauth_popup().createOpenerOnClick());var f=this.content.find('.j-error-msg-granted-oauth-access-btn');f.bind('click',a.get_oauth_popup().createApprovedOnClick());var g=this.content.find('.j-error-msg-oauth-approved-btn');g.click(function(){d.emit('oauth.approved')})},this.hideGrant=function(){this.content.find('.j-oauth-grant').hide()},this.showWaiting=function(){this.content.find('.j-oauth-authorize').show()},this.hideWaiting=function(){this.content.find('.j-oauth-authorize').hide()}})}),define('jive/app/oauth/views/gadgets-oauth-popup',['jive/namespace'],function(){return jive.namespace('JAF.Configuration'),jive.JAF.Configuration.PopupDialog=function(a,b,c,d){this.destination_=a,this.windowOptions_=b,this.openCallback_=c,this.closeCallback_=d,this.win_=null},jive.JAF.Configuration.PopupDialog.prototype.createOpenerOnClick=function(){var a=this;return function(){a.onClick_()}},jive.JAF.Configuration.PopupDialog.prototype.onClick_=function(){if(this.win_=window.open(this.destination_,'_blank',this.windowOptions_),this.win_){var a=this,b=function(){a.checkClosed_()};this.timer_=window.setInterval(b,100),this.openCallback_()}return!1},jive.JAF.Configuration.PopupDialog.prototype.checkClosed_=function(){this.win_&&!this.win_.closed||(this.win_=null,this.handleApproval_())},jive.JAF.Configuration.PopupDialog.prototype.handleApproval_=function(){return this.timer_&&(window.clearInterval(this.timer_),this.timer_=null),this.win_&&(this.win_.close(),this.win_=null),this.closeCallback_(),!1},jive.JAF.Configuration.PopupDialog.prototype.createApprovedOnClick=function(){var a=this;return function(){a.handleApproval_()}},jive.JAF.Configuration}),define('jive/app/oauth/views/oauthpopup',['apps/shared/views/abstract_view','jive/app/oauth/views/gadgets-oauth-popup'],function(a,b){return a.extend(function(a){this.init=function(a,b){var c=this;this.popupURI=a,this.windowChars=b,this.oauthPopup=new jive.JAF.Configuration.PopupDialog(a,b,function(){c.emit('popup.opened')},function(){c.emit('popup.closed')})},this.get_oauth_popup=function(){return this.oauthPopup},this.click=function(){this.oauthPopup.click()},a.gup=function(a,b){b=b.replace(/[\[]/,'\\[').replace(/[\]]/,'\\]');var c='[\\?&]'+b+'=([^&#]*)',d=new RegExp(c),e=d.exec(a);return null==e?'':e[1]}})}),define('jive/app/oauth/main',['jquery','./views/oauthoverlay','./views/oauthpopup','jiverscripts/oo/class','jiverscripts/conc/observable'],function(a,b,c,d,e){return d.extend(function(d){e(this),this.init=function(a,b,c,d,e){this.app=a,this.alias=b,this.redirectURI=c,this.windowchars=d,this.callback=e},this.getApp=function(){return this.app},this.invokeCallback=function(){this.callback&&this.callback()},d.create_popup=function(){var a=this,b=new c(this.redirectURI,this.windowChars),d=this.callback,e=this.app;return b.addListener('popup.opened',function(){a.container.hideGrant(),a.container.showWaiting(),a.emit('popup.opened',e)}),b.addListener('popup.closed',function(){a.container.hideWaiting();var b={authorized:!0};d(b),a.emit('popup.closed',e)}),b},this.launch_popup=function(a){this.popupWrapper=this.create_popup(),this.container=new b(this.popupWrapper,a,this.alias);var c=this.app;this.container.addListener('oauth.approved',function(){var b=a.find('#_error'),d=a.find('#_errorDescription'),e=!(b.length>0||d.length>0),f=a.find('#_alias').attr('value'),g={alias:f};e||(g.error={code:b.attr('value'),message:d.attr('value')}),callback(g),self.emit('oauth.approved',c)})},this.authorization_done=function(b,c){var d=a('#j-app-view-'+this.app.id),e=d.find('.j-oauth-authorize');b&&e.append('<input type=\'hidden\' id=\'_error\' value=\''+b+'\'/>'),c&&e.append('<input type=\'hidden\' id=\'_errorDescription\' value=\''+c+'\'/>'),d.find('.j-error-msg-oauth-approved-btn').click()}})}),define('soy!jive.apps.configure.renderCredentials',['soyDeps'],function(a){return jive.namespace.call(this,'jive.apps.configure'),jive.apps.configure.renderCredentials=function(b,c){var d=c||new soy.StringBuilder;d.append('<form href="#" action="post" onsubmit="return false;" class="j-form"><section class="j-service-credentials" data-optionid="',soy.$$escapeHtml(b.selectedService.optionID),'" data-optiongroupid="',soy.$$escapeHtml(b.selectedService.optionGroupID),'" id="j-service-credentials-',soy.$$escapeHtml(b.selectedService.serviceID),'"><p class="j-form-text">',soy.$$escapeHtml(a._i18n('0c1cd9',[])),'</p>');for(var e=b.selectedService.credentials,f=e.length,g=0;f>g;g++){var h=e[g];switch(d.append('<div class="j-form"><p><label for="j-service-cred-',soy.$$escapeHtml(b.selectedService.serviceID),'-',soy.$$escapeHtml(h.name),'">',soy.$$escapeHtml(h.label),'</label>'),h.format){case'text':d.append('<input class="j-form-element-text j-service-focus-hint j-service-credential" id="j-service-cred-',soy.$$escapeHtml(b.selectedService.serviceID),'-',soy.$$escapeHtml(h.name),'" data-name="',soy.$$escapeHtml(h.name),'" type="text" />');break;case'password':d.append('<input class="j-form-element-password j-service-focus-hint j-service-credential" id="j-service-cred-',soy.$$escapeHtml(b.selectedService.serviceID),'-',soy.$$escapeHtml(h.name),'" data-name="',soy.$$escapeHtml(h.name),'" type="password" autocomplete="off" />');break;case'textarea':case'textbox':d.append('<textarea class="j-form-element-textarea j-service-focus-hint j-service-credential" cols="80" rows="20" id="j-service-cred-',soy.$$escapeHtml(b.selectedService.serviceID),'-',soy.$$escapeHtml(h.name),'" data-name="',soy.$$escapeHtml(h.name),'" />')}d.append('</p></div>')}return d.append('</section></form>'),c?'':d.toString()},jive.apps.configure.renderCredentials}),define('soy!jive.apps.configure.renderConfigureCredentialBlocks',['soyDeps','soy!jive.apps.configure.renderCredentials'],function(a){return jive.namespace.call(this,'jive.apps.configure'),jive.apps.configure.renderConfigureCredentialBlocks=function(b,c){var d=c||new soy.StringBuilder;d.append('<section class="jive-modal-content clearfix">');var e=b.credentialsSetupView.serviceOptionView,f=e.length;if(f>0)for(var g=0;f>g;g++){var h=e[g];d.append('<div class="j-service-block-container" id="j-service-block-container',soy.$$escapeHtml(h.serviceID),'" ',0!=g?'style="display:none"':'','><div class="j-service-block" data-serviceid="',soy.$$escapeHtml(h.serviceID),'" data-connectionid="',soy.$$escapeHtml(h.connectionID),'"><h3 class="j-app-config-header font-color-normal">',soy.$$escapeHtml(h.name),'&nbsp;',soy.$$escapeHtml(a._i18n('a733d2',[])),'</h3>'),jive.apps.configure.renderCredentials({selectedService:h},d),d.append('</div><div class="clearfix"><button type="button" class="app-config-save j-btn-callout">',soy.$$escapeHtml(a._i18n('7be9e8',[])),'</button><button type="button" class="app-config-cancel j-btn-global">',soy.$$escapeHtml(a._i18n('a57831',[])),'</button></div></div>')}else d.append(soy.$$escapeHtml(a._i18n('853776',[])));return d.append('</section>'),c?'':d.toString()},jive.apps.configure.renderConfigureCredentialBlocks}),define('jive/app/credentials/views/credentials_form',['jquery','apps/shared/views/abstract_view','jive/app/configure/views/msgposter','jive/app/configure/views/validate','jive/app/configure/views/error','soy!jive.apps.configure.renderConfigureCredentialBlocks'],function(a,b,c,d,e){return jive.AbstractView.extend(function(b){jive.conc.observable(this),b.init=function(a){var b=this;this.content=a.domTarget,this.approved=[],this.denied=[],this.currentService=1,this.configuredServices=[],this.totalServices=0,this.msg_poster=new c},this.render=function(b){var c=this,d=a(jive.apps.configure.renderConfigureCredentialBlocks({credentialsSetupView:b}));this.content.append(d.html()),this.servicesCount=b.serviceOptionView.length,this.servicesCount<2?this.content.find('#current-service-counter').remove():this.content.find('#current-service').text(this.currentService),this.processServices(this.content.find('.j-service-block-container:first'))},this.activate=function(){this.content.find('.j-service-focus-hint').first().focus()},b.save=function(){var a=this.content.find('.j-service-block-container:first'),b=a.find('.j-service-block:first'),c=b.attr('data-connectionid');this.validate_block(b)&&(this.approved.push(Number(c)),this.process_block(b),this.currentService++,this.content.find('#current-service').text(this.currentService),this.currentService<=this.servicesCount?a.hide().next().show():this.postConfigurations())},b.process_block=function(a){var b=this,c={serviceID:a.attr('data-serviceid'),alias:a.attr('data-alias')};c.credentials=b.get_credentials(a),this.configuredServices.push(c)},b.get_credentials=function(a){var b=[];return a.find('.j-service-credential').each(function(){b.push({name:this.getAttribute('data-name'),value:this.value})}),b},b.cancel=function(){var a=this.content.find('.j-service-block-container:first'),b=a.find('.j-service-block:first'),c=b.attr('data-connectionid');this.denied.push(Number(c)),this.currentService++,this.content.find('#current-service').text(this.currentService),this.currentService<=this.servicesCount?a.hide().next().show():this.postConfigurations()},this.completed=function(){return this.currentService>this.servicesCount},b.processServices=function(a){for(var b=!0,c=a,d=this,e;c.length;){var f=c.find('.app-config-save');c.find('.app-config-save').click(function(){d.save()}),c.find('.app-config-cancel').click(function(){d.cancel()}),c.find('.j-service-credential').keypress(function(a){var b=a.which||a.keyCode;13===b&&f.click()}),b&&'none'!=c.css('display')&&(e=c.find('.j-service-focus-hint'),e.length&&(b=!1)),c=c.next()}},b.validate_block=function(a){var b=new e;b.clear();var c={},f=[];a.find('.j-service-error').removeClass('j-service-error');var g=new d(a,c,f);return g.work(),f.length&&(b.render(c),b.fieldsToVisualMarkers(f)),0==f.length},b.postConfigurations=function(){!this.denied||this.denied.length<1?this.emit('app.credentials_done',{services:this.configuredServices,approved:this.approved,denied:this.denied}):this.emit('app.credentials_cancelled')},this.msgSuccess=function(a){this.msg_poster.post_message('credentials.success','success')},this.msgFailed=function(a){this.msg_poster.post_message('credentials.fail','success')},this.msgCancelled=function(a){this.msg_poster.post_message('credentials.cancel','warn')}})}),define('jive/app/credentials/models/credentials_model',['jquery','url','jiverscripts/oo/class','jiverscripts/conc/observable','jiverscripts/conc/promise'],function(a,b,c,d,e){return c.extend(function(c){d(this),c.init=function(a){var b=this;this.alias=a.alias},this.get_credentials=function(c,d){var f=new e,g=b.appsUrl('instances/'+c+'/credentials_setup?aliases='+d);return a.ajax({url:g,type:'GET',success:function(a){f.emitSuccess(a)}}),f},this.persist=function(c,d){var e=this,f={instanceAppID:c,services:d.services};a.ajax({type:'PUT',url:b.appsUrl('instances/update_credentials'),data:JSON.stringify(f),contentType:'application/json',dataType:'json',success:function(a){var b={alias:e.alias};e.emit('app.credentials.persisted.success',b)},error:function(a){var b={alias:e.alias,error:{}};if(b.error.code=a.status?a.status:500,b.error.message=a.statusText,a.response&&a.response.startsWith('{')){var c=JSON.parse(a.response);c.message&&(b.error.message=c.message)}e.emit('app.credentials.persisted.failed',b)}})}})}),define('jive/app/credentials/main',['./views/credentials_form','./models/credentials_model','jiverscripts/oo/class','jiverscripts/conc/observable'],function(a,b,c,d){return c.extend(function(c){d(this),c.init=function(c){var d=this,e=c.instanceAppID,f=c.serviceAlias;d.completionCallback=c.completionCallback,this.model=new b({alias:c.serviceAlias});var g=c.domTarget;this.view=new a({domTarget:g}),this.view.addListener('app.credentials_done',function(a){d.model.persist(e,a)}),this.view.addListener('app.credentials_cancelled',function(){d.emitFailure('The user denied this operation.')}),this.model.get_credentials(e,f).addCallback(function(a){d.view.render(a)}),this.model.addListener('app.credentials.persisted.success',function(a){d.view.msgSuccess(a),d.completionCallback(a)}),this.model.addListener('app.credentials.persisted.failed',function(a){d.view.msgFailed(a),d.completionCallback(a)})},this.emitFailure=function(a){var b=this,c={alias:b.serviceAlias};c.error={code:401,message:a},b.view.msgCancelled(c),b.completionCallback(c)},this.activate=function(){this.view.activate()},this.completed=function(){return this.view.completed()}})}),define('soy!jive.apps.container.credentialsView',['soyDeps'],function(a){return jive.namespace.call(this,'jive.apps.container'),jive.apps.container.credentialsView=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div id="app-credentials-container" class="j-app-modal-content j-pop-main"></div>'),b?'':c.toString()},jive.apps.container.credentialsView}),define('jive/app/core_container/views/credentials_view',['jquery','jiverscripts/oo/class','jiverscripts/conc/observable','jive/app/credentials/main','soy!jive.apps.container.credentialsView'],function(a,b,c,d){return b.extend(function(b){c(this),this.init=function(a){this.app=a.app,this.serviceAlias=a.args.alias,this.callback=a.callback,this.completed=!1},this.getApp=function(){return this.app},this.createUI=function(){var b=this;return this.ui=a(jive.apps.container.credentialsView()),this.credentialsMain=new d({domTarget:b.ui,instanceAppID:b.app.instanceAppID,serviceAlias:b.serviceAlias,completionCallback:function(a){b.callback(a),a.error?b.emit('app.credentials.complete.error'):b.emit('app.credentials.complete.success')}}),this.ui},this.activate=function(){if(this.credentialsMain){var a=this;window.setTimeout(function(){a.credentialsMain.activate()},350)}},this.cleanup=function(){this.credentialsMain.completed()||(this.credentialsMain.emitFailure('The user cancelled this operation'),this.emit('app.service.message',{severity:'warn',message:'You may not be able to use this app until you provide credentials.'}))}})}),define('soy!jive.apps.preferences.renderAppDataErrorMessage',['soyDeps'],function(a){return jive.namespace.call(this,'jive.apps.preferences'),jive.apps.preferences.renderAppDataErrorMessage=function(b,c){for(var d=c||new soy.StringBuilder,e=b.messageKeys,f=e.length,g=0;f>g;g++){var h=e[g];switch(d.append('<span class="error-message">'),h){case'preferences.success':d.append(soy.$$escapeHtml(a._i18n('370614',[])));break;default:d.append(soy.$$escapeHtml(a._i18n('8389b4',[])))}d.append('</span>')}return c?'':d.toString()},jive.apps.preferences.renderAppDataErrorMessage}),define('soy!jive.apps.preferences.prefBool',['soyDeps'],function(a){return jive.namespace.call(this,'jive.apps.preferences'),jive.apps.preferences.prefBool=function(a,b){var c=b||new soy.StringBuilder;return c.append('<input type="checkbox" class="jive-widget-edit-elem-url" id="app-pref-',soy.$$escapeHtml(a.instanceAppID),'-',soy.$$escapeHtml(a.pref.identifier),'" name="',soy.$$escapeHtml(a.pref.identifier),'" value="true" ',a.pref.value?'checked=\'checked\'':'','/>'),b?'':c.toString()},jive.apps.preferences.prefBool}),define('soy!jive.apps.preferences.prefSelect',['soyDeps'],function(a){return jive.namespace.call(this,'jive.apps.preferences'),jive.apps.preferences.prefSelect=function(a,b){var c=b||new soy.StringBuilder;c.append('<select class="jive-widget-edit-elem-url" id="app-pref-',soy.$$escapeHtml(a.instanceAppID),'-',soy.$$escapeHtml(a.pref.identifier),'" name="',soy.$$escapeHtml(a.pref.identifier),'">');for(var d=a.pref.values,e=d.length,f=0;e>f;f++){var g=d[f];c.append('<option value="',soy.$$escapeHtml(g.identifier),'" ',g.selected?'selected="selected"':'','>',soy.$$escapeHtml(g.name),'</option>')}return c.append('</select>'),b?'':c.toString()},jive.apps.preferences.prefSelect}),define('soy!jive.apps.preferences.renderPreferences',['soyDeps','soy!jive.apps.preferences.prefBool','soy!jive.apps.preferences.prefSelect'],function(a){return jive.namespace.call(this,'jive.apps.preferences'),jive.apps.preferences.renderPreferences=function(a,b){var c=b||new soy.StringBuilder;c.append('<section><form action="#" id="jivewidgetpropform-',soy.$$escapeHtml(a.instanceAppID),'" class="j-form"><input type="hidden" name="appId" value="',soy.$$escapeHtml(a.instanceAppID),'"/>');for(var d=a.appPreferences,e=d.length,f=0;e>f;f++){var g=d[f];switch(c.append('<p><label for="app-pref-',soy.$$escapeHtml(a.instanceAppID),'-',soy.$$escapeHtml(g.identifier),'">',soy.$$escapeHtml(g.name),'</label>'),g.dataType){case'enum':jive.apps.preferences.prefSelect({pref:g,instanceAppID:a.instanceAppID},c);break;case'bool':jive.apps.preferences.prefBool({pref:g,instanceAppID:a.instanceAppID},c);break;default:c.append('<input type="text" size="40" class="jive-widget-edit-elem-url" id="app-pref-',soy.$$escapeHtml(a.instanceAppID),'-',soy.$$escapeHtml(g.identifier),'" name="',soy.$$escapeHtml(g.identifier),'" value="',soy.$$escapeHtml(g.value),'" />')}c.append('</p>')}return c.append('</form></section>'),b?'':c.toString()},jive.apps.preferences.renderPreferences}),define('soy!jive.apps.preferences.renderNoPreferences',['soyDeps'],function(a){return jive.namespace.call(this,'jive.apps.preferences'),jive.apps.preferences.renderNoPreferences=function(b,c){var d=c||new soy.StringBuilder;return d.append('<section><p>',soy.$$escapeHtml(a._i18n('1142ff',[])),'</p></section>'),c?'':d.toString()},jive.apps.preferences.renderNoPreferences}),define('jive/app/preferences/views/preferences_view_default',['jquery','jiverscripts/oo/class','jiverscripts/conc/observable','soy!jive.apps.preferences.renderAppDataErrorMessage','soy!jive.apps.preferences.renderPreferences','soy!jive.apps.preferences.renderNoPreferences'],function(a,b,c){return b.extend(function(b){c(this),b.init=function(a){this.domTarget=a},this.create_message=function(a,b){var c=jive.apps.preferences.renderAppDataErrorMessage({messageKeys:[a]});return{message:c,style:b}},this.edit_app_preferences=function(b,c){var d=this,e=b.instanceAppID;if(!c.preferences||c.preferences.length<1)d.emit('app.service.wire.nav.hide'),this.domTarget.html(''),this.domTarget.append(a(jive.apps.preferences.renderNoPreferences()));else{var f=a(jive.apps.preferences.renderPreferences({instanceAppID:e,appPreferences:c.preferences.length?c.preferences:[c.preferences]})),g=function(){var b=f.find('.jive-widget-edit-elem-url');b.length&&a(b.get(0)).focus()};d.emit('app.service.wire.submit',{callback:function(){d.emit('app.preferences.save',f.find('form'))}}),this.domTarget.html(''),this.domTarget.append(f)}}})}),define('jive/app/preferences/main',['./models/preferences_model','./views/preferences_view_default','jiverscripts/oo/class','jiverscripts/conc/observable'],function(a,b,c,d){return c.extend(function(c){d(this),c.init=function(c,d){this.source=new a;var e=this;this.defaultView=new b(d),this.defaultView.addListener('app.service.wire.submit',function(a){e.emit('app.service.wire.submit',a)}),this.defaultView.addListener('app.service.wire.cancel',function(a){e.emit('app.service.wire.cancel',a)}),this.defaultView.addListener('app.service.wire.none'),this.source.addListener('app.preferences.get.pref.view',function(a){a.customView?(e.emit('app.service.wire.none'),e.emit('app.preferences.get.custom.view',a.viewUrl)):(e.defaultView.addListener('app.preferences.save',function(a){e.source.setPreferences(a)}),e.defaultView.edit_app_preferences(c,a))}),this.source.addListener('app.preferences.set.all',function(){e.emit('app.preferences.default.saved',{message:'Your preferences have been saved.'})}),this.source.getPreferencesView(c.instanceAppID)}})}),define('soy!jive.apps.container.servicesView',['soyDeps'],function(a){return jive.namespace.call(this,'jive.apps.container'),jive.apps.container.servicesView=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div id="app-services-container" class="j-app-modal-content"><div class="j-modal-column"><ul class="j-modal-nav">',b.app.systemSettingsAvailable?'<li><a href="#" id="j-app-sys-settings">'+soy.$$escapeHtml(a._i18n('ad0ba9',[]))+'</a></li>':'','<li class="selected"><a href="#" id="j-app-svcs-settings">',soy.$$escapeHtml(a._i18n('04eaef',[])),'</a></li><li><a href="#" id="j-app-svcs-config">',soy.$$escapeHtml(a._i18n('fe04c9',[])),'</a></li><li><a href="#" id="j-app-svcs-about">',soy.$$escapeHtml(a._i18n('c30859',[])),'</a></li></ul></div><div class="j-modal-main-wrap"><div class="j-modal-main"><div id="app-services-detail"></div><div class="j-modal-footer"><button id="j-app-services-submit" type="submit" class="j-btn-callout">Submit</button><button id="j-app-services-cancel" type="submit" class="j-btn-global">Cancel</button></div></div></div></div>'),c?'':d.toString()},jive.apps.container.servicesView}),define('jive/app/core_container/views/services_view',['jquery','./appscontainer_view','../site_data','jive/app/configure/main','jive/app/preferences/main','apps/shared/views/loader_view','jiverscripts/conc/observable','soy!jive.apps.container.servicesView','soy!jive.apps.container.renderMessage','soy!jive.i18n.keys.appframeworkAppConfigureSuccess','soy!jive.i18n.keys.appframeworkAppConfigureFailure'],function(a,b,c,d,e,f,g){return b.extend(function(b,h){g(this);var i,j;this.init=function(a,b,c){h.init.call(this,b,c),this.app=a,this.commonContainer=b,this.options=c,this.serviceSites=[]},this.setMarketApp=function(a){this.marketApp=a},this.isActive=function(){return!!a('#app-services-container').length},this.createUI=function(){return a(jive.apps.container.servicesView({app:this.app}))},this.activate=function(){this.determineLeftNavItems(this.app),this.registerLeftNavHandlers(),a('.j-modal-nav li a').click(function(b){a(this).parent('li').addClass('selected').siblings('li').removeClass('selected')}),this.hideNav(),a('#j-app-svcs-about').click()},b.determineLeftNavItems=function(b){a('#j-app-svcs-settings').parent().show(),b.userPrefsAvailable||a('#j-app-svcs-settings').hide(),b.configurationAvailable&&!b.configurationError||a('#j-app-svcs-config').hide()},b.hideNav=function(){a('#app-services-container .j-modal-footer').hide()},b.showNav=function(){a('#app-services-container .j-modal-footer').show()},b.wireButtonListeners=function(b){var c=this;b.addListener('app.service.wire.submit',function(b){c.showNav(),a('#j-app-services-submit').click(b.callback)}),b.addListener('app.service.wire.cancel',function(b){c.showNav(),a('#j-app-services-cancel').click(b.callback)}),b.addListener('app.service.wire.nav.show',function(){c.showNav()}),b.addListener('app.service.wire.nav.hide',function(){c.hideNav()})},this.prepareDetail=function(){var b=a('#app-services-detail');return b.html(''),b},b.registerLeftNavHandlers=function(){var b=this;1==a('#j-app-sys-settings').length&&a('#j-app-sys-settings').click(function(a){b.hideNav();var d='sys-settings-view',e=b.prepareDetail();b.setCurrentSettingsView(d);var f=b.prepareSiteViewIfRequired(d,e[0]);b.showSpinner(e),b.requestNavigateTo(b.app,f,'system-settings',null,function(a){f.jiveData=new c(b,b.app,{}),f.jiveData.setGadgetMetaData(a)}),b.emit('app.navigate.admin-settings'),a.preventDefault()}),a('#j-app-svcs-settings').click(function(a){b.hideNav();var d={},f='user-settings-view',g=b.prepareDetail();b.setCurrentSettingsView(f);var h=new e(b.app,g);b.wireButtonListeners(h),h.addListener('app.preferences.get.custom.view',function(a){var d=g[0],e=b.prepareSiteViewIfRequired(f,d);b.showSpinner(g),b.requestNavigateTo(b.app,e,'user-prefs',null,function(a){e.jiveData=new c(b,b.app,{}),e.jiveData.setGadgetMetaData(a)})}),h.addListener('app.preferences.default.saved',function(a){b.servicesClose(),b.sendNotification({severity:'info',message:a.message}),b.emit('app.reload')}),b.emit('app.navigate.user-prefs'),a.preventDefault()}),a('#j-app-svcs-config').click(function(a){var c=b.prepareDetail(),e='app-service-config-view';b.setCurrentSettingsView(e);var f=new d({app:b.app,domTarget:c});b.wireButtonListeners(f),f.addListener('app.configure.success',function(){b.servicesClose();var a=jive.apps.container.renderMessage({message:jive.i18n.keys.appframeworkAppConfigureSuccess()});b.sendNotification({severity:'info',message:a}),b.emit('app.reload')}),f.addListener('app.configure.failed',function(){var a=jive.apps.container.renderMessage({message:jive.i18n.keys.appframeworkAppConfigureFailure()});b.sendNotification({severity:'error',message:a})}),b.emit('app.navigate.configure'),a.preventDefault()}),a('#j-app-svcs-developer').click(function(a){b.hideNav();var c='app-developer-view';b.setCurrentSettingsView(c);var d=b.prepareDetail(),e=b.app;'undefined'==typeof e.developerModel&&(e.developerModel=new jive.JAF.Configuration.DeveloperModel);var f=new jive.JAF.Configuration.Developer({app:e,domTarget:d});b.emit('app.navigate.developer'),a.preventDefault()}),a('#j-app-svcs-about').click(function(a){var d='app-about-view';if(b.currentView!=d){b.hideNav();var e=b.prepareDetail();b.setCurrentSettingsView(d);var f=b.prepareSiteViewIfRequired(d,e[0]);if(b.app.aboutViewAvailable)b.requestNavigateTo(b.app,f,'about',null,function(a){f.jiveData=new c(b,b.app,{}),f.jiveData.setGadgetMetaData(a)});else{var g={};b.app.appUUID?(g.market={experience:'about'},g.market.appUUID=b.app.appUUID):g.market={experience:'default'};var h=b.prepareMarketContext(g),i=b.getEmbeddedContext(h.embeddedID);i.target.view='embedded',b.renderAppEE_(e[0],b.marketApp,i,function(a,d){aboutSite=a,aboutSite.jiveData=new c(b,b.marketApp,{}),aboutSite.jiveData.setEEContext(i),aboutSite.jiveData.setGadgetMetaData(d);var f=e.find('iframe');f.removeData(),b.marketApp.marketFeatureAvailable&&f.data('hasMarketFeature',!0),f.css({height:'500px',width:'450px'})})}b.emit('app.navigate.about'),a.preventDefault()}});var f=function(a){b.servicesClose(),a.preventDefault()};a('.j-modal-back-top').click(f),a('#j-app-services-cancel').click(f)},b.servicesClose=function(a){this.setCurrentSettingsView(null),this.emit('app.services.close')},this.setCurrentSettingsView=function(a){this.currentView!=a&&this.serviceSites[a]&&(this.commonContainer.closeGadget(this.serviceSites[a]),this.currentView=null,this.serviceSites[a]=null),this.currentView=a},this.prepareSiteViewIfRequired=function(a,b){var c=this.serviceSites[a];return c?c:(this.serviceSites[a]=this.commonContainer.newGadgetSite(b),this.currentView=a,this.serviceSites[a])},this.requestNavigateTo=function(a,b,c,d,e){a.view=c,this.renderApp_(b,a,e,d)},b.showSpinner=function(b){var c=new f({size:'small',inline:!0});c.appendTo(a(b)),c.show()}})}),define('jive/app/core_container/market_events',['jiverscripts/oo/class','jiverscripts/conc/observable','apps/shared/controllers/switchboard'],function(a,b,c){return a.extend(function(a){b(this),this.init=function(){var a=this;this.addListener('market_hidden',this.marketClose.bind(this)),this.addListener('app_install',this.appInstall.bind(this)),this.addListener('app_uninstall',this.appUninstall.bind(this))},a.marketClose=function(){},a.appInstall=function(a,b,d){c.emit('apps_market.apps_have_changed')},a.appUninstall=function(a,b,d){c.emit('apps_market.apps_have_changed')}})}),define('jive/app/rte/artifacts',['jquery','url','gadgets','jiverscripts/oo/class','jiverscripts/conc/next_tick','jiverscripts/conc/promise','jive/namespace','vendor/jquery/plugins/jquery.browser'],function(a,b,c,d,e,f){return jive.namespace('Apps'),jive.Apps.RteArtifacts=d.extend(function(d){function g(a){var b=a.width();if(b>m){var c=m/b,d=Math.round(c*b);a.attr('width',d)}}function h(a){var b=a.attr('src');if(b.match(/^\/[^\/]/))return 0;var c='(https?:)?//'+location.hostname+(location.port?':'+location.port:'');return b.match('^'+c)?d.isProxiedUrl(b)?1:0:!0}function i(a,c,d,e){var f=b.appsUrl('instances/'+e+'/attach_image');return j(a,c,d,f)}function j(b,c,g,h){function i(){console&&console.log('Image REST request failed for %s',k,arguments),b.remove()}var j=c.getImageService(),k=b.attr('alt'),l=b.attr('src'),m=new f,n=c.getFormService(),o=n.setFormEnabled(!1,g.getLang('jiveimage.please_wait'));return j.createFromImageSrc(k,d.isProxiedUrl(l)?l:encodeURI(l),h).addCallback(function(c){b.load(function(){var b=a(this);b.css({width:b.width()+'px',height:b.height()+'px','max-width':'','max-height':''})}),b.attr('src',c.url),e(function(){g.nodeChanged()}),m.emitSuccess(b)}).addErrback(function(){i(),m.emitError()}).always(function(){n.setFormEnabled(o)}),m}function k(b,c){var d=new f,e={url:b,
contentType:'application/x-www-form-urlencoded',processData:!1,data:c},g={contentType:'application/json; charset=utf-8'};return a.ajax(a.extend({type:'POST',dataType:'json',success:function(a,b,c){a&&a.url?d.emitSuccess(a.url):d.emitError()},error:function(a){d.emitError(a)},timeout:3e4},g,e)),d}var l=CS_RESOURCE_BASE_URL+'/images/tiny_mce3/themes/advanced/skins/default/img/progress.gif',m=450,n='OpenSocial/2.5',o='legacy';this.init=function(){},d.showMessage=function(b,c){a('<p/>').html(b).message({style:c})},this.buildArtifactMarkup=function(b,c){var e=b?b[osapi.container.GadgetSite.RPC_ARG_KEY]:null,f=e.jiveData.app,g=c.artifactJson,h=c.rteBound;d.makeArtifactURLsAbsolute(g,f,c.suppressImageUpload);var i=d.normalizeArtifact(g),j=i.icon,k=i.previewImage,l=j||k;console&&console.log('imageUrl',l);var m=this,n=function(d,f){if(!d)return b.callback({error:'No artifactJson metadata was provided'}),void 0;var g=e.getActiveSiteHolder().getGadgetInfo(),i=g.modulePrefs.features.actions,j;if(i&&i.params&&i.params['action-contributions'])for(var k=i.params['action-contributions'],l=0;l<k.length;++l){var n=k[l].replace(/\n/gm,''),o=n.match(/id="(.+?)"/);if(j=o?o[1]:null,j&&j==c.actionId)break}if(!j)return b.callback({error:'App does not define action '+c.actionId}),void 0;if(!e)return m.showMessage('Error occured, app site missing'),b.callback({error:'Application framework error'}),void 0;var p=e.jiveData,q=m.createArtifact({ed:document,appUUID:p.app.appUUID,appInstanceUUID:p.app.appInstanceUUID,data:d,rteBound:h}),r=a(q),s=r.wrap('<span></span>').parent().html();if(a.browser.msie)if(a.browser.version<9)s=s.replace(/<\w[^>]*>/g,function(a){return a.replace(/(\w+=)([-.\w]+)/g,'$1"$2"')}),s=s.replace(/(<IMG((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'">\s]+))?)+\s*|\s*)\s*>)/g,'$1</IMG>');else{var t=function(a,b){var c=r.attr(b);if(c){var d=c.replace(/\"/g,'&quot;');a=a.replace(b+'=\''+c+'\'',b+'="'+d+'"')}return a};s=t(s,'_context')}b.callback({markup:s,error:f})};if(c.suppressImageUpload||!l)return n(g),void 0;var o=j?d.uploadArtifactIcon(j,f.appInstanceUUID):void 0,p=k?d.uploadArtifactImage(k):void 0,q=o||p;if(!q){var r='Error uploading iconUrl or previewImage.';return m.showMessage(r),console&&console.log(r),n(g,r),void 0}q.addCallback(function(a){a=a||l,j?d.updateIcon(g,a):d.updatePreviewImage(g,a),n(g)}).addErrback(function(a){var b='Could not upload '+l;m.showMessage(b),console&&console.log(b,a),n(g,b)})},d.isProxiedUrl=function(a){return new RegExp("^"+jive.global.subdomain.template.replace(/(\.|\?|\*|\+|\[|\]|\{|\}|\&|\$|\\)/g,"\\$1").replace("%path%","/gadgets/proxy\\?.*").replace("%hash%","[0-9a-f]{40}")).test(a)},d.makeRelativeAppResourceUrl=function(a,b){var c=b.appURL?b.appURL.match(/.*\//)[0]:'';return null===a.match(/^http/)&&null===a.match(/^\/\//)?c+a:null},this.makeArtifactURLsAbsolute=function(a,b,e,f){var g=function(a){if(f&&/^(\/\w+)?\/gadgets\/(js|concat|proxy)\?/.exec(a))return f+a;var e=d.makeRelativeAppResourceUrl(a,b);if(e)return e;if(a.match(/^\/\//)&&'undefined'!=typeof c){var g=c.io.getProxyUrl(),h=g.match(/^https?:(\/\/.+)\?/);if(h&&h.length>1&&(h[1]=h[1].substring(0,2)+'.*'+h[1].substring(2),a.match('^'+h[1]))){var i=a.match(/url=(.+)&?/);if(i&&i.length>1)return i[1]}}},h=d.normalizeArtifact(a),i=h.previewImage;if(i){var j=/^(\/\w+)?\/resources\/add-ons\/[0-9a-f-]{36}\/[0-9a-f]{8,16}\//.exec(i);if(!j&&(i=g(i)||i,!e&&!d.isProxiedUrl(i))){var k={};f&&(k.host=f.substring(f.indexOf('//')+2)),i=c.io.getProxyUrl(i,k)}d.updatePreviewImage(a,i)}var l=h.icon;if(l){var j=!1;if(f&&null===e&&"object"==typeof e&&(e=!!/^(\/\w+)?\/gadgets\/proxy\?/.exec(l),j=/^(\/\w+)?\/resources\/add-ons\/[0-9a-f-]{36}\/[0-9a-f]{8,16}\//.exec(l)),!j&&(l=g(l)||l,!e&&!d.isProxiedUrl(l))){var k={};f&&(k.host=f.substring(f.indexOf('//')+2)),l=c.io.getProxyUrl(l,k)}d.updateIcon(a,l)}},d.updatePreviewImage=function(a,b){d.deduceArtifactFormatType(a)==n?a.previewImage=b:a.display.previewImage=b},d.updateIcon=function(a,b){d.deduceArtifactFormatType(a)==n?a.preferredExperience.display.icon=b:a.display.icon=b},d.deduceArtifactFormatType=function(a){return a.preferredExperience?n:o},d.normalizeArtifact=function(a){var b=d.deduceArtifactFormatType(a);if(b==n){var c=a.preferredExperience,e=c.target.type;e='gadget'===e?'embed':e,c.display=c.display||{},c.target=c.target||{};var f=c.display.type,g='image'==f?c.display.altText:c.display.label;return{hasPreviewImage:'image'==f&&a.previewImage,hasIcon:'text'==f&&Boolean(c.display.icon),linkType:e||'none',label:g||a.actionLabel,icon:c.display.icon,previewImage:a.previewImage,url:a.url,view:c.target.view,context:a.context,artifactFormatType:b}}return a.display=a.display||{},a.target=a.target||{},{hasPreviewImage:'image'==a.display.type,hasIcon:'text'==a.display.type&&Boolean(a.display.icon),linkType:a.target.type||'none',label:a.display.label||a.actionLabel,icon:a.display.icon,previewImage:a.display.previewImage,url:a.target.url,view:a.target.view,context:a.target.context,artifactFormatType:b}},d.extractFileName=function(a){return d.isProxiedUrl(a)?a.match(/.*\%2F(.+)/)[1]:a.match(/.*\/(.+)/)[1]},this.createArtifact=function(b){var c=b.rte,f=b.ed,k=b.appUUID,m=b.actionId,n=b.data,o=b.editedContentBean,p=b.appInstanceUUID,q=b.rteBound,r=c||q,s=r?function(a){return'__'+a}:function(a){return'_'+a};n=n||{},n.actionLabel=b.actionLabel;var t=d.normalizeArtifact(n),u=t.hasPreviewImage,v=t.hasIcon,w=t.linkType,x=t.label,y=t.icon,z=t.previewImage,A=t.url,B=t.view,C=t.context,D=c?f.getDoc():f,E=a(D.createElement('a'));if(E.attr('jivemacro','appEmbeddedView'),E.attr('__jive_macro_name','appEmbeddedView'),E.attr('href','url'==w?A:'javascript:;'),c)if(u){var F=o&&o.attachmentConfigActionBean?o.attachmentConfigActionBean.canAttach:!0,G=d.extractFileName(z),H=a(f.dom.create('img')).attr('src',l).attr('alt',G);E.append(H);var I=a(f.dom.create('img')).attr('src',z).attr('alt',G).addClass('jiveImage').hide();E.append(I),I.load(function(){I.unbind(),g(I),H.unbind().remove(),I.show(),e(function(){F&&h(I)&&j(I,c,f).addCallback(function(a){z=a.attr('src'),E.attr('__previewImage',z)})})}),E.addClass('jive-link-app-preview')}else if(v){var F=o&&o.attachmentConfigActionBean?o.attachmentConfigActionBean.canAttach:!0;E.text(x),E.css('background-image','url(\''+y+'\')'),E.addClass('jive-link-app-icon'),E.attr('__icon',y);var G=d.extractFileName(y),I=a(f.dom.create('img')).attr('src',y).attr('alt',G).hide();e(function(){F&&h(I)&&i(I,c,f,p).addCallback(function(a){y=a.attr('src'),E.attr('__icon',y),E.css('background-image','url(\''+y+'\')')})}),E.append(a(f.dom.create('span')).addClass('j-ui-elem').addClass('j-app-link'))}else E.text(x),E.addClass('jive-link-app'),E.append(a(c?f.dom.create('span'):D.createElement('span')).addClass('j-ui-elem').addClass('j-app-link'));else if(u){var G=d.extractFileName(z);E.attr(s('previewImage'),z),E.addClass('jive-link-app-preview');var J=a(D.createElement('img'));J.attr('src',z).attr('alt',G).addClass('jiveImage'),E.append(J)}else v?(E.text(x),a.browser.msie||E.css('background-image','url(\''+y+'\')'),E.addClass('jive-link-app-icon'),E.attr(s('icon'),y),E.append(a(D.createElement('span')).addClass('j-ui-elem').addClass('j-app-link'))):(E.text(x),E.addClass('jive-link-app'),E.append(a(D.createElement('span')).addClass('j-ui-elem').addClass('j-app-link')));return x&&E.attr('title',x),E.attr(s('appUUID'),k),E.attr(s('action_id'),m),'embed'==w&&(E.attr(s('view'),B||'embedded'),E.attr(s('context'),JSON.stringify(C||{}))),A&&E.attr(s('url'),A),E.attr('modifiedTitle','true'),E.addClass('jive_macro'),E.addClass('jive_macro_appEmbeddedView'),E[0]},this.parseSelectionContextFromArtifact=function(a){var b=a.attr('__context'),c=a.attr('__view'),d=a.attr('__url'),e=a.attr('__previewImage')?'image':'text',f=a.attr('__title'),g=a.attr('__previewImage'),h=a.text().trim()||'',i=a.attr('__icon'),j=null;switch(e){case'image':j={type:'image',previewImage:g},f&&(j.label=f);break;case'text':j={type:'text',label:h},i&&(j.icon=i)}var k=b||c?'embed':'url',l=null;switch(k){case'embed':l={type:'embed',view:c||'embedded'},b&&(l.context=JSON.parse(b)),d&&(l.url=d);break;case'url':l={type:'url',url:d||''}}return{display:j,target:l}},this.uploadArtifactIcon=function(a,c){var e=d.extractFileName(a),f=b.appsUrl('instances/'+c+'/attach_image')+'?name='+e;return k(f,a)},this.uploadArtifactImage=function(a){var c=d.extractFileName(a),e=b.v2Url('/rteImages')+'?name='+c+'&objectId=-1&objectType=-1';return k(e,a)}}),jive.Apps.RteArtifacts}),define('jive/app/core_container/models/rtc_model',{rtcViews:{}}),define('jive/app/core_container/main',['jquery','underscore','./shared','jiverscripts/conc/observable','apps/shared/controllers/switchboard','jive/app/app-file-uploader','jive/app/oauth/main','./views/credentials_view','./views/services_view','./market_events','jive/app/rte/artifacts','osapi','gadgets','jive/app/core_container/models/rtc_model'],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){return c.extend(function(b){d(this);var c=new j,o=new k,p={LINK:'app.link.run',RTE:'app.rte.run',CONTENT:'app.content.run'};this.initEditContext=function(a){this.options.editedContentBean=a;var b=a.appContextBean;b&&(this.editContext={jive:{content:{type:b.coreAPIType,id:b.containerId<0?0:b.containerId}}})},b.initializeEventHandlers=function(b){var d=this;a.each(b,function(a,b){d.modalView.addListener(b,function(a){d.handleRunAction(a,b)})}),this.applyAppReloadHandlers(this.modalView),this.modalView.addListener('app.services.show',function(a){d.servicesView&&d.servicesView.isActive()||(d.servicesView&&delete d.servicesView,a&&d.model.getApp(a).addCallback(function(a){d.servicesView=new i(a,d.commonContainer,d.options),d.servicesView.addListener('app.reload',function(){d.reloadApp()}),d.model.getAppsMarketApp().addCallback(function(b){d.servicesView.setMarketApp(b),d.servicesView.addListener('app.services.close',function(){d.modalView.destroySettings(),a.developerModel&&d.modalView.setSparkline(a.developerModel.getMonitorState())}),d.modalView.invokeSettings(d.servicesView)})}))}),this.modalView.addListener('app.chrome.close',function(){delete d.servicesView,d.credentialsView&&(d.credentialsView.cleanup(),delete d.credentialsView),d.servicesView=null,d.credentialsView=null,d.oauthView=null}),c.addListener('show_information',function(a,b,c){d.sendNotification(c,a)}),c.addListener('app_install',function(b,c,f){var g=a.isArray(b)?b.length?b[0]:null:b;if(d.postInstallActionRun){var h=d.postInstallActionRun.actionInfo,i=d.postInstallActionRun.origin,j=function(){d.postInstallActionRun&&g&&h&&i&&g.appUUID===g.appUUID&&(delete d.postInstallActionRun,d.handleRunAction(h,i),d.postInstallActionRun=null),e.removeListener('app.install.ended',j)};e.addListener('app.install.ended',j),setTimeout(j,4250)}else{var k=f[l.container.GadgetSite.RPC_ARG_KEY],m=k.jiveData.mvcView;d.model.cacheApp(g,!1),m.handleAppsMarketInstall(g)}}),d.applyAppAlertHandlers(d.modalView),d.applyOAuthHandlers(d.modalView),d.applyRefreshHandlers(d.modalView),d.applyCredentialsHandlers(d.modalView),a(document).ready(function(){d.modalView.documentReady()})},b.applyAppReloadHandlers=function(a){var b=this,c=function(){b.oauthView&&delete b.oauthView,b.servicesView&&delete b.servicesView,b.credentialsView&&delete b.credentialsView};a.addListener('app.reload',function(a){c(),b.reloadApp(a)})},b.applyOAuthHandlers=function(a){var b=this;a.addListener('app.oauth.show',function(c){b.oauthView||(b.oauthView=new g(c.app,c.options.alias,c.options.redirectURI,c.options.windowChars,c.callback),a.invokeOauthDance(b.oauthView),b.oauthView.addListener('popup.closed',function(){delete b.oauthView}))})},b.applyRefreshHandlers=function(b){var c=this;b.addListener('app.services.refresh',function(d){var e=a(d).attr('data-appuuid'),f=a(d).attr('data-endpoint');c.model.refreshApp(f,function(){b.refresh()},function(){b.displayRefreshMsg(!1)})})},b.applyCredentialsHandlers=function(a){var b=this;a.addListener('app.credentials.show',function(c){b.credentialsView||(b.credentialsView=new h(c),a.invokeCredentials(b.credentialsView),b.credentialsView.addListener('app.credentials.complete.error',function(){a.closeModal()}),b.credentialsView.addListener('app.credentials.complete.success',function(){a.destroyCredentials(),delete b.credentialsView}),b.credentialsView.addListener('app.service.message',function(b){a.sendNotification(b)}))})},b.applyAppAlertHandlers=function(a){var b=this;a.addListener('app.remove.banned',function(a,c,d){b.model.appRemove('ban',a.id,c,d),e.emit('apps_market.apps_have_changed')}),a.addListener('app.remove.blacklisted',function(a,c,d){b.model.appRemove('blacklist',a.id,c,d),e.emit('apps_market.apps_have_changed')}),a.addListener('app.remove.throttle.violation',function(a,c,d){b.model.acknowledgeThrottle(a.id,function(){c(),b.reloadApp(!1)},d)}),a.addListener('app.hide',function(a,c,d){b.model.appHide(a.id,c,d),e.emit('apps_market.apps_have_changed')}),a.addListener('app.refresh',function(){b.reloadApp(!1)}),a.addListener('app.delete',function(a,c,d){b.model.deleteApp(a.appInstanceUUID,c,d),e.emit('apps_market.apps_have_changed')})},b.rpcRegister=function(){var a=this;this.commonContainer.rpcRegister('maximize_app',a.maximizeApp.bind(a)),this.commonContainer.rpcRegister('get_launch_context',a.getLaunchContext.bind(a)),this.commonContainer.rpcRegister('editor_insert',a.editorInsert.bind(a)),this.commonContainer.rpcRegister('request_core_api_upload',a.requestCoreApiUploadMediaItem.bind(a)),this.commonContainer.rpcRegister('fire_market_events',a.fireMarketEvents.bind(a)),this.commonContainer.rpcRegister('build_artifact_markup',a.buildArtifactMarkup.bind(a)),this.commonContainer.rpcRegister('host_app_icon',a.uploadAppIcon.bind(a)),this.commonContainer.rpcRegister('gather_oauth_credentials',a.gatherOAuthCredentials.bind(a)),this.commonContainer.rpcRegister('halt_app',a.gatherCredentials.bind(a)),this.commonContainer.rpcRegister('editing_finished',a.editingFinished.bind(a)),this.commonContainer.rpcRegister('editing_canceled',a.editingCanceled.bind(a)),this.commonContainer.rpcRegister('jive.event',a.jiveEvent.bind(a))},this.renderCanvasView=function(a){var c=this;require(['jive/app/core_container/views/canvas_view','shindig'],function(d,e){b.loadCanvasView(c,d);var f=a.appInstanceView.params?JSON.parse(a.appInstanceView.params):null;if(null!==a.viewParamsToken){var g=a.viewParamsToken;null!==g.view&&(a.appInstanceView.view=g.view),null!==g.params&&(f=g.params)}a.isMarketApp&&(a.marketContext=c.buildMarketContext(a.appInstanceView,c.canvasView,a.marketInitialToken),a.marketContext=c.canvasView.getEmbeddedContext(a.marketContext.embeddedID),a.marketContext.target.view='default');var h;a.launchContext&&(h={jive:{content:{type:a.launchContext.coreAPIType,id:a.launchContext.id},context:a.launchContext.context}}),c.model.getAuthToken().then(function(){c.model.cacheApp(a.appInstanceView,a.isMarketApp),c.canvasView.render(a.appInstanceView,f,a.marketContext,function(a){},h)},function(){window.location.reload()})})},this.renderRtcView=function(a){var b=this;require(['jive/app/core_container/views/rtc_view','shindig'],function(c,d){var e=a.appInstanceView.appUUID+'::'+a.appInstanceView.view;n.rtcViews[e]&&(b.closeGadget(n.rtcViews[e]),delete n.rtcViews[e]);var f=new c(b.commonContainer,{});b.applyAppReloadHandlers(f),b.applyAppAlertHandlers(f),b.applyOAuthHandlers(f),b.applyRefreshHandlers(f),b.applyCredentialsHandlers(f),b.addRTCListener();var g;a.launchContext&&(g={jive:{content:{type:a.launchContext.coreAPIType,id:a.launchContext.id},context:a.launchContext.context}}),b.model.getAuthToken().then(function(){b.model.cacheApp(a.appInstanceView,a.isMarketApp),f.render(a.appInstanceView,a.marketContext,function(a,b){n.rtcViews[e]=b},b.determineContainerContext())},function(){})})},this.addRTCListener=function(){e.addListener('apps.jive.event',function(b){console.log('event details are '+JSON.stringify(b)),require(['promise!jive/app/container'],function(c){if(c.isRTCView(b.appUUID,b.view)&&'presence-event-display'==b.eventId&&b.eventData&&b.eventData.id){var d=a('#j-profile-presence-'+b.eventData.id+', #j-hovercard-presence-'+b.eventData.id);d.length&&(d.show().attr('class','').addClass('j-profile-presence j-presence-'+b.eventData.status),d.find('.j-presence-display').text(b.eventData.display))}})})},this.sendRtcMessageToAll=function(a,b,c){for(idViewKey in n.rtcViews){var d=idViewKey.split('::')[0],e=idViewKey.split('::')[1];this.sendRtcMessage(d,e,a,b,c)}},this.isRTCView=function(a,b){var c=a+'::'+b;return!!n.rtcViews[c]},this.sendRtcMessage=function(a,b,c,d,e){var f=a+'::'+b;if(n.rtcViews[f]){var g=n.rtcViews[f],h={id:c,data:d};m.rpc.call(g.getActiveSiteHolder().getIframeId(),'jive.event',function(f){e&&e({appUUID:a,view:b,eventId:c,eventData:d,returnValue:f})},h)}},b.loadCanvasView=function(a,b){'undefined'==typeof a.canvasView&&(a.canvasView=new b(a.commonContainer,{}),this.bindActionOriginEnum(a.canvasView.getActionOriginEnum()),a.applyAppReloadHandlers(a.canvasView),a.applyAppAlertHandlers(a.canvasView),a.applyOAuthHandlers(a.canvasView),a.applyRefreshHandlers(a.canvasView),a.applyCredentialsHandlers(a.canvasView),a.canvasView.addListener('app.services.show',function(b){a.servicesView&&a.servicesView.isActive()||(a.servicesView=new i(b,a.commonContainer,a.options),a.model.getAppsMarketApp().addCallback(function(c){a.servicesView.setMarketApp(c),a.canvasView.invokeSettings(a.servicesView,b),a.servicesView.addListener('app.services.close',function(){a.canvasView.destroySettings()})}),a.servicesView.addListener('app.reload',function(){a.reloadApp()}))}),a.canvasView.addListener('app.canvas.modal.close',function(){delete a.servicesView,a.credentialsView&&(a.credentialsView.cleanup(),delete a.credentialsView),a.servicesView=null,a.credentialsView=null,a.oauthView=null}))},b.determineContainerContext=function(){var b=a.extend(!0,{},this.editContext||this.actionLinkContext);if(jive.discussions&&jive.discussions.instance&&(b.jive.content.type='osapi.jive.core.Discussion',b.jive.content.id=jive.discussions.instance.getObjectId()),null!=this.modalView.getCommentContext())b.jive.content=a.extend(this.modalView.getCommentContext().content,{parent:b.jive.content});else if(null!=this.modalView.getInboxEntryContext())b.jive.content=this.modalView.getInboxEntryContext().content;else if(null!=this.modalView.getActivityStreamContext())b.jive.content=this.modalView.getActivityStreamContext().content;else if(jive.advancedComment&&jive.advancedComment.instance){var c=jive.advancedComment.instance.getAppContext();a.extend(b.jive.content,{id:jive.advancedComment.instance.getObjectId(),parent:{id:c.containerId,type:c.coreAPIType},type:'osapi.jive.core.Message'}),a.extend(b.jive.content,function(a){return a?{inReplyTo:{id:a.id,type:'osapi.jive.core.Message'}}:{}}(jive.advancedComment.instance.getParent()))}else{var d=this.editContext?this.editContext.jive:void 0;d=d||this.actionLinkContext.jive,a.extend(b.jive,d)}return b},b.determineRTEContext=function(){return this.rteContext},b.maximizeApp=function(a){var b=a[l.container.GadgetSite.RPC_ARG_KEY];b.jiveData.mvcView.maximizeApp(b)},b.getLaunchContext=function(a){var b=a[l.container.GadgetSite.RPC_ARG_KEY];a.callback&&a.callback(b.jiveData.getLaunchContext())},b.gatherCredentials=function(a,b){var c=a[l.container.GadgetSite.RPC_ARG_KEY],d=c.jiveData.app;c.jiveData.mvcView.emit('app.credentials.show',{app:d,callback:a.callback,args:b})},b.gatherOAuthCredentials=function(a,b){var c=a[l.container.GadgetSite.RPC_ARG_KEY],d=c.jiveData.app;c.jiveData.mvcView.emit('app.oauth.show',{app:d,callback:a.callback,options:b})},b.requestCoreApiUpload=function(a,b,c,d){c=c||{},new f(this,b,c,d,a.callback)},b.requestCoreApiUploadMediaItem=function(a,b,c,d){this.requestCoreApiUpload(a,b,c,d)},b.setTitle=function(a,b){var c=a[l.container.GadgetSite.RPC_ARG_KEY],d=c.jiveData.app;c.jiveData.mvcView.setTitle(b)},b.editingFinished=function(a,b){var c=a[l.container.GadgetSite.RPC_ARG_KEY],d=c.jiveData.app;b&&b.message&&c.jiveData.mvcView.emit('app.service.message',{message:b.message}),c.jiveData.mvcView.emit('app.services.close'),this.reloadApp()},b.editingCanceled=function(a,b){var c=a[l.container.GadgetSite.RPC_ARG_KEY],d=c.jiveData.app;b&&b.message&&c.jiveData.mvcView.emit('app.service.message',{message:b.message}),c.jiveData.mvcView.emit('app.services.close')},b.jiveEvent=function(a,b){e.emit('apps.jive.event',{appUUID:a.gs.jiveData.app.appUUID,view:a.gs.jiveData.app.view,eventId:b.id,eventData:b.data}),console.log('Container received '+b.id+' with data '+JSON.stringify(b.data))},b.editorInsert=function(a,c){var d=a[l.container.GadgetSite.RPC_ARG_KEY],e=d.jiveData.mvcView;if('undefined'!=typeof c.html&&this.appActionDataPromise){var f=new k;f.makeArtifactURLsAbsolute(c,d.jiveData.app),this.appActionDataPromise.resolve(c,a,this.options.editedContentBean)}b.scheduleModalClose(e,c)},b.sendNotification=function(b,c){var d=b?b[l.container.GadgetSite.RPC_ARG_KEY]:null;if(c=c||{},'undefined'!=typeof c.message&&'undefined'!=typeof c.severity&&(c.severity=c.severity.toLowerCase(),!(c.severity in{error:1,info:1,success:1})))throw'Invalid severity: must be \'error\', \'info\' or \'success\'';if(d){var e=d.jiveData.mvcView;e.sendNotification(c)}else{c=c||{};var f=c.message,g=c.severity||'info';'undefined'!=typeof f&&a('<p/>').html(f).message({style:g})}},this.reloadApp=function(a){function b(){c.modalView&&c.modalView.reload(function(a,b){pendingActions[b.actionId]=a.getActiveSiteHolder().getIframeId()}),c.canvasView&&c.canvasView.reload()}var c=this;if(a)b();else{var d=this.modalView.getRenderedApp()||this.canvasView&&this.canvasView.getRenderedApp();d&&(d.outdated=!0,this.model.getApp(d.appUUID).addCallback(function(a){c.preCacheAppResources(a),b()}))}},this.handleRTEActionSelect=function(a,b,c){this.appActionDataPromise=c,this.rteContext=b,this.modalView.handleCreateActionSelect(a,p.RTE)},this.handleRTEActionContextEdit=function(a,b,c,d){this.appActionDataPromise=d,this.rteContext=b;var e={actionId:a.id,appURL:a.appURL,appInstanceUUID:a.appInstanceUUID,appUUID:a.appUUID,label:a.label,selectionType:'',selectionID:'',view:a.view,currentArtifact:c};this.modalView.handleEditActionSelect(e,p.RTE)},this.handleMarketContext=function(b){var d=this,e=null;this.appActionDataPromise=a.Deferred(),this.appActionDataPromise.done(function(b,c){b&&(e=a('#'+c.f),d.fireMarketEventsImpl(b.events,e,c))});var f=function(){c.emit('market_shown')},g=function(){c.emit('market_hidden')},h={};'string'==typeof b?h.initialToken=b:h=b?b:{},d.model.getAppsMarketApp().addCallback(function(a){var c=d.buildMarketContext(a,d.modalView,b);d.modalView.render(a,c,null,f,g,h)})},this.buildMarketContext=function(a,b,c){var d=this.buildJiveContextForMarket(c);'string'==typeof c&&this.hackInitialTokenIntoMarketContext(c,d.market);var e=b.prepareMarketContext(d);if(c&&c.view){var f=b.getEmbeddedContext(e.embeddedID);f&&(f.target.view=c.view)}return e},this.getMarketEvents=function(){return c},b.buildJiveContextForMarket=function(b){var c=b&&b.embeddedID&&this.modalView.getEmbeddedContext(b.embeddedID),d=c&&c.jive?a.extend({},c.jive):{};return d.market={experience:b.experience||'default'},b.appUUID&&(d.market.appUUID=b.appUUID),b.appFilter&&(d.market.appFilter=b.appFilter),b.appShortName&&(d.market.appShortName=b.appShortName),b.isDevelopmentApp&&(d.market.isDevelopmentApp=b.isDevelopmentApp),b.alternateUrl&&(d.market.alternateUrl=b.alternateUrl),d},b.hackInitialTokenIntoMarketContext=function(a,b){var c=a.split(';');b.experience=c[0]||'default';for(var d=1;d<c.length;d++){var e=c[d].split('=',2);e[1]&&('uuid'==e[0]?b.appUUID=e[1]:'name'==e[0]&&(b.appFilter=e[1]))}},this.removeAppFromPage=function(a){this.commonContainer.closeGadget(a)},b.ensureHasMarketFeature=function(b){if(!a('#'+b).data('hasMarketFeature'))throw'Unauthorized call to market restricted RPC function'},b.fireMarketEvents=function(b,c){this.ensureHasMarketFeature(b.f),c&&c.events&&this.fireMarketEventsImpl(c.events,a('#'+b.f),b)},b.fireMarketEventsImpl=function(a,b,d){if(a&&a.length)for(var e=0,f=a.length;f>e;++e){var g=a[e];g&&g.eventName&&c.emit(g.eventName,g.eventData,b,d)}},b.buildArtifactMarkup=function(a,b){o.buildArtifactMarkup(a,b)},b.uploadAppIcon=function(a,b){var c=a?a[l.container.GadgetSite.RPC_ARG_KEY]:null,d=a.callback,e=c.jiveData.app,f=b.iconUrl,g=o.uploadArtifactIcon(f,e.appInstanceUUID);g.addCallback(function(a){d(a)}).addErrback(function(a){console&&console.log('error uploading '+f,a),d()})}})}),define('jive/app/syntheticContainerDeferred',['jquery'],function(a){return a.Deferred()}),require(['jquery'],function(a){function b(b){var c=a('#vcard-modal-prompt').find(':checked');if(c.length>0){for(var d=b,e=0;e<c.length;e++)d=d+(d.indexOf('?')>-1?'&':'?')+'objectTypes='+c[e].value;return d}return''}window.toggleVCardActionButtons=function(){var b=a('#vcard-modal-prompt').find(':checked');b.length>0?(a('#vcard-download-button').prop('disabled',!1),a('#vcard-email-button').prop('disabled',!1)):(a('#vcard-download-button').prop('disabled',!0),a('#vcard-email-button').prop('disabled',!0))},window.downloadVCard=function(a){var c=b(a);return c&&c.length>0?(document.location.href=c,!1):(alert('You must select at least one content type.'),!1)},window.emailSingleVCard=function(b,c){return a('#vcard-modal-prompt').find(':checked').prop('checked',!1),b.prop('checked',!0),emailVCard(c),!1},window.emailVCard=function(c){var d=b(c);if(d&&d.length>0)try{a('#vcard-modal-results').load(d,null,function(){a('#vcard-modal-prompt').hide(),a('#vcard-modal-results').show()})}catch(e){a('#vcard-modal-prompt').hide(),a('#vcard-modal-results').html('There was an unexpected error.<br><br>'+e),a('#vcard-modal-results').show()}else alert('You must select at least one content type.');return!1}}),define("jive/author-by-email",function(){}),define('jive/autoscroll',['jquery','../vendor/jquery/plugins/jquery.scrollTo'],function(a){function b(e){try{var f=a(d)}catch(g){return}f.length>0?c.resolve(f):e>0?setTimeout(b.curry(e-1),500):c.reject('Unable to find element with id: "'+d+'".')}var c=a.Deferred(),d=window.location.hash,e=window.scrollY;a(function(){})}),define('jive/xhr_stack',['jiverscripts/conc/observable'],function(){return function(){var a=jive.conc.observable({}),b=0,c,d=function(c,d,e){c===b&&a.emit.apply(a,Array.prototype.slice.call(arguments,2))};return a.add=function(e,f){b+=1,a.empty(),c=e;var g=d.curry(b,f,'success'),h=d.curry(b,f,'failure');return c.done(g).fail(h),a},a.empty=function(){return c&&c.abort&&c.abort(),c=void 0,a},a}}),define('soy!jive.hovercard.cardError',['soyDeps'],function(a){return jive.namespace.call(this,'jive.hovercard'),jive.hovercard.cardError=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-usercard is-active"><div id="main">',soy.$$escapeHtml(a._i18n('8389b4',[])),'</div></div>'),c?'':d.toString()},jive.hovercard.cardError}),define('soy!jive.hovercard.cardUnauth',['soyDeps'],function(a){return jive.namespace.call(this,'jive.hovercard'),jive.hovercard.cardUnauth=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-usercard is-active"><div id="main">',soy.$$escapeHtml(a._i18n('6e5f49',[])),'</div></div>'),c?'':d.toString()},jive.hovercard.cardUnauth}),define('soy!jive.shared.displayutil.cardLoading',['soyDeps'],function(a){return jive.namespace.call(this,'jive.shared.displayutil'),jive.shared.displayutil.cardLoading=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-card-loading"><strong class="jive-tooltip2-loading">',soy.$$escapeHtml(a._i18n('a5819b',[])),'</strong></div>'),c?'':d.toString()},jive.shared.displayutil.cardLoading}),define('jquery-plugin/jquery.hovercard',['jquery','jive/accessibility','jquery-ui/jquery.ui.position'],function(a,b){function c(a){return window.clearTimeout(g),d(this.element),g=window.setTimeout(this.show.bind(this,a.currentTarget),this.options.showDelay),this}function d(a){f.filter(':visible').not(a).trigger('cardHide').css('visibility','hidden').trigger('cardHidden')}function e(e,h,i){if(this.element=a(e),this.options=a.extend({},a.fn.hovercard.defaults,i),this.loaded=this.options.deferred||{},!h)throw new TypeError('HoverCard requires the option: selector');f=f.add(e),a(document.body).on('mouseenter',h,c.bind(this)).on('mouseleave',h,function(b){window.clearTimeout(g),g=window.setTimeout(d.bind(void 0,a()),b)}.bind(void 0,this.options.hideDelay)),this.element.on('mouseenter',function(){window.clearTimeout(g)}),this.element.on('mouseleave focusout',function(c,e){window.clearTimeout(g),g=window.setTimeout(function(){if(a('#follow-in-menu').length||a('.js-connection-labels-menu:visible').length||d(a()),e&&'focusout'===e.type){var c=a(e.target).siblings().find(b.DEFAULT_FOCUSABLE_SELECTOR);try{b.filterFocusable(c).eq(0).focus()}catch(f){}}},c)}.bind(void 0,this.options.hideDelay)),this.element.on("position",function j(){this.currentTarget&&this.element.position(a.extend({},this.options.position,{of:a(this.currentTarget)}))}.bind(this))}var f=a(),g;e.prototype.show=function(b){var c=this;navigator.userAgent.match(/Apple.*Mobile.*Safari/)||(this.currentTarget=b,a.when(b,this.loaded).then(c.position.bind(c)),this.element.trigger(a.Event('cardShow',{relatedTarget:b})),this.element.trigger(a.Event('cardShown',{relatedTarget:b})))},e.prototype.hide=function(){this.currentTarget=void 0,this.element.trigger('cardHide').css('visibility','hidden').trigger('cardHidden')},e.prototype.position=function(b){this.element.position(a.extend({},this.options.position,{of:a(b)})),this.element.css('visibility','visible')},a.fn.hovercard=function(b,c){return this.each(function(){a(this).data('hovercard')||a(this).data('hovercard',new e(this,b,c||{}))})},a.fn.hovercard.Constructor=e,a.fn.hovercard.defaults={hideDelay:250,showDelay:'ontouchstart'in window?0:750,position:{collision:'flip fit',my:'left top',at:'right bottom',within:'#jive-body'}},a.fn.hovercard.cards=function(a){return a?f.filter(a):f}}),define('jive/card',['jquery','underscore','jive/xhr_stack','soy!jive.hovercard.cardError','soy!jive.hovercard.cardUnauth','soy!jive.shared.displayutil.cardLoading','channel!coreMituiBridge','lib/core_ext/function','jquery-plugin/jquery.hovercard','domReady!'],function(a,b,c,d,e,f,g){function h(a){return a.data('uri')?{uri:a.data('uri')}:{userID:a.data('userid')||a.data('userId')||a.data('objectid')}}function i(a){return a.data('uri')?{containerUri:a.data('uri')}:{containerID:a.data('objectId')||a.data('objectid'),containerType:a.data('objectType')||a.data('objecttype')}}function j(b){var c=a('#jive-note-body');c.html(b),q.trigger('position'),c.off().on('click','.j-js-send-direct-message',function(b){b.preventDefault();var c=a(this).attr('data-userid');require(['apps/direct_messaging/factory'],function(a){a.sendMessageToUserIds([c])})})}function k(a){j(403==a.status?e():d())}function l(a,b){var c,d;return a.is('.jiveTT-hover-user')?(c='person',d=h(a)):(c='place',d=i(a)),g.request('card:hover',{viewStyle:c,target:b,data:d})}var m=new c,n='a.jiveTT-hover-user, a.jivecontainerTT-hover-container, img.jivecontainerTT-hover-container',o={abort:a.noop},p=new a.Deferred,q;q=a('#jiveTT-note').hovercard(n,{deferred:p}),q.on('cardHide',function(){o.abort&&o.abort(),a('#jive-note-body').off('click'),g.trigger('card:unhover')}).on('cardHidden',function(){q.removeClass('j-mini-modal-user j-mini-modal-place')}).on('cardShow',j.curry(f())).on('cardShown',function(c){var d=a(c.relatedTarget),e=q.children('.jive-tooltip2-mid').removeClass('j-mini-modal-user j-mini-modal-place'),f,g={data:{tooltip:!0},dataType:'html',type:'GET'};l(d,c.relatedTarget)||(d.is('.jiveTT-hover-user')?(e.addClass('j-mini-modal-user'),q.attr('id','jive-note-user-body'),b.extend(g,{url:window.profileShortUrl,data:h(d)})):(e.addClass('j-mini-modal-place'),q.attr('id','jive-note-container-body'),b.extend(g,{url:window.containerShortUrl,data:i(d)})),d.attr('aria-describedby',q.attr('id')),q.on('cardHidden',function(){
d.removeAttr('aria-describedby')}),o=a.ajax(g).then(j,k).always(function(b,e){'abort'!==e&&a.contains(document.body,c.relatedTarget)&&(d.is(':visible')||d.children().is(':visible'))&&p.resolve()}),m.add(o))})}),define('jive/deferred_module',['jquery'],function(a){return function(){var b=a.Deferred(),c;this.isReady=function(){return b.promise()},this.get=function(){return c},this.set=function(a){a=a,b.resolve(a)}}}),define('jive/comment_app',['./deferred_module','jive/namespace'],function(a){var b=new a;return b.isReady().then(function(a){return jive.namespace('commentApp'),jive.CommentApp=a,a}),b}),define('jive/discussionAppDeferred',['jquery'],function(a){return a.Deferred()}),define('jive/discussionApp',['./discussionAppDeferred'],function(a){return a.promise()}),define('jive/ext/x/x_core',['jive/namespace'],function(a){jive.namespace('ext.x'),$def=function(a){return'undefined'!=typeof a},$obj=function(a){return'object'==typeof a},$arr=function(a){return null!=a&&$obj(a)&&$def(a.splice)},$str=function(a){return'string'==typeof a},$num=function(a){return'number'==typeof a},jive.ext.x.xMac=-1!=navigator.appVersion.indexOf('Mac'),jive.ext.x.xWindows=!jive.ext.x.xMac,jive.ext.x.xVersion='3.15.1',jive.ext.x.xNN4=!1,jive.ext.x.xOp7=!1,jive.ext.x.xOp5or6=!1,jive.ext.x.xIE4Up=!1,jive.ext.x.xIE4=!1,jive.ext.x.xIE5=!1,jive.ext.x.xUA=navigator.userAgent.toLowerCase(),jive.ext.x.xIE=!1,jive.ext.x.xSafari=!1,window.opera?(jive.ext.x.xOp7=-1!=jive.ext.x.xUA.indexOf('opera 7')||-1!=jive.ext.x.xUA.indexOf('opera/7'),jive.ext.x.xOp7||(jive.ext.x.xOp5or6=-1!=jive.ext.x.xUA.indexOf('opera 5')||-1!=jive.ext.x.xUA.indexOf('opera/5')||-1!=jive.ext.x.xUA.indexOf('opera 6')||-1!=jive.ext.x.xUA.indexOf('opera/6'))):document.all&&(jive.ext.x.xIE4Up=-1!=jive.ext.x.xUA.indexOf('msie')&&parseInt(navigator.appVersion)>=4,jive.ext.x.xIE4=-1!=jive.ext.x.xUA.indexOf('msie 4'),jive.ext.x.xIE5=-1!=jive.ext.x.xUA.indexOf('msie 5'),jive.ext.x.xIE6=-1!=jive.ext.x.xUA.indexOf('msie 6'),jive.ext.x.xIE7=-1!=jive.ext.x.xUA.indexOf('msie 7'),jive.ext.x.xIE4Up=jive.ext.x.xIE4||jive.ext.x.xIE5||jive.ext.x.xIE6,jive.ext.x.xIE=!0),-1==jive.ext.x.xUA.indexOf('safari')&&-1==jive.ext.x.xUA.indexOf('Safari')||(jive.ext.x.xSafari=!0),jive.ext.x.xGetElementById=function(a,b){return $obj(b)||(b=a.ownerDocument),null==a?a:'string'!=typeof a?a:(a=b.getElementById?b.getElementById(a):b.all?b.all[a]:null,a)},jive.ext.x.xParent=function(a,b){if(!(a=jive.ext.x.xGetElementById(a)))return null;var c=null;return!b&&$def(a.offsetParent)?c=a.offsetParent:$def(a.parentNode)?c=a.parentNode:$def(a.parentElement)&&(c=a.parentElement),c},jive.ext.x.xShow=function(a){(a=jive.ext.x.xGetElementById(a))&&a.style&&$def(a.style.visibility)&&(a.style.visibility='visible')},jive.ext.x.xHide=function(a){(a=jive.ext.x.xGetElementById(a))&&a.style&&$def(a.style.visibility)&&(a.style.visibility='hidden')},jive.ext.x.xDisplay=function(a,b){return(a=jive.ext.x.xGetElementById(a))&&a.style&&$def(a.style.display)?($str(b)&&(a.style.display=b),a.style.display):null},jive.ext.x.xDisplayNone=function(a){(a=jive.ext.x.xGetElementById(a))&&a.style&&$def(a.style.display)&&(a.style.display='none')},jive.ext.x.xDisplayBlock=function(a){(a=jive.ext.x.xGetElementById(a))&&a.style&&$def(a.style.display)&&(a.style.display='block')},jive.ext.x.xDisplayInline=function(a){(a=jive.ext.x.xGetElementById(a))&&a.style&&$def(a.style.display)&&(a.style.display='inline')},jive.ext.x.xZIndex=function(a,b){return(a=jive.ext.x.xGetElementById(a))?(a.style&&$def(a.style.zIndex)&&($num(b)&&(a.style.zIndex=b),b=parseInt(a.style.zIndex)),b):0},jive.ext.x.xMoveTo=function(a,b,c){jive.ext.x.xLeft(a,b),jive.ext.x.xTop(a,c)},jive.ext.x.xLeft=function(a,b){if(!(a=jive.ext.x.xGetElementById(a)))return 0;var c=$def(a.style);return c&&$str(a.style.left)?$num(b)?a.style.left=b+'px':(b=parseInt(a.style.left),isNaN(b)&&(b=0)):c&&$def(a.style.pixelLeft)&&($num(b)?a.style.pixelLeft=b:b=a.style.pixelLeft),b},jive.ext.x.xTop=function(a,b){if(!(a=jive.ext.x.xGetElementById(a)))return 0;var c=$def(a.style);return c&&$str(a.style.top)?$num(b)?a.style.top=b+'px':(b=parseInt(a.style.top),isNaN(b)&&(b=0)):c&&$def(a.style.pixelTop)&&($num(b)?a.style.pixelTop=b:b=a.style.pixelTop),b},jive.ext.x.xPageX=function(a){var b=0;if(a.offsetParent)for(;;){if(b+=a.offsetLeft,!a.offsetParent)break;a=a.offsetParent}else a.x&&(b+=a.x);return b},jive.ext.x.xPageY=function(a){var b=0;if(a.offsetParent)for(;;){if(b+=a.offsetTop,!a.offsetParent)break;a=a.offsetParent}else a.y&&(b+=a.y);return b},jive.ext.x.xScrollLeft=function(a){var b=0,c=a.ownerDocument;return(a=jive.ext.x.xGetElementById(a))?$num(a.scrollLeft)&&(b=a.scrollLeft):c.documentElement&&c.documentElement.scrollLeft?b=c.documentElement.scrollLeft:c.body&&$def(c.body.scrollLeft)&&(b=c.body.scrollLeft),b},jive.ext.x.xScrollTop=function(a){var b=0,c=a.ownerDocument;return(a=jive.ext.x.xGetElementById(a))?$num(a.scrollTop)&&(b=a.scrollTop):c.documentElement&&c.documentElement.scrollTop?b=c.documentElement.scrollTop:c.body&&$def(c.body.scrollTop)&&(b=c.body.scrollTop),b},jive.ext.x.xWidth=function(a,b){if(!(a=jive.ext.x.xGetElementById(a)))return 0;b=$num(b)?0>b?0:Math.round(b):-1;var c=$def(a.style);if(a==document||'html'==a.tagName.toLowerCase()||'body'==a.tagName.toLowerCase())b=jive.ext.x.xClientWidth();else if(c&&$def(a.offsetWidth)&&$str(a.style.width)){if(b>=0){var d=0,e=0,f=0,g=0;if('CSS1Compat'==document.compatMode){var h=jive.ext.x.xGetCS;d=h(a,'padding-left',1),null!==d?(e=h(a,'padding-right',1),f=h(a,'border-left-width',1),g=h(a,'border-right-width',1)):$def(a.offsetWidth,a.style.width)&&(a.style.width=b+'px',d=a.offsetWidth-b)}if(b-=d+e+f+g,isNaN(b)||0>b)return;a.style.width=b+'px'}b=a.offsetWidth}else c&&$def(a.style.pixelWidth)&&(b>=0&&(a.style.pixelWidth=b),b=a.style.pixelWidth);return b},jive.ext.x.xCamelize=function(a){var b,c,d=a.split('-'),e=d[0];for(b=1;b<d.length;++b)c=d[b].charAt(0),e+=d[b].replace(c,c.toUpperCase());return e},jive.ext.x.xGetCS=function(a,b){try{if(!(a=jive.ext.x.xGetElementById(a)))return null;var c,d='undefined',e=a.ownerDocument.defaultView;if(e&&e.getComputedStyle)c=e.getComputedStyle(a,''),c&&(d=c.getPropertyValue(b));else{if(!a.currentStyle)return null;d=a.currentStyle[jive.ext.x.xCamelize(b)]}return $str(d)&&d.indexOf('px')>0&&(d=d.substr(0,d.indexOf('px')),d=parseInt(d)),d}catch(a){return''}},jive.ext.x.xGetCSFunc=function(a,b){try{if(!(a=jive.ext.x.xGetElementById(a)))return null;var c,d='undefined',e=a.ownerDocument.defaultView;if(!e||!e.getComputedStyle)return a.currentStyle?function(a){return function(b){var c=a[jive.ext.x.xCamelize(b)];return $str(c)&&c.indexOf('px')>0&&(c=c.substr(0,c.indexOf('px')),c=parseInt(c)),c}}(a.currentStyle):function(){return'undefined'};if(c=e.getComputedStyle(a,''),c)return function(a){return function(b){var c=a.getPropertyValue(b);return $str(c)&&c.indexOf('px')>0&&(c=c.substr(0,c.indexOf('px')),c=parseInt(c)),c}}(c)}catch(a){return function(){return'undefined'}}},jive.ext.x.xSetCH=function(a,b){var c=0,d=0,e=0,f=0,g=a.ownerDocument;$def(g.defaultView)&&$def(g.defaultView.getComputedStyle)?(c=jive.ext.x.xGetCS(a,'padding-top'),d=jive.ext.x.xGetCS(a,'padding-bottom'),e=jive.ext.x.xGetCS(a,'border-top-width'),f=jive.ext.x.xGetCS(a,'border-bottom-width')):$def(a.currentStyle,g.compatMode)?'CSS1Compat'==g.compatMode&&(c=parseInt(a.currentStyle.paddingTop),d=parseInt(a.currentStyle.paddingBottom),e=parseInt(a.currentStyle.borderTopWidth),f=parseInt(a.currentStyle.borderBottomWidth)):$def(a.offsetHeight,a.style.height)&&(a.style.height=b+'px',c=a.offsetHeight-b),isNaN(c)&&(c=0),isNaN(d)&&(d=0),isNaN(e)&&(e=0),isNaN(f)&&(f=0);var h=b-(c+d+e+f);isNaN(h)||0>h||(a.style.height=h+'px')},jive.ext.x.xHeight=function(a,b){if(!(a=jive.ext.x.xGetElementById(a)))return 0;b=$num(b)?0>b?0:Math.round(b):0;var c=$def(a.style);return c&&$def(a.offsetHeight)&&$str(a.style.height)?(b&&jive.ext.x.xSetCH(a,b),b=a.offsetHeight):c&&$def(a.style.pixelHeight)&&(b&&(a.style.pixelHeight=b),b=a.style.pixelHeight),b},jive.ext.x.xHasPoint=function(a,b,c,d,e,f,g){$num(d)?$num(e)?$num(f)||(g=e,f=d):e=f=g=d:d=e=f=g=0;var h=jive.ext.x.xPageX(a),i=jive.ext.x.xPageY(a);return b>=h+g&&b<=h+jive.ext.x.xWidth(a)-e&&c>=i+d&&c<=i+jive.ext.x.xHeight(a)-f},jive.ext.x.xClientWidth=function(){var a=0;return jive.ext.x.xOp5or6?a=window.innerWidth:!window.opera&&document.documentElement&&document.documentElement.clientWidth?a=document.documentElement.clientWidth:document.body&&document.body.clientWidth?a=document.body.clientWidth:$def(window.innerWidth,window.innerHeight,document.height)&&(a=window.innerWidth,document.height>window.innerHeight&&(a-=16)),a},jive.ext.x.xClientHeight=function(){var a=0;return jive.ext.x.xOp5or6?a=window.innerHeight:!window.opera&&document.documentElement&&document.documentElement.clientHeight?a=document.documentElement.clientHeight:document.body&&document.body.clientHeight?a=document.body.clientHeight:$def(window.innerWidth,window.innerHeight,document.width)&&(a=window.innerHeight,document.width>window.innerWidth&&(a-=16)),a},jive.ext.x.xDocHeight=function(a){if(a)var b=a.body,c=a.documentElement;else var b=document.body,c=document.documentElement;var d=0,e=0,f=0,g=0;return c&&(d=c.scrollHeight,e=c.offsetHeight),b&&(f=b.scrollHeight,g=b.offsetHeight),Math.max(d,e,f,g)}}),define('jive/ext/x/x_event',['./x_core'],function(){jive.ext.x.xAddEventListener=function(e,eventType,eventListener,useCapture){if(e=jive.ext.x.xGetElementById(e)){if(eventType=eventType.toLowerCase(),!jive.ext.x.xIE4Up&&!jive.ext.x.xOp7&&e==window){if('resize'==eventType)return jive.ext.x.xPCW=jive.ext.x.xClientWidth(),jive.ext.x.xPCH=jive.ext.x.xClientHeight(),jive.ext.x.xREL=eventListener,jive.ext.x.xResizeEvent(),void 0;if('scroll'==eventType)return jive.ext.x.xPSL=jive.ext.x.xScrollLeft(),jive.ext.x.xPST=jive.ext.x.xScrollTop(),jive.ext.x.xSEL=eventListener,jive.ext.x.xScrollEvent(),void 0}if(e.addEventListener)e.addEventListener(eventType,eventListener,useCapture);else if(e.attachEvent)e.attachEvent('on'+eventType,eventListener);else if(e.captureEvents){(useCapture||-1!=eventType.indexOf('mousemove'))&&e.captureEvents(eval('Event.'+eventType.toUpperCase()));var eh='e.on'+eventType+'=eventListener';eval(eh)}else{var eh='e.on'+eventType+'=eventListener';eval(eh)}}},jive.ext.x.xRemoveEventListener=function(e,eventType,eventListener,useCapture){if(e=jive.ext.x.xGetElementById(e)){if(eventType=eventType.toLowerCase(),!jive.ext.x.xIE4Up&&!jive.ext.x.xOp7&&e==window){if('resize'==eventType)return jive.ext.x.xREL=null,void 0;if('scroll'==eventType)return jive.ext.x.xSEL=null,void 0}var eh='e.on'+eventType+'=null';e.removeEventListener?e.removeEventListener(eventType,eventListener,useCapture):e.detachEvent?e.detachEvent('on'+eventType,eventListener):e.releaseEvents?((useCapture||-1!=eventType.indexOf('mousemove'))&&e.releaseEvents(eval('Event.'+eventType.toUpperCase())),eval(eh)):eval(eh)}},jive.ext.x.xStopPropagation=function(a){a&&a.stopPropagation?a.stopPropagation():window.event&&(window.event.cancelBubble=!0)},jive.ext.x.xEvent=function(a){this.type='',this.target=null,this.keyCode=0;var b=a?a:window.event;if(b){b.type&&(this.type=b.type),b.target?this.target=b.target:b.srcElement&&(this.target=b.srcElement);var c=null,d=null;this.pageX=function(){return null==c&&(jive.ext.x.xOp5or6?(c=b.clientX,d=b.clientY):jive.ext.x.xDef(b.clientX,b.clientY)&&(c=b.clientX+jive.ext.x.xScrollLeft(),d=b.clientY+jive.ext.x.xScrollTop())),c},this.pageY=function(){return null==d&&(jive.ext.x.xOp5or6?(c=b.clientX,d=b.clientY):jive.ext.x.xDef(b.clientX,b.clientY)&&(c=b.clientX+jive.ext.x.xScrollLeft(),d=b.clientY+jive.ext.x.xScrollTop())),d};var e=null,f=null;this.offsetX=function(){return null==e&&(jive.ext.x.xDef(b.layerX,b.layerY)?(e=b.layerX,f=b.layerY):jive.ext.x.xDef(b.offsetX,b.offsetY)?(e=b.offsetX,f=b.offsetY):(e=this.pageX-jive.ext.x.xPageX(this.target),f=this.pageY-jive.ext.x.xPageY(this.target))),e},this.offsetY=function(){return null==f&&(jive.ext.x.xDef(b.layerX,b.layerY)?(e=b.layerX,f=b.layerY):jive.ext.x.xDef(b.offsetX,b.offsetY)?(e=b.offsetX,f=b.offsetY):(e=this.pageX-jive.ext.x.xPageX(this.target),f=this.pageY-jive.ext.x.xPageY(this.target))),f},b.keyCode?this.keyCode=b.keyCode:jive.ext.x.xDef(b.which)&&(this.keyCode=b.which)}},jive.ext.x.xResizeEvent=function(){jive.ext.x.xREL&&setTimeout('jive.ext.x.xResizeEvent()',250);var a=jive.ext.x.xClientWidth(),b=jive.ext.x.xClientHeight();jive.ext.x.xPCW==a&&jive.ext.x.xPCH==b||(jive.ext.x.xPCW=a,jive.ext.x.xPCH=b,jive.ext.x.xREL&&jive.ext.x.xREL())},jive.ext.x.xScrollEvent=function(){jive.ext.x.xSEL&&setTimeout('jive.ext.x.xScrollEvent()',250);var a=jive.ext.x.xScrollLeft(),b=jive.ext.x.xScrollTop();jive.ext.x.xPSL==a&&jive.ext.x.xPST==b||(jive.ext.x.xPSL=a,jive.ext.x.xPST=b,jive.ext.x.xSEL&&jive.ext.x.xSEL())}}),define('jive/ext/x/x_timer',['./x_core','./x_event'],function(){return jive.ext.x.xTimerMgr=function(){function a(a,b,c,d,e){this.stop=function(){this.running=!1},this.start=function(){this.running=!0},this.reset=function(){var a=new Date;this.time0=a.getTime(),this.elapsed=0,this.running=!0},this.data=e,this.type=a,this.obj=b,this.mthd=c,this.preset=d,this.reset()}this.set=function(b,c,d,e,f){return this.timers[this.timers.length]=new a(b,c,d,e,f)},this.timers=[],this.running=!1,this.run=function(){if(!this.running){this.running=!0;var a,b,c=new Date,d=c.getTime();for(a=0;a<this.timers.length;++a)b=this.timers[a],b&&b.running&&(b.elapsed=d-b.time0,b.elapsed>=b.preset&&(b.obj[b.mthd](b),'i'==b.type.charAt(0)?b.time0=d:b.stop()));this.running=!1}}},jive.ext.x.xTimer=new jive.ext.x.xTimerMgr,jive.ext.x.xAddEventListener(window,'load',function(){setInterval('jive.ext.x.xTimer.run()',250)}),jive.ext.x.xTimer}),define('jive/ext/y/y_ajax',['jive/namespace'],function(){return jive.namespace('ext.y'),jive.ext.y.yAjax=function(a,b){function c(){try{4==d.readyState&&(200==d.status?a(d.responseText):b())}catch(c){}}var d=!1;if(window.XMLHttpRequest)d=new XMLHttpRequest,d.overrideMimeType&&d.overrideMimeType('text/xml');else if(window.ActiveXObject)try{d=new ActiveXObject('Msxml2.XMLHTTP')}catch(e){try{d=new ActiveXObject('Microsoft.XMLHTTP')}catch(e){}}return d?(d.onreadystatechange=c,this.POST=function(a,b){d.open('POST',a,!0),d.setRequestHeader('Content-type','application/x-www-form-urlencoded'),d.setRequestHeader('Content-length',b.length),d.setRequestHeader('Connection','close'),d.send(b)},void 0):!1},jive.ext.y.yAjax}),define('apps/activity_stream/activity_notifier',['jiverscripts/oo/class','jiverscripts/conc/observable','../shared/controllers/switchboard','application/config'],function(a,b,c,d){var e=a.extend(function(a){b(this),a.init=function(){function a(a){b.enabled&&(b.socketEnabled||1!=b.pollCount)&&b.emit('activityStream.poll',a),b.pollCount++}var b=this;b.enabled=!0,b.pollCount=0,b.socketEnabled=window._jive_realtime_push_enabled,d.currentUser.anonymous||(c.addListener('activityStream.poll',a),c.addListener('inboxCount.poll',a),c.addListener('activityStream.push',function(a){b.enabled&&b.emit('activityStream.push',a)}))},this.enable=function(){this.enabled=!0},this.disable=function(){this.enabled=!1},this.getPollCount=function(){return this.pollCount}});return new e}),define('apps/tile/template',['apps/tile/tile','underscore','jquery','url'],function(a,b,c,d){function e(a){var b=d.v3Url('/pages/'+a);return c.getJSON(b).then(function(a,b,c){return a})}function f(){var a=d.v3Url('/people/@me/pages');return c.getJSON(a).then(function(a,b,c){return a.list?a.list.length>0?a.list[0]:void 0:a})}function g(a){var b=d.v3Url('/places/'+a+'/pages?filter=name(mobileHomePage)');return c.getJSON(b).then(function(a,b,c){return a.list instanceof Array&&a.list.length>0?a.list[0]:void 0})}function h(a){return(l(a)?i:j)(a)}function i(a){return k('POST','',a)}function j(a){return k('PUT',a.id,a)}function k(a,b,e){var f=d.v3Url('/pages/'+b),g=e.tiles?c.extend({},e,{tiles:e.tiles.map(m),extstreams:e.extstreams.map(m)}):e;return c.ajax(f,{type:a,data:JSON.stringify(g),contentType:'application/json; charset=utf-8',dataType:'json'}).then(function(a,b,c){return a})}function l(a){return!a.id||a.id<=0}function m(c){var d=b.clone(c);return d.id&&'-1'!=d.id||delete d.id,a.isConfigured(d)||delete d.config,'object'==typeof d.definition&&(d.definition=c.definition.resources.self.ref),d}function n(a){var b=d.baseUrl('/api/core/v3/pages/'+a);return c.ajax(b,{type:'DELETE',contentType:'application/json; charset=utf-8',dataType:'json'})}function o(a,b){return q('name',a,b)}function p(a,b){return q('displayname',a,b)}function q(a,b,e){var f=d.v2Url('/containers/'+b.objectType+'/'+a+'/validity'),g={name:e};return b.parentID&&b.parentType&&(g=c.extend({},g,{parentID:b.parentID,parentType:b.parentType})),c.ajax(f,{type:'GET',contentType:'application/json; charset=utf-8',dataType:'json',data:g})}return{fetch:e,fetchUserPage:f,fetchMobileHomePage:g,save:h,create:i,update:j,deleteTemplate:n,isNew:l,getNameValid:o,getDisplayNameValid:p}}),define('soy!jive.overlay.imageGallery',['soyDeps'],function(a){return jive.namespace.call(this,'jive.overlay'),jive.overlay.imageGallery=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<div class="lb-overlay"></div><div class="lb-container lb-gallery"><div class="lb-actions"><a class="lb-close font-color-white" data-action="close" href="#" title="',soy.$$escapeHtmlAttribute(a._i18n('1ce366',[])),'"><span class="jive-icon-glyph icon-close-med"></span></a></div><nav class="lb-dotnav">'),b.imageData.length>1){d.append('<ul class="lb-dots js-dots">');for(var e=b.imageData,f=e.length,g=0;f>g;g++){var h=e[g];d.append('<li data-action="goto" data-index="',soy.$$escapeHtmlAttribute(g),'"><a href="#">',soy.$$escapeHtml(g),'</a></li>')}d.append('</ul>')}d.append('</nav>',b.imageData.length>1?'<a class="lb-pagination lb-previous" href="#" data-action="previous"><span>'+soy.$$escapeHtml(a._i18n('592bc2',[]))+'</span></a><a class="lb-pagination lb-next" href="#" data-action="next"><span>'+soy.$$escapeHtml(a._i18n('75a137',[]))+'</span></a>':'','<div class="lb"><div class="lb-content gallery j-active clearfix"><div class="js-figures">');for(var i=b.imageData,j=i.length,k=0;j>k;k++){var l=i[k];d.append('<figure><img src="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(l.src)),'" alt="">',l.caption?'<figcaption class="font-color-white">'+soy.$$escapeHtml(l.caption)+'</figcaption>':'','</figure>')}return d.append('</div></div></div></div>'),c?'':d.toString()},jive.overlay.imageGallery}),function(a,b){a.fn.imagesLoaded=function(a){function c(){a.call(e,f)}function d(a){--g<=0&&a.target.src!==h&&(setTimeout(c),f.unbind('load error',d))}var e=this,f=e.find('img').add(e.filter('img')),g=f.length,h='data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==';return g||c(),f.bind('load error',d).each(function(){if(this.complete||this.complete===b){var a=this.src;this.src=h,this.src=a}}),e}}(jQuery),define("vendor/jquery/plugins/jquery.imagesloaded",function(){}),define('jquery-plugin/jquery.gallery',['jquery','soy!jive.overlay.imageGallery','vendor/jquery/plugins/jquery.imagesloaded'],function(a,b){function c(b,c){a(b).removeClass('j-active').eq(c).addClass('j-active')}function d(){e().find('.js-figures > figure.j-active img').css({maxHeight:a(window).height()-k,maxWidth:a(window).width()-k})}function e(){return a('body > .lb-container .lb-content.gallery')}function f(){a('body > .lb-container').remove(),a('body').removeClass('lb-active').add(window).off('.gallery')}function g(a){return e().find('.js-figures > figure.j-active').index()+a}function h(b){var f=e().find('.js-figures > figure');b=b>f.length-1?0:b,b=0>b?f.length-1:b,c(a('body > .lb-container .js-dots li'),b),c(f,b),d()}function i(b){var c=this.getAttribute('data-action');'close'==c&&f(),'goto'==c&&h(a(this).data('index')),'next'==c&&h(g(1)),'previous'==c&&h(g(-1)),b.preventDefault()}function j(b){var c=a.ui.keyCode;if(c.ESCAPE==b.which)f();else if(c.LEFT==b.which)h(g(-1));else{if(c.RIGHT!=b.which)return;h(g(1))}b.preventDefault()}var k=100;return a.gallery=function(c,e){a(window).on('resize.gallery',d),a('body').addClass('lb-active').on('keydown.gallery',j).on('click.gallery','[data-action]',i).append(b({imageData:c})),h(e||0)},a.gallery}),define('apps/tile/integrations/image_gallery',['jquery','underscore','jive/rtl','channel!tile_data_source','slick','jquery-plugin/jquery.gallery','domReady!'],function(a,b,c,d){function e(b){b.preventDefault();var c=a(this).data('index'),d=a(b.delegateTarget).find('li:not(.slick-cloned)').find('.js-slide-image').map(function(){return a(this).data()});a.gallery(d,c-1)}function f(){a('.js-tile-image-gallery-wide').each(function(b,d){var e=a(d).find('li').length,f=a(d).find('ul');e>0&&!f.get(0).slick&&f.slick({infinite:!0,dots:!0,slidesToShow:3>e?e:3,slidesToScroll:1,slide:'li',rtl:c.isRtl,responsive:[{breakpoint:1024,settings:{slidesToShow:2>e?e:2,slidesToScroll:1}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1,dots:!1}}]})}),a('.js-tile-image-gallery-narrow').each(function(b,d){var e=a(d).find('li').length,f=a(d).find('ul');e>0&&!f.get(0).slick&&f.slick({slide:'li',slidesToShow:1,slidesToScroll:1,rtl:c.isRtl})});var b=a('.js-tile-image-gallery');a.each(b,function(b,c){a(c).data('virtualMouseBindings')||a(c).on('vclick','a[data-action="showGallery"]:not([data-disabled="true"])',e)})}return a('.js-tile-image-gallery-wide, .js-tile-image-gallery-narrow').length?f():d.on('tileLoaded',function(a){'sample-image-gallery'!=a&&'sample-wide-image-gallery'!=a||f()}),{initSlick:f}}),define('soy!jive.integration.tiles.view.addMarker',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.view'),jive.integration.tiles.view.addMarker=function(b,c){b=b||{};var d=c||new soy.StringBuilder;return d.append('<a href="#" class="j-add-tile-marker j-js-add-tile-marker font-color-meta-light j-rc6 ',b.columnWidth&&'wide'==b.columnWidth?'js-column-wrap-wide':'','"  aria-haspopup="true">',soy.$$escapeHtml(a._i18n('f291a8',[])),'</a>'),c?'':d.toString()},jive.integration.tiles.view.addMarker}),define('soy!jive.integration.tiles.view.disabled',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.view'),jive.integration.tiles.view.disabled=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('c0af07',[]))),c?'':d.toString()},jive.integration.tiles.view.disabled}),define('soy!jive.integration.tiles.view.statusIcon',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.tiles.view'),jive.integration.tiles.view.statusIcon=function(a,b){var c=b||new soy.StringBuilder;switch(a.level){case'warn':c.append('jive-icon-warn');break;case'error':c.append('jive-icon-redalert');break;default:c.append('jive-icon-info')}return b?'':c.toString()},jive.integration.tiles.view.statusIcon}),define('soy!jive.integration.tiles.view.status',['soyDeps','soy!jive.integration.tiles.view.statusIcon'],function(a){return jive.namespace.call(this,'jive.integration.tiles.view'),jive.integration.tiles.view.status=function(a,b){var c=b||new soy.StringBuilder;return c.append('<a href="#" class="js-status j-status j-status-level-',soy.$$escapeHtmlAttribute(a.status.level),'" data-status="',soy.$$escapeHtmlAttribute(JSON.stringify({id:a.id,name:a.definition.displayNameLocalized,level:a.status.level,message:a.status.message,icon:a.definition.icons[48]?a.definition.icons[48]:'',internal:a.status.__set_by_jive_canned_status}).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029')),'"><span class="jive-icon-med '),jive.integration.tiles.view.statusIcon(a.status,c),c.append('"></span></a>'),b?'':c.toString()},jive.integration.tiles.view.status}),define('soy!jive.integration.tiles.view.tile',['soyDeps','soy!jive.integration.tiles.tile_skeletons.skeleton','soy!jive.integration.tiles.view.disabled','soy!jive.integration.tiles.view.render','soy!jive.integration.tiles.view.status','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.integration.tiles.view'),jive.integration.tiles.view.tile=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="js-tile j-tile j-tileType-',soy.$$escapeHtmlAttribute(b.instance.viewstyle),b.editing?' j-tile-editing':'',b.columnWidth&&'narrow'==b.columnWidth||b.instance&&b.instance.definition&&b.instance.definition.displayWidth&&'narrow'==b.instance.definition.displayWidth?' j-narrow-tile ':'',1==!(null==b.features?null:b.features.responsive)&&'custom_view'==b.instance.viewstyle?' j-tile-custom_view-not-responsive ':'','"',null!=b.column&&b.column>=0?' data-column="'+soy.$$escapeHtmlAttribute(b.column)+'"':'',null!=b.index&&b.index>=0?' data-index="'+soy.$$escapeHtmlAttribute(b.index)+'"':'',b.editing?' data-tile="'+soy.$$escapeHtmlAttribute(JSON.stringify(b.instance).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+'"':'data-tile-view="'+soy.$$escapeHtmlAttribute(JSON.stringify(b.instance).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+'" data-columnWidth="'+soy.$$escapeHtmlAttribute(null!=b.columnWidth?b.columnWidth:'')+'" data-jive-view="apps/tile/async/tile_view"','role="complementary"',b.instance.data&&b.instance.data.title?b.instance.id?'aria-labelledby="tile-header-'+soy.$$escapeHtmlAttribute(b.instance.id)+'"':'aria-labelledby="tile-header-'+soy.$$escapeHtmlAttribute('-1-'+b.instance.definition.id)+'"':'','tabindex="0"',b.instance.id?'js-instance-id="'+soy.$$escapeHtmlAttribute(b.instance.id)+'"':'js-instance-id="'+soy.$$escapeHtmlAttribute(b.instance.definition.id)+'"','>',b.editing?'<div class="j-configMenu j-expandedMenu">'+('disabled'==String(b.instance.definition.state).toLowerCase()?'<a href="#" class="j-disabled configOpt font-color-notify"><span class="jive-icon-med jive-icon-warn"></span><span class="j-configMenuLabel">'+soy.$$escapeHtml(a._i18n('53a073',[]))+'</span></a>':'')+(b.instance.definition.deprecation.deprecated?'<a href="#" class="js-deprecation j-deprecated configOpt" data-message="'+soy.$$escapeHtmlAttribute(b.instance.definition.deprecation.message?b.instance.definition.deprecation.message:a._i18n('74d65d',[]))+'"><span class="jive-icon-med jive-icon-warn"></span><span class="j-configMenuLabel">'+soy.$$escapeHtml(a._i18n('74d65d',[]))+'</span></a>':'')+(null!=b.maxTiles&&b.maxTiles>1?'<a href="#" class="js-up'+(b.first?' disabled':'')+' configOpt font-color-normal"><span class="jive-icon-glyph icon-arrow-up"></span><span class="j-configMenuLabel">'+soy.$$escapeHtml(a._i18n('dc796a',[]))+'</span></a><a href="#" class="js-down'+(b.last?' disabled':'')+' configOpt font-color-normal"><span class="jive-icon-glyph icon-arrow-down"></span><span class="j-configMenuLabel">'+soy.$$escapeHtml(a._i18n('e586c8',[]))+'</span></a>':'')+(b.hiddeOptions&&0!=b.hiddeOptions?'':'<a href="#" class="js-delete configOpt last j-rc4 j-rc-none-left font-color-normal"><span class="jive-icon-glyph icon-remove"></span><span class="j-configMenuLabel">'+soy.$$escapeHtml(a._i18n('be4670',[]))+'</span></a><a href="#" class="js-configure'+(b.instance.definition.config?'':' disabled')+' j-rc4 j-rc-none-right configOpt font-color-normal"><span class="jive-icon-glyph icon-gear"></span><span class="j-configMenuLabel">'+soy.$$escapeHtml(a._i18n('f4dd35',[]))+' '+(b.instance.definition.config?'':' (disabled)')+'</span></a>')+'</div>':b.canManage&&b.instance.definition.config&&b.instance.id?'<div class="j-configMenu normalMode"><a href="'+(b.place?soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/'+b.editPage,function(){for(var a={},c=[['containerType',b.place.objectType],['containerID',b.place.id],['autoConfig',b.instance.id],['pageId',b.templateId]],d=0;d<c.length;d+=1)a[c[d][0]]=c[d][1];return a}()))):'#')+'" class="js-place-edit-settings configOpt font-color-normal last"><span class="jive-icon-glyph icon-gear"></span><span class="j-configMenuLabel">'+soy.$$escapeHtml(a._i18n('f4dd35',[]))+'</span></a></div>':''),b.instance.status&&b.instance.status.level&&jive.integration.tiles.view.status(b.instance,d),d.append('<div class="js-tile-body j-tile-display">'),b.editing||'disabled'!=String(b.instance.definition.state).toLowerCase()?b.instance.data?jive.integration.tiles.view.render(soy.$$augmentMap(b.instance,{place:b.place,editing:b.editing,columnWidth:b.columnWidth}),d):jive.integration.tiles.tile_skeletons.skeleton({style:b.instance.definition.style,columnWidth:b.columnWidth},d):jive.integration.tiles.view.disabled(null,d),d.append('</div>'),b.instance.definition.client_id&&b.instance.definition.icons[16]&&b.instance.definition.productName&&(d.append('<div class="j-3rdPartyIntegration font-color-meta j-rc4 j-rc-none-top"><img class="jive-icon-med jive-ext-icon-16" src="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.instance.definition.icons[16])),'" role="img" alt=""/>'),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('6e3977'),arg0:soy.$$escapeHtml(a._i18n(b.instance.definition.productName,[])),noAutoEscape:!0},d),d.append('</div>')),d.append('</div>'),c?'':d.toString()},jive.integration.tiles.view.tile}),define('soy!jive.integration.tiles.view.list',['soyDeps','soy!jive.integration.tiles.view.addMarker','soy!jive.integration.tiles.view.tile','soy!jive.shared.soy.resourceInlineJs'],function(a){return jive.namespace.call(this,'jive.integration.tiles.view'),jive.integration.tiles.view.list=function(a,b){var c=b||new soy.StringBuilder;jive.shared.soy.resourceInlineJs({code:'require([\'apps/tile/async/tile_data_source\'], function(TileDataSource) {new TileDataSource({\'maxBatchedApiRequests\': "'+soy.$$escapeHtml(null!=a.maxBatchedApiRequests?a.maxBatchedApiRequests:'')+'", \'maxRequestPerTileDataLoadStrategy\': '+soy.$$filterNoAutoescape(JSON.stringify(null!=a.maxRequestPerTileDataLoadStrategy?a.maxRequestPerTileDataLoadStrategy:'').replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+', \'place\': '+soy.$$filterNoAutoescape(JSON.stringify(null!=a.place?a.place:'').replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+'});});'},c);for(var d=a.instances,e=d.length,f=0;e>f;f++){var g=d[f];jive.integration.tiles.view.tile({column:a.column,instance:g,editing:a.editing,canManage:a.canManage,first:0==f,last:f==a.maxTiles-1,index:f,place:a.place,templateId:a.templateId,editPage:a.editPage,features:null!=g.definition.view&&'custom_view'==g.viewstyle?function(a){for(var b=/[\?&]features=([^&#]*)/.exec(a),c=null==b?[]:b[1].split(','),d={},e=0;e<c.length;e++){var f=c[e],g=!0;/\(.*\)/.test(f)&&(g=f.substring(f.indexOf("(")+1,f.lastIndexOf(")")),f=f.substring(0,f.indexOf("("))),d[f]=g}return d}(g.definition.view):null,columnWidth:a.columnWidth,maxTiles:a.maxTiles},c)}if(a.editing)for(var h=a.instances.length,i=a.maxTiles,j=h;i>j;j++)jive.integration.tiles.view.addMarker(a,c);return b?'':c.toString()},jive.integration.tiles.view.list}),define('soy!jive.place.layout.columnPlaceholder',['soyDeps'],function(a){return jive.namespace.call(this,'jive.place.layout'),jive.place.layout.columnPlaceholder=function(a,b){var c=b||new soy.StringBuilder;if(a.customizeNow){c.append('<div class="js-column" style="display: none;" data-column="',soy.$$escapeHtmlAttribute(a.column),'">');for(var d=a.instances,e=d.length,f=0;e>f;f++){var g=d[f];c.append('<div class="js-tile" data-column="',soy.$$escapeHtmlAttribute(a.column),'" data-tile="',soy.$$escapeHtmlAttribute(JSON.stringify(g).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029')),'"></div>')}c.append('</div>')}return b?'':c.toString()},jive.place.layout.columnPlaceholder}),define('soy!jive.place.layout.narrowTileLayout',['soyDeps','soy!jive.integration.tiles.view.list','soy!jive.place.layout.columnPlaceholder'],function(a){
return jive.namespace.call(this,'jive.place.layout'),jive.place.layout.narrowTileLayout=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div id="streamAndDatablocks"><div id="datablock-content" class="j-layout j-layout-ml clearfix" data-can-manage="',soy.$$escapeHtmlAttribute(a.canManageContainer),'"><div class="js-column j-place-column-wrap" data-column="0"><div class="j-place-column">'),jive.integration.tiles.view.list(soy.$$augmentMap(a,{column:0,instances:a.tileColumn0,maxTiles:a.maxNarrowTiles,canManage:a.canManageContainer,editing:a.customizeNow,place:a.place,templateId:a.template.id,editPage:a.editPage,columnWidth:'narrow'}),c),c.append('</div></div>'),jive.place.layout.columnPlaceholder(soy.$$augmentMap(a,{column:1,instances:a.tileColumn1}),c),jive.place.layout.columnPlaceholder(soy.$$augmentMap(a,{column:2,instances:a.tileColumn2}),c),c.append('</div></div>'),b?'':c.toString()},jive.place.layout.narrowTileLayout}),define('soy!jive.place.layout.narrowWideNarrowTileLayout',['soyDeps','soy!jive.integration.tiles.view.list'],function(a){return jive.namespace.call(this,'jive.place.layout'),jive.place.layout.narrowWideNarrowTileLayout=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div id="streamAndDatablocks"><div id="datablock-content" class="j-layout j-layout-sms clearfix" data-can-manage="',soy.$$escapeHtmlAttribute(a.canManageContainer),'"><div class="js-column j-place-column-wrap" data-column="0"><div class="j-place-column">'),jive.integration.tiles.view.list(soy.$$augmentMap(a,{column:0,instances:a.tileColumn0,maxTiles:a.maxNwnLayoutNarrowTiles,canManage:a.canManageContainer,editing:a.customizeNow,place:a.place,templateId:a.template.id,editPage:a.editPage,columnWidth:'narrow'}),c),c.append('</div></div><div class="js-column j-place-column-wrap  j-column-wrap-wide  js-column-wrap-wide" data-column="1"><div class="j-place-column">'),jive.integration.tiles.view.list(soy.$$augmentMap(a,{column:1,instances:a.tileColumn1,maxTiles:a.maxWideTiles,canManage:a.canManageContainer,editing:a.customizeNow,place:a.place,templateId:a.template.id,editPage:a.editPage,columnWidth:'wide'}),c),c.append('</div></div><div class="js-column j-place-column-wrap" data-column="2"><div class="j-place-column">'),jive.integration.tiles.view.list(soy.$$augmentMap(a,{column:2,instances:a.tileColumn2,maxTiles:a.maxNwnLayoutNarrowTiles,canManage:a.canManageContainer,editing:a.customizeNow,place:a.place,templateId:a.template.id,editPage:a.editPage,columnWidth:'narrow'}),c),c.append('</div></div></div></div>'),b?'':c.toString()},jive.place.layout.narrowWideNarrowTileLayout}),define('soy!jive.place.layout.narrowWideTileLayout',['soyDeps','soy!jive.integration.tiles.view.list','soy!jive.place.layout.columnPlaceholder'],function(a){return jive.namespace.call(this,'jive.place.layout'),jive.place.layout.narrowWideTileLayout=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div id="streamAndDatablocks"><div id="datablock-content" class="j-layout j-layout-ml clearfix" data-can-manage="',soy.$$escapeHtmlAttribute(a.canManageContainer),'"><div class="js-column j-place-column-wrap" data-column="0"><div class="j-place-column">'),jive.integration.tiles.view.list(soy.$$augmentMap(a,{column:0,instances:a.tileColumn0,maxTiles:a.maxNarrowTiles,canManage:a.canManageContainer,editing:a.customizeNow,place:a.place,templateId:a.template.id,editPage:a.editPage,columnWidth:'narrow'}),c),c.append('</div></div><div class="js-column j-place-column-wrap  j-column-wrap-wide  js-column-wrap-wide" data-column="1"><div class="j-place-column">'),jive.integration.tiles.view.list(soy.$$augmentMap(a,{column:1,instances:a.tileColumn1,maxTiles:a.maxWideTiles,canManage:a.canManageContainer,editing:a.customizeNow,place:a.place,templateId:a.template.id,editPage:a.editPage,columnWidth:'wide'}),c),c.append('</div></div>'),jive.place.layout.columnPlaceholder(soy.$$augmentMap(a,{column:2,instances:a.tileColumn2}),c),c.append('</div></div>'),b?'':c.toString()},jive.place.layout.narrowWideTileLayout}),define('soy!jive.place.layout.wideNarrowTileLayout',['soyDeps','soy!jive.integration.tiles.view.list','soy!jive.place.layout.columnPlaceholder'],function(a){return jive.namespace.call(this,'jive.place.layout'),jive.place.layout.wideNarrowTileLayout=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div id="streamAndDatablocks"><div id="datablock-content" class="j-layout j-layout-lm clearfix" data-can-manage="',soy.$$escapeHtmlAttribute(a.canManageContainer),'">'),jive.place.layout.columnPlaceholder(soy.$$augmentMap(a,{column:0,instances:a.tileColumn0}),c),c.append('<div class="js-column j-place-column-wrap  j-column-wrap-wide  js-column-wrap-wide" data-column="1"><div class="j-place-column">'),jive.integration.tiles.view.list(soy.$$augmentMap(a,{column:1,instances:a.tileColumn1,maxTiles:a.maxWideTiles,canManage:a.canManageContainer,editing:a.customizeNow,place:a.place,templateId:a.template.id,editPage:a.editPage,columnWidth:'wide'}),c),c.append('</div></div><div class="js-column j-place-column-wrap" data-column="2"><div class="j-place-column">'),jive.integration.tiles.view.list(soy.$$augmentMap(a,{column:2,instances:a.tileColumn2,maxTiles:a.maxNarrowTiles,canManage:a.canManageContainer,editing:a.customizeNow,place:a.place,templateId:a.template.id,editPage:a.editPage,columnWidth:'narrow'}),c),c.append('</div></div></div></div>'),b?'':c.toString()},jive.place.layout.wideNarrowTileLayout}),define('soy!jive.place.layout.wideTileLayout',['soyDeps','soy!jive.integration.tiles.view.list','soy!jive.place.layout.columnPlaceholder'],function(a){return jive.namespace.call(this,'jive.place.layout'),jive.place.layout.wideTileLayout=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div id="streamAndDatablocks"><div id="datablock-content" class="j-layout j-layout-l clearfix" data-can-manage="',soy.$$escapeHtmlAttribute(a.canManageContainer),'">'),jive.place.layout.columnPlaceholder(soy.$$augmentMap(a,{column:0,instances:a.tileColumn0}),c),c.append('<div class="js-column j-place-column-wrap  j-column-wrap-wide  js-column-wrap-wide" data-column="1"><div class="j-place-column">'),jive.integration.tiles.view.list(soy.$$augmentMap(a,{column:1,instances:a.tileColumn1,maxTiles:a.maxWideTiles,canManage:a.canManageContainer,editing:a.customizeNow,place:a.place,templateId:a.template.id,editPage:a.editPage,columnWidth:'wide'}),c),c.append('</div></div>'),jive.place.layout.columnPlaceholder(soy.$$augmentMap(a,{column:2,instances:a.tileColumn2}),c),c.append('</div></div>'),b?'':c.toString()},jive.place.layout.wideTileLayout}),define('soy!jive.place.layout.columns',['soyDeps','soy!jive.place.layout.narrowTileLayout','soy!jive.place.layout.narrowWideNarrowTileLayout','soy!jive.place.layout.narrowWideTileLayout','soy!jive.place.layout.wideNarrowTileLayout','soy!jive.place.layout.wideTileLayout'],function(a){return jive.namespace.call(this,'jive.place.layout'),jive.place.layout.columns=function(a,b){var c=b||new soy.StringBuilder;return'wide'==a.template.layout?jive.place.layout.wideTileLayout(a,c):'narrow'==a.template.layout?jive.place.layout.narrowTileLayout(a,c):'narrow_wide'==a.template.layout?jive.place.layout.narrowWideTileLayout(a,c):'narrow_wide_narrow'==a.template.layout?jive.place.layout.narrowWideNarrowTileLayout(a,c):jive.place.layout.wideNarrowTileLayout(a,c),b?'':c.toString()},jive.place.layout.columns}),define('soy!jive.tilepage.mobile.homePageDynamicPane',['soyDeps','soy!jive.place.layout.columns','soy!jive.shared.soy.resourceInlineJs'],function(a){return jive.namespace.call(this,'jive.tilepage.mobile'),jive.tilepage.mobile.homePageDynamicPane=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="your-view"><header class="j-act-header"><h1 class="header">',soy.$$escapeHtml(a._i18n('b3e00c',[])),'</h1>',b.canManageContainer?'<div id="tilepage-actions-container" class="j-act-filter-controls"><a class="tile-page-edit-button" href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'edit-mobile-home.jspa')))+'">'+soy.$$escapeHtml(a._i18n('f04668',[]))+'</a></div>':'','</header>',b.welcomeMessage?'<div class="j-home-welcome-message"><p>'+soy.$$changeNewlineToBr(soy.$$escapeHtml(b.welcomeMessage))+'</p></div>':''),b.template&&b.template.tiles&&0!=b.template.tiles.length?jive.place.layout.columns(soy.$$augmentMap(b,{editPage:'edit-mobile-home.jspa'}),d):d.append('<div id="streamAndDatablocks"><div class="j-tile"><div class="j-tile-display"><p class="noContent">',soy.$$escapeHtml(a._i18n('9caebc',[])),'<br><br><a class="tile-page-edit-button" href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'edit-your-view.jspa'))),'">',soy.$$escapeHtml(a._i18n('5ec0d2',[])),'</a></p></div></div></div>'),d.append('</div>',b.canManageContainer?'<p>'+soy.$$escapeHtml(a._i18n('05664e',[]))+'</p>':''),jive.shared.soy.resourceInlineJs({code:'require([\'jquery\', \'domReady!\'], function($j) {require([\'apps/tile/responsive_tile\'], function(syncTileColumns) {syncTileColumns();});});'},d),c?'':d.toString()},jive.tilepage.mobile.homePageDynamicPane}),define('ui-modules/spotlight/scripts/config',[],function(){'use strict';var a={devMode:!1,windowId:(new Date).getTime()+'-'+Math.round(1e5*Math.random()),logLevel:'info',enableScheduler:!0,enableBrowserDb:window._jive_enable_browserdb,enableEncryption:!0,enableNaturalSearch:!1,userAuthToken:window._jive_auth_token,userId:window._jive_effective_user_id,userLoggedIn:_jive_current_user&&!_jive_current_user.anonymous,containerId:jive.global.containerID,containerType:jive.global.containerType,containerBrowseId:jive.global.containerBrowseId};return window.localStorage&&1==window.localStorage["jive.browserdb.disabled"]&&(a.enableBrowserDb=!1),a}),function(){function a(a){var b=!1;return function(){if(b)throw new Error("Callback was already called.");b=!0,a.apply(c,arguments)}}var b={},c,d;c=this,null!=c&&(d=c.async),b.noConflict=function(){return c.async=d,b};var e=Object.prototype.toString,f=Array.isArray||function(a){return'[object Array]'===e.call(a)},g=function(a,b){if(a.forEach)return a.forEach(b);for(var c=0;c<a.length;c+=1)b(a[c],c,a)},h=function(a,b){if(a.map)return a.map(b);var c=[];return g(a,function(a,d,e){c.push(b(a,d,e))}),c},i=function(a,b,c){return a.reduce?a.reduce(b,c):(g(a,function(a,d,e){c=b(c,a,d,e)}),c)},j=function(a){if(Object.keys)return Object.keys(a);var b=[];for(var c in a)a.hasOwnProperty(c)&&b.push(c);return b};'undefined'!=typeof process&&process.nextTick?(b.nextTick=process.nextTick,'undefined'!=typeof setImmediate?b.setImmediate=function(a){setImmediate(a)}:b.setImmediate=b.nextTick):'function'==typeof setImmediate?(b.nextTick=function(a){setImmediate(a)},b.setImmediate=b.nextTick):(b.nextTick=function(a){setTimeout(a,0)},b.setImmediate=b.nextTick),b.each=function(b,c,d){function e(a){a?(d(a),d=function(){}):(f+=1,f>=b.length&&d())}if(d=d||function(){},!b.length)return d();var f=0;g(b,function(b){c(b,a(e))})},b.forEach=b.each,b.eachSeries=function(a,b,c){if(c=c||function(){},!a.length)return c();var d=0,e=function(){b(a[d],function(b){b?(c(b),c=function(){}):(d+=1,d>=a.length?c():e())})};e()},b.forEachSeries=b.eachSeries,b.eachLimit=function(a,b,c,d){var e=k(b);e.apply(null,[a,c,d])},b.forEachLimit=b.eachLimit;var k=function(a){return function(b,c,d){if(d=d||function(){},!b.length||0>=a)return d();var e=0,f=0,g=0;!function h(){if(e>=b.length)return d();for(;a>g&&f<b.length;)f+=1,g+=1,c(b[f-1],function(a){a?(d(a),d=function(){}):(e+=1,g-=1,e>=b.length?d():h())})}()}},l=function(a){return function(){var c=Array.prototype.slice.call(arguments);return a.apply(null,[b.each].concat(c))}},m=function(a,b){return function(){var c=Array.prototype.slice.call(arguments);return b.apply(null,[k(a)].concat(c))}},n=function(a){return function(){var c=Array.prototype.slice.call(arguments);return a.apply(null,[b.eachSeries].concat(c))}},o=function(a,b,c,d){if(b=h(b,function(a,b){return{index:b,value:a}}),d){var e=[];a(b,function(a,b){c(a.value,function(c,d){e[a.index]=d,b(c)})},function(a){d(a,e)})}else a(b,function(a,b){c(a.value,function(a){b(a)})})};b.map=l(o),b.mapSeries=n(o),b.mapLimit=function(a,b,c,d){return p(b)(a,c,d)};var p=function(a){return m(a,o)};b.reduce=function(a,c,d,e){b.eachSeries(a,function(a,b){d(c,a,function(a,d){c=d,b(a)})},function(a){e(a,c)})},b.inject=b.reduce,b.foldl=b.reduce,b.reduceRight=function(a,c,d,e){var f=h(a,function(a){return a}).reverse();b.reduce(f,c,d,e)},b.foldr=b.reduceRight;var q=function(a,b,c,d){var e=[];b=h(b,function(a,b){return{index:b,value:a}}),a(b,function(a,b){c(a.value,function(c){c&&e.push(a),b()})},function(a){d(h(e.sort(function(a,b){return a.index-b.index}),function(a){return a.value}))})};b.filter=l(q),b.filterSeries=n(q),b.select=b.filter,b.selectSeries=b.filterSeries;var r=function(a,b,c,d){var e=[];b=h(b,function(a,b){return{index:b,value:a}}),a(b,function(a,b){c(a.value,function(c){c||e.push(a),b()})},function(a){d(h(e.sort(function(a,b){return a.index-b.index}),function(a){return a.value}))})};b.reject=l(r),b.rejectSeries=n(r);var s=function(a,b,c,d){a(b,function(a,b){c(a,function(c){c?(d(a),d=function(){}):b()})},function(a){d()})};b.detect=l(s),b.detectSeries=n(s),b.some=function(a,c,d){b.each(a,function(a,b){c(a,function(a){a&&(d(!0),d=function(){}),b()})},function(a){d(!1)})},b.any=b.some,b.every=function(a,c,d){b.each(a,function(a,b){c(a,function(a){a||(d(!1),d=function(){}),b()})},function(a){d(!0)})},b.all=b.every,b.sortBy=function(a,c,d){b.map(a,function(a,b){c(a,function(c,d){c?b(c):b(null,{value:a,criteria:d})})},function(a,b){if(a)return d(a);var c=function(a,b){var c=a.criteria,d=b.criteria;return d>c?-1:c>d?1:0};d(null,h(b.sort(c),function(a){return a.value}))})},b.auto=function(a,c){c=c||function(){};var d=j(a),e=d.length;if(!e)return c();var h={},k=[],l=function(a){k.unshift(a)},m=function(a){for(var b=0;b<k.length;b+=1)if(k[b]===a)return k.splice(b,1),void 0},n=function(){e--,g(k.slice(0),function(a){a()})};l(function(){if(!e){var a=c;c=function(){},a(null,h)}}),g(d,function(d){var e=f(a[d])?a[d]:[a[d]],k=function(a){var e=Array.prototype.slice.call(arguments,1);if(e.length<=1&&(e=e[0]),a){var f={};g(j(h),function(a){f[a]=h[a]}),f[d]=e,c(a,f),c=function(){}}else h[d]=e,b.setImmediate(n)},o=e.slice(0,Math.abs(e.length-1))||[],p=function(){return i(o,function(a,b){return a&&h.hasOwnProperty(b)},!0)&&!h.hasOwnProperty(d)};if(p())e[e.length-1](k,h);else{var q=function(){p()&&(m(q),e[e.length-1](k,h))};l(q)}})},b.retry=function(a,c,d){var e=5,f=[];'function'==typeof a&&(d=c,c=a,a=e),a=parseInt(a,10)||e;var g=function(e,g){for(var h=function(a,b){return function(c){a(function(a,d){c(!a||b,{err:a,result:d})},g)}};a;)f.push(h(c,!(a-=1)));b.series(f,function(a,b){b=b[b.length-1],(e||d)(b.err,b.result)})};return d?g():g},b.waterfall=function(a,c){if(c=c||function(){},!f(a)){var d=new Error('First argument to waterfall must be an array of functions');return c(d)}if(!a.length)return c();var e=function(a){return function(d){if(d)c.apply(null,arguments),c=function(){};else{var f=Array.prototype.slice.call(arguments,1),g=a.next();g?f.push(e(g)):f.push(c),b.setImmediate(function(){a.apply(null,f)})}}};e(b.iterator(a))()};var t=function(a,b,c){if(c=c||function(){},f(b))a.map(b,function(a,b){a&&a(function(a){var c=Array.prototype.slice.call(arguments,1);c.length<=1&&(c=c[0]),b.call(null,a,c)})},c);else{var d={};a.each(j(b),function(a,c){b[a](function(b){var e=Array.prototype.slice.call(arguments,1);e.length<=1&&(e=e[0]),d[a]=e,c(b)})},function(a){c(a,d)})}};b.parallel=function(a,c){t({map:b.map,each:b.each},a,c)},b.parallelLimit=function(a,b,c){t({map:p(b),each:k(b)},a,c)},b.series=function(a,c){if(c=c||function(){},f(a))b.mapSeries(a,function(a,b){a&&a(function(a){var c=Array.prototype.slice.call(arguments,1);c.length<=1&&(c=c[0]),b.call(null,a,c)})},c);else{var d={};b.eachSeries(j(a),function(b,c){a[b](function(a){var e=Array.prototype.slice.call(arguments,1);e.length<=1&&(e=e[0]),d[b]=e,c(a)})},function(a){c(a,d)})}},b.iterator=function(a){var b=function(c){var d=function(){return a.length&&a[c].apply(null,arguments),d.next()};return d.next=function(){return c<a.length-1?b(c+1):null},d};return b(0)},b.apply=function(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b.concat(Array.prototype.slice.call(arguments)))}};var u=function(a,b,c,d){var e=[];a(b,function(a,b){c(a,function(a,c){e=e.concat(c||[]),b(a)})},function(a){d(a,e)})};b.concat=l(u),b.concatSeries=n(u),b.whilst=function(a,c,d){a()?c(function(e){return e?d(e):(b.whilst(a,c,d),void 0)}):d()},b.doWhilst=function(a,c,d){a(function(e){if(e)return d(e);var f=Array.prototype.slice.call(arguments,1);c.apply(null,f)?b.doWhilst(a,c,d):d()})},b.until=function(a,c,d){a()?d():c(function(e){return e?d(e):(b.until(a,c,d),void 0)})},b.doUntil=function(a,c,d){a(function(e){if(e)return d(e);var f=Array.prototype.slice.call(arguments,1);c.apply(null,f)?d():b.doUntil(a,c,d)})},b.queue=function(c,d){function e(a,c,d,e){return a.started||(a.started=!0),f(c)||(c=[c]),0==c.length?b.setImmediate(function(){a.drain&&a.drain()}):(g(c,function(c){var f={data:c,callback:'function'==typeof e?e:null};d?a.tasks.unshift(f):a.tasks.push(f),a.saturated&&a.tasks.length===a.concurrency&&a.saturated(),b.setImmediate(a.process)}),void 0)}void 0===d&&(d=1);var h=0,i={tasks:[],concurrency:d,saturated:null,empty:null,drain:null,started:!1,paused:!1,push:function(a,b){e(i,a,!1,b)},kill:function(){i.drain=null,i.tasks=[]},unshift:function(a,b){e(i,a,!0,b)},process:function(){if(!i.paused&&h<i.concurrency&&i.tasks.length){var b=i.tasks.shift();i.empty&&0===i.tasks.length&&i.empty(),h+=1;var d=function(){h-=1,b.callback&&b.callback.apply(b,arguments),i.drain&&i.tasks.length+h===0&&i.drain(),i.process()},e=a(d);c(b.data,e)}},length:function(){return i.tasks.length},running:function(){return h},idle:function(){return i.tasks.length+h===0},pause:function(){i.paused!==!0&&(i.paused=!0,i.process())},resume:function(){i.paused!==!1&&(i.paused=!1,i.process())}};return i},b.priorityQueue=function(a,c){function d(a,b){return a.priority-b.priority}function e(a,b,c){for(var d=-1,e=a.length-1;e>d;){var f=d+(e-d+1>>>1);c(b,a[f])>=0?d=f:e=f-1}return d}function h(a,c,h,i){return a.started||(a.started=!0),f(c)||(c=[c]),0==c.length?b.setImmediate(function(){a.drain&&a.drain()}):(g(c,function(c){var f={data:c,priority:h,callback:'function'==typeof i?i:null};a.tasks.splice(e(a.tasks,f,d)+1,0,f),a.saturated&&a.tasks.length===a.concurrency&&a.saturated(),b.setImmediate(a.process)}),void 0)}var i=b.queue(a,c);return i.push=function(a,b,c){h(i,a,b,c)},delete i.unshift,i},b.cargo=function(a,c){var d=!1,e=[],i={tasks:e,payload:c,saturated:null,empty:null,drain:null,drained:!0,push:function(a,d){f(a)||(a=[a]),g(a,function(a){e.push({data:a,callback:'function'==typeof d?d:null}),i.drained=!1,i.saturated&&e.length===c&&i.saturated()}),b.setImmediate(i.process)},process:function j(){if(!d){if(0===e.length)return i.drain&&!i.drained&&i.drain(),i.drained=!0,void 0;var b='number'==typeof c?e.splice(0,c):e.splice(0,e.length),f=h(b,function(a){return a.data});i.empty&&i.empty(),d=!0,a(f,function(){d=!1;var a=arguments;g(b,function(b){b.callback&&b.callback.apply(null,a)}),j()})}},length:function(){return e.length},running:function(){return d}};return i};var v=function(a){return function(b){var c=Array.prototype.slice.call(arguments,1);b.apply(null,c.concat([function(b){var c=Array.prototype.slice.call(arguments,1);'undefined'!=typeof console&&(b?console.error&&console.error(b):console[a]&&g(c,function(b){console[a](b)}))}]))}};b.log=v('log'),b.dir=v('dir'),b.memoize=function(a,c){var d={},e={};c=c||function(a){return a};var f=function(){var f=Array.prototype.slice.call(arguments),g=f.pop(),h=c.apply(null,f);h in d?b.nextTick(function(){g.apply(null,d[h])}):h in e?e[h].push(g):(e[h]=[g],a.apply(null,f.concat([function(){d[h]=arguments;var a=e[h];delete e[h];for(var b=0,c=a.length;c>b;b++)a[b].apply(null,arguments)}])))};return f.memo=d,f.unmemoized=a,f},b.unmemoize=function(a){return function(){return(a.unmemoized||a).apply(null,arguments)}},b.times=function(a,c,d){for(var e=[],f=0;a>f;f++)e.push(f);return b.map(e,c,d)},b.timesSeries=function(a,c,d){for(var e=[],f=0;a>f;f++)e.push(f);return b.mapSeries(e,c,d)},b.seq=function(){var a=arguments;return function(){var c=this,d=Array.prototype.slice.call(arguments),e=d.pop();b.reduce(a,d,function(a,b,d){b.apply(c,a.concat([function(){var a=arguments[0],b=Array.prototype.slice.call(arguments,1);d(a,b)}]))},function(a,b){e.apply(c,[a].concat(b))})}},b.compose=function(){return b.seq.apply(null,Array.prototype.reverse.call(arguments))};var w=function(a,b){var c=function(){var c=this,d=Array.prototype.slice.call(arguments),e=d.pop();return a(b,function(a,b){a.apply(c,d.concat([b]))},e)};if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return c.apply(this,d)}return c};b.applyEach=l(w),b.applyEachSeries=n(w),b.forever=function(a,b){function c(d){if(d){if(b)return b(d);throw d}a(c)}c()},'undefined'!=typeof module&&module.exports?module.exports=b:'undefined'!=typeof define&&define.amd?define('async',[],function(){return b}):c.async=b}(),function(a,b,c){'undefined'!=typeof c.module&&c.module.exports?c.module.exports=b.apply(c):'undefined'!=typeof c.define&&'function'===c.define&&c.define.amd?define(a,[],b):c[a]=b()}('ydn',function(){function a(a){return void 0!==a}function b(a){var b=typeof a;if("object"==b){if(!a)return"null";if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function c(a){return"array"==b(a)}function d(a){var c=b(a);return"array"==c||"object"==c&&"number"==typeof a.length}function e(a){return"string"==typeof a}function f(a){return"boolean"==typeof a}function g(a){return"number"==typeof a}function h(a){return"function"==b(a)}function i(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function j(a,b,c){return a.call.apply(a.bind,arguments)}function k(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(c,d),a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function l(a,b,c){return l=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?j:k,l.apply(null,arguments)}function m(b,c){var d=b.split("."),e=fc;d[0]in e||!e.execScript||e.execScript("var "+d[0]);for(var f;d.length&&(f=d.shift());)!d.length&&a(c)?e[f]=c:e=e[f]?e[f]:e[f]={}}function n(a,b){function c(){}c.prototype=b.prototype,a.u=b.prototype,a.prototype=new c,a.prototype.constructor=a,a.fb=function(a,c,d){return b.prototype[c].apply(a,Array.prototype.slice.call(arguments,2))}}function o(a){a.prototype.then=a.prototype.then,a.prototype.$goog_Thenable=!0}function p(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}}function q(a){if(Error.captureStackTrace)Error.captureStackTrace(this,q);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}function r(a){for(var b=0;1>b;b++)if('"'==a.charAt(0)&&'"'==a.charAt(a.length-1))return a.substring(1,a.length-1);return a}function s(a){if(a=String(a),a.quote)return a.quote();for(var b=['"'],c=0;c<a.length;c++){var d=a.charAt(c),e=d.charCodeAt(0),f=c+1,g;(g=hc[d])||(e>31&&127>e||(d in ic?d=ic[d]:d in hc?d=ic[d]=hc[d]:(e=d,g=d.charCodeAt(0),g>31&&127>g?e=d:(256>g?(e="\\x",(16>g||g>256)&&(e+="0")):(e="\\u",4096>g&&(e+="0")),e+=g.toString(16).toUpperCase()),d=ic[d]=e)),g=d),b[f]=g}return b.push('"'),b.join("")}function t(a,b){var c=u(a,b,void 0);return 0>c?null:e(a)?a.charAt(c):a[c]}function u(a,b,c){for(var d=a.length,f=e(a)?a.split(""):a,g=0;d>g;g++)if(g in f&&b.call(c,f[g],g,a))return g;return-1}function v(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;b>d;d++)c[d]=a[d];return c}return[]}function w(a,b){if(!d(a)||!d(b)||a.length!=b.length)return!1;for(var c=a.length,e=x,f=0;c>f;f++)if(!e(a[f],b[f]))return!1;return!0}function x(a,b){return a===b}function y(b,c){for(var e=d(c),f=e?c:arguments,e=e?0:1;e<f.length&&(b=b[f[e]],a(b));e++);return b}function z(a){fc.setTimeout(function(){throw a},0)}function A(){var b=fc.MessageChannel;if("undefined"==typeof b&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&(b=function(){var a=document.createElement("iframe");a.style.display="none",a.src="",document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open(),a.write(""),a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,a=l(function(a){"*"!=d&&a.origin!=d||a.data!=c||this.port1.onmessage()},this);b.addEventListener("message",a,!1),this.port1={},this.port2={postMessage:function(){b.postMessage(c,d)}}}),"undefined"!=typeof b&&-1==nc.indexOf("Trident")&&-1==nc.indexOf("MSIE")){var c=new b,d={},e=d;return c.port1.onmessage=function(){if(a(d.next)){d=d.next;var b=d.na;d.na=null,b()}},function(a){e.next={na:a},e=e.next,c.port2.postMessage(0)}}return"undefined"!=typeof document&&"onreadystatechange"in document.createElement("script")?function(a){var b=document.createElement("script");b.onreadystatechange=function(){b.onreadystatechange=null,b.parentNode.removeChild(b),b=null,a(),a=null},document.documentElement.appendChild(b)}:function(a){fc.setTimeout(a,0)}}function B(a,b){rc||C(),sc||(rc(),sc=!0),tc.push(new E(a,b))}function C(){if(fc.Promise&&fc.Promise.resolve){var a=fc.Promise.resolve();rc=function(){a.then(D)}}else rc=function(){var a=D;!h(fc.setImmediate)||fc.Window&&fc.Window.prototype.setImmediate==fc.setImmediate?(qc||(qc=A()),qc(a)):fc.setImmediate(a)}}function D(){for(;tc.length;){var a=tc;tc=[];for(var b=0;b<a.length;b++){var c=a[b];try{c.a.call(c.b)}catch(d){z(d)}}}sc=!1}function E(a,b){this.a=a,this.b=b}function F(a,b){this.b=uc,this.f=void 0,this.a=this.c=null,this.d=this.e=!1;try{var c=this;a.call(b,function(a){K(c,vc,a)},function(a){K(c,wc,a)})}catch(d){K(this,wc,d)}}function G(a){a.b==uc&&B(function(){var a=new P(void 0);H(this,a)},a)}function H(a,b){if(a.b==uc)if(a.c){var c=a.c;if(c.a){for(var d=0,e=-1,f=0,g;(g=c.a[f])&&!((g=g.L)&&(d++,g==a&&(e=f),e>=0&&d>1));f++);e>=0&&(c.b==uc&&1==d?H(c,b):(d=c.a.splice(e,1)[0],N(c,d,wc,b)))}}else K(a,wc,b)}function I(a,b){a.a&&a.a.length||a.b!=vc&&a.b!=wc||M(a),a.a||(a.a=[]),a.a.push(b)}function J(b,c,d,e){var f={L:null,wa:null,xa:null};return f.L=new F(function(b,g){f.wa=c?function(a){try{var d=c.call(e,a);b(d)}catch(f){g(f)}}:b,f.xa=d?function(c){try{var f=d.call(e,c);!a(f)&&c instanceof P?g(c):b(f)}catch(h){g(h)}}:g}),f.L.c=b,I(b,f),f.L}function K(a,b,c){if(a.b==uc){if(a==c)b=wc,c=new TypeError("Promise cannot resolve to itself");else{if(p(c))return a.b=1,c.then(a.g,a.i,a),void 0;if(i(c))try{var d=c.then;if(h(d))return L(a,c,d),void 0}catch(e){b=wc,c=e}}a.f=c,a.b=b,M(a),b!=wc||c instanceof P||O(a,c)}}function L(a,b,c){function d(b){f||(f=!0,a.i(b))}function e(b){f||(f=!0,a.g(b))}a.b=1;var f=!1;try{c.call(b,e,d)}catch(g){d(g)}}function M(a){a.e||(a.e=!0,B(a.l,a))}function N(a,b,c,d){if(c==vc)b.wa(d);else{if(b.L)for(;a&&a.d;a=a.c)a.d=!1;b.xa(d)}}function O(a,b){a.d=!0,B(function(){a.d&&xc.call(null,b)})}function P(a){q.call(this,a)}function Q(a,b){this.i=[],this.ta=b||null,this.b=this.c=!1,this.d=void 0,this.za=this.B=this.l=!1,this.f=0,this.g=null,this.N=0}function R(a,b,c){a.c=!0,a.d=c,a.b=!b,a.ea()}function S(a){if(a.c){if(!a.za)throw new V;a.za=!1}}function T(a,b,c,d){return a.i.push([b,c,d]),a.c&&a.ea(),a}function U(a){return mc(a.i,function(a){return h(a[1])})}function V(){q.call(this)}function W(a){this.S=fc.setTimeout(l(this.b,this),0),this.a=a}function X(a){var b=yc[a];b&&(fc.clearTimeout(b.S),delete yc[a])}function Y(a){q.call(this,a),this.name="ydn.error.ArgumentException"}function Z(a){q.call(this,a),this.name="ydn.error.NotSupportedException"}function $(a){q.call(this,a),this.name="ydn.error.NotImplementedException"}function _(a){q.call(this,a),this.name="ydn.error.InvalidOperationException"}function aa(a){Error.captureStackTrace?Error.captureStackTrace(this,aa):this.stack=Error().stack||"",a&&(this.message=String(a)),this.name="ydn.error.InternalError"}function ba(){}function ca(a,b){Q.call(this,0,b),this.e=[]}function da(b,c){var f,g;for(2==arguments.length&&e(arguments[1])?(f=!0,g=arguments[1].split(".")):g=(f=d(c))?c:arguments,f=f?0:1;f<g.length&&(b=b[g[f]],a(b));f++);return b}function ea(a){var b=[a];a=new ka;for(var c=0,d,e;void 0!==(e=b.pop());){if(0===c%4&&c+4>12&&(a.write(c),c=0),d=typeof e,e instanceof Array){if(c+=4,0<e.length){for(b.push(Dc),d=e.length;d--;)b.push(e[d]);continue}a.write(c)}else if("number"===d)c+=1,a.write(c),fa(a,e);else if(e instanceof Date)c+=2,a.write(c),fa(a,e.valueOf());else if("string"===d){for(c+=3,a.write(c),c=a,d=0;d<e.length;d++){var f=e.charCodeAt(d);126>=f?c.write(f+1):16510>=f?(f-=127,c.write(128|f>>8,255&f)):c.write(192|f>>10,f>>2|255,(3|f)<<6)}c.write(0)}else{if(e!==Dc)return"";a.write(0)}c=0}for(b=a.a.length;"00"===a.a[--b];);return a.a.length=++b,a.toString()}function fa(a,b){var c,d,e;c=b;var f=e=d=0;if(0!==c)if(isFinite(c)){if(0>c&&(d=1,c=-c),f=0,c>=2.2250738585072014e-308){for(e=c;1>e;)f--,e*=2;for(;e>=2;)f++,e/=2;e=f+1023}f=e?Math.floor(4503599627370496*(c/Math.pow(2,f)-1)):Math.floor(c/5e-324)}else e=2047,isNaN(c)?f=0x8000000000000:-(1/0)===c&&(d=1);c=d,d=e,e=f,c&&(e=0xfffffffffffff-e,d=2047-d),a.write((c?0:128)|d>>4),a.write((15&d)<<4|0|e/281474976710656),e%=281474976710656,c=0|e/4294967296,a.write(c>>8,255&c),e%=4294967296,c=0|e/65536,a.write(c>>8,255&c),c=e%65536,a.write(c>>8,255&c)}function ga(a){var b=0|ja(a),c=!(b>>7),d=c?-1:1,e=(127&b)<<4,b=0|ja(a),e=e+(b>>4);c&&(e=2047-e);for(var b=[c?15-(15&b):15&b],f=6;f--;)b.push(c?255-(0|ja(a)):0|ja(a));for(a=0,f=7;f--;)a=a/256+b[f];return a/=16,0===a&&0===e?0:(a+1)*Math.pow(2,e-1023)*d}function ha(a){for(var b=[],c=0,d=0,e=0,f,g;f=ja(a),0!==f&&null!=f;)0===c?(g=f>>6,2>g&&!isNaN(f)?b.push(String.fromCharCode(f-1)):(c=g,d=f<<10,e++)):2===c?(b.push(String.fromCharCode(d+f+127)),c=d=e=0):2===e?(d+=f<<2,e++):(b.push(String.fromCharCode(d|f>>6)),c=d=e=0);return b.join("")}function ia(a){this.a=null,this.b=a,this.c=this.b.length-1,this.index=-1}function ja(a){return a.a=a.index<a.c?parseInt(a.b.charAt(++a.index)+a.b.charAt(++a.index),16):null}function ka(){this.a=[],this.b=void 0}function la(a,b){var c=ea(a),d=ea(b);return c>d?1:c==d?0:-1}function ma(a,b,c){ca.call(this,0,c),this.r=a,this.e=[],this.n=[],this.Ca=[],this.a=null,this.J="",this.W=0}function na(a,b,c){if(a.a=b,a.J=c,b){for(c=0;c<a.n.length;c++)a.n[c][0].call(a.n[c][1],b);a.n.length=0}}function oa(a){var b=new ma(a.r);return a.W++,na(b,a.a,a.J+"C"+a.W),b}function pa(a,b,c){var d=a.Ca.shift();c=!!c,d?d[0].call(d[1],b,c,function(b,c){pa(a,b,c)}):c?a.h(b):a.callback(b)}function qa(a,b,c){a.Ca.push([b,c])}function ra(a,b,c){a.a?b.call(c,a.a):a.n.push([b,c])}function sa(a){var b="";return a.J&&(b=a.a?"*":"",b="["+a.J+b+"]"),a.r+b}function ta(a,b){var c=new ma(a);return pa(c,b),c}function ua(a,b){this.type=a,this.target=b}function va(a,b){ua.call(this,a,b)}function wa(a,b,c,d,e){ua.call(this,a,b),this.version=c,this.Ja=d,this.ua=e}function xa(a,b,c){ua.call(this,c||"error",a),this.error=b}function ya(a,b){xa.call(this,a,b,"fail")}function za(b,c,d){var e;if(i(b))e=b.store,c=b.id,null!=b.parent&&(d=new za(b.parent));else if(a(c))e=b;else if(e=b.lastIndexOf("^|"),c=b,e>0&&(c=b.substr(e),d=new za(b.substring(0,e))),
c=c.split("^:"),e=c[0],c=c[1],!a(c))throw Error("Invalid key value: "+b);this.b=e,this.a=c,this.c=d||null}function Aa(a){return c(a.a)?a.a.join("^|"):a.a instanceof Date?+a.a:a.a}function Ba(a){if(d(a)){for(var b=[],c=0,e=a.length;e>c;c++)b[c]=a[c];return b}return a}function Ca(a,b,c,d){a>b&&(b=a=void 0),null===a&&(a=void 0),null===b&&(b=void 0),this.lower=a,this.upper=b,this.lowerOpen=!!c,this.upperOpen=!!d}function Da(a){return Ea(a)}function Ea(a){return null!=a?null!=a.upper&&null!=a.lower?Lc.bound(a.lower,a.upper,!!a.lowerOpen,!!a.upperOpen):null!=a.upper?Lc.upperBound(a.upper,a.upperOpen):null!=a.lower?Lc.lowerBound(a.lower,a.lowerOpen):null:null}function Fa(a,b,c,d,e){if(c)if(c.lowerOpen||c.upperOpen||null==c.lower||null==c.upper||0!==Jc(c.lower,c.upper)){if(null!=c.lower){var f=c.lowerOpen?" > ":" >= ";d.push(a+f+"?"),e.push(Ha(c.lower,b))}null!=c.upper&&(f=c.upperOpen?" < ":" <= ",d.push(a+f+"?"),e.push(Ha(c.upper,b)))}else d.push(a+" = ?"),e.push(Ha(c.lower,b))}function Ga(b,f,g,h,i,j){if(a(i)||(i=c(b)?b.join(", "):b),null!=b&&!e(b)&&!d(b))throw new Y("index keyPath for "+i+" must be a string or array, but "+b+" is "+typeof b);if(!a(b)&&a(i)&&(b=i),this.keyPath=b,this.f=d(this.keyPath),this.a=i,this.type=Ja(f),a(f)){if(!a(this.type))throw new Y("type invalid in index: "+this.a);if(c(this.keyPath))throw new Y('composite key for store "'+this.a+'" must not specified type')}this.unique=!!g,this.multiEntry=!!h,this.g=e(this.type)?this.type:Mc,this.d=e(i)?i:c(b)?this.keyPath.join(","):b,this.c=s(this.d),this.b=this.f?null:this.keyPath.split("."),this.e=j||null}function Ha(a,b){return"DATE"!=b?null!=b?a:ea(a):a instanceof Date?+a:void 0}function Ia(b,c){var d;if("DATE"==c)d=new Date(b);else if(a(c))d=b;else{for(var e=d=[],f,g=[],h,i,j=new ia(b);null!=ja(j);)if(0===j.a)e=g.pop();else{if(null===j.a)break;for(;;){h=j.a/4|0,f=j.a%4;for(var k=0;h>k;k++)i=[],e.push(i),g.push(e),e=i;if(!(0===f&&12<j.a+4))break;ja(j)}1===f?e.push(ga(j)):2===f?e.push(new Date(ga(j))):3===f?e.push(ha(j)):0===f&&(e=g.pop())}d=d[0]}return d}function Ja(a){return e(a)?(a=kc(Nc,a),Nc[a]):void 0}function Ka(a,b){return null!=a||null!=b?null!=a?null!=b?d(a)&&d(b)?w(a,b)?null:"expect: "+a+", but: "+b:pb(a,b)?null:"expect: "+a+", but: "+b:"keyPath: "+a+" no longer defined":"newly define "+b:null}function La(b,f,g,h,i,j,k,l){if(!e(b))throw new Y("store name must be a string");if(this.d=b,this.keyPath=a(f)?f:null,this.g=d(this.keyPath),null!==this.keyPath&&!e(this.keyPath)&&!this.g)throw new Y("keyPath must be a string or array");this.b=!!g;var m;if(null!=h){if(m=Ja(h),!a(m))throw new Y('type "'+h+'" for primary key in store "'+this.d+'" is invalid.');if(this.g)throw new Y('composite key for store "'+this.d+'" must not specified type')}this.type=null!=m?m:this.b?"INTEGER":void 0,this.e=e(this.keyPath)?this.keyPath.split("."):[],this.a=i||[],this.w=!!j,this.G=!!k,this.n=e(this.type)?this.type:Mc,this.f=c(this.keyPath)?this.keyPath.join(","):e(this.keyPath)?this.keyPath:"_ROWID_",this.c=s(this.f),this.l=!!l,this.i=[]}function Ma(b){var d=[],e=b.indexes||[];if(c(e))for(var f=0;f<e.length;f++){var g;g=e[f],g=new Ga(g.keyPath,g.type,g.unique,g.multiEntry,g.name,g.generator),a(g.keyPath)&&g.keyPath===b.keyPath||d.push(g)}return new La(b.name,b.keyPath,b.autoIncrement,"undefined"===b.type||"null"===b.type?void 0:b.type,d,b.dispatchEvents,b.fixed,b.encrypted)}function Na(a,b,c,d,e,f,g){return a=Oa(a,b,c,d,e,f,g),b="",0!=c&&(b+="SELECT "+a.select),b+=" FROM "+a.M,a.k&&(b+=" WHERE "+a.k),a.group&&(b+=" GROUP BY "+a.group),a.C&&(b+=" ORDER BY "+a.C),b}function Oa(a,b,c,d,f,g,h){var i={select:"",M:"",k:"",group:"",C:""},j=a.f,k=a.c,l=null;d!==j&&e(d)&&(l=Ra(a,d));var m=!!l,n=d||j,o=s(n),p=m?l.type:a.type,q=m&&l.multiEntry;return i.M=Ta(a),6===c?i.select="COUNT("+k+")":3===c||1===c||2===c?(i.select=k,null!=d&&d!=j&&(i.select+=", "+o)):i.select="*",d=h?"DISTINCT ":"",j=[],q?(q=s("ydn.db.me:"+a.getName()+":"+l.getName()),i.select=6===c?"COUNT("+d+q+"."+o+")":3===c||1===c||2===c?"DISTINCT "+Ta(a)+"."+k+", "+q+"."+o+" AS "+n:"DISTINCT "+Ta(a)+".*, "+q+"."+o+" AS "+n,i.M=q+" INNER JOIN "+Ta(a)+" USING ("+k+")",null!=f&&(Fa(q+"."+o,p,f,j,b),0<j.length&&(i.k=i.k?i.k+(" AND "+j.join(" AND ")):j.join(" AND ")))):null!=f&&(Fa(o,p,f,j,b),0<j.length&&(i.k=i.k?i.k+(" AND "+j.join(" AND ")):j.join(" AND "))),m&&!l.unique&&h&&(i.group=o),a=g?"DESC":"ASC",i.C=o+" "+a,m&&(i.C+=", "+k+" "+a),i}function Pa(a,b,c,d,e,f,g,h){var i,j,k,l;return null!=e?(i=e.lower,j=e.upper,k=e.lowerOpen,l=e.upperOpen,f?null!=j?(e=Jc(h,j),-1==e?(j=h,l=!0):0==e&&(l=!0)):(j=h,l=!0):null!=i?(e=Jc(h,i),1==e?(i=h,k=!0):0==e&&(k=!0)):(i=h,k=!0)):f?(j=h,l=!0):(i=h,k=!0),e=new Ca(i,j,!!k,!!l),d=d?Ra(a,d):null,b=Oa(a,c,b,d?d.d:a.f,e,f,g),b="SELECT "+b.select+" FROM "+b.M+(b.k?" WHERE "+b.k:"")+(b.group?" GROUP BY "+b.group:"")+" ORDER BY "+b.C,d&&(b+=", "+a.c+(f?"DESC":"ASC")),b}function Qa(a,b,c,d,e,f,g,h,i){var j=Ra(a,d),k=j.d;d=j.c;var l=a.c,m;m=(h?" <":" >")+" ",j=Ha(f,j.type),g=Ha(g,a.type);var n="";return e?(a=Oa(a,c,b,k,e,h,i),a.k+=" AND ",n=d+m+"?",c.push(j)):(e=h?Ca.upperBound(f,!0):Ca.lowerBound(f,!0),a=Oa(a,c,b,k,e,h,i),n=a.k,a.k=""),a.k+="("+n+" OR ("+d+" = ? AND "+l+m+"?))",c.push(j),c.push(g),"SELECT "+a.select+" FROM "+a.M+" WHERE "+a.k+(a.group?" GROUP BY "+a.group:"")+" ORDER BY "+a.C}function Ra(a,b){return t(a.a,function(a){return a.getName()==b})}function Sa(a,b){return b===a.keyPath?!0:mc(a.a,function(a){return a.getName()==b})}function Ta(a){return s(a.d)}function Ua(b,d){if(!d)return b;var f=b.b,g=c(b.keyPath)?v(b.keyPath):b.keyPath,h=b.type,i=lc(b.a,function(a){return a.clone()});a(d.type)||"TEXT"!=h||(h=void 0),c(d.keyPath)&&e(g)&&g==d.keyPath.join(",")&&(g=v(d.keyPath));for(var j=0,k=d.a.length;k>j;j++)if(d.a[j].f)for(var l=d.a[j].getName(),m=i.length-1;m>=0;m--)if(0<=l.indexOf(i[m].getName())){i[m]=d.a[j].clone();break}for(j=0;j<i.length;j++)(k=Ra(d,i[j].getName()))&&(i[j]=i[j].hint(k));return new La(d.d,g,f,h,i)}function Va(a){return!!a.keyPath}function Wa(a,b,c){if(b){if(!a.keyPath&&null!=c)return c;if(a.g){c=[];for(var d=0;d<a.keyPath.length;d++)c.push(da(b,a.keyPath[d]));return c}if(a.keyPath)return y(b,a.e)}}function Xa(b,c,d){for(var e=0;e<b.e.length;e++){var f=b.e[e];if(e==b.e.length-1){c[f]=d;break}a(c[f])||(c[f]={}),c=c[f]}}function Ya(b,c,f){var g=[],h=[];f=a(f)?f:Wa(b,c),a(f)&&(h.push(b.c),g.push(Ha(f,b.type)));for(var i=0;i<b.a.length;i++){var j=b.a[i];if(!j.multiEntry&&j.getName()!==b.keyPath&&"_default_"!=j.getName()){var k;k=j;var l=c;if(null!=l)if(d(k.keyPath)){for(var m=[],n=0,o=k.keyPath.length;o>n;n++){var p=da(l,k.keyPath[n]);m[n]=p}k=m}else k=da(l,k.keyPath);else k=void 0;null!=k&&(g.push(Ha(k,j.type)),h.push(j.c))}}for(b.G?b.G&&!b.keyPath&&0==b.a.length&&(e(c)&&-1==c.indexOf(";base64,")?g.push(c):g.push(cb(c)),h.push("_default_")):(g.push(cb(c)),h.push("_default_")),b=[],i=g.length-1;i>=0;i--)b[i]="?";return{Na:h,Xa:b,F:g,key:f}}function Za(b,c){if(!c)return"missing store: "+b.d;if(b.d!=c.d)return"store name, expect: "+b.d+", but: "+c.d;var e=Ka(b.keyPath,c.keyPath);if(e)return"keyPath, "+e;if(a(b.b)&&a(c.b)&&b.b!=c.b)return"autoIncrement, expect:  "+b.b+", but: "+c.b;if(b.a.length!=c.a.length)return"indexes length, expect:  "+b.a.length+", but: "+c.a.length;if(a(b.type)&&a(c.type)&&(d(b.type)?!w(b.type,c.type):b.type!=c.type))return"data type, expect:  "+b.type+", but: "+c.type;for(e=0;e<b.a.length;e++){var f=Ra(c,b.a[e].getName()),g;if(g=b.a[e],f)if(g.a!=f.a)g="name, expect: "+g.a+", but: "+f.a;else{var h=Ka(g.keyPath,f.keyPath);g=h?"keyPath, "+h:null!=g.unique&&null!=f.unique&&g.unique!=f.unique?"unique, expect: "+g.unique+", but: "+f.unique:null!=g.multiEntry&&null!=f.multiEntry&&g.multiEntry!=f.multiEntry?"multiEntry, expect: "+g.multiEntry+", but: "+f.multiEntry:a(g.type)&&a(f.type)&&(d(g.type)?!w(g.type,f.type):g.type!=f.type)?"data type, expect: "+g.type+", but: "+f.type:""}else g="no index for "+g.a;if(0<g.length)return'index "'+b.a[e].getName()+'" '+g}return""}function $a(a,b){if(b)for(var d=0;d<a.a.length;d++){var e=a.a[d],f=b;if(e.e){var g=e.e(f),h=typeof g;if("string"==h||"number"==h||g instanceof Date||c(g)){for(h=0;h<e.b.length-1;h++)i(f[e.b[h]])||(f[e.b[h]]={});f[e.b[e.b.length-1]]=g}}}}function _a(a,b,c,d,e){for(var f=0;f<a.i.length;f++)d!==f&&a.i[f].call(e,b,c)}function ab(a){return!e(a)||/^[\s\xa0]*$/.test(a)?{}:JSON.parse(a)}function bb(a){var b;try{b=cb(a)}catch(c){b=""}return b?b.substr(0,70)+(70<b.length?"...":""):""}function cb(a){return JSON.stringify(a,void 0,void 0)}function db(a){this.a=a}function eb(a,b){this.name=a,this.a=b}function fb(a){if(!c(a.sources))throw new Y("indexes require for full text search index "+a.name+", but "+a.sources+" of type "+typeof a.sources+" found.");var b=a.sources.map(function(a){return new db(a.storeName)});return new eb(a.name,b)}function gb(b,d){var f,h,j=d;if(i(b)){h=b,f=h.version;for(var j=[],k=h.stores||[],l=0;l<k.length;l++){var m=Ma(k[l]);j.push(m)}}else e(b)?f=0==b.length?void 0:parseFloat(b):g(b)&&(f=b);if(a(f)){if(!g(f)||0>f)throw new Y("Invalid version: "+f+" ("+b+")");isNaN(f)&&(f=void 0)}if(a(d)&&(!c(d)||0<d.length&&!(d[0]instanceof La)))throw new Y("stores");if(this.version=f,this.U=!a(this.version),this.a=j||[],f=[],h&&h.fullTextCatalogs)for(l=0;l<h.fullTextCatalogs.length;l++)j=fb(h.fullTextCatalogs[l]),f[l]=j,ib(this,j.getName())||(k=[new Ga("k",Mc),new Ga("v",Mc)],j=new La(j.getName(),"id",!1,void 0,k,!1,!1,!1),this.a.push(j));this.b=f}function hb(a){return lc(a.a,function(a){return a.getName()})}function ib(a,b){return t(a.a,function(a){return a.getName()==b})}function jb(a,b){return mc(a.a,function(a){return a.getName()==b})}function kb(a,b,c,d){if(!b||a.a.length!=b.a.length)return"Number of store: "+a.a.length+" vs "+b.a.length;for(var e=0;e<a.a.length;e++){var f=ib(b,a.a[e].getName());if(!f)return'missing object store "'+a.a[e].getName()+'"';if(c&&(f=Ua(f,a.a[e])),d)for(var g=f,h=a.a[e],i=0;i<h.a.length;i++){var j=h.a[i];Sa(g,j.getName())||"BLOB"!=j.type||(j=new Ga(j.keyPath,j.type,j.unique,j.multiEntry,j.getName()),g.a.push(j))}if(f=Za(a.a[e],f),0<f.length)return'store: "'+a.a[e].getName()+'" '+f}return""}function lb(a,b){gb.call(this,a,b)}function mb(a,b){a.a.push(b)}function nb(a){Error.captureStackTrace?Error.captureStackTrace(this,nb):this.stack=Error().stack||"",a&&(this.message=String(a)),this.name="ydn.error.InternalError"}function ob(a){Error.captureStackTrace?Error.captureStackTrace(this,ob):this.stack=Error().stack||"",a&&(this.message=String(a)),this.name="ydn.error.ConstraintError"}function pb(a,b){var c;if(c=c||{},null!=a&&null!=b){if(d(a)&&d(b)){if(a.length!=b.length)return!1;for(var e=0;e<a.length;e++)if(-1==t(b,function(b){return pb(b,a[e])}))return!1;return!0}if(d(a))return 1==a.length&&pb(a[0],b);if(d(b))return 1==b.length&&pb(b[0],a);if(i(a)&&i(a)){for(var f in a)if(a.hasOwnProperty(f)&&!c[f]){var g=pb(a[f],b[f]);if(!g)return!1}for(f in b)if(b.hasOwnProperty(f)&&!c[f]&&(g=pb(a[f],b[f]),!g))return!1;return!0}return a===b}return!1}function qb(b,c,d){d=d||{},this.n=d.mechanisms||Oc,this.l=d.size,this.r=a(d.connectionTimeout)?d.connectionTimeout:6e4,this.a=null,this.e=[],this.T=!1;var e;if(c instanceof gb)e=c;else if(i(c)){e=d.autoSchema||!a(c.stores)?new lb(c):new gb(c);var f=c.stores?c.stores.length:0;for(d=0;f>d;d++)ib(e,c.stores[d].name)}else e=new lb;for(this.b=e,d=0;d<this.b.count();d++)this.b.I(d).l&&this.b.I(d);a(b)&&this.i(b),this.d=new Q}function rb(a,b){var c=b instanceof La?b:Ma(b),d=ib(a.b,b.name);if(0==Za(c,d).length)(new Q).callback(!1);else{if(!(a.b instanceof lb))throw new ob("");mb(a.b,c),a.a?(a.a.close(),a.a=null,sb(a)):(new Q).callback(!1)}}function sb(a){function b(b,e){b?(a.qa=NaN,d.va=function(){},d.ga=function(){a.a=null},d.ya=function(){},setTimeout(function(){tb(a,e),vb(a)},10),c.callback(e)):(setTimeout(function(){if(tb(a,new ya(a,e)),a.e)for(var b;b=a.e.shift();)b.o&&b.o("error",e)},10),c.h(e))}for(var c=new Q,d=null,e=a.n,f=0;f<e.length;f++){var g=e[f].toLowerCase();if(d=a.ca(g)){d=a.ca(g);break}}null===d?(e=new ob("No storage mechanism found."),b(!1,new ya(a,e))):T(d.ia(a.f,a.b),function(a){this.a=d,b(!0,new wa("ready",this,parseFloat(d.Ia()),parseFloat(a),null))},function(a){b(!1,a)},a)}function tb(a,b){setTimeout(function(){a.b.U&&a.d.c||(b instanceof xa?a.d.h(b.error):a.d.callback())},4)}function ub(a){return!!a.a&&a.a.ja()}function vb(a){var b=a.e.shift();b&&a.transaction(b.R,b.Wa,b.mode,b.o),a.qa=gc()}function wb(a){Error.captureStackTrace?Error.captureStackTrace(this,wb):this.stack=Error().stack||"",a&&(this.message=String(a)),this.name="ConstraintError"}function xb(a){Error.captureStackTrace?Error.captureStackTrace(this,xb):this.stack=Error().stack||"",a&&(this.message=String(a)),this.name="InvalidStateError"}function yb(a){Error.captureStackTrace?Error.captureStackTrace(this,yb):this.stack=Error().stack||"",a&&(this.message=String(a)),this.name="NotFoundError"}function zb(a,b){Error.captureStackTrace?Error.captureStackTrace(this,zb):this.stack=Error().stack||"",b&&(this.message=String(b)),this.message+=" :"+a.message+" ["+a.code+"]",this.name="SQLError"}function Ab(a,b){Error.captureStackTrace?Error.captureStackTrace(this,Ab):this.stack=Error().stack||"",b&&(this.message=String(b)),this.message+=" :"+a.message,this.name="SecurityError"}function Bb(a){Error.captureStackTrace?Error.captureStackTrace(this,Bb):this.stack=Error().stack||"",a&&(this.message=String(a)),this.name="ydn.db.TimeoutError"}function Cb(a,b){this.a=b}function Db(a){this.d=a,this.a=null,this.b=0}function Eb(a){return!!a.a&&!a.c}function Fb(a,b,c,d,e,f){this.i=a,this.W=b,this.a=this.d=0,this.N=d,this.B=e,this.f=c||Pc,this.l=f||0}function Gb(a){if(!a)throw new xb("No active transaction");if(h(a.abort))a.abort();else{if(!h(a.executeSql))throw new Z;a.executeSql("ABORT",[],null,function(){return!0})}}function Hb(a,b,c,d,e,f){Fb.call(this,a,b,c,d,e,f),this.c=[],this.e=[],this.g=null,this.b=new Db(b),this.n=f||0,this.r=!1}function Ib(a,b,c){if("multi"==a.f)a:if(a=a.b,!a.p||!a.mode||c!=a.mode&&(a.mode!=Gc||c!=Fc)||b.length>a.p.length)b=!1;else{for(c=0;c<b.length;c++)if(-1==a.p.indexOf(b[c])){b=!1;break a}b=!0}else if("repeat"==a.f)a:if(a=a.b,a.p&&a.mode&&c==a.mode&&a.p.length==b.length){for(c=0;c<b.length;c++)if(-1==a.p.indexOf(b[c])){b=!1;break a}b=!0}else b=!1;else b="all"==a.f;return b}function Jb(a){var b=0<a.c.length?a.c[0].p:null,c=0<a.c.length?a.c[0].mode:null;return null!=b&&null!=c?Ib(a,b,c):!1}function Kb(a,b){Hb.call(this,a,b)}function Lb(a,b,c){this.c=a,this.b=b,this.a=c,this.d=null}function Mb(a){if(!a.d){var b;b=a.c;var c=b.ka();if("indexeddb"==c)b=new _b(0,b.b);else{if("websql"!=c&&"sqlite"!=c)throw new aa("No executor for "+c);b=new ac(0,b.b)}a.d=b}return a.d}function Nb(a,b,c){Lb.call(this,a,b,c)}function Ob(a,b){var c=e(b)?b:i(b)?b.name:void 0;if(!e(c))throw new Y("store name must be a string");var d=ib(a.b,c);if(d){if(a.b.q()&&i(b)){var f=Ma(b);if(f=Za(d,f))throw new Z(f)}}else{if(!a.b.q())throw new yb(c);d=Ma(i(b)?b:{name:c}),rb(a.c,d)}if(!d)throw new yb(c);return d}function Pb(a,b,c,d){this.d=a,this.a=v(c),this.b=d,this.c=[]}function Qb(a,b,c){if(!a.d)throw new aa("tx committed on ParallelTxExecutor");c&&a.c.push(c),b(a.d)}function Rb(a,b,c,d,e,f){Fb.call(this,a,b,c,d,e,f),this.c=this.b=null}function Sb(a,b){Rb.call(this,a,b,Pc)}function Tb(b,c,d){qb.call(this,b,c,d),this.H=0,b=!0,c=Pc,d&&(a(d.isSerial)&&(b=!!d.isSerial),d.policy&&(c=d.policy)),d=Ub(this,c,b),this.g=Ub(this,"atomic",!1),this.c=this.X(d,this.g)}function Ub(a,b,c,d,e,f){if(c){if("multi"==b||"repeat"==b||"all"==b||b==Pc)return new Hb(a,a.H++,b,d,e,f);if("atomic"==b)return new Kb(a,a.H++);throw new Y('Invalid requestType "'+b+'"')}if("multi"==b||"repeat"==b||"all"==b||b==Pc)return new Rb(a,a.H++,b,d,e,f);if("atomic"==b)return new Sb(a,a.H++);throw new Y('Invalid requestType "'+b+'"')}function Vb(a,b,c){for(Tb.call(this,a,b,c),a=this.b,b=0;b<a.b.length;b++){c=a.b[b];var d=ib(a,c.getName());if(!d)throw new Y('full text index store "'+c.getName()+'" required.');if(!Sa(d,"k"))throw new Y('full text index store "'+d.getName()+'" must have "keyword" index');if(!Sa(d,"v"))throw new Y('full text index store "'+d.getName()+'" must have "keyword" index');if("id"!=d.keyPath)throw new Y('full text index store "'+d.getName()+'" must use "id" as key path.');for(d=0;d<c.count();d++){var e=c.index(d);if(!ib(a,e.a))throw new Y('full text source store "'+e.a+'" does not exist for full text index "'+c.getName()+'"')}}}function Wb(a,b){this.j=null,this.O=b||NaN}function Xb(a,b,c){function d(){var b={autoIncrement:!!c.b};return null!=c.keyPath&&(b.keyPath=c.keyPath),a.createObjectStore(c.getName(),b)}if(a.objectStoreNames.contains(c.getName())){b=b.objectStore(c.getName()),Ka(c.keyPath||"",b.keyPath||"")?(a.deleteObjectStore(c.getName()),b=d()):f(b.autoIncrement)&&f(c.b)&&b.autoIncrement!=c.b&&(a.deleteObjectStore(c.getName()),b=d());for(var e=b.indexNames,g=0;g<c.a.length;g++){var h=c.index(g);!e.contains(h.getName())&&h.e&&b.clear()}for(var i=0,j=0,k=0,g=0;g<c.a.length;g++){var h=c.index(g),l=!1;if(e.contains(h.getName())){var m=b.index(h.getName()),n=null!=m.unique&&null!=h.unique&&m.unique!=h.unique,o=null!=m.multiEntry&&null!=h.multiEntry&&m.multiEntry!=h.multiEntry,m=null!=m.keyPath&&null!=h.keyPath&&!!Ka(m.keyPath,h.keyPath);(n||o||m)&&(b.deleteIndex(h.getName()),l=!0,i--,k++)}else"BLOB"!=h.type&&(l=!0);l&&(h.unique||h.multiEntry?(l={unique:h.unique,multiEntry:h.multiEntry},b.createIndex(h.getName(),h.keyPath,l)):b.createIndex(h.getName(),h.keyPath),i++)}for(g=0;g<e.length;g++)Sa(c,e[g])||(b.deleteIndex(e[g]),j++)}else for(b=d(),g=0;g<c.a.length;g++)h=c.index(g),"BLOB"!=h.type&&(h.unique||h.multiEntry?(l={unique:h.unique,multiEntry:h.multiEntry},b.createIndex(h.getName(),h.keyPath,l)):b.createIndex(h.getName(),h.keyPath))}function Yb(b,c){this.a=a(b)?b:4194304,this.b=c||"websql"}function Zb(a){var b=a.n,c="CREATE TABLE IF NOT EXISTS "+Ta(a)+" (",d=a.c,c=c+(d+" "+b+" PRIMARY KEY ");a.b&&(c+=" AUTOINCREMENT "),a.G&&(a.keyPath||0!=a.a.length)||(c+=" ,_default_ BLOB");for(var e=[],f=[d],g=0,h=a.a.length;h>g;g++){var i=a.index(g),j="";if(i.multiEntry)j=i.unique?" UNIQUE ":"",i="CREATE TABLE IF NOT EXISTS "+s("ydn.db.me:"+a.getName()+":"+i.getName())+" ("+d+" "+b+", "+i.c+" "+i.g+j+")",e.push(i);else{i.unique&&(j=" UNIQUE ");var k=i.c;-1==f.indexOf(k)&&(c+=", "+k+" "+i.g+j,f.push(k))}}return e.unshift(c+")"),e}function $b(a,b,c,d){function e(b){a.executeSql(b,[],function(){f++,f==g.length&&(c(!0),c=null)},function(a,b){throw f++,f==g.length&&(c(!1),c=null),new zb(b,'"')})}var f=0,g=Zb(b);if(d){if(0==Za(b,d).length)return c(!0),c=null,void 0;g.unshift("DROP TABLE IF EXISTS "+s(b.getName()))}for(b=0;b<g.length;b++)e(g[b])}function _b(a,b){this.a=b}function ac(a,b){this.a=b}function bc(b,c){if(c.G&&!c.keyPath&&0==c.a.length&&b._default_){var d=b._default_;if(-1==d.indexOf(";base64,"))return ab(d);'"'==d.charAt(0)&&'"'==d.charAt(d.length-1)&&(d=d.substr(1,d.length-2));for(var e=d.split(";base64,"),d=e[0].split(":")[1],e=window.atob(e[1]),f=e.length,g=new Uint8Array(f),h=0;f>h;++h)g[h]=e.charCodeAt(h);return new Blob([g.buffer],{type:d})}for(d=b._default_?ab(b._default_):{},null!=c.keyPath&&(e=Ia(b[c.keyPath],c.type),null!=e&&Xa(c,d,e)),e=0;e<c.a.length;e++)if(f=c.index(e),g=f.d,"_default_"!=g&&!f.f&&!f.multiEntry&&("DATE"==f.type||c.G)&&(h=Ia(b[g],f.type),a(h)))for(var g=d,j=0;j<f.b.length;j++)j==f.b.length-1?g[f.b[j]]=h:i(g[f.b[j]])||(g[f.b[j]]={});return d}function cc(b,c,d,e,f){function g(a){a="DELETE FROM  "+s("ydn.db.me:"+i.getName()+":"+a.getName())+k,h.executeSql(a,j)}var h=c.a,i=ib(b.a,d);b="DELETE FROM "+Ta(i),d=[];var j=[],k="";for(null!=f&&(a(e)?(e=Ra(i,e),Fa(e.c,e.type,f,j,d)):Fa(i.c,i.type,f,j,d),k=" WHERE "+j.join(" AND ")),h.executeSql(b+k,d,function(a,b){pa(c,b.rowsAffected)},function(a,b){return pa(c,b,!0),!1}),f=0,e=i.a.length;e>f;f++)b=i.index(f),b.multiEntry&&g(b)}function dc(a,b,c){Vb.call(this,a,b,c)}var ec,fc=this,gc=Date.now||function(){return+new Date};n(q,Error),q.prototype.name="CustomError";var hc={"\x00":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","	":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\"},ic={"'":"\\'"},jc=Array.prototype,kc=jc.indexOf?function(a,b,c){return jc.indexOf.call(a,b,c)}:function(a,b,c){if(c=null==c?0:0>c?Math.max(0,a.length+c):c,e(a))return e(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},lc=jc.map?function(a,b,c){return jc.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=Array(d),g=e(a)?a.split(""):a,h=0;d>h;h++)h in g&&(f[h]=b.call(c,g[h],h,a));return f},mc=jc.some?function(a,b,c){return jc.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,f=e(a)?a.split(""):a,g=0;d>g;g++)if(g in f&&b.call(c,f[g],g,a))return!0;return!1},nc;a:{var oc=fc.navigator;if(oc){var pc=oc.userAgent;if(pc){nc=pc;break a}}nc=""}var qc,rc,sc=!1,tc=[],uc=0,vc=2,wc=3;F.prototype.then=function(a,b,c){return J(this,h(a)?a:null,h(b)?b:null,c)},o(F),F.prototype.g=function(a){this.b=uc,K(this,vc,a)},F.prototype.i=function(a){this.b=uc,K(this,wc,a)},F.prototype.l=function(){for(;this.a&&this.a.length;){var a=this.a;this.a=[];for(var b=0;b<a.length;b++)N(this,a[b],this.b,this.f)}this.e=!1};var xc=z;n(P,q),P.prototype.name="cancel",ec=Q.prototype,ec.Q=function(a,b){this.l=!1,R(this,a,b)},ec.callback=function(a){S(this),R(this,!0,a)},ec.h=function(a){S(this),R(this,!1,a)},ec.t=function(a,b){return T(this,a,null,b)},ec.ma=function(a,b){return T(this,null,a,b)},ec.la=function(a,b){return T(this,a,a,b)},ec.then=function(a,b,c){var d,e,f=new F(function(a,b){d=a,e=b});return T(this,d,function(a){e(a)}),f.then(a,b,c)},o(Q),Q.prototype.ea=function(){this.f&&this.c&&U(this)&&(X(this.f),this.f=0),this.g&&(this.g.N--,delete this.g);for(var b=this.d,c=!1,d=!1;this.i.length&&!this.l;){var e=this.i.shift(),f=e[0],g=e[1],e=e[2];if(f=this.b?g:f)try{var h=f.call(e||this.ta,b);a(h)&&(this.b=this.b&&(h==b||h instanceof Error),this.d=b=h),p(b)&&(this.l=d=!0)}catch(i){b=i,this.b=!0,U(this)||(c=!0)}}this.d=b,d&&(d=l(this.Q,this,!0),h=l(this.Q,this,!1),b instanceof Q?(T(b,d,h),b.B=!0):b.then(d,h)),c&&(b=new W(b),yc[b.S]=b,this.f=b.S)},n(V,q),V.prototype.message="Deferred has already fired",V.prototype.name="AlreadyCalledError",W.prototype.b=function(){throw delete yc[this.S],this.a};var yc={};n(Y,q),n(Z,q),n($,q),n(_,q),n(aa,Error),aa.prototype.name="ydn.error.InternalError";var zc=-1!=nc.indexOf("Opera")||-1!=nc.indexOf("OPR"),Ac=-1!=nc.indexOf("Trident")||-1!=nc.indexOf("MSIE"),Bc=-1!=nc.indexOf("Gecko")&&-1==nc.toLowerCase().indexOf("webkit")&&!(-1!=nc.indexOf("Trident")||-1!=nc.indexOf("MSIE")),Cc=-1!=nc.toLowerCase().indexOf("webkit");!function(){var a="",b;return zc&&fc.opera?(a=fc.opera.version,h(a)?a():a):(Bc?b=/rv\:([^\);]+)(\)|;)/:Ac?b=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:Cc&&(b=/WebKit\/(\S+)/),b&&(a=(a=b.exec(nc))?a[1]:""),Ac&&(b=(b=fc.document)?b.documentMode:void 0,b>parseFloat(a))?String(b):a)}(),n(ca,Q),ca.prototype.Ta=function(a,b){return this.e.push([a,b]),this},ca.prototype.callback=function(a){this.e.length=0,ca.u.callback.call(this,a)},ca.prototype.h=function(a){this.e.length=0,ca.u.h.call(this,a)},ca.prototype.Va=function(){return this},Q.prototype.done=Q.prototype.t,Q.prototype.fail=Q.prototype.ma,Q.prototype.always=Q.prototype.la,ca.prototype.then=ca.prototype.then;var Dc={};ka.prototype.write=function(a){for(var b=0;b<arguments.length;b++)this.b=arguments[b].toString(16),this.a.push(2===this.b.length?this.b:this.b="0"+this.b)},ka.prototype.toString=function(){return this.a.length?this.a.join(""):""};var Ec={READ_ONLY:"readonly",READ_WRITE:"readwrite",VERSION_CHANGE:"versionchange"},Fc=Ec.READ_ONLY,Gc=Ec.READ_WRITE,Hc=Ec.VERSION_CHANGE,Ic=fc.indexedDB||fc.mozIndexedDB||fc.webkitIndexedDB||fc.moz_indexedDB||fc.msIndexedDB;n(ma,ca),ec=ma.prototype,ec.J="",ec.logger=null,ec.Ma=function(){return!!this.a},ec.abort=function(){if(!this.a)throw new xb("");if(h(this.a.abort))this.a.abort();else{if(!h(this.a.executeSql))throw new Z;this.a.executeSql("ABORT",[],function(){},function(){return!0})}},ec.callback=function(a){ma.u.callback.call(this,a)},ec.h=function(a){ma.u.h.call(this,a)},ec.toString=function(){return"Request:"+sa(this)},ec.ea=function(){this.f&&this.c&&U(this)&&(X(this.f),this.f=0),this.g&&(this.g.N--,delete this.g);for(var b=this.d,c=!1;this.i.length&&!this.l;){var d=this.i.shift(),e=d[0],f=d[1],d=d[2];(e=this.b?f:e)&&(e=e.call(d||this.ta,b),a(e)&&(this.b=this.b&&(e==b||e instanceof Error),this.d=b=e),p(b)&&(this.l=c=!0))}this.d=b,c&&(c=l(this.Q,this,!0),e=l(this.Q,this,!1),b instanceof Q?(T(b,c,e),b.B=!0):b.then(c,e))},ec.toJSON=function(){var a=(this.J||"").match(/B(\d+)T(\d+)(?:Q(\d+?))?(?:R(\d+))?/)||[];return{method:this.r?this.r.split(":"):[],branchNo:parseFloat(a[1]),transactionNo:parseFloat(a[2]),queueNo:parseFloat(a[3]),requestNo:parseFloat(a[4])}};var Jc=Ic&&Ic.cmp?l(Ic.cmp,Ic):la,Kc=[];ua.prototype.preventDefault=function(){},n(va,ua),va.prototype.a=function(){return this.b},n(wa,va),ec=wa.prototype,ec.name="ReadyEvent",ec.version=NaN,ec.Ja=NaN,ec.ua=null,ec.cb=function(){return this.version},ec.Qa=function(){return this.Ja},ec.Pa=function(){return this.ua},n(xa,va),xa.prototype.toString=function(){return this.name+":"+(this.error?this.error:"")},xa.prototype.name="ErrorEvent",xa.prototype.error=null,xa.prototype.c=function(){return this.error},n(ya,xa),ya.prototype.name="FailEvent",ec=za.prototype,ec.toJSON=function(){var a={store:this.b,id:this.a};return this.c&&(a.parent=this.c.toJSON()),a},ec.valueOf=function(){return(this.c?this.c.valueOf()+"^|":"")+this.b+"^:"+this.a},ec.toString=function(){return this.valueOf().replace("^|","|").replace("^:",":")},ec.ab=function(){return this.b},ec.Oa=function(){return this.a},ec.$a=function(){return this.c},Ca.prototype.lower=void 0,Ca.prototype.upper=void 0,Ca.prototype.toJSON=function(){var a;return a=this||{},{lower:a.lower,upper:a.upper,lowerOpen:a.lowerOpen,upperOpen:a.upperOpen}},Ca.only=function(a){return new Ca(a,a,!1,!1)},Ca.bound=function(a,b,c,d){return new Ca(a,b,c,d)},Ca.upperBound=function(a,b){return new Ca(void 0,a,void 0,!!b)},Ca.lowerBound=function(a,b){return new Ca(a,void 0,!!b,void 0)};var Lc=fc.IDBKeyRange||fc.webkitIDBKeyRange||Ca,Mc="TEXT",Nc=["BLOB","DATE","INTEGER","NUMERIC",Mc];Ga.prototype.getName=function(){return this.a},Ga.prototype.toJSON=function(){return{name:this.a,keyPath:this.keyPath,type:this.type,unique:this.unique,multiEntry:this.multiEntry}},Ga.prototype.clone=function(){var a=c(this.keyPath)?v(this.keyPath):this.keyPath;return new Ga(a,this.type,this.unique,this.multiEntry,this.a,this.e)},Ga.prototype.hint=function(b){if(!b)return this;var d=c(this.keyPath)?v(this.keyPath):this.keyPath,e=this.type;return a(b.type)||"TEXT"!=e||(e=void 0),new Ga(d,e,this.unique,this.multiEntry,b.a)},ec=La.prototype,ec.w=!1,ec.G=!1,ec.toJSON=function(){for(var a=[],b=0;b<this.a.length;b++)a.push(this.a[b].toJSON());return{name:this.d,keyPath:this.keyPath,autoIncrement:this.b,type:this.type,indexes:a}},ec.clone=function(){return Ma(this.toJSON())},ec.index=function(a){return this.a[a]||null},ec.getName=function(){return this.d},eb.prototype.getName=function(){return this.name},eb.prototype.count=function(){return this.a.length},eb.prototype.index=function(a){return this.a[a]},ec=gb.prototype,ec.toJSON=function(){var b=lc(this.a,function(a){return a.toJSON()}),c={};return c.stores=b,a(this.version)&&(c.version=this.version),c},ec.U=!1,ec.q=function(){return!1},ec.I=function(a){return this.a[a]||null},ec.count=function(){return this.a.length},n(lb,gb),lb.prototype.q=function(){return!0},n(nb,Error),nb.prototype.name="ydn.InternalError",n(ob,Error),ob.prototype.name="ydn.error.ConstraintError",qb.prototype.logger=null,qb.prototype.B=function(b){if(a(b)){var c=function(a){b(a.toJSON()),b=void 0};if(this.a)this.a.v(c);else{var d=this;this.transaction(function(a){d.a.v(c,a)},null,Fc)}}return this.b?this.b.toJSON():null},qb.prototype.i=function(a){if(this.a)throw new _("Already connected with "+this.f);this.f=a,sb(this)},qb.prototype.getName=function(){return this.f};var Oc="indexeddb sqlite websql localstorage sessionstorage userdata memory".split(" ");ec=qb.prototype,ec.ca=function(){return null},ec.ka=function(){return this.a?this.a.Ha():void 0},ec.Y=function(a,b){this.d.la(a,b)},ec.close=function(){this.a&&(this.a.close(),this.a=null)},ec.bb=function(){return this.a?this.a.Ga():null},ec.qa=NaN,ec.T=!1,ec.transaction=function(b,c,d,f){var g=c;if(e(c)?g=[c]:null!=c||(g=null),this.a&&this.a.ja()&&!this.T){var i=this,j=a(d)?d:Fc;j==Hc&&(this.T=!0),this.a.da(function(a){b(a),b=null},g,j,function(a,b){h(f)&&(f(a,b),f=void 0),j==Hc&&(i.T=!1),vb(i)})}else this.e.push({R:b,Wa:g,mode:d,o:f})},qb.prototype.close=qb.prototype.close,qb.prototype.getType=qb.prototype.ka,qb.prototype.getName=qb.prototype.getName,qb.prototype.getSchema=qb.prototype.B,qb.prototype.onReady=qb.prototype.Y,qb.prototype.setName=qb.prototype.i,qb.prototype.transaction=qb.prototype.transaction,qb.prototype.db=qb.prototype.bb,m("ydn.db.version","1.1.2"),m("ydn.db.cmp",Jc),m("ydn.db.deleteDatabase",function(a,b){for(var c,d=0;d<Kc.length;d++){var e=Kc[d](a,b);e&&(c=e)}return c||ta("vc",null)}),wa.prototype.name=wa.prototype.name,wa.prototype.getVersion=wa.prototype.cb,wa.prototype.getOldVersion=wa.prototype.Qa,wa.prototype.getOldSchema=wa.prototype.Pa,xa.prototype.getError=xa.prototype.c,ma.prototype.abort=ma.prototype.abort,ma.prototype.canAbort=ma.prototype.Ma,ca.prototype.progress=ca.prototype.Ta,ca.prototype.promise=ca.prototype.Va,n(wb,Error),wb.prototype.name="ConstraintError",n(xb,Error),n(yb,Error),yb.prototype.name="NotFoundError",n(zb,Error),n(Ab,Error),n(Bb,Error),Cb.prototype.logger=null,Db.prototype.logger=null,Db.prototype.p=null,Db.prototype.o=null,Fb.prototype.logger=null,Fb.prototype.type=function(){return this.i.ka()},Fb.prototype.s=function(){return"B"+this.W+"T"+this.d};var Pc="single";n(Hb,Fb),ec=Hb.prototype,ec.logger=null,ec.abort=function(){Gb(this.g)},ec.D=function(b,c,d,f){var g=e(c)?[c]:c,i=a(d)?d:Fc,j=this;if(this.b.a||!ub(this.i)&&this.r)this.c.push({R:b,p:c,mode:i,o:f});else{if(f&&this.e.push(f),this.n&&this.d>=this.n)throw new _("Exceed maximum number of transactions of "+this.n);this.r=!0,this.i.transaction(function(a){var d=j.b;for(d.a=a,d.c=!1,d.p=c,d.mode=i,d.b++,d.o=null,cb(c),b(j),b=null;Jb(j);)a=j.c.shift(),a.o&&j.e.push(a.o),a.R()},g,i,function(a,b){var c=j.b;for(c.a&&(c.a=null,c.p=null,c.mode=null,h(c.o)&&c.o(a,b),c.o=null),c=0;c<j.e.length;c++)(0,j.e[c])(a,b);j.e.length=0,(c=j.c.shift())&&j.D(c.R,c.p,c.mode,c.o),j.a=0})}},ec.s=function(){var a=this.b;return"B"+a.d+"T"+a.b},ec.request=function(a,b,c,d){function e(a,b){f.a=null,d&&d(a,b)}var f=new ma(a);a=c||Fc;var g=this;return Eb(this.b)&&Ib(this,b,a)?(b=this.b.a,this.a++,na(f,b,this.s()+"R"+this.a),this.e.push(e)):g.D(function(){var a=g.b.a;g.a++,na(f,a,g.s()+"R"+g.a)},b,a,e),f},ec.K=function(a,b,c,d,e){d=d||Fc;var f=this,g;if(Eb(f.b)&&Ib(this,c,d)){var h=f.b.a;f.a++,g=f.s()+"R"+f.a,b(h,g,function(b,c){f.g=h,c?a.h(b):a.callback(b),f.g=null}),b=null}else f.D(function(){var c=f.b.a;f.a++,g=f.s()+"R"+f.a,b(c,g,function(b,d){f.g=c,d?a.h(b):a.callback(b),f.g=null}),b=null},c,d,e)},ec.getName=function(){return this.i.getName()},n(Kb,Hb),Kb.prototype.logger=null,Kb.prototype.request=function(a,b,c){var d,e,f,g=Kb.u.request.call(this,a,b,c,function(a,b){if(g.a=null,d)"complete"!=a&&(f=!0,e=b),d(e,f);else{var c=new Bb;pa(g,c,!0)}});return qa(g,function(a,b,c){f=b,e=a,d=c}),g},Kb.prototype.K=function(a,b,c,d,e){var f,g,h=new Q;T(h,function(a){g=!1,f=a},function(a){g=!0,f=a}),Kb.u.K.call(this,h,b,c,d,function(b,c){if("complete"!=b)a.h(c);else if(!0===g)a.h(f);else if(!1===g)a.callback(f);else{var d=new Bb;a.h(d)}e&&(e(b,c),e=void 0)})},Lb.prototype.logger=null,Lb.prototype.e=function(){return this.a.d},Lb.prototype.abort=function(){this.a.abort()},n(Nb,Lb),ec=Nb.prototype,ec.logger=null,ec.count=function(b,d,f,g){var h,j,k,l;if(null!=b)if(c(b)){if(a(f)||a(d))throw new Y("too many arguments.");
j=b;for(var m=0;m<j.length;m++)if(!jb(this.b,j[m]))throw new Y('store name "'+j[m]+'" at '+m+" not found.");ba("countStores: "+cb(j)),h=this.a.request("d",j),ra(h,function(){Mb(this).ba(h,j)},this)}else{if(!e(b))throw new Y("Invalid store name or store names.");if(m=ib(this.b,b),!m)throw new Y('store name "'+b+'" not found.');if(j=[b],e(d))k=d,l=i(f)?Ea(f):null;else{if(!i(d)&&null!=d)throw new Y('invalid second argument for count "'+bb(f)+'" of type '+typeof d);if(i(d))l=Ea(d);else{if(null!=d)throw new Y("key range must be  an object but found "+bb(d)+" of type "+typeof d);l=null}}ba("countKeyRange: "+b+" "+(k?k:"")+cb(l)),h=this.a.request("d",j),_a(m,h,arguments),ra(h,function(){Mb(this).pa(h,j[0],l,k,!!g)},this)}else m=hb(this.b),h=this.a.request("d",m),qa(h,function(a,b,c){if(b)c(a,!0);else{for(var d=b=0;d<a.length;d++)b+=a[d];c(b,!1)}},this),ra(h,function(){Mb(this).ba(h,j)},this);return h},ec.get=function(b,c){var d=this,f;if(b instanceof za){var g=b,h=g.b,i=ib(this.b,h);if(!i){if(this.b.q())return ub(this.c)?ta("e",void 0):(f=new ma("e"),this.c.Y(function(){T(d.get(b,c),function(a){f.callback(a)},function(a){f.h(a)})}),f);throw new Y("Store: "+h+" not found.")}var j=g.a;f=this.a.request("ek",[h]),_a(i,f,arguments,void 0,this),ra(f,function(){Mb(this).fa(f,h,j)},this)}else{if(!e(b)||!a(c))throw new Y("get require valid input arguments.");var k=b,i=ib(this.b,k);if(!i){if(this.b.q())return ub(this.c)?ta("e",void 0):(f=new ma("e"),this.c.Y(function(){T(d.get(b,c),function(a){f.callback(a)},function(a){f.h(a)})}),f);throw new Y('Store name "'+k+'" not found.')}var l=c;f=this.a.request("e",[k]),_a(i,f,arguments,void 0,this),ra(f,function(){Mb(this).fa(f,k,l)},this)}return f},ec.Sa=function(b,c,d,e,h){var j=ib(this.b,b),k,l,m,n=null;if(i(c)&&(n=Ea(c)),a(d)){if(!g(d))throw new Y("limit must be a number, but "+d+" is "+typeof d);k=d}else k=100;if(a(e)){if(!g(e))throw new Y("offset must be a number, but "+e+" is "+typeof e);l=e}else l=0;if(a(h)){if(!f(h))throw new Y("reverse must be a boolean, but "+h+" is "+typeof h);m=h}var o=this.a.request("g",[b]);return _a(j,o,arguments),ra(o,function(){Mb(this).P(o,2,b,null,n,k,l,m,!1)},this),o},ec.Ra=function(b,c,d,e,h,i,j){var k,l,m,n,o,p=ib(this.b,b);if(k=Ea(d),g(e))l=e;else{if(a(e))throw new Y("limit must be a number");l=100}if(g(h))m=h;else{if(a(h))throw new Y("offset must be a number");m=0}if(a(i)){if(!f(i))throw new Y("reverse must be a boolean");n=i}if(a(j)){if(!f(j))throw new Y("unique must be a boolean");o=j}var q=this.a.request("i",[b]);return _a(p,q,arguments),ra(q,function(){Mb(this).P(q,2,b,c,k,l,m,n,o)},this),q},ec.Z=function(a,b,c,d,f,g,h){var i=ib(this.b,a);return this.b.q()&&!i?ta("g",[]):e(b)?this.Ra(a,b,c,d,f,g,h):this.Sa(a,b,c,d,f)},ec.F=function(a,b,d,f,g,h,i){var j=this,k;if(e(a)){var l=a,m=ib(this.b,l);if(!m){if(this.b.q())return ub(this.c)?ta("s",[]):(k=new ma("s"),this.c.Y(function(){T(j.F(a,b,d,f,g,h),function(a){k.callback(a)},function(a){k.h(a)})}),k);throw new yb(l)}if(c(b)){var n=b;k=this.a.request("v",[l]),_a(m,k,arguments,void 0,this),ra(k,function(){Mb(this).ra(k,l,n)},this)}else k=e(b)?this.Ya(l,b,d,f,g,h,i):this.Za(l,b,d,f,g)}else{if(!c(a))throw new Y("first argument "+a+" is invalid.");if(!(a[0]instanceof za))throw new Y("first argumentmust be array of ydn.db.Key, but "+a[0]+" of "+typeof a[0]+" found.");for(var m=[],o=a,p=0;p<o.length;p++){var q=o[p].b;if(!jb(this.b,q)){if(this.b.q())return m=[],m[o.length-1]=void 0,ta("e",m);throw new Y("Store: "+q+" not found.")}0<=kc(m,q)||m.push(q)}ba("listByKeys: "+cb(m)+" "+o.length+" keys"),k=this.a.request("w",m),ra(k,function(){Mb(this).sa(k,o)},this)}return k},ec.Za=function(b,c,d,e,h){var j=ib(this.b,b),k,l,m,n=null;if(i(c)&&(n=Ea(c)),a(d)){if(!g(d))throw new Y("limit must be a number, but "+d+" is "+typeof d);k=d}else k=100;if(a(e)){if(!g(e))throw new Y("offset must be a number, but "+e+" is "+typeof e);l=e}else l=0;if(a(h)){if(!f(h))throw new Y("reverse must be a boolean, but "+h+" is "+typeof h);m=h}var o=this.a.request("s",[b]);return _a(j,o,arguments),ra(o,function(){Mb(this).P(o,4,b,null,n,k,l,m,!1)},this),o},ec.Ya=function(b,c,d,e,h,i,j){var k=ib(this.b,b),l,m,n,o,p=Ea(d);if(a(e)){if(!g(e))throw new Y("limit must be a number.");l=e}else l=100;if(a(h)){if(!g(h))throw new Y("offset must be a number.");m=h}else m=0;if(f(i))n=i;else if(a(i))throw new Y("reverse must be a boolean, but "+i);if(a(j)){if(!f(j))throw new Y("unique must be a boolean");o=j}var q=this.a.request("u",[b]);return _a(k,q,arguments),ra(q,function(){Mb(this).P(q,4,b,c,p,l,m,n,o)},this),q},ec.add=function(b,d,f){var g=e(b)?b:i(b)?b.name:void 0;if(!e(g))throw new Y("store name "+g+" must be a string, but "+typeof g);var h=ib(this.b,g);if(h){if(this.b.q()&&i(b)&&(b=Ma(b),b=Za(h,b)))throw new Z(b)}else{if(!this.b.q())throw new Y('store name "'+g+'" not found.');h=Ma(i(b)?b:{name:g}),rb(this.c,h)}var j;if(!h)throw new Y('store name "'+g+'" not found.');if(e(h.keyPath)&&a(f))throw new Y("key must not be provided while the store uses in-line key.");if(!h.keyPath&&!h.b&&!a(f))throw new Y("out-of-line key must be provided.");if(c(d)){for(b=0;b<d.length;b++)$a(h,d[b]);j=this.a.request("b",[g],Gc),ra(j,function(){Mb(this).A(j,!1,!1,g,d,f)},this),h.w&&j.t(function(){},this)}else{if(!i(d))throw new Y("record must be an object or array list of objects, but "+d+" of type "+typeof d+" found.");Wa(h,d,f),$a(h,d),j=this.a.request("a",[g],Gc),ra(j,function(){Mb(this).A(j,!1,!0,g,[d],[f])},this),h.w&&j.t(function(){},this)}return j},ec.load=function(a,b,c){var d=c||",",e=Ob(this,a).getName();a=this.a.request("i3",[e]);var f=this;return this.a.K(a,function(a,c,g){Mb(f).Ba(a,c,g,e,b,d)},[e],Gc),a},ec.put=function(b,d,f){var g,h=this;if(b instanceof za){var j=b,k=j.b,l=ib(this.b,k);if(!l)throw new Y('store "'+k+'" not found.');if(l.keyPath){var m=Wa(l,d);if(null!=m){if(0!=Jc(m,j.a))throw new Y("Inline key must be "+j+" but "+m+" found.")}else Xa(l,d,j.a);return this.put(k,d)}return this.put(k,d,j.a)}if(c(b)){for(var n=b,o=d,j=[],k=0,l=n.length;l>k;k++){m=n[k].b,-1==kc(j,m)&&j.push(m);var p=ib(this.b,m);if(!p)throw new Y('store "'+m+'" not found.');p.keyPath&&Xa(p,o[k],n[k].a)}for(ba("putByKeys: to "+cb(j)+" "+o.length+" objects"),k=0;k<o.length;k++)$a(p,o[k]);g=this.a.request("l",j,Gc),_a(p,g,arguments),ra(g,function(){Mb(h).Aa(g,o,n)},this)}else{if(!e(b)&&!i(b))throw new Y("the first argument of put must be store name, store schema or array of keys.");var p=Ob(this,b),q=p.getName();if(p.keyPath&&a(f))throw new Y("key must not be provided while the store uses in-line key.");if(!p.keyPath&&!p.b&&!a(f))throw new Y("out-of-line key must be provided.");if(c(d)){for(var r=d,s=f,k=0;k<r.length;k++)$a(p,r[k]);g=this.a.request("k",[q],Gc),_a(p,g,arguments),ra(g,function(){Mb(this).A(g,!0,!1,q,r,s)},this),p.w&&g.t(function(){},this)}else{if(!i(d))throw new Y("put record value must be Object or array of Objects");var t=d,u=f;if(a(fc.Blob)&&t instanceof Blob&&p.G&&!p.keyPath&&0==p.a.length&&Cc)g=new ma("j"),j=new FileReader,j.onload=function(a){var b=a.target.result,c=h.a.request("j",[q],Gc);_a(p,c,[q,t,u]),ra(c,function(){Mb(h).A(c,!0,!0,q,[b],[u])},this),T(c,function(a){g.callback(a)},function(a){g.h(a)})},j.onerror=function(a){g.h(a)},j.onabort=function(a){g.h(a)},j.readAsDataURL(t);else{$a(p,t),g=this.a.request("j",[q],Gc);var v=[q,t,u];_a(p,g,v),ra(g,function(){var b=a(u)?[v[2]]:void 0;Mb(h).A(g,!0,!0,q,[v[1]],b)},this)}p.w&&g.t(function(){},this)}}return g},ec.clear=function(b,d){var f;if(e(b)){var g=ib(this.b,b);if(!g)throw new Y('store name "'+b+'" not found.');if(i(d)){var h=Ea(d);if(null===h)throw new Y("clear method requires a valid non-null KeyRange object.");ba("clearByKeyRange: "+b+":"+cb(h)),f=this.a.request("c",[b],Gc),_a(g,f,[b,h]),ra(f,function(){Mb(this).oa(f,b,h)},this)}else{if(a(d))throw new Y("clear method requires a valid KeyRange object as second argument, but found "+d+" of type "+typeof d);f=this.a.request("c",[b],Gc),ra(f,function(){Mb(this).aa(f,[b])},this)}}else{if(!(!a(b)||c(b)&&e(b[0])))throw new Y('first argument "'+b+'" is invalid.');var j=b||hb(this.b);ba("clearByStores: "+cb(j)),f=this.a.request("c",j,Gc),ra(f,function(){Mb(this).aa(f,j)},this)}return f},ec.$=function(f,h,j){var k;if(e(f)){var l=ib(this.b,f);if(!l)throw new Y('store name "'+f+'" not found.');if(a(j)){if(!e(h))throw new Y('index name "'+h+'" must be a string, but '+typeof h+" found.");var m=Ra(l,h);if(!m)throw new Y("index: "+h+" not found in "+f);if(!i(j)&&null!==j)throw new Y("key range "+j+' is invalid type "'+typeof j+'".');var n=Ea(j);k=this.a.request("p",[f],Gc),ra(k,function(){Mb(this).Da(k,f,m.getName(),n)},this)}else if(e(h)||g(h)||d(h)||h instanceof Date){k=this.a.request("m",[f],Gc);var o=[f,h];_a(l,k,o),ra(k,function(){Mb(this).ha(k,f,o[1])},this),l.w&&k.t(function(){},this)}else{if(!i(h))throw new Y('Invalid key or key range "'+h+'" of type '+typeof h);n=Ea(h),ba("removeByKeyRange: "+f+":"+cb(n)),k=this.a.request("n",[f],Gc),_a(l,k,[f,n]),ra(k,function(){Mb(this).Ea(k,f,n)},this),l.w&&k.t(function(){},this)}}else if(f instanceof za){var p=f.b,l=ib(this.b,p);k=this.a.request("m",[p],Gc);var q=[p,f.a];_a(l,k,q),ra(k,function(){Mb(this).ha(k,p,q[1])},this)}else{if(!c(f))throw new Y('first argument requires store name, key (ydn.db.Key) or list of keys (array) , but "'+bb(f)+'" ('+b(f)+") found.");for(h=[],j=0,l=f.length;l>j;j++){var r=f[j].b;-1==kc(h,r)&&h.push(r)}if(1>h.length)throw new Y('at least one valid key required in key list "'+bb(f)+'"');k=this.a.request("o",h,Gc),ra(k,function(){Mb(this).Fa(k,f)},this)}return k},Pb.prototype.d=null,n(Rb,Fb),ec=Rb.prototype,ec.logger=null,ec.abort=function(){Gb(this.c)},ec.Ka=function(a,b){var c;if("multi"==this.f)a:if(c=this.b,!c.a||!c.b||b!=c.b&&(c.b!=Gc||b!=Fc)||a.length>c.a.length)c=!1;else{for(var d=0;d<a.length;d++)if(-1==c.a.indexOf(a[d])){c=!1;break a}c=!0}else if("repeat"==this.f)a:if(c=this.b,c.a&&c.b&&b==c.b&&c.a.length==a.length){for(d=0;d<a.length;d++)if(-1==c.a.indexOf(a[d])){c=!1;break a}c=!0}else c=!1;else c="all"==this.f;return c},ec.D=function(b,c,d,e){function f(a){i.d++,j=new Pb(a,0,c,h),cb(c),i.b=j,Qb(i.b,b,e)}function g(a,b){if(j){for(var c=j,d=0;d<c.c.length;d++)c.c[d](a,b);c.c.length=0,c.d=null,c.a=null,c.c=null}i.a=0}this.N&&(c=this.N),this.B&&(d=this.B);var h=a(d)?d:Fc,i=this,j;if(this.b&&this.b.d&&this.Ka(c,h))Qb(this.b,b,e);else{if(this.l&&this.d>=this.l)throw new _("Exceed maximum number of transactions of "+this.l);this.i.transaction(f,c,h,g)}},ec.request=function(a,b,c,d){var e=new ma(a),f=this;return this.D(function(a){f.a++,na(e,a,f.s()+"R"+f.a)},b,c||Fc,function(a,b){e.a=null,d&&d(a,b)}),e},ec.K=function(a,b,c,d,e){var f=this,g;this.D(function(c){f.a++,g=f.s()+"R"+f.a,b(c,g,function(b,d){f.c=c,g=f.s()+"R"+f.a,d?a.h(b):a.callback(b),f.c=null}),b=null},c,d,e)},n(Sb,Rb),Sb.prototype.logger=null,Sb.prototype.Ka=function(){return!1},Sb.prototype.request=function(a,b,c){var d,e,f,g=Sb.u.request.call(this,a,b,c,function(a,b){if(g.a=null,d)"complete"!=a&&(f=!0,e=b),d(e,f);else{var c=new Bb;pa(g,c,!0)}});return qa(g,function(a,b,c){f=b,e=a,d=c}),g},Sb.prototype.K=function(a,b,c,d,e){var f,g,h=new Q;T(h,function(a){g=!1,f=a},function(a){g=!0,f=a}),Sb.u.K.call(this,h,b,c,d,function(b,c){if("complete"!=b)a.h(c);else if(!0===g)a.h(f);else if(!1===g)a.callback(f);else{var d=new Bb;a.h(d)}e&&(e(b,c),e=void 0)})},n(Tb,qb),ec=Tb.prototype,ec.H=0,ec.La=function(a,b,c,d,e,f){a=a||Pc;var g;return"readonly"==d?g=Fc:"readwrite"==d&&(g=Gc),a=Ub(this,a,b,c,g,e),this.X(a,f?null:this.g)},ec.X=function(a){return new Lb(this,this.b,a)},ec.Ua=function(a,b,c){this.H++,b=b||hb(this.b);var d=Fc;if(c)if("readwrite"==c)d=Gc;else if("readonly"!=c)throw new Y('Invalid transaction mode "'+c+'"');var e=Ub(this,"all",!1,b,d,1),f=this.X(e,this.g),g=new ma("q");return e.D(function(b){na(g,b,e.s()+"R0"),a(f)},b,d,function(a){g.a=null,pa(g,e.d,"complete"!==a)}),g},ec.eb=function(){return this.c?this.c.a.d:NaN},n(Vb,Tb),ec=Vb.prototype,ec.X=function(a){return new Nb(this,this.b,a)},ec.add=function(a,b,c){return this.c.add(a,b,c)},ec.count=function(a,b,c,d){return this.c.count(a,b,c,d)},ec.get=function(a,b){return this.c.get(a,b)},ec.Z=function(a,b,c,d,e,f,g){return this.c.Z(a,b,c,d,e,f,g)},ec.F=function(a,b,c,d,e,f){return this.c.F(a,b,c,d,e,f)},ec.load=function(a,b,c){return this.c.load(a,b,c)},ec.put=function(a,b,c){return this.c.put(a,b,c)},ec.clear=function(a,b,c){return this.c.clear(a,b,c)},ec.$=function(a,b,c){return this.c.$(a,b,c)};var Qc;Qc=!1;var Rc=nc;Rc&&(-1!=Rc.indexOf("Firefox")||-1!=Rc.indexOf("Camino")||-1!=Rc.indexOf("iPad")||-1!=Rc.indexOf("iPhone")||-1!=Rc.indexOf("iPod")||-1!=Rc.indexOf("Chrome")||-1!=Rc.indexOf("Android")||-1!=Rc.indexOf("Safari")&&(Qc=!0));var Sc=Qc;return ec=Wb.prototype,ec.ia=function(b,c){function d(a,b){for(var d=0;d<c.a.length;d++)Xb(a,b,c.a[d]);for(var e=a.objectStoreNames,f=e.length,d=0;f>d;d++)jb(c,e[d])||a.deleteObjectStore(e[d])}function e(b,c){h.c||(a(c)?(f.j=null,h.h(c)):(f.j=b,f.j.onabort=function(){},f.j.onerror=function(){},f.j.onversionchange=function(a){if(f.j&&(f.j.onabort=null,f.j.onblocked=null,f.j.onerror=null,f.j.onversionchange=null,!a.defaultPrevented)){f.j.close(),f.j=null;var b=Error();b.name=a.type,f.ga(b)}},h.callback(parseFloat(i))))}var f=this,h=new Q,i=void 0,j=c.version,k;return k=a(j)?Ic.open(b,j):Ic.open(b),k.onsuccess=function(h){var j=h.target.result;if(a(i)||(i=j.version),c.U)f.v(function(a){if(c instanceof lb)for(var f=0;f<a.a.length;f++)jb(c,a.a[f].getName())||mb(c,a.a[f].clone());if(0<kb(c,a,!1,!0).length)if(a=g(j.version)?j.version+1:1,"IDBOpenDBRequest"in fc){j.close();var h=Ic.open(b,a);h.onupgradeneeded=function(a){d(a.target.result,h.transaction)},h.onsuccess=function(a){e(a.target.result)},h.onerror=function(){e(null)}}else{var i=j.setVersion(a+"");i.a=function(a){e(null,a)},i.onsuccess=function(){i.transaction.oncomplete=k,d(j,i.transaction)};var k=function(){var a=Ic.open(b);a.onsuccess=function(a){e(a.target.result)},a.onerror=function(){e(null)}};null!=i.transaction&&(i.transaction.oncomplete=k)}else e(j)},void 0,j);else if(c.version>j.version){var k=j.setVersion(c.version);k.a=function(a){e(null,a)},k.onsuccess=function(){d(j,k.transaction)}}else f.v(function(a){a=kb(c,a,!1,!0),0<a.length?e(null,new ob("different schema: "+a)):e(j)},void 0,j)},k.onupgradeneeded=function(a){a=a.target.result,i=NaN,d(a,k.transaction)},k.onerror=function(a){e(null,a)},k.onblocked=function(a){e(null,a)},g(this.O)&&!isNaN(this.O)&&setTimeout(function(){"done"!=k.readyState&&e(null,new Bb("connection timeout after "+f.O))},this.O),h},ec.O=18e4,ec.ga=function(){},ec.va=function(){},ec.ya=function(){},ec.Ha=function(){return"indexeddb"},ec.Ga=function(){return this.j||null},ec.ja=function(){return!!this.j},ec.logger=null,ec.j=null,ec.Ia=function(){return this.j?parseFloat(this.j.version):void 0},ec.v=function(b,c,d){if(d=d||this.j,a(c)){if(null===c){if(0==d.objectStoreNames.length)return b(new gb(d.version)),void 0;throw new nb}d=c.db}else{c=[];for(var e=d.objectStoreNames.length-1;e>=0;e--)c[e]=d.objectStoreNames[e];if(0==c.length)return b(new gb(d.version)),void 0;c=d.transaction(c,Fc)}for(var f=d.objectStoreNames,g=[],h=f.length,e=0;h>e;e++){for(var i=c.objectStore(f[e]),j=[],k=0,l=i.indexNames.length;l>k;k++){var m=i.index(i.indexNames[k]);j[k]=new Ga(m.keyPath,void 0,m.unique,m.multiEntry,m.name)}g[e]=new La(i.name,i.keyPath,i.autoIncrement,void 0,j)}c=new gb(d.version,g),b(c)},ec.da=function(a,b,c,d){var e=this.j;if(!b){b=[];for(var f=e.objectStoreNames.length-1;f>=0;f--)b[f]=e.objectStoreNames[f]}0==b.length?a(null):(b=e.transaction(b,c),b.oncomplete=function(a){d("complete",a)},b.onabort=function(a){d("abort",a)},a(b),a=null)},ec.close=function(){this.j.close()},Kc.push(function(a,b){if(!Ic||b&&"indexeddb"!=b)return null;var c=Ic.deleteDatabase(a),d=new ma("vc");return c.onblocked=function(a){for(var b=0;b<d.e.length;b++)d.e[b][0].call(d.e[b][1],a)},c.onerror=function(a){d.h(a)},c.onsuccess=function(a){d.callback(a)},d}),ec=Yb.prototype,ec.ia=function(b,c){function d(a,b){var c=a.version?parseInt(a.version,10):0,d=!1,g=0;a.changeVersion(a.version,(b.U?isNaN(c)?1:c+1:b.version)+"",function(c){f.v(function(a){d=!0;for(var e=0;e<b.count();e++){var f=ib(a,b.I(e).getName()),f=f?Ua(f,b.I(e)):null;$b(c,b.I(e),function(a){a&&g++},f)}for(e=0;e<a.count();e++)f=a.I(e),jb(b,f.getName())||(b instanceof lb?mb(b,f):(f="DROP TABLE "+Ta(f),c.executeSql(f,[],function(){},function(a,b){throw b})))},c,a)},function(a){throw a},function(){d&&e(a)})}function e(b,c){a(c)?(f.m=null,h.h(c)):(f.m=b,h.callback(parseFloat(g)))}var f=this,g=NaN,h=new Q,i=null;try{"sqlite"==this.b?fc.sqlitePlugin?(i=fc.sqlitePlugin.openDatabase(b,"",b,this.a),i.readTransaction||(i.readTransaction=i.transaction),i.changeVersion=function(a,b,c,d,e){i.transaction(c,d,e)}):(i=null,this.V=Error("sqlitePlugin not found.")):i=fc.openDatabase(b,"",b,this.a)}catch(j){if("SECURITY_ERR"!=j.name)throw j;i=null,this.V=new Ab(j)}return i?(g=i.version||"",null!=c.version&&c.version==i.version?e(i):this.v(function(a){kb(c,a,!0,!1)?d(i,c):e(i)},null,i)):e(null,this.V),h},ec.Ha=function(){return this.b},ec.V=null,ec.m=null,ec.Ga=function(){return this.m||null},ec.logger=null,ec.ga=function(){},ec.va=function(){},ec.Ia=function(){return this.m?parseFloat(this.m.version):void 0},ec.v=function(a,b,c){function d(a,b){throw b}function f(b,c){if(c&&c.rows){for(var d=0;d<c.rows.length;d++){var f=c.rows.item(d);if("__WebKitDatabaseInfoTable__"!=f.name&&"sqlite_sequence"!=f.name&&"table"==f.type){for(var g=("sql"in f?f.sql:void 0),j=g.substr(g.indexOf("("),g.lastIndexOf(")")).match(/(?:"[^"]*"|[^,])+/g),k=void 0,l,g=[],m=!1,n=!1,o=0;o<j.length;o++){var p=j[o].match(/\w+|"[^"]+"/g),q=lc(p,function(a){return a.toUpperCase()}),s=r(p[0]),p=Ja(q[1]);if(-1!=q.indexOf("PRIMARY")&&-1!=q.indexOf("KEY")){if(l=p,e(s)&&!/^[\s\xa0]*$/.test(s)&&"_ROWID_"!=s){var t=s.split(","),k=s;1<t.length&&(k=t,l=void 0)}-1!=q.indexOf("AUTOINCREMENT")&&(m=!0)}else if("_ROWID_"!=s)if("_default_"==s)n=!0;else{var v="UNIQUE"==q[2];0==s.lastIndexOf(f.tbl_name+"-",0)&&(s=s.substr(f.tbl_name.length+1)),q=new Ga(s,p,v),g.push(q)}}if(0==f.name.lastIndexOf("ydn.db.me:",0)){var w=f.name.split(":");if(3<=w.length){var x=w[1],k=new Ga(w[2],p,v,!0),j=u(g,function(a){return a.getName()==w[2]});j>=0?g[j]=k:g.push(k),j=u(i,function(a){return a.getName()===x}),j>=0?(k=i[j],i[j]=new La(k.getName(),k.keyPath,m,l,g,void 0,!n)):i.push(new La(x,void 0,!1,void 0,[k]))}}else o=u(i,function(a){return a.getName()===f.name}),o>=0?(j=i[o].index(0),g.push(j),i[o]=new La(f.name,k,m,l,g,void 0,!n)):(g=new La(f.name,k,m,l,g,void 0,!n),i.push(g))}}d=new gb(h,i),a(d)}}var g=this,h=(c=c||this.m)&&c.version?parseFloat(c.version):void 0,h=isNaN(h)?void 0:h,i=[];b?b.executeSql("SELECT * FROM sqlite_master",[],f,d):c.readTransaction(function(b){g.v(a,b,c)},function(a){throw a},f)},ec.ja=function(){return!!this.m},ec.close=function(){this.m=null},ec.da=function(a,b,c,d){function e(a){d("abort",a)}function f(){d("complete",{type:"complete"})}function g(b){a(b)}null===this.m&&(a(null),d("abort",this.V)),c==Fc?this.m.readTransaction(g,e,f):c==Hc?this.m.changeVersion(this.m.version,this.m.version+1+"",g,e,f):this.m.transaction(g,e,f)},Kc.push(function(a,b){if(h(fc.openDatabase)&&(!b||"websql"==b)){var c=new Yb,d=new lb,d=c.ia(a,d),e=function(){};d.t(function(){c.da(function(a){a.executeSql('SELECT * FROM sqlite_master WHERE type = "table"',[],function(b,c){if(c&&c.rows)for(var d=c.rows.length,e=0,f=0;d>f;f++){var g=c.rows.item(f);"__WebKitDatabaseInfoTable__"!=g.name&&"sqlite_sequence"!=g.name&&(e++,a.executeSql("DROP TABLE "+g.name))}},function(a,b){throw b})},[],Gc,e)}),d.ma(function(){})}}),Yb.prototype.ya=function(){},Tb.prototype.ca=function(a){return"indexeddb"==a&&(!Ic||Sc?0:Ic)?new Wb(0,this.r):"sqlite"==a&&fc.sqlitePlugin?new Yb(this.l,"sqlite"):"websql"==a&&h(fc.openDatabase)?new Yb(this.l):null},n(_b,Cb),ec=_b.prototype,ec.logger=null,ec.ba=function(a,b){function c(e){var f=a.a.objectStore(b[e]).count();f.onsuccess=function(f){d[e]=f.target.result,e++,e==b.length?pa(a,d):c(e)},f.onerror=function(b){b.preventDefault(),pa(a,f.error,!0)}}var d=[];0==b.length?pa(a,[]):c(0)},ec.A=function(a,b,c,d,e,f){function g(d){if(null==e[d])if(i++,i==e.length)pa(a,h,j);else{var l=d+10;l<e.length&&g(l)}var m,l=e[d];m=f&&null!=f[d]?b?k.put(l,f[d]):k.add(l,f[d]):b?k.put(l):k.add(l),m.onsuccess=function(b){i++,h[d]=b.target.result,i==e.length?pa(a,c?h[0]:h,j):(b=d+10,b<e.length&&g(b))},m.onerror=function(b){i++;var f=m.error;bb(e[d]),h[d]=f,j=!0,b.preventDefault(),i==e.length?pa(a,c?h[0]:h,j):(b=d+10,b<e.length&&g(b))}}var h=[],i=0,j=!1,k=a.a.objectStore(d);if(0<e.length)for(d=0;10>d&&d<e.length;d++)g(d);else pa(a,[])},ec.Aa=function(a,b,c){function d(h){var i=c[h],j=a.a.objectStore(i.b),k;k=null===j.keyPath?j.put(b[h],i.a):j.put(b[h]),k.onsuccess=function(c){f++,e[h]=c.target.result,f==b.length?pa(a,e,g):(c=h+10,c<b.length&&d(c))},k.onerror=function(c){f++,e[h]=k.error,g=!0,c.preventDefault(),f==b.length?pa(a,e,g):(c=h+10,c<b.length&&d(c))}}var e=[],f=0,g=!1;if(0<b.length)for(var h=0;10>h&&h<b.length;h++)d(h);else pa(a,e,g)},ec.Ba=function(a,b,c,d,e,f){function g(){var a={},b=e.indexOf("\n",j),d=!1,m;for(-1==b?(d=!0,m=e.substring(j)):(m=e.substring(j,b),j=b+1),b=m.split(f),m=0;m<k.length;m++){var n=b[m];l[m]&&(l[m]==Mc?n=r(n):"INTEGER"==l[m]?n=parseInt(n,10):"NUMERIC"==l[m]&&(n=parseFloat(n))),a[k[m]]=n}var o=h.put(a);o.onsuccess=function(a){i.push(a.target.result),d?c(i):g()},o.onerror=function(a){a.preventDefault(),c(o.error,!0)}}b=ib(this.a,d);var h=a.objectStore(d),i=[],j=e.indexOf("\n"),k=e.substr(0,j).split(f),l=[];for(a=0;a<k.length;a++)(d=Ra(b,k[a]))?l[a]=d.type:k[a]==b.keyPath&&(l[a]=b.type);j++,g()},ec.ha=function(a,b,c){var d=a.a.objectStore(b).openCursor(Lc.only(c));d.onsuccess=function(b){if(b=b.target.result){var c=b["delete"]();c.onsuccess=function(){pa(a,1)},c.onerror=function(){pa(a,c.error,!0)}}else pa(a,0)},d.onerror=function(b){b.preventDefault(),pa(a,d.error,!0)}},ec.Fa=function(a,b){function c(h){if(h++,h>=b.length)0<g.length?pa(a,g,!0):pa(a,d);else{b[h].b!=e&&(e=b[h].b,f=a.a.objectStore(e));var i=f["delete"](b[h].a);i.onsuccess=function(){d++,c(h)},i.onerror=function(a){a.preventDefault(),g[h]=i.error,c(h)}}}var d=0,e,f,g=[];c(-1)},ec.Ea=function(a,b,c){var d=a.a.objectStore(b),e=d.count(c);e.onsuccess=function(b){var e=b.target.result,f=d["delete"](c);f.onsuccess=function(){pa(a,e)},f.onerror=function(){pa(a,f.error,!0)}},e.onerror=function(b){b.preventDefault(),pa(a,e.error,!0)}},ec.oa=function(a,b,c){var d=a.a.objectStore(b)["delete"](c);d.onsuccess=function(){pa(a,void 0)},d.onerror=function(b){b.preventDefault(),pa(a,d.error,!0)}},ec.Da=function(a,b,c,d){var e=[],f=a.a.objectStore(b).index(c).openCursor(d),g=0;f.onsuccess=function(b){var c=b.target.result;if(c){var d=c["delete"]();d.onsuccess=function(){g++,c["continue"]()},d.onerror=function(a){e.push(d.error),a.preventDefault(),c["continue"]()}}else 0<e.length?pa(a,e,!0):pa(a,g)},f.onerror=function(b){b.preventDefault(),pa(a,f.error,!0)}},ec.aa=function(a,b){for(var c=b.length,d=0,e=0;c>e;e++){var f=a.a.objectStore(b[e]).clear();f.onsuccess=function(){d++,d==c&&pa(a,d)},f.onerror=function(b){d++,b.preventDefault(),d==c&&pa(a,f.error,!0)}}},ec.fa=function(a,b,c){var d=a.a.objectStore(b),f=d.get(c);f.onsuccess=function(b){var c=b.target.result;if(!d.keyPath&&0==d.indexNames.length&&Cc&&e(c)&&0<=c.indexOf(";base64,")){'"'==c.charAt(0)&&'"'==c.charAt(c.length-1)&&(c=c.substr(1,c.length-2)),c=c.split(";base64,"),b=c[0].split(":")[1];for(var c=window.atob(c[1]),f=c.length,g=new Uint8Array(f),h=0;f>h;++h)g[h]=c.charCodeAt(h);pa(a,new Blob([g.buffer],{type:b}))}else pa(a,b.target.result)},f.onerror=function(b){b.preventDefault(),pa(a,f.error,!0)}},ec.ra=function(a,b,c){function d(b){if(null==c[b])if(f++,e[b]=void 0,f==h)pa(a,e);else{var i=b+10;h>i&&d(i)}var j;j=g.get(c[b]),j.onsuccess=function(c){f++,e[b]=c.target.result,f==h?pa(a,e):(c=b+10,h>c&&d(c))},j.onerror=function(b){f++,b.preventDefault(),pa(a,j.error,!0)}}var e=[];e.length=c.length;var f=0,g=a.a.objectStore(b),h=c.length;if(h>0)for(b=0;10>b&&h>b;b++)d(b);else pa(a,[])},ec.sa=function(a,b){function c(f){var g=b[f],h=a.a.objectStore(g.b).get(g.a);h.onsuccess=function(g){e++,d[f]=g.target.result,e==b.length?pa(a,d):(g=f+10,g<b.length&&c(g))},h.onerror=function(b){e++,b.preventDefault(),pa(a,h.error,!0)}}var d=[];d.length=b.length;var e=0;if(0<b.length)for(var f=0;10>f&&f<b.length;f++)c(f);else pa(a,[])},ec.pa=function(a,b,c,d){b=a.a.objectStore(b),c&&cb(c);var e;null!=d?(d=b.index(d),e=null!=c?d.count(c):d.count()):e=null!=c?b.count(c):b.count(),e.onsuccess=function(b){pa(a,b.target.result)},e.onerror=function(b){b.preventDefault(),pa(a,e.error,!0)}},ec.P=function(b,c,d,e,f,g,h,i,j,k){var l=[],m=b.a.objectStore(d),n=i?j?"prevunique":"prev":j?"nextunique":"next";if(d=sa(b)+" "+c+" "+d+(e?":"+e:"")+(f?cb(f):""),i&&(d+=" reverse"),j&&(d+=" unique"),k&&a(k[0])){j=e?!a(k[1]):!0;var o=k[0],p=f?f.lower:void 0,q=f?f.upper:void 0,r=f?!!f.lowerOpen:!1;f=f?!!f.upperOpen:!1,f=Da(i?new Ca(p,o,r,j):new Ca(o,q,j,f)),d+=" starting from "+cb(k[0]),a(k[1])&&(d+=", "+cb(k[1]))}var s;s=1==c||2==c||3==c?e?m.index(e).openKeyCursor(f,n):m.openCursor(f,n):e?m.index(e).openCursor(f,n):m.openCursor(f,n);var t=!1;s.onsuccess=function(d){if(d=d.target.result){if(!t){if(h>0)return t=!0,d.advance(h),void 0;if(k&&e&&a(k[0]))if(a(k[1])){var f=Ic.cmp(d.key,k[0]),j=i?-1:1;if(0==f){if(f=Ic.cmp(d.primaryKey,k[1]),0==f)return t=!0,d["continue"](),void 0;if(f!=j)return d["continue"](),void 0;t=!0}else t=!0}else t=!0;else t=!0}1==c?l.push(d.key):2==c?l.push(d.primaryKey):3==c?(j={},e&&(j[e]=d.key),m.keyPath?j[m.keyPath]=d.primaryKey:j._ROWID_=d.primaryKey,l.push(j)):4==c?l.push(d.value):l.push([d.key,d.primaryKey,d.value]),l.length<g?d["continue"]():(k&&(k[0]=Ba(d.key),k[1]=Ba(d.primaryKey)),pa(b,l))}else k&&(k[0]=void 0,k[1]=void 0),pa(b,l)},s.onerror=function(a){a.preventDefault(),pa(b,s.error,!0)}},n(ac,Cb),ec=ac.prototype,ec.logger=null,ec.Ba=function(){throw new $("putData")},ec.A=function(b,c,d,e,f,g){function h(c,e){if(null==f[c])if(l++,l==f.length)pa(b,k,m);else{var n=c+2;n<f.length&&h(n,e)}var o;o=a(g)?Ya(i,f[c],g[c]):Ya(i,f[c]),n=j+Ta(i)+" ("+o.Na.join(", ")+") VALUES ("+o.Xa.join(", ")+");",e.executeSql(n,o.F,function(g,n){function p(a,b){var c=j+s("ydn.db.me:"+i.getName()+":"+a.getName())+" ("+i.c+", "+a.c+") VALUES (?, ?)",d=[Ha(q,i.type),Ha(b,a.type)];e.executeSql(c,d,function(){},function(){return!1})}l++;var q=a(o.key)?o.key:n.insertId;1>n.rowsAffected&&(m=!0,q=new wb(q+" no-op"));for(var r=0,t=i.a.length;t>r;r++){var u=i.index(r);if(u.multiEntry)for(var v=da(f[c],u.keyPath),w=(v?v.length:0)||0,x=0;w>x;x++)p(u,v[x])}d?pa(b,q):(k[c]=q,l==f.length?pa(b,k,m):(r=c+2,r<f.length&&h(r,g)))},function(a,e){if(l++,m=!0,6==e.code&&(e.name="ConstraintError"),d)pa(b,e,!0);else if(k[c]=e,l==f.length)pa(b,k,m);else{var g=c+2;g<f.length&&h(g,a)}return!1})}c=!c;var i=ib(this.a,e),j=c?"INSERT INTO ":"INSERT OR REPLACE INTO ";e=b.a;var k=[],l=0,m=!1;if(0<f.length)for(c=0;2>c&&c<f.length;c++)h(c,e);else pa(b,[])},ec.Aa=function(a,b,c){if(0==c.length)pa(a,[]);else{for(var d=[],e=0,f=0,g=this,h=function(h,i){for(var j=[],k=Va(ib(g.a,h)),l=k?void 0:[],m=0;m<i.length;m++)j.push(b[i[m]]),k||l.push(c[i[m]].a);k=oa(a),T(k,function(b){for(var c=0;c<i.length;c++)d[i[c]]=b[c];e++,e==f&&pa(a,d)},function(){e++,e==f&&pa(a,d,!0)}),g.A(k,!1,!1,h,j,l)},i="",j=[],k=[],l=0;l<c.length;l++){var m=c[l].b,n=c[l].a;m!=i?(f++,0<j.length&&h(i,j),j=[l],k=[n],i=m):(j.push(l),k.push(n))}0<j.length&&h(i,j)}},ec.fa=function(a,b,c){var d=a.a,e=ib(this.a,b);b=e.c,c=[Ha(c,e.type)],b="SELECT * FROM "+Ta(e)+" WHERE "+b+" = ?",d.executeSql(b,c,function(b,c){if(0<c.rows.length){var d=c.rows.item(0);null!=d?(d=bc(d,e),pa(a,d)):pa(a,void 0)}else pa(a,void 0)},function(b,c){return pa(a,c,!0),!1})},ec.ra=function(a,b,c){function d(b,e){var i=h.c,j=[Ha(c[b],h.type)],i="SELECT * FROM "+Ta(h)+" WHERE "+i+" = ?";e.executeSql(i,j,function(e,i){if(g++,0<i.rows.length){var j=i.rows.item(0);null!=j&&(f[b]=bc(j,h))}else f[b]=void 0;g==c.length?pa(a,f):(j=b+10,j<c.length&&d(j,e))},function(e){if(g++,g==c.length)pa(a,f);else{var h=b+10;h<c.length&&d(h,e)}return!1})}var e=a.a,f=[],g=0,h=ib(this.a,b);if(0<c.length)for(b=0;10>b&&b<c.length;b++)d(b,e);else pa(a,[])},ec.sa=function(a,b){function c(d,h){var i=b[d],j=ib(e.a,i.b),k=Aa(i),i=j.c,k=[Ha(k,j.type)],i="SELECT * FROM "+Ta(j)+" WHERE "+i+" = ?";h.executeSql(i,k,function(e,h){if(g++,0<h.rows.length){var i=h.rows.item(0);null!=i&&(f[d]=bc(i,j))}else f[d]=void 0;g==b.length?pa(a,f):(i=d+10,i<b.length&&c(i,e))},function(b,c){return pa(a,c,!0),!1})}var d=a.a,e=this,f=[],g=0;if(0<b.length)for(var h=0;10>h&&h<b.length;h++)c(h,d);else pa(a,[])},ec.aa=function(a,b){function c(d,f){function g(a){a="DELETE FROM  "+s("ydn.db.me:"+h.getName()+":"+a.getName()),f.executeSql(a,[])}var h=ib(e.a,b[d]),i="DELETE FROM  "+Ta(h);f.executeSql(i,[],function(e){d==b.length-1?pa(a,b.length):c(d+1,e)},function(b,c){return pa(a,c,!0),!1});for(var i=0,j=h.a.length;j>i;i++){var k=h.index(i);k.multiEntry&&g(k)}}var d=a.a,e=this;0<b.length?c(0,d):pa(a,0)},ec.Fa=function(a,b){function c(h){if(h>=b.length)pa(a,f,g);else{var i=ib(e.a,b[h].b),j=Ha(b[h].a,i.type),k=" WHERE "+i.c+" = ?",l="DELETE FROM "+Ta(i)+k;d.executeSql(l,[j],function(){f++,c(h)},function(){return g=!0,c(h),!1}),h++;for(var l=function(a){a="DELETE FROM  "+s("ydn.db.me:"+i.getName()+":"+a.getName())+k,d.executeSql(a,[j])},m=0,n=i.a.length;n>m;m++){var o=i.index(m);o.multiEntry&&l(o)}}}var d=a.a,e=this,f=0,g=!1;c(0)},ec.ha=function(a,b,c){function d(a){a="DELETE FROM  "+s("ydn.db.me:"+f.getName()+":"+a.getName())+h,e.executeSql(a,[g])}var e=a.a,f=ib(this.a,b),g=Ha(c,f.type),h=" WHERE "+f.c+" = ?";for(b="DELETE FROM "+Ta(f)+h,e.executeSql(b,[g],function(b,c){pa(a,c.rowsAffected)},function(b,c){return pa(a,c,!0),!1}),b=0,c=f.a.length;c>b;b++){var i=f.index(b);i.multiEntry&&d(i)}},ec.oa=function(a,b,c){cc(this,a,b,void 0,c)},ec.Ea=function(a,b,c){cc(this,a,b,void 0,c)},ec.Da=function(a,b,c,d){cc(this,a,b,c,d)},ec.ba=function(a,b){function c(f){var g="SELECT COUNT(*) FROM "+s(b[f]);d.executeSql(g,[],function(d,g){var h=g.rows.item(0);e[f]=parseInt(h["COUNT(*)"],10),f++,f==b.length?pa(a,e):c(f)},function(b,c){return pa(a,c,!0),!1})}var d=a.a,e=[];0==b.length?pa(a,0):c(0)},ec.pa=function(a,b,c,d,e){var f=[];b=Na(ib(this.a,b),f,6,d,c,!1,e),a.a.executeSql(b,f,function(b,c){var d;a:{if(d=c.rows.item(0))for(var e in d)if(d.hasOwnProperty(e)){d=d[e];break a}d=void 0}pa(a,d)},function(b,c){return pa(a,c,!0),!1})},ec.P=function(b,c,d,e,f,h,i,j,k,l){var m=[],n=ib(this.a,d),o=n.f,p=n.type,q=p,r=null!=e&&e!==o?Ra(n,e):null,s=e||o;if(r&&(q=r.type),d=[],l&&a(l[0])){var t=l[0];e=r&&a(l[1])?Qa(n,c,d,r.getName(),f,t,l[1],j,k):Pa(n,c,d,e,f,j,k,t)}else e=Na(n,d,c,s,f,j,k);g(h)&&(e+=" LIMIT "+h),g(i)&&(e+=" OFFSET "+i),cb(d),b.a.executeSql(e,d,function(a,d){for(var e=d.rows.length,f,g=0;e>g;g++)f=d.rows.item(g),2==c?m[g]=Ia(f[o],p):1==c?m[g]=Ia(f[s],q):3==c?m[g]=[Ia(f[s],q),Ia(f[o],p)]:null!=f&&(m[g]=bc(f,n));l&&f&&(l[0]=Ia(f[s],q),l[1]=Ia(f[o],p)),pa(b,m)},function(a,c){return pa(b,c,!0),!1})},Tb.prototype.branch=Tb.prototype.La,Tb.prototype.getTxNo=Tb.prototype.eb,Lb.prototype.getTxNo=Lb.prototype.e,Tb.prototype.run=Tb.prototype.Ua,Vb.prototype.branch=Vb.prototype.La,Vb.prototype.add=Vb.prototype.add,Vb.prototype.get=Vb.prototype.get,Vb.prototype.keys=Vb.prototype.Z,Vb.prototype.values=Vb.prototype.F,Vb.prototype.put=Vb.prototype.put,Vb.prototype.clear=Vb.prototype.clear,Vb.prototype.remove=Vb.prototype.$,Vb.prototype.count=Vb.prototype.count,Nb.prototype.add=Nb.prototype.add,Nb.prototype.get=Nb.prototype.get,Nb.prototype.keys=Nb.prototype.Z,Nb.prototype.values=Nb.prototype.F,Nb.prototype.put=Nb.prototype.put,Nb.prototype.clear=Nb.prototype.clear,Nb.prototype.remove=Nb.prototype.$,Nb.prototype.count=Nb.prototype.count,m("ydn.db.Key",za),za.prototype.id=za.prototype.Oa,
za.prototype.parent=za.prototype.$a,za.prototype.storeName=za.prototype.ab,m("ydn.db.KeyRange",Ca),Ca.upperBound=Ca.upperBound,Ca.lowerBound=Ca.lowerBound,Ca.bound=Ca.bound,Ca.only=Ca.only,Ca.starts=function(a){var b;if(c(a))b=v(a),b.push("￿");else if(e(a))b=a+"￿";else{if(!g(a))return Ca.only(a);b=a+2.220460492503131e-16,a-=2.220460492503131e-16}return Ca.bound(a,b,!1,!0)},va.prototype.store_name=va.prototype.b,va.prototype.getStoreName=va.prototype.a,n(dc,Vb),m("ydn.db.Storage",dc),ydn},this||{}),define("ydn.db",function(a){return function(){var b,c;return b||a.ydn}}(this)),function(a,b){'function'==typeof define&&define.amd?define('vendor/fuzzysort/fuzzysort',[],b):'object'==typeof module&&module.exports?module.exports=b():a.fuzzysort=b()}(this,function b(){function a(n){var o={single:function(a,b,c){if(!a)return null;if(e(a)||(a=o.getPreparedSearch(a)),!b)return null;e(b)||(b=o.getPrepared(b));var d=c&&void 0!==c.allowTypo?c.allowTypo:n&&void 0!==n.allowTypo?n.allowTypo:!0,f=d?o.algorithm:o.algorithmNoTypo;return f(a,b,a[0])},go:function(a,b,f){if(!a)return i;a=o.prepareSearch(a);var g=a[0],h=f&&f.threshold||n&&n.threshold||-9007199254740991,j=f&&f.limit||n&&n.limit||9007199254740991,k=f&&void 0!==f.allowTypo?f.allowTypo:n&&void 0!==n.allowTypo?n.allowTypo:!0,l=k?o.algorithm:o.algorithmNoTypo,p=0,q=0,r=b.length;if(f&&f.keys)for(var s=f.scoreFn||c,t=f.keys,u=t.length,v=r-1;v>=0;--v){for(var w=b[v],x=new Array(u),y=u-1;y>=0;--y){var z=t[y],A=d(w,z);A?(e(A)||(A=o.getPrepared(A)),x[y]=l(a,A,g)):x[y]=null}x.obj=w;var B=s(x);null!==B&&(h>B||(x.score=B,j>p?(m.add(x),++p):(++q,B>m.peek().score&&m.replaceTop(x))))}else if(f&&f.key)for(var z=f.key,v=r-1;v>=0;--v){var w=b[v],A=d(w,z);if(A){e(A)||(A=o.getPrepared(A));var C=l(a,A,g);null!==C&&(C.score<h||(C={target:C.target,_targetLowerCodes:null,_nextBeginningIndexes:null,score:C.score,indexes:C.indexes,obj:w},j>p?(m.add(C),++p):(++q,C.score>m.peek().score&&m.replaceTop(C))))}}else for(var v=r-1;v>=0;--v){var A=b[v];if(A){e(A)||(A=o.getPrepared(A));var C=l(a,A,g);null!==C&&(C.score<h||(j>p?(m.add(C),++p):(++q,C.score>m.peek().score&&m.replaceTop(C))))}}if(0===p)return i;for(var D=new Array(p),v=p-1;v>=0;--v)D[v]=m.poll();return D.total=p+q,D},goAsync:function(a,b,g){var h=!1,j=new Promise(function(j,k){function m(){if(h)return k('canceled');var l=Date.now();if(g&&g.keys)for(var n=g.scoreFn||c,u=g.keys,y=u.length;r>=0;--r){for(var z=b[r],A=new Array(y),B=y-1;B>=0;--B){var C=u[B],D=d(z,C);D?(e(D)||(D=o.getPrepared(D)),A[B]=v(a,D,p)):A[B]=null}A.obj=z;var E=n(A);if(null!==E&&!(s>E)&&(A.score=E,t>w?(q.add(A),++w):(++x,E>q.peek().score&&q.replaceTop(A)),r%1e3===0&&Date.now()-l>=10))return f?setImmediate(m):setTimeout(m),void 0}else if(g&&g.key)for(var C=g.key;r>=0;--r){var z=b[r],D=d(z,C);if(D){e(D)||(D=o.getPrepared(D));var F=v(a,D,p);if(null!==F&&!(F.score<s)&&(F={target:F.target,_targetLowerCodes:null,_nextBeginningIndexes:null,score:F.score,indexes:F.indexes,obj:z},t>w?(q.add(F),++w):(++x,F.score>q.peek().score&&q.replaceTop(F)),r%1e3===0&&Date.now()-l>=10))return f?setImmediate(m):setTimeout(m),void 0}}else for(;r>=0;--r){var D=b[r];if(D){e(D)||(D=o.getPrepared(D));var F=v(a,D,p);if(null!==F&&!(F.score<s)&&(t>w?(q.add(F),++w):(++x,F.score>q.peek().score&&q.replaceTop(F)),r%1e3===0&&Date.now()-l>=10))return f?setImmediate(m):setTimeout(m),void 0}}if(0===w)return j(i);for(var G=new Array(w),H=w-1;H>=0;--H)G[H]=q.poll();G.total=w+x,j(G)}if(!a)return j(i);a=o.prepareSearch(a);var p=a[0],q=l(),r=b.length-1,s=g&&g.threshold||n&&n.threshold||-9007199254740991,t=g&&g.limit||n&&n.limit||9007199254740991,u=g&&void 0!==g.allowTypo?g.allowTypo:n&&void 0!==n.allowTypo?n.allowTypo:!0,v=u?o.algorithm:o.algorithmNoTypo,w=0,x=0;f?setImmediate(m):m()});return j.cancel=function(){h=!0},j},highlight:function(a,b,c){if(null===a)return null;void 0===b&&(b='<b>'),void 0===c&&(c='</b>');for(var d='',e=0,f=!1,g=a.target,h=g.length,i=a.indexes,j=0;h>j;++j){var k=g[j];if(i[e]===j){if(++e,f||(f=!0,d+=b),e===i.length){d+=k+c+g.substr(j+1);break}}else f&&(f=!1,d+=c);d+=k}return d},prepare:function(a){return a?{target:a,_targetLowerCodes:o.prepareLowerCodes(a),_nextBeginningIndexes:null,score:null,indexes:null,obj:null}:void 0},prepareSlow:function(a){return a?{target:a,_targetLowerCodes:o.prepareLowerCodes(a),_nextBeginningIndexes:o.prepareNextBeginningIndexes(a),score:null,indexes:null,obj:null}:void 0},prepareSearch:function(a){return a?o.prepareLowerCodes(a):void 0},getPrepared:function(a){if(a.length>999)return o.prepare(a);var b=g.get(a);return void 0!==b?b:(b=o.prepare(a),g.set(a,b),b)},getPreparedSearch:function(a){if(a.length>999)return o.prepareSearch(a);var b=h.get(a);return void 0!==b?b:(b=o.prepareSearch(a),h.set(a,b),b)},algorithm:function(a,b,c){for(var d=b._targetLowerCodes,e=a.length,f=d.length,g=0,h=0,i=0,l=0;;){var m=c===d[h];if(m){if(j[l++]=h,++g,g===e)break;c=a[0===i?g:i===g?g+1:i===g-1?g-1:g]}if(++h,h>=f)for(;;){if(1>=g)return null;if(0===i){--g;var n=a[g];if(c===n)continue;i=g}else{if(1===i)return null;--i,g=i,c=a[g+1];var n=a[g];if(c===n)continue}l=g,h=j[l-1]+1;break}}var g=0,p=0,q=!1,r=0,s=b._nextBeginningIndexes;null===s&&(s=b._nextBeginningIndexes=o.prepareNextBeginningIndexes(b.target));var t=h=0===j[0]?0:s[j[0]-1];if(h!==f)for(;;)if(h>=f){if(0>=g){if(++p,p>e-2)break;if(a[p]===a[p+1])continue;h=t;continue}--g;var u=k[--r];h=s[u]}else{var m=a[0===p?g:p===g?g+1:p===g-1?g-1:g]===d[h];if(m){if(k[r++]=h,++g,g===e){q=!0;break}++h}else h=s[h]}if(q)var v=k,w=r;else var v=j,w=l;for(var x=0,y=-1,z=0;e>z;++z){var h=v[z];y!==h-1&&(x-=h),y=h}q?0!==p&&(x+=-20):(x*=1e3,0!==i&&(x+=-20)),x-=f-e,b.score=x,b.indexes=new Array(w);for(var z=w-1;z>=0;--z)b.indexes[z]=v[z];return b},algorithmNoTypo:function(a,b,c){for(var d=b._targetLowerCodes,e=a.length,f=d.length,g=0,h=0,i=0;;){var l=c===d[h];if(l){if(j[i++]=h,++g,g===e)break;c=a[g]}if(++h,h>=f)return null}var g=0,m=!1,n=0,p=b._nextBeginningIndexes;null===p&&(p=b._nextBeginningIndexes=o.prepareNextBeginningIndexes(b.target));var q=h=0===j[0]?0:p[j[0]-1];if(h!==f)for(;;)if(h>=f){if(0>=g)break;--g;var r=k[--n];h=p[r]}else{var l=a[g]===d[h];if(l){if(k[n++]=h,++g,g===e){m=!0;break}++h}else h=p[h]}if(m)var s=k,t=n;else var s=j,t=i;for(var u=0,v=-1,w=0;e>w;++w){var h=s[w];v!==h-1&&(u-=h),v=h}m||(u*=1e3),u-=f-e,b.score=u,b.indexes=new Array(t);for(var w=t-1;w>=0;--w)b.indexes[w]=s[w];return b},prepareLowerCodes:function(a){for(var b=a.length,c=[],d=a.toLowerCase(),e=0;b>e;++e)c[e]=d.charCodeAt(e);return c},prepareBeginningIndexes:function(a){for(var b=a.length,c=[],d=0,e=!1,f=!1,g=0;b>g;++g){var h=a.charCodeAt(g),i=h>=65&&90>=h,j=i||h>=97&&122>=h||h>=48&&57>=h,k=i&&!e||!f||!j;e=i,f=j,k&&(c[d++]=g)}return c},prepareNextBeginningIndexes:function(a){for(var b=a.length,c=o.prepareBeginningIndexes(a),d=[],e=c[0],f=0,g=0;b>g;++g)e>g?d[g]=e:(e=c[++f],d[g]=void 0===e?b:e);return d},cleanup:b,"new":a};return o}function b(){g.clear(),h.clear(),j=[],k=[]}function c(a){for(var b=-9007199254740991,c=a.length-1;c>=0;--c){var d=a[c];if(null!==d){var e=d.score;e>b&&(b=e)}}return-9007199254740991===b?null:b}function d(a,b){var c=a[b];if(void 0!==c)return c;var d=b;Array.isArray(b)||(d=b.split('.'));for(var e=d.length,f=-1;a&&++f<e;)a=a[d[f]];return a}function e(a){return'object'==typeof a}var f='undefined'!=typeof require&&'undefined'==typeof window,g=new Map,h=new Map,i=[];i.total=0;var j=[],k=[],l=function(){function a(){for(var a=0,d=b[a],e=1;c>e;){var f=e+1;a=e,c>f&&b[f].score<b[e].score&&(a=f),b[a-1>>1]=b[a],e=1+(a<<1)}for(var g=a-1>>1;a>0&&d.score<b[g].score;g=(a=g)-1>>1)b[a]=b[g];b[a]=d}var b=[],c=0,d={};return d.add=function(a){var d=c;b[c++]=a;for(var e=d-1>>1;d>0&&a.score<b[e].score;e=(d=e)-1>>1)b[d]=b[e];b[d]=a},d.poll=function(){if(0!==c){var d=b[0];return b[0]=b[--c],a(),d}},d.peek=function(a){return 0!==c?b[0]:void 0},d.replaceTop=function(c){b[0]=c,a()},d},m=l();return a()}),define('ui-modules/spotlight/scripts/tools',['jquery','vendor/fuzzysort/fuzzysort','jive/i18n'],function(a,b,c){'use strict';function d(a){var b='jive.model.lang.',d='';switch(a){case 1:d='january';break;case 2:d='february';break;case 3:d='march';break;case 4:d='april';break;case 5:d='may';break;case 6:d='june';break;case 7:d='july';break;case 8:d='august';break;case 9:d='september';break;case 10:d='october';break;case 11:d='november';break;case 12:d='december'}return c.jsGetMsg(b+d)}function e(a,b){return a.some(function(a){return a===b})}function f(a){return a?a.replace(/[\n]+/gm,' '):''}var g={},h=-500;g.toProperCase=function(a){return a.replace(/\w\S*/g,function(a){return g.uppercaseFirst(a)})},g.uppercaseFirst=function(a){return a&&a.charAt(0).toUpperCase()+a.substr(1).toLowerCase()},g.startsWith=function(a,b){return 0==a.indexOf(b)},g.endsWith=function(a,b){return-1!==a.indexOf(b,a.length-b.length)},g.timestamp=function(a){return g.timestampMsec(a)/1e3},g.timestampMsec=function(a){var b=a?new Date(a):new Date;return Math.round(b.getTime())},g.normalizeQuery=function(a){return a?a.replace(/,+/g,' ').replace(/\s+/g,' ').replace(/^\s+|\s+$/g,'').toLowerCase():''},g.indexedDBSize=function(a,b,c){var d=0,e=indexedDB.open(a);e.onsuccess=function(a){var f=e.result,g=f.transaction([b]).objectStore(b).openCursor();g.onsuccess=function(a){var b=a.target.result;if(b){var e=b.value,f=JSON.stringify(e);d+=f.length,b['continue']()}else c(d,null)},g.onerror=function(a){c(null,a)}}},g.arrayToObject=function(a,b){var c=_.isFunction(b),d={};return _.each(a,function(a){var e;e=c?b(a):b,d[e]=a}),d},g.hashCode=function(a){var b=0,c,d,e;if(0==a.length)return b;for(c=0,e=a.length;e>c;c++)d=a.charCodeAt(c),b=(b<<5)-b+d,b|=0;return b},g.formatJiveDate=function(a){function b(a){var b=String(a);return 1===b.length&&(b='0'+b),b}return Date.prototype.toISOString?a.toISOString().replace(/Z$/,'+0000'):a.getUTCFullYear()+'-'+b(a.getUTCMonth()+1)+'-'+b(a.getUTCDate())+'T'+b(a.getUTCHours())+':'+b(a.getUTCMinutes())+':'+b(a.getUTCSeconds())+'.'+String((a.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+'+0000'},g.jivePersonProfileMap=function(a){var b={};return _.each(a.jive.profile,function(a){b[a.jive_label.toLowerCase()]=a.value}),b},g.jivePersonSummary=function(a){var b=[],c=function(a){if(a.jive_showSummaryLabel){var c=a.jive_summaryDisplayOrder;b[c]={label:a.jive_label,value:a.value}}};return _.each(a.jive.profile,c),_.each(['emails','phoneNumbers','photos'],function(b){_.each(a[b]||[],c)}),b},g.decodeHtmlEntities=function(b){return a('<textarea />').html(b).text()};var i=/[^\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/;return g.tokenize=function(a,b){return a.split(b||i)},g.chunk=function(a,b){for(var c=[],d=0,e=a.length;e>d;)c.push(a.slice(d,d+=b));return c},g.escapeRegExp=function(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,'\\$&')},g.isNumeric=function(a){return/^\d+$/.test(a)},g.repeat=function(a,b){return new Array(b+1).join(a)},g.idFromUri=function(a){var b=a.split('/');return b.length?b[b.length-1]:null},g.valuePromise=function(b){var c=a.Deferred();return c.resolve(b),c.promise()},g.stackTrace=function(){var a=new Error;return a.stack.split('\n').slice(1)},g.sortObjectsArray=function(a,b){return a.sort(function(a,c){var d=a[b],e=c[b];return e-d})},g.getMonthName=d,g.formatDateToAmPm=function(a){var b=function(a){var b=a?a.toString():'';return 1===b.length?'0'+b:b},c='';return a&&(c=d(a.getMonth()+1),c+=' ',c+=b(a.getDate()),c+=', ',c+=b(a.getFullYear()),c+=', ',c+=b(a.getHours()>12?a.getHours()-12:a.getHours()),c+=':',c+=b(a.getMinutes()),c+=' '+a.getHours()>11?' PM':' AM'),c},g.parseFilterParams=function(a){for(var b=a.split(","),c={},d=0;d<b.length;d++){var e=b[d].split(":");c[e[0].trim()]=e[1].trim()}return c},g.createContentMultipleFilters=function(a,b){var c={};if(_.extend(c,b),a.type&&'all'!==a.type){var d='discussion'===a.type?'message':a.type;c.type?c.type.includes(d)||(c.type=c.type+','+d):c.type=d,c.type=c.type.replace(/^,/,'')}return a.subtype&&(c.subtype?c.subtype.includes(a.subtype)||(c.subtype=c.subtype+','+a.subtype):c.subtype=a.subtype,c.subtype=c.subtype.replace(/^,/,'')),a.source&&(c.source?c.source.includes(a.source)||(c.source=c.source+','+a.source):c.source=a.source,c.source=c.source.replace(/^,/,'')),c},g.removeContentMultipleFilters=function(a,b){var c={};if(_.extend(c,b),a.type&&'all'!==a.type){var d='discussion'===a.type?'message':a.type;c.type.includes(d+',')?c.type=c.type.replace(d+',',''):c.type.includes(d)&&(c.type=c.type.replace(d,'')),c.type=c.type.replace(/^,/,'')}if(a.subtype){var d=a.subtype;c.subtype.includes(d+',')?c.subtype=c.subtype.replace(d+',',''):c.subtype.includes(d)&&(c.subtype=c.subtype.replace(d,'')),c.subtype=c.subtype.replace(/^,/,'')}if(a.source){var d=a.source;c.source.includes(d+',')?c.source=c.source.replace(d+',',''):c.source.includes(d)&&(c.source=c.source.replace(d,'')),c.source=c.source.replace(/^,/,'')}return g.handleMessageTypeFilter(c),g.handleExternalAddonFilter(c),g.cleanUnstableFilters(c)},g.handleMessageTypeFilter=function(a){var b='message';try{a.subtype.length>0&&-1===a.type.indexOf(b)&&(a.type=b+','+a.type)}catch(c){}},g.handleExternalAddonFilter=function(a){var b='extStreamActivity';try{a.source.length>0&&-1===a.type.indexOf(b)&&(a.type=b+','+a.type)}catch(c){}},g.cleanUnstableFilters=function(a){return a.type?a.type=a.type.replace(/(^,)|(,$)/g,''):null,a.subtype?a.subtype=a.subtype.replace(/(^,)|(,$)/g,''):null,a.source?a.source=a.source.replace(/(^,)|(,$)/g,''):null,a},g.containHighlights=function(a){return a.indexOf('<em class="jive-hilite">')>-1},g.removeCarriageReturn=f,g.processSuggestionResults=function(a,b){if(b&&b.length>0){var c=b.map(function(a){return{suggestion:f(a)}}),d=c.map(function(a){return a.suggestion}),g=c.filter(function(a){return!e(d,a.suggestion)}).map(function(a){return a.suggestion});return d.concat(g)}return b},g}),define('ui-modules/spotlight/scripts/log',['underscore'],function(a){'use strict';var b={debug3:8,debug2:9,debug:10,timer:10,info:20,warn:30,warning:30,error:40},c=b.info,d='info',e=window.console||{};e.log||(e.log=function(){}),a.each(['debug','warn','error','time','timeEnd'],function(a){e[a]||(e[a]=e.log)}),Function.prototype.bind&&window.console&&'object'==typeof e.log&&a.each(['log','debug','warn','error','time','timeEnd'],function(a){e[a]=Function.prototype.call.bind(e[a],e)});var f=function(){c<=b.info&&e.log.apply(e,arguments)};return f.log=f,f.levels=a.keys(b),f.setLevel=function(a){if(a=a.toLowerCase(),!b[a])throw Error('Invalid log level specified - '+a);c=b[a],d=a},f.getLevel=function(){return d},f.debug=function(){c<=b.debug&&e.debug.apply(e,arguments)},f.debug2=function(){c<=b.debug2&&e.debug.apply(e,arguments)},f.debug3=function(){c<=b.debug3&&e.debug.apply(e,arguments)},f.warn=f.warning=function(){c<=b.warning&&e.warn.apply(e,arguments)},f.error=function(){c<=b.error&&e.error.apply(e,arguments)},f.time=function(){c<=b.timer&&e.time.apply(e,arguments)},f.timeEnd=function(){c<=b.timer&&e.timeEnd.apply(e,arguments)},f}),define('ui-modules/spotlight/scripts/browserdb',['jquery','async','underscore','ydn.db','./config','./tools','./log'],function(a,b,c,d,e,f,g){'use strict';var h={},i=4,j=['get','put','add','remove','keys','values'],k=['websql','indexeddb'],l=e.enableEncryption,m={stores:[{name:'settings',keyPath:'key'},{name:'activity',encrypted:l},{name:'cache',encrypted:l},{name:'suggestions',encrypted:l},{name:'lists',encrypted:l},{name:'tokenIndex'},{name:'locks',keyPath:'id',autoIncrement:!0,indexes:[{name:'name',keyPath:'name',unique:!0}]}]},n={Encryption:{secrets:[{name:'primary',key:e.userAuthToken}]},mechanisms:k,size:47185920},o=null;h.errorHandler=function(a){1==a.code||18==a.code?(g.error("Browser database error (disabling)",a,f.stackTrace().slice(1)),h.enabled=!1,o.close(),o=null):g.error("Browser database error",a,f.stackTrace().slice(1))},h.getSetting=function(b){if(!o)return f.valuePromise(null);var c=a.Deferred();return o.get('settings',b).done(function(a){a?c.resolve(a.value):c.resolve(null)}).fail(c.reject),c.promise()},h.getSettings=function(){if(!o)return f.valuePromise({});var b=a.Deferred();return o.values('settings').done(function(a){var d={};c.each(a,function(a){d[a.key]=a.value}),b.resolve(d)}).fail(b.reject),b.promise()},h.updateSetting=function(a,b){return o?o.put('settings',{key:a,value:b}).fail(o.errorHandler):f.valuePromise(null)};var p=function(a){o?o.clear().done(function(){a()}).fail(a):a('database not initialized')},q=function(a){for(var c=[],e=1;i>e;e++)c.push(e);b.each(c,function(a,b){var c=r(a);g.debug('Deleting db '+c),d.db.deleteDatabase(c).done(function(){b()}).fail(h.errorHandler)},function(){a&&a()})},r=function(a){return'jive-user-'+e.userId+'-v'+a};if(h.enabled=null,e.enableBrowserDb&&e.userLoggedIn)try{o=new d.db.Storage(r(i),m,n),h._db=o}catch(s){"SecurityError"==s.name&&window.localStorage&&(window.localStorage["jive.browserdb.disabled"]=1),g.warn('Unable to initialize browser DB',s)}else e.enableBrowserDb||(h.enabled=!1);h.KeyRange=d.db.KeyRange,c.each(j,function(a){h[a]=function(){return h.enabled&&o?o[a].apply(o,arguments):(g.warn("Attempting browserdb operation ("+a+") while db is disabled",arguments,f.stackTrace().slice(1)),f.valuePromise(null))}}),h.init=function(){return o?a.Deferred(function(a){g.debug('Initializing browser DB'),o.onReady(function(){t(a)})}):a.Deferred(function(a){g.debug('Browser DB disabled'),a.resolve()})};var t=function(a){c.contains(k,o.getType())||(g.debug('Unable to initialize browser DB (browser not supported)'),a.resolve());var b=function(){h.enabled=!0,g.debug('Browser-db initialized'),a.resolve()};if(l){var d=f.hashCode(e.userAuthToken);h.getSettings().done(function(a){a.keyHash==d?b():(g('Resetting user database (updated key)'),g.debug('Previous keyhash: '+a.keyHash,'New keyhash: '+d),p(function(a){if(a)throw a;h.updateSetting('keyHash',d),b(),q()}))}).fail(h.errorHandler)}else b()};return h});var Url=function(){"use strict";var a={protocol:'protocol',host:'hostname',port:'port',path:'pathname',query:'search',hash:'hash'},b={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},c=function(c,d){var f=document,g=f.createElement('a'),d=d||f.location.href,h=d.match(/\/\/(.*?)(?::(.*?))?@/)||[];g.href=d;for(var i in a)c[i]=g[a[i]]||'';if(c.protocol=c.protocol.replace(/:$/,''),c.query=c.query.replace(/^\?/,''),c.hash=c.hash.replace(/^#/,''),c.user=h[1]||'',c.pass=h[2]||'',c.port=b[c.protocol]==c.port||0==c.port?'':c.port,c.protocol||/^([a-z]+:)?\/\//.test(d))c.path=c.path.replace(/^\/?/,'/');else{var j=new Url(f.location.href.match(/(.*\/)/)[0]),k=j.path.split('/'),l=c.path.split('/');k.pop();for(var i=0,m=['protocol','user','pass','host','port'],n=m.length;n>i;i++)c[m[i]]=j[m[i]];for(;'..'==l[0];)k.pop(),l.shift();c.path=('/'!=d.substring(0,1)?k.join('/'):'')+'/'+l.join('/')}e(c)},d=function(a){return a=a.replace(/\+/g,' '),a=a.replace(/%([ef][0-9a-f])%([89ab][0-9a-f])%([89ab][0-9a-f])/gi,function(a,b,c,d){var e=parseInt(b,16)-224,f=parseInt(c,16)-128;if(0==e&&32>f)return a;var g=parseInt(d,16)-128,h=(e<<12)+(f<<6)+g;return h>65535?a:String.fromCharCode(h)}),a=a.replace(/%([cd][0-9a-f])%([89ab][0-9a-f])/gi,function(a,b,c){var d=parseInt(b,16)-192;if(2>d)return a;var e=parseInt(c,16)-128;return String.fromCharCode((d<<6)+e)}),a=a.replace(/%([0-7][0-9a-f])/gi,function(a,b){return String.fromCharCode(parseInt(b,16))}),a},e=function(a){var b=a.query;a.query=new function(a){for(var b=/([^=&]+)(=([^&]*))?/g,c;c=b.exec(a);){var e=decodeURIComponent(c[1].replace(/\+/g,' ')),f=c[3]?d(c[3]):'';null!=this[e]?(this[e]instanceof Array||(this[e]=[this[e]]),this[e].push(f)):this[e]=f}this.clear=function(){for(e in this)this[e]instanceof Function||delete this[e]},this.toString=function(){var a='',b=encodeURIComponent;for(var c in this)if(!(this[c]instanceof Function))if(this[c]instanceof Array){var d=this[c].length;if(d)for(var e=0;d>e;e++)a+=a?'&':'',a+=b(c)+'='+b(this[c][e]);else a+=(a?'&':'')+b(c)+'='}else a+=a?'&':'',a+=b(c)+'='+b(this[c]);return a}}(b)};return function(a){this.toString=function(){return(this.protocol&&this.protocol+'://')+(this.user&&this.user+(this.pass&&':'+this.pass)+'@')+(this.host&&this.host)+(this.port&&':'+this.port)+(this.path&&this.path)+(this.query.toString()&&'?'+this.query)+(this.hash&&'#'+this.hash)},c(this,a)}}();define("jsurl",function(a){return function(){var b,c;return b||a.Url}}(this)),define('ui-modules/spotlight/scripts/scheduler',['jquery','underscore','ydn.db','./config','./browserdb','./tools','./log'],function(a,b,c,d,e,f,g){'use strict';var h={},i='jive.scheduler.droppedLock.',j='jive.scheduler.lastTaskRun.',k=10,l={},m=1,n={},o={},p=!1,q;if(h.registerTask=function(a){if(!a.name||!a.handler||!a.interval)throw Error('Invalid task specification');l[a.name]=a},h.removeTask=function(a){delete l[a]},h.triggerTask=function(a){e.enabled&&e.updateSetting(j+a,0)},h.start=function(){d.enableScheduler&&e.enabled&&!p&&(p=!0,e.getSettings().done(function a(c){var d=f.timestamp();b.each(l,function i(a,b){var f='scheduler.lastTaskRun.'+b,i=c[f]||0,j=a.lockTimeout||a.interval;e.enabled&&!o[b]&&d-i>a.interval&&h.acquireLock('scheduler.'+b,j).done(function k(i){g.debug('Starting scheduler task '+b),o[b]=d,a.handler(function j(){e.updateSetting(f,d),h.releaseLock(i),delete o[b]},c)}).fail(function l(a){if(!a||!a.name||'lock_held'!=a.name)throw a;g.debug2('Lock held for task '+b,a)})}),p&&e.enabled?q=setTimeout(h.start,1e3*k):g.debug("Stopped task scheduler")}).fail(e.errorHandler))},h.stop=function(){p=!1,clearTimeout(q)},h.acquireLock=function(b,g){return a.Deferred(function i(a){var i=f.timestamp(),j={windowId:d.windowId,name:b,ts:i},k=new c.db.KeyRange.only(b);e.put('locks',j).done(function l(b){n[b]=j,j.id=b,a.resolve(j)}).fail(function m(c){return'ConstraintError'!=c.name?(a.reject(c),void 0):(e.values('locks','name',k).done(function d(c){var d=c[0];d?i-d.ts>g?h.releaseLock(d).done(function e(){h.acquireLock(b,g).done(function(b){a.resolve(b)})}).fail(function f(b){a.reject(b)}):a.reject({name:'lock_held',message:'Lock '+b+' is already held (acquired at '+d.ts+')',existingLock:d}):h.acquireLock(b,g).done(function(b){a.resolve(b)})}).fail(e.errorHandler),void 0)})}).promise()},h.releaseLock=function(c){var d=b.isNumber(c)||b.isString(c)?c:c.id;return a.Deferred(function f(a){e.enabled&&e.remove('locks',d).done(function b(){delete n[d],a.resolve(),g.debug('Released lock',d)}).fail(a.reject)}).promise()},window.localStorage)for(var r=0;r<localStorage.length;r++){var s=localStorage.key(r);if(0==s.indexOf(i)){var t=parseInt(s.slice(i.length));h.releaseLock(t),localStorage.removeItem(s)}}var u=function(){return b.each(n,function a(b,c){localStorage&&(localStorage[i+c]=1),h.releaseLock(c)}),null};window.addEventListener&&window.addEventListener('onunload',u);var v=window.onbeforeunload;return window.onbeforeunload=function(){u(),v&&v.apply(this,arguments)},h}),define('ui-modules/spotlight/scripts/cache',['jquery','underscore','./tools','./log','./browserdb','./scheduler'],function(a,b,c,d,e,f){'use strict';var g={},h=1,i=function(a,b){var d=c.timestamp();return void 0===b&&(b=a.ttl||0),d-a.stored>b||(a.version||0)<h};return g.get=function(b,f){if(!f||!e.enabled)return c.valuePromise(null);var g=a.Deferred();return e.get('cache',b).then(function(a){a?i(a,f)?(d.debug('Expired cache key '+b),e.remove('cache',b),g.resolve()):(d.debug('Got cached key '+b),g.resolve(a.value)):g.resolve()},function(){g.reject()}),g.promise()},g.set=function(a,b,f){if(!e.enabled)return c.valuePromise(null);var g={key:a,stored:c.timestamp(),value:b,version:h,type:'cache',ttl:f};return d.debug('Caching key '+a,g),e.put('cache',g,a).fail(e.errorHandler)},g.clearExpired=function(){var c=a.Deferred();return e.values('cache').then(function(a){var d=0;b.each(a,function(a){i(a,a.ttl)&&(e.remove('cache',a.key),d++)}),c.resolve({total:a.length,expired:d,remaining:a.length-d})},function(){c.reject()}),c.promise()},g.clearAll=function(){return e._db.clear('cache')},f.registerTask({name:'cleanupExpiredCaches',interval:600,handler:function j(a,b){g.clearExpired().done(function(b){d.debug("Cleared "+b.expired+" expired items from cache ("+b.remaining+" items remain in cache"),a()})}}),g}),define('jive/search/search-metrics',['jquery','url','jiverscripts/oo/class','jive/namespace'],function(a,b,c){return jive.namespace('search'),jive.search.arrived=(new Date).getTime(),jive.search.SearchMetrics=c.extend(function(c){c.init=function(b){this.data={name:b,referrer:document.referrer,pageArriveDate:jive.search.arrived,pageLeftDate:void 0,queries:[]},this.byName={};var c=this;a(window).on('beforeunload',function(){c.data.pageLeftDate=(new Date).getTime(),c.data.queries.length&&c.commit(!0)})},this.commit=function(c){var d=JSON.stringify(this);return a.ajax({type:'POST',url:b.v3Url('/search/monitor'),data:d,async:!c,contentType:'application/json',dataType:'json'})},this.addQuery=function(a,b){return this.data.queries.push(a),b&&(this.byName[b]=a,'alt'===b.slice(0,3)&&(a.isAlternate=!0)),this},this.getQuery=function(a){return this.byName[a]},this.forEachCurrent=function(a){for(var b in this.byName)this.byName.hasOwnProperty(b)&&a(this.byName[b],b);return this},this.setChoice=function(a,b,c){var d=this.byName[a],e=d.getResult(b);return _.isObject(e)&&d.setChoice({index:b,item:e,clickedUrl:c,date:(new Date).getTime()}),this},this.toJSON=function(){return this.data}}),jive.search.SearchMetrics}),define('jive/search/search-metrics-query',['jiverscripts/oo/class','jive/namespace'],function(a){return jive.namespace('search'),jive.search.SearchMetricsQuery=a.extend(function(a){a.init=function(a,b){this.data={query:a||'',sentDate:b||(new Date).getTime(),returnedDate:void 0,results:[]}},this.addResults=function(a){var b=this.data.results;return b.push.apply(b,a),this},this.getResult=function(a){return this.data.results[a]},this.forEachResult=function(a){var b=this.data.results;for(var c in b)b.hasOwnProperty(c)&&a(b[c],c);return this},this.setReturnedDate=function(a){return this.data.returnedDate=a,this},this.incPage=function(){return this.data.pagesLoaded=(this.data.pagesLoaded||0)+1,this},this.abort=function(){return this.data.aborted=(new Date).getTime(),this},this.setChoice=function(a){return this.data.choice=a,this},this.toJSON=function(){return this.data}}),jive.search.SearchMetricsQuery}),define('ui-modules/spotlight/scripts/query',['underscore','jquery','jsurl','querystring','./config','./tools','./log','./cache','jive/search/search-metrics','jive/search/search-metrics-query'],function(a,b,c,d,e,f,g,h,i,j){'use strict';function k(a){return{id:a.id,type:a.type}}function l(a){if(a._searchMetricsType){var c=new jive.search.SearchMetricsQuery(a.url,(new Date).getTime());m.metrics.addQuery(c,a._searchMetricsType);var d=a.success;a.success=function(a,b,e){c.setReturnedDate((new Date).getTime()),c.addResults(a.list.map(k)),d&&d(a,b,e)}}b.ajax(a)}var m={},n={dataType:'text',type:'GET',data:{}},o=function(a){var b=f.hashCode(JSON.stringify({data:a.data,type:a.type||''}));return'query-'+a.url+'-'+b};m.metrics=new jive.search.SearchMetrics('spotlight-search'),m.RateLimiter=function(a){var b=this;b.delay=a,b.lastCall=0,this.limit=function(a){var c=(new Date).getTime(),d=b.delay-(c-b.lastCall);d>0?(g.debug3("Limiter waiting for "+d+" msecs before calling",a),setTimeout(function(){b.limit(a)},d+1)):(g.debug3("Limiter calling",a),b.lastCall=c,a())}},m.query=function(b,c){if(b.limiter)return b.limiter.limit(function(){b.limiter=null,m.query(b,c)}),void 0;if(b=a.extend({},n,b),c=b.cacheTTL||c,!c)return l(b),void 0;var d=o(b);h.get(d,c).then(function(e){var f=e&&e.result;if(f)b.success&&b.success(f),b.complete&&(a.isArray(b.complete)?a.each(b.complete,function(a){a(f)}):b.complete(f));else{if(c){var g=b.success;b.success=function(a,e,f){var i={url:b.url,data:b.data,type:'cachedquery',result:a};a&&h.set(d,i,c),g&&g(a,e,f)}}l(b)}})};var p=function(a){
return encodeURI(a).replace(/#/g,'%23').replace(/&/g,'%26').replace(/=/g,'%3D').replace(/\?/g,'%3F').replace(/\+/g,'%2B').replace(/,/g,'%2C')};return m.prepareFilters=function(b){var c=[];return a.each(b,function(b,d){var e='';return b?(a.isString(b)?e=p(b):a.isNumber(b)?e=p(''+b):a.isArray(b)&&(e=a.map(b,function(a){return p(''+a)}).join(',')),c.push(d+'('+e+')'),void 0):!0}),c},m.parseJiveAPIResponse=function(a){return JSON.parse(a.replace(/^throw [^;]*;/,''))},m.jiveQuery=function(b){b.url=_jive_base_url+(b.url||'/');var c=b.url,f=b.query;if(f=b.query?a.isString(b.query)?d.parse(b.query):b.query:{},b.filters&&(f.filter=(f.filter||[]).concat(m.prepareFilters(b.filters))),!a.isEmpty(f)){var g=new Url(c);g.query=a.extend(g.query||{},f),b.url=g.toString()}return b.type&&'post'==b.type.toLowerCase()||(b.dataType='text',b.dataFilter=m.parseJiveAPIResponse),b.headers={},e.userAuthToken&&(b.headers['X-J-Token']=e.userAuthToken),m.query(b)},m.iterateJiveQuery=function(b){b.success=function(c,d,e){var f=b._returned||0,g=!0,h=c.list||c.items||[];if(h.length){if(b.paginator&&(!b.limit||f+h.length<b.limit)&&(g=!1),b.callback)for(var i=0;i<h.length;i++){var j=b.callback(h[i],i+f);if(j===!1){g=!0;break}}if(b.pageCallback&&(j=b.pageCallback(h),j===!1&&(g=!0)),f+=h.length,!g){var k=b.paginator(b,c);if(k){var l=a.extend({},b,k);l._returned=f,m.iterateJiveQuery(l)}else g=!0}}g&&b.done&&b.done(f,c)},m.jiveQuery(a.omit(b,['limit','_returned','callback','pageCallback','paginator','done']))},m.V3APIPaginator=function(a,b){return b.links&&b.links.next?{url:b.links.next,query:null}:void 0},m}),define('ui-modules/spotlight/scripts/tools/html',['underscore','jquery','../tools'],function(a,b,c){'use strict';var d={IGNORE:0,BLOCK:1,INLINE:2,TEXT:3,SPACE:4},e=' … ',f={'#comment':d.IGNORE,'#doctype':d.IGNORE,AREA:d.IGNORE,BASE:d.IGNORE,BASEFONT:d.IGNORE,BUTTON:d.IGNORE,CANVAS:d.IGNORE,COL:d.IGNORE,COLGROUP:d.IGNORE,DATALIST:d.IGNORE,DEL:d.IGNORE,DIALOG:d.IGNORE,EMBED:d.IGNORE,FIGURE:d.IGNORE,FRAME:d.IGNORE,FRAMESET:d.IGNORE,HEAD:d.IGNORE,IFRAME:d.IGNORE,IMG:d.IGNORE,INPUT:d.IGNORE,KEYGEN:d.IGNORE,LINK:d.IGNORE,MAP:d.IGNORE,MENU:d.IGNORE,MENUITEM:d.IGNORE,META:d.IGNORE,NAV:d.IGNORE,NOFRAMES:d.IGNORE,NOSCRIPT:d.IGNORE,OBJECT:d.IGNORE,OPTGROUP:d.IGNORE,OPTION:d.IGNORE,PARAM:d.IGNORE,PROGRESS:d.IGNORE,SELECT:d.IGNORE,SCRIPT:d.IGNORE,SOURCE:d.IGNORE,STYLE:d.IGNORE,TEXTAREA:d.IGNORE,TH:d.IGNORE,THEAD:d.IGNORE,TRACK:d.IGNORE,VIDEO:d.IGNORE,WBR:d.IGNORE,ARTICLE:d.BLOCK,ASIDE:d.BLOCK,BLOCKQUOTE:d.BLOCK,BODY:d.BLOCK,CAPTION:d.BLOCK,DD:d.BLOCK,DETAILS:d.BLOCK,DIR:d.BLOCK,DIV:d.BLOCK,DL:d.BLOCK,DT:d.BLOCK,FIELDSET:d.BLOCK,FIGCAPTION:d.BLOCK,FOOTER:d.BLOCK,FORM:d.BLOCK,H1:d.BLOCK,H2:d.BLOCK,H3:d.BLOCK,H4:d.BLOCK,H5:d.BLOCK,H6:d.BLOCK,HEADER:d.BLOCK,HGROUP:d.BLOCK,HTML:d.BLOCK,LABEL:d.BLOCK,LEGEND:d.BLOCK,LI:d.BLOCK,MAIN:d.BLOCK,OL:d.BLOCK,P:d.BLOCK,PRE:d.BLOCK,RUBY:d.BLOCK,SAMP:d.BLOCK,SECTION:d.BLOCK,SUMMARY:d.BLOCK,TABLE:d.BLOCK,TBODY:d.BLOCK,TD:d.BLOCK,TFOOT:d.BLOCK,TITLE:d.BLOCK,TR:d.BLOCK,UL:d.BLOCK,A:d.INLINE,ABBR:d.INLINE,ADDRESS:d.INLINE,ACRONYM:d.INLINE,B:d.INLINE,BDI:d.INLINE,BDO:d.INLINE,BIG:d.INLINE,CENTER:d.INLINE,CITE:d.INLINE,CODE:d.INLINE,DFN:d.INLINE,FONT:d.INLINE,EM:d.INLINE,I:d.INLINE,INS:d.INLINE,KBD:d.INLINE,MARK:d.INLINE,METER:d.INLINE,OUTPUT:d.INLINE,Q:d.INLINE,RB:d.INLINE,RT:d.INLINE,S:d.INLINE,SPAN:d.INLINE,STRIKE:d.INLINE,STRONG:d.INLINE,SUB:d.INLINE,SUP:d.INLINE,TIME:d.INLINE,TT:d.INLINE,VAR:d.INLINE,U:d.INLINE,BR:d.SPACE,HR:d.SPACE,'#text':d.TEXT},g=function(g,h,i){if(!g||!g.trim().length)return'';i=a.sortBy(i||[],function(a){return-a.length}),g=g.replace(/<img[^>]*>/g,"");var j=b.parseHTML(g),k=[],l=null,m=0,n=!1,o=a.map(i,function(a){return new RegExp(c.escapeRegExp(a),'gi')}),p=o.length>0,q=function(b){if(!n){if(b=(b||'').replace(/\s+/g,' '),m+b.length>h){var c='';a.every(b.split(),function(a){return m+c.length<=h?(c+=a+' ',!0):!1}),b=c,n=!0}null!=l&&' '!=l[l.length-1]||(b=b.replace(/^\s+/,'')),b.length&&(p&&a.each(o,function(a){b=b.replace(a,/<em class=\"jive-hilite\">$&<\/em>/)}),k.push(b),l=b,m+=b.length)}},r=function(b){var c=b.nodeName,g=f[c]||d.BLOCK;switch(g){case d.IGNORE:break;case d.BLOCK:l&&-1==l.indexOf(e)&&q(e);case d.INLINE:a.each(b.childNodes,r);break;case d.TEXT:q(void 0===b.textContent?b.innerText:b.textContent);break;case d.SPACE:q(' ')}return!n};return a.each(j,r),k.length&&k[k.length-1]==e&&(k[k.length-1]=''),k.join('').trim()};return{getSnippet:g}}),define('ui-modules/spotlight/scripts/visor/apis',['jquery','underscore','../config','../browserdb','../tools','../log','../query','../tools/html','jiverscripts/conc/promise'],function(a,b,c,d,e,f,g,h,i){'use strict';var j={},k=3600,l=86400,m=86400,n={decision:!1,finalized:!0,helpful:!1,official:!0,outdated:!0,pending:!1,success:!0,wip:!0};return j.answersFilter=function(a){return'ANSWER'===a.responseType},j.notAnAnswerFilter=function(a){return'ANSWER'!==a.responseType},j.moveAnswersUpInTheList=function(a){if(a&&a.length>1){var c=b.filter(a,j.answersFilter);if(c.length>0){var d=b.filter(a,j.notAnAnswerFilter);return c.concat(d)}}return a},j.prepareFileName=function(a,b){if(10>b)return a;var c=a.split('.'),d=0,e=1,f=c[d],g=c[e],h=b,i=h-6,j=3,k=0;return f.length>h?f.substring(k,i)+'...'+f.substring(f.length-j)+'.'+g:a},j.CONTENT_SNIPPET_LENGTH=200,j.defaultFields={content:['onBehalfOf','parentPlace','type','question','iconCss','content','discussion','subject','resources','published','updated','contentID','author.@all','summary.@all','outcomeCounts','visibleToExternalContributors','uuid','index','favoriteObject.@all'],place:['id','type','placeID','iconCss','name','updated','description','url','groupType','creator','visibleToExternalContributors','parentPlace','groupTypeV2'],person:['id','type','thumbnailUrl','displayName','jive','emails','phoneNumbers','photos','resources']},j.resultConverters={content:function(a){if(!a.highlightBody&&a.content&&a.content.text)try{a.highlightBody=h.getSnippet(a.content.text,j.CONTENT_SNIPPET_LENGTH)}catch(c){f.warn("Could not create snippet for content item",a)}var d,g=a.author||a.onBehalfOf&&a.onBehalfOf.person,i=a.parentPlace;d='message'==a.type&&a.discussion?e.idFromUri(a.discussion):a.contentID||e.idFromUri(a.resources.self.ref);var k={metadataUpdated:a.partial?0:e.timestamp(),type:'content',subType:a.type,id:d,icon:a.iconCss,value:a.highlightSubject||a.subject,url:a.resources&&a.resources.html&&a.resources.html.ref||'#',outcomes:[],snippet:a.highlightBody||'',published:a.published,updated:a.updated,question:a.question,promotedResult:a.promotedResult,uuid:a.uuid,index:a.index,bookmarked:a.bookmarked,rootType:a.rootType,resultFromMetadata:a.resultFromMetadata,highlightMetadata:a.highlightMetadata,highlightSubject:a.highlightSubject};if(g&&(k.author={id:g.id,name:g.displayName,url:g.resources&&g.resources.html&&g.resources.html.ref||'#'}),i&&'person'!=i.type){var l=i.uri?e.idFromUri(i.uri):i.id;l&&(k.place={id:l,name:i.name,type:i.type,groupType:i.groupType,groupTypeV2:i.groupTypeV2,url:i.html||'#'})}if(a.outcomeCounts&&b.each(a.outcomeCounts,function(b,c){('message'==a.type||n[c])&&k.outcomes.push({key:c,count:b})}),a.visibleToExternalContributors&&(k.externallyAccessible=a.visibleToExternalContributors),k.feedbackToken=a.feedbackToken,k.responseType=a.responseType,k.highlightAnswers=a.highlightAnswers,a.attachmentName){var m=30;k.attachmentName=j.prepareFileName(a.attachmentName,m),k.icon='jive-icon-doctype-generic'}return k},place:function(b){var c={metadataUpdated:b.partial?null:e.timestamp(),type:'place',subType:b.type,id:b.placeID||b.id,uuid:b.uuid,index:b.index,icon:b.iconCss,value:b.name,lastUpdated:b.updated,description:a.trim(b.description||''),url:b.resources.html.ref,image:b.resources.avatar&&b.resources.avatar.ref};return'group'==b.type&&(c.groupType=b.groupType,c.groupTypeV2=b.groupTypeV2),'page'==b.type&&(c.icon='jive-icon-'+b.parentPlace.type,c.parentPlaceName=b.parentPlace.name),b.creator&&(c.creator={id:b.creator.id,name:b.creator.displayName||b.creator.name&&b.creator.name.formatted}),b.visibleToExternalContributors&&(c.externallyAccessible=b.visibleToExternalContributors),c},person:function(a){var c={metadataUpdated:a.partial?null:e.timestamp(),type:'person',id:a.id,uuid:a.uuid,index:a.index,icon:'user',image:a.thumbnailUrl||a.resources.avatar.ref,value:a.displayName,profile:{},summary:e.jivePersonSummary(a),url:a.resources.html.ref};return b.each(c.summary,function(a){a&&(c.profile[a.label.toLowerCase().replace(/ /g,'_')]=a.value)}),c}},j.getList=function(a,c,d){var e=b.extend({},c,{success:function(c){var e={list:b.map(c.list,j.resultConverters[a])};d(e)},error:function(a){d({error:a,list:[]})}});e.query||(e.query={}),e.query.fields||(e.query.fields=j.defaultFields[a].join(',')),g.jiveQuery(e)},j.frequentlyViewed={content:function(a,b){var c={url:'/api/core/v3/activities/frequent/content',query:{count:a},cacheTTL:k};j.getList('content',c,b)},place:function(a,b){var c={url:'/api/core/v3/activities/frequent/places',query:{count:a},cacheTTL:l};j.getList('place',c,b)},person:function(a,b){var c={url:'/api/core/v3/activities/frequent/people',query:{count:a},cacheTTL:m};j.getList('person',c,b)}},j.recentlyViewed={content:function(a,b){var c={url:'/api/core/v3/activities/recent/content',query:{count:a}};j.getList('content',c,b)},place:function(a,b){var c={url:'/api/core/v3/activities/recent/places',query:{count:a}};j.getList('place',c,b)},person:function(a,b){var c={url:'/api/core/v3/activities/recent/people',query:{count:a}};j.getList('person',c,b)}},j.getVisorFilters=function(){var b=new i;return a.ajax({url:_jive_base_url+'/api/core/v3/search/facets',success:function(a){b.emitSuccess(a)},error:function(a){b.emitError(a)}}),b},j}),define('ui-modules/spotlight/scripts/constants',[],function(){'use strict';var a={};return a.contentTypeTitles={post:'Blog Post',document:'Document',discussion:'Discussion',video:'Video',poll:'Poll',idea:'Idea',update:'Status Update',message:'Message',file:'File',task:'Task'},a.contentTypeTitlesPlural={post:'Blogs',document:'Documents',discussion:'Discussions',video:'Videos',poll:'Polls',idea:'Ideas',update:'Status Updates',message:'Messages',file:'Files',task:'Tasks'},a.filterTypeNames={people:'People',contentType:'Content Types',text:'Content',relationship:'Relationship',places:'Places',groups:'Groups',date:'Published',assignee:'Assignees',due:'Due',label:'Labels'},a.filterTypeIcons={person:'user',contentType:'file',text:'search',following:'exchange',participated:'retweet',place:'globe',group:'group',date:'calendar',assignee:'check',due:'clock-o',label:'tag'},a}),define('ui-modules/spotlight/scripts/parsers/constants',[],function(){'use strict';var a={};return a.D={FWD:0,BACK:1,BOTH:2,SELF:3},a.T={DUMMY:100,OP:90,IGNORE:80,OR:70,PARTICIPATED:32,FOLLOWED:31,VIEWED:30,DATE_BETWEEN:29,EXPLICIT_DATE:28,DUE:27,DATE:26,GROUP:24,PROJECT:23,SPACE:22,PLACE:21,DATE2:20,FROM:11,IN:10,LABEL:9,ASSIGNEE:8,SOMEONE:7,ME:6,CONTENT_TYPE:5,PERSON:3,PERSON_NAME:2,TEXT:1,NONE:0,IGNORE2:-1},a.F={SEARCH:0,TASKS_SEARCH:1},a.defaultLanguage='en',a}),define('ui-modules/spotlight/scripts/parsers/simple',['underscore','../tools','./constants'],function(a,b,c){'use strict';var d={},e=c.D,f=c.T;return d.parse=function(c){c=b.normalizeQuery(c);var d={text:[]},g=[];return a.each(b.tokenize(c),function(a){a&&(d.text.push([a.replace(',','\\,'),null]),g.push([a,{type:f.TEXT,dir:e.SELF,alts:{}}]))}),[{action:'search',normalizedQuery:c,filters:d,tokens:g,flags:[]}]},d}),define('ui-modules/spotlight/scripts/visor/search',['async','moment','underscore','../constants','../query','../tools','./apis','application/messaging','jive/i18n'],function(a,b,c,d,e,f,g,h,i){'use strict';var j={},k=10,l=4,m=7,n=86400,o=86400,p=3600,q=15e3,r={searchContent:!0,searchPeople:!0,searchPlaces:!0,contentSearchFilters:{},contentSearchParams:{}},s=['onBehalfOf','parentPlace','type','question','iconCss','highlightBody','subject','resources','published','updated','contentID','author','summary.@all','discussion','outcomeCounts','visibleToExternalContributors','uuid','index','promotedResult','rootType','highlightSubject'];j.SEARCH_TIMEOUT_LIMIT=q;var t=function(a,b){var d=[],f={};c.each(a,function(a,b){if(a&&a.length){var d=[];c.each(a,function(a){a&&d.push(a[0])}),f[b]=d}});var g=e.prepareFilters(f);return c.each(g,function(a){d.push('filter='+a)}),c.each(b,function(a,b){d.push(b+'='+a)}),d.push('origin=spotlight'),d.join('&')},u=function(a){return a.links&&a.links.next&&[a.links.next]||[]},v=function(a){a&&'timeout'===a.statusText&&h.info(i.jsGetMsg('post.dwr_error_message.text '))};return j.loadSuggestions=function(a,b,d){var f={};c.each(b,function(a,b){f[b]=[[a,null]]});var g=t(f),h={url:'/api/core/v3/search/suggestions?limit='+m+'&query='+a+'&'+g,cacheTTL:p,timeout:q,success:function(a){d(a)},error:function(a){v(a)}};e.jiveQuery(h)},j.runApiQueries=function(b,d){var f=[],g=[],h,i;d=c.extend({limit:null,callback:null,sort:function(a,b){return-(new Date(a.updated||a.published)-new Date(b.updated||b.published))}},d),a.each(b,function(a,b){var d=a.id;a=c.extend({},a,{success:function(a){if(a.suggestedQuery&&(h=a.suggestedQuery),a.categories&&(i=a.categories),a.list){c.each(a.list,function(a){a.queryId=d,f.push(a)});var e=u(a);e.length&&g.push(e[0]),b()}},error:b}),e.jiveQuery(a)},function(a){d.sort&&b.length>1&&f.sort(d.sort),v(a),d.limit&&f.length>d.limit&&(f=f.slice(0,d.limit)),d.callback&&d.callback({error:a,list:f,suggestedQuery:h,categories:i,next:g})})},j.performSearch=function(d,f,h){var i=[],m=[],w=1,x={content:{next:[],list:[]},place:{next:[],list:[]},person:{next:[],list:[]},suggestedQuery:""},y=function(){0==--w&&h(x)};if(f=c.extend({},r,f),c.isEmpty(d))return h(x),void 0;var z=d.text||[],A,B,C=d.person||[];if(d.person=null,C.length)C=c.filter(C,function(a){return'me'==a[1]?(i.push({url:'/api/core/v3/people/@me',cacheTTL:n,success:function(a){x.person.list.push(a),d.person=(d.person||[]).concat([a.resources.self.href,null])}}),!1):!0}),B=t({search:C},{count:l,fields:g.defaultFields.person.join(',')}),A={url:'/api/core/v3/search/people?'+B,cacheTTL:n,_searchMetricsType:'person',timeout:q,success:function(a){f.searchPeople&&c.extend(x.person.list,a.list.slice(0,l));var b=c.map(a.list,function(a){return[a.resources.self.ref,null]});d.person=(d.person||[]).concat(b)},error:function(a){v(a)}},i.push(A);else if(f.searchPeople&&z.length){var D=[];D[0]=[];for(var E=0,F=0;F<z[0].length;F++)null!=z[0][F]&&(D[0][E]=z[0][F].replace(/\*/,""),D[0][E+1]=z[0][F],E+=2);B=t({search:D},{count:l,fields:g.defaultFields.person.join(',')}),A={url:'/api/core/v3/search/people?'+B,cacheTTL:n,_searchMetricsType:'person',timeout:q,success:function(a){x.person.list=a.list.slice(0,l),x.person.next=u(a),a.suggestedQuery&&(x.suggestedQuery=a.suggestedQuery)},error:function(a){v(a)}},m.push(A)}var G,H=d.place||[];d.place=null,H.length?(B=t({search:H},{count:l,fields:g.defaultFields.place.join(',')}),G={url:'/api/core/v3/search?'+B,cacheTTL:o,_searchMetricsType:'place',timeout:q,success:function(a){f.searchPlaces&&(x.place.list=a.list,x.place.next=u(a),a.suggestedQuery&&(x.suggestedQuery=a.suggestedQuery)),d.place=c.map(a.list,function(a){return[a.resources.self.ref,null]})},error:function(a){v(a)}},i.push(G)):f.searchPlaces&&z.length&&(B=t({search:z},{count:l,socialSearch:!0,fields:g.defaultFields.place.join(',')}),G={url:'/api/core/v3/search?'+B,cacheTTL:o,_searchMetricsType:'place',timeout:q,success:function(a){x.place.list=a.list,x.place.next=u(a),a.suggestedQuery&&(x.suggestedQuery=a.suggestedQuery)},error:function(a){v(a)}},m.push(G)),w+=m.length,c.each(m,function(a){a.complete=function(){y()},e.jiveQuery(a)}),a.each(i,function(a,b){a.complete=function(){b()},e.jiveQuery(a)},function(){if(null!==d.place&&0==d.place.length)return y(),void 0;if(!f.searchContent)return y(),void 0;var a=[],e=function(d,e){var g={};c.each(d,function(a,c){if(a&&a.length)switch(c){case'person':g.author=a;break;case'contentType':g.type=a;break;case'place':g.place=a;break;case'text':g.search=a;break;case'date':a[0][0]&&(g.after=[[b(a[0][0]).format(),null]]),a[0][1]&&(g.before=[[b(a[0][1]).format(),null]])}}),g.search&&g.search.length||(g.search=[['a*',null]]),c.each(f.contentSearchFilters,function(a,b){g[b]=[[a,null]]});var h=c.extend({sortBy:'updatedDesc',collapse:!0,fields:s.join(','),count:k},f.contentSearchParams);B=t(g,h);var i='/api/core/v3/search/contents?'+B;a.push({id:e,url:i,_searchMetricsType:'content',limit:k,cacheTTL:p,timeout:q,error:function(a){v(a)}})};if(null!==d.person){if(d.person.length>0){var g=d.person.slice(0,5);c.each(g,function(a,b){var f=c.extend({},d);f.person=[a],e(f,b)})}}else e(d,0);j.runApiQueries(a,{limit:k,callback:function(a){x.content=a,a.suggestedQuery&&(x.suggestedQuery=a.suggestedQuery),a.categories&&(x.categories=a.categories),y()}})})},j}),define('ui-modules/spotlight/scripts/visor/suggestions/ingress',['underscore','async','../../config','../../browserdb','../../tools','../../scheduler','../../log','../../query','../apis'],function(a,b,c,d,e,f,g,h,i){'use strict';var j={},k=60,l=86400*k*1e3,m=48,n=Math.pow(2,m),o={NO_EXPIRE:1},p=1e3,q=500,r=100,s={content:'C',place:'P',person:'U',search:'S'},t=['jive:group','jive:space','jive:place','jive:project'],u=new h.RateLimiter(1e3),v={person:86400,place:604800},w={content:function(c,f){g.debug('Updating metadata for '+c.length+' content items'),b.eachSeries(e.chunk(c,25),function(b,c){var e=[],f={};a.each(b,function(a){var b=''+a.id;e.push({key:b,request:{method:'GET',endpoint:'/api/core/v3/contents/'+a.id+'?directive=silent&fields='+i.defaultFields.content.join(',')}}),f[b]=a}),h.jiveQuery({url:'/api/core/v3/executeBatch',type:'POST',contentType:'application/json',data:JSON.stringify(e),dataType:'json',limiter:u,success:function k(b){a.each(b,function(a){var b=a.data;if(!b)return g.warn('Could not get metadata for content '+a.id,a),void 0;var c=i.resultConverters.content(b),e=j.mergeSuggestions(f[a.id],c);d.put('suggestions',e,e.key).fail(d.errorHandler)}),c()},error:c})},f)},person:function A(c,f){g.debug('Updating metadata for '+c.length+' people'),b.eachSeries(e.chunk(c,25),function(b,c){var e=a.pluck(b,'id').join(',');h.iterateJiveQuery({url:'/api/core/v3/people',query:{ids:e,fields:i.defaultFields.person.join(',')},limiter:u,callback:function f(a,c){var e=i.resultConverters.person(a),f=j.mergeSuggestions(b[c],e);return d.put('suggestions',f,f.key).fail(d.errorHandler),!0},done:function g(a){c()},error:c})},f)},place:function(c,f){g.debug('Updating metadata for '+c.length+' places'),b.eachSeries(e.chunk(c,25),function(b,c){var e=[],f={};a.each(b,function(a){var b=''+a.id;e.push({key:b,request:{method:'GET',endpoint:'/api/core/v3/places/'+a.id+'?fields='+i.defaultFields.place.join(',')}}),f[b]=a}),h.jiveQuery({url:'/api/core/v3/executeBatch',type:'POST',contentType:'application/json',data:JSON.stringify(e),dataType:'json',limiter:u,success:function k(b){a.each(b,function(a){var b=a.data;if(!b)return g.warn('Could not get metadata for place '+a.id,a),void 0;var c=i.resultConverters.place(b),e=j.mergeSuggestions(f[a.id],c);d.put('suggestions',e,e.key).fail(d.errorHandler)}),c()},error:c})},f)}};j.ACTIVITY_EXPIRATION_DAYS=k,j.ACTIVITY_EXPIRATION_MSECS=l;var x=function(b,d){if(b.noExpire||!j.isReferenceExpired(b.ts))switch(b._type){case'v3Content':switch(b._subType){case'bookmark':b.weight=900,b.author.partial=!0;break;case'recentContent':b.weight=700}d(i.resultConverters.content(b)),b.author&&''+b.author.id!=''+c.userId&&d(i.resultConverters.person(b.author)),b.parentPlace&&b.parentPlace.uri&&'user'!=b.parentPlace.type&&'person'!=b.parentPlace.type&&d({type:'place',id:e.idFromUri(b.parentPlace.uri),subType:b.parentPlace.type,value:b.parentPlace.name,url:b.parentPlace.html});break;case'search':d({type:'search',icon:'search',key:b.query,value:b.query});break;case'jiveOpenSocial':if(!b.object)return;switch(b.verb){case'jive:installed':case'jive:promoted':return;case'jive:created':if(b.object&&'jive:announcement'==b.object.objectType)return;case'jive:notification':case'jive:modified':case'jive:mentioned':case'jive:replied':case'jive:outcome_set':case'jive:bookmarked':default:var f,g,h={};if('jive:comment'==b.object.objectType||'jive:message'==b.object.objectType?(g=b.jive.parent,f=b.jive.parentActor):(g=b.object,f=b.object.author),a.extend(h,{type:'content',id:e.idFromUri(g.id),subType:g.objectType.split(':')[1],value:g.displayName,url:g.url,question:g.question,published:g.published,updated:g.updated,snippet:g.summary,icon:b.jive.iconCss.replace(/\-comment$/,'')}),b.target&&a.contains(t,b.target.objectType)){var k={type:'place',id:e.idFromUri(b.target.id),subType:b.target.objectType.split(':')[1],value:b.target.displayName,url:b.target.url};h.place={id:k.id,type:k.subType,name:k.value,url:k.url},d(k)}if(f||(f=b.actor),!f)break;h.author={id:e.idFromUri(f.id),name:f.displayName,url:f.url},d(h);var l=b.actor&&b.actor.id&&e.idFromUri(b.actor.id);l&&l!=''+c.userId&&d({type:'person',id:l,image:b.actor.image.url,value:b.actor.displayName,url:b.actor.url})}}};j.logActivity=function(a){g.debug3('Parsing activity',a),x(a,function(a){a.ts||(a.ts=e.timestampMsec()),a.key=s[a.type]+a.id,a.value=a.value.trim(),g.debug3('Logging activity item',a),d.put('activity',a,''+a.ts).fail(d.errorHandler)})},j.isTimestampExpired=function(a){return e.timestampMsec()-a>l};var y=function(a){return Math.round(a/p)*p};j.packReference=function(a){var b=0;return a.noExpire&&(b|=o.NO_EXPIRE),y(a.ts)+(a.weight||q)+b*n},j.unpackReference=function(a){return{ts:y(a%n),weight:a%p/(p-1),flags:parseInt(a/n)}},j.isReferenceExpired=function(a){var b=j.unpackReference(a);return!(b.flags&o.NO_EXPIRE)&&j.isTimestampExpired(b.ts)},j.removeExpired=function(b){d.values('activity').done(function(c){var e=0;a.each(c,function(a){!a.noExpire&&j.isTimestampExpired(a.ts)&&(d.remove('activity',a.ts),e++)}),b(e)}).fail(d.errorHandler)},j.needsMetadataUpdate=function(a){var b=e.timestamp();return w[a.type]&&(!a.metadataUpdated||b-a.metadataUpdated>v[a.type])},j.updateMetadata=function(c,e){var f={},g=0;a.each(c,function(a){w[a.type]&&(f[a.type]?f[a.type].push(a):f[a.type]=[a],g++)}),b.each(a.pairs(f),function(a,b){var c=w[a[0]],d=a[1];c(d,b)},function(){g&&d.updateSetting('toplistActivityOffset',0),e&&e()})},j.mergeSuggestions=function(b,c){var d=b||c;if(b&&c){var e=(b.refs||[]).concat(c.refs||[]),f=function(a){return a.metadataUpdated||a.refs&&a.refs.length&&a.refs.slice(-1)[0]/1e3||0};d=c.metadataUpdated&&!b.metadataUpdated||f(b)<f(c)?a.extend({},b,c):a.extend({},c,b),d.bookmarked=b.bookmarked||c.bookmarked,d.refs=e}return d.refs=a.unique(a.sortBy(a.reject(d.refs,j.isReferenceExpired)),!0),d};var z=function(a,b,c,g,i,k,m){var n='tasks.'+a+'.lastLogged',o=i[n]||0,p=o,q=o||e.timestampMsec()-l,s=k?null:{count:r,after:e.formatJiveDate(new Date(q))};h.iterateJiveQuery({url:b,query:s,limiter:u,callback:function t(a){var b=a.published,d=new Date(b).getTime();return j.isTimestampExpired(d)||o&&o>=d?!1:m&&!m(a)?!0:(d>p&&(p=d),a._type='jiveOpenSocial',a._subType=c,a.ts=d,a.partial=!0,j.logActivity(a),!0)},paginator:k?null:h.V3APIPaginator,done:function v(a){d.updateSetting(n,p),f.triggerTask('updateIndex'),g()}})};return f.registerTask({name:'getRecentContent',interval:240,handler:function B(b,c){var k='tasks.getRecentContent.lastLogged',l=c[k],m=l||0,n=0;h.iterateJiveQuery({url:'/api/core/v3/activities/recent/content',query:{fields:i.defaultFields.content.join(','),count:25},limiter:u,callback:function o(a,b){var c=a.lastActivity;return(!n||n>c)&&(n=c),j.isTimestampExpired(c)||c&&l&&l>=c?!1:(c>m&&(m=c),a._type='v3Content',a._subType='recentContent',a.ts=c,j.logActivity(a),void 0)},paginator:function(b,c){if(c.list.length){if(!n)return g.warn('Missing lastActivity timestamp on recent content'),!1;var d=e.formatJiveDate(new Date(n));return n=0,{query:a.extend({},b.query,{before:d})}}return!1},done:function p(a){a&&(d.updateSetting(k,m),f.triggerTask('updateIndex')),b()}})}}),f.registerTask({name:'getBookmarks',interval:600,handler:function C(b,f){var g='tasks.getBookmarks.lastLogged',i=f[g]||0,k=i;h.iterateJiveQuery({url:'/api/core/v3/contents',query:{count:20},filters:{type:'favorite',author:'/people/'+c.userId},limiter:u,callback:function l(b){var c=e.timestampMsec(b.published);return i&&i>=c?!1:(c>k&&(k=c),a.extend(b,b.favoriteObject||{}),b.ts=c,b._type='v3Content',b._subType='bookmark',b.noExpire=!0,b.bookmarked=!0,j.logActivity(b),!0)},paginator:h.V3APIPaginator,done:function m(a,c){k&&d.updateSetting(g,k),b()}})}}),f.registerTask({name:'getActivities',interval:240,handler:function D(a,b){z('getActivities','/api/core/v3/people/@me/activities','myActivity',a,b,!1,function d(a){return a.actor&&e.idFromUri(a.actor.id)==''+c.userId})}}),f.registerTask({name:'getInbox',interval:240,handler:function E(a,b){z('getInbox','/api/core/v3/inbox','inbox',a,b)}}),f.registerTask({name:'getRecognitions',interval:600,handler:function F(a,b){z('getRecognitions','/api/core/v3/people/@me/@recognition','myActivity',a,b,!0)}}),f.registerTask({name:'cleanupOldActivity',interval:600,handler:function G(a,b){j.removeExpired(function c(b){b&&g.debug('Removed '+b+' expired activity items'),a()})}}),j}),define('ui-modules/spotlight/scripts/visor/suggestions/index',['jquery','underscore','async','../../config','../../browserdb','../../constants','../../tools','../../log','../../tools/html','../suggestions/ingress','../apis','../../scheduler'],function(a,b,c,d,e,f,g,h,i,j,k,l){'use strict';var m={},n=1e4,o=10,p=4,q=10*o,r=50,s='lastIndexedActivity',t='toplistActivityOffset',u=['content','place','person'],v=.1,w=10,x=1,y=1,z=1,A=100,B=Math.E,C=-1/4,D=10,E=10,F=3,G=5,H=function(a){return g.tokenize(g.normalizeQuery(g.decodeHtmlEntities(a)))},I=function(a){return D-a},J=function(a){return Math.pow(B,a*C)},K=function(a){var b=j.unpackReference(a);if(!b.ts)return 0;var c=g.timestampMsec(),d=c-b.ts,e=0;if(d<j.ACTIVITY_EXPIRATION_MSECS){var f=D*d/j.ACTIVITY_EXPIRATION_MSECS;e=I(f)}return e=(z+e*(A-z))*y,e*b.weight},L=function(a){var c=a.refs||a,d=0;return b.each(c,function(a){d+=K(parseInt(a))}),d},M=function(a,c,d){var f=g.timestampMsec(),h=g.arrayToObject(c,'key');e.get('tokenIndex',a).done(function(g){g?g.refs=b.object(b.map(g.refs,function(a,c){return[c,b.map(a,parseInt)]})):g={refs:{}},b.each(g.refs,function(a,c){if(!h[c]){var d=b.reject(a.slice(1),j.isReferenceExpired);if(d.length){var e=a[0];g.refs[c]=[e].concat(d)}else delete g.refs[c]}}),b.each(c,function(c){var d=g.refs[c.key],e=c.tokens[a];d=d?d.slice(1).concat(c.refs):c.refs,g.refs[c.key]=[e].concat(b.unique(b.sortBy(d),!0))}),b.size(g.refs)>r&&(g.refs=b.object(b.sortBy(b.pairs(g.refs),function(a){return L(a[1].slice(1))}).slice(-r))),g.key=a,g.updated=f,e.put('tokenIndex',g,g.key).done(function(){d()}).fail(function(a){d(a)})}).fail(e.errorHandler)};return m.updateIndex=function(a,d){if(!e.enabled)return a(0),void 0;var f=d.lastIndexedActivity||-1,g=new e.KeyRange.lowerBound(''+(f+1)),i='-> fetch new activities',k=e.errorHandler;e.values('activity',g,n).done(function(d){if(!d.length)return a(0),void 0;h.debug('-> found '+d.length+' new activities');var g={},l=function(a){var b=g[a.key];a=j.mergeSuggestions(a,b),g[a.key]=a};b.each(d,function(a){try{a.refs=[j.packReference(a)],delete a.ts,delete a.weight,l(a)}catch(b){h.error("Unable to process suggestion for activity:",a,b)}}),i='-> fetch existing suggestions from db',h.time(i),e.values('suggestions',b.keys(g)).done(function(k){h.timeEnd(i),b.each(k,function(a){a&&(a.refs=b.map(a.refs,parseInt),l(a))});var m={},n=[];b.each(g,function(a){a.tokens={},b.each(H(a.value),function(b){b&&(a.tokens[b]=w)}),a.authorName&&b.each(H(a.authorName),function(b){b&&(a.tokens[b]=x+(a.tokens[b]||0))}),e.put('suggestions',a,a.key).fail(e.errorHandler);var c=Math.max.apply(null,a.refs);c>f&&(f=c),b.each(a.tokens,function(b,c){m[c]?m[c].push(a):m[c]=[a]}),j.needsMetadataUpdate(a)&&n.push(a)}),j.updateMetadata(n),i='-> update token index records',h.time(i),c.each(b.pairs(m),function(a,b){M(a[0],a[1],b)},function(b){if(h.timeEnd(i),b)throw b;f&&e.updateSetting(s,f),a(d.length)})},k)},k)},m.clearIndex=function(a){e._db.clear(['suggestions','tokenIndex']).done(function(){e.updateSetting(s,0),a()}).fail(function(b){a(b)})},m.getAllSuggestions=function(){var c=e.KeyRange();return a.Deferred(function(a){e.values('suggestions',c,1e4).done(function(c){b.each(c,function(a){a.score=L(a),a.unpackedRefs=b.map(a.refs,function(a){var b=j.unpackReference(a);return b.packed=a,b.score=K(a),b})}),a.resolve(c)}).fail(e.errorHandler)})},m.updateTopLists=function(d){var f=e.KeyRange(),g={},i,j=a.Deferred(),k=function(a){h.debug('Updating top lists'),c.each(u,function(c,d){var f=b.filter(a,function(a){return a.type==c}),h=b.sortBy(f,function(a){return L(a)}),i={key:'top-'+c,type:'toplist',list:h.reverse().slice(0,p)};g[c]=i.list,e.put('lists',i,i.key).done(function(){d()}).fail(j.reject)},function(a){return a?(j.reject(a),void 0):(e.updateSetting(t,i).done(function(){j.resolve(g)}).fail(e.errorHandler),void 0)})};return e.getSettings().done(function(a){i=a[s]||0,d||i>a[t]?e.values('suggestions',f,1e5).done(k).fail(e.errorHandler):j.resolve(!1)}).fail(e.errorHandler),j.promise()},m.getTopLists=function(a){var c={};return b.each(u,function(a){c[a]=[]}),e.enabled?(m.updateTopLists().done(function(d){if(d)return a(d),void 0;var f=b.map(u,function(a){return'top-'+a});e.values('lists',f).done(function(d){b.each(u,function(a,b){d[b]&&(c[a]=d[b].list)}),a(c)}).fail(e.errorHandler)}).fail(e.errorHandler),void 0):(a(c),void 0)},m.searchSuggestions=function(a,d){var f=a.filters,g=a.normalizedQuery;if(!(e.enabled&&f&&f.text&&f.text.length))return d([]),void 0;var i=b.uniq(b.map(f.text,b.first)),j=[],k={},l={},m={};b.each(i,function(a){l[a]={}}),c.each(i,function(a,c){if(!a)return c(),void 0;var d='-> db query - '+a,f=new e.KeyRange.bound(a,a+'￿');h.time(d),e.values('tokenIndex',f,1e3).done(function(e){h.timeEnd(d);var f=[];b.each(e,function(c){b.each(c.refs,function(d,e){var g=d[0],h=b.map(d.slice(1),parseInt);a!=c.key&&(g*=v);var i=b.reduce(h,function(a,b){return a+K(b)*g});l[a][e]=g,k[e]=(k[e]||0)+i,f.push(e)})}),j.push(f),c()}).fail(e.errorHandler)},function(a){var c;c=1==j.length?j[0]:b.intersection.apply(this,j);var f=b.sortBy(c,function(a){return k[a]});f=f.reverse().slice(0,q),e.values('suggestions',f).done(function(a){var c=[];b.each(a,function(a){var d=0;if((a.value.toLowerCase()!=g||'search'!=a.type)&&(b.each(i,function(b){d+=l[b][a.key]}),a.updatedScore=L(a)*d,a.updatedScore)){var e=a.value.toLowerCase();e==g?a.updatedScore*=E:g.length>=F&&0==e.indexOf(g)&&(a.updatedScore*=G),c.push(a)}});var e=b.sortBy(c,function(a){return a.updatedScore}).reverse().slice(0,o);d(e)}).fail(e.errorHandler)})},l.registerTask({name:'updateIndex',interval:30,handler:function N(a,b){var c='Suggestion index update';h.time(c),m.updateIndex(function d(b){h.timeEnd(c),b?(c='Update top lists',h.time(c),m.updateTopLists(function d(){h.timeEnd(c),a()})):a()},b)}}),m}),define('ui-modules/spotlight/scripts/localStorage',['./tools','vendor/fuzzysort/fuzzysort'],function(a,b){'use strict';var c={},d='jive_search_history',e=31,f=100,g=86400,h=-500,i=5,j='date',k=function(a,b){return window.localStorage.getItem(a)||b},l=function(a,b){window.localStorage.setItem(a,JSON.stringify(b))},m=function(){var b=[],c=k(d,'');if(c&&(b=JSON.parse(c)),Array.isArray(b)){var e=o(b);return a.sortObjectsArray(e,j)}return[]},n=function(b){return Array.isArray(b)?b.map(function(b){var c=new Date(1e3*b.date);return b.humanDate=a.formatDateToAmPm(c),b}):b},o=function(a,b){var c=b||e,d=parseInt(((new Date).getTime()/1e3).toFixed(0));return a.filter(function(a){return a.date>=d-g*c})},p=function(a,b){return a&&b?a.toLowerCase()===b.toLowerCase():!1};return c.addUserSearchHistory=function(a,b,c){if(a&&b){c||(c=f);var e=m(),g={userId:a,value:b,date:Math.round(Date.now()/1e3)};if(Array.isArray(e)){var h=!1,i=e.map(function(c){var d=p(b,c.value);return c.userId===a&&d?(h=!0,
g):c});h||i.push(g),i.length>c&&i.shift(),l(d,i)}}},c.deleteSearchItem=function(a,b){if(a&&b){var c=m(),e=c.filter(function(a){return a.value!==b});l(d,e)}},c.getCompleteSearchHistory=function(){return m()},c.getUserSearchHistory=function(c,d){var e=m(),f=[],g=e.filter(function(a){var b=f.some(function(b){return p(b,a.value)});return f.push(a.value),a.userId===c&&!b}),k=[];if(d){var l=b.go(d,g,{key:'value',allowTypo:!0,threshold:h,limit:i});l.forEach(function(a){k.push(a.obj)})}else k=g;var o=a.sortObjectsArray(k,j);return n(o)},c}),define('soy!jive.soy.spotlight.search.externalFacet',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.search'),jive.soy.spotlight.search.externalFacet=function(a,b){var c=b||new soy.StringBuilder;return c.append('<option value="type:extStreamActivity, source:',soy.$$escapeHtml(a.type),'">',soy.$$escapeHtml(a.name),'</option>'),b?'':c.toString()},jive.soy.spotlight.search.externalFacet}),define('soy!jive.soy.spotlight.search.facetI18nKey',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.search'),jive.soy.spotlight.search.facetI18nKey=function(b,c){var d=c||new soy.StringBuilder;return d.append('discussion'==b.type&&b.subtype&&'question'==b.subtype?soy.$$escapeHtml(a._i18n(a.getMinKey(b.searchType+'.'+b.type+'.'+b.subtype),[])):soy.$$escapeHtml(a._i18n(a.getMinKey(b.searchType+'.'+b.type),[]))),c?'':d.toString()},jive.soy.spotlight.search.facetI18nKey}),define('soy!jive.soy.spotlight.search.facet',['soyDeps','soy!jive.soy.spotlight.search.facetI18nKey'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.search'),jive.soy.spotlight.search.facet=function(a,b){var c=b||new soy.StringBuilder;if(!a.hidden||a.hidden.length<1){var d=new soy.StringBuilder;jive.soy.spotlight.search.facetI18nKey({type:a.type,searchType:a.searchType,subtype:a.hidden},d),d=d.toString(),c.append('<option value="type:',soy.$$escapeHtml(a.type),'">',soy.$$escapeHtml(d),'</option>')}return b?'':c.toString()},jive.soy.spotlight.search.facet}),define('soy!jive.soy.spotlight.search.subtypeFacet',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.search'),jive.soy.spotlight.search.subtypeFacet=function(a,b){var c=b||new soy.StringBuilder;return c.append('<option value="type:',soy.$$escapeHtml(a.parentFacetValue),', subtype:',soy.$$escapeHtml(a.valueData),'">',soy.$$escapeHtml(a.text),'</option>'),b?'':c.toString()},jive.soy.spotlight.search.subtypeFacet}),define('soy!jive.soy.spotlight.search.renderSubfacets',['soyDeps','soy!jive.soy.spotlight.search.facetI18nKey','soy!jive.soy.spotlight.search.subtypeFacet'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.search'),jive.soy.spotlight.search.renderSubfacets=function(a,b){var c=b||new soy.StringBuilder;if(a.subfacets)for(var d=a.subfacets,e=d.length,f=0;e>f;f++){var g=d[f],h=new soy.StringBuilder;jive.soy.spotlight.search.facetI18nKey({type:a.parentFacetValue,searchType:a.searchType,subtype:g},h),jive.soy.spotlight.search.subtypeFacet({valueData:g,parentFacetValue:a.parentFacetValue,text:h.toString()},c)}return b?'':c.toString()},jive.soy.spotlight.search.renderSubfacets}),define('soy!jive.soy.spotlight.search.contentFacets',['soyDeps','soy!jive.soy.spotlight.search.externalFacet','soy!jive.soy.spotlight.search.facet','soy!jive.soy.spotlight.search.renderSubfacets'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.search'),jive.soy.spotlight.search.contentFacets=function(a,b){var c=b||new soy.StringBuilder;c.append('<span id="single-content-filter-dropdown" class="j-visor-spotlight-filter"><label for="content-types" class="j-508-label">Filter content types</label><select id="content-types" name="types">');for(var d=a.contentFacets,e=d.length,f=0;e>f;f++){var g=d[f];jive.soy.spotlight.search.facet({type:g,active:a.selectedContentFacet==g,searchType:'search.content',hidden:a.visibleContentSubtypeFacets[g]},c),jive.soy.spotlight.search.renderSubfacets({subfacets:a.visibleContentSubtypeFacets[g],subfacetParam:'subtype',facet:'content',parentFacetValue:g,searchType:'search.content'},c)}if(a.externalActivityFacets&&0!=a.externalActivityFacets.length)for(var h=a.externalActivityFacets,i=h.length,j=0;i>j;j++){var k=h[j];jive.soy.spotlight.search.externalFacet({name:k.displayName,type:k.type},c)}return c.append('</select></span>'),b?'':c.toString()},jive.soy.spotlight.search.contentFacets}),define('soy!jive.soy.spotlight.search.externalFacetMultiChoice',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.search'),jive.soy.spotlight.search.externalFacetMultiChoice=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="spotlight-multi-filters-checkbox-div"><input class="spotlight-type-filters-input" type="checkbox" id="',soy.$$escapeHtml(a.type),'" value="type:extStreamActivity, source:',soy.$$escapeHtml(a.type),'" /><label class="spotlight-type-filters-label" for="',soy.$$escapeHtml(a.type),'">',soy.$$escapeHtml(a.name),'</label><label class="spotlight-type-filters-count" for="',soy.$$escapeHtml(a.type),'">(',soy.$$escapeHtml(null!=a.contentAggregations[a.type]?a.contentAggregations[a.type]:0),')</label></li></div>'),b?'':c.toString()},jive.soy.spotlight.search.externalFacetMultiChoice}),define('soy!jive.soy.spotlight.search.facetMultiChoice',['soyDeps','soy!jive.soy.spotlight.search.facetI18nKey'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.search'),jive.soy.spotlight.search.facetMultiChoice=function(a,b){var c=b||new soy.StringBuilder;if(!a.hidden||a.hidden.length<1){var d=new soy.StringBuilder;jive.soy.spotlight.search.facetI18nKey({type:a.type,searchType:a.searchType,subtype:a.hidden},d),d=d.toString(),c.append('<div class="spotlight-multi-filters-checkbox-div"><input class="spotlight-type-filters-input" type="checkbox" id="',soy.$$escapeHtml(a.type),'" value="type:',soy.$$escapeHtml(a.type),'" /><label class="spotlight-type-filters-label" for="',soy.$$escapeHtml(a.type),'">',soy.$$escapeHtml(d),'</label><label class="spotlight-type-filters-count" for="',soy.$$escapeHtml(a.type),'">(',soy.$$escapeHtml(null!=a.contentAggregations[a.type]?a.contentAggregations[a.type]:0),')</label></li></div>')}return b?'':c.toString()},jive.soy.spotlight.search.facetMultiChoice}),define('soy!jive.soy.spotlight.search.subtypeFacetMultiChoice',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.search'),jive.soy.spotlight.search.subtypeFacetMultiChoice=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="spotlight-multi-filters-checkbox-div"><input class="spotlight-type-filters-input" type="checkbox" id="',soy.$$escapeHtml(a.valueData),'" value="type:',soy.$$escapeHtml(a.parentFacetValue),', subtype:',soy.$$escapeHtml(a.valueData),'" /><label class="spotlight-type-filters-label" for="',soy.$$escapeHtml(a.valueData),'">',soy.$$escapeHtml(a.text),'</label><label class="spotlight-type-filters-count" for="',soy.$$escapeHtml(a.valueData),'">(',soy.$$escapeHtml(null!=a.contentAggregations[a.valueData]?a.contentAggregations[a.valueData]:0),')</label></li></div>'),b?'':c.toString()},jive.soy.spotlight.search.subtypeFacetMultiChoice}),define('soy!jive.soy.spotlight.search.renderSubfacetsMultiChoice',['soyDeps','soy!jive.soy.spotlight.search.facetI18nKey','soy!jive.soy.spotlight.search.subtypeFacetMultiChoice'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.search'),jive.soy.spotlight.search.renderSubfacetsMultiChoice=function(a,b){var c=b||new soy.StringBuilder;if(a.subfacets)for(var d=a.subfacets,e=d.length,f=0;e>f;f++){var g=d[f],h=new soy.StringBuilder;jive.soy.spotlight.search.facetI18nKey({type:a.parentFacetValue,searchType:a.searchType,subtype:g},h),jive.soy.spotlight.search.subtypeFacetMultiChoice({valueData:g,parentFacetValue:a.parentFacetValue,text:h.toString(),contentAggregations:a.contentAggregations},c)}return b?'':c.toString()},jive.soy.spotlight.search.renderSubfacetsMultiChoice}),define('soy!jive.soy.spotlight.search.contentFacetsMultiChoice',['soyDeps','soy!jive.soy.spotlight.search.externalFacetMultiChoice','soy!jive.soy.spotlight.search.facetMultiChoice','soy!jive.soy.spotlight.search.renderSubfacetsMultiChoice'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.search'),jive.soy.spotlight.search.contentFacetsMultiChoice=function(a,b){var c=b||new soy.StringBuilder;c.append('<div class="spotlight-type-filters-table"><div class="j-visor-spotlight-filter">');for(var d=a.contentFacets,e=d.length,f=0;e>f;f++){var g=d[f];jive.soy.spotlight.search.facetMultiChoice({type:g,active:a.selectedContentFacet==g,searchType:'search.content',hidden:a.visibleContentSubtypeFacets[g],contentAggregations:a.contentAggregations},c),jive.soy.spotlight.search.renderSubfacetsMultiChoice({subfacets:a.visibleContentSubtypeFacets[g],subfacetParam:'subtype',facet:'content',parentFacetValue:g,searchType:'search.content',contentAggregations:a.contentAggregations},c)}if(a.externalActivityFacets&&0!=a.externalActivityFacets.length)for(var h=a.externalActivityFacets,i=h.length,j=0;i>j;j++){var k=h[j];jive.soy.spotlight.search.externalFacetMultiChoice({name:k.displayName,type:k.type,contentAggregations:a.contentAggregations},c)}return c.append('</div></div>'),b?'':c.toString()},jive.soy.spotlight.search.contentFacetsMultiChoice}),define('soy!jive.soy.spotlight.search.timeRanges',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.search'),jive.soy.spotlight.search.timeRanges=function(b,c){var d=c||new soy.StringBuilder;d.append('<span id="time-range-old" class="j-visor-spotlight-filter"><label for="time-ranges" class="j-508-label">Filter time range</label><div class="time-range-dropdown-spotlight"><select id="time-ranges" name="ranges">');for(var e=b.timeRanges,f=e.length,g=0;f>g;g++){var h=e[g];d.append('<option value = "',soy.$$escapeHtml(h),'" ',b.selectedTimeRange==h?'selected':'','>',soy.$$escapeHtml(a._i18n(a.getMinKey('search.time_ranges.'+h),[])),'</option>')}d.append('</select></div><div class="down-pointer dp-time-range"></div></span><div id="time-range-new" class="j-visor-spotlight-filter time-range-filter"><div class="timerange-dropdown-container"><div id="time-range-filter-button" title="',soy.$$escapeHtml(a._i18n('95c5ce',[])),'" class="dropbtn">',soy.$$escapeHtml(a._i18n('95c5ce',[])),'</div><div class="down-pointer dp-time-range"></div></div><div class="j-pop-main j-menu j-quick-menu spotlight-timerange-dropdown-container"><div class="below-arrow below-arrow-time-range"></div><div id="time-range-dropdown-spotlight" class="dropdown-content">');for(var i=b.timeRanges,j=i.length,k=0;j>k;k++){var l=i[k];d.append('<a href="#" data-value = "',soy.$$escapeHtml(l),'" ',b.selectedTimeRange==l?'selected':'','>',soy.$$escapeHtml(a._i18n(a.getMinKey('search.time_ranges.'+l),[])),'</a>')}return d.append('</div></div></div>'),c?'':d.toString()},jive.soy.spotlight.search.timeRanges}),define('soy!jive.soy.spotlight.visor',['soyDeps','soy!jive.soy.spotlight.search.contentFacets','soy!jive.soy.spotlight.search.contentFacetsMultiChoice','soy!jive.soy.spotlight.search.timeRanges'],function(a){return jive.namespace.call(this,'jive.soy.spotlight'),jive.soy.spotlight.visor=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div id="j-search-visor" role="combobox" aria-expanded="false" aria-autocomplete="list" aria-owns="j-visor-search-input" aria-hidden="true" aria-busy="true"><div class="j-search-visor-inner"><div class="j-visor-searchbar-container"><div id="j-visor-searchbar-wrapper" class="j-visor-searchbar-wrapper"><label for="j-visor-search-input" class="j-508-label">',soy.$$escapeHtml(a._i18n(a.getMinKey('global.search'),[])),'</label><span class="j-search-n-spinner-wrapper"><i class="j-searchbar-icon icon-search"></i><i class="j-searchbar-thinker icon-spinner spin" aria-hidden="true"></i></span><input id="j-visor-search-input" type="text" class="j-search-input" value="" required="required" autocomplete="off"/><a class="j-searchbar-close" aria-label="',soy.$$escapeHtml(a._i18n(a.getMinKey('global.close'),[])),'" href="#"><i class="icon-close-thin"></i></a></div><div class="j-advance-search-button-container"><a href="/search.jspa" id="j-visor-advanced-search-button" class="j-advance-search-button">',soy.$$escapeHtml(a._i18n('678665',[])),'</a></div></div><div id="introductory-search-text" class="introductory-search-text"><p>',soy.$$escapeHtml(a._i18n(a.getMinKey('search.spotlight.intro.text'),[])),'</p></div>',b.enableQueryFilters?'<ul class="j-visor-parserfilters list-unstyled list-inline"></ul>':'','<nav class="j-visor-spotlight-filters">'),jive.soy.spotlight.search.timeRanges(b,d),jive.soy.spotlight.search.contentFacets(b,d),d.append('<span class="j-visor-spotlight-filter j-visor-spotlight-filter-all-content" style="width: auto"><span id="spotlight-type-filters-clickable" style="display: inline-flex"><div class="spotlight-type-filters-button" title="',soy.$$escapeHtml(a._i18n('4b64f2',[])),'">',soy.$$escapeHtml(a._i18n('4b64f2',[])),'</div><div class="down-pointer dp-multi-choice-filter"></div></span><div style="display: none;" class="j-pop-main j-menu j-quick-menu spotlight-type-filters-form"><div class="below-arrow"></div><div class="spotlight-type-filters">'),jive.soy.spotlight.search.contentFacetsMultiChoice(b,d),d.append('<div class="j-form-row spotlight-type-filter-buttons"><button class="spotlight-type-filter-button">DONE</button><button class="spotlight-type-filter-button-cancel">CANCEL</button></div></div></div></span></nav><div class="did-you-mean"></div><nav class="j-visor-tabs"><a class="j-visor-menu-item j-visor-menu-item-recently j-active" data-view="recently" role="menuitem" href="#">',soy.$$escapeHtml(a._i18n(a.getMinKey('search.spotlight.views.recently.title'),[])),'</a><a class="j-visor-menu-item j-visor-menu-item-default" data-view="default" role="menuitem" href="#">',soy.$$escapeHtml(a._i18n(a.getMinKey('search.spotlight.views.default.title'),[])),'</a>',b.isNewUi?'<a class="j-visor-menu-item j-visor-menu-item-searchHistory" data-view="searchHistory" role="menuitem" href="#">'+soy.$$escapeHtml(a._i18n(a.getMinKey('search.spotlight.views.search_history.title'),[]))+'</a>':'','<a class="j-visor-menu-item j-visor-menu-item-bookmarks" data-view="bookmarks" role="menuitem" href="#">',soy.$$escapeHtml(a._i18n(a.getMinKey('search.spotlight.views.bookmarks.title'),[])),'</a></nav><div class="',b.spotlightDefaultEnabled?'j-visor-views-spotlight-default-enabled':'',' j-visor-views"><div class="j-visor-view-blank"></div></div></div></div>'),c?'':d.toString()},jive.soy.spotlight.visor}),define('soy!jive.soy.spotlight.didYouMean',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.spotlight'),jive.soy.spotlight.didYouMean=function(b,c){b=b||{};var d=c||new soy.StringBuilder;return d.append('<li class="j-no-results"><div class="j-result-content"><p class="j-disambiguation j-did-you-mean">',b.suggestedQuery?soy.$$escapeHtml(a._i18n('7588e9',[]))+' <a class="mark j-did-you-mean-link" href="#" >'+soy.$$escapeHtml(b.suggestedQuery)+'</a>?':'','</p></div></li>'),c?'':d.toString()},jive.soy.spotlight.didYouMean}),define('soy!jive.soy.spotlight.suggestion.content',['soyDeps','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.suggestion'),jive.soy.spotlight.suggestion.content=function(b,c){var d=c||new soy.StringBuilder;return d.append('<li class="j-visor-result j-visor-suggestion j-visor-suggestion-',soy.$$escapeHtml(b.type),'-',soy.$$escapeHtml(b.subType),'" role="option" data-type="',soy.$$escapeHtml(b.type),'" data-subType="',soy.$$escapeHtml(b.subType),'" data-url="',soy.$$escapeHtml(b.url),'" >',b.icon?'<span class="j-visor-suggestion-icon-wrapper"><i class="jive-icon-big '+soy.$$escapeHtml(b.icon)+'" role="img"></i></span>':'','<div class="j-visor-suggestion-text"><span class="j-508-label">',soy.$$escapeHtml(a._i18n(a.getMinKey('global.access.content.type.'+b.subType),[])),'</span><a href="',soy.$$escapeHtml(b.url),'?sr=spotlight&searchId=',soy.$$escapeHtml(b.uuid),'&searchIndex=',soy.$$escapeHtml(b.index),'" class="j-visor-content-result">',soy.$$escapeHtml(b.value),'</a><small>'),b.author&&b.place?jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('03ffff'),arg0:'<a href="'+soy.$$escapeHtml(b.author.url)+'">'+soy.$$escapeHtml(b.author.name)+'</a>',arg1:'<a href="'+soy.$$escapeHtml(b.place.url)+'">'+soy.$$escapeHtml(b.place.name)+'</a>',noAutoEscape:'true'},d):b.author?jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('4d2658'),arg0:'<a href="'+soy.$$escapeHtml(b.author.url)+'">'+soy.$$escapeHtml(b.author.name)+'</a>',noAutoEscape:'true'},d):b.place?jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('e0bc26'),arg0:'<a href="'+soy.$$escapeHtml(b.place.url)+'">'+soy.$$escapeHtml(b.place.name)+'</a>',noAutoEscape:'true'},d):d.append('&nbsp;'),d.append('</small></div></li>'),c?'':d.toString()},jive.soy.spotlight.suggestion.content}),define('soy!jive.soy.spotlight.suggestion.place',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.suggestion'),jive.soy.spotlight.suggestion.place=function(a,b){var c=b||new soy.StringBuilder;return c.append('<li class="j-visor-result j-visor-suggestion j-visor-suggestion-',soy.$$escapeHtml(a.type),'-',soy.$$escapeHtml(a.subType),'" role="option" data-type="',soy.$$escapeHtml(a.type),'" data-subType="',soy.$$escapeHtml(a.subType),'" data-url="',soy.$$escapeHtml(a.url),'" >',a.icon?'<span class="j-visor-suggestion-icon-wrapper"><i class="jive-icon-big '+soy.$$escapeHtml(a.icon)+'"></i>'+(a.displayExternalAccess?'<i class="icon-eye j-externally-accessible" role="img"></i>':'')+'</span>':'','<div class="j-visor-suggestion-text"><a href="',soy.$$escapeHtml(a.url),'?sr=spotlight&searchId=',soy.$$escapeHtml(a.uuid),'&searchIndex=',soy.$$escapeHtml(a.index),'" class="j-visor-content-result">',soy.$$escapeHtml(a.value),'</a>',a.description?'<small title="'+soy.$$escapeHtml(a.description)+'">'+soy.$$escapeHtml(a.description)+'&nbsp;</small>':a.displayType?'<small>'+soy.$$escapeHtml(a.displayType)+'&nbsp;</small>':'','</div></li>'),b?'':c.toString()},jive.soy.spotlight.suggestion.place}),define('soy!jive.soy.spotlight.suggestion.person',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.suggestion'),jive.soy.spotlight.suggestion.person=function(a,b){var c=b||new soy.StringBuilder;return c.append('<li class="j-visor-result j-visor-suggestion j-visor-suggestion-',soy.$$escapeHtml(a.type),'-',soy.$$escapeHtml(a.subType),'" role="option" data-type="',soy.$$escapeHtml(a.type),'"',a.subType?'data-subType="'+soy.$$escapeHtml(a.subType)+'"':'','data-url="',soy.$$escapeHtml(a.url),'" >',a.image?'<span class="j-visor-suggestion-icon-wrapper"><img class="jive-avatar" src="'+soy.$$escapeHtml(a.image)+'" width="25" role="img"  alt=""/></span>':'','<div class="j-visor-suggestion-text"><a href="',soy.$$escapeHtml(a.url),'?sr=spotlight&searchId=',soy.$$escapeHtml(a.uuid),'&searchIndex=',soy.$$escapeHtml(a.index),'" class="jiveTT-hover-user j-visor-content-result" data-userid="',soy.$$escapeHtml(a.id),'">',soy.$$escapeHtml(a.value),'</a><small>',a.profile&&a.profile.title?soy.$$escapeHtml(a.profile.title):'','</small></div></li>'),b?'':c.toString()},jive.soy.spotlight.suggestion.person}),define('soy!jive.soy.spotlight.parserFilters',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.spotlight'),jive.soy.spotlight.parserFilters=function(a,b){for(var c=b||new soy.StringBuilder,d=a.filters,e=d.length,f=0;e>f;f++){var g=d[f];c.append(g?'<li><i class="'+soy.$$escapeHtml(a.icon)+'"></i><span>'+soy.$$escapeHtml(a.filterString)+'</span></li>':'')}return b?'':c.toString()},jive.soy.spotlight.parserFilters}),define('soy!jive.soy.spotlight.views.defaultView',['soyDeps','soy!jive.soy.spotlight.suggestion.content','soy!jive.soy.spotlight.suggestion.person','soy!jive.soy.spotlight.suggestion.place'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.views'),jive.soy.spotlight.views.defaultView=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<label for="j-visor-suggestions-content" class="j-508-label">',soy.$$escapeHtml(a._i18n('4efda8',[])),'</label><label class="spotlight-recently-content-label" style="display:none">',soy.$$escapeHtml(a._i18n('4efda8',[])),'</label><ul id="j-visor-suggestions-content" class="j-visor-suggestions j-visor-suggestions-content" role="listbox">'),b.contentSuggestions)for(var e=b.contentSuggestions,f=e.length,g=0;f>g;g++){var h=e[g];jive.soy.spotlight.suggestion.content(h,d)}if(d.append('</ul><label for="j-visor-suggestions-content" class="j-508-label">',soy.$$escapeHtml(a._i18n('218aef',[])),'</label><label class="spotlight-recently-content-label" style="display:none">',soy.$$escapeHtml(a._i18n('218aef',[])),'</label><ul id="j-visor-suggestions-person" class="j-visor-suggestions j-visor-suggestions-person" role="listbox">'),b.personSuggestions)for(var i=b.personSuggestions,j=i.length,k=0;j>k;k++){var l=i[k];jive.soy.spotlight.suggestion.person(l,d)}if(d.append('</ul><label for="j-visor-suggestions-content" class="j-508-label" ',b.workGroupsEnabled?'style="display:none"':'','>',soy.$$escapeHtml(a._i18n('b64c73',[])),'</label><label class="spotlight-recently-content-label" style="display:none">',soy.$$escapeHtml(a._i18n('b64c73',[])),'</label><ul id="j-visor-suggestions-place" class="j-visor-suggestions j-visor-suggestions-place" role="listbox" ',b.workGroupsEnabled?'style="display:none"':'','>'),b.placeSuggestions)for(var m=b.placeSuggestions,n=m.length,o=0;n>o;o++){var p=m[o];jive.soy.spotlight.suggestion.place(p,d)}return d.append('</ul>'),c?'':d.toString()},jive.soy.spotlight.views.defaultView}),define('soy!jive.soy.spotlight.views.search',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.views'),jive.soy.spotlight.views.search=function(b,c){b=b||{};var d=c||new soy.StringBuilder;return d.append('<div class="j-visor-search-results-wrapper"><label for="j-visor-search-results-top" class="j-508-label">',soy.$$escapeHtml(a._i18n('6ea1d8',[])),'</label><ul id="j-visor-search-results-top" class="j-visor-search-results-inner j-visor-search-results-top" role="listbox"></ul><div class="j-visor-search-results-header"><h2 id="j-visor-search-results-header-content" class="j-visor-search-main-header">',soy.$$escapeHtml(String(a._i18n('4efda8',[])).toUpperCase()),'</h2><nav class="j-visor-filters font-color-meta" ',b.workGroupsEnabled?'style="display:none"':'','><a class="j-visor-search-filter j-visor-search-filter-container" href="#"></a><a class="j-visor-search-filter-clear" href="#">',soy.$$escapeHtml(a._i18n('6ef2ab',[])),'</a></nav></div><ul id="j-visor-search-results-content" class="j-visor-search-results-inner j-visor-search-results-main" data-type="content" role="listbox" aria-labelledby="j-visor-search-results-header-content"></ul><aside class="j-visor-search-results-aside"><h2 id="j-visor-search-results-header-person">',soy.$$escapeHtml(String(a._i18n('218aef',[])).toUpperCase()),'<a href="#" class="j-get-more-link font-color-meta" data-type="person" aria-hidden="true">',soy.$$escapeHtml(String(a._i18n('5054a9',[])).substr(0,1).toUpperCase()+String(a._i18n('5054a9',[])).substr(1)),'</a></h2><ul id="j-visor-search-results-people" class="j-visor-search-results-people" data-type="person" role="listbox" aria-labelledby="j-visor-search-results-header-person"></ul><h2 id="j-visor-search-results-header-place" ',b.workGroupsEnabled?'style="display:none"':'','>',soy.$$escapeHtml(String(a._i18n('b64c73',[])).toUpperCase()),'<a href="#" class="j-get-more-link font-color-meta" data-type="place" aria-hidden="true">',soy.$$escapeHtml(String(a._i18n('5054a9',[])).substr(0,1).toUpperCase()+String(a._i18n('5054a9',[])).substr(1)),'</a></h2><ul id="j-visor-search-results-places" class="j-visor-search-results-places" data-type="place" role="listbox" aria-labelledby="j-visor-search-results-header-place" ',b.workGroupsEnabled?'style="display:none"':'','></ul></aside></div>'),c?'':d.toString()},jive.soy.spotlight.views.search}),define('soy!jive.soy.spotlight.views.recently',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.views'),jive.soy.spotlight.views.recently=function(b,c){b=b||{};var d=c||new soy.StringBuilder;return d.append('<label for="j-visor-suggestions-content" class="j-508-label">',soy.$$escapeHtml(a._i18n('4efda8',[])),'</label><label class="spotlight-recently-content-label" style="display:none">',soy.$$escapeHtml(a._i18n('4efda8',[])),'</label><ul id="j-visor-suggestions-content" class="j-visor-suggestions j-visor-suggestions-content" role="listbox"></ul><label for="j-visor-suggestions-content" class="j-508-label">',soy.$$escapeHtml(a._i18n('218aef',[])),'</label><label class="spotlight-recently-content-label" style="display:none">',soy.$$escapeHtml(a._i18n('218aef',[])),'</label><ul id="j-visor-suggestions-person" class="j-visor-suggestions j-visor-suggestions-person" role="listbox"></ul><label for="j-visor-suggestions-content" class="j-508-label" ',b.workGroupsEnabled?'style="display:none"':'','>',soy.$$escapeHtml(a._i18n('b64c73',[])),'</label><label class="spotlight-recently-content-label" style="display:none">',soy.$$escapeHtml(a._i18n('b64c73',[])),'</label><ul id="j-visor-suggestions-place" class="j-visor-suggestions j-visor-suggestions-place" role="listbox" ',b.workGroupsEnabled?'style="display:none"':'','></ul><a href="',soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,'/content',{filterID:'historyarchetype[content]'})),'" class="j-visor-show-all">',soy.$$escapeHtml(a._i18n('5fe419',[])),'</a>'),c?'':d.toString()},jive.soy.spotlight.views.recently}),define('soy!jive.soy.spotlight.views.searchHistory',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.views'),jive.soy.spotlight.views.searchHistory=function(b,c){var d=c||new soy.StringBuilder;if(d.append(b.showCompletePage?'<div id="j-search-history-page-title" class="j-search-history-page-title"><div class="j-search-history-header-text-value">'+soy.$$escapeHtml(a._i18n('69b84f',[]))+'</div></div><div id="j-search-history-headers" class="j-search-history-headers"><div class="j-search-history-header-icon">&nbsp;</div><div class="j-search-history-header-text"><div class="j-search-history-header-text-value">'+soy.$$escapeHtml(a._i18n('02384c',[]))+'</div></div><div class="j-search-history-header-date"><div class="j-search-history-header-text-value">'+soy.$$escapeHtml(a._i18n('0e6149',[]))+'</div></div><div class="j-search-history-header-icon-delete">&nbsp;</div></div>':'','<ul id="j-visor-search-history" class="j-visor-search-history-content" role="listbox">'),b.userSearchHistory)for(var e=b.userSearchHistory,f=e.length,g=0;f>g;g++){var h=e[g];d.append('<li id="j-user-search-history-item" class="',b.showCompletePage?'j-visor-search-history-item-page':'j-visor-search-history-item','" value="',soy.$$escapeHtml(h.value),'">');var i=jive.soy.func.buildUrl(window._jive_base_url,'/search.jsp?q='+h.value+'*');d.append('<a href="',b.showCompletePage?soy.$$escapeHtml(i):'#','"><div class="j-visor-search-history-icon"><i class="j-visor-icon jive-icon-glyph icon-history" role="img"></i></div><div class="j-visor-search-history-item-text"><span>',soy.$$escapeHtml(h.value),'</span></div><div class="j-visor-search-date">',b.showCompletePage?soy.$$escapeHtml(h.humanDate):'','</div><div id="j-visor-search-history-icon" class="j-visor-search-history-icon"><i class="j-visor-icon jive-icon-glyph icon-close-med"  value="',soy.$$escapeHtml(h.value),'" role="img"></i></div></a></li>')}return d.append('</ul>',b.showCompletePage?'':'<a href="'+soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,'/history'))+'" class="j-visor-show-all-history">'+soy.$$escapeHtml(a._i18n('856c0f',[]))+'</a>'),c?'':d.toString()},jive.soy.spotlight.views.searchHistory}),define('soy!jive.soy.spotlight.views.bookmarks',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.views'),jive.soy.spotlight.views.bookmarks=function(b,c){var d=c||new soy.StringBuilder;return d.append('<label for="j-visor-bookmarks-content" class="j-508-label">',soy.$$escapeHtml(a._i18n('8ce9c3',[])),'</label><ul id="j-visor-bookmarks-content" class="j-visor-suggestions j-visor-suggestions-content j-visor-bookmarks-content" role="listbox"></ul><a href="',soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,'/bookmarks')),'" class="j-visor-show-all-bookmarks">',soy.$$escapeHtml(a._i18n('5866be',[])),'</a>'),c?'':d.toString()},jive.soy.spotlight.views.bookmarks}),define('soy!jive.soy.spotlight.views.suggestions',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.views'),jive.soy.spotlight.views.suggestions=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<div class="j-visor-search-results-wrapper"><ul id="j-visor-suggestions-spotlight" class="j-visor-search-history-content-suggested" role="listbox">'),b.userSearchHistory)for(var e=b.userSearchHistory,f=e.length,g=0;f>g;g++){var h=e[g];d.append('<li id="j-user-search-history-item-suggested" class="j-visor-search-history-item-suggested" value="',soy.$$escapeHtml(h.value),'"><div class="j-visor-search-history-item-suggested"><div class="j-visor-search-history-icon"><i class="j-visor-icon jive-icon-glyph icon-history" role="img"></i></div><div class="j-visor-search-history-item-text-suggested"><span>',soy.$$escapeHtml(h.value),'</span></div><div id="j-visor-search-history-icon-suggested" class="j-visor-search-history-icon"><i class="j-visor-icon jive-icon-glyph icon-close-med" value="',soy.$$escapeHtml(h.value),'" role="img"></i></div></div></li>')}if(b.suggestionsArray)for(var i=b.suggestionsArray,j=i.length,k=0;j>k;k++){var l=i[k];d.append('<li id="j-user-search-history-item-suggested" class="j-visor-search-history-item-suggested" value="',soy.$$escapeHtml(l),'"><div class="j-visor-search-history-item-suggested"><div class="j-visor-search-history-icon"><i class="j-visor-icon jive-icon-glyph icon-search" role="img"></i></div><div class="j-visor-search-history-item-text-suggested"><span>',soy.$$escapeHtml(l),'</span></div></div></li>')}return d.append('</ul></div><button id="history-search-button" class="history-search-button j-btn-callout j-btn-global j-selected">',soy.$$escapeHtml(a._i18n('76d147',[])),'</button>'),c?'':d.toString()},jive.soy.spotlight.views.suggestions}),define('soy!jive.soy.spotlight.search.resultContent',['soyDeps','soy!jive.shared.displayutil.icon','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.search'),jive.soy.spotlight.search.resultContent=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<li class="j-visor-result j-visor-search-result-',soy.$$escapeHtmlAttribute(b.type),' j-visor-search-result-',soy.$$escapeHtmlAttribute(b.type),'-',soy.$$escapeHtmlAttribute(b.subType),' ',b.hidden?'j-visor-result-hidden':'',' ',b.promotedResult?'j-visor-result-promoted':'','" role="option" data-type="',soy.$$escapeHtmlAttribute(b.type),'" data-subType="',soy.$$escapeHtmlAttribute(b.subType),'" data-url="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.url)),'" data-id="',soy.$$escapeHtmlAttribute(b.id),'" ><div class="j-visor-content-icon-wrapper"><a class="j-visor-result-link" href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.url)),'?sr=spotlight&searchId=',soy.$$escapeUri(b.uuid),'&searchIndex=',soy.$$escapeUri(b.index),b.feedbackToken?'&feedbackToken='+soy.$$escapeUri(b.feedbackToken):'','">'),'comment'==b.subType?jive.shared.displayutil.icon(soy.$$augmentMap(b,{size:'big',type:b.subType,rootType:b.rootType}),d):d.append('<i title="',soy.$$escapeHtmlAttribute(String(b.type).replace(/\w\S*/g,function(a){return a.charAt(0).toUpperCase()+a.substr(1).toLowerCase()})),'" role="img" class="jive-icon-big ',soy.$$escapeHtmlAttribute(b.icon),'"></i>'),d.append('</a>',b.bookmarked?'<i class="icon-bookmark" role="img"></i>':'','</div><section class="j-search-title"><a class="j-visor-result-link" href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.url)),'?sr=spotlight&searchId=',soy.$$escapeUri(b.uuid),'&searchIndex=',soy.$$escapeUri(b.index),b.feedbackToken?'&feedbackToken='+soy.$$escapeUri(b.feedbackToken):'','"><h4>',soy.$$filterNoAutoescape(b.value),'</h4></a></section>',b.feedbackToken?'<div style="font-size: 12px;float: right;"><a class="j-feedback-link" href="/api/core/v3/search/feedback/relevant/'+soy.$$escapeHtmlAttribute(b.feedbackToken)+'/true"><span class="icon-arrow-up2"></span>Helpful</a><a class="j-feedback-link" href="/api/core/v3/search/feedback/relevant/'+soy.$$escapeHtmlAttribute(b.feedbackToken)+'/false"><span class="icon-arrow-down2"></span>Not Helpful</a></div>':'','<section class="j-search-time-wrapper">'),
b.publishedAgo&&b.updatedAgo?jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('34b29b'),arg0:'<time class="j-search-created-timeago" title="'+soy.$$escapeHtmlAttribute(b.published?require('moment').utc(parseFloat(b.published)?parseFloat(b.published):b.published).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('LLL'):'')+'">'+soy.$$escapeHtml(b.publishedAgo)+'</time>',arg1:'<time class="j-search-modified-timeago" title="'+soy.$$escapeHtmlAttribute(b.updated?require('moment').utc(parseFloat(b.updated)?parseFloat(b.updated):b.updated).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('LLL'):'')+'">'+soy.$$escapeHtml(b.updatedAgo)+'</time>',noAutoEscape:'true'},d):b.publishedAgo&&jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('922c09'),arg0:'<time class="j-search-created-timeago" title="'+soy.$$escapeHtmlAttribute(b.published?require('moment').utc(parseFloat(b.published)?parseFloat(b.published):b.published).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('LLL'):'')+'">'+soy.$$escapeHtml(b.publishedAgo)+'</time>',noAutoEscape:'true'},d),d.append(b.author?' <span class="j-bull">&bull;</span> <a class="result-content-anchor" href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.author.url))+'" aria-hidden="true">'+soy.$$escapeHtml(b.author.name)+'</a>':'',b.place?' <span class="j-bull">&bull;</span> <a class="result-content-anchor" href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.place.url))+'" aria-hidden="true">'+soy.$$escapeHtml(b.place.name)+'</a>':'','<span class="j-508-label"> &bull; '),b.author&&b.place?jive.shared.soy.i18nHelper({i18nKey:'03ffff',arg0:b.author.name,arg1:b.place.name},d):b.author&&jive.shared.soy.i18nHelper({i18nKey:'4d2658',arg0:b.author.name},d),d.append('</span>',b.displayExternalAccess?' <span class="j-bull">&bull;</span> <span class="j-browse-external-access">'+soy.$$escapeHtml(a._i18n('fa6162',[]))+'</span>':'','</section><section class="j-search-answer">'),'ANSWER'==b.responseType&&b.highlightAnswers)for(var e=b.highlightAnswers,f=e.length,g=0;f>g;g++){var h=e[g];d.append('<p>',b.attachmentName?soy.$$filterNoAutoescape(b.attachmentName)+'  ':'',h?soy.$$filterNoAutoescape(h):'','</p>')}else b.snippet?d.append('<p>',b.attachmentName?soy.$$filterNoAutoescape(b.attachmentName)+'  ':'',b.snippet?soy.$$filterNoAutoescape(b.snippet):'','</p>'):d.append('<p>',b.attachmentName?soy.$$filterNoAutoescape(b.attachmentName)+'  ':'','</p>');if(d.append('</section><section id="metadata-highlights"><p class="metadata-highlight">',b.resultFromMetadata?soy.$$filterNoAutoescape(b.resultFromMetadata):'','</p></section>'),b.outcomes&&b.outcomes.length||b.promotedResult){d.append('<section class="j-search-badges"><ul>',b.promotedResult?'<li><span class="j-outcome-badge j-promoted-result-badge">'+soy.$$escapeHtml(a._i18n('26afd0',[]))+'</span></li>':'');for(var i=b.outcomes,j=i.length,k=0;j>k;k++){var l=i[k];d.append('<li><span class="j-outcome-badge">',soy.$$escapeHtml(a._i18n(a.getMinKey('outcomes.badge.'+l.key),[])),'</span></li>')}d.append('</ul></section>')}return d.append('</li>'),c?'':d.toString()},jive.soy.spotlight.search.resultContent}),define('soy!jive.soy.spotlight.search.resultPerson',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.search'),jive.soy.spotlight.search.resultPerson=function(a,b){var c=b||new soy.StringBuilder;return c.append('<li class="j-visor-result j-visor-search-result-',soy.$$escapeHtml(a.type),' j-visor-search-result-',soy.$$escapeHtml(a.type),'-',soy.$$escapeHtml(a.subType),' ',a.hidden?'j-visor-result-hidden':'','" role="option" data-type="',soy.$$escapeHtml(a.type),'"',a.subType?'data-subType="'+soy.$$escapeHtml(a.subType)+'"':'','data-value="',soy.$$escapeHtml(a.value),'" data-url="',soy.$$escapeHtml(a.url),'" data-id="',soy.$$escapeHtml(a.id),'" ><a href="',soy.$$escapeHtml(a.url),'?sr=spotlight&searchId=',soy.$$escapeHtml(a.uuid),'&searchIndex=',soy.$$escapeHtml(a.index),'" class="j-visor-result-link jiveTT-hover-user" data-userid="',soy.$$escapeHtml(a.id),'"><img class="jive-avatar" src="',soy.$$escapeHtml(a.image),'" border="0" height="25" data-height="25" width="25" alt="',soy.$$escapeHtml(a.value),'">',soy.$$escapeHtml(a.value),'</a><small>',a.profile.title?soy.$$escapeHtml(a.profile.title):'','</small></li>'),b?'':c.toString()},jive.soy.spotlight.search.resultPerson}),define('soy!jive.soy.spotlight.search.resultPlace',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.search'),jive.soy.spotlight.search.resultPlace=function(a,b){var c=b||new soy.StringBuilder;return c.append('<li class="j-visor-result j-visor-search-result-',soy.$$escapeHtml(a.type),' j-visor-search-result-',soy.$$escapeHtml(a.type),'-',soy.$$escapeHtml(a.subType),' ',a.hidden?'j-visor-result-hidden':'','" role="option" data-type="',soy.$$escapeHtml(a.type),'" data-subType="',soy.$$escapeHtml(a.subType),'" data-value="',soy.$$escapeHtml(a.value),'" data-url="',soy.$$escapeHtml(a.url),'" data-id="',soy.$$escapeHtml(a.id),'" ><a class="j-visor-result-link" href="',soy.$$escapeHtml(a.url),'?sr=spotlight&searchId=',soy.$$escapeHtml(a.uuid),'&searchIndex=',soy.$$escapeHtml(a.index),'"><i class="jive-icon-big ',soy.$$escapeHtml(a.icon),'" role="img"></i>',a.displayExternalAccess?'<i class="icon-eye j-externally-accessible" role="img"></i>':'','<span>',soy.$$escapeHtml(a.value),'</span></a></li>'),b?'':c.toString()},jive.soy.spotlight.search.resultPlace}),define('soy!jive.soy.spotlight.search.topResultPerson',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.search'),jive.soy.spotlight.search.topResultPerson=function(b,c){var d=c||new soy.StringBuilder;return d.append('<li class=" j-visor-result j-visor-search-result-',soy.$$escapeHtml(b.type),' j-visor-search-result-',soy.$$escapeHtml(b.type),'-',soy.$$escapeHtml(b.subType),' j-visor-result-top-result',b.hidden?' j-visor-result-hidden':'','" role="option" data-type="',soy.$$escapeHtml(b.type),'"',b.subType?'data-subType="'+soy.$$escapeHtml(b.subType)+'"':'','data-url="',soy.$$escapeHtml(b.url),'" data-id="',soy.$$escapeHtml(b.id),'" ><img class="jive-avatar" src="',soy.$$escapeHtml(b.image),'" border="0" height="75" data-height="75" width="75" alt="',soy.$$escapeHtml(b.value),'"><section class="j-search-title"><a href="',soy.$$escapeHtml(b.url),'" class="j-visor-result-link jiveTT-hover-user" data-userid="',soy.$$escapeHtml(b.id),'"><h4>',soy.$$escapeHtml(b.value),'</h4></a></section><section class="j-search-job-title">',b.profile&&b.profile.title?soy.$$escapeHtml(b.profile.title):'','</section><section class="j-search-actions"><a class="j-js-send-direct-message" href="#" data-userid="',soy.$$escapeHtml(b.id),'" aria-haspopup="true"><i class="icon-envelope" role="presentation"></i>',soy.$$escapeHtml(a._i18n('c4b056',[])),'</a>',b.profile&&b.profile.phone_number?'<a href="tel:'+soy.$$escapeHtml(b.profile.phone_number)+'"><i class="icon-address-book" role="presentation"></i>'+soy.$$escapeHtml(b.profile.phone_number)+'</a>':'','</section><!--[if gt IE 8]><!--><div class="j-search-top-result-ribbon" role="presentation">&nbsp;</div><!--<![endif]--></li>'),c?'':d.toString()},jive.soy.spotlight.search.topResultPerson}),define('soy!jive.soy.spotlight.search.topResultPlace',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.search'),jive.soy.spotlight.search.topResultPlace=function(b,c){var d=c||new soy.StringBuilder;return d.append('<li class=" j-visor-result j-visor-search-result-',soy.$$escapeHtml(b.type),' j-visor-search-result-',soy.$$escapeHtml(b.type),'-',soy.$$escapeHtml(b.subType),' j-visor-result-top-result',b.hidden?' j-visor-result-hidden':'','" role="option" data-type="',soy.$$escapeHtml(b.type),'" data-subType="',soy.$$escapeHtml(b.subType),'" data-url="',soy.$$escapeHtml(b.url),'" data-id="',soy.$$escapeHtml(b.id),'" >',b.image?'<div class="j-search-place-image" style="background-image: url(\''+soy.$$escapeHtml(b.image)+'\')" role="img"></div>':'<i class="j-search-place-icon jive-icon-huge '+soy.$$escapeHtml(b.icon)+'" role="img"></i>','<section class="j-search-title"><a class="j-visor-result-link" href="',soy.$$escapeHtml(b.url),'"><h4>',soy.$$escapeHtml(b.value),'</h4></a></section><section class="j-search-place-type">',soy.$$escapeHtml(b.displayType),'</section>',b.isBlog?'':'<section class="j-search-actions"><a href="'+soy.$$escapeHtml(b.url)+'/content"><i class="icon-stack" role="presentation"></i>'+soy.$$escapeHtml(a._i18n('4efda8',[]))+'</a><a href="'+soy.$$escapeHtml(b.url)+'/people"><i class="icon-users" role="presentation"></i>'+soy.$$escapeHtml(a._i18n('218aef',[]))+'</a></section>','<!--[if gt IE 8]><!--><div class="j-search-top-result-ribbon j-search-ribbon-',soy.$$escapeHtml(b.subType),'" role="presentation">&nbsp;</div><!--<![endif]--></li>'),c?'':d.toString()},jive.soy.spotlight.search.topResultPlace}),define('soy!jive.soy.spotlight.resultMessage',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.spotlight'),jive.soy.spotlight.resultMessage=function(a,b){var c=b||new soy.StringBuilder;return c.append('<li class="j-visor-result-message ',soy.$$escapeHtml(a.cls),'">',a.icon?'<i class="icon-'+soy.$$escapeHtml(a.icon)+'" role="presentation"></i>':'',soy.$$escapeHtml(a.message),'</li>'),b?'':c.toString()},jive.soy.spotlight.resultMessage}),define('soy!jive.soy.spotlight.views.exception',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.views'),jive.soy.spotlight.views.exception=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-visor-exception ',soy.$$escapeHtml(a.cls),'">',a.icon?'<i class="icon-'+soy.$$escapeHtml(a.icon)+'" role="presentation"></i>':'',soy.$$escapeHtml(a.message),'</div>'),b?'':c.toString()},jive.soy.spotlight.views.exception}),define('soy!jive.soy.spotlight.search.placeholder',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.search'),jive.soy.spotlight.search.placeholder=function(a,b){var c=b||new soy.StringBuilder;return c.append('<!--[if gt IE 8]><!--><li class="j-search-placeholder j-search-placeholder-main shimmer" data-result-id="',soy.$$escapeHtml(a.uid),'" aria-hidden="true"><div class="border"></div><div class="a"></div><div class="b"></div><div class="c"></div><div class="d"></div><div class="e"></div><div class="f"></div><div class="g"></div><div class="h"></div><div class="i"></div><div class="j"></div><div class="k"></div></li><!--<![endif]-->'),b?'':c.toString()},jive.soy.spotlight.search.placeholder}),define('soy!jive.soy.spotlight.search.placeholderSmall',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.spotlight.search'),jive.soy.spotlight.search.placeholderSmall=function(a,b){var c=b||new soy.StringBuilder;return c.append('<!--[if gt IE 8]><!--><li class="j-search-placeholder j-search-placeholder-small shimmer" data-result-id="',soy.$$escapeHtml(a.uid),'" aria-hidden="true"><div class="border"></div><div class="a"></div><div class="b"></div><div class="c"></div><div class="d"></div><div class="e"></div><div class="f"></div><div class="g"></div></li><!--<![endif]-->'),b?'':c.toString()},jive.soy.spotlight.search.placeholderSmall}),define('soy!jive.i18n.keys.globalClear',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.globalClear=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('ce56e1',[]))),c?'':d.toString()},jive.i18n.keys.globalClear}),define('soy!jive.i18n.keys.searchSpotlightParserOr',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.searchSpotlightParserOr=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('e97611',[]))),c?'':d.toString()},jive.i18n.keys.searchSpotlightParserOr}),define('soy!jive.i18n.keys.searchSpotlightResultError',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.searchSpotlightResultError=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('3d3519',[]))),c?'':d.toString()},jive.i18n.keys.searchSpotlightResultError}),define('soy!jive.i18n.keys.searchSpotlightResultNoMoreResults',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.searchSpotlightResultNoMoreResults=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('aca4ce',[]))),c?'':d.toString()},jive.i18n.keys.searchSpotlightResultNoMoreResults}),define('soy!jive.i18n.keys.searchSpotlightResultNoResults',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.searchSpotlightResultNoResults=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('cf31d0',[]))),c?'':d.toString()},jive.i18n.keys.searchSpotlightResultNoResults}),define('soy!jive.i18n.keys.searchSpotlightViewsSearchFiltersContainer',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.searchSpotlightViewsSearchFiltersContainer=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('a17b87',[]))),c?'':d.toString()},jive.i18n.keys.searchSpotlightViewsSearchFiltersContainer}),define('jive/search/search',['jquery','url','jive/namespace'],function(a,b){function c(){return b.v3Url()}function d(a){return k[a].url}function e(b,c){var d=a.getJSON(b,c).then(function(a){return a.links&&a.links.next&&(a.next=e.bind(this,a.links.next,{})),a.returnedDate=(new Date).getTime(),a});return d.query=b+'?'+a.param(c),d.sentDate=(new Date).getTime(),d}function f(b,c){if(!k.hasOwnProperty(b))throw new Error('Invalid type, must be content, people, or places');if(!c)throw new Error('Must provide params to query');var d=a.extend({},k[b].defaults),f=k[b].validParams,g=j.getUrl(b);f.forEach(function(a){c[a]&&(d[a]=c[a])});var h=c.filter;return h instanceof Array&&(h=h.map(function(a){return'type(dm)'===a?'type(dm,collaboration,interaction)':a.replace(/^after\((.*)\)$/,function(a,b){return'after('+i(b)+')'})})),d.filter=h,e(g,d)}function g(c,d){var e=JSON.stringify(c);return a.ajax({type:'POST',url:b.v3Url('/search/monitor'),data:e,async:!d,contentType:'application/json',dataType:'json'})}function h(b,c,d){b.hasOwnProperty('filter')||(b.filter=[]),a.isArray(d)&&(d=d.join(',')),b.filter.push(c+'('+d+')')}function i(a){var b=l[a];if(!b)return!1;var c=864e5,d=new Date,e=d.getTime();return new Date(e-c*b).toISOString()}jive.namespace('search');var j=jive.search,k={content:{url:b.v3Url('/search/contents'),validParams:['count','startIndex','sort','socialSearch'],validFilters:['search','type','subtype','tag','author','place','after','language'],defaults:{origin:'searchpage',collapse:'true',depth:'none',socialSearch:'true',returnScore:'true',includeCategoryFacets:'true',fields:'rootType,type,subject,author,question,answer,helpful,parentPlace,parentContent,highlightSubject,highlightBody,highlightTags,outcomeCounts,published,updated,replyCount,likeCount,viewCount,visibleToExternalContributors,binaryURL,uuid,index,iconCss,productIcon',directive:['include_rtc']}},people:{url:b.v3Url('/search/people'),validParams:['count','startIndex','sort'],validFilters:['search','nameonly','include-deactivated'],defaults:{origin:'searchpage'}},places:{url:b.v3Url('/search'),validParams:['count','startIndex','sort','socialSearch'],validFilters:['search','type','tag'],defaults:{origin:'searchpage',socialSearch:'true',returnScore:'true',includeCategoryFacets:'false'}},suggestions:{url:b.v3Url('/search/suggestions'),validParams:['query','type','limit','includeDeactivatedUsers'],validFilters:['search','type','subtype','tag','author','place','after','language'],defaults:{}}},l={day:1,week:7,month:30,quarter:90,year:365};return Date.prototype.toISOString||!function(){function a(a){var b=String(a);return 1===b.length&&(b='0'+b),b}Date.prototype.toISOString=function(){return this.getUTCFullYear()+'-'+a(this.getUTCMonth()+1)+'-'+a(this.getUTCDate())+'T'+a(this.getUTCHours())+':'+a(this.getUTCMinutes())+':'+a(this.getUTCSeconds())+'.'+String((this.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+'Z'}}(),j.query=f,j.logMonitoring=g,j.getBaseUrl=c,j.getUrl=d,j.convertSince=i,j}),function(a,b){'function'==typeof define&&define.amd?define('jquery-plugin/jquery.scrolled',['jquery'],b):b(a.jQuery)}(this,function(a){var b=0;a.fn.scrolled=function(c,d){"function"==typeof c&&(d=c,c=500);var e="scrollTimer"+b++;this.scroll(function(){var b=a(this),f=b.data(e);f&&clearTimeout(f),f=setTimeout(function(){b.removeData(e),d.call(b[0])},c),b.data(e,f)})}}),function(a,b,c){'$:nomunge';function d(d,e){function f(b){a(g).each(function(){var c=a(this);this===b.target||c.has(b.target).length||c.triggerHandler(e,[b.target])})}e=e||d+c;var g=a(),h=d+'.'+e+'-special-event';a.event.special[e]={setup:function(){g=g.add(this),1===g.length&&a(b).bind(h,f)},teardown:function(){g=g.not(this),0===g.length&&a(b).unbind(h)},add:function(a){var b=a.handler;a.handler=function(a,c){a.target=c,b.apply(this,arguments)}}}}a.map('click dblclick mousemove mousedown mouseup mouseover mouseout change select submit keydown keypress keyup'.split(' '),function(a){d(a)}),d('focusin','focus'+c),d('focusout','blur'+c),a.addOutsideEvent=d}(jQuery,document,"outside"),define("vendor/jquery/plugins/jquery.ba-outside-events",["jquery"],function(){}),define('i18nBatch',[],function(){return{load:function(a,b,c,d){d.isBuild?c(null):b(['jive/i18n'],function(b){b.batchWarmI18nWildCardsRequest(a).always(c)})}}}),define('soy!jive.error.rest.soy.searchServiceTemporarilyUnavailable',['soyDeps'],function(a){return jive.namespace.call(this,'jive.error.rest.soy'),jive.error.rest.soy.searchServiceTemporarilyUnavailable=function(b,c){var d=c||new soy.StringBuilder,e=a._i18n('9add9a',[]);return d.append(e?'<p>'+soy.$$escapeHtml(e)+'</p>':'<p>Too many requests received for search, please try again.</p>'),c?'':d.toString()},jive.error.rest.soy.searchServiceTemporarilyUnavailable}),define('ui-modules/spotlight/scripts/visor/ui',['async','underscore','jquery','modernizr','url','jive/i18n','jive/rtl','application/config','channel!search_visor','ui-modules/spotlight/scripts/config','ui-modules/spotlight/scripts/constants','ui-modules/spotlight/scripts/tools','ui-modules/spotlight/scripts/log','ui-modules/spotlight/scripts/browserdb','ui-modules/spotlight/scripts/query','ui-modules/spotlight/scripts/parsers/simple','ui-modules/spotlight/scripts/visor/search','ui-modules/spotlight/scripts/visor/suggestions/ingress','ui-modules/spotlight/scripts/visor/suggestions/index','ui-modules/spotlight/scripts/visor/apis','ui-modules/spotlight/scripts/localStorage','soy!jive.soy.spotlight.visor','soy!jive.soy.spotlight.didYouMean','soy!jive.soy.spotlight.suggestion.content','soy!jive.soy.spotlight.suggestion.place','soy!jive.soy.spotlight.suggestion.person','soy!jive.soy.spotlight.parserFilters','soy!jive.soy.spotlight.views.defaultView','soy!jive.soy.spotlight.views.search','soy!jive.soy.spotlight.views.recently','soy!jive.soy.spotlight.views.searchHistory','soy!jive.soy.spotlight.views.bookmarks','soy!jive.soy.spotlight.views.suggestions','soy!jive.soy.spotlight.search.resultContent','soy!jive.soy.spotlight.search.resultPerson','soy!jive.soy.spotlight.search.resultPlace','soy!jive.soy.spotlight.search.topResultPerson','soy!jive.soy.spotlight.search.topResultPlace','soy!jive.soy.spotlight.resultMessage','soy!jive.soy.spotlight.views.exception','soy!jive.soy.spotlight.search.placeholder','soy!jive.soy.spotlight.search.placeholderSmall','soy!jive.i18n.keys.globalClear','soy!jive.i18n.keys.globalClose','soy!jive.i18n.keys.searchSpotlightParserOr','soy!jive.i18n.keys.searchSpotlightResultError','soy!jive.i18n.keys.searchSpotlightResultNoMoreResults','soy!jive.i18n.keys.searchSpotlightResultNoResults','soy!jive.i18n.keys.searchSpotlightViewsSearchFiltersContainer','jive/search/search','date/formatRelative','jquery-plugin/jquery.scrolled','vendor/jquery/plugins/jquery.ba-outside-events','jquery-plugin/jquery.id','i18nBatch!search.spotlight.views.*','i18nBatch!search.time_ranges.*','i18nBatch!search.content.*','soy!jive.error.rest.soy.searchServiceTemporarilyUnavailable'],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X){'use strict';var Y=400,Z=100,$=2,_='$*$',aa=['content','person','place'],ba=8,ca=13,da=27,ea=ba,fa=8,ga=8,ha=10,ia=3,ja=5,ka='suggestions',la='search',ma='recently',na='default',oa='searchHistory',pa='bookmarks',qa='blank',ra=[ma,na,oa,pa],sa='after',ta='place',ua='depth',va=40,wa=38,xa=9,ya='Shift',za=37,Aa=40,Ba=16,Ca=17,Da=18,Ea=91,Fa=93,Ga=k.filterTypeIcons,Ha=k.contentTypeTitlesPlural,Ia=null,Ja=null,Ka=!1,La=null,Ma=0,Na='',Oa=-1,Pa='',Qa='',Ra=0,Sa={},Ta={},Ua={},Va=null,Wa=c('body'),Xa=c('#j-links'),Ya=c('#j-header-wrap'),Za=c('#j-globalNav-bg'),$a=c('a.js-nav-search'),_a=null,ab=null,bb=null,cb=null,db=null,eb=null,fb=null,gb=null,hb=null,ib=null,jb=null,kb=null,lb=null,mb=[],nb=!1,ob=null,pb=null,qb=!1,rb=!1,sb=!1,tb=null,ub=!1,vb=!1,wb=!1,xb=!1,yb=p,zb=0,Ab={},Bb={},Cb=!1,Db=!1,Eb=!1,Fb='content',Gb='search.spotlight.result.no_results',Hb='search.content.all',Ib='browse.filter.type.label',Jb='search.time_ranges.all',Kb='browse.search_history.page.link.advanced',Lb=b.get(h,'currentUser.prop.search.defaultEnabled',!0),Mb=!j.userLoggedIn,Nb=function(a){Qa=bb.val(),Qa!==Pa&&(Oa=-1,Pa=Qa);var b=a.keyCode||a.which;Ra=c('.j-visor-view-suggestions > div > ul li').length,b==va?(c("#j-visor-suggestions-spotlight li").each(function(a,b){c(b).removeClass('j-visor-cursor')}),Wa.hasClass('j-search-visor-open')&&(Ra-1>Oa?++Oa:Oa=0,c('#j-visor-suggestions-spotlight li').eq(Oa).addClass('j-visor-cursor'))):b==wa&&(c("#j-visor-suggestions-spotlight li").each(function(a,b){c(b).removeClass('j-visor-cursor')}),Wa.hasClass('j-search-visor-open')&&(Oa>0?--Oa:Oa=Ra-1,c('#j-visor-suggestions-spotlight li').eq(Oa).addClass('j-visor-cursor')))},Ob={'default':{render:function(d){return j.userId&&'-1'!=j.userId?(s.getTopLists(function e(f){var g={},i={},j=[];b.each(f,function(a,c){Bb[c]||(b.each(a,function(a){Gc(a)}),g[c]=b.pluck(a,'id'),i[c+'Suggestions']=a)}),d(B(c.extend(i,{workGroupsEnabled:h.workGroupsEnabled}))),b.each(g,function(a,c){var d=ga-a.length,e=Pb[na][c];if(d){for(var f=0;d>f;f++)e.$elm.append(P({uid:b.uniqueId()}));j.push({type:c,handler:t.frequentlyViewed[c],limit:ga+d})}}),j.length&&(cc(),a.each(j,function(a,c){a.handler(a.limit,function(d){var e=g[a.type],f=Pb[na][a.type];b.every(d.list,function(a){if(-1!=e.indexOf(a.id))return!0;var b=f.$elm.children('.j-search-placeholder');if(0==b.length)return!1;var c=Jc(f.template,a);return b.first().replaceWith(c),!0}),c(d.error)})},function(a){var c=!1;hc(na).find('.j-search-placeholder').remove(),b.each(Pb[na],function(a){a.$elm.children().length?c=!0:a.$elm.hide()}),a?(m.error(a),c||fc(na)):c||ec(na,'drawer','search.spotlight.views.default.empty'),dc()}))}),void 0):(d(''),void 0)}},search:{render:function(a){a(C({workGroupsEnabled:h.workGroupsEnabled}))},update:function(a){var b=Ob.search.$elm;Ob.search.$sidebar=Ob.search.$elm.find('.j-visor-search-results-aside'),Mc(),b.find('.j-get-more-link').click(function(a){var b=c(this).data('type');Zc(b)}),b.on('click mousedown','a.j-visor-result-link',function(a){if(bb.blur(),'mousedown'==a.type&&0==a.button){Eb=!0;var b=a.currentTarget.href||a.target.href,d=c(this).parent().closest('li.j-visor-search-result-content');if(b&&d&&window.sendPageViewSynchronised){var e=d.index();e+=1,event.preventDefault(),window.sendPageViewSynchronised(e,function(){rc(b,a)})}else rc(b,a)}var f=c(a.target).closest('.j-visor-result');return sc(f),!1}),b.on('click mousedown','a.result-content-anchor',function(a){var b=a.target.href;return 2!==a.button&&b&&(Eb=!0,rc(b,a)),!1});var d=b.find('.j-visor-search-filter-container'),e=b.find('.j-visor-search-filter-clear'),g=b.find('.j-visor-search-filter');e.on('click',function(a){a.preventDefault(),zc([ta,ua]),Mc(),Fc(),d.show(),c(this).hide()}),g.on('click',function(a){a.preventDefault();var b=c(this),d=b.data('filters'),e=b.data('params');e&&wc(e),d&&vc(d),Mc(),Fc()}),d.on('click',function(a){return h.workGroupsEnabled||e.show(),c(this).hide(),!1}),h.workGroupsEnabled&&d.trigger('click'),3==j.containerType&&j.containerId&&-1!=j.containerId?o.jiveQuery({url:'/api/core/v3/people/'+j.containerId,query:{fields:'resources,displayName'},success:function(b){var c=f.i18nText(l.uppercaseFirst(W()),['<em>'+b.displayName+'</em>']);d.html(l.decodeHtmlEntities(c.toString())).data('filters',{author:new RegExp('/[^/]*/[^/]*$').exec(b.resources.self.ref)[0]}).show(),a()},error:function(){m.error('Could not retrieve container information'),a()}}):2020!=j.containerType&&j.containerBrowseId&&-1!=j.containerBrowseId?o.jiveQuery({url:'/api/core/v3/places/'+j.containerBrowseId,query:{fields:'type,parent,resources,name'},success:function(b){if(b&&('space'!=b.type||b.parent)){var c=f.i18nText(W(),['<em>'+b.name+'</em>']);d.html(l.decodeHtmlEntities(c.toString())).data('filters',{place:new RegExp('/[^/]*/[^/]*$').exec(b.resources.self.ref)[0],depth:'ALL'}).show()}a()},error:function(){m.error('Could not retrieve container information'),a()}}):a()}},recently:{render:function(a){a(D({workGroupsEnabled:h.workGroupsEnabled}))},update:function(c){var d={};a.each(b.pairs(Pb.recently),function(a,b){var c=a[0],e=a[1],f=t.recentlyViewed[c];f(e.initialLimit,function(a){d[c]=a.list,b(a.error)})},function(a){if(a)m.error(a),fc(ma);else{var e=!1;b.each(Pb.recently,function(a,c){0==d[c].length?a.$elm.html('<div style="color: #837d7a;margin: 0 0 10px 0;padding-left: 13px;">'+c.toUpperCase()+"</div><li class=\"j-visor-result-message undefined\">"+f.jsGetMsg(Gb)+'</li>'):a.$elm.html(''),b.each(d[c],function(b){var c=Jc(a.template,b);a.$elm.append(c)}),d[c].length&&(e=!0)}),e||ec(ma,'drawer','search.spotlight.views.recently.empty')}dc(),c()})}},searchHistory:{render:function(a){a(E({workGroupsEnabled:h.workGroupsEnabled}))},update:function(a){var b=u.getUserSearchHistory(j.userId);if(b.length<=0)ec(oa,'drawer','search.spotlight.views.search_history.empty');else{var c=hc(oa),d=b.slice(0,ba),e=E({userSearchHistory:d,allowDelete:!1,showCompletePage:!1});c.html(e),Ub(),Vb()}dc(),a()}},suggestions:{render:function(a){var b=bb.val().trim();if(b===gd()){var c=Hc(b),d=Ic(c);if(pc(c,d))return Tb(a),void 0;a(G({userSearchHistory:c,suggestionsArray:d})),Sb()}},update:function(a){var b=bb.val().trim();if(b===gd()){var c=Hc(b),d=hc(ka),e=Ic(c);if(pc(c,e))return Tb(a),void 0;d.html(G({userSearchHistory:c,suggestionsArray:e})),Sb(),dc(),a()}}},bookmarks:{render:function(a){a(F({}))},update:function(a){var c=Pb.bookmarks.content,d=c.$elm;o.jiveQuery({url:'/api/core/v3/contents',query:{count:c.initialLimit},filters:{type:'favorite',author:'/people/'+j.userId},success:function(a){return d.html(''),a&&a.list&&a.list.length?(b.each(a.list,function(a){b.extend(a,a.favoriteObject||{});var c=t.resultConverters.content(a);c.bookmarked=!0,c.icon&&(c.icon=c.icon.replace(/\-bookmark$/,''));var e=Jc(x,c);d.append(e)}),void 0):(ec(pa,'drawer','search.spotlight.views.bookmarks.empty'),void 0)},error:function(){fc(pa)},complete:function(){hc(pa).find('.j-search-placeholder').remove(),a()}})}}},Pb={'default':{content:{selector:'.j-visor-suggestions-content',template:x,level:1,nextUp:null,nextDown:'place',nextLeft:'person',nextRight:'place'},place:{selector:'.j-visor-suggestions-place',template:y,level:1,nextUp:'content',nextDown:'person',nextLeft:'content',nextRight:'person'},person:{selector:'.j-visor-suggestions-person',template:z,level:1,nextUp:'place',nextDown:null,nextLeft:'place',nextRight:'content'}},search:{topResult:{selector:'.j-visor-search-results-top',initialItemCount:0,initialLimit:1,nextUp:null,nextDown:'main',nextLeft:null,nextRight:'person'},main:{selector:'.j-visor-search-results-main',template:H,placeholderTemplate:O,initialItemCount:5,initialLimit:10,nextUp:'topResult',nextDown:'topResult',nextLeft:null,nextRight:'person'},person:{selector:'.j-visor-search-results-people',template:I,placeholderTemplate:P,initialItemCount:5,initialLimit:10,nextUp:null,nextDown:'place',nextLeft:'main',nextRight:null},place:{selector:'.j-visor-search-results-places',template:J,placeholderTemplate:P,initialItemCount:5,initialLimit:10,nextUp:'person',nextDown:null,nextLeft:'main',nextRight:null}},recently:{content:{selector:'.j-visor-suggestions-content',template:x,placeholderTemplate:P,initialItemCount:4,initialLimit:fa,level:1,nextUp:null,nextDown:'place',nextLeft:'person',nextRight:'place'},place:{selector:'.j-visor-suggestions-place',template:y,placeholderTemplate:P,initialItemCount:4,initialLimit:fa,level:1,nextUp:'content',nextDown:'person',nextLeft:'content',nextRight:'person'},person:{selector:'.j-visor-suggestions-person',template:z,placeholderTemplate:P,initialItemCount:0,initialLimit:fa,level:1,nextUp:'place',nextDown:null,nextLeft:'place',nextRight:'content'}},searchHistory:{history:{selector:'.j-visor-search-history',template:E,placeholderTemplate:P,initialItemCount:0,initialLimit:ba,level:1,nextUp:null,nextDown:null,nextLeft:null,nextRight:null}},suggestions:{history:{selector:'.j-visor-search-results-wrapper',template:G,placeholderTemplate:O,initialItemCount:0,initialLimit:ba,level:1,nextUp:null,nextDown:null,nextLeft:null,nextRight:null}},bookmarks:{content:{selector:'.j-visor-suggestions-content',template:x,placeholderTemplate:P,initialItemCount:4,initialLimit:ea,level:1,nextUp:null,nextDown:null,nextLeft:null,nextRight:null}}},Qb={person:K,place:L},Rb={clearUserDb:function(a){n._db.clear().done(a)},clearBrowserDb:function(a){n._db.clear().done(a)},clearCache:function(a){n._db.clear(['cache']).done(a)},clearSuggestionIndex:function(a){s.clearIndex(a)},disableBrowserDb:function(a){window.localStorage&&(window.localStorage["jive.browserdb.disabled"]=1),a()},enableBrowserDb:function(a){window.localStorage&&(window.localStorage["jive.browserdb.disabled"]=0),a()},debugMode:function(a){m.setLevel('debug2'),a()},updateIndex:function(a){n.getSettings().done(function(b){s.updateIndex(function(){Rb.updateTopLists(a)},b)})},resetIndex:function(a){s.clearIndex(function(){Rb.updateIndex(a)})},updateTopLists:function(a){s.updateTopLists(!0).done(a)},updateMetadata:function(a){var b=n.KeyRange();n.values('suggestions',b,1e4).done(function(b){r.updateMetadata(b,a)})},logSettings:function(a){var b=n.KeyRange();n.values('settings',b,1e4).done(function(b){m(b),a()})},logActivities:function(a){var b=n.KeyRange();n.values('activity',b,1e4).done(function(b){m(b),a()})},logSuggestions:function(a){s.getAllSuggestions().done(function(b){m(b),a()})},logLists:function(a){var b=n.KeyRange();n.values('lists',b,1e4).done(function(b){m(b),a()})},logTokenIndex:function(a){var b=n.KeyRange();n.values('tokenIndex',b,1e4).done(function(b){m(b),a()})}},Sb=function(){Ub('j-visor-search-history-icon-suggested'),Vb('j-visor-suggestions-spotlight')},Tb=function(a){oc(ka),dc(),a()},Ub=function(a){a=a||'j-visor-search-history-icon',c('#'+a+' i').click(function(a){var b=a.currentTarget.attributes.value,d=b.value;u.deleteSearchItem(j.userId,d),c('[value="'+d+'"]').remove(),a.preventDefault(),a.stopPropagation()})},Vb=function(a){a=a||'j-visor-search-history',c('#'+a+' li').click(function(a){var b=a.currentTarget.attributes.value,c=b.value,d=l.removeCarriageReturn(c);d&&Hd(d),bb.val(d),Fc()})},Wb=function(a){var c='';return a=[].concat(a),b.each(a,function(a){a&&(c&&(c+=' '+S()+' '),'string'==typeof a?c+=a:a[0]&&(c+=a[0],a[1]&&(c+=' ('+a[1]+')')))}),c},Xb=function(a){var c=b.map(a,function(a){return l.toProperCase(a[0])});return Wb(c)},Yb={following:function(){return'Following'},participated:function(){return'Participated'},person:Xb,contentType:function(a){var c=b.map(a,function(a){return Ha[a[0]]});return Wb(c)},date:function(a){var b=a[0][0],c=a[0][1];return b&&c?b.hour()==b.minute()==b.second()==0&&864e5==c.diff(b)?"Updated "+b.calendar().replace(/ at.*/,''):"Updated between "+b.calendar()+" and "+c.calendar():b?"Updated since "+b.calendar():c?"Updated before "+c.calendar():'';
}},Zb=function(a){bb.val()!=a&&(bb.val(a),Oc(a))},$b=function(){var a=_a.find('ul:visible, :input').map(function(){return this.id}).get().join(' ');_a.attr('aria-activedescendant',_a.find('.j-visor-cursor:visible').id()).attr('aria-owns',a).attr('aria-expanded',nb).attr('aria-hidden',!_a.is(':visible')).attr('aria-busy',ub)},_b=function(){if(hb){nb=!0,ob||(ob=ma),mc(ob,null,!0),bd(),$a.addClass('active'),_a.addClass('open');var a=Wa.innerWidth();Wa.addClass('j-search-visor-open');var b=Wa.innerWidth(),c=b-a+'px',d={width:a+'px'};d[g('padding-right')]=c,Wa.css(d),Xa.css(g('padding-right'),c),bb.focus(),$b(),vd()}},ac=function(){if(hb){var a={width:'default'};a[g('padding-right')]='default',nb=!1,$a.removeClass('active'),_a.removeClass('open'),Wa.removeClass('j-search-visor-open').css(a),Xa.css(g('padding-right'),0),Zb(''),oc(na),oc(oa),oc(pa),oc(ka),$b(),i.trigger('close'),c('#time-ranges').val('all'),c('#content-types').val('type:all'),c('#j-search-visor input:checkbox').attr('checked',!1),c('#time-range-filter-button').text(f.jsGetMsg(Jb)),c('#introductory-search-text').hide(),pd(!1),Cd(),td(),yc(),Oa=-1,zb=0}},bc=function(a){!!nb!=!!a&&(nb?ac():_b())},cc=function(){if(!ub&&(ub=!0,db.hide(),cb.show(),$b(),!d.cssanimations)){var a=0,b=function(){ub&&(a=(a+8)%360,cb.css('transform','rotate('+a+'deg)'),setTimeout(b,25))};b()}},dc=function(){ub&&(ub=!1,db.show(),cb.hide(),$b())},ec=function(a,b,c,d){var e=hc(a),g=N({icon:b,message:f.jsGetMsg(c),cls:d||''});e.html(g)},fc=function(a){var b=hc(a),c=N({icon:'warning',message:jive.i18n.keys.searchSpotlightResultError(),cls:'j-visor-error'});b.html(c)},gc=function(a,b){var c=Ob[a].update;c?c(function(){dc(),b&&b(!0)}):(dc(),b&&b(!1))},hc=function(a){return hb.children('.j-visor-view-'+a)},ic=function(a){return ra.some(function(b){return b===a})},jc=function(a,b){return!(a||b&&b!==ob)},kc=function(a){return(!Lb||Mb)&&ic(a)},lc=function(a){return a!==qa&&a!==la&&a!==ka},mc=function(a,b,d){var e=null;if(c('.j-visor-view-search > .j-visor-exception').length&&(e=!0),kc(a)&&!e)return mc(qa,b);if(Ab[a]&&!e)return mc(qa,b);var f=hc(a);f.length&&!e?(ob=a,lc(a)&&(dd(!1),ib=a),_a.removeClass('current-view-'+pb).addClass('current-view-'+ob),pb=ob,!Lb&&Mb||fb.children('.j-visor-menu-item-'+a).addClass('j-active').siblings().removeClass('j-active'),f.siblings('div').hide(),f.show(),b&&b(),dc(),setTimeout(function(){bb.focus()},1)):(cc(),nc(a,function(){mc(a,function(){gc(a,b)},d)}))},nc=function(a,d){var e='j-visor-view-'+a,f=Ob[a].render,g=c('<div class="'+e+'"></div>'),h=Ob[a].$elm;if(h&&h.remove(),!f)throw Error('Unrecognized view: '+a);f(function(c){c&&g.html(c),hb.append(g),h=hc(a),Ob[a].$elm=h,b.each(Pb[a],function(a,b){a.name=b,a.$view=h,a.$elm=h.find(a.selector),a.$elm.data('name',b)}),Lc(a),d&&d()})},oc=function(a){var b=hc(a);b.length&&b.remove()},pc=function(a,b){return!(a&&a.length||b&&b.length)},qc=function(a,b){nc(a,function(){gc(a,b)})},rc=function(a,b){return b||(b={}),vb||b.metaKey||wb||b.ctrlKey||'click'==b.type&&2==b.which?(open(a,'_blank'),!1):(Ka=!0,window.location.href=a,!0)},sc=function(a){var b=a.index(),c=a.data('type'),d=a.data('url');o.metrics.setChoice(c,b,d)},tc=function(a,b){clearTimeout(Ia),clearTimeout(Ja),Ma++,ob===la&&sc(a);var c=a.data('url'),d=a.data('value');a.data('type')===la?Zb(d):rc(c,b)},uc=function(a){return a==Fb&&(a='main'),Pb.search[a]},vc=function(a){b.extend(Sa,a),kb.addClass('show')},wc=function(a){b.extend(Ta,a)},xc=function(a){Sa[a]&&(delete Sa[a],b.isEmpty(Sa)&&kb.removeClass('show'))},yc=function(){b.each(Sa,function(a,b){xc(b)})},zc=function(a){b.each(a,function(a){xc(a)})},Ac=function(a){var b=a.replace(/\+\d+/,'Z'),c=new Date(b);if(isNaN(c.getTime())){var d=b.replace(/-/,'/').replace('T',' ').replace(/\.\d+Z/,' GMT');c=new Date(d)}return c},Bc=function(a){Va||(a.template=Qb[a.type],a.template&&(a.topResult=!0,a.container='topResult',Va=a),Dc(a),a.skip=!0)},Cc=function(a){try{return a.resultFromMetadata===!0&&!l.containHighlights(a.snippet)&&!l.containHighlights(a.highlightSubject)}catch(b){return!1}},Dc=function(a,d){if(!a.skip&&!Bb[a.type]){var e=uc(a.container||a.type),f=uc(a.type),g=a.template||e.template,h=e.initialLimit,i=-1,j=a.type+'-'+a.id,k=Ua[j];if(k)if(a.promotedResult)i=k.index,a=b.extend({},k,a),a.bookmarked=k.bookmarked,a.snippet=k.snippet;else if(!a.attachmentName)return;a.instant=a.instant||!1,a.displayExternalAccess=!_jive_current_user.partner&&a.externallyAccessible,a.description&&(a.description=c.trim(a.description)),a.isBlog='blog'==a.subType,a.published&&(a.published=Ac(a.published),a.publishedAgo=new Date(a.published).formatRelative()),a.updated&&(a.updated=Ac(a.updated),a.updatedAgo=new Date(a.updated).formatRelative(),a.publishedAgo==a.updatedAgo&&(a.updatedAgo=null)),d&&h&&e.currentResultKeys.length>=h&&(a.hidden=!0),Cc(a)?a.resultFromMetadata=jive.i18n.jsGetMsg('search.view.found.in.metadata').replace('{0}','"'+a.highlightMetadata+'"'):a.resultFromMetadata="";var l=Jc(g,a),m=e.$elm.children(),n=l.innerHtml;if(i>=0)m.eq(i).replaceWith(l);else if(a.promotedResult&&e.currentResultKeys.length){var o=e.$elm.children('.j-visor-result-promoted');o.length?(o.last().after(l),i=m.index(l)):(e.$elm.prepend(l),i=0)}else{var p=e.currentResultKeys.length;i=p,m.length>p?m.eq(p).replaceWith(l):e.$elm.append(l)}a.index=i;var q=l.find('.j-search-description p');return q.length>0&&'undefined'!=typeof q.get(0).style.webkitLineClamp&&q.addClass('j-multi-line-clamp'),Ua[j]=a,e.currentResultKeys.push(a.id),f.hasResults=!0,e.initialLimit&&e.currentResultKeys.length>=e.initialLimit?!1:void 0}},Ec=function(a,b){return l.normalizeQuery(b.value)==a},Fc=function(){var a=c('#j-visor-suggestions-spotlight li.j-visor-cursor').attr('value');a?bb.val(a):a=bb.val(),Kd(),dd(!0),ed(),c('#introductory-search-text').hide(),jb.attr('aria-label',Q({})),Mc(),Oc(a,!0)},Gc=function(a){a.uid=b.uniqueId(),a.value=a.value?l.decodeHtmlEntities(a.value||''):'','group'==a.subType&&a.groupType?(a.displayExternalAccess=!_jive_current_user.partner&&a.externallyAccessible,a.groupTypeV2?a.displayType=jive.i18n.jsGetMsg('global.group.'+a.groupTypeV2.replace(/ /g,'_').toLowerCase()):a.displayType=jive.i18n.jsGetMsg('global.group.'+a.groupType.replace(/ /g,'_').toLowerCase())):a.displayType=jive.i18n.jsGetMsg('global.access.content.type.'+a.subType),!a.icon&&'place'==a.type&&a.subType&&(a.icon='jive-icon-'+a.subType),'place'===a.type&&'page'===a.subType&&(a.value=a.parentPlaceName+' - '+a.value)},Hc=function(a){var b=u.getUserSearchHistory(j.userId,a);return b.slice(0,ja)},Ic=function(a){var b=hd(),c=[];return b&&(c=b.filter(function(b){var c=a.find(function(a){return a.value.toLowerCase()===b.toLowerCase()});return void 0===c}),c=c.slice(0,ha)),c},Jc=function(a,b){Gc(b);var d=c(a(b));return d.attr('data-result-id',b.uid),d},Kc=function(a,c){for(var d=0;c>d;d++)a.$elm.append(a.placeholderTemplate({uid:b.uniqueId()}))},Lc=function(a){m.debug3('Resetting result containers'),b.each(Pb[a],function(a){a.hasResults=!1,a.currentResultKeys=[],a.paginationUrls=[],a.$elm&&void 0!==a.initialItemCount&&(a.$elm.html(''),a.placeholderTemplate&&Kc(a,a.initialItemCount))}),lb.html(w({}))},Mc=function(){Lc(la)},Nc=function(a){b.has(a,sa)&&(a[sa]=X.convertSince(a[sa]))},Oc=function(a,c){if(a=a&&a.replace(/\s+/g,' ').trim(),!a||a.length<$)return ob!==ma&&(Ma++,Na='',mc(ma),Mc()),void 0;if(0!=a.indexOf(_)&&(mc(la),(c||Na!=a)&&(clearTimeout(Ia),clearTimeout(Ja),Na=a,!Ka))){var d=++Ma,e=b.extend({},Sa),f=b.extend({},Ta),g=!b.isEmpty(e);window.sendGoogleAnalytics4EventIfEnabled&&window.sendGoogleAnalytics4EventIfEnabled(a,e),Nc(e),Ua={},Va=null,b.each(Pb.search,function(b){b.hasResults=!1,b.currentResultKeys=[],b.paginationUrls=[],b.currentQuery=a,b.searchInProgress=d});var h=[],i={query:a};a.length>=$&&(b.extend(i,yb.parse(a)[0]),b.each(i.filters,function(a,b){if(a.length){var c=Yb[b]||Wb;h.push({type:b,filter:a,filterString:c(a),icon:Ga[b]})}}),cc()),xb&&(eb.html(A({filters:h})),h.length?eb.show():eb.hide());var j=Ob.search.$sidebar;g?(j.hide(),j.find('ul').html()):(j.show(),Ja=setTimeout(function(){Sc(i,d)},c?0:Z));var k={searchContent:!0,searchPeople:!g&&!Bb.person,searchPlaces:!g&&!Bb.place,contentSearchFilters:e,contentSearchParams:f};Ia=setTimeout(function(){Xc(i,d,k)},c?Z:Y)}},Pc=function(a,c){c.list=b.map(c.list,function(b){return t.resultConverters[a](b)})},Qc=function(a){if(a){var b=l.removeCarriageReturn(a),c=bb.val().trim();return b!==c?b:''}return a},Rc=function(a,c,d){if('suggestedQuery'===a){var e=Qc(c);e?(lb.html(w({suggestedQuery:e})),_a.find(".j-did-you-mean-link").click(function(){Eb=!0,bb.val(e),Fc()})):lb.html(w({}))}var f=0;if(c.list){f=c.list.length,f>1&&'content'===a&&(c.list=t.moveAnswersUpInTheList(c.list)),b.each(c.list,function(a){Dc(a,d)});var g=uc(a);g.paginationUrls=c.next,g.searchInProgress=null;var h=hb.children('.j-visor-view-search'),i=g.$elm.parent().find('.j-get-more-link[data-type='+a+']');h.find('.j-search-placeholder').remove(),c.next.length?i.addClass('has-more'):i.removeClass('has-more')}return f},Sc=function(a,c){var d='Suggestion query '+c+'-'+Math.floor(1e3*Math.random())+' ('+o+')';s.searchSuggestions(a,function(e){if(m.time(d),c==Ma){var f=null,g=a.normalizedQuery;m.debug('Got suggestions for '+g,e),b.each(e,function(a,b){0==b?f=a:!Ec(g,a)||f&&Ec(g,f)||(f=a),'place'==a.type&&(a.icon='jive-icon-'+a.subType),a.instant=!0}),f&&Bc(f),b.each(e,function(a){Dc(a,!0)}),b.each(Pb.search,function(a){for(var c=a.currentResultKeys,d=a.$elm,e=d.children(),f=a.initialItemCount,g=c.length;g<e.length;g++){if(g>=f){e.slice(g).remove();break}var h=e.eq(g);h.hasClass('j-search-placeholder')||h.replaceWith(a.placeholderTemplate({uid:b.uniqueId()}))}var i=f-d.children().length;Kc(a,i)})}})},Tc=function(a){if(a.length<2||1==window.kendraEnabledForCurrentUser)return a;var b=a.split(' '),d=b[b.length-1];return d.length>1?a+'*':1==d.length&&l.isNumeric(d)?a:Tc(c.trim(a.substring(0,a.length-2)))},Uc=function(a){if(a){var b=document.querySelectorAll('label.spotlight-type-filters-count');La||Vc(b),b.forEach(function(a){a.innerText="(0)"}),Object.getOwnPropertyNames(a).forEach(function(b){var c=b;'blog'===b&&(c='post');var d=document.querySelector("label.spotlight-type-filters-count[for='"+c+"']");d&&(d.innerText="("+a[b]+")")})}},Vc=function(a){La={},a.forEach(function(a){La[a.getAttribute("for")]=a.innerText})},Wc=function(){La&&Object.getOwnPropertyNames(La).forEach(function(a){document.querySelector("label.spotlight-type-filters-count[for='"+a+"']").innerText=La[a]})},Xc=function(a,d,e){var f=b.extend({},a.filters);delete f.text,a.query&&(f.text=[[Tc(a.query),null]]),m.debug('Searching',a,f),q.performSearch(f,e,function(e){dc();var f=0,g;if(m.debug('Got search results for \''+a.normalizedQuery+'\'',e,d,Ma),d==Ma){if(b.each(aa,function(c){var d=e[c];Pc(c,d),b.every(d.list,function(b){if(Va)return!1;var c=l.normalizeQuery(b.value);return(b.promotedResult||c==a.normalizedQuery)&&Bc(b),!0}),d.error&&(g=d.error)}),dc(),b.each(e,function(a,b){f+=Rc(b,a,!0)}),c('a.j-feedback-link').click(function(a){var b=c(this).attr('href');if(a.preventDefault(),b){var d=b.substring(b.length-4);'true'===d?c(this).css('color','green'):c(this).css('color','red'),c.ajax({type:'POST',url:b,error:function(){}})}}),f)r.logActivity({type:la,query:a.normalizedQuery});else if(g){if(503==g.status){var h=jive.error.rest.soy.searchServiceTemporarilyUnavailable();c(h).message({style:'error'})}return fc(la),void 0}b.each(Pb.search,function(a){if(0==a.$elm.children().length){var b={message:V()};'main'==a.name?(b.cls='j-visor-exception',b.icon=la):a.hasResults&&(b.message=U()),a.$elm.append(M(b)),dd(!0),ed()}}),Yc()}})},Yc=function(){var a=uc('content');if(a.paginationUrls.length>0){var b=document.getElementById('j-search-visor'),c=b.scrollHeight>b.clientHeight;c||Zc('content')}},Zc=function(a){var c=uc(a);if(!c.searchInProgress){var d=c.paginationUrls;if(d.length){var e=++Ma;c.searchInProgress=e,c.paginationUrls=[],cc(),Kc(c,c.initialItemCount);var f=b.map(d,function(a){return{url:a,timeout:q.SEARCH_TIMEOUT_LIMIT}});q.runApiQueries(f,{callback:function(b){e==Ma&&(m.debug('Got additional '+a+' results',b),c.$elm.children().removeClass('.j-visor-result-hidden'),Pc(a,b),Rc(a,b),c.paginationUrls.length||c.$elm.append(M({cls:'j-visor-result-nomoreresults',message:U()})),dc(),c.searchInProgress=null,Yc())}})}}},$c=function(){if(!sb&&tb){sb=!0;var a=tb;tb=null,_a.scrollTo(a,600,{offset:-(_a.height()/2),onAfter:function(){sb=!1,$c()}})}},_c=function(a,b){if(mb.length&&mb.removeClass('j-visor-cursor'),a){if(mb=c(a),mb.addClass('j-visor-cursor'),b){var d=mb.offset().top,e=_a.offset().top;(d+1.5*mb.height()>e+_a.height()||e>d)&&(tb=mb,sb||$c())}}else mb=[];$b()},ad=function(){Wc(),ob===la||ob===ka?(dd(!1),Zb(''),Oa=-1,Gd()):(bb.blur(),ac())},bd=function(){var a=Ya.offset().top-c(window).scrollTop(),b=a>=-Ya.outerHeight()?a+Ya.outerHeight():0,d=Za.offset().left,e=window.innerWidth-(d+Za.outerWidth());_a.css('top',b+'px'),_a.css(g('right'),g.isRtl?d:e),_a.css("max-height",window.innerHeight-b-5+'px'),c('#j-visor-advanced-search-button').text(f.jsGetMsg(Kb))},cd=function(a){return b.isEmpty(a)?'':'&'+c.param(a)},dd=function(a){var b=c('#j-search-visor'),d=b.find('.j-visor-tabs'),e=b.find('.j-visor-spotlight-filters');!a&&Lb?(d.show(),e.show()):(d.hide(),e.hide())},ed=function(){var a=c('#j-search-visor');a.find('.j-visor-spotlight-filters').show()},fd=function(a,b){Ob[ka].suggestions=b,Ob[ka].queryStr=a},gd=function(){return Ob[ka].queryStr},hd=function(){return Ob[ka].suggestions},id=function(a,b){var c=b||[];oc(ka),fd(a,c),dd(!0),mc(ka,void 0,!0),dc()},jd=function(a,b){var c=bb.val().trim();return!Db&&b===c&&a&&a.length>0},kd=function(a){var c=bb.val().trim(),d=ib||ma;if(c)if(id(c),c.length>2){cc();var e=b.extend({},Sa);Nc(e),q.loadSuggestions(c,e,function(b){var d=l.processSuggestionResults(c,b),e=jd(d,c);e&&(id(c,d),Nb(a)),dc()})}else Nb(a);else oc(ka),fd(c,[]),dd(!1),mc(d,void 0,!0),dc(),lb.html(w({}))},ld=function(a){if(m.debug('Init visor UI'),0!==Za.length){a=a||{},a.enableNaturalParser,rb=a.searchFilters.newUI,Wa.prepend(v({spotlightDefaultEnabled:Lb,enableQueryFilters:xb,timeRanges:a.searchFilters.timeRanges,selectedTimeRange:a.searchFilters.selectedTimeRange,contentFacets:a.searchFilters.contentFacets,selectedContentFacet:a.searchFilters.selectedContentFacet,visibleContentSubtypeFacets:a.searchFilters.visibleContentSubtypeFacets,externalActivityFacets:a.searchFilters.externalActivityFacets,contentAggregations:a.searchFilters.contentAggregations,isNewUi:a.searchFilters.newUI})),Cb=Wa.hasClass('j-no-responsive'),_a=c('#j-search-visor'),gb=_a.children('.j-search-visor-inner'),hb=gb.children('.j-visor-views'),fb=_a.find('.j-visor-tabs'),ab=c('#j-visor-searchbar-wrapper'),bb=ab.children('input'),db=ab.find('.j-searchbar-icon'),jb=ab.find('.j-searchbar-close'),cb=ab.find('.j-searchbar-thinker'),eb=gb.children('.j-visor-parserfilters'),kb=_a.find('.j-visor-filter-indicator'),lb=_a.find('.did-you-mean'),bd(),c(window).resize(bd),dd(Lb),b.each(c.trim($a.data('hideviews')).split(' '),function(a){a&&(Ab[a]=!0)}),b.each(c.trim($a.data('hidetypes')).split(' '),function(a){a&&(Bb[a]=!0,b.each(Pb,function(b){delete b[a]}))}),fb.children().each(function(a,b){var d=c(b);Ab[d.data('view')]&&d.remove()}),fb.children().length&&Lb&&!Mb||fb.hide(),Fd(rb),bb.on('keydown',function(a){17==a.keyCode?wb=!0:91==a.keyCode&&(vb=!0)}),bb.on('keyup',function(a){17==a.keyCode?wb=!1:91==a.keyCode&&(vb=!1)}),bb.on('focus click',function(){_c(),_a.addClass('j-visor-input-focused')}),bb.on('blur',function(){_a.removeClass('j-visor-input-focused')}),c('#j-visor-advanced-search-button').on('click',function(){Ld()}),bb.on('keydown',function(a){var b=bb.val().trim();a.keyCode===ca?(Hd(),rb?Id(a):Ld()):32===a.keyCode&&(b.length||a.preventDefault())}),_a.on('keydown',function(a){var b=bb.val().trim();if(37<=a.keyCode&&a.keyCode<=40){var d=null,e=0,f=null,g=null,h=Pb[ob],i=null;mb&&mb.length&&(d=mb.parent().data('name'),e=mb.index(),f=h[d]);var j=function(a,b,c){if(g&&g.preventDefault&&g.preventDefault(),d)for(i=mb[a]('.j-visor-result').get(0);!i&&f;)f=h[f[b]],i=f?f.$elm.children('.j-visor-result').get(c):null;else try{var e=hc(ob);i=e.find('.j-visor-result').get(c)}catch(g){console.log(g)}return _c(i,!0),i},k=function(b){if(d){for(a.preventDefault();!i&&f;)g=f.level,f=h[f[b]],f&&(g&&f.level==g&&(i=f.$elm.children('.j-visor-result').get(e)),i||(i=f.$elm.children('.j-visor-result').get(0)));if(i)return _c(i,!0),i}};40==a.keyCode?j('next','nextDown',0):38==a.keyCode?j('prev','nextUp',-1)||bb.focus():37==a.keyCode?k('nextLeft'):39==a.keyCode&&k('nextRight')}else 27==a.keyCode&&(a.preventDefault(),a.stopPropagation(),ad(),window.setTimeout(function(){c('#j-nav-search').focus()},0))}),jb.click(ad),bb.on('keyup',function(a){a.keyCode!==ca&&a.keyCode!==da&&(Db=!1,td(),Pd(a)?Nb(a):Qd(a)?(kd(a),Gd()):Rd(a)&&Id(a))}),bb.on('paste',function(a){setTimeout(function(){bb.trigger('keyup')},50)}),_a.on('mouseover','.j-visor-result a',function(a){var b=c(a.target).closest('.j-visor-result').get(0);sb||mb.length&&mb.get(0)==b||_c(b)}),_a.on('mouseover focus','a',function(a){c(a.target).closest('.j-visor-result').length||_c(null)}),_a.mouseup(function(a){return rd(a),sd(a),!1}),_a.on('click','.j-visor-menu-item',function(a){var b=c(this).data('view');return b===oa&&ob!==oa&&oc(b),mc(c(this).data('view'),$b),!1}),_a.on('click','.history-search-button',function(){Hd(),Fc()}),$a.click(function(a){a.preventDefault(),nb?ac():_b()});var d='.j-nav-open-visor, #jive-modal-direct-messaging, .js_lb_overlay';_a.on('clickoutside',function(a){c('.js-usercard-profile-data').length||0==c(a.target).closest(d).length&&(nb&&!Eb&&ac(),Eb=!1)}),c(document).on('keydown',function(a){var b=document.getElementById('menuCreate');83!=a.which||document.activeElement!=document.body||b||(a.preventDefault(),_b())}),_a.on('keydown',function(a){83!=a.which||bb.is(':focus')||(a.preventDefault(),bb.focus())}),_a.on('keydown',function(a){if(9==a.keyCode){var b=c(a.target);if(a.shiftKey)b.get(0)==bb.get(0)&&(a.preventDefault(),_a.find(':focusable').last().focus());else{var d=_a.find(':focusable').last();b.get(0)==d.get(0)&&(a.preventDefault(),bb.focus())}}}),_a.on('focus',':focusable',function(a){var b=c(a.target),d=b.closest('.j-visor-result');d.length&&_c(d,!0)}),_a.scrolled(200,function(){ob===la&&_a.scrollTop()+_a.height()>gb.height()-300&&Zc('content')}),_a.on('click','a.j-js-send-direct-message',function(a){a.preventDefault();var b=c(this).attr('data-userid');require(['apps/direct_messaging/factory'],function(a){a.sendMessageToUserIds([b])})}),c('#time-ranges').on('change',function(){var a=this.value;qd(a),Mc(),Fc()}),c('#time-range-new').click(function(){md(),pd(c('#time-range-dropdown-spotlight').hasClass('show')?!1:!0)}),c('#time-range-dropdown-spotlight').click(function(a){a.stopPropagation(),a.preventDefault();var b=a.target.dataset.value,d=a.target.innerText;qd(b),c('#time-range-filter-button').text(d),pd(),Ed()}),c('.spotlight-type-filters-input').change(function(){var a=l.parseFilterParams(this.value);if(this.checked){var b=l.createContentMultipleFilters(a,Sa);zb+=1}else{var b=l.removeContentMultipleFilters(a,Sa);zb-=1}b.type||(b={},delete Sa.type,delete Sa.subtype,delete Sa.source),nd(b),vc(b),ud(),yd(this.value),Kd(),Ed()}),c('#content-types').on('change',function(){var a=l.parseFilterParams(this.value);xc('type'),xc('subtype'),xc('source');var b=od(a);vc(b),Mc(),Fc()}),c('#spotlight-type-filters-clickable').on('click',function(){qb?td():ud()}),m.debug('Visor UI init complete')}},md=function(){var a=window.navigator.userAgent,b=a.indexOf('MSIE ');(b>0||navigator.userAgent.match(/Trident.*rv\:11\./))&&(c('#time-range-dropdown-spotlight a').css('padding-top','9px'),c('#time-range-dropdown-spotlight a').css('padding-bottom','9px'))},nd=function(a){b.isEmpty(a.type)&&(delete a.type,delete Sa.type),b.isEmpty(a.subtype)&&(delete a.subtype,delete Sa.subtype),b.isEmpty(a.source)&&(delete a.source,delete Sa.source)},od=function(a){var b={};return a.type&&'all'!==a.type&&(b.type='discussion'===a.type?'message':a.type),a.subtype&&(b.subtype=a.subtype),a.source&&(b.source=a.source),b},pd=function(a){a?(c('#time-range-dropdown-spotlight').addClass('show'),c('.below-arrow-time-range').show()):(c('#time-range-dropdown-spotlight').removeClass('show'),c('.below-arrow-time-range').hide())},qd=function(a){if('all'===a)xc(sa);else{var b={};b[sa]=a,vc(b)}},rd=function(a){if(c('.spotlight-type-filters-form').is(':visible')){var b=c('#spotlight-type-filters-clickable'),d=c('.spotlight-type-filters-form');b.is(a.target)||0!==b.has(a.target).length||d.is(a.target)||0!==d.has(a.target).length||(Ad(),td())}return!1},sd=function(a){if(c('#time-range-dropdown-spotlight').is(':visible')){var b=c('#time-range-new');b.is(a.target)||0!==b.has(a.target).length||pd(!1)}return!1},td=function(){c('.spotlight-type-filters-form').hide(),qb=!1},ud=function(){c('.spotlight-type-filters-form').show(),qb=!0},vd=function(){c(":checkbox[value='type:all']").prop('checked','true')},wd=function(){c(":checkbox[value='type:all']").prop('checked',!1)},xd=function(){return c(":checkbox[value='type:all']:checked").length>0},yd=function(a){var b='type:all';b!==a?wd():b===a&&(Dd({}),c('input:checkbox').prop('checked',!1),zb=0,Ed()),zd(Sa)&&vd()},zd=function(a){return b.isEmpty(a.type)&&b.isEmpty(a.subtype)&&b.isEmpty(a.source)},Ad=function(){zb>=1&&!xd()?Bd():Cd()},Bd=function(){c('.spotlight-type-filters-button').text(f.jsGetMsg(Ib)+' ('+zb+')'),c('body').hasClass('j-responsive-sm')?c('.j-visor-spotlight-filter-all-content').addClass('multiple-content-type-responsive'):c('.j-visor-spotlight-filter-all-content').addClass('multiple-content-type-applied')},Cd=function(){c('.spotlight-type-filters-button').text(f.jsGetMsg(Hb)),c('body').hasClass('j-responsive-sm')?c('.j-visor-spotlight-filter-all-content').removeClass('multiple-content-type-responsive'):c('.j-visor-spotlight-filter-all-content').removeClass('multiple-content-type-applied')},Dd=function(a){a.type?vc(a):(vc({}),delete Sa.type,delete Sa.subtype,delete Sa.source)},Ed=function(){c('#j-visor-search-input').val()&&(Mc(),Fc())},Fd=function(a){a?(c('#single-content-filter-dropdown').hide(),c('#time-range-old').hide(),c('.spotlight-type-filter-buttons').hide()):(c('.j-visor-spotlight-filter-all-content').hide(),c('#time-range-new').hide(),c('.down-pointer').hide())},Gd=function(){c('#j-visor-search-input').val()?c('#introductory-search-text').show():c('#introductory-search-text').hide()},Hd=function(a){var b=a||bb.val().trim();u.addUserSearchHistory(j.userId,b)},Id=function(a){Db=!0;var b=bb.val().trim();if(Fc(),dd(!0),ed(),mb.length)tc(mb,a);else if(b&&0===b.indexOf(_)){var c=b.slice(_.length),d=Rb[c];d?(m('Running dev command '+c),bb.val(''),d(function(a){m('-> dev command '+c+' completed. Output: ',a)})):m('Dev command '+c+' not recognized')}},Jd=function(){var a=bb.val().trim(),b='';if(a){var c=a;1!=window.kendraEnabledForCurrentUser&&'*'!==c.slice(-1)&&(c+='*'),b='?q='+encodeURIComponent(c)+cd(Sa)}return e.baseUrl('/search.jspa')+b},Kd=function(){c('#j-visor-advanced-search-button').attr('href',Jd())},Ld=function(){rc(Jd()),bb.val('')},Md=function(a){return a.shiftKey&&a.key===ya?!1:!(a.altKey||a.ctrlKey||a.metaKey||a.keyCode===xa)},Nd=function(a){var b=[xa,Ba,Da,Ca,Ea,Fa];return b.indexOf(a.which)>0},Od=function(a){return a.keyCode>=za&&a.keyCode<=Aa},Pd=function(a){return rb&&!Nd(a)&&Od(a)},Qd=function(a){return rb&&!Nd(a)&&!Od(a)},Rd=function(a){return!rb&&!Nd(a)&&!Od(a)};return{init:ld,open:_b,close:ac,toggle:bc,setInput:Zb,assignSearchHistoryEvents:Ub,markAllContentMultiChoiceByDefault:vd,unmarkAllContentMultiChoiceByDefault:wd}}),define('soy!jive.welcome.updateIndicator',['soyDeps'],function(a){return jive.namespace.call(this,'jive.welcome'),jive.welcome.updateIndicator=function(b,c){var d=c||new soy.StringBuilder;return d.append('count'==b.type?'<span data-count="'+soy.$$escapeHtmlAttribute(b.count)+'" tabindex="-1" aria-label="'+soy.$$escapeHtmlAttribute(a._i18n('b56039',[]))+'" class="j-js-update-indicator j-update-count'+(0==b.count?' zero':'')+(b.count>50?' fiftyplus':'')+(b.extraCssClasses?' '+soy.$$escapeHtmlAttribute(b.extraCssClasses):'')+'"'+(0!=b.count||b.showZero?'':'style="display:none;"')+'>'+(b.count>50?'50+':0==b.count&&b.initial?'&ndash;':soy.$$escapeHtml(b.count))+'</span>':'gauge'==b.type?'<span role="img" data-count="'+soy.$$escapeHtmlAttribute(b.count)+'" class="j-js-update-indicator j-update-gauge jive-icon-glyph '+(b.count<10?'icon-activity-gauge-low':b.count<40?'icon-activity-gauge-med':'icon-activity-gauge-high')+'" '+(0==b.count?'style="display:none;"':'')+' title="'+(b.count<10?soy.$$escapeHtmlAttribute(a._i18n('19bb3f',[])):b.count<40?soy.$$escapeHtmlAttribute(a._i18n('6b344d',[])):soy.$$escapeHtmlAttribute(a._i18n('19b4df',[])))+'" aria-label="'+(b.count<10?soy.$$escapeHtmlAttribute(a._i18n('19bb3f',[])):b.count<40?soy.$$escapeHtmlAttribute(a._i18n('6b344d',[])):soy.$$escapeHtmlAttribute(a._i18n('19b4df',[])))+'" tabindex="0" ></span>':''),c?'':d.toString()},jive.welcome.updateIndicator}),define('jive/responsive',['jquery','underscore','url','apps/activity_stream/activity_notifier','apps/tile/template','apps/tile/integrations/image_gallery','apps/shared/controllers/switchboard','soy!jive.tilepage.mobile.homePageDynamicPane','ui-modules/spotlight/scripts/visor/apis','ui-modules/spotlight/scripts/visor/ui','channel!navMenu','soy!jive.welcome.updateIndicator','jquery-mobile/jquery.mobile.vmouse','jquery-plugin/jquery.popover','touchevents-fix'],function(a,b,c,d,e,f,g,h,j,k,l){var m=function(a,b,c){c=c||{};var d=this;this.$trigger=a,this.$menu=b,this.options=c,this.$trigger.off('.responsive').on('vclick.responsive',function(a){a.preventDefault(),d.toggle()})};a.extend(m.prototype,{isOpened:function(){return this.$menu.hasClass('active')},open:function(){n.hideMenus(),this.$menu.addClass('active'),this.options.noOverlay||n.showOverlay(),this.options.$items&&(this.options.$items.addClass('mobile-active'),a('#j-header-wrap').removeClass('fixed'),a(window).scrollTop(0),"#j-spotlight-search"==this.options.$items.selector&&a("#autosearch").focus(),'#j-search-visor'===this.options.$items.selector&&a('#j-search-visor').css({display:'block'}))},close:function(){this.$menu.removeClass('active'),this.options.noOverlay||n.hideOverlay(),this.options.$items&&(this.options.$items.removeClass('mobile-active'),a('#j-header-wrap').addClass('fixed')),a('#j-search-visor').css({display:'none'})},toggle:function(){this.isOpened()?this.close():this.open()}});var n={_initialized:!1,_currentSize:null,_mediaQueryLists:{},_mediaQueryListListeners:{},_overlayCloseTimeoutId:null,init:function(){n._initialized||(n._initialized=!0,n.registerBreakpoint('only screen and (max-width:40em)','sm'),n.registerBreakpoint('only screen and (min-width:40em)','md'),a('#jive-body .js-home-welcome-responsive').length>0&&this.handleWelcomePage(),'sm'==this.getCurrentSize()&&(a.fn.popover.defaults.flip=!1),n.bindEvents(),a('body').hasClass('j-responsive-md')||j.getVisorFilters().then(function(b){var c={};c.searchFilters=b,k.init(c),k.markAllContentMultiChoiceByDefault(),a('#j-visor-advanced-search-button').text('Search')},function(a){log.error('Could not retrieve spotlight search filters metadata.',a)}))},buildMQLListener:function(c){var d=a('body');return function(a){var e=b.keys(n._mediaQueryLists),f=b.without(e,c),h=b.map(f,function(a){return'j-responsive-'+a});a.matches?(n._currentSize=c,g.emit('responsive.breakpoint.changed',c),d.removeClass(h.join(' ')).addClass('j-responsive-'+c)):d.removeClass('j-responsive-'+c)}},registerBreakpoint:function(a,b){var c,d;window.matchMedia&&(c=window.matchMedia(a),this._mediaQueryLists[b]=c,this._mediaQueryListListeners[c.media]=d=this.buildMQLListener(b),c.addListener(d),d(c))},setTabletMetaElement:function(){var b=a(document).find('meta[name=viewport]'),c=b.attr('content'),d;d=b&&window.matchMedia&&window.matchMedia('(min-device-width: 640px) and (max-device-width: 1024px)').matches?'width=1024, user-scalable=1':'user-scalable=0, initial-scale=1.0',c!==d&&(b.attr('content',d),a(window).trigger('resize','setTabletMetaElement'))},bindEvents:function(){var c=a('.j-pop-main');if(a('#mob-spotlight-cancel').on('vclick',function(b){b.preventDefault(),n.hideMenus(),a('.mobile-tool > a').removeClass('active'),a('#j-spotlight-search').removeClass('mobile-active'),a('#j-search-visor').hide(),a('#mobile-overlay').removeClass('active')}),jive.search&&jive.search.searchParams&&jive.search.searchParams.addListener('change',function(){n.accordionMenu.close()}),a('#mobile-overlay').on('vclick',function(b){b.preventDefault(),n.hideMenus(),a('.mobile-tool > a').removeClass('active')}),a(document).on('navbarPopoverLoad','.j-pop-main',function(b){function d(){e.height()+(e.offset().top-a(window).scrollTop())>a(window).height()&&e.height(a(window).height()-e.offset().top-10)}if(clearTimeout(n._overlayCloseTimeoutId),a('body').hasClass('j-responsive-sm')){c.is(b.target)||(n.hideMenus(),a('.mobile-tool > a').removeClass('active')),'sm'===n.getCurrentSize()&&n.showOverlay();var e=a(b.target);void 0==e.attr("data-height")&&e.attr("data-height",e.prop("style").height),e.css({height:e.attr("data-height")}),d(),0==e.height()&&l.off('navMenuRendered').on('navMenuRendered',d.bind(this)),a(this).one('close.popoveroverlay',function(a){n._overlayCloseTimeoutId=setTimeout(function(){n.hideOverlay()},100)})}}),a(document).on('vclick','.j-pop-main a.quick',function(a){n.hideOverlay()}),a(document).on('vclick','input[type=submit],button[type=submit]',function(b){var c=a(this);/^touch/.test(b.originalEvent.type)&&(b.originalEvent.preventDefault(),c.click(),console.log('disabling submit button'),c.prop('disabled',!0))}),a(window).on('resize',function(a,b){'setTabletMetaElement'!==b&&n.setTabletMetaElement()}),'sm'===n.getCurrentSize()){var e=function(){var b=window.location.pathname;if(a('#j-profile-header-avatar-stats *, .j-endorse-count').bind('click',function(){return!1}),a('.j-homenav-link, .js-select-link').on('vclick',function(b){b.preventDefault();var c=a(this).attr('href');window.location=c}),a('body').hasClass('j-header-mode-basic')){var c=a('#navCreate'),d=a('#j-satNav-wrap .j-globalNav-li').children(),e=a('#j-satNav-wrap .js-satellite-nav-container').children();a('#j-links .j-globalNav').prepend('<li class="j-nav-create j-nav-cmenu j-globalNav-li js-create-nav-container" aria-haspopup="true"></li>').prepend('<li class="j-globalNav-li j-nav-create j-nav-user j-satNav-user-menu">').prepend('<li class="j-nav-create j-nav-user j-globalNav-li js-satellite-nav-container" aria-haspopup="true"></li>'),a('#j-links .j-nav-cmenu').append(c),a('#j-links .j-satNav-user-menu').append(d),a('#j-links .js-satellite-nav-container').append(e),a('#jive-nav-link-create').remove(),a('#j-satNav-wrap').remove()}a('#j-header-wrap').addClass('fixed'),a('#navCreate').length||a('.j-globalNav').addClass('no-create'),a('#jive-nav-link-dashboard').length?'/get-started'!==b&&'/moderation'!==b||(window.location='/welcome'):'/get-started'!==b&&'/moderation'!==b||(window.location='/activity');var f=a('.js-tile-image-gallery').width(),g=f/300,h=parseInt(a('.js-tile-image-gallery').height()*g);a('.js-tile-image-gallery .j-slide').width(f),a('.js-tile-image-gallery .js-carousel').height(h),a('.js-tile-image-gallery').addClass('j-loaded');var i=function(a,b){var c=a.length;c-=b.length;var d=a.indexOf(b,c);return-1!==d&&d===c},j=a('#jive-place-link-overview-tab');if(j.length>0&&j.is('.active')){var k=a('#jive-place-link-activity');k.length>0?window.location=k[0].href:(i(b,'activity')&&(b=b.slice(0,-'activity'.length)),i(b,'activity')&&(b=b.slice(0,-'overview'.length)),window.location=b+'/content')}};e()}a('#mobile-place-menu').on('vclick',function(b){b.preventDefault(),a(this).toggleClass('active'),a('nav.j-placeNav ul.j-placeMainNav').toggleClass('mobile-active')}),a('#jive-place-link-actions').on('vclick',function(b){
a('#mobile-place-menu').hasClass('active')&&(a('#mobile-place-menu').toggleClass('active'),a('nav.j-placeNav ul.j-placeMainNav').toggleClass('mobile-active'))}),g.addListener('responsive.enableSubmit',function(){a('input[type=submit],button[type=submit]').attr('disabled',!1)}),d.addListener('activityStream.poll',function(c){var d=c.fullCounts.communications.unreadCount,e=a('.j-badge-hd.j-rc5.j-rc-none-bottom'),f=function(){require(['soy!jive.nav.menu.home.inbox'],function(b){var c=new a.Deferred;c.then(function g(){e.replaceWith(b({unreadCount:d}))});var f=setInterval(function h(){e=a('.j-badge-hd.j-rc5.j-rc-none-bottom'),e.length>0&&(c.resolve(),clearInterval(f))},16)})};e.length?f():a(document).on('navbarPopoverLoad updatePopoverHTML',function(c){'j-satNav-menu'===c.target.id&&(e=a('.j-badge-hd.j-rc5.j-rc-none-bottom'),b.defer(f))})});var f=function(){var a=function(a){'sm'===a&&jive.ActivityStream&&jive.ActivityStream.GlobalCommunicationStreamController&&jive.ActivityStream.GlobalCommunicationStreamController.changeViewType('full',!0)};g.addListener('responsive.breakpoint.changed',a),a(n._currentSize)};jive.ActivityStream&&jive.ActivityStream.GlobalCommunicationStreamController?f():g.addListener('activity.communication.controller.initialized',f),n.showElems()},handleWelcomePage:function(){var b=a('#jive-body .js-home-welcome-responsive').data('browseId');"undefined"!=typeof b&&e.fetchMobileHomePage(b).done(function(b){b||(b=a('#jive-body .js-home-welcome-responsive').data('defaultMobileHomePage'));var d=a('#jive-body .js-home-welcome-responsive').data('welcomeMessage'),e=a.extend({},{template:b},{place:{objectType:14,id:1,name:'Jive'}},{canManageContainer:!1},{welcomeMessage:d});n.getTileColumns(e,b);var g=a(h(e));a('#jive-body .js-home-welcome-responsive').html(g),a('.js-tile-image-gallery-wide, .js-tile-image-gallery-narrow').length&&f.initSlick(),a('body.j-body-welcome .j-layout-sl nav.j-column-s').length&&a('body.j-body-welcome').addClass('not-simple'),jive.util.loadCSS(c.cssUrl('/jive-places.css'),a.noop,c.cssUrl('/jive.css'))})},getTileColumns:function(b,c){var d=[],e=[],f=[],g=0,h=0,j=0;if(c&&c.tiles)for(i=0;i<c.tiles.length;i++)switch(c.tiles[i].column){case 0:d[g++]=c.tiles[i];break;case 1:e[h++]=c.tiles[i];break;case 2:f[j++]=c.tiles[i]}a.extend(b,{tileColumn0:d}),a.extend(b,{tileColumn1:e}),a.extend(b,{tileColumn2:f})},mainMenu:new m(a('#mobile-menu > a'),a('#mobile-menu > a'),{$items:a('#j-globalNav > li.j-globalNav-li.j-ui-elem')}),searchMenu:new m(a('#mobile-search > a'),a('#mobile-search > a'),{$items:a('#j-search-visor')}),accordionMenu:new m(a('a#mobile-sidenav-btn'),a('a#mobile-sidenav-btn').parent(),{noOverlay:!0}),showOverlay:function(){a('#mobile-overlay').addClass('active'),a('.j-visor-menu-item-default').trigger('click'),a('.j-visor-menu-item-recently').trigger('click')},hideOverlay:function(){this.mainMenu.isOpened()||this.searchMenu.isOpened()||a('#navCreate').hasClass('active')||a('#j-satNav').hasClass('active')||a('#mobile-overlay').removeClass('active')},hideMenus:function(){a('.j-pop .j-pop-main').trigger('close'),n.mainMenu.close(),n.searchMenu.close(),n.accordionMenu.close(),a('#j-globalNav > li.j-globalNav-li.j-ui-elem').removeClass('mobile-active'),a("body.j-body-home .j-layout-sl nav.j-column-s, body.j-body-home .j-layout-sls nav.j-column-s, body.jive-body-search .j-layout-sl .j-column-s, nav.j-second-nav, body.jive-body-content .j-column-s, #mobile-sidenav-btn").removeClass('active'),a('#mobile-place-menu').hasClass('active')&&(a('#mobile-place-menu').toggleClass('active'),a('nav.j-placeNav ul.j-placeMainNav').toggleClass('mobile-active'))},getCurrentSize:function(){return this._currentSize},showElems:function(){a('body.j-body-home .j-layout-sl nav.j-column-s').addClass('j-loaded'),a('body.j-body-home nav.j-news-menu').addClass('j-loaded'),a('body.j-body-home .j-layout-sls nav.j-column-s').addClass('j-loaded'),a('body.jive-body-content .j-layout-ls .j-column-s').addClass('j-loaded'),a('body.jive-body-search .j-layout-sl .j-column-s').addClass('j-loaded'),a('nav.j-second-nav').addClass('j-loaded'),a('.j-placeNavWrap').addClass('j-loaded')}};return n.setTabletMetaElement(),a(document).ready(function(){n.init()}),n}),define('jive/search/search-date',[],function(){function a(a){var b=a.replace(/\+\d+/,'Z'),c=new Date(b);if(isNaN(c.getTime())){var d=b.replace(/-/,'/').replace('T',' ').replace(/\.\d+Z/,' GMT');c=new Date(d)}return c}function b(b){var c=a(b);return c.setMilliseconds(0),c}return{apiDateToMillis:b}}),define('jive/share',['jive/dispatcher'],function(a){var b;a.listen('share',function(a){require(['apps/share/main'],function(c){b=b||new c,b.showModal(a.objectId,a.objectType,a.relationshipId)})})}),define('jive/soy/helpers/bindLightboxMedia',['jquery','jquery-plugin/jquery.lightbox_media','jive/namespace'],function(a){function b(b){a("a[href]",b||document).filter(function(){return d.test(this.href)||e.test(this.href)||f.test(this.href)||h.test(this.href)&&!g.test(this.href)&&"_blank"!=this.target}).lightbox_media()}function c(b){a("a.j-js-youtube, a[rel=fb]",b||document).each(function(){a(this).lightbox_media({type:'video'})})}jive.namespace('soy.helpers');var d=/\.(?:jpg|jpeg|jpe|png|gif)$/i,e=/core\/v3\/images\/\d+/,f=/core\/v3\/contents\/\d+\/previewImage/,g=/\/JiveServlet\/downloadBody\//,h=/videos\/.*\/image?/;return jive.soy.helpers.bindLightboxMedia=function(a,d){var e=d||new soy.StringBuilder,f=null;return a&&a.context&&(f=a.context),window.setTimeout(function(){b(f),c(f)},1),d?void 0:e.toString()},jive.soy.helpers.bindLightboxMedia}),define('jive/soy/helpers/substitute',['jive/i18n','jive/namespace'],function(a){return jive.namespace('soy.helpers'),jive.soy.helpers.substitute=function(b,c){var d={zero:0,one:1,two:2,three:3,four:4,five:5,six:6},e=b.string,f=[];Object.keys(b).forEach(function(a){'undefined'!=typeof d[a]&&'undefined'==typeof f[d[a]]&&(f[d[a]]=b[a])}),c.append(a.i18nText(e,f))},jive.soy.helpers.substitute}),define('soy!jive.home.contentTypeHref',['soyDeps'],function(a){return jive.namespace.call(this,'jive.home'),jive.home.contentTypeHref=function(a,b){var c=b||new soy.StringBuilder;return c.append(a.legacy?a.urlParams?soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,a.url,jQuery.extend({},function(){for(var b={},c=[['sr',a.trackingID]],d=0;d<c.length;d+=1)b[c[d][0]]=c[d][1];return b}(),a.urlParams))):soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,a.url,function(){for(var b={},c=[['sr',a.trackingID]],d=0;d<c.length;d+=1)b[c[d][0]]=c[d][1];return b}())):'javascript:void(0)'),b?'':c.toString()},jive.home.contentTypeHref}),define('soy!jive.home.activityStreamCreateMenuItem',['soyDeps','soy!jive.home.contentTypeHref'],function(a){return jive.namespace.call(this,'jive.home'),jive.home.activityStreamCreateMenuItem=function(b,c){var d=c||new soy.StringBuilder;return'nav.bar.create.content.status'!=b.item.nameKey&&b.item.visible&&(d.append('<a href="'),jive.home.contentTypeHref(soy.$$augmentMap(b.item,{legacy:(b.item.linkCss.match(new RegExp('js-legacy-create',''))||[]).length>0,trackingID:b.trackingID}),d),d.append('" class="',soy.$$escapeHtmlAttribute(b.item.linkCss),' j-as-create-item" title="',soy.$$escapeHtmlAttribute(a._i18n(b.item.descriptionKey,[])),'"',b.item.urlParams&&b.item.urlParams.contentType?' data-content-type="'+soy.$$escapeHtmlAttribute(b.item.urlParams.contentType)+'"':'',b.upload?' data-upload="true"':''),(b.item.linkCss.match(new RegExp('quick',''))||[]).length>0&&(d.append(b.item.urlParams&&b.item.urlParams.containerID?' data-project="'+soy.$$escapeHtmlAttribute(b.item.urlParams.containerID)+'"':'',' data-quick-create-url="'),jive.home.contentTypeHref(soy.$$augmentMap(b.item,{trackingID:b.trackingID,legacy:!0}),d),d.append('"')),d.append(' data-ident="',soy.$$escapeHtmlAttribute(b.item.nameKey),'"><span class="',soy.$$escapeHtmlAttribute(b.item.iconCss),' jive-icon-med"></span><span class="lnk">',soy.$$escapeHtml(a._i18n(b.item.nameKey,[])),'</span></a>')),c?'':d.toString()},jive.home.activityStreamCreateMenuItem}),define('soy!jive.home.activityStreamCreateMenu',['soyDeps','soy!jive.home.activityStreamCreateMenuItem','soy!jive.shared.soy.resourceInlineJs'],function(a){return jive.namespace.call(this,'jive.home'),jive.home.activityStreamCreateMenu=function(b,c){var d=c||new soy.StringBuilder;if(b.createMenuData.visible&&b.createMenuData.sections[0].items.length){jive.shared.soy.resourceInlineJs({code:'require([ \'apps/activity_stream/activity_stream_create_menu_view\', \'domReady!\' ], function(CreateMenuView) {var view = new CreateMenuView({createMenuData: '+soy.$$filterNoAutoescape(JSON.stringify(b.createMenuData).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+', location: \''+soy.$$escapeHtml(b.location)+'\'}); view.postRender();});'},d),d.append('<div id="j-as-create-menu"><a href="#" id="as-create-menu-more" class="j-as-create-menu-more" aria-hidden="true" style="display:none;"><span class="lnk">',soy.$$escapeHtml(a._i18n('aa5555',[])),'</span><span class="j-nav-more jive-icon-glyph icon-arrow-down2 j-filter-icon"></span></a><div id="j-as-create-menu-items">',b.canCreateStatusUpdates&&b.createMenuData.sections.length>0?'<span class="j-as-create-item" role="heading"><span class="font-color-meta j-create-heading">'+soy.$$escapeHtml(a._i18n('c462c4',[]))+'</span></span>':'',b.canCreateStatusUpdates?'<span class="'+(b.createMenuData.sections[0].items.length>1?'j-as-create-status-update':'')+' j-as-create-item" title="'+soy.$$escapeHtmlAttribute(a._i18n('05f100',[]))+'"><span class="jive-icon-status jive-icon-med"></span>'+soy.$$escapeHtml(a._i18n('2e9b52',[]))+'</span>':'');for(var e=b.createMenuData.sections,f=e.length,g=0;f>g;g++){var h=e[g];if(h.createMenuSection&&h.visible)for(var i=h.items,j=i.length,k=0;j>k;k++){var l=i[k];l.uploadable&&jive.home.activityStreamCreateMenuItem({item:l.uploadLink,trackingID:b.location,upload:!0},d),jive.home.activityStreamCreateMenuItem({item:l,trackingID:b.location},d)}}d.append('</div></div><div id="j-as-create-menu-pop" class="j-menu j-quick-menu" style="display:none;"></div><script>require([ \'jquery\' ], function($j) {var $upMenu = $j(\'#j-as-create-menu-items\'), $menuItems = $upMenu.find(\'.j-as-create-item\'), $moreBtn = $j(\'#as-create-menu-more\'), upMenuWidth = $upMenu.outerWidth(true), createMenuItemsTotalWidth = 0; $menuItems.each(function() {createMenuItemsTotalWidth += $j(this).outerWidth(true);}); if (upMenuWidth >= createMenuItemsTotalWidth - 1) {$moreBtn.hide();}else {$moreBtn.show();}})();</script>')}return c?'':d.toString()},jive.home.activityStreamCreateMenu}),define('soy!jive.place.createStreamContent',['soyDeps','soy!jive.home.activityStreamCreateMenu'],function(a){return jive.namespace.call(this,'jive.place'),jive.place.createStreamContent=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-browse-filter-row j-type-row clearfix" role="group" aria-label="',soy.$$escapeHtmlAttribute(a._i18n('86892d',[])),'">'),jive.home.activityStreamCreateMenu({createMenuData:b.streamData.createMenuData,canCreateStatusUpdates:b.streamData.canCreateStatusUpdates,location:'pmenu'},d),d.append('</div>'),c?'':d.toString()},jive.place.createStreamContent}),define('soy!jive.integration.streams.edit.addButton',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.streams.edit'),jive.integration.streams.edit.addButton=function(b,c){var d=c||new soy.StringBuilder;return d.append('<a href="#" class="j-add-stream-item j-js-add-stream-item j-rc6 font-color-meta-light">',soy.$$escapeHtml(a._i18n('9d5cc9',[])),'</a>'),c?'':d.toString()},jive.integration.streams.edit.addButton}),define('soy!jive.integration.streams.edit.itemDeprecation',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.streams.edit'),jive.integration.streams.edit.itemDeprecation=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-stream-deprecation jive-warn-box"><span class="jive-icon-med jive-icon-warn"></span><span class="j-configMenuLabel">',soy.$$escapeHtml(a._i18n('6310e5',[])),'</span>',soy.$$escapeHtml(b.deprecation.message?b.deprecation.message:a._i18n('6310e5',[])),'</div>'),c?'':d.toString()},jive.integration.streams.edit.itemDeprecation}),define('soy!jive.integration.streams.edit.itemStatusIcon',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration.streams.edit'),jive.integration.streams.edit.itemStatusIcon=function(a,b){var c=b||new soy.StringBuilder;switch(a.level){case'warn':c.append('jive-icon-warn');break;case'error':c.append('jive-icon-redalert');break;default:c.append('jive-icon-info')}return b?'':c.toString()},jive.integration.streams.edit.itemStatusIcon}),define('soy!jive.integration.streams.edit.itemStatus',['soyDeps','soy!jive.integration.streams.edit.itemStatusIcon'],function(a){return jive.namespace.call(this,'jive.integration.streams.edit'),jive.integration.streams.edit.itemStatus=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="jive-',soy.$$escapeHtmlAttribute(b.level),'-box j-tileConfigMsg"><div><span class="jive-icon-med '),jive.integration.streams.edit.itemStatusIcon(b,d),d.append('"></span>',b.__set_by_jive_canned_status?soy.$$escapeHtml(a._i18n(b.message,[])):soy.$$escapeHtml(b.message),'</div></div>'),c?'':d.toString()},jive.integration.streams.edit.itemStatus}),define('soy!jive.integration.streams.edit.item',['soyDeps','soy!jive.integration.streams.edit.itemDeprecation','soy!jive.integration.streams.edit.itemStatus'],function(a){return jive.namespace.call(this,'jive.integration.streams.edit'),jive.integration.streams.edit.item=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<li class="j-stream-item j-js-stream-item j-tile"',b.editing?'data-integration="'+soy.$$escapeHtmlAttribute(JSON.stringify(b.instance).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+'"':'data-integration-view="'+soy.$$escapeHtmlAttribute(JSON.stringify({id:b.instance.id,definition:b.instance.definition}).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+'"','>',b.instance.definition.icons[48]?'<img src="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.instance.definition.icons[48]))+'" height="48" width="48" role="img" alt="">':'','<h5>',b.instance.displayName?soy.$$escapeHtml(b.instance.displayName):soy.$$escapeHtml(b.instance.definition.displayNameLocalized),'</h5><p class="font-color-meta">',soy.$$escapeHtml(b.instance.definition.descriptionLocalized),'</p>'),b.instance.status&&jive.integration.streams.edit.itemStatus(b.instance.status,d),b.editing&&b.instance.definition.deprecation.deprecated&&jive.integration.streams.edit.itemDeprecation({deprecation:b.instance.definition.deprecation},d),d.append('<div class="j-streamItemActions">'),b.instance.definition.config){var e=b.instance.config&&0!=b.instance.config.keys.length;d.append('<div class="js-stream-config-off" style="display:',e?'none;':'inline;','"><div class="jive-info-box"><div><span class="jive-icon-med jive-icon-info"></span>',soy.$$escapeHtml(a._i18n('cde4e8',[])),'</div></div></div><div class="js-stream-config-on" style="display:none;"><div class="jive-success-box"><div><span class="jive-icon-med jive-icon-check"></span>',soy.$$escapeHtml(a._i18n('2fe542',[])),'</div></div></div><a href="#" class="action js-configure">',soy.$$escapeHtml(a._i18n('f4dd35',[])),'</a>')}return d.append('<a href="#" class="action js-delete">',soy.$$escapeHtml(a._i18n('be4670',[])),'</a></div></li>'),c?'':d.toString()},jive.integration.streams.edit.item}),define('soy!jive.integration.streams.edit.streamList',['soyDeps','soy!jive.integration.streams.edit.addButton','soy!jive.integration.streams.edit.item'],function(a){return jive.namespace.call(this,'jive.integration.streams.edit'),jive.integration.streams.edit.streamList=function(a,b){var c=b||new soy.StringBuilder;a.showAddStreams&&jive.integration.streams.edit.addButton(null,c),c.append('<ul class="j-js-stream-item-list">');for(var d=a.instances,e=d.length,f=0;e>f;f++){var g=d[f];jive.integration.streams.edit.item({instance:g,editing:a.editing},c)}return c.append('</ul>'),b?'':c.toString()},jive.integration.streams.edit.streamList}),define('soy!jive.place.storageContainer',['soyDeps'],function(a){return jive.namespace.call(this,'jive.place'),jive.place.storageContainer=function(b,c){b=b||{};var d=c||new soy.StringBuilder;return d.append(b.container?'<div class="j-storage-item j-js-storage-item j-js-storage-item-configurable '+(b.container.definition.icons[16]?'j-storage-item-withicon':'')+'" data-id="'+soy.$$escapeHtml(b.container.instanceID)+'" data-integration="'+soy.$$escapeHtml(JSON.stringify(b.container).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+'">'+(b.container.definition.icons[16]?'<img src="'+soy.$$escapeHtml(b.container.definition.icons[16])+'" height="16" width="16" role="img" alt="">':'')+'<span>'+soy.$$escapeHtml(a._i18n(b.container.instanceName,[]))+'</span>'+(b.container.definition.deprecation.deprecated?'<div class="j-storage-deprecation"><span class="jive-icon-med jive-icon-warn"></span>'+soy.$$escapeHtml(b.container.definition.deprecation.message?b.container.definition.deprecation.message:a._i18n('367a7b',[]))+'</div>':'')+(b.container.definition.configPlace?'<div class="j-storageItemActions"><a href="#" class="action js-configure">'+soy.$$escapeHtml(a._i18n('f4dd35',[]))+'</a></div>':'')+'<form name="form-edit"><input id="exStorageContainer" name="exStorageContainer" type="hidden" value="'+soy.$$escapeHtml(JSON.stringify(b.container).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+'" ></form></div>':'<div class="j-storage-item j-js-storage-item" data-id="-1"><span>'+soy.$$escapeHtml(a._i18n('17654c',[]))+'</span><form name="form-edit"><input id="exStorageContainer" name="exStorageContainer" type="hidden" value="none" ></form></div>'),c?'':d.toString()},jive.place.storageContainer}),define('soy!jive.place.customizeStream',['soyDeps','soy!jive.integration.streams.edit.streamList','soy!jive.place.storageContainer'],function(a){return jive.namespace.call(this,'jive.place'),jive.place.customizeStream=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<div id="stream-content" class="js-overview-hidden">'),jive.integration.streams.edit.streamList({instances:b.extStreams,editing:b.customizeNow,showAddStreams:b.availableStreamIntegrations},d),d.append('</div><div class="j-tile j-stream-item"><span class="jive-icon-huge jive-icon-activity" style="position:absolute;"></span><div class="j-configure-content"><div class="j-configMenu j-expandedMenu"><a href="#" class="js-edit-content-link configOpt font-color-normal"><span class="jive-icon-glyph icon-gear"></span><span class="j-configMenuLabel">',soy.$$escapeHtml(a._i18n('16696c',[])),'</span></a></div>'),b.editPlaceForm.containableTypes.length>0){d.append('<h5>',soy.$$escapeHtml(a._i18n('e456ec',[])),'</h5><div class="j-contentTypeList"><ul id="place-content-types" class="clearfix">');for(var e=b.editPlaceForm.containableTypes,f=e.length,g=0;f>g;g++){var h=e[g];d.append('<li id="place-content-type-visible-',soy.$$escapeHtmlAttribute(h.coreObjectTypeName),'" class="j-js-place-content-type-visibile" ',h.selected?'':'style="display:none;"','><label><span role=\'img\' title="',soy.$$escapeHtmlAttribute(a._i18n(a.getMinKey('global.access.content.type.'+h.id),[])),'" class="',soy.$$escapeHtmlAttribute(h.formCSS),'"></span>',soy.$$escapeHtml(h.name),'</label></li>')}d.append('</ul></div>')}if((b.editPlaceForm.exStorageContainer||b.editPlaceForm.exStoragePrototypes)&&(d.append('<h5>',soy.$$escapeHtml(a._i18n('d10095',[])),'<a href="#" class="action js-edit-content-link" style="padding-left: 5px;">',soy.$$escapeHtml(a._i18n('d41728',[])),'</a></h5><div id="storage-instance-selected" class="j-storage-instance">'),b.editPlaceForm.exStorageContainer?jive.place.storageContainer({container:b.editPlaceForm.exStorageContainer},d):b.draftPlace?jive.place.storageContainer({container:b.editPlaceForm.exStoragePrototypes[b.editPlaceForm.exStorageSettings.defaultInstance]},d):jive.place.storageContainer({container:null},d),d.append(b.editPlaceForm.hasUserNegativeOverrides?'<span class="jive-icon-med jive-icon-warn"></span><div style="display:block;">Note: this container has negative user overrides (specific users are not allowed to view it). Overrides of this kind might not function properly in all External Storage providers.</div>':'','</div>')),b.editPlaceForm.enabledSettingsActionsLinks&&b.editPlaceForm.enabledSettingsActionsLinks.length>0){d.append('<h5>',soy.$$escapeHtml(a._i18n('6e9b90',[])),'</h5><div class="j-appsList"><ul id="place-apps">');for(var i=b.editPlaceForm.enabledSettingsActionsLinks,j=i.length,k=0;j>k;k++){var l=i[k];d.append('<li><label><span class="jive-icon-med"><img width="16" height="16" src="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(l.icon)),'" alt=""></span>',soy.$$escapeHtml(l.label),'</label></li>')}d.append('</ul></div>')}return d.append('</div></div>'),c?'':d.toString()},jive.place.customizeStream}),define('soy!jive.invite.jsInit',['soyDeps','soy!jive.shared.soy.resourceInlineJs'],function(a){return jive.namespace.call(this,'jive.invite'),jive.invite.jsInit=function(a,b){var c=b||new soy.StringBuilder;return jive.shared.soy.resourceInlineJs({code:'require([ \'jquery\' ], function($j) {if (!window[\'inviteApp\']) {$j(\''+soy.$$escapeHtml(a.trigger)+'\').on(\'click.inviteApp\', function() {require([\'apps/invitation/main\'], function(InviteMain) {window[\'inviteApp\'] = new InviteMain('+soy.$$escapeHtml(a.container_id)+', "'+soy.$$escapeHtml(a.container_type)+'", true, \''+soy.$$escapeJsString(a.trigger)+'\', \''+(a.trackingID?soy.$$escapeJsString(a.trackingID):'')+'\' );}); $j(\''+soy.$$escapeHtml(a.trigger)+'\').off(\'.inviteApp\');}); if ('+(a.showNow?'true':'false')+') {$j(\''+soy.$$escapeHtml(a.trigger)+'\').click();}}});'},c),b?'':c.toString()},jive.invite.jsInit}),define('soy!jive.eae.activitystream.connectionsInfoBox',['soyDeps','soy!jive.invite.jsInit','soy!jive.shared.soy.i18nHelper','soy!jive.shared.soy.resourceInlineJs'],function(a){return jive.namespace.call(this,'jive.eae.activitystream'),jive.eae.activitystream.connectionsInfoBox=function(b,c){var d=c||new soy.StringBuilder;return jive.shared.soy.resourceInlineJs({code:'require([ \'jquery\', \'domReady!\' ], function($j) {function dismissInfoBox(e) {$j(\'#j-stream-info\').slideUp(500,\'easeOutCirc\', function() {$j(\'.j-act-empty-list\').show();}); var userSource = new jive.Browse.User.ItemSource(); userSource.setUserProperty({userID: \'current\', propName: \'jive.connectionsInfo.closed\', propValue: \'true\'}); e.preventDefault();}function toggleInfoBox(e) {if ($j(\'#j-stream-info\').is(\':visible\') ) {dismissInfoBox(e);} else {$j(\'#j-stream-info\').slideDown(200,\'easeInOutCirc\'); e.preventDefault();}}$j(\'#j-stream-info-dismiss-link\').click(dismissInfoBox); $j(\'#j-stream-info-icon\').click(toggleInfoBox);});'},d),d.append('<!-- BEGIN info box --><div id="j-stream-info" class="j-stream-info j-rc5" style="',b.connectionsInfoClosed?'display: none;':'display: block;','">'),1==b.infoType?(d.append('<div class="emptyville"></div><h3 class="font-face-deco">',soy.$$escapeHtml(a._i18n('f3273e',[])),'</h3><p class="j-inviteto-empty">'),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('803492'),arg0:'<strong>'+soy.$$escapeHtml(a._i18n('a22df9',[]))+'</strong>',noAutoEscape:!0},d),d.append('</p>'),b.invitationVisible&&(jive.invite.jsInit({container_id:-1,container_type:-1,showNow:!1,trigger:'#j-invite-button-connections'},d),d.append('<p><strong><a id="j-invite-button-connections" href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'#'))),'">',soy.$$escapeHtml(a._i18n('3caaae',[])),'</a></strong></p><p>',soy.$$escapeHtml(a._i18n('6fd681',[])),'</p>'))):2==b.infoType&&d.append('<div class="emptyville"></div><h3 class="font-face-deco">',soy.$$escapeHtml(a._i18n('f3273e',[])),'</h3><p>',soy.$$escapeHtml(a._i18n('f6e77a',[])),'</p><p><strong>',soy.$$escapeHtml(a._i18n('e1a1e1',[])),'</strong></p><p>',soy.$$escapeHtml(a._i18n('c9e8b7',[])),'</p><button class="j-btn-global j-btn-callout j-js-create-stream">',soy.$$escapeHtml(a._i18n('992523',[])),'</button>'),d.append('</div><!-- END info box -->'),c?'':d.toString()},jive.eae.activitystream.connectionsInfoBox}),define('soy!jive.eae.activitystream.item.grouped.avatar',['soyDeps','soy!jive.shared.displayutil.avatar'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.avatar=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-act-avatar">',a.icon?'<span class="jive-icon-med '+soy.$$escapeHtmlAttribute(a.icon)+'"></span>':''),jive.shared.displayutil.avatar(soy.$$augmentMap(a.activityContainer.originalAuthor,{size:46,currentUserPartner:a.user.partner}),c),c.append('</div>'),b?'':c.toString()},jive.eae.activitystream.item.grouped.avatar}),define('soy!jive.eae.activitystream.item.grouped.statusUpdateStreamImage',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.statusUpdateStreamImage=function(a,b){var c=b||new soy.StringBuilder;if(a.activityContainer.activityList[0].content.meta&&a.activityContainer.activityList[0].content.meta[0]){var d=a.activityContainer.activityList[0].content.meta[0];c.append(111==d.objectType?'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,d.fullImageUrl)))+'" '+(d.originalURL?'jiveOriginalURL="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(d.originalURL))+'"':'')+'><img alt="" class="j-status-image" src="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,d.fullImageUrl)))+'"/></a>':'')}return b?'':c.toString()},jive.eae.activitystream.item.grouped.statusUpdateStreamImage}),define('soy!jive.eae.common.formatMediaLinkUrl',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.formatMediaLinkUrl=function(a,b){var c=b||new soy.StringBuilder;return c.append(a.mediaLink.contentUrl?(a.mediaLink.contentUrl.match(new RegExp('/^https?:\\/\\//','')),soy.$$filterNoAutoescape(a.mediaLink.contentUrl)):(a.mediaLink.imageUrl.match(new RegExp('/^https?:\\/\\//','')),soy.$$filterNoAutoescape(a.mediaLink.imageUrl))),b?'':c.toString()},jive.eae.common.formatMediaLinkUrl}),define('soy!jive.eae.common.renderStreamAttachments',['soyDeps','soy!jive.eae.common.formatMediaLinkUrl','soy!jive.shared.soy.resourceInlineJs','soy!jive.statusinput.containers.renderAttachmentsContainer'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.renderStreamAttachments=function(a,b){var c=b||new soy.StringBuilder;return a.object.meta&&a.object.meta.length>0?(jive.statusinput.containers.renderAttachmentsContainer({id:a.idPrefix?soy.$$escapeHtml(a.idPrefix+'-attachmentContainer-'+a.domIDPostfix):soy.$$escapeHtml('attachmentContainer-'+a.domIDPostfix),entry:a.object,visible:!0,hideFirstImage:a.hideFirstImage},c),jive.shared.soy.resourceInlineJs({code:'require([\'apps/microblogging/views/attachment_view\'],function(AttachmentView){var id = \''+(a.idPrefix?soy.$$escapeHtml(a.idPrefix+'-attachmentContainer-'+a.domIDPostfix):soy.$$escapeHtml('attachmentContainer-'+a.domIDPostfix))+'\', attachmentView = new AttachmentView({selector:\'#\' + id}); attachmentView.postRender(); AttachmentView.views[id] = attachmentView;});'},c)):a.object.typeExternalActivity&&a.object.mediaLink&&(c.append('<div class="j-act-attachment"><a href="'),jive.eae.common.formatMediaLinkUrl(a.object,c),c.append('" target="_blank" title="',soy.$$escapeHtmlAttribute(a.object.mediaLink.filename?a.object.mediaLink.filename:''),'">',a.object.mediaLink.thumbnailUrl?'<div class="j-media-attachment"><img src="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(a.object.mediaLink.thumbnailUrl))+'" title="'+soy.$$escapeHtmlAttribute(a.object.mediaLink.title)+'" alt="" width="'+soy.$$escapeHtmlAttribute(a.object.mediaLink.thumbnailWidth)+'" height="'+soy.$$escapeHtmlAttribute(a.object.mediaLink.thumbnailHeight)+'"/></div>':a.object.mediaLink.iconClass?'<span class="jive-icon-med '+soy.$$escapeHtmlAttribute(a.object.mediaLink.iconClass)+'"></span><span>'+soy.$$escapeHtml(a.object.mediaLink.title)+'</span>':'','</a></div>')),b?'':c.toString()},jive.eae.common.renderStreamAttachments}),define('soy!jive.shared.displayutil.renderGuestDisplayName',['soyDeps'],function(a){return jive.namespace.call(this,'jive.shared.displayutil'),jive.shared.displayutil.renderGuestDisplayName=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('cff6f3',[]))),c?'':d.toString()},jive.shared.displayutil.renderGuestDisplayName}),define('soy!jive.eae.activitystream.item.grouped.streamStatusUpdateTitle',['soyDeps','soy!jive.eae.acclaim.renderIcon','soy!jive.eae.acclaim.count','soy!jive.eae.acclaim.getAcclaimTextByType','soy!jive.eae.acclaim.acclaimTypeLargeControlClasses','soy!jive.eae.acclaim.activityAcclaimLinkContainer','soy!jive.eae.acclaim.showAcclaimsLargeControlClasses','soy!jive.eae.acclaim.acclaimContainerMedium','soy!jive.eae.acclaim.expressLike','soy!jive.eae.acclaim.acclaimContainerButtonControl','soy!jive.eae.acclaim.acclaimContainerLargeButtons','soy!jive.eae.acclaim.acclaimControl','soy!jive.eae.acclaim.activityAcclaimLinkContainerNews','soy!jive.eae.activitystream.item.grouped.avatar','soy!jive.eae.activitystream.item.grouped.statusUpdateStreamImage','soy!jive.eae.common.renderStreamAttachments','soy!jive.shared.displayutil.containerDisplayNameLink','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.displayutil.userRoleBadgeImage','soy!jive.shared.soy.i18nHelper','soy!jive.soy.share.control'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.streamStatusUpdateTitle=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<div class=\'j-js-stream-we-title j-act-init j-mb-init\' ',b.hidden?'style="display:none"':'','>'),jive.eae.activitystream.item.grouped.avatar(soy.$$augmentMap(b,{icon:'jive-icon-status'}),d),d.append('<div class="j-author-act font-color-meta-light">'),jive.shared.displayutil.userDisplayNameLink(b.activityContainer.originalAuthor,d),''!=b.activityContainer.jiveObject.wallCreationSrc&&(d.append(' '),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('058f21'),arg0:soy.$$filterNoAutoescape(b.activityContainer.jiveObject.wallCreationSrc),noAutoEscape:!0},d)),d.append(' '),b.activityContainer.originalAuthor.prop.roleBadgeInfo&&jive.shared.displayutil.userRoleBadgeImage(b.activityContainer.originalAuthor.prop.roleBadgeInfo,d),d.append(' '),2020==b.activityContainer.container.type);else{var e=new soy.StringBuilder;jive.shared.displayutil.containerDisplayNameLink({container:b.activityContainer.container},e),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('d6dba5'),arg0:e.toString(),noAutoEscape:!0},d)}if(d.append('<span class="j-author-act-meta font-color-meta-light"><span class="j-act-time"><a href="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activityContainer.jiveObject.jiveObjectURL)),'" class="font-color-meta-light">',soy.$$escapeHtml(b.activityContainer.creationTime),'</a></span></span></div><div class="j-act-mb-content">'),b.activityContainer.jiveObject.repostedEntry){d.append('<div class="j-wall-repost-content"><div class="j-wall-repost-header font-color-meta">');var f=new soy.StringBuilder;b.activityContainer.jiveObject.repostedUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({
message:b.activityContainer.jiveObject},f):jive.shared.displayutil.userDisplayNameLink(b.activityContainer.jiveObject.repostedUser,f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('28c1c2'),arg0:f.toString(),noAutoEscape:!0},d),d.append('<a class="jive-view-original-link jive-icon-link-forward" href="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activityContainer.jiveObject.repostedEntry.jiveObjectURL)),'">',soy.$$escapeHtml(a._i18n('5e1660',[])),'</a></div><div class="j-excerpt">',soy.$$filterNoAutoescape(b.activityContainer.jiveObject.repostedEntry.text),'</div>'),jive.eae.common.renderStreamAttachments({idPrefix:'collapsed',object:b.activityContainer.jiveObject.repostedEntry,domIDPostfix:b.activityContainer.jiveObject.repostedEntry.domIDPostfix},d),d.append('</div>')}return jive.eae.activitystream.item.grouped.statusUpdateStreamImage(b,d),d.append('<div class="j-excerpt"><span class="j-excerpt-slug" id="act-title-',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix),'">',b.activityContainer.jiveObject.text?soy.$$filterNoAutoescape(b.activityContainer.jiveObject.text)+(b.activityContainer.jiveObject.hasMoreText?'&hellip;':''):'','</span></div>'),jive.eae.common.renderStreamAttachments({idPrefix:'collapsed',object:b.activityContainer.jiveObject,domIDPostfix:b.activityContainer.jiveObject.domIDPostfix,hideFirstImage:!0},d),d.append('<div class="j-meta-actions font-color-meta" id="we-actions-',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix),'" data-extVisible="',soy.$$escapeHtmlAttribute(b.activityContainer.visibleToExtCollaborator),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.id),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.objectType),'">'),b.activityContainer.likable&&(d.append(' <span class="j-bullet">&#8226;</span> <span class="js-liking-control j-liking-control">'),jive.eae.acclaim.acclaimControl({canApply:b.user&&!b.user.anonymous&&b.activityContainer.jiveObject.canRate&&!b.activityContainer.amAnAuthor,objectType:b.activityContainer.jiveObject.objectType,objectId:b.activityContainer.jiveObject.id,applied:b.activityContainer.liked,showIcon:!1,acclaimCount:b.activityContainer.likeCount,acclaimType:'like',type:'mini'},d),d.append('</span>')),d.append(b.activityContainer.canReply?' <span class="j-bullet">&#8226;</span> <a id="showMicroRTE_'+soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix)+'" class="j-reply-micro" href="#">'+soy.$$escapeHtml(a._i18n('f80114',[]))+'</a>':'',b.activityContainer.jiveObject.canRepost?' <span class="j-bullet">&#8226;</span> <a href="#" class="j-repost j-repost-item" title="'+soy.$$escapeHtmlAttribute(a._i18n('e8905b',[]))+'" id="j-repost-item-'+soy.$$escapeHtmlAttribute(jive.soy.func.randomString())+'-'+soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.id)+'">'+soy.$$escapeHtml(a._i18n('4e667b',[]))+'</a>':''),b.user&&!b.user.anonymous&&b.activityContainer.sharable&&(d.append(' <span class="j-bullet">&#8226;</span> '),jive.soy.share.control({objectId:b.activityContainer.jiveObject.id,objectType:b.activityContainer.jiveObject.objectType,type:'text'},d)),d.append('all'==b.streamType||'profile'==b.streamType||'context'==b.streamType||'communications'==b.streamType||'publication'==b.streamType||'all'!=b.filterData.selectedFilter.type||b.filterData.excluding?'':' <span class="j-bullet">&#8226;</span> <a href="#" class="js-act-hidemenu" title="'+soy.$$escapeHtmlAttribute(a._i18n('df75ef',[]))+'">'+soy.$$escapeHtml(a._i18n('33f5d1',[]))+'</a>','</div></div></div>'),c?'':d.toString()},jive.eae.activitystream.item.grouped.streamStatusUpdateTitle}),define('soy!jive.eae.activitystream.item.grouped.activityBodyStart',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.activityBodyStart=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div id="act-body-',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.domIDPostfix),'" class="j-act-init j-act-rte-replyable" data-extVisible="',soy.$$escapeHtmlAttribute(a.activityContainer.visibleToExtCollaborator),'" data-extendedAuthors="',soy.$$escapeHtmlAttribute(a.activityContainer.warnVisibleToExtendedAuthors),'" data-objectID="',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.id),'" data-objectType="',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.objectType),'"',a.activityContainer.container&&a.activityContainer.container.id&&a.activityContainer.container.type?'data-containerID="'+soy.$$escapeHtmlAttribute(a.activityContainer.container.id)+'" data-containerType="'+soy.$$escapeHtmlAttribute(a.activityContainer.container.type)+'"':'','>'),b?'':c.toString()},jive.eae.activitystream.item.grouped.activityBodyStart}),define('soy!jive.eae.activitystream.item.grouped.mattersMost',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.mattersMost=function(b,c){var d=c||new soy.StringBuilder;return d.append(b.activityContainer.mattersMost?'<span class="j-act-mm-label">'+soy.$$escapeHtml(a._i18n('99f1dc',[]))+'</span>':'',b.activityContainer.trending?'<span class="j-act-trending-label font-color-meta-light j-rc4">'+soy.$$escapeHtml(a._i18n('da5e3f',[]))+'</span>':''),c?'':d.toString()},jive.eae.activitystream.item.grouped.mattersMost}),define('soy!jive.eae.activitystream.item.grouped.activityContentEnd',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.activityContentEnd=function(a,b){var c=b||new soy.StringBuilder;return c.append('</div>'),b?'':c.toString()},jive.eae.activitystream.item.grouped.activityContentEnd}),define('soy!jive.eae.activitystream.item.grouped.activityContentStart',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.activityContentStart=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-js-act-content j-act-content">'),b?'':c.toString()},jive.eae.activitystream.item.grouped.activityContentStart}),define('soy!jive.eae.activitystream.item.grouped.articleEnd',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.articleEnd=function(a,b){var c=b||new soy.StringBuilder;return c.append('</div>'),b?'':c.toString()},jive.eae.activitystream.item.grouped.articleEnd}),define('soy!jive.eae.common.contentTypeClassName',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.contentTypeClassName=function(a,b){var c=b||new soy.StringBuilder;return c.append(a.activityContainer.jiveObject.typeExternalActivity?'j-act-app':a.activityContainer.jiveObject.typeCollaboration?'j-act-collaboration':a.activityContainer.jiveObject.typeAnnouncement?'j-act-announcement':a.activityContainer.jiveObject.typeMention?'j-act-mention':a.activityContainer.jiveObject.typeShare?'j-act-share':a.activityContainer.jiveObject.typeExternalURL?'j-act-bookmark':a.activityContainer.jiveObject.typeThread?'j-act-discussion j-thread-post':a.activityContainer.jiveObject.typeDocument?'j-act-document':a.activityContainer.jiveObject.typeBlogPost?'j-act-blog':a.activityContainer.jiveObject.typePoll?'j-act-poll':a.activityContainer.jiveObject.typeTask?'j-act-task':'j-act-generic'),b?'':c.toString()},jive.eae.common.contentTypeClassName}),define('soy!jive.eae.activitystream.item.grouped.articleStart',['soyDeps','soy!jive.eae.common.contentTypeClassName'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.articleStart=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div id="',a.customId?soy.$$escapeHtmlAttribute(a.customId):soy.$$escapeHtmlAttribute(a.streamType)+'_'+a.activityContainer.jiveObject.objectType+'_'+a.activityContainer.jiveObject.id+'_'+soy.$$escapeHtmlAttribute(a.activityContainer.container.type)+'_'+soy.$$escapeHtmlAttribute(a.activityContainer.container.id)+'_'+soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.domIDPostfix),'" role="article" aria-labelledby="act-title-',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.domIDPostfix),'" class="j-act-entry j-act-not-markable  ',a.extraClasses?soy.$$escapeHtmlAttribute(a.extraClasses)+' ':''),jive.eae.common.contentTypeClassName(a,c),c.append(a.activityContainer.mattersMost?' j-act-matters-most':'',a.activityContainer.lastInLastUpdatedSet?' j-last-updated':a.activityContainer.lastInPrevUpdatedSet?' j-prev-updated':'',' clearfix" data-extVisible="',soy.$$escapeHtmlAttribute(a.activityContainer.visibleToExtCollaborator),'" data-extendedAuthors="',soy.$$escapeHtmlAttribute(a.activityContainer.warnVisibleToExtendedAuthors),'" data-objectID="',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.id),'" data-objectType="',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.objectType),'"',a.activityContainer.container&&a.activityContainer.container.id&&a.activityContainer.container.type?'data-containerID="'+soy.$$escapeHtmlAttribute(a.activityContainer.container.id)+'" data-containerType="'+soy.$$escapeHtmlAttribute(a.activityContainer.container.type)+'"':'','>'),b?'':c.toString()},jive.eae.activitystream.item.grouped.articleStart}),define('soy!jive.eae.activitystream.updatedMarker',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream'),jive.eae.activitystream.updatedMarker=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div id="j-as-updated-',soy.$$escapeHtmlAttribute(b.type),'" class="j-js-updated-marker j-updated-marker" data-type="',soy.$$escapeHtmlAttribute(b.type),'"> <p class="marker font-color-meta-light">','last'==b.type?soy.$$escapeHtml(a._i18n('5d70b9',[])):'prev'==b.type?soy.$$escapeHtml(a._i18n('99ccd9',[])):'','</p></div>'),c?'':d.toString()},jive.eae.activitystream.updatedMarker}),define('soy!jive.eae.activitystream.item.grouped.divider',['soyDeps','soy!jive.eae.activitystream.updatedMarker'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.divider=function(a,b){var c=b||new soy.StringBuilder;return'discovery'==a.streamTab||(a.activityContainer.lastInLastUpdatedSet?jive.eae.activitystream.updatedMarker({type:'last'},c):a.activityContainer.lastInPrevUpdatedSet&&jive.eae.activitystream.updatedMarker({type:'prev'},c)),b?'':c.toString()},jive.eae.activitystream.item.grouped.divider}),define('soy!jive.eae.activitystream.item.grouped.recommendation',['soyDeps','soy!jive.eae.activitystream.item.grouped.activityContentEnd','soy!jive.eae.activitystream.item.grouped.activityContentStart','soy!jive.eae.activitystream.item.grouped.articleEnd','soy!jive.eae.activitystream.item.grouped.articleStart','soy!jive.eae.activitystream.item.grouped.divider','soy!jive.shared.soy.render'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.recommendation=function(b,c){var d=c||new soy.StringBuilder;jive.eae.activitystream.item.grouped.articleStart(soy.$$augmentMap(b,{customId:soy.$$escapeHtml(b.streamType)+'_'+soy.$$escapeHtml(b.activityContainer.jiveObject.objectType)+'_'+soy.$$escapeHtml(b.activityContainer.jiveObject.id)+('context'==b.streamType?'_'+soy.$$escapeHtml(b.activityContainer.jiveObject.domIDPostfix):''),extraClasses:'j-act-grouped j-act-recommended'}),d),jive.eae.activitystream.item.grouped.activityContentStart(null,d),d.append('<div class="j-act-title" role="heading" id="act-title-',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix),'"><span class="title">',b.activityContainer.recommended?'people'==b.activityContainer.discoveryType?soy.$$escapeHtml(a._i18n('d0082d',[])):'places'==b.activityContainer.discoveryType?soy.$$escapeHtml(a._i18n('7ab72a',[])):'content'==b.activityContainer.discoveryType?soy.$$escapeHtml(a._i18n('c718ba',[])):'':b.activityContainer.trending?'people'==b.activityContainer.discoveryType?soy.$$escapeHtml(a._i18n('e0484b',[])):'places'==b.activityContainer.discoveryType?soy.$$escapeHtml(a._i18n('a81a7c',[])):'content'==b.activityContainer.discoveryType?soy.$$escapeHtml(a._i18n('53cfc3',[])):'':'','</span></div><div class="',b.activityContainer.activityList.length>5?'j-act-coll-view':'',' collapsed clearfix"><ul class="j-icon-list j-discovery-tiles ',b.activityContainer.recommended&&'people'==b.activityContainer.discoveryType?'j-act-reco-peeps':'','">');for(var e=b.activityContainer.activityList,f=e.length,g=0;f>g;g++){var h=e[g];h&&!h.content.deleted&&(d.append('<li class="j-act-discovery-',soy.$$escapeHtmlAttribute(b.activityContainer.discoveryType),'" data-timestamp="',soy.$$escapeHtmlAttribute(h.groupedOldestTimestamp),'">'),jive.shared.soy.render({templateName:b.activityContainer.jiveObject.activityTemplate,data:function(){for(var a={},c=[['activity',h],['activityContainer',b.activityContainer],['user',b.user],['streamType',b.streamType]],d=0;d<c.length;d+=1)a[c[d][0]]=c[d][1];return a}(),failGracefully:!0},d),d.append('</li>'))}return d.append('</ul>','content'==b.activityContainer.discoveryType?'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/content?filterID=recommended')))+'" class="j-show-more"><strong class="lnk font-color-meta">'+soy.$$escapeHtml(a._i18n('c0c79f',[]))+'</strong></a>':'','</div>'),jive.eae.activitystream.item.grouped.activityContentEnd(null,d),jive.eae.activitystream.item.grouped.divider(b,d),jive.eae.activitystream.item.grouped.articleEnd(null,d),c?'':d.toString()},jive.eae.activitystream.item.grouped.recommendation}),define('soy!jive.eae.activitystream.activityStreamExpandContent',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream'),jive.eae.activitystream.activityStreamExpandContent=function(b,c){var d=c||new soy.StringBuilder;return d.append(b.activityContainer.replyCount>0||b.activityContainer.activityList.length>1||b.activityContainer.activityList.length>0&&!b.activityContainer.activityList[0].parentActivity?'<span class="j-show-older" style="display:none;"><a href="#" class="j-js-show-older">'+soy.$$escapeHtml(a._i18n('677d6a',[]))+'</a></span><span class="j-expand-comments"><a href="#" class="j-js-show-all j-expand">'+soy.$$escapeHtml(a._i18n('677d6a',[]))+'</a></span>':''),c?'':d.toString()},jive.eae.activitystream.activityStreamExpandContent}),define('soy!jive.eae.common.currentCountText',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.currentCountText=function(b,c){var d=c||new soy.StringBuilder;return d.append(b.activityContainer.numCurrent?'<span class="j-new-count font-color-new">'+(b.activityContainer.numCurrentSubActivities?b.activityContainer.numCurrentSubActivities>=b.activityContainer.maxUnread?soy.$$escapeHtml(a._i18n('b26884',[b.activityContainer.maxUnread])):1==b.activityContainer.numCurrentSubActivities?soy.$$escapeHtml(a._i18n('4732ab',[b.activityContainer.numCurrentSubActivities])):soy.$$escapeHtml(a._i18n('3aea04',[b.activityContainer.numCurrentSubActivities])):'communications'!=b.streamType?soy.$$escapeHtml(a._i18n('27922f',[])):'')+'</span>':b.forceCount?'<span class="j-new-count font-color-new">'+soy.$$escapeHtml(a._i18n('4732ab',[1]))+'</span>':''),c?'':d.toString()},jive.eae.common.currentCountText}),define('soy!jive.eae.common.replyCountText',['soyDeps','soy!jive.eae.common.currentCountText'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.replyCountText=function(b,c){var d=c||new soy.StringBuilder;return d.append('<strong class="j-act-replycount">',b.activityContainer.jiveObject.typeThread||b.activityContainer.jiveObject.typeDirectMessage?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activityContainer.jiveObject.jiveObjectURL))+'" class="font-color-meta-light">'+(1==b.activityContainer.replyCount?soy.$$escapeHtml(a._i18n('b26c26',[b.activityContainer.replyCount])):soy.$$escapeHtml(a._i18n('034452',[b.activityContainer.replyCount])))+'</a>':b.activityContainer.activityList[0]&&b.activityContainer.activityList[0].content.commentContentResource&&129==b.activityContainer.activityList[0].content.commentContentResource.objectType?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activityContainer.jiveObject.jiveObjectURL))+'#comments" class="font-color-meta-light">'+(1==b.activityContainer.replyCount?soy.$$escapeHtml(a._i18n('99b206',[b.activityContainer.replyCount])):soy.$$escapeHtml(a._i18n('958b09',[b.activityContainer.replyCount])))+'</a>':'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activityContainer.jiveObject.jiveObjectURL))+'#comments" class="font-color-meta-light">'+(1==b.activityContainer.replyCount?soy.$$escapeHtml(a._i18n('30308d',[b.activityContainer.replyCount])):soy.$$escapeHtml(a._i18n('8342cc',[b.activityContainer.replyCount])))+'</a>'),b.showCurrentCount&&jive.eae.common.currentCountText(b,d),d.append('</strong>'),c?'':d.toString()},jive.eae.common.replyCountText}),define('soy!jive.eae.activitystream.activityStreamExpandBar',['soyDeps','soy!jive.eae.activitystream.activityStreamExpandContent','soy!jive.eae.common.replyCountText'],function(a){return jive.namespace.call(this,'jive.eae.activitystream'),jive.eae.activitystream.activityStreamExpandBar=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-act-expand-bar font-color-meta clearfix" ',!a.activityContainer.replyCount&&(1==a.activityContainer.activityList.length||2==a.activityContainer.activityList.length&&a.activityContainer.activityList[0].parentActivity)?'style="display:none;"':'','>'),jive.eae.common.replyCountText({activityContainer:a.activityContainer,streamType:a.streamType,showCurrentCount:'context'!=a.streamType&&'profile'!=a.streamType&&'all'==a.filterData.selectedFilter.type&&!a.filterData.excluding},c),jive.eae.activitystream.activityStreamExpandContent(a,c),c.append('</div>'),b?'':c.toString()},jive.eae.activitystream.activityStreamExpandBar}),define('soy!jive.eae.activitystream.collapsedActivityPreviewLinks',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream'),jive.eae.activitystream.collapsedActivityPreviewLinks=function(b,c){var d=c||new soy.StringBuilder;return d.append('<span class="font-color-meta-light paren">(</span><a href="#" class="j-js-show-full-act j-act-preview font-color-meta" title="',soy.$$escapeHtmlAttribute(a._i18n('bfa34b',[])),'"><span class="lnk">',soy.$$escapeHtml(a._i18n('866792',[])),'</span></a><a href="#" class="j-js-hide-full-act j-act-preview font-color-meta" title="',soy.$$escapeHtmlAttribute(a._i18n('084537',[])),'"><span class="lnk">',soy.$$escapeHtml(a._i18n('5960e9',[])),'</span></a><span class="font-color-meta-light paren">)</span>'),c?'':d.toString()},jive.eae.activitystream.collapsedActivityPreviewLinks}),define('soy!jive.shared.soy.escapeHelper',['soyDeps'],function(a){return jive.namespace.call(this,'jive.shared.soy'),jive.shared.soy.escapeHelper=function(a,b){var c=b||new soy.StringBuilder;return c.append(a.escape?soy.$$escapeHtml(a.stringToEscape):soy.$$filterNoAutoescape(a.stringToEscape)),b?'':c.toString()},jive.shared.soy.escapeHelper}),define('soy!jive.eae.common.displayParentAuthor',['soyDeps','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.escapeHelper','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.displayParentAuthor=function(a,b){var c=b||new soy.StringBuilder;if('SYSTEM'!=a.parentAuthor.username){var d=new soy.StringBuilder,e=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(a.parentAuthor,e),jive.shared.soy.escapeHelper({stringToEscape:e.toString()},d),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('b45a47'),arg0:d.toString(),noAutoEscape:!0},c)}return b?'':c.toString()},jive.eae.common.displayParentAuthor}),define('soy!jive.eae.common.activityAuthorNoVerb',['soyDeps','soy!jive.eae.common.displayParentAuthor','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.displayutil.userRoleBadgeImage'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.activityAuthorNoVerb=function(a,b){var c=b||new soy.StringBuilder;return a.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:a.activityUser},c):a.noAuthorLink?c.append(soy.$$escapeHtml(a.activityUser.displayName)):jive.shared.displayutil.userDisplayNameLink(a.activityUser,c),c.append(' '),!a.hideGroupRoleBadge&&a.activityUser.prop.roleBadgeInfo&&jive.shared.displayutil.userRoleBadgeImage(a.activityUser.prop.roleBadgeInfo,c),a.typeShare||(c.append(' '),a.object.parentAuthor&&!a.object.typeWallEntryComment?jive.eae.common.displayParentAuthor({parentAuthor:a.object.parentAuthor},c):a.object.context&&a.object.context.parentAuthor&&!a.object.context.typeWallEntryComment&&jive.eae.common.displayParentAuthor({parentAuthor:a.object.context.parentAuthor},c)),b?'':c.toString()},jive.eae.common.activityAuthorNoVerb}),define('soy!jive.eae.common.activityContentText',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.activityContentText=function(b,c){var d=c||new soy.StringBuilder;return d.append(b.activity&&b.activity.content?b.activity.content.deleted?b.activity.content.typeThread?'<em>'+soy.$$escapeHtml(a._i18n('925266',[]))+'</em>':'<em>'+soy.$$escapeHtml(a._i18n('925266',[]))+'</em>':b.activity.content.typeExternalActivity?b.activity.content.summary?b.noAutoescape?soy.$$filterNoAutoescape(b.activity.content.summary):soy.$$escapeHtml(b.activity.content.summary):'':(b.activity.moderated?'REJECTED'==b.activity.content.status?'<div class="jive-error-box" aria-live="polite" aria-atomic="true"><div><span class="jive-icon-med jive-icon-redalert"></span>'+soy.$$escapeHtml(a._i18n('5393f1',[]))+'</div></div>':('AWAITING_MODERATION'==b.activity.content.status?'<div class="jive-warn-box" aria-live="polite" aria-atomic="true" style= "width:initial;"><div><span class="jive-icon-med jive-icon-warn"></span>'+soy.$$escapeHtml(a._i18n('97750c',[]))+'</div>':'')+'</div>':'')+(b.activity.content.html?b.noAutoescape?soy.$$filterNoAutoescape(b.activity.content.html):soy.$$escapeHtml(b.activity.content.html):b.activity.content.text?b.noAutoescape?soy.$$filterNoAutoescape(b.activity.content.text):soy.$$escapeHtml(b.activity.content.text):''):''),c?'':d.toString()},jive.eae.common.activityContentText}),define('soy!jive.outcomes.helpful.renderButtonLink',['soyDeps'],function(a){return jive.namespace.call(this,'jive.outcomes.helpful'),jive.outcomes.helpful.renderButtonLink=function(a,b){var c=b||new soy.StringBuilder;return c.append('<button class="j-',soy.$$escapeHtml(a.type),'-button js-',soy.$$escapeHtml(a.type),'-link js-action-link',a.on?' j-selected js-selected':'','" data-command="',a.on?'unmark':'mark','" data-type="',soy.$$escapeHtml(a.type),'"><span>',soy.$$escapeHtml(a.text),'</span></button>'),b?'':c.toString()},jive.outcomes.helpful.renderButtonLink}),define('soy!jive.outcomes.helpful.renderButtonActions',['soyDeps','soy!jive.outcomes.helpful.renderButtonLink'],function(a){return jive.namespace.call(this,'jive.outcomes.helpful'),jive.outcomes.helpful.renderButtonActions=function(b,c){var d=c||new soy.StringBuilder;return d.append((b.wrapButtons,""),'<h3>',soy.$$escapeHtml(a._i18n('87812e',[])),'</h3><div class="j-helpful-buttons-wrapper">'),jive.outcomes.helpful.renderButtonLink({text:soy.$$escapeHtml(a._i18n('090f4f',[])),type:'helpful',on:b.currentlyHelpful},d),b.unhelpfulEnabled&&jive.outcomes.helpful.renderButtonLink({text:soy.$$escapeHtml(a._i18n('6c96e5',[])),type:'unhelpful',on:b.currentlyUnhelpful},d),d.append('</div>'),c?'':d.toString()},jive.outcomes.helpful.renderButtonActions}),define('soy!jive.outcomes.helpful.renderActionLink',['soyDeps'],function(a){return jive.namespace.call(this,'jive.outcomes.helpful'),jive.outcomes.helpful.renderActionLink=function(a,b){var c=b||new soy.StringBuilder;return c.append('<a href="#" class="j-',soy.$$escapeHtml(a.type),'-link js-',soy.$$escapeHtml(a.type),'-link js-action-link',a.on?' j-selected js-selected':'','" data-command="',a.on?'unmark':'mark','" data-type="',soy.$$escapeHtml(a.type),'">','content'==a.context&&a.embedGlyph?'<span class="jive-icon-glyph icon-helpful js-icon-helpful '+(a.on?' active':'')+'"></span>':'','<span','stream'==a.context?' class="font-color-meta-light"':'','>',soy.$$escapeHtml(a.text),'</span></a>'),b?'':c.toString()},jive.outcomes.helpful.renderActionLink}),define('soy!jive.outcomes.helpful.renderTextHelpfulAction',['soyDeps','soy!jive.outcomes.helpful.renderActionLink'],function(a){return jive.namespace.call(this,'jive.outcomes.helpful'),jive.outcomes.helpful.renderTextHelpfulAction=function(b,c){var d=c||new soy.StringBuilder;return b.unhelpfulEnabled?(d.append('content'==b.context?'<span class="jive-icon-glyph icon-helpful js-icon-helpful'+(b.currentlyHelpful?' active':'')+'"></span>':'',soy.$$escapeHtml(a._i18n('9a579e',[])),'  '),jive.outcomes.helpful.renderActionLink({text:soy.$$escapeHtml(a._i18n('ef6c33',[])),type:'helpful',on:b.currentlyHelpful,context:b.context,embedGlyph:!1},d),d.append('<span class="j-action-bullet"> &bull; </span>'),jive.outcomes.helpful.renderActionLink({text:soy.$$escapeHtml(a._i18n('2db7f0',[])),type:'unhelpful',on:b.currentlyUnhelpful,context:b.context,embedGlyph:!1},d)):jive.outcomes.helpful.renderActionLink({text:soy.$$escapeHtml(a._i18n('9a579e',[])),type:'helpful',on:b.currentlyHelpful,context:b.context,embedGlyph:!0},d),c?'':d.toString()},jive.outcomes.helpful.renderTextHelpfulAction}),define('soy!jive.outcomes.helpful.renderHelpfulActionControls',['soyDeps','soy!jive.outcomes.helpful.renderButtonActions','soy!jive.outcomes.helpful.renderTextHelpfulAction','soy!jive.shared.soy.resourceInlineJs'],function(a){return jive.namespace.call(this,'jive.outcomes.helpful'),jive.outcomes.helpful.renderHelpfulActionControls=function(a,b){var c=b||new soy.StringBuilder;return c.append('<span class="j-item-action j-tlo-helpful-controls">'),(a.canMarkHelpful||a.canMarkUnhelpful)&&(jive.shared.soy.resourceInlineJs({code:'require([\'apps/outcomes/eventShim\']);'},c),c.append('<span class="j-outcome-helpful-container js-outcome-helpful-container j-action-item font-color-meta',a.extraClasses?' '+soy.$$escapeHtml(a.extraClasses):'',' ',a.renderMode&&'buttons'==a.renderMode?'j-helpful-mode-buttons':'','" data-object-type="',soy.$$escapeHtml(a.objectType),'" data-object-id="',soy.$$escapeHtml(a.objectId),'">'),a.renderMode&&'buttons'==a.renderMode?jive.outcomes.helpful.renderButtonActions(a,c):jive.outcomes.helpful.renderTextHelpfulAction(a,c),c.append('</span>')),c.append('</span>'),b?'':c.toString()},jive.outcomes.helpful.renderHelpfulActionControls}),define('soy!jive.eae.common.activityNavActions',['soyDeps','soy!jive.eae.acclaim.acclaimControl','soy!jive.eae.common.activityContainer','soy!jive.outcomes.helpful.renderHelpfulActionControls','soy!jive.soy.share.control'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.activityNavActions=function(b,c){var d=c||new soy.StringBuilder;return d.append('<span style="display: none;">'),jive.eae.common.activityContainer(b,d),d.append('</span>'),!b.likable||b.object.deleted||b.activityContainer.jiveObject.typeDirectMessage||(d.append('<span class="js-liking-control j-liking-control">'),jive.eae.acclaim.acclaimControl({canApply:b.user&&!b.user.anonymous&&(!b.object.typeWallEntry||b.object.canRate)&&!b.amAnAuthor,applied:b.liked,acclaimCount:b.likeCount,acclaimType:'like',objectId:b.objectId,objectType:b.objectType,showIcon:!1,type:'mini'},d),d.append('</span>')),b.object.helpfulAcclaim&&b.object.helpfulAcclaim.enabled&&(d.append(b.user.anonymous?'':' <span class="j-bullet">&#8226;</span> '),jive.outcomes.helpful.renderHelpfulActionControls({canMarkHelpful:!b.user.anonymous,canMarkUnhelpful:!b.user.anonymous,renderMode:'text',currentlyHelpful:b.object.helpfulAcclaim.applied,currentlyUnhelpful:b.object.unhelpfulAcclaim&&b.object.unhelpfulAcclaim.applied,unhelpfulEnabled:b.object.unhelpfulAcclaim&&b.object.unhelpfulAcclaim.enabled,objectType:b.objectType,objectId:b.objectId,context:'stream',extraClasses:'j-stream-outcome-helpful-container'},d)),d.append(!b.activityContainer.canReply||b.object.deleted||b.activityContainer.jiveObject.typeWallEntry||b.activityContainer.jiveObject.typeDirectMessage||b.activityContainer.jiveObject.typeShare||b.object.bookmarkedContent||b.isQuestionComment?'':' <span class="j-bullet">&#8226;</span> <a class="j-reply-rte" href="javascript:void(0);">'+(b.object.typeDocument&&(!b.activityContainer.activityList[0]||!b.activityContainer.activityList[0].content.commentContentResource||129!=b.activityContainer.activityList[0].content.commentContentResource.objectType)||b.object.typeBlogPost||b.object.typeExternalActivity||b.object.typeTileStreamEntry||b.object.typeExternalURL||b.object.typePoll||b.activityContainer.jiveObject.hasQuestion&&'subActivity'!=b.location?soy.$$escapeHtml(a._i18n('f80114',[])):b.object.typeDocument&&b.activityContainer.activityList[0]&&b.activityContainer.activityList[0].content.commentContentResource&&129==b.activityContainer.activityList[0].content.commentContentResource.objectType?soy.$$escapeHtml(a._i18n('b1655c',[])):b.object.typeThread||b.object.typeMessage||b.activityContainer.jiveObject.hasQuestion||b.object.typeComment||b.object.typeMention?soy.$$escapeHtml(a._i18n('733e4e',[])):soy.$$escapeHtml(a._i18n('f80114',[])))+'</a>',b.object.typeWallEntry&&b.activityContainer.canReply&&!b.object.deleted&&'communications'!=b.streamType&&'parentPreview'==b.location?' <span class="j-bullet">&#8226;</span> <a id="showMicroRTE_'+soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix)+'" class="j-reply-micro" href="#">'+soy.$$escapeHtml(a._i18n('f80114',[]))+'</a>':'',b.object.canRepost?' <span class="j-bullet">&#8226;</span> <span class="j-repost-item" id="j-repost-item-'+soy.$$escapeHtmlAttribute(jive.soy.func.randomString())+'-'+soy.$$escapeHtmlAttribute(b.object.id)+'"><a href="#" class="j-repost" title="'+soy.$$escapeHtmlAttribute(a._i18n('e8905b',[]))+'">'+soy.$$escapeHtml(a._i18n('4e667b',[]))+'</a></span>':''),!b.user||b.user.anonymous||!b.activityContainer.sharable||b.object.typeExternalActivity||'Title'!=b.location&&'parentPreview'!=b.location||(d.append(' <span class="j-bullet">&#8226;</span> '),jive.soy.share.control({objectId:soy.$$escapeHtml(b.activityContainer.jiveObject.typeThread?b.activityContainer.jiveObject.threadID:b.objectId),objectType:soy.$$escapeHtml(b.activityContainer.jiveObject.typeThread?1:b.objectType),type:'text'},d)),b.user&&!b.user.anonymous&&b.object.typeExternalActivity&&b.activityContainer.sharable&&(d.append(' <span class="j-bullet">&#8226;</span> '),jive.soy.share.control({objectId:b.objectId,objectType:b.objectType,type:'text'},d)),d.append('Title'!=b.location&&'parentPreview'!=b.location||'all'==b.streamType||'profile'==b.streamType||'context'==b.streamType||'communications'==b.streamType||'publication'==b.streamType||'all'!=b.filterData.selectedFilter.type||b.filterData.excluding?'':' <span class="j-bullet">&#8226;</span> <a href="#" class="js-act-hidemenu" title="'+soy.$$escapeHtmlAttribute(a._i18n('df75ef',[]))+'">'+soy.$$escapeHtml(a._i18n('33f5d1',[]))+'</a>'),c?'':d.toString()},jive.eae.common.activityNavActions}),define('soy!jive.eae.common.collapsedExcerptText',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.collapsedExcerptText=function(b,c){var d=c||new soy.StringBuilder;return d.append('reply'==b.deletedType?'<em>'+soy.$$escapeHtml(a._i18n('925266',[]))+'</em>':'comment'==b.deletedType?'<em>'+soy.$$escapeHtml(a._i18n('0ca93e',[]))+'</em>':'mentioned'==b.deletedType?'<em>'+soy.$$escapeHtml(a._i18n('d105d7',[]))+'</em>':'bookmarked'==b.deletedType?'<em>'+soy.$$escapeHtml(a._i18n('4f31d6',[]))+'</em>':'expertise'==b.deletedType?'<em>'+soy.$$escapeHtml(a._i18n('401e0b',[]))+'</em>':b.text?(b.moderated?'<div class="jive-warn-box" aria-live="polite" aria-atomic="true"><span class="jive-icon-med jive-icon-warn"></span>'+soy.$$escapeHtml(a._i18n('97750c',[]))+'</div>':'')+soy.$$filterNoAutoescape(b.text)+(b.hasMoreText?'&hellip;':''):''),
c?'':d.toString()},jive.eae.common.collapsedExcerptText}),define('soy!jive.ideas.shared.ideaVoteActivity',['soyDeps','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.ideas.shared'),jive.ideas.shared.ideaVoteActivity=function(b,c){var d=c||new soy.StringBuilder;d.append('<div class="idea-activity"><span>','edited'==b.activity.type?'<span class="jive-icon-sml jive-glyph-edit"></span>':'');var e=new soy.StringBuilder;return b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.content},e):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,e),jive.shared.soy.i18nHelper({i18nKey:'voted'==b.activity.type?soy.$$escapeHtml('0fb8b2'):soy.$$escapeHtml('996861'),arg0:e.toString(),noAutoEscape:'true'},d),d.append('</span> <span class="j-bullet">&#8226;</span> <span class="j-act-meta font-color-meta">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span></div>'),c?'':d.toString()},jive.ideas.shared.ideaVoteActivity}),define('soy!jive.eae.activitystream.item.collapsed.idea',['soyDeps','soy!jive.eae.activitystream.collapsedActivityPreviewLinks','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.ideas.shared.ideaVoteActivity','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.containerDisplayNameLink','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.collapsed'),jive.eae.activitystream.item.collapsed.idea=function(b,c){var d=c||new soy.StringBuilder;if(b.activity.parentActivity);else if('voted'==b.activity.type)d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node ',b.activityContainer.canReply?' j-act-rte-replyable':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-extendedAuthors="',soy.$$escapeHtmlAttribute(b.activityContainer.warnVisibleToExtendedAuthors),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activity.targetObjectID),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activity.targetObjectType),'" data-current="',b.activity.current?soy.$$escapeHtmlAttribute(b.activity.current):'','" style=""><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-sub j-mod font-color-meta-light">'),jive.ideas.shared.ideaVoteActivity(b,d),d.append('</div></div>');else{if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node ',b.activityContainer.canReply?' j-act-rte-replyable':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-extendedAuthors="',soy.$$escapeHtmlAttribute(b.activityContainer.warnVisibleToExtendedAuthors),'" data-objectID=',b.activity.content.typeThread?'"'+soy.$$escapeHtmlAttribute(b.activity.content.id)+'"':'"'+soy.$$escapeHtmlAttribute(b.activity.targetObjectID)+'"',' data-objectType=',b.activity.content.typeThread?'"'+soy.$$escapeHtmlAttribute(b.activity.content.objectType)+'"':'"'+soy.$$escapeHtmlAttribute(b.activity.targetObjectType)+'"',' data-current="',b.activity.current?soy.$$escapeHtmlAttribute(b.activity.current):'','" style=""><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="',b.activity.content.deleted||'moved'==b.activity.type?'j-mod font-color-meta-light':'j-act-comment',' j-js-collapsed">'),b.activity.content.deleted)jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:null!=b.activity.content.deletedType?b.activity.content.deletedType:'reply',moderated:!1},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])));else if('moved'==b.activity.type){d.append('<span class="jive-icon-sml jive-glyph-edit"></span>');var e=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},e):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,e);var f=new soy.StringBuilder;jive.shared.displayutil.containerDisplayNameLink({container:b.activity.movedDestination?b.activity.movedDestination:b.activityContainer.container},f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('f8919c'),arg0:e.toString(),arg1:f.toString(),noAutoEscape:!0},d),d.append(' <span class="j-bullet">&#8226;</span> <span class="j-act-meta font-color-meta">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else d.append('<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d),d.append(' <span class="j-act-time font-color-meta-light">',b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',soy.$$escapeHtml(b.time),b.activity.content.jiveObjectURL?'</a>':'','</span><span class="j-act-preview-control"> '),jive.eae.activitystream.collapsedActivityPreviewLinks(null,d),d.append('</span></div><div class="j-excerpt" ',b.hideStub?'style="display:none;"':'','>'),jive.eae.common.collapsedExcerptText({text:b.activity.content.text,hasMoreText:b.activity.hasMoreText,deletedType:null,moderated:b.activity.moderated},d),d.append(' </div><div class="j-act-sub-preview clearfix" ',b.hideStub?'':'style="display:none;"','><div class="j-excerpt-full"><div class="j-excerpt-full-html-content">'),b.activity.content.html&&jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div></div></div><div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser.id,objectType:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.objectType,objectId:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.id,liked:b.activityContainer.activityList[b.activityContainer.activityList.length-1].liked,likeCount:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likeCount,likable:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likable,hasMoreText:b.activityContainer.activityList[b.activityContainer.activityList.length-1].hasMoreText,author:b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo},d),d.append('</div>');d.append('</div></div>')}return c?'':d.toString()},jive.eae.activitystream.item.collapsed.idea}),define('soy!jive.eae.common.parentPreviewLinks',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.parentPreviewLinks=function(b,c){var d=c||new soy.StringBuilder;return d.append('<span class="font-color-meta-light paren">(</span><a href=\'#\' class="j-js-show-full-content j-act-preview font-color-meta" data-extVisible="',soy.$$escapeHtmlAttribute(b.activityContainer.visibleToExtCollaborator),'" data-extendedAuthors="',soy.$$escapeHtmlAttribute(b.activityContainer.warnVisibleToExtendedAuthors),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.id),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.objectType),'" ',b.activityContainer.jiveObject.typePoll?'data-containerID="'+soy.$$escapeHtmlAttribute(b.activityContainer.container.id)+'" data-containerType="'+soy.$$escapeHtmlAttribute(b.activityContainer.container.type)+'" ':'',' aria-hidden="false" ',b.activityContainer.jiveObject.typeTask||b.activityContainer.jiveObject.typeExternalActivity?'title="'+soy.$$escapeHtmlAttribute(a._i18n('fdfa98',[]))+'">':'title="'+soy.$$escapeHtmlAttribute(a._i18n('062032',[]))+'">','<span class="lnk">',soy.$$escapeHtml(a._i18n('866792',[])),'</span></a><a href=\'#\' class="j-js-hide-full-content j-act-preview font-color-meta" style="display:none;" aria-hidden="true" ',b.activityContainer.jiveObject.typeTask||b.activityContainer.jiveObject.typeExternalActivity?'title="'+soy.$$escapeHtmlAttribute(a._i18n('fdfa98',[]))+'">':'title="'+soy.$$escapeHtmlAttribute(a._i18n('084537',[]))+'">','<span class="lnk">',soy.$$escapeHtml(a._i18n('5960e9',[])),'</span></a><span class="font-color-meta-light paren">)</span>'),c?'':d.toString()},jive.eae.common.parentPreviewLinks}),define('soy!jive.eae.activitystream.item.grouped.idea',['soyDeps','soy!jive.eae.activitystream.activityStreamExpandBar','soy!jive.eae.activitystream.item.collapsed.idea','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContainer','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.parentPreviewLinks','soy!jive.eae.common.renderStreamAttachments','soy!jive.shared.displayutil.avatar'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.idea=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div id="',soy.$$escapeHtmlAttribute(b.streamType),'_',b.activityContainer.activityList[0]&&b.activityContainer.activityList[0].content.commentContentResource&&129==b.activityContainer.activityList[0].content.commentContentResource.objectType?'129':b.activityContainer.jiveObject.objectType,'_',b.activityContainer.jiveObject.id,'_',soy.$$escapeHtmlAttribute(b.activityContainer.container.type),'_',soy.$$escapeHtmlAttribute(b.activityContainer.container.id),'_',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix),'" role="article" class="j-act-entry j-act-not-markable j-act-document ',b.activityContainer.mattersMost?'j-act-matters-most':'',' clearfix" data-extVisible="',soy.$$escapeHtmlAttribute(b.activityContainer.visibleToExtCollaborator),'" data-extendedAuthors="false" data-objectID="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.id),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.objectType),'">',b.activityContainer.mattersMost?'<span class="j-act-mm-label">'+soy.$$escapeHtml(a._i18n('99f1dc',[]))+'</span>':'','<div class="j-js-act-content j-act-content"><div id="act-title-',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix),'" class="j-act-init j-act-rte-replyable" data-extVisible="',soy.$$escapeHtmlAttribute(b.activityContainer.visibleToExtCollaborator),'"a data-extendedAuthors="',soy.$$escapeHtmlAttribute(b.activityContainer.warnVisibleToExtendedAuthors),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.id),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.objectType),'"><div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activityContainer.originalAuthor,{size:46,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activityContainer.originalAuthor,object:b.activityContainer.jiveObject},d),jive.eae.common.activityContainer(b,d),d.append('<span class="j-author-act-meta font-color-meta-light"><span class="j-act-time">',b.activityContainer.jiveObject.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activityContainer.jiveObject.jiveObjectURL))+'" class="font-color-meta-light">':'',soy.$$escapeHtml(b.activityContainer.creationTime),b.activityContainer.jiveObject.jiveObjectURL?'</a>':'','</span><span class="j-act-preview-control"> '),jive.eae.common.parentPreviewLinks(b,d),d.append('</span></span></div><div class="j-act-title" role="heading"><span class="jive-icon-med ',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.jiveObjectCSS),' acticon jive-icon-big"></span><a class="title" href="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activityContainer.jiveObject.jiveObjectURL)),'">',soy.$$filterNoAutoescape(b.activityContainer.jiveObject.subject),'</a></div><div class="j-excerpt"><span class="j-excerpt-slug">',b.activityContainer.jiveObject.text?soy.$$filterNoAutoescape(b.activityContainer.jiveObject.text)+(b.activityContainer.jiveObject.hasMoreText?'&hellip;':''):'','</span>'),jive.eae.common.renderStreamAttachments({idPrefix:'collapsed',object:b.activityContainer.jiveObject,domIDPostfix:b.activityContainer.jiveObject.domIDPostfix},d),d.append('</div><div class="j-act-exp-full-content-view clearfix js-full-content-container" style="display:none;"></div><div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activityContainer.jiveObject,activityContainer:b.activityContainer,amAnAuthor:b.activityContainer.amAnAuthor,objectType:b.activityContainer.jiveObject.objectType,objectId:b.activityContainer.jiveObject.id,liked:b.activityContainer.liked,likeCount:b.activityContainer.likeCount,likable:b.activityContainer.likable,author:b.activityContainer.originalAuthor,user:b.user,location:'Title',streamType:b.streamType,filterData:b.filterData,tracked:b.activityContainer.tracked,untracked:b.activityContainer.untracked,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo},d),d.append('</div></div><div class="j-act-hidden j-rc4 j-rc-none-top" style="display:none;"></div>'),jive.eae.activitystream.activityStreamExpandBar(b,d),d.append('<div class="j-act-exp-view j-expanded clearfix" style="display:none;"></div><div class="j-act-coll-view collapsed clearfix">'),jive.eae.activitystream.item.collapsed.idea({activityContainer:b.activityContainer,activity:b.activityContainer.activityList[b.activityContainer.activityList.length-1],streamType:b.streamType,filterData:b.filterData,user:b.user,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo,hideStub:!1,time:b.activityContainer.parentTime},d),d.append('</div></div></div>'),c?'':d.toString()},jive.eae.activitystream.item.grouped.idea}),define('soy!jive.eae.activitystream.item.grouped.author',['soyDeps','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContainer','soy!jive.eae.common.parentPreviewLinks'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.author=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:a.activityContainer.originalAuthor,object:a.activityContainer.jiveObject},c),jive.eae.common.activityContainer(a,c),c.append('<span class="j-author-act-meta font-color-meta-light"><span class="j-act-time">',a.activityContainer.jiveObject.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.activityContainer.jiveObject.jiveObjectURL))+'" class="font-color-meta-light">':'',soy.$$escapeHtml(a.activityContainer.creationTime),a.activityContainer.jiveObject.jiveObjectURL?'</a>':'','</span><span class="j-act-preview-control"> '),jive.eae.common.parentPreviewLinks(a,c),c.append('</span></span></div>'),b?'':c.toString()},jive.eae.activitystream.item.grouped.author}),define('soy!jive.eae.activitystream.item.collapsed.bookmark',['soyDeps','soy!jive.eae.activitystream.collapsedActivityPreviewLinks','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.collapsed'),jive.eae.activitystream.item.collapsed.bookmark=function(b,c){var d=c||new soy.StringBuilder;if(b.activity.parentActivity);else{if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node ',b.activityContainer.canReply?'j-act-rte-replyable':'',' ',b.hideStub?'j-expanded':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-objectID=',b.activity.content.bookmarkedContent?'"'+soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.id)+'"':'"'+soy.$$escapeHtmlAttribute(b.activity.targetObjectID)+'"',' data-objectType=',b.activity.content.bookmarkedContent?'"'+soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.objectType)+'"':'"'+soy.$$escapeHtmlAttribute(b.activity.targetObjectType)+'"',' data-current="',b.activity.current?soy.$$escapeHtmlAttribute(b.activity.current):'','" style=""><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="','bookmarked'==b.activity.type||b.activity.content.deleted?'j-sub j-mod font-color-meta':'j-act-comment',' j-js-collapsed">'),b.activity.content.deleted)jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:null!=b.activity.content.deletedType?b.activity.content.deletedType:'comment',moderated:!1},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])));else if(b.activity.content.bookmarkedContent){if(d.append('<span class="jive-icon-sml jive-icon-bookmark-ribbon-grey actglyph"></span>'),b.activity.activityUser.id==b.user.id)d.append(soy.$$escapeHtml(a._i18n('334e39',[])));else{var e=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.content},e):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,e),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('ee9d3e'),arg0:e.toString(),noAutoEscape:'true'},d)}d.append(' <span class="j-bullet">&#8226;</span> <span class="font-color-meta">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else d.append('<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d),d.append('<span class="j-act-time font-color-meta-light"> ',b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',soy.$$escapeHtml(b.time),b.activity.content.jiveObjectURL?'</a>':'','</span><span class="j-act-preview-control ',b.hideStub?'j-previewing':'','"> '),jive.eae.activitystream.collapsedActivityPreviewLinks(null,d),d.append('</span></div><div class="j-excerpt" ',b.hideStub?'style="display:none;"':'','>'),jive.eae.common.collapsedExcerptText({text:b.activity.content.text,hasMoreText:b.activity.hasMoreText,deletedType:null,moderated:b.activity.moderated},d),d.append('</div><div class="j-act-sub-preview clearfix" ',b.hideStub?'':'style="display:none;"','><div class="j-excerpt-full-html-content">'),b.activity.content.html&&jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div></div><div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser.id,objectType:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.objectType,objectId:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.id,liked:b.activityContainer.activityList[b.activityContainer.activityList.length-1].liked,likeCount:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likeCount,likable:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likable,hasMoreText:b.activityContainer.activityList[b.activityContainer.activityList.length-1].hasMoreText,author:b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo},d),d.append('</div>');d.append('</div></div>')}return c?'':d.toString()},jive.eae.activitystream.item.collapsed.bookmark}),define('soy!jive.eae.activitystream.item.grouped.actions',['soyDeps','soy!jive.eae.common.activityNavActions'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.actions=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:a.activityContainer.jiveObject,activityContainer:a.activityContainer,amAnAuthor:a.activityContainer.amAnAuthor,objectType:a.activityContainer.jiveObject.objectType,objectId:a.activityContainer.jiveObject.id,liked:a.activityContainer.liked,likeCount:a.activityContainer.likeCount,likable:a.activityContainer.likable,author:a.activityContainer.originalAuthor,user:a.user,location:'Title',streamType:a.streamType,filterData:a.filterData,tracked:a.activityContainer.tracked,untracked:a.activityContainer.untracked,canCreateMbImage:a.canCreateMbImage,canCreateMbVideo:a.canCreateMbVideo},c),c.append('</div>'),b?'':c.toString()},jive.eae.activitystream.item.grouped.actions}),define('soy!jive.eae.activitystream.item.grouped.activityBodyEnd',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.activityBodyEnd=function(a,b){var c=b||new soy.StringBuilder;return c.append('</div>'),b?'':c.toString()},jive.eae.activitystream.item.grouped.activityBodyEnd}),define('soy!jive.eae.common.activityHeadingHrefWithReferringUser',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.activityHeadingHrefWithReferringUser=function(a,b){var c=b||new soy.StringBuilder;return c.append(0==(a.url.match(new RegExp('#','g'))||[]).length?soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.url,{sr:a.source,ru:a.referringUserId})):soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.url))),b?'':c.toString()},jive.eae.common.activityHeadingHrefWithReferringUser}),define('soy!jive.eae.common.activityHeadingHref',['soyDeps','soy!jive.eae.common.activityHeadingHrefWithReferringUser'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.activityHeadingHref=function(a,b){var c=b||new soy.StringBuilder;return a.activityContainer.activityList&&a.activityContainer.activityList.length?a.user?a.activityContainer.activityList[a.activityContainer.activityList.length-1].activityUser.id!=a.user.id?jive.eae.common.activityHeadingHrefWithReferringUser({url:a.url,source:a.source,referringUserId:a.activityContainer.activityList[a.activityContainer.activityList.length-1].activityUser.id},c):c.append(soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.url,{sr:a.source}))):jive.eae.common.activityHeadingHrefWithReferringUser({url:a.url,source:a.source,referringUserId:a.activityContainer.activityList[a.activityContainer.activityList.length-1].activityUser.id},c):a.activityContainer.latestAuthor?a.user?a.activityContainer.latestAuthor.id!=a.user.id?jive.eae.common.activityHeadingHrefWithReferringUser({url:a.url,source:a.source,referringUserId:a.activityContainer.latestAuthor.id},c):c.append(soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.url,{sr:a.source}))):jive.eae.common.activityHeadingHrefWithReferringUser({url:a.url,source:a.source,referringUserId:a.activityContainer.latestAuthor.id},c):c.append(soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.url,{sr:a.source}))),b?'':c.toString()},jive.eae.common.activityHeadingHref}),define('soy!jive.eae.common.contentTypeDisplayName',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.contentTypeDisplayName=function(b,c){var d=c||new soy.StringBuilder;return d.append(b.activityContainer.jiveObject.typeExternalActivity?soy.$$escapeHtml(a._i18n('c4e101',[])):b.activityContainer.jiveObject.typeDirectMessage?soy.$$escapeHtml(a._i18n('c4b056',[])):b.activityContainer.jiveObject.typeAnnouncement?soy.$$escapeHtml(a._i18n('68b425',[])):b.activityContainer.jiveObject.typeMention?soy.$$escapeHtml(a._i18n('4657e3',[])):b.activityContainer.jiveObject.typeShare?soy.$$escapeHtml(a._i18n('41922c',[])):b.activityContainer.jiveObject.typeExternalURL?soy.$$escapeHtml(a._i18n('97babe',[])):b.activityContainer.jiveObject.typeThread&&!b.activityContainer.jiveObject.hasQuestion?soy.$$escapeHtml(a._i18n('cb9b05',[])):b.activityContainer.jiveObject.typeThread&&b.activityContainer.jiveObject.hasQuestion?soy.$$escapeHtml(a._i18n('83884b',[])):b.activityContainer.jiveObject.typeDocument?soy.$$escapeHtml(a._i18n('b67d0f',[])):b.activityContainer.jiveObject.typeBlogPost?soy.$$escapeHtml(a._i18n('92ee84',[])):b.activityContainer.jiveObject.typePoll?soy.$$escapeHtml(a._i18n('205cd1',[])):b.activityContainer.jiveObject.typeTask?soy.$$escapeHtml(a._i18n('7c71b3',[])):soy.$$escapeHtml(a._i18n('22ed1b',[]))),c?'':d.toString()},jive.eae.common.contentTypeDisplayName}),define('soy!jive.shared.displayutil.renderIconElementAttrs',['soyDeps'],function(a){return jive.namespace.call(this,'jive.shared.displayutil'),jive.shared.displayutil.renderIconElementAttrs=function(a,b){for(var c=b||new soy.StringBuilder,d=a.attributeNames,e=d.length,f=0;e>f;f++){var g=d[f];c.append(soy.$$escapeHtml(g),'="',soy.$$escapeHtml(a.attributes[g]),a.extraAttributes?' '+soy.$$escapeHtml(a.extraAttributes):'','" ')}return b?'':c.toString()},jive.shared.displayutil.renderIconElementAttrs}),define('soy!jive.shared.displayutil.renderIconElement',['soyDeps','soy!jive.shared.displayutil.renderIconElementAttrs'],function(a){return jive.namespace.call(this,'jive.shared.displayutil'),jive.shared.displayutil.renderIconElement=function(a,b){var c=b||new soy.StringBuilder;switch(a.icon.tag){case'img':c.append('<img '),jive.shared.displayutil.renderIconElementAttrs(a.icon,c),c.append('/>');break;case'span':c.append('<span '),jive.shared.displayutil.renderIconElementAttrs({attributeNames:a.icon.attributeNames,attributes:a.icon.attributes,extraAttributes:a.extraAttributes},c),c.append('></span>');break;case'div':c.append('<div '),jive.shared.displayutil.renderIconElementAttrs(a.icon,c),c.append('></div>')}return b?'':c.toString()},jive.shared.displayutil.renderIconElement}),define('soy!jive.eae.activitystream.item.grouped.activityHeading',['soyDeps','soy!jive.eae.common.activityHeadingHref','soy!jive.eae.common.contentTypeDisplayName','soy!jive.shared.displayutil.renderIconElement'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.activityHeading=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div id="act-title-',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.domIDPostfix),'" class="j-act-title" role="heading">'),a.activityContainer.jiveObject.activityIcon?(jive.shared.displayutil.renderIconElement({icon:a.activityContainer.jiveObject.activityIcon},c),c.append(' ')):(c.append('<span title=\''),jive.eae.common.contentTypeDisplayName(a,c),c.append('\' role=\'img\' class="jive-icon-med ',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.jiveObjectCSS),' acticon jive-icon-big"></span>')),a.activityContainer.jiveObject.subjectIsHtml?c.append(soy.$$filterNoAutoescape(a.activityContainer.jiveObject.htmlSubject)):(c.append('<a class="title" href="'),jive.eae.common.activityHeadingHref(soy.$$augmentMap(a,{url:a.activityContainer.jiveObject.jiveObjectURL,source:'stream'}),c),c.append('">',soy.$$filterNoAutoescape(a.activityContainer.jiveObject.subject),'</a>')),c.append('</div>'),b?'':c.toString()},jive.eae.activitystream.item.grouped.activityHeading}),define('soy!jive.eae.activitystream.item.grouped.activityHidden',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.activityHidden=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-act-hidden j-rc4 j-rc-none-top" style="display:none;"></div>'),b?'':c.toString()},jive.eae.activitystream.item.grouped.activityHidden}),define('soy!jive.eae.activitystream.item.grouped.expandedComments',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.expandedComments=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-act-exp-view j-expanded clearfix" style="display:none;"></div>'),b?'':c.toString()},jive.eae.activitystream.item.grouped.expandedComments}),define('soy!jive.eae.activitystream.item.grouped.fullBody',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.fullBody=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-act-exp-full-content-view js-full-content-container" style="display:none;"></div>'),b?'':c.toString()},jive.eae.activitystream.item.grouped.fullBody}),define('soy!jive.shared.displayutil.anonymousAvatar',['soyDeps','soy!jive.shared.displayutil.avatar'],function(a){return jive.namespace.call(this,'jive.shared.displayutil'),jive.shared.displayutil.anonymousAvatar=function(a,b){var c=b||new soy.StringBuilder;return jive.shared.displayutil.avatar(soy.$$augmentMap(a,{anonymous:!0,enabled:!0,partner:!1,username:'guest',id:0,ID:0,displayName:'',visible:!0,prop:null,avatarID:0,size:a.size}),c),b?'':c.toString()},jive.shared.displayutil.anonymousAvatar}),define('soy!jive.eae.activitystream.item.grouped.bookmark',['soyDeps','soy!jive.eae.activitystream.activityStreamExpandBar','soy!jive.eae.activitystream.item.collapsed.bookmark','soy!jive.eae.activitystream.item.grouped.actions','soy!jive.eae.activitystream.item.grouped.activityBodyEnd','soy!jive.eae.activitystream.item.grouped.activityBodyStart','soy!jive.eae.activitystream.item.grouped.activityContentEnd','soy!jive.eae.activitystream.item.grouped.activityContentStart','soy!jive.eae.activitystream.item.grouped.activityHeading','soy!jive.eae.activitystream.item.grouped.activityHidden','soy!jive.eae.activitystream.item.grouped.articleEnd','soy!jive.eae.activitystream.item.grouped.articleStart','soy!jive.eae.activitystream.item.grouped.divider','soy!jive.eae.activitystream.item.grouped.expandedComments','soy!jive.eae.activitystream.item.grouped.fullBody','soy!jive.eae.activitystream.item.grouped.mattersMost','soy!jive.eae.common.parentPreviewLinks','soy!jive.shared.displayutil.anonymousAvatar','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.bookmark=function(b,c){
var d=c||new soy.StringBuilder;if(jive.eae.activitystream.item.grouped.articleStart(b,d),jive.eae.activitystream.item.grouped.mattersMost(b,d),jive.eae.activitystream.item.grouped.activityContentStart(null,d),jive.eae.activitystream.item.grouped.activityBodyStart(b,d),d.append('<div class="j-act-avatar">'),b.activityContainer.jiveObject.firstNote?jive.shared.displayutil.avatar(soy.$$augmentMap(b.activityContainer.jiveObject.firstNote.user,{size:46,currentUserPartner:b.user.partner}),d):jive.shared.displayutil.anonymousAvatar({size:46},d),d.append('</div><div class="j-author-act j-bookmark-act font-color-meta-light">'),b.activityContainer.jiveObject.firstNote){var e=new soy.StringBuilder;b.activityContainer.jiveObject.firstNote.user.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:''},e):jive.shared.displayutil.userDisplayNameLink(b.activityContainer.jiveObject.firstNote.user,e),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('95719a'),arg0:e.toString(),arg1:soy.$$escapeHtml(b.activityContainer.jiveObject.firstNote.creationDate),noAutoEscape:'true'},d)}else d.append(soy.$$escapeHtml(a._i18n('25d181',[])));return d.append('<span class="j-act-preview-control"> '),jive.eae.common.parentPreviewLinks(b,d),d.append('</span></div>'),jive.eae.activitystream.item.grouped.activityHeading(b,d),d.append('<div class="j-excerpt">URL: <a rel="nozoom" href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.activityContainer.jiveObject.bookmarkedURL)),'">',soy.$$escapeHtml(b.activityContainer.jiveObject.bookmarkedURLDecoded),'</a></div>'),jive.eae.activitystream.item.grouped.fullBody(b,d),jive.eae.activitystream.item.grouped.actions(b,d),jive.eae.activitystream.item.grouped.activityBodyEnd(null,d),jive.eae.activitystream.item.grouped.activityHidden(null,d),jive.eae.activitystream.activityStreamExpandBar(b,d),jive.eae.activitystream.item.grouped.expandedComments(null,d),d.append('<div class="j-act-coll-view collapsed clearfix">'),jive.eae.activitystream.item.collapsed.bookmark({activityContainer:b.activityContainer,activity:b.activityContainer.activityList[b.activityContainer.activityList.length-1],streamType:b.streamType,filterData:b.filterData,user:b.user,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo,hideStub:!1,time:b.activityContainer.parentTime},d),d.append('</div>'),jive.eae.activitystream.item.grouped.activityContentEnd(null,d),jive.eae.activitystream.item.grouped.divider(b,d),jive.eae.activitystream.item.grouped.articleEnd(null,d),c?'':d.toString()},jive.eae.activitystream.item.grouped.bookmark}),define('soy!jive.eae.activitystream.item.collapsed.remotedocument',['soyDeps','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.eae.common.renderStreamAttachments','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.userDisplayNameLink'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.collapsed'),jive.eae.activitystream.item.collapsed.remotedocument=function(b,c){var d=c||new soy.StringBuilder;if(b.activity.parentActivity);else{if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node ',b.activityContainer.canReply?'j-act-rte-replyable':'',' ',b.hideStub?'j-expanded':'','" data-objectID="',soy.$$escapeHtmlAttribute(b.activity.targetObjectID),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activity.targetObjectType),'" data-current="',b.activity.current?soy.$$escapeHtmlAttribute(b.activity.current):'','" style=""><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="',b.activity.groupedModifiers.length>0||b.activity.content.deleted?'j-mod font-color-meta-light ':'j-act-comment',' j-js-collapsed">'),b.activity.content.deleted)jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:'comment'},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])));else if(b.activity.groupedModifiers.length>0){d.append('<span class="jive-icon-sml jive-glyph-edit actglyph"></span>',soy.$$escapeHtml(a._i18n('a4d3f9',[])),' ');for(var e=b.activity.groupedModifiers,f=e.length,g=0;f>g;g++){var h=e[g];jive.shared.displayutil.userDisplayNameLink(h,d),d.append(b.activity.groupedModifiers.length-2==g?' '+soy.$$escapeHtml(a._i18n('3b6373',[])):g!=f-1?',':'',' ')}d.append(' <span class="j-bullet">&#8226;</span> <span class="font-color-meta-light">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else d.append('<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32}),d),d.append('</div><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d),d.append('<span class="j-act-time font-color-meta-light">',b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',soy.$$escapeHtml(b.time),b.activity.content.jiveObjectURL?'</a>':'','</span></div><div class="j-excerpt" ',b.hideStub?'style="display:none;"':'','><span class="j-excerpt-slug">'),jive.eae.common.collapsedExcerptText({text:b.activity.content.text,hasMoreText:b.activity.hasMoreText,deletedType:null},d),d.append('</span>'),jive.eae.common.renderStreamAttachments({idPrefix:'collapsed',object:b.activity.content,domIDPostfix:b.activity.domIDPostfix},d),d.append('</div><div class="j-act-sub-preview clearfix" ',b.hideStub?'':'style="display:none;"','><div class="j-excerpt-full"><div class="j-excerpt-full-html-content">'),b.activity.content.html&&jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div></div></div><div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser.id,objectType:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.objectType,objectId:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.id,liked:b.activityContainer.activityList[b.activityContainer.activityList.length-1].liked,likeCount:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likeCount,likable:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likable,hasMoreText:b.activityContainer.activityList[b.activityContainer.activityList.length-1].hasMoreText,author:b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser,user:b.user,location:'subActivity',streamType:b.streamType,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo},d),d.append('</div>');d.append('</div></div>')}return c?'':d.toString()},jive.eae.activitystream.item.collapsed.remotedocument}),define('soy!jive.eae.apps.common.renderAppEmbeddedExperience',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.apps.common'),jive.eae.apps.common.renderAppEmbeddedExperience=function(b,c){var d=c||new soy.StringBuilder;return d.append('<a href="',soy.$$escapeHtml(b.ee.fallbackURL?b.ee.fallbackURL:'javascript:;'),'"__action_id="',soy.$$escapeHtml(b.ee.target.action?b.ee.target.action:'none'),'"__appuuid="',b.ee.jive.appUUID,'" ',b.ee.context?'__context="'+soy.$$escapeHtml(JSON.stringify(b.ee.context).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+'" ':'','__view="',soy.$$escapeHtml(b.ee.target.view?b.ee.target.view:'embedded'),'" class="jive-link-app jive_macro jive_macro_appEmbeddedView font-color-meta" data-jive-context="',soy.$$escapeHtml(JSON.stringify(b.ee.jive.context).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029')),'" id="',soy.$$escapeHtml(b.ee.id),'">',soy.$$escapeHtml(a._i18n('4f3ed8',[])),'</a>'),c?'':d.toString()},jive.eae.apps.common.renderAppEmbeddedExperience}),define('soy!jive.eae.activitystream.item.activity_verb.bookmarked.main',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.activity_verb.bookmarked'),jive.eae.activitystream.item.activity_verb.bookmarked.main=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('009922',[]))),c?'':d.toString()},jive.eae.activitystream.item.activity_verb.bookmarked.main}),define('soy!jive.eae.activitystream.item.activity_verb.comment.main',['soyDeps','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.escapeHelper','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.activity_verb.comment'),jive.eae.activitystream.item.activity_verb.comment.main=function(b,c){var d=c||new soy.StringBuilder;if(b.object.typeWallEntryComment){var e=new soy.StringBuilder,f=new soy.StringBuilder;b.displayAuthorLink?jive.shared.displayutil.userDisplayNameLink(b.object.parentAuthor,f):f.append(soy.$$escapeHtml(b.object.parentAuthor.displayName)),jive.shared.soy.escapeHelper({stringToEscape:f.toString()},e),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('59c041'),arg0:e.toString(),noAutoEscape:!0},d)}else if(!b.hideDetailedReplyTo){var g=new soy.StringBuilder,h=new soy.StringBuilder;b.displayAuthorLink?jive.shared.displayutil.userDisplayNameLink(b.object.parentAuthor,h):h.append(soy.$$escapeHtml(b.object.parentAuthor.displayName)),jive.shared.soy.escapeHelper({stringToEscape:h.toString()},g),jive.shared.soy.i18nHelper({i18nKey:b.object.commentContentResource&&129==b.object.commentContentResource.objectType?soy.$$escapeHtml('eda7eb'):b.object.typeMessage?soy.$$escapeHtml('b727a7'):soy.$$escapeHtml('ccce11'),arg0:g.toString(),noAutoEscape:!0},d),d.append(b.againstObject?' '+soy.$$escapeHtml(a._i18n('d3f7a1',[]))+' ':'')}return c?'':d.toString()},jive.eae.activitystream.item.activity_verb.comment.main}),define('soy!jive.eae.activitystream.item.activity_verb.defaults.deleted',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.activity_verb.defaults'),jive.eae.activitystream.item.activity_verb.defaults.deleted=function(b,c){var d=c||new soy.StringBuilder;return d.append('<span class="font-color-meta j-act-deleted">',b.object.deletedType&&'mentioned'==b.object.deletedType?soy.$$escapeHtml(a._i18n('420f23',[]))+' ':2==b.type?soy.$$escapeHtml(a._i18n('d1f8ef',[]))+' ':801==b.type?soy.$$escapeHtml(a._i18n('2caf5e',[]))+' ':b.object.deletedType&&'outcome_removed'==b.object.deletedType?soy.$$escapeHtml(a._i18n('a29fdd',[]))+' ':soy.$$escapeHtml(a._i18n('5aa61b',[]))+' ','</span>'),c?'':d.toString()},jive.eae.activitystream.item.activity_verb.defaults.deleted}),define('soy!jive.eae.activitystream.item.activity_verb.defaults.main',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.activity_verb.defaults'),jive.eae.activitystream.item.activity_verb.defaults.main=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n(a.getMinKey('activity.type.'+b.type),[]))),c?'':d.toString()},jive.eae.activitystream.item.activity_verb.defaults.main}),define('soy!jive.eae.activitystream.item.activity_verb.discussion.main',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.activity_verb.discussion'),jive.eae.activitystream.item.activity_verb.discussion.main=function(b,c){var d=c||new soy.StringBuilder;return d.append('created'==b.type?b.object.hasQuestion?soy.$$escapeHtml(a._i18n('21cb84',[])):soy.$$escapeHtml(a._i18n('c31366',[])):soy.$$escapeHtml(a._i18n('activity.type. + opt_data.type',[!0]))),c?'':d.toString()},jive.eae.activitystream.item.activity_verb.discussion.main}),define('soy!jive.eae.activitystream.item.activity_verb.discussion.reply',['soyDeps','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.escapeHelper','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.activity_verb.discussion'),jive.eae.activitystream.item.activity_verb.discussion.reply=function(b,c){var d=c||new soy.StringBuilder;if('correct_answer_set'==b.type){var e=new soy.StringBuilder,f=new soy.StringBuilder;b.displayAuthorLink?jive.shared.displayutil.userDisplayNameLink(b.object.user,f):f.append(soy.$$escapeHtml(b.object.user.displayName)),jive.shared.soy.escapeHelper({stringToEscape:f.toString()},e),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('93d43e'),arg0:e.toString(),noAutoEscape:!0},d)}else if('correct_answer_removed'==b.type){var g=new soy.StringBuilder,h=new soy.StringBuilder;b.displayAuthorLink?jive.shared.displayutil.userDisplayNameLink(b.object.user,h):h.append(soy.$$escapeHtml(b.object.user.displayName)),jive.shared.soy.escapeHelper({stringToEscape:h.toString()},g),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('db08ce'),arg0:g.toString(),noAutoEscape:!0},d)}else b.againstObject?d.append(soy.$$escapeHtml(a._i18n('5fb8a7',[])),' '):d.append(soy.$$escapeHtml(a._i18n('863528',[])),' ');return c?'':d.toString()},jive.eae.activitystream.item.activity_verb.discussion.reply}),define('soy!jive.eae.activitystream.item.activity_verb.outcome.comment',['soyDeps','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.escapeHelper','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.activity_verb.outcome'),jive.eae.activitystream.item.activity_verb.outcome.comment=function(b,c){var d=c||new soy.StringBuilder,e=new soy.StringBuilder('activity.type.outcome.',soy.$$escapeHtml(b.object.outcomeTypeName),soy.$$escapeHtml('pending'==b.object.outcomeTypeName?'.'+b.object.pendingType:''));e=e.toString();var f=new soy.StringBuilder,g=new soy.StringBuilder;return b.displayAuthorLink?jive.shared.displayutil.userDisplayNameLink(b.object.targetObject.user,g):g.append(soy.$$escapeHtml(b.object.targetObject.user.displayName)),jive.shared.soy.escapeHelper({stringToEscape:g.toString()},f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml(a.getMinKey(e)),arg0:f.toString(),arg1:b.object.targetObject.typeMessage?soy.$$escapeHtml(a._i18n('1dbcc3',[])):b.object.targetObject.typeComment?soy.$$escapeHtml(a._i18n('c43d2a',[])):'',noAutoEscape:!0},d),c?'':d.toString()},jive.eae.activitystream.item.activity_verb.outcome.comment}),define('soy!jive.eae.activitystream.item.activity_verb.outcome.main',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.activity_verb.outcome'),jive.eae.activitystream.item.activity_verb.outcome.main=function(b,c){var d=c||new soy.StringBuilder,e=new soy.StringBuilder('activity.type.outcome.',soy.$$escapeHtml(b.object.outcomeTypeName),'.tlo',soy.$$escapeHtml('pending'==b.object.outcomeTypeName?'.'+b.object.pendingType:''));return e=e.toString(),d.append(soy.$$escapeHtml(a._i18n(a.getMinKey(e),[]))),c?'':d.toString()},jive.eae.activitystream.item.activity_verb.outcome.main}),define('soy!jive.eae.activitystream.item.activity_verb.project.main',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.activity_verb.project'),jive.eae.activitystream.item.activity_verb.project.main=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('d47dbe',[]))),c?'':d.toString()},jive.eae.activitystream.item.activity_verb.project.main}),define('soy!jive.eae.activitystream.item.activity_verb.relationship.main',['soyDeps','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.escapeHelper','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.activity_verb.relationship'),jive.eae.activitystream.item.activity_verb.relationship.main=function(b,c){var d=c||new soy.StringBuilder,e=new soy.StringBuilder,f=new soy.StringBuilder;return jive.shared.displayutil.avatar(soy.$$augmentMap(b.object.relatedUser,{size:32,currentUserPartner:b.user.partner}),f),jive.shared.displayutil.userDisplayNameLink(b.object.relatedUser,f),jive.shared.soy.escapeHelper({stringToEscape:f.toString()},e),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml(a.getMinKey('activity.type.'+b.type)),arg0:e.toString(),noAutoEscape:!0},d),c?'':d.toString()},jive.eae.activitystream.item.activity_verb.relationship.main}),define('soy!jive.eae.activitystream.item.activity_verb.rtc.main',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.activity_verb.rtc'),jive.eae.activitystream.item.activity_verb.rtc.main=function(b,c){var d=c||new soy.StringBuilder;return d.append(b.user&&b.object.user.id==b.user.id?soy.$$escapeHtml(a._i18n('91ef79',[])):soy.$$escapeHtml(a._i18n('fc8f07',[]))),c?'':d.toString()},jive.eae.activitystream.item.activity_verb.rtc.main}),define('soy!jive.eae.activitystream.item.activity_verb.share.main',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.activity_verb.share'),jive.eae.activitystream.item.activity_verb.share.main=function(b,c){var d=c||new soy.StringBuilder;return d.append(b.object.commentContentResource&&129==b.object.commentContentResource.objectType?b.againstObject?soy.$$escapeHtml(a._i18n('27c5ad',[]))+' ':soy.$$escapeHtml(a._i18n('e77982',[]))+' ':b.againstObject?soy.$$escapeHtml(a._i18n('adaeb9',[]))+' ':soy.$$escapeHtml(a._i18n('e61ff1',[]))+' '),c?'':d.toString()},jive.eae.activitystream.item.activity_verb.share.main}),define('soy!jive.eae.activitystream.item.activity_verb.tile_activity.external',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.activity_verb.tile_activity'),jive.eae.activitystream.item.activity_verb.tile_activity.external=function(a,b){var c=b||new soy.StringBuilder;return c.append(soy.$$filterNoAutoescape(a.object.text),' '),b?'':c.toString()},jive.eae.activitystream.item.activity_verb.tile_activity.external}),define('soy!jive.eae.activitystream.item.activity_verb.tile_activity.tile',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.activity_verb.tile_activity'),jive.eae.activitystream.item.activity_verb.tile_activity.tile=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('6d86cb',[]))),c?'':d.toString()},jive.eae.activitystream.item.activity_verb.tile_activity.tile}),define('soy!jive.eae.activitystream.item.activity_verb.we.main',['soyDeps','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.escapeHelper','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.activity_verb.we'),jive.eae.activitystream.item.activity_verb.we.main=function(b,c){var d=c||new soy.StringBuilder;if('liked'==b.type)d.append(soy.$$escapeHtml(a._i18n('25a0ce',[])));else if('repost'==b.type){var e=new soy.StringBuilder,f=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(b.object.repostedUser,f),jive.shared.soy.escapeHelper({stringToEscape:f.toString()},e),jive.shared.soy.i18nHelper({i18nKey:b.user&&b.object.repostedUser.id==b.user.id?soy.$$escapeHtml('ae44e0'):soy.$$escapeHtml('76d8c5'),arg0:e.toString(),noAutoEscape:!0},d)}else''!=b.object.wallCreationSrc?jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('058f21'),arg0:soy.$$filterNoAutoescape(b.object.wallCreationSrc),noAutoEscape:!0},d):d.append(soy.$$escapeHtml(a._i18n('fe2a79',[])));return c?'':d.toString()},jive.eae.activitystream.item.activity_verb.we.main}),define('soy!jive.eae.activitystream.include.activityVerbPhrase',['soyDeps','soy!jive.eae.activitystream.item.activity_verb.bookmarked.main','soy!jive.eae.activitystream.item.activity_verb.comment.main','soy!jive.eae.activitystream.item.activity_verb.defaults.deleted','soy!jive.eae.activitystream.item.activity_verb.defaults.main','soy!jive.eae.activitystream.item.activity_verb.discussion.main','soy!jive.eae.activitystream.item.activity_verb.discussion.reply','soy!jive.eae.activitystream.item.activity_verb.outcome.comment','soy!jive.eae.activitystream.item.activity_verb.outcome.main','soy!jive.eae.activitystream.item.activity_verb.project.main','soy!jive.eae.activitystream.item.activity_verb.relationship.main','soy!jive.eae.activitystream.item.activity_verb.rtc.main','soy!jive.eae.activitystream.item.activity_verb.share.main','soy!jive.eae.activitystream.item.activity_verb.tile_activity.external','soy!jive.eae.activitystream.item.activity_verb.tile_activity.tile','soy!jive.eae.activitystream.item.activity_verb.we.main'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.include'),jive.eae.activitystream.include.activityVerbPhrase=function(b,c){var d=c||new soy.StringBuilder;return b.object.deleted?jive.eae.activitystream.item.activity_verb.defaults.deleted(b,d):b.object.typeThread?jive.eae.activitystream.item.activity_verb.discussion.main(b,d):!b.object.parentAuthor||b.hideDetailedReplyTo&&!b.object.typeWallEntryComment?b.object.typeMessage||'correct_answer_set'==b.type||'correct_answer_removed'==b.type?jive.eae.activitystream.item.activity_verb.discussion.reply(b,d):b.object.typeOutcome?b.object.targetObject.typeMessage||b.object.targetObject.typeComment?jive.eae.activitystream.item.activity_verb.outcome.comment(b,d):jive.eae.activitystream.item.activity_verb.outcome.main(b,d):b.object.typeComment||'share'==b.type?jive.eae.activitystream.item.activity_verb.share.main(b,d):b.object.typePoll&&'created'==b.type?d.append(soy.$$escapeHtml(a._i18n('bad4ac',[]))):b.object.typeBlogPost&&'created'==b.type?d.append(soy.$$escapeHtml(a._i18n('388235',[]))):b.object.typeDocument&&'created'==b.type&&b.object.binary?d.append(soy.$$escapeHtml(a._i18n('b7c227',[]))):b.object.typeDocument&&'created'==b.type?d.append(soy.$$escapeHtml(a._i18n('388235',[]))):b.object.typeWallEntry||b.object.typeUserStatus?jive.eae.activitystream.item.activity_verb.we.main(b,d):b.object.typeProjectStatus?jive.eae.activitystream.item.activity_verb.project.main(b,d):b.object.typeUserRelationship&&b.user?jive.eae.activitystream.item.activity_verb.relationship.main(b,d):b.object.typeExternalActivity?jive.eae.activitystream.item.activity_verb.tile_activity.external(b,d):b.object.typeTileStreamEntry?jive.eae.activitystream.item.activity_verb.tile_activity.tile(b,d):b.object.typeCollaboration?jive.eae.activitystream.item.activity_verb.rtc.main(b,d):b.object.bookmarkedContent?jive.eae.activitystream.item.activity_verb.bookmarked.main(b,d):''!=b.type&&jive.eae.activitystream.item.activity_verb.defaults.main(b,d):jive.eae.activitystream.item.activity_verb.comment.main(b,d),c?'':d.toString()},jive.eae.activitystream.include.activityVerbPhrase}),define('soy!jive.eae.common.activityAuthor',['soyDeps','soy!jive.eae.activitystream.include.activityVerbPhrase','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.activityAuthor=function(b,c){var d=c||new soy.StringBuilder;return b.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activityUser},d):b.displayAuthorLink?jive.shared.displayutil.userDisplayNameLink(soy.$$augmentMap(b.activityUser,{renderInvisible:b.object.typeExternalActivity}),d):b.deleted&&'outcome_removed'!=b.object.deletedType||d.append(soy.$$escapeHtml(b.activityUser.displayName)),b.object.typeShare?d.append(' ',soy.$$escapeHtml(a._i18n('8fbeca',[])),' '):(d.append(' '),jive.eae.activitystream.include.activityVerbPhrase(b,d)),c?'':d.toString()},jive.eae.common.activityAuthor}),define('soy!jive.eae.activitystream.item.collapsed.appGrouped',['soyDeps','soy!jive.eae.activitystream.collapsedActivityPreviewLinks','soy!jive.eae.apps.common.renderAppEmbeddedExperience','soy!jive.eae.common.activityAuthor','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.eae.common.renderStreamAttachments','soy!jive.shared.displayutil.avatar','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.collapsed'),jive.eae.activitystream.item.collapsed.appGrouped=function(b,c){var d=c||new soy.StringBuilder;if(b.activity.parentActivity);else{if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node ',b.activityContainer.canReply?'j-act-rte-replyable':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activity.targetObjectID),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activity.targetObjectType),'" data-current="',b.activity.current?soy.$$escapeHtmlAttribute(b.activity.current):'','" style=""><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="',b.activity.content.deleted?'j-mod font-color-meta-light':b.activity.content.typeExternalActivity&&'uri:jiveName:app_install'==b.activity.content.verb?'j-app-install j-mod font-color-meta-light':b.activity.content.typeComment?' j-act-comment':' j-app-activity j-act-comment','">'),b.activity.content.deleted)jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:null!=b.activity.content.deletedType?b.activity.content.deletedType:'comment',moderated:!1},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])));else if(b.activity.content.typeExternalActivity&&'uri:jiveName:app_install'==b.activity.content.verb){d.append('<span class="jive-icon-sml jive-glyph-gear actglyph"></span>');var e=new soy.StringBuilder;jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},e),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('0d4d6e'),arg0:e.toString(),noAutoEscape:!0},d),d.append(' <span class="j-act-time font-color-meta-light"><a href="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL)),'" class="font-color-meta-light"  title="',soy.$$escapeHtmlAttribute(a._i18n('d98800',[])),'">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</a></span><span class="j-meta-actions font-color-meta"> <span class="j-bullet">&#8226;</span> '),jive.eae.common.activityNavActions({object:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser.id,objectType:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.objectType,objectId:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.id,liked:b.activityContainer.activityList[b.activityContainer.activityList.length-1].liked,likeCount:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likeCount,likable:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likable,hasMoreText:b.activityContainer.activityList[b.activityContainer.activityList.length-1].hasMoreText,author:b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo},d),d.append('</span>')}else d.append('<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-author-act font-color-meta-light">'),b.activity.content.typeComment?jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d):jive.eae.common.activityAuthor({object:b.activity.content,type:b.activity.type,activityUser:b.activity.activityUser,displayAuthorLink:!0,streamType:b.streamType,hideDetailedReplyTo:!0,user:b.user,againstObject:!0,deleted:!1},d),d.append('<span class="j-author-act-meta font-color-meta-light"><span class="j-act-time font-color-meta-light">',b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',soy.$$escapeHtml(b.time),b.activity.content.jiveObjectURL?'</a>':'','</span>'),b.activity.content.typeExternalActivity||(d.append('<span class="j-act-preview-control"> '),jive.eae.activitystream.collapsedActivityPreviewLinks(null,d),d.append('</span>')),d.append('</span></div>'),b.activity.content.typeExternalActivity?(d.append('<div class="j-act-app-body j-excerpt clearfix"><div class="j-act-app-content clearfix">'),jive.eae.common.renderStreamAttachments({idPrefix:'expanded',object:b.activityContainer.jiveObject,domIDPostfix:b.activityContainer.jiveObject.domIDPostfix},d),d.append('<div class="j-act-notitle">'),jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div></div></div>')):(d.append('<div class="j-excerpt" ',b.hideStub?'style="display:none;"':'','>'),jive.eae.common.collapsedExcerptText({text:b.activity.content.text,hasMoreText:b.activity.hasMoreText,deletedType:null,moderated:b.activity.moderated},d),d.append('</div><div class="j-act-sub-preview clearfix" ',b.hideStub?'':'style="display:none;"','><div class="j-excerpt-full"><div class="j-excerpt-full-html-content">'),b.activity.content.html&&jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div></div></div>')),d.append('<div class="j-meta-actions font-color-meta">'),b.activityContainer.jiveObject.ee&&jive.eae.apps.common.renderAppEmbeddedExperience({ee:b.activityContainer.jiveObject.ee},d),jive.eae.common.activityNavActions({object:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser.id,objectType:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.objectType,objectId:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.id,liked:b.activityContainer.activityList[b.activityContainer.activityList.length-1].liked,likeCount:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likeCount,likable:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likable,hasMoreText:b.activityContainer.activityList[b.activityContainer.activityList.length-1].hasMoreText,author:b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo},d),d.append('</div>');d.append('</div></div>')}return c?'':d.toString()},jive.eae.activitystream.item.collapsed.appGrouped}),define('soy!jive.eae.activitystream.item.collapsed.appUpdate',['soyDeps','soy!jive.eae.activitystream.collapsedActivityPreviewLinks','soy!jive.eae.common.activityAuthor','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.shared.displayutil.avatar'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.collapsed'),jive.eae.activitystream.item.collapsed.appUpdate=function(b,c){
var d=c||new soy.StringBuilder;return b.activity.parentActivity||(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node ',b.activityContainer.canReply?'j-act-rte-replyable':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activity.targetObjectID),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activity.targetObjectType),'" data-current="',b.activity.current?soy.$$escapeHtmlAttribute(b.activity.current):'','" style=""><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'"  class="',b.activity.content.deleted?'j-mod font-color-meta-light':'j-act-comment','">'),b.activity.content.deleted?(jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:null!=b.activity.content.deletedType?b.activity.content.deletedType:'comment',moderated:!1},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])))):(d.append('<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-author-act font-color-meta-light">'),b.activity.content.typeComment?jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d):jive.eae.common.activityAuthor({object:b.activity.content,type:b.activity.content.deleted?b.activityContainer.jiveObject.objectType:b.activity.type,activityUser:b.activity.activityUser,displayAuthorLink:!0,streamType:b.streamType,hideDetailedReplyTo:!0,user:b.user,againstObject:!0,deleted:b.activity.content.deleted},d),d.append('<span class="j-author-act-meta font-color-meta-light"><span class="j-act-time font-color-meta-light">',b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',soy.$$escapeHtml(b.time),b.activity.content.jiveObjectURL?'</a>':'','</span><span class="j-act-preview-control"> '),jive.eae.activitystream.collapsedActivityPreviewLinks(null,d),d.append('</span></span></div><div class="j-excerpt" ',b.hideStub?'style="display:none;"':'','>'),jive.eae.common.collapsedExcerptText({text:b.activity.content.text,hasMoreText:b.activity.hasMoreText,deletedType:null,moderated:b.activity.moderated},d),d.append('</div><div class="j-act-sub-preview clearfix" ',b.hideStub?'':'style="display:none;"','><div class="j-excerpt-full-html-content">'),b.activity.content.html&&jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div></div><div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser.id,objectType:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.objectType,objectId:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.id,liked:b.activityContainer.activityList[b.activityContainer.activityList.length-1].liked,likeCount:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likeCount,likable:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likable,hasMoreText:b.activityContainer.activityList[b.activityContainer.activityList.length-1].hasMoreText,author:b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo},d),d.append('</div>')),d.append('</div></div>')),c?'':d.toString()},jive.eae.activitystream.item.collapsed.appUpdate}),define('soy!jive.eae.shared.subactivity.outcome',['soyDeps','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.escapeHelper','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.shared.subactivity'),jive.eae.shared.subactivity.outcome=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node',b.addedInline?' j-js-addedInline':'','communications'==b.streamType&&(b.activity.current||b.forceCurrent)?' j-current':'',' origin" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activity.content.id),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activity.content.objectType),'" data-current="',b.activity.current||b.forceCurrent?'true':'','"',b.isHidden?' style="display:none;"':'','><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-mod font-color-meta-light"><span class="jive-icon-sml jive-glyph-check actglyph"></span>'),b.activityContainer.jiveObject.objectType==b.activity.content.targetObject.objectType&&b.activityContainer.jiveObject.id==b.activity.content.targetObject.id){var e=new soy.StringBuilder(b.activity.content.targetObject.hasQuestion?'activity.user.outcome.'+soy.$$escapeHtml(b.activity.content.outcomeTypeName)+'.tlo'+soy.$$escapeHtml('pending'==b.activity.content.outcomeTypeName?'.'+b.activity.content.pendingType:'')+'.2q':'activity.user.outcome.'+soy.$$escapeHtml(b.activity.content.outcomeTypeName)+'.tlo'+soy.$$escapeHtml('pending'==b.activity.content.outcomeTypeName?'.'+b.activity.content.pendingType:'')+'.'+soy.$$escapeHtml(b.activity.content.targetObject.objectType));e=e.toString();var f=new soy.StringBuilder,g=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},g):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,g),jive.shared.soy.escapeHelper({stringToEscape:g.toString()},f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml(a.getMinKey(e)),arg0:f.toString(),noAutoEscape:!0},d)}else{var h=new soy.StringBuilder('activity.user.outcome.',soy.$$escapeHtml(b.activity.content.outcomeTypeName),soy.$$escapeHtml('pending'==b.activity.content.outcomeTypeName?'.'+b.activity.content.pendingType:''),'.',soy.$$escapeHtml(b.activity.content.targetObject.typeMessage?'message':'comment'));h=h.toString();var i=new soy.StringBuilder,j=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},j):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,j),jive.shared.soy.escapeHelper({stringToEscape:j.toString()},i);var k=new soy.StringBuilder,l=new soy.StringBuilder;b.activity.content.targetObject.user.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.content.targetObject.user},l):jive.shared.displayutil.userDisplayNameLink(b.activity.content.targetObject.user,l),jive.shared.soy.escapeHelper({stringToEscape:l.toString()},k),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml(a.getMinKey(h)),arg0:i.toString(),arg1:k.toString(),noAutoEscape:!0},d)}return d.append('</div></div>'),c?'':d.toString()},jive.eae.shared.subactivity.outcome}),define('soy!jive.outcomes.action.actionButton',['soyDeps','soy!jive.shared.soy.resourceInlineJs'],function(a){return jive.namespace.call(this,'jive.outcomes.action'),jive.outcomes.action.actionButton=function(b,c){var d=c||new soy.StringBuilder;return jive.shared.soy.resourceInlineJs({code:'require([\'apps/outcomes/eventShim\']);'},d),d.append('<a href="#" class="font-color-meta js-outcome-button j-outcome-button',b.extraClasses?' '+soy.$$escapeHtmlAttribute(b.extraClasses):'','" data-object-type="',soy.$$escapeHtmlAttribute(b.objectType),'" data-object-id="',soy.$$escapeHtmlAttribute(b.objectId),'"',b.objectUrl?'data-object-url="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.objectUrl))+'"':'',b.authorId?'data-author-id="'+soy.$$escapeHtmlAttribute(b.authorId)+'"':'',b.authorIsPartner?'data-author-is-partner="'+soy.$$escapeHtmlAttribute(b.authorIsPartner)+'"':'',b.domActions?'data-dom-actions="'+soy.$$escapeHtmlAttribute(JSON.stringify(b.domActions).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+'"':'',b.parentId?'data-parent-id="'+soy.$$escapeHtmlAttribute(b.parentId)+'"':'',b.context?'data-context="'+soy.$$escapeHtmlAttribute(b.context)+'"':'',b.communityName?'data-root-community="'+soy.$$escapeHtmlAttribute(b.communityName)+'"':'',b.contextMeta?'data-meta-context="'+soy.$$escapeHtmlAttribute(b.contextMeta)+'"':'','><span class="jive-icon-glyph icon-gear"></span> ',soy.$$escapeHtml(a._i18n('446d96',[])),' <span class="j-ui-elem j-action-down-arrow"></span></a>'),c?'':d.toString()},jive.outcomes.action.actionButton}),define('soy!jive.eae.activitystream.item.collapsed.blogpost',['soyDeps','soy!jive.eae.activitystream.collapsedActivityPreviewLinks','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.eae.shared.subactivity.outcome','soy!jive.outcomes.action.actionButton','soy!jive.outcomes.badge.badgeContainer','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.containerDisplayNameLink','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.collapsed'),jive.eae.activitystream.item.collapsed.blogpost=function(b,c){var d=c||new soy.StringBuilder;if(b.activity.parentActivity);else if(b.activity.content.typeOutcome)jive.eae.shared.subactivity.outcome(b,d);else if(b.activity.content.hasAcclaimedOutcome)jive.eae.shared.subactivity.outcome(soy.$$augmentMap(b,{activity:b.activity.content.acclaimedOutcomeActivity}),d);else{if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node ',b.activityContainer.canReply?' j-act-rte-replyable':'',' ',b.hideStub?'j-expanded':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activity.targetObjectID),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activity.targetObjectType),'" data-current="',b.activity.current?soy.$$escapeHtmlAttribute(b.activity.current):'','" style=""><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="',b.activity.content.deleted||'moved'==b.activity.type?'j-mod j-deleted font-color-meta-light':'j-act-comment',' j-js-collapsed">'),b.activity.content.deleted)jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:null!=b.activity.content.deletedType?b.activity.content.deletedType:'comment',moderated:!1},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])));else if('moved'==b.activity.type){d.append('<span class="jive-icon-sml jive-glyph-edit"></span>');var e=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},e):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,e);var f=new soy.StringBuilder;jive.shared.displayutil.containerDisplayNameLink({container:b.activity.movedDestination?b.activity.movedDestination:b.activityContainer.container},f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('f8919c'),arg0:e.toString(),arg1:f.toString(),noAutoEscape:!0},d),d.append(' <span class="j-bullet">&#8226;</span> <span class="j-act-meta font-color-meta">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else d.append('<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d),d.append('<span class="j-act-time font-color-meta-light"> ',b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',soy.$$escapeHtml(b.time),b.activity.content.jiveObjectURL?'</a>':'','</span><span class="j-act-preview-control ',b.hideStub?'j-previewing':'','"> '),jive.eae.activitystream.collapsedActivityPreviewLinks(null,d),d.append('</span></div><div class="j-excerpt" ',b.hideStub?'style="display:none;"':'','>'),jive.eae.common.collapsedExcerptText({text:b.activity.content.text,hasMoreText:b.activity.hasMoreText,deletedType:null,moderated:b.activity.moderated},d),d.append('</div><div class="j-act-sub-preview clearfix" ',b.hideStub?'':'style="display:none;"','><div class="j-excerpt-full-html-content">'),b.activity.content.html&&(jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),jive.outcomes.badge.badgeContainer({objectType:b.activity.targetObjectType,objectId:b.activity.targetObjectID},d)),d.append('</div></div><div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser.id,objectType:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.objectType,objectId:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.id,liked:b.activityContainer.activityList[b.activityContainer.activityList.length-1].liked,likeCount:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likeCount,likable:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likable,hasMoreText:b.activityContainer.activityList[b.activityContainer.activityList.length-1].hasMoreText,author:b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo},d),jive.outcomes.action.actionButton({objectType:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.objectType,objectUrl:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.jiveObjectURL,objectId:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.id,context:'activity',authorId:b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser.id,authorIsPartner:b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser.partner},d),d.append('</div>');d.append('</div></div>')}return c?'':d.toString()},jive.eae.activitystream.item.collapsed.blogpost}),define('soy!jive.eae.common.activityAuthorAndOnBehalfOfNoVerb',['soyDeps','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.activityAuthorAndOnBehalfOfNoVerb=function(a,b){var c=b||new soy.StringBuilder;if(a.object.onBehalfOfUser){var d=new soy.StringBuilder;jive.eae.common.activityAuthorNoVerb(a,d),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('4b618b'),arg0:d.toString(),arg1:'<strong class="font-color-light"> '+soy.$$escapeHtml(a.object.onBehalfOfUser)+'  </strong>',noAutoEscape:'true'},c)}else jive.eae.common.activityAuthorNoVerb(a,c);return b?'':c.toString()},jive.eae.common.activityAuthorAndOnBehalfOfNoVerb}),define('soy!jive.eae.activitystream.item.collapsed.document',['soyDeps','soy!jive.eae.activitystream.collapsedActivityPreviewLinks','soy!jive.eae.common.activityAuthorAndOnBehalfOfNoVerb','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.eae.common.renderStreamAttachments','soy!jive.eae.shared.subactivity.outcome','soy!jive.outcomes.action.actionButton','soy!jive.outcomes.badge.badgeContainer','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.containerDisplayNameLink','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.collapsed'),jive.eae.activitystream.item.collapsed.document=function(b,c){var d=c||new soy.StringBuilder;if(b.activity.parentActivity);else if(b.activity.content.typeOutcome)jive.eae.shared.subactivity.outcome(b,d);else if(b.activity.content.hasAcclaimedOutcome)jive.eae.shared.subactivity.outcome(soy.$$augmentMap(b,{activity:b.activity.content.acclaimedOutcomeActivity}),d);else{if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node ',b.activityContainer.canReply?'j-act-rte-replyable':'',' ',b.hideStub?'j-expanded':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-extendedAuthors="',soy.$$escapeHtmlAttribute(b.activityContainer.warnVisibleToExtendedAuthors),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activity.targetObjectID),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activity.targetObjectType),'" data-current="',b.activity.current?soy.$$escapeHtmlAttribute(b.activity.current):'','" style=""><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="',b.activity.groupedModifiers.length>0||b.activity.content.deleted||'moved'==b.activity.type?'j-mod font-color-meta-light ':'j-act-comment',' j-js-collapsed">'),b.activity.content.deleted)jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:null!=b.activity.content.deletedType?b.activity.content.deletedType:'comment',moderated:!1},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])));else if('moved'==b.activity.type){d.append('<span class="jive-icon-glyph icon-move2"></span> ');var e=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},e):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,e);var f=new soy.StringBuilder;jive.shared.displayutil.containerDisplayNameLink({container:b.activity.movedDestination?b.activity.movedDestination:b.activityContainer.container},f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('f8919c'),arg0:e.toString(),arg1:f.toString(),noAutoEscape:!0},d),d.append(' <span class="j-bullet">&#8226;</span> <span class="j-act-meta font-color-meta">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else if(b.activity.groupedModifiers.length>0){d.append('<span class="jive-icon-glyph icon-edit actglyph"></span> ',soy.$$escapeHtml(a._i18n('a4d3f9',[])),' ');for(var g=b.activity.groupedModifiers,h=g.length,i=0;h>i;i++){var j=g[i];jive.shared.displayutil.userDisplayNameLink(j,d),d.append(b.activity.groupedModifiers.length-2==i?' '+soy.$$escapeHtml(a._i18n('3b6373',[])):i!=h-1?',':'',' ')}d.append(' <span class="j-bullet">&#8226;</span> <span class="font-color-meta-light">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else d.append('<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorAndOnBehalfOfNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d),d.append('<span class="j-act-time font-color-meta-light">',b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',soy.$$escapeHtml(b.time),b.activity.content.jiveObjectURL?'</a>':'','</span><span class="j-act-preview-control ',b.hideStub?'j-previewing':'','"> '),jive.eae.activitystream.collapsedActivityPreviewLinks(null,d),d.append('</span></div><div class="j-excerpt" ',b.hideStub?'style="display:none;"':'','><span class="j-excerpt-slug">'),jive.eae.common.collapsedExcerptText({text:b.activity.content.text,hasMoreText:b.activity.hasMoreText,deletedType:null,moderated:b.activity.moderated},d),d.append('</span>'),jive.eae.common.renderStreamAttachments({idPrefix:'collapsed',object:b.activity.content,domIDPostfix:b.activity.domIDPostfix},d),d.append('</div><div class="j-act-sub-preview clearfix" ',b.hideStub?'':'style="display:none;"','><div class="j-excerpt-full"><div class="j-excerpt-full-html-content">'),b.activity.content.html&&(jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),jive.outcomes.badge.badgeContainer({objectType:b.activity.targetObjectType,objectId:b.activity.targetObjectID},d)),d.append('</div></div></div><div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser.id,objectType:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.objectType,objectId:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.id,liked:b.activityContainer.activityList[b.activityContainer.activityList.length-1].liked,likeCount:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likeCount,likable:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likable,hasMoreText:b.activityContainer.activityList[b.activityContainer.activityList.length-1].hasMoreText,author:b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo},d),jive.outcomes.action.actionButton({objectType:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.objectType,objectUrl:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.jiveObjectURL,objectId:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.id,context:'activity',authorId:b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser.id,authorIsPartner:b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser.partner},d),d.append('</div>');d.append('</div></div>')}return c?'':d.toString()},jive.eae.activitystream.item.collapsed.document}),define('soy!jive.eae.activitystream.item.collapsed.mention',['soyDeps','soy!jive.eae.common.collapsedExcerptText','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.collapsed'),jive.eae.activitystream.item.collapsed.mention=function(b,c){var d=c||new soy.StringBuilder;if(b.activity.parentActivity);else{if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node"><div class="j-act-comment j-js-collapsed"><div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-author-act font-color-meta"><span class="jive-icon-med jive-icon-mention-label" title="',soy.$$escapeHtmlAttribute(a._i18n('3f032f',[])),'"></span>'),3==b.activity.content.mentionedObject.objectType&&b.activity.content.mentionedObject.id+''==b.user.id){var e=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,e),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('3f3e71'),arg0:e.toString(),noAutoEscape:!0},d)}else{var f=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,f),f=f.toString();var g=new soy.StringBuilder('<strong class="font-color-okay">',soy.$$escapeHtml(b.activity.content.mentionedObject.name),'</strong>');g=g.toString(),d.append(4==b.activity.content.mentionedObject.objectType||14==b.activity.content.mentionedObject.objectType?soy.$$filterNoAutoescape(a._i18n('49e2a0',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(f),new soydata.VERY_UNSAFE.ordainSanitizedHtml(g)])):3==b.activity.content.mentionedObject.objectType?soy.$$filterNoAutoescape(a._i18n('782a17',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(f),new soydata.VERY_UNSAFE.ordainSanitizedHtml(g)])):soy.$$filterNoAutoescape(a._i18n('1495e0',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(f),new soydata.VERY_UNSAFE.ordainSanitizedHtml(g)])))}d.append('<span class="j-act-time font-color-meta-light"> ',b.activity.content.context.jiveObjectURL&&!b.activityContainer.activityList[0].content.context.parentTypeAnnouncement?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.context.jiveObjectURL))+'" class="font-color-meta-light">':'',soy.$$escapeHtml(b.activity.creationTime),b.activity.content.context.jiveObjectURL&&!b.activityContainer.activityList[0].content.context.parentTypeAnnouncement?'</a>':'','</span></div><div class="j-excerpt">'),jive.eae.common.collapsedExcerptText({text:b.activity.content.text,deletedType:null,moderated:!1},d),d.append(b.activityContainer.activityList[0].content.deleted?'':'<a href=\'#\' class="j-js-show-full-content j-act-preview show" data-extVisible="'+soy.$$escapeHtmlAttribute(b.activityContainer.visibleToExtCollaborator)+'" data-objectID="'+soy.$$escapeHtmlAttribute(b.activityContainer.activityList[0].content.context.id)+'" data-objectType="'+soy.$$escapeHtmlAttribute(b.activityContainer.activityList[0].content.context.objectType)+'" aria-hidden="false">'+soy.$$escapeHtml(a._i18n('bfa34b',[]))+'</a><a href=\'#\' class="j-js-hide-full-content j-act-preview hide" style="display:none;" aria-hidden="true">'+soy.$$escapeHtml(a._i18n('084537',[]))+'</a>','</div></div></div>')}return c?'':d.toString()},jive.eae.activitystream.item.collapsed.mention}),define('soy!jive.eae.activitystream.item.collapsed.video',['soyDeps','soy!jive.eae.activitystream.collapsedActivityPreviewLinks','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.containerDisplayNameLink','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.collapsed'),jive.eae.activitystream.item.collapsed.video=function(b,c){var d=c||new soy.StringBuilder;if(b.activity.parentActivity);else{if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node ',b.activityContainer.canReply?' j-act-rte-replyable':'',' ',b.hideStub?'j-expanded':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-objectID=',b.activity.content.typeThread?'"'+soy.$$escapeHtmlAttribute(b.activity.content.id)+'"':'"'+soy.$$escapeHtmlAttribute(b.activity.targetObjectID)+'"',' data-objectType=',b.activity.content.typeThread?'"'+soy.$$escapeHtmlAttribute(b.activity.content.objectType)+'"':'"'+soy.$$escapeHtmlAttribute(b.activity.targetObjectType)+'"',' data-current="',b.activity.current?soy.$$escapeHtmlAttribute(b.activity.current):'','" style=""><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="',b.activity.content.deleted||'moved'==b.activity.type?'j-mod font-color-meta-light':'j-act-comment',' j-js-collapsed">'),b.activity.content.deleted)jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:null!=b.activity.content.deletedType?b.activity.content.deletedType:'reply',moderated:!1},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])));else if('moved'==b.activity.type){d.append('<span class="jive-icon-sml jive-glyph-edit"></span>');var e=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},e):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,e);var f=new soy.StringBuilder;jive.shared.displayutil.containerDisplayNameLink({container:b.activity.movedDestination?b.activity.movedDestination:b.activityContainer.container},f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('f8919c'),arg0:e.toString(),arg1:f.toString(),noAutoEscape:!0},d),d.append(' <span class="j-bullet">&#8226;</span> <span class="j-act-meta font-color-meta">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else d.append('<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d),d.append(' <span class="j-act-time font-color-meta-light">',b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',soy.$$escapeHtml(b.time),b.activity.content.jiveObjectURL?'</a>':'','</span><span class="j-act-preview-control ',b.hideStub?'j-previewing':'','"> '),jive.eae.activitystream.collapsedActivityPreviewLinks(null,d),d.append('</span></div><div class="j-excerpt" ',b.hideStub?'style="display:none;"':'','>'),jive.eae.common.collapsedExcerptText({text:b.activity.content.text,hasMoreText:b.activity.hasMoreText,deletedType:null,moderated:b.activity.moderated},d),d.append(' </div><div class="j-act-sub-preview clearfix" ',b.hideStub?'':'style="display:none;"','><div class="j-excerpt-full"><div class="j-excerpt-full-html-content">'),b.activity.content.html&&jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div></div></div><div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser.id,objectType:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.objectType,objectId:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.id,liked:b.activityContainer.activityList[b.activityContainer.activityList.length-1].liked,likeCount:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likeCount,likable:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likable,hasMoreText:b.activityContainer.activityList[b.activityContainer.activityList.length-1].hasMoreText,author:b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser,
user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo},d),d.append('</div>');d.append('</div></div>')}return c?'':d.toString()},jive.eae.activitystream.item.collapsed.video}),define('soy!jive.eae.activitystream.item.collapsed.statusUpdate',['soyDeps','soy!jive.eae.activitystream.collapsedActivityPreviewLinks','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.containerDisplayNameLink','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.collapsed'),jive.eae.activitystream.item.collapsed.statusUpdate=function(b,c){var d=c||new soy.StringBuilder;if(b.activity.parentActivity||b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.repostedEntry);else{if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node ',b.hideStub?'j-expanded':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activity.targetObjectID),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activity.targetObjectType),'" data-current="',b.activity.current?soy.$$escapeHtmlAttribute(b.activity.current):'','" style=""><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="',b.activity.content.deleted||'moved'==b.activity.type?'j-mod font-color-meta-light':'j-act-comment',' j-js-collapsed">'),b.activity.content.deleted)jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:null!=b.activity.content.deletedType?b.activity.content.deletedType:'comment',moderated:!1},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])));else if('moved'==b.activity.type){d.append('<span class="jive-icon-sml jive-glyph-edit"></span>');var e=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},e):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,e);var f=new soy.StringBuilder;jive.shared.displayutil.containerDisplayNameLink({container:b.activity.movedDestination?b.activity.movedDestination:b.activityContainer.container},f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('f8919c'),arg0:e.toString(),arg1:f.toString(),noAutoEscape:!0},d),d.append(' <span class="j-bullet">&#8226;</span> <span class="j-act-meta font-color-meta">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else d.append('<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d),d.append('<span class="j-act-time font-color-meta-light">',b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',soy.$$escapeHtml(b.time),b.activity.content.jiveObjectURL?'</a>':'','</span><span class="j-act-preview-control ',b.hideStub?'j-previewing':'','"> '),jive.eae.activitystream.collapsedActivityPreviewLinks(null,d),d.append('</span></div>'),b.activity.content.typeWallEntry||(d.append('<div class="j-excerpt" ',b.hideStub?'style="display:none;"':'','>'),jive.eae.common.collapsedExcerptText({text:b.activity.content.text,hasMoreText:b.activity.hasMoreText,deletedType:null,moderated:b.activity.moderated},d),d.append('</div><div class="j-act-sub-preview clearfix" ',b.hideStub?'':'style="display:none;"','><div class="j-excerpt-full-html-content">'),b.activity.content.html&&jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div></div>')),d.append('<div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser.id,objectType:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.objectType,objectId:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.id,liked:b.activityContainer.activityList[b.activityContainer.activityList.length-1].liked,likeCount:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likeCount,likable:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likable,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData},d),d.append('</div>');d.append('</div></div>')}return c?'':d.toString()},jive.eae.activitystream.item.collapsed.statusUpdate}),define('soy!jive.eae.activitystream.item.collapsed.bulkUpload',['soyDeps','soy!jive.eae.activitystream.collapsedActivityPreviewLinks','soy!jive.eae.common.activityAuthorAndOnBehalfOfNoVerb','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.eae.common.renderStreamAttachments','soy!jive.outcomes.action.actionButton','soy!jive.outcomes.badge.badgeContainer','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.containerDisplayNameLink','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.collapsed'),jive.eae.activitystream.item.collapsed.bulkUpload=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node ',b.activityContainer.canReply?'j-act-rte-replyable':'',' ',b.hideStub?'j-expanded':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-extendedAuthors="',soy.$$escapeHtmlAttribute(b.activityContainer.warnVisibleToExtendedAuthors),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activity.targetObjectID),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activity.targetObjectType),'" data-current="',b.activity.current?soy.$$escapeHtmlAttribute(b.activity.current):'','" style=""><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="',b.activity.groupedModifiers.length>0||b.activity.content.deleted||'moved'==b.activity.type?'j-mod font-color-meta-light ':'j-act-comment',' j-js-collapsed">'),b.activity.content.deleted)jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:null!=b.activity.content.deletedType?b.activity.content.deletedType:'comment',moderated:!1},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])));else if('moved'==b.activity.type){d.append('<span class="jive-icon-glyph icon-move2"></span> ');var e=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},e):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,e);var f=new soy.StringBuilder;jive.shared.displayutil.containerDisplayNameLink({container:b.activity.movedDestination?b.activity.movedDestination:b.activityContainer.container},f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('f8919c'),arg0:e.toString(),arg1:f.toString(),noAutoEscape:!0},d),d.append(' <span class="j-bullet">&#8226;</span> <span class="j-act-meta font-color-meta">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else if(b.activity.groupedModifiers.length>0){d.append('<span class="jive-icon-glyph icon-edit actglyph"></span> ',soy.$$escapeHtml(a._i18n('a4d3f9',[])),' ');for(var g=b.activity.groupedModifiers,h=g.length,i=0;h>i;i++){var j=g[i];jive.shared.displayutil.userDisplayNameLink(j,d),d.append(b.activity.groupedModifiers.length-2==i?' '+soy.$$escapeHtml(a._i18n('3b6373',[])):i!=h-1?',':'',' ')}d.append(' <span class="j-bullet">&#8226;</span> <span class="font-color-meta-light">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else d.append('<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorAndOnBehalfOfNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d),d.append('<span class="j-act-time font-color-meta-light">',b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',soy.$$escapeHtml(b.time),b.activity.content.jiveObjectURL?'</a>':'','</span><span class="j-act-preview-control ',b.hideStub?'j-previewing':'','"> '),jive.eae.activitystream.collapsedActivityPreviewLinks(null,d),d.append('</span></div><div class="j-excerpt" ',b.hideStub?'style="display:none;"':'','><span class="j-excerpt-slug">'),jive.eae.common.collapsedExcerptText({text:b.activity.content.text,hasMoreText:b.activity.hasMoreText,deletedType:null,moderated:b.activity.moderated},d),d.append('</span>'),jive.eae.common.renderStreamAttachments({idPrefix:'collapsed',object:b.activity.content,domIDPostfix:b.activity.domIDPostfix},d),d.append('</div><div class="j-act-sub-preview clearfix" ',b.hideStub?'':'style="display:none;"','><div class="j-excerpt-full"><div class="j-excerpt-full-html-content">'),b.activity.content.html&&(jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),jive.outcomes.badge.badgeContainer({objectType:b.activity.targetObjectType,objectId:b.activity.targetObjectID},d)),d.append('</div></div></div><div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser.id,objectType:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.objectType,objectId:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.id,liked:b.activityContainer.activityList[b.activityContainer.activityList.length-1].liked,likeCount:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likeCount,likable:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likable,hasMoreText:b.activityContainer.activityList[b.activityContainer.activityList.length-1].hasMoreText,author:b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo},d),jive.outcomes.action.actionButton({objectType:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.objectType,objectUrl:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.jiveObjectURL,objectId:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.id,context:'activity',authorId:b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser.id,authorIsPartner:b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser.partner},d),d.append('</div>');return d.append('</div></div>'),c?'':d.toString()},jive.eae.activitystream.item.collapsed.bulkUpload}),define('soy!jive.eae.activitystream.item.collapsed.discussion',['soyDeps','soy!jive.eae.activitystream.collapsedActivityPreviewLinks','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.eae.shared.subactivity.outcome','soy!jive.outcomes.action.actionButton','soy!jive.outcomes.badge.badgeContainer','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.containerDisplayNameLink','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.escapeHelper','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.collapsed'),jive.eae.activitystream.item.collapsed.discussion=function(b,c){var d=c||new soy.StringBuilder;if(b.activity.parentActivity);else if(b.activity.content.typeOutcome)jive.eae.shared.subactivity.outcome(b,d);else if(b.activity.content.hasAcclaimedOutcome)jive.eae.shared.subactivity.outcome(soy.$$augmentMap(b,{activity:b.activity.content.acclaimedOutcomeActivity}),d);else{if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node ',b.activityContainer.canReply?' j-act-rte-replyable':'',' ',b.hideStub?'j-expanded':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-extendedAuthors="',soy.$$escapeHtmlAttribute(b.activityContainer.warnVisibleToExtendedAuthors),'" data-objectID="',b.activity.content.typeThread?soy.$$escapeHtmlAttribute(b.activity.content.id):soy.$$escapeHtmlAttribute(b.activity.targetObjectID),'" data-objectType="',b.activity.content.typeThread?soy.$$escapeHtmlAttribute(b.activity.content.objectType):soy.$$escapeHtmlAttribute(b.activity.targetObjectType),'" data-current="',b.activity.current?soy.$$escapeHtmlAttribute(b.activity.current):'','" data-thread-id="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.threadID),'" style=""><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="',b.activity.content.deleted||'correct_answer_set'==b.activity.type||'moved'==b.activity.type?'j-mod font-color-meta-light':'j-act-comment',' j-js-collapsed">'),b.activity.content.deleted)jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:null!=b.activity.content.deletedType?b.activity.content.deletedType:'reply',moderated:!1},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])));else if('moved'==b.activity.type){d.append('<span class="jive-icon-glyph icon-move2"></span> ');var e=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},e):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,e);var f=new soy.StringBuilder;jive.shared.displayutil.containerDisplayNameLink({container:b.activity.movedDestination?b.activity.movedDestination:b.activityContainer.container},f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('f8919c'),arg0:e.toString(),arg1:f.toString(),noAutoEscape:!0},d),d.append(' <span class="j-bullet">&#8226;</span> <span class="j-act-meta font-color-meta">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else if('correct_answer_set'==b.activity.type){d.append('<span class="jive-icon-sml jive-glyph-check actglyph"></span>');var g=new soy.StringBuilder,h=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},h):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,h),jive.shared.soy.escapeHelper({stringToEscape:h.toString()},g);var i=new soy.StringBuilder,j=new soy.StringBuilder;b.activity.content.parentAuthor.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.content.user},j):jive.shared.displayutil.userDisplayNameLink(b.activity.content.user,j),jive.shared.soy.escapeHelper({stringToEscape:j.toString()},i);var k=new soy.StringBuilder;jive.shared.soy.escapeHelper({stringToEscape:'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">'},k);var l=new soy.StringBuilder;jive.shared.soy.escapeHelper({stringToEscape:'</a>'},l),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('275a7a'),arg0:g.toString(),arg1:i.toString(),arg2:k.toString(),arg3:l.toString(),noAutoEscape:!0},d)}else d.append('<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d),d.append(' <span class="j-act-time font-color-meta-light">',b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',soy.$$escapeHtml(b.time),b.activity.content.jiveObjectURL?'</a>':'','</span><span class="j-act-preview-control ',b.hideStub?'j-previewing':'','"> '),jive.eae.activitystream.collapsedActivityPreviewLinks(null,d),d.append('</span></div><div class="j-excerpt" ',b.hideStub?'style="display:none;"':'','>'),jive.eae.common.collapsedExcerptText({text:b.activity.content.text,hasMoreText:b.activity.hasMoreText,deletedType:null,moderated:b.activity.moderated},d),d.append(' </div><div class="j-act-sub-preview clearfix" ',b.hideStub?'':'style="display:none;"','><div class="j-excerpt-full"><div class="j-excerpt-full-html-content">'),b.activity.content.html&&(jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),jive.outcomes.badge.badgeContainer({objectType:b.activity.targetObjectType,objectId:b.activity.targetObjectID},d)),d.append('</div></div></div><div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser.id,objectType:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.objectType,objectId:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.id,liked:b.activityContainer.activityList[b.activityContainer.activityList.length-1].liked,likeCount:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likeCount,likable:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likable,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData,isQuestionComment:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.isQuestionComment},d),jive.outcomes.action.actionButton({objectType:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.objectType,objectUrl:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.jiveObjectURL,objectId:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.id,context:'activity',authorId:b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser.id,authorIsPartner:b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser.partner},d),d.append('</div>');d.append('</div></div>')}return c?'':d.toString()},jive.eae.activitystream.item.collapsed.discussion}),define('soy!jive.eae.activitystream.item.collapsed.task',['soyDeps','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.collapsed'),jive.eae.activitystream.item.collapsed.task=function(b,c){var d=c||new soy.StringBuilder;if(b.activity.parentActivity);else{if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node ',b.activityContainer.canReply?'j-act-rte-replyable':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activity.targetObjectID),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activity.targetObjectType),'" data-current="',b.activity.current?soy.$$escapeHtmlAttribute(b.activity.current):'','" style=""><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="','created'==b.activity.type||'completed'==b.activity.type?'j-sub j-mod font-color-meta-light':'',' j-js-collapsed">'),b.activity.content.typeTask){d.append('<span class="jive-icon-sml ','completed'==b.activity.type?'jive-glyph-check':'jive-glyph-edit',' actglyph"></span>');var e=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.content},e):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,e),jive.shared.soy.i18nHelper({i18nKey:'created'==b.activity.type?soy.$$escapeHtml('f6c733'):soy.$$escapeHtml('0f4e75'),arg0:e.toString(),noAutoEscape:'true'},d),d.append(' <span class="j-bullet">&#8226;</span> <span class="font-color-meta-light j-act-time">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else d.append('<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:46,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d),d.append('</div><div class="j-excerpt" ',b.hideStub?'style="display:none;"':'','>'),jive.eae.common.collapsedExcerptText({text:b.activity.content.text,hasMoreText:b.activity.hasMoreText,deletedType:null,moderated:b.activity.moderated},d),d.append('</div><div class="j-act-sub-preview clearfix" ',b.hideStub?'':'style="display:none;"','><div class="j-excerpt-full"><div class="j-excerpt-full-html-content">'),b.activity.content.html&&jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div></div></div><div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser.id,objectType:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.objectType,objectId:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.id,liked:b.activityContainer.activityList[b.activityContainer.activityList.length-1].liked,likeCount:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likeCount,likable:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likable,hasMoreText:b.activityContainer.activityList[b.activityContainer.activityList.length-1].hasMoreText,author:b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo},d),d.append('</div>');d.append('</div></div>')}return c?'':d.toString()},jive.eae.activitystream.item.collapsed.task}),define('soy!jive.eae.activitystream.item.collapsed.event',['soyDeps','soy!jive.eae.activitystream.collapsedActivityPreviewLinks','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.containerDisplayNameLink','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.collapsed'),jive.eae.activitystream.item.collapsed.event=function(b,c){var d=c||new soy.StringBuilder;if(b.activity.parentActivity);else if('voted'==b.activity.type)d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node ',b.activityContainer.canReply?' j-act-rte-replyable':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'"',b.activity.warnVisibleToExtendedAuthors?'data-extendedAuthors="'+soy.$$escapeHtmlAttribute(b.activity.warnVisibleToExtendedAuthors)+'"':'','data-objectID="',soy.$$escapeHtmlAttribute(b.activity.targetObjectID),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activity.targetObjectType),'" data-current="',b.activity.current?soy.$$escapeHtmlAttribute(b.activity.current):'','" style=""><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-sub j-mod font-color-meta-light"></div></div>');else{if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node ',b.activityContainer.canReply?' j-act-rte-replyable':'',' ',b.hideStub?'j-expanded':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" ',b.activity.warnVisibleToExtendedAuthors?'data-extendedAuthors="'+soy.$$escapeHtmlAttribute(b.activity.warnVisibleToExtendedAuthors)+'"':'','data-objectID=',b.activity.content.typeThread?'"'+soy.$$escapeHtmlAttribute(b.activity.content.id)+'"':'"'+soy.$$escapeHtmlAttribute(b.activity.targetObjectID)+'"',' data-objectType=',b.activity.content.typeThread?'"'+soy.$$escapeHtmlAttribute(b.activity.content.objectType)+'"':'"'+soy.$$escapeHtmlAttribute(b.activity.targetObjectType)+'"',' data-current="',b.activity.current?soy.$$escapeHtmlAttribute(b.activity.current):'','" style=""><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="',b.activity.content.deleted||'moved'==b.activity.type?'j-mod font-color-meta-light':'j-act-comment',' j-js-collapsed">'),b.activity.content.deleted)jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:null!=b.activity.content.deletedType?b.activity.content.deletedType:'reply',moderated:!1},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])));else if('moved'==b.activity.type){d.append('<span class="jive-icon-sml jive-glyph-edit"></span>');var e=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},e):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,e);var f=new soy.StringBuilder;jive.shared.displayutil.containerDisplayNameLink({container:b.activity.movedDestination?b.activity.movedDestination:b.activityContainer.container},f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('f8919c'),arg0:e.toString(),arg1:f.toString(),noAutoEscape:!0},d),d.append(' <span class="j-bullet">&#8226;</span> <span class="j-act-meta font-color-meta">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else d.append('<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d),d.append(' <span class="j-act-time font-color-meta-light">',b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',soy.$$escapeHtml(b.time),b.activity.content.jiveObjectURL?'</a>':'','</span><span class="j-act-preview-control ',b.hideStub?'j-previewing':'','"> '),jive.eae.activitystream.collapsedActivityPreviewLinks(null,d),d.append('</span></div><div class="j-excerpt" ',b.hideStub?'style="display:none;"':'','>'),jive.eae.common.collapsedExcerptText({text:b.activity.content.text,hasMoreText:b.activity.hasMoreText,deletedType:null,moderated:b.activity.moderated},d),d.append(' </div><div class="j-act-sub-preview clearfix" ',b.hideStub?'':'style="display:none;"','><div class="j-excerpt-full"><div class="j-excerpt-full-html-content">'),b.activity.content.html&&jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div></div></div><div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser.id,objectType:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.objectType,objectId:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.id,liked:b.activityContainer.activityList[b.activityContainer.activityList.length-1].liked,likeCount:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likeCount,likable:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likable,hasMoreText:b.activityContainer.activityList[b.activityContainer.activityList.length-1].hasMoreText,author:b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo},d),d.append('</div>');d.append('</div></div>')}return c?'':d.toString()},jive.eae.activitystream.item.collapsed.event}),define('soy!jive.eae.activitystream.collapsedActivityStreamExcerpt',['soyDeps','soy!jive.eae.activitystream.item.collapsed.remotedocument','soy!jive.eae.activitystream.item.collapsed.appGrouped','soy!jive.eae.activitystream.item.collapsed.appUpdate','soy!jive.eae.activitystream.item.collapsed.blogpost','soy!jive.eae.activitystream.item.collapsed.bookmark','soy!jive.eae.activitystream.item.collapsed.document','soy!jive.eae.activitystream.item.collapsed.mention','soy!jive.eae.activitystream.item.collapsed.video','soy!jive.eae.activitystream.item.collapsed.idea','soy!jive.eae.activitystream.item.collapsed.statusUpdate','soy!jive.eae.activitystream.item.collapsed.bulkUpload','soy!jive.eae.activitystream.item.collapsed.discussion','soy!jive.eae.activitystream.item.collapsed.task','soy!jive.eae.activitystream.item.collapsed.event','soy!jive.eae.activitystream.collapsedActivityPreviewLinks','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.eae.shared.subactivity.outcome','soy!jive.outcomes.badge.badgeContainer','soy!jive.shared.displayutil.avatar','soy!jive.shared.soy.render'],function(a){return jive.namespace.call(this,'jive.eae.activitystream'),
jive.eae.activitystream.collapsedActivityStreamExcerpt=function(b,c){var d=c||new soy.StringBuilder;return b.activityContainer.jiveObject.collapsedActivityStreamExcerptTemplate?jive.shared.soy.render({templateName:b.activityContainer.jiveObject.collapsedActivityStreamExcerptTemplate,data:function(){for(var a={},c=[['activityContainer',b.activityContainer],['activity',b.activity],['streamType',b.streamType],['filterData',b.filterData],['user',b.user],['canCreateMbImage',b.canCreateMbImage],['canCreateMbVideo',b.canCreateMbVideo],['time',b.time],['hideStub',b.hideStub]],d=0;d<c.length;d+=1)a[c[d][0]]=c[d][1];return a}(),failGracefully:!0},d):b.activity.parentActivity||(b.activity.content.typeOutcome?jive.eae.shared.subactivity.outcome(b,d):b.activity.content.hasAcclaimedOutcome?jive.eae.shared.subactivity.outcome(soy.$$augmentMap(b,{activity:b.activity.content.acclaimedOutcomeActivity}),d):(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node ',b.activityContainer.canReply?' j-act-rte-replyable':'',' ',b.hideStub?'j-expanded':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-extendedAuthors="',soy.$$escapeHtmlAttribute(b.activityContainer.warnVisibleToExtendedAuthors),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activity.targetObjectID),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activity.targetObjectType),'" data-current="',b.activity.current?soy.$$escapeHtmlAttribute(b.activity.current):'','" style=""><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-js-collapsed',b.activity.content.deleted?' j-mod j-deleted font-color-meta-light':' j-act-comment','">'),b.activity.content.deleted?(jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:null!=b.activity.content.deletedType?b.activity.content.deletedType:'comment',moderated:!1},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])))):(d.append('<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d),d.append('<span class="j-act-time font-color-meta-light"> ',b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',soy.$$escapeHtml(b.time),b.activity.content.jiveObjectURL?'</a>':'','</span><span class="j-act-preview-control ',b.hideStub?'j-previewing':'','"> '),jive.eae.activitystream.collapsedActivityPreviewLinks(null,d),d.append('</span></div><div class="j-excerpt" ',b.hideStub?'style="display:none;"':'','>'),jive.eae.common.collapsedExcerptText({text:b.activity.content.text,hasMoreText:b.activity.hasMoreText,deletedType:null,moderated:b.activity.moderated},d),d.append('</div><div class="j-act-sub-preview clearfix" ',b.hideStub?'':'style="display:none;"','><div class="j-excerpt-full-html-content">'),b.activity.content.html&&(jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),jive.outcomes.badge.badgeContainer({objectType:b.activity.targetObjectType,objectId:b.activity.targetObjectID},d)),d.append('</div></div><div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser.id,objectType:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.objectType,objectId:b.activityContainer.activityList[b.activityContainer.activityList.length-1].content.id,liked:b.activityContainer.activityList[b.activityContainer.activityList.length-1].liked,likeCount:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likeCount,likable:b.activityContainer.activityList[b.activityContainer.activityList.length-1].likable,hasMoreText:b.activityContainer.activityList[b.activityContainer.activityList.length-1].hasMoreText,author:b.activityContainer.activityList[b.activityContainer.activityList.length-1].activityUser,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo},d),d.append('</div>')),d.append('</div></div>'))),c?'':d.toString()},jive.eae.activitystream.collapsedActivityStreamExcerpt}),define('soy!jive.eae.activitystream.item.grouped.collapsedComments',['soyDeps','soy!jive.eae.activitystream.collapsedActivityStreamExcerpt'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.collapsedComments=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-act-coll-view collapsed clearfix">'),jive.eae.activitystream.collapsedActivityStreamExcerpt({activityContainer:a.activityContainer,activity:a.activityContainer.activityList[a.activityContainer.activityList.length-1],streamType:a.streamType,filterData:a.filterData,user:a.user,canCreateMbImage:a.canCreateMbImage,canCreateMbVideo:a.canCreateMbVideo,hideStub:!1,time:a.activityContainer.parentTime},c),c.append('</div>'),b?'':c.toString()},jive.eae.activitystream.item.grouped.collapsedComments}),define('soy!jive.eae.tileActivity.renderedObject',['soyDeps','soy!jive.eae.activitystream.item.grouped.actions','soy!jive.eae.tileActivity.extModified','soy!jive.eae.tileActivity.renderOnBehalfOf','soy!jive.eae.tileActivity.renderUser','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.containerDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.tileActivity'),jive.eae.tileActivity.renderedObject=function(a,b){var c=b||new soy.StringBuilder,d=null!=a.viewBean.showIconFrom?a.viewBean.showIconFrom:'';c.append('<div class="j-act-init j-act-replyable"><div class="j-act-avatar">'),a.viewBean.streamTileEntryCreator.prop&&a.viewBean.streamTileEntryCreator.prop.integrationUserInfo&&a.viewBean.streamTileEntryCreator.prop.integrationUserInfo.streamEntrySpecific?jive.shared.displayutil.avatar(soy.$$augmentMap(a.viewBean.streamTileEntryCreator,{size:46}),c):a.viewBean.tileInstance.iconURL?jive.shared.displayutil.avatar(soy.$$augmentMap(a.viewBean.streamTileEntryCreator,{size:46,href:a.viewBean.tileInstance.iconURL}),c):jive.shared.displayutil.avatar(soy.$$augmentMap(a.viewBean.streamTileEntryCreator,{size:46}),c),c.append('</div><div class="j-author-act font-color-meta-light" role="heading" id="act-title-',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.domIDPostfix),'">'),a.hideOnBehalfOf?jive.eae.tileActivity.renderUser(a,c):jive.eae.tileActivity.renderOnBehalfOf({viewBean:a.viewBean,showGoToItem:!0,showModified:!1,activityContainer:a.activityContainer},c),c.append('</div>');var e=new soy.StringBuilder('ACTIVITY_ICON'==d&&a.viewBean.iconURL?soy.$$filterNoAutoescape(a.viewBean.iconURL):'ACTIVITY_OBJECT'==d&&a.viewBean.image&&a.viewBean.image.url?soy.$$filterNoAutoescape(a.viewBean.image.url):a.viewBean.tile.icons&&a.viewBean.tile.icons.size48&&a.viewBean.tile.icons.size48.url?soy.$$filterNoAutoescape(a.viewBean.tile.icons.size48.url):'');if(e=e.toString(),c.append(a.viewBean.subject?'<div class="j-act-title '+soy.$$escapeHtmlAttribute(''!=e?'j-act-title-has-icon':'')+'" role="heading"><img class="jive-icon-med acticon" src="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(''!=e?e:jive.soy.func.buildUrl(window._jive_base_url,'/images/transparent.png')))+'" alt="'+soy.$$escapeHtmlAttribute(a.viewBean.tile.serviceName?a.viewBean.tile.serviceName:a.viewBean.tile.displayName)+'" width="46" height="46"/>'+(a.viewBean.installedExtension?a.showGoToItemAsTitle?'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(a.viewBean.externalURL))+'" alt="" class="title" target="'+(a.viewBean.relativeUrl?'':'_blank')+'">'+soy.$$filterNoAutoescape(a.viewBean.subject)+'</a>':'<a  href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.viewBean.jiveObjectURL))+'" class="title">'+soy.$$filterNoAutoescape(a.viewBean.subject)+'</a>':soy.$$filterNoAutoescape(a.viewBean.subject))+'</div>':'','<div class="j-excerpt"><span class="j-excerpt-slug">',a.activityContainer.jiveObject.text?soy.$$filterNoAutoescape(a.activityContainer.jiveObject.text)+(a.activityContainer.jiveObject.hasMoreText?'&hellip;':''):'','</span></div><div class="j-act-exp-full-content-view clearfix js-full-content-container" style="display:none;"></div>'),a.hideActions){var f=new soy.StringBuilder;jive.shared.displayutil.containerDisplayNameLink({container:a.activityContainer.container},f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('d6dba5'),arg0:f.toString(),noAutoEscape:!0},c)}else jive.eae.activitystream.item.grouped.actions({object:a.viewBean,activityContainer:a.activityContainer,amAnAuthor:a.activityContainer.amAnAuthor,objectType:a.viewBean.objectType,objectId:a.viewBean.id,liked:a.activityContainer.liked,likeCount:a.activityContainer.likeCount,likable:a.activityContainer.likable,author:a.activityContainer.originalAuthor,user:a.user,location:'Title',streamType:a.streamType,filterData:a.filterData,tracked:a.activityContainer.tracked,untracked:a.activityContainer.untracked,canCreateMbImage:a.canCreateMbImage,canCreateMbVideo:a.canCreateMbVideo},c);return c.append('</div>'),a.showGoToItemAsTitle||jive.eae.tileActivity.extModified({viewBean:a.viewBean,noCell:!1},c),b?'':c.toString()},jive.eae.tileActivity.renderedObject}),define('soy!jive.eae.activitystream.item.grouped.tileActivity',['soyDeps','soy!jive.eae.acclaim.renderIcon','soy!jive.eae.acclaim.count','soy!jive.eae.acclaim.getAcclaimTextByType','soy!jive.eae.acclaim.acclaimTypeLargeControlClasses','soy!jive.eae.acclaim.activityAcclaimLinkContainer','soy!jive.eae.acclaim.showAcclaimsLargeControlClasses','soy!jive.eae.acclaim.acclaimContainerMedium','soy!jive.eae.acclaim.expressLike','soy!jive.eae.acclaim.acclaimContainerButtonControl','soy!jive.eae.acclaim.acclaimContainerLargeButtons','soy!jive.eae.acclaim.acclaimControl','soy!jive.eae.acclaim.activityAcclaimLinkContainerNews','soy!jive.eae.activitystream.activityStreamExpandBar','soy!jive.eae.activitystream.item.grouped.activityBodyEnd','soy!jive.eae.activitystream.item.grouped.activityBodyStart','soy!jive.eae.activitystream.item.grouped.activityContentEnd','soy!jive.eae.activitystream.item.grouped.activityContentStart','soy!jive.eae.activitystream.item.grouped.activityHidden','soy!jive.eae.activitystream.item.grouped.collapsedComments','soy!jive.eae.activitystream.item.grouped.divider','soy!jive.eae.activitystream.item.grouped.expandedComments','soy!jive.eae.activitystream.item.grouped.mattersMost','soy!jive.eae.common.contentTypeClassName','soy!jive.eae.tileActivity.renderedObject'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.tileActivity=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div id="',soy.$$escapeHtmlAttribute(a.streamType),'_',a.activityContainer.jiveObject.objectType,'_',a.activityContainer.jiveObject.id,'_',soy.$$escapeHtmlAttribute(a.activityContainer.container.type),'_',soy.$$escapeHtmlAttribute(a.activityContainer.container.id),'_',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.domIDPostfix),'" role="article" aria-labelledby="act-title-',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.domIDPostfix),'" class="j-act-entry j-act-not-markable j-act-integration '),jive.eae.common.contentTypeClassName(a,c),c.append(a.activityContainer.mattersMost?' j-act-matters-most':'',a.activityContainer.lastInLastUpdatedSet?' j-last-updated':a.activityContainer.lastInPrevUpdatedSet?' j-prev-updated':'',' clearfix" data-extVisible="',soy.$$escapeHtmlAttribute(a.activityContainer.visibleToExtCollaborator),'" data-objectID="',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.id),'" data-objectType="',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.objectType),'"',a.activityContainer.container&&a.activityContainer.container.id&&a.activityContainer.container.type?'data-containerID="'+soy.$$escapeHtmlAttribute(a.activityContainer.container.id)+'" data-containerType="'+soy.$$escapeHtmlAttribute(a.activityContainer.container.type)+'"':'','data-objectsourceid="',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.tile.id),'" data-objectsourcetype="',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.tile.objectType),'">'),jive.eae.activitystream.item.grouped.mattersMost(a,c),jive.eae.activitystream.item.grouped.activityContentStart(null,c),jive.eae.activitystream.item.grouped.activityBodyStart(a,c),jive.eae.tileActivity.renderedObject(soy.$$augmentMap(a,{viewBean:a.activityContainer.jiveObject,creationTime:a.activityContainer.creationTime,hideActions:a.activityContainer.jiveObject.hideActions,hideOnBehalfOf:a.activityContainer.jiveObject.hideOnBehalfOf,showGoToItemAsTitle:a.activityContainer.jiveObject.showGoToItemAsTitle}),c),jive.eae.activitystream.item.grouped.activityBodyEnd(null,c),jive.eae.activitystream.item.grouped.activityHidden(null,c),jive.eae.activitystream.activityStreamExpandBar(a,c),jive.eae.activitystream.item.grouped.expandedComments(null,c),jive.eae.activitystream.item.grouped.collapsedComments(a,c),jive.eae.activitystream.item.grouped.activityContentEnd(null,c),jive.eae.activitystream.item.grouped.divider(a,c),c.append('</div>'),b?'':c.toString()},jive.eae.activitystream.item.grouped.tileActivity}),define('soy!jive.eae.common.streamImage',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.streamImage=function(a,b){var c=b||new soy.StringBuilder;if(a.activityContainer.image){var d=a.activityContainer.previewImage;c.append('<a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(a.activityContainer.image.ref)),'"><img src="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(d.ref)),'" class="j-act-entry-image" alt=""/></a>')}return b?'':c.toString()},jive.eae.common.streamImage}),define('soy!jive.eae.activitystream.item.grouped.document',['soyDeps','soy!jive.eae.activitystream.activityStreamExpandBar','soy!jive.eae.activitystream.item.collapsed.document','soy!jive.eae.activitystream.item.grouped.actions','soy!jive.eae.activitystream.item.grouped.activityBodyEnd','soy!jive.eae.activitystream.item.grouped.activityBodyStart','soy!jive.eae.activitystream.item.grouped.activityContentEnd','soy!jive.eae.activitystream.item.grouped.activityContentStart','soy!jive.eae.activitystream.item.grouped.activityHeading','soy!jive.eae.activitystream.item.grouped.activityHidden','soy!jive.eae.activitystream.item.grouped.articleStart','soy!jive.eae.activitystream.item.grouped.author','soy!jive.eae.activitystream.item.grouped.avatar','soy!jive.eae.activitystream.item.grouped.divider','soy!jive.eae.activitystream.item.grouped.expandedComments','soy!jive.eae.activitystream.item.grouped.fullBody','soy!jive.eae.activitystream.item.grouped.mattersMost','soy!jive.eae.common.renderStreamAttachments','soy!jive.eae.common.streamImage'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.document=function(a,b){var c=b||new soy.StringBuilder;return jive.eae.activitystream.item.grouped.articleStart(soy.$$augmentMap(a,{customId:soy.$$escapeHtml(a.streamType)+'_'+(a.activityContainer.activityList[0]&&a.activityContainer.activityList[0].content.commentContentResource&&129==a.activityContainer.activityList[0].content.commentContentResource.objectType?'129':a.activityContainer.jiveObject.objectType)+'_'+a.activityContainer.jiveObject.id+'_'+soy.$$escapeHtml(a.activityContainer.container.type)+'_'+soy.$$escapeHtml(a.activityContainer.container.id)+'_'+soy.$$escapeHtml(a.activityContainer.jiveObject.domIDPostfix)}),c),jive.eae.activitystream.item.grouped.mattersMost(a,c),jive.eae.activitystream.item.grouped.activityContentStart(null,c),jive.eae.activitystream.item.grouped.activityBodyStart(a,c),jive.eae.activitystream.item.grouped.avatar(a,c),jive.eae.activitystream.item.grouped.author(a,c),jive.eae.activitystream.item.grouped.activityHeading(a,c),c.append('<div class="j-excerpt"><span class="j-excerpt-slug">'),jive.eae.common.streamImage(a,c),c.append(a.activityContainer.jiveObject.text?soy.$$filterNoAutoescape(a.activityContainer.jiveObject.text)+(a.activityContainer.jiveObject.hasMoreText?'&hellip;':''):'','</span>'),jive.eae.common.renderStreamAttachments({idPrefix:'collapsed',object:a.activityContainer.jiveObject,domIDPostfix:a.activityContainer.jiveObject.domIDPostfix},c),c.append('</div>'),jive.eae.activitystream.item.grouped.fullBody(null,c),jive.eae.activitystream.item.grouped.actions(a,c),jive.eae.activitystream.item.grouped.activityBodyEnd(null,c),jive.eae.activitystream.item.grouped.activityHidden(null,c),jive.eae.activitystream.activityStreamExpandBar(a,c),jive.eae.activitystream.item.grouped.expandedComments(null,c),c.append('<div class="j-act-coll-view collapsed clearfix">'),jive.eae.activitystream.item.collapsed.document({activityContainer:a.activityContainer,activity:a.activityContainer.activityList[a.activityContainer.activityList.length-1],streamType:a.streamType,filterData:a.filterData,user:a.user,canCreateMbImage:a.canCreateMbImage,canCreateMbVideo:a.canCreateMbVideo,hideStub:!1,time:a.activityContainer.parentTime},c),c.append('</div>'),jive.eae.activitystream.item.grouped.activityContentEnd(null,c),jive.eae.activitystream.item.grouped.divider(a,c),c.append('</div>'),b?'':c.toString()},jive.eae.activitystream.item.grouped.document}),define('soy!jive.videos.common.renderVideoScript',['soyDeps'],function(a){return jive.namespace.call(this,'jive.videos.common'),jive.videos.common.renderVideoScript=function(a,b){var c=b||new soy.StringBuilder;return c.append('<script>require([ \'jquery\', \'apps/video/channel\', \'apps/getVideoDataAndRender\', \'jive/rtl\', \'domReady!\' ], function($, videoChannel, getVideoDataAndRender, rtl) {videoChannel.request(\'thumbnail:render\', \'video-link-',soy.$$escapeHtml(a.video.videoID),'\', ',soy.$$escapeHtml(a.video.videoID),', {objectID: ',soy.$$escapeHtml(a.video.videoID),', objectType: ',soy.$$escapeHtml(a.video.objectType),', autoplay: true, width: 480, height: 360}); var $videoLink = $(\'#video-link-',soy.$$escapeHtml(a.video.videoID),'\').find(\'img\'), $playButton = $(\'#video-span-',soy.$$escapeHtml(a.video.videoID),'\'); function setPosition () {if ($videoLink[0].complete) {$playButton.css(rtl.isRtl ? \'right\': \'left\', $videoLink.width()/2 - $playButton.width()/2); $playButton.css(\'top\', $videoLink.height()/2 - $playButton.height()/2); $playButton.show(); videoChannel.trigger(\'imagesLoaded\');}}$videoLink.off().on(\'load\', setPosition); if (!$videoLink.attr(\'src\')) {$videoLink.attr(\'src\', \'',soy.$$escapeHtml(a.video.previewImageURL),'/480\');}$(\'#video-link-',soy.$$escapeHtml(a.video.videoID),'\').click(function(e) {var $this = $(this); require([\'jive/accessibility\'], function(Accessibility) {Accessibility.pushFocus($this);}); getVideoDataAndRender(\'video-link-',soy.$$escapeHtml(a.video.videoID),'\', ',soy.$$escapeHtml(a.video.videoID),', ',soy.$$escapeHtml(a.video.objectType),', ',soy.$$escapeHtml(a.video.videoID),', 480, 360, true); e.preventDefault();});});</script>'),b?'':c.toString()},jive.videos.common.renderVideoScript}),define('soy!jive.videos.common.activityStreamVideoInfo',['soyDeps','soy!jive.videos.common.renderVideoScript'],function(a){return jive.namespace.call(this,'jive.videos.common'),jive.videos.common.activityStreamVideoInfo=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-stream-comms-video-info clearfix">'),jive.videos.common.renderVideoScript(b,d),d.append('<a href="#" id="video-link-',soy.$$escapeHtml(b.video.videoID),'" ><img title="',soy.$$escapeHtml(a._i18n('838339',[])),'" alt="',soy.$$escapeHtml(a._i18n('838339',[])),'"/><span id=\'video-span-',soy.$$escapeHtml(b.video.videoID),'\' class=\'j-video-preview\'>▶︎</span></a></div>'),c?'':d.toString()},jive.videos.common.activityStreamVideoInfo}),define('soy!jive.eae.activitystream.item.grouped.video',['soyDeps','soy!jive.eae.activitystream.activityStreamExpandBar','soy!jive.eae.activitystream.item.collapsed.video','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContainer','soy!jive.eae.common.activityHeadingHref','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.parentPreviewLinks','soy!jive.shared.displayutil.avatar','soy!jive.videos.common.activityStreamVideoInfo'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.video=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div id="',soy.$$escapeHtmlAttribute(b.streamType),'_',b.activityContainer.activityList[0]&&b.activityContainer.activityList[0].content.commentContentResource&&129==b.activityContainer.activityList[0].content.commentContentResource.objectType?'129':b.activityContainer.jiveObject.objectType,'_',b.activityContainer.jiveObject.id,'_',soy.$$escapeHtmlAttribute(b.activityContainer.container.type),'_',soy.$$escapeHtmlAttribute(b.activityContainer.container.id),'_',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix),'" role="article" class="j-act-entry j-act-not-markable j-act-document ',b.activityContainer.mattersMost?'j-act-matters-most':'',' clearfix" data-extVisible="',soy.$$escapeHtmlAttribute(b.activityContainer.visibleToExtCollaborator),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.id),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.objectType),'">',b.activityContainer.mattersMost?'<span class="j-act-mm-label">'+soy.$$escapeHtml(a._i18n('99f1dc',[]))+'</span>':'','<div class="j-js-act-content j-act-content"><div id="act-title-',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix),'" class="j-act-init j-act-rte-replyable" data-extVisible="',soy.$$escapeHtmlAttribute(b.activityContainer.visibleToExtCollaborator),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.id),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.objectType),'"><div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activityContainer.originalAuthor,{size:46,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activityContainer.originalAuthor,object:b.activityContainer.jiveObject},d),jive.eae.common.activityContainer(b,d),d.append('<span class="j-author-act-meta font-color-meta-light"><span class="j-act-time">',b.activityContainer.jiveObject.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activityContainer.jiveObject.jiveObjectURL))+'" class="font-color-meta-light">':'',soy.$$escapeHtml(b.activityContainer.creationTime),b.activityContainer.jiveObject.jiveObjectURL?'</a>':'','</span><span class="j-act-preview-control"> '),jive.eae.common.parentPreviewLinks(b,d),d.append('</span></span></div><div class="j-act-title" role="heading"><span class="jive-icon-med ',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.jiveObjectCSS),' acticon jive-icon-big"></span><a class="title" href="'),jive.eae.common.activityHeadingHref(soy.$$augmentMap(b,{url:b.activityContainer.jiveObject.jiveObjectURL,source:'stream'}),d),d.append('">',soy.$$filterNoAutoescape(b.activityContainer.jiveObject.subject),'</a></div><div class="j-excerpt"><span class="j-excerpt-slug">',b.activityContainer.jiveObject.text?soy.$$filterNoAutoescape(b.activityContainer.jiveObject.text)+(b.activityContainer.jiveObject.hasMoreText?'&hellip;':''):'','</span></div><div class="j-act-exp-full-content-view js-full-content-container" style="display:none;"></div>'),jive.videos.common.activityStreamVideoInfo({video:b.activityContainer.jiveObject},d),d.append('<div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activityContainer.jiveObject,activityContainer:b.activityContainer,amAnAuthor:b.activityContainer.amAnAuthor,objectType:b.activityContainer.jiveObject.objectType,objectId:b.activityContainer.jiveObject.id,liked:b.activityContainer.liked,likeCount:b.activityContainer.likeCount,likable:b.activityContainer.likable,author:b.activityContainer.originalAuthor,user:b.user,location:'Title',streamType:b.streamType,filterData:b.filterData,tracked:b.activityContainer.tracked,untracked:b.activityContainer.untracked,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo},d),d.append('</div></div><div class="j-act-hidden j-rc4 j-rc-none-top" style="display:none;"></div>'),jive.eae.activitystream.activityStreamExpandBar(b,d),d.append('<div class="j-act-exp-view j-expanded clearfix" style="display:none;"></div><div class="j-act-coll-view collapsed clearfix">'),jive.eae.activitystream.item.collapsed.video({activityContainer:b.activityContainer,activity:b.activityContainer.activityList[b.activityContainer.activityList.length-1],streamType:b.streamType,filterData:b.filterData,user:b.user,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo,hideStub:!1,time:b.activityContainer.parentTime},d),d.append('</div></div></div>'),c?'':d.toString()},jive.eae.activitystream.item.grouped.video}),define('soy!jive.eae.activitystream.item.grouped.remotedocument',['soyDeps','soy!jive.eae.common.activityAuthorNoVerb'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.remotedocument=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div id="',soy.$$escapeHtmlAttribute(a.streamType),'_',a.activityContainer.activityList[0]&&a.activityContainer.activityList[0].content.commentContentResource&&129==a.activityContainer.activityList[0].content.commentContentResource.objectType?'129':a.activityContainer.jiveObject.objectType,'_',a.activityContainer.jiveObject.id,'_',soy.$$escapeHtmlAttribute(a.activityContainer.container.type),'_',soy.$$escapeHtmlAttribute(a.activityContainer.container.id),'_',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.domIDPostfix),'" class="remotedoc j-act-entry j-act-not-markable j-act-document ',a.activityContainer.mattersMost?'j-act-matters-most':'',' clearfix" data-objectID="',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.id),'" data-objectType="',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.objectType),'"><div class="j-js-act-content j-act-content"><div class="j-act-title"><span class="jive-icon-med ',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.jiveObjectCSS),' acticon"></span><a class="title" href="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.activityContainer.jiveObject.jiveObjectURL)),'">',a.activityContainer.jiveObject.meta[0].properties.filename?soy.$$escapeHtml(a.activityContainer.jiveObject.meta[0].properties.filename):soy.$$filterNoAutoescape(a.activityContainer.jiveObject.subject),'</a></div><div class="j-act-title" style="margin-left:-10px;margin-top:-10px"><div id="act-title-',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.domIDPostfix),'" class="j-act-init remote-doc j-act-rte-replyable"  style="padding: 12px 12px 12px 12px !important;position: relative;min-height: 44px;" data-objectID="',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.id),'" data-objectType="',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.objectType),'"><div class="j-author-act font-color-meta-light">'),a.activityContainer.activityList[0]&&('-1'==a.activityContainer.activityList[a.activityContainer.activityList.length-1].activityUser.id?c.append(''==a.activityContainer.jiveObject.meta[0].properties.spuser?'A remote document has been '+soy.$$escapeHtml(a.activityContainer.jiveObject.meta[0].properties.version)+' .':soy.$$escapeHtml(a.activityContainer.jiveObject.meta[0].properties.spuser)+' '+soy.$$escapeHtml(a.activityContainer.jiveObject.meta[0].properties.version)+' a remote document'):(jive.eae.common.activityAuthorNoVerb({activityUser:a.activityContainer.activityList[a.activityContainer.activityList.length-1].activityUser,object:a.activityContainer.jiveObject},c),c.append(9877==a.activityContainer.activityList[a.activityContainer.activityList.length-1].content.objectType?soy.$$escapeHtml(a.activityContainer.jiveObject.meta[0].properties.version)+' a remote document':'commented on a remote document'))),c.append('<span class="j-author-act-meta font-color-meta-light"><span class="j-act-time">',soy.$$escapeHtml(a.activityContainer.parentTime),a.activityContainer.jiveObject.jiveObjectURL?'</a>':'','</span></span></div><div class="j-act-exp-full-content-view js-full-content-container" style="display:none;"></div>in <a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,a.activityContainer.container.jiveObjectURL))),'" class="font-color-meta j-container " data-objectId="',soy.$$escapeHtmlAttribute(a.activityContainer.container.id),'" data-objectType="',soy.$$escapeHtmlAttribute(a.activityContainer.container.type),'">',soy.$$escapeHtml(a.activityContainer.container.name),' </a><span class="j-bullet">•</span><a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,a.activityContainer.container.jiveObjectURL))),'/remotedocuments?itemView=detail" class="font-color-meta j-container " data-objectId="',soy.$$escapeHtmlAttribute(a.activityContainer.container.id),'" data-objectType="',soy.$$escapeHtmlAttribute(a.activityContainer.container.type),'">Remote Documents </a></div><div class="j-act-hidden j-rc4 j-rc-none-top" style="display:none;"></div><div class="j-act-exp-view j-expanded clearfix" style="display:none;"></div></div></div></div>'),b?'':c.toString()},jive.eae.activitystream.item.grouped.remotedocument}),define('soy!jive.shared.displayutil.userDisplayName',['soyDeps'],function(a){return jive.namespace.call(this,'jive.shared.displayutil'),jive.shared.displayutil.userDisplayName=function(a,b){var c=b||new soy.StringBuilder;return c.append(a.displayName?a.anonymous?'<em class="guest">'+soy.$$escapeHtml(a.displayName)+'</em>':soy.$$escapeHtml(a.displayName):''),b?'':c.toString()},jive.shared.displayutil.userDisplayName}),define('soy!jive.eae.common.groupedUsers',['soyDeps','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayName','soy!jive.shared.displayutil.userDisplayNameLink'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.groupedUsers=function(b,c){for(var d=c||new soy.StringBuilder,e=b.groupedUserList.length<=b.groupAfterNum,f=b.groupedUserList.length==b.groupAfterNum+1,g=b.groupedUserList.length>b.groupAfterNum+1,h=1==b.groupedUserList.length,i=1!=b.groupedUserList.length,j=b.groupedUserList,k=j.length,l=0;k>l;l++){var m=j[l],n=l==b.groupAfterNum-1,o=l==b.groupAfterNum,p=l<b.groupAfterNum,q=l==b.groupedUserList.length-1;m&&(p||o&&f)&&(d.append(l==k-1&&b.groupedUserList.length>1?soy.$$escapeHtml(a._i18n('3b6373',[]))+' ':''),(m.username.match(new RegExp('^__invited__',''))||[]).length?d.append(soy.$$escapeHtml(m.email)):m.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:m},d):b.hideLinks?jive.shared.displayutil.userDisplayName(m,d):jive.shared.displayutil.userDisplayNameLink(m,d),d.append(i&&(e&&!q||f&&!o||g&&!n)?(b.groupedUserList.length>2?',':'')+' ':''))}if(b.groupedUserList.length>b.groupAfterNum+1&&(d.append(' ',soy.$$escapeHtml(a._i18n('3b6373',[])),' ',b.hideLinks?'':'<a href=\'#\' class="js-show-grouped-users jive-username-link">',soy.$$escapeHtml(b.groupedUserList.length-b.groupAfterNum),' ',b.groupedUserList.length>b.groupAfterNum+1?soy.$$escapeHtml(a._i18n('3d6825',[])):soy.$$escapeHtml(a._i18n('e8a1ea',[]))),
!b.hideLinks)){d.append('</a><div class="js-grouped-users-popover j-grouped-users-popover" style="display:none"><ul class="j-grouped-user-list j-simple-list">');for(var r=b.groupedUserList,s=r.length,t=0;s>t;t++){var u=r[t];u&&t>=b.groupAfterNum&&((u.displayName.match(new RegExp('^__invited__',''))||[]).length?d.append(soy.$$escapeHtml(u.email)):u.anonymous?(d.append('<li class="j-grouped-user">'),jive.shared.displayutil.renderGuestDisplayName({message:u},d),d.append('</li>')):(d.append('<li class="j-grouped-user">'),jive.shared.displayutil.userDisplayNameLink(u,d),d.append('</li>')))}d.append('</ul></div>')}return c?'':d.toString()},jive.eae.common.groupedUsers}),define('soy!jive.trial.recentlyCompleted',['soyDeps','soy!jive.shared.displayutil.avatar'],function(a){return jive.namespace.call(this,'jive.trial'),jive.trial.recentlyCompleted=function(b,c){var d=c||new soy.StringBuilder;if(b.users.length>0){d.append('<div class="j-recently-completed">');for(var e=b.users,f=e.length,g=0;f>g;g++){var h=e[g];jive.shared.displayutil.avatar(soy.$$augmentMap(h,{size:46}),d)}d.append('</div>')}else d.append('<div class="j-nobody"><div class="j-tumbleweeds"></div><div class="j-befirst font-face-deco">',soy.$$escapeHtml(a._i18n('e8adaf',[])),'</div><div class="j-arrow-neltgray"></div></div>');return c?'':d.toString()},jive.trial.recentlyCompleted}),define('soy!jive.trial.quests.teamwork.panelContent',['soyDeps','soy!jive.eae.common.groupedUsers','soy!jive.shared.soy.i18nHelper','soy!jive.trial.recentlyCompleted'],function(a){return jive.namespace.call(this,'jive.trial.quests.teamwork'),jive.trial.quests.teamwork.panelContent=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="section clearfix collaboration"','WorkBetterAsATeamQuest'!=b.panelData.lastViewedQuest?' style="display:none"':'','data-id="WorkBetterAsATeamQuest"><p class="j-vdescription font-color-normal">',soy.$$escapeHtml(a._i18n('0f070e',[])),'</p><div class="quest-section clearfix"><div class="j-quest-lcol"><div class="j-quest-video"><div id="wistia_6f7950d404" class="j-qvideo" style="width:325px;height:208px;" data-video-width="328" data-video-height="208">&nbsp;</div></div><div class="j-quest-completors"><h4>',soy.$$escapeHtml(a._i18n('33da4c',[])),'</h4>'),jive.trial.recentlyCompleted({users:b.questData.recentlyCompleted},d),d.append('</div></div><div class="j-quest-tasks"><h3 class="j-quest-theme font-face-deco"><span class="j-theme-arrow"></span>',soy.$$escapeHtml(a._i18n('23b7ec',[])),'</h3><div class="j-qtask-list">',b.questData.stepsComplete==b.questData.steps.length?'<span class="j-completed-ribbon">'+soy.$$escapeHtml(a._i18n('47dbcf',[]))+'</span>':'','<ul>','completed'!=b.questData.steps[0].state&&b.questData.steps[0].completionData.pending?'<li class="j-qtask j-pending" tabindex=\'0\'>':'<li class="j-qtask j-'+soy.$$escapeHtmlAttribute(b.questData.steps[0].state)+'" data-stepaction="'+(b.questData.steps[0].viewData.activeInvitation?soy.$$escapeHtmlAttribute(jive.soy.func.buildUrl(window._jive_base_url,b.questData.steps[0].viewData.activeInvitation.place.link+'?fromQ=WorkBetterAsATeamQuest&qstep=0')):soy.$$escapeHtmlAttribute(jive.soy.func.buildUrl(window._jive_base_url,'/edit-place.jspa?containerType=700&fromQ=WorkBetterAsATeamQuest&qstep=0')))+'" '+('completed'==b.questData.steps[0].state?'tabindex=\'0\'':' role="button"')+'>'),'completed'==b.questData.steps[0].state||b.questData.steps[0].completionData.pending?'completed'!=b.questData.steps[0].state&&b.questData.steps[0].completionData.pending?d.append('<span class="j-qtitle">',soy.$$escapeHtml(a._i18n('3bb872',[])),'</span><div class="j-quest-detail share"><strong class="j-quest-action">',soy.$$escapeHtml(a._i18n('024e5d',[])),'</strong><p class="j-quest-output">',b.questData.steps[0].completionData.socialGroupViewBean?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.questData.steps[0].completionData.socialGroupViewBean.jiveObjectURL))+'" class="j-qcontent jivecontainerTT-hover-container" data-objectId="'+soy.$$escapeHtmlAttribute(b.questData.steps[0].completionData.socialGroupViewBean.id)+'" data-objectType="'+soy.$$escapeHtmlAttribute(b.questData.steps[0].completionData.socialGroupViewBean.objectType)+'" role="link"><span class="jive-icon-med '+soy.$$escapeHtmlAttribute(b.questData.steps[0].completionData.socialGroupViewBean.jiveObjectCSS)+'"></span><span class="j-item">'+soy.$$filterNoAutoescape(b.questData.steps[0].completionData.socialGroupViewBean.groupName)+'</span></a>':'','</p><strong class="j-qnotstarted">',soy.$$escapeHtml(a._i18n('a2fb9b',[])),'</strong></div>'):d.append('<span class="j-qtitle">',b.questData.steps[0].completionData.joined?soy.$$escapeHtml(a._i18n('3bb872',[])):soy.$$escapeHtml(a._i18n('282d28',[])),'</span><strong class="j-qdone">',soy.$$escapeHtml(a._i18n('beed22',[])),'<span class="j-donecheck"></span></strong><div class="j-quest-detail share"><strong class="j-quest-action">',b.questData.steps[0].completionData.joined?soy.$$escapeHtml(a._i18n('1a35c2',[])):soy.$$escapeHtml(a._i18n('6677aa',[])),'</strong><p class="j-quest-output">',b.questData.steps[0].completionData.socialGroupViewBean?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.questData.steps[0].completionData.socialGroupViewBean.jiveObjectURL))+'" class="j-qcontent jivecontainerTT-hover-container" data-objectId="'+soy.$$escapeHtmlAttribute(b.questData.steps[0].completionData.socialGroupViewBean.id)+'" data-objectType="'+soy.$$escapeHtmlAttribute(b.questData.steps[0].completionData.socialGroupViewBean.objectType)+'" role="link"><span class="jive-icon-med '+soy.$$escapeHtmlAttribute(b.questData.steps[0].completionData.socialGroupViewBean.jiveObjectCSS)+'"></span><span class="j-item">'+soy.$$filterNoAutoescape(b.questData.steps[0].completionData.socialGroupViewBean.groupName)+'</span></a>':'','</p></div>'):(b.questData.steps[0].viewData.activeInvitation?(d.append('<span class="j-qtitle ','available'==b.questData.steps[0].state?'font-color-link':'','">',soy.$$escapeHtml(a._i18n('3bb872',[])),'</span><strong class="j-qnotstarted font-color-meta-light">',soy.$$escapeHtml(a._i18n('057542',[])),'</strong><div class="j-quest-detail"><strong class="j-quest-action j-invited">',soy.$$escapeHtml(a._i18n('358108',[])),'</strong><p class="j-quest-output"><strong class="group name"><span class="jive-icon-med jive-icon-group"></span>',soy.$$escapeHtml(b.questData.steps[0].viewData.activeInvitation.place.subject),'</strong></p></div>'),b.questData.steps[0].viewData.groupsExist&&(d.append('<span class="j-quest-altpath font-color-meta">'),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('a7ef33'),arg0:'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/create-group!input.jspa?containerType=700&fromQ=WorkBetterAsATeamQuest&qstep=0')))+'">'+soy.$$escapeHtml(a._i18n('1df09d',[]))+'</a>',noAutoEscape:!0},d),d.append('</span>'))):(d.append('<span class="j-qtitle ','available'==b.questData.steps[0].state?'font-color-link':'','">',soy.$$escapeHtml(a._i18n('282d28',[])),'</span><strong class="j-qnotstarted font-color-meta-light">',soy.$$escapeHtml(a._i18n('057542',[])),'</strong><p class="j-quest-text font-color-meta">',soy.$$escapeHtml(a._i18n('abd63c',[])),'</p>'),b.questData.steps[0].viewData.groupsExist&&(d.append('<span class="j-quest-altpath font-color-meta">'),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('a7ef33'),arg0:'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/places?filterID=all~objecttype~objecttype[socialgroup]&fromQ=WorkBetterAsATeamQuest&qstep=0')))+'" role="link">'+soy.$$escapeHtml(a._i18n('47c876',[]))+'</a>',noAutoEscape:!0},d),d.append('</span>'))),d.append('<span class="j-qgobtn" tabindex="0" role="button"><label class="j-508-label">',soy.$$escapeHtml(a._i18n('59fd57',[])),'</label></span>')),d.append('</li><li class="j-qtask j-',soy.$$escapeHtmlAttribute(b.questData.steps[1].state),'"',b.questData.steps[0].completionData&&b.questData.steps[0].completionData.socialGroupViewBean?'data-stepaction="'+soy.$$escapeHtmlAttribute(jive.soy.func.buildUrl(window._jive_base_url,'/document/upload.jspa?containerType='+b.questData.steps[0].completionData.socialGroupViewBean.objectType+'&containerID='+b.questData.steps[0].completionData.socialGroupViewBean.id+'&fromQ=WorkBetterAsATeamQuest&qstep=1'))+'"':'','completed'==b.questData.steps[1].state?'tabindex=\'0\'':' role="button"','><span class="j-qtitle ','available'==b.questData.steps[1].state?'font-color-link':'','">',soy.$$escapeHtml(a._i18n('1b714f',[])),'</span>','completed'!=b.questData.steps[1].state?'<strong class="j-qnotstarted font-color-meta-light">'+soy.$$escapeHtml(a._i18n('057542',[]))+'</strong><p class="j-quest-text font-color-meta">'+soy.$$escapeHtml(a._i18n('620c46',[]))+'</p><span class="j-qgobtn" tabindex="0" role="button"><label class="j-508-label">'+soy.$$escapeHtml(a._i18n('59fd57',[]))+'</label></span>':'<strong class="j-qdone">'+soy.$$escapeHtml(a._i18n('beed22',[]))+'<span class="j-donecheck"></span></strong><div class="j-quest-detail"><strong class="j-quest-action">'+soy.$$escapeHtml(a._i18n('ef239e',[]))+'</strong><p class="j-quest-output">'+(b.questData.steps[1].completionData&&b.questData.steps[1].completionData.documentItemBean?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.questData.steps[1].completionData.documentItemBean.link))+'" class="js-header-text j-qcontent" role="link"><span class="jive-icon-med '+soy.$$escapeHtmlAttribute(b.questData.steps[1].completionData.documentItemBean.iconCss)+'"></span><span class="j-item">'+soy.$$filterNoAutoescape(b.questData.steps[1].completionData.documentItemBean.subject)+'</span></a>':'')+'</p></div>','</li><li class="j-qtask j-',soy.$$escapeHtmlAttribute(b.questData.steps[2].state),'"',b.questData.steps[0].completionData&&b.questData.steps[0].completionData.socialGroupViewBean?'data-stepaction="'+soy.$$escapeHtmlAttribute(jive.soy.func.buildUrl(window._jive_base_url,b.questData.steps[0].completionData.socialGroupViewBean.jiveObjectURL+'?fromQ=WorkBetterAsATeamQuest&qstep=2'))+'"':'','completed'==b.questData.steps[2].state?'tabindex=\'0\'':' role="button" ','><span class="j-qtitle ','available'==b.questData.steps[2].state?'font-color-link':'','">',soy.$$escapeHtml(a._i18n('10334e',[])),'</span>'),'completed'!=b.questData.steps[2].state?d.append('<strong class="j-qnotstarted font-color-meta-light">',soy.$$escapeHtml(a._i18n('057542',[])),'</strong><p class="j-quest-text font-color-meta">',soy.$$escapeHtml(a._i18n('b92b4e',[])),'</p><span class="j-qgobtn" tabindex="0" role="button"><label class="j-508-label">',soy.$$escapeHtml(a._i18n('59fd57',[])),'</label></span>'):(d.append('<strong class="j-qdone">',soy.$$escapeHtml(a._i18n('beed22',[])),'<span class="j-donecheck"></span></strong><div class="j-quest-detail"><strong class="j-quest-action">',soy.$$escapeHtml(a._i18n('3183df',[])),'</strong><div class="j-quest-output">'),b.questData.steps[2].completionData&&b.questData.steps[2].completionData.invitedUsers&&(d.append('<div class="j-quest-result j-invites">'),jive.eae.common.groupedUsers({groupedUserList:b.questData.steps[2].completionData.invitedUsers,groupAfterNum:3},d),d.append('</div>')),d.append('</div></div>')),d.append('</li></ul></div></div></div></div>'),c?'':d.toString()},jive.trial.quests.teamwork.panelContent}),define('soy!jive.trial.quests.teamwork.questComplete',['soyDeps'],function(a){return jive.namespace.call(this,'jive.trial.quests.teamwork'),jive.trial.quests.teamwork.questComplete=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-pop js-pop popover js-trial-tip" style="position: absolute; top: 50px; left: 50%; margin-left: -250px; visibility: visible; z-index: 100;"><div class="j-tips j-pop-main wide"><h4 class="font-face-deco">',soy.$$escapeHtml(a._i18n('1826c1',[])),'</h4>',b.nextQuestID?'<p>'+soy.$$escapeHtml(a._i18n('783b8c',[]))+'</p><p class="j-qlinks"><strong><a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/get-started',{showQ:b.nextQuestID})))+'" id="quest-complete-continue">'+soy.$$escapeHtml(a._i18n('ebd294',[]))+'</a></strong></p><p><strong><a href="#" id="quest-complete-close" class="js-close">'+soy.$$escapeHtml(a._i18n('4188a9',[]))+'</a></strong></p>':'<p><strong><a href="#" id="quest-complete-close" class="js-close">'+soy.$$escapeHtml(a._i18n('734407',[]))+'</a></strong></p>','</div></div>'),c?'':d.toString()},jive.trial.quests.teamwork.questComplete}),define('soy!jive.trial.quests.lessEmail.tips',['soyDeps'],function(a){return jive.namespace.call(this,'jive.trial.quests.lessEmail'),jive.trial.quests.lessEmail.tips=function(b,c){var d=c||new soy.StringBuilder;return d.append('create-document'==b.pageID?'subject'==b.renderLocation?'<div class="j-tips inline js-trial-tip" data-fromq="LessEmailQuest" data-location="subject" style="top: -5px; visibility: visible; z-index: 100;"><div class="d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('548855',[]))+'</h4><p class="font-color-meta">'+soy.$$escapeHtml(a._i18n('98df17',[]))+'</em></p></div><span class="j-tiparrow-e j-tarrow" style="top: 20px"></span></div>':'body'==b.renderLocation?'<div class="j-tips inline js-trial-tip" data-fromq="LessEmailQuest" data-location="body" style="top: 120px;"><div class="d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('7f96b9',[]))+'</h4><p class="font-color-meta">'+soy.$$escapeHtml(a._i18n('e378ec',[]))+'</p></div><span class="j-tiparrow-e j-tarrow" style="top: 20px"></span></div>':'publishbar'==b.renderLocation?'<div class="j-tips inline p-bar js-trial-tip" data-fromq="HaveFewerMeetingsQuest" data-location="publishbar" style="top: 37px;"><div class="d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('5913d6',[]))+'</h4><p class="font-color-meta">'+soy.$$escapeHtml(a._i18n('205ac2',[]))+'</p><p class="font-color-j-highlight"><em>'+soy.$$escapeHtml(a._i18n('d734c9',[]))+'</em></p></div><span class="j-tiparrow-e j-tarrow" style="top: 50px"></span></div>':'post'==b.renderLocation?'<div class="j-tips inline p-bar js-trial-tip" data-fromq="LessEmailQuest" data-location="post" style="top: -9px;"><div class="d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('80a994',[]))+'</h4><p class="font-color-meta">'+soy.$$escapeHtml(a._i18n('f50265',[]))+'</p></div><span class="j-tiparrow-e j-tarrow" style="top: 20px"></span></div>':'':'view-document'==b.pageID?'edit'==b.renderLocation?'<div class="js-pop j-tips j-pop-main js-trial-tip" data-fromq="HaveFewerMeetingsQuest" data-location="edit" style="left: -220px; top: -9px; visibility: visible; z-index: 100;"><div class="d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('fa548e',[]))+'</h4><p>'+soy.$$escapeHtml(a._i18n('87776d',[]))+'</p></div><span class="leftArrow pointer" style="right: -9px; top: 40px;"></span></div>':'collaborators'==b.renderLocation?'<div class="j-pop js-pop popover font-color-normal js-trial-tip" data-fromq="HaveFewerMeetingsQuest" data-location="collaborators" style="position: absolute; top: 25px; left: 270px; visibility: visible; z-index: 100;"><div class="j-tips d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip j-pop-main"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('f81e52',[]))+'</h4><p class="j-qtip-msg">'+soy.$$escapeHtml(a._i18n('37a358',[]))+'</p>'+(b.nextQuestID?'<p><a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/get-started',{showQ:b.nextQuestID})))+'"><strong class="font-color-link">'+soy.$$escapeHtml(a._i18n('f90c43',[]))+'</strong></a></p>':'<p><a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/home')))+'"><strong class="font-color-link">'+soy.$$escapeHtml(a._i18n('c88da5',[]))+'</strong></a></p>')+'</div><span class="rightArrow pointer" style="left: -9px; top: 60px;"></span></div>':'':'edit-document'==b.pageID?'publishbar'==b.renderLocation?'<div class="j-tips inline p-bar js-trial-tip" data-fromq="LessEmailQuest" data-location="publishbar" style="top: 37px;"><div class="d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('d65418',[]))+'</h4><p class="font-color-meta">'+soy.$$escapeHtml(a._i18n('205ac2',[]))+'</p><p class="font-color-j-highlight"><em>'+soy.$$escapeHtml(a._i18n('d734c9',[]))+'</em></p></div><span class="j-tiparrow-e j-tarrow" style="top: 50px"></span></div>':'skip-down'==b.renderLocation?'<div class="j-tips inline js-pop js-trial-tip" data-fromq="LessEmailQuest" data-location="skip-down" style="top: 65px; left: -220px;"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('b95e20',[]))+'</h4><p>'+soy.$$escapeHtml(a._i18n('db646e',[]))+'</p><span class="j-arrow-skipdown" style="left: -200px; top: 40px;"></span></div>':'publishbar-preselect'==b.renderLocation?'<div class="j-tips inline p-bar js-pop js-trial-tip" data-fromq="LessEmailQuest" data-location="publishbar-preselect" style="bottom: 0;"><div class="d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('5913d6',[]))+'</h4></div><span class="j-tiparrow-e j-tarrow" style="top: 40px"></span></div>':'':''),c?'':d.toString()},jive.trial.quests.lessEmail.tips}),define('soy!jive.trial.quests.fewerMeetings.panelContent',['soyDeps','soy!jive.eae.common.groupedUsers','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper','soy!jive.trial.recentlyCompleted'],function(a){return jive.namespace.call(this,'jive.trial.quests.fewerMeetings'),jive.trial.quests.fewerMeetings.panelContent=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<div class="section clearfix collaboration"','HaveFewerMeetingsQuest'!=b.panelData.lastViewedQuest?' style="display:none"':'','data-id="HaveFewerMeetingsQuest"><p class="j-vdescription font-color-normal">',soy.$$escapeHtml(a._i18n('82607b',[])),'</p><div class="quest-section clearfix"><div class="j-quest-lcol"><div class="j-quest-video"><div id="wistia_b8c47e6cac" class="j-qvideo"style="width:325px;height:208px;" data-video-width="328" data-video-height="208">&nbsp;</div></div><div class="j-quest-completors"><h4>',soy.$$escapeHtml(a._i18n('a705fb',[])),'</h4>'),jive.trial.recentlyCompleted({users:b.questData.recentlyCompleted},d),d.append('</div></div><div class="j-quest-tasks ',b.questData.stepsComplete==b.questData.steps.length?'j-quest-complete':'','"><h3 class="j-quest-theme font-face-deco"><span class="j-theme-arrow"></span>',soy.$$escapeHtml(a._i18n('23b7ec',[])),'</h3><div class="j-qtask-list">',b.questData.stepsComplete==b.questData.steps.length?'<span class="j-completed-ribbon">'+soy.$$escapeHtml(a._i18n('47dbcf',[]))+'</span>':'','<ul><li class="j-qtask j-',soy.$$escapeHtmlAttribute(b.questData.steps[0].state),'" data-stepaction="',soy.$$escapeHtmlAttribute(jive.soy.func.buildUrl(window._jive_base_url,'/discussion/create.jspa?fromQ=HaveFewerMeetingsQuest&qstep=0')),'"','completed'==b.questData.steps[0].state?'tabindex=\'0\'':' role="button"','><span class="j-qtitle ','available'==b.questData.steps[0].state?'font-color-link':'','">',soy.$$escapeHtml(a._i18n('0f7750',[])),'</span>','completed'!=b.questData.steps[0].state?'<strong class="j-qnotstarted font-color-meta-light">'+soy.$$escapeHtml(a._i18n('057542',[]))+'</strong><p class="j-quest-text font-color-meta">'+soy.$$escapeHtml(a._i18n('e89229',[]))+'</p><span class="j-qgobtn" tabindex="0" role="button"><label class="j-508-label">'+soy.$$escapeHtml(a._i18n('59fd57',[]))+'</label></span>':'<strong class="j-qdone">'+soy.$$escapeHtml(a._i18n('beed22',[]))+'<span class="j-donecheck"></span></strong>'+(b.questData.steps[0].completionData.forumThreadViewBean?'<div class="j-quest-detail"><strong class="j-quest-action">'+soy.$$escapeHtml(a._i18n('2f86b4',[]))+'</strong><p class="j-quest-output"><a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,b.questData.steps[0].completionData.forumThreadViewBean.jiveObjectURL)))+'" class="j-quest-content"><span class="'+soy.$$escapeHtmlAttribute(b.questData.steps[0].completionData.forumThreadViewBean.jiveObjectCSS)+'"></span>'+soy.$$escapeHtml(function(a,b){var c,d;if('string'!=typeof a)return'';if(c=a.split(''),c.length>b){for(d=c.length-1;d>-1;--d)if(d>b)c.length=d;else if(' '===c[d]){c.length=d;break}c.push('...')}return c.join('')}(b.questData.steps[0].completionData.forumThreadViewBean.htmlSubject,32))+'</a></p></div>':''),'</li><li class="j-qtask j-',soy.$$escapeHtmlAttribute(b.questData.steps[1].state),'" data-stepaction="',b.questData.steps[0].completionData.forumThreadViewBean?soy.$$escapeHtmlAttribute(jive.soy.func.buildUrl(window._jive_base_url,b.questData.steps[0].completionData.forumThreadViewBean.jiveObjectURL+'?fromQ=HaveFewerMeetingsQuest&qstep=1')):'','"','completed'==b.questData.steps[1].state?'tabindex=\'0\'':' role="button"','><span class="j-qtitle ','available'==b.questData.steps[1].state?'font-color-link':'','">',soy.$$escapeHtml(a._i18n('b999ea',[])),'</span>'),b.questData.steps[1].completionData.shareViewBean?(d.append('<strong class="j-qdone">',soy.$$escapeHtml(a._i18n('beed22',[])),'<span class="j-donecheck"></span></strong><div class="j-quest-detail share"><strong class="j-quest-action">',soy.$$escapeHtml(a._i18n('45d149',[])),'</strong><div class="j-quest-output j-sharees font-color-meta">'),jive.eae.common.groupedUsers({groupedUserList:b.questData.steps[1].completionData.sharedUsers,groupAfterNum:3},d),d.append('</div></div>')):d.append('<strong class="j-qnotstarted font-color-meta-light">',soy.$$escapeHtml(a._i18n('057542',[])),'</strong><p class="j-quest-text font-color-meta">',soy.$$escapeHtml(a._i18n('2d78a1',[])),'</p><span class="j-qgobtn" tabindex="0" role="button"><label class="j-508-label">',soy.$$escapeHtml(a._i18n('59fd57',[])),'</label></span>'),d.append('</li><li class="j-qtask j-',b.questData.steps[2].completionData.replyCount&&b.questData.steps[2].completionData.replyCount<2?'unavailable':soy.$$escapeHtmlAttribute(b.questData.steps[2].state),'" data-stepaction="',b.questData.steps[0].completionData.forumThreadViewBean?soy.$$escapeHtmlAttribute(jive.soy.func.buildUrl(window._jive_base_url,b.questData.steps[0].completionData.forumThreadViewBean.jiveObjectURL+'?fromQ=HaveFewerMeetingsQuest&qstep=2')):'','"','completed'==b.questData.steps[2].state?'tabindex=\'0\'':' role="button"','><span class="j-qtitle ','available'==b.questData.steps[2].state?b.questData.steps[2].completionData.replyCount&&b.questData.steps[2].completionData.replyCount<2?'':'font-color-link':'','">',soy.$$escapeHtml(a._i18n('1c8989',[])),'</span>'),'completed'!=b.questData.steps[2].state)d.append('<strong class="j-qnotstarted font-color-meta-light">',b.questData.steps[2].completionData.replyCount&&b.questData.steps[2].completionData.replyCount<2?soy.$$escapeHtml(a._i18n('91d2c4',[])):soy.$$escapeHtml(a._i18n('057542',[])),'</strong><p class="j-quest-text font-color-meta">',soy.$$escapeHtml(a._i18n('f3d4f3',[])),'</p>',b.questData.steps[2].completionData.replyCount&&b.questData.steps[2].completionData.replyCount<2?'<p class="j-quest-waiting font-color-meta">'+soy.$$escapeHtml(a._i18n('e2ab74',[]))+'</p>':'','<span class="j-qgobtn" tabindex="0" role="button"><label class="j-508-label">',soy.$$escapeHtml(a._i18n('59fd57',[])),'</label></span>');else if(d.append('<strong class="j-qdone">',soy.$$escapeHtml(a._i18n('beed22',[])),'<span class="j-donecheck"></span></strong>'),b.questData.steps[2].completionData.author){d.append('<div class="j-quest-detail"><strong class="j-quest-action">',soy.$$escapeHtml(a._i18n('6b62e3',[])),'</strong><p class="j-quest-output j-correct font-color-meta"><a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,b.questData.steps[2].completionData.url))),'">',soy.$$escapeHtml(a._i18n('6a62a6',[])),'</a> ');var e=new soy.StringBuilder(' <span class="j-answerer">');jive.shared.displayutil.userDisplayNameLink(b.questData.steps[2].completionData.author,e),e.append('</span>'),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('2ded4b'),arg0:e.toString(),noAutoEscape:!0},d),d.append('</p></div>')}return d.append('</li></ul></div></div></div></div>'),c?'':d.toString()},jive.trial.quests.fewerMeetings.panelContent}),define('soy!jive.trial.quests.fewerMeetings.questName',['soyDeps'],function(a){return jive.namespace.call(this,'jive.trial.quests.fewerMeetings'),jive.trial.quests.fewerMeetings.questName=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('3a2274',[]))),c?'':d.toString()},jive.trial.quests.fewerMeetings.questName}),define('soy!jive.trial.quests.fewerMeetings.panelTitle',['soyDeps','soy!jive.trial.quests.fewerMeetings.questName'],function(a){return jive.namespace.call(this,'jive.trial.quests.fewerMeetings'),jive.trial.quests.fewerMeetings.panelTitle=function(a,b){var c=b||new soy.StringBuilder;return c.append('<a href="#" class="j-quest-group-header js-quest-group-header j-fewer-meetings',a.questData.stepsComplete==a.questData.steps.length?' j-quest-complete':'','HaveFewerMeetingsQuest'==a.panelData.lastViewedQuest?' j-active font-color-normal':'','" data-id="HaveFewerMeetingsQuest"><span class="lnk"><span class="j-donecheck-sm"></span>'),jive.trial.quests.fewerMeetings.questName(null,c),c.append('<span class="quest-selected"></span></span></a>'),b?'':c.toString()},jive.trial.quests.fewerMeetings.panelTitle}),define('soy!jive.trial.quests.fewerMeetings.questReadyToComplete',['soyDeps'],function(a){return jive.namespace.call(this,'jive.trial.quests.fewerMeetings'),jive.trial.quests.fewerMeetings.questReadyToComplete=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-pop js-pop popover js-trial-tip" data-fromq="HaveFewerMeetingsQuest" data-location="banner" style="position: absolute; top: 50px; left: 50%; margin-left: -180px; visibility: visible; z-index: 100;"><div class="j-tips d-banner-tip j-pop-main"><h4 class="font-face-deco">',soy.$$escapeHtml(a._i18n('d1d4a9',[])),'</h4><p><strong><a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/get-started',{showQ:'HaveFewerMeetingsQuest'}))),'">',soy.$$escapeHtml(a._i18n('e2d535',[])),'</a></strong></p><p><strong><a href="#" id="quest-complete-close" class="js-close">',soy.$$escapeHtml(a._i18n('d58f92',[])),'</a></strong></p></div><span class="belowArrow pointer" style="left: 170px; top: -9px;"></span></div>'),c?'':d.toString()},jive.trial.quests.fewerMeetings.questReadyToComplete}),define('soy!jive.trial.quests.teamwork.questName',['soyDeps'],function(a){return jive.namespace.call(this,'jive.trial.quests.teamwork'),jive.trial.quests.teamwork.questName=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('6720d1',[]))),c?'':d.toString()},jive.trial.quests.teamwork.questName}),define('soy!jive.trial.quests.stayInTouch.mobileModal',['soyDeps'],function(a){return jive.namespace.call(this,'jive.trial.quests.stayInTouch'),jive.trial.quests.stayInTouch.mobileModal=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="jive-modal jive-modal-wide j-trial-mob-modal" id="j-trial-mob-modal"><header><h2 class="jive-modal-title">',soy.$$escapeHtml(a._i18n('1a9153',[])),'</h2></header><label class="j-508-label" id="close-modal-508">',soy.$$escapeHtml(a._i18n('a94563',[])),'</label><a class="j-modal-close-top jive-close close" href="#" aria-labelledby="close-modal-508" title="',soy.$$escapeHtml(a._i18n('a94563',[])),'">',soy.$$escapeHtml(a._i18n('1ce366',[])),' <span class="j-close-icon j-ui-elem close"></span></a><div class="jive-modal-content clearfix"><div class="j-mob-url"><h3><span class="j-theme-arrow"></span>',soy.$$escapeHtml(a._i18n('d371cc',[])),'</h3><p class="j-rc5"><strong>',soy.$$escapeHtml(b.url),'</strong></p>',b.viewData.appPromotionEnabled?'<h3 class="j-mob-app-description">'+soy.$$escapeHtml(a.i18nText(b.viewData.appDescription,[]))+'</h3><div class="j-mob-app-link-block"><a href="'+soy.$$escapeHtml(b.viewData.iosAppDownloadUrl)+'"><img src="'+soy.$$escapeHtml(b.viewData.iosAppIconUrl)+'" alt="" class="j-mob-icon"/></a><a href="'+soy.$$escapeHtml(b.viewData.iosAppDownloadUrl)+'">'+soy.$$escapeHtml(a.i18nText(b.viewData.iosAppName,[]))+'</a></div><div class="j-mob-app-link-block"><a href="'+soy.$$escapeHtml(b.viewData.androidAppDownloadUrl)+'"><img src="'+soy.$$escapeHtml(b.viewData.androidAppIconUrl)+'" alt="" class="j-mob-icon"/></a><a href="'+soy.$$escapeHtml(b.viewData.androidAppDownloadUrl)+'">'+soy.$$escapeHtml(a.i18nText(b.viewData.androidAppName,[]))+'</a></div>':'','</div><div class="j-mob-qr"><h3>',soy.$$escapeHtml(a._i18n('e134a7',[])),'</h3><div class="j-mob-accesscode j-mob-accesslink"><span class="qr-code" style="background-image:url(',soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,'/__services/v2/rest/onboarding/qrcode/qrcode.gif')),')"></span></div></div><div class="j-mob-qrnote clearfix">',soy.$$escapeHtml(a._i18n('906eca',[])),'</div></div></div>'),c?'':d.toString()},jive.trial.quests.stayInTouch.mobileModal}),define('soy!jive.trial.quests.fewerMeetings.questComplete',['soyDeps'],function(a){return jive.namespace.call(this,'jive.trial.quests.fewerMeetings'),jive.trial.quests.fewerMeetings.questComplete=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-pop js-pop popover js-trial-tip" data-fromq="HaveFewerMeetingsQuest" data-location="banner" style="position: absolute; top: 50px; left: 50%; margin-left: -250px; visibility: visible; z-index: 100;"><div class="font-color-normal j-tips wide j-pop-main"><h4 class="font-face-deco"><strong>',soy.$$escapeHtml(a._i18n('ea3413',[])),'</strong></h4>',b.nextQuestID?'<p>'+soy.$$escapeHtml(a._i18n('154d28',[]))+'</p><p class="j-qlinks"><strong><a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/get-started',{showQ:b.nextQuestID})))+'">'+soy.$$escapeHtml(a._i18n('e2d535',[]))+'</a></strong></p><p><strong><a href="#" id="quest-complete-close" class="js-close">'+soy.$$escapeHtml(a._i18n('d58f92',[]))+'</a></strong></p>':'<p><strong><a href="#" id="quest-complete-close" class="js-close">'+soy.$$escapeHtml(a._i18n('9b76fe',[]))+'</a></strong></p>','</div><span class="belowArrow pointer" style="top: -9px; left: 235px;"></span></div>'),c?'':d.toString()},jive.trial.quests.fewerMeetings.questComplete}),define('soy!jive.trial.quests.lessEmail.questComplete',['soyDeps'],function(a){return jive.namespace.call(this,'jive.trial.quests.lessEmail'),jive.trial.quests.lessEmail.questComplete=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-tips j-pop js-pop popover js-trial-tip" data-fromq="LessEmailQuest" data-location="banner" style="position: absolute; top: 50px; width: 400px; left: 50%; margin-left: -200px; visibility: visible; z-index: 100;"><div class="j-pop-main"><h4 class="font-face-deco"><strong>',soy.$$escapeHtml(a._i18n('7f6546',[])),'</strong></h4>',b.nextQuestID?'<p>'+soy.$$escapeHtml(a._i18n('04ba8c',[]))+'</p><p class="j-qlinks"><strong><a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/get-started',{showQ:b.nextQuestID})))+'">'+soy.$$escapeHtml(a._i18n('33f324',[]))+'</a></strong></p><p><strong><a href="#" id="quest-complete-close" class="js-close">'+soy.$$escapeHtml(a._i18n('261b8e',[]))+'</a></strong></p>':'<p><strong><a href="#" id="quest-complete-close" class="js-close">'+soy.$$escapeHtml(a._i18n('f1ccb4',[]))+'</a></strong></p>','</div><span class="belowArrow pointer" style="top: -10px; left: 195px;"></span></div>'),
c?'':d.toString()},jive.trial.quests.lessEmail.questComplete}),define('soy!jive.trial.quests.teamwork.approved',['soyDeps'],function(a){return jive.namespace.call(this,'jive.trial.quests.teamwork'),jive.trial.quests.teamwork.approved=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-tips j-pop js-pop popover js-trial-tip" style="position: absolute; top: 50px; left: 50%; margin-left: -250px; visibility: visible; z-index: 100; width: auto;"><div class="j-tips j-pop-main wide"><h4 class="font-face-deco">',soy.$$escapeHtml(a._i18n('bddd87',[])),'</h4><p>',soy.$$escapeHtml(a._i18n('285c3a',[])),'</p><p class="j-qlinks"><strong><a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/get-started',{showQ:b.nextQuestID}))),'" id="quest-complete-continue">',soy.$$escapeHtml(a._i18n('98d530',[])),'</a></strong></p><p><strong><a id="quest-complete-close" href="#">',soy.$$escapeHtml(a._i18n('4188a9',[])),'</a></strong></p></div></div>'),c?'':d.toString()},jive.trial.quests.teamwork.approved}),define('soy!jive.trial.quests.communityFeedback.tips',['soyDeps'],function(a){return jive.namespace.call(this,'jive.trial.quests.communityFeedback'),jive.trial.quests.communityFeedback.tips=function(b,c){var d=c||new soy.StringBuilder;return d.append('create-discussion'==b.pageID&&'body'==b.renderLocation?'<div class="j-tips inline js-trial-tip" data-fromq="CommunityFeedbackQuest" data-location="body" style="position: absolute; top: 60px; visibility: visible; z-index: 100;"><div class="d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip"><h4 class="j-qtip-header font-face-deco">'+soy.$$escapeHtml(a._i18n('68e0cc',[]))+'</h4><p class="j-qtip-body font-color-meta">'+soy.$$escapeHtml(a._i18n('de3b96',[]))+'</p></div><span class="j-tiparrow-e j-tarrow" style="top: 25px"></span></div>':''),c?'':d.toString()},jive.trial.quests.communityFeedback.tips}),define('soy!jive.trial.quests.lessEmail.questName',['soyDeps'],function(a){return jive.namespace.call(this,'jive.trial.quests.lessEmail'),jive.trial.quests.lessEmail.questName=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('9fac2c',[]))),c?'':d.toString()},jive.trial.quests.lessEmail.questName}),define('soy!jive.trial.quests.stayInTouch.panelContent',['soyDeps','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper','soy!jive.trial.recentlyCompleted'],function(a){return jive.namespace.call(this,'jive.trial.quests.stayInTouch'),jive.trial.quests.stayInTouch.panelContent=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<div class="section clearfix collaboration"','StayInTouchQuest'!=b.panelData.lastViewedQuest?' style="display:none"':'','data-id="StayInTouchQuest"><p class="j-vdescription font-color-normal">',soy.$$escapeHtml(a._i18n('8cbb5b',[])),'</p><div class="quest-section clearfix"><div class="j-quest-lcol"><div class="j-quest-video"><div id="wistia_9a4efbeb33" class="j-qvideo" style="width:325px;height:208px;" data-video-width="328" data-video-height="208">&nbsp;</div></div><div class="j-quest-completors"><h4>',soy.$$escapeHtml(a._i18n('9e2f3e',[])),'</h4>'),jive.trial.recentlyCompleted({users:b.questData.recentlyCompleted},d),d.append('</div></div><div class="j-quest-tasks ',b.questData.stepsComplete==b.questData.steps.length?'j-quest-complete':'','"><h3 class="j-quest-theme font-face-deco"><span class="j-theme-arrow"></span>',soy.$$escapeHtml(a._i18n('23b7ec',[])),'</h3><div class="j-qtask-list">',b.questData.stepsComplete==b.questData.steps.length?'<span class="j-completed-ribbon">'+soy.$$escapeHtml(a._i18n('47dbcf',[]))+'</span>':'','<ul><li class="j-qtask j-',soy.$$escapeHtml(b.questData.steps[0].state),'" data-stepaction="',soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,'/activity?fromQ=StayInTouchQuest&qstep=0')),'"','completed'==b.questData.steps[0].state?'tabindex=\'0\'':' role="button"','><span class="j-qtitle ','available'==b.questData.steps[0].state?'font-color-link':'','">',soy.$$escapeHtml(a._i18n('130ad2',[])),'</span>',b.questData.steps[0].completionData.wallEntryViewBean?'<strong class="j-qdone">'+soy.$$escapeHtml(a._i18n('beed22',[]))+'<span class="j-donecheck"></span></strong><div class="j-quest-detail"><strong class="j-quest-action">'+soy.$$escapeHtml(a._i18n('3cb0eb',[]))+'</strong><p class="j-quest-output"><a href="'+soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,b.questData.steps[0].completionData.wallEntryViewBean.jiveObjectURL))+'"><span class="'+soy.$$escapeHtml(b.questData.steps[0].completionData.wallEntryViewBean.jiveObjectCSS)+'"></span>'+soy.$$escapeHtml(function(a,b){var c,d;if('string'!=typeof a)return'';if(c=a.split(''),c.length>b){for(d=c.length-1;d>-1;--d)if(d>b)c.length=d;else if(' '===c[d]){c.length=d;break}c.push('...')}return c.join('')}(b.questData.steps[0].completionData.wallEntryViewBean.subject,40))+'</a></p></div>':'<strong class="j-qnotstarted font-color-meta-light">'+soy.$$escapeHtml(a._i18n('057542',[]))+'</strong><p class="j-quest-text font-color-meta">'+soy.$$escapeHtml(a._i18n('10bff5',[]))+'</p><span class="j-qgobtn" tabindex="0" role="button"><label class="j-508-label">'+soy.$$escapeHtml(a._i18n('59fd57',[]))+'</label></span>','</li><li class="j-qtask j-',soy.$$escapeHtml(b.questData.steps[1].state),'" data-stepaction="',soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,'/activity?fromQ=StayInTouchQuest&qstep=1')),'"','completed'==b.questData.steps[1].state?'tabindex=\'0\'':' role="button"','><span class="j-qtitle ','available'==b.questData.steps[1].state?'font-color-link':'','">',soy.$$escapeHtml(a._i18n('b16a17',[])),'</span>'),b.questData.steps[1].completionData.acclaimViewBean){d.append('<strong class="j-qdone">',soy.$$escapeHtml(a._i18n('beed22',[])),'<span class="j-donecheck"></span></strong><div class="j-quest-detail"><strong class="j-quest-action">',soy.$$escapeHtml(a._i18n('bca0d5',[])),'</strong><p class="j-quest-output j-like-task">');var e=new soy.StringBuilder;b.questData.steps[1].completionData.acclaimViewBean.likedContentOwner.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.questData.steps[1].completionData.acclaimViewBean.likedContent},e):jive.shared.displayutil.userDisplayNameLink(b.questData.steps[1].completionData.acclaimViewBean.likedContentOwner,e),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('d2eed3'),arg0:e.toString(),noAutoEscape:!0},d),d.append(b.questData.steps[1].completionData.acclaimViewBean.likedContent.i18nContentCode&&801!=b.questData.steps[1].completionData.acclaimViewBean.likedContent.objectType?' '+soy.$$escapeHtml(a._i18n('global.'+b.questData.steps[1].completionData.acclaimViewBean.likedContent.i18nContentCode,[]))+' ':'',' <a href="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.questData.steps[1].completionData.acclaimViewBean.likedContent.jiveObjectURL)),'">',b.questData.steps[1].completionData.acclaimViewBean.likedContent.jiveObjectIconLink?soy.$$filterNoAutoescape(b.questData.steps[1].completionData.acclaimViewBean.likedContent.jiveObjectIconLink):'<span class="'+soy.$$escapeHtml(b.questData.steps[1].completionData.acclaimViewBean.likedContent.jiveObjectCSS)+'"></span>','<span class="j-item">',soy.$$escapeHtml(b.questData.steps[1].completionData.acclaimViewBean.likedContent.subject),'</span></a></p></div>')}else d.append('<strong class="j-qnotstarted font-color-meta-light">',soy.$$escapeHtml(a._i18n('057542',[])),'</strong><p class="j-quest-text font-color-meta">',soy.$$escapeHtml(a._i18n('016d37',[])),'</p><span class="j-qgobtn" tabindex="0"><label class="j-508-label">',soy.$$escapeHtml(a._i18n('59fd57',[])),'</label></span>');return d.append('</li>',3==b.questData.steps.length?'<li class="j-qtask j-'+soy.$$escapeHtml(b.questData.steps[2].state)+'"'+(b.questData.steps[2].viewData.oAuthEnabled?' data-stepaction="'+soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,b.questData.steps[2].viewData.mobileUrl))+'"':' data-stepaction="mobile_modal" data-mobileurl="'+soy.$$escapeHtml(b.questData.steps[2].viewData.mobileUrl)+'"')+' data-apppromotionenabled="'+soy.$$escapeHtml(b.questData.steps[2].viewData.appPromotionEnabled)+'" data-iosappiconurl="'+soy.$$escapeHtml(b.questData.steps[2].viewData.iosAppIconUrl)+'" data-iosappdownloadurl="'+soy.$$escapeHtml(b.questData.steps[2].viewData.iosAppDownloadUrl)+'" data-androidappiconurl="'+soy.$$escapeHtml(b.questData.steps[2].viewData.androidAppIconUrl)+'" data-androidappdownloadurl="'+soy.$$escapeHtml(b.questData.steps[2].viewData.androidAppDownloadUrl)+'" data-appdescription="'+soy.$$escapeHtml(b.questData.steps[2].viewData.appDescription)+'" data-iosappname="'+soy.$$escapeHtml(b.questData.steps[2].viewData.iosAppName)+'" data-androidappname="'+soy.$$escapeHtml(b.questData.steps[2].viewData.androidAppName)+'"'+('completed'==b.questData.steps[2].state?'tabindex=\'0\'':' role="button"')+'><span class="j-qtitle '+('available'==b.questData.steps[2].state?'font-color-link':'')+'">'+soy.$$escapeHtml(a._i18n('b67722',[]))+'</span>'+('completed'!=b.questData.steps[2].state?'<strong class="j-qnotstarted font-color-meta-light">'+soy.$$escapeHtml(a._i18n('057542',[]))+'</strong><p class="j-quest-text font-color-meta">'+soy.$$escapeHtml(a._i18n('787737',[]))+'</p><span class="j-qgobtn" tabindex="0" role="link"><label class="j-508-label">'+soy.$$escapeHtml(a._i18n('59fd57',[]))+'</label></span>':'<strong class="j-qdone">'+soy.$$escapeHtml(a._i18n('beed22',[]))+'<span class="j-donecheck"></span></strong><div class="j-quest-detail"><p class="j-quest-text">'+soy.$$escapeHtml(a._i18n('17fce7',[]))+'</p></div>')+'</li>':'','</ul></div></div></div></div>'),c?'':d.toString()},jive.trial.quests.stayInTouch.panelContent}),define('soy!jive.trial.quests.stayInTouch.questComplete',['soyDeps'],function(a){return jive.namespace.call(this,'jive.trial.quests.stayInTouch'),jive.trial.quests.stayInTouch.questComplete=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-pop js-pop popover j-qtip js-trial-tip" data-fromq="StayInTouchQuest" data-location="banner" style="position: absolute; top: 50px; width: 400px; left: 50%; margin-left: -200px; visibility: visible; z-index: 100;"><div class="j-quest-tip d-banner-tip j-pop-main"><h4 class="j-qtip-header font-face-deco"><strong class="font-color-new">',soy.$$escapeHtml(a._i18n('d2253d',[])),'</strong></h4>',b.nextQuestID?'<p class="j-qtip-body">'+soy.$$escapeHtml(a._i18n('2d3f8e',[]))+'</p><p class="j-qtip-body j-qlinks"><strong><a href="'+soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,'/get-started',{showQ:b.nextQuestID}))+'">'+soy.$$escapeHtml(a._i18n('52b3fc',[]))+'</a></strong></p><p class="j-qtip-body"><strong><a href="#" id="quest-complete-close" class="js-close">'+soy.$$escapeHtml(a._i18n('3d5c03',[]))+'</a></strong></p>':'<p class="j-qtip-body"><strong><a href="#" id="quest-complete-close" class="js-close">'+soy.$$escapeHtml(a._i18n('f3f8f5',[]))+'</a></strong></p>','</div><span class="belowArrow pointer" style="top: -9px; left: 195px;"></span></div>'),c?'':d.toString()},jive.trial.quests.stayInTouch.questComplete}),define('soy!jive.trial.quests.lessEmail.panelContent',['soyDeps','soy!jive.eae.common.groupedUsers','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.trial.recentlyCompleted'],function(a){return jive.namespace.call(this,'jive.trial.quests.lessEmail'),jive.trial.quests.lessEmail.panelContent=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="section clearfix collaboration"','LessEmailQuest'!=b.panelData.lastViewedQuest?' style="display:none"':'','data-id="LessEmailQuest"><p class="j-vdescription font-color-normal">',soy.$$escapeHtml(a._i18n('c917d6',[])),'</p><div class="quest-section clearfix"><div class="j-quest-lcol"><div class="j-quest-video"><div id="wistia_a26f53f98e" class="j-qvideo" style="width:325px;height:208px;" data-video-width="328" data-video-height="208">&nbsp;</div></div><div class="j-quest-completors"><h4>',soy.$$escapeHtml(a._i18n('275518',[])),'</h4>'),jive.trial.recentlyCompleted({users:b.questData.recentlyCompleted},d),d.append('</div></div><div class="j-quest-tasks ',b.questData.stepsComplete==b.questData.steps.length?'j-quest-complete':'','"><h3 class="j-quest-theme font-face-deco"><span class="j-theme-arrow"></span>',soy.$$escapeHtml(a._i18n('23b7ec',[])),'</h3><div class="j-qtask-list">',b.questData.stepsComplete==b.questData.steps.length?'<span class="j-completed-ribbon">'+soy.$$escapeHtml(a._i18n('47dbcf',[]))+'</span>':'','<ul><li class="j-qtask j-',soy.$$escapeHtmlAttribute(b.questData.steps[0].state),'" data-stepaction="',b.questData.steps[0].visibility?soy.$$escapeHtmlAttribute(jive.soy.func.buildUrl(window._jive_base_url,'/document/create.jspa',{fromQ:'LessEmailQuest',qstep:'0',QVis:b.questData.steps[0].visibility})):soy.$$escapeHtmlAttribute(jive.soy.func.buildUrl(window._jive_base_url,'/document/create.jspa',{fromQ:'LessEmailQuest',qstep:'0'})),'" ','completed'==b.questData.steps[0].state?'tabindex=\'0\'':' role="button"','><span class="j-qtitle ','available'==b.questData.steps[0].state?'font-color-link':'','">',soy.$$escapeHtml(a._i18n('1992a1',[])),'</span>','completed'!=b.questData.steps[0].state?'<strong class="j-qnotstarted font-color-meta-light">'+soy.$$escapeHtml(a._i18n('057542',[]))+'</strong><p class="j-quest-text font-color-meta">'+soy.$$escapeHtml(a._i18n('9b4b06',[]))+'</p><span class="j-qgobtn" tabindex="0" role="button"><label class="j-508-label">'+soy.$$escapeHtml(a._i18n('59fd57',[]))+'</label></span>':'<strong class="j-qdone">'+soy.$$escapeHtml(a._i18n('beed22',[]))+'<span class="j-donecheck"></span></strong>'+(b.questData.steps[0].completionData.documentViewBean?'<div class="j-quest-detail"><strong class="j-quest-action">'+soy.$$escapeHtml(a._i18n('2e782e',[]))+'</strong><p class="j-quest-output"><a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,b.questData.steps[0].completionData.documentViewBean.jiveObjectURL)))+'" class="j-quest-content"><span class="'+soy.$$escapeHtmlAttribute(b.questData.steps[0].completionData.documentViewBean.jiveObjectCSS)+'"></span>'+soy.$$escapeHtml(function(a,b){var c,d;if('string'!=typeof a)return'';if(c=a.split(''),c.length>b){for(d=c.length-1;d>-1;--d)if(d>b)c.length=d;else if(' '===c[d]){c.length=d;break}c.push('...')}return c.join('')}(b.questData.steps[0].completionData.documentViewBean.subject,40))+'</a></p></div>':''),'</li><li class="j-qtask j-',soy.$$escapeHtmlAttribute(b.questData.steps[1].state),'" data-stepaction="',b.questData.steps[0].completionData.documentViewBean?soy.$$escapeHtmlAttribute(jive.soy.func.buildUrl(window._jive_base_url,b.questData.steps[0].completionData.documentViewBean.jiveObjectURL+'?fromQ=LessEmailQuest&qstep=1')):'','"','completed'==b.questData.steps[1].state?'tabindex=\'0\'':' role="button"','><span class="j-qtitle ','available'==b.questData.steps[1].state?'font-color-link':'','">',soy.$$escapeHtml(a._i18n('984f79',[])),'</span>'),b.questData.steps[1].completionData.collaborators?(d.append('<strong class="j-qdone">',soy.$$escapeHtml(a._i18n('beed22',[])),'<span class="j-donecheck"></span></strong><div class="j-quest-detail"><strong class="j-quest-action">',soy.$$escapeHtml(a._i18n('1b9675',[])),'</strong><div class="j-quest-output j-sharees font-color-meta">'),jive.eae.common.groupedUsers({groupedUserList:b.questData.steps[1].completionData.collaborators,groupAfterNum:3},d),d.append('</div></div>')):d.append('<strong class="j-qnotstarted font-color-meta-light">',soy.$$escapeHtml(a._i18n('057542',[])),'</strong><p class="j-quest-text font-color-meta">',soy.$$escapeHtml(a._i18n('f2bff1',[])),'</p><span class="j-qgobtn" tabindex="0" role="button"><label class="j-508-label">',soy.$$escapeHtml(a._i18n('59fd57',[])),'</label></span>'),d.append('</li><li class="j-qtask ','completed'==b.questData.steps[2].state?'j-completed':'j-unavailable','" data-stepaction="',b.questData.steps[0].completionData.documentViewBean?soy.$$escapeHtmlAttribute(jive.soy.func.buildUrl(window._jive_base_url,b.questData.steps[0].completionData.documentViewBean.jiveObjectURL)):'','"','completed'==b.questData.steps[2].state?'tabindex=\'0\'':' role="button"','><span class="j-qtitle ','available'==b.questData.steps[2].state?b.questData.steps[2].completionData.modifierUser?'font-color-link':'font-color-normal':'','">',soy.$$escapeHtml(a._i18n('3d1d51',[])),'</span>'),b.questData.steps[2].completionData.modifierUser?(d.append('<strong class="j-qdone">',soy.$$escapeHtml(a._i18n('beed22',[])),'<span class="j-donecheck"></span></strong><div class="j-quest-detail"><strong class="j-quest-action">',soy.$$escapeHtml(a._i18n('6cdb66',[])),'</strong><p class="j-quest-output font-color-meta">'),jive.shared.displayutil.userDisplayNameLink(b.questData.steps[2].completionData.modifierUser,d),d.append('</p></div>')):d.append('<strong class="j-qnotstarted font-color-meta-light">','completed'==b.questData.steps[0].state&&'completed'==b.questData.steps[1].state&&'completed'!=b.questData.steps[2].state?soy.$$escapeHtml(a._i18n('7c0869',[])):soy.$$escapeHtml(a._i18n('057542',[])),'</strong><p class="j-quest-text j-wait font-color-meta">',soy.$$escapeHtml(a._i18n('5e54c4',[])),'</p>'),d.append('</li></ul></div></div></div></div>'),c?'':d.toString()},jive.trial.quests.lessEmail.panelContent}),define('soy!jive.trial.quests.teamwork.pendingApproval',['soyDeps'],function(a){return jive.namespace.call(this,'jive.trial.quests.teamwork'),jive.trial.quests.teamwork.pendingApproval=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-pop js-pop popover js-trial-tip" style="position: absolute; top: 50px; left: 50%; margin-left: -250px; visibility: visible; z-index: 100;"><div class="j-tips j-pop-main wide"><h4 class="font-face-deco">',soy.$$escapeHtml(a._i18n('ba3bb4',[])),'</h4><p>',soy.$$escapeHtml(a._i18n('d0b683',[])),'</p><p class="j-qlinks"><strong><a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/get-started',{showQ:b.nextQuestID}))),'" id="quest-complete-continue">',soy.$$escapeHtml(a._i18n('98d530',[])),'</a></strong></p><p><strong><a id="quest-complete-close" href="#">',soy.$$escapeHtml(a._i18n('4188a9',[])),'</a></strong></p></div></div>'),c?'':d.toString()},jive.trial.quests.teamwork.pendingApproval}),define('soy!jive.trial.quests.stayInTouch.questName',['soyDeps'],function(a){return jive.namespace.call(this,'jive.trial.quests.stayInTouch'),jive.trial.quests.stayInTouch.questName=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('991f25',[]))),c?'':d.toString()},jive.trial.quests.stayInTouch.questName}),define('soy!jive.trial.quests.fewerMeetings.tips',['soyDeps'],function(a){return jive.namespace.call(this,'jive.trial.quests.fewerMeetings'),jive.trial.quests.fewerMeetings.tips=function(b,c){var d=c||new soy.StringBuilder;return d.append('create-discussion'==b.pageID?'subject'==b.renderLocation?'<div class="j-tips inline js-trial-tip" data-fromq="HaveFewerMeetingsQuest" data-location="subject" style="top: -70px;"><div class="d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('b7dd5e',[]))+'</h4><p class="font-color-meta">'+soy.$$escapeHtml(a._i18n('78dddb',[]))+'</p></div><span class="j-tiparrow-e j-tarrow" style="top: 80px"></span></div>':'body'==b.renderLocation?'<div class="j-tips inline js-trial-tip" data-fromq="HaveFewerMeetingsQuest" data-location="body" style="top: 120px;"><div class="d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('6f4c76',[]))+'</h4><p class="font-color-meta">'+soy.$$escapeHtml(a._i18n('c69d85',[]))+'</p></div><span class="j-tiparrow-e j-tarrow" style="top: 80px"></span></div>':'publishbar'==b.renderLocation?'<div class="j-tips inline p-bar js-trial-tip" data-fromq="HaveFewerMeetingsQuest" data-location="publishbar" style="bottom: -30px;"><div class="d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('68f4c2c',[b.communityName]))+'</h4><p class="font-color-meta">'+soy.$$escapeHtml(a._i18n('c64561',[]))+'</p></div><span class="j-tiparrow-e j-tarrow" style="bottom: 35px"></span></div>':'post'==b.renderLocation?'<div class="j-tips inline p-bar js-trial-tip" data-fromq="HaveFewerMeetingsQuest" data-location="post" style="top: -35px;"><div class="d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('99fbeb',[]))+'</h4><p class="font-color-meta">'+soy.$$escapeHtml(a._i18n('1fcfac',[]))+'</p></div><span class="j-tiparrow-e j-tarrow" style="top: 40px"></span></div>':'':'view-discussion'==b.pageID?'share'==b.renderLocation?'<div class="j-pop js-pop popover js-trial-tip" data-fromq="HaveFewerMeetingsQuest" data-location="share" style="top: 15px; left: -360px; z-index: 100;"><div class="j-tips d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip j-pop-main"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('238c02',[]))+'</h4><p>'+soy.$$escapeHtml(a._i18n('422917',[]))+'</p></div><span class="leftArrow pointer" style="right: -9px; top: 40px;"></span></div>':'outcome'==b.renderLocation?'<div class="j-pop js-pop popover js-trial-tip" data-fromq="HaveFewerMeetingsQuest" data-location="outcome" style="top: 185px; left: -0px; z-index: 100;"><div class="j-tips d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip j-pop-main"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('07e856',[]))+'</h4><p>'+soy.$$escapeHtml(a._i18n('07814e',[]))+'</p></div><span class="belowArrow pointer" style="left: 30px; top: -9px;"></span></div>':'share.modal.users'==b.renderLocation?'<div class="j-tips mtip js-trial-tip" style="position: absolute; top: -205px; left: -155px; visibility: visible; z-index: 100;"><div class="d-tip"><h4 class="font-face-deco font-color-white">'+soy.$$escapeHtml(a._i18n('8cc0cc',[]))+'</h4></div><span class="j-arrow-righthook white j-qarrow" style="left: 60px; bottom: -75px;"></span></div>':'share.modal.message'==b.renderLocation?'<div class="j-tips mtip js-trial-tip" style="position: absolute; top: 50px; width: 135px; left: -235px; visibility: visible; z-index: 100;"><div class="d-tip"><h4 class="font-face-deco font-color-white">'+soy.$$escapeHtml(a._i18n('9a3c68',[]))+'</h4></div><span class="j-arrow-rightess white j-qarrow" style="right: -35px; top: 0"></span></div>':'share.modal.submit'==b.renderLocation?'<div class="j-tips mtip js-trial-tip" style="position: absolute; top: 270px; width: 240px; left: -55px; visibility: visible; z-index: 100;"><div class="d-tip"><h4 class="font-face-deco font-color-white">'+soy.$$escapeHtml(a._i18n('b197b5',[]))+'</h4></div><span class="j-arrow-up white j-qarrow" style="left: 77px; top: -30px"></span></div>':'answer'==b.renderLocation?'<div class="j-pop js-pop popover js-trial-tip" data-fromq="HaveFewerMeetingsQuest" data-location="answer" style="position: absolute; top: 30px; left: 320px; visibility: visible; z-index: 100;"><div class="j-tips d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip j-pop-main wide"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('074b29',[]))+'</h4><p>'+soy.$$escapeHtml(a._i18n('1286bd',[]))+'</p><p><span class="j-correct-btn-star j-ui-elem"></span><strong class="font-color-okay">'+soy.$$escapeHtml(a._i18n('365a1c',[]))+'</strong></p></div><span class="rightArrow pointer" style="left: -9px; top: 63px;"></span></div>':'banner'==b.renderLocation?'<div class="j-pop js-pop popover js-trial-tip" data-fromq="HaveFewerMeetingsQuest" data-location="banner" style="position: absolute; top: 50px; left: 50%; margin-left: -180px; visibility: visible; z-index: 100;"><div class="j-tips d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip j-pop-main"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('872303',[]))+'</h4><p>'+soy.$$escapeHtml(a._i18n('efb20d',[]))+'</p>'+(b.nextQuestID?'<p><strong><a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/get-started',{showQ:b.nextQuestID})))+'">'+soy.$$escapeHtml(a._i18n('71f1da',[]))+'</a></strong></p>':'<p><strong><a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/home')))+'">'+soy.$$escapeHtml(a._i18n('c1320a',[]))+'</a></strong></p>')+'</div><span class="belowArrow pointer" style="left: 170px; top: -9px;"></span></div>':'':''),c?'':d.toString()},jive.trial.quests.fewerMeetings.tips}),define('soy!jive.trial.quests.teamwork.panelTitle',['soyDeps','soy!jive.trial.quests.teamwork.questName'],function(a){return jive.namespace.call(this,'jive.trial.quests.teamwork'),jive.trial.quests.teamwork.panelTitle=function(a,b){var c=b||new soy.StringBuilder;return c.append('<a href="#" class="j-quest-group-header js-quest-group-header j-teamwork',a.questData.stepsComplete==a.questData.steps.length?' j-quest-complete ':'','WorkBetterAsATeamQuest'==a.panelData.lastViewedQuest?' j-active font-color-normal':'','" data-id="WorkBetterAsATeamQuest"><span class="lnk"><span class="j-donecheck-sm"></span>'),jive.trial.quests.teamwork.questName(null,c),c.append('<span class="quest-selected"></span></span></a>'),b?'':c.toString()},jive.trial.quests.teamwork.panelTitle}),define('soy!jive.trial.quests.stayInTouch.panelTitle',['soyDeps','soy!jive.trial.quests.stayInTouch.questName'],function(a){return jive.namespace.call(this,'jive.trial.quests.stayInTouch'),jive.trial.quests.stayInTouch.panelTitle=function(a,b){var c=b||new soy.StringBuilder;return c.append('<a href="#" class="j-quest-group-header js-quest-group-header j-stay-in-touch',a.questData.stepsComplete==a.questData.steps.length?' j-quest-complete':'','StayInTouchQuest'==a.panelData.lastViewedQuest?' j-active font-color-normal':'',' " data-id="StayInTouchQuest"><span class="lnk"><span class="j-donecheck-sm"></span>'),jive.trial.quests.stayInTouch.questName(null,c),c.append('<span class="quest-selected"></span></span></a>'),b?'':c.toString()},jive.trial.quests.stayInTouch.panelTitle}),define('soy!jive.trial.quests.teamwork.tips',['soyDeps','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.trial.quests.teamwork'),jive.trial.quests.teamwork.tips=function(b,c){var d=c||new soy.StringBuilder;return'create-group'==b.pageID?d.append('group-type'==b.renderLocation?'<div class="j-tips inline p-bar js-trial-tip" style="top: -30px; visibility: visible; z-index: 100;" data-fromq="WorkBetterAsATeamQuest" ><div class="d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('e3911b',[]))+'</h4><p class="font-color-meta">'+soy.$$escapeHtml(a._i18n('7a2464',[]))+'</p></div><span class="j-tiparrow-e j-tarrow" style="top: 50px"></span></div>':''):'places'==b.pageID?'banner'==b.renderLocation?d.append('<div class="j-pop js-pop popover js-trial-tip" style="position: absolute; top: 50px; left: 50%; margin-left: -250px; visibility: visible; z-index: 100;"><div class="j-tips j-pop-main wide"><h4 class="font-face-deco">',soy.$$escapeHtml(a._i18n('5c15ea',[])),'</h4><p>',soy.$$escapeHtml(a._i18n('54991d',[])),'</p><p class="j-qlinks"><strong><a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/get-started',{showQ:'WorkBetterAsATeamQuest'}))),'" id="quest-complete-continue">',soy.$$escapeHtml(a._i18n('98d530',[])),'</a></strong></p><p><strong><a id="quest-complete-close" href="#">',soy.$$escapeHtml(a._i18n('4188a9',[])),'</a></strong></p></div></div>'):(d.append('<div id="js-teamwork-join-tip" class="j-pop js-pop popover js-trial-tip" data-fromq="WorkBetterAsATeamQuest" data-location="upload-link" style="position: absolute; top: 75px; right: 50px; visibility: visible; z-index: 100;"><div class="j-tips d-',soy.$$escapeHtmlAttribute(b.renderLocation),'-tip j-pop-main wide"><h4 class="font-face-deco">',soy.$$escapeHtml(a._i18n('1ed272',[])),'</h4><p class="font-color-meta">',soy.$$escapeHtml(a._i18n('b39489',[])),'</p><p><strong>'),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('1ec6f8'),arg0:'<a href="#" id="js-teamwork-create-group-link">'+soy.$$escapeHtml(a._i18n('e68260',[]))+'</a>',noAutoEscape:!0},d),d.append('</strong></p></div></div>')):'place'==b.pageID?d.append('banner'==b.renderLocation?'<div class="j-pop js-pop popover js-trial-tip" style="position: absolute; top: 50px; left: 50%; margin-left: -250px; visibility: visible; z-index: 100;"><div class="j-tips j-pop-main wide"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('ba3bb4',[]))+'</h4><p>'+soy.$$escapeHtml(a._i18n('d0b683',[]))+'</p><p class="j-qlinks"><strong><a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/get-started',{showQ:'WorkBetterAsATeamQuest'})))+'" id="quest-complete-continue">'+soy.$$escapeHtml(a._i18n('98d530',[]))+'</a></strong></p><p><strong><a id="quest-complete-close" href="#">'+soy.$$escapeHtml(a._i18n('4188a9',[]))+'</a></strong></p></div></div>':'join-link'==b.renderLocation?b['private']?'<div id="js-teamwork-join-tip" class="j-pop js-pop popover js-trial-tip" data-fromq="HaveFewerMeetingsQuest" data-location="join-link" style="position: absolute; top: -28px; '+('ask-to-join'==b['private']?' left: 530px; ':' left: 490px; ')+' visibility: visible; z-index: 100;"><div class="j-tips d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip j-pop-main"><h4 class="font-face-deco">'+('ask-to-join'==b['private']?soy.$$escapeHtml(a._i18n('3e990e',[])):soy.$$escapeHtml(a._i18n('050f01',[])))+'</h4>'+('ask-to-join'==b['private']?'<p>'+soy.$$escapeHtml(a._i18n('19c6ef',[]))+'</p>':'')+'</div><span class="rightArrow pointer" style="left: -9px; top: 33px;"></span></div>':'<div id="js-teamwork-join-tip" class="j-pop js-pop popover js-trial-tip" data-fromq="HaveFewerMeetingsQuest" data-location="join-link" style="position: absolute; top: -25px; right: 120px; visibility: visible; z-index: 100;"><div class="j-tips d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip j-pop-main"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('050f01',[]))+'</h4></div><span class="leftArrow pointer" style="right: -9px; top: 33px;"></span></div>':'actions-link'==b.renderLocation?'<div class="j-pop js-pop j-qtip popover js-trial-tip" style="position: absolute; top: 48px; left: -130px; visibility: visible; z-index: 100;"><div class="j-tips d-actions-button-tip j-pop-main"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('d6779c',[]))+'</h4></div><span class="leftArrow pointer" style="top: 50px;"></span></div>':'upload-link'==b.renderLocation?'<div class="j-pop js-pop j-qtip popover js-trial-tip" style="position: absolute; top: 50px; left: 200px; visibility: visible; z-index: 100;"><div class="j-tips j-pop-main"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('ef55a5',[]))+'</h4><p>'+soy.$$escapeHtml(a._i18n('5954e9',[]))+'</p></div><span class="belowArrow pointer" style="left: 168px;"></span></div>':'invite-link'==b.renderLocation?'<div class="j-pop-main j-tips" style="width: 338px"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('95c27d',[]))+'</h4></div>':'invite.modal.users'==b.renderLocation?'<div class="j-tips mtip js-trial-tip" style="position: absolute; top: -145px; left: -220px; width: 185px; visibility: visible; z-index: 100;"><div class="d-tip"><h4 class="font-face-deco font-color-white">'+soy.$$escapeHtml(a._i18n('cf87b2',[]))+'</h4></div><span class="j-arrow-righthook white j-qarrow" style="left: 115px; bottom: -65px;"></span></div>':'invite.modal.message'==b.renderLocation?'<div class="j-tips mtip js-trial-tip" style="position: absolute; top: 65px; width: 135px; left: -225px; visibility: visible; z-index: 100;"><div class="d-tip"><h4 class="font-face-deco font-color-white">'+soy.$$escapeHtml(a._i18n('c2afe5',[]))+'</h4></div><span class="j-arrow-rightess white j-qarrow" style="right: -25px; top: -20px"></span></div>':'invite.modal.submit'==b.renderLocation?'<div class="j-tips mtip js-trial-tip" style="position: absolute; top: 270px; width: 240px; left: -55px; visibility: visible; z-index: 100;"><div class="d-tip"><h4 class="font-face-deco font-color-white">'+soy.$$escapeHtml(a._i18n('048364',[]))+'</h4></div><span class="j-arrow-up white j-qarrow" style="left: 80px; top: -25px"></span></div>':''):'upload'==b.pageID?d.append('choose-file'==b.renderLocation?'<div class="j-tips inline p-bar js-trial-tip" data-fromq="WorkBetterAsATeamQuest" data-location="upload" style="top: 80px;"><div class="d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('5445ee',[]))+'</h4><p class="font-color-meta">'+soy.$$escapeHtml(a._i18n('abd8b5',[]))+'</p></div><span class="j-tiparrow-e j-tarrow" style="top: 25px"></span></div>':'choose-place'==b.renderLocation?'<div class="j-tips p-bar inline js-trial-tip" data-fromq="WorkBetterAsATeamQuest" data-location="upload" style="top: 0;"><div class="d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('e4c5cc',[]))+'</h4><p class="font-color-meta">'+soy.$$escapeHtml(a._i18n('88d639',[]))+'</p></div><span class="j-tiparrow-e j-tarrow" style="top: 25px"></span></div>':'submit'==b.renderLocation?'<div class="j-tips inline p-bar js-trial-tip" data-fromq="WorkBetterAsATeamQuest" data-location="upload" style="top: -20px;"><div class="d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('cfd204',[]))+'</h4><p class="font-color-meta">'+soy.$$escapeHtml(a._i18n('dd632b',[]))+'</p></div><span class="j-tiparrow-e j-tarrow" style="top: 25px"></span></div>':''):'view-document'==b.pageID&&d.append('banner'==b.renderLocation?'<div class="j-pop js-pop popover js-trial-tip" data-fromq="WorkBetterAsATeamQuest" data-location="banner" style="position: absolute; top: 50px; left: 50%; margin-left: -250px; visibility: visible; z-index: 100;"><div class="j-tips d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip j-pop-main wide"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('275ab9',[]))+'</h4><p>'+soy.$$escapeHtml(a._i18n('8c01ed',[]))+'</p><p class="j-qlinks"><a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/get-started',{
showQ:'WorkBetterAsATeamQuest'})))+'" id="post-upload-tip-continue"><strong>'+soy.$$escapeHtml(a._i18n('98d530',[]))+'</strong></a></p><p><a id="post-upload-tip-close" href="#"><strong>'+soy.$$escapeHtml(a._i18n('4188a9',[]))+'</strong></a></p></div></div>':'edit'==b.renderLocation?'<div class="j-tips js-pop j-pop-main js-trial-tip" data-fromq="WorkBetterAsATeamQuest" data-location="edit"><div class="d-'+soy.$$escapeHtmlAttribute(b.renderLocation)+'-tip"><h4 class="font-face-deco">'+soy.$$escapeHtml(a._i18n('3313a5',[]))+'</h4><p>'+soy.$$escapeHtml(a._i18n('16c0f8',[]))+'</p></div><span class="leftArrow pointer" style="right: -9px; top: 40px;"></span></div>':''),c?'':d.toString()},jive.trial.quests.teamwork.tips}),define('soy!jive.trial.quests.stayInTouch.tips',['soyDeps','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.trial.quests.stayInTouch'),jive.trial.quests.stayInTouch.tips=function(b,c){var d=c||new soy.StringBuilder;return'all-activity'==b.pageID&&('mb_body'==b.renderLocation?d.append('<div class="j-pop js-pop popover q-statusupdate js-trial-tip" data-fromq="StayInTouchQuest" data-location="mb_body" style="position: absolute; top: 70px; left: -125px; visibility: visible; z-index: 100;"><div class="j-tips d-',soy.$$escapeHtml(b.renderLocation),'-tip j-pop-main"><h4 class="font-face-deco">',soy.$$escapeHtml(a._i18n('efadb5',[])),'</h4><p>',soy.$$escapeHtml(a._i18n('fc1de2',[])),'</p></div><span class="belowArrow pointer" style="top: -9px; left: 200px;"></span></div>'):'at_mention_btn'==b.renderLocation?(d.append('<div class="j-pop js-pop popover q-statusupdate js-trial-tip" data-fromq="StayInTouchQuest" data-location="at_mention_btn" style="position: absolute; top: 135px; right: -160px; visibility: visible; z-index: 100;"><div class="j-tips wide d-',soy.$$escapeHtml(b.renderLocation),'-tip j-pop-main"><h4 class="font-face-deco">',soy.$$escapeHtml(a._i18n('7c22f4',[])),'</h4><p>',soy.$$escapeHtml(a._i18n('78fd88',[])),'</p><p><em>'),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('b1d6fd'),arg0:'<span class="jive-icon-med jive-icon-mention j-quest-mention">@</span>',noAutoEscape:!0},d),d.append('</em></p><p><strong>',soy.$$escapeHtml(a._i18n('c6fd4f',[])),'</strong></p></div><span class="belowArrow pointer" style="right: 165px; top: -10px"></span></div>')):'banner_post_mb'==b.renderLocation?d.append('<div class="j-pop js-pop popover js-trial-tip" data-fromq="StayInTouchQuest" data-location="banner" style="position: absolute; top: 50px; left: 50%; margin-left: -180px; visibility: visible; z-index: 100;"><div class="j-tips j-banner-tip d-',soy.$$escapeHtml(b.renderLocation),'-tip j-pop-main"><h4 class="font-face-deco">',soy.$$escapeHtml(a._i18n('4013fa',[])),'</h4><p><button class="js-back-to-onb j-btn-callout close">',soy.$$escapeHtml(a._i18n('cf39b3',[])),'</button></p></div><span class="belowArrow pointer" style="left: 170px; top: -10px;"></span></div>'):'stream_header'==b.renderLocation?(d.append('<div class="j-pop js-pop popover j-qtip js-trial-tip" data-fromq="StayInTouchQuest" data-location="answer" style="position: fixed; top: 50px; left: 50%; margin-left: -250px; visibility: visible; z-index: 100;"><div class="j-tips wide d-',soy.$$escapeHtml(b.renderLocation),'-tip j-pop-main"><h4 class="j-qtip-header font-face-deco">',soy.$$escapeHtml(a._i18n('6d9ee8',[])),'</h4><p>'),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('6f5490'),arg0:'<span style="background: #e28044; color: #fff; font-weight: bold; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; padding: 2px 5px; margin: -2px;">'+soy.$$escapeHtml(a._i18n('ace239',[]))+'</span>',noAutoEscape:!0},d),d.append('</p><p>',soy.$$escapeHtml(a._i18n('f22407',[])),'</p></div></div>')):'banner_post_like'==b.renderLocation&&d.append('<div class="j-pop js-pop popover j-qtip js-trial-tip" data-fromq="StayInTouchQuest" data-location="banner" style="position: absolute; top: 50px; left: 50%; margin-left: -180px; visibility: visible; z-index: 100;"><div class="j-tips d-',soy.$$escapeHtml(b.renderLocation),'-tip j-pop-main"><h4 class="font-face-deco">',soy.$$escapeHtml(a._i18n('cb1b13',[])),'</h4><p><button class="js-back-to-onb j-btn-callout close">',soy.$$escapeHtml(a._i18n('cf39b3',[])),'</button></p></div><span class="belowArrow pointer" style="left: 170px; top: -10px;"></span></div>')),c?'':d.toString()},jive.trial.quests.stayInTouch.tips}),define('soy!jive.trial.quests.lessEmail.panelTitle',['soyDeps','soy!jive.trial.quests.lessEmail.questName'],function(a){return jive.namespace.call(this,'jive.trial.quests.lessEmail'),jive.trial.quests.lessEmail.panelTitle=function(a,b){var c=b||new soy.StringBuilder;return c.append('<a href="#" class="j-quest-group-header js-quest-group-header j-less-email',a.questData.stepsComplete==a.questData.steps.length?' j-quest-complete':'','LessEmailQuest'==a.panelData.lastViewedQuest?' j-active font-color-normal':'','" data-id="LessEmailQuest"><span class="lnk"><span class="j-donecheck-sm"></span>'),jive.trial.quests.lessEmail.questName(null,c),c.append('<span class="quest-selected"></span></span></a>'),b?'':c.toString()},jive.trial.quests.lessEmail.panelTitle}),define('soy!jive.eae.digest.subItem.questCompleted',['soyDeps','soy!jive.trial.quests.teamwork.panelContent','soy!jive.trial.quests.teamwork.questComplete','soy!jive.trial.quests.lessEmail.tips','soy!jive.trial.quests.fewerMeetings.panelContent','soy!jive.trial.quests.fewerMeetings.panelTitle','soy!jive.trial.quests.fewerMeetings.questReadyToComplete','soy!jive.trial.quests.teamwork.questName','soy!jive.trial.quests.stayInTouch.mobileModal','soy!jive.trial.quests.fewerMeetings.questComplete','soy!jive.trial.quests.fewerMeetings.questName','soy!jive.trial.quests.lessEmail.questComplete','soy!jive.trial.quests.teamwork.approved','soy!jive.trial.quests.communityFeedback.tips','soy!jive.trial.quests.lessEmail.questName','soy!jive.trial.quests.stayInTouch.panelContent','soy!jive.trial.quests.stayInTouch.questComplete','soy!jive.trial.quests.lessEmail.panelContent','soy!jive.trial.quests.teamwork.pendingApproval','soy!jive.trial.quests.stayInTouch.questName','soy!jive.trial.quests.fewerMeetings.tips','soy!jive.trial.quests.teamwork.panelTitle','soy!jive.trial.quests.stayInTouch.panelTitle','soy!jive.trial.quests.teamwork.tips','soy!jive.trial.quests.stayInTouch.tips','soy!jive.trial.quests.lessEmail.panelTitle','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper','soy!jive.shared.soy.render'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.questCompleted=function(a,b){var c=b||new soy.StringBuilder;if(a.user.id==a.activity.activityUser.id){var d=new soy.StringBuilder('<a href="#" data-showq="',soy.$$escapeHtmlAttribute(a.activity.content.questID),'" class="jive-container-link">');jive.shared.soy.render({templateName:a.activity.content.soyNamespace+'.questName',data:function(){for(var a={},b=[],c=0;c<b.length;c+=1)a[b[c][0]]=b[c][1];return a}(),failGracefully:!0},d),d.append('</a>'),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('47b593'),arg0:d.toString(),noAutoEscape:!0},c)}else{var e=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(a.activity.activityUser,e);var f=new soy.StringBuilder('<a href="#" data-showq="',soy.$$escapeHtmlAttribute(a.activity.content.questID),'" class="jive-container-link">');jive.shared.soy.render({templateName:a.activity.content.soyNamespace+'.questName',data:function(){for(var a={},b=[],c=0;c<b.length;c+=1)a[b[c][0]]=b[c][1];return a}(),failGracefully:!0},f),f.append('</a>'),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('44267a'),arg0:e.toString(),arg1:f.toString(),noAutoEscape:!0},c)}return b?'':c.toString()},jive.eae.digest.subItem.questCompleted}),define('soy!jive.eae.digest.subItem.containerCreated',['soyDeps','soy!jive.shared.displayutil.userDisplayNameLink'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.containerCreated=function(b,c){var d=c||new soy.StringBuilder,e=new soy.StringBuilder('<a href="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL)),'" class="jivecontainerTT-hover-container jive-container-link" data-objectId="',soy.$$escapeHtmlAttribute(b.activity.content.id),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activity.content.objectType),'"><span class="jive-icon-med ',soy.$$escapeHtmlAttribute(b.activity.content.jiveObjectCSS),'"></span><span class="j-item">',soy.$$escapeHtml(b.activity.content.subject),'</span></a>');if(e=e.toString(),b.user.id==b.activity.activityUser.id)d.append(soy.$$escapeHtml(a._i18n('21c0ee',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(e)])));else{var f=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,f),f=f.toString(),d.append(soy.$$escapeHtml(a._i18n('6f8522',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(f),new soydata.VERY_UNSAFE.ordainSanitizedHtml(e)])))}return c?'':d.toString()},jive.eae.digest.subItem.containerCreated}),define('soy!jive.eae.digest.subItem.appDigest',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.appDigest=function(a,b){var c=b||new soy.StringBuilder;if(a.activity.content.summary){if(a.activity.content.meta)for(var d=a.activity.content.meta,e=d.length,f=0;e>f;f++){var g=d[f];c.append(111==g.objectType?'<img src="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(g.imageThumbnailUrl))+'" class="jive-icon-med jive-ext-icon-16" alt=""/>':'')}c.append(soy.$$filterNoAutoescape(a.activity.content.summary))}return b?'':c.toString()},jive.eae.digest.subItem.appDigest}),define('soy!jive.eae.digest.subItem.content',['soyDeps','soy!jive.eae.common.activityHeadingHref','soy!jive.eae.common.contentTypeDisplayName','soy!jive.shared.displayutil.renderIconElement'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.content=function(a,b){var c=b||new soy.StringBuilder;return a.activity.content.activityIcon?(jive.shared.displayutil.renderIconElement({icon:a.activity.content.activityIcon},c),c.append(' ')):(c.append('<span title=\''),jive.eae.common.contentTypeDisplayName(a,c),c.append('\' role=\'img\' class="jive-icon-med ',soy.$$escapeHtmlAttribute(a.activity.content.jiveObjectCSS),' acticon"></span>')),a.activity.content.subjectIsHtml?c.append(soy.$$filterNoAutoescape(a.activity.content.htmlSubject)):(c.append('<a href="'),jive.eae.common.activityHeadingHref(soy.$$augmentMap(a,{url:a.activity.content.jiveObjectURL,source:'stream'}),c),c.append('">',soy.$$filterNoAutoescape(a.activity.content.subject),'</a>')),b?'':c.toString()},jive.eae.digest.subItem.content}),define('soy!jive.people.profile.imageProfileUrl',['soyDeps'],function(a){return jive.namespace.call(this,'jive.people.profile'),jive.people.profile.imageProfileUrl=function(a,b){a=a||{};var c=b||new soy.StringBuilder;return c.append(a.profileImage&&a.profileImage.visible?soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,'/profile-image-display.jspa?imageID='+a.profileImage.id+'&size='+a.size)):soy.$$escapeHtml(jive.soy.func.resourceUrl('/images/jive-profile-default-portrait.png'))),b?'':c.toString()},jive.people.profile.imageProfileUrl}),define('soy!jive.eae.digest.subItem.people',['soyDeps','soy!jive.people.profile.imageProfileUrl','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.userDisplayName'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.people=function(a,b){var c=b||new soy.StringBuilder;return a.activityContainer.trending?(c.append('<span class="j-act-discovery-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(a.activity.activityUser,{size:46,currentUserPartner:a.user.partner}),c),c.append('</span>')):(c.append('<div class="j-act-prof-image"><a href="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,'/people/'+encodeURIComponent(a.activity.activityUser.username))),'" style="background-image:url('),jive.people.profile.imageProfileUrl({profileImage:function(){for(var b={},c=[['id',a.activity.content.id],['visible',501==a.activity.content.objectType]],d=0;d<c.length;d+=1)b[c[d][0]]=c[d][1];return b}(),size:350},c),c.append(')" class="j-prof-img"><span class="font-color-white">'),jive.shared.displayutil.userDisplayName(a.activity.activityUser,c),c.append('</span></a></div>')),b?'':c.toString()},jive.eae.digest.subItem.people}),define('soy!jive.eae.digest.subItem.places',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.places=function(a,b){var c=b||new soy.StringBuilder;c.append('<div class="j-place-thumb">');var d=new soy.StringBuilder(a.activity.content.groupImage?soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,a.activity.content.groupImage)):soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,'/images/default-group-large.png')));return d=d.toString(),c.append('<a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,a.activity.content.jiveObjectURL))),'" class="j-place-photo"><img src="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(d)),'" width="200"  alt=""/><span class="j-discovery-place-subject">',soy.$$escapeHtml(a.activity.content.subject),'</span></a></div>'),b?'':c.toString()},jive.eae.digest.subItem.places}),define('soy!jive.eae.digest.subItem.discoveryStream',['soyDeps','soy!jive.eae.digest.subItem.content','soy!jive.eae.digest.subItem.people','soy!jive.eae.digest.subItem.places'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.discoveryStream=function(a,b){var c=b||new soy.StringBuilder;return'people'==a.activityContainer.discoveryType?jive.eae.digest.subItem.people(a,c):'places'==a.activityContainer.discoveryType?jive.eae.digest.subItem.places(a,c):jive.eae.digest.subItem.content(a,c),b?'':c.toString()},jive.eae.digest.subItem.discoveryStream}),define('soy!jive.eae.digest.subItem.groupedTags',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.groupedTags=function(b,c){for(var d=c||new soy.StringBuilder,e=b.groupedTags,f=e.length,g=0;f>g;g++){var h=e[g];d.append(h&&(g<b.groupAfterNum||g==b.groupAfterNum&&b.groupedTags.length==b.groupAfterNum+1)?(g==f-1&&b.groupedTags.length>1?soy.$$escapeHtml(a._i18n('3b6373',[]))+' ':'')+'<a class="j-item" href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'people?filterID=all~skill['+encodeURIComponent(h)+']')))+'">'+soy.$$escapeHtml(h)+'</a>'+(b.groupedTags.length!=b.groupAfterNum+1&&g!=b.groupAfterNum-1||b.groupedTags.length==b.groupAfterNum+1&&g!=b.groupAfterNum?(b.groupedTags.length>2?',':'')+' ':''):'')}if(b.groupedTags.length>b.groupAfterNum+1){d.append(' ',soy.$$escapeHtml(a._i18n('3b6373',[])),' <a href=\'#\' class="js-show-grouped-users">',soy.$$escapeHtml(b.groupedTags.length-b.groupAfterNum),' ',b.groupedTags.length>b.groupAfterNum+1?soy.$$escapeHtml(a._i18n('3d6825',[])):soy.$$escapeHtml(a._i18n('e8a1ea',[])),'</a><div class="js-grouped-users-popover" style="display:none"><ul class="j-grouped-user-list j-simple-list">');for(var i=b.groupedTags,j=i.length,k=0;j>k;k++){var l=i[k];d.append(l&&k>=b.groupAfterNum?'<li class="j-grouped-user"><a class="j-item" href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'people?filterID=all~skill['+encodeURIComponent(l)+']')))+'">'+soy.$$escapeHtml(l)+'</a></li>':'')}d.append('</ul></div>')}return c?'':d.toString()},jive.eae.digest.subItem.groupedTags}),define('soy!jive.eae.digest.subItem.skillAdded',['soyDeps','soy!jive.eae.digest.subItem.groupedTags','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.skillAdded=function(a,b){var c=b||new soy.StringBuilder;if(a.user.id==a.activity.activityUser.id){var d=new soy.StringBuilder;a.activity.groupedItems.length>1?jive.eae.digest.subItem.groupedTags({groupedTags:a.activity.groupedItems,groupAfterNum:3},d):d.append('<a class="j-item" href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'people?filterID=all~skill'+encodeURIComponent('['+a.activity.content.rawTag+']')))),'">',soy.$$filterNoAutoescape(a.activity.content.plainSubject),'</a>'),jive.shared.soy.i18nHelper({i18nKey:a.activity.groupedItems.length>1?soy.$$escapeHtml('4ec5f4'):soy.$$escapeHtml('0e6dab'),arg0:d.toString(),noAutoEscape:!0},c)}else{var e=new soy.StringBuilder;a.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:a.activity.content},e):jive.shared.displayutil.userDisplayNameLink(a.activity.activityUser,e);var f=new soy.StringBuilder;a.activity.groupedItems.length>1?jive.eae.digest.subItem.groupedTags({groupedTags:a.activity.groupedItems,groupAfterNum:3},f):f.append('<a class="j-item" href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'people?filterID=all~skill'+encodeURIComponent('['+a.activity.content.rawTag+']')))),'">',soy.$$filterNoAutoescape(a.activity.content.plainSubject),'</a>'),jive.shared.soy.i18nHelper({i18nKey:a.activity.groupedItems.length>1?soy.$$escapeHtml('91b820'):soy.$$escapeHtml('0e4a77'),arg0:e.toString(),arg1:f.toString(),noAutoEscape:!0},c)}return b?'':c.toString()},jive.eae.digest.subItem.skillAdded}),define('soy!jive.eae.digest.subItem.acclaimI18nHelper',['soyDeps','soy!jive.shared.displayutil.userDisplayNameLink'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.acclaimI18nHelper=function(b,c){var d=c||new soy.StringBuilder,e=new soydata.VERY_UNSAFE.ordainSanitizedHtml(b.likedContentString),f=new soydata.VERY_UNSAFE.ordainSanitizedHtml(b.users),g=b.likedContent.i18nContentCode;if(b.displayContentOwner)if(b.yourAcclaim)d.append(b.isUsersMultiple?soy.$$filterNoAutoescape(a._i18n(a.getMinKey('eae.acclaim.others.like.your.'+g),[f,e])):soy.$$filterNoAutoescape(a._i18n(a.getMinKey('eae.acclaim.other.likes.your.'+g),[f,e])));else{var h=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(b.likedContentOwner,h),h=h.toString();var i=new soydata.VERY_UNSAFE.ordainSanitizedHtml(h);d.append(b.isLikerYou?soy.$$filterNoAutoescape(a._i18n(a.getMinKey('eae.acclaim.you.like.others.'+g),[i,e])):b.isUsersMultiple?soy.$$filterNoAutoescape(a._i18n(a.getMinKey('eae.acclaim.others.like.others.'+g),[f,i,e])):soy.$$filterNoAutoescape(a._i18n(a.getMinKey('eae.acclaim.other.likes.others.'+g),[f,i,e])))}else d.append(b.isLikerYou?soy.$$filterNoAutoescape(a._i18n(a.getMinKey('eae.acclaim.you.like.unknown.'+g),[e])):b.isUsersMultiple?soy.$$filterNoAutoescape(a._i18n(a.getMinKey('eae.acclaim.others.like.unknown.'+g),[f,e])):soy.$$filterNoAutoescape(a._i18n(a.getMinKey('eae.acclaim.other.likes.unknown.'+g),[f,e])));return c?'':d.toString()},jive.eae.digest.subItem.acclaimI18nHelper}),define('soy!jive.eae.digest.subItem.acclaim',['soyDeps','soy!jive.eae.common.groupedUsers','soy!jive.eae.digest.subItem.acclaimI18nHelper','soy!jive.shared.displayutil.renderIconElement','soy!jive.shared.displayutil.userDisplayNameLink'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.acclaim=function(a,b){var c=b||new soy.StringBuilder,d=new soy.StringBuilder;a.activity.groupedUsers&&a.activity.groupedUsers.length>1?jive.eae.common.groupedUsers({groupedUserList:a.activity.groupedUsers,groupAfterNum:3,user:a.user},d):jive.shared.displayutil.userDisplayNameLink(a.activity.activityUser,d),d=d.toString();var e=new soy.StringBuilder,f=a.activity.content.likedContent.jiveObjectURL.split(new RegExp('#','')),g=new soy.StringBuilder(2==f.length?'#'+soy.$$escapeHtml(f[1]):'');return g=g.toString(),e.append(a.user&&a.user.id==a.activity.activityUser.id||a.userId&&a.userId==a.activity.activityUser.id?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,f[0],{sr:'stream'})+g)+'">':'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,f[0],{sr:'stream',ru:a.activity.activityUser.id})+g)+'">'),a.activity.content.likedContent.jiveObjectIconLink?e.append(-1!=a.activity.content.likedContent.jiveObjectIconLink.indexOf('<img')?soy.$$filterNoAutoescape(a.activity.content.likedContent.jiveObjectIconLink):'<img style="margin:-1px 5px 0 0;" src="'+soy.$$filterNoAutoescape(a.activity.content.likedContent.jiveObjectIconLink)+'" alt=""/>'):a.activity.content.likedContent.jiveObjectIconElement?jive.shared.displayutil.renderIconElement({icon:a.activity.content.likedContent.jiveObjectIconElement},e):e.append('<span class="',soy.$$escapeHtmlAttribute(a.activity.content.likedContent.jiveObjectCSS),'"></span>'),e.append('<span class="j-item">',soy.$$filterNoAutoescape(a.activity.content.likedContent.subject),'</span></a>'),e=e.toString(),jive.eae.digest.subItem.acclaimI18nHelper(soy.$$augmentMap(a.activity.content,{users:d,likedContentString:e,isLikerYou:a.user&&a.user.id==a.activity.activityUser.id||a.userId&&a.userId==a.activity.activityUser.id,isUsersMultiple:a.activity.groupedUsers&&a.activity.groupedUsers.length>1}),c),b?'':c.toString()},jive.eae.digest.subItem.acclaim}),define('soy!jive.eae.digest.subItem.endorsementAdded',['soyDeps','soy!jive.eae.common.groupedUsers','soy!jive.eae.digest.subItem.skillAdded','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.endorsementAdded=function(a,b){var c=b||new soy.StringBuilder;if(a.activity.groupedItems.length>0||a.activity.content.target.id==a.activity.activityUser.id)jive.eae.digest.subItem.skillAdded(a,c);else if(a.activity.content.target.id==a.user.id){var d=new soy.StringBuilder;a.activity.groupedUsers&&a.activity.groupedUsers.length?jive.eae.common.groupedUsers({groupedUserList:a.activity.groupedUsers,groupAfterNum:3,user:a.user},d):jive.shared.displayutil.userDisplayNameLink(a.activity.activityUser,d),jive.shared.soy.i18nHelper({i18nKey:a.activity.groupedUsers&&a.activity.groupedUsers.length>1?soy.$$escapeHtml('0c171f'):soy.$$escapeHtml('fa195b'),arg0:d.toString(),arg1:'<a class="j-item" href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'people?filterID=all~skill'+encodeURIComponent('['+a.activity.content.rawTag+']'))))+'">'+soy.$$filterNoAutoescape(a.activity.content.plainSubject)+'</a>',noAutoEscape:!0},c)}else if(a.activity.groupedUsers&&a.activity.groupedUsers.length>1||a.user.id!=a.activity.activityUser.id){var e=new soy.StringBuilder;a.activity.groupedUsers&&a.activity.groupedUsers.length?jive.eae.common.groupedUsers({groupedUserList:a.activity.groupedUsers,groupAfterNum:3,user:a.user},e):jive.shared.displayutil.userDisplayNameLink(a.activity.activityUser,e);var f=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(a.activity.content.target,f),jive.shared.soy.i18nHelper({i18nKey:a.activity.groupedUsers&&a.activity.groupedUsers.length>1?soy.$$escapeHtml('a2038f'):soy.$$escapeHtml('2389b1'),arg0:e.toString(),arg1:f.toString(),arg2:'<a class="j-item" href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'people?filterID=all~skill'+encodeURIComponent('['+a.activity.content.rawTag+']'))))+'">'+soy.$$filterNoAutoescape(a.activity.content.plainSubject)+'</a>',noAutoEscape:!0},c)}else{var g=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(a.activity.content.target,g),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('59b511'),arg0:g.toString(),arg1:'<a class="j-item" href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'people?filterID=all~skill'+encodeURIComponent('['+a.activity.content.rawTag+']'))))+'">'+soy.$$filterNoAutoescape(a.activity.content.plainSubject)+'</a>',noAutoEscape:!0},c)}return b?'':c.toString()},jive.eae.digest.subItem.endorsementAdded}),define('soy!jive.eae.digest.subItem.welcome',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.welcome=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('577d49',[]))),c?'':d.toString()},jive.eae.digest.subItem.welcome}),define('soy!jive.eae.digest.subItem.userRelationship',['soyDeps','soy!jive.eae.common.groupedUsers','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.userRelationship=function(a,b){var c=b||new soy.StringBuilder,d=new soy.StringBuilder;if(a.user.id!=a.activity.content.relatedUser.id&&jive.shared.displayutil.userDisplayNameLink(a.activity.content.relatedUser,d),d=d.toString(),a.user.id==a.activity.activityUser.id)jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('115ca3'),arg0:d,noAutoEscape:!0},c);else if(a.activity.groupedUsers&&a.activity.groupedUsers.length>1)if(a.user.id==a.activity.content.relatedUser.id){var e=new soy.StringBuilder;jive.eae.common.groupedUsers({groupedUserList:a.activity.groupedUsers,groupAfterNum:3,user:a.user},e),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('17ffaf'),arg0:e.toString(),noAutoEscape:!0},c)}else{var f=new soy.StringBuilder;jive.eae.common.groupedUsers({groupedUserList:a.activity.groupedUsers,groupAfterNum:3,user:a.user},f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('dd215b'),arg0:f.toString(),arg1:d,noAutoEscape:!0},c)}else if(a.user.id==a.activity.content.relatedUser.id){var g=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(a.activity.activityUser,g),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('0b6e17'),arg0:g.toString(),noAutoEscape:!0},c)}else{var h=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(a.activity.activityUser,h),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('4f3dc9'),arg0:h.toString(),arg1:d,noAutoEscape:!0},c)}return b?'':c.toString()},jive.eae.digest.subItem.userRelationship}),define('soy!jive.eae.digest.subItem.pbActivity',['soyDeps','soy!jive.shared.displayutil.userDisplayNameLink'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.pbActivity=function(b,c){var d=c||new soy.StringBuilder;if('grouped_social_news'==b.fromTemplate){if(b.activity.content.notification.userLevel){var e=new soy.StringBuilder('<img class="j-quest-badge" src="',soy.$$escapeHtml(b.activity.content.notification.userLevel.iconUrl),'" alt=""/><span class="j-quest-title">',soy.$$escapeHtml(b.activity.content.notification.userLevel.name),'</span>');if(e=e.toString(),b.user.id==b.activity.activityUser.id)d.append(soy.$$escapeHtml(a._i18n('a8636b7',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(e)])));else{var f=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,f),f=f.toString(),d.append(soy.$$escapeHtml(a._i18n('98e3ed',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(f),new soydata.VERY_UNSAFE.ordainSanitizedHtml(e)])))}}for(var g=b.activity.content.notification.strategies,h=g.length,i=0;h>i;i++){var j=g[i],k=new soy.StringBuilder('<a href="#" class="js-quest" data-type="strategy" data-badge-id="',soy.$$escapeHtml(j.badge.id),'" data-user-id="',soy.$$escapeHtml(b.activity.activityUser.id),'"><img class="j-quest-badge" src="',soy.$$escapeHtml(j.badge.iconUrl),'" alt=""/><span class="j-item">',soy.$$escapeHtml(j.displayName),'</span></a>');if(k=k.toString(),b.user.id==b.activity.activityUser.id)d.append(soy.$$escapeHtml(a._i18n('e740fa',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(k)])));else{var l=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,l),l=l.toString(),d.append(soy.$$escapeHtml(a._i18n('e2c347',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(l),new soydata.VERY_UNSAFE.ordainSanitizedHtml(k)])))}}for(var m=b.activity.content.notification.handoutBadges,n=m.length,o=0;n>o;o++){var p=m[o],q=new soy.StringBuilder('<img class="j-quest-badge" src="',soy.$$escapeHtml(p.badge.iconUrl),'" alt=""/><span class="j-quest-title">',soy.$$escapeHtml(p.badge.displayName),'</span>');if(q=q.toString(),b.user.id==b.activity.activityUser.id)d.append(soy.$$escapeHtml(a._i18n('aed5aa',[p.level,new soydata.VERY_UNSAFE.ordainSanitizedHtml(q)])));else{var r=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,r),r=r.toString(),d.append(soy.$$escapeHtml(a._i18n('969606',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(r),p.level,new soydata.VERY_UNSAFE.ordainSanitizedHtml(q)])))}}for(var s=b.activity.content.notification.userBadges,t=s.length,u=0;t>u;u++){var v=s[u],w=new soy.StringBuilder('<a href="#" class="js-quest" data-type="mission" data-badge-id="',soy.$$escapeHtml(v.badge.id),'" data-user-id="',soy.$$escapeHtml(b.activity.activityUser.id),'"><img class="j-quest-badge" src="',soy.$$escapeHtml(v.badge.iconUrl),'" alt=""/><span class="j-item">',soy.$$escapeHtml(v.badge.displayName),'</span></a>');if(w=w.toString(),b.user.id==b.activity.activityUser.id)d.append(soy.$$escapeHtml(a._i18n('55cf20',[v.level,new soydata.VERY_UNSAFE.ordainSanitizedHtml(w)])));else{var x=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,x),x=x.toString(),d.append(soy.$$escapeHtml(a._i18n('b0605b',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(x),v.level,new soydata.VERY_UNSAFE.ordainSanitizedHtml(w)])))}}for(var y=b.activity.content.notification.quests,z=y.length,A=0;z>A;A++){var B=y[A],C=new soy.StringBuilder('<a href="#" class="js-quest" data-type="quest" data-badge-id="',soy.$$escapeHtml(B.badge.id),'" data-user-id="',soy.$$escapeHtml(b.activity.activityUser.id),'"><img class="j-quest-badge" src="',soy.$$escapeHtml(B.badge.iconUrl),'" alt=""/><span class="j-item">',soy.$$escapeHtml(B.displayName),'</span></a>');if(C=C.toString(),b.user.id==b.activity.activityUser.id)d.append(soy.$$escapeHtml(a._i18n('8735bd',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(C)])));else{var D=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,D),D=D.toString(),d.append(soy.$$escapeHtml(a._i18n('82f811',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(D),new soydata.VERY_UNSAFE.ordainSanitizedHtml(C)])))}}d.append('<script>require([\'apps/playbox/modal/modal_controller\'], function(modalController){modalController.modalHandler();});</script>')}return c?'':d.toString()},jive.eae.digest.subItem.pbActivity}),define('soy!jive.eae.digest.subItem.bookmark',['soyDeps','soy!jive.eae.common.groupedUsers','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.bookmark=function(b,c){var d=c||new soy.StringBuilder;if(b.activity.content.displayFavoritedContent){var e=new soy.StringBuilder('<span title=\'',soy.$$escapeHtmlAttribute(a._i18n('97babe',[])),'\' role=\'img\' class="',soy.$$escapeHtmlAttribute(b.activity.content.favoritedContent.jiveObjectCSS),'"></span><a href="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.favoritedContent.jiveObjectURL)),'" title="',soy.$$filterNoAutoescape(b.activity.content.subject),'"><span class="j-item">',soy.$$filterNoAutoescape(b.activity.content.subject),'</span></a>');if(e=e.toString(),b.user.id==b.activity.activityUser.id)jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('2dce59'),arg0:e,noAutoEscape:!0},d);else if(b.activity.groupedUsers&&b.activity.groupedUsers.length>1){var f=new soy.StringBuilder;jive.eae.common.groupedUsers({
groupedUserList:b.activity.groupedUsers,groupAfterNum:3,user:b.user},f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('d1f247'),arg0:f.toString(),arg1:e,noAutoEscape:!0},d)}else{var g=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,g),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('e5ac48'),arg0:g.toString(),arg1:e,noAutoEscape:!0},d)}}return c?'':d.toString()},jive.eae.digest.subItem.bookmark}),define('soy!jive.eae.digest.subItem.profileUpdated',['soyDeps','soy!jive.eae.common.groupedUsers','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.profileUpdated=function(a,b){var c=b||new soy.StringBuilder,d=new soy.StringBuilder;return a.activity.groupedUsers&&0!=a.activity.groupedUsers.length?jive.eae.common.groupedUsers({groupedUserList:a.activity.groupedUsers,groupAfterNum:3,user:a.user},d):jive.shared.displayutil.userDisplayNameLink(a.activity.activityUser,d),jive.shared.soy.i18nHelper({i18nKey:a.activity.content.owner.id==a.user.id&&(!a.activity.groupedUsers||a.activity.groupedUsers.length<2)?soy.$$escapeHtml('fb8cd8'):a.activity.groupedViewerIndex>=0&&a.activity.groupedViewerIndex<3?soy.$$escapeHtml('61ccaa'):a.activity.groupedUsers.length>1?soy.$$escapeHtml('101a6e'):soy.$$escapeHtml('575deb'),arg0:d.toString(),noAutoEscape:!0},c),b?'':c.toString()},jive.eae.digest.subItem.profileUpdated}),define('soy!jive.eae.digest.subItem.socialGroupJoin',['soyDeps','soy!jive.eae.common.groupedUsers','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.socialGroupJoin=function(a,b){var c=b||new soy.StringBuilder,d=new soy.StringBuilder('<a href="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.activity.content.jiveObjectURL)),'" class="jivecontainerTT-hover-container jive-container-link" data-objectId="',soy.$$escapeHtml(a.activity.content.id),'" data-objectType="',soy.$$escapeHtml(a.activity.content.objectType),'"><span class="jive-icon-med ',soy.$$escapeHtml(a.activity.content.jiveObjectCSS),'"></span><span class="j-item">',soy.$$filterNoAutoescape(a.activity.content.groupName),'</span></a>');if(d=d.toString(),a.user.id==a.activity.activityUser.id)jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('1851b6'),arg0:d,noAutoEscape:!0},c);else if(a.activity.groupedUsers&&a.activity.groupedUsers.length>1){var e=new soy.StringBuilder;jive.eae.common.groupedUsers({groupedUserList:a.activity.groupedUsers,groupAfterNum:3,user:a.user},e),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('475ab5'),arg0:e.toString(),arg1:d,noAutoEscape:!0},c)}else{var f=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(a.activity.activityUser,f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('6f432b'),arg0:f.toString(),arg1:d,noAutoEscape:!0},c)}return b?'':c.toString()},jive.eae.digest.subItem.socialGroupJoin}),define('soy!jive.eae.digest.subItem.avatarModified',['soyDeps','soy!jive.eae.common.groupedUsers','soy!jive.shared.displayutil.avatar','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.avatarModified=function(a,b){var c=b||new soy.StringBuilder;c.append('<div class="j-act-prof-avatar clearfix"><p>');var d=new soy.StringBuilder;jive.eae.common.groupedUsers({groupedUserList:a.activity.groupedUsers,groupAfterNum:1e4,user:a.user},d),jive.shared.soy.i18nHelper({i18nKey:-1!=a.activity.groupedViewerIndex?a.activity.groupedUsers.length>1?soy.$$escapeHtml('0178f3'):soy.$$escapeHtml('a688ee'):a.activity.groupedUsers.length>1?soy.$$escapeHtml('96859f'):soy.$$escapeHtml('3efe25'),arg0:d.toString(),noAutoEscape:!0},c),c.append('</p><div class="jive-avatar j-act-avatar-modified">');for(var e=a.activity.groupedUsers,f=e.length,g=0;f>g;g++){var h=e[g];jive.shared.displayutil.avatar(soy.$$augmentMap(h,{size:46}),c)}return c.append('</div></div>'),b?'':c.toString()},jive.eae.digest.subItem.avatarModified}),define('soy!jive.eae.digest.subItem.nitroActivity',['soyDeps','soy!jive.eae.common.groupedUsers','soy!jive.shared.displayutil.userDisplayNameLink'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.nitroActivity=function(b,c){var d=c||new soy.StringBuilder;return b.activity.groupedUsers&&b.activity.groupedUsers.length?jive.eae.common.groupedUsers({groupedUserList:b.activity.groupedUsers,user:b.user,othersListLinkID:soy.$$escapeHtml(jive.soy.func.randomString()),groupAfterNum:3},d):jive.shared.displayutil.userDisplayNameLink(soy.$$augmentMap(b.activity.activityUser,{displayNameOverride:b.user.id==b.activity.activityUser.id?soy.$$escapeHtml(a._i18n('1798fd',[])):''}),d),d.append(' <span class="j-nitro-activity"><a href="#" class="nitro-challenge-link" data-challenge-name="',soy.$$escapeHtml(encodeURIComponent(b.activity.content.name)),'"><span class="j-nitro-activity-type">',soy.$$escapeHtml(b.activity.content.plainSubject),'</span>',b.activity.content.imagePath?'<img src="'+soy.$$escapeHtml(b.activity.content.imagePath)+'" class="j-nitro-activity-icon" alt="'+soy.$$escapeHtml(b.activity.content.plainSubject)+'" title="'+soy.$$escapeHtml(b.activity.content.plainSubject)+'"/>':'','<span class="j-nitro-activity-name">',soy.$$escapeHtml(b.activity.content.body),'</span></a></span>'),c?'':d.toString()},jive.eae.digest.subItem.nitroActivity}),define('soy!jive.eae.digest.subItem.event',['soyDeps','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.event=function(a,b){var c=b||new soy.StringBuilder;if('grouped_social_news'==a.fromTemplate)if(a.user.id==a.activity.activityUser.id)jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('f8081f'),arg0:'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.activity.content.jiveObjectURL))+'"><span class="jive-icon med '+soy.$$escapeHtmlAttribute(a.activity.content.jiveObjectCSS)+'"></span><span class="j-item">'+soy.$$filterNoAutoescape(a.activity.content.subject)+'</span></a>',noAutoEscape:!0},c);else{var d=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(a.activity.activityUser,d),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('587bfd'),arg0:d.toString(),arg1:'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.activity.content.jiveObjectURL))+'"><span class="jive-icon med '+soy.$$escapeHtmlAttribute(a.activity.content.jiveObjectCSS)+'"></span><span class="j-item">'+soy.$$filterNoAutoescape(a.activity.content.subject)+'</span></a>',noAutoEscape:!0},c)}return b?'':c.toString()},jive.eae.digest.subItem.event}),define('soy!jive.eae.digest.subItem.statusLevel',['soyDeps','soy!jive.eae.common.groupedUsers','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.statusLevel=function(a,b){var c=b||new soy.StringBuilder,d=new soy.StringBuilder('<div class="j-status-container"><span class="j-status-img"><img src="',soy.$$escapeHtml(jive.soy.func.resourceUrl(a.activity.content.imagePath)),'" alt="',soy.$$escapeHtml(a.activity.content.statusLevelName),'" title="',soy.$$escapeHtml(a.activity.content.statusLevelName),'"/></span><span class="j-status-levels">',soy.$$escapeHtml(a.activity.content.statusLevelName),'</span></div>');if(d=d.toString(),a.user.id==a.activity.activityUser.id)jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('c17a17'),arg0:d,noAutoEscape:!0},c);else if(a.activity.groupedUsers&&a.activity.groupedUsers.length){var e=new soy.StringBuilder;jive.eae.common.groupedUsers({groupedUserList:a.activity.groupedUsers,groupAfterNum:3,user:a.user},e),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('aee043'),arg0:e.toString(),arg1:d,noAutoEscape:!0},c)}else{var f=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(a.activity.activityUser,f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('8894db'),arg0:f.toString(),arg1:d,noAutoEscape:!0},c)}return b?'':c.toString()},jive.eae.digest.subItem.statusLevel}),define('soy!jive.eae.common.activityContentCommon',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.activityContentCommon=function(a,b){var c=b||new soy.StringBuilder;return c.append(''!=a.contentTxt?'<p>'+soy.$$filterNoAutoescape(a.contentTxt)+(a.hasMoreText?'&hellip;':'')+'</p>':''),b?'':c.toString()},jive.eae.common.activityContentCommon}),define('soy!jive.eae.shared.subactivity.bookmark',['soyDeps','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContentCommon','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.eae.common.renderStreamAttachments','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.shared.subactivity'),jive.eae.shared.subactivity.bookmark=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node',b.addedInline?' j-js-addedInline':'',b.activity.content.bookmarkedContent?' origin':'',b.activityContainer.canReply?' j-act-rte-replyable':'','communications'==b.streamType&&(b.activity.content.typeMention||b.activity.containsMention)?' j-act-contains-mention':'','communications'==b.streamType&&(b.activity.current||b.forceCurrent)?' j-current':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-objectID="',b.activity.content.bookmarkedContent?soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.id):b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.id):soy.$$escapeHtmlAttribute(b.activity.targetObjectID),'" data-objectType="',b.activity.content.bookmarkedContent?soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.objectType):b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.objectType):soy.$$escapeHtmlAttribute(b.activity.targetObjectType),'" data-current="',b.activity.current||b.forceCurrent?'true':'','" style="',b.isHidden?'display:none;':'','"><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="','bookmarked'==b.activity.type||b.activity.content.deleted?'j-mod font-color-meta-light':'reply j-act-comment','">'),b.activity.content.deleted)jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:null!=b.activity.content.deletedType?b.activity.content.deletedType:'comment',moderated:!1},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])));else if('bookmarked'==b.activity.type){if(d.append('<span class="jive-icon-sml jive-icon-bookmark-ribbon-grey"></span>'),b.activity.activityUser.id==b.user.id)d.append(soy.$$escapeHtml(a._i18n('334e39',[])));else{var e=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.content},e):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,e),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('ee9d3e'),arg0:e.toString(),noAutoEscape:'true'},d)}d.append(' <span class="j-act-time font-color-meta-light">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else{if(d.append('communications'==b.streamType&&(b.activity.content.typeMention||b.activity.containsMention)?'<div class="j-act-mentioned font-color-okay"><span class="jive-icon-med jive-icon-mention-label"></span><span class="j-mention-label">'+soy.$$escapeHtml(a._i18n('99950f',[]))+'</span></div>':'','<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-excerpt',b.activity.content.summaryIsExcerpt?'':' j-non-excerpt',' clearfix" ',b.hideStub?'style="display:none;"':'','>'),!b.hideStub){var f=new soy.StringBuilder;jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},f),jive.eae.common.activityContentCommon({contentTxt:f.toString(),hasMoreText:b.activity.hasMoreText},d)}d.append('</div><div class="j-act-sub-preview" ',b.hideStub?'':'style="display:none;"','><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d),d.append('<span class="j-act-time font-color-meta-light"> ','mentioned'==b.activity.type&&b.activity.content.context.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.context.jiveObjectURL))+'" class="font-color-meta-light">':b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'mentioned'==b.activity.type&&b.activity.content.context.jiveObjectURL||b.activity.content.jiveObjectURL?'</a>':'','</span></div><div class="j-excerpt-full-html-content">'),b.hideStub&&jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div>'),jive.eae.common.renderStreamAttachments({idPrefix:'expanded',object:b.activity.content,domIDPostfix:b.activity.domIDPostfix},d),d.append('<div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activity.parentActivity?b.activityContainer.jiveObject:b.activity.content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activity.activityUser.id,objectType:b.activity.content.typeMention?b.activity.content.context.objectType:b.activity.content.objectType,objectId:b.activity.content.typeMention?b.activity.content.context.id:b.activity.content.id,liked:b.activity.liked,likeCount:b.activity.likeCount,likable:b.activity.likable,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData},d),d.append('</div></div>')}return d.append('</div></div>'),c?'':d.toString()},jive.eae.shared.subactivity.bookmark}),define('soy!jive.eae.shared.subactivity.iconView',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.shared.subactivity'),jive.eae.shared.subactivity.iconView=function(a,b){var c=b||new soy.StringBuilder;return c.append('<a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(a.docUrl)),'" class="j-attach-anchor"><span class="j-act-bulk-title"><img src="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,'/'+a.icon)),'" class="jive-icon-med" alt=""/> <span class="lnk">',soy.$$escapeHtml(a.subject),'</span></span></a>'),b?'':c.toString()},jive.eae.shared.subactivity.iconView}),define('soy!jive.eae.shared.subactivity.thumbnailView',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.shared.subactivity'),jive.eae.shared.subactivity.thumbnailView=function(a,b){var c=b||new soy.StringBuilder;return c.append('<a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(a.docUrl)),'"',a.thumbnailUrl?'style="background-image: url('+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.thumbnailUrl))+');"':'','class="j-attach-anchor j-act-bulk-thumb"><span class="j-act-bulk-title"><img src="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,'/'+a.icon)),'" class="jive-icon-med" alt=""/> <span class="lnk">',soy.$$escapeHtml(a.subject),'</span></span></a>'),b?'':c.toString()},jive.eae.shared.subactivity.thumbnailView}),define('soy!jive.eae.shared.subactivity.bulkUpload',['soyDeps','soy!jive.eae.shared.subactivity.iconView','soy!jive.eae.shared.subactivity.thumbnailView'],function(a){return jive.namespace.call(this,'jive.eae.shared.subactivity'),jive.eae.shared.subactivity.bulkUpload=function(a,b){var c=b||new soy.StringBuilder;c.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(a.activity.content.domIDPostfix),'" class="j-act-node" data-extVisible="',soy.$$escapeHtmlAttribute(a.activity.visibleToExtCollaborator),'" data-extendedAuthors="',soy.$$escapeHtmlAttribute(a.activityContainer.warnVisibleToExtendedAuthors),'" data-objectID="',a.activity.content.typeMention?soy.$$escapeHtmlAttribute(a.activity.content.context.id):soy.$$escapeHtmlAttribute(a.activity.targetObjectID),'" data-objectType="',a.activity.content.typeMention?soy.$$escapeHtmlAttribute(a.activity.content.context.objectType):soy.$$escapeHtmlAttribute(a.activity.targetObjectType),'" data-current="',a.activity.current?'true':'','"><div id="excerpt_',soy.$$escapeHtmlAttribute(a.activity.content.domIDPostfix),'"><div class="j-act-sub-preview">');var d=a.activity.content;if('notification'==a.activity.type){var e=d.templateData.objData.displayName,f=d.templateData.objData.href;d.templateData.objData.thumbnailUrl?jive.eae.shared.subactivity.thumbnailView({subject:e,docUrl:f,thumbnailUrl:d.templateData.objData.thumbnailUrl,icon:d.jiveObjectIcon},c):jive.eae.shared.subactivity.iconView({subject:e,docUrl:f,icon:d.jiveObjectIcon},c)}else{var g=d.subject,h=d.jiveObjectURL;d.meta&&d.meta.length>0?jive.eae.shared.subactivity.thumbnailView({subject:g,docUrl:h,thumbnailUrl:d.meta[0].imageThumbnailUrl,icon:d.jiveObjectIcon},c):jive.eae.shared.subactivity.iconView({subject:g,docUrl:h,icon:d.jiveObjectIcon},c)}return c.append('</div></div></div>'),b?'':c.toString()},jive.eae.shared.subactivity.bulkUpload}),define('soy!jive.eae.shared.subactivity.statusUpdate',['soyDeps','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContentCommon','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.eae.common.renderStreamAttachments','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.containerDisplayNameLink','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.shared.subactivity'),jive.eae.shared.subactivity.statusUpdate=function(b,c){var d=c||new soy.StringBuilder;if(b.activityContainer&&b.activityContainer.jiveObject.id==b.activity.content.id&&b.activityContainer.jiveObject.objectType==b.activity.content.objectType);else{if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node',b.addedInline?' j-js-addedInline':'','communications'==b.streamType&&(b.activity.content.typeMention||b.activity.containsMention)?' j-act-contains-mention':'','communications'==b.streamType&&(b.activity.current||b.forceCurrent)?' j-current':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-objectID="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.id):soy.$$escapeHtmlAttribute(b.activity.targetObjectID),'" data-objectType="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.objectType):soy.$$escapeHtmlAttribute(b.activity.targetObjectType),'" data-current="',b.activity.current||b.forceCurrent?'true':'','" style="',b.isHidden?'display:none;':'','"><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="',b.activity.content.deleted||'moved'==b.activity.type?'j-mod font-color-meta-light':'reply j-act-comment','">'),b.activity.content.deleted)jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:null!=b.activity.content.deletedType?b.activity.content.deletedType:'comment',moderated:!1},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])));else if('moved'==b.activity.type){d.append('<span class="jive-icon-sml jive-glyph-edit"></span>');var e=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},e):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,e);var f=new soy.StringBuilder;jive.shared.displayutil.containerDisplayNameLink({container:b.activity.movedDestination?b.activity.movedDestination:b.activityContainer.container},f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('f8919c'),arg0:e.toString(),arg1:f.toString(),noAutoEscape:!0},d),d.append(' <span class="j-bullet">&#8226;</span> <span class="j-act-meta font-color-meta">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else{if(d.append(b.activity.content.typeMention||b.activity.containsMention?'<div class="j-act-mentioned font-color-okay"><span class="jive-icon-med jive-icon-mention-label"></span><span class="j-mention-label">'+soy.$$escapeHtml(a._i18n('99950f',[]))+'</span></div>':'','<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-excerpt',b.activity.content.summaryIsExcerpt?'':' j-non-excerpt',' clearfix" ',b.hideStub?'style="display:none;"':'','>'),!b.hideStub){var g=new soy.StringBuilder;jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},g),jive.eae.common.activityContentCommon({contentTxt:g.toString(),hasMoreText:b.activity.hasMoreText},d)}d.append('</div><div class="j-act-sub-preview" ',b.hideStub?'':'style="display:none;"','><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d),d.append('<span class="j-act-time font-color-meta-light">','mentioned'==b.activity.type&&b.activity.content.context.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.context.jiveObjectURL))+'" class="font-color-meta-light">':b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'mentioned'==b.activity.type&&b.activity.content.context.jiveObjectURL||b.activity.content.jiveObjectURL?'</a>':'','</span></div><div class="j-excerpt-full-html-content">'),b.hideStub&&jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div>'),jive.eae.common.renderStreamAttachments({idPrefix:'expanded',object:b.activity.content,domIDPostfix:b.activity.domIDPostfix},d),d.append('<div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activity.parentActivity?b.activityContainer.jiveObject:b.activity.content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activity.activityUser.id,objectType:b.activity.content.typeMention?b.activity.content.context.objectType:b.activity.content.objectType,objectId:b.activity.content.typeMention?b.activity.content.context.id:b.activity.content.id,liked:b.activity.liked,likeCount:b.activity.likeCount,likable:b.activity.likable,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData},d),d.append('</div></div>')}d.append('</div></div>')}return c?'':d.toString()},jive.eae.shared.subactivity.statusUpdate}),define('soy!jive.outcomes.helpful.msgHelpfulCount',['soyDeps'],function(a){return jive.namespace.call(this,'jive.outcomes.helpful'),jive.outcomes.helpful.msgHelpfulCount=function(b,c){var d=c||new soy.StringBuilder;return d.append(parseInt(b.helpfulCount,10)>0?b.displayOverall?soy.$$escapeHtml(a._i18n('71c05b',[b.helpfulCount,b.overallCount])):1==parseInt(b.helpfulCount,10)?soy.$$escapeHtml(a._i18n('996964',[b.helpfulCount])):soy.$$escapeHtml(a._i18n('c6876e',[b.helpfulCount])):''),c?'':d.toString()},jive.outcomes.helpful.msgHelpfulCount}),define('soy!jive.outcomes.helpful.helpfulCountRegion',['soyDeps','soy!jive.outcomes.helpful.msgHelpfulCount'],function(a){return jive.namespace.call(this,'jive.outcomes.helpful'),jive.outcomes.helpful.helpfulCountRegion=function(a,b){var c=b||new soy.StringBuilder;return c.append('<span class="js-outcome-helpful-counts-container j-outcome-helpful-counts-container-default font-color-okay',a.extraCss?' '+soy.$$escapeHtml(a.extraCss):'','" data-object-type="',soy.$$escapeHtml(a.objectType),'" data-object-id="',soy.$$escapeHtml(a.objectId),'" data-helpful-count="',soy.$$escapeHtml(a.helpfulCount),'" data-overall-count="',soy.$$escapeHtml(a.overallCount),'" data-display-overall="',soy.$$escapeHtml(a.displayOverall),'" >'),jive.outcomes.helpful.msgHelpfulCount(a,c),c.append('</span>'),b?'':c.toString()},jive.outcomes.helpful.helpfulCountRegion}),define('soy!jive.outcomes.helpful.displayHelpfulCounts',['soyDeps','soy!jive.outcomes.helpful.helpfulCountRegion'],function(a){return jive.namespace.call(this,'jive.outcomes.helpful'),jive.outcomes.helpful.displayHelpfulCounts=function(a,b){var c=b||new soy.StringBuilder;return jive.outcomes.helpful.helpfulCountRegion(soy.$$augmentMap(a,{extraCss:'j-outcome-helpful-counts-container'}),c),b?'':c.toString()},jive.outcomes.helpful.displayHelpfulCounts}),define('soy!jive.eae.common.activityHelpfulCounts',['soyDeps','soy!jive.outcomes.helpful.displayHelpfulCounts'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.activityHelpfulCounts=function(a,b){var c=b||new soy.StringBuilder;if(a.object.helpfulAcclaim&&a.object.helpfulAcclaim.enabled){var d=new soy.StringBuilder(a.object.unhelpfulAcclaim&&a.object.unhelpfulAcclaim.score?soy.$$escapeHtml(a.object.helpfulAcclaim.score+a.object.unhelpfulAcclaim.score):soy.$$escapeHtml(a.object.helpfulAcclaim.score));d=d.toString(),jive.outcomes.helpful.displayHelpfulCounts({objectType:a.objectType,objectId:a.objectId,helpfulCount:a.object.helpfulAcclaim.score,overallCount:d,displayOverall:a.object.unhelpfulAcclaim?a.object.unhelpfulAcclaim.enabled:!1},c)}return b?'':c.toString()},jive.eae.common.activityHelpfulCounts}),define('soy!jive.eae.shared.subactivity.discussion',['soyDeps','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContentCommon','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityHelpfulCounts','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.eae.common.renderStreamAttachments','soy!jive.eae.shared.subactivity.outcome','soy!jive.outcomes.action.actionButton','soy!jive.outcomes.badge.badgeContainer','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.containerDisplayNameLink','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.escapeHelper','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.shared.subactivity'),jive.eae.shared.subactivity.discussion=function(b,c){var d=c||new soy.StringBuilder;if(b.activity.content.typeOutcome)jive.eae.shared.subactivity.outcome(b,d);else if(b.activity.content.hasAcclaimedOutcome)jive.eae.shared.subactivity.outcome(soy.$$augmentMap(b,{activity:b.activity.content.acclaimedOutcomeActivity}),d);else{if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node',b.addedInline?' j-js-addedInline':'','correct_answer_set'==b.activity.type||'notification'==b.activity.type?' origin':'',b.activityContainer.canReply?' j-act-rte-replyable':'','communications'==b.streamType&&(b.activity.content.typeMention||b.activity.containsMention)?' j-act-contains-mention':'','communications'==b.streamType&&(b.activity.current||b.forceCurrent)?' j-current':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-extendedAuthors="',soy.$$escapeHtmlAttribute(b.activityContainer.warnVisibleToExtendedAuthors),'" data-objectID="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.id):soy.$$escapeHtmlAttribute(b.activity.content.id),'" data-objectType="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.objectType):soy.$$escapeHtmlAttribute(b.activity.content.objectType),'" data-current="',b.activity.current||b.forceCurrent?'true':'','" data-thread-id="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.threadID),'" style="',b.isHidden?'display:none;':'','"><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="',b.activity.content.deleted||'correct_answer_set'==b.activity.type||'notification'==b.activity.type||'moved'==b.activity.type||'correct_answer_removed'==b.activity.type?'j-mod font-color-meta-light':'reply j-act-comment',' ',b.activity.content.correctAnswer?'j-act-correct-answer':'','">'),b.activity.content.deleted)jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:null!=b.activity.content.deletedType?b.activity.content.deletedType:'reply',moderated:!1},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])));else if('moved'==b.activity.type){d.append('<span class="jive-icon-sml jive-glyph-edit"></span>');var e=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},e):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,e);var f=new soy.StringBuilder;jive.shared.displayutil.containerDisplayNameLink({container:b.activity.movedDestination?b.activity.movedDestination:b.activityContainer.container},f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('f8919c'),arg0:e.toString(),arg1:f.toString(),noAutoEscape:!0},d),d.append(' <span class="j-bullet">&#8226;</span> <span class="j-act-meta font-color-meta">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else if('correct_answer_set'==b.activity.type){d.append('<span class="jive-icon-sml jive-glyph-check actglyph"></span>');var g=new soy.StringBuilder,h=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},h):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,h),jive.shared.soy.escapeHelper({stringToEscape:h.toString()},g);var i=new soy.StringBuilder,j=new soy.StringBuilder;b.activity.content.parentAuthor.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.content.user},j):jive.shared.displayutil.userDisplayNameLink(b.activity.content.user,j),jive.shared.soy.escapeHelper({stringToEscape:j.toString()},i);var k=new soy.StringBuilder;jive.shared.soy.escapeHelper({stringToEscape:'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">'},k);var l=new soy.StringBuilder;jive.shared.soy.escapeHelper({stringToEscape:'</a>'},l),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('275a7a'),arg0:g.toString(),arg1:i.toString(),arg2:k.toString(),arg3:l.toString(),noAutoEscape:!0},d)}else if('correct_answer_removed'==b.activity.type){var m=new soy.StringBuilder,n=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},n):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,n),jive.shared.soy.escapeHelper({stringToEscape:n.toString()},m);var o=new soy.StringBuilder,p=new soy.StringBuilder;
b.activity.content.parentAuthor.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.content.user},p):jive.shared.displayutil.userDisplayNameLink(b.activity.content.user,p),jive.shared.soy.escapeHelper({stringToEscape:p.toString()},o);var q=new soy.StringBuilder;jive.shared.soy.escapeHelper({stringToEscape:'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">'},q);var r=new soy.StringBuilder;jive.shared.soy.escapeHelper({stringToEscape:'</a>'},r),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('89b3b7'),arg0:m.toString(),arg1:o.toString(),arg2:q.toString(),arg3:r.toString(),noAutoEscape:!0},d)}else if('notification'==b.activity.type){d.append('<span class="jive-icon-med jive-icon-collaboration-label actglyph"></span>');var s=new soy.StringBuilder,t=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},t):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,t),jive.shared.soy.escapeHelper({stringToEscape:t.toString()},s),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('052a24'),arg0:s.toString(),noAutoEscape:!0},d)}else{if(d.append('communications'==b.streamType&&(b.activity.content.typeMention||b.activity.containsMention)?'<div class="j-act-mentioned font-color-okay"><span class="jive-icon-med jive-icon-mention-label"></span><span class="j-mention-label">'+soy.$$escapeHtml(a._i18n('99950f',[]))+'</span></div>':'','<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-excerpt j-non-excerpt clearfix" ',b.hideStub?'style="display:none;"':'','>'),!b.hideStub){var u=new soy.StringBuilder;jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},u),jive.eae.common.activityContentCommon({contentTxt:u.toString(),hasMoreText:b.activity.hasMoreText},d)}d.append('</div><div class="j-act-sub-preview" ',b.hideStub?'':'style="display:none;"','><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d),d.append('<span class="j-act-time font-color-meta-light"> ','mentioned'==b.activity.type&&b.activity.content.context.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.context.jiveObjectURL))+'" class="font-color-meta-light">':b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'mentioned'==b.activity.type&&b.activity.content.context.jiveObjectURL||b.activity.content.jiveObjectURL?'</a>':'','</span></div><div class="j-excerpt-full-html-content">'),b.hideStub&&jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div>'),jive.eae.common.renderStreamAttachments({idPrefix:'expanded',object:b.activity.content,domIDPostfix:b.activity.domIDPostfix},d),jive.outcomes.badge.badgeContainer({objectType:b.activity.content.typeMention?b.activity.content.context.objectType:b.activity.content.objectType,objectId:b.activity.content.typeMention?b.activity.content.context.id:b.activity.content.id},d),jive.eae.common.activityHelpfulCounts({objectType:b.activity.content.typeMention?b.activity.content.context.objectType:b.activity.content.objectType,objectId:b.activity.content.typeMention?b.activity.content.context.id:b.activity.content.id,object:b.activity.parentActivity?b.activityContainer.jiveObject:b.activity.content},d),d.append('<div class="j-meta-actions font-color-meta">',b.activity.content.correctAnswer?'<span class="j-act-question"><strong class="font-color-okay">'+soy.$$escapeHtml(a._i18n('6a62a6',[]))+'</strong> <span class="j-bullet">&#8226;</span> </span>':''),jive.eae.common.activityNavActions({object:b.activity.parentActivity?b.activityContainer.jiveObject:b.activity.content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activity.activityUser.id,objectType:b.activity.content.typeMention?b.activity.content.context.objectType:b.activity.content.objectType,objectId:b.activity.content.typeMention?b.activity.content.context.id:b.activity.content.id,liked:b.activity.liked,likeCount:b.activity.likeCount,likable:b.activity.likable,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData,isQuestionComment:b.activity.content.isQuestionComment},d),jive.outcomes.action.actionButton({objectType:b.activity.content.typeMention?b.activity.content.context.objectType:b.activity.content.objectType,objectUrl:b.activity.content.typeMention?b.activity.content.context.jiveObjectURL:b.activity.content.jiveObjectURL,objectId:b.activity.content.typeMention?b.activity.content.context.id:b.activity.content.id,context:'activity',authorId:b.activity.activityUser.id,authorIsPartner:b.activity.activityUser.partner},d),d.append('</div></div>')}d.append('</div></div>')}return c?'':d.toString()},jive.eae.shared.subactivity.discussion}),define('soy!jive.eae.shared.subactivity.blogpost',['soyDeps','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContentCommon','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityHelpfulCounts','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.eae.common.renderStreamAttachments','soy!jive.eae.shared.subactivity.outcome','soy!jive.outcomes.action.actionButton','soy!jive.outcomes.badge.badgeContainer','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.containerDisplayNameLink','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.shared.subactivity'),jive.eae.shared.subactivity.blogpost=function(b,c){var d=c||new soy.StringBuilder;if(b.activity.content.typeOutcome)jive.eae.shared.subactivity.outcome(b,d);else if(b.activity.content.hasAcclaimedOutcome)jive.eae.shared.subactivity.outcome(soy.$$augmentMap(b,{activity:b.activity.content.acclaimedOutcomeActivity}),d);else{if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node',b.addedInline?' j-js-addedInline':'',b.activityContainer.canReply?' j-act-rte-replyable':'','communications'==b.streamType&&(b.activity.current||b.forceCurrent)?' j-current':'','communications'==b.streamType&&(b.activity.content.typeMention||b.activity.containsMention)?' j-act-contains-mention':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-objectID="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.id):soy.$$escapeHtmlAttribute(b.activity.targetObjectID),'" data-objectType="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.objectType):soy.$$escapeHtmlAttribute(b.activity.targetObjectType),'" data-current="',b.activity.current||b.forceCurrent?'true':'','" style="',b.isHidden?'display:none;':'','"><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="',b.activity.content.deleted||'moved'==b.activity.type?'j-mod font-color-meta-light':'reply j-act-comment','">'),b.activity.content.deleted)jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:null!=b.activity.content.deletedType?b.activity.content.deletedType:'comment',moderated:!1},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])));else if('moved'==b.activity.type){d.append('<span class="jive-icon-sml jive-glyph-edit"></span>');var e=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},e):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,e);var f=new soy.StringBuilder;jive.shared.displayutil.containerDisplayNameLink({container:b.activity.movedDestination?b.activity.movedDestination:b.activityContainer.container},f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('f8919c'),arg0:e.toString(),arg1:f.toString(),noAutoEscape:!0},d),d.append(' <span class="j-bullet">&#8226;</span> <span class="j-act-meta font-color-meta">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else{if(d.append('communications'==b.streamType&&(b.activity.content.typeMention||b.activity.containsMention)?'<div class="j-act-mentioned font-color-okay"><span class="jive-icon-med jive-icon-mention-label"></span><span class="j-mention-label">'+soy.$$escapeHtml(a._i18n('99950f',[]))+'</span></div>':'','<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-excerpt',b.activity.content.summaryIsExcerpt?'':' j-non-excerpt',' clearfix" ',b.hideStub?'style="display:none;"':'','>'),!b.hideStub){var g=new soy.StringBuilder;jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},g),jive.eae.common.activityContentCommon({contentTxt:g.toString(),hasMoreText:b.activity.hasMoreText},d)}d.append('</div><div class="j-act-sub-preview" ',b.hideStub?'':'style="display:none;"','>'),b.activity.content.deleted?(d.append('<div class="j-excerpt-full-html-content">'),b.hideStub&&jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div><div class="j-author-act font-color-meta-light">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</div>')):(d.append('<div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d),d.append(' ','mentioned'==b.activity.type&&b.activity.content.context.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.context.jiveObjectURL))+'" class="font-color-meta-light">':b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'mentioned'==b.activity.type&&b.activity.content.context.jiveObjectURL||b.activity.content.jiveObjectURL?'</a>':'','</div><div class="j-excerpt-full-html-content">'),b.hideStub&&jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div>'),jive.eae.common.renderStreamAttachments({idPrefix:'expanded',object:b.activity.content,domIDPostfix:b.activity.domIDPostfix},d),jive.outcomes.badge.badgeContainer({objectType:b.activity.content.typeMention?b.activity.content.context.objectType:b.activity.content.objectType,objectId:b.activity.content.typeMention?b.activity.content.context.id:b.activity.content.id},d),jive.eae.common.activityHelpfulCounts({objectType:b.activity.content.typeMention?b.activity.content.context.objectType:b.activity.content.objectType,objectId:b.activity.content.typeMention?b.activity.content.context.id:b.activity.content.id,object:b.activity.parentActivity?b.activityContainer.jiveObject:b.activity.content},d),d.append('<div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activity.parentActivity?b.activityContainer.jiveObject:b.activity.content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activity.activityUser.id,objectType:b.activity.content.typeMention?b.activity.content.context.objectType:b.activity.content.objectType,objectId:b.activity.content.typeMention?b.activity.content.context.id:b.activity.content.id,liked:b.activity.liked,likeCount:b.activity.likeCount,likable:b.activity.likable,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData},d),jive.outcomes.action.actionButton({objectType:b.activity.content.typeMention?b.activity.content.context.objectType:b.activity.content.objectType,objectUrl:b.activity.content.typeMention?b.activity.content.context.jiveObjectURL:b.activity.content.jiveObjectURL,objectId:b.activity.content.typeMention?b.activity.content.context.id:b.activity.content.id,context:'activity',authorId:b.activity.activityUser.id,authorIsPartner:b.activity.activityUser.partner},d),d.append('</div>')),d.append('</div>')}d.append('</div></div>')}return c?'':d.toString()},jive.eae.shared.subactivity.blogpost}),define('soy!jive.eae.shared.subactivity.task',['soyDeps','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContentCommon','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.renderStreamAttachments','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.shared.subactivity'),jive.eae.shared.subactivity.task=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node',b.addedInline?' j-js-addedInline':'',b.activityContainer.canReply?' j-act-rte-replyable':'','communications'==b.streamType&&(b.activity.content.typeMention||b.activity.containsMention)?' j-act-contains-mention':'','communications'==b.streamType&&(b.activity.current||b.forceCurrent)?' j-current':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-objectID="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.id):soy.$$escapeHtmlAttribute(b.activity.targetObjectID),'" data-objectType="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.objectType):soy.$$escapeHtmlAttribute(b.activity.targetObjectType),'" data-current="',b.activity.current||b.forceCurrent?'true':'','" style="',b.isHidden?'display:none;':'','"><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-mod font-color-meta-light">'),b.activity.content.typeTask){d.append('<span class="jive-icon-sml jive-glyph-edit"></span>');var e=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.content},e):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,e),jive.shared.soy.i18nHelper({i18nKey:'created'==b.activity.type?soy.$$escapeHtml('f6c733'):soy.$$escapeHtml('0f4e75'),arg0:e.toString(),noAutoEscape:'true'},d),d.append(' <span class="j-bullet">&#8226;</span> <span class="j-act-time font-color-meta-light">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else{if(jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('<div class="j-excerpt j-non-excerpt clearfix" ',b.hideStub?'style="display:none;"':'','>'),!b.hideStub){var f=new soy.StringBuilder;jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},f),jive.eae.common.activityContentCommon({contentTxt:f.toString(),hasMoreText:b.activity.hasMoreText},d)}d.append('</div><div class="j-act-sub-preview" ',b.hideStub?'':'style="display:none;"','><div class="jive-comment-arrow"></div><div class="j-excerpt-full jive-comment-content clearfix"><p class="jive-comment-meta font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d),d.append(' ','mentioned'==b.activity.type&&b.activity.content.context.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.context.jiveObjectURL))+'" class="font-color-meta-light">':b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'mentioned'==b.activity.type&&b.activity.content.context.jiveObjectURL||b.activity.content.jiveObjectURL?'</a>':'','</p><div class="j-excerpt-full-html-content">'),b.hideStub&&jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div>'),jive.eae.common.renderStreamAttachments({idPrefix:'expanded',object:b.activity.content,domIDPostfix:b.activity.domIDPostfix},d),d.append('<div class="j-meta-actions font-color-meta">',b.hideStub?'':' <span class="j-bullet">&#8226;</span> <span class="j-act-preview-control">(<a href="#" class="j-js-show-full-act j-act-preview" title="'+soy.$$escapeHtmlAttribute(a._i18n('bfa34b',[]))+'">+</a><a href="#" class="j-js-hide-full-act j-act-preview" style="display:none;" title="'+soy.$$escapeHtmlAttribute(a._i18n('084537',[]))+'">-</a>)</span>'),jive.eae.common.activityNavActions({object:b.activity.parentActivity?b.activityContainer.jiveObject:b.activity.content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activity.activityUser.id,objectType:b.activity.content.typeMention?b.activity.content.context.objectType:b.activity.content.objectType,objectId:b.activity.content.typeMention?b.activity.content.context.id:b.activity.content.id,liked:b.activity.liked,likeCount:b.activity.likeCount,likable:b.activity.likable,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData},d),d.append('</div></div></div>')}return d.append('</div></div>'),c?'':d.toString()},jive.eae.shared.subactivity.task}),define('soy!jive.eae.shared.subactivity.event',['soyDeps','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContentCommon','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.eae.common.renderStreamAttachments','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.containerDisplayNameLink','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.escapeHelper','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.shared.subactivity'),jive.eae.shared.subactivity.event=function(b,c){var d=c||new soy.StringBuilder;if('voted'==b.activity.type||'edited'==b.activity.type)d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node',b.addedInline?' j-js-addedInline':'',' ',b.activityContainer.canReply?' j-act-rte-replyable':'',' ','communications'==b.streamType&&(b.activity.content.typeMention||b.activity.containsMention)?' j-act-contains-mention':'','communications'==b.streamType&&(b.activity.current||b.forceCurrent)?' j-current':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-extendedAuthors="',soy.$$escapeHtmlAttribute(b.activityContainer.warnVisibleToExtendedAuthors),'" data-objectID="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.id):soy.$$escapeHtmlAttribute(b.activity.targetObjectID),'" data-objectType="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.objectType):soy.$$escapeHtmlAttribute(b.activity.targetObjectType),'" data-current="',b.activity.current||b.forceCurrent?'true':'','" style="',b.isHidden?'display:none;':'','"><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-mod font-color-meta-light"></div></div>');else{if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node','notification'==b.activity.type?' origin':'',b.addedInline?' j-js-addedInline':'',b.activityContainer.canReply?' j-act-rte-replyable':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-extendedAuthors="',soy.$$escapeHtmlAttribute(b.activityContainer.warnVisibleToExtendedAuthors),'" data-objectID="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.id):soy.$$escapeHtmlAttribute(b.activity.content.id),'" data-objectType="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.objectType):soy.$$escapeHtmlAttribute(b.activity.content.objectType),'" data-current="',b.activity.current||b.forceCurrent?'true':'','" style="',b.isHidden?'display:none;':'','"><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="',b.activity.groupedModifiers.length>0||b.activity.content.deleted||'notification'==b.activity.type||'moved'==b.activity.type?'j-mod font-color-meta-light':'reply j-act-comment','">'),b.activity.content.deleted)jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:null!=b.activity.content.deletedType?b.activity.content.deletedType:'reply',moderated:!1},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])));else if('moved'==b.activity.type){d.append('<span class="jive-icon-sml jive-glyph-edit"></span>');var e=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},e):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,e);var f=new soy.StringBuilder;jive.shared.displayutil.containerDisplayNameLink({container:b.activity.movedDestination?b.activity.movedDestination:b.activityContainer.container},f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('f8919c'),arg0:e.toString(),arg1:f.toString(),noAutoEscape:!0},d),d.append(' <span class="j-bullet">&#8226;</span> <span class="j-act-meta font-color-meta">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else if('notification'==b.activity.type){d.append('<span class="jive-icon-med jive-icon-collaboration-label actglyph"></span>');var g=new soy.StringBuilder,h=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},h):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,h),jive.shared.soy.escapeHelper({stringToEscape:h.toString()},g),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('052a24'),arg0:g.toString(),noAutoEscape:!0},d)}else{if(d.append('communications'==b.streamType&&(b.activity.content.typeMention||b.activity.containsMention)?'<div class="j-act-mentioned font-color-okay"><span class="jive-icon-med jive-icon-mention-label"></span>'+soy.$$escapeHtml(a._i18n('99950f',[]))+'</div>':'','<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-excerpt j-non-excerpt clearfix" ',b.hideStub?'style="display:none;"':'','>'),!b.hideStub){var i=new soy.StringBuilder;jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},i),jive.eae.common.activityContentCommon({contentTxt:i.toString(),hasMoreText:b.activity.hasMoreText},d)}d.append('</div><div class="j-act-sub-preview" ',b.hideStub?'':'style="display:none;"','><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d),d.append('<span class="j-act-time font-color-meta-light"> ',b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),b.activity.content.jiveObjectURL?'</a>':'','</span></div><div class="j-excerpt-full-html-content">'),b.hideStub&&jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div>'),jive.eae.common.renderStreamAttachments({idPrefix:'expanded',object:b.activity.content,domIDPostfix:b.activity.domIDPostfix},d),d.append('<div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activity.parentActivity?b.activityContainer.jiveObject:b.activity.content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activity.activityUser.id,objectType:b.activity.content.typeMention?b.activity.content.context.objectType:b.activity.content.objectType,objectId:b.activity.content.typeMention?b.activity.content.context.id:b.activity.content.id,liked:b.activity.liked,likeCount:b.activity.likeCount,likable:b.activity.likable,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData},d),d.append('</div></div>')}d.append('</div></div>')}return c?'':d.toString()},jive.eae.shared.subactivity.event}),define('soy!jive.eae.shared.subactivity.document',['soyDeps','soy!jive.eae.common.activityAuthorAndOnBehalfOfNoVerb','soy!jive.eae.common.activityContentCommon','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityHelpfulCounts','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.eae.common.renderStreamAttachments','soy!jive.eae.shared.subactivity.outcome','soy!jive.outcomes.action.actionButton','soy!jive.outcomes.badge.badgeContainer','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.containerDisplayNameLink','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.escapeHelper','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.shared.subactivity'),jive.eae.shared.subactivity.document=function(b,c){var d=c||new soy.StringBuilder;if(b.activity.content.typeOutcome)jive.eae.shared.subactivity.outcome(b,d);else if(b.activity.content.hasAcclaimedOutcome)jive.eae.shared.subactivity.outcome(soy.$$augmentMap(b,{activity:b.activity.content.acclaimedOutcomeActivity}),d);else{if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node',b.addedInline?' j-js-addedInline':'',b.activity.groupedModifiers.length>0||'notification'==b.activity.type?' origin':'',b.activityContainer.canReply?' j-act-rte-replyable':'','communications'==b.streamType&&(b.activity.content.typeMention||b.activity.containsMention)?' j-act-contains-mention':'','communications'==b.streamType&&(b.activity.current||b.forceCurrent)?' j-current':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-extendedAuthors="',soy.$$escapeHtmlAttribute(b.activityContainer.warnVisibleToExtendedAuthors),'" data-objectID="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.id):soy.$$escapeHtmlAttribute(b.activity.targetObjectID),'" data-objectType="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.objectType):soy.$$escapeHtmlAttribute(b.activity.targetObjectType),'" data-current="',b.activity.current||b.forceCurrent?'true':'','" style="',b.isHidden?'display:none;':'','"><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="',b.activity.groupedModifiers.length>0||b.activity.content.deleted||'notification'==b.activity.type||'moved'==b.activity.type?'j-mod font-color-meta-light':'reply j-act-comment','" >'),b.activity.content.deleted)jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:null!=b.activity.content.deletedType?b.activity.content.deletedType:'comment',moderated:!1},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])));else if('moved'==b.activity.type){d.append('<span class="jive-icon-glyph icon-move2"></span> ');var e=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},e):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,e);var f=new soy.StringBuilder;jive.shared.displayutil.containerDisplayNameLink({container:b.activity.movedDestination?b.activity.movedDestination:b.activityContainer.container},f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('f8919c'),arg0:e.toString(),arg1:f.toString(),noAutoEscape:!0},d),d.append(' <span class="j-bullet">&#8226;</span> <span class="j-act-meta font-color-meta">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else if(b.activity.groupedModifiers.length>0){d.append('<span class="jive-icon-glyph icon-edit"></span> ',soy.$$escapeHtml(a._i18n('a4d3f9',[])),' ');for(var g=b.activity.groupedModifiers,h=g.length,i=0;h>i;i++){var j=g[i];jive.shared.displayutil.userDisplayNameLink(j,d),d.append(b.activity.groupedModifiers.length-2==i?' '+soy.$$escapeHtml(a._i18n('3b6373',[])):i!=h-1?',':'',' ')}d.append(' <span class="j-bullet">&#8226;</span> <span class="j-act-meta font-color-meta">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else if('notification'==b.activity.type){d.append('<span class="jive-icon-med jive-icon-collaboration-label actglyph"></span>');var k=new soy.StringBuilder,l=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},l):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,l),jive.shared.soy.escapeHelper({stringToEscape:l.toString()},k),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('052a24'),arg0:k.toString(),noAutoEscape:!0},d)}else{if(d.append('communications'==b.streamType&&(b.activity.content.typeMention||b.activity.containsMention)?'<div class="j-act-mentioned font-color-okay"><span class="jive-icon-med jive-icon-mention-label"></span><span class="j-mention-label">'+soy.$$escapeHtml(a._i18n('99950f',[]))+'</span></div>':'','<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-excerpt j-non-excerpt clearfix" ',b.hideStub?'style="display:none;"':'','>'),!b.hideStub){var m=new soy.StringBuilder;jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},m),jive.eae.common.activityContentCommon({contentTxt:m.toString(),hasMoreText:b.activity.hasMoreText},d)}d.append('</div><div class="j-act-sub-preview" ',b.hideStub?'':'style="display:none;"','><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorAndOnBehalfOfNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d),d.append('<span class="j-act-time font-color-meta-light">','mentioned'==b.activity.type&&b.activity.content.context.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.context.jiveObjectURL))+'" class="font-color-meta-light">':b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'mentioned'==b.activity.type&&b.activity.content.context.jiveObjectURL||b.activity.content.jiveObjectURL?'</a>':'','</span></div><div class="j-excerpt-full-html-content">'),b.hideStub&&jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div>'),
jive.eae.common.renderStreamAttachments({idPrefix:'expanded',object:b.activity.content,domIDPostfix:b.activity.domIDPostfix},d),jive.outcomes.badge.badgeContainer({objectType:b.activity.content.typeMention?b.activity.content.context.objectType:b.activity.content.objectType,objectId:b.activity.content.typeMention?b.activity.content.context.id:b.activity.content.id},d),jive.eae.common.activityHelpfulCounts({objectType:b.activity.content.typeMention?b.activity.content.context.objectType:b.activity.content.objectType,objectId:b.activity.content.typeMention?b.activity.content.context.id:b.activity.content.id,object:b.activity.parentActivity?b.activityContainer.jiveObject:b.activity.content},d),d.append('<div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activity.parentActivity?b.activityContainer.jiveObject:b.activity.content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activity.activityUser.id,objectType:b.activity.content.typeMention?b.activity.content.context.objectType:b.activity.content.objectType,objectId:b.activity.content.typeMention?b.activity.content.context.id:b.activity.content.id,liked:b.activity.liked,likeCount:b.activity.likeCount,likable:b.activity.likable,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData},d),jive.outcomes.action.actionButton({objectType:b.activity.content.typeMention?b.activity.content.context.objectType:b.activity.content.objectType,objectUrl:b.activity.content.typeMention?b.activity.content.context.objectUrl:b.activity.content.jiveObjectURL,objectId:b.activity.content.typeMention?b.activity.content.context.id:b.activity.content.id,context:'activity',authorId:b.activity.activityUser.id,authorIsPartner:b.activity.activityUser.partner},d),d.append('</div></div>')}d.append('</div></div>')}return c?'':d.toString()},jive.eae.shared.subactivity.document}),define('soy!jive.eae.shared.subactivity.remotedocument',['soyDeps','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContentCommon','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityHelpfulCounts','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.eae.common.renderStreamAttachments','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.userDisplayNameLink'],function(a){return jive.namespace.call(this,'jive.eae.shared.subactivity'),jive.eae.shared.subactivity.remotedocument=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node  ',b.addedInline?'j-js-addedInline':'',' ',b.activity.groupedModifiers.length>0?'origin':'',' ',b.activityContainer.canReply?'j-act-rte-replyable':'','" data-objectID="',soy.$$escapeHtmlAttribute(b.activity.targetObjectID),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activity.targetObjectType),'" data-current="',b.activity.current||b.forceCurrent?'true':'','" style="',b.isHidden?'display:none;':'','"><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="',b.activity.groupedModifiers.length>0||b.activity.content.deleted?'j-mod font-color-meta-light':'reply j-act-comment','" >'),b.activity.content.deleted)jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:'comment'},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])));else if(b.activity.groupedModifiers.length>0){d.append('<span class="jive-icon-sml jive-glyph-edit"></span>',soy.$$escapeHtml(a._i18n('a4d3f9',[])),' ');for(var e=b.activity.groupedModifiers,f=e.length,g=0;f>g;g++){var h=e[g];jive.shared.displayutil.userDisplayNameLink(h,d),d.append(b.activity.groupedModifiers.length-2==g?' '+soy.$$escapeHtml(a._i18n('3b6373',[])):g!=f-1?',':'',' ')}d.append(' <span class="j-bullet">&#8226;</span> <span class="j-act-meta font-color-meta">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else{if(d.append('<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:'32'}),d),d.append('</div><div class="j-excerpt j-non-excerpt clearfix" ',b.hideStub?'style="display:none;"':'','>'),!b.hideStub){var i=new soy.StringBuilder;jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},i),jive.eae.common.activityContentCommon({contentTxt:i.toString(),hasMoreText:b.activity.hasMoreText},d)}d.append('</div><div class="j-act-sub-preview" ',b.hideStub?'':'style="display:none;"','><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d),d.append('<span class="j-act-time font-color-meta-light">',b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),b.activity.content.jiveObjectURL?'</a>':'','</span></div><div class="j-excerpt-full-html-content">'),b.hideStub&&jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div>'),jive.eae.common.renderStreamAttachments({idPrefix:'expanded',object:b.activity.content,domIDPostfix:b.activity.domIDPostfix},d),jive.eae.common.activityHelpfulCounts({objectType:b.activity.content.typeMention?b.activity.content.context.objectType:b.activity.content.objectType,objectId:b.activity.content.typeMention?b.activity.content.context.id:b.activity.content.id,object:b.activity.parentActivity?b.activityContainer.jiveObject:b.activity.content},d),d.append('<div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activity.parentActivity?b.activityContainer.jiveObject:b.activity.content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activity.activityUser.id,objectType:b.activity.content.typeMention?b.activity.content.context.objectType:b.activity.content.objectType,objectId:b.activity.content.typeMention?b.activity.content.context.id:b.activity.content.id,liked:b.activity.liked,likeCount:b.activity.likeCount,likable:b.activity.likable,hasMoreText:b.activity.hasMoreText,author:b.activity.activityUser,user:b.user,location:'subActivity',streamType:b.streamType,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo},d),d.append('</div></div>')}return d.append('</div></div>'),c?'':d.toString()},jive.eae.shared.subactivity.remotedocument}),define('soy!jive.videos.common.videoViewActivity',['soyDeps'],function(a){return jive.namespace.call(this,'jive.videos.common'),jive.videos.common.videoViewActivity=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="video-activity"><span>','view'==b.activity.type?'<span class="jive-icon-sml jive-glyph-edit"></span>':'','</span> <span class="j-bullet">&#8226;</span> <span class="j-act-meta font-color-meta">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span></div>'),c?'':d.toString()},jive.videos.common.videoViewActivity}),define('soy!jive.eae.shared.subactivity.video',['soyDeps','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContentCommon','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.eae.common.renderStreamAttachments','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.containerDisplayNameLink','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.escapeHelper','soy!jive.shared.soy.i18nHelper','soy!jive.videos.common.videoViewActivity'],function(a){return jive.namespace.call(this,'jive.eae.shared.subactivity'),jive.eae.shared.subactivity.video=function(b,c){var d=c||new soy.StringBuilder;if('view'==b.activity.type||'edited'==b.activity.type)d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node',b.addedInline?' j-js-addedInline':'',b.activityContainer.canReply?' j-act-rte-replyable':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activity.targetObjectID),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activity.targetObjectType),'" data-current="',b.activity.current||b.forceCurrent?'true':'','" style="',b.isHidden?'display:none;':'','"><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-mod font-color-meta-light">'),jive.videos.common.videoViewActivity(b,d),d.append('</div></div>');else{if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node','notification'==b.activity.type?' origin':'',b.addedInline?' j-js-addedInline':'',b.activityContainer.canReply?' j-act-rte-replyable':'','communications'==b.streamType&&(b.activity.content.typeMention||b.activity.containsMention)?' j-act-contains-mention':'','communications'==b.streamType&&(b.activity.current||b.forceCurrent)?' j-current':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-objectID="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.id):soy.$$escapeHtmlAttribute(b.activity.content.id),'" data-objectType="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.objectType):soy.$$escapeHtmlAttribute(b.activity.content.objectType),'" data-current="',b.activity.current||b.forceCurrent?'true':'','" style="',b.isHidden?'display:none;':'','"><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="',b.activity.content.deleted||'notification'==b.activity.type||'moved'==b.activity.type?'j-mod font-color-meta-light':'reply j-act-comment','">'),b.activity.content.deleted)jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:null!=b.activity.content.deletedType?b.activity.content.deletedType:'reply',moderated:!1},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])));else if('moved'==b.activity.type){d.append('<span class="jive-icon-sml jive-glyph-edit"></span>');var e=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},e):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,e);var f=new soy.StringBuilder;jive.shared.displayutil.containerDisplayNameLink({container:b.activity.movedDestination?b.activity.movedDestination:b.activityContainer.container},f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('f8919c'),arg0:e.toString(),arg1:f.toString(),noAutoEscape:!0},d),d.append(' <span class="j-bullet">&#8226;</span> <span class="j-act-meta font-color-meta">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else if('notification'==b.activity.type){d.append('<span class="jive-icon-med jive-icon-collaboration-label actglyph"></span>');var g=new soy.StringBuilder,h=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},h):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,h),jive.shared.soy.escapeHelper({stringToEscape:h.toString()},g),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('052a24'),arg0:g.toString(),noAutoEscape:!0},d)}else{if(d.append('communications'==b.streamType&&(b.activity.content.typeMention||b.activity.containsMention)?'<div class="j-act-mentioned font-color-okay"><span class="jive-icon-sml jive-icon-mention"></span>'+soy.$$escapeHtml(a._i18n('99950f',[]))+'</div>':'','<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-excerpt j-non-excerpt clearfix" ',b.hideStub?'style="display:none;"':'','>'),!b.hideStub){var i=new soy.StringBuilder;jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},i),jive.eae.common.activityContentCommon({contentTxt:i.toString(),hasMoreText:b.activity.hasMoreText},d)}d.append('</div><div class="j-act-sub-preview" ',b.hideStub?'':'style="display:none;"','><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d),d.append('<span class="j-act-time font-color-meta-light"> ',b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),b.activity.content.jiveObjectURL?'</a>':'','</span></div><div class="j-excerpt-full-html-content">'),b.hideStub&&jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div>'),jive.eae.common.renderStreamAttachments({idPrefix:'expanded',object:b.activity.content,domIDPostfix:b.activity.domIDPostfix},d),d.append('<div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activity.parentActivity?b.activityContainer.jiveObject:b.activity.content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activity.activityUser.id,objectType:b.activity.content.typeMention?b.activity.content.context.objectType:b.activity.content.objectType,objectId:b.activity.content.typeMention?b.activity.content.context.id:b.activity.content.id,liked:b.activity.liked,likeCount:b.activity.likeCount,likable:b.activity.likable,hasMoreText:b.activity.hasMoreText,author:b.activity.activityUser,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo},d),d.append('</div></div>')}d.append('</div></div>')}return c?'':d.toString()},jive.eae.shared.subactivity.video}),define('soy!jive.eae.shared.subactivity.idea',['soyDeps','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContentCommon','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.eae.common.renderStreamAttachments','soy!jive.ideas.shared.ideaVoteActivity','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.containerDisplayNameLink','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.escapeHelper','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.shared.subactivity'),jive.eae.shared.subactivity.idea=function(b,c){var d=c||new soy.StringBuilder;if('voted'==b.activity.type||'edited'==b.activity.type)d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node',b.addedInline?' j-js-addedInline':'',' ',b.activityContainer.canReply?' j-act-rte-replyable':'',' ','communications'==b.streamType&&(b.activity.content.typeMention||b.activity.containsMention)?' j-act-contains-mention':'','communications'==b.streamType&&(b.activity.current||b.forceCurrent)?' j-current':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-extendedAuthors="',soy.$$escapeHtmlAttribute(b.activityContainer.warnVisibleToExtendedAuthors),'" data-objectID="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.id):soy.$$escapeHtmlAttribute(b.activity.targetObjectID),'" data-objectType="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.objectType):soy.$$escapeHtmlAttribute(b.activity.targetObjectType),'" data-current="',b.activity.current||b.forceCurrent?'true':'','" style="',b.isHidden?'display:none;':'','"><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-mod font-color-meta-light">'),jive.ideas.shared.ideaVoteActivity(b,d),d.append('</div></div>');else{if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node','notification'==b.activity.type?' origin':'',b.addedInline?' j-js-addedInline':'',b.activityContainer.canReply?' j-act-rte-replyable':'','communications'==b.streamType&&(b.activity.content.typeMention||b.activity.containsMention)?' j-act-contains-mention':'','communications'==b.streamType&&(b.activity.current||b.forceCurrent)?' j-current':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-extendedAuthors="',soy.$$escapeHtmlAttribute(b.activityContainer.warnVisibleToExtendedAuthors),'" data-objectID="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.id):soy.$$escapeHtmlAttribute(b.activity.content.id),'" data-objectType="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.objectType):soy.$$escapeHtmlAttribute(b.activity.content.objectType),'" data-current="',b.activity.current||b.forceCurrent?'true':'','" style="',b.isHidden?'display:none;':'','"><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="','notification'==b.activity.type||'moved'==b.activity.type||b.activity.content.deleted?'j-mod font-color-meta-light':'reply j-act-comment','">'),b.activity.content.deleted)jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:null!=b.activity.content.deletedType?b.activity.content.deletedType:'reply',moderated:!1},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])));else if('moved'==b.activity.type){d.append('<span class="jive-icon-sml jive-glyph-edit"></span>');var e=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},e):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,e);var f=new soy.StringBuilder;jive.shared.displayutil.containerDisplayNameLink({container:b.activity.movedDestination?b.activity.movedDestination:b.activityContainer.container},f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('f8919c'),arg0:e.toString(),arg1:f.toString(),noAutoEscape:!0},d),d.append(' <span class="j-bullet">&#8226;</span> <span class="j-act-meta font-color-meta">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span>')}else if('notification'==b.activity.type){d.append('<span class="jive-icon-med jive-icon-collaboration-label actglyph"></span>');var g=new soy.StringBuilder,h=new soy.StringBuilder;b.activity.activityUser.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.activity.activityUser},h):jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,h),jive.shared.soy.escapeHelper({stringToEscape:h.toString()},g),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('052a24'),arg0:g.toString(),noAutoEscape:!0},d)}else{if(d.append('communications'==b.streamType&&(b.activity.content.typeMention||b.activity.containsMention)?'<div class="j-act-mentioned font-color-okay"><span class="jive-icon-med jive-icon-mention-label"></span>'+soy.$$escapeHtml(a._i18n('99950f',[]))+'</div>':'','<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-excerpt j-non-excerpt clearfix" ',b.hideStub?'style="display:none;"':'','>'),!b.hideStub){var i=new soy.StringBuilder;jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},i),jive.eae.common.activityContentCommon({contentTxt:i.toString(),hasMoreText:b.activity.hasMoreText},d)}d.append('</div><div class="j-act-sub-preview" ',b.hideStub?'':'style="display:none;"','><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d),d.append('<span class="j-act-time font-color-meta-light"> ',b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),b.activity.content.jiveObjectURL?'</a>':'','</span></div><div class="j-excerpt-full-html-content">'),b.hideStub&&jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div>'),jive.eae.common.renderStreamAttachments({idPrefix:'expanded',object:b.activity.content,domIDPostfix:b.activity.domIDPostfix},d),d.append('<div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activity.parentActivity?b.activityContainer.jiveObject:b.activity.content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activity.activityUser.id,objectType:b.activity.content.typeMention?b.activity.content.context.objectType:b.activity.content.objectType,objectId:b.activity.content.typeMention?b.activity.content.context.id:b.activity.content.id,liked:b.activity.liked,likeCount:b.activity.likeCount,likable:b.activity.likable,hasMoreText:b.activity.hasMoreText,author:b.activity.activityUser,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo},d),d.append('</div></div>')}d.append('</div></div>')}return c?'':d.toString()},jive.eae.shared.subactivity.idea}),define('soy!jive.eae.shared.subactivity.app',['soyDeps','soy!jive.eae.apps.common.renderAppEmbeddedExperience','soy!jive.eae.common.activityAuthor','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContentCommon','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.eae.common.renderStreamAttachments','soy!jive.shared.displayutil.avatar','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.shared.subactivity'),jive.eae.shared.subactivity.app=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node',b.addedInline?' j-js-addedInline':'',b.activityContainer.canReply?' j-act-rte-replyable':'','communications'==b.streamType&&(b.activity.content.typeMention||b.activity.containsMention)?' j-act-contains-mention':'','communications'==b.streamType&&(b.activity.current||b.forceCurrent)?' j-current':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-objectID="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.id):soy.$$escapeHtmlAttribute(b.activity.targetObjectID),'" data-objectType="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.objectType):soy.$$escapeHtmlAttribute(b.activity.targetObjectType),'" data-current="',b.activity.current||b.forceCurrent?'true':'','" style="',b.isHidden?'display:none;':'','"><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="',b.activity.content.deleted?'j-mod font-color-meta-light':b.activity.content.typeComment?'reply j-act-comment ':b.activity.content.typeExternalActivity&&'uri:jiveName:app_install'==b.activity.content.verb?'j-app-install j-mod font-color-meta ':'j-act-activity j-act-comment ','">'),b.activity.content.deleted)jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:null!=b.activity.content.deletedType?b.activity.content.deletedType:'comment',moderated:!1},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])));else if(b.activity.content.typeExternalActivity&&'uri:jiveName:app_install'==b.activity.content.verb){d.append('<span class="jive-icon-sml jive-glyph-gear"></span>');var e=new soy.StringBuilder;jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},e),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('0d4d6e'),arg0:e.toString(),noAutoEscape:!0},d),d.append(' <span class="j-act-time font-color-meta-light"><a href="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL)),'" class="j-act-permalink font-color-meta-light"  title="',soy.$$escapeHtmlAttribute(a._i18n('d98800',[])),'">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</a></span><span class="j-meta-actions font-color-meta"> <span class="j-bullet">&#8226;</span> '),jive.eae.common.activityNavActions({object:b.activity.parentActivity?b.activityContainer.jiveObject:b.activity.content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activity.activityUser.id,objectType:b.activity.content.typeMention?b.activity.content.context.objectType:b.activity.content.objectType,objectId:b.activity.content.typeMention?b.activity.content.context.id:b.activity.content.id,liked:b.activity.liked,likeCount:b.activity.likeCount,likable:b.activity.likable,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData},d),d.append('</span>')}else if(b.activity.content.typeComment){if(d.append('communications'==b.streamType&&(b.activity.content.typeMention||b.activity.containsMention)?'<div class="j-act-mentioned font-color-okay"><span class="jive-icon-med jive-icon-mention-label"></span><span class="j-mention-label">'+soy.$$escapeHtml(a._i18n('99950f',[]))+'</span></div>':'','<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-act-sub-preview"><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content},d),d.append('<span class="j-act-time font-color-meta-light">','mentioned'==b.activity.type&&b.activity.content.context.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.context.jiveObjectURL))+'" class="font-color-meta-light">':b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'mentioned'==b.activity.type&&b.activity.content.context.jiveObjectURL||b.activity.content.jiveObjectURL?'</a>':'','</span></div><div class="j-excerpt j-non-excerpt clearfix" ',b.hideStub?'style="display:none;"':'','>'),!b.hideStub){var f=new soy.StringBuilder;jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},f),jive.eae.common.activityContentCommon({contentTxt:f.toString(),hasMoreText:b.activity.hasMoreText},d)}d.append('</div><div class="j-act-sub-preview" ',b.hideStub?'':'style="display:none;"','><div class="j-excerpt-full-html-content">'),b.hideStub&&jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div><div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activity.parentActivity?b.activityContainer.jiveObject:b.activity.content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activity.activityUser.id,objectType:b.activity.content.objectType,objectId:b.activity.content.id,liked:b.activity.liked,likeCount:b.activity.likeCount,likable:b.activity.likable,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData},d),d.append('</div></div></div>')}else d.append('<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-act-sub-preview"><div class="j-author-act font-color-meta">'),jive.eae.common.activityAuthor({object:b.activity.content,type:b.activity.type,activityUser:b.activity.activityUser,displayAuthorLink:!0,streamType:b.streamType,hideDetailedReplyTo:!0,user:b.user,againstObject:!0,deleted:!1},d),d.append('<span class="j-act-time font-color-meta-light">',b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),b.activity.content.jiveObjectURL?'</a>':'','</span></div><div class="j-act-app-body clearfix"><div class="j-act-app-content clearfix">'),jive.eae.common.renderStreamAttachments({idPrefix:'expanded',object:b.activity.content,domIDPostfix:b.activity.domIDPostfix},d),d.append('<div class="j-excerpt-full-html-content j-act-notitle j-app-content-text">'),jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div></div></div><div class="j-meta-actions font-color-meta">'),b.activity.content.ee&&jive.eae.apps.common.renderAppEmbeddedExperience({ee:b.activity.content.ee},d),jive.eae.common.activityNavActions({object:b.activity.content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activity.activityUser.id,objectType:b.activity.content.typeMention?b.activity.content.context.objectType:b.activity.content.objectType,objectId:b.activity.content.typeMention?b.activity.content.context.id:b.activity.content.id,liked:b.activity.liked,likeCount:b.activity.likeCount,likable:b.activity.likable,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData},d),d.append('</div></div>');return d.append('</div></div>'),c?'':d.toString()},jive.eae.shared.subactivity.app}),define('soy!jive.rtc.dateSeparator',['soyDeps'],function(a){return jive.namespace.call(this,'jive.rtc'),jive.rtc.dateSeparator=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="js-rtc-date-separator j-act-majorDate font-color-meta">',soy.$$escapeHtml(a.dateString),'</div>'),b?'':c.toString()},jive.rtc.dateSeparator}),define('soy!jive.rtc.interaction',['soyDeps'],function(a){return jive.namespace.call(this,'jive.rtc'),jive.rtc.interaction=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-rtc-interaction js-rtc-interaction clearfix',b.selectedInteractionID&&b.selectedInteractionID==b.id?' selected':'','" data-id="',soy.$$escapeHtml(b.id),'" data-ts="',soy.$$escapeHtml(b.published),'"><div class="j-rtc-interaction-text">',soy.$$filterNoAutoescape(b.content.text),'</div><div class="j-rtc-interaction-timestamp font-color-meta">','inbox'==b.renderLocation&&!b.rtcEnabled&&b.currentUserMentionedInObject?'<span class="jive-icon-sml jive-icon-mention"></span>':'',b.collabID?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,'/collaborations/'+b.collabID+'/'+b.id))+'">'+soy.$$escapeHtml(b.publishedTime)+'</a>':soy.$$escapeHtml(b.publishedTime),'permalink'==b.renderLocation&&!b.rtcEnabled&&b.viewingUserAuthored?'<a href="#" class="js-rtc-dm-delete j-rtc-dm-delete" aria-label="'+soy.$$escapeHtml(a._i18n('be4670',[]))+'" title="'+soy.$$escapeHtml(a._i18n('be4670',[]))+'"><span class="jive-icon-glyph icon-cancel-circle2"></span></a>':'','</div></div>'),c?'':d.toString()},jive.rtc.interaction}),define('soy!jive.rtc.interactionGrouping',['soyDeps','soy!jive.rtc.dateSeparator','soy!jive.rtc.interaction','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.userDisplayNameLink'],function(a){
return jive.namespace.call(this,'jive.rtc'),jive.rtc.interactionGrouping=function(b,c){var d=c||new soy.StringBuilder;d.append('<div class="js-interaction-grouping j-act-comment">'),b.showDateOfGroup&&jive.rtc.dateSeparator({dateString:b.interactionList[0].publishedCalendarDate},d),d.append('<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.actor,{size:46,avatarID:b.actor.thumbnailId}),d),d.append('</div><div class="j-author-act js-author-act" data-author-id="',soy.$$escapeHtml(b.actor.id),'">'),b.actor.anonymous?jive.shared.displayutil.renderGuestDisplayName({message:b.actor},d):jive.shared.displayutil.userDisplayNameLink(soy.$$augmentMap(b.actor,{displayNameOverride:b.user.id==b.actor.id?a._i18n('1798fd',[]):''}),d),d.append('</div>');for(var e=b.interactionList,f=e.length,g=0;f>g;g++){var h=e[g];jive.rtc.interaction(soy.$$augmentMap(h,{selectedInteractionID:b.selectedInteractionID,viewingUserAuthored:b.user.id==b.actor.id,renderLocation:b.renderLocation}),d)}return d.append('</div>'),c?'':d.toString()},jive.rtc.interactionGrouping}),define('soy!jive.eae.shared.subactivity.rtc',['soyDeps','soy!jive.rtc.interactionGrouping'],function(a){return jive.namespace.call(this,'jive.eae.shared.subactivity'),jive.eae.shared.subactivity.rtc=function(a,b){var c=b||new soy.StringBuilder;return jive.rtc.interactionGrouping({actor:a.activity.actor,user:a.user,interactionList:a.activity.interactionList,showDateOfGroup:a.showDateOfGroup,renderLocation:'inbox'},c),b?'':c.toString()},jive.eae.shared.subactivity.rtc}),define('soy!jive.eae.common.subactivity',['soyDeps','soy!jive.eae.shared.subactivity.bookmark','soy!jive.eae.shared.subactivity.bulkUpload','soy!jive.eae.shared.subactivity.statusUpdate','soy!jive.eae.shared.subactivity.discussion','soy!jive.eae.shared.subactivity.thumbnailView','soy!jive.eae.shared.subactivity.blogpost','soy!jive.eae.shared.subactivity.task','soy!jive.eae.shared.subactivity.event','soy!jive.eae.shared.subactivity.document','soy!jive.eae.shared.subactivity.remotedocument','soy!jive.eae.shared.subactivity.iconView','soy!jive.eae.shared.subactivity.video','soy!jive.eae.shared.subactivity.idea','soy!jive.eae.shared.subactivity.app','soy!jive.eae.shared.subactivity.rtc','soy!jive.eae.shared.subactivity.outcome','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContentCommon','soy!jive.eae.common.activityContentText','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.collapsedExcerptText','soy!jive.eae.common.renderStreamAttachments','soy!jive.outcomes.badge.badgeContainer','soy!jive.shared.displayutil.avatar','soy!jive.shared.soy.render'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.subactivity=function(b,c){var d=c||new soy.StringBuilder;if(b.activityContainer.jiveObject.activityContentExcerptTemplate)jive.shared.soy.render({templateName:b.activityContainer.jiveObject.activityContentExcerptTemplate,data:function(){for(var a={},c=[['activityContainer',b.activityContainer],['activity',b.activity],['streamType',b.streamType],['filterData',b.filterData],['user',b.user],['canCreateMbImage',b.canCreateMbImage],['canCreateMbVideo',b.canCreateMbVideo],['isHidden',b.isHidden],['addedInline',b.addedInline],['hideStub',b.hideStub],['forceCurrent',b.forceCurrent]],d=0;d<c.length;d+=1)a[c[d][0]]=c[d][1];return a}(),failGracefully:!0},d);else if(b.activity.content.activityContentExcerptTemplate)jive.shared.soy.render({templateName:b.activity.content.activityContentExcerptTemplate,data:function(){for(var a={},c=[['activityContainer',b.activityContainer],['activity',b.activity],['streamType',b.streamType],['filterData',b.filterData],['user',b.user],['canCreateMbImage',b.canCreateMbImage],['canCreateMbVideo',b.canCreateMbVideo],['isHidden',b.isHidden],['addedInline',b.addedInline],['hideStub',b.hideStub],['forceCurrent',b.forceCurrent]],d=0;d<c.length;d+=1)a[c[d][0]]=c[d][1];return a}(),failGracefully:!0},d);else if(b.activity.content.typeOutcome)jive.eae.shared.subactivity.outcome(b,d);else if(b.activity.content.hasAcclaimedOutcome)jive.eae.shared.subactivity.outcome(soy.$$augmentMap(b,{activity:b.activity.content.acclaimedOutcomeActivity}),d);else{if(d.append('<div id="node-collapsed-',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="j-act-node',b.addedInline?' j-js-addedInline':'',b.activityContainer.canReply?' j-act-rte-replyable':'','communications'==b.streamType&&(b.activity.current||b.forceCurrent)?' j-current':'','communications'==b.streamType&&(b.activity.content.typeMention||b.activity.containsMention)?' j-act-contains-mention':'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activity.visibleToExtCollaborator),'" data-extendedAuthors="',soy.$$escapeHtmlAttribute(b.activityContainer.warnVisibleToExtendedAuthors),'" data-objectID="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.id):soy.$$escapeHtmlAttribute(b.activity.targetObjectID),'" data-objectType="',b.activity.content.typeMention?soy.$$escapeHtmlAttribute(b.activity.content.context.objectType):soy.$$escapeHtmlAttribute(b.activity.targetObjectType),'" data-current="',b.activity.current||b.forceCurrent?'true':'','" style="',b.isHidden?'display:none;':'','"><div id="excerpt_',soy.$$escapeHtmlAttribute(b.activity.content.domIDPostfix),'" class="',b.activity.content.deleted?'j-mod font-color-meta-light':'reply j-act-comment','">'),b.activity.content.deleted)jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:null!=b.activity.content.deletedType?b.activity.content.deletedType:'comment',moderated:!1},d),d.append(' ',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])));else{if(d.append('communications'==b.streamType&&(b.activity.content.typeMention||b.activity.containsMention)?'<div class="j-act-mentioned font-color-okay"><span class="jive-icon-med jive-icon-mention-label"></span><span class="j-mention-label">'+soy.$$escapeHtml(a._i18n('99950f',[]))+'</span></div>':'','<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activity.activityUser,{size:32,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-excerpt',b.activity.content.summaryIsExcerpt?'':' j-non-excerpt',' clearfix" ',b.hideStub?'style="display:none;"':'','>'),!b.hideStub){var e=new soy.StringBuilder;jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},e),jive.eae.common.activityContentCommon({contentTxt:e.toString(),hasMoreText:b.activity.hasMoreText},d)}d.append('</div><div class="j-act-sub-preview" ',b.hideStub?'':'style="display:none;"','>'),b.activity.content.deleted?(d.append('<div class="j-excerpt-full-html-content">'),b.hideStub&&jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div><div class="j-author-act font-color-meta-light">',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</div>')):(d.append('<div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activity.activityUser,object:b.activity.content,typeShare:b.activityContainer.jiveObject.typeShare},d),d.append(' ','mentioned'==b.activity.type&&b.activity.content.context.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.context.jiveObjectURL))+'" class="font-color-meta-light">':b.activity.content.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.jiveObjectURL))+'" class="font-color-meta-light">':'',b.activity.creationTime?soy.$$escapeHtml(b.activity.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'mentioned'==b.activity.type&&b.activity.content.context.jiveObjectURL||b.activity.content.jiveObjectURL?'</a>':'','</div><div class="j-excerpt-full-html-content">'),b.hideStub&&jive.eae.common.activityContentText({activity:b.activity,noAutoescape:!0},d),d.append('</div>'),jive.eae.common.renderStreamAttachments({idPrefix:'expanded',object:b.activity.content,domIDPostfix:b.activity.domIDPostfix},d),jive.outcomes.badge.badgeContainer({objectType:b.activity.targetObjectType,objectId:b.activity.targetObjectID},d),d.append('<div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activity.parentActivity?b.activityContainer.jiveObject:b.activity.content,activityContainer:b.activityContainer,amAnAuthor:b.user.id==b.activity.activityUser.id,objectType:b.activity.content.typeMention?b.activity.content.context.objectType:b.activity.content.objectType,objectId:b.activity.content.typeMention?b.activity.content.context.id:b.activity.content.id,liked:b.activity.liked,likeCount:b.activity.likeCount,likable:b.activity.likable,user:b.user,location:'subActivity',streamType:b.streamType,filterData:b.filterData},d),d.append('</div>')),d.append('</div>')}d.append('</div></div>')}return d.append('<script>require([ \'apps/renderVideoPlayerInComments\', \'domReady!\' ], function (renderVideoPlayerInComments){renderVideoPlayerInComments();});</script>'),c?'':d.toString()},jive.eae.common.subactivity}),define('soy!jive.eae.digest.subItem.statusUpdate',['soyDeps','soy!jive.eae.common.groupedUsers','soy!jive.eae.common.subactivity','soy!jive.shared.displayutil.userDisplayNameLink'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.statusUpdate=function(b,c){var d=c||new soy.StringBuilder;if('repost'==b.activity.type&&'latest_acclaim'==b.fromTemplate){var e=new soy.StringBuilder(b.activity.content.repostedEntry?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activity.content.repostedEntry.jiveObjectURL))+'"><span title=\''+soy.$$escapeHtmlAttribute(a._i18n('3e4cb7',[]))+'\' role=\'img\' class="'+soy.$$escapeHtmlAttribute(b.activity.content.repostedEntry.jiveObjectCSS)+'"></span><span class="j-item">'+soy.$$filterNoAutoescape(b.activity.content.repostedEntry.subject)+'</span></a>':'<strong>'+soy.$$escapeHtml(a._i18n('1d39f9',[]))+'</strong>');if(e=e.toString(),b.activity.groupedUsers&&b.activity.groupedUsers.length>1){var f=new soy.StringBuilder;jive.eae.common.groupedUsers({groupedUserList:b.activity.groupedUsers,groupAfterNum:3,user:b.user},f),f=f.toString(),d.append(soy.$$filterNoAutoescape(a._i18n('eed211',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(f),new soydata.VERY_UNSAFE.ordainSanitizedHtml(e)])))}else{var g=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(b.activity.activityUser,g),g=g.toString(),d.append(soy.$$filterNoAutoescape(a._i18n('f21b88',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(g),new soydata.VERY_UNSAFE.ordainSanitizedHtml(e)])))}}else d.append('<div>'),jive.eae.common.subactivity(b,d),d.append('</div>');return c?'':d.toString()},jive.eae.digest.subItem.statusUpdate}),define('soy!jive.eae.digest.subItem.projectCompleted',['soyDeps','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.projectCompleted=function(a,b){var c=b||new soy.StringBuilder;if(a.user.id==a.activity.activityUser.id)jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('27ef8c'),arg0:'<span class="jive-icon-med '+soy.$$escapeHtmlAttribute(a.activity.content.jiveObjectCSS)+'"></span><a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.activity.content.jiveObjectURL))+'">'+soy.$$filterNoAutoescape(a.activity.content.subject)+'</a>',noAutoEscape:!0},c);else{var d=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(a.activity.activityUser,d),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('c7a5c0'),arg0:d.toString(),arg1:'<span class="jive-icon-med '+soy.$$escapeHtmlAttribute(a.activity.content.jiveObjectCSS)+'"></span><a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.activity.content.jiveObjectURL))+'">'+soy.$$filterNoAutoescape(a.activity.content.subject)+'</a>',noAutoEscape:!0},c)}return b?'':c.toString()},jive.eae.digest.subItem.projectCompleted}),define('soy!jive.eae.digest.subItem.profileImageAdded',['soyDeps','soy!jive.people.profile.imageProfileUrl','soy!jive.shared.displayutil.userDisplayName'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.profileImageAdded=function(a,b){var c=b||new soy.StringBuilder;c.append('<div class="j-act-prof-image">');for(var d=a.activity.groupedItems,e=d.length,f=0;e>f;f++){var g=d[f];1>f&&(c.append('<a href="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,'/people/'+encodeURIComponent(a.activity.activityUser.username))),'" style="background-image:url('),jive.people.profile.imageProfileUrl({profileImage:function(){for(var a={},b=[['id',g],['visible',!0]],c=0;c<b.length;c+=1)a[b[c][0]]=b[c][1];return a}(),size:350},c),c.append(')" class="j-prof-img"><span class="font-color-white">'),jive.shared.displayutil.userDisplayName(a.activity.activityUser,c),c.append('</span></a>'))}return c.append('</div>'),b?'':c.toString()},jive.eae.digest.subItem.profileImageAdded}),define('soy!jive.eae.digest.subItem.socialGroupActivity',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.digest.subItem'),jive.eae.digest.subItem.socialGroupActivity=function(a,b){var c=b||new soy.StringBuilder;return c.append((a.activity,"")),b?'':c.toString()},jive.eae.digest.subItem.socialGroupActivity}),define('soy!jive.eae.common.digestSubItem',['soyDeps','soy!jive.eae.digest.subItem.questCompleted','soy!jive.eae.digest.subItem.containerCreated','soy!jive.eae.digest.subItem.appDigest','soy!jive.eae.digest.subItem.content','soy!jive.eae.digest.subItem.discoveryStream','soy!jive.eae.digest.subItem.skillAdded','soy!jive.eae.digest.subItem.acclaimI18nHelper','soy!jive.eae.digest.subItem.acclaim','soy!jive.eae.digest.subItem.groupedTags','soy!jive.eae.digest.subItem.endorsementAdded','soy!jive.eae.digest.subItem.places','soy!jive.eae.digest.subItem.welcome','soy!jive.eae.digest.subItem.userRelationship','soy!jive.eae.digest.subItem.pbActivity','soy!jive.eae.digest.subItem.bookmark','soy!jive.eae.digest.subItem.profileUpdated','soy!jive.eae.digest.subItem.socialGroupJoin','soy!jive.eae.digest.subItem.avatarModified','soy!jive.eae.digest.subItem.nitroActivity','soy!jive.eae.digest.subItem.event','soy!jive.eae.digest.subItem.statusLevel','soy!jive.eae.digest.subItem.statusUpdate','soy!jive.eae.digest.subItem.people','soy!jive.eae.digest.subItem.projectCompleted','soy!jive.eae.digest.subItem.profileImageAdded','soy!jive.eae.digest.subItem.socialGroupActivity','soy!jive.eae.common.collapsedExcerptText','soy!jive.eae.common.subactivity','soy!jive.shared.soy.render'],function(a){return jive.namespace.call(this,'jive.eae.common'),jive.eae.common.digestSubItem=function(a,b){var c=b||new soy.StringBuilder;return a.activity.content.deleted?(c.append('<div class="font-color-meta-light">'),jive.eae.common.collapsedExcerptText({text:'',hasMoreText:!1,deletedType:null!=a.activity.content.deletedType?a.activity.content.deletedType:'expertise',moderated:!1},c),c.append('</div>')):a.activity.content.activityTemplate?a.user?jive.shared.soy.render({templateName:a.activity.content.activityTemplate,data:function(){for(var b={},c=[['activity',a.activity],['activityContainer',a.activityContainer],['user',a.user],['streamType',a.streamType],['filterData',a.filterData],['fromTemplate',a.fromTemplate]],d=0;d<c.length;d+=1)b[c[d][0]]=c[d][1];return b}(),failGracefully:!0},c):jive.shared.soy.render({templateName:a.activity.content.activityTemplate,data:function(){for(var b={},c=[['activity',a.activity],['activityContainer',a.activityContainer],['streamType',a.streamType],['filterData',a.filterData],['fromTemplate',a.fromTemplate]],d=0;d<c.length;d+=1)b[c[d][0]]=c[d][1];return b}(),failGracefully:!0},c):(c.append('<div>'),jive.eae.common.subactivity({activity:a.activity,activityContainer:a.activityContainer,user:a.user,isHidden:!1,streamType:a.streamType,filterData:a.filterData,canCreateMbImage:a.canCreateMbImage,canCreateMbVideo:a.canCreateMbVideo,addedInline:!1,hideStub:!1,forceCurrent:!1},c),c.append('</div>')),b?'':c.toString()},jive.eae.common.digestSubItem}),define('soy!jive.eae.activitystream.item.grouped.latestAcclaim',['soyDeps','soy!jive.eae.activitystream.updatedMarker','soy!jive.eae.common.digestSubItem'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.latestAcclaim=function(b,c){var d=c||new soy.StringBuilder;d.append('<div id="',soy.$$escapeHtmlAttribute(b.streamType),'_',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.objectType),'_',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.id),'context'==b.streamType?'_'+soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix):'','" role="article" class="j-act-entry j-js-ibx-item j-act-grouped j-act-acclaim',b.activityContainer.mattersMost?' j-act-matters-most':'',b.activityContainer.lastInLastUpdatedSet?' j-last-updated':b.activityContainer.lastInPrevUpdatedSet?' j-prev-updated':'',' j-act-not-markable clearfix"><div class="j-js-act-content j-act-content"><div class="j-act-title" role="heading">',soy.$$escapeHtml(a._i18n('40d8c6',[])),'</div><div class=\'j-latest-acclaim-subhead\'>',soy.$$escapeHtml(a._i18n('c7a1fe',[])),'</div><div class="',b.activityContainer.activityList.length>5?'j-act-coll-view':'',' collapsed clearfix"><div><ul>');for(var e=b.activityContainer.activityList,f=e.length,g=0;f>g;g++){var h=e[g];5>g&&(d.append('<li>'),jive.eae.common.digestSubItem({activity:h,user:b.user,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo,fromTemplate:'latest_acclaim'},d),d.append('</li>'))}return d.append('</ul></div>',b.activityContainer.activityList.length>5?'<div class="j-preview-trigger"><a href="#" class="j-show-more j-js-show-all"><span class="jive-icon-med jive-icon-arrow-down vmicon"></span><span class="jive-icon-med jive-icon-arrow-down-focus vmicon"></span><strong class="lnk font-color-meta">'+soy.$$escapeHtml(a._i18n('c98d10',[]))+'</strong></a></div>':'','</div><div class="j-act-exp-view expanded clearfix" style="display:none;"></div></div>'),b.activityContainer.lastInLastUpdatedSet?jive.eae.activitystream.updatedMarker({type:'last'},d):b.activityContainer.lastInPrevUpdatedSet&&jive.eae.activitystream.updatedMarker({type:'prev'},d),d.append('</div>'),c?'':d.toString()},jive.eae.activitystream.item.grouped.latestAcclaim}),define('soy!jive.eae.activitystream.item.grouped.sharedContentExcerpt',['soyDeps','soy!jive.eae.common.parentPreviewLinks'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.sharedContentExcerpt=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-excerpt"><span class="j-excerpt-slug">'),a.activityContainer.jiveObject.sharedContent.text&&(c.append(soy.$$filterNoAutoescape(a.activityContainer.jiveObject.sharedContent.text)),a.activityContainer.jiveObject.sharedContent.hasMoreText&&(c.append('&hellip;<span class="j-act-preview-control"> '),jive.eae.common.parentPreviewLinks(a,c),c.append('</span>'))),c.append('</span></div>'),b?'':c.toString()},jive.eae.activitystream.item.grouped.sharedContentExcerpt}),define('soy!jive.eae.apps.common.appInstallCount',['soyDeps','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.apps.common'),jive.eae.apps.common.appInstallCount=function(a,b){var c=b||new soy.StringBuilder;return a.extraData&&a.extraData.installed&&a.extraData.installed.system&&(c.append('<span class="font-color-meta-light">'),jive.shared.soy.i18nHelper({i18nKey:1==a.extraData.installed.system?soy.$$escapeHtml('99eb7a'):soy.$$escapeHtml('0551cb'),arg0:soy.$$escapeHtml(a.extraData.installed.system),noAutoEscape:!0},c),c.append('</span>')),b?'':c.toString()},jive.eae.apps.common.appInstallCount}),define('soy!jive.eae.activitystream.item.grouped.appGrouped',['soyDeps','soy!jive.eae.activitystream.activityStreamExpandContent','soy!jive.eae.activitystream.item.collapsed.appGrouped','soy!jive.eae.activitystream.updatedMarker','soy!jive.eae.apps.common.appInstallCount','soy!jive.eae.common.collapsedExcerptText','soy!jive.eae.common.parentPreviewLinks','soy!jive.shared.displayutil.renderIconElement','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.appGrouped=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div ',b.activityContainer.jiveObject.extraData&&b.activityContainer.jiveObject.extraData.appID?'id="'+soy.$$escapeHtmlAttribute(b.streamType)+'_'+b.activityContainer.jiveObject.objectType+'_'+b.activityContainer.jiveObject.id+'_1400_'+soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.extraData.appID)+'_'+soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix)+'"':'id="'+soy.$$escapeHtmlAttribute(b.streamType)+'_'+b.activityContainer.jiveObject.objectType+'_'+b.activityContainer.jiveObject.id+'_'+soy.$$escapeHtmlAttribute(b.activityContainer.container.type)+'_'+soy.$$escapeHtmlAttribute(b.activityContainer.container.id)+'_'+soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix)+'"',' role="article" class="j-act-entry j-js-ibx-item j-act-not-markable j-act-app-g',b.activityContainer.mattersMost?' j-act-matters-most':'',b.activityContainer.lastInLastUpdatedSet?' j-last-updated':b.activityContainer.lastInPrevUpdatedSet?' j-prev-updated':'',' clearfix" data-extVisible="',soy.$$escapeHtmlAttribute(b.activityContainer.visibleToExtCollaborator),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.id),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.objectType),'"><div class="j-js-act-content j-act-content">'),'uri:jiveName:app_install'==b.activityContainer.activityList[0].content.verb?(d.append('<div class="j-act-title j-apptitle" role="heading">'),b.activityContainer.jiveObject.activityIcon?(d.append('<span class="acticon appicon">'),jive.shared.displayutil.renderIconElement({icon:b.activityContainer.jiveObject.activityIcon},d),d.append('</span>')):d.append('<span class="jive-icon-med ',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.jiveObjectCSS),' acticon"></span>'),d.append(b.user&&!b.user.anonymous&&b.activityContainer.activityList[0].content.activityObjectURL?'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,b.activityContainer.activityList[0].content.activityObjectURL)))+'" class="title">':'',b.activityContainer.jiveObject.subjectIsHtml?soy.$$filterNoAutoescape(b.activityContainer.jiveObject.htmlSubject):soy.$$filterNoAutoescape(b.activityContainer.jiveObject.subject),b.user&&!b.user.anonymous&&b.activityContainer.activityList[0].content.activityObjectURL?'</a>':'',' <span class="j-act-preview-control"> '),jive.eae.common.parentPreviewLinks(b,d),d.append('</span></div><div id="act-title-',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix),'" class="j-act-app-init j-act-rte-replyable" data-extVisible="',soy.$$escapeHtmlAttribute(b.activityContainer.visibleToExtCollaborator),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.id),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.objectType),'"><div class="j-excerpt"><div class="j-excerpt-slug">'),jive.eae.common.collapsedExcerptText({text:b.activityContainer.activityList[0].content.summary,hasMoreText:b.activityContainer.activityList[0].hasMoreText,deletedType:null,moderated:!1},d),d.append('</div></div><div class="j-meta-actions font-color-meta hidden-xs">'),b.activityContainer.activityList[0].content.generatorDeepURL&&jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('64e2ab'),arg0:'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activityContainer.activityList[0].content.generatorDeepURL))+'" class="font-color-meta">'+soy.$$escapeHtml(b.activityContainer.activityList[0].content.contentTypeFeatureName)+'</a>',noAutoEscape:!0},d),d.append(b.user&&!b.user.anonymous&&'uri:jiveName:app_install'==b.activityContainer.activityList[0].content.verb&&b.activityContainer.activityList[0].content.activityObjectURL?' <span class="j-bullet">&#8226;</span> <a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,b.activityContainer.activityList[0].content.activityObjectURL)))+'">'+soy.$$escapeHtml(a._i18n('e1e4fc',[]))+'</a>':'','all'==b.streamType||'profile'==b.streamType||'context'==b.streamType||'communications'==b.streamType||'publication'==b.streamType||'all'!=b.filterData.selectedFilter.type||b.filterData.excluding?'':' <span class="j-bullet">&#8226;</span> <a href="#" class="js-act-hidemenu" title="'+soy.$$escapeHtmlAttribute(a._i18n('df75ef',[]))+'">'+soy.$$escapeHtml(a._i18n('33f5d1',[]))+'</a>','</div></div>')):(d.append('<div class="j-act-title j-apptitle" role="heading">'),b.activityContainer.jiveObject.activityIcon?(d.append('<span class="acticon appicon">'),jive.shared.displayutil.renderIconElement({icon:b.activityContainer.jiveObject.activityIcon},d),d.append('</span>')):d.append('<span class="jive-icon-med ',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.jiveObjectCSS),' acticon"></span>'),d.append(soy.$$filterNoAutoescape(b.activityContainer.jiveObject.subject)),b.activityContainer.jiveObjectURL&&(d.append(' <span class="j-act-container j-meta-actions font-color-meta">'),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('64e2ab'),arg0:'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.activityContainer.jiveObjectURL))+'">'+soy.$$escapeHtml(b.activityContainer.jiveObject.generatorName)+'</a>',noAutoEscape:!0},d),d.append('</span>')),d.append('</div>')),d.append('<div class="j-act-hidden" style="display:none;"></div><div class="j-act-exp-full-content-view js-full-content-container" style="display:none;"></div><div class="j-act-expand-bar font-color-meta clearfix">'),jive.eae.apps.common.appInstallCount({extraData:b.activityContainer.activityList[0].content.extraData},d),d.append(' '),b.activityContainer.activityList.length>1&&jive.eae.activitystream.activityStreamExpandContent(b,d),d.append('</div><div class="j-act-exp-view j-expanded clearfix" style="display:none;"></div><div class="j-act-coll-view collapsed clearfix">'),jive.eae.activitystream.item.collapsed.appGrouped({activityContainer:b.activityContainer,activity:b.activityContainer.activityList[b.activityContainer.activityList.length-1],streamType:b.streamType,filterData:b.filterData,user:b.user,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo,hideStub:!1,time:b.activityContainer.parentTime},d),d.append('</div></div>'),b.activityContainer.lastInLastUpdatedSet?jive.eae.activitystream.updatedMarker({type:'last'},d):b.activityContainer.lastInPrevUpdatedSet&&jive.eae.activitystream.updatedMarker({type:'prev'},d),d.append('</div>'),c?'':d.toString()},jive.eae.activitystream.item.grouped.appGrouped}),define('soy!jive.eae.activitystream.item.grouped.latestEndorsements',['soyDeps','soy!jive.eae.activitystream.item.grouped.activityContentEnd','soy!jive.eae.activitystream.item.grouped.activityContentStart','soy!jive.eae.activitystream.item.grouped.articleEnd','soy!jive.eae.activitystream.item.grouped.articleStart','soy!jive.eae.activitystream.item.grouped.divider','soy!jive.eae.common.digestSubItem'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.latestEndorsements=function(b,c){var d=c||new soy.StringBuilder;jive.eae.activitystream.item.grouped.articleStart(soy.$$augmentMap(b,{customId:soy.$$escapeHtml(b.streamType)+'_'+soy.$$escapeHtml(b.activityContainer.jiveObject.objectType)+'_'+soy.$$escapeHtml(b.activityContainer.jiveObject.id)+('context'==b.streamType?'_'+soy.$$escapeHtml(b.activityContainer.jiveObject.domIDPostfix):''),extraClasses:'j-act-grouped j-act-people-updates'}),d),jive.eae.activitystream.item.grouped.activityContentStart(null,d),d.append('<div class="j-act-title" role="heading" id="act-title-',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix),'"><span class="title">',soy.$$escapeHtml(a._i18n('da2c0d',[])),'</span></div>');var e=5,f=b.activityContainer.activityList.length>e;d.append('<div class="',f?'j-act-coll-view':'',' collapsed clearfix"><ul class="j-act-g-list">');for(var g=b.activityContainer.activityList,h=g.length,i=0;h>i;i++){var j=g[i];j&&(d.append('<li class="j-act-g-item" data-timestamp="',soy.$$escapeHtmlAttribute(j.groupedOldestTimestamp),'"',i>=e?'style="display:none;"':'','>'),jive.eae.common.digestSubItem({activity:j,user:b.user,fromTemplate:'latest_likes'},d),d.append('</li>'))}return d.append('</ul>',f?'<div class="j-preview-trigger j-expand-comments"><a href="#" class="j-show-more j-js-show-all"><span class="jive-icon-med jive-icon-arrow-down vmicon"></span><span class="jive-icon-med jive-icon-arrow-down-focus vmicon"></span><strong class="lnk font-color-meta">'+soy.$$escapeHtml(a._i18n('c98d10',[]))+'</strong></a></div>':'','</div>'),jive.eae.activitystream.item.grouped.activityContentEnd(null,d),jive.eae.activitystream.item.grouped.divider(b,d),jive.eae.activitystream.item.grouped.articleEnd(null,d),c?'':d.toString()},jive.eae.activitystream.item.grouped.latestEndorsements}),define('soy!jive.eae.activitystream.item.grouped.statusUpdate',['soyDeps','soy!jive.eae.activitystream.activityStreamExpandBar','soy!jive.eae.activitystream.item.collapsed.statusUpdate','soy!jive.eae.activitystream.item.grouped.activityContentEnd','soy!jive.eae.activitystream.item.grouped.activityContentStart','soy!jive.eae.activitystream.item.grouped.activityHidden','soy!jive.eae.activitystream.item.grouped.articleEnd','soy!jive.eae.activitystream.item.grouped.articleStart','soy!jive.eae.activitystream.item.grouped.divider','soy!jive.eae.activitystream.item.grouped.expandedComments','soy!jive.eae.activitystream.item.grouped.mattersMost','soy!jive.eae.activitystream.item.grouped.streamStatusUpdateTitle'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.statusUpdate=function(a,b){var c=b||new soy.StringBuilder;return jive.eae.activitystream.item.grouped.articleStart(soy.$$augmentMap(a,{extraClasses:'j-act-mb'+(1==a.activityContainer.activityList.length&&a.activityContainer.activityList[0].parentActivity?' j-act-mb-new':'')}),c),jive.eae.activitystream.item.grouped.mattersMost(a,c),jive.eae.activitystream.item.grouped.activityContentStart(null,c),c.append('<div class="j-js-microrte-replyable">'),jive.eae.activitystream.item.grouped.streamStatusUpdateTitle({activityContainer:a.activityContainer,hidden:!1,streamType:a.streamType,filterData:a.filterData,user:a.user},c),c.append('</div>'),jive.eae.activitystream.activityStreamExpandBar(a,c),jive.eae.activitystream.item.grouped.activityHidden(null,c),jive.eae.activitystream.item.grouped.expandedComments(null,c),c.append('<div class="j-act-coll-view collapsed clearfix">'),jive.eae.activitystream.item.collapsed.statusUpdate({activity:a.activityContainer.activityList[a.activityContainer.activityList.length-1],activityContainer:a.activityContainer,user:a.user,streamType:a.streamType,filterData:a.filterData,canCreateMbImage:a.canCreateMbImage,canCreateMbImage:a.canCreateMbVideo,time:a.activityContainer.parentTime},c),c.append('</div>'),jive.eae.activitystream.item.grouped.activityContentEnd(null,c),jive.eae.activitystream.item.grouped.divider(a,c),jive.eae.activitystream.item.grouped.articleEnd(null,c),b?'':c.toString()},jive.eae.activitystream.item.grouped.statusUpdate}),define('soy!jive.eae.activitystream.item.grouped.latestProfile',['soyDeps','soy!jive.eae.activitystream.item.grouped.activityContentEnd','soy!jive.eae.activitystream.item.grouped.activityContentStart','soy!jive.eae.activitystream.item.grouped.articleEnd','soy!jive.eae.activitystream.item.grouped.articleStart','soy!jive.eae.activitystream.item.grouped.divider','soy!jive.eae.common.digestSubItem'],function(a){
return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.latestProfile=function(b,c){var d=c||new soy.StringBuilder;jive.eae.activitystream.item.grouped.articleStart(soy.$$augmentMap(b,{customId:soy.$$escapeHtml(b.streamType)+'_'+soy.$$escapeHtml(b.activityContainer.jiveObject.objectType)+'_'+soy.$$escapeHtml(b.activityContainer.jiveObject.id)+('context'==b.streamType?'_'+soy.$$escapeHtml(b.activityContainer.jiveObject.domIDPostfix):''),extraClasses:'j-act-grouped j-act-profile-updates'}),d),jive.eae.activitystream.item.grouped.activityContentStart(null,d),d.append('<div class="j-act-title" role="heading" id="act-title-',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix),'"><span class="title">',soy.$$escapeHtml(a._i18n('b6f6bf',[])),'</span></div><div class="j-act-coll-view collapsed clearfix"><ul class="j-act-g-list j-act-prof-img-wrap">');var e=b.activityContainer.jiveObject.avatarChangedActivityIndex;if(-1==e||e>=4)for(var f=b.activityContainer.activityList.slice(0,4),g=f.length,h=0;g>h;h++){var i=f[h];i.groupedItems.length&&(d.append('<li data-timestamp="',soy.$$escapeHtmlAttribute(i.groupedOldestTimestamp),'">'),jive.eae.common.digestSubItem({activity:i,user:b.user,fromTemplate:'latest_profile'},d),d.append('</li>'))}else for(var j=b.activityContainer.activityList.slice(0,5),k=j.length,l=0;k>l;l++){var m=j[l];m.groupedItems.length&&l!=e&&(d.append('<li data-timestamp="',soy.$$escapeHtmlAttribute(m.groupedOldestTimestamp),'">'),jive.eae.common.digestSubItem({activity:m,user:b.user,fromTemplate:'latest_profile'},d),d.append('</li>'))}return-1!=e&&(d.append('<li data-timestamp="',soy.$$escapeHtmlAttribute(b.activityContainer.activityList[e].groupedOldestTimestamp),'">'),jive.eae.common.digestSubItem({activity:b.activityContainer.activityList[e],user:b.user,fromTemplate:'latest_profile'},d),d.append('</li>')),d.append('</ul></div>'),jive.eae.activitystream.item.grouped.activityContentEnd(null,d),jive.eae.activitystream.item.grouped.divider(b,d),jive.eae.activitystream.item.grouped.articleEnd(null,d),c?'':d.toString()},jive.eae.activitystream.item.grouped.latestProfile}),define('soy!jive.eae.poll.common.voteCount',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.poll.common'),jive.eae.poll.common.voteCount=function(b,c){var d=c||new soy.StringBuilder;return d.append(1==b.numOfVotes?soy.$$escapeHtml(a._i18n('2cfc60',[b.numOfVotes])):soy.$$escapeHtml(a._i18n('1bb60b',[b.numOfVotes]))),c?'':d.toString()},jive.eae.poll.common.voteCount}),define('soy!jive.eae.activitystream.item.grouped.poll',['soyDeps','soy!jive.eae.activitystream.activityStreamExpandBar','soy!jive.eae.activitystream.item.grouped.actions','soy!jive.eae.activitystream.item.grouped.activityBodyEnd','soy!jive.eae.activitystream.item.grouped.activityBodyStart','soy!jive.eae.activitystream.item.grouped.activityContentEnd','soy!jive.eae.activitystream.item.grouped.activityContentStart','soy!jive.eae.activitystream.item.grouped.activityHeading','soy!jive.eae.activitystream.item.grouped.activityHidden','soy!jive.eae.activitystream.item.grouped.articleEnd','soy!jive.eae.activitystream.item.grouped.articleStart','soy!jive.eae.activitystream.item.grouped.author','soy!jive.eae.activitystream.item.grouped.avatar','soy!jive.eae.activitystream.item.grouped.collapsedComments','soy!jive.eae.activitystream.item.grouped.divider','soy!jive.eae.activitystream.item.grouped.expandedComments','soy!jive.eae.activitystream.item.grouped.fullBody','soy!jive.eae.activitystream.item.grouped.mattersMost','soy!jive.eae.poll.common.voteCount'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.poll=function(a,b){var c=b||new soy.StringBuilder;return jive.eae.activitystream.item.grouped.articleStart(a,c),jive.eae.activitystream.item.grouped.mattersMost(a,c),jive.eae.activitystream.item.grouped.activityContentStart(null,c),jive.eae.activitystream.item.grouped.activityBodyStart(a,c),jive.eae.activitystream.item.grouped.avatar(a,c),jive.eae.activitystream.item.grouped.author(a,c),jive.eae.activitystream.item.grouped.activityHeading(a,c),c.append('<div class="j-excerpt">'),jive.eae.poll.common.voteCount({numOfVotes:a.activityContainer.jiveObject.voteCount},c),c.append('</div>'),jive.eae.activitystream.item.grouped.fullBody(null,c),jive.eae.activitystream.item.grouped.actions(a,c),jive.eae.activitystream.item.grouped.activityBodyEnd(null,c),jive.eae.activitystream.item.grouped.activityHidden(null,c),jive.eae.activitystream.activityStreamExpandBar(a,c),jive.eae.activitystream.item.grouped.expandedComments(null,c),jive.eae.activitystream.item.grouped.collapsedComments(a,c),jive.eae.activitystream.item.grouped.activityContentEnd(null,c),jive.eae.activitystream.item.grouped.divider(a,c),jive.eae.activitystream.item.grouped.articleEnd(null,c),b?'':c.toString()},jive.eae.activitystream.item.grouped.poll}),define('soy!jive.eae.activitystream.item.grouped.excerpt',['soyDeps','soy!jive.eae.common.parentPreviewLinks','soy!jive.eae.common.streamImage'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.excerpt=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-excerpt">'),jive.eae.common.streamImage(a,c),c.append('<span class="j-excerpt-slug">'),a.activityContainer.jiveObject.text&&(c.append(soy.$$filterNoAutoescape(a.activityContainer.jiveObject.text)),a.activityContainer.jiveObject.hasMoreText&&(c.append('&hellip;<span class="j-act-preview-control"> '),jive.eae.common.parentPreviewLinks(a,c),c.append('</span>'))),c.append('</span></div>'),b?'':c.toString()},jive.eae.activitystream.item.grouped.excerpt}),define('soy!jive.eae.activitystream.item.grouped.defaultImpl',['soyDeps','soy!jive.eae.activitystream.activityStreamExpandBar','soy!jive.eae.activitystream.item.grouped.actions','soy!jive.eae.activitystream.item.grouped.activityBodyEnd','soy!jive.eae.activitystream.item.grouped.activityBodyStart','soy!jive.eae.activitystream.item.grouped.activityContentEnd','soy!jive.eae.activitystream.item.grouped.activityContentStart','soy!jive.eae.activitystream.item.grouped.activityHeading','soy!jive.eae.activitystream.item.grouped.activityHidden','soy!jive.eae.activitystream.item.grouped.articleEnd','soy!jive.eae.activitystream.item.grouped.articleStart','soy!jive.eae.activitystream.item.grouped.author','soy!jive.eae.activitystream.item.grouped.avatar','soy!jive.eae.activitystream.item.grouped.collapsedComments','soy!jive.eae.activitystream.item.grouped.divider','soy!jive.eae.activitystream.item.grouped.excerpt','soy!jive.eae.activitystream.item.grouped.expandedComments','soy!jive.eae.activitystream.item.grouped.fullBody','soy!jive.eae.activitystream.item.grouped.mattersMost'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.defaultImpl=function(a,b){var c=b||new soy.StringBuilder;return jive.eae.activitystream.item.grouped.articleStart(a,c),jive.eae.activitystream.item.grouped.mattersMost(a,c),jive.eae.activitystream.item.grouped.activityContentStart(null,c),jive.eae.activitystream.item.grouped.activityBodyStart(a,c),jive.eae.activitystream.item.grouped.avatar(a,c),jive.eae.activitystream.item.grouped.author(a,c),jive.eae.activitystream.item.grouped.activityHeading(a,c),jive.eae.activitystream.item.grouped.excerpt(a,c),jive.eae.activitystream.item.grouped.fullBody(null,c),jive.eae.activitystream.item.grouped.actions(a,c),jive.eae.activitystream.item.grouped.activityBodyEnd(null,c),jive.eae.activitystream.item.grouped.activityHidden(null,c),jive.eae.activitystream.activityStreamExpandBar(a,c),jive.eae.activitystream.item.grouped.expandedComments(null,c),jive.eae.activitystream.item.grouped.collapsedComments(a,c),jive.eae.activitystream.item.grouped.activityContentEnd(null,c),jive.eae.activitystream.item.grouped.divider(a,c),jive.eae.activitystream.item.grouped.articleEnd(null,c),b?'':c.toString()},jive.eae.activitystream.item.grouped.defaultImpl}),define('soy!jive.eae.activitystream.item.grouped.sharedContentFullBody',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.sharedContentFullBody=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-act-exp-full-content-view js-full-content-container" style="display:none;"></div>'),b?'':c.toString()},jive.eae.activitystream.item.grouped.sharedContentFullBody}),define('soy!jive.eae.activitystream.item.grouped.appDigest',['soyDeps','soy!jive.eae.activitystream.updatedMarker','soy!jive.eae.apps.common.appInstallCount','soy!jive.eae.apps.common.renderAppEmbeddedExperience','soy!jive.eae.common.digestSubItem','soy!jive.shared.displayutil.renderIconElement','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.appDigest=function(b,c){var d=c||new soy.StringBuilder;d.append('<div id="',soy.$$escapeHtmlAttribute(b.streamType),'_',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.objectType),'_',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.id),'context'==b.streamType?'_'+soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix):'','" data-extVisible="',soy.$$escapeHtmlAttribute(b.activityContainer.visibleToExtCollaborator),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.id),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.objectType),'" role="article" class="j-act-entry j-act-not-markable j-act-grouped j-act-appdigest',b.activityContainer.mattersMost?' j-act-matters-most':'',b.activityContainer.lastInLastUpdatedSet?' j-last-updated':b.activityContainer.lastInPrevUpdatedSet?' j-prev-updated':'',' clearfix">',b.activityContainer.mattersMost?'<span class="j-act-mm-label">'+soy.$$escapeHtml(a._i18n('99f1dc',[]))+'</span>':'','<div class="j-js-act-content j-act-content"><div class="j-act-title" role="heading">'),b.activityContainer.jiveObject.activityIcon?(d.append('<span class="acticon appicon">'),jive.shared.displayutil.renderIconElement({icon:b.activityContainer.jiveObject.activityIcon},d),d.append('</span>')):d.append('<span class="jive-icon-med  ',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.jiveObjectCSS),' acticon"></span>'),d.append(b.activityContainer.jiveObject.subjectIsHtml?soy.$$filterNoAutoescape(b.activityContainer.jiveObject.htmlSubject):soy.$$filterNoAutoescape(b.activityContainer.jiveObject.subject),'</div><div class="j-act-hidden j-rc4 j-rc-none-top" style="display:none;"></div><div class="',b.activityContainer.activityList.length>5?'j-act-coll-view':'',' collapsed clearfix"><ul class="j-act-g-list">');for(var e=b.activityContainer.activityList,f=e.length,g=0;f>g;g++){var h=e[g];5>g?(d.append('<li class="j-act-g-item" data-timestamp="',soy.$$escapeHtmlAttribute(h.groupedOldestTimestamp),'">'),jive.eae.common.digestSubItem({activity:h,user:b.user,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo,fromTemplate:'app_digest'},d),d.append('</li>')):(d.append('<li class="j-act-g-item" style="display:none;" data-timestamp="',soy.$$escapeHtmlAttribute(h.groupedOldestTimestamp),'">'),jive.eae.common.digestSubItem({activity:h,user:b.user,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo,fromTemplate:'app_digest'},d),d.append('</li>'))}return d.append('</ul></div><div class="j-meta-actions font-color-meta">'),b.activityContainer.jiveObject.ee&&jive.eae.apps.common.renderAppEmbeddedExperience({ee:b.activityContainer.jiveObject.ee},d),b.activityContainer.jiveObject.generatorDeepURL&&(d.append(' <span class="j-bullet">&#8226;</span> <span class="j-act-container">'),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('64e2ab'),arg0:'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.activityContainer.jiveObject.generatorDeepURL))+'">'+soy.$$escapeHtml(b.activityContainer.jiveObject.contentTypeName)+'</a>',noAutoEscape:!0},d),d.append('</span>')),d.append(' <span class="j-bullet">&#8226;</span> '),jive.eae.apps.common.appInstallCount({extraData:b.activityContainer.jiveObject.extraData},d),d.append('</div></div>'),b.activityContainer.lastInLastUpdatedSet?jive.eae.activitystream.updatedMarker({type:'last'},d):b.activityContainer.lastInPrevUpdatedSet&&jive.eae.activitystream.updatedMarker({type:'prev'},d),d.append('</div>'),c?'':d.toString()},jive.eae.activitystream.item.grouped.appDigest}),define('soy!jive.eae.activitystream.item.grouped.socialNews',['soyDeps','soy!jive.eae.activitystream.item.grouped.activityContentEnd','soy!jive.eae.activitystream.item.grouped.activityContentStart','soy!jive.eae.activitystream.item.grouped.articleEnd','soy!jive.eae.activitystream.item.grouped.articleStart','soy!jive.eae.activitystream.item.grouped.divider','soy!jive.eae.common.digestSubItem'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.socialNews=function(b,c){var d=c||new soy.StringBuilder;jive.eae.activitystream.item.grouped.articleStart(soy.$$augmentMap(b,{customId:soy.$$escapeHtml(b.streamType)+'_'+soy.$$escapeHtml(b.activityContainer.jiveObject.objectType)+'_'+soy.$$escapeHtml(b.activityContainer.jiveObject.id)+('context'==b.streamType?'_'+soy.$$escapeHtml(b.activityContainer.jiveObject.domIDPostfix):''),extraClasses:'j-act-grouped j-act-social-news'}),d),jive.eae.activitystream.item.grouped.activityContentStart(null,d),d.append('<div class="j-act-title" role="heading" id="act-title-',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix),'"><span class="title">',soy.$$escapeHtml(a._i18n('1dbe8d',[])),'</span></div><div class="',b.activityContainer.activityList.length>5?'j-act-coll-view':'',' collapsed clearfix"><ul class="j-act-g-list">');for(var e=b.activityContainer.activityList,f=e.length,g=0;f>g;g++){var h=e[g];h&&!h.content.deleted&&(5>g?(d.append('<li class="j-act-g-item" data-timestamp="',soy.$$escapeHtmlAttribute(h.groupedOldestTimestamp),'">'),jive.eae.common.digestSubItem({activityContainer:b.activityContainer,activity:h,user:b.user,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo,fromTemplate:'grouped_social_news'},d),d.append('</li>')):(d.append('<li class="j-act-g-item" style="display:none;" data-timestamp="',soy.$$escapeHtmlAttribute(h.groupedOldestTimestamp),'">'),jive.eae.common.digestSubItem({activityContainer:b.activityContainer,activity:h,user:b.user,streamType:b.streamType,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo,fromTemplate:'grouped_social_news'},d),d.append('</li>')))}return d.append('</ul><div class="j-preview-trigger j-expand-comments"><a href="#" class="j-show-more j-js-show-all"><span class="jive-icon-med jive-icon-arrow-down vmicon"></span><span class="jive-icon-med jive-icon-arrow-down-focus vmicon"></span><strong class="lnk font-color-meta">',soy.$$escapeHtml(a._i18n('c98d10',[])),'</strong></a></div></div>'),jive.eae.activitystream.item.grouped.activityContentEnd(null,d),jive.eae.activitystream.item.grouped.divider(b,d),jive.eae.activitystream.item.grouped.articleEnd(null,d),c?'':d.toString()},jive.eae.activitystream.item.grouped.socialNews}),define('soy!jive.eae.activitystream.item.grouped.mention',['soyDeps','soy!jive.eae.activitystream.item.collapsed.mention','soy!jive.eae.activitystream.updatedMarker','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.mention=function(b,c){var d=c||new soy.StringBuilder;d.append('<div id="',soy.$$escapeHtmlAttribute(b.streamType),'_',b.activityContainer.jiveObject.objectType,'_',b.activityContainer.jiveObject.id,'_',soy.$$escapeHtmlAttribute(b.activityContainer.container.type),'_',soy.$$escapeHtmlAttribute(b.activityContainer.container.id),'" role="article" class="j-act-entry j-act-mentions j-act-not-markable',b.activityContainer.mattersMost?' j-act-matters-most':'',b.activityContainer.lastInLastUpdatedSet?' j-last-updated':b.activityContainer.lastInPrevUpdatedSet?' j-prev-updated':'',' clearfix" data-extVisible="',soy.$$escapeHtmlAttribute(b.activityContainer.visibleToExtCollaborator),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activityContainer.activityList[0].content.context.id),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activityContainer.activityList[0].content.context.objectType),'">',b.activityContainer.mattersMost?'<span class="j-act-mm-label">'+soy.$$escapeHtml(a._i18n('99f1dc',[]))+'</span>':'','<div class="j-js-act-content j-act-content"><div class="j-act-init"><div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activityContainer.activityList[0].activityUser,{size:46,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-author-act">');var e=b.activityContainer.activityList[0];if(3==e.content.mentionedObject.objectType&&e.content.mentionedObject.id+''==b.user.id){var f=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(e.activityUser,f),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('3f3e71'),arg0:f.toString(),noAutoEscape:!0},d)}else{var g=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(e.activityUser,g),g=g.toString();var h=new soy.StringBuilder('<strong class="font-color-okay">',soy.$$escapeHtml(e.content.mentionedObject.name),'</strong>');h=h.toString(),d.append(4==e.content.mentionedObject.objectType||14==e.content.mentionedObject.objectType?soy.$$filterNoAutoescape(a._i18n('49e2a0',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(g),new soydata.VERY_UNSAFE.ordainSanitizedHtml(h)])):3==e.content.mentionedObject.objectType?soy.$$filterNoAutoescape(a._i18n('782a17',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(g),new soydata.VERY_UNSAFE.ordainSanitizedHtml(h)])):soy.$$filterNoAutoescape(a._i18n('1495e0',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(g),new soydata.VERY_UNSAFE.ordainSanitizedHtml(h)])))}return d.append('<span class="j-author-act-meta"><span class="j-act-time font-color-meta-light"> ',b.activityContainer.activityList[0].content.context.jiveObjectURL&&!b.activityContainer.activityList[0].content.context.parentTypeAnnouncement?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activityContainer.activityList[0].content.context.jiveObjectURL))+'" class="font-color-meta-light">':'',soy.$$escapeHtml(b.activityContainer.activityList[0].creationTime),b.activityContainer.activityList[0].content.context.jiveObjectURL&&!b.activityContainer.activityList[0].content.context.parentTypeAnnouncement?'</a>':'','</span> <span class="j-act-preview-control font-color-meta"><a href=\'#\' class="j-js-show-full-content j-act-preview show" data-extVisible="',soy.$$escapeHtmlAttribute(b.activityContainer.visibleToExtCollaborator),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activityContainer.activityList[0].content.context.id),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activityContainer.activityList[0].content.context.objectType),'" aria-hidden="false">',soy.$$escapeHtml(a._i18n('f3ff43',[])),'</a><a href=\'#\' class="j-js-hide-full-content j-act-preview hide" style="display:none;" aria-hidden="true">',soy.$$escapeHtml(a._i18n('8a0760',[])),'</a></span></span></div><div class="j-mention-title"><span  title=\'',soy.$$escapeHtmlAttribute(a._i18n('4657e3',[])),'\' role=\'img\' class="',soy.$$escapeHtmlAttribute(b.activityContainer.activityList[0].content.context.jiveObjectCSS),' jive-icon-med"></span>',b.activityContainer.activityList[0].content.context.parentTypeAnnouncement?'<span class="jive-alert-announcement-label">'+soy.$$escapeHtml(a._i18n('378c45',[]))+'</span> '+soy.$$escapeHtml(b.activityContainer.activityList[0].content.context.name):'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activityContainer.activityList[0].content.context.jiveObjectURL))+'">'+soy.$$filterNoAutoescape(b.activityContainer.activityList[0].content.context.name)+'</a>','</div><div class="j-act-exp-full-content-view js-full-content-container j-expanded" style="display:none;"></div></div><div class="j-act-coll-view collapsed clearfix" style="display:none;">'),jive.eae.activitystream.item.collapsed.mention({activityContainer:b.activityContainer,activity:b.activityContainer.activityList[b.activityContainer.activityList.length-1],streamType:b.streamType,filterData:b.filterData,user:b.user,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo,hideStub:!1,time:b.activityContainer.parentTime},d),d.append('</div></div>'),b.activityContainer.lastInLastUpdatedSet?jive.eae.activitystream.updatedMarker({type:'last'},d):b.activityContainer.lastInPrevUpdatedSet&&jive.eae.activitystream.updatedMarker({type:'prev'},d),d.append('</div>'),c?'':d.toString()},jive.eae.activitystream.item.grouped.mention}),define('soy!jive.eae.activitystream.item.grouped.appUpdate',['soyDeps','soy!jive.eae.acclaim.renderIcon','soy!jive.eae.acclaim.count','soy!jive.eae.acclaim.getAcclaimTextByType','soy!jive.eae.acclaim.acclaimTypeLargeControlClasses','soy!jive.eae.acclaim.activityAcclaimLinkContainer','soy!jive.eae.acclaim.showAcclaimsLargeControlClasses','soy!jive.eae.acclaim.acclaimContainerMedium','soy!jive.eae.acclaim.expressLike','soy!jive.eae.acclaim.acclaimContainerButtonControl','soy!jive.eae.acclaim.acclaimContainerLargeButtons','soy!jive.eae.acclaim.acclaimControl','soy!jive.eae.acclaim.activityAcclaimLinkContainerNews','soy!jive.eae.activitystream.activityStreamExpandBar','soy!jive.eae.activitystream.item.collapsed.appUpdate','soy!jive.eae.activitystream.updatedMarker','soy!jive.eae.apps.common.renderAppEmbeddedExperience','soy!jive.eae.common.activityAuthor','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.collapsedExcerptText','soy!jive.eae.common.renderStreamAttachments','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.renderIconElement','soy!jive.shared.soy.i18nHelper','soy!jive.soy.share.control'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.appUpdate=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div ',b.activityContainer.jiveObject.extraData&&b.activityContainer.jiveObject.extraData.appID?'id="'+soy.$$escapeHtmlAttribute(b.streamType)+'_'+b.activityContainer.jiveObject.objectType+'_'+b.activityContainer.jiveObject.id+'_1400_'+soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.extraData.appID)+'_'+soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix)+'"':'id="'+soy.$$escapeHtmlAttribute(b.streamType)+'_'+b.activityContainer.jiveObject.objectType+'_'+b.activityContainer.jiveObject.id+'_'+soy.$$escapeHtmlAttribute(b.activityContainer.container.type)+'_'+soy.$$escapeHtmlAttribute(b.activityContainer.container.id)+'_'+soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix)+'"',' role="article" class="j-act-entry j-act-not-markable j-act-app',b.activityContainer.mattersMost?' j-act-matters-most ':'',b.activityContainer.lastInLastUpdatedSet?' j-last-updated':b.activityContainer.lastInPrevUpdatedSet?' j-prev-updated':'',' clearfix" data-extVisible="',soy.$$escapeHtmlAttribute(b.activityContainer.visibleToExtCollaborator),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.id),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.objectType),'">',b.activityContainer.mattersMost?'<span class="j-act-mm-label">'+soy.$$escapeHtml(a._i18n('99f1dc',[]))+'</span>':'','<div class="j-js-act-content j-act-content">'),'uri:jiveName:app_install'==b.activityContainer.jiveObject.verb?(d.append('<div id="act-title-',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix),'" class="j-act-init j-act-rte-replyable" data-extVisible="',soy.$$escapeHtmlAttribute(b.activityContainer.visibleToExtCollaborator),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.id),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.objectType),'"><div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activityContainer.originalAuthor,{size:46,currentUserPartner:b.user.partner}),d),d.append('<span class="jive-icon-med jive-icon-gear"></span></div><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activityContainer.originalAuthor,object:b.activityContainer.jiveObject},d),d.append('<span class="j-author-act-meta font-color-meta-light"><span class="j-act-time font-color-meta-light">',b.activityContainer.jiveObject.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activityContainer.jiveObject.jiveObjectURL))+'" class="font-color-meta-light">':'',soy.$$escapeHtml(b.activityContainer.creationTime),b.activityContainer.jiveObject.jiveObjectURL?'</a>':'','</span></span></div><div class="j-excerpt">'),jive.eae.common.activityAuthor({object:b.activityContainer.jiveObject,type:'created',activityUser:b.activityContainer.originalAuthor,displayAuthorLink:!0,streamType:b.streamType,hideDetailedReplyTo:!1,user:b.user,againstObject:!1,hideDetailedReplyTo:!1,deleted:!1},d),d.append('</div><div class="j-meta-actions font-color-meta">'),b.activityContainer.jiveObject.ee&&jive.eae.apps.common.renderAppEmbeddedExperience({ee:b.activityContainer.jiveObject.ee},d),b.activityContainer.jiveObject.generatorDeepURL&&(d.append(' <span class="j-bullet">&#8226;</span> '),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('64e2ab'),arg0:'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.activityContainer.jiveObject.generatorDeepURL))+'">'+soy.$$escapeHtml(b.activityContainer.jiveObject.contentTypeName)+'</a>',noAutoEscape:!0},d)),b.activityContainer.sharable&&(d.append(' <span class="j-bullet">&#8226;</span> '),jive.soy.share.control({objectId:b.activityContainer.jiveObject.id,objectType:b.activityContainer.jiveObject.objectType,type:'text'},d)),d.append(b.activityContainer.canReply?' <span class="j-bullet">&#8226;</span> <a class="j-reply-rte" href="javascript:void(0);">'+soy.$$escapeHtml(a._i18n('f80114',[]))+'</a>':''),b.activityContainer.likable&&(d.append(' <span class="j-bullet">&#8226;</span> <span class="js-liking-control j-liking-control">'),jive.eae.acclaim.acclaimControl({canApply:b.user&&!b.user.anonymous&&!b.activityContainer.amAnAuthor,applied:b.activityContainer.liked,acclaimCount:b.activityContainer.likeCount,acclaimType:'like',objectId:b.activityContainer.jiveObject.id,objectType:b.activityContainer.jiveObject.objectType,showIcon:!1,type:'mini'},d),d.append('</span>')),d.append('all'==b.streamType||'profile'==b.streamType||'context'==b.streamType||'communications'==b.streamType||'publication'==b.streamType||'all'!=b.filterData.selectedFilter.type||b.filterData.excluding?'':' <span class="j-bullet">&#8226;</span> <a href="#" class="js-act-hidemenu" title="'+soy.$$escapeHtmlAttribute(a._i18n('df75ef',[]))+'">'+soy.$$escapeHtml(a._i18n('33f5d1',[]))+'</a>','</div></div>')):(d.append('<div id="act-title-',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix),'" class="j-act-init j-act-rte-replyable" data-extVisible="',soy.$$escapeHtmlAttribute(b.activityContainer.visibleToExtCollaborator),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.id),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.objectType),'"><div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activityContainer.originalAuthor,{size:46,currentUserPartner:b.user.partner}),d),jive.shared.displayutil.renderIconElement({icon:b.activityContainer.jiveObject.activityIcon},d),d.append('</div><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthor({object:b.activityContainer.jiveObject,type:'created',activityUser:b.activityContainer.originalAuthor,displayAuthorLink:!0,streamType:b.streamType,hideDetailedReplyTo:!1,user:b.user,againstObject:!1,hideDetailedReplyTo:!1,deleted:!1},d),d.append('<span class="j-author-act-meta font-color-meta-light"><span class="j-act-time font-color-meta-light">',b.activityContainer.jiveObject.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activityContainer.jiveObject.jiveObjectURL))+'" class="font-color-meta-light">':'',soy.$$escapeHtml(b.activityContainer.creationTime),b.activityContainer.jiveObject.jiveObjectURL?'</a>':'','</span></span></div><div class="j-act-app-body ',b.activityContainer.jiveObject.content&&b.activityContainer.jiveObject.content.meta?' j-app-attachments ':'',' j-excerpt clearfix"><div class="j-act-app-content clearfix"><h5 class="j-act-apptitle">',b.activityContainer.jiveObject.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activityContainer.jiveObject.jiveObjectURL))+'" class="title">':'',b.activityContainer.jiveObject.subjectIsHtml?soy.$$filterNoAutoescape(b.activityContainer.jiveObject.htmlSubject):soy.$$filterNoAutoescape(b.activityContainer.jiveObject.subject),b.activityContainer.jiveObject.jiveObjectURL?'</a>':'','</h5>'),jive.eae.common.renderStreamAttachments({idPrefix:'expanded',object:b.activityContainer.jiveObject,domIDPostfix:b.activityContainer.jiveObject.domIDPostfix},d),b.activityContainer&&b.activityContainer.jiveObject&&b.activityContainer.jiveObject.summary&&(d.append('<div class="j-excerpt-full-html-content j-app-content-text">'),jive.eae.common.collapsedExcerptText({text:b.activityContainer.jiveObject.summary,hasMoreText:b.activityContainer.jiveObject.hasMoreText,deletedType:null,moderated:!1},d),d.append('</div>')),d.append('</div></div><div class="j-meta-actions font-color-meta">'),b.activityContainer.jiveObject.ee&&jive.eae.apps.common.renderAppEmbeddedExperience({ee:b.activityContainer.jiveObject.ee},d),b.activityContainer.jiveObject.generatorDeepURL&&(d.append(' <span class="j-bullet">&#8226;</span> '),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('64e2ab'),arg0:'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.activityContainer.jiveObject.generatorDeepURL))+'">'+soy.$$escapeHtml(b.activityContainer.jiveObject.contentTypeName)+'</a>',noAutoEscape:!0},d)),b.activityContainer.likable&&(d.append(' <span class="j-bullet">&#8226;</span> <span class="js-liking-control j-liking-control">'),jive.eae.acclaim.acclaimControl({canApply:b.user&&!b.user.anonymous&&!b.activityContainer.amAnAuthor,applied:b.activityContainer.liked,acclaimCount:b.activityContainer.likeCount,acclaimType:'like',objectId:b.activityContainer.jiveObject.id,objectType:b.activityContainer.jiveObject.objectType,showIcon:!1,type:'mini'},d),d.append('</span>')),d.append(b.activityContainer.canReply?' <span class="j-bullet">&#8226;</span> <a class="j-reply-rte" href="javascript:void(0);">'+soy.$$escapeHtml(a._i18n('f80114',[]))+'</a>':''),b.activityContainer.sharable&&(d.append(' <span class="j-bullet">&#8226;</span> '),jive.soy.share.control({objectId:b.activityContainer.jiveObject.id,objectType:b.activityContainer.jiveObject.objectType,type:'text'},d)),d.append('all'==b.streamType||'profile'==b.streamType||'context'==b.streamType||'communications'==b.streamType||'publication'==b.streamType||'all'!=b.filterData.selectedFilter.type||b.filterData.excluding?'':' <span class="j-bullet">&#8226;</span> <a href="#" class="js-act-hidemenu" title="'+soy.$$escapeHtmlAttribute(a._i18n('df75ef',[]))+'">'+soy.$$escapeHtml(a._i18n('33f5d1',[]))+'</a>','</div></div>')),d.append('<div class="j-act-hidden j-rc4 j-rc-none-top" style="display:none;"></div><div class="j-act-exp-full-content-view js-full-content-container" style="display:none;"></div>'),
jive.eae.activitystream.activityStreamExpandBar(b,d),d.append('<div class="j-act-exp-view j-expanded clearfix" style="display:none;"></div><div class="j-act-coll-view collapsed clearfix">'),jive.eae.activitystream.item.collapsed.appUpdate({activityContainer:b.activityContainer,activity:b.activityContainer.activityList[b.activityContainer.activityList.length-1],streamType:b.streamType,filterData:b.filterData,user:b.user,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo,hideStub:!1,time:b.activityContainer.parentTime},d),d.append('</div></div>'),b.activityContainer.lastInLastUpdatedSet?jive.eae.activitystream.updatedMarker({type:'last'},d):b.activityContainer.lastInPrevUpdatedSet&&jive.eae.activitystream.updatedMarker({type:'prev'},d),d.append('</div>'),c?'':d.toString()},jive.eae.activitystream.item.grouped.appUpdate}),define('soy!jive.eae.activitystream.item.grouped.sharedFromContainer',['soyDeps','soy!jive.shared.displayutil.containerDisplayNameLink'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.sharedFromContainer=function(b,c){var d=c||new soy.StringBuilder;if('subActivity'!=b.location){d.append('|       ');var e=new soy.StringBuilder;jive.shared.displayutil.containerDisplayNameLink({container:b.activityContainer.jiveObject.sharedFromContainer},e),e=e.toString(),d.append(b.activityContainer.jiveObject.sharedFromContainer&&2020!=b.activityContainer.jiveObject.sharedFromContainer.type?soy.$$escapeHtml(a._i18n('816c1a',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(b.author),new soydata.VERY_UNSAFE.ordainSanitizedHtml(e)])):soy.$$escapeHtml(a._i18n('3331c9',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(b.author)])))}return c?'':d.toString()},jive.eae.activitystream.item.grouped.sharedFromContainer}),define('soy!jive.eae.activitystream.item.grouped.latestLikes',['soyDeps','soy!jive.eae.activitystream.item.grouped.activityContentEnd','soy!jive.eae.activitystream.item.grouped.activityContentStart','soy!jive.eae.activitystream.item.grouped.articleEnd','soy!jive.eae.activitystream.item.grouped.articleStart','soy!jive.eae.activitystream.item.grouped.divider','soy!jive.eae.common.digestSubItem'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.latestLikes=function(b,c){var d=c||new soy.StringBuilder;jive.eae.activitystream.item.grouped.articleStart(soy.$$augmentMap(b,{customId:soy.$$escapeHtml(b.streamType)+'_'+soy.$$escapeHtml(b.activityContainer.jiveObject.objectType)+'_'+soy.$$escapeHtml(b.activityContainer.jiveObject.id)+('context'==b.streamType?'_'+soy.$$escapeHtml(b.activityContainer.jiveObject.domIDPostfix):''),extraClasses:'j-act-grouped j-act-like'}),d),jive.eae.activitystream.item.grouped.activityContentStart(null,d),d.append('<div class="j-act-title" role="heading" id="act-title-',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix),'">',soy.$$escapeHtml(a._i18n('2e8b27',[])),'</div><div class="',b.activityContainer.activityList.length>5?'j-act-coll-view':'',' collapsed clearfix"><ul class="j-act-g-list">');for(var e=b.activityContainer.activityList,f=e.length,g=0;f>g;g++){var h=e[g];h&&5>g?(d.append('<li class="j-act-g-item" data-timestamp="',soy.$$escapeHtmlAttribute(h.groupedOldestTimestamp),'">'),jive.eae.common.digestSubItem({activity:h,user:b.user,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo,fromTemplate:'latest_likes'},d),d.append('</li>')):h&&(d.append('<li class="j-act-g-item" style="display:none;" data-timestamp="',soy.$$escapeHtmlAttribute(h.groupedOldestTimestamp),'">'),jive.eae.common.digestSubItem({activity:h,user:b.user,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo,fromTemplate:'latest_likes'},d),d.append('</li>'))}return d.append('</ul><div class="j-preview-trigger j-expand-comments"><a href="#" class="j-show-more j-js-show-all"><strong class="lnk font-color-meta">',soy.$$escapeHtml(a._i18n('c98d10',[])),'</strong></a></div></div>'),jive.eae.activitystream.item.grouped.activityContentEnd(null,d),jive.eae.activitystream.item.grouped.divider(b,d),jive.eae.activitystream.item.grouped.articleEnd(null,d),c?'':d.toString()},jive.eae.activitystream.item.grouped.latestLikes}),define('soy!jive.eae.activitystream.item.grouped.blogpost',['soyDeps','soy!jive.eae.activitystream.item.grouped.defaultImpl'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.blogpost=function(a,b){var c=b||new soy.StringBuilder;return jive.eae.activitystream.item.grouped.defaultImpl(a,c),b?'':c.toString()},jive.eae.activitystream.item.grouped.blogpost}),define('soy!jive.eae.activitystream.item.grouped.event',['soyDeps','soy!jive.eae.activitystream.activityStreamExpandBar','soy!jive.eae.activitystream.item.collapsed.event','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.activityContainer','soy!jive.eae.common.activityNavActions','soy!jive.eae.common.parentPreviewLinks','soy!jive.eae.common.renderStreamAttachments','soy!jive.eae.common.streamImage','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.userDisplayNameLink'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.event=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<div id="',soy.$$escapeHtmlAttribute(b.streamType),'_',b.activityContainer.activityList[0]&&b.activityContainer.activityList[0].content.commentContentResource&&129==b.activityContainer.activityList[0].content.commentContentResource.objectType?'129':b.activityContainer.jiveObject.objectType,'_',b.activityContainer.jiveObject.id,'_',soy.$$escapeHtmlAttribute(b.activityContainer.container.type),'_',soy.$$escapeHtmlAttribute(b.activityContainer.container.id),'_',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix),'" role="article" class="j-act-entry j-act-not-markable j-act-document ',b.activityContainer.mattersMost?'j-act-matters-most':'',' clearfix" data-extVisible="',soy.$$escapeHtmlAttribute(b.activityContainer.visibleToExtCollaborator),'" data-extendedAuthors="false" data-objectID="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.id),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.objectType),'">',b.activityContainer.mattersMost?'<span class="j-act-mm-label">'+soy.$$escapeHtml(a._i18n('99f1dc',[]))+'</span>':'','<div class="j-js-act-content j-act-content"><div id="act-title-',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix),'" class="j-act-init j-act-rte-replyable" data-extVisible="',soy.$$escapeHtmlAttribute(b.activityContainer.visibleToExtCollaborator),'" data-objectID="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.id),'" data-objectType="',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.objectType),'"><div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.activityContainer.originalAuthor,{size:46,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-author-act font-color-meta-light">'),jive.eae.common.activityAuthorNoVerb({activityUser:b.activityContainer.originalAuthor,object:b.activityContainer.jiveObject},d),jive.eae.common.activityContainer(b,d),d.append('<span class="j-author-act-meta font-color-meta-light"><span class="j-act-time">',b.activityContainer.jiveObject.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activityContainer.jiveObject.jiveObjectURL))+'" class="font-color-meta-light">':'',soy.$$escapeHtml(b.activityContainer.creationTime),b.activityContainer.jiveObject.jiveObjectURL?'</a>':'','</span><span class="j-act-preview-control"> '),jive.eae.common.parentPreviewLinks(b,d),d.append('</span></span></div><div class="j-act-title" role="heading"><span class="jive-icon-big ',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.jiveObjectCSS),' acticon"></span><a class="title" href="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.activityContainer.jiveObject.jiveObjectURL)),'">',soy.$$filterNoAutoescape(b.activityContainer.jiveObject.subject),'</a></div><div class="j-excerpt">'),jive.eae.common.streamImage(b,d),d.append('<span class="j-excerpt-slug">',b.activityContainer.jiveObject.text?soy.$$filterNoAutoescape(b.activityContainer.jiveObject.text)+(b.activityContainer.jiveObject.hasMoreText?'&hellip;':''):'','</span>'),jive.eae.common.renderStreamAttachments({idPrefix:'collapsed',object:b.activityContainer.jiveObject,domIDPostfix:b.activityContainer.jiveObject.domIDPostfix},d),d.append('</div><div class="j-act-exp-full-content-view clearfix js-full-content-container" style="display:none;"></div><div class="j-meta-actions font-color-meta">'),jive.eae.common.activityNavActions({object:b.activityContainer.jiveObject,activityContainer:b.activityContainer,amAnAuthor:b.activityContainer.amAnAuthor,objectType:b.activityContainer.jiveObject.objectType,objectId:b.activityContainer.jiveObject.id,liked:b.activityContainer.liked,likeCount:b.activityContainer.likeCount,likable:b.activityContainer.likable,author:b.activityContainer.originalAuthor,user:b.user,location:'Title',streamType:b.streamType,filterData:b.filterData,tracked:b.activityContainer.tracked,untracked:b.activityContainer.untracked,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo},d),d.append('</div></div><div class="j-act-hidden j-rc4 j-rc-none-top" style="display:none;"></div>'),jive.eae.activitystream.activityStreamExpandBar(b,d),d.append('<div class="j-act-exp-view j-expanded clearfix" style="display:none;"></div><div class="j-act-coll-view collapsed clearfix">'),jive.eae.activitystream.item.collapsed.event({activityContainer:b.activityContainer,activity:b.activityContainer.activityList[b.activityContainer.activityList.length-1],streamType:b.streamType,filterData:b.filterData,user:b.user,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo,hideStub:!1,time:b.activityContainer.parentTime},d),d.append('</div>'),b.activityContainer.eventActivityViewBeans[0]&&b.activityContainer.eventActivityViewBeans[0].groupedModifiers.length>0){d.append('<div id="excerpt_',soy.$$escapeHtmlAttribute(b.activityContainer.eventActivityViewBeans[0].domIDPostfix),'" class="',b.activityContainer.eventActivityViewBeans[0].groupedModifiers.length>0||b.activityContainer.eventActivityViewBeans[0].content.deleted||'moved'==b.activityContainer.eventActivityViewBeans[0].type?'j-mod font-color-meta-light ':'j-act-comment',' j-js-collapsed"><span class="jive-icon-glyph icon-edit actglyph"></span> ',soy.$$escapeHtml(a._i18n('a4d3f9',[])),' ');for(var e=b.activityContainer.eventActivityViewBeans[0].groupedModifiers,f=e.length,g=0;f>g;g++){var h=e[g];jive.shared.displayutil.userDisplayNameLink(h,d),d.append(b.activityContainer.eventActivityViewBeans[0].groupedModifiers.length-2==g?' '+soy.$$escapeHtml(a._i18n('3b6373',[])):g!=f-1?',':'',' ')}d.append(' <span class="j-bullet">&#8226;</span> <span class="font-color-meta-light">',b.activityContainer.eventActivityViewBeans[0].creationTime?soy.$$escapeHtml(b.activityContainer.eventActivityViewBeans[0].creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])),'</span></div>')}return d.append('</div></div>'),c?'':d.toString()},jive.eae.activitystream.item.grouped.event}),define('soy!jive.eae.activitystream.item.grouped.bulkUpload',['soyDeps','soy!jive.eae.activitystream.item.grouped.activityContentEnd','soy!jive.eae.activitystream.item.grouped.activityContentStart','soy!jive.eae.activitystream.item.grouped.articleEnd','soy!jive.eae.activitystream.item.grouped.articleStart','soy!jive.eae.activitystream.item.grouped.divider','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.shared.subactivity.bulkUpload','soy!jive.shared.displayutil.avatar'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.bulkUpload=function(b,c){var d=c||new soy.StringBuilder;jive.eae.activitystream.item.grouped.articleStart(soy.$$augmentMap(b,{customId:soy.$$escapeHtml(b.streamType)+'_'+soy.$$escapeHtml(b.activityContainer.jiveObject.objectType)+'_'+soy.$$escapeHtml(b.activityContainer.jiveObject.id)+('context'==b.streamType?'_'+soy.$$escapeHtml(b.activityContainer.jiveObject.domIDPostfix):''),extraClasses:'j-act-grouped j-act-bulk-upload'}),d),jive.eae.activitystream.item.grouped.activityContentStart(null,d),d.append('<div class="j-act-init"><div class="j-act-title" role="heading" id="act-title-',soy.$$escapeHtmlAttribute(b.activityContainer.jiveObject.domIDPostfix),'">');var e=b.activityContainer.activityList[0];d.append('<div class="j-act-avatar">'),jive.shared.displayutil.avatar(soy.$$augmentMap(e.activityUser,{size:46,currentUserPartner:b.user.partner}),d),d.append('</div><div class="j-author-act font-color-meta-light">');var f=new soy.StringBuilder;jive.eae.common.activityAuthorNoVerb({activityUser:e.activityUser,object:e.content},f),f=f.toString(),d.append(soy.$$escapeHtml(a._i18n('73001e',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(f),b.activityContainer.activityList.length])),'<span class="j-author-act-meta font-color-meta-light"><span class="j-act-time font-color-meta-light">',soy.$$escapeHtml(b.activityContainer.parentTime),'</span></span></div></div></div><div class="',b.activityContainer.activityList.length>6?'j-act-coll-view nothumb':' j-act-bulk-wrap',' collapsed clearfix"><ul class="j-act-g-list">');for(var g=b.activityContainer.activityList,h=g.length,i=0;h>i;i++){var j=g[i];j&&!j.content.deleted&&6>i&&(d.append('<li class="j-act-g-item" data-timestamp="',soy.$$escapeHtmlAttribute(j.groupedOldestTimestamp),'">'),jive.eae.shared.subactivity.bulkUpload({activity:j,activityContainer:b.activityContainer,isHidden:!1,user:b.user,streamType:b.streamType,filterData:b.filterData,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo,hideStub:!0,addedInline:!1,forceCurrent:!1},d),d.append('</li>'))}if(d.append('</ul>'),b.activityContainer.activityList.length>5){d.append('<div class="j-show-more">');var k=new soy.StringBuilder('contentstatus%5Bpublished%5D%7Eobjecttype%7Eobjecttype%5Bdocument%5D');k=k.toString(),d.append('<a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,b.activityContainer.container.jiveObjectURL+'/content?filterID='+k))),'"><strong class="lnk font-color-meta">',soy.$$escapeHtml(a._i18n('c98d10',[])),'</strong></a></div>')}return d.append('</div>'),jive.eae.activitystream.item.grouped.activityContentEnd(null,d),jive.eae.activitystream.item.grouped.divider(b,d),jive.eae.activitystream.item.grouped.articleEnd(null,d),c?'':d.toString()},jive.eae.activitystream.item.grouped.bulkUpload}),define('soy!jive.eae.activitystream.item.grouped.sharedBy',['soyDeps','soy!jive.eae.activitystream.item.grouped.sharedFromContainer','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.parentPreviewLinks'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.sharedBy=function(a,b){var c=b||new soy.StringBuilder;c.append('<div class="j-author-act font-color-meta-light">');var d=new soy.StringBuilder;return jive.eae.common.activityAuthorNoVerb({activityUser:a.activityContainer.originalAuthor,object:a.activityContainer.jiveObject},d),jive.eae.activitystream.item.grouped.sharedFromContainer({activityContainer:a.activityContainer,author:d.toString()},c),c.append('<span class="j-author-act-meta font-color-meta-light"><span class="j-act-time">',a.activityContainer.jiveObject.jiveObjectURL?'<a href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,a.activityContainer.jiveObject.jiveObjectURL))+'" class="font-color-meta-light">':'',soy.$$escapeHtml(a.activityContainer.creationTime),a.activityContainer.jiveObject.jiveObjectURL?'</a>':'','</span><span class="j-act-preview-control"> '),jive.eae.common.parentPreviewLinks(a,c),c.append('</span></span></div>'),b?'':c.toString()},jive.eae.activitystream.item.grouped.sharedBy}),define('soy!jive.eae.activitystream.item.grouped.sharedContentHeading',['soyDeps','soy!jive.eae.common.activityHeadingHref','soy!jive.eae.common.contentTypeDisplayName','soy!jive.shared.displayutil.renderIconElement'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.sharedContentHeading=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div id="act-title-',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.sharedContent.domIDPostfix),'" class="j-act-title" role="heading">'),a.activityContainer.jiveObject.sharedContent.activityIcon?(jive.shared.displayutil.renderIconElement({icon:a.activityContainer.jiveObject.sharedContent.activityIcon},c),c.append(' ')):(c.append('<span title=\''),jive.eae.common.contentTypeDisplayName(a,c),c.append('\' role=\'img\' class="jive-icon-med ',soy.$$escapeHtmlAttribute(a.activityContainer.jiveObject.sharedContent.jiveObjectCSS),'"></span>')),a.activityContainer.jiveObject.sharedContent.subjectIsHtml?c.append(soy.$$filterNoAutoescape(a.activityContainer.jiveObject.sharedContent.htmlSubject)):(c.append('<a class="title" href="'),jive.eae.common.activityHeadingHref(soy.$$augmentMap(a,{url:a.activityContainer.jiveObject.sharedContent.jiveObjectURL,source:'stream'}),c),c.append('">',soy.$$filterNoAutoescape(a.activityContainer.jiveObject.sharedContent.subject),'</a>')),c.append('</div>'),b?'':c.toString()},jive.eae.activitystream.item.grouped.sharedContentHeading}),define('soy!jive.eae.activitystream.item.grouped.contentPlaceRelationship',['soyDeps','soy!jive.eae.activitystream.activityStreamExpandBar','soy!jive.eae.activitystream.item.collapsed.discussion','soy!jive.eae.activitystream.item.grouped.activityBodyEnd','soy!jive.eae.activitystream.item.grouped.activityBodyStart','soy!jive.eae.activitystream.item.grouped.activityContentEnd','soy!jive.eae.activitystream.item.grouped.activityContentStart','soy!jive.eae.activitystream.item.grouped.activityHidden','soy!jive.eae.activitystream.item.grouped.articleEnd','soy!jive.eae.activitystream.item.grouped.articleStart','soy!jive.eae.activitystream.item.grouped.avatar','soy!jive.eae.activitystream.item.grouped.divider','soy!jive.eae.activitystream.item.grouped.mattersMost','soy!jive.eae.activitystream.item.grouped.sharedBy','soy!jive.eae.activitystream.item.grouped.sharedContentExcerpt','soy!jive.eae.activitystream.item.grouped.sharedContentFullBody','soy!jive.eae.activitystream.item.grouped.sharedContentHeading'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.contentPlaceRelationship=function(a,b){var c=b||new soy.StringBuilder;return jive.eae.activitystream.item.grouped.articleStart(a,c),jive.eae.activitystream.item.grouped.mattersMost(a,c),jive.eae.activitystream.item.grouped.activityContentStart(null,c),jive.eae.activitystream.item.grouped.activityBodyStart(a,c),jive.eae.activitystream.item.grouped.avatar(a,c),jive.eae.activitystream.item.grouped.sharedBy(a,c),jive.eae.activitystream.item.grouped.sharedContentHeading(a,c),jive.eae.activitystream.item.grouped.sharedContentExcerpt(a,c),jive.eae.activitystream.item.grouped.sharedContentFullBody(null,c),jive.eae.activitystream.item.grouped.activityBodyEnd(null,c),jive.eae.activitystream.item.grouped.activityHidden(null,c),jive.eae.activitystream.activityStreamExpandBar(a,c),c.append('<div class="j-act-coll-view collapsed clearfix">'),jive.eae.activitystream.item.collapsed.discussion({activityContainer:a.activityContainer,activity:a.activityContainer.activityList[a.activityContainer.activityList.length-1],streamType:a.streamType,filterData:a.filterData,user:a.user,canCreateMbImage:a.canCreateMbImage,canCreateMbVideo:a.canCreateMbVideo,hideStub:!1,time:a.activityContainer.parentTime},c),c.append('</div>'),jive.eae.activitystream.item.grouped.activityContentEnd(null,c),jive.eae.activitystream.item.grouped.divider(a,c),jive.eae.activitystream.item.grouped.articleEnd(null,c),b?'':c.toString()},jive.eae.activitystream.item.grouped.contentPlaceRelationship}),define('soy!jive.eae.activitystream.item.grouped.discussion',['soyDeps','soy!jive.eae.activitystream.activityStreamExpandBar','soy!jive.eae.activitystream.item.collapsed.discussion','soy!jive.eae.activitystream.item.grouped.actions','soy!jive.eae.activitystream.item.grouped.activityBodyEnd','soy!jive.eae.activitystream.item.grouped.activityBodyStart','soy!jive.eae.activitystream.item.grouped.activityContentEnd','soy!jive.eae.activitystream.item.grouped.activityContentStart','soy!jive.eae.activitystream.item.grouped.activityHeading','soy!jive.eae.activitystream.item.grouped.activityHidden','soy!jive.eae.activitystream.item.grouped.articleEnd','soy!jive.eae.activitystream.item.grouped.articleStart','soy!jive.eae.activitystream.item.grouped.author','soy!jive.eae.activitystream.item.grouped.avatar','soy!jive.eae.activitystream.item.grouped.divider','soy!jive.eae.activitystream.item.grouped.excerpt','soy!jive.eae.activitystream.item.grouped.expandedComments','soy!jive.eae.activitystream.item.grouped.fullBody','soy!jive.eae.activitystream.item.grouped.mattersMost'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.discussion=function(a,b){var c=b||new soy.StringBuilder;return jive.eae.activitystream.item.grouped.articleStart(a,c),jive.eae.activitystream.item.grouped.mattersMost(a,c),jive.eae.activitystream.item.grouped.activityContentStart(null,c),jive.eae.activitystream.item.grouped.activityBodyStart(a,c),jive.eae.activitystream.item.grouped.avatar(a,c),jive.eae.activitystream.item.grouped.author(a,c),jive.eae.activitystream.item.grouped.activityHeading(a,c),jive.eae.activitystream.item.grouped.excerpt(a,c),jive.eae.activitystream.item.grouped.fullBody(null,c),jive.eae.activitystream.item.grouped.actions(a,c),jive.eae.activitystream.item.grouped.activityBodyEnd(null,c),jive.eae.activitystream.item.grouped.activityHidden(null,c),jive.eae.activitystream.activityStreamExpandBar(a,c),jive.eae.activitystream.item.grouped.expandedComments(null,c),c.append('<div class="j-act-coll-view collapsed clearfix">'),jive.eae.activitystream.item.collapsed.discussion({activityContainer:a.activityContainer,activity:a.activityContainer.activityList[a.activityContainer.activityList.length-1],streamType:a.streamType,filterData:a.filterData,user:a.user,canCreateMbImage:a.canCreateMbImage,canCreateMbVideo:a.canCreateMbVideo,hideStub:!1,time:a.activityContainer.parentTime},c),c.append('</div>'),jive.eae.activitystream.item.grouped.activityContentEnd(null,c),jive.eae.activitystream.item.grouped.divider(a,c),jive.eae.activitystream.item.grouped.articleEnd(null,c),b?'':c.toString()},jive.eae.activitystream.item.grouped.discussion}),define('soy!jive.eae.activitystream.item.grouped.task',['soyDeps','soy!jive.eae.activitystream.activityStreamExpandBar','soy!jive.eae.activitystream.item.collapsed.task','soy!jive.eae.activitystream.item.grouped.actions','soy!jive.eae.activitystream.item.grouped.activityBodyEnd','soy!jive.eae.activitystream.item.grouped.activityBodyStart','soy!jive.eae.activitystream.item.grouped.activityContentEnd','soy!jive.eae.activitystream.item.grouped.activityContentStart','soy!jive.eae.activitystream.item.grouped.activityHeading','soy!jive.eae.activitystream.item.grouped.activityHidden','soy!jive.eae.activitystream.item.grouped.articleEnd','soy!jive.eae.activitystream.item.grouped.articleStart','soy!jive.eae.activitystream.item.grouped.avatar','soy!jive.eae.activitystream.item.grouped.divider','soy!jive.eae.activitystream.item.grouped.fullBody','soy!jive.eae.activitystream.item.grouped.mattersMost','soy!jive.eae.common.activityAuthorNoVerb','soy!jive.eae.common.parentPreviewLinks','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.eae.activitystream.item.grouped'),jive.eae.activitystream.item.grouped.task=function(b,c){var d=c||new soy.StringBuilder;jive.eae.activitystream.item.grouped.articleStart(b,d),jive.eae.activitystream.item.grouped.mattersMost(b,d),jive.eae.activitystream.item.grouped.activityContentStart(null,d),jive.eae.activitystream.item.grouped.activityBodyStart(b,d),jive.eae.activitystream.item.grouped.avatar(b,d),d.append('<div class="j-author-act font-color-meta-light">');var e=new soy.StringBuilder;jive.eae.common.activityAuthorNoVerb({activityUser:b.activityContainer.originalAuthor,object:b.activityContainer.jiveObject},e),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('d1cccb'),arg0:e.toString(),arg1:'<span class="font-color-meta-light j-act-time">'+(b.activityContainer.creationTime?soy.$$escapeHtml(b.activityContainer.creationTime):soy.$$escapeHtml(a._i18n('176cfc',[])))+'</span>',noAutoEscape:!0},d),d.append(' <span class="j-act-preview-control">'),jive.eae.common.parentPreviewLinks(b,d),d.append('</span></div>'),jive.eae.activitystream.item.grouped.activityHeading(b,d),d.append('<div class="j-excerpt"><span class="j-excerpt-slug">');var f=new soy.StringBuilder;return jive.shared.displayutil.userDisplayNameLink(b.activityContainer.jiveObject.assignedUser,f),f=f.toString(),d.append(soy.$$escapeHtml(a._i18n('693b83',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(f),b.activityContainer.jiveObject.dueDate])),'</span></div>'),jive.eae.activitystream.item.grouped.fullBody(null,d),jive.eae.activitystream.item.grouped.actions(b,d),jive.eae.activitystream.item.grouped.activityBodyEnd(null,d),jive.eae.activitystream.item.grouped.activityHidden(null,d),jive.eae.activitystream.activityStreamExpandBar(b,d),d.append('<div class="j-act-coll-view collapsed clearfix">'),jive.eae.activitystream.item.collapsed.task({activityContainer:b.activityContainer,activity:b.activityContainer.activityList[b.activityContainer.activityList.length-1],streamType:b.streamType,filterData:b.filterData,user:b.user,canCreateMbImage:b.canCreateMbImage,canCreateMbVideo:b.canCreateMbVideo,hideStub:!1,time:b.activityContainer.parentTime},d),d.append('</div>'),jive.eae.activitystream.item.grouped.activityContentEnd(null,d),jive.eae.activitystream.item.grouped.divider(b,d),jive.eae.activitystream.item.grouped.articleEnd(null,d),c?'':d.toString()},jive.eae.activitystream.item.grouped.task}),define('soy!jive.eae.activitystream.groupedActivityStreamItem',['soyDeps','soy!jive.eae.activitystream.item.grouped.streamStatusUpdateTitle','soy!jive.eae.activitystream.item.grouped.activityBodyStart','soy!jive.eae.activitystream.item.grouped.mattersMost','soy!jive.eae.activitystream.item.grouped.recommendation','soy!jive.eae.activitystream.item.grouped.activityContentEnd','soy!jive.eae.activitystream.item.grouped.idea','soy!jive.eae.activitystream.item.grouped.author','soy!jive.eae.activitystream.item.grouped.bookmark','soy!jive.eae.activitystream.item.grouped.tileActivity','soy!jive.eae.activitystream.item.grouped.activityBodyEnd','soy!jive.eae.activitystream.item.grouped.document','soy!jive.eae.activitystream.item.grouped.avatar','soy!jive.eae.activitystream.item.grouped.video','soy!jive.eae.activitystream.item.grouped.expandedComments','soy!jive.eae.activitystream.item.grouped.remotedocument','soy!jive.eae.activitystream.item.grouped.latestAcclaim','soy!jive.eae.activitystream.item.grouped.sharedContentExcerpt','soy!jive.eae.activitystream.item.grouped.activityHeading','soy!jive.eae.activitystream.item.grouped.appGrouped','soy!jive.eae.activitystream.item.grouped.latestEndorsements','soy!jive.eae.activitystream.item.grouped.activityHidden','soy!jive.eae.activitystream.item.grouped.statusUpdate','soy!jive.eae.activitystream.item.grouped.latestProfile','soy!jive.eae.activitystream.item.grouped.poll','soy!jive.eae.activitystream.item.grouped.defaultImpl','soy!jive.eae.activitystream.item.grouped.sharedContentFullBody','soy!jive.eae.activitystream.item.grouped.appDigest','soy!jive.eae.activitystream.item.grouped.socialNews','soy!jive.eae.activitystream.item.grouped.excerpt','soy!jive.eae.activitystream.item.grouped.mention','soy!jive.eae.activitystream.item.grouped.fullBody','soy!jive.eae.activitystream.item.grouped.articleStart','soy!jive.eae.activitystream.item.grouped.divider','soy!jive.eae.activitystream.item.grouped.statusUpdateStreamImage','soy!jive.eae.activitystream.item.grouped.appUpdate','soy!jive.eae.activitystream.item.grouped.sharedFromContainer','soy!jive.eae.activitystream.item.grouped.actions','soy!jive.eae.activitystream.item.grouped.latestLikes','soy!jive.eae.activitystream.item.grouped.blogpost','soy!jive.eae.activitystream.item.grouped.event','soy!jive.eae.activitystream.item.grouped.bulkUpload','soy!jive.eae.activitystream.item.grouped.sharedBy','soy!jive.eae.activitystream.item.grouped.articleEnd','soy!jive.eae.activitystream.item.grouped.contentPlaceRelationship','soy!jive.eae.activitystream.item.grouped.activityContentStart','soy!jive.eae.activitystream.item.grouped.discussion','soy!jive.eae.activitystream.item.grouped.task','soy!jive.eae.activitystream.item.grouped.collapsedComments','soy!jive.eae.activitystream.item.grouped.sharedContentHeading','soy!jive.shared.soy.render'],function(a){return jive.namespace.call(this,'jive.eae.activitystream'),jive.eae.activitystream.groupedActivityStreamItem=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="','discovery'==a.streamChannel?'j-stream-col-item '+soy.$$escapeHtmlAttribute(a.streamClass)+' ':'j-stream-list-item ','j-rc5">'),a.activityContainer.jiveObject.groupedActivityStreamTemplate?jive.shared.soy.render({templateName:a.activityContainer.jiveObject.groupedActivityStreamTemplate,data:function(){for(var b={},c=[['activityContainer',a.activityContainer],['user',a.user],['streamType',a.streamType],['streamChannel',a.streamChannel],['filterData',a.filterData],['canCreateMbImage',a.canCreateMbImage],['canCreateMbVideo',a.canCreateMbVideo],['mobileUI',a.mobileUI]],d=0;d<c.length;d+=1)b[c[d][0]]=c[d][1];return b}(),failGracefully:!0},c):jive.eae.activitystream.item.grouped.defaultImpl(a,c),c.append('</div>'),b?'':c.toString()},jive.eae.activitystream.groupedActivityStreamItem}),define('soy!jive.eae.activitystream.loadMore',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream'),jive.eae.activitystream.loadMore=function(b,c){var d=c||new soy.StringBuilder;return d.append('<a class=\'j-js-load-more j-act-append j-rc6\' href=\'#\'><span class="j-rc6 j-more-label">',soy.$$escapeHtml(a._i18n('563917',[])),'</span></a>'),c?'':d.toString()},jive.eae.activitystream.loadMore}),define('soy!jive.eae.activitystream.activityStreamList',['soyDeps','soy!jive.eae.activitystream.connectionsInfoBox','soy!jive.eae.activitystream.groupedActivityStreamItem','soy!jive.eae.activitystream.loadMore'],function(a){return jive.namespace.call(this,'jive.eae.activitystream'),jive.eae.activitystream.activityStreamList=function(b,c){var d=c||new soy.StringBuilder;if(b.activityStream.activityContainerList&&b.activityStream.activityContainerList.length){for(var e=b.activityStream.activityContainerList,f=e.length,g=0;f>g;g++){var h=e[g];h.activityList.length>0&&jive.eae.activitystream.groupedActivityStreamItem({activityContainer:h,user:b.activityStream.viewingUser,streamType:b.streamType,streamChannel:b.streamChannel,filterData:b.filterData,canCreateMbImage:b.activityStream.canCreateMbImage,canCreateMbVideo:b.activityStream.canCreateMbVideo,mobileUI:b.mobileUI,streamClass:g%2==0?'':'j-stream-right'},d)}b.activityStream.hasMore&&'discovery'!=b.streamChannel&&jive.eae.activitystream.loadMore(null,d)}else b.infoUser&&!b.activityStream.filtered&&(b.connectionsInfoClosed||'connections'!=b.streamType||'all'!=b.filterData.selectedFilter.type||b.filterData.excluding||jive.eae.activitystream.connectionsInfoBox(b,d),
d.append('<div class="j-act-empty-list font-color-meta" ',b.connectionsInfoClosed||'connections'!=b.streamType||'all'!=b.filterData.selectedFilter.type||b.filterData.excluding?'':'style="display:none;"','>','custom'==b.streamType||'connections'==b.streamType||'watches'==b.streamType?'statusupdates'==b.filterData.selectedFilter.type?soy.$$escapeHtml(a._i18n('f3b3ab',[])):'active'==b.streamChannel?soy.$$escapeHtml(a._i18n('f11385',[])):soy.$$escapeHtml(a._i18n('2d6d76',[])):'context'==b.streamType?soy.$$escapeHtml(a._i18n('e54f7e',[])):'profile'==b.streamType?'statusupdates'==b.filterData.selectedFilter.type?soy.$$escapeHtml(a._i18n('24d602',[])):soy.$$escapeHtml(a._i18n('1828d6',[])):'statusupdates'==b.filterData.selectedFilter.type?soy.$$escapeHtml(a._i18n('d7fd3b',[])):'<div class="j-act-empty clearfix font-color-normal"><h2>'+soy.$$escapeHtml(a._i18n('8bdc0b',[]))+'</h2><p>'+soy.$$escapeHtml(a._i18n('469c51',[]))+'</p><img src="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.resourceUrl('/images/stream-intro/sample.png')))+'" title="'+soy.$$escapeHtmlAttribute(a._i18n('d8af8b',[]))+'" alt="'+soy.$$escapeHtmlAttribute(a._i18n('d8af8b',[]))+'" />'+(b.isTrialActive?'<h2>'+soy.$$escapeHtml(a._i18n('da29f5',[]))+'</h2><p>'+soy.$$escapeHtml(a._i18n('7fbb29',[]))+' <a href="#" id="js-welcome-discover-link">'+soy.$$escapeHtml(a._i18n('b800d1',[]))+'</a></p><script type="text/javascript">require([\'jquery\', \'domReady!\'], function($j) {$j(\'#js-welcome-discover-link\').click(function(e) {$j(\'#jive-trial-banner\').trigger(\'click\'); e.preventDefault();});});</script>':'')+'</div>','</div>'));return c?'':d.toString()},jive.eae.activitystream.activityStreamList}),define('soy!jive.announcements.buildEditLinkByIds',['soyDeps'],function(a){return jive.namespace.call(this,'jive.announcements'),jive.announcements.buildEditLinkByIds=function(b,c){var d=c||new soy.StringBuilder;return d.append('<a href="',b.containerType&&b.containerId?soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/edit-announcements.jspa?announcementId='+b.announcementId+'&containerType='+b.containerType+'&containerID='+b.containerId))):soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/edit-announcements.jspa?announcementId='+b.announcementId))),'" class="js-editLink">',soy.$$escapeHtml(a._i18n('2c7148',[])),'<span class="j-508-label">',soy.$$escapeHtml(a._i18n('68b425',[])),' ',soy.$$escapeHtml(b.announcementSubject),'</span></a>'),c?'':d.toString()},jive.announcements.buildEditLinkByIds}),define('soy!jive.announcements.list',['soyDeps','soy!jive.announcements.buildEditLinkByIds','soy!jive.shared.soy.resourceInlineJs'],function(a){return jive.namespace.call(this,'jive.announcements'),jive.announcements.list=function(b,c){var d=c||new soy.StringBuilder;if(b.announcements&&b.announcements.length>0){d.append('<div id="jive-alert" role="marquee" class="clearfix ',b.announcements.length>1?'j-multi-announcements':'','">'),jive.shared.soy.resourceInlineJs({code:'require([ \'apps/announcements/action/main\', \'apps/announcements/views/scrollAnnouncements\', \'domReady!\' ], function(AnnouncementsAction, scrollAnnouncements) {new AnnouncementsAction({announcements:'+soy.$$filterNoAutoescape(JSON.stringify(b.announcements).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+'}); scrollAnnouncements('+soy.$$filterNoAutoescape(JSON.stringify(b.announcements).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+');});'},d);for(var e=b.announcements,f=e.length,g=0;f>g;g++){var h=e[g];d.append('<span id="j-announcement-',soy.$$escapeHtmlAttribute(g+1),'" class="j-508-label">',soy.$$escapeHtml(a._i18n('1a0420',[])),' ',soy.$$escapeHtml(g+1),' ',soy.$$filterNoAutoescape(h.subject),'</span><div id="jive-alert-',soy.$$escapeHtmlAttribute(g+1),'" aria-labelledby="j-announcement-',soy.$$escapeHtmlAttribute(g+1),'" class="jive-alert-type jive-alert-announcement ',b.announcements.length>1?'jive-counter-visible ':'','" data-jive-object-id="',soy.$$escapeHtmlAttribute(h.id),'" tabindex="0"',0!=g?'style="display: none;"':'','><div class="jive-alert-header"><h5 class="jive-alert-title"><span class="jive-alert-label jive-alert-announcement-label"><span class="jive-icon-med jive-icon-announcement"></span>',soy.$$escapeHtml(a._i18n('378c45',[])),'</span><span class="jive-alert-title-text">',h.subjectURI?'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(h.subjectURI))+'">':'',soy.$$filterNoAutoescape(h.subject),h.subjectURI?'</a>':'','</span></h5><ul><li class="jive-alert-details-show" id="jive-alert-details-show-',soy.$$escapeHtmlAttribute(g+1),'"><a href="#" class="font-color-meta-light">',soy.$$escapeHtml(a._i18n('fdfa98',[])),'</a></li><li class="jive-alert-details-hide" id="jive-alert-details-hide-',soy.$$escapeHtmlAttribute(g+1),'" style="display: none;"><a href="#" class="font-color-meta-light">',soy.$$escapeHtml(a._i18n('85dc59',[])),'</a></li></ul></div><div class="jive-alert-content" id="jive-alert-content-',soy.$$escapeHtmlAttribute(g+1),'" style="display: none;"><div id="jive-announcements-links-',soy.$$escapeHtmlAttribute(h.id),'" class="jive-alert-details font-color-meta">',soy.$$escapeHtml(a._i18n('063057',[h.user.displayName,h.publishDate?require('moment').utc(parseFloat(h.publishDate)?parseFloat(h.publishDate):h.publishDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('LL'):''])),'<span>'),h.canEdit&&(jive.announcements.buildEditLinkByIds(soy.$$augmentMap(b,{announcementId:h.id,announcementSubject:h.subject}),d),d.append(h.expired?'':'<a href="#" class="j-js-expire">'+soy.$$escapeHtml(a._i18n('8a8d40',[]))+'</a>','<a href="#" class="j-js-delete">',soy.$$escapeHtml(a._i18n('be4670',[])),'</a>')),d.append('</span></div>',h.image?'<img src="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(h.image))+'?width=150&height=90" class="j-announcement-overview-image" title="'+soy.$$escapeHtmlAttribute(a._i18n('8f1609',[]))+'" alt="'+soy.$$escapeHtmlAttribute(a._i18n('8f1609',[]))+'" />':'',soy.$$filterNoAutoescape(h.body),'<div id="jive-body-announcements-expire-',soy.$$escapeHtmlAttribute(h.id),'" class="jive-body-announcements-confirm j-js-expire" style="display: none;"><p>',soy.$$escapeHtml(a._i18n('b9f5f4',[])),'</p><form><input type="button" name="delete" value="',soy.$$escapeHtmlAttribute(a._i18n('317d79',[])),'" class="announcement-expire"/><input type="button" name="cancel" value="',soy.$$escapeHtmlAttribute(a._i18n('889192',[])),'"/></form></div><div id="jive-body-announcements-delete-',soy.$$escapeHtmlAttribute(h.id),'" class="jive-body-announcements-confirm j-js-delete" style="display: none;"><p>',soy.$$escapeHtml(a._i18n('a7d466',[])),'</p><form><input type="button" name="delete" value="',soy.$$escapeHtmlAttribute(a._i18n('a90f97',[])),'" class="announcement-remove"/><input type="button" name="cancel" value="',soy.$$escapeHtmlAttribute(a._i18n('889192',[])),'"/></form></div>',b.showDismiss?'<div class="jive-alert-userRemove clearfix"><div class="jive-alert-userRemove-message"><a href="#" class="announcement-dismiss">'+soy.$$escapeHtml(a._i18n('dc0353',[]))+'</a><span class="font-color-meta">'+soy.$$escapeHtml(a._i18n('d6c467',[]))+'</span></div><div id="jive-body-announcements-dismiss-'+soy.$$escapeHtmlAttribute(h.id)+'" class="jive-body-announcements-confirm j-js-dismiss" style="display: none;"><p>'+soy.$$escapeHtml(a._i18n('fbf989',[]))+'</p></div></div>':'','</div></div>')}d.append(b.announcements.length>1?'<span id="jive-alert-counter"><span id="j-anncmt-previous-label" class="j-508-label" aria-hidden="true">'+soy.$$escapeHtml(a._i18n('d1f6a0',[]))+'</span><a href="#" id="j-anncmt-previous" class="j-anncmt-control font-color-normal" title="'+soy.$$escapeHtmlAttribute(a._i18n('d1f6a0',[]))+'" aria-labelledby="j-anncmt-previous-label"><span class="jive-icon-glyph icon-arrow-left2"></span></a><span class="j-508-label">'+soy.$$escapeHtml(a._i18n('412202',[]))+'</span><span id="jive-alert-counter-display" class="font-color-meta-light"></span><span id="j-anncmt-next-label" class="j-508-label" aria-hidden="true">'+soy.$$escapeHtml(a._i18n('b83ad6',[]))+'</span><a href="#" id="j-anncmt-next" class="j-anncmt-control font-color-normal" title="'+soy.$$escapeHtmlAttribute(a._i18n('b83ad6',[]))+'" aria-labelledby="j-anncmt-next-label"><span class="jive-icon-glyph icon-arrow-right2"></span></a></span>':'','</div>')}return c?'':d.toString()},jive.announcements.list}),define('soy!jive.eae.activitystream.filterApplied',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream'),jive.eae.activitystream.filterApplied=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div id="filters-applied" class="j-filters-showing font-color-normal" ','all'!=b.filterData.selectedFilter.type||b.filterData.excluding||b.filterData.mattersMostFilter&&b.filterData.mattersMostFilter.selected?'':'style="display:none"','><strong>',soy.$$escapeHtml(a._i18n('5dbd29',[])),'</strong><span class="j-act-filterview j-act-filter-display-name">',soy.$$escapeHtml(b.filterData.selectedFilter.displayName),b.filterData.mattersMostFilter&&b.filterData.mattersMostFilter.selected?', '+soy.$$escapeHtml(a._i18n('99f1dc',[])):'','all'==b.filterData.selectedFilter.type&&b.filterData.excluding?', '+(b.filterData.allExclusionsSet?soy.$$escapeHtml(a._i18n('d0b615',[])):soy.$$escapeHtml(a._i18n('067b6e',[]))+' '+soy.$$escapeHtml(b.filterData.excluding)):'','</span></div>'),c?'':d.toString()},jive.eae.activitystream.filterApplied}),define('soy!jive.eae.activitystream.filterControls',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream'),jive.eae.activitystream.filterControls=function(b,c){var d=c||new soy.StringBuilder;if('profile'==b.streamType&&b.filterData.showFilters.length>1){d.append('<div id="filterlinks" class="j-act-listfilters j-act-filter-bar j-sub-bar">');for(var e=b.filterData.showFilters,f=e.length,g=0;f>g;g++){var h=e[g];d.append('<a href="#" data-filterobj="',soy.$$escapeHtmlAttribute(JSON.stringify(h).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029')),'" class="j-toggle ',h.selected?'j-sub-selected font-color-normal':'',' js-included-filter">',soy.$$escapeHtml(h.displayName),'</a>')}d.append('</div>')}else(b.filterData.showFilters.length>1||b.filterData.excludeFilters.length||b.filterData.mattersMostFilter)&&d.append('<div class="j-act-filter-controls"><a href="#" id="as-filter-trigger" class="j-as-filter-dd-control j-filter-select"><span class="lnk">',soy.$$escapeHtml(a._i18n('6dd408',[])),'</span><span class="j-nav-more jive-icon-glyph icon-arrow-down2 j-filter-icon"></span></a></div>');return c?'':d.toString()},jive.eae.activitystream.filterControls}),define('soy!jive.eae.activitystream.sortControl',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream'),jive.eae.activitystream.sortControl=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-activity-sortlist font-color-meta"><ul class="j-sort-options"><li class="j-sort-option','recent'==b.selected?' selected':'','"><a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.recentUrl)),'">',soy.$$escapeHtml(a._i18n('b404f4',[])),'</a></li><li class="j-sort-option border','trending'==b.selected?' selected':'','"><a href=\'',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.trendingUrl)),'\'>',soy.$$escapeHtml(a._i18n('156c7d',[])),'</a></li></ul></div>'),c?'':d.toString()},jive.eae.activitystream.sortControl}),define('soy!jive.eae.activitystream.streamControls',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream'),jive.eae.activitystream.streamControls=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-stream-controls">',b.canEdit?'<a href="#" class="j-js-edit-stream j-stream-control j-selected" title="'+soy.$$escapeHtmlAttribute(a._i18n('56ab16',[]))+'"><span class="jive-icon-glyph icon-pencil2"></span><span class="j-508-label">'+soy.$$escapeHtml(a._i18n('56ab16',[]))+'</span></a>':'',b.canDelete?'<a href="#" class="j-js-delete-stream j-stream-control j-selected" title="'+soy.$$escapeHtmlAttribute(a._i18n('a95a78',[]))+'"><span class="jive-icon-glyph icon-cancel-circle2"></span><span class="j-508-label">'+soy.$$escapeHtml(a._i18n('a95a78',[]))+'</span></a>':'','<a href="#" class="j-js-pin-stream j-stream-control j-selected" title="',soy.$$escapeHtmlAttribute(a._i18n('ead5d9',[])),'"><span class="jive-icon-glyph icon-pin"></span><span class="j-508-label">',soy.$$escapeHtml(a._i18n('ead5d9',[])),'</span></a></div>'),c?'':d.toString()},jive.eae.activitystream.streamControls}),define('soy!jive.eae.activitystream.streamStatus',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.activitystream'),jive.eae.activitystream.streamStatus=function(b,c){var d=c||new soy.StringBuilder;switch(d.append('<a href="#" class="js-status j-status j-status-level-',soy.$$escapeHtmlAttribute(b.maxLevel),'" data-status="',soy.$$escapeHtmlAttribute(JSON.stringify(b.statuses).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029')),'"><span class="jive-icon-med ',soy.$$escapeHtmlAttribute(b.iconCSS),'"></span>'),b.maxLevel){case'warn':d.append(soy.$$escapeHtml(a._i18n('515749',[])));break;case'error':d.append(soy.$$escapeHtml(a._i18n('2ef492',[])));break;default:d.append(soy.$$escapeHtml(a._i18n('c7de9b',[])))}return d.append('</a>'),c?'':d.toString()},jive.eae.activitystream.streamStatus}),define('soy!jive.eae.activitystream.streamSpecificFilters',['soyDeps','soy!jive.announcements.list','soy!jive.eae.activitystream.filterApplied','soy!jive.eae.activitystream.filterControls','soy!jive.eae.activitystream.sortControl','soy!jive.eae.activitystream.streamControls','soy!jive.eae.activitystream.streamStatus'],function(a){return jive.namespace.call(this,'jive.eae.activitystream'),jive.eae.activitystream.streamSpecificFilters=function(b,c){var d=c||new soy.StringBuilder;return d.append('<header class="j-act-header clearfix','all'==b.streamType?' j-act-header-all':'','context'==b.streamType&&'recent_activity'!=b.streamChannel?' j-tile-header':'',b.extraCssClasses?' '+soy.$$escapeHtmlAttribute(b.extraCssClasses):'','" aria-label="',soy.$$escapeHtmlAttribute(a._i18n('49e953',[])),'">'),!b.streamDisplayName||'profile'==b.streamType&&'news'==b.streamChannel||('context'==b.streamType?(d.append('<h4 class="font-color-meta">',soy.$$escapeHtml(b.streamDisplayName),'</h4>'),b.streamStatus&&b.streamStatus.statuses.length>0&&jive.eae.activitystream.streamStatus(b.streamStatus,d)):d.append('<h1 class="header" id="js-activity-heading" style="display: inline-block;">','all'==b.streamType&&'discovery'==b.streamChannel?soy.$$escapeHtml(a._i18n('842c4c',[])):'all'==b.streamType&&'recent'==b.streamChannel?soy.$$escapeHtml(a._i18n('842c4c',[])):soy.$$escapeHtml(b.streamDisplayName),'</h1>')),'all'!=b.streamType||'discovery'!=b.streamChannel&&'recent'!=b.streamChannel?b.streamSource&&b.recommender2Enabled&&jive.eae.activitystream.sortControl(soy.$$augmentMap(b,{recentUrl:b.streamID?jive.soy.func.buildUrl(window._jive_base_url,'/news',{streamID:b.streamID,streamSource:b.streamSource}):jive.soy.func.buildUrl(window._jive_base_url,'/news',{streamSource:b.streamSource}),trendingUrl:b.streamID?jive.soy.func.buildUrl(window._jive_base_url,'/news',{channel:'active',streamID:b.streamID,streamSource:b.streamSource}):jive.soy.func.buildUrl(window._jive_base_url,'/news',{channel:'active',streamSource:b.streamSource}),selected:'active'==b.streamChannel?'trending':'recent'}),d):jive.eae.activitystream.sortControl(soy.$$augmentMap(b,{recentUrl:jive.soy.func.buildUrl(window._jive_base_url,'/news',{channel:'recent'}),trendingUrl:jive.soy.func.buildUrl(window._jive_base_url,'/news',{channel:'discovery'}),selected:'discovery'==b.streamChannel?'trending':'recent'}),d),d.append(b.numUpdatesSinceRefresh?'<div class="j-js-updates-since-refresh j-updates-since-refresh font-color-meta" aria-live="polite" aria-atomic="true">'+(b.numUpdatesSinceRefresh>50?soy.$$escapeHtml(a._i18n('460c43',['50+'])):1==b.numUpdatesSinceRefresh?soy.$$escapeHtml(a._i18n('3c56b8',[b.numUpdatesSinceRefresh])):soy.$$escapeHtml(a._i18n('460c43',[b.numUpdatesSinceRefresh])))+'</div>':'','<div class="j-act-stream-controls ',b.streamChannel?' j-channel-'+soy.$$escapeHtmlAttribute(b.streamChannel)+' ':' j-channel-none','">'),'discovery'==b.streamChannel||'active'==b.streamChannel||null!=b.streamSource&&'publication'==b.streamSource||!b.filterData||jive.eae.activitystream.filterControls(b,d),b.anonymous||jive.eae.activitystream.streamControls({canEdit:'custom'==b.streamType||'connections'==b.streamType||'watches'==b.streamType,canDelete:'custom'==b.streamType||'watches'==b.streamType},d),d.append('</div>'),'discovery'==b.streamChannel||null!=b.streamSource&&'publication'==b.streamSource||!b.filterData||jive.eae.activitystream.filterApplied(b,d),jive.announcements.list(soy.$$augmentMap(b,{showDismiss:!1}),d),d.append('</header>'),c?'':d.toString()},jive.eae.activitystream.streamSpecificFilters}),define('soy!jive.statusinput.containers.microbloggingStatusInputLastUpdate',['soyDeps'],function(a){return jive.namespace.call(this,'jive.statusinput.containers'),jive.statusinput.containers.microbloggingStatusInputLastUpdate=function(b,c){var d=c||new soy.StringBuilder;return d.append('<strong>',soy.$$escapeHtml(a._i18n('50574e',[])),'</strong> ',soy.$$filterNoAutoescape(b.latestStatusUpdate.text),' <strong><a href="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.latestStatusUpdate.url)),'" class="j-comment-count j-inline-link font-color-meta-light" title="',1==b.latestStatusUpdate.commentcount?soy.$$escapeHtmlAttribute(a._i18n('aa6667',[b.latestStatusUpdate.commentcount])):soy.$$escapeHtmlAttribute(a._i18n('4ac590',[b.latestStatusUpdate.commentcount])),'"><span class="jive-icon-sml jive-glyph-comment"></span>',soy.$$escapeHtml(b.latestStatusUpdate.commentcount),'</a></strong>'),c?'':d.toString()},jive.statusinput.containers.microbloggingStatusInputLastUpdate}),define('soy!jive.video.captionRow',['soyDeps'],function(a){return jive.namespace.call(this,'jive.video'),jive.video.captionRow=function(b,c){var d=c||new soy.StringBuilder;d.append('<div class="j-form-row user-caption-files" style="padding: 5px;background:#f4f4f4;max-width: 90%;"><input type="file" accept=".vtt,.dfxp,.scc,.srt,.ttml,.sami" onchange="onChange(this)" class="caption-file" name="captionFile" id="caption-file" ',b.filename?'data-preloaded="true"':'aria-required="true"',' data-required="',soy.$$escapeHtml(a._i18n('4390bd',[])),'" data-id="',soy.$$escapeHtml(b.id),'"><label class = "jive-icon-document" style = "min-width: 300px; cursor: pointer;" for="caption-file" name = "caption-file">',b.filename?'caption_language_'+soy.$$escapeHtml(b.id)+'.vtt':soy.$$escapeHtml(a._i18n('8f8452',[])),'</label><a href="#" id="remove-caption" onclick="removeCaption(this)" style="padding: 10px;"><i class="jive-icon-glyph icon-close-med" style="color: grey"></i></a><select name="captionLang" class="j-select-lang caption-lang" onchange="valueUpdated(this)" data-required="',soy.$$escapeHtml(a._i18n('ac9648',[])),'" aria-required="true"><option value="">',soy.$$escapeHtml(a._i18n('7f803a',[])),'</option>');for(var e=b.languages,f=e.length,g=0;f>g;g++){var h=e[g];d.append('<option value="',soy.$$escapeHtml(h.nameKey),'" ',b.selectedLanguage==h.nameKey?'selected':h.filtered?'style="display: none;"':'','>',soy.$$escapeHtml(h.displayName),'</option>')}return d.append('</select><input type="hidden" id="caption-file-',soy.$$escapeHtml(b.id),'-filename" name="captionFilename" ',b.filename?'value="'+soy.$$escapeHtml(b.filename)+'"':'','></div>'),c?'':d.toString()},jive.video.captionRow}),define('soy!jive.video.captions',['soyDeps','soy!jive.video.captionRow'],function(a){return jive.namespace.call(this,'jive.video'),jive.video.captions=function(b,c){var d=c||new soy.StringBuilder;d.append('<label for="js-thumbs-input',b.identifier?' '+soy.$$escapeHtml(b.identifier):'','" class="j-compose-row-title">',b.captionsLabel?soy.$$escapeHtml(b.captionsLabel):soy.$$escapeHtml(a._i18n('a3bad6',[])),'</label><ul id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-caption-select" class="j-publishbar-select" role="radiogroup">');for(var e=b.captionOptions,f=e.length,g=0;f>g;g++){var h=e[g];if(d.append('<li role="radio" aria-labelledby="',b.identifier?soy.$$escapeHtml(b.identifier):'','j-publishbar-caption-option-original" aria-checked="false"><input type="radio" id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-',soy.$$escapeHtml(h.value),'" name="captionOption" value ="',soy.$$escapeHtml(h.value),'" role="radio" ',h.selected?'checked':'','/><label for="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-',soy.$$escapeHtml(h.value),'">',soy.$$escapeHtml(a._i18n(a.getMinKey(h.nameKey),[])),' <span class="font-color-meta">',soy.$$escapeHtml(a._i18n(a.getMinKey(h.helperKey),[])),'</span></label>'),'auto'==h.value){d.append('<div id="jive-caption-auto-values" class="j-form-row" ',h.selected?'':'style="display: none;"','><div class="j-form-row user-caption-files" style="padding: 10px;background:#f4f4f4;display:inline-flex;"><label class = "jive-icon-document" style="padding: 10px;" for="autocaptionLang" name = "caption-file">',soy.$$escapeHtml(a._i18n('d9ef9d',[])),'</label><select id="autocaptionLang" name="sourceLanguage" class="j-select-lang autocaptionLang" data-required="',soy.$$escapeHtml(a._i18n('ac9648',[])),'" aria-required="true"><option value="">',soy.$$escapeHtml(a._i18n('674583',[])),'</option>');for(var i=b.sourceLanguages,j=i.length,k=0;j>k;k++){var l=i[k];d.append('<option value="',soy.$$escapeHtml(l.nameKey),'" ',b.sourceLanguage==l.nameKey?'selected':'','>',soy.$$escapeHtml(l.displayName),'</option>')}d.append('</select></div></div>')}if('user'==h.value){if(d.append('<div id="jive-caption-custom-values" class="j-caption-source-option" ',h.selected?'':'style="display: none;"','><br/><div class="j-form-row" id="user-caption-supportedLabel"></div><br/><div class="j-form">'),0==b.userSelectedCaptions.length)jive.video.captionRow({languages:b.languages,id:1},d);else for(var m=b.userSelectedCaptions,n=m.length,o=0;n>o;o++){var p=m[o];jive.video.captionRow({languages:b.languages,id:p.id,selectedLanguage:p.language,filename:p.filename},d)}d.append('</div><div class="j-form-row add-row"><a href="#" onclick="addCaption()"><i class="jive-icon-glyph icon-plus-circle"></i> ',soy.$$escapeHtml(a._i18n('831504',[])),'</a></div></div>')}d.append('</li>')}return d.append('</ul>'),c?'':d.toString()},jive.video.captions}),define('soy!jive.publishbar.captions',['soyDeps','soy!jive.video.captions'],function(a){return jive.namespace.call(this,'jive.publishbar'),jive.publishbar.captions=function(a,b){var c=b||new soy.StringBuilder;return jive.video.captions(a,c),b?'':c.toString()},jive.publishbar.captions}),define('soy!jive.publishbar.blogPostPublishDate',['soyDeps','soy!jive.shared.soy.resourceInlineJs'],function(a){return jive.namespace.call(this,'jive.publishbar'),jive.publishbar.blogPostPublishDate=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<li class="j-rc5"><input type="checkbox" name="publishBar.blogPublishOption" id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-blogPublishOption" value=\'true\' ',b.selectedDate?'checked="checked"':'',' role="checkbox" /><label for="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-blogPublishOption">',soy.$$escapeHtml(a._i18n('06a077',[])),'</label><div id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-blogPublishDetails" ',b.selectedDate?'':'style="display: none;"','><span class="publishAtDateTimePicker"/><input type="text" id="',b.identifier?soy.$$escapeHtml(b.identifier):'','publishDate" name="',soy.$$escapeHtml(a._i18n('publishBar.publishDate.selectedDate',[])),'" class="j-time-picker j-form-datepicker" autocomplete="off" value="" required /></span> '),jive.shared.soy.resourceInlineJs({code:'require([ \'apps/shared/views/date_picker_view\', \'domReady!\' ], function(DatePickerView) {var datePicker = new DatePickerView({ locale: "'+soy.$$escapeHtml(b.locale)+'" }); datePicker.addDatePicker(\'#'+(b.identifier?soy.$$escapeHtml(b.identifier):'')+'publishDate\');});'},d),d.append('<select name="publishBar.publishDate.selectedHour">'),1==b.is24HrTime)for(var e=0;24>e;e++)d.append('<option value="',soy.$$escapeHtml(e),'"',e==b.selectedHour?' selected="true"':'','>',soy.$$escapeHtml(e),'</option>');else for(var f=1;13>f;f++)d.append('<option value="',soy.$$escapeHtml(f),'"',f==b.selectedHour?' selected="true"':'','>',soy.$$escapeHtml(f),'</option>');d.append('</select><select name="publishBar.publishDate.selectedMinute">');for(var g=0;60>g;g++)d.append('<option value="',soy.$$escapeHtml(g),'"',g==b.selectedMinute?' selected="true"':'','>',10>g?'0':'',soy.$$escapeHtml(g),'</option>');if(d.append('</select>'),1!=b.is24HrTime){d.append('<select name="publishBar.publishDate.selectedPeriod">');for(var h=b.periods,i=h.length,j=0;i>j;j++){var k=h[j];d.append('<option value="',soy.$$escapeHtml(k),'"',k==b.selectedPeriod?' selected="true"':'','>',soy.$$escapeHtml(k),'</option>')}d.append('</select>')}return d.append('</li>'),c?'':d.toString()},jive.publishbar.blogPostPublishDate}),define('soy!jive.publishbar.commentOption',['soyDeps'],function(a){return jive.namespace.call(this,'jive.publishbar'),jive.publishbar.commentOption=function(b,c){var d=c||new soy.StringBuilder;return d.append('<li ',b.hidden?'style="display: none;"':'','><input type="radio" id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-',soy.$$escapeHtml(b.id),'" name="publishBar.commentStatus" value="',soy.$$escapeHtml(b.value),'"',b.selected?'checked="checked"':'',' role="radio" /><label for="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-',soy.$$escapeHtml(b.id),'">',soy.$$escapeHtml(a._i18n(a.getMinKey(b.nameKey),[])),'</label></li>'),c?'':d.toString()},jive.publishbar.commentOption}),define('soy!jive.publishbar.commentOptions',['soyDeps','soy!jive.publishbar.commentOption'],function(a){return jive.namespace.call(this,'jive.publishbar'),jive.publishbar.commentOptions=function(b,c){var d=c||new soy.StringBuilder;d.append('<li class="j-rc5"><input type="checkbox" name="publishBar.commentOption" id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-commentOption" ',b.restrictComments?'checked="checked"':'',' role="checkbox" /><label for="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-commentOption">',soy.$$escapeHtml(a._i18n('f42b5e',[])),'</label><div id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-commentOptionDetails" class="j-advanced-details" ',b.showAdditionalCommentOptions&&b.restrictComments?'':'style="display: none;"','><ul role="radiogroup">');for(var e=b.commentStatusOptions,f=e.length,g=0;f>g;g++){var h=e[g];jive.publishbar.commentOption(soy.$$augmentMap(h,{selected:b.commentStatus==h.value,identifier:b.identifier}),d)}return d.append('</ul></div></li>'),c?'':d.toString()},jive.publishbar.commentOptions}),define('soy!jive.publishbar.documentApprovers',['soyDeps','soy!jive.shared.displayutil.userDisplayNameLink'],function(a){return jive.namespace.call(this,'jive.publishbar'),jive.publishbar.documentApprovers=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<li class="j-rc5 clearfix"><div class="clearfix"><input type="checkbox" name="publishBar.docApproversOption" id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-docApproversOption" ',b.approvers&&b.approvers.length>0?'checked="checked"':'',' role="checkbox" /><label for="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-docApproversOption">',soy.$$escapeHtml(a._i18n('9fe5df',[])),'</label></div><div id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-docApproversDetails" class="j-publishbar-people-block" ',b.approvers&&b.approvers.length>0?'':'style="display: none;"','>'),b.placeApprovers&&b.placeApprovers.length>0){d.append('<div class="j-place-approvers"><span>',soy.$$escapeHtml(a._i18n('55765c',[])),'</span><div class="jive-chooser-list j-result-list"><ul class="clearfix">');for(var e=b.placeApprovers,f=e.length,g=0;f>g;g++){var h=e[g];d.append('<li>'),jive.shared.displayutil.userDisplayNameLink(h,d),d.append('</li>')}d.append('</ul></div></div><label for="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-docApprovers">',soy.$$escapeHtml(a._i18n('a208b0',[])),'</label><br/>')}return d.append('<input type="text" id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-docApprovers" name="publishBar.approvers" class="j-autocomplete-input j-user-autocomplete j-ui-elem" role="combobox" aria-label="',soy.$$escapeHtml(a._i18n('a208b0',[])),'" /></div></li>'),c?'':d.toString()},jive.publishbar.documentApprovers}),define('soy!jive.publishbar.authorPolicyOption',['soyDeps'],function(a){return jive.namespace.call(this,'jive.publishbar'),jive.publishbar.authorPolicyOption=function(b,c){var d=c||new soy.StringBuilder;return d.append('<li ',b.hidden?'style="display: none;"':'','><input type="radio" id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-docAuthorPolicy-',soy.$$escapeHtml(b.value),'" name="publishBar.authorPolicy" value="',soy.$$escapeHtml(b.value),'" ',b.hidden?'disabled="disabled" ':'',b.selected?'checked="checked"':'',' role="radio"/><label for="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-docAuthorPolicy-',soy.$$escapeHtml(b.value),'">',soy.$$escapeHtml(a._i18n(a.getMinKey(b.nameKey),[])),'</label></li>'),c?'':d.toString()},jive.publishbar.authorPolicyOption}),define('soy!jive.publishbar.documentAuthors',['soyDeps','soy!jive.publishbar.authorPolicyOption'],function(a){return jive.namespace.call(this,'jive.publishbar'),jive.publishbar.documentAuthors=function(b,c){var d=c||new soy.StringBuilder;d.append('<li class="j-publish-bar-authors"><input type="checkbox" name="publishBar.docAuthorsOption" id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-docAuthorsOption" ',!b.defaultAuthorPolicySelected||b.forceAuthorList?' checked="checked"':'',' role="checkbox" value="true"/><input type="hidden" name="publishBar.defaultAuthorshipPolicy" id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-docDefaultAuthorshipPolicy"  value="',soy.$$escapeHtml(b.defaultAuthorPolicy),'"/><label for="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-docAuthorsOption">',soy.$$escapeHtml(a._i18n(a.getMinKey(b.authorPolicyNameKey),[])),' <span class="font-color-meta">',soy.$$escapeHtml(a._i18n(a.getMinKey(b.authorPolicyDescriptionKey),[])),'</span></label><div id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-docAuthorDetails" class="j-advanced-details"><ul role="radiogroup">');for(var e=b.authorPolicyOptions,f=e.length,g=0;f>g;g++){var h=e[g];jive.publishbar.authorPolicyOption(soy.$$augmentMap(h,{selected:b.authorPolicy==h.value,identifier:b.identifier}),d)}return d.append('</ul><div id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-docAuthors-multiple" class="j-publishbar-people-block" ',b.authorPolicyMultiple?'':'style="display:none;"','><label for="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-docAuthors" class="j-508-label">',soy.$$escapeHtml(a._i18n('9bac48',[])),'</label><input type="text" id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-docAuthors" name="publishBar.authors" class="j-autocomplete-input j-user-autocomplete j-ui-elem" role="combobox" aria-label="',soy.$$escapeHtml(a._i18n('9bac48',[])),'"/></div></div></li>'),
c?'':d.toString()},jive.publishbar.documentAuthors}),define('soy!jive.shared.form.datepickerHelper',['soyDeps','soy!jive.shared.soy.resourceInlineJs'],function(a){return jive.namespace.call(this,'jive.shared.form'),jive.shared.form.datepickerHelper=function(a,b){var c=b||new soy.StringBuilder;return c.append('<input type="text" class="jive-form-textinput-variable j-form-datepicker j-form-picker',a.className?' '+a.className:'','" id="',a.id,'"',a.name?'name="'+a.name+'"':'',a.value?'data-date="'+a.value+'"':'',' />'),('undefined'==typeof a.initialize||a.initialize)&&jive.shared.soy.resourceInlineJs({code:'require([ \'apps/shared/views/date_picker_view\', \'domReady!\' ], function(DatePicker){var datePicker = new DatePicker({"locale": _jive_locale}); datePicker.addDatePicker(\'#'+soy.$$escapeJsString(a.id)+'\', '+(a.futureOnly?'new Date()':'null')+');'+(a.futureOnly?'datePicker.setDate(\'#'+soy.$$escapeJsString(a.id)+'\', new Date());':'')+'});'},c),b?'':c.toString()},jive.shared.form.datepickerHelper}),define('soy!jive.shared.form.datepicker',['soyDeps','soy!jive.shared.form.datepickerHelper'],function(a){return jive.namespace.call(this,'jive.shared.form'),jive.shared.form.datepicker=function(a,b){a=a||{};var c=b||new soy.StringBuilder;return jive.shared.form.datepickerHelper(soy.$$augmentMap(a,{id:a.id?soy.$$escapeHtml(a.id):'js-datepicker-'+soy.$$escapeHtml(jive.soy.func.randomString())}),c),b?'':c.toString()},jive.shared.form.datepicker}),define('soy!jive.polls.voteEndsLaterOption',['soyDeps','soy!jive.shared.form.datepicker','soy!jive.shared.soy.resourceInlineJs'],function(a){return jive.namespace.call(this,'jive.polls'),jive.polls.voteEndsLaterOption=function(b,c){var d=c||new soy.StringBuilder;return d.append('<li><input type="radio" name="endsMode" value="',soy.$$escapeHtml(b.optionBean.value),'" id="',soy.$$escapeHtml(b.optionBean.id),'"',b.optionBean.id==b.activeBean.id?' checked="checked" ':'',' /><label for="',soy.$$escapeHtml(b.optionBean.id),'" id="endLatr">',soy.$$escapeHtml(a._i18n('23a9cb',[])),' </label><span class="expiresDatePicker" ',b.optionBean.id!=b.activeBean.id?'style="display:none;"':'','>'),jive.shared.form.datepicker({id:'endsDate',name:'endsDate',value:'',initialize:!1},d),b.optionBean.date&&jive.shared.soy.resourceInlineJs({code:'require([\'jquery\', \'domReady!\'], function($j) {$j("#endsDate").attr("value", "'+soy.$$escapeHtml(b.optionBean.date)+'");});'},d),d.append('</span></li>'),c?'':d.toString()},jive.polls.voteEndsLaterOption}),define('soy!jive.polls.voteEndsNeverOption',['soyDeps'],function(a){return jive.namespace.call(this,'jive.polls'),jive.polls.voteEndsNeverOption=function(b,c){var d=c||new soy.StringBuilder;return d.append('<li><input type="radio" name="endsMode" value="',soy.$$escapeHtml(b.optionBean.value),'" id="',soy.$$escapeHtml(b.optionBean.id),'"',b.optionBean.id==b.activeBean.id?' checked="checked" ':'',' /><label for="',soy.$$escapeHtml(b.optionBean.id),'">',soy.$$escapeHtml(a._i18n('fd95c4',[])),'</label></li>'),c?'':d.toString()},jive.polls.voteEndsNeverOption}),define('soy!jive.polls.voteEndsNowOption',['soyDeps'],function(a){return jive.namespace.call(this,'jive.polls'),jive.polls.voteEndsNowOption=function(b,c){var d=c||new soy.StringBuilder;return d.append('<li><input type="radio" name="endsMode" value="',soy.$$escapeHtml(b.optionBean.value),'" id="',soy.$$escapeHtml(b.optionBean.id),'"',b.optionBean.id==b.activeBean.id?' checked="checked" ':'',' /><label for="',soy.$$escapeHtml(b.optionBean.id),'">',soy.$$escapeHtml(a._i18n('3ccc01',[])),'<span class="font-color-meta">',soy.$$escapeHtml(a._i18n('c0099f',[])),'</span></label></li>'),c?'':d.toString()},jive.polls.voteEndsNowOption}),define('soy!jive.polls.voteEndsRelativeOption',['soyDeps'],function(a){return jive.namespace.call(this,'jive.polls'),jive.polls.voteEndsRelativeOption=function(b,c){var d=c||new soy.StringBuilder;return d.append('<li><input type="radio" name="endsMode" value="',soy.$$escapeHtml(b.optionBean.value),'" id="',soy.$$escapeHtml(b.optionBean.id),'"',b.optionBean.id==b.activeBean.id?' checked="checked" ':'',' /><label for="',soy.$$escapeHtml(b.optionBean.id),'">',soy.$$escapeHtml(a._i18n('30db9c',[new soydata.VERY_UNSAFE.ordainSanitizedHtml('<input type="text" name="endsDays" id="endsDays" size="3" value="14" class="autoWidth"/>')])),'</label></li>'),c?'':d.toString()},jive.polls.voteEndsRelativeOption}),define('soy!jive.polls.voteEnd',['soyDeps','soy!jive.polls.voteEndsLaterOption','soy!jive.polls.voteEndsNeverOption','soy!jive.polls.voteEndsNowOption','soy!jive.polls.voteEndsRelativeOption'],function(a){return jive.namespace.call(this,'jive.polls'),jive.polls.voteEnd=function(b,c){var d=c||new soy.StringBuilder;d.append('<div id="jive-poll-end" class="j-form-row jive-poll-exp clearfix"><label>',soy.$$escapeHtml(a._i18n('b897b7',[])),'<span class="font-color-meta">',soy.$$escapeHtml(a._i18n('cc69f9',[])),'</span></label><ul>');for(var e=b.voteEndOptions,f=e.length,g=0;f>g;g++){var h=e[g];'ends-now'==h.id?jive.polls.voteEndsNowOption({optionBean:h.id==b.voteEndBean.id?b.voteEndBean:h,activeBean:b.voteEndBean},d):'ends-never'==h.id?jive.polls.voteEndsNeverOption({optionBean:h.id==b.voteEndBean.id?b.voteEndBean:h,activeBean:b.voteEndBean},d):'ends-relative'==h.id?jive.polls.voteEndsRelativeOption({optionBean:h.id==b.voteEndBean.id?b.voteEndBean:h,activeBean:b.voteEndBean},d):jive.polls.voteEndsLaterOption({optionBean:h.id==b.voteEndBean.id?b.voteEndBean:h,activeBean:b.voteEndBean},d)}return d.append('</ul></div>'),c?'':d.toString()},jive.polls.voteEnd}),define('soy!jive.polls.voteStartImmediatelyOption',['soyDeps'],function(a){return jive.namespace.call(this,'jive.polls'),jive.polls.voteStartImmediatelyOption=function(b,c){var d=c||new soy.StringBuilder;return d.append('<li><input type="radio" name="activeMode" value="',soy.$$escapeHtml(b.optionBean.value),'" id="',soy.$$escapeHtml(b.optionBean.id),'"',b.optionBean.id==b.activeBean.id?' checked="checked" ':'',' /><label for="',soy.$$escapeHtml(b.optionBean.id),'">',soy.$$escapeHtml(a._i18n('02d31d',[])),'</label></li>'),c?'':d.toString()},jive.polls.voteStartImmediatelyOption}),define('soy!jive.polls.voteStartLaterOption',['soyDeps','soy!jive.shared.form.datepicker','soy!jive.shared.soy.resourceInlineJs'],function(a){return jive.namespace.call(this,'jive.polls'),jive.polls.voteStartLaterOption=function(b,c){var d=c||new soy.StringBuilder;return d.append('<li><input type="radio" name="activeMode" value="',soy.$$escapeHtml(b.optionBean.value),'" id="',soy.$$escapeHtml(b.optionBean.id),'"',b.optionBean.id==b.activeBean.id?' checked="checked" ':'',' /><label for="',soy.$$escapeHtml(b.optionBean.id),'">',soy.$$escapeHtml(a._i18n('f058fb',[])),' </label><span class="activeDatePicker" ',b.optionBean.id!=b.activeBean.id?'style="display:none;"':'','>'),jive.shared.form.datepicker({id:'activeDate',name:'activeDate',value:b.optionBean.date?b.optionBean.date:'',initialize:!1,futureOnly:!0},d),b.optionBean.date&&jive.shared.soy.resourceInlineJs({code:'require([\'jquery\', \'domReady!\'], function($j) {$j("#activeDate").attr("value", "'+soy.$$escapeHtml(b.optionBean.date)+'");});'},d),d.append('</span></li>'),c?'':d.toString()},jive.polls.voteStartLaterOption}),define('soy!jive.polls.voteStart',['soyDeps','soy!jive.polls.voteStartImmediatelyOption','soy!jive.polls.voteStartLaterOption'],function(a){return jive.namespace.call(this,'jive.polls'),jive.polls.voteStart=function(b,c){var d=c||new soy.StringBuilder;d.append('<div id="jive-poll-active" class="j-form-row jive-poll-exp clearfix"><label>',soy.$$escapeHtml(a._i18n('831a27',[])),'<span class="font-color-meta">',soy.$$escapeHtml(a._i18n('1ffedd',[])),'</span></label><ul>');for(var e=b.voteStartOptions,f=e.length,g=0;f>g;g++){var h=e[g];'active-now'==h.id?jive.polls.voteStartImmediatelyOption({optionBean:h.id==b.voteStartBean.id?b.voteStartBean:h,activeBean:b.voteStartBean},d):jive.polls.voteStartLaterOption({optionBean:h.id==b.voteStartBean.id?b.voteStartBean:h,activeBean:b.voteStartBean},d)}return d.append('</ul></div>'),c?'':d.toString()},jive.polls.voteStart}),define('soy!jive.publishbar.pollOptions',['soyDeps','soy!jive.polls.voteEnd','soy!jive.polls.voteStart'],function(a){return jive.namespace.call(this,'jive.publishbar'),jive.publishbar.pollOptions=function(b,c){var d=c||new soy.StringBuilder;return d.append('<li class="j-rc5"><input type="checkbox" name="publishBar.pollVoteOptions" id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-pollVoteOptions" value="true" ',b.defaultOptions?'':'checked="checked"',' role="checkbox" /><label for="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-pollVoteOptions">',soy.$$escapeHtml(a._i18n('8c4ed4',[])),'</label><div id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-pollVoteDetails" class="j-advanced-details" ',b.defaultOptions?'style="display: none;"':'','>'),jive.polls.voteStart(b,d),jive.polls.voteEnd({voteEndOptions:b.voteEndsOptions,voteEndBean:b.voteEndsBean},d),d.append('</div></li>'),c?'':d.toString()},jive.publishbar.pollOptions}),define('soy!jive.publishbar.collaborationOptions',['soyDeps','soy!jive.publishbar.blogPostPublishDate','soy!jive.publishbar.commentOptions','soy!jive.publishbar.documentApprovers','soy!jive.publishbar.documentAuthors','soy!jive.publishbar.pollOptions'],function(a){return jive.namespace.call(this,'jive.publishbar'),jive.publishbar.collaborationOptions=function(b,c){var d=c||new soy.StringBuilder;return b.showOptionsLink&&(d.append('<label class="j-compose-row-title">',b.showLabelWithoutLink?soy.$$escapeHtml(a._i18n('f72af6',[])):'<a href="#" id="'+(b.identifier?soy.$$escapeHtml(b.identifier):'')+'js-publishbar-collab-link">'+(b.expandAdvancedOptions?'<span class="jive-icon-glyph icon-arrow-down2"></span>':'<span class="jive-icon-glyph icon-arrow-right2"></span>')+'<strong>'+soy.$$escapeHtml(a._i18n('f72af6',[]))+'</strong></a>','</label><ul class="j-advanced-options" id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-collab"',b.expandAdvancedOptions?'':' style="display: none;"',' role="group" >'),b.showAuthors&&(d.append(b.showExternalInfo?'<div class="jive-external-authors-warn jive-info-box"><span class="jive-icon-med jive-icon-warn"></span>'+soy.$$escapeHtml(a._i18n('868185',[]))+'</div>':''),jive.publishbar.documentAuthors(soy.$$augmentMap(b.authorsBean,{identifier:b.identifier}),d),b.showApprovers&&jive.publishbar.documentApprovers(soy.$$augmentMap(b.approversBean,{identifier:b.identifier}),d)),b.showCommentOptions&&jive.publishbar.commentOptions(soy.$$augmentMap(b.commentOptionsBean,{identifier:b.identifier}),d),b.showBlogPostPublishDate&&jive.publishbar.blogPostPublishDate(soy.$$augmentMap(b.blogPostPublishDateBean,{identifier:b.identifier}),d),b.showPollOptions&&jive.publishbar.pollOptions(soy.$$augmentMap(b.pollOptionsBean,{identifier:b.identifier}),d),d.append('</ul>')),c?'':d.toString()},jive.publishbar.collaborationOptions}),define('soy!jive.publishbar.creatorVisibilityInfo',['soyDeps'],function(a){return jive.namespace.call(this,'jive.publishbar'),jive.publishbar.creatorVisibilityInfo=function(a,b){var c=b||new soy.StringBuilder;return c.append('<input type="hidden" id="',a.identifier?soy.$$escapeHtml(a.identifier):'','js-container-objecttype" name="publishBar.container.objectType" value="',soy.$$escapeHtml(a.visibilityBean.placeItemBean.type),'"/><input type="hidden" id="',a.identifier?soy.$$escapeHtml(a.identifier):'','js-container-id" name="publishBar.container.objectID" value="',soy.$$escapeHtml(a.visibilityBean.placeItemBean.id),'"/>',a.includeVisibilityValue?'<input type="hidden" name="publishBar.visibility" value="'+soy.$$escapeHtml(a.visibilityBean.visibility)+'"/>':''),b?'':c.toString()},jive.publishbar.creatorVisibilityInfo}),define('soy!jive.publishbar.categoryTooltip',['soyDeps'],function(a){return jive.namespace.call(this,'jive.publishbar'),jive.publishbar.categoryTooltip=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<div class="jive-tooltip-help snp-mouseoffset"><div id="jive-note-category-suggestion-body"><strong>',soy.$$escapeHtml(a._i18n('068b26',[])),'</strong><p>',soy.$$escapeHtml(a._i18n('3315c8',[])),'&nbsp;<strong>'),b.tags)for(var e=b.tags,f=e.length,g=0;f>g;g++){var h=e[g];d.append(soy.$$escapeHtml(h),g!=f-1?', ':'')}return d.append('</strong></p></div></div>'),c?'':d.toString()},jive.publishbar.categoryTooltip}),define('soy!jive.publishbar.tagSets',['soyDeps','soy!jive.publishbar.categoryTooltip'],function(a){return jive.namespace.call(this,'jive.publishbar'),jive.publishbar.tagSets=function(b,c){var d=c||new soy.StringBuilder;if(b.placeCategories&&b.placeCategories.length>0){d.append('<div id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-tagsets" class="j-compose-categories j-compose-row"><input type="hidden" name="publishBar.categories" id="',b.identifier?soy.$$escapeHtml(b.identifier):'','j-publishbar-categories" value="" /><div id="jive-compose-categories" class="clearfix" role="group"><label class="j-compose-row-title">',soy.$$escapeHtml(a._i18n('a547ec',[])),'<span class="font-color-meta">',soy.$$escapeHtml(a._i18n('16e92a',[])),'</span></label><ul',b.placeCategories&&b.placeCategories.length<8?' class="j-category-1col"':'',b.placeCategories&&b.placeCategories.length>7&&b.placeCategories.length<11?' class="j-category-2col"':'',b.placeCategories&&b.placeCategories.length>10&&b.placeCategories.length<16?' class="j-category-3col"':'',b.placeCategories&&b.placeCategories.length>15&&b.placeCategories.length<21?' class="j-category-4col"':'',b.placeCategories&&b.placeCategories.length>20?' class="j-category-5col"':'','><li>');for(var e=b.placeCategories,f=e.length,g=0;f>g;g++){var h=e[g];d.append(0!=g&&g%b.categoriesPerColumn==0?'</li><li>':'','<div><span class="jive-category-wrap"><input type="checkbox" id="',b.identifier?soy.$$escapeHtml(b.identifier):'','j-category_',soy.$$escapeHtml(h.id),'" class="j-category-input" value="',soy.$$escapeHtml(h.id),'" ',b.categories&&b.categories.indexOf(h.id)>-1?'checked="checked"':'',' data-tags="');for(var i=h.tags,j=i.length,k=0;j>k;k++){var l=i[k];d.append(soy.$$escapeHtml(l),k!=j-1?', ':'')}d.append('" role="checkbox" /><label for="',b.identifier?soy.$$escapeHtml(b.identifier):'','j-category_',soy.$$escapeHtml(h.id),'"><i class="jive-icon-glyph icon-categories"></i> <span class="j-catname">',soy.$$escapeHtml(h.name),'<img class=\'tooltip jive-icon-med jive-icon-help jiveTT-hover-suggest\' alt=\'\' src="',soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,'/images/transparent.png')),'" style="display: none;" title=\''),jive.publishbar.categoryTooltip({tags:h.tags},d),d.append('\' /></span></label></span></div>')}d.append('</li></ul></div><content tag="jiveTooltip"><div id="jiveTT-note-suggest" class="jive-tooltip-help notedefault snp-mouseoffset"><div id="jive-note-category-suggestion-body"><strong>',soy.$$escapeHtml(a._i18n('068b26',[])),'</strong><p>',soy.$$escapeHtml(a._i18n('3315c8',[])),'&nbsp;<strong id="jive-note-category-tags"></strong></p></div></div></content></div>')}return c?'':d.toString()},jive.publishbar.tagSets}),define('soy!jive.tags.autocomplete.tagInput',['soyDeps'],function(a){return jive.namespace.call(this,'jive.tags.autocomplete'),jive.tags.autocomplete.tagInput=function(b,c){b=b||{};var d=c||new soy.StringBuilder;return d.append('<div class="j-tags"><ul><li class="j-tag-icon j-tag-input jive-icon-glyph icon-tag1 font-color-meta-light" role="presentation"></li><li class="js-tag-entry j-tag-entry"><input type="text" id="input_tags" data-is-not-create-field="',b.isNotCreateField?soy.$$escapeHtml(b.isNotCreateField):'false','" data-hide-prepopulated-tags="',b.hidePrepopulatedTags?soy.$$escapeHtml(b.hidePrepopulatedTags):'false','" data-hide-suggestions-on-init="',b.hideSuggestionsOnInit?soy.$$escapeHtml(b.hideSuggestionsOnInit):'false','" data-is-skill="',b.isSkill?soy.$$escapeHtml(b.isSkill):'false','" data-focus-on-load="',b.focusOnLoad?soy.$$escapeHtml(b.focusOnLoad):'false','" placeholder="',b.placeholder?soy.$$escapeHtml(b.placeholder):'','" class=" js-tag-input',b.identifier?' '+soy.$$escapeHtml(b.identifier):'','" value="" autocomplete="off" role="combobox" aria-label="',soy.$$escapeHtml(a._i18n('5e7873',[])),'" aria-labelledby="input_tags" aria-expanded="false"/></li></ul></div><input type="hidden" class="js-hidden-tag-input" name="tags" value="',soy.$$filterNoAutoescape(b.tags?b.tags.replace(new RegExp('"','g'),'&quot;'):''),'"/>'),c?'':d.toString()},jive.tags.autocomplete.tagInput}),define('soy!jive.tags.autocomplete.tags',['soyDeps','soy!jive.tags.autocomplete.tagInput'],function(a){return jive.namespace.call(this,'jive.tags.autocomplete'),jive.tags.autocomplete.tags=function(b,c){b=b||{};var d=c||new soy.StringBuilder;return d.append('<div id="',b.identifier?soy.$$escapeHtml(b.identifier):'',' jive-compose-tags-form" class="j-tag-form"><label for="js-tag-input',b.identifier?' '+soy.$$escapeHtml(b.identifier):'','" class="j-compose-row-title">',b.tagBarLabel?soy.$$escapeHtml(b.tagBarLabel):soy.$$escapeHtml(a._i18n('2a38d1',[])),' <span class="font-color-meta">',soy.$$escapeHtml(a._i18n('d6d565',[])),'</span></label>'),jive.tags.autocomplete.tagInput(b,d),d.append('</div>'),c?'':d.toString()},jive.tags.autocomplete.tags}),define('soy!jive.publishbar.organize',['soyDeps','soy!jive.publishbar.tagSets','soy!jive.tags.autocomplete.tags'],function(a){return jive.namespace.call(this,'jive.publishbar'),jive.publishbar.organize=function(a,b){var c=b||new soy.StringBuilder;return a.showTags&&(jive.tags.autocomplete.tags(a,c),a.showCategories&&jive.publishbar.tagSets(a,c)),b?'':c.toString()},jive.publishbar.organize}),define('soy!jive.video.thumbnails',['soyDeps'],function(a){return jive.namespace.call(this,'jive.video'),jive.video.thumbnails=function(b,c){b=b||{};var d=c||new soy.StringBuilder;return d.append('<div id="',b.identifier?soy.$$escapeHtml(b.identifier):'',' jive-compose-thumbs-form"><label for="js-thumbs-input',b.identifier?' '+soy.$$escapeHtml(b.identifier):'','" class="j-compose-row-title">',b.thumbnailsLabel?soy.$$escapeHtml(b.thumbnailsLabel):soy.$$escapeHtml(a._i18n('d5eb02',[])),' <span class="font-color-meta">',soy.$$escapeHtml(a._i18n('37346c',[])),'</span></label><div class="image-uploader"></div></div>'),c?'':d.toString()},jive.video.thumbnails}),define('soy!jive.publishbar.thumbnails',['soyDeps','soy!jive.video.thumbnails'],function(a){return jive.namespace.call(this,'jive.publishbar'),jive.publishbar.thumbnails=function(a,b){var c=b||new soy.StringBuilder;return jive.video.thumbnails(a,c),b?'':c.toString()},jive.publishbar.thumbnails}),define('soy!jive.uiExtensions.box.render_social_group_extra_info',['soyDeps','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.uiExtensions.box'),jive.uiExtensions.box.render_social_group_extra_info=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div><span class="jive-icon-med j-box-icon-action" style="margin-top: 3px"></span><span style="margin-left: -5px;">'),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('1c68b3'),arg0:'<a href="#" onclick="window.open(\''+soy.$$escapeHtml(b.props.boxFolderUrl)+'\')">'+soy.$$escapeHtml(a._i18n('799696',[]))+'</a>',noAutoEscape:'true'},d),d.append('</span></div>'),c?'':d.toString()},jive.uiExtensions.box.render_social_group_extra_info}),define('soy!jive.integration.storage.render_container_exstorage_info',['soyDeps','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.integration.storage'),jive.integration.storage.render_container_exstorage_info=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-publishbar-ext">',a.exStorageInfo.iconUrl?'<span class="jive-icon-med" style="margin-top: 3px"><img src="'+soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,a.exStorageInfo.iconUrl))+'" alt=""></span>':'','<span ',a.exStorageInfo.iconUrl?' style="margin-left: -5px;" ':'',' >'),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('9c139e'),arg0:a.exStorageInfo.externalUrl?'<a href="#" onclick="window.open(\''+soy.$$escapeHtml(a.exStorageInfo.externalUrl)+'\')">'+soy.$$escapeHtml(a.exStorageInfo.displayName)+'</a>':soy.$$escapeHtml(a.exStorageInfo.displayName),arg1:a.exStorageInfo.externalUrl?'<a href="#" onclick="window.open(\''+soy.$$escapeHtml(a.exStorageInfo.externalUrl)+'\')">'+soy.$$escapeHtml(a.exStorageInfo.displayName)+'</a>':soy.$$escapeHtml(a.exStorageInfo.displayName),noAutoEscape:'true'},c),c.append('</span></div>'),b?'':c.toString()},jive.integration.storage.render_container_exstorage_info}),define('soy!jive.common.author.publish_bar.placeView',['soyDeps','soy!jive.uiExtensions.box.render_social_group_extra_info','soy!jive.eae.acclaim.count','soy!jive.integration.storage.render_container_exstorage_info','soy!jive.shared.soy.getCountTextByType','soy!jive.shared.soy.render'],function(a){return jive.namespace.call(this,'jive.common.author.publish_bar'),jive.common.author.publish_bar.placeView=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<section ',b.placeChangeable?'':'style="display:none;"','><input type="hidden" id="',b.identifier?soy.$$escapeHtmlAttribute(b.identifier):'','j-publishbar-place-type" name="publishBar.container.objectType" value="',soy.$$escapeHtmlAttribute(b.type),'" /><input type="hidden" id="',b.identifier?soy.$$escapeHtmlAttribute(b.identifier):'','j-publishbar-place-id" name="publishBar.container.objectID" value="',soy.$$escapeHtmlAttribute(b.id),'"/><div class="j-place-info clearfix" data-object-type="',soy.$$escapeHtmlAttribute(b.type),'" data-object-id="',soy.$$escapeHtmlAttribute(b.id),'">',b.preInputNameKey&&''!=b.preInputNameKey?'<label for="'+(b.identifier?soy.$$escapeHtmlAttribute(b.identifier):'')+'js-publishbar-place-input">'+soy.$$escapeHtml(a._i18n(a.getMinKey(b.preInputNameKey),[]))+'</label>':'','<div>'),b.placeRenderType&&'standard'!=b.placeRenderType)d.append(b.iconCss?'<span class="'+soy.$$escapeHtmlAttribute(b.iconCss)+' jive-icon-med"></span>':'','<div><strong>',b.preInputNameKey&&''!=b.preInputNameKey?'<span class="j-508-label">'+soy.$$escapeHtml(a._i18n(a.getMinKey(b.preInputNameKey),[]))+'</span>':'','<span class="j-header-text js-header-text" tabindex="0">',soy.$$escapeHtml(b.subject),'</span></strong></div>',b.prop.isVisibleToPartner?' <span class="font-color-meta-light j-browse-external-access"> <em>('+soy.$$escapeHtml(a._i18n('fa6162',[]))+')</em></span>':'','  ',b.prop.perms.allowedToMove?'<a href="#" id="'+(b.identifier?soy.$$escapeHtmlAttribute(b.identifier):'')+'js-publishbar-changePlace" class="font-color-meta">'+soy.$$escapeHtml(a._i18n('d41728',[]))+' <span class="j-508-label">'+soy.$$escapeHtml(a._i18n('db2c1c',[]))+'</span></a>':'');else{if(d.append(b.prop.placeImage&&b.prop.placeImage.urlMedium?'<div class="j-place-image-container"><img src="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,b.prop.placeImage.urlMedium)))+'" alt="'+soy.$$escapeHtmlAttribute(a._i18n('959177',[]))+'" /></div>':'<span class="'+soy.$$escapeHtmlAttribute(b.iconCss)+' jive-icon-huge"></span>','<div class="j-place-view-info j-js-place-view-info"><div class="clearfix"><strong><span class="js-header-text j-header-text-place j-header-text-place-subject">',soy.$$escapeHtml(b.subject),'</span></strong>',b.prop.perms.allowedToMove?'<a href="#" id="'+(b.identifier?soy.$$escapeHtmlAttribute(b.identifier):'')+'js-publishbar-changePlace" class="font-color-meta j-header-text-place">'+soy.$$escapeHtml(a._i18n('d41728',[]))+' <span class="j-508-label" aria-hidden="true">'+soy.$$escapeHtml(a._i18n('db2c1c',[]))+'</span></a>':'','</div><div class="j-place-view-meta-info font-color-meta-light">',b.prop.parentInfo?'<span class="j-browse-content-location font-color-meta-light">'+soy.$$escapeHtml(a._i18n('e41fbb',[]))+' <a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,b.prop.parentInfo.link)))+'" class="font-color-meta-light jivecontainerTT-hover-container" data-objectId="'+soy.$$escapeHtmlAttribute(b.prop.parentInfo.id)+'" data-objectType="'+soy.$$escapeHtmlAttribute(b.prop.parentInfo.type)+'" target="_blank">'+soy.$$escapeHtml(b.prop.parentInfo.subject)+'</a></span>':'',b.prop.socialGroupInfo&&b.prop.socialGroupInfo.typeName?'<span class="j-place-group-type"><span class="jive-icon-glyph icon-'+('open'==b.prop.socialGroupInfo.typeName||'member_only'==b.prop.socialGroupInfo.typeName?'unlocked':'lock')+'" title="'+soy.$$escapeHtmlAttribute(a._i18n(a.getMinKey('browse.info.sgroup.'+b.prop.socialGroupInfo.typeName),[]))+'"></span>'+(b.prop.socialGroupInfo.typeKeySimple?soy.$$escapeHtml(a._i18n(a.getMinKey(b.prop.socialGroupInfo.typeKeySimple),[])):soy.$$escapeHtml(a._i18n(a.getMinKey('browse.info.sgroup.'+b.prop.socialGroupInfo.typeName),[])))+'</span>':'',b.prop.socialGroupInfo&&b.prop.isVisibleToPartner?',':'',' ',b.prop.isVisibleToPartner?'<span class="font-color-meta-light j-browse-external-access"> <em>('+soy.$$escapeHtml(a._i18n('fa6162',[]))+')</em></span> ':''),b.prop.placeCustom&&jive.shared.soy.render({templateName:b.prop.placeCustom.templateName,data:function(){for(var a={},c=[['props',b.prop.placeCustom.props]],d=0;d<c.length;d+=1)a[c[d][0]]=c[d][1];return a}(),failGracefully:!1},d),d.append('<span class="j-publish-bar-acclaim-container j-js-publish-bar-acclaim-container">'),b.prop.followInfo){d.append('<span class="j-placeinfo-meta">');var e=new soy.StringBuilder;jive.shared.soy.getCountTextByType({count:b.prop.followInfo&&b.prop.followInfo.numFollowers?soy.$$escapeHtml(b.prop.followInfo.numFollowers):'0',type:'showfollowcount'},e),jive.eae.acclaim.count({command:'showFollowers',count:b.prop.followInfo&&b.prop.followInfo.numFollowers?soy.$$escapeHtml(b.prop.followInfo.numFollowers):'0',objectId:b.id,objectType:b.type,text:b.prop.followInfo&&b.prop.followInfo.numFollowers?1==b.prop.followInfo.numFollowers?soy.$$escapeHtml(a._i18n('31f7cf',[b.prop.followInfo.numFollowers])):soy.$$escapeHtml(a._i18n('3f446c',[b.prop.followInfo.numFollowers])):soy.$$escapeHtml(a._i18n('3f446c',[0])),accessibilityLinkLabel:e.toString()},d),d.append('</span>')}if(b.prop.socialGroupInfo&&b.prop.socialGroupInfo.numMembers&&b.prop.socialGroupInfo.numMembers>=0){d.append('<span class="j-placeinfo-meta">');var f=new soy.StringBuilder;if(jive.shared.soy.getCountTextByType({count:b.prop.socialGroupInfo?soy.$$escapeHtml(b.prop.socialGroupInfo.numMembers):'0',type:'showmembercount'},f),jive.eae.acclaim.count({command:'showMembers',count:b.prop.socialGroupInfo?soy.$$escapeHtml(b.prop.socialGroupInfo.numMembers):'0',objectId:b.id,objectType:b.type,text:(b.prop.socialGroupInfo&&b.prop.socialGroupInfo.numMembers?soy.$$escapeHtml(b.prop.socialGroupInfo.numMembers):'0')+' '+(1==b.prop.socialGroupInfo.numMembers?soy.$$escapeHtml(a._i18n('7ff59d',[])):soy.$$escapeHtml(a._i18n('fe14bc',[]))),accessibilityLinkLabel:f.toString()},d),d.append('</span>'),b.prop.isVisibleToPartner){d.append('<span class="j-placeinfo-meta">');var g=new soy.StringBuilder;jive.shared.soy.getCountTextByType({count:b.prop.socialGroupInfo?soy.$$escapeHtml(b.prop.socialGroupInfo.numPartners):'0',type:'showexternalcontributorscount'},g),jive.eae.acclaim.count({command:'showExternalContributorMembers',count:b.prop.socialGroupInfo?soy.$$escapeHtml(b.prop.socialGroupInfo.numPartners):'0',objectId:b.id,objectType:b.type,text:1==b.prop.socialGroupInfo.numPartners?soy.$$escapeHtml(a._i18n('91d0d6',[b.prop.socialGroupInfo.numPartners])):soy.$$escapeHtml(a._i18n('ec7ef5',[b.prop.socialGroupInfo.numPartners])),accessibilityLinkLabel:g.toString()},d),d.append('</span>')}}d.append('</span>'),b.showExStorageInfo&&b.prop.exStorageInfo&&jive.integration.storage.render_container_exstorage_info({exStorageInfo:b.prop.exStorageInfo},d),d.append('</div></div>')}return d.append('</div></div></section>'),c?'':d.toString()},jive.common.author.publish_bar.placeView}),define('soy!jive.publishbar.placeView',['soyDeps','soy!jive.uiExtensions.box.render_social_group_extra_info','soy!jive.common.author.publish_bar.placeView'],function(a){return jive.namespace.call(this,'jive.publishbar'),jive.publishbar.placeView=function(a,b){var c=b||new soy.StringBuilder;return jive.common.author.publish_bar.placeView(a,c),b?'':c.toString()},jive.publishbar.placeView}),define('soy!jive.publishbar.visibility',['soyDeps'],function(a){return jive.namespace.call(this,'jive.publishbar'),jive.publishbar.visibility=function(b,c){var d=c||new soy.StringBuilder;return d.append(b.showVisibility?'<div id="'+(b.identifier?soy.$$escapeHtml(b.identifier):'')+'js-visibility-'+soy.$$escapeHtml(b.visibility)+'" class="js-visibility-option">'+(b.placeVisibility?(b.preInputNameKey&&''!=b.preInputNameKey?'<label for="'+(b.identifier?soy.$$escapeHtml(b.identifier):'')+'js-publishbar-place-input">'+soy.$$escapeHtml(a._i18n(a.getMinKey(b.preInputNameKey),[]))+'</label>':'')+'  <div class="j-publish-input-row"><input type="text" id="'+(b.identifier?soy.$$escapeHtml(b.identifier):'')+'js-publishbar-place-input" class="j-publish-input-entry" autocomplete="off" role="combobox"'+(b.communityFeatureVisible?'placeholder="'+soy.$$escapeHtml(a._i18n('c428f3',[]))+'" aria-label="'+soy.$$escapeHtml(a._i18n('c428f3',[]))+'"':'placeholder="'+soy.$$escapeHtml(a._i18n('24f47a',[]))+'" aria-label="'+soy.$$escapeHtml(a._i18n('24f47a',[]))+'"')+'/>'+(b.inputBrowse?'<a href="#trigger_modal" id="'+(b.identifier?soy.$$escapeHtml(b.identifier):'')+'js-publishbar-place-browse">'+(b.communityFeatureVisible?soy.$$escapeHtml(a._i18n('43a6c3',[])):soy.$$escapeHtml(a._i18n('b43291',[])))+'</a>':'')+'</div><div id="'+(b.identifier?soy.$$escapeHtml(b.identifier):'')+'js-publishbar-place-results" class="j-pop j-autocomplete" style="display: none;"></div>':b.peopleVisibility?'<div><input type="text" id="'+(b.identifier?soy.$$escapeHtml(b.identifier):'')+'js-publishbar-users" name="publishBar.users" class="j-autocomplete-input j-user-autocomplete j-ui-elem" role="combobox" placeHolder="'+soy.$$escapeHtml(a._i18n('b5d08d',[]))+'" aria-label="'+soy.$$escapeHtml(a._i18n('b5d08d',[]))+'"/></div>':b.allVisibility&&b.personalBlog?b.personalBlog.id>0?soy.$$escapeHtml(b.personalBlog.name):'<span id="js-publishbar-createblog-default">'+soy.$$escapeHtml(b.personalBlog.name)+'   <a href="#" class="font-color-meta" id="js-publishbar-createblog-change">'+soy.$$escapeHtml(a._i18n('c77f00',[]))+'</a></span><span id="js-publishbar-createblog" style="display:none;"><label for="personal-blog-name-id" class="j-508-label" aria-hidden="true"></label><input id="personal-blog-name-id" type="text" name="publishBar.personalBlogName" value="'+soy.$$escapeHtml(b.personalBlog.name)+'"/></span>':'')+'</div>':''),c?'':d.toString()},jive.publishbar.visibility}),define('soy!jive.publishbar.visibilityOptions',['soyDeps','soy!jive.publishbar.creatorVisibilityInfo','soy!jive.publishbar.placeView','soy!jive.publishbar.visibility'],function(a){return jive.namespace.call(this,'jive.publishbar'),jive.publishbar.visibilityOptions=function(b,c){var d=c||new soy.StringBuilder;d.append(b.visibilityOptionsLabel?'<h2>'+soy.$$escapeHtml(b.visibilityOptionsLabel)+'</h2>':'','<ul id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-select" class="j-publishbar-select" role="radiogroup" ',b.extendedAuthor?'style="display:none;"':'','>');for(var e=b.visibilityOptions,f=e.length,g=0;f>g;g++){var h=e[g];(!b.isPartner||b.isPartner&&'all'!=h.value)&&(d.append('<li role="radio" aria-labelledby="',b.identifier?soy.$$escapeHtml(b.identifier):'','j-publishbar-place-original" aria-checked="false">',h.displayOptionName?'<input type="radio" id="'+(b.identifier?soy.$$escapeHtml(b.identifier):'')+'js-'+soy.$$escapeHtml(h.value)+'" name="publishBar.visibility" value ="'+soy.$$escapeHtml(h.value)+'" '+(h.selected?'checked="checked"':'')+' role="radio"/><label for="'+(b.identifier?soy.$$escapeHtml(b.identifier):'')+'js-'+soy.$$escapeHtml(h.value)+'">'+(h.optionAll?null==b.communityName?soy.$$escapeHtml(a._i18n('c40d5b',[])):soy.$$escapeHtml(a._i18n(a.getMinKey(h.nameKey),[b.communityName])):soy.$$escapeHtml(a._i18n(a.getMinKey(h.nameKey),[])))+' <span class="font-color-meta">'+soy.$$escapeHtml(a._i18n(a.getMinKey(h.helperKey),[]))+'</span></label>':'','<input type="hidden" id="',b.identifier?soy.$$escapeHtml(b.identifier):'','j-publishbar-place-original" class="js-original-place" data-place-id="',b.visibilityBean.placeItemBean?soy.$$escapeHtml(b.visibilityBean.placeItemBean.id):'','" data-place-link="',b.visibilityBean.placeItemBean?soy.$$escapeHtml(b.visibilityBean.placeItemBean.link):'','" data-place-type-id="',b.visibilityBean.placeItemBean?soy.$$escapeHtml(b.visibilityBean.placeItemBean.type):'','" data-render-type="',soy.$$escapeHtml(b.placeRenderType),'" data-subject="',b.visibilityBean.placeItemBean?soy.$$escapeHtml(b.visibilityBean.placeItemBean.subject):'','" data-placechangeable="',soy.$$escapeHtml(b.placeChangeable),'"',b.visibilityBean.placeItemBean.prop.exStorageInfo?' data-ex-storage-info="'+soy.$$escapeHtml(JSON.stringify(b.visibilityBean.placeItemBean.prop.exStorageInfo).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+'"':'',' /><div id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-option-',soy.$$escapeHtml(h.value),'" data-preInputNameKey="',soy.$$escapeHtml(h.preInputNameKey),'" data-inputBrowse="',soy.$$escapeHtml(h.inputBrowse),'" class="j-share-to-option" ',h.selected&&b.visibilityBean.showVisibility?'':'style="display: none;"','>'),
h.selected&&b.visibilityBean.showVisibility&&jive.publishbar.visibility(soy.$$augmentMap(b.visibilityBean,{communityFeatureVisible:b.communityFeatureVisible,inputBrowse:h.inputBrowse,identifier:b.identifier,preInputNameKey:h.preInputNameKey}),d),!h.placeVisibilityOption&&b.creator&&jive.publishbar.creatorVisibilityInfo({visibilityBean:b.visibilityBean,includeVisibilityValue:!1},d),d.append('</div>'),h.placeVisibilityOption&&(d.append('<div id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-place-selection" data-preInputNameKey="',soy.$$escapeHtml(h.preInputNameKey),'" data-inputBrowse="',soy.$$escapeHtml(h.inputBrowse),'" class="j-share-to-option ',b.identifier?soy.$$escapeHtml(b.identifier):'','publishbar-place-selection-marker"  ',h.selected&&b.visibilityBean.placeSelected?'':'style="display: none;"','>'),b.visibilityBean.placeSelected?jive.publishbar.placeView(soy.$$augmentMap(b.visibilityBean.placeItemBean,{identifier:b.identifier,placeRenderType:b.placeRenderType,preInputNameKey:h.preInputNameKey,placeChangeable:b.placeChangeable,showExStorageInfo:b.showExStorageInfo&&b.optionsBean.showExternalInfo}),d):b.placeRenderType&&'quick'==b.placeRenderType&&jive.publishbar.visibility(soy.$$augmentMap(b.visibilityBean,{communityFeatureVisible:b.communityFeatureVisible,inputBrowse:h.inputBrowse,identifier:b.identifier,preInputNameKey:h.preInputNameKey}),d),d.append('</div>')),d.append('</li>'))}return d.append('<div id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-move-notify-streams" class="jive-content-move-notify-streams-box" style="display:none;"><input type="checkbox" name="moveNotifyStreams" value="true" id="',b.identifier?soy.$$escapeHtml(b.identifier):'','jive-compose-move-notify" /><strong><label for="',b.identifier?soy.$$escapeHtml(b.identifier):'','jive-compose-move-notify">',soy.$$escapeHtml(a._i18n('fd607e',[])),'</label></strong></div>',b.placeRenderType&&'standard'!=b.placeRenderType?'':'<div id="'+(b.identifier?soy.$$escapeHtml(b.identifier):'')+'js-publishbar-moderation-warning"  class="jive-content-moderation-box" tabindex="-1" role="alert" aria-live="assertive" aria-atomic="true"'+(b.visibilityBean.placeItemBean.prop.isModerated?'':' style="display: none;" ')+'><span class="jive-icon-med jive-icon-warn"></span>'+soy.$$escapeHtml(a._i18n('58f17f',[]))+'</div>','</ul>'),c?'':d.toString()},jive.publishbar.visibilityOptions}),define('soy!jive.publishbar.main',['soyDeps','soy!jive.publishbar.captions','soy!jive.publishbar.collaborationOptions','soy!jive.publishbar.creatorVisibilityInfo','soy!jive.publishbar.organize','soy!jive.publishbar.thumbnails','soy!jive.publishbar.visibilityOptions','soy!jive.shared.soy.resourceInlineJs'],function(a){return jive.namespace.call(this,'jive.publishbar'),jive.publishbar.main=function(b,c){var d=c||new soy.StringBuilder;return b.visibilityOptions?(d.append('<div class="j-publishbar j-publishbar-',b.placeRenderType?soy.$$escapeHtml(b.placeRenderType):'',' clearfix" role="application"',b.workGroupsEnabled?'style="display:none"':'','><section id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-visibility" class="j-compose-row begin end j-publishbar-visibility j-publish-group','quick'==b.placeRenderType?'-'+soy.$$escapeHtml(b.placeRenderType):'',' j-rc5">'),jive.publishbar.visibilityOptions(soy.$$augmentMap(b,{isPartner:b.viewingUserPartner,identifier:b.identifier,placeRenderType:b.placeRenderType?soy.$$escapeHtml(b.placeRenderType):'standard',placeChangeable:b.placeChangeable,showExStorageInfo:b.showExStorageInfo,visibilityOptionsLabel:b.visibilityOptionsLabel}),d),d.append('<span id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-loading"></span>',b.extendedAuthor&&b.warnVisibleToPartner?'<div class="j-browse-external-access"><em>'+soy.$$escapeHtml(a._i18n('54c7d9',[]))+'</em></div>':'','</section>'),b.showOrganizeSection&&(d.append('<section id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-organize" class="j-compose-row begin end j-publishbar-organize">'),jive.publishbar.organize(soy.$$augmentMap(b.organizeBean,{identifier:b.identifier,tagBarLabel:b.tagBarLabel}),d),d.append('</section>')),b.showThumbnailsSection&&(d.append('<section id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-thumbnails" class="j-compose-row begin end j-publishbar-metadata">'),jive.publishbar.thumbnails(soy.$$augmentMap(b.thumbnailsBean,{identifier:b.identifier,thumbnailsLabel:b.thumbnailsLabel}),d),d.append('</section>')),b.showCaptionSection&&(d.append('<section id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-caption" class="j-compose-row begin end j-publishbar-caption">'),jive.publishbar.captions(soy.$$augmentMap(b.captionBean,{identifier:b.identifier,captionLabel:b.captionLabel}),d),d.append('</section>')),b.showCollborationSection&&(d.append('<section id="',b.identifier?soy.$$escapeHtml(b.identifier):'','js-publishbar-collaboration" class="j-compose-row end j-publishbar-collaboration" ',b.optionsBean.showOptionsLink?'':'style="display: none;"','>'),jive.publishbar.collaborationOptions(soy.$$augmentMap(b.optionsBean,{identifier:b.identifier,showLabelWithoutLink:b.showLabelWithoutLink,expandAdvancedOptions:b.expandAdvancedOptions}),d),d.append('</section>')),d.append('</div>')):b.creator&&(jive.publishbar.creatorVisibilityInfo({visibilityBean:b.visibilityBean,includeVisibilityValue:!0},d),d.append('<input type="hidden" name="publishBar.tags" value="',soy.$$escapeHtml(b.organizeBean.tags),'"/>')),jive.shared.soy.resourceInlineJs({code:'require([ \'apps/publish_bar/main\', \'domReady!\' ], function(PublishBar) {jive.global.communityFeatureVisible = '+(b.communityFeatureVisible?'true':'false')+'; function initiatePublishBar'+(b.identifier?soy.$$escapeHtml(b.identifier):'')+'() {var jivePublishBar'+(b.identifier?soy.$$escapeHtml(b.identifier):'')+' = new PublishBar({objectType: '+soy.$$escapeJsString(b.objectType)+','+(b.objectDescriptor?'objectDescriptor:'+soy.$$escapeJsString(b.objectDescriptor)+',':'')+(b.identifier?'identifier:\''+soy.$$escapeJsString(b.identifier)+'\',':'')+(b.placeRenderType?'placeRenderType:\''+soy.$$escapeJsString(b.placeRenderType)+'\',':'')+'showCommunityOption: '+soy.$$escapeHtml(!b.viewingUserPartner&&b.visibilityBean.placeItemBean.prop.canPostToNetwork)+', jiveProvider: '+soy.$$escapeHtml(b.jiveProvider)+', initData: {visibilityBean: '+(b.visibilityBean?soy.$$filterNoAutoescape(JSON.stringify(b.visibilityBean).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029')):'{}')+', organizeBean: '+(b.organizeBean?soy.$$filterNoAutoescape(JSON.stringify(b.organizeBean).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029')):'{}')+', optionsBean: '+(b.optionsBean?soy.$$filterNoAutoescape(JSON.stringify(b.optionsBean).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029')):'{}')+', videoBean: '+(b.videoBean?soy.$$filterNoAutoescape(JSON.stringify(b.videoBean).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029')):'{}')+', thumbnailsBean: '+(b.thumbnailsBean?soy.$$filterNoAutoescape(JSON.stringify(b.thumbnailsBean).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029')):'{}')+', captionBean: '+(b.captionBean?soy.$$filterNoAutoescape(JSON.stringify(b.captionBean).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029')):'{}')+'}});}initiatePublishBar'+(b.identifier?soy.$$escapeHtml(b.identifier):'')+'();});'},d),d.append(soy.$$filterNoAutoescape('')),c?'':d.toString()},jive.publishbar.main}),define('soy!jive.statusinput.containers.renderInsertLinkContainer',['soyDeps'],function(a){return jive.namespace.call(this,'jive.statusinput.containers'),jive.statusinput.containers.renderInsertLinkContainer=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-insert-link js-insert-link" style="display:none;"><label for="uri-',soy.$$escapeHtmlAttribute(b.statusID),'">',soy.$$escapeHtml(a._i18n('f80484',[])),'<span class="font-color-meta">',soy.$$escapeHtml(a._i18n('b9058c',[])),'</span></label><input type="uri" id="uri-',soy.$$escapeHtmlAttribute(b.statusID),'" name="uri" class="j-uri-input js-uri-input j-publish-input-entry" maxlength="3500"/><a href="javascript:void(0);" class="j-uri-add js-uri-add j-btn-global">',soy.$$escapeHtml(a._i18n('4eb275',[])),'</a></div>'),c?'':d.toString()},jive.statusinput.containers.renderInsertLinkContainer}),define('soy!jive.statusinput.containers.statusInputActions',['soyDeps','soy!jive.publishbar.main','soy!jive.statusinput.containers.renderInsertLinkContainer'],function(a){return jive.namespace.call(this,'jive.statusinput.containers'),jive.statusinput.containers.statusInputActions=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div id=\'',b.idPrefix?b.idPrefix:'status-input-actions-',soy.$$escapeHtmlAttribute(b.statusID),'\' class="j-status-input-actions" ',b.showOnLoad?'':'style="display:none;"','>'),jive.statusinput.containers.renderInsertLinkContainer(b,d),b.publishBarViewBean&&jive.publishbar.main(soy.$$augmentMap(b.publishBarViewBean,{identifier:b.publishBarIdentifier?soy.$$escapeHtml(b.publishBarIdentifier):'',placeRenderType:'quick'}),d),d.append('<a href="javascript:void(0);" class="j-status-input-submit j-btn-global j-btn-callout">',soy.$$escapeHtml(a._i18n(b.i18nSubmitKey,[])),'</a>',b.i18nCancelKey?'<a href="javascript:void(0);" class="j-status-input-cancel j-btn-global close">'+soy.$$escapeHtml(a._i18n(b.i18nCancelKey,[]))+'</a>':'',b.displayLinkBtn?'<a href="javascript:void(0);" class="jive-js-link-button j-wall-meta-link"><span class="j-508-label">'+soy.$$escapeHtml(a._i18n('fa66bb',[]))+'</span><span class="jive-icon-glyph icon-link"></span></a>':'',b.displayImageBtn?'<p id="jive-js-imgattach-button-desc" class="j-508-label" aria-hidden="true">Press enter to select this button to upload an image.  If using JAWS, press Shift-Enter to select this button.</p><div tabindex="0" class="jive-js-imgattach-button j-wall-meta-image j-btn-global" data-enabled="'+soy.$$escapeHtmlAttribute(b.displayImageBtn)+'" aria-describedby="jive-js-imgattach-button-desc"><span class="j-508-label">'+soy.$$escapeHtml(a._i18n('a82059',[]))+'</span><span class="jive-icon-glyph icon-image"></span></div>':'',b.displayAtMentionBtn?'<a href="javascript:void(0);" class="jive-js-mention-button j-wall-meta-reference j-btn-global"><span class="j-508-label">'+soy.$$escapeHtml(a._i18n('5c2e1a',[]))+'</span><span class="jive-icon-med jive-icon-mention" aria-labelledby="j-status-mention-label"></span></a>':'','</div>'),c?'':d.toString()},jive.statusinput.containers.statusInputActions}),define('soy!jive.statusinput.containers.statusInputType',['soyDeps'],function(a){return jive.namespace.call(this,'jive.statusinput.containers'),jive.statusinput.containers.statusInputType=function(a,b){var c=b||new soy.StringBuilder;return c.append('<input type="hidden" name="statusInputType" value="',soy.$$escapeHtmlAttribute(a.type),'"/>'),b?'':c.toString()},jive.statusinput.containers.statusInputType}),define('soy!jive.wall.statusInputErrorWarnBox',['soyDeps','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.wall'),jive.wall.statusInputErrorWarnBox=function(b,c){var d=c||new soy.StringBuilder;return d.append('<span class="j-wall-error" style="display:none"><strong>'),1==a._i18n('7cef8e',[])?jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('ca8383'),arg0:'<span class="j-number-over"></span>',noAutoEscape:!0},d):jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('7cef8e'),arg0:'<span class="j-number-over"></span>',noAutoEscape:!0},d),d.append('</strong></span><span class="j-wall-warn" style="display:none"><strong>'),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('ce1043'),arg0:'<span class="j-number-left"></span>',noAutoEscape:!0},d),d.append('</strong></span><span class="jive-js-error-general j-rc2 j-mb-message" style="display:none" aria-live="polite" aria-atomic="true"><strong>',soy.$$escapeHtml(a._i18n('5a51ab',[])),'</strong></span>'),c?'':d.toString()},jive.wall.statusInputErrorWarnBox}),define('soy!jive.wall.statusInput',['soyDeps','soy!jive.wall.statusInputErrorWarnBox'],function(a){return jive.namespace.call(this,'jive.wall'),jive.wall.statusInput=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div id="statusInputs-',soy.$$escapeHtmlAttribute(b.statusInputIdPostfix),'" class="j-mb-entry"><div class="j-rc4 jive-statusinput-default font-color-meta  jive-statusinput ',b.defaultTxtCSSClasses?b.defaultTxtCSSClasses:'jive-form-element-text',' jive-js-statusinput-default"  contenteditable="true"',b.immediatelyFocus?'style="display:none;ime-mode:auto;"':'',' tabindex="0" role="link"><div class="j-ui-elem triangle"></div>',b.defaultTxt?soy.$$filterNoAutoescape(b.defaultTxt):'',b.default508Txt?'<span class="j-508-label" id="jive-508-label-message-'+soy.$$escapeHtmlAttribute(b.statusInputIdPostfix)+'">'+soy.$$escapeHtml(b.default508Txt)+'</span>':'','</div><div id="message-',soy.$$escapeHtmlAttribute(b.statusInputIdPostfix),'" class="j-rc4 jive-js-statusinput j-textarea ',b.messageCSSClasses?b.messageCSSClasses:'jive-statusinput jive-form-element-text','" contenteditable="true" aria-expanded="false"></div>'),(b.displayImageBtn||b.displayAtMentionBtn||b.displayLinkBtn)&&(d.append('<div id="j-status-input-info" class="j-status-input-info" style="display:none"><div class="j-statusinput-message"><span class="j-js-status-input-characters-remaining j-status-input-chars-left j-rc4"></span>'),jive.wall.statusInputErrorWarnBox(null,d),d.append('</div><span class="j-statusinput-quick-actions">',b.displayLinkBtn?'<a href="javascript:void(0);" class="jive-js-link-button j-wall-meta-link"><span class="j-508-label">'+soy.$$escapeHtml(a._i18n('fa66bb',[]))+'</span><span class="jive-icon-glyph icon-link"></span></a>':'',b.displayImageBtn?'<div tabindex="0" class="jive-js-imgattach-button j-wall-meta-image font-color-link"  data-enabled="'+soy.$$escapeHtmlAttribute(b.displayImageBtn)+'"><label for="imageFile" class="j-508-label">'+soy.$$escapeHtml(a._i18n('a82059',[]))+'</label><span class="jive-icon-glyph icon-image"></span></div>':'',b.displayAtMentionBtn?'<a href="javascript:void(0);" class="jive-js-mention-button j-wall-meta-reference"><span class="j-508-label">'+soy.$$escapeHtml(a._i18n('5c2e1a',[]))+'</span><span class="jive-icon-glyph icon-mention"></span></a>':'','</span></div>')),d.append('</div>'),c?'':d.toString()},jive.wall.statusInput}),define('soy!jive.wall.statusInputNotificationBox',['soyDeps'],function(a){return jive.namespace.call(this,'jive.wall'),jive.wall.statusInputNotificationBox=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="',soy.$$escapeHtmlAttribute(a.cssClass),'" style="display:none" aria-live="polite" aria-atomic="true"></div>'),b?'':c.toString()},jive.wall.statusInputNotificationBox}),define('soy!jive.wall.statusInputNotificationBoxes',['soyDeps','soy!jive.wall.statusInputNotificationBox'],function(a){return jive.namespace.call(this,'jive.wall'),jive.wall.statusInputNotificationBoxes=function(a,b){var c=b||new soy.StringBuilder;return jive.wall.statusInputNotificationBox({cssClass:'jive-info-box'},c),jive.wall.statusInputNotificationBox({cssClass:'jive-warn-box'},c),jive.wall.statusInputNotificationBox({cssClass:'jive-error-box'},c),b?'':c.toString()},jive.wall.statusInputNotificationBoxes}),define('soy!jive.statusinput.containers.microbloggingStatusInput',['soyDeps','soy!jive.shared.displayutil.avatar','soy!jive.statusinput.containers.microbloggingStatusInputLastUpdate','soy!jive.statusinput.containers.renderAttachmentsContainer','soy!jive.statusinput.containers.statusInputActionContainer','soy!jive.statusinput.containers.statusInputActions','soy!jive.statusinput.containers.statusInputType','soy!jive.wall.statusInput','soy!jive.wall.statusInputNotificationBoxes'],function(a){return jive.namespace.call(this,'jive.statusinput.containers'),jive.statusinput.containers.microbloggingStatusInput=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div id="j-js-',soy.$$escapeHtmlAttribute(b.statusID),'" class="j-mb" ',b.maxCharCount?'data-maxcharcount="'+soy.$$escapeHtmlAttribute(b.maxCharCount)+'"':'','>'),jive.wall.statusInputNotificationBoxes(null,d),jive.shared.displayutil.avatar(soy.$$augmentMap(b.user,{id:b.user.id,avatarID:b.user.avatarID,size:46,useLinks:!0,showHover:!0,currentUserPartner:b.user.partner}),d),d.append('<form id="form-',soy.$$escapeHtmlAttribute(b.statusID),'" name="',soy.$$escapeHtmlAttribute(b.statusID),'" class="j-statusinput-form">'),jive.wall.statusInput({statusInputIdPostfix:b.statusID,messageCSSClasses:'j-eae-txt-area',defaultTxt:soy.$$escapeHtml(a._i18n('1fc337',[])),default508Txt:soy.$$escapeHtml(a._i18n('5148cf',[])),immediatelyFocus:b.focusStatusUpdate,displayLinkBtn:b.canCreateMbLinkPreview,displayImageBtn:b.canCreateMbImage,displayAtMentionBtn:b.canAtMention},d),jive.statusinput.containers.renderAttachmentsContainer({removable:!0},d),d.append('<input type="hidden" name="ID" value="',soy.$$escapeHtmlAttribute(b.statusID),'"/>'),jive.statusinput.containers.statusInputType({type:'mb'},d),jive.statusinput.containers.statusInputActions({statusID:b.statusID,i18nSubmitKey:soy.$$escapeHtml(a._i18n('bd781c',[])),i18nCancelKey:soy.$$escapeHtml(a._i18n('0b4c26',[])),publishBarViewBean:b.publishBarViewBean,publishBarIdentifier:b.publishBarIdentifier},d),d.append('</form>'),jive.statusinput.containers.statusInputActionContainer({canCreateImage:b.canCreateMbImage,canCreateVideo:b.canCreateMbVideo},d),b.latestStatusUpdate&&(d.append('<div class="j-mb-last-update font-color-meta" style="',b.latestStatusUpdate.text?'':'display:none','">'),jive.statusinput.containers.microbloggingStatusInputLastUpdate(b,d),d.append('</div>')),d.append('</div>'),c?'':d.toString()},jive.statusinput.containers.microbloggingStatusInput}),define('soy!jive.place.streamContent',['soyDeps','soy!jive.eae.activitystream.activityStreamList','soy!jive.eae.activitystream.streamSpecificFilters','soy!jive.home.activityStreamCreateMenu','soy!jive.shared.soy.resourceInlineJs','soy!jive.statusinput.containers.microbloggingStatusInput'],function(a){return jive.namespace.call(this,'jive.place'),jive.place.streamContent=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-create-container" role="group" aria-label="',soy.$$escapeHtml(a._i18n('86892d',[])),'">'),b.showCreateMenu&&'false'==b.showCreateMenu||jive.home.activityStreamCreateMenu({createMenuData:b.createMenuData,canCreateStatusUpdates:b.canCreateStatusUpdates,location:'pmenu'},d),b.canCreateStatusUpdates&&!b.activityStream.viewingUser.anonymous&&b.publishBarViewBean&&(d.append('<div id="activityHomemoderation-container" style="display:none"><div id="activityHomemoderation-warning" class="jive-content-moderation-box" style="display:none"><span class="jive-icon-med jive-icon-warn"></span>',soy.$$escapeHtml(a._i18n('58f17f',[])),'</div></div><div class="j-main-mb-entry" role="presentation">'),jive.shared.soy.resourceInlineJs({code:'require([\'jquery\', \'domReady!\'], function($j) {require([\'apps/microblogging/status_input_mb_controller\'], function(MBController) {new MBController({publishBarIdentifier: \'activityPlace\', publishBarViewBean: '+soy.$$filterNoAutoescape(JSON.stringify(b.publishBarViewBean).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+'});});});'},d),jive.statusinput.containers.microbloggingStatusInput({statusID:'mb-header-editor',user:b.activityStream.viewingUser,canCreateMbImage:b.activityStream.canCreateMbImage,canCreateMbVideo:b.activityStream.canCreateMbVideo,canCreateMbLinkPreview:b.activityStream.canCreateMbLinkPreview,canAtMention:!b.mobileUI,focusStatusUpdate:!1,publishBarViewBean:b.publishBarViewBean,publishBarIdentifier:'activityPlace'},d),d.append('</div>')),d.append('</div><div id="j-dynamic-pane" class="j-stream">'),jive.eae.activitystream.streamSpecificFilters({streamDisplayName:b.streamDisplayName,streamType:b.streamType,filterData:b.filterData,numUpdatesSinceRefresh:0,streamStatus:b.streamStatus},d),jive.shared.soy.resourceInlineJs({code:'require([ \'apps/activity_stream/activity_stream_controller\', \'domReady!\' ], function(ASController) {new ASController({contextObjectType: '+soy.$$escapeHtml(b.objectType)+', contextObjectID: '+soy.$$escapeHtml(b.objectID)+', streamType: \''+soy.$$escapeHtml(b.streamType)+'\', streamID: \'0\', streamDisplayName: \''+soy.$$escapeHtml(b.streamDisplayName)+'\', rteOptions: {preferredMode:\''+soy.$$escapeHtml(b.preferredMode)+'\', startMode:\''+soy.$$escapeHtml(b.startMode)+'\', mobileUI:'+soy.$$escapeHtml(b.mobileUI)+', isEditing:'+soy.$$escapeHtml(b.isEditing)+', communityName:\''+soy.$$escapeHtml(b.communityName)+'\', hasImagePerms:'+soy.$$escapeHtml(b.hasImagePerms)+'}, canViewStatusUpdates: '+soy.$$escapeHtml(b.canCreateStatusUpdates)+', filterData: '+soy.$$filterNoAutoescape(JSON.stringify(b.filterData).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+', streamStatus: '+soy.$$filterNoAutoescape(JSON.stringify(b.streamStatus).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+', data: '+soy.$$filterNoAutoescape(JSON.stringify(b.activityStream4JS).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+'});});'},d),d.append('<script>require([\'apps/bootstrapper\']);</script><div id="j-js-',soy.$$escapeHtml(b.streamType),'" class="j-act j-act-stream j-stream-list',b.mobileUI?'':' j-not-mobile','"><div id="previewable-binary-viewer"></div><div id="j-stream-item-list"><div class="j-act-pagepoll clearfix" id="j-updates" role="status" style="display:none;"></div>'),jive.eae.activitystream.activityStreamList(b,d),d.append('</div></div></div>'),c?'':d.toString()},jive.place.streamContent}),define('soy!jive.place.renderStreamTiles',['soyDeps','soy!jive.place.customizeStream','soy!jive.place.streamContent'],function(a){return jive.namespace.call(this,'jive.place'),jive.place.renderStreamTiles=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div  class="rebuild j-tile j-stream-tile j-stream-container j-lg-tile" data-stream-data=\'',soy.$$escapeHtmlAttribute(JSON.stringify(null!=a.streamData?a.streamData:'').replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029')),'\'>'),a.customizeNow?jive.place.customizeStream({extStreams:a.template.extstreams,customizeNow:a.customizeNow,draftPlace:a.place?a.place.draft:!1,editPlaceForm:a.editPlaceForm,availableStreamIntegrations:a.availableStreamIntegrations},c):jive.place.streamContent(soy.$$augmentMap(a.streamData,{showCreateMenu:a.showCreateMenu}),c),c.append('</div>'),b?'':c.toString()},jive.place.renderStreamTiles}),define('soy!jive.place.renderActivityPageTiles',['soyDeps','soy!jive.integration.tiles.view.list','soy!jive.place.createStreamContent','soy!jive.place.renderStreamTiles'],function(a){return jive.namespace.call(this,'jive.place'),jive.place.renderActivityPageTiles=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-column-wrap-l j-column-wrap-wide js-column-wrap-wide"><div class="j-column j-column-l lm-margin j-place-column js-overview-hidden js-column" data-column="0" data-activity="true">'),a.customizeNow||jive.place.createStreamContent(a,c),jive.integration.tiles.view.list(soy.$$augmentMap(a,{column:0,instances:a.tileColumn0,maxTiles:a.maxWideTiles,canManage:a.canManageContainer,editing:a.customizeNow,place:a.place,editPage:'edit-place.jspa',templateId:a.template.id,columnWidth:'wide'}),c),a.customizeNow||jive.place.renderStreamTiles(soy.$$augmentMap(a,{showCreateMenu:'false'}),c),c.append('</div></div><div class="j-column-wrap-m j-place-column-wrap"><div class="j-column-m j-column j-place-column js-overview-hidden js-column" data-column="1" data-activity="true">'),jive.integration.tiles.view.list(soy.$$augmentMap(a,{column:1,instances:a.tileColumn1,maxTiles:a.maxNarrowTiles,canManage:a.canManageContainer,editing:a.customizeNow,place:a.place,editPage:'edit-place.jspa',templateId:a.template.id,columnWidth:'narrow'}),c),c.append('</div></div>'),b?'':c.toString()},jive.place.renderActivityPageTiles}),define('soy!jive.announcements.buildIconByType',['soyDeps'],function(a){return jive.namespace.call(this,'jive.announcements'),jive.announcements.buildIconByType=function(b,c){var d=c||new soy.StringBuilder;return d.append(b.announcement.subjectURI&&b.announcement.subjectURITargetType?'message'==b.announcement.subjectURITargetType||'discussion'==b.announcement.subjectURITargetType?'<span title=\''+soy.$$escapeHtmlAttribute(a._i18n('cb9b05',[]))+'\' role=\'img\' class="jive-icon-discussion jive-icon-med"></span>':'document'==b.announcement.subjectURITargetType||'file'==b.announcement.subjectURITargetType?'<span title=\''+soy.$$escapeHtmlAttribute(a._i18n('b67d0f',[]))+'\' role=\'img\' class="jive-icon-document jive-icon-med"></span>':'post'==b.announcement.subjectURITargetType||'blog'==b.announcement.subjectURITargetType?'<span title=\''+soy.$$escapeHtmlAttribute(a._i18n('5f729e',[]))+'\' role=\'img\' class="jive-icon-blog jive-icon-med"></span>':'update'==b.announcement.subjectURITargetType?'<span title=\''+soy.$$escapeHtmlAttribute(a._i18n('68b425',[]))+'\' role=\'img\' class="jive-icon-status jive-icon-med"></span>':'favorite'==b.announcement.subjectURITargetType?'<span title=\''+soy.$$escapeHtmlAttribute(a._i18n('68b425',[]))+'\' role=\'img\' class="jive-icon-med jive-icon-external-site"></span>':'poll'==b.announcement.subjectURITargetType?'<span title=\''+soy.$$escapeHtmlAttribute(a._i18n('205cd1',[]))+'\' role=\'img\' class="jive-icon-poll jive-icon-med"></span>':'task'==b.announcement.subjectURITargetType?'<span title=\''+soy.$$escapeHtmlAttribute(a._i18n('7c71b3',[]))+'\' role=\'img\' class="jive-icon-med jive-icon-task"></span>':'space'==b.announcement.subjectURITargetType||'project'==b.announcement.subjectURITargetType||'group'==b.announcement.subjectURITargetType?'<span title=\''+soy.$$escapeHtmlAttribute(a._i18n('68b425',[]))+'\' role=\'img\' class="jive-icon-'+soy.$$escapeHtmlAttribute(b.announcement.subjectURITargetType)+' jive-icon-med"></span>':b.announcement.subjectURI?'<span title=\''+soy.$$escapeHtmlAttribute(a._i18n('68b425',[]))+'\' role=\'img\' class="jive-icon-med jive-icon-external-site"></span>':'<span title=\''+soy.$$escapeHtmlAttribute(a._i18n('68b425',[]))+'\' role=\'img\' class="jive-icon-med jive-icon-announcement"></span>':'<span title=\''+soy.$$escapeHtmlAttribute(a._i18n('68b425',[]))+'\' role=\'img\' class="jive-icon-med jive-icon-announcement"></span>'),c?'':d.toString()},jive.announcements.buildIconByType}),define('soy!jive.announcements.announcementCard',['soyDeps','soy!jive.announcements.buildIconByType'],function(a){return jive.namespace.call(this,'jive.announcements'),jive.announcements.announcementCard=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-announcement j-rc5 js-announcement" ',b.announcement.resources?'data-ref="'+soy.$$escapeHtmlAttribute(b.announcement.resources.self.ref)+'"':'','><div class="j-announcement-wrapper"><div class=\'j-announcement-header\'><div class="js-announcement-header-content">'),b.announcement.subjectURITargetType?jive.announcements.buildIconByType(b,d):b.announcement.subjectURI?d.append('<span role=\'img\' title=\'',soy.$$escapeHtmlAttribute(a._i18n('77a3be',[])),'\' class="jive-icon-med jive-icon-external-site"></span>'):d.append('<span role=\'img\' title=\'',soy.$$escapeHtmlAttribute(a._i18n('68b425',[])),'\' class="jive-icon-med jive-icon-announcement"></span>'),d.append(b.announcement.subjectURI?'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.announcement.subjectURI))+'" class="js-announcement-subjectURI">':'','<span class="j-508-label">',soy.$$escapeHtml(a._i18n('68b425',[])),'</span>',b.announcement.subjectURI?soy.$$escapeHtml(b.announcement.subject):'<span class="j-announcement-title">'+soy.$$escapeHtml(b.announcement.subject)+'</span>',b.announcement.subjectURI?'</a>':'','</div></div><div class="j-announcement-body ',soy.$$escapeHtmlAttribute(require('jquery')(b.announcement.content.text).text().length<1?'j-announce-image-only':'j-announce-text'),' clearfix">',b.announcement.image&&require('jquery')(b.announcement.content.text).text().length<1?'<div class="j-announcement-image-wrapper"><img src="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,b.announcement.image+'&preserveAspectRatio=true&width=250')))+'" alt="'+soy.$$escapeHtmlAttribute(a._i18n('f128c4',[]))+'" /></div>':(b.announcement.image?'<img src="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,b.announcement.image+'&preserveAspectRatio=true&width=100')))+'" alt="'+soy.$$escapeHtmlAttribute(a._i18n('f128c4',[]))+'" />':'')+soy.$$filterNoAutoescape(b.announcement.content.text),'</div></div><div class="j-announcement-more" style="display:none;"><a href=\'#\'>',soy.$$escapeHtml(a._i18n('aa5555',[])),'</a></div><div class="j-author font-color-meta">',soy.$$escapeHtml(a._i18n('de8b45',[(b.announcement.publishDate?require('jive/model/date').DateUtil.parseISODateTime(b.announcement.publishDate):'')?require('moment').utc(parseFloat(b.announcement.publishDate?require('jive/model/date').DateUtil.parseISODateTime(b.announcement.publishDate):'')?parseFloat(b.announcement.publishDate?require('jive/model/date').DateUtil.parseISODateTime(b.announcement.publishDate):''):b.announcement.publishDate?require('jive/model/date').DateUtil.parseISODateTime(b.announcement.publishDate):'').add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('LL'):''])),'<br/>',soy.$$escapeHtml(a._i18n('f29ac8',[b.announcement.author.displayName?b.announcement.author.displayName:a._i18n('1798fd',[])])),'</div></div>'),c?'':d.toString()},jive.announcements.announcementCard}),define('soy!jive.authentication.sourceForm',['soyDeps'],function(a){return jive.namespace.call(this,'jive.authentication'),jive.authentication.sourceForm=function(a,b){var c=b||new soy.StringBuilder;return c.append('<form action="',soy.$$escapeHtml(a.action),'" method="POST" style="display:none"><input name="username" type="hidden" value="',soy.$$escapeHtml(a.username),'"/><input name="password" type="hidden" value="',soy.$$escapeHtml(a.password),'"/>',a.captcha?'<input name="user_guess" type="hidden" value="'+soy.$$escapeHtml(a.captcha)+'"/>':'',a.rememberMe?'<input name="autoLogin" type="hidden" value="true"/>':'','</form>'),b?'':c.toString()},jive.authentication.sourceForm}),define('soy!jive.browse.user.labelDot',['soyDeps'],function(a){return jive.namespace.call(this,'jive.browse.user'),jive.browse.user.labelDot=function(a,b){var c=b||new soy.StringBuilder;return c.append('<li data-list-id="',soy.$$escapeHtmlAttribute(a.listID),'" class="j-label-dot font-color-meta-light" title="',soy.$$escapeHtmlAttribute(a.name),'"><span class="j-label-dot-icon j-rc7" style="background:#',soy.$$escapeHtmlAttribute(soy.$$filterCssValue(a.css)),';"></span><span class="j-label-dot-name">',soy.$$escapeHtml(a.name),'</span></li>'),b?'':c.toString()},jive.browse.user.labelDot}),define('soy!jive.CommentApp.soy.outcomeAttachment',['soyDeps','soy!jive.outcomes.badge.badgeRaw'],function(a){return jive.namespace.call(this,'jive.CommentApp.soy'),jive.CommentApp.soy.outcomeAttachment=function(b,c){var d=c||new soy.StringBuilder;return d.append('<span>',soy.$$escapeHtml(a._i18n('49bfe0',[])),' '),jive.outcomes.badge.badgeRaw({
tagName:'span',outcomeType:String(b.outcomeType.name).toLowerCase(),embedded:!0},d),d.append('<a href="#" class="j-remove-outcome js-remove-outcome" title="',soy.$$escapeHtml(a._i18n('a6d3a2',[])),'"><span class="jive-icon-sml jive-glyph-remove"></span><span class="j-508-label"></span></a></span>'),c?'':d.toString()},jive.CommentApp.soy.outcomeAttachment}),define('soy!jive.CommentApp.soy.outcomeAttachmentMenu',['soyDeps'],function(a){return jive.namespace.call(this,'jive.CommentApp.soy'),jive.CommentApp.soy.outcomeAttachmentMenu=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-reply-outcome-action-container js-reply-outcome-action-container" style="display: none;"><a href="#" class="font-color-meta js-reply-outcome-button">',soy.$$escapeHtml(a._i18n('2901ef',[])),' <span class="j-ui-elem j-action-down-arrow"></span></a><div class="js-reply-outcome-badge-container" styles="display: none;"></div></div>'),c?'':d.toString()},jive.CommentApp.soy.outcomeAttachmentMenu}),define('soy!jive.CommentApp.soy.renderReply',['soyDeps','soy!jive.CommentApp.soy.outcomeAttachmentMenu','soy!jive.shared.displayutil.avatar','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.CommentApp.soy'),jive.CommentApp.soy.renderReply=function(a,b){a=a||{};var c=b||new soy.StringBuilder;return c.append('<li class="addReply jive-js-addReply" style="display:none;',a.indent?' margin-left:'+soy.$$escapeHtml(a.indent):'','">'),jive.shared.displayutil.avatar({anonymous:_jive_current_user.anonymous,enabled:_jive_current_user.enabled,partner:_jive_current_user.partner,username:_jive_current_user.username,id:_jive_current_user.id,ID:_jive_current_user.ID,displayName:_jive_current_user.displayName,visible:!0,prop:_jive_current_user.prop,avatarID:_jive_current_user.avatarID,currentUserPartner:_jive_current_user.partner,size:32},c),c.append('<div class="jive-comment-arrow"></div><div class="jive-comment-content jive-create-comment"><p class="jive-comment-meta font-color-meta-light"><strong style="" class="font-color-meta replyTo">'),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('7eb89a'),arg0:'<span class="replyToName">'+soy.$$escapeHtml(a.username)+'</span>',noAutoEscape:!0},c),c.append('<img src="',soy.$$escapeHtml(jive.soy.func.resourceUrl('/images/inline-reply-arrow.png')),'" alt=""/></strong>',a.i18n&&a.isDiscussion?'<a class="font-color-meta advEditor" href="javascript:void(0);">'+soy.$$escapeHtml(a.i18n.advEditor)+'</a>':'','</p>'),'comments'==a.commentMode&&jive.CommentApp.soy.outcomeAttachmentMenu(null,c),c.append('<div ',a.commentID?'id="comment-body-'+soy.$$escapeHtml(a.commentID)+'"':'',' class="jive-comment-body"><div class="jive-rendered-content"><p><div ',a.commentID?'id="jive-content-post-'+soy.$$escapeHtml(a.commentID)+'"':'',' class="jive-comment-post"></div></p></div></div></div></li>'),b?'':c.toString()},jive.CommentApp.soy.renderReply}),define('soy!jive.content.draftDeleteButtonLabel',['soyDeps','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.content'),jive.content.draftDeleteButtonLabel=function(a,b){var c=b||new soy.StringBuilder;return c.append('<span aria-hidden="true" class="j-508-label" id="draft-delete-label-',soy.$$escapeHtml(a.id),'">'),jive.shared.soy.i18nHelper({i18nKey:a.subject?soy.$$escapeHtml('1c27d6'):soy.$$escapeHtml('761c07'),arg0:soy.$$escapeHtml(a.modificationDate?require('moment').utc(parseFloat(a.modificationDate)?parseFloat(a.modificationDate):a.modificationDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('ll'):''),arg1:soy.$$escapeHtml(function(a,b){var c,d;if('string'!=typeof a)return'';if(c=a.split(''),c.length>b){for(d=c.length-1;d>-1;--d)if(d>b)c.length=d;else if(' '===c[d]){c.length=d;break}c.push('...')}return c.join('')}(a.subject,70))},c),c.append('</span>'),b?'':c.toString()},jive.content.draftDeleteButtonLabel}),define('soy!jive.content.draftRecoverButtonLabel',['soyDeps','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.content'),jive.content.draftRecoverButtonLabel=function(a,b){var c=b||new soy.StringBuilder;return c.append('<span aria-hidden="true" class="j-508-label" id="draft-recover-label-',soy.$$escapeHtml(a.id),'">'),jive.shared.soy.i18nHelper({i18nKey:a.subject?soy.$$escapeHtml('341b91'):soy.$$escapeHtml('88a2f9'),arg0:soy.$$escapeHtml(a.modificationDate?require('moment').utc(parseFloat(a.modificationDate)?parseFloat(a.modificationDate):a.modificationDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('ll'):''),arg1:soy.$$escapeHtml(function(a,b){var c,d;if('string'!=typeof a)return'';if(c=a.split(''),c.length>b){for(d=c.length-1;d>-1;--d)if(d>b)c.length=d;else if(' '===c[d]){c.length=d;break}c.push('...')}return c.join('')}(a.subject,70))},c),c.append('</span>'),b?'':c.toString()},jive.content.draftRecoverButtonLabel}),define('soy!jive.content.draft',['soyDeps','soy!jive.content.draftDeleteButtonLabel','soy!jive.content.draftRecoverButtonLabel'],function(a){return jive.namespace.call(this,'jive.content'),jive.content.draft=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="jive-draft" id="draft-',soy.$$escapeHtml(b.id),'"><dl><dt>',soy.$$escapeHtml(a._i18n('8128d4',[])),'</dt><dd>',soy.$$escapeHtml((b.modificationDate?require('jive/model/date').DateUtil.parseISODateTime(b.modificationDate):'')?require('moment').utc(parseFloat(b.modificationDate?require('jive/model/date').DateUtil.parseISODateTime(b.modificationDate):'')?parseFloat(b.modificationDate?require('jive/model/date').DateUtil.parseISODateTime(b.modificationDate):''):b.modificationDate?require('jive/model/date').DateUtil.parseISODateTime(b.modificationDate):'').add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('ll'):''),'</dd>',b.subject?'<dt>'+soy.$$escapeHtml(a._i18n('dbbcdf',[]))+'</dt><dd>'+soy.$$escapeHtml(function(a,b){var c,d;if('string'!=typeof a)return'';if(c=a.split(''),c.length>b){for(d=c.length-1;d>-1;--d)if(d>b)c.length=d;else if(' '===c[d]){c.length=d;break}c.push('...')}return c.join('')}(b.subject,70))+'</dd>':'','</dl><button id="draft-recover-button-',soy.$$escapeHtml(b.id),'" class="jive-description use-draft" aria-labelledby="draft-recover-label-',soy.$$escapeHtml(b.id),'" role="button">',soy.$$escapeHtml(a._i18n('e160c1',[])),'</button>'),jive.content.draftRecoverButtonLabel(b,d),d.append('<button id="draft-delete-button-',soy.$$escapeHtml(b.id),'" class="jive-description destroy-draft" aria-labelledby="draft-delete-label-',soy.$$escapeHtml(b.id),'" role="button">',soy.$$escapeHtml(a._i18n('66b234',[])),'</button>'),jive.content.draftDeleteButtonLabel(b,d),d.append('</div>'),c?'':d.toString()},jive.content.draft}),define('soy!jive.content.draftlastsaved',['soyDeps'],function(a){return jive.namespace.call(this,'jive.content'),jive.content.draftlastsaved=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="last-saved">',soy.$$escapeHtml(a._i18n('8c9c6d',[b.date?require('moment').utc(parseFloat(b.date)?parseFloat(b.date):b.date).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('LT'):''])),'</div>'),c?'':d.toString()},jive.content.draftlastsaved}),define('soy!jive.content.drafts',['soyDeps','soy!jive.content.draft'],function(a){return jive.namespace.call(this,'jive.content'),jive.content.drafts=function(b,c){var d=c||new soy.StringBuilder;d.append('<div id="autosave-prompt" class="jive-warn-box" role="alert" aria-live="polite" aria-atomic="true" tabindex="0"><div><p><span class="jive-icon-med jive-icon-warn"></span>',soy.$$escapeHtml(a._i18n('4b1fd8',[])),'</p>');for(var e=b.drafts,f=e.length,g=0;f>g;g++){var h=e[g];jive.content.draft(h,d)}return d.append('</div></div>'),c?'':d.toString()},jive.content.drafts}),define('soy!jive.content.progressbar',['soyDeps'],function(a){return jive.namespace.call(this,'jive.content'),jive.content.progressbar=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div id="progressBar"><div><div id="progressBarText"></div><div id="progressBarBox"><div id="progressBarBoxContent"></div></div></div></div>'),b?'':c.toString()},jive.content.progressbar}),define('soy!jive.DiscussionApp.soy.replyErrorMessage',['soyDeps','soy!jive.CommentApp.soy.outcomeAttachmentMenu'],function(a){return jive.namespace.call(this,'jive.DiscussionApp.soy'),jive.DiscussionApp.soy.renderReply=function(b,c){var d=c||new soy.StringBuilder;return d.append('<li class="addReply jive-js-addReply" style="display:none"><div msgID="',soy.$$escapeHtml(b.messageID),'" class="jive-thread-reply-indent0 jive-reply-add-inline"><div class="jive-thread-reply-indent-shadow"><div class="jive-thread-reply jive-thread-reply-self clearfix"><div class="jive-thread-reply-inline">',b.moderated?'<div id="jive-moderation-box" class="jive-content-moderation-box"><span class="jive-icon-med jive-icon-warn"></span>'+soy.$$escapeHtml(a._i18n('58f17f',[]))+'</div>':'','<strong class="font-color-meta">',soy.$$escapeHtml(b.i18n.forumThrdReplyTo),' <span class="replyToName">',soy.$$escapeHtml(b.userName),'</span> <img src="',soy.$$escapeHtml(jive.soy.func.resourceUrl('/images/inline-reply-arrow.png')),'" alt=""></strong>',('true'==b.externallyVisible,""),b.anonymous?'<div class="jive-comment-post-anonymous"><div><input id="reply-author" name="replyGuestName" type="text" required aria-required="true"><label for="reply-author">'+soy.$$escapeHtml(a._i18n('d24d93',[]))+'<span class="font-color-meta-light">'+soy.$$escapeHtml(a._i18n('4881b3',[]))+'</span></label></div><div><input id="comment-email" name="replyGuestEmail" type="email" required aria-required="true"><label for="comment-email">'+soy.$$escapeHtml(a._i18n('b829ed',[]))+'<span class="font-color-meta-light">'+soy.$$escapeHtml(a._i18n('03799a',[]))+'</span></label></div></div>':'','<a class="font-color-meta advEditor" href="javascript:void(0);">',soy.$$escapeHtml(b.i18n.advEditor),'</a>'),jive.CommentApp.soy.outcomeAttachmentMenu(null,d),d.append('<p class="jive-discussion-post"></p></div></div></div></div></li>'),c?'':d.toString()},jive.DiscussionApp.soy.replyErrorMessage=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n(b.key,[]))),c?'':d.toString()},jive.DiscussionApp.soy.replyErrorMessage}),define('soy!jive.DiscussionApp.soy.rteMsgQuote',['soyDeps','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.DiscussionApp.soy'),jive.DiscussionApp.soy.rteMsgQuote=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="jive-rendered-content"><blockquote class="jive-quote"><span class="jive-quote-header">'),b.isAnonymous?d.append(soy.$$escapeHtml(a._i18n('bb2319',[]))):(d.append('<span>'),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('5c3bce'),arg0:'<a href="'+soy.$$escapeHtml(b.author.resources.html.ref)+'" data-object-id="'+soy.$$escapeHtml(b.author.id)+'" data-object-type="'+soy.$$escapeHtml(b.author.type)+'"></a>',noAutoEscape:'true'},d),d.append('</span>')),d.append('</span><br/><br/>',soy.$$filterNoAutoescape(b.msgBody),'</blockquote></div>'),c?'':d.toString()},jive.DiscussionApp.soy.rteMsgQuote}),define('soy!jive.discussions.soy.qCorrectAnswer',['soyDeps'],function(a){return jive.namespace.call(this,'jive.discussions.soy'),jive.discussions.soy.qCorrectAnswer=function(b,c){var d=c||new soy.StringBuilder;return d.append('<span class="thisCorrect" style=""><span class="jive-icon-med jive-icon-discussion-okay"></span><span class="jive-thread-reply-message-correct-label font-color-okay">',soy.$$escapeHtml(a._i18n(b.i18n.correctAnswer,[])),'</span></span>'),c?'':d.toString()},jive.discussions.soy.qCorrectAnswer}),define('soy!jive.discussions.soy.qDisplayInlineCorrectAnswer',['soyDeps','soy!jive.outcomes.helpful.displayHelpfulCounts','soy!jive.shared.displayutil.avatar','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.displayutil.userRoleBadgeImage'],function(a){return jive.namespace.call(this,'jive.discussions.soy'),jive.discussions.soy.qDisplayInlineCorrectAnswer=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-inline-correct-answer" class="j-rc3"><header class="j-author-block"><span class="j-avatar-container">'),jive.shared.displayutil.avatar(soy.$$augmentMap(b.question.correctAnswer.user,{size:32}),d),d.append('</span><div class="j-author-info"><strong class="font-color-okay j-line1">',soy.$$escapeHtml(a._i18n(b.i18n.correctAnswer,[])),' </strong><span class="font-color-meta j-line2">',soy.$$escapeHtml(a._i18n(b.i18n.byWord,[])),' '),jive.shared.displayutil.userDisplayNameLink(b.question.correctAnswer.user,d),b.question.correctAnswer.user.prop&&b.question.correctAnswer.user.prop.roleBadgeInfo&&(d.append(' '),jive.shared.displayutil.userRoleBadgeImage(b.question.correctAnswer.user.prop.roleBadgeInfo,d)),d.append(' ',soy.$$escapeHtml(a._i18n(b.i18n.onWord,[])),' ',soy.$$escapeHtml(b.question.correctAnswer.modificationDate),'</span></div></header><section>',soy.$$filterNoAutoescape(b.question.correctAnswerHtml),'</section><footer>'),jive.outcomes.helpful.displayHelpfulCounts({objectType:b.question.correctAnswer.objectType,objectId:b.question.correctAnswer.ID,helpfulCount:b.question.correctAnswer.helpfulCount,overallCount:b.question.correctAnswer.helpfulCount+b.question.correctAnswer.unhelpfulCount,displayOverall:b.question.correctAnswer.unhelpfulEnabled},d),d.append('<strong><a href="',b.question.correctAnswer.useFullURL?soy.$$escapeHtml(b.question.correctAnswer.url):'#'+soy.$$escapeHtml(b.question.correctAnswer.ID),'" class="jive-inline-correct-answer-context-link ',b.question.correctAnswer.useFullURL?'':'localScroll','"><span class="jive-icon-sml jive-icon-arrow-generic-down"></span>',soy.$$escapeHtml(a._i18n(b.i18n.seeAnswerInContext,[])),'</a></strong></footer></div>'),c?'':d.toString()},jive.discussions.soy.qDisplayInlineCorrectAnswer}),define('soy!jive.discussions.soy.qDisplayInlineAnswers',['soyDeps','soy!jive.discussions.soy.qDisplayInlineCorrectAnswer'],function(a){return jive.namespace.call(this,'jive.discussions.soy'),jive.discussions.soy.qDisplayInlineAnswers=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-answer-rollup"><!-- Embedded Correct Answer -->'),a.question.questionState==a.questionStateEnum.resolved&&a.question.correctAnswer&&jive.discussions.soy.qDisplayInlineCorrectAnswer(a,c),c.append('</div>'),b?'':c.toString()},jive.discussions.soy.qDisplayInlineAnswers}),define('soy!jive.discussions.soy.qQuestionAssumedAnswered',['soyDeps'],function(a){return jive.namespace.call(this,'jive.discussions.soy'),jive.discussions.soy.qQuestionAssumedAnswered=function(b,c){var d=c||new soy.StringBuilder;return d.append('<p class="jive-answer-type jive-answer-type-assumedanswered font-color-meta" style="">',soy.$$escapeHtml(a._i18n(b.i18n.questionAssumedAnswered,[new soydata.VERY_UNSAFE.ordainSanitizedHtml('<strong>'),new soydata.VERY_UNSAFE.ordainSanitizedHtml('</strong>')])),'</p>'),c?'':d.toString()},jive.discussions.soy.qQuestionAssumedAnswered}),define('soy!jive.discussions.soy.qQuestionNotAnswered',['soyDeps'],function(a){return jive.namespace.call(this,'jive.discussions.soy'),jive.discussions.soy.qQuestionNotAnswered=function(b,c){var d=c||new soy.StringBuilder;return d.append('<p class="jive-answer-type jive-answer-type-notanswered font-color-meta" style="">',soy.$$escapeHtml(a._i18n(b.i18n.questionNotAnswered,[new soydata.VERY_UNSAFE.ordainSanitizedHtml('<strong class="font-color-danger">'),new soydata.VERY_UNSAFE.ordainSanitizedHtml('</strong>')])),b.question.displayMarkAsAssumedAnswered?soy.$$escapeHtml(a._i18n(b.i18n.markQuestionAsAssumedAnswered,[new soydata.VERY_UNSAFE.ordainSanitizedHtml('<em style=""><a href="#">'),b.i18n.leftParen,b.i18n.rightParen,new soydata.VERY_UNSAFE.ordainSanitizedHtml('</a></em>')])):'','</p>'),c?'':d.toString()},jive.discussions.soy.qQuestionNotAnswered}),define('soy!jive.discussions.soy.qQuestionResolved',['soyDeps'],function(a){return jive.namespace.call(this,'jive.discussions.soy'),jive.discussions.soy.qQuestionResolved=function(b,c){var d=c||new soy.StringBuilder;return d.append('<p class="jive-answer-type jive-answer-type-answered font-color-meta" style="">',soy.$$escapeHtml(a._i18n(b.i18n.questionAnswered,[new soydata.VERY_UNSAFE.ordainSanitizedHtml('<strong class="font-color-okay">'),new soydata.VERY_UNSAFE.ordainSanitizedHtml('</strong>')])),'</p>'),c?'':d.toString()},jive.discussions.soy.qQuestionResolved}),define('soy!jive.discussions.soy.qDisplayQuestionStateMessage',['soyDeps','soy!jive.discussions.soy.qQuestionAssumedAnswered','soy!jive.discussions.soy.qQuestionNotAnswered','soy!jive.discussions.soy.qQuestionResolved'],function(a){return jive.namespace.call(this,'jive.discussions.soy'),jive.discussions.soy.qDisplayQuestionStateMessage=function(a,b){var c=b||new soy.StringBuilder;return a.question.questionState==a.questionStateEnum.open?jive.discussions.soy.qQuestionNotAnswered(a,c):a.question.questionState==a.questionStateEnum.assumed_resolved?jive.discussions.soy.qQuestionAssumedAnswered(a,c):a.question.questionState==a.questionStateEnum.resolved&&jive.discussions.soy.qQuestionResolved(a,c),b?'':c.toString()},jive.discussions.soy.qDisplayQuestionStateMessage}),define('soy!jive.discussions.soy.qMarkAsCorrect',['soyDeps'],function(a){return jive.namespace.call(this,'jive.discussions.soy'),jive.discussions.soy.qMarkAsCorrect=function(b,c){var d=c||new soy.StringBuilder;return d.append(b.question.correctScenarioEnabled?'<div class="jive-thread-reply-btn-correct"><a href="#"><span class="j-correct-btn-star j-ui-elem"></span>'+soy.$$escapeHtml(a._i18n(b.i18n.correctAnswer,[]))+'</a></div>':''),c?'':d.toString()},jive.discussions.soy.qMarkAsCorrect}),define('soy!jive.discussions.soy.qUnmarkAsCorrect',['soyDeps'],function(a){return jive.namespace.call(this,'jive.discussions.soy'),jive.discussions.soy.qUnmarkAsCorrect=function(b,c){var d=c||new soy.StringBuilder;return d.append('<!-- Unmark as correct --><div class="jive-thread-reply-btn-correct-unmark jive-reply-unmark',b.question.bridged?'-bridged':'','" style="display: inline-block;"><a href="#" class="font-color-normal">',soy.$$escapeHtml(a._i18n(b.i18n.unmarkAsCorrectAnswer,[])),'</a></div>'),c?'':d.toString()},jive.discussions.soy.qUnmarkAsCorrect}),define('soy!jive.autosearch.contentItemDetail',['soyDeps','soy!jive.shared.displayutil.icon'],function(a){return jive.namespace.call(this,'jive.autosearch'),jive.autosearch.contentItemDetail=function(b,c){var d=c||new soy.StringBuilder;return jive.shared.displayutil.icon(soy.$$augmentMap(b.item,{size:'med'}),d),d.append(b.item.subject?'<span class="result-title lnk">'+soy.$$escapeHtml(b.item.subject).replace(/&amp;#160;/g,'&#160;').replace(/&amp;#nbsp;/g,'&#160;').replace(/&amp;/g,'&')+'</span><span class="j-508-label">'+soy.$$escapeHtml(a._i18n('bfe541',[a._i18n(a.getMinKey('global.access.content.type.'+b.item.type),[])]))+'</span>':b.item.parentContent&&b.item.parentContent.name?'<span class="result-title lnk">'+soy.$$escapeHtml(b.item.parentContent.name)+'</span><span class="j-508-label">'+soy.$$escapeHtml(a._i18n('bfe541',[a._i18n(a.getMinKey('global.access.content.type.'+b.item.parentContent.type),[])]))+'</span>':'',b.item.author?' <em class="font-color-normal">'+soy.$$escapeHtml(a._i18n('b3ee99',[b.item.author.displayName,b.item.updatedDate?require('moment').utc(parseFloat(b.item.updatedDate)?parseFloat(b.item.updatedDate):b.item.updatedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('ll'):'']))+'</em>':'',b.item.displayExternalAccess?'<span class="j-browse-external-access"><em>'+soy.$$escapeHtml(a._i18n('fa6162',[]))+'</em></span>':''),c?'':d.toString()},jive.autosearch.contentItemDetail}),define('soy!jive.autosearch.contentItem',['soyDeps','soy!jive.autosearch.contentItemDetail'],function(a){return jive.namespace.call(this,'jive.autosearch'),jive.autosearch.contentItem=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<a class="j-result-bookmark ',b.item.promotedResult?'j-search-promoted-result-container':'','"'),b.item.resources&&b.item.resources.html)if(b.item.uuid&&b.item.index)if((b.item.resources.html.ref.match(new RegExp('#',''))||[]).length>0){var e=b.item.resources.html.ref.split(new RegExp('#',''));d.append('href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(e[0])),'?sr=search&searchId=',soy.$$escapeUri(b.item.uuid),'&searchIndex=',soy.$$escapeUri(b.item.index),e.length>1?'#'+soy.$$escapeHtmlAttribute(e[1]):'','">')}else d.append('href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.item.resources.html.ref)),'?sr=search&searchId=',soy.$$escapeUri(b.item.uuid),'&searchIndex=',soy.$$escapeUri(b.item.index),'">');else d.append('href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.item.resources.html.ref)),'">');else d.append('>');return d.append(b.item.promotedResult?'<span class="j-search-promoted-result-label">'+soy.$$escapeHtml(a._i18n('26afd0',[]))+'</span>':''),'favorite'==b.item.type?(d.append('<span data-id="',soy.$$escapeHtmlAttribute(b.item.id),'" class="j-remove-mark jive-icon-glyph icon-bookmark" data-component="button" data-command="remove"></span>'),'url'==b.item.favoriteObject.type?jive.autosearch.contentItemDetail(b,d):jive.autosearch.contentItemDetail({item:b.item.favoriteObject},d)):jive.autosearch.contentItemDetail(b,d),d.append('</a>'),c?'':d.toString()},jive.autosearch.contentItem}),define('soy!jive.autosearch.peopleItem',['soyDeps','soy!jive.shared.displayutil.avatar'],function(a){return jive.namespace.call(this,'jive.autosearch'),jive.autosearch.peopleItem=function(b,c){var d=c||new soy.StringBuilder;return d.append('<a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.item.resources.html.ref)),'">'),jive.shared.displayutil.avatar({enabled:!0,username:b.item.jive.username,id:b.item.id,displayName:b.item.displayName,visible:!0,prop:null,avatarID:b.item.thumbnailId,size:24,hideTooltip:!0,hideLink:!0},d),d.append('<span class="result-meta"><span class="result-availability font-color-meta j-alert-hide">',b.item.availability?soy.$$escapeHtml(b.item.availability):'','</span>',!b.giveBadgeRteEnabled||_jive_current_user.ID==b.item.id||_jive_current_user.partner||b.item.jive.externalContributor?'':'<span class="j-result-give-badge font-color-link">'+soy.$$escapeHtml(a._i18n('0a68df',[]))+'<span class="j-result-give-badge-right-arrow"></span></span>','</span>',b.item.mentionName?'<span class="result-title lnk"> '+soy.$$escapeHtml(b.item.mentionName)+'</span>':'<span class="result-title lnk">'+soy.$$escapeHtml(b.item.displayName)+'</span>','<span class="j-508-label">',soy.$$escapeHtml(a._i18n('9a2e9c',[])),'</span><span class="j-alert-hide">',b.item.title||b.item.department?' <em class="font-color-normal">'+(b.item.title&&b.item.department?soy.$$escapeHtml(a._i18n('2262fa',[b.item.title,b.item.department])):b.item.title?soy.$$escapeHtml(b.item.title):b.item.department?soy.$$escapeHtml(b.item.department):'')+'</em>':'','</span>',b.item.displayExternalContributor?'<span class="font-color-meta-light j-browse-external-access"><em>'+soy.$$escapeHtml(a._i18n('5e421a',[]))+'</em></span>':'','</a>'),c?'':d.toString()},jive.autosearch.peopleItem}),define('soy!jive.autosearch.placeItem',['soyDeps'],function(a){return jive.namespace.call(this,'jive.autosearch'),jive.autosearch.placeItem=function(b,c){var d=c||new soy.StringBuilder;if(b.item.resources&&b.item.resources.html){if(b.item.uuid&&b.item.index)if((b.item.resources.html.ref.match(new RegExp('#',''))||[]).length>0){var e=b.item.resources.html.ref.split(new RegExp('#',''));d.append('<a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(e[0])),'?sr=search&searchId=',soy.$$escapeUri(b.item.uuid),'&searchIndex=',soy.$$escapeUri(b.item.index),e.length>1?'#'+soy.$$escapeHtmlAttribute(e[1]):'','">')}else d.append('<a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.item.resources.html.ref)),'?sr=search&searchId=',soy.$$escapeUri(b.item.uuid),'&searchIndex=',soy.$$escapeUri(b.item.index),'">');else d.append('<a href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.item.resources.html.ref)),'">');d.append('page'==b.item.type&&b.item.parentPlace?'<span class="jive-icon-med jive-icon-'+soy.$$escapeHtmlAttribute(b.item.parentPlace.type)+'"></span><span class="result-title lnk">'+soy.$$escapeHtml(b.item.parentPlace.name)+'&nbsp;-&nbsp;'+soy.$$escapeHtml(b.item.name)+'</span>':'<span class="jive-icon-med jive-icon-'+soy.$$escapeHtmlAttribute(b.item.type)+'"></span><span class="result-title lnk">'+soy.$$escapeHtml(b.item.name)+'</span>','<span class="j-508-label">',soy.$$escapeHtml(a._i18n('bfe541',[a._i18n(a.getMinKey('global.'+b.item.type),[])])),'</span>',b.item.displayExternalAccess?'<span class="font-color-meta-light j-browse-external-access"><em>'+soy.$$escapeHtml(a._i18n('fa6162',[]))+'</em></span>':'','</a>')}return c?'':d.toString()},jive.autosearch.placeItem}),define('soy!jive.autosearch.resultList',['soyDeps','soy!jive.autosearch.contentItem','soy!jive.autosearch.peopleItem','soy!jive.autosearch.placeItem'],function(a){return jive.namespace.call(this,'jive.autosearch'),jive.autosearch.resultList=function(a,b){for(var c=b||new soy.StringBuilder,d=a.list,e=d.length,f=0;e>f;f++){var g=d[f];switch(c.append('<li data-component="listitem" class="j-listitem ',a.max&&f>=a.max?'j-inactive':'',' ','people'==a.type?'j-listitem-people':'','" role="option" data-type="',soy.$$escapeHtmlAttribute(g.type),'" data-id="',soy.$$escapeHtmlAttribute(g.id),'">'),a.type){case'content':jive.autosearch.contentItem({item:g},c);break;case'people':jive.autosearch.peopleItem({item:g,giveBadgeRteEnabled:a.giveBadgeRteEnabled},c);break;case'places':jive.autosearch.placeItem({item:g},c)}c.append('</li>')}return b?'':c.toString()},jive.autosearch.resultList}),define('soy!jive.autosearch.showMoreAccessibleLabel',['soyDeps'],function(a){return jive.namespace.call(this,'jive.autosearch'),jive.autosearch.showMoreAccessibleLabel=function(b,c){var d=c||new soy.StringBuilder;return d.append('<span class="j-508-label lnk" id="',soy.$$escapeHtmlAttribute(b.type),'-show-more-label">','places'==b.type?1==b.numMoreResults?soy.$$escapeHtml(a._i18n('6f9efb',[b.numMoreResults])):soy.$$escapeHtml(a._i18n('42c3cd',[b.numMoreResults])):'people'==b.type?1==b.numMoreResults?soy.$$escapeHtml(a._i18n('e83bbe',[b.numMoreResults])):soy.$$escapeHtml(a._i18n('8ef7d4',[b.numMoreResults])):1==b.numMoreResults?soy.$$escapeHtml(a._i18n('fd8859',[b.numMoreResults])):soy.$$escapeHtml(a._i18n('8f992b',[b.numMoreResults])),'</span>'),c?'':d.toString()},jive.autosearch.showMoreAccessibleLabel}),define('soy!jive.autosearch.resultSection',['soyDeps','soy!jive.autosearch.resultList','soy!jive.autosearch.showMoreAccessibleLabel'],function(a){return jive.namespace.call(this,'jive.autosearch'),jive.autosearch.resultSection=function(b,c){var d=c||new soy.StringBuilder;return d.append('<ul aria-labelledby="header_',soy.$$escapeHtmlAttribute(b.type),'" role="listbox" class="','people'==b.type?'j-avatar-list ':'','j-icon-list">'),jive.autosearch.resultList(b,d),d.append('bookmarks'==b.view?'<li class="j-listitem moreResults font-color-meta" data-component="listitem" role="option"><a class="more all noIcon" href="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,'/bookmarks'))+'"><span class="lnk">'+soy.$$escapeHtml(a._i18n('756290',[]))+'</span><span class="jive-icon-glyph icon-arrow-right2 inlineIcon"></span></a></li>':'all'==b.view||'filtered'==b.view?'<li class="j-listitem moreResults'+(b.max&&b.list.length>b.max?' j-inactive':'')+' font-color-meta" data-component="listitem" role="option"><a class="more all noIcon" href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/search.jspa')))+'?q='+soy.$$escapeUri(b.searchTerm)+'&facet='+soy.$$escapeUri(b.type)+('filtered'==b.view?'&'+soy.$$escapeUri(b.filterType)+'='+soy.$$escapeUri(b.filter)+(b.additionalFilters?'&'+soy.$$filterNoAutoescape(b.additionalFilters):''):'')+'" ><span class="lnk">'+('places'==b.type?soy.$$escapeHtml(a._i18n('f49366',[]))+(b.filterDisplayName?soy.$$escapeHtml(a._i18n('280ace',[b.filterDisplayName])):''):soy.$$escapeHtml(a._i18n(a.getMinKey('search.results.all.'+b.type+'.link'),[]))+(b.filterDisplayName?soy.$$escapeHtml(a._i18n('280ace',[b.filterDisplayName])):''))+'</span><span class="jive-icon-glyph icon-arrow-right2 inlineIcon"></span></a></li>':'recent'==b.view?'<li class="j-listitem moreResults'+(b.max&&b.list.length>b.max?' j-inactive':'')+' font-color-meta" data-component="listitem" role="option"><a class="more all noIcon" href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,'/'+b.type)))+'?filterID=historyarchetype%5B'+('places'==b.type?'containers':soy.$$escapeUri(b.type))+'%5D" ><span class="lnk">'+('places'==b.type?soy.$$escapeHtml(a._i18n('f5ef28',[])):soy.$$escapeHtml(a._i18n(a.getMinKey('search.history.recent.'+b.type+'.link'),[])))+'</span><span class="jive-icon-glyph icon-arrow-right2 inlineIcon"></span></a></li>':''),'bookmarks'!=b.view&&b.max&&b.list.length>b.max&&(d.append('<li class="j-listitem moreResults font-color-meta" data-component="listitem" role="option"><a href="#" class="more noIcon" data-component="button" data-command="more"><span role="presentation" aria-hidden="true" class="lnk">',soy.$$escapeHtml(a._i18n('79c9d7',[b.list.length-b.max])),'</span><span role="img" class="jive-icon-glyph icon-arrow-down2 inlineIcon" aria-hidden="true"></span>'),jive.autosearch.showMoreAccessibleLabel({type:b.type,numMoreResults:b.list.length-b.max},d),d.append('</a></li>')),d.append('</ul>'),c?'':d.toString()},jive.autosearch.resultSection}),define('soy!jive.error.form.actionMessageList',['soyDeps'],function(a){return jive.namespace.call(this,'jive.error.form'),jive.error.form.actionMessageList=function(a,b){for(var c=b||new soy.StringBuilder,d=a.actionMessages,e=d.length,f=0;e>f;f++){var g=d[f];c.append(g.message?soy.$$escapeHtml(g.message):'')}return b?'':c.toString()},jive.error.form.actionMessageList}),define('soy!jive.error.form.actionErrors',['soyDeps','soy!jive.error.form.actionMessageList'],function(a){return jive.namespace.call(this,'jive.error.form'),jive.error.form.actionErrors=function(b,c){var d=c||new soy.StringBuilder;if(b.fieldErrors&&b.fieldErrors.length>0)d.append('<div id="jive-error-box" class="jive-error-box" role="alert" aria-live="assertive" aria-atomic="true" aria-relevant="additions text" tabindex="-1"><div><span class="jive-icon-med jive-icon-redalert"></span>',soy.$$escapeHtml(a._i18n('0dac4e',[])),'</div></div>');else if(b.actionErrors&&b.actionErrors.length>0){d.append('<div id="jive-error-box" class="jive-error-box" role="alert" aria-live="assertive" aria-atomic="true" aria-relevant="additions text" tabindex="-1"><div><span class="jive-icon-med jive-icon-redalert"></span>',b.actionErrors.length>1?'<ul>':'');for(var e=b.actionErrors,f=e.length,g=0;f>g;g++){var h=e[g];d.append(b.actionErrors.length>1?'<li>':'',h.message?soy.$$filterNoAutoescape(h.message):'',b.actionErrors.length>1?'</li>':'')}d.append(b.actionErrors.length>1?'</ul>':'','</div></div>')}else b.actionMessages&&b.actionMessages.length>0&&(d.append('<div id="jive-success-box" class="jive-success-box" role="status" aria-live="polite" aria-atomic="true" aria-relevant="additions text" tabindex="-1"><div><span class="jive-icon-med jive-icon-check"></span>'),jive.error.form.actionMessageList(b,d),d.append('</div></div>'));return c?'':d.toString()},jive.error.form.actionErrors}),define('soy!jive.i18n.keys.appsadminConfirmationWarningMessage',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.appsadminConfirmationWarningMessage=function(b,c){var d=c||new soy.StringBuilder;
return d.append(soy.$$escapeHtml(a._i18n('e36ed1',[]))),c?'':d.toString()},jive.i18n.keys.appsadminConfirmationWarningMessage}),define('soy!jive.i18n.keys.attachErrBadContentTypeText',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.attachErrBadContentTypeText=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('d76227',[]))),c?'':d.toString()},jive.i18n.keys.attachErrBadContentTypeText}),define('soy!jive.i18n.keys.attachErrFileTooLargeText',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.attachErrFileTooLargeText=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('e81f14',[]))),c?'':d.toString()},jive.i18n.keys.attachErrFileTooLargeText}),define('soy!jive.i18n.keys.attachErrTooManyAttchmtsText',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.attachErrTooManyAttchmtsText=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('8cf9f2',[]))),c?'':d.toString()},jive.i18n.keys.attachErrTooManyAttchmtsText}),define('soy!jive.i18n.keys.attachErrUploadErrorsText',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.attachErrUploadErrorsText=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('4e3433',[]))),c?'':d.toString()},jive.i18n.keys.attachErrUploadErrorsText}),define('soy!jive.i18n.keys.cmntNameRequiredText',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.cmntNameRequiredText=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('67e622',[]))),c?'':d.toString()},jive.i18n.keys.cmntNameRequiredText}),define('soy!jive.i18n.keys.contentValidationAny',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.contentValidationAny=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('58d457',[]))),c?'':d.toString()},jive.i18n.keys.contentValidationAny}),define('soy!jive.i18n.keys.contentValidationEmail',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.contentValidationEmail=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('2a18e8',[]))),c?'':d.toString()},jive.i18n.keys.contentValidationEmail}),define('soy!jive.i18n.keys.contentValidationMax',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.contentValidationMax=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('dff773',[]))),c?'':d.toString()},jive.i18n.keys.contentValidationMax}),define('soy!jive.i18n.keys.contentValidationMin',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.contentValidationMin=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('d87e09',[]))),c?'':d.toString()},jive.i18n.keys.contentValidationMin}),define('soy!jive.i18n.keys.contentValidationNumber',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.contentValidationNumber=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('059837',[]))),c?'':d.toString()},jive.i18n.keys.contentValidationNumber}),define('soy!jive.i18n.keys.contentValidationRequired',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.contentValidationRequired=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('c27243',[]))),c?'':d.toString()},jive.i18n.keys.contentValidationRequired}),define('soy!jive.i18n.keys.contentValidationUrl',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.contentValidationUrl=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('18376f',[]))),c?'':d.toString()},jive.i18n.keys.contentValidationUrl}),define('soy!jive.i18n.keys.forumPostSaveAndEditText',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.forumPostSaveAndEditText=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('bfe2f6',[]))),c?'':d.toString()},jive.i18n.keys.forumPostSaveAndEditText}),define('soy!jive.i18n.keys.forumThrdEmailRequiredText',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.forumThrdEmailRequiredText=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('918a0d',[]))),c?'':d.toString()},jive.i18n.keys.forumThrdEmailRequiredText}),define('soy!jive.i18n.keys.forumThrdNameRequiredText',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.forumThrdNameRequiredText=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('7b62b2',[]))),c?'':d.toString()},jive.i18n.keys.forumThrdNameRequiredText}),define('soy!jive.i18n.keys.globalContainer',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.globalContainer=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('83768b',[])),soy.$$escapeHtml(a._i18n('55a79e',[])),soy.$$escapeHtml(a._i18n('f05a19',[]))),c?'':d.toString()},jive.i18n.keys.globalContainer}),define('soy!jive.i18n.keys.globalDatepickerNext',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.globalDatepickerNext=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('151922',[]))),c?'':d.toString()},jive.i18n.keys.globalDatepickerNext}),define('soy!jive.i18n.keys.globalDatepickerPrev',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.globalDatepickerPrev=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('c8bc53',[]))),c?'':d.toString()},jive.i18n.keys.globalDatepickerPrev}),define('soy!jive.i18n.keys.globalSaved',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.globalSaved=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('fa5365',[]))),c?'':d.toString()},jive.i18n.keys.globalSaved}),define('soy!jive.i18n.keys.globalUndefinedType',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.globalUndefinedType=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('global.access.content.type.undefined',[]))),c?'':d.toString()},jive.i18n.keys.globalUndefinedType}),define('soy!jive.i18n.keys.globalUnsavedChangesText',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.globalUnsavedChangesText=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('57344c',[]))),c?'':d.toString()},jive.i18n.keys.globalUnsavedChangesText}),define('soy!jive.i18n.keys.outcomesErrorMissing',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.outcomesErrorMissing=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('397c50',[]))),c?'':d.toString()},jive.i18n.keys.outcomesErrorMissing}),define('soy!jive.i18n.keys.postAlwaysUseThisEditorTab',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.postAlwaysUseThisEditorTab=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('f03443',[]))),c?'':d.toString()},jive.i18n.keys.postAlwaysUseThisEditorTab}),define('soy!jive.i18n.keys.postErrPlsEnterBodyText',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.postErrPlsEnterBodyText=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('30593a',[]))),c?'':d.toString()},jive.i18n.keys.postErrPlsEnterBodyText}),define('soy!jive.i18n.keys.rteEditDisabled',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.rteEditDisabled=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('3cbe60',[]))),c?'':d.toString()},jive.i18n.keys.rteEditDisabled}),define('soy!jive.i18n.keys.rteEditDisabledDesc',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.rteEditDisabledDesc=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('44a9f4',[]))),c?'':d.toString()},jive.i18n.keys.rteEditDisabledDesc}),define('soy!jive.i18n.keys.rteToggleDisplay',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.rteToggleDisplay=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('47f43a',[]))),c?'':d.toString()},jive.i18n.keys.rteToggleDisplay}),define('soy!jive.i18n.keys.tinymceJivementionRestrictedContent',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.tinymceJivementionRestrictedContent=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('d001bc',[]))),c?'':d.toString()},jive.i18n.keys.tinymceJivementionRestrictedContent}),define('soy!jive.i18n.keys.tinymceJivementionSecretGroup',['soyDeps'],function(a){return jive.namespace.call(this,'jive.i18n.keys'),a.keys.tinymceJivementionSecretGroup=function(b,c){var d=c||new soy.StringBuilder;return d.append(soy.$$escapeHtml(a._i18n('b7a1dd',[]))),c?'':d.toString()},jive.i18n.keys.tinymceJivementionSecretGroup}),define('soy!jive.imagelinks.imageLink',['soyDeps'],function(a){return jive.namespace.call(this,'jive.imagelinks'),jive.imagelinks.imageLink=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-slide js-image-link" ',b.slide.resources?'data-ref="'+soy.$$escapeHtmlAttribute(b.slide.resources.self.ref)+'"':'','><a class="js-image-link-link" href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.slide.externalTargetLink?b.slide.externalTargetLink:b.slide.targetLink)),'"><span class="j-508-label">',soy.$$escapeHtml(a._i18n('68b425',[])),'</span><div class="j-slide-image-wrapper"><img class="j-slide-image" ',b.slide.image?'src="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.slide.image))+'"':'',' alt="',soy.$$escapeHtmlAttribute(a._i18n('ffff71',[])),'" ',b.slide.image?'':' style="display: none"',' /></div><h3>',soy.$$filterNoAutoescape(b.slide.subject),'</h3></a></div>'),c?'':d.toString()},jive.imagelinks.imageLink}),define('soy!jive.integration.backgroundImage',['soyDeps'],function(a){return jive.namespace.call(this,'jive.integration'),jive.integration.backgroundImage=function(a,b){var c=b||new soy.StringBuilder;return c.append('<style class="headerStyle js-headerStyle',a['class']?' '+soy.$$escapeHtml(a['class']):'','"',null!=a.headerSettings?' data-header-settings="'+soy.$$escapeHtml(JSON.stringify(a.headerSettings).replace(/</g,'\\u003C').replace(/>/g,'\\u003E').replace(/\u2028/g,'\\u2028').replace(/\u2029/g,'\\u2029'))+'"':'','>.j-body-place #jive-body .j-page-header {',a.bgType&&'custom'!=a.bgType?('none'!=a.bgPresetImageUrl?'background-image: url("'+soy.$$escapeHtml(jive.soy.func.resourceUrl(a.bgPresetImageUrl,!0))+'");':'background-image:none;')+(a.bgColor?'background-color: '+('transparent'==a.bgColor?' transparent ':' '+(-1!=a.bgColor.indexOf('#')?' '+soy.$$escapeHtml(a.bgColor)+' ':' #'+soy.$$escapeHtml(a.bgColor)+' ')+'  ')+';':''):(a.bgCustomImageUrl&&'none'!=a.bgCustomImageUrl?'background-image : url("'+soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,a.bgCustomImageUrl))+'");':'background-image: none;')+'background-color: '+(a.bgColor&&'null'!=a.bgColor&&'transparent'!=a.bgColor?'  '+(-1!=a.bgColor.indexOf('#')?' '+soy.$$escapeHtml(a.bgColor)+' ':' #'+soy.$$escapeHtml(a.bgColor)+' ')+' ':' transparent')+';','cover'!=a.bgRepeat&&'null'!=a.bgRepeat?'background-repeat: '+soy.$$escapeHtml(a.bgRepeat)+'; background-size: auto;':'background-size:cover;','null'!=a.bgPosition?'background-position: '+soy.$$escapeHtml(a.bgPosition)+';':'','}.j-placeHeaderInner #jive-breadcrumb, .j-placeHeaderInner #jive-breadcrumb a, .j-placeTitle a.j-placeName, .j-placeTitle span.j-placeName, .j-placeTitle .j-page-header-parent, .j-page-header-parent a.j-parentPlaceName {',null!=a.textColor?'color: '+(-1!=a.textColor.indexOf('#')?' '+soy.$$escapeHtml(a.textColor)+' ':' #'+soy.$$escapeHtml(a.textColor))+';':'color: #fff;','}</style>'),b?'':c.toString()},jive.integration.backgroundImage}),define('soy!jive.nav.menu.home.inbox',['soyDeps','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.nav.menu.home'),jive.nav.menu.home.inbox=function(b,c){b=b||{};var d=c||new soy.StringBuilder;return d.append('<h4 class="j-badge-hd j-rc5 j-rc-none-bottom"><a href="',soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,'/inbox')),'" title="',soy.$$escapeHtml(a._i18n('4053bc',[])),'"><span class="lnk">',soy.$$escapeHtml(a._i18n('4053bc',[])),'</span>'),b.unreadCount>0&&(d.append('<strong class="j-menu-count font-color-notify">'),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('55cb84'),arg0:b.unreadCount>50?'50+':soy.$$escapeHtml(b.unreadCount),noAutoEscape:!0},d),d.append('</strong>')),d.append('</a></h4>'),c?'':d.toString()},jive.nav.menu.home.inbox}),define('soy!jive.outcomes.summary.textCountBadge',['soyDeps'],function(a){return jive.namespace.call(this,'jive.outcomes.summary'),jive.outcomes.summary.textCountBadge=function(b,c){var d=c||new soy.StringBuilder;return d.append('finalized'!=b.outcomeType&&'outdated'!=b.outcomeType&&b.count>1?'<span class="j-outcome-count j-search-result-meta">'+soy.$$escapeHtml(b.count)+'</span> ':'','<span class="js-outcome-text-badge j-outcome-text-badge js-outcome-type-',soy.$$escapeHtml(b.outcomeType),' j-outcome-type-',soy.$$escapeHtml(b.outcomeType),'" data-outcome-type="',soy.$$escapeHtml(b.outcomeType),'">',soy.$$escapeHtml(a._i18n(a.getMinKey('outcomes.badge.'+b.outcomeType),[])),1!=b.isLast?'<span class="j-search-result-meta">'+soy.$$escapeHtml(a._i18n('ddce94',[]))+'</span> ':'','</span>'),c?'':d.toString()},jive.outcomes.summary.textCountBadge}),define('soy!jive.publishbar.containerLink',['soyDeps'],function(a){return jive.namespace.call(this,'jive.publishbar'),jive.publishbar.containerLink=function(b,c){var d=c||new soy.StringBuilder;return d.append(b.writableByUser?'<a href="#" data-objecttype="'+soy.$$escapeHtml(b.type)+'" data-objectid="'+soy.$$escapeHtml(b.id)+'" class="'+(b.extraCssClass?soy.$$escapeHtml(b.extraCssClass):'')+' js-target-container'+(b.props&&b.props.isVisibleToPartner?' j-external-access':'')+'">':'<span class="j-place-unavailable">',b.noIcon?'':'<span class="'+(b.writableByUser?soy.$$escapeHtml(b.iconCss)+' jive-icon-'+(b.iconSize?soy.$$escapeHtml(b.iconSize):'med'):'jive-icon-sml jive-icon-place-unavailable')+'"></span>','<span class="',b.writableByUser?'lnk':'jive-container-unavailable-text',' js-container-title ',b.overrideNameCssClass?soy.$$escapeHtml(b.overrideNameCssClass):'','" ',b.writableByUser?'':'title="'+(2020==b.type?soy.$$escapeHtml(a._i18n('1434e1',[])):soy.$$escapeHtml(a._i18n('c1ddc0',[])))+'"','>',b.doNotEscapeSubject?soy.$$filterNoAutoescape(b.subject):soy.$$escapeHtml(b.subject),'</span>',b.props&&b.props.isVisibleToPartner?'<span class="jive-icon-glyph icon-partner icon-eye" title="'+soy.$$escapeHtml(a._i18n('fa6162',[]))+'"></span>':'',b.writableByUser?'</a>':'</span>',b.caption?' <span class="j-container-caption font-color-meta">'+soy.$$escapeHtml(b.caption)+'</span>':''),c?'':d.toString()},jive.publishbar.containerLink}),define('soy!jive.publishbar.containerList',['soyDeps','soy!jive.publishbar.containerLink'],function(a){return jive.namespace.call(this,'jive.publishbar'),jive.publishbar.containerList=function(b,c){var d=c||new soy.StringBuilder;d.append('<div class="j-places-list"><ul class="j-autocomplete-results j-icon-list" role="listbox">');var e=b.containers,f=e.length;if(f>0)for(var g=0;f>g;g++){var h=e[g];d.append('<li role="option">'),jive.publishbar.containerLink(soy.$$augmentMap(h,{contentType:b.contentType,iconSize:'med',upload:b.upload,writableByUser:h.prop&&h.prop.perms&&h.prop.perms.allowedToContribute&&h.prop.perms.allowedToMove,props:h.prop}),d),d.append('</li>')}else d.append(b.renderType&&'standard'!=b.renderType?'':'<li role="option">'+(b.emptyKey?'<p class="font-color-meta j-empty">'+soy.$$escapeHtml(a._i18n(a.getMinKey(b.emptyKey),[]))+'</p>':'<p class="font-color-meta j-empty">'+(b.communityFeatureVisible?soy.$$escapeHtml(a._i18n('cbf22a',[])):soy.$$escapeHtml(a._i18n('18c8d5',[])))+'</p>')+'</li>');return b.renderType&&'quick'==b.renderType&&(b.showCommunityOption&&(d.append('<li role="option">'),jive.publishbar.containerLink({subject:soy.$$escapeHtml(a._i18n('58a943',[b.communityName])),type:b.userContainerDescriptor.objectType,id:b.userContainerDescriptor.id,iconCss:'',iconSize:'',noIcon:!0,writableByUser:!0,overrideNameCssClass:'js-container-title-override',doNotEscapeSubject:!0},d),d.append('</li>')),d.append('<li role="option">'),jive.publishbar.containerLink({subject:soy.$$escapeHtml(a._i18n('2383c4',[])),type:-1,id:-1,iconCss:'',iconSize:'',noIcon:!0,extraCssClass:'suggestBrowseAllPlaces',writableByUser:!0,doNotEscapeSubject:!0},d),d.append('</li>')),d.append('</ul></div>'),c?'':d.toString()},jive.publishbar.containerList}),define('soy!jive.publishbar.placeSearchResults',['soyDeps','soy!jive.publishbar.containerList'],function(a){return jive.namespace.call(this,'jive.publishbar'),jive.publishbar.placeSearchResults=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-pop-main j-menu j-quick-menu">'),b.suggested&&0==b.containers.length&&'standard'==b.renderType?d.append(b.renderType&&'standard'!=b.renderType?'':'<div class="j-actions"><strong>'+soy.$$escapeHtml(a._i18n('32c2f4',[]))+'</strong></div>'+(b.communityFeatureVisible?'<p class="j-noresults">'+soy.$$escapeHtml(a._i18n('018669',[]))+'</p>':'<p class="j-noresults">'+soy.$$escapeHtml(a._i18n('42b060',[]))+'</p>')):(d.append(b.renderType&&'standard'!=b.renderType?'':'<p class="j-actions">'+(b.suggested?b.communityFeatureVisible?soy.$$escapeHtml(a._i18n('32c2f4',[])):soy.$$escapeHtml(a._i18n('0dd100',[])):b.communityFeatureVisible?soy.$$escapeHtml(a._i18n('596eb4',[])):soy.$$escapeHtml(a._i18n('e0b684',[])))+'</p>'),jive.publishbar.containerList(b,d)),d.append('</div>'),c?'':d.toString()},jive.publishbar.placeSearchResults}),define('soy!jive.search.result.contentResult',['soyDeps','soy!jive.outcomes.summary.textCountBadge','soy!jive.shared.displayutil.icon','soy!jive.shared.displayutil.userDisplayNameLink','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.search.result'),jive.search.result.contentResult=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<li',b.resources.self?' data-self="'+soy.$$escapeHtmlAttribute(b.resources.self.ref)+'"':'',' class="j-search-result j-content ',b.promotedResult?'j-search-promoted-result-container':'','">',b.promotedResult?'<span class="j-search-promoted-result-label">'+soy.$$escapeHtml(a._i18n('26afd0',[]))+'</span>':'','<div class="j-result-icon">'),b.resources&&b.resources.html){if(d.append('<a class="j-search-result-link" '),b.uuid&&b.index)if((b.resources.html.ref.match(new RegExp('#',''))||[]).length>0){var e=b.resources.html.ref.split(new RegExp('#',''));d.append('href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(e[0])),'?sr=search&searchId=',soy.$$escapeUri(b.uuid),'&searchIndex=',soy.$$escapeUri(b.index),b.feedbackToken?'&feedbackToken='+soy.$$escapeUri(b.feedbackToken):'',e.length>1?'#'+soy.$$escapeHtmlAttribute(e[1]):'','">')}else d.append('href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.resources.html.ref)),'?sr=search&searchId=',soy.$$escapeUri(b.uuid),'&searchIndex=',soy.$$escapeUri(b.index),b.feedbackToken?'&feedbackToken='+soy.$$escapeUri(b.feedbackToken):'','">');else d.append('href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.resources.html.ref)),'">');b.attachmentName?d.append('<span title="Document" role="img" class="jive-icon-big jive-icon-doctype-generic"></span>'):jive.shared.displayutil.icon(soy.$$augmentMap(b,{size:'big'}),d),d.append('</a>')}else jive.shared.displayutil.icon(soy.$$augmentMap(b,{size:'big'}),d);if(d.append('</div><div class="j-result-content">'),b.resources&&b.resources.html){if(d.append('<a class="j-search-result-value j-search-result-link"'),b.uuid&&b.index)if((b.resources.html.ref.match(new RegExp('#',''))||[]).length>0){var f=b.resources.html.ref.split(new RegExp('#',''));d.append('href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(f[0])),'?sr=search&searchId=',soy.$$escapeUri(b.uuid),'&searchIndex=',soy.$$escapeUri(b.index),b.feedbackToken?'&feedbackToken='+soy.$$escapeUri(b.feedbackToken):'',f.length>1?'#'+soy.$$escapeHtmlAttribute(f[1]):'','">')}else d.append('href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.resources.html.ref)),'?sr=search&searchId=',soy.$$escapeUri(b.uuid),'&searchIndex=',soy.$$escapeUri(b.index),b.feedbackToken?'&feedbackToken='+soy.$$escapeUri(b.feedbackToken):'','">');else d.append('href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.resources.html.ref)),'">');d.append('<span class="j-search-result-title">',soy.$$filterNoAutoescape(b.subject),'</span></a>')}else d.append('<span class="j-search-result-value"><span class="j-search-result-title">',soy.$$filterNoAutoescape(b.subject),'</span></span>');if(d.append('<p class="j-author-location">'),b.updatedDate&&b.publishedDate!=b.updatedDate&&b.author&&b.parentPlace&&b.parentPlace.html&&b.parentPlace.name&&'person'!=b.parentPlace.type&&'update'!=b.type&&'dm'!=b.type){var g=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(soy.$$augmentMap(b.author,{visible:!(!b.author.resources||!b.author.resources.html),username:b.author.jive?b.author.jive.username:'',displayNameOverride:-1==b.author.id&&b.author.jive?b.author.jive.username:!1}),g),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('429052'),arg0:'<span class="j-search-created-timeago" title="'+soy.$$escapeHtmlAttribute(b.publishedDate?require('moment').utc(parseFloat(b.publishedDate)?parseFloat(b.publishedDate):b.publishedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('LLL'):'')+'">'+soy.$$escapeHtml(null!=b.publishedDateRelative?b.publishedDateRelative:b.publishedDate?require('moment').utc(parseFloat(b.publishedDate)?parseFloat(b.publishedDate):b.publishedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('lll'):'')+'</span>',arg1:'<span class="j-search-modified-timeago" title="'+soy.$$escapeHtmlAttribute(b.updatedDate?require('moment').utc(parseFloat(b.updatedDate)?parseFloat(b.updatedDate):b.updatedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('LLL'):'')+'">'+soy.$$escapeHtml(null!=b.updatedDateRelative?b.updatedDateRelative:b.updatedDate?require('moment').utc(parseFloat(b.updatedDate)?parseFloat(b.updatedDate):b.updatedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('lll'):'')+'</span>',arg2:g.toString(),arg3:'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,b.parentPlace.html)))+'">'+soy.$$escapeHtml(b.parentPlace.name)+'</a>',noAutoEscape:'true'},d)}else if(b.updatedDate&&b.publishedDate!=b.updatedDate&&b.author){var h=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(soy.$$augmentMap(b.author,{visible:!(!b.author.resources||!b.author.resources.html),username:b.author.jive?b.author.jive.username:'',displayNameOverride:-1==b.author.id&&b.author.jive?b.author.jive.username:!1}),h),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('bf41de'),arg0:'<span class="j-search-created-timeago" title="'+soy.$$escapeHtmlAttribute(b.publishedDate?require('moment').utc(parseFloat(b.publishedDate)?parseFloat(b.publishedDate):b.publishedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('LLL'):'')+'">'+soy.$$escapeHtml(null!=b.publishedDateRelative?b.publishedDateRelative:b.publishedDate?require('moment').utc(parseFloat(b.publishedDate)?parseFloat(b.publishedDate):b.publishedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('lll'):'')+'</span>',arg1:'<span class="j-search-modified-timeago" title="'+soy.$$escapeHtmlAttribute(b.updatedDate?require('moment').utc(parseFloat(b.updatedDate)?parseFloat(b.updatedDate):b.updatedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('LLL'):'')+'">'+soy.$$escapeHtml(null!=b.updatedDateRelative?b.updatedDateRelative:b.updatedDate?require('moment').utc(parseFloat(b.updatedDate)?parseFloat(b.updatedDate):b.updatedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('lll'):'')+'</span>',arg2:h.toString(),noAutoEscape:'true'},d)}else if(b.updatedDate&&b.publishedDate!=b.updatedDate&&b.parentPlace&&b.parentPlace.html&&b.parentPlace.name&&'person'!=b.parentPlace.type&&'update'!=b.type&&'dm'!=b.type)jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('02dbd5'),arg0:'<span class="j-search-created-timeago" title="'+soy.$$escapeHtmlAttribute(b.publishedDate?require('moment').utc(parseFloat(b.publishedDate)?parseFloat(b.publishedDate):b.publishedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('LLL'):'')+'">'+soy.$$escapeHtml(null!=b.publishedDateRelative?b.publishedDateRelative:b.publishedDate?require('moment').utc(parseFloat(b.publishedDate)?parseFloat(b.publishedDate):b.publishedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('lll'):'')+'</span>',arg1:'<span class="j-search-modified-timeago" title="'+soy.$$escapeHtmlAttribute(b.updatedDate?require('moment').utc(parseFloat(b.updatedDate)?parseFloat(b.updatedDate):b.updatedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('LLL'):'')+'">'+soy.$$escapeHtml(null!=b.updatedDateRelative?b.updatedDateRelative:b.updatedDate?require('moment').utc(parseFloat(b.updatedDate)?parseFloat(b.updatedDate):b.updatedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('lll'):'')+'</span>',arg2:'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,b.parentPlace.html)))+'">'+soy.$$escapeHtml(b.parentPlace.name)+'</a>',noAutoEscape:'true'},d);else if(b.updatedDate&&b.publishedDate!=b.updatedDate)jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('34b29b'),arg0:'<span class="j-search-created-timeago" title="'+soy.$$escapeHtmlAttribute(b.publishedDate?require('moment').utc(parseFloat(b.publishedDate)?parseFloat(b.publishedDate):b.publishedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('LLL'):'')+'">'+soy.$$escapeHtml(null!=b.publishedDateRelative?b.publishedDateRelative:b.publishedDate?require('moment').utc(parseFloat(b.publishedDate)?parseFloat(b.publishedDate):b.publishedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('lll'):'')+'</span>',arg1:'<span class="j-search-modified-timeago" title="'+soy.$$escapeHtmlAttribute(b.updatedDate?require('moment').utc(parseFloat(b.updatedDate)?parseFloat(b.updatedDate):b.updatedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('LLL'):'')+'">'+soy.$$escapeHtml(null!=b.updatedDateRelative?b.updatedDateRelative:b.updatedDate?require('moment').utc(parseFloat(b.updatedDate)?parseFloat(b.updatedDate):b.updatedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('lll'):'')+'</span>',noAutoEscape:'true'},d);else if(b.author&&b.parentPlace&&b.parentPlace.html&&b.parentPlace.name&&'person'!=b.parentPlace.type&&'update'!=b.type&&'dm'!=b.type){var i=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(soy.$$augmentMap(b.author,{visible:!(!b.author.resources||!b.author.resources.html),username:b.author.jive?b.author.jive.username:'',displayNameOverride:-1==b.author.id&&b.author.jive?b.author.jive.username:!1}),i),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('aa4464'),arg0:'<span class="j-search-created-timeago" title="'+soy.$$escapeHtmlAttribute(b.publishedDate?require('moment').utc(parseFloat(b.publishedDate)?parseFloat(b.publishedDate):b.publishedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('LLL'):'')+'">'+soy.$$escapeHtml(null!=b.publishedDateRelative?b.publishedDateRelative:b.publishedDate?require('moment').utc(parseFloat(b.publishedDate)?parseFloat(b.publishedDate):b.publishedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('lll'):'')+'</span>',arg1:i.toString(),arg2:'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,b.parentPlace.html)))+'">'+soy.$$escapeHtml(b.parentPlace.name)+'</a>',noAutoEscape:'true'},d)}else if(b.author){var j=new soy.StringBuilder;jive.shared.displayutil.userDisplayNameLink(soy.$$augmentMap(b.author,{visible:!(!b.author.resources||!b.author.resources.html),username:b.author.jive?b.author.jive.username:'',displayNameOverride:-1==b.author.id&&b.author.jive?b.author.jive.username:!1}),j),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('c17b36'),arg0:'<span class="j-search-created-timeago" title="'+soy.$$escapeHtmlAttribute(b.publishedDate?require('moment').utc(parseFloat(b.publishedDate)?parseFloat(b.publishedDate):b.publishedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('LLL'):'')+'">'+soy.$$escapeHtml(null!=b.publishedDateRelative?b.publishedDateRelative:b.publishedDate?require('moment').utc(parseFloat(b.publishedDate)?parseFloat(b.publishedDate):b.publishedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('lll'):'')+'</span>',arg1:j.toString(),noAutoEscape:'true'},d)}else b.parentPlace&&b.parentPlace.html&&b.parentPlace.name&&'person'!=b.parentPlace.type&&'update'!=b.type&&'dm'!=b.type?jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('ccd56b'),arg0:'<span class="j-search-created-timeago" title="'+soy.$$escapeHtmlAttribute(b.publishedDate?require('moment').utc(parseFloat(b.publishedDate)?parseFloat(b.publishedDate):b.publishedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('LLL'):'')+'">'+soy.$$escapeHtml(null!=b.publishedDateRelative?b.publishedDateRelative:b.publishedDate?require('moment').utc(parseFloat(b.publishedDate)?parseFloat(b.publishedDate):b.publishedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('lll'):'')+'</span>',arg1:'<a href="'+soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(jive.soy.func.buildUrl(window._jive_base_url,b.parentPlace.html)))+'">'+soy.$$escapeHtml(b.parentPlace.name)+'</a>',noAutoEscape:'true'},d):jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('922c09'),arg0:'<span class="j-search-created-timeago" title="'+soy.$$escapeHtmlAttribute(b.publishedDate?require('moment').utc(parseFloat(b.publishedDate)?parseFloat(b.publishedDate):b.publishedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('LLL'):'')+'">'+soy.$$escapeHtml(null!=b.publishedDateRelative?b.publishedDateRelative:b.publishedDate?require('moment').utc(parseFloat(b.publishedDate)?parseFloat(b.publishedDate):b.publishedDate).add(60*_jive_timezoneoffset*60*1e3).locale(_jive_locale.toLowerCase().replace('_','-')).format('lll'):'')+'</span>',noAutoEscape:'true'},d);if(d.append('</p>',b.feedbackToken?'<div style="font-size: 12px;float: right;"><a class="j-feedback-link" href="/api/core/v3/search/feedback/relevant/'+soy.$$escapeHtmlAttribute(b.feedbackToken)+'/true"><span class="icon-arrow-up2"></span>Helpful</a><a class="j-feedback-link" href="/api/core/v3/search/feedback/relevant/'+soy.$$escapeHtmlAttribute(b.feedbackToken)+'/false"><span class="icon-arrow-down2"></span>Not Helpful</a></div>':'',b.displayExternalAccess?'<span class="font-color-meta-light j-browse-external-access"><em>'+soy.$$escapeHtml(a._i18n('fa6162',[]))+'</em></span>':''),
'ANSWER'==b.responseType&&b.highlightAnswers)for(var k=b.highlightAnswers,l=k.length,m=0;l>m;m++){var n=k[m];d.append('<p>',b.attachmentName?soy.$$filterNoAutoescape(b.attachmentName)+' ':'',n?soy.$$filterNoAutoescape(n):'','</p>')}else d.append('<p class="j-search-result-summary j-truncate">',b.attachmentName?soy.$$filterNoAutoescape(b.attachmentName)+'  ':'',b.summary?' '+soy.$$filterNoAutoescape(b.summary):'','</p>');if(d.append(b.resultFromMetadata?'<p class="metadata-highlight">'+soy.$$filterNoAutoescape(b.resultFromMetadata)+'</p>':'','<aside class="j-meta-wrapper" style="width: 80%;"><p class="j-search-result-meta">','dm'==b.type||'collaboration'==b.type?'':(null!=b.replyCount?'<span class="j-search-result-comments">'+('discussion'!=b.type&&'message'!=b.type?'<span class="icon-comment3" title="'+soy.$$escapeHtmlAttribute(a._i18n('d93141',[]))+'"></span>':'<span class="icon-comment3" title="'+soy.$$escapeHtmlAttribute(a._i18n('042396',[]))+'"></span>')+' '+soy.$$escapeHtml(b.replyCount)+'</span>':'')+(null!=b.likeCount?'<span class="j-search-result-likes"><span class="icon-thumbs-up3" title="'+soy.$$escapeHtmlAttribute(a._i18n('181d55',[]))+'"></span> '+soy.$$escapeHtml(b.likeCount)+'</span>':'')+(null!=b.viewCount?'<span class="j-search-result-views"><span class="icon-eye" title="'+soy.$$escapeHtmlAttribute(a._i18n('fa8547',[]))+'"></span> '+soy.$$escapeHtml(b.viewCount)+'</span>':'')+(b.socialScoreCategory?'<span class="j-search-result-social-rank" title="'+soy.$$escapeHtmlAttribute(a._i18n(a.getMinKey('search.result.content.social.rank'+b.socialScoreCategory+'.title'),[]))+'"><span class="icon-social-rank'+soy.$$escapeHtmlAttribute(b.socialScoreCategory)+'"></span></span>':''),b.highlightTags?'<span class="j-search-result-tags"><span class="icon-tags" title="'+soy.$$escapeHtmlAttribute(a._i18n('e0923f',[]))+'"></span> '+soy.$$filterNoAutoescape(b.highlightTags)+'</span>':'','</p>'),b.outcomeCounts){d.append('<div class=\'j-search-result-outcomes\'>');for(var o=soy.$$getMapKeys(b.outcomeCounts),p=o.length,q=0;p>q;q++){var r=o[q];jive.outcomes.summary.textCountBadge({outcomeType:r,count:b.outcomeCounts[r],isLast:q==p-1},d)}d.append('</div>')}return d.append('</aside></div></li>'),c?'':d.toString()},jive.search.result.contentResult}),define('soy!jive.shared.formwaiting.formWaitingOverlay',['soyDeps'],function(a){return jive.namespace.call(this,'jive.shared.formwaiting'),jive.shared.formwaiting.formWaitingOverlay=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="jive-js-form-disable jive-form-waiting-disable"><div class="',soy.$$escapeHtml(a.bgCssClass),'"></div></div>'),b?'':c.toString()},jive.shared.formwaiting.formWaitingOverlay}),define('soy!jive.shared.soy.modal',['soyDeps','soy!jive.shared.displayutil.a11yBoundary'],function(a){return jive.namespace.call(this,'jive.shared.soy'),jive.shared.soy.modal=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="jive-modal j-modal ',b.modalCss?soy.$$escapeHtml(b.modalCss):'','">'),jive.shared.displayutil.a11yBoundary({type:null!=b.modalType?b.modalType:'dialog'},d),d.append('<header class="j-modal-header"><h2>',b.header?soy.$$filterNoAutoescape(b.header):'&nbsp;','</h2></header><label class="j-508-label" id="close-modal-508">',soy.$$escapeHtml(a._i18n('a94563',[])),'</label><a class="j-modal-close-top jive-close no-underline close ',b.closeCss?soy.$$escapeHtml(b.closeCss):'','" href="#" aria-labelledby="close-modal-508" title="',soy.$$escapeHtml(a._i18n('a94563',[])),'">',b.closeText?soy.$$escapeHtml(b.closeText):soy.$$escapeHtml(a._i18n('1ce366',[])),' <span class="jive-icon-glyph icon-close-med" role="img"></span></a><section class="jive-modal-content clearfix ',b.contentCss?soy.$$escapeHtml(b.contentCss):'','">',soy.$$filterNoAutoescape(b.contents),'</section>'),jive.shared.displayutil.a11yBoundary({type:null!=b.modalType?b.modalType:'dialog',isEnd:!0},d),d.append('</div>'),c?'':d.toString()},jive.shared.soy.modal}),define('soy!jive.slides.slide',['soyDeps'],function(a){return jive.namespace.call(this,'jive.slides'),jive.slides.slide=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-slide js-slide" ',b.slide.resources?'data-ref="'+soy.$$escapeHtmlAttribute(b.slide.resources.self.ref)+'"':'','><a class="js-slide-link" href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.slide.externalTargetLink?b.slide.externalTargetLink:b.slide.targetLink)),'" ',b.openInNewWindow&&b.slide.externalTargetLink?'target="_blank"':'','><span class="j-508-label">',soy.$$escapeHtml(a._i18n('68b425',[])),'</span><div class="j-slide-image-wrapper"><img class="j-slide-image" ',b.slide.image?'src="'+soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.slide.image))+'"':'',' alt="',soy.$$escapeHtmlAttribute(a._i18n('ffff71',[])),'" ',b.slide.image?'':' style="display: none"',' /></div><h3 class="j-slide-title">',soy.$$filterNoAutoescape(b.slide.subject),'</h3></a><a class="js-slide-link" href="',soy.$$escapeHtmlAttribute(soy.$$filterNormalizeUri(b.slide.externalTargetLink?b.slide.externalTargetLink:b.slide.targetLink)),'" ',b.openInNewWindow&&b.slide.externalTargetLink?'target="_blank"':'','><div class="j-slide-caption js-slide-caption">',soy.$$filterNoAutoescape(b.slide.content.text),'</div></a></div>'),c?'':d.toString()},jive.slides.slide}),define('soy!jive.socialTasks.schedulerModal',['soyDeps'],function(a){return jive.namespace.call(this,'jive.socialTasks'),jive.socialTasks.schedulerModal=function(b,c){var d=c||new soy.StringBuilder;d.append('<link rel="stylesheet" type="text/css" href="',soy.$$escapeHtml(jive.soy.func.cssUrl('/jquery/jquery.timepicker.css')),'" /><div class="j-deadline"><form id="deadline-form"><header class="j-deadline-header j-pop-desc j-pop-row j-first"><h4>Schedule it</h4></header><div class="j-deadline-option-row"><label>',soy.$$escapeHtml(a._i18n('8e8123',[])),'</label><div class="controls"><input id="date-picker" type="text" class="date" autocomplete="off" readonly="true"><input name="jive-duedate" type="hidden"></div></div><table width="100%"><tbody><tr><td alight="center"><a href="#" class="j-deadline-shortcut js-deadline-shortcut" id="deadline-shortcut-today" data-offset="0">',soy.$$escapeHtml(a._i18n('20d276',[])),'</a></td><td alight="center"><a href="#" class="j-deadline-shortcut js-deadline-shortcut" id="deadline-shortcut-tomorrow" data-offset="1">',soy.$$escapeHtml(a._i18n('38531c',[])),'</a></td><td alight="center"><a href="#" class="j-deadline-shortcut js-deadline-shortcut" id="deadline-shortcut-nextweek" data-offset="7">',soy.$$escapeHtml(a._i18n('2b6336',[])),'</a></td><td alight="center"><a href="#" class="j-deadline-shortcut js-deadline-shortcut" id="deadline-shortcut-nextmonth" data-offset="28">',soy.$$escapeHtml(a._i18n('945c44',[])),'</a></td></tr></tbody></table><div class="j-deadline-option-row"><label for="deadline-allday" class="deadline-allday"><input id="deadline-allday" type="checkbox">',soy.$$escapeHtml(a._i18n('ed3b45',[])),'</label><div class="controls"><input id="time-picker" type="text" class="time" autocomplete="off"></div></div><div class="j-deadline-option-row"><label>',soy.$$escapeHtml(a._i18n('515d1a',[])),'</label><div class="controls"><select name="reminder" id="reminder-input"><option value="0">',soy.$$escapeHtml(a._i18n('886b4f',[])),'</option><option value="5">',soy.$$escapeHtml(a._i18n('cfc15d',[])),'</option><option value="15">',soy.$$escapeHtml(a._i18n('a235f7',[])),'</option><option value="30">',soy.$$escapeHtml(a._i18n('cc20c3',[])),'</option><option value="60">',soy.$$escapeHtml(a._i18n('2b2d9c',[])),'</option><option value="120">',soy.$$escapeHtml(a._i18n('0e6a6f',[])),'</option><option value="1440">',soy.$$escapeHtml(a._i18n('88b4c8',[])),'</option><option value="2880">',soy.$$escapeHtml(a._i18n('097a26',[])),'</option><option value="-1">',soy.$$escapeHtml(a._i18n('06d285',[])),'</option></select></div></div><div class="j-deadline-option-row"><label>',soy.$$escapeHtml(a._i18n('521510',[])),'</label><select size="1" name="timezone" id="jive-timezone" style="width: 130px;">');for(var e=b.timezoneList,f=e.length,g=0;f>g;g++){var h=e[g];d.append('<option value="',soy.$$escapeHtml(h.id),'" ',h.id==b.timezoneID?'selected="selected"':'','>',soy.$$escapeHtml(h.displayName),'</option>')}return d.append('</select></div><footer class="j-deadline-footer j-pop-row j-last"><button type="button" name="success" class="j-btn-callout">Save</button><button type="button" name="cancel">Cancel</button>',b.remove?'<a href="#" class="j-deadline-remove js-deadline-remove">Remove</a>':'','</footer></form></div>'),c?'':d.toString()},jive.socialTasks.schedulerModal}),define('soy!jive.soy.share.alreadySharedToPlace',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.share'),jive.soy.share.alreadySharedToPlace=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="js-share-msg j-tips"><p class="j-warn">',b.place&&b.place.objectTypeName?soy.$$escapeHtml(a._i18n('4ab770',[b.place.objectTypeName])):soy.$$escapeHtml(a._i18n('c146f6',[])),'<p></div>'),c?'':d.toString()},jive.soy.share.alreadySharedToPlace}),define('soy!jive.soy.share.attachmentLinks',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.share'),jive.soy.share.attachmentLinks=function(b,c){var d=c||new soy.StringBuilder;return d.append('<p><a href="#" class="js-notify-user" data-user-identifier="',soy.$$escapeHtmlAttribute(b.email),'" ',b.notified?'style="display:none"':'',' >',soy.$$escapeHtml(a._i18n('1901af',[])),'</a><a href="#" class="js-unnotify-user" data-user-identifier="',soy.$$escapeHtmlAttribute(b.email),'" ',b.notified?'':'style="display:none"',' >',soy.$$escapeHtml(a._i18n('cbd5aa',[])),'</a><p>'),c?'':d.toString()},jive.soy.share.attachmentLinks}),define('soy!jive.soy.share.emailLinks',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.share'),jive.soy.share.emailLinks=function(b,c){var d=c||new soy.StringBuilder;return d.append('<p><a href="#" class="js-notify-user" data-user-identifier="',soy.$$escapeHtmlAttribute(b.email),'" ',b.notified?'style="display:none"':'','>',soy.$$escapeHtml(a._i18n('75e4ac',[])),'</a><a href="#" class="js-unnotify-user" data-user-identifier="',soy.$$escapeHtmlAttribute(b.email),'" ',b.notified?'':'style="display:none"','>',soy.$$escapeHtml(a._i18n('040983',[])),'</a><p>'),c?'':d.toString()},jive.soy.share.emailLinks}),define('soy!jive.soy.share.extendedShare',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.share'),jive.soy.share.extendedShare=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-extended-share js-extended-share"><label for="extend-share"><input id="extend-share" type="radio" name="extendShare" value="share" data-user-identifier="',soy.$$escapeHtmlAttribute(b.email),'" ',b.extendedShare||!b.notified?'checked':'','/>',soy.$$escapeHtml(a._i18n('860f3a',[])),'</label><label for="send-pdf"><input id="send-pdf" type="radio" name="extendShare" value="no-share" data-user-identifier="',soy.$$escapeHtmlAttribute(b.email),'" ',b.notified?'checked':'','/>',soy.$$escapeHtml(a._i18n('b5e738',[])),'</label><input type="button" value="',soy.$$escapeHtmlAttribute(a._i18n('b178cd',[])),'" class="close"></div>'),c?'':d.toString()},jive.soy.share.extendedShare}),define('soy!jive.soy.share.listWithoutPermission',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.share'),jive.soy.share.listWithoutPermission=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="js-share-msg j-tips">',b['private']&&b.editor?soy.$$escapeHtml(a._i18n('c7337a',[])):b.attachmentAvailable?soy.$$escapeHtml(a._i18n('215c04',[])):soy.$$escapeHtml(a._i18n('8b11a1',[])),'</div>'),c?'':d.toString()},jive.soy.share.listWithoutPermission}),define('soy!jive.soy.share.secretGroupMessage',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.share'),jive.soy.share.secretGroupMessage=function(b,c){var d=c||new soy.StringBuilder;return d.append('<p>',soy.$$escapeHtml(a._i18n('2ebd4d',[])),'</p>'),c?'':d.toString()},jive.soy.share.secretGroupMessage}),define('soy!jive.soy.share.share',['soyDeps','soy!jive.UserPicker.soy.inputPlaceholder'],function(a){return jive.namespace.call(this,'jive.soy.share'),jive.soy.share.share=function(b,c){var d=c||new soy.StringBuilder;d.append('<div class="jive-modal j-modal j-pop" id="jive-modal-share"><header><h2>');var e=new soy.StringBuilder('share.',soy.$$escapeHtml(b.objectType));return e=e.toString(),d.append(e==a._i18n(e,[])?soy.$$escapeHtml(a._i18n('bc3c81',[])):soy.$$escapeHtml(a._i18n(e,[])),'</h2></header><label class="j-508-label" id="close-modal-508">',soy.$$escapeHtml(a._i18n('a94563',[])),'</label><a href="#" class="j-modal-close-top close" aria-labelledby="close-modal-508" title="',soy.$$escapeHtmlAttribute(a._i18n('a94563',[])),'">',soy.$$escapeHtml(a._i18n('1ce366',[])),'  <span class="jive-icon-glyph icon-close-med" role="img"></span></a><section class="jive-modal-content j-pop-main j-invite-modal clearfix"><div id="share-error" class="jive-error-box" style="display:none" aria-live="polite" aria-atomic="true" ></div><form class="j-form">',b['private']?'<p class="j-info"><span class="j-info-icon j-ui-elem"></span>'+soy.$$escapeHtml(a._i18n('6ac2b5',[]))+'</p>':'','<label for="share-users">',soy.$$escapeHtml(a._i18n('e6366d',[])),' (',b.placeSharesEnabled?soy.$$escapeHtml(a._i18n('03f35d',[])):b.externalCommunity?soy.$$escapeHtml(a._i18n('86feae',[])):soy.$$escapeHtml(a._i18n('3a6065',[])),')</label><div class="j-user-input-typeahead js-user-input-typeahead"><input type="text" name="share-users" id="share-users" class="j-autocomplete-input j-user-autocomplete j-autocomplete-jive-chooser-input jive-form-element-text j-ui-elem" autocomplete="on" role="combobox"/></div><div class="ie-zindex-fix j-form-exp font-color-meta-light"><strong>',soy.$$escapeHtml(a._i18n('7dc096',[])),' </strong>'),jive.UserPicker.soy.inputPlaceholder({userAllowed:!0,emailAllowed:b.externallyShareable,placeAllowed:b.placeSharesEnabled,domains:b.domains,multiple:!0},d),d.append('<p>',soy.$$escapeHtml(a._i18n('4a7592',[])),'</p></div><p><label for="jive-send-content-not-message">',soy.$$escapeHtml(a._i18n('424914',[])),' <span>',soy.$$escapeHtml(a._i18n('ee8d75',[])),'</span></label><textarea name="message" class="jive-form-element-textarea font-color-normal" id="jive-send-content-not-message">',soy.$$filterNoAutoescape(b.message),'</textarea></p><div class="j-pop-row j-last"><button type="submit" id="share-content-submit" name="share-content-submit" class="j-btn-callout">',soy.$$escapeHtml(a._i18n('fe28fb',[])),'</button><button type="button" class="close">',soy.$$escapeHtml(a._i18n('889192',[])),'</button></div></form></section></div>'),c?'':d.toString()},jive.soy.share.share}),define('soy!jive.soy.share.shareConfirmation',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.share'),jive.soy.share.shareConfirmation=function(b,c){var d=c||new soy.StringBuilder;return d.append('<p>',soy.$$escapeHtml(a._i18n('93f788',[])),'</p>'),c?'':d.toString()},jive.soy.share.shareConfirmation}),define('soy!jive.soy.share.shareToPlaceAccessInfo',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.share'),jive.soy.share.shareToPlaceAccessInfo=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="js-share-msg j-tips"><p class="j-info">',soy.$$escapeHtml(a._i18n('857794',[])),'<p></div>'),c?'':d.toString()},jive.soy.share.shareToPlaceAccessInfo}),define('soy!jive.soy.share.usersNotRelated',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.share'),jive.soy.share.usersNotRelated=function(b,c){var d=c||new soy.StringBuilder;return d.append('<p class="j-warn"><span class="jive-icon-sml jive-icon-redalert"></span>',soy.$$escapeHtml(a._i18n('f2420a',[])),'</p>'),c?'':d.toString()},jive.soy.share.usersNotRelated}),define('soy!jive.soy.share.pdfOrInvite',['soyDeps'],function(a){return jive.namespace.call(this,'jive.soy.share'),jive.soy.share.pdfOrInvite=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-extended-share js-extended-share"><label for="extend-share"><input id="extend-share" type="radio" name="pdfOrInvite" value="share" data-user-identifier="',soy.$$escapeHtmlAttribute(b.email),'" ',b.notified?'':'checked','/>',soy.$$escapeHtml(a._i18n('040983',[])),'</label><label for="send-pdf"><input id="send-pdf" type="radio" name="pdfOrInvite" value="no-share" data-user-identifier="',soy.$$escapeHtmlAttribute(b.email),'" ',b.notified?'checked':'','/>',soy.$$escapeHtml(b.pdfOrEmailMessage),'</label></div>'),c?'':d.toString()},jive.soy.share.pdfOrInvite}),define('soy!jive.soy.share.userWithoutPermission',['soyDeps','soy!jive.soy.share.attachmentLinks','soy!jive.soy.share.extendedShare','soy!jive.soy.share.pdfOrInvite'],function(a){return jive.namespace.call(this,'jive.soy.share'),jive.soy.share.userWithoutPermission=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<div class="js-share-msg j-tips ',b.user.anonymous||b.user.external||!b.externallyInviteable?'':' wide','">'),b.user.anonymous||b.user.external)if(b.invitationsEnabled)if(b['private']&&b.editor)d.append('<p class="j-warn">',soy.$$escapeHtml(a._i18n('21e544',[])),'<p>'),jive.soy.share.attachmentLinks(b.user,d);else if(b.attachmentAvailable){d.append('<p class="j-warn">',soy.$$escapeHtml(a._i18n('f60ba4',[])));var e=new soy.StringBuilder(soy.$$escapeHtml(a._i18n('1901af',[])));e=e.toString(),jive.soy.share.pdfOrInvite({notified:b.user.notified,email:b.user.email,pdfOrEmailMessage:e},d)}else{d.append('<p class="j-warn">',soy.$$escapeHtml(a._i18n('449c39',[])),'<p>');var f=new soy.StringBuilder(soy.$$escapeHtml(a._i18n('75e4ac',[])));f=f.toString(),jive.soy.share.pdfOrInvite({notified:b.user.notified,email:b.user.email,pdfOrEmailMessage:f},d)}else d.append(b.attachmentAvailable?'<p class="j-warn">'+soy.$$escapeHtml(a._i18n('86f886',[]))+'<p>':'<p class="j-warn">'+soy.$$escapeHtml(a._i18n('9fd030',[]))+'<p>');else b['private']&&b.editor?d.append(soy.$$escapeHtml(a._i18n('d0c836',[]))):b.editor&&b.externallyInviteable&&!b.user.partner?(d.append('<p class="j-warn">',soy.$$escapeHtml(a._i18n('39eafc',[])),'</p>'),jive.soy.share.extendedShare(b.user,d)):b.attachmentAvailable?d.append(soy.$$escapeHtml(a._i18n('fc4111',[]))):d.append(soy.$$escapeHtml(a._i18n('30555b',[])));return d.append('</div>'),c?'':d.toString()},jive.soy.share.userWithoutPermission}),define('soy!jive.tags.autocomplete.tagListItem',['soyDeps'],function(a){return jive.namespace.call(this,'jive.tags.autocomplete'),jive.tags.autocomplete.tagListItem=function(b,c){var d=c||new soy.StringBuilder;return d.append('<li class="js-suggestion" role="option"><a href="#" data-value="',soy.$$escapeHtml(b.tag),'" class="quick ',b.create?'j-createTag':'','">',b.create?'<span class="font-color-normal">'+soy.$$escapeHtml(a._i18n('8fab61',[]))+' </span>':'','<span class="jive-icon-tag jive-icon-med"></span><span class="lnk">',soy.$$escapeHtml(b.tag),'</span></a></li>'),c?'':d.toString()},jive.tags.autocomplete.tagListItem}),define('soy!jive.tags.autocomplete.tagList',['soyDeps','soy!jive.tags.autocomplete.tagListItem'],function(a){return jive.namespace.call(this,'jive.tags.autocomplete'),jive.tags.autocomplete.tagList=function(b,c){var d=c||new soy.StringBuilder;d.append('<ul class="js-suggestions j-autocomplete-results" ',b.id?'id="'+b.id+'"':'',' ',b.hidden?'style="display:none"':'',' role="listbox">'),b.query&&jive.tags.autocomplete.tagListItem({tag:b.query,create:!0},d);var e=b.tags,f=e.length;if(f>0)for(var g=0;f>g;g++){var h=e[g];jive.tags.autocomplete.tagListItem({tag:h},d)}else d.append(b.query?'':'<li class="font-color-meta" role="alert"><p class="j-empty">'+(b.skill?soy.$$escapeHtml(a._i18n('0ca027',[])):soy.$$escapeHtml(a._i18n('c12a9a',[])))+'</p></li>');return d.append('</ul>'),c?'':d.toString()},jive.tags.autocomplete.tagList}),define('soy!jive.tags.autocomplete.popularTags',['soyDeps','soy!jive.tags.autocomplete.tagList'],function(a){return jive.namespace.call(this,'jive.tags.autocomplete'),jive.tags.autocomplete.popularTags=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="js-tags-suggestions j-tags-suggestions j-menu j-quick-menu"><p class="j-autocomplete-prompt j-pop-desc">',b.skill?soy.$$filterNoAutoescape(a._i18n('c39790',[]))+' <span class="j-508-label"> '+soy.$$filterNoAutoescape(a._i18n('fb9141',[]))+' </span>':soy.$$filterNoAutoescape(a._i18n('41e651',[]))+' <span class="j-508-label"> '+soy.$$filterNoAutoescape(a._i18n('fb9141',[]))+' </span>','</p><div class="j-autocomplete-nav clearfix"><nav class="j-tab-nav"><ul class="j-tabbar"><li id="popular-tags-tab" data-tab-id=\'popular-tags\' class="',b.active&&'popular-tags'!=b.active?'':'j-active active',' js-tab"><a href="#" class="j-ui-elem">',b.skill?soy.$$escapeHtml(a._i18n('abbb9b',[])):soy.$$escapeHtml(a._i18n('2d6a78',[])),'</a></li>',b.yourTags&&b.yourTags.length>0?'<li id="your-tags-tab" data-tab-id=\'your-tags\' class="'+('your-tags'==b.active?'j-active active':'')+' js-tab"><a href="#" class="j-ui-elem">'+(b.skill?soy.$$escapeHtml(a._i18n('080b8e',[])):soy.$$escapeHtml(a._i18n('82fcb3',[])))+'</a></li>':'','</ul></nav></div>'),jive.tags.autocomplete.tagList({tags:b.popularTags,id:'popular-tags',hidden:b.active&&'popular-tags'!=b.active,skill:b.skill},d),b.yourTags&&b.yourTags.length>0&&jive.tags.autocomplete.tagList({tags:b.yourTags,id:'your-tags',hidden:'your-tags'!=b.active,skill:b.skill},d),d.append('</div>'),c?'':d.toString()},jive.tags.autocomplete.popularTags}),define('soy!jive.tags.autocomplete.tagBadge',['soyDeps'],function(a){return jive.namespace.call(this,'jive.tags.autocomplete'),jive.tags.autocomplete.tagBadge=function(a,b){var c=b||new soy.StringBuilder;return c.append('<li class=\'js-tag j-tag j-btn-global\'><span class=\'js-tag-text j-tag-text\' >',soy.$$filterNoAutoescape(a.tag),'</span><span class=\'remove\' role="presentation" aria-hidden="true">X</span></li>'),b?'':c.toString()},jive.tags.autocomplete.tagBadge}),define('soy!jive.tags.autocomplete.tagCloud',['soyDeps'],function(a){return jive.namespace.call(this,'jive.tags.autocomplete'),jive.tags.autocomplete.tagCloud=function(b,c){var d=c||new soy.StringBuilder;if(d.append('<div class="jive-modal j-modal jive-modal-medium"><header><h2>',b.placeName?soy.$$escapeHtml(a._i18n('2ec37b',[b.maxCount,b.placeName])):b.skillList?soy.$$escapeHtml(a._i18n('8ace60',[b.maxCount])):soy.$$escapeHtml(a._i18n('29a4ba',[b.maxCount])),'</h2></header><label class="j-508-label" id="close-modal-508">',soy.$$escapeHtml(a._i18n('a94563',[])),'</label><a href="#" class="j-modal-close-top close" aria-labelledby="close-modal-508" title="',soy.$$escapeHtml(a._i18n('a94563',[])),'">',soy.$$escapeHtml(a._i18n('1ce366',[])),' <span class="j-close-icon j-ui-elem" role="img"></span></a><section class="jive-modal-content j-modal-content-text clearfix">'),b.availableTags.length>0){d.append('<p>',b.skillList?soy.$$escapeHtml(a._i18n('ad7b3f',[])):soy.$$escapeHtml(a._i18n('5be478',[])),'</p><ul class="jive-tagcloud-list">');for(var e=b.availableTags,f=e.length,g=0;f>g;g++){var h=e[g];d.append('<li class="js-tag jive-tagset-popularity',soy.$$escapeHtml(h.bucket),b.selectedTags.indexOf(h.renderedTag)>-1?' js-selected':'','" data-value="',soy.$$escapeHtml(h.renderedTag),'"><a href="#" title="',1!=h.count?soy.$$escapeHtml(a._i18n('c59536',[h.count])):soy.$$escapeHtml(a._i18n('e065e9',[])),'">',soy.$$escapeHtml(h.renderedTag),'</a></li> ')}d.append('</ul><button class="close j-btn-callout">',soy.$$escapeHtml(a._i18n('ac2a4c',[])),'</button>')}else d.append('<p>',b.skillList?soy.$$escapeHtml(a._i18n('6a59fe',[])):soy.$$escapeHtml(a._i18n('0a9c82',[])),'</p>');return d.append('</section></div>'),c?'':d.toString()},jive.tags.autocomplete.tagCloud}),define('soy!jive.theme.widget.backgroundRepeatWidget',['soyDeps'],function(a){return jive.namespace.call(this,'jive.theme.widget'),jive.theme.widget.backgroundRepeatWidget=function(b,c){var d=c||new soy.StringBuilder;d.append('<h5 class="j-basic-label">',soy.$$escapeHtml(a._i18n('6cb844',[])),'</h5><ul class="button-list clearfix">');var e=-1==['repeat-x','repeat-y','no-repeat'].indexOf(b.value);return d.append('<li class="button-list-item first"><label for="',soy.$$escapeHtml(b.name),'BgRepeatRepeat"',e?' class="checked"':'',b.attachKeyValue?' data-key="'+soy.$$escapeHtml(b.name)+'" data-value="repeat"':'','><span class="repeat"></span>',soy.$$escapeHtml(a._i18n('520e3c',[])),'<input id="',soy.$$escapeHtml(b.name),'BgRepeatRepeat" class="j-508-label" type="radio" name="',soy.$$escapeHtml(b.name),'BgRepeat" value="repeat"',e?' checked':'',' /></label></li><li class="button-list-item"><label for="',soy.$$escapeHtml(b.name),'BgRepeatRepeatX"','repeat-x'==b.value?' class="checked"':'',b.attachKeyValue?' data-key="'+soy.$$escapeHtml(b.name)+'" data-value="repeat-x"':'','><span class="repeat-x"></span>',soy.$$escapeHtml(a._i18n('1b667b',[])),'<input id="',soy.$$escapeHtml(b.name),'BgRepeatRepeatX" class="j-508-label" type="radio" name="',soy.$$escapeHtml(b.name),'BgRepeat" value="repeat-x"','repeat-x'==b.value?' checked':'',' /></label></li><li class="button-list-item"><label for="',soy.$$escapeHtml(b.name),'BgRepeatRepeatY"','repeat-y'==b.value?' class="checked"':'',b.attachKeyValue?' data-key="'+soy.$$escapeHtml(b.name)+'" data-value="repeat-y"':'','><span class="repeat-y"></span>',soy.$$escapeHtml(a._i18n('be0214',[])),'<input id="',soy.$$escapeHtml(b.name),'BgRepeatRepeatY" class="j-508-label" type="radio" name="',soy.$$escapeHtml(b.name),'BgRepeat" value="repeat-y"','repeat-y'==b.value?' checked':'',' /></label></li><li class="button-list-item last"><label for="',soy.$$escapeHtml(b.name),'BgRepeatNoRepeat"','no-repeat'==b.value?' class="checked"':'',b.attachKeyValue?' data-key="'+soy.$$escapeHtml(b.name)+'" data-value="no-repeat"':'','><span class="no-repeat"></span>',soy.$$escapeHtml(a._i18n('32ae3a',[])),'<input id="',soy.$$escapeHtml(b.name),'BgRepeatNoRepeat" class="j-508-label" type="radio" name="',soy.$$escapeHtml(b.name),'BgRepeat" value="no-repeat"','no-repeat'==b.value?' checked':'',' /></label></li></ul>'),c?'':d.toString()},jive.theme.widget.backgroundRepeatWidget}),define('soy!jive.theme.widget.colorInput',['soyDeps'],function(a){return jive.namespace.call(this,'jive.theme.widget'),jive.theme.widget.colorInput=function(b,c){var d=c||new soy.StringBuilder;return d.append('<span class="j-color-widget j-js-housing',b.inline?' inline':'','">',b.labelText?'<label for="'+soy.$$escapeHtml(b.id)+'" class="j-basic-label">'+soy.$$escapeHtml(b.labelText)+'</label>':'','<span class="j-field-spec">',soy.$$escapeHtml(a._i18n('30aae9',[])),'</span><input id="',soy.$$escapeHtml(b.id),'" class="j-color-input j-js-color-input" name="',b.name?soy.$$escapeHtml(b.name):soy.$$escapeHtml(b.id),'" type="text" size="6" maxlength="6" autocomplete="off"',b.value?' value="'+soy.$$escapeHtml(b.value)+'"':'','data-widget-type="color" data-can-be-transparent="',b.canBeTransparent?'true':'false','"><span class="j-color-display j-js-color-display" data-for="',b.name?soy.$$escapeHtml(b.name):soy.$$escapeHtml(b.id),'"',b.value?' style="background-color: #'+soy.$$escapeHtml(b.value)+';"':'','></span>',b.ignoreColorInfo?'':'<span class="j-color-info j-js-color-info j-supplemental"></span>','</span>'),c?'':d.toString()},jive.theme.widget.colorInput}),define('soy!jive.theme.widget.fileComplete',['soyDeps'],function(a){return jive.namespace.call(this,'jive.theme.widget'),jive.theme.widget.fileComplete=function(b,c){var d=c||new soy.StringBuilder;return d.append('<span class="j-complete"><span class="jive-icon-med jive-icon-doctype-image"></span><span class="filename js-filename">',soy.$$escapeHtml(b.filename),'</span><a class="j-change-image" href="#" aria-label="',soy.$$escapeHtml(a._i18n('ab3ddd',[])),'" data-action="changeImage">(',soy.$$escapeHtml(a._i18n('191f76',[])),')</a>',b.removable?' <a class="j-change-image" href="#" aria-label="'+soy.$$escapeHtml(a._i18n('270768',[]))+'" data-action="removeImage">('+soy.$$escapeHtml(a._i18n('d5661e',[]))+')</a>':'','</span>'),c?'':d.toString()},jive.theme.widget.fileComplete}),define('soy!jive.theme.widget.fileDefault',['soyDeps'],function(a){return jive.namespace.call(this,'jive.theme.widget'),jive.theme.widget.fileDefault=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-default js-default"><input type="file" name="',soy.$$escapeHtml(b.name),'"',b.accept?' accept="'+soy.$$escapeHtml(b.accept)+'"':'','aria-label=',soy.$$escapeHtml(a._i18n('30d0cf',[])),'><p class="j-supplemental"><span class="jive-icon-med jive-icon-warn"></span>',soy.$$escapeHtml(a._i18n('bd5bec',[])),'</p></div>'),c?'':d.toString()},jive.theme.widget.fileDefault}),define('soy!jive.theme.widget.fileUploading',['soyDeps'],function(a){return jive.namespace.call(this,'jive.theme.widget'),jive.theme.widget.fileUploading=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-uploading"><span class="jive-icon-med jive-icon-doctype-image"></span><img class="j-uploading js-uploading" src="',soy.$$escapeHtml(jive.soy.func.resourceUrl('/images/j-loader-large-wht.gif')),'" height="15" width="60" alt="',soy.$$escapeHtml(a._i18n('e30eb3',[])),'"></div>'),c?'':d.toString()},jive.theme.widget.fileUploading}),define('soy!jive.theme.widget.file',['soyDeps','soy!jive.theme.widget.fileComplete','soy!jive.theme.widget.fileDefault','soy!jive.theme.widget.fileUploading'],function(a){return jive.namespace.call(this,'jive.theme.widget'),jive.theme.widget.file=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-file-upload js-file-upload clearfix',a.filename?' j-complete':' j-default','">'),jive.theme.widget.fileDefault(a,c),jive.theme.widget.fileUploading(null,c),jive.theme.widget.fileComplete(a,c),c.append('</div>'),b?'':c.toString()},jive.theme.widget.file}),define('soy!jive.trial.renderProgressTip',['soyDeps','soy!jive.shared.soy.render'],function(a){return jive.namespace.call(this,'jive.trial'),jive.trial.renderProgressTip=function(a,b){var c=b||new soy.StringBuilder;return jive.shared.soy.render({templateName:a.template,data:function(){for(var b={},c=[['nextQuestID',a.nextQuestID]],d=0;d<c.length;d+=1)b[c[d][0]]=c[d][1];return b}(),failGracefully:!0},c),b?'':c.toString()},jive.trial.renderProgressTip}),define('soy!jive.user.registration.addressInput',['soyDeps'],function(a){return jive.namespace.call(this,'jive.user.registration'),jive.user.registration.addressInput=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="field" data-field-name="',soy.$$escapeHtml(b.name),'" data-field-type="',soy.$$escapeHtml(b.type),'"><ul><li><label>',soy.$$escapeHtml(a._i18n('38261c',[])),' <input type="text" class="street1"></label></li><li><label>',soy.$$escapeHtml(a._i18n('d0d536',[])),'  <input type="text" class="street2"></label></li><li><label>',soy.$$escapeHtml(a._i18n('5c0b26',[])),'  <input type="text" class="city"></label></li><li><label>',soy.$$escapeHtml(a._i18n('profile.address.stateOrProvince',[])),'  <input type="text" class="stateOrProvince"></label></li><li><label>',soy.$$escapeHtml(a._i18n('profile.address.postalCode',[])),'  <input type="text" class="postalCode" size="10"></label></li><li><label>',soy.$$escapeHtml(a._i18n('5e3821',[])),'  <input type="text" class="country"></label></li><ul></div>'),c?'':d.toString()},jive.user.registration.addressInput}),define('soy!jive.user.registration.booleanInput',['soyDeps'],function(a){return jive.namespace.call(this,'jive.user.registration'),jive.user.registration.booleanInput=function(a,b){var c=b||new soy.StringBuilder;if(a.prop&&a.prop.options){c.append('<div class="field" data-field-name="',soy.$$escapeHtml(a.name),'" data-field-type="',soy.$$escapeHtml(a.type),'">');for(var d=a.prop.options,e=d.length,f=0;e>f;f++){var g=d[f];c.append('<label><input name="',soy.$$escapeHtml(a.name),'" type="radio" value="',soy.$$escapeHtml(g.value),'" ',g.defaultOption?'selected="true"':'','/> ',soy.$$escapeHtml(g.value),'</label>');
}c.append('</div>')}else c.append('[No options have been configured for this field.]');return b?'':c.toString()},jive.user.registration.booleanInput}),define('soy!jive.user.registration.dateInput',['soyDeps','soy!jive.shared.form.datepicker'],function(a){return jive.namespace.call(this,'jive.user.registration'),jive.user.registration.dateInput=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="field" data-field-name="',soy.$$escapeHtml(a.name),'" data-field-type="',soy.$$escapeHtml(a.type),'">'),jive.shared.form.datepicker({name:a.name,required:a.required,initialize:!0,value:a.val},c),c.append('</div>'),b?'':c.toString()},jive.user.registration.dateInput}),define('soy!jive.user.registration.drawCaptcha',['soyDeps'],function(a){return jive.namespace.call(this,'jive.user.registration'),jive.user.registration.drawCaptcha=function(b,c){var d=c||new soy.StringBuilder;return d.append('<img src="',soy.$$filterNoAutoescape(b.captchaImageURL),'" id="jive-captcha" alt="',soy.$$escapeHtml(a._i18n('afa7de',[])),'" title="',soy.$$escapeHtml(a._i18n('afa7de',[])),'"/>'),c?'':d.toString()},jive.user.registration.drawCaptcha}),define('soy!jive.user.registration.errorsContainer',['soyDeps'],function(a){return jive.namespace.call(this,'jive.user.registration'),jive.user.registration.errorsContainer=function(a,b){var c=b||new soy.StringBuilder;return c.append('<div class="j-form-field-errors" style="display:none" data-field-name="',soy.$$escapeHtml(a.name),'"></div>'),b?'':c.toString()},jive.user.registration.errorsContainer}),define('soy!jive.user.registration.humanValidationInput',['soyDeps','soy!jive.user.registration.drawCaptcha'],function(a){return jive.namespace.call(this,'jive.user.registration'),jive.user.registration.humanValidationInput=function(b,c){var d=c||new soy.StringBuilder;d.append('<div class="j-form-row j-form-row-captcha" id="j-form-row-captcha"><label for="captchaInput">');var e=new soy.StringBuilder('<span class="required font-color-meta-light">');e=e.toString();var f=new soy.StringBuilder('</span>');return f=f.toString(),d.append(b.required&&!b.requiredOnly?soy.$$escapeHtml(a._i18n('3547ea',[new soydata.VERY_UNSAFE.ordainSanitizedHtml(e),new soydata.VERY_UNSAFE.ordainSanitizedHtml(f)])):soy.$$escapeHtml(a._i18n('ade123',[])),'</label><div id="js-captcha">'),jive.user.registration.drawCaptcha({captchaImageURL:soy.$$escapeHtml(b.prop.captchaImageURL)},d),d.append('</div><input name="',soy.$$escapeHtml(b.name),'" id="captchaInput" class="field" type="text" data-field-name="',soy.$$escapeHtml(b.name),'" data-field-type="',soy.$$escapeHtml(b.type),'" size="10" maxlength="10" onfocus="this.select();"/><span class="j-field-desc">',soy.$$escapeHtml(a._i18n('6fe4c2',[])),'</span></div>'),c?'':d.toString()},jive.user.registration.humanValidationInput}),define('soy!jive.user.registration.largeTextInput',['soyDeps'],function(a){return jive.namespace.call(this,'jive.user.registration'),jive.user.registration.largeTextInput=function(a,b){var c=b||new soy.StringBuilder;return c.append('<textarea name="',soy.$$escapeHtml(a.name),'" id="',soy.$$escapeHtml(a.name),'" class="field" data-field-name="',soy.$$escapeHtml(a.name),'" data-field-type="',soy.$$escapeHtml(a.type),'" cols="30" rows="3" name="',soy.$$escapeHtml(a.name),'" autocomplete="off" ',a.required?'aria-required="true" required':'','></textarea>'),b?'':c.toString()},jive.user.registration.largeTextInput}),define('soy!jive.user.registration.selectInput',['soyDeps'],function(a){return jive.namespace.call(this,'jive.user.registration'),jive.user.registration.selectInput=function(a,b){var c=b||new soy.StringBuilder;if(a.prop&&a.prop.options){c.append('<select name="',soy.$$escapeHtml(a.name),'" id="',soy.$$escapeHtml(a.name),'" data-field-name="',soy.$$escapeHtml(a.name),'" data-field-type="',soy.$$escapeHtml(a.type),'" class="field" ',a.multiple?'multiple="true"':'',' ',a.required?'aria-required="true" required':'','>');for(var d=a.prop.options,e=d.length,f=0;e>f;f++){var g=d[f];c.append('<option value="',soy.$$escapeHtml(g.value),'" ',g.defaultOption?'selected="true"':'','>',soy.$$escapeHtml(g.value),'</option>')}c.append('</select>')}else c.append('[No options have been configured for this field.]');return b?'':c.toString()},jive.user.registration.selectInput}),define('soy!jive.user.registration.termsAndConditionsInput',['soyDeps','soy!jive.shared.soy.i18nHelper'],function(a){return jive.namespace.call(this,'jive.user.registration'),jive.user.registration.termsAndConditionsInput=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="j-form-row j-form-row-tac" id="j-form-row-tac"><!-- Agree -->'),b.enhancedRegistrationEnabled?(d.append('<input id="agree" type="hidden" value="true" class="field" data-field-name="',soy.$$escapeHtml(b.name),'" data-field-type="',soy.$$escapeHtml(b.type),'"><label for="agree">'),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('3cdff5'),arg0:soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,'terms-and-conditions!input.jspa?displayOnly=true'))},d)):(d.append('<input id="agree" type="checkbox" class="field" data-field-name="',soy.$$escapeHtml(b.name),'" data-field-type="',soy.$$escapeHtml(b.type),'"','true'==b.val?'checked="checked"':'','><label for="agree">'),jive.shared.soy.i18nHelper({i18nKey:soy.$$escapeHtml('da4ce8'),arg0:soy.$$escapeHtml(jive.soy.func.buildUrl(window._jive_base_url,'terms-and-conditions!input.jspa?displayOnly=true'))},d)),d.append(b.required&&!b.requiredOnly?'<span class="required font-color-meta-light">'+soy.$$escapeHtml(a._i18n('8203da',[]))+'</span>':'','</label></div>'),c?'':d.toString()},jive.user.registration.termsAndConditionsInput}),define('soy!jive.user.registration.textInput',['soyDeps'],function(a){return jive.namespace.call(this,'jive.user.registration'),jive.user.registration.textInput=function(a,b){var c=b||new soy.StringBuilder;return c.append('<input name="',soy.$$escapeHtml(a.name),'" id="',soy.$$escapeHtml(a.name),'" class="field" type="text" data-field-name="',soy.$$escapeHtml(a.name),'" data-field-type="',soy.$$escapeHtml(a.type),'" autocomplete="off" ',a.required?'aria-required="true" required':'',' ',a.val?'value="'+soy.$$escapeHtml(a.val)+'"':'',' ',a.size?'size="'+soy.$$escapeHtml(a.size)+'"':'',' ',a.maxlength?'maxlength="'+soy.$$escapeHtml(a.maxlength)+'"':'',a.placeholder?' placeholder="'+soy.$$escapeHtml(a.placeholder)+'"':'','/>'),b?'':c.toString()},jive.user.registration.textInput}),define('soy!jive.eae.actionqueue.actionQueueItemAction',['soyDeps'],function(a){return jive.namespace.call(this,'jive.eae.actionqueue'),jive.eae.actionqueue.actionQueueItemAction=function(a,b){var c=b||new soy.StringBuilder;return c.append(a.action.href?'<a href="'+soy.$$escapeHtml(a.action.href)+'" class="j-btn-global j-action-button">'+soy.$$escapeHtml(a.action.name)+'</a>':'<a href="#" name="'+soy.$$escapeHtml(a.action.code)+'" class="j-btn-global j-action-button">'+soy.$$escapeHtml(a.action.name)+'</a>'),b?'':c.toString()},jive.eae.actionqueue.actionQueueItemAction}),define('soy!jive.eae.notificationqueue.item.eventUpdateNotification',['soyDeps','soy!jive.eae.actionqueue.actionQueueItemAction','soy!jive.shared.displayutil.renderIconElement'],function(a){return jive.namespace.call(this,'jive.eae.notificationqueue.item'),jive.eae.notificationqueue.item.eventUpdateNotification=function(b,c){var d=c||new soy.StringBuilder;d.append('<div class="j-aq-av clearfix"><div class="j-actionQ-item-data event-update clearfix"><h4 class="j-aq-header font-color-meta">',soy.$$escapeHtml(a._i18n('3cbd68',[])),'</h4><p><a href="',soy.$$filterNoAutoescape(jive.soy.func.buildUrl(window._jive_base_url,b.data.objData.href)),'" class="title">'),b.data.objData.iconElement?jive.shared.displayutil.renderIconElement({icon:b.data.objData.iconElement},d):d.append('<span class="',soy.$$escapeHtml(b.data.objData.iconCSS),'"></span>'),d.append(soy.$$filterNoAutoescape(b.data.objData.displayName),'</a> ',soy.$$escapeHtml(a._i18n('f38761',[])),'</p><div class="j-aq-actions clearfix">');for(var e=b.data.actions,f=e.length,g=0;f>g;g++){var h=e[g];jive.eae.actionqueue.actionQueueItemAction({action:h},d)}return d.append('</div></div></div>'),c?'':d.toString()},jive.eae.notificationqueue.item.eventUpdateNotification}),function(a,b){'use strict';'function'==typeof define&&define.amd?define('imagesloaded',['eventEmitter/EventEmitter','eventie/eventie'],function(c,d){return b(a,c,d)}):'object'==typeof exports?module.exports=b(a,require('wolfy87-eventemitter'),require('eventie')):a.imagesLoaded=b(a,a.EventEmitter,a.eventie)}(window,function c(a,b,d){function e(a,b){for(var c in b)a[c]=b[c];return a}function f(a){return'[object Array]'===n.call(a)}function g(a){var b=[];if(f(a))b=a;else if('number'==typeof a.length)for(var c=0,d=a.length;d>c;c++)b.push(a[c]);else b.push(a);return b}function h(a,b,c){if(!(this instanceof h))return new h(a,b);'string'==typeof a&&(a=document.querySelectorAll(a)),this.elements=g(a),this.options=e({},this.options),'function'==typeof b?c=b:e(this.options,b),c&&this.on('always',c),this.getImages(),k&&(this.jqDeferred=new k.Deferred);var d=this;setTimeout(function(){d.check()})}function i(a){this.img=a}function j(a){this.src=a,o[a]=this}var k=a.jQuery,l=a.console,m='undefined'!=typeof l,n=Object.prototype.toString;h.prototype=new b,h.prototype.options={},h.prototype.getImages=function(){this.images=[];for(var a=0,b=this.elements.length;b>a;a++){var c=this.elements[a];'IMG'===c.nodeName&&this.addImage(c);var d=c.nodeType;if(d&&(1===d||9===d||11===d))for(var e=c.querySelectorAll('img'),f=0,g=e.length;g>f;f++){var h=e[f];this.addImage(h)}}},h.prototype.addImage=function(a){var b=new i(a);this.images.push(b)},h.prototype.check=function(){function a(a,e){return b.options.debug&&m&&l.log('confirm',a,e),b.progress(a),c++,c===d&&b.complete(),!0}var b=this,c=0,d=this.images.length;if(this.hasAnyBroken=!1,!d)return this.complete(),void 0;for(var e=0;d>e;e++){var f=this.images[e];f.on('confirm',a),f.check()}},h.prototype.progress=function(a){this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded;var b=this;setTimeout(function(){b.emit('progress',b,a),b.jqDeferred&&b.jqDeferred.notify&&b.jqDeferred.notify(b,a)})},h.prototype.complete=function(){var a=this.hasAnyBroken?'fail':'done';this.isComplete=!0;var b=this;setTimeout(function(){if(b.emit(a,b),b.emit('always',b),b.jqDeferred){var c=b.hasAnyBroken?'reject':'resolve';b.jqDeferred[c](b)}})},k&&(k.fn.imagesLoaded=function(a,b){var c=new h(this,a,b);return c.jqDeferred.promise(k(this))}),i.prototype=new b,i.prototype.check=function(){var a=o[this.img.src]||new j(this.img.src);if(a.isConfirmed)return this.confirm(a.isLoaded,'cached was confirmed'),void 0;if(this.img.complete&&void 0!==this.img.naturalWidth)return this.confirm(0!==this.img.naturalWidth,'naturalWidth'),void 0;var b=this;a.on('confirm',function(a,c){return b.confirm(a.isLoaded,c),!0}),a.check()},i.prototype.confirm=function(a,b){this.isLoaded=a,this.emit('confirm',this,b)};var o={};return j.prototype=new b,j.prototype.check=function(){if(!this.isChecked){var a=new Image;d.bind(a,'load',this),d.bind(a,'error',this),a.src=this.src,this.isChecked=!0}},j.prototype.handleEvent=function(a){var b='on'+a.type;this[b]&&this[b](a)},j.prototype.onload=function(a){this.confirm(!0,'onload'),this.unbindProxyEvents(a)},j.prototype.onerror=function(a){this.confirm(!1,'onerror'),this.unbindProxyEvents(a)},j.prototype.confirm=function(a,b){this.isConfirmed=!0,this.isLoaded=a,this.emit('confirm',this,b)},j.prototype.unbindProxyEvents=function(a){d.unbind(a.target,'load',this),d.unbind(a.target,'error',this)},h}),define('places-autocomplete',['jquery','url','jive/json-security'],function(a,b){function c(c,d,e,f,g,h,i,j,k){var l=this,m=b.v2Url('/places/types/ordered'),n=b.v2Url('/places/search/');this.showDetail='true',this.query=c,this.resultFilterBeanName=d,this.allowedContainerIds=e,this.rootContainerID=f,this.rootContainerType=g,this.target=h,this.clickStrategy=i,this.showDescription=j,this.noResultsText=k;var o;a('.search-results-scrollable').scroll(function(){l.doScroll(a(this))}),this.addListEntries=function p(b,c){for(var d=0;d<b.length;d++){var e=b[d],f=a('<li class=\'clearfix\' id=\''+e.objectType+'_'+e.ID+'\'></li>');f.append(this.createObjectLink(e)),c.append(f),c.removeClass('j-striped'),c.find('li:even').addClass('j-striped')}},this.createObjectLink=function q(b){var c;if('true'==b.disabledPlace)c=a('<span></span>');else{var d='true'==this.showDetail?'jivecontainerTT-hover-container':'';c=a(b.onClickJs&&b.onClickJs.length>0?'<a href=\'#\' class=\''+d+' no-underline\' onclick=\''+b.onClickJs+'\'); return false;\'></a>':'<a href=\''+b.objectURL+'\' class=\''+d+' no-underline\'></a>')}var e=a('<span class=\'jive-places-name\'></span>');e.text(b.name);var f=a('<span class=\'jive-icon-med '+b.iconCssClass+'\'></span>');if(c.append(f),c.append(e),'true'==this.showDetail&&(c.bind('mouseover',function(){quickcontainersummary.getContainerTooltip(b.ID,b.objectType)}),c.mouseout(function(){quickcontainersummary.cancelTooltip()})),'true'==this.showDescription){var g=a('<span class=\'font-color-meta-light\'>'+b.description+'</span>');return a.merge(c,g)}return c},this.clearPlaces=function(){a(this.target).empty()},this.loadPlaces=function(b,c){this.addListEntries(b,a(c))},this.doLoadExternalPlaces=function(b){var c=b.placesCollection;c&&0!=c.length||a(this.target).append('<li>'+this.noResultsText+'</li>');for(var d=0;d<c.length;d++){var e;e=c[d].places instanceof Array?c[d].places:[c[d].places],l.loadPlaces(e,this.target)}},this.loadExternalPlaces=function(b){o||a.getJSON(m,function(a){o=a.placetype}),l.doLoadExternalPlaces(b)},this.doScroll=function(b){if(b[0].scrollHeight-b.scrollTop()==b.outerHeight()){var d=b.find('li').length;if(d%30==0){var e={};this.resultFilterBeanName&&(e.resultFilterBeanName=this.resultFilterBeanName),this.allowedContainerIds&&(e.allowedContainerIds=this.allowedContainerIds),this.rootContainerID&&(e.rootContainerID=this.rootContainerID),this.rootContainerType&&(e.rootContainerType=this.rootContainerType),d&&(e.startPos=d),this.maxReturned&&(e.maxReturned=this.maxReturned),this.clickStrategy&&(e.clickStrategy=this.clickStrategy),a.getJSON(n+c,e,function(b){a.each(b.placesCollection,function(a,b){l.loadPlaces(b.places,l.target)})})}}}}return c}),define('apps/activity_stream/models/fill_in_the_gap_request',['Class'],function(a){return a.extend({init:function(a){this.originalIDs=a.originalIDs,this.timestamp=a.timestamp,this.fullContent=a.fullContent,this.pageSize=a.pageSize}})}),define('apps/activity_stream/models/full_replies_request',['Class'],function(a){return a.extend({init:function(a){this.originalIDs=a.originalIDs}})}),define('apps/activity_stream/models/activity_stream_source',['../../shared/models/rest_service','jiverscripts/conc/promise','jiverscripts/conc/observable','./fill_in_the_gap_request','./full_replies_request','./rtc_source'],function(a,b,c){return a.extend(function(a){a.resourceType='activity-stream',a.pluralizedResourceType=a.resourceType,c(this),this.initializeView=function(c,d,e,f,g,h,i){var j=this.RESOURCE_ENDPOINT+'/initializeView',k={objectType:g||3,objectID:h||window._jive_current_user.ID,streamSource:c,streamID:d||0,streamChannel:e||('all'==c?'discovery':'recent'),filterType:f||['all'],timestamp:0};return a.displayGenericErrorMessages=!1,i||(i=new b),this.commonAjaxRequest(i,'POST',{url:j,data:JSON.stringify(k)}).addErrback(function(a,b){401!=b&&403!=b&&4026!=b&&0!==b||location.reload()}).always(function(){a.displayGenericErrorMessages=!0})},this.list=function(c,d){var e=this.RESOURCE_ENDPOINT+'/list';return a.displayGenericErrorMessages=!1,d||(d=new b),this.commonAjaxRequest(d,'POST',{url:e,data:JSON.stringify(c)}).addErrback(function(a,b){401!=b&&403!=b&&4026!=b&&0!==b||location.reload()}).always(function(){a.displayGenericErrorMessages=!0})},this.getMore=function(a){var c=this.RESOURCE_ENDPOINT+'/list/before';return this.commonAjaxRequest(new b,'POST',{url:c,data:JSON.stringify(a)})},this.saveActiveStreamTab=function(a){var c=this.RESOURCE_ENDPOINT+'/activetab/save';return this.commonAjaxRequest(new b,'POST',{url:c,data:a})},this.saveActiveStreamFilter=function(a,c){var d=this.RESOURCE_ENDPOINT+'/activefilter/save/'+a;return this.commonAjaxRequest(new b,'POST',{url:d,data:c})},this.saveActiveCommunicationsItem=function(a,c){var d=this.RESOURCE_ENDPOINT+'/activeitem/save/'+a+'/'+c;return this.commonAjaxRequest(new b,'POST',{url:d})},this.saveRefreshTime=function(a){var c=this.RESOURCE_ENDPOINT+'/refreshtime/save';return this.commonAjaxRequest(new b,'POST',{url:c,data:a})},this.newCount=function(){var a=encodeURIComponent(window.location.pathname.split("/").pop()),c=this.RESOURCE_ENDPOINT+'/new/count'+(a?'?currentPage='+a:'');return this.commonAjaxRequest(new b,'GET',{url:c})},this.getFullContent=function(a,c,d,e){var f=new b,g={url:this.RESOURCE_ENDPOINT+'/fullcontent/'+a+'/'+c};return 1150305777==a&&(g.url=this.RESOURCE_ENDPOINT+'/acclaim'),void 0!=d&&void 0!=e&&e!=window._jive_effective_user_id&&(g.data={sr:d,ru:e}),this.commonAjaxRequest(f,'GET',g)},this.getFullReplies=function(a,c,d){var e=this.RESOURCE_ENDPOINT+'/fullreplies/'+a+'/'+c;return this.commonAjaxRequest(new b,'POST',{url:e,data:JSON.stringify(d)},d)},this.fillInTheGaps=function(a,c,d){var e=new b,f=this.RESOURCE_ENDPOINT+'/fillinthegaps/'+a+'/'+c;return this.commonAjaxRequest(e,'POST',{url:f,data:JSON.stringify(d)},d)},this.fillActivity=function(a,b,c,d){var e=this.RESOURCE_ENDPOINT+'/fillactivity/'+a+'/'+b;return this.commonAjaxRequest(d,'POST',{url:e,data:JSON.stringify(c)})},this.saveInboxViewType=function(a){var c=this.RESOURCE_ENDPOINT+'/inbox/viewtype/save';return this.commonAjaxRequest(new b,'POST',{url:c,data:a})},this.saveInboxListHeight=function(a){var c=this.RESOURCE_ENDPOINT+'/inbox/listheight/save';return this.commonAjaxRequest(new b,'POST',{url:c,data:JSON.stringify(a)})},this.getGlobalNavMenu=function(){var a=this.RESOURCE_ENDPOINT+'/global/nav/menu';return this.commonAjaxRequest(new b,'GET',{url:a})}})}),define('apps/activity_stream_builder/models/builder_services',['jquery','../../shared/models/rest_service','../../shared/controllers/switchboard','jiverscripts/conc/promise','vendor/jquery/plugins/jquery.ba-bbq'],function(a,b,c,d){return b.extend(function(b){b.resourceType='stream-config',b.pluralizedResourceType=b.resourceType,this.getInitialViewData=function(a){var b=this.RESOURCE_ENDPOINT+'/getInitialView';return this.commonAjaxRequest(new d,'POST',{url:b,data:a.selectedStreamID+''})},this.getActivityStreams=function(a,b){var c=this.RESOURCE_ENDPOINT+'/user/activity/streams';return void 0!=a&&void 0!=b&&(c+='/'+a+'/'+b),this.commonAjaxRequest(new d,'GET',{url:c})},this.getActivityStream=function(a){var b=this.RESOURCE_ENDPOINT+'/'+a;return this.commonAjaxRequest(new d,'GET',{url:b})},this.manageAssociations=function(b,e){var f=this.RESOURCE_ENDPOINT+'/user/associations/manage',g=new d,h=a.deparam.querystring().fromQ;e&&(f=a.param.querystring(f,e)),h&&(f=a.param.querystring(f,{fromQ:h}));for(var i=[],j={},k=0,l=b.length;l>k;k++)i.push({objectType:b[k].objectType,objectID:b[k].id}),j[b[k].objectType+'']||(j[b[k].objectType+'']={}),j[b[k].objectType+''][b[k].id+'']=b[k].itemStreamCounts;return g.addCallback(function(b){for(var d=0,e=b.length;e>d;d++){var f=b[d];if(f.addedRelationship)3==f.associatedObjectType&&f.associatedObjectID==window._jive_current_user.ID||c.emit('follow.user',a.extend({},{id:f.associatedObjectID})),c.emit('associations.create',f.addedRelationshipStreamViewBean.streamViewBean);else if(3!=f.associatedObjectType&&0==j[f.associatedObjectType+''][f.associatedObjectID+'']){var g={objectType:f.associatedObjectType,objectID:f.associatedObjectID};c.emit('follow.create',g)}}}),this.commonAjaxRequest(g,'POST',{url:f,data:JSON.stringify(i)})},this.createNewStream=function(a){var b=this.RESOURCE_ENDPOINT;return this.commonAjaxRequest(new d,'POST',{url:b,data:JSON.stringify(a.map(function(a){return{objectType:a.type,objectID:a.id}}))})},this.deleteStream=function(a,b){var d=this.RESOURCE_ENDPOINT+'/'+a;return b.addCallback(function(a){var b=a.deletedStream;c.emit('associations.destroy',b);for(var d=b.specifiedPlaces,e=0,f=d.length;f>e;e++){var g=d[e].type+'',h=d[e].id+'';if(1==d[e].prop.followInfo.streamsAssociatedBean.streamIDs.length){var i={objectType:g,objectID:h};c.emit('follow.destroy',i)}}}),this.commonAjaxRequest(b,'DELETE',{url:d})},this.modifyConfig=function(a){var b=this.RESOURCE_ENDPOINT+'/'+a.id+'/modify';return this.commonAjaxRequest(new d,'POST',{url:b,data:JSON.stringify({name:a.name,receiveEmails:a.receiveEmails,receiveMobile:a.receiveMobile,defaultStream:a.defaultStream})})},this.pinHomeNav=function(a,b,c){var d=this.RESOURCE_ENDPOINT+'/pinHomeNavView/'+c;this.commonAjaxRequest(b,'POST',{url:d,data:a})},this.addItemsToStream=function(b,d,e,f,g){var h=this.RESOURCE_ENDPOINT+'/'+e+'/objects';return g&&(h=a.param.querystring(h,g)),b.addCallback(function(b){c.emit('associations.create',b.streamViewBean);for(var d=0,e=b.addedRelationships.length;e>d;d++)c.emit('follow.user',a.extend({},{id:b.addedRelationships[d]}));for(var g=b.streamViewBean.specifiedPlaces,h=0,i=g.length;i>h;h++){var j=g[h].type+'',k=g[h].id+'';if(f[j]&&!f[j][k]){var l={objectType:j,objectID:k};c.emit('follow.create',l)}}}),this.commonAjaxRequest(b,'POST',{url:h,data:JSON.stringify(d.map(function(a){return{objectType:a.type,objectID:a.id}}))})},this.removeItemsFromStream=function(b,d,e,f,g){var h=this.RESOURCE_ENDPOINT+'/'+e+'/objects/remove';return g&&(h=a.param.querystring(h,g)),b.addCallback(function(a){c.emit('associations.destroy',a.streamViewBean);for(var b=a.streamViewBean.specifiedPlaces,d=0,e=b.length;e>d;d++){var g=b[d].type+'',h=b[d].id+'';if(f[g]&&1==f[g][h]){var i={objectType:g,objectID:h};c.emit('follow.destroy',i)}}}),this.commonAjaxRequest(b,'POST',{url:h,data:JSON.stringify(d.map(function(a){return{objectType:a.type,objectID:a.id}}))})},this.setItemAssociations=function(a,b,c,e,f){var g=new d;return c?this.addItemsToStream(g,a,b,e,f):this.removeItemsFromStream(g,a,b,e,f)},this.removeAllAssociations=function(b,e,f){var g=this.RESOURCE_ENDPOINT+'/'+b+'/'+e,h=new d;return f&&(g=a.param.querystring(g,f)),h.addCallback(function(){var a={objectType:b,objectID:e};c.emit('follow.destroy',a)}),this.commonAjaxRequest(h,'DELETE',{url:g})}})}),define('soy!jive.socialgroups.soy.joinConfirmation',['soyDeps'],function(a){return jive.namespace.call(this,'jive.socialgroups.soy'),jive.socialgroups.soy.joinConfirmation=function(b,c){var d=c||new soy.StringBuilder;return d.append(b.pendingApproval?'<div>'+soy.$$escapeHtml(a._i18n('a5fbad',[]))+'</div>':b.banned?'<div>'+soy.$$escapeHtml(a._i18n('5e34df',[]))+'</div>':'<div>'+soy.$$escapeHtml(a._i18n('4bafe7',[]))+'</div>'),c?'':d.toString()},jive.socialgroups.soy.joinConfirmation}),define('soy!jive.socialgroups.soy.leaveGroup',['soyDeps'],function(a){return jive.namespace.call(this,'jive.socialgroups.soy'),jive.socialgroups.soy.leaveGroup=function(b,c){var d=c||new soy.StringBuilder;return d.append('<div class="jive-modal jive-modal-medium" id="jive-modal-leave-group"><header>',b.pendingApproval?'<h2 class="jive-modal-title jive-modal-title-leave-group">'+soy.$$escapeHtml(a._i18n('5320bf',[]))+' '+soy.$$escapeHtml(b.groupName)+'</h2>':'<h2 class="jive-modal-title jive-modal-title-leave-group">'+soy.$$escapeHtml(a._i18n('6a3163',[]))+' '+soy.$$escapeHtml(b.groupName)+'</h2>','</header><label class="j-508-label" id="close-modal-508">',soy.$$escapeHtml(a._i18n('a94563',[])),'</label><a href="#" class="j-modal-close-top close" aria-labelledby="close-modal-508" title="',soy.$$escapeHtml(a._i18n('a94563',[])),'">',soy.$$escapeHtml(a._i18n('1ce366',[])),'  <span class="j-close-icon  j-ui-elem"></span></a><!-- Manage categories listing --><section class="jive-modal-content j-modal-content-text jive-modal-leave-group clearfix">',b.canLeaveSocialGroup?(b.pendingApproval?'<h3>'+soy.$$escapeHtml(a._i18n('feabc3',[b.groupName]))+'</h3>'+(b.requiresApproval?'<p>'+soy.$$escapeHtml(b.leaveI18n)+'</p>':''):'<h3>'+soy.$$escapeHtml(a._i18n('bd9470',[b.groupName]))+'</h3>'+(b.requiresApproval?'<p>'+soy.$$escapeHtml(b.leaveI18n)+'</p>':'')+'<p>'+soy.$$escapeHtml(a._i18n('b957ba',[]))+'</p>')+'<div class="jive-form-buttons"><button type="button" class="j-btn-callout" id="group-leave-submit">'+soy.$$escapeHtml(a._i18n('dc4916',[]))+'</button><button type="button" class="jive-modal-close close">'+soy.$$escapeHtml(a._i18n('889192',[]))+'</button></div>':b.onlyOneOwner?'<p>'+soy.$$escapeHtml(a._i18n('ef77c8',[]))+'</p><p>'+soy.$$escapeHtml(a._i18n('dcd2f0',[]))+'</p><div class="jive-form-buttons"><button type="button" class="jive-modal-close close">'+soy.$$escapeHtml(a._i18n('889192',[]))+'</button></div>':soy.$$escapeHtml(a._i18n('1711b8',[])),'</section></div>'),c?'':d.toString()},jive.socialgroups.soy.leaveGroup}),define('soy!jive.socialgroups.soy.leaveConfirmation',['soyDeps'],function(a){return jive.namespace.call(this,'jive.socialgroups.soy'),jive.socialgroups.soy.leaveConfirmation=function(b,c){var d=c||new soy.StringBuilder;return d.append(b.pendingApproval?'<div>'+soy.$$escapeHtml(a._i18n('a21459',[]))+'</div>':'<div>'+soy.$$escapeHtml(a._i18n('b01754',[]))+'</div>'),c?'':d.toString()},jive.socialgroups.soy.leaveConfirmation}),define('soy!jive.socialgroups.soy.renderError',['soyDeps','soy!jive.error.rest.soy.errorFinding'],function(a){return jive.namespace.call(this,'jive.socialgroups.soy'),jive.socialgroups.soy.renderError=function(b,c){var d=c||new soy.StringBuilder;switch(b.code){case 4026:d.append('<p>',soy.$$escapeHtml(a._i18n('073cec',[])),'</p>');break;case 4008:d.append('<p>',soy.$$escapeHtml(a._i18n('fc6a40',[])),'</p>');break;default:b.message?d.append('<p>',soy.$$escapeHtml(b.message),'</p>'):jive.error.rest.soy.errorFinding(b,d)}return c?'':d.toString()},jive.socialgroups.soy.renderError}),define('apps/socialgroup/membership/views/membership_view',['jquery','url','jiverscripts/oo/class','jiverscripts/conc/observable','soy!jive.socialgroups.soy.joinConfirmation','soy!jive.socialgroups.soy.leaveGroup','soy!jive.socialgroups.soy.leaveConfirmation','soy!jive.socialgroups.soy.renderError','jquery-plugin/jquery.lightbox_me','jive/namespace'],function(a,b,c,d){return jive.namespace('MembershipApp'),jive.MembershipApp.MembershipView=c.extend(function(c){function e(a){return window.location.href.replace(/\?(.*&)?qstep=(\d+)/,function(b,c,d){var e=parseInt(d)+a;return'?'+c+'qstep='+e})}var f='browse',g='landing';d(this),this.init=function(b,c,d){var e=this;this.joinContainer=b,this.leaveContainer=c,this.options=d||{};var h='objectID'in d?g:f;this.isPage=function(a){return h===a},a(document).ready(function(){e.isPage(g)?(a(document).delegate(e.joinContainer,'click',function(b){e.joinGroup(a(this)),b.preventDefault()}),a(document).delegate(e.leaveContainer,'click',function(b){e.displayLeaveGroupModal(a(this)),b.preventDefault()})):a('body').on('click','.sgroup-join, .sgroup-leave',function(b){b.preventDefault();var c=a(this);c.is('.sgroup-join')?e.joinGroup(c):e.displayLeaveGroupModal(c)})})},this.joinGroup=function(b){var c=this,d=c.determineObjectID(b);c.emitP('join',d).addCallback(function(d){var f=a.noop;c.isPage(g)?(d.banned||(a(c.leaveContainer).show(),a(c.joinContainer).hide()),f=function(){window.location.href.match(/\?(.*&)?qstep=(\d+)/)&&d.memberToContribute?window.location=e(1):c.options.redirectOnJoin?window.location=c.options.redirectOnJoin:window.location.reload()}):(a(b).closest('.j-thumb-back, .j-td-follow-action').find('a.sgroup-leave').show(),a(b).hide()),c.displayMessage(jive.socialgroups.soy.joinConfirmation(d),f),a('#jive-link-socialgroup-startFollowing').hide(),a('#jive-link-socialgroup-following').show()}).addErrback(function(a,b){console.log('got error message: '+a+' code: '+b),c.displayError(a,b)})},this.displayLeaveGroupModal=function(b){var c=this,d=c.determineObjectID(b);c.emitP('prepareLeave',d).addCallback(function(d){var e=a(jive.socialgroups.soy.leaveGroup(d));a('body').append(e);var f=a('body').find('#jive-modal-leave-group');f.lightbox_me({closeSelector:'.jive-modal-close, .close',destroyOnClose:!0}),f.find('#group-leave-submit').click(function(){c.leaveGroup(b,d),f.trigger('close')})}).addErrback(function(a,b){c.displayError(a,b)})},this.leaveGroup=function(c,d){var f=this,h=f.determineObjectID(c);f.emitP('leave',h).addCallback(function(){var h=a.noop;f.isPage(g)?(a('#jive-link-socialgroup-following').hide(),a('#jive-link-socialgroup-startFollowing').show(),h=function(){d.visibleAfterLeaving?d.memberToContribute?window.location=e(-1):window.location.reload():window.location=b.baseUrl('groups')}):(a(c).closest('.j-thumb-back, .j-td-follow-action').find('a.sgroup-join').show(),a(c).hide()),f.displayMessage(jive.socialgroups.soy.leaveConfirmation(d),h)}).addErrback(function(a,b){f.displayError(a,b)})},this.displayMessage=function(b,c){a('<p />').html(b).message({style:'success',dismissCallback:c||a.noop})},this.displayError=function(b,c){var d=jive.socialgroups.soy.renderError({message:b,code:c,href:window.location.href});a(d).message({style:'error',showClose:!0})},this.determineObjectID=function(a){var b=this.options.objectID||a.attr('data-objectid')||0;return parseInt(b,10)},this.tearDown=function(){var b=this;b.isPage(g)?(a(b.joinContainer).off('click'),a(b.leaveContainer).off('click')):(a('.sgroup-join').off('click'),a('.sgroup-leave').off('click'))}}),jive.MembershipApp.MembershipView}),define('apps/socialgroup/membership/models/membership_source',['jquery','../../../shared/models/rest_service','jiverscripts/conc/promise','vendor/jquery/plugins/jquery.ba-bbq','jive/namespace'],function(a,b,c){return jive.namespace('MembershipApp'),jive.MembershipApp.MembershipSource=b.extend(function(b){b.resourceType='socialgroup',this.save=function(b){var d=new c,e=this,f=a.deparam.querystring().fromQ;return a.ajax({type:'POST',url:this.RESOURCE_ENDPOINT+'/'+b.objectID+'/members',dataType:'json',data:f,contentType:'application/json; charset=utf-8',success:function(a,b,c){d.emitSuccess(a)},error:function(b,c,e){try{var f=a.parseJSON(b.responseText);f&&f.error&&f.error.message&&d.emitError(f.error.message,f.error.code)}catch(g){d.emitError(null,b&&b.status)}}}),d},this.get=function(b){var d=new c,e=this,f={};return f[this.resourceType]=b,a.ajax({type:'GET',url:this.RESOURCE_ENDPOINT+'/'+b.objectID+'/memberInfo',dataType:'json',success:function(a,b,c){d.emitSuccess(a)},error:function(b,c,e){try{var f=a.parseJSON(b.responseText);f&&f.error&&f.error.message&&d.emitError(f.error.message,f.error.code)}catch(g){d.emitError(null,b&&b.status)}}}),d},this.destroy=function(b){var d=new c;return a.ajax({type:'DELETE',url:this.RESOURCE_ENDPOINT+'/'+b.objectID+'/members',success:function(){d.emitSuccess()},error:function(b){try{var c=a.parseJSON(b.responseText);c&&c.error&&c.error.message&&d.emitError(c.error.message,c.error.code)}catch(e){d.emitError(null,b&&b.status)}}}),d}}),jive.MembershipApp.MembershipSource}),define('apps/socialgroup/membership/main',['jiverscripts/oo/class','apps/shared/controllers/switchboard','./views/membership_view','./models/membership_source','jive/namespace'],function(a,b,c,d){return jive.namespace('MembershipApp'),jive.MembershipApp.Main=a.extend(function(a){this.init=function(a){var e=this;this.membershipSource=new d(a),this.membershipView=new c('#jive-link-joinSocialGroup,.jive-link-joinSocialGroup','#jive-link-leaveSocialGroup,.jive-link-leaveSocialGroup',a),this.membershipView.addListener('join',function(a,c){e.membershipSource.save({objectID:a}).addCallback(function(a){c.emitSuccess(a),b.emit('sgroup.member.join',a)}).addErrback(function(a,b){console.log('got a err in main.js'),c.emitError(a,b)})}).addListener('leave',function(a,c){e.membershipSource.destroy({objectID:a}).addCallback(function(){b.emit('sgroup.member.leave',a),c.emitSuccess()}).addErrback(function(a,b){
console.log('got a err in main.js'),c.emitError(a,b)})}).addListener('prepareLeave',function(a,b){e.membershipSource.get({objectID:a}).addCallback(function(a){b.emitSuccess(a)}).addErrback(function(a,c){console.log('got a err in main.js'),b.emitError(a,c)})})},this.tearDown=function(){this.membershipView.removeListener('join').removeListener('leave').removeListener('prepareLeave').tearDown()}}),jive.MembershipApp.Main}),define('jive/bundles/common',['lib/core_ext/array','lib/core_ext/function','lib/core_ext/string','ajax_error_handler','content/create','eventEmitter/EventEmitter','eventie/eventie','form2js/form2js','form2js/jquery.toObject','form2js/js2form','main','libRange','osapi','touchevents-fix','wistia','date/formatRelative','breadcrumb','i18nbundle!','application/base_page_controller','application/base_view','application/common','application/config','application/constants','application/default_click_handler','application/messaging','application/native_shims','application/pageManager','application/view_loader','apps/content/common/validator','apps/shared/models/location_state','apps/shared/views/tab_view','apps/usergrouppicker/main','apps/video/channel','apps/getVideoDataAndRender','apps/outcomes/eventShim','apps/tile/async/tile_view','apps/tile/async/video_tile_view','apps/tile/async/tile_data_source','apps/tile/html_tile_connector','apps/trial/views/trial_help_view','jive','jive/acclaim','jive/app','jive/app/alert/views/blocking_alert_view','jive/app/app-feature-disabled','jive/app/configure/models/configure_model','jive/app/configure/views/configure_view','jive/app/configure/views/error','jive/app/configure/views/msgposter','jive/app/configure/views/serviceblocks','jive/app/configure/views/validate','jive/app/container','jive/app/containerDeferred','jive/app/core_container/common_container','jive/app/core_container/event_relay','jive/app/core_container/main','jive/app/core_container/models/appscontainer_model','jive/app/core_container/models/coreapi_model','jive/app/core_container/navigate_app','jive/app/core_container/shared','jive/app/core_container/site_data','jive/app/core_container/token_provider','jive/app/core_container/views/appscontainer_view','jive/app/core_container/views/embedded_view','jive/app/core_container/views/modal_comment_provider','jive/app/core_container/views/modal_view','jive/app/core_container/views/modalCommentProviderSingleton','jive/app/credentials/main','jive/app/credentials/models/credentials_model','jive/app/credentials/views/credentials_form','jive/app/oauth/main','jive/app/oauth/views/gadgets-oauth-popup','jive/app/oauth/views/oauthoverlay','jive/app/oauth/views/oauthpopup','jive/app/preferences/main','jive/app/preferences/models/preferences_model','jive/app/preferences/views/preferences_view_default','jive/app/syntheticContainerDeferred','jive/author-by-email','jive/autoscroll','jive/card','jive/comment_app','jive/deferred_module','jive/discussionApp','jive/dispatcher','jive/ext/x/x_core','jive/ext/x/x_event','jive/ext/x/x_timer','jive/ext/y/y_ajax','jive/ext/y/y_core','jive/i18n','jive/json-security','jive/promise_util','jive/responsive','jive/search/search-date','jive/search/search-metrics','jive/search/search-metrics-query','jive/share','jive/soy/helpers/bindLightboxMedia','jive/soy/helpers/substitute','jive/util','jive/xhr_stack','soy!jive.place.renderActivityPageTiles','soy!jive.announcements.announcementCard','soy!jive.announcements.buildIconByType','soy!jive.apps.alerts.renderAppHalt','soy!jive.apps.alerts.renderDevError','soy!jive.apps.configure.renderAppDataErrorMessage','soy!jive.apps.configure.renderConfigureApp','soy!jive.apps.configure.renderConfigureAppNotNeeded','soy!jive.apps.configure.renderConfigureCredentialBlocks','soy!jive.apps.configure.renderCredentials','soy!jive.apps.configure.renderServicesSection','soy!jive.apps.container.appModalHeader','soy!jive.apps.container.blockingAlertView','soy!jive.apps.container.canvasConfigurationModal','soy!jive.apps.container.chromeApp','soy!jive.apps.container.renderMessage','soy!jive.apps.container.unavailableAppView','soy!jive.apps.preferences.prefBool','soy!jive.apps.preferences.prefSelect','soy!jive.apps.preferences.renderAppDataErrorMessage','soy!jive.apps.preferences.renderNoPreferences','soy!jive.apps.preferences.renderPreferences','soy!jive.authentication.sourceForm','soy!jive.browse.user.labelDot','soy!jive.CommentApp.soy.outcomeAttachment','soy!jive.CommentApp.soy.outcomeAttachmentMenu','soy!jive.CommentApp.soy.renderReply','soy!jive.content.draft','soy!jive.content.draftDeleteButtonLabel','soy!jive.content.draftlastsaved','soy!jive.content.draftRecoverButtonLabel','soy!jive.content.drafts','soy!jive.content.progressbar','soy!jive.DiscussionApp.soy.replyErrorMessage','soy!jive.DiscussionApp.soy.rteMsgQuote','soy!jive.discussions.soy.qCorrectAnswer','soy!jive.discussions.soy.qDisplayInlineAnswers','soy!jive.discussions.soy.qDisplayInlineCorrectAnswer','soy!jive.discussions.soy.qDisplayQuestionStateMessage','soy!jive.discussions.soy.qMarkAsCorrect','soy!jive.discussions.soy.qQuestionAssumedAnswered','soy!jive.discussions.soy.qQuestionNotAnswered','soy!jive.discussions.soy.qQuestionResolved','soy!jive.discussions.soy.qUnmarkAsCorrect','soy!jive.autosearch.resultSection','soy!jive.error.form.actionErrors','soy!jive.error.form.actionMessageList','soy!jive.error.form.fieldError','soy!jive.error.form.fieldErrors','soy!jive.i18n.keys.appframeworkAppConfigureCancel','soy!jive.i18n.keys.appframeworkAppConfigureFailure','soy!jive.i18n.keys.appframeworkAppConfigureSuccess','soy!jive.i18n.keys.appframeworkAppDevelopmentRefresh','soy!jive.i18n.keys.appsadminConfirmationWarningMessage','soy!jive.i18n.keys.attachErrBadContentTypeText','soy!jive.i18n.keys.attachErrFileTooLargeText','soy!jive.i18n.keys.attachErrTooManyAttchmtsText','soy!jive.i18n.keys.attachErrUploadErrorsText','soy!jive.i18n.keys.cmntNameRequiredText','soy!jive.i18n.keys.contentValidationAny','soy!jive.i18n.keys.contentValidationEmail','soy!jive.i18n.keys.contentValidationMax','soy!jive.i18n.keys.contentValidationMin','soy!jive.i18n.keys.contentValidationNumber','soy!jive.i18n.keys.contentValidationRequired','soy!jive.i18n.keys.contentValidationUrl','soy!jive.i18n.keys.errorGeneral','soy!jive.i18n.keys.forumPostSaveAndEditText','soy!jive.i18n.keys.forumThrdEmailRequiredText','soy!jive.i18n.keys.forumThrdNameRequiredText','soy!jive.i18n.keys.globalAjaxError','soy!jive.i18n.keys.globalContainer','soy!jive.i18n.keys.globalDatepickerNext','soy!jive.i18n.keys.globalDatepickerPrev','soy!jive.i18n.keys.globalSaved','soy!jive.i18n.keys.globalUndefinedType','soy!jive.i18n.keys.globalUnsavedChangesText','soy!jive.i18n.keys.outcomesErrorMissing','soy!jive.i18n.keys.postAlwaysUseThisEditorTab','soy!jive.i18n.keys.postErrPlsEnterBodyText','soy!jive.i18n.keys.rteEditDisabled','soy!jive.i18n.keys.rteEditDisabledDesc','soy!jive.i18n.keys.rteToggleDisplay','soy!jive.i18n.keys.tinymceJivementionRestrictedContent','soy!jive.i18n.keys.tinymceJivementionSecretGroup','soy!jive.imagelinks.imageLink','soy!jive.integration.backgroundImage','soy!jive.integration.tiles.edit.errorEditing','soy!jive.integration.tiles.view.addMarker','soy!jive.integration.tiles.view.disabled','soy!jive.integration.tiles.view.list','soy!jive.integration.tiles.view.render','soy!jive.integration.tiles.view.status','soy!jive.integration.tiles.view.statusIcon','soy!jive.integration.tiles.view.tile','soy!jive.nav.menu.create.quick','soy!jive.nav.menu.home.inbox','soy!jive.outcomes.badge.badgeRaw','soy!jive.outcomes.helpful.displayHelpfulCounts','soy!jive.outcomes.helpful.msgHelpfulCount','soy!jive.outcomes.summary.textCountBadge','soy!jive.people.profile.followCounts','soy!jive.people.profile.followingAssociatedStreamCount','soy!jive.people.profile.followLink','soy!jive.people.profile.friendListChooser','soy!jive.people.profile.friendListChooserLabel','soy!jive.publishbar.containerLink','soy!jive.publishbar.containerList','soy!jive.publishbar.placeSearchResults','soy!jive.search.result.contentResult','soy!jive.shared.displayutil.renderGuestDisplayName','soy!jive.shared.displayutil.renderIconElement','soy!jive.shared.displayutil.renderIconElementAttrs','soy!jive.shared.displayutil.userDisplayName','soy!jive.shared.form.datepicker','soy!jive.shared.form.datepickerHelper','soy!jive.shared.formwaiting.formWaitingOverlay','soy!jive.shared.soy.escapeHelper','soy!jive.shared.soy.getCountTextByType','soy!jive.shared.soy.modal','soy!jive.shared.soy.render','soy!jive.shared.soy.resourceInlineJs','soy!jive.slides.slide','soy!jive.socialTasks.schedulerModal','soy!jive.soy.direct_messaging.notRelated','soy!jive.soy.share.alreadySharedToPlace','soy!jive.soy.share.attachmentLinks','soy!jive.soy.share.emailLinks','soy!jive.soy.share.extendedShare','soy!jive.soy.share.listWithoutPermission','soy!jive.soy.share.secretGroupMessage','soy!jive.soy.share.share','soy!jive.soy.share.shareConfirmation','soy!jive.soy.share.shareToPlaceAccessInfo','soy!jive.soy.share.usersNotRelated','soy!jive.soy.share.userWithoutPermission','soy!jive.tags.autocomplete.popularTags','soy!jive.tags.autocomplete.tagBadge','soy!jive.tags.autocomplete.tagCloud','soy!jive.tags.autocomplete.tagList','soy!jive.tags.autocomplete.tagListItem','soy!jive.theme.widget.backgroundRepeatWidget','soy!jive.theme.widget.colorInput','soy!jive.theme.widget.file','soy!jive.theme.widget.fileComplete','soy!jive.theme.widget.fileDefault','soy!jive.theme.widget.fileUploading','soy!jive.tilepage.mobile.homePageDynamicPane','soy!jive.trial.renderProgressTip','soy!jive.user.registration.addressInput','soy!jive.user.registration.booleanInput','soy!jive.user.registration.dateInput','soy!jive.user.registration.drawCaptcha','soy!jive.user.registration.errorsContainer','soy!jive.user.registration.humanValidationInput','soy!jive.user.registration.largeTextInput','soy!jive.user.registration.selectInput','soy!jive.user.registration.termsAndConditionsInput','soy!jive.user.registration.textInput','soy!jive.welcome.updateIndicator','soy!jive.eae.common.groupedUsers','soy!jive.eae.notificationqueue.item.eventUpdateNotification','imagesloaded','places-autocomplete','apps/activity_stream/activity_notifier','apps/activity_stream/models/activity_stream_source','apps/activity_stream_builder/models/builder_services','apps/socialgroup/membership/main']);
//# sourceMappingURL=main.js.map