Created
September 9, 2019 20:58
-
-
Save thiagomeireless/41d438f94ee83ab3b12003e54072d017 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*! For license information please see platform_js_sdk-471dd6eaf37bc7531b3e.js.LICENSE */ | |
| !function(e){var t=window.webpackJsonp;window.webpackJsonp=function(n,i,a){for(var o,s,u=0,d=[];u<n.length;u++)s=n[u],r[s]&&d.push(r[s][0]),r[s]=0;for(o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o]);for(t&&t(n,i,a);d.length;)d.shift()()};var n={},r={31:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=r[e];if(0===t)return new Promise(function(e){e()});if(t)return t[2];var n=new Promise(function(n,i){t=r[e]=[n,i]});t[2]=n;var a=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.timeout=12e4,i.nc&&o.setAttribute("nonce",i.nc),o.src=i.p+""+({0:"gql_created_message_entity",1:"gql_user_feed_entity",2:"gql_realtime_message_entity",3:"gql_inbox_feed_entity",4:"gql_group_feed_entity",5:"gql_fetch_thread_entity",6:"gql_discovery_feed_entity",7:"gql_all_feed_entity"}[e]||e)+"-"+{0:"fc1c9abb117e72891ed1",1:"729b5df9d90b223e97ef",2:"0594b078203d119a69df",3:"4e5170beb3aae0317e53",4:"1aab02b269c342cf184d",5:"5a00413630f7e90f7fc5",6:"fd7c3f3a76a6427200f0",7:"0e2dc69932001a11921f"}[e]+".js";var s=setTimeout(u,12e4);function u(){o.onerror=o.onload=null,clearTimeout(s);var t=r[e];0!==t&&(t&&t[1](new Error("Loading chunk "+e+" failed.")),r[e]=void 0)}return o.onerror=o.onload=u,a.appendChild(o),n},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="https://s0-azure.assets-yammer.com/assets/",i.oe=function(e){throw console.error(e),e},i(i.s=2006)}({0:function(e,t,n){var r;(function(){var n=this,i=n._,a=Array.prototype,o=Object.prototype,s=Function.prototype,u=a.push,d=a.slice,c=o.toString,l=o.hasOwnProperty,f=Array.isArray,p=Object.keys,h=s.bind,g=Object.create,m=function(){},_=function(e){return e instanceof _?e:this instanceof _?void(this._wrapped=e):new _(e)};void 0!==e&&e.exports&&(t=e.exports=_),t._=_,_.VERSION="1.8.3";var y=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,a){return e.call(t,n,r,i,a)}}return function(){return e.apply(t,arguments)}},v=function(e,t,n){return null==e?_.identity:_.isFunction(e)?y(e,t,n):_.isObject(e)?_.matcher(e):_.property(e)};_.iteratee=function(e,t){return v(e,t,1/0)};var b=function(e,t){return function(n){var r=arguments.length;if(r<2||null==n)return n;for(var i=1;i<r;i++)for(var a=arguments[i],o=e(a),s=o.length,u=0;u<s;u++){var d=o[u];t&&void 0!==n[d]||(n[d]=a[d])}return n}},w=function(e){if(!_.isObject(e))return{};if(g)return g(e);m.prototype=e;var t=new m;return m.prototype=null,t},T=function(e){return function(t){return null==t?void 0:t[e]}},E=Math.pow(2,53)-1,I=T("length"),O=function(e){var t=I(e);return"number"==typeof t&&t>=0&&t<=E};function S(e){return function(t,n,r,i){n=y(n,i,4);var a=!O(t)&&_.keys(t),o=(a||t).length,s=e>0?0:o-1;return arguments.length<3&&(r=t[a?a[s]:s],s+=e),function(t,n,r,i,a,o){for(;a>=0&&a<o;a+=e){var s=i?i[a]:a;r=n(r,t[s],s,t)}return r}(t,n,r,a,s,o)}}_.each=_.forEach=function(e,t,n){var r,i;if(t=y(t,n),O(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var a=_.keys(e);for(r=0,i=a.length;r<i;r++)t(e[a[r]],a[r],e)}return e},_.map=_.collect=function(e,t,n){t=v(t,n);for(var r=!O(e)&&_.keys(e),i=(r||e).length,a=Array(i),o=0;o<i;o++){var s=r?r[o]:o;a[o]=t(e[s],s,e)}return a},_.reduce=_.foldl=_.inject=S(1),_.reduceRight=_.foldr=S(-1),_.find=_.detect=function(e,t,n){var r;if(void 0!==(r=O(e)?_.findIndex(e,t,n):_.findKey(e,t,n))&&-1!==r)return e[r]},_.filter=_.select=function(e,t,n){var r=[];return t=v(t,n),_.each(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r},_.reject=function(e,t,n){return _.filter(e,_.negate(v(t)),n)},_.every=_.all=function(e,t,n){t=v(t,n);for(var r=!O(e)&&_.keys(e),i=(r||e).length,a=0;a<i;a++){var o=r?r[a]:a;if(!t(e[o],o,e))return!1}return!0},_.some=_.any=function(e,t,n){t=v(t,n);for(var r=!O(e)&&_.keys(e),i=(r||e).length,a=0;a<i;a++){var o=r?r[a]:a;if(t(e[o],o,e))return!0}return!1},_.contains=_.includes=_.include=function(e,t,n,r){return O(e)||(e=_.values(e)),("number"!=typeof n||r)&&(n=0),_.indexOf(e,t,n)>=0},_.invoke=function(e,t){var n=d.call(arguments,2),r=_.isFunction(t);return _.map(e,function(e){var i=r?t:e[t];return null==i?i:i.apply(e,n)})},_.pluck=function(e,t){return _.map(e,_.property(t))},_.where=function(e,t){return _.filter(e,_.matcher(t))},_.findWhere=function(e,t){return _.find(e,_.matcher(t))},_.max=function(e,t,n){var r,i,a=-1/0,o=-1/0;if(null==t&&null!=e)for(var s=0,u=(e=O(e)?e:_.values(e)).length;s<u;s++)(r=e[s])>a&&(a=r);else t=v(t,n),_.each(e,function(e,n,r){((i=t(e,n,r))>o||i===-1/0&&a===-1/0)&&(a=e,o=i)});return a},_.min=function(e,t,n){var r,i,a=1/0,o=1/0;if(null==t&&null!=e)for(var s=0,u=(e=O(e)?e:_.values(e)).length;s<u;s++)(r=e[s])<a&&(a=r);else t=v(t,n),_.each(e,function(e,n,r){((i=t(e,n,r))<o||i===1/0&&a===1/0)&&(a=e,o=i)});return a},_.shuffle=function(e){for(var t,n=O(e)?e:_.values(e),r=n.length,i=Array(r),a=0;a<r;a++)(t=_.random(0,a))!==a&&(i[a]=i[t]),i[t]=n[a];return i},_.sample=function(e,t,n){return null==t||n?(O(e)||(e=_.values(e)),e[_.random(e.length-1)]):_.shuffle(e).slice(0,Math.max(0,t))},_.sortBy=function(e,t,n){return t=v(t,n),_.pluck(_.map(e,function(e,n,r){return{value:e,index:n,criteria:t(e,n,r)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index}),"value")};var C=function(e){return function(t,n,r){var i={};return n=v(n,r),_.each(t,function(r,a){var o=n(r,a,t);e(i,r,o)}),i}};_.groupBy=C(function(e,t,n){_.has(e,n)?e[n].push(t):e[n]=[t]}),_.indexBy=C(function(e,t,n){e[n]=t}),_.countBy=C(function(e,t,n){_.has(e,n)?e[n]++:e[n]=1}),_.toArray=function(e){return e?_.isArray(e)?d.call(e):O(e)?_.map(e,_.identity):_.values(e):[]},_.size=function(e){return null==e?0:O(e)?e.length:_.keys(e).length},_.partition=function(e,t,n){t=v(t,n);var r=[],i=[];return _.each(e,function(e,n,a){(t(e,n,a)?r:i).push(e)}),[r,i]},_.first=_.head=_.take=function(e,t,n){if(null!=e)return null==t||n?e[0]:_.initial(e,e.length-t)},_.initial=function(e,t,n){return d.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},_.last=function(e,t,n){if(null!=e)return null==t||n?e[e.length-1]:_.rest(e,Math.max(0,e.length-t))},_.rest=_.tail=_.drop=function(e,t,n){return d.call(e,null==t||n?1:t)},_.compact=function(e){return _.filter(e,_.identity)};var A=function(e,t,n,r){for(var i=[],a=0,o=r||0,s=I(e);o<s;o++){var u=e[o];if(O(u)&&(_.isArray(u)||_.isArguments(u))){t||(u=A(u,t,n));var d=0,c=u.length;for(i.length+=c;d<c;)i[a++]=u[d++]}else n||(i[a++]=u)}return i};function k(e){return function(t,n,r){n=v(n,r);for(var i=I(t),a=e>0?0:i-1;a>=0&&a<i;a+=e)if(n(t[a],a,t))return a;return-1}}function N(e,t,n){return function(r,i,a){var o=0,s=I(r);if("number"==typeof a)e>0?o=a>=0?a:Math.max(a+s,o):s=a>=0?Math.min(a+1,s):a+s+1;else if(n&&a&&s)return r[a=n(r,i)]===i?a:-1;if(i!=i)return(a=t(d.call(r,o,s),_.isNaN))>=0?a+o:-1;for(a=e>0?o:s-1;a>=0&&a<s;a+=e)if(r[a]===i)return a;return-1}}_.flatten=function(e,t){return A(e,t,!1)},_.without=function(e){return _.difference(e,d.call(arguments,1))},_.uniq=_.unique=function(e,t,n,r){_.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=v(n,r));for(var i=[],a=[],o=0,s=I(e);o<s;o++){var u=e[o],d=n?n(u,o,e):u;t?(o&&a===d||i.push(u),a=d):n?_.contains(a,d)||(a.push(d),i.push(u)):_.contains(i,u)||i.push(u)}return i},_.union=function(){return _.uniq(A(arguments,!0,!0))},_.intersection=function(e){for(var t=[],n=arguments.length,r=0,i=I(e);r<i;r++){var a=e[r];if(!_.contains(t,a)){for(var o=1;o<n&&_.contains(arguments[o],a);o++);o===n&&t.push(a)}}return t},_.difference=function(e){var t=A(arguments,!0,!0,1);return _.filter(e,function(e){return!_.contains(t,e)})},_.zip=function(){return _.unzip(arguments)},_.unzip=function(e){for(var t=e&&_.max(e,I).length||0,n=Array(t),r=0;r<t;r++)n[r]=_.pluck(e,r);return n},_.object=function(e,t){for(var n={},r=0,i=I(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n},_.findIndex=k(1),_.findLastIndex=k(-1),_.sortedIndex=function(e,t,n,r){for(var i=(n=v(n,r,1))(t),a=0,o=I(e);a<o;){var s=Math.floor((a+o)/2);n(e[s])<i?a=s+1:o=s}return a},_.indexOf=N(1,_.findIndex,_.sortedIndex),_.lastIndexOf=N(-1,_.findLastIndex),_.range=function(e,t,n){null==t&&(t=e||0,e=0),n=n||1;for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),a=0;a<r;a++,e+=n)i[a]=e;return i};var x=function(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var a=w(e.prototype),o=e.apply(a,i);return _.isObject(o)?o:a};_.bind=function(e,t){if(h&&e.bind===h)return h.apply(e,d.call(arguments,1));if(!_.isFunction(e))throw new TypeError("Bind must be called on a function");var n=d.call(arguments,2),r=function(){return x(e,r,t,this,n.concat(d.call(arguments)))};return r},_.partial=function(e){var t=d.call(arguments,1),n=function(){for(var r=0,i=t.length,a=Array(i),o=0;o<i;o++)a[o]=t[o]===_?arguments[r++]:t[o];for(;r<arguments.length;)a.push(arguments[r++]);return x(e,n,this,this,a)};return n},_.bindAll=function(e){var t,n,r=arguments.length;if(r<=1)throw new Error("bindAll must be passed function names");for(t=1;t<r;t++)e[n=arguments[t]]=_.bind(e[n],e);return e},_.memoize=function(e,t){var n=function(r){var i=n.cache,a=""+(t?t.apply(this,arguments):r);return _.has(i,a)||(i[a]=e.apply(this,arguments)),i[a]};return n.cache={},n},_.delay=function(e,t){var n=d.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},_.defer=_.partial(_.delay,_,1),_.throttle=function(e,t,n){var r,i,a,o=null,s=0;n||(n={});var u=function(){s=!1===n.leading?0:_.now(),o=null,a=e.apply(r,i),o||(r=i=null)};return function(){var d=_.now();s||!1!==n.leading||(s=d);var c=t-(d-s);return r=this,i=arguments,c<=0||c>t?(o&&(clearTimeout(o),o=null),s=d,a=e.apply(r,i),o||(r=i=null)):o||!1===n.trailing||(o=setTimeout(u,c)),a}},_.debounce=function(e,t,n){var r,i,a,o,s,u=function(){var d=_.now()-o;d<t&&d>=0?r=setTimeout(u,t-d):(r=null,n||(s=e.apply(a,i),r||(a=i=null)))};return function(){a=this,i=arguments,o=_.now();var d=n&&!r;return r||(r=setTimeout(u,t)),d&&(s=e.apply(a,i),a=i=null),s}},_.wrap=function(e,t){return _.partial(t,e)},_.negate=function(e){return function(){return!e.apply(this,arguments)}},_.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},_.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},_.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},_.once=_.partial(_.before,2);var R=!{toString:null}.propertyIsEnumerable("toString"),F=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function P(e,t){var n=F.length,r=e.constructor,i=_.isFunction(r)&&r.prototype||o,a="constructor";for(_.has(e,a)&&!_.contains(t,a)&&t.push(a);n--;)(a=F[n])in e&&e[a]!==i[a]&&!_.contains(t,a)&&t.push(a)}_.keys=function(e){if(!_.isObject(e))return[];if(p)return p(e);var t=[];for(var n in e)_.has(e,n)&&t.push(n);return R&&P(e,t),t},_.allKeys=function(e){if(!_.isObject(e))return[];var t=[];for(var n in e)t.push(n);return R&&P(e,t),t},_.values=function(e){for(var t=_.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r},_.mapObject=function(e,t,n){t=v(t,n);for(var r,i=_.keys(e),a=i.length,o={},s=0;s<a;s++)o[r=i[s]]=t(e[r],r,e);return o},_.pairs=function(e){for(var t=_.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r},_.invert=function(e){for(var t={},n=_.keys(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t},_.functions=_.methods=function(e){var t=[];for(var n in e)_.isFunction(e[n])&&t.push(n);return t.sort()},_.extend=b(_.allKeys),_.extendOwn=_.assign=b(_.keys),_.findKey=function(e,t,n){t=v(t,n);for(var r,i=_.keys(e),a=0,o=i.length;a<o;a++)if(t(e[r=i[a]],r,e))return r},_.pick=function(e,t,n){var r,i,a={},o=e;if(null==o)return a;_.isFunction(t)?(i=_.allKeys(o),r=y(t,n)):(i=A(arguments,!1,!1,1),r=function(e,t,n){return t in n},o=Object(o));for(var s=0,u=i.length;s<u;s++){var d=i[s],c=o[d];r(c,d,o)&&(a[d]=c)}return a},_.omit=function(e,t,n){if(_.isFunction(t))t=_.negate(t);else{var r=_.map(A(arguments,!1,!1,1),String);t=function(e,t){return!_.contains(r,t)}}return _.pick(e,t,n)},_.defaults=b(_.allKeys,!0),_.create=function(e,t){var n=w(e);return t&&_.extendOwn(n,t),n},_.clone=function(e){return _.isObject(e)?_.isArray(e)?e.slice():_.extend({},e):e},_.tap=function(e,t){return t(e),e},_.isMatch=function(e,t){var n=_.keys(t),r=n.length;if(null==e)return!r;for(var i=Object(e),a=0;a<r;a++){var o=n[a];if(t[o]!==i[o]||!(o in i))return!1}return!0};var j=function(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;e instanceof _&&(e=e._wrapped),t instanceof _&&(t=t._wrapped);var i=c.call(e);if(i!==c.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t}var a="[object Array]"===i;if(!a){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,s=t.constructor;if(o!==s&&!(_.isFunction(o)&&o instanceof o&&_.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var u=(n=n||[]).length;u--;)if(n[u]===e)return r[u]===t;if(n.push(e),r.push(t),a){if((u=e.length)!==t.length)return!1;for(;u--;)if(!j(e[u],t[u],n,r))return!1}else{var d,l=_.keys(e);if(u=l.length,_.keys(t).length!==u)return!1;for(;u--;)if(d=l[u],!_.has(t,d)||!j(e[d],t[d],n,r))return!1}return n.pop(),r.pop(),!0};_.isEqual=function(e,t){return j(e,t)},_.isEmpty=function(e){return null==e||(O(e)&&(_.isArray(e)||_.isString(e)||_.isArguments(e))?0===e.length:0===_.keys(e).length)},_.isElement=function(e){return!(!e||1!==e.nodeType)},_.isArray=f||function(e){return"[object Array]"===c.call(e)},_.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},_.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){_["is"+e]=function(t){return c.call(t)==="[object "+e+"]"}}),_.isArguments(arguments)||(_.isArguments=function(e){return _.has(e,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(_.isFunction=function(e){return"function"==typeof e||!1}),_.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},_.isNaN=function(e){return _.isNumber(e)&&e!==+e},_.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===c.call(e)},_.isNull=function(e){return null===e},_.isUndefined=function(e){return void 0===e},_.has=function(e,t){return null!=e&&l.call(e,t)},_.noConflict=function(){return n._=i,this},_.identity=function(e){return e},_.constant=function(e){return function(){return e}},_.noop=function(){},_.property=T,_.propertyOf=function(e){return null==e?function(){}:function(t){return e[t]}},_.matcher=_.matches=function(e){return e=_.extendOwn({},e),function(t){return _.isMatch(t,e)}},_.times=function(e,t,n){var r=Array(Math.max(0,e));t=y(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r},_.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},_.now=Date.now||function(){return(new Date).getTime()};var M={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},U=_.invert(M),L=function(e){var t=function(t){return e[t]},n="(?:"+_.keys(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}};_.escape=L(M),_.unescape=L(U),_.result=function(e,t,n){var r=null==e?void 0:e[t];return void 0===r&&(r=n),_.isFunction(r)?r.call(e):r};var D=0;_.uniqueId=function(e){var t=++D+"";return e?e+t:t},_.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var G=/(.)^/,q={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},H=/\\|'|\r|\n|\u2028|\u2029/g,B=function(e){return"\\"+q[e]};_.template=function(e,t,n){!t&&n&&(t=n),t=_.defaults({},t,_.templateSettings);var r=RegExp([(t.escape||G).source,(t.interpolate||G).source,(t.evaluate||G).source].join("|")+"|$","g"),i=0,a="__p+='";e.replace(r,function(t,n,r,o,s){return a+=e.slice(i,s).replace(H,B),i=s+t.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":o&&(a+="';\n"+o+"\n__p+='"),t}),a+="';\n",t.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{var o=new Function(t.variable||"obj","_",a)}catch(e){throw e.source=a,e}var s=function(e){return o.call(this,e,_)},u=t.variable||"obj";return s.source="function("+u+"){\n"+a+"}",s},_.chain=function(e){var t=_(e);return t._chain=!0,t};var W=function(e,t){return e._chain?_(t).chain():t};_.mixin=function(e){_.each(_.functions(e),function(t){var n=_[t]=e[t];_.prototype[t]=function(){var e=[this._wrapped];return u.apply(e,arguments),W(this,n.apply(_,e))}})},_.mixin(_),_.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=a[e];_.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],W(this,n)}}),_.each(["concat","join","slice"],function(e){var t=a[e];_.prototype[e]=function(){return W(this,t.apply(this._wrapped,arguments))}}),_.prototype.value=function(){return this._wrapped},_.prototype.valueOf=_.prototype.toJSON=_.prototype.value,_.prototype.toString=function(){return""+this._wrapped},void 0===(r=function(){return _}.apply(t,[]))||(e.exports=r)}).call(this)},1:function(e,t,n){"use strict";e.exports=n(295)},103:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"__esModule",function(){return i});var r=n(25);t.default=r.default.define("yam.model.GroupMembership",function(){this._save=this.save,this.save=function(e){return e.id=e.user_id+":"+e.group_id,this._save(e)}});var i=!0},104:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isImmutable=function(e){return!(!e||"function"!=typeof e.hasOwnProperty||!(e.hasOwnProperty("__ownerID")||e._map&&e._map.hasOwnProperty("__ownerID")))},t.denormalizeImmutable=function(e,t,n){return Object.keys(e).reduce(function(t,r){var i=""+r;return t.has(i)?t.set(i,n(t.get(i),e[i])):t},t)}},105:function(e,t,n){"use strict";t.b=d;var r=n(0),i=(n.n(r),n(39)),a=(n.n(i),n(56)),o=n(66),s=(n.n(o),this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}),u=i.schema;function d(e){var t=s({},e,{id:e.databaseId,mugshot_id:r.last(e.avatar.split("/"))||"no_photo.png"}),n=s({},t,{width:48,height:48});return{id:Object(a.getIntId)(e.databaseId),network_id:Object(a.getIntId)(e.network.databaseId),full_name:e.displayName,state:"active",url:Object(a.generateUrl)(o.FAKE_URL_TEMPLATES.user,t),web_url:Object(a.generateUrl)(o.FAKE_URL_TEMPLATES.user_web,t),mugshot_url:Object(a.generateUrl)(o.FAKE_URL_TEMPLATES.user_mugshot,n),mugshot_url_template:Object(a.generateUrl)(o.FAKE_URL_TEMPLATES.user_mugshot,t),gql:{gql_id:e.gql_id},type:"user"}}t.a=new u.Entity("user",{},{idAttribute:"databaseId",processStrategy:d})},108:function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"c",function(){return o}),n.d(t,"b",function(){return s});var r=n(64),i=(n.n(r),n(173)),a=function(e){return e.session.credentials.officeAccessToken},o=(Object(r.createSelector)(a,function(e){return!!e}),function(e){return!!e.session.credentials.officeAccessTokenRefreshPending}),s=Object(r.createSelector)(a,function(e){if(e){var t=Object(i.a)(e);if(t&&t.upn)return t.upn}})},1092:function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(21),o=n(16),s=n(19),u=n(1093);!function(){var e=(0,s.isIOS)()?{width:"1px","min-width":"100%"}:{width:"100%"},t=i({border:"0px",overflow:"hidden","min-height":"26px",height:"100%"},e),n=0;if("function"!=typeof yam.on){var d={},c=function(e,t){var n=d[e];if(n)for(var r=0,i=n.length;r<i;r++){var a=n[r];a.fn.apply(a.ctx,t)}};yam.trigger=function(e){var t=[].slice.call(arguments,1);c(e,t),c("all",arguments)},yam.on=function(e,t,n){d[e]||(d[e]=[]),d[e].push({fn:t,ctx:n||null})},yam.off=function(e,t,n){var r=d[e];if(n=n||null,r){for(var i=-1,a=0,o=r.length;a<o&&-1===i;a++)r[a].fn===t&&r[a].ctx===n&&(i=a);-1!==i&&r.splice(i,1)}}}function l(e,t,n){e.addEventListener?e.addEventListener(t,n):e.attachEvent("on"+t,function(t){n.call(e,t)})}function f(e){var t={};!function e(n,i){Object.keys(n||{}).forEach(function(a){if(Object.prototype.hasOwnProperty.call(n,a)){var o=""===i?a:i+"["+a+"]";"object"===r(n[a])?e(n[a],o):t[o]=n[a]}})}(e,"");var n=[];return Object.keys(t||{}).forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)&&n.push(encodeURIComponent(e)+"="+encodeURIComponent(t[e]))}),n.join("&")}function p(e){var n=(e=e||{}).style||t,r=document.createElement("iframe");return r.id=e.id,r.name=e.name||e.id,r.frameBorder="none",r.scrolling="no",r.title="Yammer",Object.keys(n||{}).forEach(function(e){Object.prototype.hasOwnProperty.call(n,e)&&(r.style[e]=n[e])}),r.src="javascript://",r}function h(e){var t=e.objectProperties||{};t.url||(t.url=(0,o.removeQueryParams)(document.location.href),e.objectProperties=t)}function g(e){var t,n=e||document.body;return"string"==typeof n&&(n=document.querySelector(n)),n||(t="Could not find container to embed in",void(window.console&&"function"==typeof console.log&&console.log("[yammer] "+t)))}yam.connect=yam.connect||{},yam.connect.actionButton=function(e){e=e||{};var t=Date.now().toString(),r=g(e.container);if(r){h(e);var i=p({id:"embed-button"+n++});i.style.width=r.clientWidth+"px",i.style.height=r.clientHeight+"px",i.className="yj-embed-widget yj-embed-button",r.appendChild(i),l(window,"message",function(e){if(e.origin===(0,a.config)().baseURI&&e.data&&"string"==typeof e.data){var n=JSON.parse(e.data).data;n&&n.uniqueToken===t&&("yam.resize"===n.method?(i.style.width=n.width+"px",i.style.height=n.height+"px"):"yam.trigger"===n.method&&yam.trigger(n.eventId,n.msg))}}),e.bust=t;var o=f(e);i.src=(0,a.config)().baseURI+"/platform_embed/button?"+o}},yam.connect.embedFeed=function(e){var t=Date.now().toString(),n=void 0,r=void 0;try{if(!(n=g((e=e||{}).container)))return}catch(e){return void(0,u.unathenticatedReportError)("container setup")}try{e.feedType&&"open-graph"===e.feedType&&h(e)}catch(e){return void(0,u.unathenticatedReportError)("ogo setup")}try{(r=p({id:"embed-feed"})).className="yj-embed-widget yj-embed-feed",n.appendChild(r)}catch(e){return void(0,u.unathenticatedReportError)("iframe creation")}try{l(window,"message",function(e){if(e.origin===(0,a.config)().baseURI&&e.data&&"string"==typeof e.data){var n=JSON.parse(e.data).data;n&&"yam.trigger"===n.method&&n.uniqueToken===t&&yam.trigger(n.eventId,n.msg)}})}catch(e){return void(0,u.unathenticatedReportError)("event listener setup")}try{e.network&&(e.network_permalink=e.network),e.bust=t;var i=f(e);r.src=(0,u.generateFrameSrc)(e,i)}catch(e){(0,u.unathenticatedReportError)("iframe setup completion")}}}()},1093:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"defaultPage",function(){return s}),n.d(t,"generateFrameSrc",function(){return u}),n.d(t,"generateGlammerUrl",function(){return d}),n.d(t,"isGlammerSupported",function(){return c}),n.d(t,"unathenticatedReportError",function(){return l});var r=n(21),i=n(14),a=(n.n(i),n(211)),o=(n.n(a),n(13)),s="/feed",u=function(e,t){return e.useGlammer&&c(e)?d(e.feedType,e.feedId):Object(r.config)().baseURI+"/embed-feed?"+t},d=function(e,t){var n=Object(r.config)().embedGlammerBaseUri;switch(e){case"group":return n+"/legacy/groups/"+t;case"topic":return n+"/legacy/topics/"+t;case"user":return n+"/legacy/users/"+t;default:return""+n}},c=function(e){return(e=e||{}).config=e.config||{},!(e.network_permalink||e.config.promptText||e.config.defaultToCanonical||e.config.use_sso||"open-graph"===e.feedType||e.broadcastId||e.config.defaultGroupId)},l=function(e){Object(i.reportPerformance)([{EventName:"embed_feed_throws",LogType:"performance",ClientId:Object(a.getTrackingClientId)(),ClientTimeStamp:Date.now(),Parameters:{eventName:e}}]).catch(o.warn)}},114:function(e,t,n){"use strict";var r=n(150),i=n(60),a=n(194),o=n(30),s=n(108),u=function(e){var t=o.default.getState();e!==Object(s.a)(t)?(o.default.dispatch(Object(a.b)(e)),Object(r.a)("set_office_access_token_in_store_succeeded")):Object(r.a)("set_office_access_token_same_token_in_store")},d=n(19),c=n(22),l=n(9),f=n(83),p=n(173),h=n(49);function g(e){var t=Object(c.isO365)(e),n=Object(c.isExternal)(e),r=o.default.getState(),i=Object(h.j)(r);return t&&!n&&!i}t.b=g,n.d(t,"a",function(){return m}),n.d(t,"c",function(){return v});var m=function(e){if(e)if(g(e)&&!Object(d.isDesktopApp)()){var t=Object(i.get)("office_access_token");t&&t.length?(y(t),u(t)):Object(l.error)({name:f.c.initializeFailed,client:f.a.web,adal_error:f.b.NoCookieFound})}else _(e);else Object(l.error)({name:f.c.initializeFailed,client:f.a.web,adal_error:"No network present during initialization"})},_=function(e){var t=Object(d.isDesktopApp)(),n=Object(c.isExternal)(e),r=Object(c.isO365)(e),i=o.default.getState(),a=Object(h.j)(i),s=[];t?s.push("Desktop app"):n?s.push("External network"):r?a&&s.push("Guest user"):s.push("Not O365 network"),Object(l.error)({name:f.c.initializeFailed,client:f.a.web,adal_error:"ErrorMessages.OfficeAccessTokenInitializationNotRequired: "+s.join(",")})},y=function(e){var t=Object(p.a)(e);!(!t||!t.upn)||Object(l.error)({name:f.c.initializeFailed,client:f.a.web,error:f.b.NoUpnFoundOnCookie})},v=function(e){e?"string"==typeof e?(Object(r.a)("set_office_access_token"),function(e){if(e!==Object(i.get)("office_access_token")){Object(r.a)("set_office_access_token_in_cookie_succeeded");var t=new Date((new Date).setFullYear((new Date).getFullYear()+1)).toString();Object(i.set)({name:"office_access_token",expiry:t,value:e})}else Object(r.a)("set_office_access_token_same_token_in_cookie")}(e),u(e)):Object(r.a)("set_office_access_token_detected_non_string_token"):Object(r.a)("set_office_access_token_invalid_token")}},115:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=d(n(9)),a=d(n(0)),o=n(152),s=(r=o)&&r.__esModule?r:{default:r},u=d(n(98));function d(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var c=function(e,t,n){this.feed=e,this.fetchType=t||"UNKNOWN",this.apiCount=a.isNumber(n)?n:s.default.UNKNOWN_API_COUNT};c.logs=[],c.hasReported=!1,c.hadInitialMismatch=!1,c.logNow=function(e,t,n,r,i,a,o){new c(e,t,n).log(r,i,a,o)},c.isInboxMismatchSession=!1,c.prototype.print=function(){console.log(this.diagnosis,this.fetchType,"api:"+this.apiCount,"bef:"+this.clientBeforeCount,"aft:"+this.clientAfterCount,"thr:"+this.threadCount)},c.printAll=function(){a.each(c.logs,function(e){e.print()})},c.prototype.shouldReport=function(){return s.default.isCountError(this.diagnosis)||s.default.isCountWarning(this.diagnosis)},c.prototype.jsonable=function(){var e=u.getHydrantFailures();e.inbox_mismatch&&(e[e.inbox_mismatch]=1);var t=a.keys(e),n={fetchType:this.fetchType,diagnosis:this.diagnosis,isResyncing:this.isResyncing?1:0,apiCount:this.apiCount,clientBeforeCount:this.clientBeforeCount,clientAfterCount:this.clientAfterCount,threadCount:this.threadCount,disconnectCount:this.disconnectCount?this.disconnectCount:0,disconnectDuration:this.disconnectDuration?this.disconnectDuration:0,precedingDisconnectDuration:this.precedingDisconnectDuration?this.precedingDisconnectDuration:0,totalDisconnectDuration:this.totalDisconnectDuration?this.totalDisconnectDuration:0,hasReported:c.hasReported?1:0,hadInitialMismatch:c.hadInitialMismatch?1:0,hasLoadedAllThreads:this.hasLoadedAllThreads?1:0,fixErrorsTreatment:1,hadHydrantFailureKeys:t.length?1:0,hydrantFailureKeys:t.join(",")};return c.isInboxMismatchSession&&(n.knownIssue="SUPENG-10211"),n},c.prototype.jsonablePreviousLog=function(){var e=c.logs,t=e[e.length-2],n={};return t&&(t=t.jsonable(),a.each(t,function(e,t){t=t[0].toUpperCase()+t.slice(1),n["previous"+t]=e})),n},c.prototype.makeEventProps=function(){var e=this.jsonable(),t=this.jsonablePreviousLog();return a.extend(e,t),e},c.prototype.log=function(e,t,n,r){if("inboxUnread"===this.feed.keyType){if(this.clientBeforeCount=e,this.clientAfterCount=t,this.isResyncing=!!r,this.threadCount=n,this.hasLoadedAllThreads=!this.feed.older_available,this.diagnosis=s.default.diagnose(this.feed,this.fetchType,this.apiCount,this.clientAfterCount,this.threadCount),!this.shouldReport()&&c.isInboxMismatchSession&&"newerThan_Backfill"===this.fetchType&&(this.diagnosis="WARN_SUCCESSFUL_BACKFILL_REPAIR_SUPENG_10211"),c.logs.push(this),this.shouldReport()){s.default.hadInitialMismatch(this.diagnosis)&&(c.hadInitialMismatch=!0,"initial"===this.fetchType&&(c.isInboxMismatchSession=!0));var o=this.makeEventProps();i.info(a.extend({message:"inbox_count_error"},o)),c.hasReported=!0}c.logs.length>50&&(c.logs=c.logs.slice(-50))}},c.useOrCreate=function(e,t){var n=t;return"string"==typeof t&&(n=new c(e,t)),n},t.default=c},116:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNextGroupFromAllCompany=t.getNextGroupFromHome=t.getNextGroupFromInbox=t.getNextGroupFromGroup=t.getUnviewedCountForGroup=t.getUnviewedIndexForGroup=t.getIndexForGroup=t.getTopUnviewedGroups=t.getTopGroupsWithoutAllCompany=t.getTopGroups=t.getTopGroupIdsWithoutAllCompany=t.getTopGroupIds=t.getOwnExternalGroupIds=t.getOwnInternalGroupIds=t.getOwnGroups=t.getOwnGroupIds=t.getOwnExternalGroupMemberships=t.getOwnInternalGroupMemberships=t.getOwnGroupMemberships=t.isPending=t.isMemberOf=t.getMembership=void 0;var r=d(n(6)),i=u(n(103)),a=u(n(23)),o=d(n(0)),s=d(n(42));function u(e){return e&&e.__esModule?e:{default:e}}function d(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function c(e){return l(e)?e:Number(e)}function l(e){return e===s.allCompanyId()}function f(e,t){return i.default.findFirst({user_id:e.id,group_id:t.getId?t.getId():t.id})}function p(){var e=r.getCurrentUser().id;return o.sortBy(i.default.all(),"rank").filter(function(t){return t.user_id===e})}function h(){return p().filter(function(e){return!e.external})}function g(){return p().filter(function(e){return e.external})}function m(){return o.pluck(p(),"group_id")}function _(){return o.pluck(h(),"group_id")}function y(){return o.pluck(g(),"group_id")}function v(e){return l(e)?s.allCompany():a.default.findById(c(e))}function b(){return o.union(_(),[s.allCompanyId()],y())}function w(){return o.union(_(),y())}function T(e,t){return I(e,t)>0}function E(e){return o.filter(b(),function(t){return T(t,e)})}function I(e,t){var n=function(e,t){return l(e)?t.find("general"):t.find("group",e)}(c(e),t);return n?t.getUnseenCount(n):null}function O(){var e=p(),t=o.pluck(e,"group_id");return[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t),[s.allCompanyId()])}t.getMembership=f,t.isMemberOf=function(e,t){return null!=f(e,t)},t.isPending=function(e){if(e)return e.get("pending")},t.getOwnGroupMemberships=p,t.getOwnInternalGroupMemberships=h,t.getOwnExternalGroupMemberships=g,t.getOwnGroupIds=m,t.getOwnGroups=function(){return m().map(v).filter(function(e){return null!=e})},t.getOwnInternalGroupIds=_,t.getOwnExternalGroupIds=y,t.getTopGroupIds=b,t.getTopGroupIdsWithoutAllCompany=w,t.getTopGroups=function(){return b().map(v).filter(function(e){return null!=e})},t.getTopGroupsWithoutAllCompany=function(){return w().map(v).filter(function(e){return null!=e})},t.getTopUnviewedGroups=function(e){return E(e).map(v).filter(function(e){return null!=e})},t.getIndexForGroup=function(e){return b().indexOf(c(e))},t.getUnviewedIndexForGroup=function(e,t){return E(t).indexOf(c(e))},t.getUnviewedCountForGroup=I,t.getNextGroupFromGroup=function(e,t){var n=function(e,t){var n=O(),r=n.indexOf(c(e)),i=o.rest(n,r+1);return o.find(i,function(e){return T(e,t)})}(e,t);return n?v(n):null},t.getNextGroupFromInbox=function(e){var t=E(e);return t.length>0?v(t[0]):null},t.getNextGroupFromHome=function(e){var t=o.without(E(e),s.allCompanyId());return t.length>0?v(t[0]):null},t.getNextGroupFromAllCompany=function(e){var t=o.without(E(e),s.allCompanyId());return t.length>0?v(t[0]):null}},12:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.treatmentWithCookie=t.treatmentWithoutLogging=t.treatment=void 0;var r=c(n(6)),i=c(n(13)),a=c(n(24)),o=c(n(60)),s=d(n(51)),u=d(n(139));function d(e){return e&&e.__esModule?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var l={},f={},p=function(e){var t=r.getCurrentUser(),n=t&&t.treatments,o=n&&n[e];if(e)if(t){if(n){if(void 0!==o&&!f[e]&&!l[e]){l[e]=!0;var d="treated-"+e,c=function(e){try{return u.default.get(e)}catch(t){return void i.warn("Failed to read treatment from store. "+e,t)}}(d),p=parseInt(c,10);p&&p>1?(f[e]=!0,l[e]=!1):s.default.send({url:a.apiBase()+"/api/v1/experiments/"+e+"/treated",type:"POST"}).done(function(){f[e]=!0,p?p+=1:p=1,u.default.set(d,p)}).fail(function(){i.warn("treatment: treated call failed",e)}).always(function(){l[e]=!1})}return Object.prototype.hasOwnProperty.call(n,e)?o:void 0}i.warn("treatment: no treatments data in current user")}else i.warn("treatment: current user not initialized")};t.treatment=p,t.treatmentWithoutLogging=function(e){var t=r.getCurrentUser();if(t&&t.treatments)return t.treatments[e];i.warn("treatment: current user not initialized")},t.treatmentWithCookie=function(e){var t=void 0,n="treatment_cookie_"+e,i=r.getCurrentUser();return i&&i.treatments?(t=p(e))?o.set({name:n,value:t,days:365}):o.unset({name:n}):t=o.get(n),t}},121:function(e,t,n){"use strict";var r=n(212),i="object"==typeof self&&self&&self.Object===Object&&self,a=(r.a||i||Function("return this")()).Symbol,o=Object.prototype,s=o.hasOwnProperty,u=o.toString,d=a?a.toStringTag:void 0;var c=function(e){var t=s.call(e,d),n=e[d];try{e[d]=void 0;var r=!0}catch(e){}var i=u.call(e);return r&&(t?e[d]=n:delete e[d]),i},l=Object.prototype.toString;var f=function(e){return l.call(e)},p="[object Null]",h="[object Undefined]",g=a?a.toStringTag:void 0;var m=function(e){return null==e?void 0===e?h:p:g&&g in Object(e)?c(e):f(e)};var _=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object);var y=function(e){return null!=e&&"object"==typeof e},v="[object Object]",b=Function.prototype,w=Object.prototype,T=b.toString,E=w.hasOwnProperty,I=T.call(Object);t.a=function(e){if(!y(e)||m(e)!=v)return!1;var t=_(e);if(null===t)return!0;var n=E.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&T.call(n)==I}},124:function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var u,d=[],c=!1,l=-1;function f(){c&&u&&(c=!1,u.length?d=u.concat(d):l=-1,d.length&&p())}function p(){if(!c){var e=s(f);c=!0;for(var t=d.length;t;){for(u=d,d=[];++l<t;)u&&u[l].run();l=-1,t=d.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];d.push(new h(e,t)),1!==d.length||c||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},127:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openExternalURL=t.openConnectorLogin=t.updateTrackingParams=t.reauthenticate=t.showNotification=t.setBadgeCount=t.setPrivacyUrl=t.setLocale=t.handleYamReady=t.handleLogout=void 0;var r=n(19),i=function(e){for(var t,n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];(0,r.isDesktopApp)()&&(t=window.ipcShell).send.apply(t,[e].concat(i))};t.handleLogout=i.bind(null,"logged-out"),t.handleYamReady=i.bind(null,"yam-ready"),t.setLocale=i.bind(null,"set-locale"),t.setPrivacyUrl=i.bind(null,"set-privacy"),t.setBadgeCount=i.bind(null,"set-badge-count"),t.showNotification=i.bind(null,"show-notification"),t.reauthenticate=i.bind(null,"reauthenticate"),t.updateTrackingParams=i.bind(null,"tracking-params-updated"),t.openConnectorLogin=i.bind(null,"open-browser-auth"),t.openExternalURL=i.bind(null,"open-external-url")},128:function(e,t,n){"use strict";var r=n(291),i=n(292),a=n(170);e.exports={formats:a,parse:i,stringify:r}},129:function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},13:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i.apply(void 0,["log"].concat(e))},t.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i.apply(void 0,["info"].concat(e))},t.warn=a,t.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i.apply(void 0,["error"].concat(e))},t.deprecate=function(e,t,n){var r="Deprecation warning for "+e+"."+t;n&&(r+=": "+n);a(r)};var r=n(21),i=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"undefined"!=typeof console&&Object(r.config)().debug&&console[e].apply(console,t)};function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i.apply(void 0,["warn"].concat(e))}},130:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPlayableVideo=t.isAutoEmbedVideo=t.getVideoIframeUrl=t.isMicrosoftStreamVideo=t.isVimeoVideo=t.isYouTubeVideo=t.getSVGIconClass=t.getFileIconClass=t.getLocationName=t.getTitle=t.getFilename=t.getSharePointFilename=t.isSharePointFile=t.isSharePointHost=t.isImageOgo=t.isOpenGraphObject=t.DEFAULT_LINK_ICON_CLASS=void 0;var r=n(68),i=n(19),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(16));var o={picture:!0,graph:!0,pdf:!0,sound:!0,spreadsheet:!0,doc:!0,text:!0,video:!0,zip:!0,onenote:!0},s={YOUTUBE:{ID_REGEX:/\/embed\/(.+)\?/,IFRAME_URL:"https://www.youtube.com/embed/{{id}}?rel=0&autoplay={{autoplay}}&wmode=transparent"},VIMEO:{ID_REGEX:/\/video\/(\d+)\?/,IFRAME_URL:"https://player.vimeo.com/video/{{id}}?autoplay={{autoplay}}&wmode=transparent"}},u=function(e,t){return e[t]||e.get&&e.get(t)},d=function(e){var t=u(e,"type");return"open_graph_object"===t||"ymodule"===t},c=/.*\.(sharepoint|sharepoint-df).com$/,l=function(e){var t=a.parse(u(e,"web_url"));return c.test(t.host)},f=function(e){if(!e||!e.web_url)return!1;var t=a.parse(e.web_url);return l(e)&&!!t.queryKey&&!!t.queryKey.file},p=function(e){if(!f(e))return"";var t=a.parse(e.web_url),n=t.queryKey.file;try{n=decodeURIComponent(t.queryKey.file)}catch(e){}return n},h=function(e){var t=void 0;if(f(e)&&(t=p(e)),t)return t;var n=a.parse(e.web_url);try{t=decodeURIComponent(n.file)}catch(e){t=n.file}return t},g=function(e){var t=h(e);return(0,r.getFileIconClass)(t)},m=function(e){var t=g(e)||"";return o[t]?"docicon-big-"+t:"docicon-big-link"},_=function(e){if(!e.web_url)return!1;var t=a.parse(e.web_url);return t.host.match(/youtube.com$/)&&"/watch"===t.path||t.host.match(/youtu.be$/)},y=function(e){return!!e.web_url&&a.parse(e.web_url).host.match(/vimeo.com$/)},v=function(e){return!!e.provider_name&&"microsoft stream"===e.provider_name.toLowerCase()},b=function(e){return v(e)},w=function(e){return _(e)?"YOUTUBE":y(e)?"VIMEO":null};t.DEFAULT_LINK_ICON_CLASS="docicon-big-link",t.isOpenGraphObject=d,t.isImageOgo=function(e){var t=u(e,"url"),n=(0,r.getCanonicalExtension)(t)===r.CANONICAL_TYPE.IMAGE;return d(e)&&n},t.isSharePointHost=l,t.isSharePointFile=f,t.getSharePointFilename=p,t.getFilename=h,t.getTitle=function(e){var t=h(e),n=m(e),r=e.name||e.title,i=!r||r===e.web_url,a="docicon-big-link"!==n;return(f(e)||i&&a)&&(r=t),r||e.web_url},t.getLocationName=function(e){if(e.authority)return e.authority;var t=a.parse(e.web_url);return t.authority||t.host},t.getFileIconClass=g,t.getSVGIconClass=m,t.isYouTubeVideo=_,t.isVimeoVideo=y,t.isMicrosoftStreamVideo=v,t.getVideoIframeUrl=function(e,t){if(b(e))return e.video_url;var n=w(e);if(!n)throw new Error("Video OGO provider was not valid");var r=function(e,t){return e.match(s[t].ID_REGEX)[1]}(e.video_url,n);return s[n].IFRAME_URL.replace("{{id}}",r).replace("{{autoplay}}",t?"1":"0")},t.isAutoEmbedVideo=b,t.isPlayableVideo=function(e){return!(!u(e,"video_url")||l(e)&&(0,i.isDesktopApp)())}},131:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(104);var a=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n&&(this._schemaAttribute="string"==typeof n?function(e){return e[n]}:n),this.define(t)}return r(e,[{key:"define",value:function(e){this.schema=e}},{key:"getSchemaAttribute",value:function(e,t,n){return!this.isSingleSchema&&this._schemaAttribute(e,t,n)}},{key:"inferSchema",value:function(e,t,n){if(this.isSingleSchema)return this.schema;var r=this.getSchemaAttribute(e,t,n);return this.schema[r]}},{key:"normalizeValue",value:function(e,t,n,r,i){var a=this.inferSchema(e,t,n);if(!a)return e;var o=r(e,t,n,a,i);return this.isSingleSchema||null==o?o:{id:o,schema:this.getSchemaAttribute(e,t,n)}}},{key:"denormalizeValue",value:function(e,t){var n=(0,i.isImmutable)(e)?e.get("schema"):e.schema;return this.isSingleSchema||n?t(((0,i.isImmutable)(e)?e.get("id"):e.id)||e,this.isSingleSchema?this.schema:this.schema[n]):e}},{key:"isSingleSchema",get:function(){return!this._schemaAttribute}}]),e}();t.default=a},132:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retry=t.delay=t.reject=t.resolve=t.reflectAll=t.reflect=void 0;var r,i=n(8),a=(r=i)&&r.__esModule?r:{default:r},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0));function s(){var e=a.default.Deferred();return e.resolve.apply(e,arguments),e.promise()}function u(){var e=a.default.Deferred();return e.reject.apply(e,arguments),e.promise()}function d(e,t){var n=a.default.Deferred(),r=o.rest(arguments,2);return setTimeout(function(){e.apply(null,r).then(n.resolve.bind(n),n.reject.bind(n))},t),n.promise()}function c(e){return e.then(function(e){return{value:e,status:"resolved"}},function(e){return{error:e,status:"rejected"}})}t.reflect=c,t.reflectAll=function(e){return Promise.all(e.map(c))},t.resolve=s,t.reject=u,t.delay=d,t.retry=function(e,t,n,r,i){return function e(t,n,r,i,a,o,c){return d.apply(null,[t,a(r)].concat(c)).then(function(){return r>0&&o&&o.apply(null,[!0].concat(Array.prototype.slice.call(arguments))),s.apply(null,arguments)},function(){return r<n&&i.apply(null,arguments)?e(t,n,r+1,i,a,o,c):(r>0&&o&&o.apply(null,[!1].concat(Array.prototype.slice.call(arguments))),u.apply(null,arguments))})}(e,t,0,n,r,i,o.rest(arguments,5))}},139:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=d(n(6)),i=u(n(8)),a=d(n(0)),o=u(n(3)),s=u(n(293));function u(e){return e&&e.__esModule?e:{default:e}}function d(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var c=a.extend({},s.default,o.default.Events);function l(e){a.defer(function(){var t=e.originalEvent,n=t.key;if(n&&r.getCurrentNetwork()&&r.getCurrentUser()){var i="-"+r.getCurrentNetwork().id+"-"+r.getCurrentUser().id,o=n.indexOf(i);if(-1!==o&&o===n.length-i.length){var s=JSON.parse(t.newValue),u=s&&s.id,d=s&&s.value,l=s&&s.suppress,f=c.removeSuffix(n);l||a.indexOf(c.idList,u)>-1||(c.trigger("storageEvent",f),c.trigger("storageEvent:"+f,{newValue:d}))}}},e)}(0,i.default)(window).on("storage",l),"onstorage"in document&&(0,i.default)(document).on("storage",function(e){var t=localStorage.getItem("_ie8_last_storage_event_key");null!==t&&(e.originalEvent.key=t,e.originalEvent.newValue=localStorage.getItem(e.originalEvent.key),l.call(this,e))}),c.addSuffix=function(e){return e+"-"+r.getCurrentNetwork().id+"-"+r.getCurrentUser().id};var f=c.get.bind(c),p=c.set.bind(c),h=c.remove.bind(c);c.unwrapped={get:f,set:p,remove:h},c.get=function(e){var t=c.addSuffix(e),n=f.call(this,t);return!!n&&n.value},c.set=function(e,t,n){var r=c.addSuffix(e),i=Date.now();if(t=!0===n?{value:t,suppress:n,id:i}:{value:t,id:i},c.idList){c.idList.length>20&&c.idList.pop(),c.idList.unshift(i)}else c.idList=[i];try{return p.call(this,r,t,n)}catch(e){}},c.remove=function(e){var t=c.addSuffix(e);return h.call(this,t)},c.removeSuffix=function(e){var t="-"+r.getCurrentNetwork().id+"-"+r.getCurrentUser().id;return e.replace(t,"")},t.default=c},14:function(e,t,n){"use strict";(function(e,r){Object.defineProperty(t,"__esModule",{value:!0}),t.hydrantRequestFeed=t.applyReplyRestrictions=t.gettingStartedSkipped=t.getGroupNamingConventions=t.addOfficeGroupToYammerGroup=t.noteMapper=t.getGroupInsights=t.deleteUploadedFile=t.cancelUploadToSharepoint=t.uploadFileToSharepoint=t.uploadFile=t.repairInboxUnreadCount=t.getMessages=void 0,t.commitUploadedFileVersion=t.commitUploadedFile=t.graphqlInboxAll=t.fileCreate=t.optOutBanner=t.incrementCountBanner=t.getBanners=t.deleteFlexternalUser=t.suspendUser=t.removeAppFromDirectory=t.logoutCurrentSession=t.logoutSession=t.getAccountActivity=t.getApp=t.getUsersGroups=t.reportPerformance=t.reportEvent=t.getYamjsToken=t.getRequests=t.registerFileVisit=t.registerGroupVisit=t.translate=t.getVerifiedDomains=t.getInvites=t.getNetworkDomains=t.getNetworkMigrationErrors=t.startNetworkMigration=t.inviteAllToNetwork=t.inviteToNetwork=t.remindUserToSignUp=t.searchFilesV2=t.getInvitableContactsForNetwork=t.searchTopicsV2=t.searchGroupsV2=t.searchInboxV2=t.searchUsersV2=t.searchMessagesV2=t.searchV2=t.getSearchSummary=t.setPrivateContentMode=t.recordOpenGraphClick=t.removeFileTopic=t.addFileTopic=t.removeThreadTopic=t.addThreadTopic=t.claimGroup=t.addToGroup=t.denyGroupMembership=t.deleteGroupMembership=t.createGroupMembership=t.allowGroupMembership=t.approveGroupMembership=t.inviteToGroup=t.inviteOrFollow=t.getVideoStreamingPath=t.setUserPresence=t.revertFileToVersion=t.deleteSharepointFile=t.deleteFile=t.updateFileDescription=t.updateFileTitle=t.getMugshotsInAllCompany=t.getMugshotsInGroup=t.unsubscribeFromTarget=t.subscribeToTarget=t.removeLikeForOpenGraphObject=t.getLikesForOpenGraphObject=t.getSubscriptionToOpenGraphObject=t.deleteOpenGraphActionType=t.updateOpenGraphActionType=t.createOpenGraphActionType=t.deleteOpenGraphObjectType=t.updateOpenGraphObjectType=t.createOpenGraphObjectType=t.fetchOpenGraphObject=t.createOpenGraphObject=t.deleteOpenGraphObject=t.getOpenGraphObject=t.createOpenGraphActivity=t.makeFileUnofficial=t.makeFileOfficial=t.getEditHistoryFromGQL=t.getUserFiles=t.getUsersRecentFiles=t.getGroupFiles=t.getGroupFilesCount=t.acceptUsagePolicy=t.getUsagePolicy=t.deleteContentRelationship=t.updateContentRelationship=t.getContentRelationships=t.createContentRelationship=t.updateFeedSubscriptions=t.switchLanguageFromPublicSite=t.revokeAdmin=t.makeAdmin=t.switchLanguage=t.getCurrentUser=t.unmuteThread=t.muteThread=void 0,t.updateOpenGraphObjects=t.activateUser=t.validatePassword=t.changePassword=t.changeEmail=t.getSignupInfo=t.getRealtime=t.getUploadedFile=t.applyTreatment=t.moveToGroup=t.removeThreadParticipants=t.addThreadParticipant=t.postViewedThreads=t.setThreadLastSeen=t.declineGroupSuggestion=t.acceptGroupSuggestion=t.logGroupSuggestions=t.getSuggestionCards=t.getGroupSuggestions=t.getInboxGroups=t.declineUserSuggestion=t.acceptUserSuggestion=t.logUserSuggestions=t.getUserSuggestions=t.unbookmarkMessage=t.bookmarkMessage=t.unlikeMessage=t.likeMessage=t.deleteMessageGQL=t.deleteMessage=t.unmarkBestReply=t.markBestReply=t.markInboxAsRead=t.unfollowThreadInInbox=t.followThreadInInbox=t.getMessageFeed=t.getMessage=t.getThreadInfo=t.getThread=t.submitPollVote=t.graphqlRequest=t.getSuiteNavAssets=t.getPollData=t.editMessage=t.postMessageGQL=t.postMessageOLS=t.postMessage=t.updateTopic=t.getTopic=t.getSubscriptionsToTopic=t.getSubscriptionToUser=t.getAutocompleteRanked=t.getAutocomplete=t.getSubscriptionToTarget=t.getSubscriptions=t.getTokens=t.getNetworks=t.getTenantSettings=t.updateUserPreferences=t.getNetworkPreferenceData=t.getForeignNetworks=t.updateNetworkInfo=t.getGroupBackgroundPatterns=t.getGroupColorPalette=t.updateGroup=t.leaveGroup=t.joinGroup=t.fetchSkypeAddress=t.getSharepointPreviewUrl=t.getSharePointUrl=t.getSharePoint=t.getO365UnifiedGroup=t.getGroups=t.getGroup=t.refreshSasToken=t.deleteGroup=t.createUploadSessionV4=t.createUploadSession=t.createGroup=t.completeThreadAttachmentUploadSession=t.completeDirectUploadSession=t.completeUploadSession=t.leaveNetwork=t.validateExternalNetworkName=t.validateGroupName=t.getUsersByIds=t.getUsersByEmail=t.getUsersFollowingUploadedFile=t.getUsersFollowingTopic=t.deleteUserClientApplication=t.getUserClientApplications=t.getUsersInGroup=t.getUsersFollowedBy=t.getUsersFollowing=t.getUsersWhoLikedMessage=t.getUsers=t.updateCurrentMetaUser=t.updateUser=t.getUser=t.event=void 0;var i=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=x(n(6)),s=N(n(115)),u=x(n(9)),d=N(n(0)),c=n(12),l=N(n(51)),f=x(n(24)),p=x(n(16)),h=x(n(66)),g=x(n(98)),m=x(n(175)),_=x(n(132)),y=x(n(21)),v=N(n(335)),b=n(149),w=N(n(336)),T=N(n(337)),E=N(n(338)),I=n(339),O=n(340),S=n(46),C=N(n(155)),A=n(197),k=N(n(341));function N(e){return e&&e.__esModule?e:{default:e}}function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var R={method:"GET",data:{},dataType:"json",auth:"oauth2"},F=a({},R,{timeout:3e3}),P=d.default.extend({},R,{headers:{"Cache-Control":"no-cache, no-store"}}),j={method:"POST",data:{},dataType:"json",auth:"oauth2"},M={method:"PATCH",data:{},dataType:"json",auth:"oauth2"},U=function(e){return d.default.extend({},j,{contentType:"application/json; charset=UTF-8",beforeSend:function(e,t){"string"!=typeof t.data&&(t.data=JSON.stringify(t.data))},processData:!1,data:e})},L=function(e){return d.default.extend({},M,{contentType:"application/json; charset=UTF-8",beforeSend:function(e,t){"string"!=typeof t.data&&(t.data=JSON.stringify(t.data))},processData:!1,data:e})},D={method:"PUT",data:{},dataType:"text",auth:"oauth2"},G={method:"DELETE",data:{},dataType:"text",auth:"oauth2"},q=0,H=0,B=0,W=0;function $(e,t){var n={},r=void 0;if(t&&t>0&&(e=Array.prototype.slice.call(e,t)),e.length>4)throw new Error("Invalid argument list");if(1!=e.length||e[0].data||e[0].success||e[0].complete||e[0].error){if(1==e.length&&"function"!=typeof e[0])d.default.extend(n,e[0]);else if(e.length>=1){r=["success","error","data","category"];for(var i=0,a=e.length;i<a;i++)n[r[i]]=e[i]}}else n.data=e[0];return n}function V(e,t){return e.replace(/:([a-zA-Z_]+)/g,function(e,n){var r=t[n];return delete t[n],r})}function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],r=d.default.defaults({},t,n),i=d.default.clone(t.data),o=f.api(V(e,i));return a({},r,{data:i,url:o})}function K(e,t,n){var r=z(e,t,n);return l.default.send(r)}function Y(e,t,n){var r=z(e,t,n);return l.default.sendWithAADRefresh(r)}function Q(e,t,n){return(t=d.default.defaults({},t,n)).data=d.default.clone(t.data),t.url=f.apiV2(V(e,t.data)),l.default.send(t)}function J(e){var t=h.graphqlQueryOptions(e)||{},n=U({query:t.query,variables:t.variables,operationName:t.operationName}),r={for_feed:e.forFeed||"UNKNOWN",fetch_type:e.fetchType||"UNKNOWN"};return n.url=ce(r,f.gql()),n}function X(e,t){return l.default.send({url:f.gql(),data:{query:e,operationName:t},method:"POST"})}function Z(e){var t=J(e);return l.default.send(t)}function ee(e,t){return(t=d.default.defaults({},t,j)).contentType="text/plain; charset=UTF-8",t.url=f.apiV2(V(e,t.data)),t.data=m.stringify(t.data.query),l.default.send(t)}function te(e,t,n){var r=void 0,a=void 0,s=void 0;if(h.shouldRequestFromGraphql(e))a=J(e),r=a.url,s=h.convertCallback(t,a,e.url);else{r=e.url;var c=g.convertUrl(r)+"?"+g.getParamsForUrl(r),f=g.isApiV2(c,o);a={method:"POST",contentType:"text/plain; charset=UTF-8",url:c,data:g.getFieldsForUrl(r,f)},s=g.convertCallback(t,r)}delete e.forFeed,delete e.fetchType;var p=(0,A.getHydrantMarkers)(a.url),m=i(p,2),y=m[0],v=m[1],b=e.jitterCondition||function(){return!1},w=function(t,n){return d.default.isNumber(e[t])?e[t]:n},T=w("initialJitterMin",q),E=w("initialJitterMax",H),I=w("retryJitterMin",B),S=w("retryJitterMax",W),C=e.jitter||function(e){var t=d.default.random(T,E),n=d.default.random(I,S);return 0===e?t:n},k=e.retryCallback||d.default.noop;return _.retry(function(){y();var e=(0,O.isHydrantFeedAadEnabled)()?l.default.sendWithAADRefresh:l.default.send;return(0,O.isHydrantFeedAadEnabled)()&&u.info({message:"calling_with_aad_token",path:r,api_call_source:"hydrant_request_feed"}),e(a).then(function(e){return v(!!e.failures),e}).catch(function(e){throw v(!0),e})},1,b,C,k).then(s,n)}function ne(e,t,n){return(t=d.default.defaults({},t,n)).data=d.default.clone(t.data),t.url=f.app(V(e,t.data)),l.default.send(t)}function re(e,t,n){var r=d.default.defaults({},t,n);return a({},r,{crossDomain:!0,cache:!0,headers:(0,b.getAuthenticationHeaders)(),url:f.msgraph(V(e,t.data))})}function ie(e,t,n){var r=re(e,t,n);return l.default.send(r)}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],r=d.default.defaults({},t,n),i=t.contentType?t.contentType:"text/plain; charset=UTF-8",o=d.default.clone(t.data),s=(0,b.getAuthenticationHeaders)(),u=function(e,t){return(0,S.isInFileImprovements)()?f.filevilleAFD(V(e,t.data)):f.fileville(V(e,t.data))}(e,t);return a({},r,{contentType:i,data:o,headers:s,url:u})}function oe(e,t,n){var r=ae(e,t,n);return l.default.send(r)}function se(e,t,n){var r=ae(e,t,n);return l.default.sendWithAADRefresh(r)}function ue(e,t){return t.total_count=t[e].total_count,t[e]=t[e].results,t}function de(e){return g.transform(e,f.apiV2("search/"))}function ce(e,t){var n=d.default.pick(e,["for_feed","fetch_type"]);return d.default.keys(n).length&&(t+=(t.indexOf("?")>0?"&":"?")+p.paramify(n)),t}var le=function(e){return!e.group_id||!e.is_all_company};t.event=function(e,t){var n={events:void 0};return d.default.isArray(t)?0===t.length?n.events=[{name:e,properties:{}}]:n.events=d.default.map(t,function(t){return{name:e,properties:t}}):n.events=[{name:e,properties:t||{}}],Q("events/log",U(n))},t.getUser=function(e){return K("users/:id.json",{data:e},R)},t.updateUser=function(e){return K("users/:id.json",{data:e},D)},t.updateCurrentMetaUser=function(e){return K("meta_users/current.json",{data:e},D)},t.getUsers=function(e){return K("users.json",{data:e},R)},t.getUsersWhoLikedMessage=function(e){return K("users/liked_message/:message_id",{data:e},R)},t.getUsersFollowing=function(e){return K("users/following/:user_id",{data:e},R)},t.getUsersFollowedBy=function(e){return K("users/followed_by/:id.json",{data:e},R)},t.getUsersInGroup=function(e){return K("users/in_group/:id.json",{data:e},R)},t.getUserClientApplications=function(){return K("applications.json",R)},t.deleteUserClientApplication=function(e){return K("applications/:application_id",{data:e},G)},t.getUsersFollowingTopic=function(e){return K("users/following_topic/:topic_id",{data:e},R)},t.getUsersFollowingUploadedFile=function(e){return K("users/following_uploaded_file/:file_id",{data:e},R)},t.getUsersByEmail=function(e){return K("users/by_email.json",{data:e},R)},t.getUsersByIds=function(e){return K("users/by_user_ids.json",{data:e},R)},t.validateGroupName=function(e){return((0,c.treatment)("suite_groups_enforce_blocked_words")?Q:K)("groups/validate_group_name",e,j)},t.validateExternalNetworkName=function(e){return K("networks/validate_external_network_name",{data:e},j)},t.leaveNetwork=function(e){return K("networks/:id/leave",{data:e},j)},t.completeUploadSession=function(e){var t="v4/completeUploadSession";return(0,S.isInConditionalAccess)()?(u.info({message:"calling_with_aad_token",path:t,api_call_source:"complete_upload_session"}),se(t,U(e))):oe("v4/completeUploadSession",U(e))},t.completeDirectUploadSession=function(e){if(!le(e))return Promise.reject("Invalid value of group_id when is_all_company is true");var t=a({},e,{group_id:void 0===e.group_id?null:e.group_id}),n="v3/completeDirectUploadSession";return(0,S.isInConditionalAccess)()?(u.info({message:"calling_with_aad_token",path:n,api_call_source:"complete_direct_upload_session"}),se(n,U(e))):oe(n,U(t))},t.completeThreadAttachmentUploadSession=function(e){if(!le(e))return Promise.reject("Invalid value of group_id when is_all_company is true");var t=a({},e,{group_id:void 0===e.group_id?null:e.group_id}),n="v3/completeThreadAttachmentUploadSession";return(0,S.isInConditionalAccess)()?(u.info({message:"calling_with_aad_token",path:n,api_call_source:"complete_thread_attachment_upload_session"}),se(n,U(e))):oe(n,U(t))},t.createGroup=function(e){return K("groups",{data:e},j)},t.createUploadSession=function(e){var t="v3/createUploadSession",n=(0,k.default)(U(e));return(0,S.isInConditionalAccess)()?(u.info({message:"calling_with_aad_token",path:t,api_call_source:"create_upload_session"}),se(t,n)):oe(t,n)},t.createUploadSessionV4=function(e){var t="v4/createUploadSession",n=(0,k.default)(U(e));return(0,S.isInConditionalAccess)()?(u.info({message:"calling_with_aad_token",path:t,api_call_source:"create_upload_session"}),se(t,n)):oe(t,n)},t.deleteGroup=function(e){return K("groups/:id",{data:e},G)},t.refreshSasToken=function(e,t){return oe(e,U(t))},t.getGroup=function(e){return K("groups/:id.json",{data:e},R)},t.getGroups=function(e){return K("groups.json",{data:e},R)},t.getO365UnifiedGroup=function(e){return Q("groups/:id",{data:e},R)},t.getSharePoint=function(e){var t,n="v1.0/:path";return(0,S.isInConditionalAccess)()?(u.info({message:"calling_with_aad_token",path:n,api_call_source:"get_sharepoint"}),t=re(n,{data:e},R),l.default.sendWithAADRefresh(t)):ie(n,{data:e},R)},t.getSharePointUrl=function(e){return(0,S.isInConditionalAccess)()?(u.info({message:"calling_with_aad_token",path:e,api_call_source:"get_sharepoint_url"}),function(e,t,n){var r=new URL(e),i=r.pathname+r.search,o=a({},re(e,t,n),{url:f.msgraph(i)});return l.default.sendWithAADRefresh(o)}(e,R)):function(e,t,n){var r=re(e,t,n),i=new URL(e),o=i.pathname+i.search;return r=a({},r,{url:f.msgraph(o)}),l.default.send(r)}(e,R)},t.getSharepointPreviewUrl=function(e){var t={url:e,data:{json:!0},auth:!1};return(0,S.isInConditionalAccess)()?(u.info({message:"calling_with_aad_token",path:e,api_call_source:"get_sharepoint_preview_url"}),l.default.sendWithAADRefresh(t,R)):l.default.send(t)},t.fetchSkypeAddress=function(e){return ie("v1.0/users:filter",{data:{filter:"?$filter=proxyAddresses/any(c:c eq 'smtp:"+e+"')&$select=imAddresses"}},R).then(function(e){return e&&e.value[0]&&e.value[0].imAddresses||[]}).then(function(e){return 0===e.length?"":e[0]})},t.joinGroup=function(e){return K("group_memberships",{data:e,dataType:"text"},j)},t.leaveGroup=function(e){return K("group_memberships",{data:e,dataType:"json"},G)},t.updateGroup=function(e){return K("groups/:id.json",{data:e},D)},t.getGroupColorPalette=function(e){return K("groups/predefined_group_colors",{data:e},R)},t.getGroupBackgroundPatterns=function(e){return K("groups/predefined_header_images",{data:e},R)},t.updateNetworkInfo=function(e){return ne("groups/company/infos/:id.json",{data:e},D)},t.getForeignNetworks=function(){return K("flexternal/freemium_networks.json",{},R)},t.getNetworkPreferenceData=function(){return K("networks_prefs.json",{},R)},t.updateUserPreferences=function(e){return l.default.send(a({},U({query:w.default,operationName:"UpdateUserPreferencesClients",variables:e}),{url:f.gql()}))},t.getTenantSettings=function(){return X(E.default,"GroupClassificationSettingsWeb").then(function(e){return e.data.settings.group})},t.getNetworks=function(e){return K("networks/current.json",{data:d.default.defaults(e||{},{exclude_own_messages_from_unseen:!0,from_web:!0})},R)},t.getTokens=function(e){return K("oauth/tokens.json",{data:e},P)},t.getSubscriptions=function(e){return K("subscriptions.json",{data:e},R)},t.getSubscriptionToTarget=function(e){return K("subscriptions/to_target",{data:e},R)},t.getAutocomplete=function(e,t){var n=d.default.extend({},R,{timeout:3e3},t);return K("complete",{data:d.default.extend({},e,{network_id:o.getCurrentNetwork().id})},n)},t.getAutocompleteRanked=function(e){return K("autocomplete/ranked",{data:e},R)},t.getSubscriptionToUser=function(e){return K("subscriptions/to_user/:userId.json",{data:e},R)},t.getSubscriptionsToTopic=function(e){return K("subscriptions/to_topic/:id.json",{data:e},R)},t.getTopic=function(e){return K("topics/:topic_id",{data:e},R)},t.updateTopic=function(e){return K("topics/:topic_id",{data:e},D)},t.postMessage=function(){return K("messages",$(arguments),j)},t.postMessageOLS=function(e){return t="messages",n=U(e),(n=d.default.defaults({},n,r)).data=d.default.clone(n.data),n.url=f.apiV3(V(t,n.data)),l.default.sendWithAADRefresh(n);var t,n,r},t.postMessageGQL=function(e){var t=J({forFeed:h.getPostMessageType(e),callerVariables:h.getPostMessageVariables(e)}),r=l.default.sendWithAADRefresh(t),a=n.e(0).then(n.bind(null,583)),o=new Promise(function(e){e()}).then(n.bind(null,39));return Promise.all([r,a,o]).then(function(e){var n=i(e,3),r=n[0],a=n[1],o=n[2];h.reportGraphqlErrors(r,t.data.operationName);var s=r.data.createGroupMessage||r.data.createDirectMessage||r.data.createAnnouncement||r.data.replyMessage;return o.normalize({message:s.message,meta:{}},{message:a.default})})},t.editMessage=function(e){if((0,c.treatment)("graphql_feed_rendering_web")){var t=J({forFeed:h.getPostMessageType(e),callerVariables:h.getPostMessageVariables(e)}),r=l.default.sendWithAADRefresh(t),o=n.e(0).then(n.bind(null,591)),s=new Promise(function(e){e()}).then(n.bind(null,39));return Promise.all([r,o,s]).then(function(e){var n=i(e,3),r=n[0],a=n[1],o=n[2];h.reportGraphqlErrors(r,t.data.operationName);var s=r.data.editMessage||r.data.editAnnouncement,u=o.normalize({message:s.message,meta:{}},{message:a.default}),d=u.entities,c=u.result.message;return d.message[c]})}var u=f.apiV2("messages/"+e.id);return Q("messages/:id",a({},U(e),{method:"PUT"})).then(g.convertCallback(C.default.messagePayloadProcessor(function(e){return e}),u))},t.getPollData=function(e){return ee("messages/:poll_id",{data:e=d.default.extend({},e,{query:{feed:{threads:{messages:{poll_options:["option","answer","count","selected"]}}}}})}).then(function(e){var t=d.default.first(e.messages);return t?t.poll_options:null})},t.getSuiteNavAssets=function(e){return t="/suite_nav.json",n={data:e},r=j,i=(0,b.getAuthenticationHeaders)(),a=f.polaris(V(t,n.data)),(n=d.default.defaults({},n,r)).headers=i,n.url=a,l.default.send(n);var t,n,r,i,a},t.graphqlRequest=Z,t.submitPollVote=function(e){return Q("votes",U(e))},t.getThread=function(e){var t=f.api(V("messages/in_thread/:threadId.json",d.default.clone(e)));return te({url:t=ce(e,t)},d.default.identity)},t.getThreadInfo=function(e){var t=f.api(V("messages/in_thread/:thread_id.json",d.default.clone(e))),n={url:t=ce(e,t)};return(0,c.treatment)("graphql_feed_rendering_web")&&(n={forFeed:e.for_feed,threadId:e.ols_gql_id}),te(n,function(t){var n=d.default.findWhere(t.references,{id:e.thread_id,type:"thread"});return n.references=t.references,n.external_references=t.external_references,n})},t.getMessage=function(e){var t=f.api(V("messages/by_id/:id.json",d.default.clone(e)));return t=ce(e,t),(e.versions_before||e.versions_count)&&(t+=(t.indexOf("?")>0?"&":"?")+p.paramify({versions_before:e.versions_before,versions_count:e.versions_count})),te({url:t},d.default.identity)},t.getMessageFeed=function(e){var t=f.api(V("message_feeds/:id.json",d.default.clone(e))),n={url:t=ce(e,t)};return(0,c.treatment)("graphql_feed_rendering_web")&&(n.messageId=e.id,n.forFeed="realtimeMessage",n.fetchType=e.fetch_type,d.default.isFinite(parseInt(e.id,10))&&(n.messageId=btoa(JSON.stringify({_type:"Message",id:e.id.toString()})))),te(n,function(e){return{type:"message",data:e}})},t.followThreadInInbox=function(){return K("threads/:threadId/follow.json",$(arguments),D)},t.unfollowThreadInInbox=function(){return K("threads/:threadId/follow.json",$(arguments),G)},t.markInboxAsRead=function(e){return Q("inboxes/read_all?"+p.paramify(e),j)},t.markBestReply=function(e){return K("questions/:thread_starter_message_id/mark_best_reply",U(e))},t.unmarkBestReply=function(e){return K("questions/:thread_starter_message_id/unmark_best_reply",U(e))},t.deleteMessage=function(e){var t={data:e},n=G;return(0,S.isInGuestExperience)()?Y("messages/:id.json",t,n):K("messages/:id.json",t,n)},t.deleteMessageGQL=function(e){var t=J({forFeed:"deleteMessage",callerVariables:{messageMutationId:e}});return l.default.sendWithAADRefresh(t)},t.likeMessage=function(e){return K("messages/liked_by/current",{data:e,dataType:"text"},j)},t.unlikeMessage=function(e){return K("messages/liked_by/current",{data:e,dataType:"text"},G)},t.bookmarkMessage=function(e){return K("messages/favorites_of/current",{data:e,dataType:"text"},j)},t.unbookmarkMessage=function(e){return K("messages/favorites_of/current",{data:e,dataType:"text"},G)},t.getUserSuggestions=function(e){return K("suggestions.json",{data:d.default.defaults(e||{},{limit:21})},R)},t.logUserSuggestions=function(e){return K("suggestions/log.json",{data:e,dataType:"text"},j)},t.acceptUserSuggestion=function(e){return K("suggestions/:id.json",{data:e,dataType:"json"},D)},t.declineUserSuggestion=function(e){return K("suggestions/:id.json",{data:e},G)},t.getInboxGroups=function(e){return K("groups/unviewed.json",{data:e},R)},t.getGroupSuggestions=function(e){return K("group_suggestions.json",{data:d.default.defaults(e||{},{limit:21})},R)},t.getSuggestionCards=function(e){return K("suggestions/cards",{data:d.default.defaults(e||{},{limit:3,card_types:"suggested_groups"})},R)},t.logGroupSuggestions=function(e){return K("group_suggestions/log.json",{data:e,dataType:"text"},j)},t.acceptGroupSuggestion=function(e){return K("group_suggestions/:id.json",{data:e,dataType:"json"},D)},t.declineGroupSuggestion=function(e){return K("group_suggestions/:id.json",{data:e},G)},t.setThreadLastSeen=function(){return K("messages/last_seen_in_thread.json",$(arguments),j)},t.postViewedThreads=function(){return K("messages/viewed_messages.json",$(arguments),j)},t.addThreadParticipant=function(e){return K("threads/:threadId.json",{data:e,dataType:"json"},D)},t.removeThreadParticipants=function(e){if((0,c.treatment)("graphql_feed_rendering_web")){e.participantIds=[e.participantIds];var t=J({forFeed:h.getPostMessageType(e),callerVariables:h.getPostMessageVariables(e)});return l.default.sendWithAADRefresh(t)}var n="threads/:threadId/participants/:participantIds",r={data:e,dataType:"json"},i=G;return(0,S.isInGuestExperience)()?Y(n,r,i):K(n,r,i)},t.moveToGroup=function(e){if((0,c.treatment)("graphql_feed_rendering_web")){var t=J({forFeed:h.getPostMessageType(e),callerVariables:h.getPostMessageVariables(e)});return l.default.sendWithAADRefresh(t)}return K("threads/:id/move_to_group",{data:e,dataType:"json"},D)},t.applyTreatment=function(e){return K("experiments/:id/treated.json",{data:e},j)},t.getUploadedFile=function(e){var t=R,n="uploaded_files/:id.json",r={data:e};return(0,S.isInConditionalAccess)()?(u.info({message:"calling_with_aad_token",path:n,api_call_source:"get_uploaded_file"}),Y(n,r,t)):K(n,r,t)},t.getRealtime=function(e){return K("realtime.json",{data:e},R)},t.getSignupInfo=function(e){return K("signup/network_info.json",{data:e},R)},t.changeEmail=function(e){return K("signup/change_email.json",{data:e},j)},t.changePassword=function(e){return K("password.json",{data:e},j)},t.validatePassword=function(e){return K("signup/validate_password.json",{data:e},j)},t.activateUser=function(e){return K("signup/complete_activation.json",{data:e},j)},t.updateOpenGraphObjects=function(){return K("open_graph_objects/update.json",d.default.defaults($(arguments),{dataType:"json"}),D)},t.muteThread=function(e){return K("threads/:thread_id/mute",{data:e},D)},t.unmuteThread=function(e){return K("threads/:thread_id/mute",{data:e},G)},t.getCurrentUser=function(e){return e||(e={with_prefs:!0,include_group_memberships:!0,with_attachments:!0}),K("users/current",{data:e},R)},t.switchLanguage=function(e){return K("language",{data:d.default.defaults({locale_type:"standard"},e)},j)},t.makeAdmin=function(e){return K("groups/"+e.group_id+"/make_admin?user_id="+e.user_id,{},j)},t.revokeAdmin=function(e){return K("groups/"+e.group_id+"/revoke_admin?user_id="+e.user_id,{},j)},t.switchLanguageFromPublicSite=function(e){return ne("api/v1/guest_language",{data:d.default.defaults({locale_type:"standard"},e)},d.default.defaults({auth:!1},j))},t.updateFeedSubscriptions=function(e){return ne("feed_subscriptions/:client_type",{data:e},D)},t.createContentRelationship=function(e){return K("content_relationships",{data:e},j)},t.getContentRelationships=function(e){return K("content_relationships",{data:e},R)},t.updateContentRelationship=function(e){return K("content_relationships/:relationship_id",{data:e},D)},t.deleteContentRelationship=function(e){return K("content_relationships/:relationship_id",{data:e},G)},t.getUsagePolicy=function(){return K("usage_policy/current",{},R)},t.acceptUsagePolicy=function(){return K("usage_policy",{},j)},t.getGroupFilesCount=function(e){return K("uploaded_files/in_group_count/:group_id",{data:e},R)},t.getGroupFiles=function(e){var t=e.pageId||1,n=e.groupId||"",r=R;return K("uploaded_files/in_group/:group_id.json?page=:page_id",{data:d.default.extend({page_id:t,group_id:n},e)},r)},t.getUsersRecentFiles=function(e){var t=e.pageId||1,n=R;return K("uploaded_files/recently_accessed.json?page=:page_id",{data:d.default.extend({page_id:t},e)},n)},t.getUserFiles=function(e){var t=e.pageId||1,n=R;return K("uploaded_files/:path/:user_id.json?page=:page_id",{data:d.default.extend({page_id:t,user_id:e.userId},e)},n)},t.getEditHistoryFromGQL=function(e){var t=J({forFeed:"editHistory",callerVariables:{id:e}});return l.default.sendWithAADRefresh(t).then(h.transformToVersionModels)},t.makeFileOfficial=function(e){return K("uploaded_files/:file_id/set_official",{data:d.default.extend(e,{official:!0})},D)},t.makeFileUnofficial=function(e){return K("uploaded_files/:file_id/set_official",{data:d.default.extend(e,{official:!1})},D)},t.createOpenGraphActivity=function(e){return K("activity",{data:e},j)},t.getOpenGraphObject=function(e){return K("open_graph_objects",{data:e},R)},t.deleteOpenGraphObject=function(e){return K("open_graph_objects/:ogo_id",{data:e},G)},t.createOpenGraphObject=function(e){return K("open_graph_objects",{dataType:"json",data:e},j)},t.fetchOpenGraphObject=function(e){return K("open_graph_objects/fetch",{data:d.default.pick(e,"url")},R)},t.createOpenGraphObjectType=function(e){return K("open_graph_object_types",{data:e},j).then(function(e){return d.default.first(e.open_graph_object_type)})},t.updateOpenGraphObjectType=function(e){return K("open_graph_object_types/:id",{data:e},D)},t.deleteOpenGraphObjectType=function(e){return K("open_graph_object_types/:id",{data:e},G)},t.createOpenGraphActionType=function(e){return K("open_graph_action_types",{data:e},j).then(function(e){return d.default.first(e.open_graph_action_type)})},t.updateOpenGraphActionType=function(e){return K("open_graph_action_types/:id",{data:e},D)},t.deleteOpenGraphActionType=function(e){return K("open_graph_action_types/:id",{data:e},G)},t.getSubscriptionToOpenGraphObject=function(e){return K("subscriptions/to_open_graph_object/:id",{data:e},R)},t.getLikesForOpenGraphObject=function(e){return K("likes/open_graph_object/:id",{data:e},R)},t.removeLikeForOpenGraphObject=function(e){return K("likes/:id",{data:e},G)},t.subscribeToTarget=function(e){return K("subscriptions",{data:e},j)},t.unsubscribeFromTarget=function(e){return K("subscriptions",{data:e},G)},t.getMugshotsInGroup=function(e){var t={threads_count:1,messages_count:1,exclude_own_messages_from_unseen:!0,for_feed:e.group_id?"group":"general",fetch_type:"getMugshotsForNavatars"},n=e.group_id?"networks/:network_id/feeds/group/:group_id?":"networks/:network_id/feeds/general?";return ee(n+=p.paramify(t),{data:e=d.default.extend({},e,{network_id:o.getCurrentNetwork().id,query:{feed:{threads:{messages:{sender_id:!0,connector_card:!0}},reference_data:{users:{mugshot_id:!0}},url_templates:{user_mugshot:!0}}}})})},t.getMugshotsInAllCompany=function(e){return this.getMugshotsInGroup(d.default.without(e,"group_id"))},t.updateFileTitle=function(e){return K("uploaded_files/:id",{data:e},D)},t.updateFileDescription=function(e){return K("uploaded_files/:id",{data:e},D)},t.deleteFile=function(e){var t={data:e},n=G;if((0,S.isInConditionalAccess)()){var r="uploaded_files/"+e.file_id;return u.info({message:"calling_with_aad_token",path:r,api_call_source:"delete_file"}),Y("uploaded_files/:file_id",t,n)}return K("uploaded_files/:file_id",t,n)},t.deleteSharepointFile=function(e){if(!e.sharepoint_file_id)return Promise.reject("Invalid value of sharepoint_file_id");if(!e.file_id)return Promise.reject("Invalid value of file_id");if(!e.group_id)return Promise.reject("Invalid value of group_id");var t={data:e},n="uploaded_files/:file_id?group_id=:group_id&sharepoint_file_id=:sharepoint_file_id",r=G;if((0,S.isInConditionalAccess)()){var i="uploaded_files/"+e.file_id+"?group_id="+e.group_id+"&sharepoint_file_id="+e.sharepoint_file_id;return u.info({message:"calling_with_aad_token",path:i,api_call_source:"delete_sharepoint_file"}),Y(n,t,r)}return K(n,t,r)},t.revertFileToVersion=function(e){return K("uploaded_files/:file_id/revert_to_version/:version_id",{data:e},j)},t.setUserPresence=function(e){return K("whoville/networks/:network_id/users/:user_id/:presence",{data:e},j)},t.getVideoStreamingPath=function(e){var t=e&&e.version_id?"uploaded_files/:file_id/version/:version_id/stream":"uploaded_files/:file_id/stream",n={data:e,dataType:"text"},r=R;return(0,S.isInConditionalAccess)()?(u.info({message:"calling_with_aad_token",path:"uploaded_files/:file_id/version/:version_id/stream",api_call_source:"get_video_streaming_path"}),Y(t,n,r)):K(t,n,r)},t.inviteOrFollow=function(e){return K("follow_invitations",{data:e},j)},t.inviteToGroup=function(e){return K("invitations",{data:e},j)},t.approveGroupMembership=function(e){return K("group_memberships/approve",{data:e},j)},t.allowGroupMembership=function(e){return K("group_memberships/allow",{data:e},j)},t.createGroupMembership=function(e){return K("group_memberships",{data:e},j)},t.deleteGroupMembership=function(e){return K("group_memberships",{data:e,dataType:"json"},G)},t.denyGroupMembership=function(e){return K("group_memberships/deny",{data:e},j)},t.addToGroup=function(e){return ne("group_settings/process_additions/:group_id",{auth:!1,data:e},j)},t.claimGroup=function(e){return K("groups/:id/claim_admin",{data:e},j)},t.addThreadTopic=function(e){return K("threads/:thread_id/apply_topic",{data:e},j)},t.removeThreadTopic=function(e){return K("threads/:thread_id/remove_topic",{data:e},j)},t.addFileTopic=function(e){return e.file_id||(e.file_id=e.itemId),K("uploaded_files/:file_id/apply_topic",{data:e},j)},t.removeFileTopic=function(e){return e.file_id||(e.file_id=e.itemId),K("uploaded_files/:file_id/remove_topic",{data:e},j)},t.recordOpenGraphClick=function(e){return K("open_graph_objects/click",{data:e},j)},t.setPrivateContentMode=function(e){return K("supervisor_mode/toggle",{data:e},j)},t.getSearchSummary=function(e){return this.searchV2(e,"search/summary")},t.searchV2=function(e,t){var n=(0,c.treatment)("add_min_should_match_v2")||void 0,r=d.default.extend({},R);return r.data=d.default.extend(function(e,t){return d.default.extend({},e,{_network:t.id})}(e,o.getCurrentNetwork()),{relevance:n}),r.url=f.apiV2(t||"search/models"),r.cache=!0,l.default.send(r).then(function(e){return e.failures&&console.warn("Search reported failures: ",e.failures),e})},t.searchMessagesV2=function(e){if((0,c.treatment)("graphql_feed_rendering_web")){var t={forFeed:"globalSearch",fetchType:e.after?"olderThan":"initial",searchQuery:e.search,after:e.after};e.group_ids&&(t.forFeed="groupSearch",t.groupDatabaseId=e.group_ids.toString());var n=J(t),r=l.default.send(n).then(function(e){return h.reportGraphqlErrors(e,n.data.operationName)});return(0,c.treatment)("gql_normalize_search")?r.then(function(e){var t=e.data.group?e.data.group.feed.search:e.data.search.threads;return(0,v.default)(t)}):r.then(h.transformSearch).then(de)}return this.searchV2(e).then(ue.bind(null,"threads")).then(de)},t.searchUsersV2=function(e){return this.searchV2(e).then(ue.bind(null,"users"))},t.searchInboxV2=function(e){if((0,c.treatment)("graphql_feed_rendering_web")){var t=J({forFeed:"inboxSearch",fetchType:e.after?"olderThan":"initial",searchQuery:e.searchQuery,after:e.after}),n=l.default.send(t).then(function(e){return h.reportGraphqlErrors(e,t.data.operationName)});return(0,c.treatment)("gql_normalize_search")?n.then(function(e){var t=e.data.viewer.inbox.search;return(0,v.default)(t)}):n.then(h.transformSearch).then(de)}return this.searchV2(e,"search_inbox").then(ue.bind(null,"threads")).then(de)},t.searchGroupsV2=function(e){return this.searchV2(e).then(ue.bind(null,"groups"))},t.searchTopicsV2=function(e){return this.searchV2(e).then(ue.bind(null,"topics"))},t.getInvitableContactsForNetwork=function(e){return ne("/contacts/network",{data:e},R)},t.searchFilesV2=function(e){return this.searchV2(e).then(ue.bind(null,"files"))},t.remindUserToSignUp=function(e){return K("invitations",{data:e},j)},t.inviteToNetwork=function(e){return ne("invitations/emails",{data:e},j)},t.inviteAllToNetwork=function(e){return ne("invitations/invite_all",{data:e},j)},t.startNetworkMigration=function(e){return K("network_migrations",{data:e},j)},t.getNetworkMigrationErrors=function(e){return K("network_migrations/:network_id/errors",{data:e},R)},t.getNetworkDomains=function(e){return K("network_domains",{data:e},R)},t.getInvites=function(){return K("networks/invites",{},R)},t.getVerifiedDomains=function(e){return K("o365/verified_domains",{data:e},R)},t.translate=function(t){return e.mark("translateStart"),K("translate",{data:{json:JSON.stringify(t)}},j)},t.registerGroupVisit=function(e){return K("groups/:id/visit",{data:e},j)},t.registerFileVisit=function(e){return K("uploaded_files/:id/visit",{data:e},j)},t.getRequests=function(){return K("requests.json",{},R)},t.getYamjsToken=function(){return K("yamjs",{},R)},t.reportEvent=function(e){return Q("events",U(e))},t.reportPerformance=function(e){return t=U(e),(t=d.default.defaults({},t,n)).contentType="application/json",t.headers={"Authorization-Receiver":y.config().reportAuthorizationReceiver},t.url=y.config().reportPerfRequestUri,l.default.send(t);var t,n},t.getUsersGroups=function(e){return K("groups/for_user/:id.json",{data:e},R)},t.getApp=function(e){return ne("apps/:app_id.json",{data:e},R)},t.getAccountActivity=function(e){return ne("account_activity",{data:e},R)},t.logoutSession=function(e){return ne("account_activity/:session_id",{data:e},G)},t.logoutCurrentSession=function(){return l.default.send({url:f.base("logout"),type:"POST",data:{_method:"delete"},dataType:"text"})},t.removeAppFromDirectory=function(e){return ne("client_applications/:id/undeploy_local",{data:e},a({},j,{dataType:"text"}))},t.suspendUser=function(e){return ne("users/:id/suspend",{data:e},j)},t.deleteFlexternalUser=function(e){return K("networks/:network_id/users/:user_id",{data:d.default.extend({},e,{gdpr_delete:!0})},G)},t.getBanners=function(e){return K("banners/users/:id/banners",{data:{keys:(e||[]).join(","),id:o.getCurrentUser().id}},F)},t.incrementCountBanner=function(e){var t={key:e,id:o.getCurrentUser().id,count:{op:"increment",value:1}};return K("banners/users/:id/banners/:key",L(t),F)},t.optOutBanner=function(e){var t={key:e,id:o.getCurrentUser().id,opted_out:{op:"set",value:!0}};return K("banners/users/:id/banners/:key",L(t),F)},t.fileCreate=function(e){var t=e.data,n=e.params,r="v1/documents/edit_new?";return(0,S.isInCreateNewSharePointDocument)()?(u.info({message:"calling_with_aad_token",path:r,api_call_source:"create_upload_session"}),se(""+r+p.paramify(n),{data:t},U(t))):oe(""+r+p.paramify(n),{data:t},j)},t.graphqlInboxAll=function(){return Z({forFeed:"inboxAll",fetchType:"gql_double_dispatch"})},t.commitUploadedFile=function(e,t){return K("uploaded_files/"+e.id+"/finish?"+p.paramify(t),{},a({},D,{dataType:"json"}))},t.commitUploadedFileVersion=function(e){return K("uploaded_files/"+e.file_id+"/versions/"+e.id+"?finish=true",{},j)},t.getMessages=function(){var e=$(arguments),t=(e=d.default.extend({},R,e)).success||d.default.identity,n=e.error||d.default.identity,r=e.processor||d.default.identity,i=e.forFeed||"UNKNOWN",a=e.fetchType||"UNKNOWN",o=("broadcast"===i||"broadcastQuestions"===i||"broadcastUnanswered"===i)&&"post"!==a;delete e.success,delete e.error,delete e.processor;var s={for_feed:i,fetch_type:a},u=r(t);return e.url=ce(s,e.url),o?(0,I.hydrantRequestFeed)(e,u,n):g.canConvertUrl(e.url)?te(e,u,n):(delete e.forFeed,delete e.fetchType,((0,S.isInGuestExperience)()?l.default.sendWithAADRefresh:l.default.send)(e).then(u,n))},t.repairInboxUnreadCount=function(){var e="messages/inbox?exclude_own_messages_from_unseen=1&exclude_realtime=1&filter=unseen&inbox_supported_client=1&include_counts=1&update_last_seen_message_id=0&for_feed=inboxUnread&fetch_type=repairInboxUnreadCount_Supeng10211",t={message:"inbox_count_initial_mismatch_repair",repair_url:f.api(e),hadInitialMismatch:1,isResyncing:0,diagnosis:"WARN_INBOX_COUNT_INITIAL_MISMATCH_REPAIR",fetchType:"newerThan_Backfill",knownIssue:"SUPENG-10211"};return K(e,{data:{success:function(e){return e}}},R).then(function(e){t.threadCount=(e.messages||[]).length,t.apiCount=(e.meta||{}).unseen_thread_count,t.clientAfterCount=t.apiCount,u.info(t),s.default.hadInitialMismatch=!1},function(){t.diagnosis="ERROR_FAILED_INBOX_COUNT_MISMATCH_REPAIR",u.info(t)})},t.uploadFile=function(e,t){var n=y.config().filesHost,i=(0,b.getAuthenticationHeaders)();return r.ajax({url:n,xhr:function(){return function(e){var t=new XMLHttpRequest;return t.upload.addEventListener("progress",function(t){if(t.lengthComputable){var n=Math.floor(t.loaded/t.total*100);e(n)}},!1),t}(t)},data:e,type:"POST",headers:i,processData:!1,contentType:!1})},t.uploadFileToSharepoint=function(e,t){var n=a({},e,{crossDomain:!0,method:"PUT",processData:!1,url:t}),r=l.default.send(n);return r.then(function(e){return{requestId:r.getResponseHeader("sprequestguid")||"",data:e}})},t.cancelUploadToSharepoint=function(e){var t=a({},G,{url:e});return l.default.send(t)},t.deleteUploadedFile=function(){return r.Deferred()},t.getGroupInsights=function(e){return K("group_insights/data/visualization",{data:e},R)},t.noteMapper=function(e){return Q("note_mapper/notes/:note_id",{data:e},R)},t.addOfficeGroupToYammerGroup=function(e){return K("office_group_invitations",{data:e},j)},t.getGroupNamingConventions=function(){return X(T.default,"GroupNamingConventionsWeb").then(function(e){return e.data.settings.group.viewerNamingConventions})},t.gettingStartedSkipped=function(){l.default.send({url:f.app("getting_started/dismiss_post_task"),type:"POST"})},t.applyReplyRestrictions=function(e){return K("threads/:thread_id/reply_disabled",{data:e,dataType:"json"},j)},t.hydrantRequestFeed=te}).call(t,n(77),n(20))},140:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"__esModule",function(){return i});var r=n(25);t.default=r.default.define("yam.model.Topic",function(){});var i=!0},143:function(e,t){e.exports={assetHost:"https://s0-azure.assets-yammer.com",cdnAssetHost:"https://s0-azure.assets-yammer.com",mugshotHost:"https://www.yammer.com/mugshot",polarisHost:"https://polaris.yammer.com/",baseURI:"https://www.yammer.com",apiBaseURI:"https://api.yammer.com",broadcastHost:"https://broadcast.yammer.com",videoStreamingUri:"rtmpt://s1fqyiixzut1oy.cloudfront.net:80/cfx/st",aadClientId:"00000005-0000-0ff1-ce00-000000000000",aadTokenResource:"https://www.yammer.com/",reportAuthorizationReceiver:"MTosLDIzQTBEMTA1LTM4RUItNDcyMS05RTM2LTQxNEY5QUI1RTQ3MyA=",reportAuthorizationFallbacks:["9223372036854775807","9223372036854775806","9223372036854775805","9223372036854775804","9223372036854775802"],reportPerfRequestUri:"https://www.yammer.com/api/v1/yamalytics/webui",filesAFDHost:"https://filesng.yammer.com",filesHost:"https://filesng.yammer.com/v2/files",paddieHost:"https://pad0.assets-yammer.com",plannerHost:"https://tasks.office.com",msgraphUri:"https://msgraph.yammer.com",yammer_environment:"azure_production",tenorKey:"G0B00ET2D8EF",tenorTrendingUri:"https://api.tenor.com/v1/trending",tenorSearchUri:"https://api.tenor.com/v1/search",desktopTrackingClientId:"72856",webTrackingClientId:"1",embedGlammerBaseUri:"https://beta-sdf.yammer.com"}},148:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var r=n(64),i=(n.n(r),function(e){return e.session.credentials.accessToken}),a=Object(r.createSelector)(i,function(e){return!!e})},149:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"beforeSend",function(){return w}),n.d(t,"getParamsForWrite",function(){return v}),n.d(t,"getAuthenticationToken",function(){return f}),n.d(t,"getAuthenticationHeaders",function(){return b}),n.d(t,"onRetry",function(){return g}),n.d(t,"setAuthToken",function(){return m});var r=n(8),i=n.n(r),a=n(21),o=n(60),s=n(24),u=n(171),d=n(30),c=n(148),l=n(235),f=function(){return Object(c.a)(d.default.getState())},p=function(e){return d.default.dispatch(Object(l.d)(e))},h=function(){return d.default.dispatch(Object(l.a)())},g=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];i.a.ajax.apply(null,e)},m=function(e){if("string"==typeof e)p(e);else if(e&&e.token)p(e.token);else{var t=o.get("oauth_token");p(t)}},_=function(e){var t=e.error||function(){},n=e.complete||function(){},r={url:s.join(s.base(),"oauth2/access_token.json"),data:{client_id:a.config().appId},success:function(n,r,i){if(n&&n.access_token){var a=n.access_token;return p(a.token),void g(e)}h(),"function"==typeof t&&t.call(e,i,r,void 0)},error:function(n,r,i){h(),"function"==typeof t&&t.call(e,n,r,i)},complete:function(e,t){f()||n.call(this,e,t)}};i.a.ajax(r)},y=function(e){var t=e.error;void 0===e.retries||null==e.retries?e.retries=1:e.retries-=1,e.error=function(n,r){return e.error=t,"error"===r&&function(e){return 401===e.status&&!!e.getResponseHeader("WWW-Authenticate")}(n)&&(m(null),e.context===e&&delete e.context,e.retries>0)?i.a.ajax(e):"function"==typeof t?t.apply(this,arguments):void 0}},v=function(){var e=f();return e?{access_token:e}:{}},b=function(){var e=f();return e?{Authorization:"Bearer "+e}:{}};function w(e,t){var n=f();if(!n)return window.setTimeout(function(){_(t)},10),!1;n&&y(t),Object(u.a)(t,e,this)}},150:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(9),i=n(12),a=(n.n(i),function(e,t){Object(i.treatment)("file_improvements_experimental_reporting")&&Object(r.experimentalEvent)({name:e,data:JSON.stringify(t)}),Object(r.event)(e,t)})},151:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(83),a=n(30),o=n(49),s=n(9),u=n(72),d=n(294),c=n.n(d);!function(e){e.cachedUserNotFound="cached_adal_user_not_found",e.loginCalled="acquiring_token_via_login",e.popupCalled="acquiring_token_via_popup",e.redirectCalled="acquiring_token_via_redirect"}(r=r||(r={}));var l=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(o,s)}u((r=r.apply(e,t||[])).next())})},f=this&&this.__generator||function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=r[2&a[0]?"return":a[0]?"throw":"next"])&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[0,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},p=function(){},h=function(){function e(e){this.reportEvent=e.reportEvent||p,this.context=new c.a({clientId:e.clientId,instance:e.instance,tenant:e.tenant,redirectUri:e.redirectUri,extraQueryParameter:e.extraQueryParameter,cacheLocation:"localStorage",navigateToLoginRequestUrl:!0,loadFrameTimeout:12e3,loginResource:e.loginResource,callback:e.callback,popUp:e.popUp})}return e.prototype.acquireTokenForResource=function(e,t){return void 0===t&&(t={popup:!1}),l(this,void 0,void 0,function(){var n;return f(this,function(i){switch(i.label){case 0:if(this.requiresLogin())throw this.reportEvent(r.cachedUserNotFound),this.login(),new Error("Not yet authenticated. Redirecting to AAD to authenticate.");i.label=1;case 1:return i.trys.push([1,3,,7]),this.handleTokenInUrl(),[4,this.acquireToken(e)];case 2:return[2,i.sent()];case 3:return n=i.sent(),t.popup?[4,this.acquireTokenPopup(e)]:[3,5];case 4:return[2,i.sent()];case 5:this.acquireTokenRedirect(e),i.label=6;case 6:throw n;case 7:return[2]}})})},e.prototype.handleTokenInUrl=function(){this.context.handleWindowCallback(window.location.hash)},e.prototype.requiresLogin=function(){return!this.getUser()&&!this.hasTokenInUrl()},e.prototype.login=function(){this.reportEvent(r.loginCalled,{client:"web"}),this.context.login()},e.prototype.getUser=function(){return this.context.getCachedUser()},e.prototype.hasTokenInUrl=function(){return this.context.isCallback(window.location.hash)},e.prototype.acquireToken=function(e){var t=this;return new Promise(function(n,r){t.context.acquireToken(e,function(e,t,i){i?r(i):t?n(t):r("acquireToken returned no error and no token")})})},e.prototype.acquireTokenRedirect=function(e){this.reportEvent(r.redirectCalled,{resource:e,client:"web"}),this.context.acquireTokenRedirect(e)},e.prototype.acquireTokenPopup=function(e){var t=this;return this.reportEvent(r.popupCalled,{resource:e,client:"web"}),new Promise(function(n,r){t.context.acquireTokenPopup(e,void 0,void 0,function(e,t){e?r(e):t?n(t):r("acquireTokenPopup returned no error and no token")})})},e}();function g(e){e&&Object(s.error)({name:i.c.redirectFailed,adal_error:e})}var m=n(108),_=n(21),y=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(o,s)}u((r=r.apply(e,t||[])).next())})},v=this&&this.__generator||function(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=r[2&a[0]?"return":a[0]?"throw":"next"])&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[0,i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},b=this,w=function(){var e=a.default.getState(),t=Object(m.a)(e),n=Object(o.a)(e),r=Object(m.b)(e);if(!t)throw new Error(i.b.AuthContextCreationFailureNoAccessToken);if(!n)throw new Error(i.b.AuthContextCreationFailureNoClientId);if(!r)throw new Error(i.b.AuthContextCreationFailureNoUpn);window.Logging={level:2,piiLoggingEnabled:!1,log:function(e){Object(s.experimentalEvent)({name:"adal_library_log",message:function(e){return e.replace(/login_hint=[^&]+(&|$)/gi,"")}(e)})}};var d=Object(o.b)(e),c=function(){var e=a.default.getState();return Object(o.b)(e)+"aad_refresh/"}(),l=Object(_.config)().AADInstance,f=Object(u.isEmbed)(e);return new h({clientId:n,instance:l,loginResource:d,redirectUri:c,callback:g,extraQueryParameter:"login_hint="+r,reportEvent:s.eventNow,popUp:f})},T=null,E=n(19);n.d(t,"handleTokenRefreshRetryFailure",function(){return I}),n.d(t,"acquireOfficeAccessToken",function(){return O});var I=function(e,t){t&&t(e)},O=function(e){var t=e.handleTokenRefreshSuccess,n=e.handleTokenRefreshFailure;return Object(s.experimentalEvent)({name:i.c.called,client:i.a.web}),Object(E.isDesktopApp)()?function(e,t){if(window.acquireTokenForResource){var n=window.acquireTokenForResource,r=a.default.getState(),u=Object(o.b)(r);return n(u).then(function(t){Object(s.experimentalEvent)({name:i.c.succeeded,client:i.a.desktop}),e(t)}).catch(function(r){Object(s.error)({name:i.c.failed,client:i.a.desktop,adal_error:r}),n(u).then(function(t){Object(s.experimentalEvent)({name:i.c.retrySucceeded,client:i.a.desktop}),e(t)}).catch(function(e){Object(s.error)({name:i.c.retryFailed,client:i.a.desktop,adal_error:e}),I(e,t)})})}var d=i.b.AcquireTokenForResourceNotFound;return Object(s.error)({name:i.c.failed,client:i.a.desktop,adal_error:d}),Promise.reject(d)}(t,n):function(e){var t=e.handleTokenRefreshSuccess;return y(b,void 0,void 0,function(){var e,n,r,d,c;return v(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),T||(T=w()),e=a.default.getState(),n=Object(o.b)(e),r={popup:Object(u.isEmbed)(e)},[4,T.acquireTokenForResource(n,r)];case 1:return d=l.sent(),Object(s.experimentalEvent)({name:i.c.succeeded,client:i.a.web}),t(d),[3,3];case 2:return c=l.sent(),Object(s.eventNow)(i.c.failed,{client:i.a.web,adal_error:(f=c,f&&f.message||f)}),[3,3];case 3:return[2]}var f})})}(e)}},152:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0));var i={UNKNOWN_API_COUNT:-1,diagnose:function(e,t,n,i,a){return(n=r.isNumber(n)?n:this.UNKNOWN_API_COUNT)===this.UNKNOWN_API_COUNT?a===i||e.older_available?"ok_client_calculation":"WARN_COUNT_THREAD_CLIENT_INCONSISTENCY":n===a||e.older_available?n!==i?"ERROR_CLIENT_SERVER_MISMATCH":"resyncReconnectMismatch"===t?"WARN_SUCCESSFUL_INBOX_MISMATCH_RESYNC":"ok_agree":this.isInitializingFetchType(t)?"ERROR_COUNT_THREAD_SERVER_INCONSISTENCY":"ERROR_COUNT_THREAD_MISMATCH"},isCountError:function(e){return e&&-1!==e.indexOf("ERROR")},isCountWarning:function(e){return e&&-1!==e.indexOf("WARN")},hadInitialMismatch:function(e){return"ERROR_COUNT_THREAD_SERVER_INCONSISTENCY"===e},isInitializingFetchType:function(e){return"initial"===e||"resyncMarkAllAsRead"===e||"resyncReconnectMismatch"===e||"resyncReconnectStale"===e||"resyncUnknown"===e}};t.default=i},153:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getItemsFromUrl=t.getDefaultOrganization=t.getGroupSharePointFolder=t.getPersonalSharePointFolder=t.getListOfUnifiedGroups=t.getGroupSharePointRootFolder=t.getGroupSharePoint=t.getPersonalSharePoint=t.getPersonalItems=t.getPersonalInfo=void 0;var r=o(n(0)),i=n(14),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(2));function o(e){return e&&e.__esModule?e:{default:e}}var s=new(o(n(304)).default),u="me/memberOf/$/microsoft.graph.group?$filter=groupTypes/any(a:a%20eq%20%27unified%27)",d="me/drive/root/children",c="me",l="me/drive/items/:folderId/children",f="me/drive/recent?$top=25",p="groups/:groupId/drive/root/children",h="groups/:groupId/drive/root/",g="groups/:groupId/drive/items/:folderId/children",m="organization",_={id:"all",displayName:a.t("all")},y={id:"recent",displayName:a.t("recent")},v={},b=60,w=5;function T(e,t,n){return v[n]?v[n]:(v[n]=E(e,t),v[n])}function E(e,t){return s.isExpired(e)?(0,i.getSharePoint)({path:e}).then(function(n){return s.add(e,t,n),delete v.personalPromise,delete v.listOfGroupsPromise,n}):s.get(e)}t.getPersonalInfo=function(){return(0,i.getSharePoint)({path:c})},t.getPersonalItems=function(){return[_,y]},t.getPersonalSharePoint=function(e){return e.id===y.id?E(f,b):T(d,w,"personalDrivePromise")},t.getGroupSharePoint=function(e){var t=p.replace(":groupId",e.id);return(0,i.getSharePoint)({path:t})},t.getGroupSharePointRootFolder=function(e){var t=h.replace(":groupId",e.id);return(0,i.getSharePoint)({path:t})},t.getListOfUnifiedGroups=function(){return T(u,b,"listOfGroupsPromise")},t.getPersonalSharePointFolder=function(e){var t=l.replace(":folderId",e.id);return(0,i.getSharePoint)({path:t})},t.getGroupSharePointFolder=function(e,t){var n=g.replace(":groupId",e.id);return n=n.replace(":folderId",t.id),(0,i.getSharePoint)({path:n})},t.getDefaultOrganization=function(){return(0,i.getSharePoint)({path:m}).then(function(e){if(e.value&&e.value.length){var t=e.value[0].verifiedDomains;return r.default.findWhere(t,{isDefault:!0})}return{}})},t.getItemsFromUrl=function(e){return(0,i.getSharePointUrl)(e)}},154:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0));var i=function(e){null!=e&&(this._filter=e.filter)};i.prototype.setFilter=function(e){this._filter=e},i.prototype.extractEmails=function(e){var t=e.match(d),n=r.groupBy(t,this.isAcceptableEmail,this);return{accepted:n[!0]||[],rejected:n[!1]||[]}},i.prototype.isEmail=function(e){return u.test(e)},i.prototype.isAcceptableEmail=function(e){return this.isEmail(e)&&(null==this._filter||this._filter.call(this,e))};var a="[-!#$%&*+/0-9=?A-Z^_a-z{|}~](?:\\.?[-!#$%&*+/0-9=?A-Z^_a-z{|}~])*@",o="("+a+"[a-zA-Z0-9](?:-?[a-zA-Z0-9])*(?:\\.[a-zA-Z](?:-?[a-zA-Z0-9])*)+)",s=new RegExp("^"+a),u=new RegExp("^"+o+"$"),d=new RegExp(o,"g"),c=/\s/;i.getDomainFromEmail=function(e){if("string"==typeof e&&u.test(e)){var t=e.indexOf("@"),n=e.substring(t+1);return n.match(/\.[\w]{2,}$/)?n:void 0}},i.hasValidFirstHalfOfEmail=function(e){var t=s.test(e),n=c.test(e);return t&&!n},i.isValidEmail=function(e){return u.test(e)},t.default=i},155:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(176),a=(r=i)&&r.__esModule?r:{default:r};var o={messagePayloadProcessor:function(e){return function(t){return e(new a.default(t))}},searchPayloadProcessor:function(e){return function(t){return t.messages&&t.messages.messages&&(t.meta=t.messages.meta,t.references=t.messages.references,t.snippets=t.messages.snippets,t.messages=t.messages.messages),e(new a.default(t))}}};t.default=o},16:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeQueryParams=t.isSafeLink=t.linkRegex=t.parseQueryMapFromUrl=t.paramify=t.objectify=t.addHTTPPrefixToUrl=t.isFragment=t.hasMailTo=t.hasHTTP=t.HREF_PATTERN=t.extractOlsGqlId=t.extractThreadId=t.isNetworkRelative=t.isAllCompanyFeed=t.extractFragment=t.extractFileId=t.extractFeedId=t.isInternal=t.isIntranet=t.normalize=t.replaceParam=t.stringify=t.parse=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=s(n(6)),a=s(n(0)),o=n(128);function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var u=function e(t){for(var n=e.options,r=n.parser[n.strictMode?"strict":"loose"].exec(t||""),i={},a=n.key.length;a--;)i[n.key[a]]=r[a]||"";return i[n.q.name]=h(i.query)||{},i};u.options={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:/?#]*)(?::(\d*))?))?((((?:[^?#/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@/]*@)([^:/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#/]*\.[^?#/.]+(?:[?#]|$)))*\/?)?([^?#/]*))(?:\?([^#]*))?(?:#(.*))?)/}};var d=u,c=function(e){return"/"===a.last(e)},l=function(e){var t=d(e),n=t.protocol+"://"+t.authority+t.path,r=i.getCurrentNetwork().web_url;return 0===n.indexOf(r)},f="\\b((?:https?:(?:\\/{1,3}|[a-z0-9%])|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]+\\/)(?:[^\\s()\\[\\]<>]|\\((?:[^\\s()\\[\\]<>]|(?:\\([^s()\\[\\]<>]\\)))*\\))+(?:\\((?:[^\\s()\\[\\]<>]|(?:\\([^\\s()\\[\\]<>]+\\)))*\\)|[^&=\\s`!()\\[\\];:'\".,<>?«»“”‘’]|(?:[=])))",p=new RegExp(f,"gi"),h=o.parse,g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.stringify)(e,r({arrayFormat:"repeat"},t))},m=function(e){return/^https?:\/\//.test(e)},_=function(e){return/^mailto:/.test(e)},y=function(e){return/^#/.test(e)};t.parse=d,t.stringify=function(e){for(var t=["protocol","user","password","host","port","directory","file","query","anchor"],n="",r=void 0,i=0,a=t.length;i<a;i++){if("password"===(r=t[i])&&e[r]&&(n+=":"),"host"===r&&e.userInfo&&(n+="@"),"port"===r&&e[r]&&(n+=":"),"anchor"===r&&e[r]&&(n+="#"),"query"===r&&e.queryKey){var o=g(e.queryKey);(o=o||e[r])&&(n+="?"+o)}else n+=e[r];"protocol"===r&&e[r]&&(n+="://")}return n},t.replaceParam=function(e,t,n){if(void 0===n)return e;var r=new RegExp("\\b("+t+"=).*?(&|$)");return e.search(r)>-1?e.replace(r,"$1"+n+"$2"):e+(e.indexOf("?")>0?"&":"?")+t+"="+n},t.normalize=function(e){e.match(/^[^:/?#]+:\/\/.*/)||(e="https://"+e);var t=[],n=d(e);null!=n.protocol&&t.push(n.protocol.toLowerCase()+":"),null!=n.authority&&t.push("//"+n.authority);for(var r=(n.path||"/").split("/"),i=[],a=0;a<r.length;a++){var o=r[a];".."===o?i.pop():o&&i.push(o)}var s="/"+i.join("/");return c(n.path)&&!c(s)&&(s+="/"),t.push(s),n.query&&t.push("?"+n.query),n.anchor&&t.push("#"+n.anchor),t.join("")},t.isIntranet=function(e){return e.indexOf(".")<0},t.isInternal=function(e){var t=["www.yammer.dev","www.yammer.com","www.staging.yammer.com"],n=d(e).host,r=a.contains(t,n);if(r){var i=e.match(/redirect_uri=([^&]+)/);if(i)return a.contains(t,d(decodeURIComponent(i[1])).host)}return r},t.extractFeedId=function(e){var t=d(e),n=t.anchor.match(/groups\/(\d+)/);if(n&&n.length)return parseInt(n[1],10);var r=t.anchor.match(/feedId=(\d+)/);return r&&r.length?parseInt(r[1],10):void 0},t.extractFileId=function(e){return function(e,t){if(!l(e))return!1;var n=d(e),r=n.path.match(t);return r&&r[1]?parseInt(r[1],10):!(!(r=n.anchor.match(t))||!r[1])&&parseInt(r[1],10)}(e,/files\/(\d+)/)},t.extractFragment=function(e){return e.substring(e.indexOf("#")+1)},t.isAllCompanyFeed=function(e){var t=d(e),n=t.anchor.match(/groups\/company/),r=t.anchor.match(/threads\/company/);return n||r},t.isNetworkRelative=l,t.extractThreadId=function(e){var t=void 0,n=void 0,r=void 0;return l(e)&&(null!=(n=(n=(r=d(e)).path.match(/messages\/(\d+)/))||r.path.match(/threads\/(\d+)/))&&n.length>0?t=n[1]:null!=(n=r.anchor.match(/threadId=(\d+)/))&&n.length>0&&(t=n[1])),t},t.extractOlsGqlId=function(e){var t=void 0,n=e.match(/ols_gql_id=(.+)/);return null!=n&&n.length>0&&(t=n[1]),t},t.HREF_PATTERN=p,t.hasHTTP=m,t.hasMailTo=_,t.isFragment=y,t.addHTTPPrefixToUrl=function(e){return e=e.replace(/\s/g,""),y(e)||m(e)||_(e)?e:e.length>0?"https://"+e:""},t.objectify=h,t.paramify=g,t.parseQueryMapFromUrl=function(e){try{var t=e.split("?")[1].split("&"),n={};return t.forEach(function(e){if(2===e.split("=").length){var t=e.split("=")[0],i=e.split("=")[1];n=r({},n,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,i))}}),n}catch(e){return{}}},t.linkRegex=f,t.isSafeLink=function(e){var t=u(e).protocol;return!("javascript"===t||""===t&&!_(e))},t.removeQueryParams=function(e){return e&&e.split("?")[0]||void 0}},163:function(e,t,n){"use strict";var r=n(39),i=(n.n(r),n(56)),a=n(66),o=(n.n(a),this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}),s=r.schema;t.a=new s.Entity("group",{},{idAttribute:function(e){return e.databaseId},processStrategy:function(e){var t=o({},e,{id:e.databaseId,mugshot_id:"group_profile.png"}),n=o({},t,{width:48,height:48});return{id:Object(i.getIntId)(e.databaseId),network_id:Object(i.getIntId)(e.network.databaseId),full_name:e.displayName,stats:{members:0},gql:{gql_id:e.gql_id},privacy:"public",url:Object(i.generateUrl)(a.FAKE_URL_TEMPLATES.group,t),web_url:Object(i.generateUrl)(a.FAKE_URL_TEMPLATES.group_web,t),mugshot_url:Object(i.generateUrl)(a.FAKE_URL_TEMPLATES.user_mugshot,n),mugshot_url_template:Object(i.generateUrl)(a.FAKE_URL_TEMPLATES.user_mugshot,t),office365_url:null,type:"group"}}})},169:function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}();t.arrayToObject=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},t.merge=function(e,n,i){if(!n)return e;if("object"!=typeof n){if(Array.isArray(e))e.push(n);else{if("object"!=typeof e)return[e,n];(i.plainObjects||i.allowPrototypes||!r.call(Object.prototype,n))&&(e[n]=!0)}return e}if("object"!=typeof e)return[e].concat(n);var a=e;return Array.isArray(e)&&!Array.isArray(n)&&(a=t.arrayToObject(e,i)),Array.isArray(e)&&Array.isArray(n)?(n.forEach(function(n,a){r.call(e,a)?e[a]&&"object"==typeof e[a]?e[a]=t.merge(e[a],n,i):e.push(n):e[a]=n}),e):Object.keys(n).reduce(function(e,r){var a=n[r];return Object.prototype.hasOwnProperty.call(e,r)?e[r]=t.merge(e[r],a,i):e[r]=a,e},a)},t.decode=function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},t.encode=function(e){if(0===e.length)return e;for(var t="string"==typeof e?e:String(e),n="",r=0;r<t.length;++r){var a=t.charCodeAt(r);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?n+=t.charAt(r):a<128?n+=i[a]:a<2048?n+=i[192|a>>6]+i[128|63&a]:a<55296||a>=57344?n+=i[224|a>>12]+i[128|a>>6&63]+i[128|63&a]:(r+=1,a=65536+((1023&a)<<10|1023&t.charCodeAt(r)),n+=i[240|a>>18]+i[128|a>>12&63]+i[128|a>>6&63]+i[128|63&a])}return n},t.compact=function(e,n){if("object"!=typeof e||null===e)return e;var r=n||[],i=r.indexOf(e);if(-1!==i)return r[i];if(r.push(e),Array.isArray(e)){for(var a=[],o=0;o<e.length;++o)e[o]&&"object"==typeof e[o]?a.push(t.compact(e[o],r)):void 0!==e[o]&&a.push(e[o]);return a}return Object.keys(e).forEach(function(n){e[n]=t.compact(e[n],r)}),e},t.isRegExp=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},t.isBuffer=function(e){return null!=e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}},170:function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},171:function(e,t,n){"use strict";t.a=function(e,t,n){if(function(e){void 0===e&&(e="");var t=0===e.indexOf(i.api()),n=0===e.indexOf(i.apiV2()),r=0===e.indexOf(i.apiV3()),a=0===e.indexOf(i.gql());if(t||n||r||a)return!0;return 0===e.indexOf("/api/")}(e.url)&&"function"==typeof n.getAuthenticationHeaders){var o=n.getAuthenticationHeaders();e.headers=e.headers||{},r.extend(e.headers,o),Object.keys(o||{}).forEach(function(e){t.setRequestHeader(e,o[e])})}if(function(e){var t=(e.type||"get").toLowerCase();return"get"!==t&&"head"!==t}(e)&&function(e){return void 0===e.contentType||c.test(e.contentType||"")}(e)&&"function"==typeof n.getParamsForWrite){var s=n.getParamsForWrite();!function(e,t){if(!t)return;if(e.data=e.data||"","object"==typeof e.data){var n="string"==typeof t?a.objectify(t):t;e.data=r.extend(e.data,n)}else{var n="object"==typeof t?a.paramify(t,{includeEmpty:!0}):t;e.data+="&"+n}}(e,s),e.data&&(e.headers||(e.headers={}),e.headers["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8",t.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"))}},t.b=function(){var e=function(e){u.error(e)};o.clearLocalStorage().catch(e),o.clearStaticCookies().catch(e),s.assign("/logout_landing")},n.d(t,"c",function(){return l});var r=n(0),i=(n.n(r),n(24)),a=n(16),o=(n.n(a),n(193)),s=n(75),u=(n.n(s),n(13)),d=n(9),c=/application\/x-www-form-urlencoded/i;var l=function(e,t,n){if(e){var r=a.parse(e).path;["/v1.0/me","/v1.0/groups","/v1.0/organization","/v1/uploaded_files","/v3/completeThreadAttachmentUploadSession","/v3/completeDirectUploadSession","/v3/createUploadSession","/v4/completeUploadSession","/v4/createUploadSession"].some(function(e){return r.indexOf(e)>=0})&&Object(d.info)({message:"api_request_token_info",path:r,request_auth:t,token_length:n&&n.length})}}},172:function(e,t,n){"use strict";var r=n(93),i=n(128),a=n(236);n.d(t,"a",function(){return d});var o=function(e){return e},s=function(e){if(!e.ok)throw 401===e.status?new a.b(e):new a.a(e);return e},u=function(e){return{headers:new Headers(e.headers),method:e.method,body:function(e){if(function(e){return!!e.headers&&"application/json; charset=UTF-8"===e.headers["Content-Type"]}(e)){if(e.body)return JSON.stringify(e.body);if("HEAD"===e.method)return;return"{}"}if(e.body)return Object(i.stringify)(e.body)}(e),mode:"cors",credentials:"same-origin",cache:"no-store"}},d=function(e,t,n){void 0===n&&(n=o);var i=n(e,t),a=Object(r.a)(i),d=u(i);return fetch(a,d).then(s)}},173:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){try{var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/");return JSON.parse(window.atob(t))}catch(e){return}}},174:function(e,t){e.exports=["asf","avi","mod","ts","vob","isma","ismv","m4v","mpeg","mpg","wmv","3gp","mov","mp4","m2v","webm","mkv","mfx"]},175:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=t.parse=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0));t.parse=function(e){for(var t="",n=[],r={},i=r,a=0,o=e.length,s=null;a<o;a++)"("===(s=e.charAt(a))?(r[t]={},n.push(r),r=r[t],t=""):")"===s?(t&&(r[t]=!0),r=n.pop(),t=""):","===s?(r[t]=!0,t=""):" "!==s&&(t+=s);if(r!==i)throw new SyntaxError("Invalid expression");return i},t.stringify=function e(t,n){var i=void 0;return r.isArray(t)?(i=t.join(","),n&&i.length>0&&(i=n+"("+i+")")):r.isObject(t)?(i=(i=r.compact(r.reduce(t,function(t,n,r){return t.push(e(n,r)),t},[]))).join(","),n&&i.length>0&&(i=n+"("+i+")")):t&&(i=n),i}},176:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(63),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0)),o=n(241),s=(r=o)&&r.__esModule?r:{default:r};var u=function(e){s.default.call(this,e),this._resetStats()};a.extend(u.prototype,s.default.prototype),u.prototype.merge=function(e){this._resetStats();var t=new u(e);this.addReferences(t.getReferences()),this.addMessages(t.getMessages()),this.extendMeta(t.getMeta()),this.extendThreadedExtended(t.getThreadedExtended())},u.prototype.getReferences=function(){return this._raw.references||(this._raw.references=[]),this._raw.references},u.prototype.getMessages=function(){return this._raw.messages||(this._raw.messages=[]),this._raw.messages},u.prototype.getMeta=function(){return this._raw.meta||(this._raw.meta={}),this._raw.meta},u.prototype.getThreadedExtended=function(){return this._raw.threaded_extended||(this._raw.threaded_extended={}),this._raw.threaded_extended},u.prototype.getFullMessages=function(){return this.getMessages().concat(a.inject(this.getThreadedExtended(),function(e,t){return e.concat(t)},[]))},u.prototype.extendMeta=function(e){var t=this.getMeta().followed_user_ids||[],n=this.getMeta().bookmarked_message_ids||[],r=this.getMeta().ymodules||[];a.extend(this.getMeta(),e),this.addFollowedUserIds(t),this.addBookmarkedMessageIds(n),this.addAttachments(r)},u.prototype.extendThreadedExtended=function(e){Object.keys(e||{}).forEach(function(t){this.addThreadedExtended(t,e[t])}.bind(this))},u.prototype.addFollowedUserIds=function(e){var t=this.getMeta(),n=t.followed_user_ids||[];n=n.concat(e),t.followed_user_ids=this._unique(n)},u.prototype.addBookmarkedMessageIds=function(e){var t=this.getMeta(),n=t.bookmarked_message_ids||[];n=n.concat(e),t.bookmarked_message_ids=this._unique(n)},u.prototype.addAttachments=function(e){var t=this.getMeta(),n=t.ymodules||[];n=n.concat(e),t.ymodules=this._unique(n,"id")},u.prototype.addThreadedExtended=function(e,t){var n=this.getThreadedExtended();n[e]||(n[e]=[]),n[e]=n[e].concat(t)},u.prototype.addMessages=function(e){if(e){var t=this.getMessages().concat(e);this._raw.messages=this._unique(t,"id")}},u.prototype.addReferences=function(e){var t=this.getReferences();if(0!==t.length)for(var n=0,r=e.length;n<r;++n){for(var i=-1,a=e[n],o=0,s=t.length;o<s;++o){var u=t[o];if(a.id==u.id&&a.type==u.type){i=o;break}}i>-1?t[i]=a:t.push(a)}else this._raw.references=e},u.prototype.getOldestMessageId=function(){return this._getStat("oldest")},u.prototype.getNewestMessageId=function(){return this._getStat("newest")},u.prototype._resetStats=function(){this._stats={newest:void 0,oldest:void 0,updates:void 0}},u.prototype._getStat=function(e){var t=this._stats[e];return void 0!==t?t:(this._extractThreadedInfo(),this._stats[e])},u.prototype._extractThreadedInfo=function(){for(var e=this.getReferences(),t=(0,i.getMinSafeId)(),n=(0,i.getMaxSafeId)(),r=0,a=0,o=e.length;a<o;++a){var s=e[a];if("thread"===s.type){var u=s.stats.latest_reply_id;u<n&&(n=u),u>t&&(t=u),r+=s.stats.updates}}this._stats.oldest=n!=(0,i.getMaxSafeId)()?n:null,this._stats.newest=t!=(0,i.getMinSafeId)()?t:null,this._stats.updates=r},u.prototype._unique=function(e,t){for(var n=[],r={},i=0,a=e.length;i<a;++i){var o=e[i],s=t?o[t]:o;r[s]||(n.push(o),r[s]=!0)}return n},u.createEmptyPayload=function(){return{messages:[],meta:{},references:[],threaded_extended:{}}},t.default=u},18:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=y(n(6)),i=n(153),a=y(n(16)),o=y(n(24)),s=_(n(40)),u=n(23),d=_(u),c=y(n(0)),l=y(n(14)),f=y(n(22)),p=y(n(42)),h=_(n(305)),g=n(2),m=n(12);function _(e){return e&&e.__esModule?e:{default:e}}function y(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var v=["tenant_id","unified_group_id","unified_group_email","dynamic_membership","classification"],b=function(e,t){return e[t]||e.get&&e.get(t)},w=function(e){var t=e&&b(e,"id");return T(t)},T=function(e){return e===p.allCompanyId()||"company"===e},E=function(t){var n=d.default.findById(t);return null==n?(n=d.default.save({id:t}),k(n)):n.get("external")?k(n):n.isUpdating&&!n.isFetched?n._updateRequest:(k(n),e.Deferred().resolve(n).promise())},I=function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).force,r=void 0!==n&&n,i=d.default.findById(t);if(r&&A(i),!i||w(i))return e.Deferred().reject(i);if(O(i))return i.get("fetch_o365_attributes_promise");if(S(i))return e.Deferred().resolve(i);var a=l.getO365UnifiedGroup({id:t,attrs:"(groups(id,"+v.join()+"))"}).then(function(e){return C(e,i)});return i.set("fetch_o365_attributes_promise",a),a},O=function(e){var t=b(e,"fetch_o365_attributes_promise");return t&&"pending"===t.state()},S=function(e){return c.intersection(c.keys(e),v).length===v.length},C=function(e,t){var n=c.findWhere(e.groups,{id:b(t,"id")});return c.each(v,function(e){return t.set(e,n[e])}),t},A=function(e){c.each(v,function(t){return delete e[t]})},k=function(e){var t={id:e.id,num_featured_users:6,include_group_info:!0,include_group_subscriptions:!0,include_featured_users:!0,include_related_contents:!0,include_related_groups:!0,include_pending_requests_count:!0,include_invited_requests_count:!0,include_suggested_requests_count:!0};return e.isUpdating=!0,e._updateRequest=l.getGroup(t).then(function(t){return yam.modelController&&yam.modelController.onThreadInfo(t),e.set(t),e.isFetched=!0,e.isUpdating=!1,e}),e._updateRequest},N=function(e){return w(e)?l.updateNetworkInfo:l.updateGroup},x=function(e){return w(e)?e.get("network_id"):e.id},R=function(e){return"private"===b(e,"privacy")},F=o.base()+"/assets/images/patterns/group-header-megaphone.png",P=function(e){return!!b(e,"admin")},j=function(e){return!!b(e,"member")},M=function(e,t,n){var r=t.getCurrentUser(),i=U(e,n),a=!1;return r.network_id===i.id&&("false"!==r.verified_admin?a=!0:D(e)&&"false"!==r.admin&&(a=!0)),a},U=function(e,t){return t.findById(e.get("network_id"))},L=function(e){var t=b(e,"network_allows_attachments");return!G(e)||t},D=function(e){return"public"===e.get("privacy")},G=function(e){return!!e&&!0===e.get("external")},q=function(e){var t=b(e,"state");return null==t||"active"===t},H=function(e){return"restricted"===e.get("privacy")},B=function(e){return null!=b(e,"unified_group_id")},W=function(e){return b(e,"unified_group_id")},$=function(e){return b(e,"dynamic_membership")},V=function(e){return b(e,"related_groups")||[]},z=function(e){return b(e,"related_contents")||[]},K=function(e){return b(e,"featured_users")||[]},Y=function(e,t){var n=e.map(function(e){return e.id}),r=t.map(function(e){return e.id});return c.isEqual(n,r)};yam.helper=yam.helper||{},yam.helper.group={isAllCompany:w,isAllCompanyById:T,updateInfo:function(e,t){return N(e)({id:x(e),page:{html:t}})},getPlainBody:function(e){return b(e,"full_name")},fetch:E,update:k,isGroup:function(e){return"group"===b(e,"type")},getFullName:function(e){return w(e)?f.getCompanyGroupName(r.getCurrentNetwork()):b(e,"full_name")||b(e,"name")},isPrivate:R,isGroupAdminFromNetwork:function(e,t){var n=yam.helper.user;return!n.isForeign(t,r)&&(R(e)?n.isVerifiedAdmin(t):n.isAdmin(t)||n.isVerifiedAdmin(t))},getGroupColor:function(e){return e&&e.get("color")||"#264f8c"},getGroupHeaderPattern:function(e){return e.get("header_image_url")||F},getGroupDescription:function(e){if(!w(e))return e.get("description");var t=r.getCurrentNetwork();return(0,g.t)("this_is_the_default_group_for_everyone_in_the_currentnetwork",{currentNetwork:t.name})},canUserApproveMembers:function(e){return e.get("can_add_members")},hasAdminFromNetwork:M,isPublic:D,isCurrentUserMember:j,isVisibleByCurrentUser:function(e,t){if(w(e)&&!j(e))return!1;var n=t.getCurrentUser(),r=e.get("network_id")==n.get("network_id"),i=G(e);return(r||i)&&(!R(e)||j(e)||P(e)||yam.helper.user.isSupervisorAdmin(n))},isEditableByCurrentUser:function(e){var t=r.getCurrentUser();return e.get("network_id")==t.get("network_id")&&q(e)&&(P(e)||!R(e)&&(yam.helper.user.isAdmin(t)||yam.helper.user.isVerifiedAdmin(t))||R(e)&&yam.helper.user.isVerifiedAdmin(t))},isCurrentUserCreator:function(e){return r.getCurrentUser().id===e.get("creator_id")},canCurrentUserDelete:function(e,t,n){return j(e)&&P(e)||M(e,t,n)},isActive:q,getNetworkName:function(e,t){var n=void 0,r=U(e,t);if(r)n=f.getName(r);else if(e.get("network_name"))n=e.get("network_name");else{var i=e.get("participating_networks");i&&(r=c.findWhere(i,{id:e.get("network_id")}))&&(n=r.name)}return n},getExternalNetworkName:function(t){var n=d.default.findById(t);return null==n?E(t):b(n,"network_name")?e.Deferred().resolve(n).promise():E(t)},isExternal:G,isForeign:function(e,t){var n=b(e,"network_id");return null!=n&&n!=t.getCurrentNetwork().id},canCurrentUserAddMembers:function(e,t){var n=t.getCurrentUser(),r=e.get("network_id")==n.get("network_id"),i=G(e);return(r||i)&&e.get("can_add_members")},canCurrentUserInviteMembers:function(e,t){var n=t.getCurrentUser(),r=e.get("network_id")==b(n,"network_id"),i=G(e);return!$(e)&&(r||i)&&e.get("can_invite")},isCurrentUserAdmin:P,getNetwork:U,isPrivateOrRestricted:function(e){return R(e)||H(e)},isRestricted:H,isModerated:function(e){return!!e.get("moderated")},removeMember:function(e,t){var n=c.clone(e.get("stats"));n.members--,e.set("stats",n);var r=K(e).filter(function(e){return e.id!==t});e.set("featured_users",r)},addMember:function(e){var t=c.clone(e.get("stats"));t.members++,e.set("stats",t)},hasAdmin:function(e){var t=b(e,"has_admin");return null==e.get("has_admin")||t},hasMugshot:function(e){return!b(e,"mugshot_url").match(/\/group_profile.png$/)},isDeleted:function(e){var t=b(e,"state");return"deleted"===t||"destroyed"===t},isUserInvited:function(e,t){var n=b(e,"membership"),r=n&&(n.state||n.status);return n&&n.user_id===t&&"invited"===r},isCurrentUserPending:function(e){return!!b(e,"pending")},areAttachmentsAllowedInGroup:L,areAttachmentsAllowed:function(e,t){var n=e.getCurrentNetwork();return f.areAttachmentsAllowed(n)&&(!t||L(t))},fetchO365Attributes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return I(b(e,"id"),t)},fetchO365AttributesById:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return I(e,t)},isO365Connected:function(e){return B(e)&&W(e)},hasUnifiedGroupId:B,hasUnifiedGroupEmail:function(e){return null!=b(e,"unified_group_email")},getUnifiedGroupId:W,getUnifiedGroupEmail:function(e){return b(e,"unified_group_email")},getTenantId:function(e){return b(e,"tenant_id")},fetchSharePointBaseUri:function(t,n){return null!=b(t,"share_point_base_uri")?e.Deferred().resolve(t).promise():(0,i.getGroupSharePointRootFolder)({id:n}).then(function(e){var n=a.parse(e.webUrl);t.set("share_point_base_uri",n.protocol+"://"+n.host)})},getSharePointBaseUri:function(e){return b(e,"share_point_base_uri")},getDynamicMembership:$,fetchO365AttributesByIds:function(t){(0,m.treatment)("explicit_all_company")&&(t=function(e){return e.filter(function(e){return!T(e)})}(t));var n=c.filter(c.unique(c.compact(t)),function(e){var t=d.default.findById(e);return!O(t)&&!S(t)});return 0==n.length?e.Deferred().resolve():l.getO365UnifiedGroup({id:n,attrs:"(groups(id,"+v.join()+"))"}).then(function(e){e.groups.forEach(function(t){var n=d.default.findById(t.id);C(e,n)})})},getRelatedGroups:V,getFeaturedUsers:K,getRelatedContents:z,syncOnRelatedContentsChange:function(e,t,n){e.listenTo(n,"add remove reset",function(){t.set("related_contents",n.toJSON())}),e.listenTo(s.default,"Group/"+t.id+"/RelatedContents/update",function(){var e=z(t);Y(e,n)||n.reset(e)})},syncOnRelatedGroupsChange:function(e,t,n){return e.listenTo(n,"add remove reset",function(){t.set("related_groups",n.toJSON())}),e.listenTo(s.default,"Group/"+t.id+"/RelatedGroups/update",function(){var e=V(t);Y(e,n)||n.reset(e)}),n},syncOnFeaturedUsersChange:function(e,t,n){return e.listenTo(n,"add remove reset",function(){t.set("featured_users",n.toJSON())}),e.listenTo(s.default,"Group/"+t.id+"/FeaturedUsers/update",function(){var e=K(t);Y(e,n)||n.reset(e)}),n},getCategory:function(e){return w(e)?u.allCompanyGroupCategory:e.category},setCategory:function(e,t){e.update({category:t})},createGroup:h.default},t.default=yam.helper.group}).call(t,n(20))},19:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWindows=t.isMac=t.getUserAgent=t.hasAnimationSupport=t.hasNativeSmartBannerSupport=t.isDesktopApp=t.isNative=t.isMobile=t.detectMobileOS=t.isWindowsPhone=t.isAndroid=t.isIOS=t.isOpera=t.isMozilla=t.isSafari=t.isOlderIE=t.isEdge=t.isIE=void 0;var r=n(0),i=navigator.userAgent.toLowerCase(),a=function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(n[0]);return e>4?e:document.documentMode}(),o={};o[(/(chrome)/.exec(i)||/(webkit)/.exec(i)||/(opera)/.exec(i)||/(msie)/.exec(i)||i.indexOf("compatible")<0&&/(mozilla)/.exec(i))[1]||"n/a"]=!0;var s=function(){return/iphone|ipad|ipod/i.test(i)},u=function(){return/android/i.test(i)},d=function(){return/windows\sphone|wpdesktop/i.test(i)},c=(0,r.memoize)(function(){return s()||u()||d()}),l=function(){var e=!1,t="Webkit Moz O ms Khtml".split(" "),n=document.createElement("div");if(void 0!==n.style.animationName&&(e=!0),!1===e)for(var r=0;r<t.length;r++)if(void 0!==n.style[t[r]+"AnimationName"]){e=!0;break}return e}();t.isIE=function(){return!!a&&{version:a}},t.isEdge=function(){var e=i.indexOf("edge/");return e>0&&{version:parseInt(i.substring(e+5,i.indexOf(".",e)),10)}},t.isOlderIE=function(){return a&&a<11},t.isSafari=function(){return!!o.webkit},t.isMozilla=function(){return!!o.mozilla},t.isOpera=function(){return!!o.opera},t.isIOS=s,t.isAndroid=u,t.isWindowsPhone=d,t.detectMobileOS=function(){return s()?"ios":u()?"android":d()?"windows":null},t.isMobile=c,t.isNative=function(){return navigator.standalone||i.match(/iphone|ipod|ipad/i)&&!i.match(/safari/i)},t.isDesktopApp=function(){return Object.keys(window.ipcShell||{}).length>0},t.hasNativeSmartBannerSupport=function(){return i.match(/iphone|ipad|ipod/i)&&i.match(/safari/i)&&!i.match(/crios/i)&&Number(i.substr(i.indexOf("OS ")+3,3).replace("_","."))>=6},t.hasAnimationSupport=function(){return l},t.getUserAgent=function(){return i},t.isMac=function(){return i.indexOf("macintosh")>0},t.isWindows=function(){return i.indexOf("windows")>0}},192:function(e,t,n){"use strict";var r;n.d(t,"a",function(){return r}),function(e){e.invalidAadToken="invalidAadToken",e.pendingUser="pendingUser",e.userSuspended="userSuspended",e.other="other"}(r=r||(r={}))},193:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearLocalStorage=function(){return r.reduce(window.localStorage,function(e,t,n){var r=window.localStorage.key(n);return r&&r.match(/^(token.*)$/)&&e.push(r),e},[]).forEach(function(e){window.localStorage.removeItem(e)}),Promise.resolve()},t.clearStaticCookies=function(){return i.unset({name:"browser_token"}),i.unset({name:"oauth_token"}),i.unset({name:"last_network"}),i.unset({name:"office_access_token"}),Promise.resolve()};var r=n(0),i=(n.n(r),n(60))},194:function(e,t,n){"use strict";n.d(t,"b",function(){return u}),n.d(t,"a",function(){return d});var r=n(114),i=n(151),a=n(9),o=n(22),s=(n.n(o),n(6)),u=(n.n(s),function(e){return{type:"OFFICE_ACCESS_TOKEN.SET",payload:{token:e}}}),d=function(e){return function(t){if(Object(o.isExternal)(Object(s.getCurrentNetwork)()))throw new Error("Cannot acquire office access token in an external network");Object(a.info)({message:"office_access_token_refresh_action_called"}),t({type:"OFFICE_ACCESS_TOKEN_REFRESH_PENDING.SET"});var n={handleTokenRefreshSuccess:function(n){if(t({type:"OFFICE_ACCESS_TOKEN_REFRESH_PENDING.CLEAR"}),e&&!e(n))throw new Error("Refreshed token does not pass the provided validation method");Object(r.c)(n),Object(a.info)({message:"office_access_token_refresh_action_successful"})},handleTokenRefreshFailure:function(e){t({type:"OFFICE_ACCESS_TOKEN_REFRESH_PENDING.CLEAR"}),Object(a.error)({message:"office_access_token_refresh_action_failed",error:e})}};return Object(i.acquireOfficeAccessToken)(n)}}},195:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"getPlainBody",function(){return a}),n.d(t,"isForeign",function(){return o}),n.d(t,"isTag",function(){return u}),n.d(t,"isTopic",function(){return d}),n.d(t,"isOfCurrentNetwork",function(){return s});var r=n(6),i=(n.n(r),function(e,t){return e[t]||e.get&&e.get(t)}),a=function(e){return"#"+i(e,"name")},o=function(e){return!s(e)},s=function(e){return i(e,"network_id")===r.getCurrentNetwork().id},u=function(e){return"tag"===e.type||!(!e.get||!e.get("tag"))},d=function(e){var t=i(e,"type");return"tag"===t||"topic"===t}},196:function(e,t,n){"use strict";function r(){return Math.ceil(window.devicePixelRatio||1)}Object.defineProperty(t,"__esModule",{value:!0}),t.getPixelRatio=r,t.getScaledDimension=function(e){return e*r()},t.getViewportDims=function(){return{width:document.documentElement.clientWidth,height:document.documentElement.clientHeight}},t.getScreenDims=function(){return{width:window.screen.width,height:window.screen.height}}},197:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){n.d(t,"BOOTSTRAP_ALL_START",function(){return i}),n.d(t,"BOOTSTRAP_ALL_END",function(){return a}),n.d(t,"BOOTSTRAP_ALL",function(){return o}),n.d(t,"BOOTSTRAP_LOAD_TOKENS_START",function(){return s}),n.d(t,"BOOTSTRAP_LOAD_TOKENS_END",function(){return u}),n.d(t,"BOOTSTRAP_LOAD_TOKENS",function(){return d}),n.d(t,"BOOTSTRAP_LOAD_NETWORKS_START",function(){return c}),n.d(t,"BOOTSTRAP_LOAD_NETWORKS_END",function(){return l}),n.d(t,"BOOTSTRAP_LOAD_NETWORKS",function(){return f}),n.d(t,"BOOTSTRAP_LOAD_USAGE_POLICY_START",function(){return p}),n.d(t,"BOOTSTRAP_LOAD_USAGE_POLICY_END",function(){return h}),n.d(t,"BOOTSTRAP_LOAD_USAGE_POLICY",function(){return g}),n.d(t,"BOOTSTRAP_LOAD_USER_WITHOUT_GROUPS_START",function(){return m}),n.d(t,"BOOTSTRAP_LOAD_USER_WITHOUT_GROUPS_END",function(){return _}),n.d(t,"BOOTSTRAP_LOAD_USER_WITHOUT_GROUPS",function(){return y}),n.d(t,"BOOTSTRAP_LOAD_USER_WITH_GROUPS_START",function(){return v}),n.d(t,"BOOTSTRAP_LOAD_USER_WITH_GROUPS_END",function(){return b}),n.d(t,"BOOTSTRAP_LOAD_USER_WITH_GROUPS",function(){return w}),n.d(t,"BOOTSTRAP_LOAD_USER_WITH_GROUPS_GRAPHQL_START",function(){return T}),n.d(t,"BOOTSTRAP_LOAD_USER_WITH_GROUPS_GRAPHQL_END",function(){return E}),n.d(t,"BOOTSTRAP_LOAD_USER_WITH_GROUPS_GRAPHQL",function(){return I}),n.d(t,"HYDRANT_INBOX_INITIAL_START",function(){return O}),n.d(t,"HYDRANT_INBOX_INITIAL_END",function(){return S}),n.d(t,"HYDRANT_INBOX_INITIAL",function(){return C}),n.d(t,"HYDRANT_INBOX_INITIAL_WITH_ERRORS",function(){return A}),n.d(t,"HYDRANT_INBOX_NEWER_START",function(){return k}),n.d(t,"HYDRANT_INBOX_NEWER_END",function(){return N}),n.d(t,"HYDRANT_INBOX_NEWER",function(){return x}),n.d(t,"HYDRANT_INBOX_NEWER_WITH_ERRORS",function(){return R}),n.d(t,"HYDRANT_INBOX_OLDER_START",function(){return F}),n.d(t,"HYDRANT_INBOX_OLDER_END",function(){return P}),n.d(t,"HYDRANT_INBOX_OLDER",function(){return j}),n.d(t,"HYDRANT_INBOX_OLDER_WITH_ERRORS",function(){return M}),n.d(t,"HYDRANT_INBOX_OTHER_START",function(){return U}),n.d(t,"HYDRANT_INBOX_OTHER_END",function(){return L}),n.d(t,"HYDRANT_INBOX_OTHER",function(){return D}),n.d(t,"HYDRANT_INBOX_OTHER_WITH_ERRORS",function(){return G}),n.d(t,"HYDRANT_FEED_INITIAL_START",function(){return q}),n.d(t,"HYDRANT_FEED_INITIAL_END",function(){return H}),n.d(t,"HYDRANT_FEED_INITIAL",function(){return B}),n.d(t,"HYDRANT_FEED_INITIAL_WITH_ERRORS",function(){return W}),n.d(t,"HYDRANT_FEED_NEWER_START",function(){return $}),n.d(t,"HYDRANT_FEED_NEWER_END",function(){return V}),n.d(t,"HYDRANT_FEED_NEWER",function(){return z}),n.d(t,"HYDRANT_FEED_NEWER_WITH_ERRORS",function(){return K}),n.d(t,"HYDRANT_FEED_OLDER_START",function(){return Y}),n.d(t,"HYDRANT_FEED_OLDER_END",function(){return Q}),n.d(t,"HYDRANT_FEED_OLDER",function(){return J}),n.d(t,"HYDRANT_FEED_OLDER_WITH_ERRORS",function(){return X}),n.d(t,"HYDRANT_FEED_OTHER_START",function(){return Z}),n.d(t,"HYDRANT_FEED_OTHER_END",function(){return ee}),n.d(t,"HYDRANT_FEED_OTHER",function(){return te}),n.d(t,"HYDRANT_FEED_OTHER_WITH_ERRORS",function(){return ne}),n.d(t,"HYDRANT_THREAD_INITIAL_START",function(){return re}),n.d(t,"HYDRANT_THREAD_INITIAL_END",function(){return ie}),n.d(t,"HYDRANT_THREAD_INITIAL",function(){return ae}),n.d(t,"HYDRANT_THREAD_INITIAL_WITH_ERRORS",function(){return oe}),n.d(t,"HYDRANT_THREAD_NEWER_START",function(){return se}),n.d(t,"HYDRANT_THREAD_NEWER_END",function(){return ue}),n.d(t,"HYDRANT_THREAD_NEWER",function(){return de}),n.d(t,"HYDRANT_THREAD_NEWER_WITH_ERRORS",function(){return ce}),n.d(t,"HYDRANT_THREAD_OLDER_START",function(){return le}),n.d(t,"HYDRANT_THREAD_OLDER_END",function(){return fe}),n.d(t,"HYDRANT_THREAD_OLDER",function(){return pe}),n.d(t,"HYDRANT_THREAD_OLDER_WITH_ERRORS",function(){return he}),n.d(t,"HYDRANT_THREAD_OTHER_START",function(){return ge}),n.d(t,"HYDRANT_THREAD_OTHER_END",function(){return me}),n.d(t,"HYDRANT_THREAD_OTHER",function(){return _e}),n.d(t,"HYDRANT_THREAD_OTHER_WITH_ERRORS",function(){return ye}),n.d(t,"HYDRANT_MESSAGE_START",function(){return ve}),n.d(t,"HYDRANT_MESSAGE_END",function(){return be}),n.d(t,"HYDRANT_MESSAGE",function(){return we}),n.d(t,"HYDRANT_MESSAGE_WITH_ERRORS",function(){return Te}),n.d(t,"HYDRANT_OTHER_START",function(){return Ee}),n.d(t,"HYDRANT_OTHER_END",function(){return Ie}),n.d(t,"HYDRANT_OTHER",function(){return Oe}),n.d(t,"HYDRANT_OTHER_WITH_ERRORS",function(){return Se}),n.d(t,"NOTIFICATION_MENU_START",function(){return Ce}),n.d(t,"NOTIFICATION_MENU_END",function(){return Ae}),n.d(t,"NOTIFICATION_MENU_DISPLAY",function(){return ke}),n.d(t,"CREATE_MESSAGE_MODAL_START",function(){return Ne}),n.d(t,"CREATE_MESSAGE_MODAL_END",function(){return xe}),n.d(t,"CREATE_MESSAGE_MODAL_DISPLAY",function(){return Re}),n.d(t,"CREATE_GROUP_MODAL_START",function(){return Fe}),n.d(t,"CREATE_GROUP_MODAL_END",function(){return Pe}),n.d(t,"CREATE_GROUP_MODAL_DISPLAY",function(){return je}),n.d(t,"POST_MESSAGE_START",function(){return Me}),n.d(t,"POST_MESSAGE_END",function(){return Ue}),n.d(t,"POST_MESSAGE_SUCCESS",function(){return Le}),n.d(t,"POST_MESSAGE_FAILURE",function(){return De}),n.d(t,"INBOX_UNREAD_END",function(){return Ge}),n.d(t,"INBOX_UNREAD_DISPLAY_FRESH",function(){return qe}),n.d(t,"INBOX_UNREAD_DISPLAY",function(){return He}),n.d(t,"INBOX_PRIVATE_END",function(){return Be}),n.d(t,"INBOX_PRIVATE_DISPLAY_FRESH",function(){return We}),n.d(t,"INBOX_PRIVATE_DISPLAY",function(){return $e}),n.d(t,"INBOX_ALL_END",function(){return Ve}),n.d(t,"INBOX_ALL_DISPLAY_FRESH",function(){return ze}),n.d(t,"INBOX_ALL_DISPLAY",function(){return Ke}),n.d(t,"STREAM_EMBED_START",function(){return Ye}),n.d(t,"STREAM_EMBED_LOADED",function(){return Qe}),n.d(t,"STREAM_EMBED_DATA_LOADED",function(){return Je}),n.d(t,"STREAM_EMBED_LOADING_COMPLETE",function(){return Xe}),n.d(t,"STREAM_EMBED_DATA_LOADED_COMPLETE",function(){return Ze}),t.perfBootstrapAllStart=function(){e.mark(i)},t.perfBootstrapAllEnd=function(){e.mark(a),e.measure(o,i,a)},t.perfBootstrapLoadTokensStart=function(){e.mark(s)},t.perfBootstrapLoadTokensEnd=function(){e.mark(u),e.measure(d,s,u)},t.perfBootstrapLoadNetworksStart=function(){e.mark(c)},t.perfBootstrapLoadNetworksEnd=function(){e.mark(l),e.measure(f,c,l)},t.perfBootstrapLoadUsagePolicyStart=function(){e.mark(p)},t.perfBootstrapLoadUsagePolicyEnd=function(){e.mark(h),e.measure(g,p,h)},t.perfBootstrapLoadUserWithoutGroupsStart=function(){e.mark(m)},t.perfBootstrapLoadUserWithoutGroupsEnd=function(){e.mark(_),e.measure(y,m,_)},t.perfBootstrapLoadUserWithGroupsStart=function(){e.mark(v)},t.perfBootstrapLoadUserWithGroupsEnd=function(){e.mark(b),e.measure(w,v,b)},t.perfBootstrapLoadUserWithGroupsGraphQLStart=function(){e.mark(T)},t.perfBootstrapLoadUserWithGroupsGraphQLEnd=function(){e.mark(E),e.measure(I,T,E)},t.perfHydrantInboxInitialStart=et,t.perfHydrantInboxInitialEnd=tt,t.perfHydrantInboxNewerStart=nt,t.perfHydrantInboxNewerEnd=rt,t.perfHydrantInboxOlderStart=it,t.perfHydrantInboxOlderEnd=at,t.perfHydrantInboxOtherStart=ot,t.perfHydrantInboxOtherEnd=st,t.perfHydrantFeedInitialStart=ut,t.perfHydrantFeedInitialEnd=dt,t.perfHydrantFeedNewerStart=ct,t.perfHydrantFeedNewerEnd=lt,t.perfHydrantFeedOlderStart=ft,t.perfHydrantFeedOlderEnd=pt,t.perfHydrantFeedOtherStart=ht,t.perfHydrantFeedOtherEnd=gt,t.perfHydrantThreadInitialStart=mt,t.perfHydrantThreadInitialEnd=_t,t.perfHydrantThreadNewerStart=yt,t.perfHydrantThreadNewerEnd=vt,t.perfHydrantThreadOlderStart=bt,t.perfHydrantThreadOlderEnd=wt,t.perfHydrantThreadOtherStart=Tt,t.perfHydrantThreadOtherEnd=Et,t.perfHydrantMessageStart=It,t.perfHydrantMessageEnd=Ot,t.perfHydrantOtherStart=St,t.perfHydrantOtherEnd=Ct,t.perfNotificationMenuStart=function(){e.mark(Ce)},t.perfNotificationMenuEnd=function(){e.mark(Ae),e.measure(ke,Ce,Ae)},n.d(t,"perfCreateMessageModalStart",function(){return At}),n.d(t,"perfCreateMessageModalEnd",function(){return kt}),n.d(t,"perfCreateGroupModalStart",function(){return Nt}),n.d(t,"perfCreateGroupModalEnd",function(){return xt}),n.d(t,"perfPostMessageStart",function(){return Rt}),n.d(t,"perfPostMessageSuccess",function(){return Ft}),n.d(t,"perfPostMessageFailure",function(){return Pt}),n.d(t,"perfStreamEmbedStart",function(){return jt}),n.d(t,"perfStreamEmbedLoaded",function(){return Mt}),n.d(t,"perfStreamEmbedDataLoaded",function(){return Ut}),t.perfInboxUnreadEnd=function(){var t=Ht(),n=Bt(t);e.mark(Ge),e.measure(n?He:qe,t,Ge)},t.perfInboxPrivateEnd=function(){var t=Ht(),n=Bt(t);e.mark(Be),e.measure(n?$e:We,t,Be)},t.perfInboxAllEnd=function(){var t=Ht(),n=Bt(t);e.mark(Ve),e.measure(n?Ke:ze,t,Ve)},n.d(t,"getHydrantMarkers",function(){return Dt}),n.d(t,"getFirstPaintInfo",function(){return Gt}),n.d(t,"getPerformanceTimings",function(){return qt});var r=n(16),i=(n.n(r),"bootstrap_all_start"),a="bootstrap_all_end",o="bootstrap_all",s="bootstrap_load_tokens_start",u="bootstrap_load_tokens_end",d="bootstrap_load_tokens",c="bootstrap_load_networks_start",l="bootstrap_load_networks_end",f="bootstrap_load_networks",p="bootstrap_load_usage_policy_start",h="bootstrap_load_usage_policy_end",g="bootstrap_load_usage_policy",m="bootstrap_load_user_without_groups_start",_="bootstrap_load_user_without_groups_end",y="bootstrap_load_user_without_groups",v="bootstrap_load_user_with_groups_start",b="bootstrap_load_user_with_groups_end",w="bootstrap_load_user_with_groups",T="bootstrap_load_user_with_groups_graphql_start",E="bootstrap_load_user_with_groups_graphql_end",I="bootstrap_load_user_with_groups_graphql",O="hydrant_inbox_initial_start",S="hydrant_inbox_initial_end",C="hydrant_inbox_initial",A="hydrant_inbox_initial_with_errors",k="hydrant_inbox_newer_start",N="hydrant_inbox_newer_end",x="hydrant_inbox_newer",R="hydrant_inbox_newer_with_errors",F="hydrant_inbox_older_start",P="hydrant_inbox_older_end",j="hydrant_inbox_older",M="hydrant_inbox_older_with_errors",U="hydrant_inbox_other_start",L="hydrant_inbox_other_end",D="hydrant_inbox_other",G="hydrant_inbox_other_with_errors",q="hydrant_feed_initial_start",H="hydrant_feed_initial_end",B="hydrant_feed_initial",W="hydrant_feed_initial_with_errors",$="hydrant_feed_newer_start",V="hydrant_feed_newer_end",z="hydrant_feed_newer",K="hydrant_feed_newer_with_errors",Y="hydrant_feed_older_start",Q="hydrant_feed_older_end",J="hydrant_feed_older",X="hydrant_feed_older_with_errors",Z="hydrant_feed_other_start",ee="hydrant_feed_other_end",te="hydrant_feed_other",ne="hydrant_feed_other_with_errors",re="hydrant_thread_initial_start",ie="hydrant_thread_initial_end",ae="hydrant_thread_initial",oe="hydrant_thread_initial_with_errors",se="hydrant_thread_newer_start",ue="hydrant_thread_newer_end",de="hydrant_thread_newer",ce="hydrant_thread_newer_with_errors",le="hydrant_thread_older_start",fe="hydrant_thread_older_end",pe="hydrant_thread_older",he="hydrant_thread_older_with_errors",ge="hydrant_thread_other_start",me="hydrant_thread_other_end",_e="hydrant_thread_other",ye="hydrant_thread_other_with_errors",ve="hydrant_message_start",be="hydrant_message_end",we="hydrant_message",Te="hydrant_message_with_errors",Ee="hydrant_other_start",Ie="hydrant_other_end",Oe="hydrant_other",Se="hydrant_other_with_errors",Ce="notification_menu_start",Ae="notification_menu_end",ke="notification_menu_display",Ne="create_message_modal_start",xe="create_message_modal_end",Re="create_message_modal_display",Fe="create_group_modal_start",Pe="create_group_modal_end",je="create_group_modal_display",Me="post_message_start",Ue="post_message_end",Le="post_message_success",De="post_message_failure",Ge="inbox_unread_end",qe="inbox_unread_display_fresh",He="inbox_unread_display",Be="inbox_private_end",We="inbox_private_display_fresh",$e="inbox_private_display",Ve="inbox_all_end",ze="inbox_all_display_fresh",Ke="inbox_all_display",Ye="stream_embed_start",Qe="stream_embed_loaded",Je="stream_embed_data_loaded",Xe="stream_embed_loading_complete",Ze="stream_embed_data_loaded_complete";function et(){e.mark(O)}function tt(t){e.mark(S),e.measure(t?A:C,O,S)}function nt(){e.mark(k)}function rt(t){e.mark(N),e.measure(t?R:x,k,N)}function it(){e.mark(F)}function at(t){e.mark(P),e.measure(t?M:j,F,P)}function ot(){e.mark(U)}function st(t){e.mark(L),e.measure(t?G:D,U,L)}function ut(){e.mark(q)}function dt(t){e.mark(H),e.measure(t?W:B,q,H)}function ct(){e.mark($)}function lt(t){e.mark(V),e.measure(t?K:z,$,V)}function ft(){e.mark(Y)}function pt(t){e.mark(Q),e.measure(t?X:J,Y,Q)}function ht(){e.mark(Z)}function gt(t){e.mark(ee),e.measure(t?ne:te,Z,ee)}function mt(){e.mark(re)}function _t(t){e.mark(ie),e.measure(t?oe:ae,re,ie)}function yt(){e.mark(se)}function vt(t){e.mark(ue),e.measure(t?ce:de,se,ue)}function bt(){e.mark(le)}function wt(t){e.mark(fe),e.measure(t?he:pe,le,fe)}function Tt(){e.mark(ge)}function Et(t){e.mark(me),e.measure(t?ye:_e,ge,me)}function It(){e.mark(ve)}function Ot(t){e.mark(be),e.measure(t?Te:we,ve,be)}function St(){e.mark(Ee)}function Ct(t){e.mark(Ie),e.measure(t?Se:Oe,Ee,Ie)}var At=function(){e.mark(Ne)},kt=function(){e.mark(xe),e.measure(Re,Ne,xe)},Nt=function(){e.mark(Fe)},xt=function(){e.mark(Pe),e.measure(je,Fe,Pe)},Rt=function(){e.mark(Me)},Ft=function(){e.mark(Ue),e.measure(Le,Me,Ue)},Pt=function(){e.mark(Ue),e.measure(De,Me,Ue)},jt=function(){e.mark(Ye)},Mt=function(){e.mark(Qe),e.measure(Xe,Ye,Qe);var t=e.getEntriesByName(Xe).pop();return t?t.duration:null},Ut=function(){e.mark(Je),e.measure(Ze,Ye,Je);var t=e.getEntriesByName(Ze).pop();return t?t.duration:null};var Lt={inboxes:{initial:[et,tt],newer:[nt,rt],older:[it,at],other:[ot,st]},networks:{initial:[ut,dt],newer:[ct,lt],older:[ft,pt],other:[ht,gt]},threads:{initial:[mt,_t],newer:[yt,vt],older:[bt,wt],other:[Tt,Et]},messages:{other:[It,Ot]},unknown:{other:[St,Ct]}},Dt=function(e){var t=Object(r.parse)(e),n=t.path,i=t.queryKey,a=n.match(/api\/v2\/([a-z]+)/i),o=a&&a[1],s=(i.fetch_type||"").match(/(initial|newer|older)/i),u=s&&s[1].toLowerCase()||"other",d=Lt[o]||Lt.unknown;return d[u]||d.other},Gt=function(){var t=e.getEntriesByName("first-paint").pop();if(t)return{name:"first-paint",time:t.startTime};var n=qt();return n.msFirstPaint?{name:"first-paint",time:n.msFirstPaint-n.navigationStart}:{name:"first-paint",time:n.domContentLoadedEventEnd-n.navigationStart}},qt=function(){return e.timing?{navigationStart:e.timing.navigationStart||0,domContentLoadedEventEnd:e.timing.domContentLoadedEventEnd||0,msFirstPaint:e.timing.msFirstPaint||0}:{navigationStart:0,domContentLoadedEventEnd:0,msFirstPaint:0}},Ht=function(){var t=e.getEntriesByName("generalRouteStart").pop();return t&&t.name?t.name:"navigationStart"},Bt=function(e){return"generalRouteStart"===e}}.call(t,n(77))},2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(3),a=n.n(i),o=/\{([^{}]+)\}/g,s=/\[(\w+):([^\]]*)\]/g,u=/\{\$([0-9]+)\}/g,d="en",c=["male","female",""],l=2,f=["zero","one","two","few","many","other"];function p(e,t,n){return e>=t&&e<=n}var h=0,g=[function(){return 5},function(e){return 1===e?1:5},function(e){return p(e,0,1)?1:5},function(e){return e%10==0||p(e%100,11,19)?0:e%10==1&&e%100!=11?1:5},function(e){return 1===e||11===e?1:2===e||12===e?2:p(e,3,10)||p(e,13,19)?3:5},function(e){return 1===e?1:0===e||p(e%100,1,19)?3:5},function(e){return e%10!=1||p(e%100,11,19)?p(e%10,2,9)&&!p(e%100,11,19)?3:5:1},function(e){return e%10==1&&e%100!=11?1:p(e%10,2,4)&&!p(e%100,12,14)?3:e%10==0||p(e%10,5,9)||p(e%100,11,14)?4:5},function(e){return 1===e?1:p(e,2,4)?3:5},function(e){return 1===e?1:p(e%10,2,4)&&!p(e%100,12,14)?3:p(e%10,0,1)||p(e%10,5,9)||p(e%100,12,14)?4:5},function(e){return e%100==1?1:e%100==2?2:p(e%100,3,4)?3:5},function(e){return 1===e?1:2===e?2:p(e,3,6)?3:p(e,7,10)?4:5},function(e){return 0===e?0:1===e?1:2===e?2:p(e%100,3,10)?3:p(e%100,11,99)?4:5},function(e){return 1===e?1:0===e||p(e%100,2,10)?3:p(e%100,11,19)?4:5},function(e){return e%10==1?1:5},function(e){return e%10==1&&e%100!=11?1:5},function(e){var t=e%10,n=e%100;return 1===t&&11!==n&&71!==n&&91!==n?1:2===t&&12!==n&&72!==n&&92!==n?2:!p(t,3,4)&&9!==t||p(n,10,19)||p(n,70,79)||p(n,90,99)?0!==e&&e%1e6==0?4:5:3},function(e){return 0===e?0:1===e?1:2===e?2:3===e?3:6===e?4:5},function(e){return e%10==1&&e%100!=11?1:p(e%10,2,4)&&!p(e%100,12,14)?3:5}],m={af:1,sq:1,ar:12,eu:1,br:16,bg:1,ca:1,zh:0,hr:18,cs:8,da:1,nl:1,en:1,et:1,fr:2,gl:1,de:1,fi:1,el:1,he:1,hi:2,hu:1,is:15,id:0,ga:11,it:1,ja:0,ko:0,lv:3,lt:6,ms:0,ml:1,mt:13,mk:14,nb:1,nn:1,fa:2,pl:9,pt:1,ro:5,ru:7,gd:4,sr:18,es:1,sk:8,sl:10,sv:1,th:0,tr:0,uk:7,vi:0,cy:17};function _(e,t,n){if(void 0===n&&(n={}),!e.global)throw new Error("Regular expression must be a global match");return t.replace(e,function(e,t){var r=n[t];return null==r?e:r})}function y(e,t){return t.reduce(function(t,n){return t.concat("string"==typeof n?function(e,t){var n=e.regexp,r=e.replace;if(!n.global)throw new Error("Regular expression must be a global match");var i=[],a=0;n.lastIndex=a;var o=n.exec(t);if(null==o)return t;do{var s=o.index,u=o[0];s>a&&i.push(t.substring(a,s)),i.push(r.apply(void 0,[s].concat(o))),a=s+u.length,o=n.exec(t)}while(null!=o);return a<t.length&&i.push(t.substring(a)),i}(e,n):n)},[])}function v(e,t){var n=e.length;return e.reduce(function(e,r,i){return e.push(r),n>1&&i<n-1&&e.push(t),e},[])}var b=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},w={span:"<span>{$0}</span>",em:"<em>{$0}</em>",strong:"<strong>{$0}</strong>",link:'<a href="{$1}">{$0}</a>'},T=function(e){var t=Object.keys(e).reduce(function(t,n){var r=e[n];return"object"==typeof r?t.tokens=b({},t.tokens,r):t.helpers[n]=r,t},{helpers:b({},w),tokens:{}});return function(e,n,r,i){var a=t.helpers[r];if(null==a)throw new Error('Unrecognized helper "'+r+'"');var o=b({},t.tokens,{0:i.trim()});return _(u,a,o)}},E=n(1),I=n.n(E),O=function(e){return function(t,n,r,i){var a=i.trim();switch(r){case"span":return I.a.createElement("span",null,a);case"em":return I.a.createElement("em",null,a);case"strong":return I.a.createElement("strong",null,a);case"link":return e.hasOwnProperty("link")?e.link(a):I.a.createElement("a",null,a);default:throw new Error('Unrecognized helper "'+r+'"')}}},S=(n(296),this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e});var C=function(){function e(e){var t;void 0===e&&(e={}),this.phrases=e.phrases||{},this.locale=e.locale||d,t=this.locale.split("-"),this.language=t[0],this.region=t[1]}return e.prototype.getLocale=function(){return this.locale},e.prototype.getLanguage=function(){return this.language},e.prototype.getRegion=function(){return this.region},e.prototype.translate=function(e,t){if(void 0===t&&(t={}),!e)throw new Error('Key "'+e+'" is not valid');var n,r,i,a,s=(n=t.gender,c[n]||c[l]),u=function(e,t){var n=m[t]||h,r=g[n];return f[r(e)]}(t.count,this.getLanguage()),d=[];for(s&&u&&d.push([e,u,s].join("|")),u?d.push([e,u].join("|")):s&&d.push([e,s].join("|")),d.push(e);!r&&d.length;){var p=d.shift();p&&(r=this.phrases[p])}if(!r)throw new Error('Cannot find string for key "'+e+'"');if("number"==typeof t.count){var y=t.count,v=(i=y,a=this.locale,i.toLocaleString(a).replace(/[.,]00$/,""));t=S({},t,{count:v})}return r&&t&&(r=_(o,r,t)),r},e.prototype.translateSafe=function(e,t){try{return this.translate(e,t)}catch(t){return e}},e.prototype.translateWithProcessor=function(e,t,n){void 0===n&&(n={});var r=[{regexp:s,replace:e(n)}],i=this.translate(t,n);return r.reduce(function(e,t){return y(t,e)},[i])},e.prototype.translateWithProcessorSafe=function(e,t,n){try{return this.translateWithProcessor(e,t,n)}catch(e){return t}},e.prototype.translateWithPlainProcessor=function(e,t){return void 0===t&&(t={}),this.translateWithProcessor(T,e,t).join("")},e.prototype.translateWithPlainProcessorSafe=function(e,t){try{return this.translateWithPlainProcessor(e,t)}catch(t){return e}},e.prototype.translateWithReactProcessor=function(e,t){return void 0===t&&(t={}),this.translateWithProcessor(O,e,t)},e.prototype.translateWithReactProcessorSafe=function(e,t){try{return this.translateWithReactProcessor(e,t)}catch(t){return e}},e.prototype.join=function(e){switch(e.length){case 0:case 1:return e;case 2:return[e[0],this.translate("list_separator_1"),e[1]];case 3:return[e[0],this.translate("list_separator_2"),e[1],this.translate("list_separator_4"),e[2]];default:return[e[0],this.translate("list_separator_2")].concat(v(e.slice(1,e.length-1),this.translate("list_separator_3")),[this.translate("list_separator_4"),e[e.length-1]])}},e.prototype.joinSafe=function(e){try{return this.join(e)}catch(t){return v(e,", ")}},e}(),A=n(94);t.loadLocale=N,t.t=x,t.tlist=R,t.tx=function(e,t){return k.translateWithReactProcessorSafe(e,t)},t.txlist=function(e){return k.joinSafe(e)};var k=new C;function N(e,t){k=new C({locale:e||A.default.getShortLocale(),phrases:t||A.default.getTranslations()})}function x(e,t){return k.translateWithPlainProcessorSafe(e,t)}function R(e){return k.joinSafe(e).join("")}N(),a.a.on("locale-changed",N),r.extend(window.yam,{t:x,tlist:R,loadLocale:N})},20:function(e,t,n){(function(t){e.exports=t.$=n(288)}).call(t,n(38))},2006:function(e,t,n){n(20),n(546),n(2007),n(2008),n(1092),n(2009),e.exports=n(547)},2007:function(e,t,n){"use strict";(function(e){e.noConflict(!0)}).call(t,n(20))},2008:function(e,t,n){"use strict";(function(e){var t=n(21);!function(e){yam.platform||(yam.platform={});var n="logout",r="platform/login_status.json",i="oauth2/token.json",a="dialog/weblogin",o="dialog/oauth",s="platform_embed/js_sdk_login_proxy",u=!1,d=!1;function c(){}function l(){return!u||"connected"!=u.status}function f(e){e?((u=e).authResponse=!0,u.status="connected"):u={status:"notConnected",access_token:"",perms:""}}function p(e){return e.originalEvent.origin===e.data.expectedOrigin}function h(e,n,i){"function"==typeof e&&(i=n,n=e,e=void 0),e=e||{},n="function"==typeof n?n:c,u&&!i?n(u):yam.platform.request({url:(0,t.config)().baseURI+"/"+r,xhrFields:{withCredentials:!0},crossDomain:!0,data:(0,t.config)().appId?{client_id:(0,t.config)().appId}:{},success:g,error:m,complete:function(){n(u)}})}function g(e){e.access_token&&e.access_token.token?(_(e.access_token.token),f(e)):m()}function m(){_(null),f(null)}function _(e,n){null===e?u=!1:f({access_token:{token:e}}),"function"==typeof n&&yam.platform.request({url:(0,t.config)().apiBaseURI+"/api/v1/"+i,data:(0,t.config)().appId?{client_id:(0,t.config)().appId}:{},success:y,error:v,complete:function(){n(u)}})}function y(e){e.token?f({access_token:e}):v()}function v(){_(null),f(null)}function b(n,r){"function"==typeof n&&(r=n,n=void 0),n=n||{},e(window).on("message",{callback:r,expectedOrigin:(0,t.config)().baseURI},w);var i=(0,t.config)().baseURI+"/"+function(e){var t=e&&e.network;return t&&!/^\s*\d+\s*$/.test(t)?t+"/":""}(n)+(n.loginType&&"session"==n.loginType?a:o)+"?display=popup",s=(0,t.config)().appId;s&&(i+="&client_id="+s),function(e){var t=["width=800","height=480","resizable=yes","status=yes","location=yes","toolbar=no"].join(",");T(),d=window.open("about:blank","",t),k(function(){d&&(d.focus(),d.location.href=e)})}(i)}function w(t){if(p(t)){var n=JSON.parse(t.originalEvent.data)||{},r=n.data||{},i=t.data.callback||c;n&&"login"==n.method&&(T(),_(r.access_token?r.access_token.token:null),f(r.access_token?r:null),e(window).off("message",w),!r.access_token&&r.reason&&window.console&&"function"==typeof console.log&&console.log("[yammer] Login failed: "+r.reason),i(u))}}function T(){d&&d.close()}function E(r){(0,t.config)().csrf_token?yam.platform.request({url:(0,t.config)().baseURI+"/"+n,type:"POST",data:{authenticity_token:(0,t.config)().csrf_token,_method:"delete"},success:O,error:S,complete:function(){r(l())}}):k(function(n){e(window).on("message",{callback:r,expectedOrigin:(0,t.config)().baseURI},I),n.postMessage('{ "method": "yam.logOut" }',(0,t.config)().baseURI)})}function I(t){if(p(t)){var n=JSON.parse(t.originalEvent.data)||{},r=t.data.callback||c;"yam.logOut"==n.method&&(O(n),r(l())),e(window).off("message",I)}}function O(e){"success"==e.data&&(_(null),f(null))}function S(){}var C=void 0,A=e("<iframe></iframe>").attr({id:"yam-xdr-proxy",name:"yam-xdr-proxy"}).css("display","none");function k(n){if(C)return n(C);var r=(0,t.config)().baseURI+"/"+s+"?ts="+Date.now();(0,t.config)().appId&&(r+="&client_id="+(0,t.config)().appId),A.data("initialized")||(A.data("initialized",!0).attr("src",r),e(document).ready(function(){e("body").append(A)})),A.on("load",function(){return C=window.frames["yam-xdr-proxy"],n(C)})}yam.platform.getLoginStatus=h,yam.platform.setAuthToken=_,yam.platform.login=b,yam.platform.logout=E,yam.platform.request=function(n){var r=e.extend({},n),i=function(){if(u&&u.access_token&&u.access_token.token)return u.access_token.token}();return i&&i.length&&(r.headers=r.headers||{},r.headers.authorization="Bearer "+i),/^https?:\/\//.test(r.url)||0===r.url.indexOf("/")||(r.url=(0,t.config)().apiBaseURI+"/api/v1/"+r.url),e.ajax(r)},yam.getLoginStatus=h,yam.login=b,yam.logout=E}(e)}).call(t,n(20))},2009:function(e,t,n){"use strict";(function(e){var t=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(78)),r=n(21);!function(e){!function(){var e,t=function(){if(void 0!==document.currentScript)return document.currentScript;for(var e=document.getElementsByTagName("script"),t=-1,n=e.length-1;-1===t&&n>-1;n--)e[n].getAttribute("data-app-id")&&(t=n);return-1===t?null:e[t]}();if(!t)return e="Could not find the script tag with the app id",void(window.console&&"function"==typeof console.log&&console.log("[yammer] "+e));var n={},i={"data-asset-host":"assetHost","data-cnd-asset-host":"cdnAssetHost","data-app-id":"appId"};Object.keys(i||{}).forEach(function(e){if(Object.prototype.hasOwnProperty.call(i,e)){var r=t.getAttribute(e);r&&(n[i[e]]=r)}}),(0,r.config)(n)}(),yam.connect=yam.connect||{},yam.connect.loginButton=function(n,i){var a={},o=(0,r.config)(),s=void 0,u=void 0;"string"==typeof n?s=n:(s=n.selector,(u=n.network)&&(a.network=u)),yam.getLoginStatus(function(n){var r=e(s);n.authResponse?i(n):(r.append('<img alt="Log in with Yammer" role="button" tabindex="0" src="'+o.cdnAssetHost+'/assets/images/yammer_signin.png" style="cursor: pointer;">'),r.bind("click",function(){yam.login(a,i)}),r.bind("keypress",function(e){if(e.which===t.SPACE||e.which===t.ENTER)return yam.login(a,i),!1}))})},yam.connect.reload=function(){location.reload()}}(e)}).call(t,n(20))},21:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(30),i=function(){return{type:"SESSION.RESET",payload:{}}};t.config=c,t.clear=function(){s(o),r.default.dispatch(i())};var a=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o={debug:!1},s=function(e){return window.__yammerconfig__=e,e},u=function(){return window.__yammerconfig__};s(u()||o);var d=function(e){var t=s(a({},u(),e));return r.default.dispatch(function(e){return{type:"SESSION.UPDATE_FROM_LEGACY_CONFIG",payload:e}}(t)),t};function c(e,t){return e?d("string"==typeof e?((n={})[e]=t,n):e):u();var n}window.yam=window.yam||{},window.yam.config=c},211:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTrackingClientId=void 0;var r=n(19),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(21));t.getTrackingClientId=function(){var e=i.config();return(0,r.isDesktopApp)()?e.desktopTrackingClientId:e.webTrackingClientId}},212:function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(t,n(38))},213:function(e,t,n){"use strict";(function(e,r){var i,a=n(215);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var o=Object(a.a)(i);t.a=o}).call(t,n(38),n(214)(e))},214:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},215:function(e,t,n){"use strict";t.a=function(e){var t,n=e.Symbol;"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable";return t}},216:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(217);n.n(r);for(var i in r)"default"!==i&&function(e){n.d(t,e,function(){return r[e]})}(i);var a=n(218);n.n(a);for(var i in a)"default"!==i&&function(e){n.d(t,e,function(){return a[e]})}(i);var o=n(219);n.n(o);for(var i in o)"default"!==i&&function(e){n.d(t,e,function(){return o[e]})}(i);var s=n(220);n.n(s);for(var i in s)"default"!==i&&function(e){n.d(t,e,function(){return s[e]})}(i);var u=n(221);n.n(u);for(var i in u)"default"!==i&&function(e){n.d(t,e,function(){return u[e]})}(i);var d=n(222);n.n(d);for(var i in d)"default"!==i&&function(e){n.d(t,e,function(){return d[e]})}(i)},217:function(e,t,n){"use strict"},218:function(e,t,n){"use strict"},219:function(e,t,n){"use strict"},22:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.isEnabledAndReprovisioning=t.isFreemium=t.isO365=t.process=t.processNetwork=t.processGroupCounts=t.getGroupCountProcessing=t.isExternalMessagingEnabled=t.toOriginalHash=t.getCompanyGroupName=t.decrementCountFor=t.incrementCountFor=t.hasUnseen=t.getCurrentNetworkDomains=t.getInboxUnseenThreadCount=t.getUnseenCount=t.getUnseenNotificationCount=t.getNetworkPrivacyPolicy=t.getDefaultNetworkPrivacyPolicy=t.getName=t.getFileTypesAllowed=t.getEnforceOfficeAuthentication=t.isConnectedAllCompanyEnabled=t.isForceConnectedGroupsEnabled=t.isSecretGroupsEnabled=t.isModerated=t.isO365Internal=t.isExternal=t.isCurrent=t.isNetwork=t.isGifPickerAllowed=t.isEDiscoverable=t.areDocumentAttachmentsAllowed=t.areAttachmentsAllowed=void 0;var r,i=c(n(0)),a=c(n(6)),o=n(2),s=n(12),u=n(238),d=(r=u)&&r.__esModule?r:{default:r};function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var l=function(e){var t=a.getCurrentNetwork();return!!e&&!!t&&t.id===e.id},f=function(e){return!!e.community},p=function(e){return e.unseen_notification_count||0},h=function(e){return p(e)+g(e)},g=function(e){return e.inbox_unseen_thread_count||0},m=new e.Deferred,_=function(e,t){if(!!e.group_counts){var n=e.group_counts.unseen_group_thread_counts||{};Object.keys(n||{}).forEach(function(e){var r=t.findOrCreate("group",e);t.updateCountFromNetwork(r,n[e])});var r=t.findOrCreate("general"),i=e.group_counts.unseen_general_thread_count||0;t.updateCountFromNetwork(r,i)}m.resolve(e)},y=function(e,t,n){var r=t.save(e);l(r)&&_(e,n)},v=function(e){return e&&e.office_authentication_committed},b=function(){return"https://go.microsoft.com/fwlink/?LinkId=521839"},w=function(e){return(0,s.treatment)("files_improvement_media_exception")?!!e.allow_attachments&&"NONE"!==e.attachment_types_allowed:!!e.allow_attachments};t.areAttachmentsAllowed=w,t.areDocumentAttachmentsAllowed=function(e){return w(e)&&"ALL"===e.attachment_types_allowed},t.isEDiscoverable=function(e){return!(0,s.treatment)("file_ediscovery_experiment")||!!e&&!!e.attachments_in_private_messages},t.isGifPickerAllowed=function(e){return w(e)&&!!e.is_gif_shortcut_enabled},t.isNetwork=function(e){return"network"===e.type},t.isCurrent=l,t.isExternal=f,t.isO365Internal=function(e){return!f(e)&&v(e)},t.isModerated=function(e){return!!e.moderated},t.isSecretGroupsEnabled=function(e){return!!e.secret_groups},t.isForceConnectedGroupsEnabled=function(e){return!!e.force_connected_groups},t.isConnectedAllCompanyEnabled=function(e){return e&&!!e.connected_all_company},t.getEnforceOfficeAuthentication=function(e){return e.enforce_office_authentication},t.getFileTypesAllowed=function(e){return w(e)?(0,s.treatment)("files_improvement_media_exception")&&"MEDIA"===e.attachment_types_allowed?["image/*","video/*","application/x-mpegURL"]:void 0:[]},t.getName=function(e){return e&&(e.full_name||e.name)},t.getDefaultNetworkPrivacyPolicy=b,t.getNetworkPrivacyPolicy=function(e){return e.get("privacy_link")||"https://go.microsoft.com/fwlink/?LinkId=521839"},t.getUnseenNotificationCount=p,t.getUnseenCount=h,t.getInboxUnseenThreadCount=g,t.getCurrentNetworkDomains=function(){return a.getCurrentUser().network_domains||[]},t.hasUnseen=function(e){return!!h(e)},t.incrementCountFor=function(e,t,n,r){var i=void 0;if(t){if("yam.model.Thread"!==n.declaredClass||1!==r)return;i=g(e),e.update({inbox_unseen_thread_count:i+1})}},t.decrementCountFor=function(e,t,n,r){if(t){if("yam.model.Thread"!==n.declaredClass||0!==r)return;var i=g(e);i>0&&e.update({inbox_unseen_thread_count:i-1})}},t.getCompanyGroupName=function(e){return e&&e.community?(0,o.t)("all_network"):(0,o.t)("all_company")},t.toOriginalHash=function(e){return i.pick(e,"type","name")},t.isExternalMessagingEnabled=function(e){return e.external_messaging_state===d.default.ENABLED},t.getGroupCountProcessing=function(){return m},t.processGroupCounts=_,t.processNetwork=y,t.process=function(e,t,n){i.each(e.getRaw()||[],function(e){return y(e,t,n)})},t.isO365=v,t.isFreemium=function(e){return e&&e.get("is_freemium")},t.isEnabledAndReprovisioning=function(e){return"enabled_and_reprovisioning"===e.state}}).call(t,n(20))},220:function(e,t,n){"use strict"},221:function(e,t,n){"use strict"},222:function(e,t,n){"use strict"},223:function(e,t,n){"use strict"},224:function(e,t,n){"use strict"},225:function(e,t,n){"use strict";var r,i,a,o;n.d(t,"c",function(){return r}),n.d(t,"b",function(){return i}),n.d(t,"d",function(){return a}),n.d(t,"a",function(){return o}),function(e){e.STARTED="STARTED"}(r=r||(r={})),function(e){e.CREATED="CREATED"}(i=i||(i={})),function(e){e.ENDED="ENDED"}(a=a||(a={})),function(e){e.BROADCAST="BROADCAST",e.QUICKSTART="QUICKSTART",e.GOLIVE="GOLIVE",e.CREATED_FROM_YAMMER_STREAM="CREATED_FROM_YAMMER",e.CREATED_FROM_YAMMER_TEAMS="CREATED_FROM_YAMMER_QS"}(o=o||(o={}))},226:function(e,t,n){"use strict";var r,i,a,o;n.d(t,"d",function(){return r}),n.d(t,"c",function(){return i}),n.d(t,"b",function(){return a}),n.d(t,"a",function(){return o}),function(e){e.RTMP="RTMP",e.RTMPS="RTMPS"}(r=r||(r={})),function(e){e.stream="Stream",e.quickStart="QuickStart"}(i=i||(i={})),function(e){e.PRIMARY="PRIMARY",e.SECONDARY="SECONDARY"}(a=a||(a={})),function(e){e.producer="Producer",e.presenter="Presenter"}(o=o||(o={}))},227:function(e,t,n){"use strict"},228:function(e,t,n){"use strict"},229:function(e,t,n){"use strict"},23:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"allCompanyGroupCategory",function(){return a}),n.d(t,"__esModule",function(){return s});var r=n(25),i=n(40),a="team";var o=r.default.define("yam.model.Group",function(){this.prototype.type="group",this.prototype.set=function(e,t){var n,r=this;if(null==e)return this;"object"==typeof e?n=e:(n={})[e]=t;var a=this.update(n);return Object.keys(n).forEach(function(e){!function(e,t){switch(t){case"related_groups":i.default.trigger("Group/"+e.id+"/RelatedGroups/update");break;case"related_contents":i.default.trigger("Group/"+e.id+"/RelatedContents/update");break;case"featured_users":i.default.trigger("Group/"+e.id+"/FeaturedUsers/update")}}(r,e)}),a}});t.default=o;var s=!0},230:function(e,t,n){"use strict"},231:function(e,t,n){"use strict"},232:function(e,t,n){"use strict"},233:function(e,t,n){"use strict"},234:function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}t.__esModule=!0;var i=r();i.withExtraArgument=r,t.default=i},235:function(e,t,n){"use strict";n.d(t,"c",function(){return o}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return u}),n.d(t,"a",function(){return d});var r=n(172),i=n(49),a=function(){return new Promise(function(e,t){var n,r,i,a=(n="oauth_token",r=document.cookie,null!=(i=r&&(r.match("(^|; )"+n+"=([^;]*)")||0)[2])?decodeURIComponent(i):i);a?e(a):t(new Error("Unable to retrieve token from cookie"))})},o=function(){return function(e,t){return new Promise(function(n,a){e({type:"ACCESS_TOKEN.REFRESH_FROM_SERVER_PENDING",payload:{}}),function(e){var t=Object(i.f)(e),n={method:"GET",path:"oauth2/access_token.json",headers:{"Content-Type":"application/json; charset=UTF-8",Accept:"application/json; charset=UTF-8"},host:t.hosts.base,query:{client_id:t.client.appId}};return Object(r.a)(n,e).then(function(e){return e.json()}).then(function(e){return e.access_token})}(t()).then(function(t){e(function(e){return{type:"ACCESS_TOKEN.REFRESH_FROM_SERVER_FULFILLED",payload:{accessToken:e}}}(t)),n(t)}).catch(function(t){e(function(e){return{type:"ACCESS_TOKEN.REFRESH_FROM_SERVER_REJECTED",payload:{error:e}}}(t)),a(t)})})}},s=function(){return function(e){return new Promise(function(t,n){e({type:"ACCESS_TOKEN.REFRESH_FROM_COOKIE_PENDING",payload:{}}),a().then(function(n){e(function(e){return{type:"ACCESS_TOKEN.REFRESH_FROM_COOKIE_FULFILLED",payload:{accessToken:e}}}(n)),t()}).catch(function(t){e(function(e){return{type:"ACCESS_TOKEN.REFRESH_FROM_COOKIE_REJECTED",payload:{error:e}}}(t)),n(t)})})}},u=function(e){return{type:"ACCESS_TOKEN.SET",payload:{accessToken:e}}},d=function(){return{type:"ACCESS_TOKEN.CLEAR",payload:{}}}},236:function(e,t,n){"use strict";function r(e){this.name="UnauthorizedError",this.message=e.statusText+" "+e.status,this.response=e,this.stack=(new Error).stack}function i(e){this.name="ApiActionError",this.message=e.statusText+" "+e.status,this.response=e,this.stack=(new Error).stack}n.d(t,"b",function(){return a}),n.d(t,"a",function(){return o}),r.prototype=new Error,i.prototype=new Error;var a=r,o=i},237:function(e,t,n){"use strict";var r={};e.exports=r},238:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={ENABLED:"enabled",INBOUND_ONLY:"inbound_only",DISABLED:"disabled",INVALID:"invalid_state"};Object.freeze(r),t.default=r},239:function(e,t){e.exports=["png","jpg","jpeg","gif","heic"]},24:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base=f,t.cdn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return d(a.config().cdnAssetHost,e)},t.fileville=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return d(a.config().filesHost.split("/v2/")[0],e)},t.filevilleAFD=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return d(a.config().filesAFDHost,e)},t.msgraph=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return d(a.config().msgraphUri,e)},t.polaris=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return d(a.config().polarisHost,e)},t.apiBase=p,t.app=function(e,t){void 0===e&&(e="");var n=r.getCurrentNetwork(),i=n&&n.permalink,a=i?this.join(f(),i,e):this.join(f(),e);t&&(a=l(a,t));return a},t.api=function(e,t){void 0===e&&(e="");return c("api/v1",e,t)},t.apiV2=function(e,t){void 0===e&&(e="");return c("api/v2",e,t)},t.apiV3=function(e,t){void 0===e&&(e="");return c("api/v3",e,t)},t.gql=function(){return c("/graphql","")},t.join=h,t.getNetworkFromUrl=function(){var e=decodeURIComponent(s.pathname()),t=new RegExp("^/([^/]+)(/.*|/?$)","i"),n=e.match(t);return n&&n[1]},t.isHomeLocation=function(e){void 0===e&&(e=r.getCurrentNetwork());var t=s.pathname(),n=new RegExp("^/"+Object(i.escapeRegExp)(e.permalink||"")+"/?$","i");return!!decodeURIComponent(t).match(n)},t.makeAbsoluteUrl=function(e){return f(u(e))};var r=n(6),i=(n.n(r),n(50)),a=n(21),o=n(16),s=(n.n(o),n(75)),u=(n.n(s),function(e){var t=e.replace(/[a-zA-Z]*(s?):\/\//,""),n=t.indexOf("/");return-1!==n?t.substr(n):t});function d(e,t){return h.apply(void 0,[e].concat(t))}function c(e,t,n){var r=h(p(),e,t);return n&&(r=l(r,n)),r}function l(e,t){return e+(e.indexOf("?")>=0?"&":"?")+Object(o.paramify)(t)}function f(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=a.config().baseURI;return e.length>0?d(n,e):n||""}function p(){var e=a.config();return e.appId?e.apiBaseURI?e.apiBaseURI:f().replace("www.","api."):f()}function h(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.map(function(e,t){return t>0?e.replace(/^\//,""):e}).filter(function(e){return e&&e.length}).join("/");return e[0]||(n="/"+n),n=(n=n.replace(/([^:])\/{2,}/g,"$1/")).replace(/^\/{2,}#/g,"/#")}},240:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n(0)),i=n(13),a=c(n(34)),o=d(n(51)),s=c(n(98)),u=d(n(3));function d(e){return e&&e.__esModule?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}a.ns("yam.client"),yam.client._clients={};var l=yam.client._clients;function f(e){return e._clientKey+e.getUrl()}var p={getUrl:function(){return this.url},getClient:function(){return l[f(this)]},getClientOptions:function(){},isStarted:function(){var e=this.getClient();return!!e&&e.isStarted()},hasOlderAvailable:function(){var e=this.getClient();return e&&e.hasOlderAvailable()},onDataSingle:function(){var e=r.toArray(arguments).slice(0);this.onData.apply(this,e),this.getRepository().transaction(r.bind(function(){this.process.apply(this,e)},this)),this.trigger&&this.trigger.apply(this,["onAfterProcess"].concat(e)),this._hasFirstPayload||(this.trigger&&this.trigger.apply(this,["onFirstPayload"].concat(e)),this._hasFirstPayload=!0)},onDataError:function(){},process:function(){throw new Error("ORM Error: process method must be implemented for clientized models")},listen:function(e){(function(e,t){t=r.extend({},e.getClientOptions(),t);var n=f(e),i=l[n];i||(t.url=e.getUrl(),(i=new e._clientClass(t)).onData=r.wrap(i.onData,function(){var t=Array.prototype.shift.call(arguments);t.apply(t,arguments),e.onDataSingle.apply(e,arguments)})),l[n]=i})(this,e=e||{}),!1!==e.startClient&&this.getClient().start()},isListening:function(){return this.getClient()&&this.getClient().isStarted()},fetchPayload:function(e){e=r.extend({dataType:"json"},e||{});var t=this,n=e.success||r.identity,a=e.error||r.identity,d=e.processor||r.identity;delete e.success,delete e.error,delete e.processor;e.beforeRequest=e.beforeRequest||function(){},u.default.listenToOnce(this,"onBeforeRequest",e.beforeRequest);try{this.trigger("onBeforeRequest",e),this.onBeforeRequest(e)}catch(e){(0,i.log)("error occurred in fetchPayload/beforeRequest")}finally{u.default.stopListening(this,"onBeforeRequest")}var c=d(function(r){var a=arguments;try{return e.afterProcess=e.afterProcess||function(){},u.default.listenToOnce(t,"onAfterProcess",e.afterProcess.bind(e)),e.firstPayload=e.firstPayload||function(){},u.default.listenToOnce(t,"onFirstPayload",e.firstPayload.bind(e)),n.apply(e,a),t.onDataSingle(r),r}catch(e){(0,i.warn)("error occurred in fetchPayload success handler: ",e,e.stack)}finally{u.default.stopListening(t,"onAfterProcess onFirstPayload")}});if(s.canConvertUrl(e.url)){var l=e.url;e.method="POST",e.contentType="application/attrs; charset=UTF-8",e.url=s.convertUrl(e.url)+"?"+s.getParamsForUrl(l),e.data=s.getFieldsForUrl(l),c=s.convertCallback(c,l)}return o.default.send(e).then(c,a)},unlisten:function(){var e=f(this);this._hasFirstPayload=!1,l[e]&&(l[e].stop(),delete l[e])}};r.each({onData:!0,onDataError:!0,onBeforeRequest:!0,onAfterProcess:!0,onFirstPayload:!0},function(){p[arguments[1]]=function(){}}),t.default=p},241:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(34));var i=function(e){this._raw=e};i.prototype.getRaw=function(){return this._raw},i.prototype.val=function(){var e=Array.prototype.slice.call(arguments,0);return e.unshift(this._raw),r.val.apply(r,e)},t.default=i},25:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"__esModule",function(){return l});var r=n(50),i=n(0),a=(n.n(i),n(34)),o=n(9),s=n(299),u=n.n(s);a.ns("yam.model");var d=new(function(){function e(){}return e.prototype.getGlobalModelRepository=function(){var e=window.yam;return e.model.repository||(e.model.repository=new u.a),e.model.repository},e.prototype.define=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.getGlobalModelRepository();return n.register.apply(n,e)},e.prototype.objectForReference=function(e){if(!(e&&e.type&&e.id))throw new Error("Reference is no good: "+e);return this.findModelInstance(e.id,e.type)},e.prototype.getModelByType=function(e){if(!e)throw new Error("Type is no good: "+e);return this.findModel(e)},e.prototype.findModelInstance=function(e,t){return this.findOrmModelInstance(e,t)},e.prototype.findOrmModelInstance=function(e,t){var n,r=this.getOrmModelName(t);return i.has(c.model,r)?n=c.model[r].findById(e):o.event("orm_model_not_found",{id:e,type:t}),n},e.prototype.getOrmModelName=function(e){var t=this.getModelType(e);return Object(r.camelize)(t,!0)},e.prototype.findModel=function(e){return this.findOrmModel(e)},e.prototype.findOrmModel=function(e){var t=this.getOrmModelName(e);return i.has(c.model,t)?c.model[t]:c.model.Unknown},e.prototype.getModelType=function(e){switch(e){case"image":case"file":case"deleted_message_attachment":case"inaccessible_message_attachment":return"uploaded_file";default:return e}},e.prototype.toTypeStr=function(e){var t=e.declaredClass||e.prototype.declaredClass;return Object(r.snakeize)(t.split(".").pop()||"")},e}()),c=window.yam;i.extend(c.model,d),t.default=d;var l=!0},26:function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,i,a,o,s,u){if(r(t),!e){var d;if(void 0===t)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,i,a,o,s,u],l=0;(d=new Error(t.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw d.framesToPop=1,d}}},260:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"RawProtocolType",function(){return r}),n.d(t,"RawIngestUrlType",function(){return i}),n.d(t,"normalizeBroadcast",function(){return d}),n.d(t,"normalizeBroadcastsFetch",function(){return c});var r,i,a=n(97);!function(e){e.RTMP="rtmp",e.RTMPS="rtmps"}(r=r||(r={})),function(e){e.PRIMARY="primary",e.SECONDARY="secondary"}(i=i||(i={}));var o=function(e){return 1e3*e},s=function(e){return e?e.map(u):null},u=function(e){return{url:e.url,protocol:e.protocol===r.RTMP?a.ProtocolType.RTMP:a.ProtocolType.RTMPS,type:e.type===i.PRIMARY?a.IngestUrlType.PRIMARY:a.IngestUrlType.SECONDARY}},d=function(e){return function(e){return!!e.streams_link}(e)?function(e){return{yammerEventId:e.id,o365GroupId:e.o365_group_id,yammerGroupId:e.yammer_group_id,id:e.broadcast_id,title:e.title,description:e.description,startTime:e.start_time,endTime:e.end_time,joinLink:e.join_link,editLink:e.edit_link,streamLink:e.streams_link,metricsLink:e.metrics_link,embeddable:e.embeddable,published:e.published,teamsConnected:e.teams_connected,cancelled:e.cancelled,status:e.status,networkId:e.network_id,organizerId:e.organizer_id,o365OrganizerId:e.o365_organizer_id,producerIds:e.producers,presenterIds:e.presenters,o365ProducerIds:e.o365_producer_ids,exchangeEventId:e.exchange_event_id,eventType:e.event_type,productionEmbedUrl:e.production_embed_url,ingestUrls:s(e.ingest_urls)}}(e):function(e){return{description:e.description,editLink:e.edit_link,embeddable:e.embeddable,endTime:o(e.end_time),id:e.broadcast_id,joinLink:e.join_link,metricsLink:e.metrics_link,networkId:e.network_id,o365GroupId:e.o365_group_id,organizerId:e.organizer_id,published:e.published,startTime:o(e.start_time),status:e.status,cancelled:e.cancelled,title:e.title,yammerEventId:e.id,yammerGroupId:e.yammer_group_id,streamLink:null,teamsConnected:!1,o365OrganizerId:null,producerIds:[],presenterIds:[],o365ProducerIds:[],exchangeEventId:null,eventType:a.EventType.BROADCAST,productionEmbedUrl:null,ingestUrls:null}}(e)},c=function(e){return(e||[]).map(d)}},261:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"__esModule",function(){return c});var r=n(39),i=(n.n(r),n(105)),a=n(56),o=n(66),s=(n.n(o),this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}),u=r.schema;function d(e){return!!e.group_id}t.default=new u.Entity("message",{sender_id:i.a,replied_to_sender_id:i.a},{idAttribute:"databaseId",processStrategy:function(e){var t=s({},e,{id:e.databaseId}),n=e.sender;n.databaseId=Object(a.getIntId)(e.sender.databaseId);var r={id:e.databaseId,group_id:e.group_id,network_id:Object(a.getIntId)(e.sender.network.databaseId),replied_to_id:function(e){return e.repliedTo?e.repliedTo.databaseId:e.thread.databaseId}(e),replied_to_sender_id:e.repliedTo?e.repliedTo.sender:null,replied_to_gql_id:e.repliedTo?e.repliedTo.gql_id:null,sender_id:n,thread_id:e.thread.databaseId,created_at:Object(a.generateDate)(e.createdAt),updated_at:Object(a.generateDate)(e.updatedAt),version_num:void 0!==e.version?e.version:null,is_edited:void 0!==e.isEdited?e.isEdited:null,is_editable:void 0!==e.viewerCanEdit?e.viewerCanEdit:null,direct_message:!d(e),conversation_id:!d(e)&&e.thread.databaseId||void 0,language:"en",message_type:Object(o.getMessageType)(e.content.__typename),privacy:function(e){return d(e)?"public":"private"}(e),sender_type:"user",system_message:"system"===Object(o.getMessageType)(e.content.__typename),url:Object(a.generateUrl)(o.FAKE_URL_TEMPLATES.message,t),web_url:Object(a.generateUrl)(o.FAKE_URL_TEMPLATES.message_web,t),gql:{gql_id:e.gql_id,cursor:e.cursor,viewerMutationId:void 0!==e.viewerMutationId?e.viewerMutationId:null},body:{parsed:e.content.body.parsedBody},content_excerpt:e.content.body.parsedBody,likes_count:0,like_ids:[],type:"message"};return void 0===r.group_id&&delete r.group_id,void 0===r.conversation_id&&delete r.conversation_id,r}});var c=!0},272:function(e,t,n){"use strict";t.b=_;var r=n(39),i=(n.n(r),n(274)),a=n(163),o=n(105),s=n(275),u=n(261),d=n(276),c=n(56),l=n(66),f=(n.n(l),this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}),p=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n},h=r.schema;function g(e){return!e.group&&e.thread_participants.edges.length>0}function m(e){var t=e.length;return t>0?e[t-1].node:null}function _(e){var t=f({},e,{id:e.databaseId}),n=f({},e.network);n.databaseId=Object(c.getIntId)(n.databaseId);var r=f({},e.group);r&&(r.databaseId=Object(c.getIntId)(r.databaseId));var i,a=f({},e.threadStarter,{groupId:r.databaseId,directMessage:g(e)}),s={id:e.databaseId,group_id:function(e){return 0===e.databaseId?0:e}(r),network_id:n,thread_starter_id:a,direct_message:g(e),invited_user_ids:(i=e.thread_participants.edges,i.map(function(e){var t=e.node.databaseId;return parseInt(t,10)})).reverse(),participants:e.thread_participants.edges.map(function(e){var t=Object(o.b)(e.node);t.type;return p(t,["type"])}).reverse(),topics:[],has_attachments:!1,stats:{updates:e.replies.totalCount+1,first_reply_id:null,latest_reply_at:function(e){var t=m(e.replies.edges);return t?Date.parse(t.updatedAt):Date.parse(e.threadStarter.updatedAt)}(e),latest_reply_id:function(e){var t=m(e.replies.edges);return t?t.databaseId:e.threadStarter.databaseId}(e)},read_only:!1,url:Object(c.generateUrl)(l.FAKE_URL_TEMPLATES.thread,t),web_url:Object(c.generateUrl)(l.FAKE_URL_TEMPLATES.thread_web,t),gql:{gql_id:e.gql_id,sortKey:void 0!==e.sortKey?e.sortKey:null,cursor:e.cursor,threadMutationId:e.viewerMutationId?e.viewerMutationId:null},gql_id:e.gql_id,type:"thread",replies:e.replies.edges.map(function(t){return f({},t.node,{cursor:t.cursor,group_id:(n=e.group,n&&n.databaseId?Object(c.getIntId)(n.databaseId):void 0)});var n}),conversation_id:function(e){if(g(e))return e}(e),unique_views_count:null};return e.group&&0!==r.databaseId||delete s.group_id,s.conversation_id||delete s.conversation_id,0===s.replies.length&&delete s.replies,s}t.a=new h.Entity("thread",{group_id:a.a,network_id:i.a,thread_starter_id:s.a,replies:[u.default],conversation_id:d.a},{idAttribute:function(e){return e.databaseId},processStrategy:_})},273:function(e,t,n){"use strict";t.b=d;var r=n(39),i=(n.n(r),n(0)),a=(n.n(i),n(63)),o=(n.n(a),n(56)),s=r.schema;function u(e){var t=e,n=Object(o.graphqlConnectionToArray)(e.lastMessages),r=i.last(i.pluck(n,"databaseId").sort());return{thread_id:t.databaseId,last_seen_message_id:t.viewerLastSeenMessage&&t.viewerLastSeenMessage.databaseId||Object(a.getLowerIdBound)(),last_message_id:r}}function d(e){var t,n=e.realtimeChannelId,r=e.pageInfo,i=e.viewerUnreadCount,a=e.edges,s=e.isSingleThread,d=e.isRealtime;n?t=n:s&&a&&a.length>0&&(t=a[0].node.realtimeChannelId);var c={older_available:function(e){return!!e&&!!e.hasPreviousPage}(r),threads_in_inbox:function(e){var t=[];return e.map(function(e){null!=e.node.viewerIsFollowing&&!0!==e.node.viewerIsFollowing||t.push(e.node.databaseId)}),t.reverse()}(a),last_seen_message_id:function(e){var t=e.filter(function(e){return e.node.viewerLastReadMessage&&e.node.viewerLastReadMessage.databaseId});if(t.length)return t[0].node.viewerLastReadMessage.databaseId}(a),unseen_thread_count:function(e){return e||0===e?e:null}(i),unseen_message_count_by_thread:function(e,t){var n={};return t?n:(e.forEach(function(e){var t=e.node.viewerHasUnreadMessages?1:0;t&&(n[e.node.databaseId]=t)}),n)}(a,!!d),unviewed_threads:function(e){if(e){var t={threads:[],have_older_msgs:!1},n=Object(o.graphqlConnectionToArray)(e);return t.threads=n.map(u),t}}(e.unseenThreads),followed_user_ids:[],followed_references:[],liked_message_ids:[],bookmarked_message_ids:[],realtime:{}};return void 0!==t&&(c.realtime={channel_id:t}),c.last_seen_message_id||delete c.last_seen_message_id,c.unviewed_threads||delete c.unviewed_threads,c}t.a=new s.Entity("meta",{},{idAttribute:function(){return"meta"},processStrategy:d})},274:function(e,t,n){"use strict";var r=n(39),i=(n.n(r),n(56)),a=r.schema;t.a=new a.Entity("network",{},{idAttribute:"databaseId",processStrategy:function(e){var t=e.databaseId,n=e.displayName,r=e.gql_id;return{id:Object(i.getIntId)(t),name:n,type:"network",gql:{gql_id:r}}}})},275:function(e,t,n){"use strict";var r=n(56),i=n(0),a=(n.n(i),n(39)),o=(n.n(a),n(105)),s=n(163),u=n(66),d=(n.n(u),this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}),c=a.schema;function l(e){return e.repliedTo?e.repliedTo.databaseId:null}t.a=new c.Entity("message",{sender_id:o.a,references:{user:{tagged:[o.a],cc:[o.a],blind:[o.a]},group:{tagged:[s.a]}}},{idAttribute:"databaseId",processStrategy:function(e){var t=d({},e,{id:e.databaseId}),n=e.sender;n.databaseId=Object(r.getIntId)(e.sender.databaseId);var a,o,s=e.groupId?Object(r.getIntId)(e.groupId):void 0,c={id:e.databaseId,group_id:s,network_id:Object(r.getIntId)(e.sender.network.databaseId),group_created_id:s,replied_to_id:l(e),sender_id:n,thread_id:e.thread.databaseId,created_at:Object(r.generateDate)(e.createdAt),updated_at:Object(r.generateDate)(e.updatedAt),version_num:void 0!==e.version?e.version:null,is_edited:void 0!==e.isEdited?e.isEdited:null,is_editable:void 0!==e.viewerCanEdit?e.viewerCanEdit:null,direct_message:!!e.directMessage,conversation_id:!!e.directMessage&&e.thread.databaseId||void 0,language:"en",message_type:Object(u.getMessageType)(e.content.__typename),privacy:(o=e.directMessage,o?"private":"public"),sender_type:"user",system_message:"system"===Object(u.getMessageType)(e.content.__typename),url:Object(r.generateUrl)(u.FAKE_URL_TEMPLATES.message,t),web_url:Object(r.generateUrl)(u.FAKE_URL_TEMPLATES.message_web,t),gql:{gql_id:e.gql_id,cursor:function(e){return l(e)?e.databaseId:null}(e),viewerMutationId:e.viewerMutationId?e.viewerMutationId:null},body:(a=e.content,"AnnouncementMessageContent"===a.__typename?{rich:a.body.htmlParsedBody}:{parsed:a.body.parsedBody}),client_type:"Web",client_url:"https://www.yammer.com/",attachments:[],likes_count:0,like_ids:[],type:"message",title:function(e){if("AnnouncementMessageContent"===e.__typename)return e.title}(e.content),references:Object(r.generateMessageReferences)(e)};return void 0===c.conversation_id&&delete c.conversation_id,void 0===c.title&&delete c.title,void 0===c.group_id&&delete c.group_id,void 0===c.group_created_id&&delete c.group_created_id,i.isEmpty(c.references)&&delete c.references,c}})},276:function(e,t,n){"use strict";var r=n(39),i=(n.n(r),n(105)),a=n(66),o=(n.n(a),n(56)),s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n},u=r.schema;t.a=new u.Entity("conversation",{},{idAttribute:"databaseId",processStrategy:function(e){return{id:e.databaseId,network_id:Object(o.getIntId)(e.network.databaseId),privacy:"private",url:Object(o.generateUrl)(a.FAKE_URL_TEMPLATES.thread,{id:e.databaseId}),participating_users_count:e.thread_participants.totalCount,participating_names:e.thread_participants.edges.map(function(e){var t=Object(i.b)(e.node);t.type;return s(t,["type"])}).reverse(),type:"conversation"}}})},288:function(e,t,n){(function(t){e.exports=t.jQuery=n(289)}).call(t,n(38))},289:function(e,t,n){var r;!function(t,n){"use strict";"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,i){"use strict";var a=[],o=n.document,s=Object.getPrototypeOf,u=a.slice,d=a.concat,c=a.push,l=a.indexOf,f={},p=f.toString,h=f.hasOwnProperty,g=h.toString,m=g.call(Object),_={};function y(e,t){var n=(t=t||o).createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}var v=function(e,t){return new v.fn.init(e,t)},b=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,w=/^-ms-/,T=/-([a-z])/g,E=function(e,t){return t.toUpperCase()};function I(e){var t=!!e&&"length"in e&&e.length,n=v.type(e);return"function"!==n&&!v.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}v.fn=v.prototype={jquery:"3.2.1",constructor:v,length:0,toArray:function(){return u.call(this)},get:function(e){return null==e?u.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=v.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return v.each(this,e)},map:function(e){return this.pushStack(v.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:a.sort,splice:a.splice},v.extend=v.fn.extend=function(){var e,t,n,r,i,a,o=arguments[0]||{},s=1,u=arguments.length,d=!1;for("boolean"==typeof o&&(d=o,o=arguments[s]||{},s++),"object"==typeof o||v.isFunction(o)||(o={}),s===u&&(o=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)n=o[t],o!==(r=e[t])&&(d&&r&&(v.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,a=n&&Array.isArray(n)?n:[]):a=n&&v.isPlainObject(n)?n:{},o[t]=v.extend(d,a,r)):void 0!==r&&(o[t]=r));return o},v.extend({expando:"jQuery"+("3.2.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===v.type(e)},isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=v.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e))&&(!(t=s(e))||"function"==typeof(n=h.call(t,"constructor")&&t.constructor)&&g.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[p.call(e)]||"object":typeof e},globalEval:function(e){y(e)},camelCase:function(e){return e.replace(w,"ms-").replace(T,E)},each:function(e,t){var n,r=0;if(I(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(b,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(I(Object(e))?v.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,a=e.length,o=!n;i<a;i++)!t(e[i],i)!==o&&r.push(e[i]);return r},map:function(e,t,n){var r,i,a=0,o=[];if(I(e))for(r=e.length;a<r;a++)null!=(i=t(e[a],a,n))&&o.push(i);else for(a in e)null!=(i=t(e[a],a,n))&&o.push(i);return d.apply([],o)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v.isFunction(e))return r=u.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(u.call(arguments)))}).guid=e.guid=e.guid||v.guid++,i},now:Date.now,support:_}),"function"==typeof Symbol&&(v.fn[Symbol.iterator]=a[Symbol.iterator]),v.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()});var O=function(e){var t,n,r,i,a,o,s,u,d,c,l,f,p,h,g,m,_,y,v,b="sizzle"+1*new Date,w=e.document,T=0,E=0,I=oe(),O=oe(),S=oe(),C=function(e,t){return e===t&&(l=!0),0},A={}.hasOwnProperty,k=[],N=k.pop,x=k.push,R=k.push,F=k.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},j="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",U="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",L="\\["+M+"*("+U+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+U+"))|)"+M+"*\\]",D=":("+U+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+L+")*)|.*)\\)|)",G=new RegExp(M+"+","g"),q=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),H=new RegExp("^"+M+"*,"+M+"*"),B=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),W=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),$=new RegExp(D),V=new RegExp("^"+U+"$"),z={ID:new RegExp("^#("+U+")"),CLASS:new RegExp("^\\.("+U+")"),TAG:new RegExp("^("+U+"|[*])"),ATTR:new RegExp("^"+L),PSEUDO:new RegExp("^"+D),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ee=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){f()},ie=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{R.apply(k=F.call(w.childNodes),w.childNodes),k[w.childNodes.length].nodeType}catch(e){R={apply:k.length?function(e,t){x.apply(e,F.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ae(e,t,r,i){var a,s,d,c,l,h,_,y=t&&t.ownerDocument,T=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return r;if(!i&&((t?t.ownerDocument||t:w)!==p&&f(t),t=t||p,g)){if(11!==T&&(l=J.exec(e)))if(a=l[1]){if(9===T){if(!(d=t.getElementById(a)))return r;if(d.id===a)return r.push(d),r}else if(y&&(d=y.getElementById(a))&&v(t,d)&&d.id===a)return r.push(d),r}else{if(l[2])return R.apply(r,t.getElementsByTagName(e)),r;if((a=l[3])&&n.getElementsByClassName&&t.getElementsByClassName)return R.apply(r,t.getElementsByClassName(a)),r}if(n.qsa&&!S[e+" "]&&(!m||!m.test(e))){if(1!==T)y=t,_=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(te,ne):t.setAttribute("id",c=b),s=(h=o(e)).length;s--;)h[s]="#"+c+" "+_e(h[s]);_=h.join(","),y=X.test(e)&&ge(t.parentNode)||t}if(_)try{return R.apply(r,y.querySelectorAll(_)),r}catch(e){}finally{c===b&&t.removeAttribute("id")}}}return u(e.replace(q,"$1"),t,r,i)}function oe(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function se(e){return e[b]=!0,e}function ue(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function ce(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function le(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function pe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ie(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return se(function(t){return t=+t,se(function(n,r){for(var i,a=e([],n.length,t),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ae.support={},a=ae.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},f=ae.setDocument=function(e){var t,i,o=e?e.ownerDocument||e:w;return o!==p&&9===o.nodeType&&o.documentElement?(h=(p=o).documentElement,g=!a(p),w!==p&&(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",re,!1):i.attachEvent&&i.attachEvent("onunload",re)),n.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ue(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Q.test(p.getElementsByClassName),n.getById=ue(function(e){return h.appendChild(e).id=b,!p.getElementsByName||!p.getElementsByName(b).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,r,i,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(i=t.getElementsByName(e),r=0;a=i[r++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[i++];)1===n.nodeType&&r.push(n);return r}return a},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},_=[],m=[],(n.qsa=Q.test(p.querySelectorAll))&&(ue(function(e){h.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+M+"*(?:value|"+j+")"),e.querySelectorAll("[id~="+b+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||m.push(".#.+[+~]")}),ue(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=Q.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ue(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),_.push("!=",D)}),m=m.length&&new RegExp(m.join("|")),_=_.length&&new RegExp(_.join("|")),t=Q.test(h.compareDocumentPosition),v=t||Q.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},C=t?function(e,t){if(e===t)return l=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===p||e.ownerDocument===w&&v(w,e)?-1:t===p||t.ownerDocument===w&&v(w,t)?1:c?P(c,e)-P(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,a=t.parentNode,o=[e],s=[t];if(!i||!a)return e===p?-1:t===p?1:i?-1:a?1:c?P(c,e)-P(c,t):0;if(i===a)return ce(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;o[r]===s[r];)r++;return r?ce(o[r],s[r]):o[r]===w?-1:s[r]===w?1:0},p):p},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&f(e),t=t.replace(W,"='$1']"),n.matchesSelector&&g&&!S[t+" "]&&(!_||!_.test(t))&&(!m||!m.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return ae(t,p,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!==p&&f(e),v(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!==p&&f(e);var i=r.attrHandle[t.toLowerCase()],a=i&&A.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==a?a:n.attributes||!g?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},ae.escape=function(e){return(e+"").replace(te,ne)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,r=[],i=0,a=0;if(l=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(C),l){for(;t=e[a++];)t===e[a]&&(i=r.push(a));for(;i--;)e.splice(r[i],1)}return c=null,e},i=ae.getText=function(e){var t,n="",r=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=ae.selectors={cacheLength:50,createPseudo:se,match:z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&$.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=I[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&I(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=ae.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(G," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var d,c,l,f,p,h,g=a!==o?"nextSibling":"previousSibling",m=t.parentNode,_=s&&t.nodeName.toLowerCase(),y=!u&&!s,v=!1;if(m){if(a){for(;g;){for(f=t;f=f[g];)if(s?f.nodeName.toLowerCase()===_:1===f.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[o?m.firstChild:m.lastChild],o&&y){for(v=(p=(d=(c=(l=(f=m)[b]||(f[b]={}))[f.uniqueID]||(l[f.uniqueID]={}))[e]||[])[0]===T&&d[1])&&d[2],f=p&&m.childNodes[p];f=++p&&f&&f[g]||(v=p=0)||h.pop();)if(1===f.nodeType&&++v&&f===t){c[e]=[T,p,v];break}}else if(y&&(v=p=(d=(c=(l=(f=t)[b]||(f[b]={}))[f.uniqueID]||(l[f.uniqueID]={}))[e]||[])[0]===T&&d[1]),!1===v)for(;(f=++p&&f&&f[g]||(v=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==_:1!==f.nodeType)||!++v||(y&&((c=(l=f[b]||(f[b]={}))[f.uniqueID]||(l[f.uniqueID]={}))[e]=[T,v]),f!==t)););return(v-=i)===r||v%r==0&&v/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return i[b]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,n){for(var r,a=i(e,t),o=a.length;o--;)e[r=P(e,a[o])]=!(n[r]=a[o])}):function(e){return i(e,0,n)}):i}},pseudos:{not:se(function(e){var t=[],n=[],r=s(e.replace(q,"$1"));return r[b]?se(function(e,t,n,i){for(var a,o=r(e,null,i,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))}):function(e,i,a){return t[0]=e,r(t,null,a,n),t[0]=null,!n.pop()}}),has:se(function(e){return function(t){return ae(e,t).length>0}}),contains:se(function(e){return e=e.replace(Z,ee),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:se(function(e){return V.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(Z,ee).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:pe(!1),disabled:pe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return K.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:he(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=le(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=fe(t);function me(){}function _e(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ye(e,t,n){var r=t.dir,i=t.next,a=i||r,o=n&&"parentNode"===a,s=E++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i);return!1}:function(t,n,u){var d,c,l,f=[T,s];if(u){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(c=(l=t[b]||(t[b]={}))[t.uniqueID]||(l[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((d=c[a])&&d[0]===T&&d[1]===s)return f[2]=d[2];if(c[a]=f,f[2]=e(t,n,u))return!0}return!1}}function ve(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function be(e,t,n,r,i){for(var a,o=[],s=0,u=e.length,d=null!=t;s<u;s++)(a=e[s])&&(n&&!n(a,r,i)||(o.push(a),d&&t.push(s)));return o}function we(e,t,n,r,i,a){return r&&!r[b]&&(r=we(r)),i&&!i[b]&&(i=we(i,a)),se(function(a,o,s,u){var d,c,l,f=[],p=[],h=o.length,g=a||function(e,t,n){for(var r=0,i=t.length;r<i;r++)ae(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=!e||!a&&t?g:be(g,f,e,s,u),_=n?i||(a?e:h||r)?[]:o:m;if(n&&n(m,_,s,u),r)for(d=be(_,p),r(d,[],s,u),c=d.length;c--;)(l=d[c])&&(_[p[c]]=!(m[p[c]]=l));if(a){if(i||e){if(i){for(d=[],c=_.length;c--;)(l=_[c])&&d.push(m[c]=l);i(null,_=[],d,u)}for(c=_.length;c--;)(l=_[c])&&(d=i?P(a,l):f[c])>-1&&(a[d]=!(o[d]=l))}}else _=be(_===o?_.splice(h,_.length):_),i?i(null,o,_,u):R.apply(o,_)})}function Te(e){for(var t,n,i,a=e.length,o=r.relative[e[0].type],s=o||r.relative[" "],u=o?1:0,c=ye(function(e){return e===t},s,!0),l=ye(function(e){return P(t,e)>-1},s,!0),f=[function(e,n,r){var i=!o&&(r||n!==d)||((t=n).nodeType?c(e,n,r):l(e,n,r));return t=null,i}];u<a;u++)if(n=r.relative[e[u].type])f=[ye(ve(f),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[b]){for(i=++u;i<a&&!r.relative[e[i].type];i++);return we(u>1&&ve(f),u>1&&_e(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(q,"$1"),n,u<i&&Te(e.slice(u,i)),i<a&&Te(e=e.slice(i)),i<a&&_e(e))}f.push(n)}return ve(f)}return me.prototype=r.filters=r.pseudos,r.setFilters=new me,o=ae.tokenize=function(e,t){var n,i,a,o,s,u,d,c=O[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],d=r.preFilter;s;){for(o in n&&!(i=H.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(a=[])),n=!1,(i=B.exec(s))&&(n=i.shift(),a.push({value:n,type:i[0].replace(q," ")}),s=s.slice(n.length)),r.filter)!(i=z[o].exec(s))||d[o]&&!(i=d[o](i))||(n=i.shift(),a.push({value:n,type:o,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ae.error(e):O(e,u).slice(0)},s=ae.compile=function(e,t){var n,i=[],a=[],s=S[e+" "];if(!s){for(t||(t=o(e)),n=t.length;n--;)(s=Te(t[n]))[b]?i.push(s):a.push(s);(s=S(e,function(e,t){var n=t.length>0,i=e.length>0,a=function(a,o,s,u,c){var l,h,m,_=0,y="0",v=a&&[],b=[],w=d,E=a||i&&r.find.TAG("*",c),I=T+=null==w?1:Math.random()||.1,O=E.length;for(c&&(d=o===p||o||c);y!==O&&null!=(l=E[y]);y++){if(i&&l){for(h=0,o||l.ownerDocument===p||(f(l),s=!g);m=e[h++];)if(m(l,o||p,s)){u.push(l);break}c&&(T=I)}n&&((l=!m&&l)&&_--,a&&v.push(l))}if(_+=y,n&&y!==_){for(h=0;m=t[h++];)m(v,b,o,s);if(a){if(_>0)for(;y--;)v[y]||b[y]||(b[y]=N.call(u));b=be(b)}R.apply(u,b),c&&!a&&b.length>0&&_+t.length>1&&ae.uniqueSort(u)}return c&&(T=I,d=w),v};return n?se(a):a}(a,i))).selector=e}return s},u=ae.select=function(e,t,n,i){var a,u,d,c,l,f="function"==typeof e&&e,p=!i&&o(e=f.selector||e);if(n=n||[],1===p.length){if((u=p[0]=p[0].slice(0)).length>2&&"ID"===(d=u[0]).type&&9===t.nodeType&&g&&r.relative[u[1].type]){if(!(t=(r.find.ID(d.matches[0].replace(Z,ee),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(a=z.needsContext.test(e)?0:u.length;a--&&(d=u[a],!r.relative[c=d.type]);)if((l=r.find[c])&&(i=l(d.matches[0].replace(Z,ee),X.test(u[0].type)&&ge(t.parentNode)||t))){if(u.splice(a,1),!(e=i.length&&_e(u)))return R.apply(n,i),n;break}}return(f||s(e,p))(i,t,!g,n,!t||X.test(e)&&ge(t.parentNode)||t),n},n.sortStable=b.split("").sort(C).join("")===b,n.detectDuplicates=!!l,f(),n.sortDetached=ue(function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))}),ue(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||de("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ue(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||de("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ue(function(e){return null==e.getAttribute("disabled")})||de(j,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),ae}(n);v.find=O,v.expr=O.selectors,v.expr[":"]=v.expr.pseudos,v.uniqueSort=v.unique=O.uniqueSort,v.text=O.getText,v.isXMLDoc=O.isXML,v.contains=O.contains,v.escapeSelector=O.escape;var S=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&v(e).is(n))break;r.push(e)}return r},C=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},A=v.expr.match.needsContext;function k(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,x=/^.[^:#\[\.,]*$/;function R(e,t,n){return v.isFunction(t)?v.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?v.grep(e,function(e){return e===t!==n}):"string"!=typeof t?v.grep(e,function(e){return l.call(t,e)>-1!==n}):x.test(t)?v.filter(t,e,n):(t=v.filter(t,e),v.grep(e,function(e){return l.call(t,e)>-1!==n&&1===e.nodeType}))}v.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?v.find.matchesSelector(r,e)?[r]:[]:v.find.matches(e,v.grep(t,function(e){return 1===e.nodeType}))},v.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(v(e).filter(function(){for(t=0;t<r;t++)if(v.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)v.find(e,i[t],n);return r>1?v.uniqueSort(n):n},filter:function(e){return this.pushStack(R(this,e||[],!1))},not:function(e){return this.pushStack(R(this,e||[],!0))},is:function(e){return!!R(this,"string"==typeof e&&A.test(e)?v(e):e||[],!1).length}});var F,P=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(v.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||F,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:P.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof v?t[0]:t,v.merge(this,v.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:o,!0)),N.test(r[1])&&v.isPlainObject(t))for(r in t)v.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=o.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v.isFunction(e)?void 0!==n.ready?n.ready(e):e(v):v.makeArray(e,this)}).prototype=v.fn,F=v(o);var j=/^(?:parents|prev(?:Until|All))/,M={children:!0,contents:!0,next:!0,prev:!0};function U(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}v.fn.extend({has:function(e){var t=v(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(v.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,a=[],o="string"!=typeof e&&v(e);if(!A.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&v.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?v.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?l.call(v(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(v.uniqueSort(v.merge(this.get(),v(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),v.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return S(e,"parentNode")},parentsUntil:function(e,t,n){return S(e,"parentNode",n)},next:function(e){return U(e,"nextSibling")},prev:function(e){return U(e,"previousSibling")},nextAll:function(e){return S(e,"nextSibling")},prevAll:function(e){return S(e,"previousSibling")},nextUntil:function(e,t,n){return S(e,"nextSibling",n)},prevUntil:function(e,t,n){return S(e,"previousSibling",n)},siblings:function(e){return C((e.parentNode||{}).firstChild,e)},children:function(e){return C(e.firstChild)},contents:function(e){return k(e,"iframe")?e.contentDocument:(k(e,"template")&&(e=e.content||e),v.merge([],e.childNodes))}},function(e,t){v.fn[e]=function(n,r){var i=v.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=v.filter(r,i)),this.length>1&&(M[e]||v.uniqueSort(i),j.test(e)&&i.reverse()),this.pushStack(i)}});var L=/[^\x20\t\r\n\f]+/g;function D(e){return e}function G(e){throw e}function q(e,t,n,r){var i;try{e&&v.isFunction(i=e.promise)?i.call(e).done(t).fail(n):e&&v.isFunction(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}v.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return v.each(e.match(L)||[],function(e,n){t[n]=!0}),t}(e):v.extend({},e);var t,n,r,i,a=[],o=[],s=-1,u=function(){for(i=i||e.once,r=t=!0;o.length;s=-1)for(n=o.shift();++s<a.length;)!1===a[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=a.length,n=!1);e.memory||(n=!1),t=!1,i&&(a=n?[]:"")},d={add:function(){return a&&(n&&!t&&(s=a.length-1,o.push(n)),function t(n){v.each(n,function(n,r){v.isFunction(r)?e.unique&&d.has(r)||a.push(r):r&&r.length&&"string"!==v.type(r)&&t(r)})}(arguments),n&&!t&&u()),this},remove:function(){return v.each(arguments,function(e,t){for(var n;(n=v.inArray(t,a,n))>-1;)a.splice(n,1),n<=s&&s--}),this},has:function(e){return e?v.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=o=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=o=[],n||t||(a=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||u()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!r}};return d},v.extend({Deferred:function(e){var t=[["notify","progress",v.Callbacks("memory"),v.Callbacks("memory"),2],["resolve","done",v.Callbacks("once memory"),v.Callbacks("once memory"),0,"resolved"],["reject","fail",v.Callbacks("once memory"),v.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return v.Deferred(function(n){v.each(t,function(t,r){var i=v.isFunction(e[r[4]])&&e[r[4]];a[r[1]](function(){var e=i&&i.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(e,r,i){var a=0;function o(e,t,r,i){return function(){var s=this,u=arguments,d=function(){var n,d;if(!(e<a)){if((n=r.apply(s,u))===t.promise())throw new TypeError("Thenable self-resolution");d=n&&("object"==typeof n||"function"==typeof n)&&n.then,v.isFunction(d)?i?d.call(n,o(a,t,D,i),o(a,t,G,i)):(a++,d.call(n,o(a,t,D,i),o(a,t,G,i),o(a,t,D,t.notifyWith))):(r!==D&&(s=void 0,u=[n]),(i||t.resolveWith)(s,u))}},c=i?d:function(){try{d()}catch(n){v.Deferred.exceptionHook&&v.Deferred.exceptionHook(n,c.stackTrace),e+1>=a&&(r!==G&&(s=void 0,u=[n]),t.rejectWith(s,u))}};e?c():(v.Deferred.getStackHook&&(c.stackTrace=v.Deferred.getStackHook()),n.setTimeout(c))}}return v.Deferred(function(n){t[0][3].add(o(0,n,v.isFunction(i)?i:D,n.notifyWith)),t[1][3].add(o(0,n,v.isFunction(e)?e:D)),t[2][3].add(o(0,n,v.isFunction(r)?r:G))}).promise()},promise:function(e){return null!=e?v.extend(e,i):i}},a={};return v.each(t,function(e,n){var o=n[2],s=n[5];i[n[1]]=o.add,s&&o.add(function(){r=s},t[3-e][2].disable,t[0][2].lock),o.add(n[3].fire),a[n[0]]=function(){return a[n[0]+"With"](this===a?void 0:this,arguments),this},a[n[0]+"With"]=o.fireWith}),i.promise(a),e&&e.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),i=u.call(arguments),a=v.Deferred(),o=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?u.call(arguments):n,--t||a.resolveWith(r,i)}};if(t<=1&&(q(e,a.done(o(n)).resolve,a.reject,!t),"pending"===a.state()||v.isFunction(i[n]&&i[n].then)))return a.then();for(;n--;)q(i[n],o(n),a.reject);return a.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;v.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&H.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},v.readyException=function(e){n.setTimeout(function(){throw e})};var B=v.Deferred();function W(){o.removeEventListener("DOMContentLoaded",W),n.removeEventListener("load",W),v.ready()}v.fn.ready=function(e){return B.then(e).catch(function(e){v.readyException(e)}),this},v.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--v.readyWait:v.isReady)||(v.isReady=!0,!0!==e&&--v.readyWait>0||B.resolveWith(o,[v]))}}),v.ready.then=B.then,"complete"===o.readyState||"loading"!==o.readyState&&!o.documentElement.doScroll?n.setTimeout(v.ready):(o.addEventListener("DOMContentLoaded",W),n.addEventListener("load",W));var $=function(e,t,n,r,i,a,o){var s=0,u=e.length,d=null==n;if("object"===v.type(n))for(s in i=!0,n)$(e,t,s,n[s],!0,a,o);else if(void 0!==r&&(i=!0,v.isFunction(r)||(o=!0),d&&(o?(t.call(e,r),t=null):(d=t,t=function(e,t,n){return d.call(v(e),n)})),t))for(;s<u;s++)t(e[s],n,o?r:r.call(e[s],s,t(e[s],n)));return i?e:d?t.call(e):u?t(e[0],n):a},V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function z(){this.expando=v.expando+z.uid++}z.uid=1,z.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[v.camelCase(t)]=n;else for(r in t)i[v.camelCase(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][v.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(v.camelCase):(t=v.camelCase(t))in r?[t]:t.match(L)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||v.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!v.isEmptyObject(t)}};var K=new z,Y=new z,Q=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,J=/[A-Z]/g;function X(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(J,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Q.test(e)?JSON.parse(e):e)}(n)}catch(e){}Y.set(e,t,n)}else n=void 0;return n}v.extend({hasData:function(e){return Y.hasData(e)||K.hasData(e)},data:function(e,t,n){return Y.access(e,t,n)},removeData:function(e,t){Y.remove(e,t)},_data:function(e,t,n){return K.access(e,t,n)},_removeData:function(e,t){K.remove(e,t)}}),v.fn.extend({data:function(e,t){var n,r,i,a=this[0],o=a&&a.attributes;if(void 0===e){if(this.length&&(i=Y.get(a),1===a.nodeType&&!K.get(a,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&0===(r=o[n].name).indexOf("data-")&&(r=v.camelCase(r.slice(5)),X(a,r,i[r]));K.set(a,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){Y.set(this,e)}):$(this,function(t){var n;if(a&&void 0===t)return void 0!==(n=Y.get(a,e))?n:void 0!==(n=X(a,e))?n:void 0;this.each(function(){Y.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Y.remove(this,e)})}}),v.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=K.get(e,t),n&&(!r||Array.isArray(n)?r=K.access(e,t,v.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),r=n.length,i=n.shift(),a=v._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete a.stop,i.call(e,function(){v.dequeue(e,t)},a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return K.get(e,n)||K.access(e,n,{empty:v.Callbacks("once memory").add(function(){K.remove(e,[t+"queue",n])})})}}),v.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?v.queue(this[0],e):void 0===t?this:this.each(function(){var n=v.queue(this,e,t);v._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&v.dequeue(this,e)})},dequeue:function(e){return this.each(function(){v.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=v.Deferred(),a=this,o=this.length,s=function(){--r||i.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=K.get(a[o],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var Z=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ee=new RegExp("^(?:([+-])=|)("+Z+")([a-z%]*)$","i"),te=["Top","Right","Bottom","Left"],ne=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&v.contains(e.ownerDocument,e)&&"none"===v.css(e,"display")},re=function(e,t,n,r){var i,a,o={};for(a in t)o[a]=e.style[a],e.style[a]=t[a];for(a in i=n.apply(e,r||[]),t)e.style[a]=o[a];return i};function ie(e,t,n,r){var i,a=1,o=20,s=r?function(){return r.cur()}:function(){return v.css(e,t,"")},u=s(),d=n&&n[3]||(v.cssNumber[t]?"":"px"),c=(v.cssNumber[t]||"px"!==d&&+u)&&ee.exec(v.css(e,t));if(c&&c[3]!==d){d=d||c[3],n=n||[],c=+u||1;do{c/=a=a||".5",v.style(e,t,c+d)}while(a!==(a=s()/u)&&1!==a&&--o)}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=d,r.start=c,r.end=i)),i}var ae={};function oe(e){var t,n=e.ownerDocument,r=e.nodeName,i=ae[r];return i||(t=n.body.appendChild(n.createElement(r)),i=v.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),ae[r]=i,i)}function se(e,t){for(var n,r,i=[],a=0,o=e.length;a<o;a++)(r=e[a]).style&&(n=r.style.display,t?("none"===n&&(i[a]=K.get(r,"display")||null,i[a]||(r.style.display="")),""===r.style.display&&ne(r)&&(i[a]=oe(r))):"none"!==n&&(i[a]="none",K.set(r,"display",n)));for(a=0;a<o;a++)null!=i[a]&&(e[a].style.display=i[a]);return e}v.fn.extend({show:function(){return se(this,!0)},hide:function(){return se(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ne(this)?v(this).show():v(this).hide()})}});var ue=/^(?:checkbox|radio)$/i,de=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ce=/^$|\/(?:java|ecma)script/i,le={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function fe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&k(e,t)?v.merge([e],n):n}function pe(e,t){for(var n=0,r=e.length;n<r;n++)K.set(e[n],"globalEval",!t||K.get(t[n],"globalEval"))}le.optgroup=le.option,le.tbody=le.tfoot=le.colgroup=le.caption=le.thead,le.th=le.td;var he,ge,me=/<|&#?\w+;/;function _e(e,t,n,r,i){for(var a,o,s,u,d,c,l=t.createDocumentFragment(),f=[],p=0,h=e.length;p<h;p++)if((a=e[p])||0===a)if("object"===v.type(a))v.merge(f,a.nodeType?[a]:a);else if(me.test(a)){for(o=o||l.appendChild(t.createElement("div")),s=(de.exec(a)||["",""])[1].toLowerCase(),u=le[s]||le._default,o.innerHTML=u[1]+v.htmlPrefilter(a)+u[2],c=u[0];c--;)o=o.lastChild;v.merge(f,o.childNodes),(o=l.firstChild).textContent=""}else f.push(t.createTextNode(a));for(l.textContent="",p=0;a=f[p++];)if(r&&v.inArray(a,r)>-1)i&&i.push(a);else if(d=v.contains(a.ownerDocument,a),o=fe(l.appendChild(a),"script"),d&&pe(o),n)for(c=0;a=o[c++];)ce.test(a.type||"")&&n.push(a);return l}he=o.createDocumentFragment().appendChild(o.createElement("div")),(ge=o.createElement("input")).setAttribute("type","radio"),ge.setAttribute("checked","checked"),ge.setAttribute("name","t"),he.appendChild(ge),_.checkClone=he.cloneNode(!0).cloneNode(!0).lastChild.checked,he.innerHTML="<textarea>x</textarea>",_.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue;var ye=o.documentElement,ve=/^key/,be=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,we=/^([^.]*)(?:\.(.+)|)/;function Te(){return!0}function Ee(){return!1}function Ie(){try{return o.activeElement}catch(e){}}function Oe(e,t,n,r,i,a){var o,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Oe(e,s,n,r,t[s],a);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ee;else if(!i)return e;return 1===a&&(o=i,(i=function(e){return v().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=v.guid++)),e.each(function(){v.event.add(this,t,i,r,n)})}v.event={global:{},add:function(e,t,n,r,i){var a,o,s,u,d,c,l,f,p,h,g,m=K.get(e);if(m)for(n.handler&&(n=(a=n).handler,i=a.selector),i&&v.find.matchesSelector(ye,i),n.guid||(n.guid=v.guid++),(u=m.events)||(u=m.events={}),(o=m.handle)||(o=m.handle=function(t){return void 0!==v&&v.event.triggered!==t.type?v.event.dispatch.apply(e,arguments):void 0}),d=(t=(t||"").match(L)||[""]).length;d--;)p=g=(s=we.exec(t[d])||[])[1],h=(s[2]||"").split(".").sort(),p&&(l=v.event.special[p]||{},p=(i?l.delegateType:l.bindType)||p,l=v.event.special[p]||{},c=v.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&v.expr.match.needsContext.test(i),namespace:h.join(".")},a),(f=u[p])||((f=u[p]=[]).delegateCount=0,l.setup&&!1!==l.setup.call(e,r,h,o)||e.addEventListener&&e.addEventListener(p,o)),l.add&&(l.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,c):f.push(c),v.event.global[p]=!0)},remove:function(e,t,n,r,i){var a,o,s,u,d,c,l,f,p,h,g,m=K.hasData(e)&&K.get(e);if(m&&(u=m.events)){for(d=(t=(t||"").match(L)||[""]).length;d--;)if(p=g=(s=we.exec(t[d])||[])[1],h=(s[2]||"").split(".").sort(),p){for(l=v.event.special[p]||{},f=u[p=(r?l.delegateType:l.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=f.length;a--;)c=f[a],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(f.splice(a,1),c.selector&&f.delegateCount--,l.remove&&l.remove.call(e,c));o&&!f.length&&(l.teardown&&!1!==l.teardown.call(e,h,m.handle)||v.removeEvent(e,p,m.handle),delete u[p])}else for(p in u)v.event.remove(e,p+t[d],n,r,!0);v.isEmptyObject(u)&&K.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,a,o,s=v.event.fix(e),u=new Array(arguments.length),d=(K.get(this,"events")||{})[s.type]||[],c=v.event.special[s.type]||{};for(u[0]=s,t=1;t<arguments.length;t++)u[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(o=v.event.handlers.call(this,s,d),t=0;(i=o[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(a.namespace)||(s.handleObj=a,s.data=a.data,void 0!==(r=((v.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,u))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,a,o,s=[],u=t.delegateCount,d=e.target;if(u&&d.nodeType&&!("click"===e.type&&e.button>=1))for(;d!==this;d=d.parentNode||this)if(1===d.nodeType&&("click"!==e.type||!0!==d.disabled)){for(a=[],o={},n=0;n<u;n++)void 0===o[i=(r=t[n]).selector+" "]&&(o[i]=r.needsContext?v(i,this).index(d)>-1:v.find(i,this,null,[d]).length),o[i]&&a.push(r);a.length&&s.push({elem:d,handlers:a})}return d=this,u<t.length&&s.push({elem:d,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(v.Event.prototype,e,{enumerable:!0,configurable:!0,get:v.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[v.expando]?e:new v.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Ie()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Ie()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&k(this,"input"))return this.click(),!1},_default:function(e){return k(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},v.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},v.Event=function(e,t){if(!(this instanceof v.Event))return new v.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Te:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&v.extend(this,t),this.timeStamp=e&&e.timeStamp||v.now(),this[v.expando]=!0},v.Event.prototype={constructor:v.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Te,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Te,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Te,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},v.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&ve.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&be.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},v.event.addProp),v.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){v.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||v.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),v.fn.extend({on:function(e,t,n,r){return Oe(this,e,t,n,r)},one:function(e,t,n,r){return Oe(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,v(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each(function(){v.event.remove(this,e,n,t)})}});var Se=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ce=/<script|<style|<link/i,Ae=/checked\s*(?:[^=]|=\s*.checked.)/i,ke=/^true\/(.*)/,Ne=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function xe(e,t){return k(e,"table")&&k(11!==t.nodeType?t:t.firstChild,"tr")&&v(">tbody",e)[0]||e}function Re(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Fe(e){var t=ke.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Pe(e,t){var n,r,i,a,o,s,u,d;if(1===t.nodeType){if(K.hasData(e)&&(a=K.access(e),o=K.set(t,a),d=a.events))for(i in delete o.handle,o.events={},d)for(n=0,r=d[i].length;n<r;n++)v.event.add(t,i,d[i][n]);Y.hasData(e)&&(s=Y.access(e),u=v.extend({},s),Y.set(t,u))}}function je(e,t,n,r){t=d.apply([],t);var i,a,o,s,u,c,l=0,f=e.length,p=f-1,h=t[0],g=v.isFunction(h);if(g||f>1&&"string"==typeof h&&!_.checkClone&&Ae.test(h))return e.each(function(i){var a=e.eq(i);g&&(t[0]=h.call(this,i,a.html())),je(a,t,n,r)});if(f&&(a=(i=_e(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=a),a||r)){for(s=(o=v.map(fe(i,"script"),Re)).length;l<f;l++)u=i,l!==p&&(u=v.clone(u,!0,!0),s&&v.merge(o,fe(u,"script"))),n.call(e[l],u,l);if(s)for(c=o[o.length-1].ownerDocument,v.map(o,Fe),l=0;l<s;l++)u=o[l],ce.test(u.type||"")&&!K.access(u,"globalEval")&&v.contains(c,u)&&(u.src?v._evalUrl&&v._evalUrl(u.src):y(u.textContent.replace(Ne,""),c))}return e}function Me(e,t,n){for(var r,i=t?v.filter(t,e):e,a=0;null!=(r=i[a]);a++)n||1!==r.nodeType||v.cleanData(fe(r)),r.parentNode&&(n&&v.contains(r.ownerDocument,r)&&pe(fe(r,"script")),r.parentNode.removeChild(r));return e}v.extend({htmlPrefilter:function(e){return e.replace(Se,"<$1></$2>")},clone:function(e,t,n){var r,i,a,o,s,u,d,c=e.cloneNode(!0),l=v.contains(e.ownerDocument,e);if(!(_.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||v.isXMLDoc(e)))for(o=fe(c),r=0,i=(a=fe(e)).length;r<i;r++)s=a[r],u=o[r],void 0,"input"===(d=u.nodeName.toLowerCase())&&ue.test(s.type)?u.checked=s.checked:"input"!==d&&"textarea"!==d||(u.defaultValue=s.defaultValue);if(t)if(n)for(a=a||fe(e),o=o||fe(c),r=0,i=a.length;r<i;r++)Pe(a[r],o[r]);else Pe(e,c);return(o=fe(c,"script")).length>0&&pe(o,!l&&fe(e,"script")),c},cleanData:function(e){for(var t,n,r,i=v.event.special,a=0;void 0!==(n=e[a]);a++)if(V(n)){if(t=n[K.expando]){if(t.events)for(r in t.events)i[r]?v.event.remove(n,r):v.removeEvent(n,r,t.handle);n[K.expando]=void 0}n[Y.expando]&&(n[Y.expando]=void 0)}}}),v.fn.extend({detach:function(e){return Me(this,e,!0)},remove:function(e){return Me(this,e)},text:function(e){return $(this,function(e){return void 0===e?v.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return je(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||xe(this,e).appendChild(e)})},prepend:function(){return je(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=xe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return je(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return je(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(v.cleanData(fe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return v.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ce.test(e)&&!le[(de.exec(e)||["",""])[1].toLowerCase()]){e=v.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(v.cleanData(fe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return je(this,arguments,function(t){var n=this.parentNode;v.inArray(this,e)<0&&(v.cleanData(fe(this)),n&&n.replaceChild(t,this))},e)}}),v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){v.fn[e]=function(e){for(var n,r=[],i=v(e),a=i.length-1,o=0;o<=a;o++)n=o===a?this:this.clone(!0),v(i[o])[t](n),c.apply(r,n.get());return this.pushStack(r)}});var Ue=/^margin/,Le=new RegExp("^("+Z+")(?!px)[a-z%]+$","i"),De=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)};function Ge(e,t,n){var r,i,a,o,s=e.style;return(n=n||De(e))&&(""!==(o=n.getPropertyValue(t)||n[t])||v.contains(e.ownerDocument,e)||(o=v.style(e,t)),!_.pixelMarginRight()&&Le.test(o)&&Ue.test(t)&&(r=s.width,i=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=r,s.minWidth=i,s.maxWidth=a)),void 0!==o?o+"":o}function qe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){u.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",u.innerHTML="",ye.appendChild(s);var e=n.getComputedStyle(u);t="1%"!==e.top,a="2px"===e.marginLeft,r="4px"===e.width,u.style.marginRight="50%",i="4px"===e.marginRight,ye.removeChild(s),u=null}}var t,r,i,a,s=o.createElement("div"),u=o.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",_.clearCloneStyle="content-box"===u.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(u),v.extend(_,{pixelPosition:function(){return e(),t},boxSizingReliable:function(){return e(),r},pixelMarginRight:function(){return e(),i},reliableMarginLeft:function(){return e(),a}}))}();var He=/^(none|table(?!-c[ea]).+)/,Be=/^--/,We={position:"absolute",visibility:"hidden",display:"block"},$e={letterSpacing:"0",fontWeight:"400"},Ve=["Webkit","Moz","ms"],ze=o.createElement("div").style;function Ke(e){var t=v.cssProps[e];return t||(t=v.cssProps[e]=function(e){if(e in ze)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Ve.length;n--;)if((e=Ve[n]+t)in ze)return e}(e)||e),t}function Ye(e,t,n){var r=ee.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Qe(e,t,n,r,i){var a,o=0;for(a=n===(r?"border":"content")?4:"width"===t?1:0;a<4;a+=2)"margin"===n&&(o+=v.css(e,n+te[a],!0,i)),r?("content"===n&&(o-=v.css(e,"padding"+te[a],!0,i)),"margin"!==n&&(o-=v.css(e,"border"+te[a]+"Width",!0,i))):(o+=v.css(e,"padding"+te[a],!0,i),"padding"!==n&&(o+=v.css(e,"border"+te[a]+"Width",!0,i)));return o}function Je(e,t,n){var r,i=De(e),a=Ge(e,t,i),o="border-box"===v.css(e,"boxSizing",!1,i);return Le.test(a)?a:(r=o&&(_.boxSizingReliable()||a===e.style[t]),"auto"===a&&(a=e["offset"+t[0].toUpperCase()+t.slice(1)]),(a=parseFloat(a)||0)+Qe(e,t,n||(o?"border":"content"),r,i)+"px")}function Xe(e,t,n,r,i){return new Xe.prototype.init(e,t,n,r,i)}v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,a,o,s=v.camelCase(t),u=Be.test(t),d=e.style;if(u||(t=Ke(s)),o=v.cssHooks[t]||v.cssHooks[s],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(e,!1,r))?i:d[t];"string"===(a=typeof n)&&(i=ee.exec(n))&&i[1]&&(n=ie(e,t,i),a="number"),null!=n&&n==n&&("number"===a&&(n+=i&&i[3]||(v.cssNumber[s]?"":"px")),_.clearCloneStyle||""!==n||0!==t.indexOf("background")||(d[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,r))||(u?d.setProperty(t,n):d[t]=n))}},css:function(e,t,n,r){var i,a,o,s=v.camelCase(t);return Be.test(t)||(t=Ke(s)),(o=v.cssHooks[t]||v.cssHooks[s])&&"get"in o&&(i=o.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in $e&&(i=$e[t]),""===n||n?(a=parseFloat(i),!0===n||isFinite(a)?a||0:i):i}}),v.each(["height","width"],function(e,t){v.cssHooks[t]={get:function(e,n,r){if(n)return!He.test(v.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Je(e,t,r):re(e,We,function(){return Je(e,t,r)})},set:function(e,n,r){var i,a=r&&De(e),o=r&&Qe(e,t,r,"border-box"===v.css(e,"boxSizing",!1,a),a);return o&&(i=ee.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=v.css(e,t)),Ye(0,n,o)}}}),v.cssHooks.marginLeft=qe(_.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-re(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),v.each({margin:"",padding:"",border:"Width"},function(e,t){v.cssHooks[e+t]={expand:function(n){for(var r=0,i={},a="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+te[r]+t]=a[r]||a[r-2]||a[0];return i}},Ue.test(e)||(v.cssHooks[e+t].set=Ye)}),v.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,i,a={},o=0;if(Array.isArray(t)){for(r=De(e),i=t.length;o<i;o++)a[t[o]]=v.css(e,t[o],!1,r);return a}return void 0!==n?v.style(e,t,n):v.css(e,t)},e,t,arguments.length>1)}}),v.Tween=Xe,Xe.prototype={constructor:Xe,init:function(e,t,n,r,i,a){this.elem=e,this.prop=n,this.easing=i||v.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(v.cssNumber[n]?"":"px")},cur:function(){var e=Xe.propHooks[this.prop];return e&&e.get?e.get(this):Xe.propHooks._default.get(this)},run:function(e){var t,n=Xe.propHooks[this.prop];return this.options.duration?this.pos=t=v.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Xe.propHooks._default.set(this),this}},Xe.prototype.init.prototype=Xe.prototype,Xe.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=v.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){v.fx.step[e.prop]?v.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[v.cssProps[e.prop]]&&!v.cssHooks[e.prop]?e.elem[e.prop]=e.now:v.style(e.elem,e.prop,e.now+e.unit)}}},Xe.propHooks.scrollTop=Xe.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},v.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},v.fx=Xe.prototype.init,v.fx.step={};var Ze,et,tt=/^(?:toggle|show|hide)$/,nt=/queueHooks$/;function rt(){et&&(!1===o.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(rt):n.setTimeout(rt,v.fx.interval),v.fx.tick())}function it(){return n.setTimeout(function(){Ze=void 0}),Ze=v.now()}function at(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=te[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ot(e,t,n){for(var r,i=(st.tweeners[t]||[]).concat(st.tweeners["*"]),a=0,o=i.length;a<o;a++)if(r=i[a].call(n,t,e))return r}function st(e,t,n){var r,i,a=0,o=st.prefilters.length,s=v.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=Ze||it(),n=Math.max(0,d.startTime+d.duration-t),r=1-(n/d.duration||0),a=0,o=d.tweens.length;a<o;a++)d.tweens[a].run(r);return s.notifyWith(e,[d,r,n]),r<1&&o?n:(o||s.notifyWith(e,[d,1,0]),s.resolveWith(e,[d]),!1)},d=s.promise({elem:e,props:v.extend({},t),opts:v.extend(!0,{specialEasing:{},easing:v.easing._default},n),originalProperties:t,originalOptions:n,startTime:Ze||it(),duration:n.duration,tweens:[],createTween:function(t,n){var r=v.Tween(e,d.opts,t,n,d.opts.specialEasing[t]||d.opts.easing);return d.tweens.push(r),r},stop:function(t){var n=0,r=t?d.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)d.tweens[n].run(1);return t?(s.notifyWith(e,[d,1,0]),s.resolveWith(e,[d,t])):s.rejectWith(e,[d,t]),this}}),c=d.props;for(!function(e,t){var n,r,i,a,o;for(n in e)if(i=t[r=v.camelCase(n)],a=e[n],Array.isArray(a)&&(i=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),(o=v.cssHooks[r])&&"expand"in o)for(n in a=o.expand(a),delete e[r],a)n in e||(e[n]=a[n],t[n]=i);else t[r]=i}(c,d.opts.specialEasing);a<o;a++)if(r=st.prefilters[a].call(d,e,c,d.opts))return v.isFunction(r.stop)&&(v._queueHooks(d.elem,d.opts.queue).stop=v.proxy(r.stop,r)),r;return v.map(c,ot,d),v.isFunction(d.opts.start)&&d.opts.start.call(e,d),d.progress(d.opts.progress).done(d.opts.done,d.opts.complete).fail(d.opts.fail).always(d.opts.always),v.fx.timer(v.extend(u,{elem:e,anim:d,queue:d.opts.queue})),d}v.Animation=v.extend(st,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ie(n.elem,e,ee.exec(t),n),n}]},tweener:function(e,t){v.isFunction(e)?(t=e,e=["*"]):e=e.match(L);for(var n,r=0,i=e.length;r<i;r++)n=e[r],st.tweeners[n]=st.tweeners[n]||[],st.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,a,o,s,u,d,c,l="width"in t||"height"in t,f=this,p={},h=e.style,g=e.nodeType&&ne(e),m=K.get(e,"fxshow");for(r in n.queue||(null==(o=v._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,f.always(function(){f.always(function(){o.unqueued--,v.queue(e,"fx").length||o.empty.fire()})})),t)if(i=t[r],tt.test(i)){if(delete t[r],a=a||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}p[r]=m&&m[r]||v.style(e,r)}if((u=!v.isEmptyObject(t))||!v.isEmptyObject(p))for(r in l&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(d=m&&m.display)&&(d=K.get(e,"display")),"none"===(c=v.css(e,"display"))&&(d?c=d:(se([e],!0),d=e.style.display||d,c=v.css(e,"display"),se([e]))),("inline"===c||"inline-block"===c&&null!=d)&&"none"===v.css(e,"float")&&(u||(f.done(function(){h.display=d}),null==d&&(c=h.display,d="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",f.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,p)u||(m?"hidden"in m&&(g=m.hidden):m=K.access(e,"fxshow",{display:d}),a&&(m.hidden=!g),g&&se([e],!0),f.done(function(){for(r in g||se([e]),K.remove(e,"fxshow"),p)v.style(e,r,p[r])})),u=ot(g?m[r]:0,r,f),r in m||(m[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?st.prefilters.unshift(e):st.prefilters.push(e)}}),v.speed=function(e,t,n){var r=e&&"object"==typeof e?v.extend({},e):{complete:n||!n&&t||v.isFunction(e)&&e,duration:e,easing:n&&t||t&&!v.isFunction(t)&&t};return v.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in v.fx.speeds?r.duration=v.fx.speeds[r.duration]:r.duration=v.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v.isFunction(r.old)&&r.old.call(this),r.queue&&v.dequeue(this,r.queue)},r},v.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ne).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=v.isEmptyObject(e),a=v.speed(t,n,r),o=function(){var t=st(this,v.extend({},e),a);(i||K.get(this,"finish"))&&t.stop(!0)};return o.finish=o,i||!1===a.queue?this.each(o):this.queue(a.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",a=v.timers,o=K.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&nt.test(i)&&r(o[i]);for(i=a.length;i--;)a[i].elem!==this||null!=e&&a[i].queue!==e||(a[i].anim.stop(n),t=!1,a.splice(i,1));!t&&n||v.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=K.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],a=v.timers,o=r?r.length:0;for(n.finish=!0,v.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),v.each(["toggle","show","hide"],function(e,t){var n=v.fn[t];v.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(at(t,!0),e,r,i)}}),v.each({slideDown:at("show"),slideUp:at("hide"),slideToggle:at("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){v.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),v.timers=[],v.fx.tick=function(){var e,t=0,n=v.timers;for(Ze=v.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||v.fx.stop(),Ze=void 0},v.fx.timer=function(e){v.timers.push(e),v.fx.start()},v.fx.interval=13,v.fx.start=function(){et||(et=!0,rt())},v.fx.stop=function(){et=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fn.delay=function(e,t){return e=v.fx&&v.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,r){var i=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(i)}})},function(){var e=o.createElement("input"),t=o.createElement("select").appendChild(o.createElement("option"));e.type="checkbox",_.checkOn=""!==e.value,_.optSelected=t.selected,(e=o.createElement("input")).value="t",e.type="radio",_.radioValue="t"===e.value}();var ut,dt=v.expr.attrHandle;v.fn.extend({attr:function(e,t){return $(this,v.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){v.removeAttr(this,e)})}}),v.extend({attr:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?v.prop(e,t,n):(1===a&&v.isXMLDoc(e)||(i=v.attrHooks[t.toLowerCase()]||(v.expr.match.bool.test(t)?ut:void 0)),void 0!==n?null===n?void v.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=v.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!_.radioValue&&"radio"===t&&k(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(L);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),ut={set:function(e,t,n){return!1===t?v.removeAttr(e,n):e.setAttribute(n,n),n}},v.each(v.expr.match.bool.source.match(/\w+/g),function(e,t){var n=dt[t]||v.find.attr;dt[t]=function(e,t,r){var i,a,o=t.toLowerCase();return r||(a=dt[o],dt[o]=i,i=null!=n(e,t,r)?o:null,dt[o]=a),i}});var ct=/^(?:input|select|textarea|button)$/i,lt=/^(?:a|area)$/i;function ft(e){return(e.match(L)||[]).join(" ")}function pt(e){return e.getAttribute&&e.getAttribute("class")||""}v.fn.extend({prop:function(e,t){return $(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[v.propFix[e]||e]})}}),v.extend({prop:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&v.isXMLDoc(e)||(t=v.propFix[t]||t,i=v.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=v.find.attr(e,"tabindex");return t?parseInt(t,10):ct.test(e.nodeName)||lt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(v.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),v.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){v.propFix[this.toLowerCase()]=this}),v.fn.extend({addClass:function(e){var t,n,r,i,a,o,s,u=0;if(v.isFunction(e))return this.each(function(t){v(this).addClass(e.call(this,t,pt(this)))});if("string"==typeof e&&e)for(t=e.match(L)||[];n=this[u++];)if(i=pt(n),r=1===n.nodeType&&" "+ft(i)+" "){for(o=0;a=t[o++];)r.indexOf(" "+a+" ")<0&&(r+=a+" ");i!==(s=ft(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,a,o,s,u=0;if(v.isFunction(e))return this.each(function(t){v(this).removeClass(e.call(this,t,pt(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(L)||[];n=this[u++];)if(i=pt(n),r=1===n.nodeType&&" "+ft(i)+" "){for(o=0;a=t[o++];)for(;r.indexOf(" "+a+" ")>-1;)r=r.replace(" "+a+" "," ");i!==(s=ft(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):v.isFunction(e)?this.each(function(n){v(this).toggleClass(e.call(this,n,pt(this),t),t)}):this.each(function(){var t,r,i,a;if("string"===n)for(r=0,i=v(this),a=e.match(L)||[];t=a[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=pt(this))&&K.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":K.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+ft(pt(n))+" ").indexOf(t)>-1)return!0;return!1}});var ht=/\r/g;v.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=v.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,v(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=v.map(i,function(e){return null==e?"":e+""})),(t=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=v.valHooks[i.type]||v.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(ht,""):null==n?"":n:void 0}}),v.extend({valHooks:{option:{get:function(e){var t=v.find.attr(e,"value");return null!=t?t:ft(v.text(e))}},select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,o="select-one"===e.type,s=o?null:[],u=o?a+1:i.length;for(r=a<0?u:o?a:0;r<u;r++)if(((n=i[r]).selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!k(n.parentNode,"optgroup"))){if(t=v(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,a=v.makeArray(t),o=i.length;o--;)((r=i[o]).selected=v.inArray(v.valHooks.option.get(r),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=v.inArray(v(e).val(),t)>-1}},_.checkOn||(v.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var gt=/^(?:focusinfocus|focusoutblur)$/;v.extend(v.event,{trigger:function(e,t,r,i){var a,s,u,d,c,l,f,p=[r||o],g=h.call(e,"type")?e.type:e,m=h.call(e,"namespace")?e.namespace.split("."):[];if(s=u=r=r||o,3!==r.nodeType&&8!==r.nodeType&&!gt.test(g+v.event.triggered)&&(g.indexOf(".")>-1&&(g=(m=g.split(".")).shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[v.expando]?e:new v.Event(g,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:v.makeArray(t,[e]),f=v.event.special[g]||{},i||!f.trigger||!1!==f.trigger.apply(r,t))){if(!i&&!f.noBubble&&!v.isWindow(r)){for(d=f.delegateType||g,gt.test(d+g)||(s=s.parentNode);s;s=s.parentNode)p.push(s),u=s;u===(r.ownerDocument||o)&&p.push(u.defaultView||u.parentWindow||n)}for(a=0;(s=p[a++])&&!e.isPropagationStopped();)e.type=a>1?d:f.bindType||g,(l=(K.get(s,"events")||{})[e.type]&&K.get(s,"handle"))&&l.apply(s,t),(l=c&&s[c])&&l.apply&&V(s)&&(e.result=l.apply(s,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||f._default&&!1!==f._default.apply(p.pop(),t)||!V(r)||c&&v.isFunction(r[g])&&!v.isWindow(r)&&((u=r[c])&&(r[c]=null),v.event.triggered=g,r[g](),v.event.triggered=void 0,u&&(r[c]=u)),e.result}},simulate:function(e,t,n){var r=v.extend(new v.Event,n,{type:e,isSimulated:!0});v.event.trigger(r,null,t)}}),v.fn.extend({trigger:function(e,t){return this.each(function(){v.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return v.event.trigger(e,t,n,!0)}}),v.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){v.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),v.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),_.focusin="onfocusin"in n,_.focusin||v.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){v.event.simulate(t,e.target,v.event.fix(e))};v.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=K.access(r,t);i||r.addEventListener(e,n,!0),K.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=K.access(r,t)-1;i?K.access(r,t,i):(r.removeEventListener(e,n,!0),K.remove(r,t))}}});var mt=n.location,_t=v.now(),yt=/\?/;v.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||v.error("Invalid XML: "+e),t};var vt=/\[\]$/,bt=/\r?\n/g,wt=/^(?:submit|button|image|reset|file)$/i,Tt=/^(?:input|select|textarea|keygen)/i;function Et(e,t,n,r){var i;if(Array.isArray(t))v.each(t,function(t,i){n||vt.test(e)?r(e,i):Et(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==v.type(t))r(e,t);else for(i in t)Et(e+"["+i+"]",t[i],n,r)}v.param=function(e,t){var n,r=[],i=function(e,t){var n=v.isFunction(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,function(){i(this.name,this.value)});else for(n in e)Et(n,e[n],t,i);return r.join("&")},v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=v.prop(this,"elements");return e?v.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!v(this).is(":disabled")&&Tt.test(this.nodeName)&&!wt.test(e)&&(this.checked||!ue.test(e))}).map(function(e,t){var n=v(this).val();return null==n?null:Array.isArray(n)?v.map(n,function(e){return{name:t.name,value:e.replace(bt,"\r\n")}}):{name:t.name,value:n.replace(bt,"\r\n")}}).get()}});var It=/%20/g,Ot=/#.*$/,St=/([?&])_=[^&]*/,Ct=/^(.*?):[ \t]*([^\r\n]*)$/gm,At=/^(?:GET|HEAD)$/,kt=/^\/\//,Nt={},xt={},Rt="*/".concat("*"),Ft=o.createElement("a");function Pt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,a=t.toLowerCase().match(L)||[];if(v.isFunction(n))for(;r=a[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function jt(e,t,n,r){var i={},a=e===xt;function o(s){var u;return i[s]=!0,v.each(e[s]||[],function(e,s){var d=s(t,n,r);return"string"!=typeof d||a||i[d]?a?!(u=d):void 0:(t.dataTypes.unshift(d),o(d),!1)}),u}return o(t.dataTypes[0])||!i["*"]&&o("*")}function Mt(e,t){var n,r,i=v.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&v.extend(!0,e,r),e}Ft.href=mt.href,v.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:mt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(mt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":v.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Mt(Mt(e,v.ajaxSettings),t):Mt(v.ajaxSettings,e)},ajaxPrefilter:Pt(Nt),ajaxTransport:Pt(xt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,a,s,u,d,c,l,f,p,h=v.ajaxSetup({},t),g=h.context||h,m=h.context&&(g.nodeType||g.jquery)?v(g):v.event,_=v.Deferred(),y=v.Callbacks("once memory"),b=h.statusCode||{},w={},T={},E="canceled",I={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Ct.exec(a);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=T[e.toLowerCase()]=T[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)I.always(e[I.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||E;return r&&r.abort(t),O(0,t),this}};if(_.promise(I),h.url=((e||h.url||mt.href)+"").replace(kt,mt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(L)||[""],null==h.crossDomain){d=o.createElement("a");try{d.href=h.url,d.href=d.href,h.crossDomain=Ft.protocol+"//"+Ft.host!=d.protocol+"//"+d.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=v.param(h.data,h.traditional)),jt(Nt,h,t,I),c)return I;for(f in(l=v.event&&h.global)&&0==v.active++&&v.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!At.test(h.type),i=h.url.replace(Ot,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(It,"+")):(p=h.url.slice(i.length),h.data&&(i+=(yt.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(St,"$1"),p=(yt.test(i)?"&":"?")+"_="+_t+++p),h.url=i+p),h.ifModified&&(v.lastModified[i]&&I.setRequestHeader("If-Modified-Since",v.lastModified[i]),v.etag[i]&&I.setRequestHeader("If-None-Match",v.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&I.setRequestHeader("Content-Type",h.contentType),I.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Rt+"; q=0.01":""):h.accepts["*"]),h.headers)I.setRequestHeader(f,h.headers[f]);if(h.beforeSend&&(!1===h.beforeSend.call(g,I,h)||c))return I.abort();if(E="abort",y.add(h.complete),I.done(h.success),I.fail(h.error),r=jt(xt,h,t,I)){if(I.readyState=1,l&&m.trigger("ajaxSend",[I,h]),c)return I;h.async&&h.timeout>0&&(u=n.setTimeout(function(){I.abort("timeout")},h.timeout));try{c=!1,r.send(w,O)}catch(e){if(c)throw e;O(-1,e)}}else O(-1,"No Transport");function O(e,t,o,s){var d,f,p,w,T,E=t;c||(c=!0,u&&n.clearTimeout(u),r=void 0,a=s||"",I.readyState=e>0?4:0,d=e>=200&&e<300||304===e,o&&(w=function(e,t,n){for(var r,i,a,o,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)a=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){a=i;break}o||(o=i)}a=a||o}if(a)return a!==u[0]&&u.unshift(a),n[a]}(h,I,o)),w=function(e,t,n,r){var i,a,o,s,u,d={},c=e.dataTypes.slice();if(c[1])for(o in e.converters)d[o.toLowerCase()]=e.converters[o];for(a=c.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=a,a=c.shift())if("*"===a)a=u;else if("*"!==u&&u!==a){if(!(o=d[u+" "+a]||d["* "+a]))for(i in d)if((s=i.split(" "))[1]===a&&(o=d[u+" "+s[0]]||d["* "+s[0]])){!0===o?o=d[i]:!0!==d[i]&&(a=s[0],c.unshift(s[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+u+" to "+a}}}return{state:"success",data:t}}(h,w,I,d),d?(h.ifModified&&((T=I.getResponseHeader("Last-Modified"))&&(v.lastModified[i]=T),(T=I.getResponseHeader("etag"))&&(v.etag[i]=T)),204===e||"HEAD"===h.type?E="nocontent":304===e?E="notmodified":(E=w.state,f=w.data,d=!(p=w.error))):(p=E,!e&&E||(E="error",e<0&&(e=0))),I.status=e,I.statusText=(t||E)+"",d?_.resolveWith(g,[f,E,I]):_.rejectWith(g,[I,E,p]),I.statusCode(b),b=void 0,l&&m.trigger(d?"ajaxSuccess":"ajaxError",[I,h,d?f:p]),y.fireWith(g,[I,E]),l&&(m.trigger("ajaxComplete",[I,h]),--v.active||v.event.trigger("ajaxStop")))}return I},getJSON:function(e,t,n){return v.get(e,t,n,"json")},getScript:function(e,t){return v.get(e,void 0,t,"script")}}),v.each(["get","post"],function(e,t){v[t]=function(e,n,r,i){return v.isFunction(n)&&(i=i||r,r=n,n=void 0),v.ajax(v.extend({url:e,type:t,dataType:i,data:n,success:r},v.isPlainObject(e)&&e))}}),v._evalUrl=function(e){return v.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},v.fn.extend({wrapAll:function(e){var t;return this[0]&&(v.isFunction(e)&&(e=e.call(this[0])),t=v(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return v.isFunction(e)?this.each(function(t){v(this).wrapInner(e.call(this,t))}):this.each(function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v.isFunction(e);return this.each(function(n){v(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){v(this).replaceWith(this.childNodes)}),this}}),v.expr.pseudos.hidden=function(e){return!v.expr.pseudos.visible(e)},v.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},v.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Ut={0:200,1223:204},Lt=v.ajaxSettings.xhr();_.cors=!!Lt&&"withCredentials"in Lt,_.ajax=Lt=!!Lt,v.ajaxTransport(function(e){var t,r;if(_.cors||Lt&&!e.crossDomain)return{send:function(i,a){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];for(o in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(o,i[o]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?a(0,"error"):a(s.status,s.statusText):a(Ut[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){t&&r()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),v.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return v.globalEval(e),e}}}),v.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),v.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(r,i){t=v("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),o.head.appendChild(t[0])},abort:function(){n&&n()}}});var Dt,Gt=[],qt=/(=)\?(?=&|$)|\?\?/;v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||v.expando+"_"+_t++;return this[e]=!0,e}}),v.ajaxPrefilter("json jsonp",function(e,t,r){var i,a,o,s=!1!==e.jsonp&&(qt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&qt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=v.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(qt,"$1"+i):!1!==e.jsonp&&(e.url+=(yt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||v.error(i+" was not called"),o[0]},e.dataTypes[0]="json",a=n[i],n[i]=function(){o=arguments},r.always(function(){void 0===a?v(n).removeProp(i):n[i]=a,e[i]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(i)),o&&v.isFunction(a)&&a(o[0]),o=a=void 0}),"script"}),_.createHTMLDocument=((Dt=o.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Dt.childNodes.length),v.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(_.createHTMLDocument?((r=(t=o.implementation.createHTMLDocument("")).createElement("base")).href=o.location.href,t.head.appendChild(r)):t=o),a=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=_e([e],t,a),a&&a.length&&v(a).remove(),v.merge([],i.childNodes)));var r,i,a},v.fn.load=function(e,t,n){var r,i,a,o=this,s=e.indexOf(" ");return s>-1&&(r=ft(e.slice(s)),e=e.slice(0,s)),v.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),o.length>0&&v.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){a=arguments,o.html(r?v("<div>").append(v.parseHTML(e)).find(r):e)}).always(n&&function(e,t){o.each(function(){n.apply(this,a||[e.responseText,t,e])})}),this},v.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){v.fn[t]=function(e){return this.on(t,e)}}),v.expr.pseudos.animated=function(e){return v.grep(v.timers,function(t){return e===t.elem}).length},v.offset={setOffset:function(e,t,n){var r,i,a,o,s,u,d=v.css(e,"position"),c=v(e),l={};"static"===d&&(e.style.position="relative"),s=c.offset(),a=v.css(e,"top"),u=v.css(e,"left"),("absolute"===d||"fixed"===d)&&(a+u).indexOf("auto")>-1?(o=(r=c.position()).top,i=r.left):(o=parseFloat(a)||0,i=parseFloat(u)||0),v.isFunction(t)&&(t=t.call(e,n,v.extend({},s))),null!=t.top&&(l.top=t.top-s.top+o),null!=t.left&&(l.left=t.left-s.left+i),"using"in t?t.using.call(e,l):c.css(l)}},v.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){v.offset.setOffset(this,e,t)});var t,n,r,i,a=this[0];return a?a.getClientRects().length?(r=a.getBoundingClientRect(),n=(t=a.ownerDocument).documentElement,i=t.defaultView,{top:r.top+i.pageYOffset-n.clientTop,left:r.left+i.pageXOffset-n.clientLeft}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===v.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),k(e[0],"html")||(r=e.offset()),r={top:r.top+v.css(e[0],"borderTopWidth",!0),left:r.left+v.css(e[0],"borderLeftWidth",!0)}),{top:t.top-r.top-v.css(n,"marginTop",!0),left:t.left-r.left-v.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===v.css(e,"position");)e=e.offsetParent;return e||ye})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;v.fn[e]=function(r){return $(this,function(e,r,i){var a;if(v.isWindow(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===i)return a?a[t]:e[r];a?a.scrollTo(n?a.pageXOffset:i,n?i:a.pageYOffset):e[r]=i},e,r,arguments.length)}}),v.each(["top","left"],function(e,t){v.cssHooks[t]=qe(_.pixelPosition,function(e,n){if(n)return n=Ge(e,t),Le.test(n)?v(e).position()[t]+"px":n})}),v.each({Height:"height",Width:"width"},function(e,t){v.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){v.fn[r]=function(i,a){var o=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===a?"margin":"border");return $(this,function(t,n,i){var a;return v.isWindow(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===i?v.css(t,n,s):v.style(t,n,i,s)},t,o?i:void 0,o)}})}),v.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),v.holdReady=function(e){e?v.readyWait++:v.ready(!0)},v.isArray=Array.isArray,v.parseJSON=JSON.parse,v.nodeName=k,void 0===(r=function(){return v}.apply(t,[]))||(e.exports=r);var Ht=n.jQuery,Bt=n.$;return v.noConflict=function(e){return n.$===v&&(n.$=Bt),e&&n.jQuery===v&&(n.jQuery=Ht),v},i||(n.jQuery=n.$=v),v})},290:function(e,t,n){(function(e){!function(e,t){"use strict";var n;e.migrateVersion="3.0.0",(n=t.console&&t.console.log&&function(){t.console.log.apply(t.console,arguments)})&&(e&&!/^[12]\./.test(e.fn.jquery)||n("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),e.migrateWarnings&&n("JQMIGRATE: Migrate plugin loaded multiple times"),n("JQMIGRATE: Migrate is installed"+(e.migrateMute?"":" with logging active")+", version "+e.migrateVersion));var r={};function i(n){var i=t.console;r[n]||(r[n]=!0,e.migrateWarnings.push(n),i&&i.warn&&!e.migrateMute&&(i.warn("JQMIGRATE: "+n),e.migrateTrace&&i.trace&&i.trace()))}function a(e,t,n,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return i(r),n}})}e.migrateWarnings=[],void 0===e.migrateTrace&&(e.migrateTrace=!0),e.migrateReset=function(){r={},e.migrateWarnings.length=0},"BackCompat"===document.compatMode&&i("jQuery is not compatible with Quirks Mode");var o,s=e.fn.init,u=e.isNumeric,d=e.find,c=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,l=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g;for(o in e.fn.init=function(e){var t=Array.prototype.slice.call(arguments);return"string"==typeof e&&"#"===e&&(i("jQuery( '#' ) is not a valid selector"),t[0]=[]),s.apply(this,t)},e.fn.init.prototype=e.fn,e.find=function(e){var t=Array.prototype.slice.call(arguments);if("string"==typeof e&&c.test(e))try{document.querySelector(e)}catch(n){e=e.replace(l,function(e,t,n,r){return"["+t+n+'"'+r+'"]'});try{document.querySelector(e),i("Attribute selector with '#' must be quoted: "+t[0]),t[0]=e}catch(e){i("Attribute selector with '#' was not fixed: "+t[0])}}return d.apply(this,t)},d)Object.prototype.hasOwnProperty.call(d,o)&&(e.find[o]=d[o]);e.fn.size=function(){return i("jQuery.fn.size() is deprecated; use the .length property"),this.length},e.parseJSON=function(){return i("jQuery.parseJSON is deprecated; use JSON.parse"),JSON.parse.apply(null,arguments)},e.isNumeric=function(t){var n,r,a=u(t),o=(r=(n=t)&&n.toString(),!e.isArray(n)&&r-parseFloat(r)+1>=0);return a!==o&&i("jQuery.isNumeric() should not be called on constructed objects"),o},a(e,"unique",e.uniqueSort,"jQuery.unique is deprecated, use jQuery.uniqueSort"),a(e.expr,"filters",e.expr.pseudos,"jQuery.expr.filters is now jQuery.expr.pseudos"),a(e.expr,":",e.expr.pseudos,'jQuery.expr[":"] is now jQuery.expr.pseudos');var f=e.ajax;e.ajax=function(){var e=f.apply(this,arguments);return e.promise&&(a(e,"success",e.done,"jQXHR.success is deprecated and removed"),a(e,"error",e.fail,"jQXHR.error is deprecated and removed"),a(e,"complete",e.always,"jQXHR.complete is deprecated and removed")),e};var p=e.fn.removeAttr,h=e.fn.toggleClass,g=/\S+/g;e.fn.removeAttr=function(t){var n=this;return e.each(t.match(g),function(t,r){e.expr.match.bool.test(r)&&(i("jQuery.fn.removeAttr no longer sets boolean properties: "+r),n.prop(r,!1))}),p.apply(this,arguments)},e.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?h.apply(this,arguments):(i("jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var n=this.getAttribute&&this.getAttribute("class")||"";n&&e.data(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===t?"":e.data(this,"__className__")||"")}))};var m=!1;e.swap&&e.each(["height","width","reliableMarginRight"],function(t,n){var r=e.cssHooks[n]&&e.cssHooks[n].get;r&&(e.cssHooks[n].get=function(){var e;return m=!0,e=r.apply(this,arguments),m=!1,e})}),e.swap=function(e,t,n,r){var a,o,s={};for(o in m||i("jQuery.swap() is undocumented and deprecated"),t)s[o]=e.style[o],e.style[o]=t[o];for(o in a=n.apply(e,r||[]),t)e.style[o]=s[o];return a};var _=e.data;e.data=function(t,n,r){var a;return n&&n!==e.camelCase(n)&&(a=e.hasData(t)&&_.call(this,t))&&n in a?(i("jQuery.data() always sets/gets camelCased names: "+n),arguments.length>2&&(a[n]=r),a[n]):_.apply(this,arguments)};var y=e.Tween.prototype.run;e.Tween.prototype.run=function(t){e.easing[this.easing].length>1&&(i('easing function "jQuery.easing.'+this.easing.toString()+'" should use only first argument'),e.easing[this.easing]=e.easing[this.easing].bind(e.easing,t,this.options.duration*t,0,1,this.options.duration)),y.apply(this,arguments)};var v=e.fn.load,b=e.event.fix;e.event.props=[],e.event.fixHooks={},e.event.fix=function(t){var n,r=t.type,a=this.fixHooks[r],o=e.event.props;if(o.length)for(i("jQuery.event.props are deprecated and removed: "+o.join());o.length;)e.event.addProp(o.pop());if(a&&!a._migrated_&&(a._migrated_=!0,i("jQuery.event.fixHooks are deprecated and removed: "+r),(o=a.props)&&o.length))for(;o.length;)e.event.addProp(o.pop());return n=b.call(this,t),a&&a.filter?a.filter(n,t):n},e.each(["load","unload","error"],function(t,n){e.fn[n]=function(){var e=Array.prototype.slice.call(arguments,0);return"load"===n&&"string"==typeof e[0]?v.apply(this,e):(i("jQuery.fn."+n+"() is deprecated"),e.splice(0,0,n),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))}}),e(function(){e(document).triggerHandler("ready")}),e.event.special.ready={setup:function(){this===document&&i("'ready' event is deprecated")}},e.fn.extend({bind:function(e,t,n){return i("jQuery.fn.bind() is deprecated"),this.on(e,null,t,n)},unbind:function(e,t){return i("jQuery.fn.unbind() is deprecated"),this.off(e,null,t)},delegate:function(e,t,n,r){return i("jQuery.fn.delegate() is deprecated"),this.on(t,e,n,r)},undelegate:function(e,t,n){return i("jQuery.fn.undelegate() is deprecated"),1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var w=e.fn.offset;e.fn.offset=function(){var t,n=this[0],r={top:0,left:0};return n&&n.nodeType?(t=(n.ownerDocument||document).documentElement,e.contains(t,n)?w.apply(this,arguments):(i("jQuery.fn.offset() requires an element connected to a document"),r)):(i("jQuery.fn.offset() requires a valid DOM element"),r)};var T=e.param;e.param=function(t,n){var r=e.ajaxSettings&&e.ajaxSettings.traditional;return void 0===n&&r&&(i("jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),n=r),T.call(this,t,n)};var E=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return i("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),E.apply(this,arguments)};var I=e.Deferred,O=[["resolve","done",e.Callbacks("once memory"),e.Callbacks("once memory"),"resolved"],["reject","fail",e.Callbacks("once memory"),e.Callbacks("once memory"),"rejected"],["notify","progress",e.Callbacks("memory"),e.Callbacks("memory")]];e.Deferred=function(t){var n=I(),r=n.promise();return n.pipe=r.pipe=function(){var t=arguments;return i("deferred.pipe() is deprecated"),e.Deferred(function(i){e.each(O,function(a,o){var s=e.isFunction(t[a])&&t[a];n[o[1]](function(){var t=s&&s.apply(this,arguments);t&&e.isFunction(t.promise)?t.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[o[0]+"With"](this===r?i.promise():this,s?[t]:arguments)})}),t=null}).promise()},t&&t.call(n,n),n}}(e,window)}).call(t,n(20))},291:function(e,t,n){"use strict";var r=n(169),i=n(170),a={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},o=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(e){return o.call(e)},skipNulls:!1,strictNullHandling:!1},u=function e(t,n,i,a,o,s,u,d,c,l,f,p){var h=t;if("function"==typeof u)h=u(n,h);else if(h instanceof Date)h=l(h);else if(null===h){if(a)return s&&!p?s(n):n;h=""}if("string"==typeof h||"number"==typeof h||"boolean"==typeof h||r.isBuffer(h))return s?[f(p?n:s(n))+"="+f(s(h))]:[f(n)+"="+f(String(h))];var g,m=[];if(void 0===h)return m;if(Array.isArray(u))g=u;else{var _=Object.keys(h);g=d?_.sort(d):_}for(var y=0;y<g.length;++y){var v=g[y];o&&null===h[v]||(m=Array.isArray(h)?m.concat(e(h[v],i(n,v),i,a,o,s,u,d,c,l,f,p)):m.concat(e(h[v],n+(c?"."+v:"["+v+"]"),i,a,o,s,u,d,c,l,f,p)))}return m};e.exports=function(e,t){var n=e,r=t||{};if(null!==r.encoder&&void 0!==r.encoder&&"function"!=typeof r.encoder)throw new TypeError("Encoder has to be a function.");var o=void 0===r.delimiter?s.delimiter:r.delimiter,d="boolean"==typeof r.strictNullHandling?r.strictNullHandling:s.strictNullHandling,c="boolean"==typeof r.skipNulls?r.skipNulls:s.skipNulls,l="boolean"==typeof r.encode?r.encode:s.encode,f="function"==typeof r.encoder?r.encoder:s.encoder,p="function"==typeof r.sort?r.sort:null,h=void 0!==r.allowDots&&r.allowDots,g="function"==typeof r.serializeDate?r.serializeDate:s.serializeDate,m="boolean"==typeof r.encodeValuesOnly?r.encodeValuesOnly:s.encodeValuesOnly;if(void 0===r.format)r.format=i.default;else if(!Object.prototype.hasOwnProperty.call(i.formatters,r.format))throw new TypeError("Unknown format option provided.");var _,y,v=i.formatters[r.format];"function"==typeof r.filter?n=(y=r.filter)("",n):Array.isArray(r.filter)&&(_=y=r.filter);var b,w=[];if("object"!=typeof n||null===n)return"";b=r.arrayFormat in a?r.arrayFormat:"indices"in r?r.indices?"indices":"repeat":"indices";var T=a[b];_||(_=Object.keys(n)),p&&_.sort(p);for(var E=0;E<_.length;++E){var I=_[E];c&&null===n[I]||(w=w.concat(u(n[I],I,T,d,c,l?f:null,y,p,h,g,v,m)))}return w.join(o)}},292:function(e,t,n){"use strict";var r=n(169),i=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},o=function(e,t,n){if(!e.length)return t;var r,i=e.shift();if("[]"===i)r=(r=[]).concat(o(e,t,n));else{r=n.plainObjects?Object.create(null):{};var a="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,s=parseInt(a,10);!isNaN(s)&&i!==a&&String(s)===a&&s>=0&&n.parseArrays&&s<=n.arrayLimit?(r=[])[s]=o(e,t,n):r[a]=o(e,t,n)}return r},s=function(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=/(\[[^[\]]*])/.exec(r),u=s?r.slice(0,s.index):r,d=[];if(u){if(!n.plainObjects&&i.call(Object.prototype,u)&&!n.allowPrototypes)return;d.push(u)}for(var c=0;null!==(s=a.exec(r))&&c<n.depth;){if(c+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;d.push(s[1])}return s&&d.push("["+r.slice(s.index)+"]"),o(d,t,n)}};e.exports=function(e,t){var n=t||{};if(null!==n.decoder&&void 0!==n.decoder&&"function"!=typeof n.decoder)throw new TypeError("Decoder has to be a function.");if(n.delimiter="string"==typeof n.delimiter||r.isRegExp(n.delimiter)?n.delimiter:a.delimiter,n.depth="number"==typeof n.depth?n.depth:a.depth,n.arrayLimit="number"==typeof n.arrayLimit?n.arrayLimit:a.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"==typeof n.decoder?n.decoder:a.decoder,n.allowDots="boolean"==typeof n.allowDots?n.allowDots:a.allowDots,n.plainObjects="boolean"==typeof n.plainObjects?n.plainObjects:a.plainObjects,n.allowPrototypes="boolean"==typeof n.allowPrototypes?n.allowPrototypes:a.allowPrototypes,n.parameterLimit="number"==typeof n.parameterLimit?n.parameterLimit:a.parameterLimit,n.strictNullHandling="boolean"==typeof n.strictNullHandling?n.strictNullHandling:a.strictNullHandling,""===e||null==e)return n.plainObjects?Object.create(null):{};for(var o="string"==typeof e?function(e,t){for(var n={},r=e.split(t.delimiter,t.parameterLimit===1/0?void 0:t.parameterLimit),a=0;a<r.length;++a){var o,s,u=r[a],d=-1===u.indexOf("]=")?u.indexOf("="):u.indexOf("]=")+1;-1===d?(o=t.decoder(u),s=t.strictNullHandling?null:""):(o=t.decoder(u.slice(0,d)),s=t.decoder(u.slice(d+1))),i.call(n,o)?n[o]=[].concat(n[o]).concat(s):n[o]=s}return n}(e,n):e,u=n.plainObjects?Object.create(null):{},d=Object.keys(o),c=0;c<d.length;++c){var l=d[c],f=s(l,o[l],n);u=r.merge(u,f,n)}return r.compact(u)}},293:function(e,t,n){"use strict";(function(n){var r,i,a;i=[],void 0===(a="function"==typeof(r=function(){var e,t={},r="undefined"!=typeof window?window:n,i=r.document,a="localStorage";if(t.disabled=!1,t.version="1.3.20",t.set=function(e,t){},t.get=function(e,t){},t.has=function(e){return void 0!==t.get(e)},t.remove=function(e){},t.clear=function(){},t.transact=function(e,n,r){null==r&&(r=n,n=null),null==n&&(n={});var i=t.get(e,n);r(i),t.set(e,i)},t.getAll=function(){},t.forEach=function(){},t.serialize=function(e){return JSON.stringify(e)},t.deserialize=function(e){if("string"==typeof e)try{return JSON.parse(e)}catch(t){return e||void 0}},function(){try{return a in r&&r[a]}catch(e){return!1}}())e=r[a],t.set=function(n,r){return void 0===r?t.remove(n):(e.setItem(n,t.serialize(r)),r)},t.get=function(n,r){var i=t.deserialize(e.getItem(n));return void 0===i?r:i},t.remove=function(t){e.removeItem(t)},t.clear=function(){e.clear()},t.getAll=function(){var e={};return t.forEach(function(t,n){e[t]=n}),e},t.forEach=function(n){for(var r=0;r<e.length;r++){var i=e.key(r);n(i,t.get(i))}};else if(i&&i.documentElement.addBehavior){var o,s;try{(s=new ActiveXObject("htmlfile")).open(),s.write('<script>document.w=window<\/script><iframe src="/favicon.ico"></iframe>'),s.close(),o=s.w.frames[0].document,e=o.createElement("div")}catch(t){e=i.createElement("div"),o=i.body}var u=function(n){return function(){var r=Array.prototype.slice.call(arguments,0);r.unshift(e),o.appendChild(e),e.addBehavior("#default#userData"),e.load(a);var i=n.apply(t,r);return o.removeChild(e),i}},d=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g"),c=function(e){return e.replace(/^d/,"___$&").replace(d,"___")};t.set=u(function(e,n,r){return n=c(n),void 0===r?t.remove(n):(e.setAttribute(n,t.serialize(r)),e.save(a),r)}),t.get=u(function(e,n,r){n=c(n);var i=t.deserialize(e.getAttribute(n));return void 0===i?r:i}),t.remove=u(function(e,t){t=c(t),e.removeAttribute(t),e.save(a)}),t.clear=u(function(e){var t=e.XMLDocument.documentElement.attributes;e.load(a);for(var n=t.length-1;n>=0;n--)e.removeAttribute(t[n].name);e.save(a)}),t.getAll=function(e){var n={};return t.forEach(function(e,t){n[e]=t}),n},t.forEach=u(function(e,n){for(var r,i=e.XMLDocument.documentElement.attributes,a=0;r=i[a];++a)n(r.name,t.deserialize(e.getAttribute(r.name)))})}try{var l="__storejs__";t.set(l,l),t.get(l)!=l&&(t.disabled=!0),t.remove(l)}catch(e){t.disabled=!0}return t.enabled=!t.disabled,t})?r.apply(t,i):r)||(e.exports=a)}).call(t,n(38))},294:function(e,t){var n=function(){"use strict";return n=function(e){if(this.REQUEST_TYPE={LOGIN:"LOGIN",RENEW_TOKEN:"RENEW_TOKEN",UNKNOWN:"UNKNOWN"},this.RESPONSE_TYPE={ID_TOKEN_TOKEN:"id_token token",TOKEN:"token"},this.CONSTANTS={ACCESS_TOKEN:"access_token",EXPIRES_IN:"expires_in",ID_TOKEN:"id_token",ERROR_DESCRIPTION:"error_description",SESSION_STATE:"session_state",ERROR:"error",STORAGE:{TOKEN_KEYS:"adal.token.keys",ACCESS_TOKEN_KEY:"adal.access.token.key",EXPIRATION_KEY:"adal.expiration.key",STATE_LOGIN:"adal.state.login",STATE_RENEW:"adal.state.renew",NONCE_IDTOKEN:"adal.nonce.idtoken",SESSION_STATE:"adal.session.state",USERNAME:"adal.username",IDTOKEN:"adal.idtoken",ERROR:"adal.error",ERROR_DESCRIPTION:"adal.error.description",LOGIN_REQUEST:"adal.login.request",LOGIN_ERROR:"adal.login.error",RENEW_STATUS:"adal.token.renew.status",ANGULAR_LOGIN_REQUEST:"adal.angular.login.request"},RESOURCE_DELIMETER:"|",CACHE_DELIMETER:"||",LOADFRAME_TIMEOUT:6e3,TOKEN_RENEW_STATUS_CANCELED:"Canceled",TOKEN_RENEW_STATUS_COMPLETED:"Completed",TOKEN_RENEW_STATUS_IN_PROGRESS:"In Progress",LOGGING_LEVEL:{ERROR:0,WARN:1,INFO:2,VERBOSE:3},LEVEL_STRING_MAP:{0:"ERROR:",1:"WARNING:",2:"INFO:",3:"VERBOSE:"},POPUP_WIDTH:483,POPUP_HEIGHT:600},n.prototype._singletonInstance)return n.prototype._singletonInstance;if(n.prototype._singletonInstance=this,this.instance="https://login.microsoftonline.com/",this.config={},this.callback=null,this.popUp=!1,this.isAngular=!1,this._user=null,this._activeRenewals={},this._loginInProgress=!1,this._acquireTokenInProgress=!1,this._renewStates=[],this._callBackMappedToRenewStates={},this._callBacksMappedToRenewStates={},this._openedWindows=[],this._requestType=this.REQUEST_TYPE.LOGIN,window._adalInstance=this,e.displayCall&&"function"!=typeof e.displayCall)throw new Error("displayCall is not a function");if(!e.clientId)throw new Error("clientId is required");this.config=this._cloneConfig(e),void 0===this.config.navigateToLoginRequestUrl&&(this.config.navigateToLoginRequestUrl=!0),this.config.popUp&&(this.popUp=!0),this.config.callback&&"function"==typeof this.config.callback&&(this.callback=this.config.callback),this.config.instance&&(this.instance=this.config.instance),this.config.loginResource||(this.config.loginResource=this.config.clientId),this.config.redirectUri||(this.config.redirectUri=window.location.href.split("?")[0].split("#")[0]),this.config.postLogoutRedirectUri||(this.config.postLogoutRedirectUri=window.location.href.split("?")[0].split("#")[0]),this.config.anonymousEndpoints||(this.config.anonymousEndpoints=[]),this.config.isAngular&&(this.isAngular=this.config.isAngular),this.config.loadFrameTimeout&&(this.CONSTANTS.LOADFRAME_TIMEOUT=this.config.loadFrameTimeout)},"undefined"!=typeof window&&(window.Logging={piiLoggingEnabled:!1,level:0,log:function(e){}}),n.prototype.login=function(){if(this._loginInProgress)this.info("Login in progress");else{this._loginInProgress=!0;var e=this._guid();this.config.state=e,this._idTokenNonce=this._guid();var t=this._getItem(this.CONSTANTS.STORAGE.ANGULAR_LOGIN_REQUEST);t&&""!==t?this._saveItem(this.CONSTANTS.STORAGE.ANGULAR_LOGIN_REQUEST,""):t=window.location.href,this.verbose("Expected state: "+e+" startPage:"+t),this._saveItem(this.CONSTANTS.STORAGE.LOGIN_REQUEST,t),this._saveItem(this.CONSTANTS.STORAGE.LOGIN_ERROR,""),this._saveItem(this.CONSTANTS.STORAGE.STATE_LOGIN,e,!0),this._saveItem(this.CONSTANTS.STORAGE.NONCE_IDTOKEN,this._idTokenNonce,!0),this._saveItem(this.CONSTANTS.STORAGE.ERROR,""),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,"");var n=this._getNavigateUrl("id_token",null)+"&nonce="+encodeURIComponent(this._idTokenNonce);this.config.displayCall?this.config.displayCall(n):this.popUp?(this._saveItem(this.CONSTANTS.STORAGE.STATE_LOGIN,""),this._renewStates.push(e),this.registerCallback(e,this.config.clientId,this.callback),this._loginPopup(n)):this.promptUser(n)}},n.prototype._openPopup=function(e,t,n,r){try{var i=window.screenLeft?window.screenLeft:window.screenX,a=window.screenTop?window.screenTop:window.screenY,o=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,s=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,u=o/2-n/2+i,d=s/2-r/2+a,c=window.open(e,t,"width="+n+", height="+r+", top="+d+", left="+u);return c.focus&&c.focus(),c}catch(e){return this.warn("Error opening popup, "+e.message),this._loginInProgress=!1,this._acquireTokenInProgress=!1,null}},n.prototype._handlePopupError=function(e,t,n,r,i){this.warn(r),this._saveItem(this.CONSTANTS.STORAGE.ERROR,n),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,r),this._saveItem(this.CONSTANTS.STORAGE.LOGIN_ERROR,i),t&&this._activeRenewals[t]&&(this._activeRenewals[t]=null),this._loginInProgress=!1,this._acquireTokenInProgress=!1,e&&e(r,null,n)},n.prototype._loginPopup=function(e,t,n){var r=this._openPopup(e,"login",this.CONSTANTS.POPUP_WIDTH,this.CONSTANTS.POPUP_HEIGHT),i=n||this.callback;if(null!=r){if(this._openedWindows.push(r),-1!=this.config.redirectUri.indexOf("#"))var a=this.config.redirectUri.split("#")[0];else a=this.config.redirectUri;var o=this,s=window.setInterval(function(){if(!r||r.closed||void 0===r.closed){var e="Popup Window closed",n="Popup Window closed by UI action/ Popup Window handle destroyed due to cross zone navigation in IE/Edge";return o.isAngular&&o._broadcast("adal:popUpClosed",n+o.CONSTANTS.RESOURCE_DELIMETER+e),o._handlePopupError(i,t,e,n,n),void window.clearInterval(s)}try{var u=r.location;if(-1!=encodeURI(u.href).indexOf(encodeURI(a)))return o.isAngular?o._broadcast("adal:popUpHashChanged",u.hash):o.handleWindowCallback(u.hash),window.clearInterval(s),o._loginInProgress=!1,o._acquireTokenInProgress=!1,o.info("Closing popup window"),o._openedWindows=[],void r.close()}catch(e){}},1)}else{var u="Popup Window is null. This can happen if you are using IE";this._handlePopupError(i,t,"Error opening popup",u,u)}},n.prototype._broadcast=function(e,t){!function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,window.CustomEvent=e}();var n=new CustomEvent(e,{detail:t});window.dispatchEvent(n)},n.prototype.loginInProgress=function(){return this._loginInProgress},n.prototype._hasResource=function(e){var t=this._getItem(this.CONSTANTS.STORAGE.TOKEN_KEYS);return t&&!this._isEmpty(t)&&t.indexOf(e+this.CONSTANTS.RESOURCE_DELIMETER)>-1},n.prototype.getCachedToken=function(e){if(!this._hasResource(e))return null;var t=this._getItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+e),n=this._getItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+e),r=this.config.expireOffsetSeconds||300;return n&&n>this._now()+r?t:(this._saveItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+e,""),this._saveItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+e,0),null)},n.prototype.getCachedUser=function(){if(this._user)return this._user;var e=this._getItem(this.CONSTANTS.STORAGE.IDTOKEN);return this._user=this._createUser(e),this._user},n.prototype.registerCallback=function(e,t,n){this._activeRenewals[t]=e,this._callBacksMappedToRenewStates[e]||(this._callBacksMappedToRenewStates[e]=[]);var r=this;this._callBacksMappedToRenewStates[e].push(n),this._callBackMappedToRenewStates[e]||(this._callBackMappedToRenewStates[e]=function(n,i,a,o){r._activeRenewals[t]=null;for(var s=0;s<r._callBacksMappedToRenewStates[e].length;++s)try{r._callBacksMappedToRenewStates[e][s](n,i,a,o)}catch(a){r.warn(a)}r._callBacksMappedToRenewStates[e]=null,r._callBackMappedToRenewStates[e]=null})},n.prototype._renewToken=function(e,t,n){this.info("renewToken is called for resource:"+e);var r=this._addAdalFrame("adalRenewFrame"+e),i=this._guid()+"|"+e;this.config.state=i,this._renewStates.push(i),this.verbose("Renew token Expected state: "+i),n=n||"token";var a=this._urlRemoveQueryStringParameter(this._getNavigateUrl(n,e),"prompt");n===this.RESPONSE_TYPE.ID_TOKEN_TOKEN&&(this._idTokenNonce=this._guid(),this._saveItem(this.CONSTANTS.STORAGE.NONCE_IDTOKEN,this._idTokenNonce,!0),a+="&nonce="+encodeURIComponent(this._idTokenNonce)),a+="&prompt=none",a=this._addHintParameters(a),this.registerCallback(i,e,t),this.verbosePii("Navigate to:"+a),r.src="about:blank",this._loadFrameTimeout(a,"adalRenewFrame"+e,e)},n.prototype._renewIdToken=function(e,t){this.info("renewIdToken is called");var n=this._addAdalFrame("adalIdTokenFrame"),r=this._guid()+"|"+this.config.clientId;this._idTokenNonce=this._guid(),this._saveItem(this.CONSTANTS.STORAGE.NONCE_IDTOKEN,this._idTokenNonce,!0),this.config.state=r,this._renewStates.push(r),this.verbose("Renew Idtoken Expected state: "+r);var i=null==t?null:this.config.clientId,a=(t=t||"id_token",this._urlRemoveQueryStringParameter(this._getNavigateUrl(t,i),"prompt"));a+="&prompt=none",a=this._addHintParameters(a),a+="&nonce="+encodeURIComponent(this._idTokenNonce),this.registerCallback(r,this.config.clientId,e),this.verbosePii("Navigate to:"+a),n.src="about:blank",this._loadFrameTimeout(a,"adalIdTokenFrame",this.config.clientId)},n.prototype._urlContainsQueryStringParameter=function(e,t){return new RegExp("[\\?&]"+e+"=").test(t)},n.prototype._urlRemoveQueryStringParameter=function(e,t){var n=new RegExp("(\\&"+t+"=)[^&]+");return e=e.replace(n,""),n=new RegExp("("+t+"=)[^&]+&"),e=e.replace(n,""),n=new RegExp("("+t+"=)[^&]+"),e=e.replace(n,"")},n.prototype._loadFrameTimeout=function(e,t,n){this.verbose("Set loading state to pending for: "+n),this._saveItem(this.CONSTANTS.STORAGE.RENEW_STATUS+n,this.CONSTANTS.TOKEN_RENEW_STATUS_IN_PROGRESS),this._loadFrame(e,t);var r=this;setTimeout(function(){if(r._getItem(r.CONSTANTS.STORAGE.RENEW_STATUS+n)===r.CONSTANTS.TOKEN_RENEW_STATUS_IN_PROGRESS){r.verbose("Loading frame has timed out after: "+r.CONSTANTS.LOADFRAME_TIMEOUT/1e3+" seconds for resource "+n);var e=r._activeRenewals[n];e&&r._callBackMappedToRenewStates[e]&&r._callBackMappedToRenewStates[e]("Token renewal operation failed due to timeout",null,"Token Renewal Failed"),r._saveItem(r.CONSTANTS.STORAGE.RENEW_STATUS+n,r.CONSTANTS.TOKEN_RENEW_STATUS_CANCELED)}},r.CONSTANTS.LOADFRAME_TIMEOUT)},n.prototype._loadFrame=function(e,t){var n=this;n.info("LoadFrame: "+t);var r=t;setTimeout(function(){var t=n._addAdalFrame(r);""!==t.src&&"about:blank"!==t.src||(t.src=e,n._loadFrame(e,r))},500)},n.prototype.acquireToken=function(e,t){if(this._isEmpty(e))return this.warn("resource is required"),void t("resource is required",null,"resource is required");var n=this.getCachedToken(e);return n?(this.info("Token is already in cache for resource:"+e),void t(null,n,null)):this._user||this.config.extraQueryParameter&&-1!==this.config.extraQueryParameter.indexOf("login_hint")?void(this._activeRenewals[e]?this.registerCallback(this._activeRenewals[e],e,t):(this._requestType=this.REQUEST_TYPE.RENEW_TOKEN,e===this.config.clientId?this._user?(this.verbose("renewing idtoken"),this._renewIdToken(t)):(this.verbose("renewing idtoken and access_token"),this._renewIdToken(t,this.RESPONSE_TYPE.ID_TOKEN_TOKEN)):this._user?(this.verbose("renewing access_token"),this._renewToken(e,t)):(this.verbose("renewing idtoken and access_token"),this._renewToken(e,t,this.RESPONSE_TYPE.ID_TOKEN_TOKEN)))):(this.warn("User login is required"),void t("User login is required",null,"login required"))},n.prototype.acquireTokenPopup=function(e,t,n,r){if(this._isEmpty(e))return this.warn("resource is required"),void r("resource is required",null,"resource is required");if(!this._user)return this.warn("User login is required"),void r("User login is required",null,"login required");if(this._acquireTokenInProgress)return this.warn("Acquire token interactive is already in progress"),void r("Acquire token interactive is already in progress",null,"Acquire token interactive is already in progress");var i=this._guid()+"|"+e;this.config.state=i,this._renewStates.push(i),this._requestType=this.REQUEST_TYPE.RENEW_TOKEN,this.verbose("Renew token Expected state: "+i);var a=this._urlRemoveQueryStringParameter(this._getNavigateUrl("token",e),"prompt");if(a+="&prompt=select_account",t&&(a+=t),n&&-1===a.indexOf("&claims"))a+="&claims="+encodeURIComponent(n);else if(n&&-1!==a.indexOf("&claims"))throw new Error("Claims cannot be passed as an extraQueryParameter");a=this._addHintParameters(a),this._acquireTokenInProgress=!0,this.info("acquireToken interactive is called for the resource "+e),this.registerCallback(i,e,r),this._loginPopup(a,e,r)},n.prototype.acquireTokenRedirect=function(e,t,n){if(this._isEmpty(e))return this.warn("resource is required"),void r("resource is required",null,"resource is required");var r=this.callback;if(!this._user)return this.warn("User login is required"),void r("User login is required",null,"login required");if(this._acquireTokenInProgress)return this.warn("Acquire token interactive is already in progress"),void r("Acquire token interactive is already in progress",null,"Acquire token interactive is already in progress");var i=this._guid()+"|"+e;this.config.state=i,this.verbose("Renew token Expected state: "+i);var a=this._urlRemoveQueryStringParameter(this._getNavigateUrl("token",e),"prompt");if(a+="&prompt=select_account",t&&(a+=t),n&&-1===a.indexOf("&claims"))a+="&claims="+encodeURIComponent(n);else if(n&&-1!==a.indexOf("&claims"))throw new Error("Claims cannot be passed as an extraQueryParameter");a=this._addHintParameters(a),this._acquireTokenInProgress=!0,this.info("acquireToken interactive is called for the resource "+e),this._saveItem(this.CONSTANTS.STORAGE.LOGIN_REQUEST,window.location.href),this._saveItem(this.CONSTANTS.STORAGE.STATE_RENEW,i,!0),this.promptUser(a)},n.prototype.promptUser=function(e){e?(this.infoPii("Navigate to:"+e),window.location.replace(e)):this.info("Navigate url is empty")},n.prototype.clearCache=function(){this._saveItem(this.CONSTANTS.STORAGE.LOGIN_REQUEST,""),this._saveItem(this.CONSTANTS.STORAGE.ANGULAR_LOGIN_REQUEST,""),this._saveItem(this.CONSTANTS.STORAGE.SESSION_STATE,""),this._saveItem(this.CONSTANTS.STORAGE.STATE_LOGIN,""),this._saveItem(this.CONSTANTS.STORAGE.STATE_RENEW,""),this._renewStates=[],this._saveItem(this.CONSTANTS.STORAGE.NONCE_IDTOKEN,""),this._saveItem(this.CONSTANTS.STORAGE.IDTOKEN,""),this._saveItem(this.CONSTANTS.STORAGE.ERROR,""),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,""),this._saveItem(this.CONSTANTS.STORAGE.LOGIN_ERROR,""),this._saveItem(this.CONSTANTS.STORAGE.LOGIN_ERROR,"");var e=this._getItem(this.CONSTANTS.STORAGE.TOKEN_KEYS);if(!this._isEmpty(e)){e=e.split(this.CONSTANTS.RESOURCE_DELIMETER);for(var t=0;t<e.length&&""!==e[t];t++)this._saveItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+e[t],""),this._saveItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+e[t],0)}this._saveItem(this.CONSTANTS.STORAGE.TOKEN_KEYS,"")},n.prototype.clearCacheForResource=function(e){this._saveItem(this.CONSTANTS.STORAGE.STATE_RENEW,""),this._saveItem(this.CONSTANTS.STORAGE.ERROR,""),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,""),this._hasResource(e)&&(this._saveItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+e,""),this._saveItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+e,0))},n.prototype.logOut=function(){var e;if(this.clearCache(),this._user=null,this.config.logOutUri)e=this.config.logOutUri;else{var t="common",n="";this.config.tenant&&(t=this.config.tenant),this.config.postLogoutRedirectUri&&(n="post_logout_redirect_uri="+encodeURIComponent(this.config.postLogoutRedirectUri)),e=this.instance+t+"/oauth2/logout?"+n}this.infoPii("Logout navigate to: "+e),this.promptUser(e)},n.prototype._isEmpty=function(e){return void 0===e||!e||0===e.length},n.prototype.getUser=function(e){if("function"!=typeof e)throw new Error("callback is not a function");if(this._user)e(null,this._user);else{var t=this._getItem(this.CONSTANTS.STORAGE.IDTOKEN);this._isEmpty(t)?(this.warn("User information is not available"),e("User information is not available",null)):(this.info("User exists in cache: "),this._user=this._createUser(t),e(null,this._user))}},n.prototype._addHintParameters=function(e){if(this._user&&this._user.profile)if(this._user.profile.sid&&-1!==e.indexOf("&prompt=none"))this._urlContainsQueryStringParameter("sid",e)||(e+="&sid="+encodeURIComponent(this._user.profile.sid));else if(this._user.profile.upn&&(this._urlContainsQueryStringParameter("login_hint",e)||(e+="&login_hint="+encodeURIComponent(this._user.profile.upn)),!this._urlContainsQueryStringParameter("domain_hint",e)&&this._user.profile.upn.indexOf("@")>-1)){var t=this._user.profile.upn.split("@");e+="&domain_hint="+encodeURIComponent(t[t.length-1])}return e},n.prototype._createUser=function(e){var t=null,n=this._extractIdToken(e);return n&&n.hasOwnProperty("aud")&&(n.aud.toLowerCase()===this.config.clientId.toLowerCase()?(t={userName:"",profile:n},n.hasOwnProperty("upn")?t.userName=n.upn:n.hasOwnProperty("email")&&(t.userName=n.email)):this.warn("IdToken has invalid aud field")),t},n.prototype._getHash=function(e){return e.indexOf("#/")>-1?e=e.substring(e.indexOf("#/")+2):e.indexOf("#")>-1&&(e=e.substring(1)),e},n.prototype.isCallback=function(e){e=this._getHash(e);var t=this._deserialize(e);return t.hasOwnProperty(this.CONSTANTS.ERROR_DESCRIPTION)||t.hasOwnProperty(this.CONSTANTS.ACCESS_TOKEN)||t.hasOwnProperty(this.CONSTANTS.ID_TOKEN)},n.prototype.getLoginError=function(){return this._getItem(this.CONSTANTS.STORAGE.LOGIN_ERROR)},n.prototype.getRequestInfo=function(e){e=this._getHash(e);var t=this._deserialize(e),n={valid:!1,parameters:{},stateMatch:!1,stateResponse:"",requestType:this.REQUEST_TYPE.UNKNOWN};if(t&&(n.parameters=t,t.hasOwnProperty(this.CONSTANTS.ERROR_DESCRIPTION)||t.hasOwnProperty(this.CONSTANTS.ACCESS_TOKEN)||t.hasOwnProperty(this.CONSTANTS.ID_TOKEN))){n.valid=!0;var r="";if(!t.hasOwnProperty("state"))return this.warn("No state returned"),n;if(this.verbose("State: "+t.state),r=t.state,n.stateResponse=r,this._matchState(n))return n;if(!n.stateMatch&&window.parent){n.requestType=this._requestType;for(var i=this._renewStates,a=0;a<i.length;a++)if(i[a]===n.stateResponse){n.stateMatch=!0;break}}}return n},n.prototype._matchNonce=function(e){var t=this._getItem(this.CONSTANTS.STORAGE.NONCE_IDTOKEN);if(t){t=t.split(this.CONSTANTS.CACHE_DELIMETER);for(var n=0;n<t.length;n++)if(t[n]===e.profile.nonce)return!0}return!1},n.prototype._matchState=function(e){var t=this._getItem(this.CONSTANTS.STORAGE.STATE_LOGIN);if(t){t=t.split(this.CONSTANTS.CACHE_DELIMETER);for(var n=0;n<t.length;n++)if(t[n]===e.stateResponse)return e.requestType=this.REQUEST_TYPE.LOGIN,e.stateMatch=!0,!0}var r=this._getItem(this.CONSTANTS.STORAGE.STATE_RENEW);if(r){r=r.split(this.CONSTANTS.CACHE_DELIMETER);for(n=0;n<r.length;n++)if(r[n]===e.stateResponse)return e.requestType=this.REQUEST_TYPE.RENEW_TOKEN,e.stateMatch=!0,!0}return!1},n.prototype._getResourceFromState=function(e){if(e){var t=e.indexOf("|");if(t>-1&&t+1<e.length)return e.substring(t+1)}return""},n.prototype.saveTokenFromHash=function(e){this.info("State status:"+e.stateMatch+"; Request type:"+e.requestType),this._saveItem(this.CONSTANTS.STORAGE.ERROR,""),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,"");var t,n=this._getResourceFromState(e.stateResponse);e.parameters.hasOwnProperty(this.CONSTANTS.ERROR_DESCRIPTION)?(this.infoPii("Error :"+e.parameters.error+"; Error description:"+e.parameters[this.CONSTANTS.ERROR_DESCRIPTION]),this._saveItem(this.CONSTANTS.STORAGE.ERROR,e.parameters.error),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,e.parameters[this.CONSTANTS.ERROR_DESCRIPTION]),e.requestType===this.REQUEST_TYPE.LOGIN&&(this._loginInProgress=!1,this._saveItem(this.CONSTANTS.STORAGE.LOGIN_ERROR,e.parameters.error_description))):e.stateMatch?(this.info("State is right"),e.parameters.hasOwnProperty(this.CONSTANTS.SESSION_STATE)&&this._saveItem(this.CONSTANTS.STORAGE.SESSION_STATE,e.parameters[this.CONSTANTS.SESSION_STATE]),e.parameters.hasOwnProperty(this.CONSTANTS.ACCESS_TOKEN)&&(this.info("Fragment has access token"),this._hasResource(n)||(t=this._getItem(this.CONSTANTS.STORAGE.TOKEN_KEYS)||"",this._saveItem(this.CONSTANTS.STORAGE.TOKEN_KEYS,t+n+this.CONSTANTS.RESOURCE_DELIMETER)),this._saveItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+n,e.parameters[this.CONSTANTS.ACCESS_TOKEN]),this._saveItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+n,this._expiresIn(e.parameters[this.CONSTANTS.EXPIRES_IN]))),e.parameters.hasOwnProperty(this.CONSTANTS.ID_TOKEN)&&(this.info("Fragment has id token"),this._loginInProgress=!1,this._user=this._createUser(e.parameters[this.CONSTANTS.ID_TOKEN]),this._user&&this._user.profile?this._matchNonce(this._user)?(this._saveItem(this.CONSTANTS.STORAGE.IDTOKEN,e.parameters[this.CONSTANTS.ID_TOKEN]),n=this.config.loginResource?this.config.loginResource:this.config.clientId,this._hasResource(n)||(t=this._getItem(this.CONSTANTS.STORAGE.TOKEN_KEYS)||"",this._saveItem(this.CONSTANTS.STORAGE.TOKEN_KEYS,t+n+this.CONSTANTS.RESOURCE_DELIMETER)),this._saveItem(this.CONSTANTS.STORAGE.ACCESS_TOKEN_KEY+n,e.parameters[this.CONSTANTS.ID_TOKEN]),this._saveItem(this.CONSTANTS.STORAGE.EXPIRATION_KEY+n,this._user.profile.exp)):(this._saveItem(this.CONSTANTS.STORAGE.LOGIN_ERROR,"Nonce received: "+this._user.profile.nonce+" is not same as requested: "+this._getItem(this.CONSTANTS.STORAGE.NONCE_IDTOKEN)),this._user=null):(e.parameters.error="invalid id_token",e.parameters.error_description="Invalid id_token. id_token: "+e.parameters[this.CONSTANTS.ID_TOKEN],this._saveItem(this.CONSTANTS.STORAGE.ERROR,"invalid id_token"),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,"Invalid id_token. id_token: "+e.parameters[this.CONSTANTS.ID_TOKEN])))):(e.parameters.error="Invalid_state",e.parameters.error_description="Invalid_state. state: "+e.stateResponse,this._saveItem(this.CONSTANTS.STORAGE.ERROR,"Invalid_state"),this._saveItem(this.CONSTANTS.STORAGE.ERROR_DESCRIPTION,"Invalid_state. state: "+e.stateResponse));this._saveItem(this.CONSTANTS.STORAGE.RENEW_STATUS+n,this.CONSTANTS.TOKEN_RENEW_STATUS_COMPLETED)},n.prototype.getResourceForEndpoint=function(e){if(this.config&&this.config.anonymousEndpoints)for(var t=0;t<this.config.anonymousEndpoints.length;t++)if(e.indexOf(this.config.anonymousEndpoints[t])>-1)return null;if(this.config&&this.config.endpoints)for(var n in this.config.endpoints)if(e.indexOf(n)>-1)return this.config.endpoints[n];return e.indexOf("http://")>-1||e.indexOf("https://")>-1?this._getHostFromUri(e)===this._getHostFromUri(this.config.redirectUri)?this.config.loginResource:null:this.config.loginResource},n.prototype._getHostFromUri=function(e){var t=String(e).replace(/^(https?:)\/\//,"");return t=t.split("/")[0]},n.prototype.handleWindowCallback=function(e){if(null==e&&(e=window.location.hash),this.isCallback(e)){var t=null,n=!1;this._openedWindows.length>0&&this._openedWindows[this._openedWindows.length-1].opener&&this._openedWindows[this._openedWindows.length-1].opener._adalInstance?(t=this._openedWindows[this._openedWindows.length-1].opener._adalInstance,n=!0):window.parent&&window.parent._adalInstance&&(t=window.parent._adalInstance);var r,i,a=t.getRequestInfo(e),o=null;i=n||window.parent!==window?t._callBackMappedToRenewStates[a.stateResponse]:t.callback,t.info("Returned from redirect url"),t.saveTokenFromHash(a),a.requestType===this.REQUEST_TYPE.RENEW_TOKEN&&window.parent?(window.parent!==window?t.verbose("Window is in iframe, acquiring token silently"):t.verbose("acquiring token interactive in progress"),r=a.parameters[t.CONSTANTS.ACCESS_TOKEN]||a.parameters[t.CONSTANTS.ID_TOKEN],o=t.CONSTANTS.ACCESS_TOKEN):a.requestType===this.REQUEST_TYPE.LOGIN&&(r=a.parameters[t.CONSTANTS.ID_TOKEN],o=t.CONSTANTS.ID_TOKEN);var s=a.parameters[t.CONSTANTS.ERROR_DESCRIPTION],u=a.parameters[t.CONSTANTS.ERROR];try{i&&i(s,r,u,o)}catch(e){t.error("Error occurred in user defined callback function: "+e)}window.parent!==window||n||(t.config.navigateToLoginRequestUrl?window.location.href=t._getItem(t.CONSTANTS.STORAGE.LOGIN_REQUEST):window.location.hash="")}},n.prototype._getNavigateUrl=function(e,t){var n="common";this.config.tenant&&(n=this.config.tenant);var r=this.instance+n+"/oauth2/authorize"+this._serialize(e,this.config,t)+this._addLibMetadata();return this.info("Navigate url:"+r),r},n.prototype._extractIdToken=function(e){var t=this._decodeJwt(e);if(!t)return null;try{var n=t.JWSPayload,r=this._base64DecodeStringUrlSafe(n);return r?JSON.parse(r):(this.info("The returned id_token could not be base64 url safe decoded."),null)}catch(e){this.error("The returned id_token could not be decoded",e)}return null},n.prototype._base64DecodeStringUrlSafe=function(e){return e=e.replace(/-/g,"+").replace(/_/g,"/"),window.atob?decodeURIComponent(escape(window.atob(e))):decodeURIComponent(escape(this._decode(e)))},n.prototype._decode=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n=(e=String(e).replace(/=+$/,"")).length;if(n%4==1)throw new Error("The token to be decoded is not correctly encoded.");for(var r,i,a,o,s,u,d,c,l="",f=0;f<n;f+=4){if(r=t.indexOf(e.charAt(f)),i=t.indexOf(e.charAt(f+1)),a=t.indexOf(e.charAt(f+2)),o=t.indexOf(e.charAt(f+3)),f+2===n-1){u=(s=r<<18|i<<12|a<<6)>>16&255,d=s>>8&255,l+=String.fromCharCode(u,d);break}if(f+1===n-1){u=(s=r<<18|i<<12)>>16&255,l+=String.fromCharCode(u);break}u=(s=r<<18|i<<12|a<<6|o)>>16&255,d=s>>8&255,c=255&s,l+=String.fromCharCode(u,d,c)}return l},n.prototype._decodeJwt=function(e){if(this._isEmpty(e))return null;var t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(e);return!t||t.length<4?(this.warn("The returned id_token is not parseable."),null):{header:t[1],JWSPayload:t[2],JWSSig:t[3]}},n.prototype._convertUrlSafeToRegularBase64EncodedString=function(e){return e.replace("-","+").replace("_","/")},n.prototype._serialize=function(e,t,n){var r=[];if(null!==t){r.push("?response_type="+e),r.push("client_id="+encodeURIComponent(t.clientId)),n&&r.push("resource="+encodeURIComponent(n)),r.push("redirect_uri="+encodeURIComponent(t.redirectUri)),r.push("state="+encodeURIComponent(t.state)),t.hasOwnProperty("slice")&&r.push("slice="+encodeURIComponent(t.slice)),t.hasOwnProperty("extraQueryParameter")&&r.push(t.extraQueryParameter);var i=t.correlationId?t.correlationId:this._guid();r.push("client-request-id="+encodeURIComponent(i))}return r.join("&")},n.prototype._deserialize=function(e){var t,n=/\+/g,r=/([^&=]+)=([^&]*)/g,i=function(e){return decodeURIComponent(e.replace(n," "))},a={};for(t=r.exec(e);t;)a[i(t[1])]=i(t[2]),t=r.exec(e);return a},n.prototype._decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},n.prototype._guid=function(){var e=window.crypto||window.msCrypto;if(e&&e.getRandomValues){var t=new Uint8Array(16);return e.getRandomValues(t),t[6]|=64,t[6]&=79,t[8]|=128,t[8]&=191,this._decimalToHex(t[0])+this._decimalToHex(t[1])+this._decimalToHex(t[2])+this._decimalToHex(t[3])+"-"+this._decimalToHex(t[4])+this._decimalToHex(t[5])+"-"+this._decimalToHex(t[6])+this._decimalToHex(t[7])+"-"+this._decimalToHex(t[8])+this._decimalToHex(t[9])+"-"+this._decimalToHex(t[10])+this._decimalToHex(t[11])+this._decimalToHex(t[12])+this._decimalToHex(t[13])+this._decimalToHex(t[14])+this._decimalToHex(t[15])}for(var n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",r="0123456789abcdef",i=0,a="",o=0;o<36;o++)"-"!==n[o]&&"4"!==n[o]&&(i=16*Math.random()|0),"x"===n[o]?a+=r[i]:"y"===n[o]?(i&=3,a+=r[i|=8]):a+=n[o];return a},n.prototype._expiresIn=function(e){return e||(e=3599),this._now()+parseInt(e,10)},n.prototype._now=function(){return Math.round((new Date).getTime()/1e3)},n.prototype._addAdalFrame=function(e){if(void 0!==e){this.info("Add adal frame to document:"+e);var t=document.getElementById(e);if(!t){if(document.createElement&&document.documentElement&&(window.opera||-1===window.navigator.userAgent.indexOf("MSIE 5.0"))){var n=document.createElement("iframe");n.setAttribute("id",e),n.setAttribute("aria-hidden","true"),n.style.visibility="hidden",n.style.position="absolute",n.style.width=n.style.height=n.borderWidth="0px",t=document.getElementsByTagName("body")[0].appendChild(n)}else document.body&&document.body.insertAdjacentHTML&&document.body.insertAdjacentHTML("beforeEnd",'<iframe name="'+e+'" id="'+e+'" style="display:none"></iframe>');window.frames&&window.frames[e]&&(t=window.frames[e])}return t}},n.prototype._saveItem=function(e,t,n){if(this.config&&this.config.cacheLocation&&"localStorage"===this.config.cacheLocation){if(!this._supportsLocalStorage())return this.info("Local storage is not supported"),!1;if(n){var r=this._getItem(e)||"";localStorage.setItem(e,r+t+this.CONSTANTS.CACHE_DELIMETER)}else localStorage.setItem(e,t);return!0}return this._supportsSessionStorage()?(sessionStorage.setItem(e,t),!0):(this.info("Session storage is not supported"),!1)},n.prototype._getItem=function(e){return this.config&&this.config.cacheLocation&&"localStorage"===this.config.cacheLocation?this._supportsLocalStorage()?localStorage.getItem(e):(this.info("Local storage is not supported"),null):this._supportsSessionStorage()?sessionStorage.getItem(e):(this.info("Session storage is not supported"),null)},n.prototype._supportsLocalStorage=function(){try{return!!window.localStorage&&(window.localStorage.setItem("storageTest","A"),"A"==window.localStorage.getItem("storageTest")&&(window.localStorage.removeItem("storageTest"),!window.localStorage.getItem("storageTest")))}catch(e){return!1}},n.prototype._supportsSessionStorage=function(){try{return!!window.sessionStorage&&(window.sessionStorage.setItem("storageTest","A"),"A"==window.sessionStorage.getItem("storageTest")&&(window.sessionStorage.removeItem("storageTest"),!window.sessionStorage.getItem("storageTest")))}catch(e){return!1}},n.prototype._cloneConfig=function(e){if(null===e||"object"!=typeof e)return e;var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},n.prototype._addLibMetadata=function(){return"&x-client-SKU=Js&x-client-Ver="+this._libVersion()},n.prototype.log=function(e,t,n,r){if(e<=Logging.level){if(!Logging.piiLoggingEnabled&&r)return;var i=(new Date).toUTCString(),a="";a=this.config.correlationId?i+":"+this.config.correlationId+"-"+this._libVersion()+"-"+this.CONSTANTS.LEVEL_STRING_MAP[e]+" "+t:i+":"+this._libVersion()+"-"+this.CONSTANTS.LEVEL_STRING_MAP[e]+" "+t,n&&(a+="\nstack:\n"+n.stack),Logging.log(a)}},n.prototype.error=function(e,t){this.log(this.CONSTANTS.LOGGING_LEVEL.ERROR,e,t)},n.prototype.warn=function(e){this.log(this.CONSTANTS.LOGGING_LEVEL.WARN,e,null)},n.prototype.info=function(e){this.log(this.CONSTANTS.LOGGING_LEVEL.INFO,e,null)},n.prototype.verbose=function(e){this.log(this.CONSTANTS.LOGGING_LEVEL.VERBOSE,e,null)},n.prototype.errorPii=function(e,t){this.log(this.CONSTANTS.LOGGING_LEVEL.ERROR,e,t,!0)},n.prototype.warnPii=function(e){this.log(this.CONSTANTS.LOGGING_LEVEL.WARN,e,null,!0)},n.prototype.infoPii=function(e){this.log(this.CONSTANTS.LOGGING_LEVEL.INFO,e,null,!0)},n.prototype.verbosePii=function(e){this.log(this.CONSTANTS.LOGGING_LEVEL.VERBOSE,e,null,!0)},n.prototype._libVersion=function(){return"1.0.17"},void 0!==e&&e.exports&&(e.exports=n,e.exports.inject=function(e){return new n(e)}),n}()},295:function(e,t,n){"use strict";var r=n(65),i=n(26),a=n(237),o=n(129),s="function"==typeof Symbol&&Symbol.for,u=s?Symbol.for("react.element"):60103,d=s?Symbol.for("react.portal"):60106,c=s?Symbol.for("react.fragment"):60107,l=s?Symbol.for("react.strict_mode"):60108,f=s?Symbol.for("react.provider"):60109,p=s?Symbol.for("react.context"):60110,h=s?Symbol.for("react.async_mode"):60111,g=s?Symbol.for("react.forward_ref"):60112,m="function"==typeof Symbol&&Symbol.iterator;function _(e){for(var t=arguments.length-1,n="http://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);i(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function v(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||y}function b(){}function w(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||y}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&_("85"),this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var T=w.prototype=new b;T.constructor=w,r(T,v.prototype),T.isPureReactComponent=!0;var E={current:null},I=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r=void 0,i={},a=null,o=null;if(null!=t)for(r in void 0!==t.ref&&(o=t.ref),void 0!==t.key&&(a=""+t.key),t)I.call(t,r)&&!O.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var d=Array(s),c=0;c<s;c++)d[c]=arguments[c+2];i.children=d}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:u,type:e,key:a,ref:o,props:i,_owner:E.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===u}var A=/\/+/g,k=[];function N(e,t,n,r){if(k.length){var i=k.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function x(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>k.length&&k.push(e)}function R(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var a=!1;if(null===e)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case u:case d:a=!0}}if(a)return n(r,e,""===t?"."+F(e,0):t),1;if(a=0,t=""===t?".":t+":",Array.isArray(e))for(var o=0;o<e.length;o++){var s=t+F(i=e[o],o);a+=R(i,s,n,r)}else if(null==e?s=null:s="function"==typeof(s=m&&e[m]||e["@@iterator"])?s:null,"function"==typeof s)for(e=s.call(e),o=0;!(i=e.next()).done;)a+=R(i=i.value,s=t+F(i,o++),n,r);else"object"===i&&_("31","[object Object]"===(n=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":n,"");return a}function F(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function P(e,t){e.func.call(e.context,t,e.count++)}function j(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?M(e,r,n,o.thatReturnsArgument):null!=e&&(C(e)&&(t=i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(A,"$&/")+"/")+n,e={$$typeof:u,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}),r.push(e))}function M(e,t,n,r,i){var a="";null!=n&&(a=(""+n).replace(A,"$&/")+"/"),t=N(t,a,r,i),null==e||R(e,"",j,t),x(t)}var U={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return M(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;t=N(null,null,t,n),null==e||R(e,"",P,t),x(t)},count:function(e){return null==e?0:R(e,"",o.thatReturnsNull,null)},toArray:function(e){var t=[];return M(e,t,null,o.thatReturnsArgument),t},only:function(e){return C(e)||_("143"),e}},createRef:function(){return{current:null}},Component:v,PureComponent:w,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_defaultValue:e,_currentValue:e,_changedBits:0,Provider:null,Consumer:null}).Provider={$$typeof:f,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:g,render:e}},Fragment:c,StrictMode:l,unstable_AsyncMode:h,createElement:S,cloneElement:function(e,t,n){null==e&&_("267",e);var i=void 0,a=r({},e.props),o=e.key,s=e.ref,d=e._owner;if(null!=t){void 0!==t.ref&&(s=t.ref,d=E.current),void 0!==t.key&&(o=""+t.key);var c=void 0;for(i in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)I.call(t,i)&&!O.hasOwnProperty(i)&&(a[i]=void 0===t[i]&&void 0!==c?c[i]:t[i])}if(1===(i=arguments.length-2))a.children=n;else if(1<i){c=Array(i);for(var l=0;l<i;l++)c[l]=arguments[l+2];a.children=c}return{$$typeof:u,type:e.type,key:o,ref:s,props:a,_owner:d}},createFactory:function(e){var t=S.bind(null,e);return t.type=e,t},isValidElement:C,version:"16.3.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:E,assign:r}},L=Object.freeze({default:U}),D=L&&U||L;e.exports=D.default?D.default:D},296:function(e,t,n){"use strict"},297:function(e,t){e.exports=["ar","fa","he","ur"]},298:function(e,t){e.exports=["jpg","jpeg","gif","png","tif","bmp","heic"]},299:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=p(n(40)),a=f(n(0)),o=f(n(300)),s=f(n(13)),u=f(n(34)),d=p(n(301)),c=p(n(302)),l=p(n(303));function f(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function p(e){return e&&e.__esModule?e:{default:e}}var h=!0,g=function(){var e=[],t=void 0,n=void 0,r=void 0,i=arguments.length;if(i<2)throw new Error("ctor: ArgumentError: invalid argument combination");if(2===i)t=arguments[0],r=arguments[1];else if(3===i)t=arguments[0],r=arguments[2],a.isArray(arguments[1])?e=arguments[1]:n=arguments[1];else{if(4!==i)throw new Error("ctor: ArgumentError: invalid argument combination");t=arguments[0],n=arguments[1],e=arguments[2],r=arguments[3]}r.init=r.init||n&&n.prototype.init||function(){};var o=function(){h&&this.init.apply(this,arguments)},s=e.concat([r]);n&&(h=!1,o.prototype=new n,h=!0),function(e,t){a.extend.apply(a,[e].concat(t))}(o.prototype,s);var d=void 0;return t&&(d=t.split("."),u.ns(d.slice(0,-1))[d[d.length-1]]=o,o.prototype.declaredClass=t),o},m=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._models={},this._modelEventQueue=[],this._inTransaction=!1};m.prototype.create=function(e,t){t.hasAutoKey()&&t.assignAutoKey();var n=e.split(".")[2];return t=this.getModelStore(e).create(t),this._triggerEvent(n+"/create",t),this._triggerEvent(n+"/save",t),t},m.prototype.update=function(e,t,n){var r=this.getModelStore(e).update(t,n),i=e.split(".")[2];return this._triggerEvent(i+"/update",t,r),this._triggerEvent(i+"/"+t.id+"/update",t,r),this._triggerEvent(i+"/save",t,r),this._triggerEvent(i+"/"+t.id+"/save",t,r),r},m.prototype.destroy=function(e,t){var n=e.split(".")[2];return t=this.getModelStore(e).destroy(t),i.default.trigger(n+"/destroy",t),i.default.trigger(n+"/"+t.id+"/destroy",t),i.default.off(n+"/"+t.id+"/destroy"),i.default.off(n+"/"+t.id+"/save"),i.default.off(n+"/"+t.id+"/update"),i.default.off(n+"/"+t.id+"/create"),t},m.prototype.destroyAll=function(e){for(var t=u.ns(e).all(),n=0,r=t.length;n<r;++n)this.destroy(e,t[n])},m.prototype.clear=function(){var e=this._models;Object.keys(e||{}).forEach(function(e){u.ns(e).truncate()})},m.prototype.truncate=function(e){return this.getModelStore(e).truncate()},m.prototype.all=function(e){return this.getModelStore(e).all()},m.prototype.findById=function(e,t){return this.getModelStore(e).findById(t)},m.prototype.find=function(e,t,n){return this.getModelStore(e).find(t,n)},m.prototype.getModelStore=function(e){return this._models[e]},m.prototype.register=function(e){var t=this._define.apply(this,arguments);return this._models[e]=new d.default,t},m.prototype.getEventQueue=function(){return this._modelEventQueue},m.prototype.begin=function(){this._inTransaction=!0},m.prototype.commit=function(){if(this._inTransaction){var e=void 0;try{for(;this._modelEventQueue.length;)(e=this._modelEventQueue.shift()).changes?i.default.trigger(e.event,e.instance,e.changes):i.default.trigger(e.event,e.instance)}catch(e){s.warn("transaction error: undefined.undefined called with args: ",void 0,e,e.stack)}finally{this._inTransaction=!1,this._modelEventQueue=[]}}},m.prototype.transaction=function(e){this.begin(),e.call(e),this.commit()},m.prototype.inTransaction=function(){return this._inTransaction},m.prototype._triggerEvent=function(e,t,n){this._inTransaction?this._modelEventQueue.push({event:e,instance:t,changes:n}):n?i.default.trigger(e,t,n):i.default.trigger(e,t)},m.prototype._define=function(){var e=Array.prototype.slice.call(arguments,0),t=e.pop(),n=a.extend(function(){},o);n.prototype.declaredClass=e[0],a.extend(n.prototype,c.default),n.prototype.init=function(e){"object"===(void 0===e?"undefined":r(e))&&Object.keys(e||{}).forEach(function(t){Object.prototype.hasOwnProperty.call(e,t)&&(this[t]=e[t])}.bind(this))},a.extend(n,l.default),t.bind(n)();var i=g.apply(null,e.concat(n.prototype)),s=e[1],u=void 0;return"function"==typeof s?(a.extend(n.prototype,s),u=n.prototype,n.init||delete u.init):u=n,Object.keys(u||{}).forEach(function(e){Object.prototype.hasOwnProperty.call(u,e)&&(i[e]=u[e])}),i.prototype.setRepository(this),i},t.default=m},3:function(e,t,n){(function(r){var i,a,o,s;o=function(e,t,n,r){var i=e.Backbone,a=Array.prototype.slice;t.VERSION="1.3.3",t.$=r,t.noConflict=function(){return e.Backbone=i,this},t.emulateHTTP=!1,t.emulateJSON=!1;var o=function(e,t,r){n.each(t,function(t,i){n[i]&&(e.prototype[i]=function(e,t,r){switch(e){case 1:return function(){return n[t](this[r])};case 2:return function(e){return n[t](this[r],e)};case 3:return function(e,i){return n[t](this[r],s(e,this),i)};case 4:return function(e,i,a){return n[t](this[r],s(e,this),i,a)};default:return function(){var e=a.call(arguments);return e.unshift(this[r]),n[t].apply(n,e)}}}(t,i,r))})},s=function(e,t){return n.isFunction(e)?e:n.isObject(e)&&!t._isModel(e)?u(e):n.isString(e)?function(t){return t.get(e)}:e},u=function(e){var t=n.matches(e);return function(e){return t(e.attributes)}},d=t.Events={},c=/\s+/,l=function(e,t,r,i,a){var o,s=0;if(r&&"object"==typeof r){void 0!==i&&"context"in a&&void 0===a.context&&(a.context=i);for(o=n.keys(r);s<o.length;s++)t=l(e,t,o[s],r[o[s]],a)}else if(r&&c.test(r))for(o=r.split(c);s<o.length;s++)t=e(t,o[s],i,a);else t=e(t,r,i,a);return t};d.on=function(e,t,n){return f(this,e,t,n)};var f=function(e,t,n,r,i){(e._events=l(p,e._events||{},t,n,{context:r,ctx:e,listening:i}),i)&&((e._listeners||(e._listeners={}))[i.id]=i);return e};d.listenTo=function(e,t,r){if(!e)return this;var i=e._listenId||(e._listenId=n.uniqueId("l")),a=this._listeningTo||(this._listeningTo={}),o=a[i];if(!o){var s=this._listenId||(this._listenId=n.uniqueId("l"));o=a[i]={obj:e,objId:i,id:s,listeningTo:a,count:0}}return f(e,t,r,this,o),this};var p=function(e,t,n,r){if(n){var i=e[t]||(e[t]=[]),a=r.context,o=r.ctx,s=r.listening;s&&s.count++,i.push({callback:n,context:a,ctx:a||o,listening:s})}return e};d.off=function(e,t,n){return this._events?(this._events=l(h,this._events,e,t,{context:n,listeners:this._listeners}),this):this},d.stopListening=function(e,t,r){var i=this._listeningTo;if(!i)return this;for(var a=e?[e._listenId]:n.keys(i),o=0;o<a.length;o++){var s=i[a[o]];if(!s)break;s.obj.off(t,r,this)}return this};var h=function(e,t,r,i){if(e){var a,o=0,s=i.context,u=i.listeners;if(t||r||s){for(var d=t?[t]:n.keys(e);o<d.length;o++){var c=e[t=d[o]];if(!c)break;for(var l=[],f=0;f<c.length;f++){var p=c[f];r&&r!==p.callback&&r!==p.callback._callback||s&&s!==p.context?l.push(p):(a=p.listening)&&0==--a.count&&(delete u[a.id],delete a.listeningTo[a.objId])}l.length?e[t]=l:delete e[t]}return e}for(var h=n.keys(u);o<h.length;o++)delete u[(a=u[h[o]]).id],delete a.listeningTo[a.objId]}};d.once=function(e,t,r){var i=l(g,{},e,t,n.bind(this.off,this));return"string"==typeof e&&null==r&&(t=void 0),this.on(i,t,r)},d.listenToOnce=function(e,t,r){var i=l(g,{},t,r,n.bind(this.stopListening,this,e));return this.listenTo(e,i)};var g=function(e,t,r,i){if(r){var a=e[t]=n.once(function(){i(t,a),r.apply(this,arguments)});a._callback=r}return e};d.trigger=function(e){if(!this._events)return this;for(var t=Math.max(0,arguments.length-1),n=Array(t),r=0;r<t;r++)n[r]=arguments[r+1];return l(m,this._events,e,void 0,n),this};var m=function(e,t,n,r){if(e){var i=e[t],a=e.all;i&&a&&(a=a.slice()),i&&_(i,r),a&&_(a,[t].concat(r))}return e},_=function(e,t){var n,r=-1,i=e.length,a=t[0],o=t[1],s=t[2];switch(t.length){case 0:for(;++r<i;)(n=e[r]).callback.call(n.ctx);return;case 1:for(;++r<i;)(n=e[r]).callback.call(n.ctx,a);return;case 2:for(;++r<i;)(n=e[r]).callback.call(n.ctx,a,o);return;case 3:for(;++r<i;)(n=e[r]).callback.call(n.ctx,a,o,s);return;default:for(;++r<i;)(n=e[r]).callback.apply(n.ctx,t);return}};d.bind=d.on,d.unbind=d.off,n.extend(t,d);var y=t.Model=function(e,t){var r=e||{};t||(t={}),this.cid=n.uniqueId(this.cidPrefix),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(r=this.parse(r,t)||{});var i=n.result(this,"defaults");r=n.defaults(n.extend({},i,r),i),this.set(r,t),this.changed={},this.initialize.apply(this,arguments)};n.extend(y.prototype,d,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",initialize:function(){},toJSON:function(e){return n.clone(this.attributes)},sync:function(){return t.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return n.escape(this.get(e))},has:function(e){return null!=this.get(e)},matches:function(e){return!!n.iteratee(e,this)(this.attributes)},set:function(e,t,r){if(null==e)return this;var i;if("object"==typeof e?(i=e,r=t):(i={})[e]=t,r||(r={}),!this._validate(i,r))return!1;var a=r.unset,o=r.silent,s=[],u=this._changing;this._changing=!0,u||(this._previousAttributes=n.clone(this.attributes),this.changed={});var d=this.attributes,c=this.changed,l=this._previousAttributes;for(var f in i)t=i[f],n.isEqual(d[f],t)||s.push(f),n.isEqual(l[f],t)?delete c[f]:c[f]=t,a?delete d[f]:d[f]=t;if(this.idAttribute in i&&(this.id=this.get(this.idAttribute)),!o){s.length&&(this._pending=r);for(var p=0;p<s.length;p++)this.trigger("change:"+s[p],this,d[s[p]],r)}if(u)return this;if(!o)for(;this._pending;)r=this._pending,this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,n.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var r in this.attributes)t[r]=void 0;return this.set(t,n.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!n.isEmpty(this.changed):n.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&n.clone(this.changed);var t=this._changing?this._previousAttributes:this.attributes,r={};for(var i in e){var a=e[i];n.isEqual(t[i],a)||(r[i]=a)}return!!n.size(r)&&r},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(e){e=n.extend({parse:!0},e);var t=this,r=e.success;return e.success=function(n){var i=e.parse?t.parse(n,e):n;if(!t.set(i,e))return!1;r&&r.call(e.context,t,n,e),t.trigger("sync",t,n,e)},U(this,e),this.sync("read",this,e)},save:function(e,t,r){var i;null==e||"object"==typeof e?(i=e,r=t):(i={})[e]=t;var a=(r=n.extend({validate:!0,parse:!0},r)).wait;if(i&&!a){if(!this.set(i,r))return!1}else if(!this._validate(i,r))return!1;var o=this,s=r.success,u=this.attributes;r.success=function(e){o.attributes=u;var t=r.parse?o.parse(e,r):e;if(a&&(t=n.extend({},i,t)),t&&!o.set(t,r))return!1;s&&s.call(r.context,o,e,r),o.trigger("sync",o,e,r)},U(this,r),i&&a&&(this.attributes=n.extend({},u,i));var d=this.isNew()?"create":r.patch?"patch":"update";"patch"!==d||r.attrs||(r.attrs=i);var c=this.sync(d,this,r);return this.attributes=u,c},destroy:function(e){e=e?n.clone(e):{};var t=this,r=e.success,i=e.wait,a=function(){t.stopListening(),t.trigger("destroy",t,t.collection,e)};e.success=function(n){i&&a(),r&&r.call(e.context,t,n,e),t.isNew()||t.trigger("sync",t,n,e)};var o=!1;return this.isNew()?n.defer(e.success):(U(this,e),o=this.sync("delete",this,e)),i||a(),o},url:function(){var e=n.result(this,"urlRoot")||n.result(this.collection,"url")||M();if(this.isNew())return e;var t=this.get(this.idAttribute);return e.replace(/[^\/]$/,"$&/")+encodeURIComponent(t)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(e){return this._validate({},n.extend({},e,{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=n.extend({},this.attributes,e);var r=this.validationError=this.validate(e,t)||null;return!r||(this.trigger("invalid",this,r,n.extend(t,{validationError:r})),!1)}});o(y,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes");var v=t.Collection=function(e,t){t||(t={}),t.model&&(this.model=t.model),void 0!==t.comparator&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,n.extend({silent:!0},t))},b={add:!0,remove:!0,merge:!0},w={add:!0,remove:!1},T=function(e,t,n){n=Math.min(Math.max(n,0),e.length);var r,i=Array(e.length-n),a=t.length;for(r=0;r<i.length;r++)i[r]=e[r+n];for(r=0;r<a;r++)e[r+n]=t[r];for(r=0;r<i.length;r++)e[r+a+n]=i[r]};n.extend(v.prototype,d,{model:y,initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return t.sync.apply(this,arguments)},add:function(e,t){return this.set(e,n.extend({merge:!1},t,w))},remove:function(e,t){t=n.extend({},t);var r=!n.isArray(e);e=r?[e]:e.slice();var i=this._removeModels(e,t);return!t.silent&&i.length&&(t.changes={added:[],merged:[],removed:i},this.trigger("update",this,t)),r?i[0]:i},set:function(e,t){if(null!=e){(t=n.extend({},b,t)).parse&&!this._isModel(e)&&(e=this.parse(e,t)||[]);var r=!n.isArray(e);e=r?[e]:e.slice();var i=t.at;null!=i&&(i=+i),i>this.length&&(i=this.length),i<0&&(i+=this.length+1);var a,o,s=[],u=[],d=[],c=[],l={},f=t.add,p=t.merge,h=t.remove,g=!1,m=this.comparator&&null==i&&!1!==t.sort,_=n.isString(this.comparator)?this.comparator:null;for(o=0;o<e.length;o++){a=e[o];var y=this.get(a);if(y){if(p&&a!==y){var v=this._isModel(a)?a.attributes:a;t.parse&&(v=y.parse(v,t)),y.set(v,t),d.push(y),m&&!g&&(g=y.hasChanged(_))}l[y.cid]||(l[y.cid]=!0,s.push(y)),e[o]=y}else f&&(a=e[o]=this._prepareModel(a,t))&&(u.push(a),this._addReference(a,t),l[a.cid]=!0,s.push(a))}if(h){for(o=0;o<this.length;o++)l[(a=this.models[o]).cid]||c.push(a);c.length&&this._removeModels(c,t)}var w=!1,E=!m&&f&&h;if(s.length&&E?(w=this.length!==s.length||n.some(this.models,function(e,t){return e!==s[t]}),this.models.length=0,T(this.models,s,0),this.length=this.models.length):u.length&&(m&&(g=!0),T(this.models,u,null==i?this.length:i),this.length=this.models.length),g&&this.sort({silent:!0}),!t.silent){for(o=0;o<u.length;o++)null!=i&&(t.index=i+o),(a=u[o]).trigger("add",a,this,t);(g||w)&&this.trigger("sort",this,t),(u.length||c.length||d.length)&&(t.changes={added:u,removed:c,merged:d},this.trigger("update",this,t))}return r?e[0]:e}},reset:function(e,t){t=t?n.clone(t):{};for(var r=0;r<this.models.length;r++)this._removeReference(this.models[r],t);return t.previousModels=this.models,this._reset(),e=this.add(e,n.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},push:function(e,t){return this.add(e,n.extend({at:this.length},t))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e)},unshift:function(e,t){return this.add(e,n.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e)},slice:function(){return a.apply(this.models,arguments)},get:function(e){if(null!=e)return this._byId[e]||this._byId[this.modelId(e.attributes||e)]||e.cid&&this._byId[e.cid]},has:function(e){return null!=this.get(e)},at:function(e){return e<0&&(e+=this.length),this.models[e]},where:function(e,t){return this[t?"find":"filter"](e)},findWhere:function(e){return this.where(e,!0)},sort:function(e){var t=this.comparator;if(!t)throw new Error("Cannot sort a set without a comparator");e||(e={});var r=t.length;return n.isFunction(t)&&(t=n.bind(t,this)),1===r||n.isString(t)?this.models=this.sortBy(t):this.models.sort(t),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return this.map(e+"")},fetch:function(e){var t=(e=n.extend({parse:!0},e)).success,r=this;return e.success=function(n){var i=e.reset?"reset":"set";r[i](n,e),t&&t.call(e.context,r,n,e),r.trigger("sync",r,n,e)},U(this,e),this.sync("read",this,e)},create:function(e,t){var r=(t=t?n.clone(t):{}).wait;if(!(e=this._prepareModel(e,t)))return!1;r||this.add(e,t);var i=this,a=t.success;return t.success=function(e,t,n){r&&i.add(e,n),a&&a.call(n.context,e,t,n)},e.save(null,t),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(e){return e[this.model.prototype.idAttribute||"id"]},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){if(this._isModel(e))return e.collection||(e.collection=this),e;(t=t?n.clone(t):{}).collection=this;var r=new this.model(e,t);return r.validationError?(this.trigger("invalid",this,r.validationError,t),!1):r},_removeModels:function(e,t){for(var n=[],r=0;r<e.length;r++){var i=this.get(e[r]);if(i){var a=this.indexOf(i);this.models.splice(a,1),this.length--,delete this._byId[i.cid];var o=this.modelId(i.attributes);null!=o&&delete this._byId[o],t.silent||(t.index=a,i.trigger("remove",i,this,t)),n.push(i),this._removeReference(i,t)}}return n},_isModel:function(e){return e instanceof y},_addReference:function(e,t){this._byId[e.cid]=e;var n=this.modelId(e.attributes);null!=n&&(this._byId[n]=e),e.on("all",this._onModelEvent,this)},_removeReference:function(e,t){delete this._byId[e.cid];var n=this.modelId(e.attributes);null!=n&&delete this._byId[n],this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,n,r){if(t){if(("add"===e||"remove"===e)&&n!==this)return;if("destroy"===e&&this.remove(t,r),"change"===e){var i=this.modelId(t.previousAttributes()),a=this.modelId(t.attributes);i!==a&&(null!=i&&delete this._byId[i],null!=a&&(this._byId[a]=t))}}this.trigger.apply(this,arguments)}});o(v,{forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3},"models");var E=t.View=function(e){this.cid=n.uniqueId("view"),n.extend(this,n.pick(e,O)),this._ensureElement(),this.initialize.apply(this,arguments)},I=/^(\S+)\s*(.*)$/,O=["model","collection","el","id","attributes","className","tagName","events"];n.extend(E.prototype,d,{tagName:"div",$:function(e){return this.$el.find(e)},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(e){return this.undelegateEvents(),this._setElement(e),this.delegateEvents(),this},_setElement:function(e){this.$el=e instanceof t.$?e:t.$(e),this.el=this.$el[0]},delegateEvents:function(e){if(e||(e=n.result(this,"events")),!e)return this;for(var t in this.undelegateEvents(),e){var r=e[t];if(n.isFunction(r)||(r=this[r]),r){var i=t.match(I);this.delegate(i[1],i[2],n.bind(r,this))}}return this},delegate:function(e,t,n){return this.$el.on(e+".delegateEvents"+this.cid,t,n),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(e,t,n){return this.$el.off(e+".delegateEvents"+this.cid,t,n),this},_createElement:function(e){return document.createElement(e)},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"));else{var e=n.extend({},n.result(this,"attributes"));this.id&&(e.id=n.result(this,"id")),this.className&&(e.class=n.result(this,"className")),this.setElement(this._createElement(n.result(this,"tagName"))),this._setAttributes(e)}},_setAttributes:function(e){this.$el.attr(e)}}),t.sync=function(e,r,i){var a=S[e];n.defaults(i||(i={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.emulateJSON});var o={type:a,dataType:"json"};if(i.url||(o.url=n.result(r,"url")||M()),null!=i.data||!r||"create"!==e&&"update"!==e&&"patch"!==e||(o.contentType="application/json",o.data=JSON.stringify(i.attrs||r.toJSON(i))),i.emulateJSON&&(o.contentType="application/x-www-form-urlencoded",o.data=o.data?{model:o.data}:{}),i.emulateHTTP&&("PUT"===a||"DELETE"===a||"PATCH"===a)){o.type="POST",i.emulateJSON&&(o.data._method=a);var s=i.beforeSend;i.beforeSend=function(e){if(e.setRequestHeader("X-HTTP-Method-Override",a),s)return s.apply(this,arguments)}}"GET"===o.type||i.emulateJSON||(o.processData=!1);var u=i.error;i.error=function(e,t,n){i.textStatus=t,i.errorThrown=n,u&&u.call(i.context,e,t,n)};var d=i.xhr=t.ajax(n.extend(o,i));return r.trigger("request",r,d,i),d};var S={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};t.ajax=function(){return t.$.ajax.apply(t.$,arguments)};var C=t.Router=function(e){e||(e={}),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},A=/\((.*?)\)/g,k=/(\(\?)?:\w+/g,N=/\*\w+/g,x=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(C.prototype,d,{initialize:function(){},route:function(e,r,i){n.isRegExp(e)||(e=this._routeToRegExp(e)),n.isFunction(r)&&(i=r,r=""),i||(i=this[r]);var a=this;return t.history.route(e,function(n){var o=a._extractParameters(e,n);!1!==a.execute(i,o,r)&&(a.trigger.apply(a,["route:"+r].concat(o)),a.trigger("route",r,o),t.history.trigger("route",a,r,o))}),this},execute:function(e,t,n){e&&e.apply(this,t)},navigate:function(e,n){return t.history.navigate(e,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var e,t=n.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(x,"\\$&").replace(A,"(?:$1)?").replace(k,function(e,t){return t?e:"([^/?]+)"}).replace(N,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,t){var r=e.exec(t).slice(1);return n.map(r,function(e,t){return t===r.length-1?e||null:e?decodeURIComponent(e):null})}});var R=t.History=function(){this.handlers=[],this.checkUrl=n.bind(this.checkUrl,this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},F=/^[#\/]|\s+$/g,P=/^\/+|\/+$/g,j=/#.*$/;R.started=!1,n.extend(R.prototype,d,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(e){return decodeURI(e.replace(/%25/g,"%2525"))},getSearch:function(){var e=this.location.href.replace(/#.*/,"").match(/\?.+/);return e?e[0]:""},getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getPath:function(){var e=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===e.charAt(0)?e.slice(1):e},getFragment:function(e){return null==e&&(e=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),e.replace(F,"")},start:function(e){if(R.started)throw new Error("Backbone.history has already been started");if(R.started=!0,this.options=n.extend({root:"/"},this.options,e),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(P,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var t=this.root.slice(0,-1)||"/";return this.location.replace(t+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var r=document.body,i=r.insertBefore(this.iframe,r.firstChild).contentWindow;i.document.open(),i.document.close(),i.location.hash="#"+this.fragment}var a=window.addEventListener||function(e,t){return attachEvent("on"+e,t)};if(this._usePushState?a("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?a("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var e=window.removeEventListener||function(e,t){return detachEvent("on"+e,t)};this._usePushState?e("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&e("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),R.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getHash(this.iframe.contentWindow)),t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return!!this.matchRoot()&&(e=this.fragment=this.getFragment(e),n.some(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0}))},navigate:function(e,t){if(!R.started)return!1;t&&!0!==t||(t={trigger:!!t}),e=this.getFragment(e||"");var n=this.root;""!==e&&"?"!==e.charAt(0)||(n=n.slice(0,-1)||"/");var r=n+e;if(e=this.decodeFragment(e.replace(j,"")),this.fragment!==e){if(this.fragment=e,this._usePushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,r);else{if(!this._wantsHashChange)return this.location.assign(r);if(this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getHash(this.iframe.contentWindow)){var i=this.iframe.contentWindow;t.replace||(i.document.open(),i.document.close()),this._updateHash(i.location,e,t.replace)}}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,n){if(n){var r=e.href.replace(/(javascript:|#).*$/,"");e.replace(r+"#"+t)}else e.hash="#"+t}}),t.history=new R;y.extend=v.extend=C.extend=E.extend=R.extend=function(e,t){var r,i=this;return r=e&&n.has(e,"constructor")?e.constructor:function(){return i.apply(this,arguments)},n.extend(r,i,t),r.prototype=n.create(i.prototype,e),r.prototype.constructor=r,r.__super__=i.prototype,r};var M=function(){throw new Error('A "url" property or function must be specified')},U=function(e,t){var n=t.error;t.error=function(r){n&&n.call(t.context,e,r,t),e.trigger("error",e,r,t)}};return t},s="object"==typeof self&&self.self===self&&self||"object"==typeof r&&r.global===r&&r,i=[n(0),n(8),t],void 0===(a=function(e,t,n){s.Backbone=o(s,n,e,t)}.apply(t,i))||(e.exports=a)}).call(t,n(38))},30:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(92),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a={},o=function(e,t){switch(void 0===e&&(e=a),t.type){case"SESSION.BOOTSTRAP":return t.payload.client;case"SESSION.UPDATE_FROM_LEGACY_CONFIG":var n=t.payload,r=n.appId,o=void 0===r?e.appId:r,s=n.aadClientId,u=void 0===s?e.aadClientId:s;return i({},e,{appId:o,aadClientId:u});case"SESSION.RESET":return a;default:return e}},s=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},u={accessTokenValid:!0},d=function(e,t){switch(void 0===e&&(e=u),t.type){case"ACCESS_TOKEN.SET":case"ACCESS_TOKEN.REFRESH_FROM_COOKIE_FULFILLED":case"ACCESS_TOKEN.REFRESH_FROM_SERVER_FULFILLED":return s({},e,{accessToken:t.payload.accessToken});case"ACCESS_TOKEN.CLEAR":return s({},e,{accessToken:void 0});case"AUTHENTICITY_TOKEN.SET":return s({},e,{authenticityToken:t.payload.authenticityToken});case"OFFICE_ACCESS_TOKEN.CLEAR":return s({},e,{officeAccessToken:void 0});case"OFFICE_ACCESS_TOKEN.SET":return s({},e,{officeAccessToken:t.payload.token,officeAccessTokenRefreshPending:!1});case"OFFICE_ACCESS_TOKEN_REFRESH_PENDING.CLEAR":return s({},e,{officeAccessTokenRefreshPending:!1});case"OFFICE_ACCESS_TOKEN_REFRESH_PENDING.SET":return s({},e,{officeAccessTokenRefreshPending:!0});case"SESSION.BOOTSTRAP":var n=t.payload.credentials,r=n.accessToken,i=void 0===r?e.accessToken:r,a=n.authenticityToken,o=void 0===a?e.authenticityToken:a;return s({},t.payload.credentials,{accessToken:i,authenticityToken:o});case"SESSION.UPDATE_FROM_LEGACY_CONFIG":var d=t.payload.csrf_token,c=void 0===d?e.authenticityToken:d;return s({},e,{authenticityToken:c});case"SESSION.RESET":return u;case"SESSION.INVALIDATION_FULFILLED":case"SESSION.INVALIDATION_REJECTED":return s({},e,{accessTokenValid:!1});default:return e}},c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},l={base:"https://www.yammer.com",api:"https://api.yammer.com",broadcast:"https://broadcast.yammer.com",aadTokenResource:"https://www.yammer.com"},f=function(e,t){switch(void 0===e&&(e=l),t.type){case"SESSION.BOOTSTRAP":return t.payload.hosts;case"SESSION.UPDATE_FROM_LEGACY_CONFIG":var n=t.payload,r=n.baseURI,i=void 0===r?e.base:r,a=n.apiBaseURI,o=void 0===a?e.api:a,s=n.broadcastHost,u=void 0===s?e.broadcast:s,d=n.aadTokenResource,f=void 0===d?e.aadTokenResource:d;return c({},e,{base:i,api:o,broadcast:u,aadTokenResource:f});case"SESSION.RESET":return l;default:return e}},p=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},h={pageLoadId:"",clientLoadTime:0,yamjsRevision:""},g=function(e,t){switch(void 0===e&&(e=h),t.type){case"SESSION.BOOTSTRAP":return t.payload.telemetry;case"SESSION.UPDATE_FROM_LEGACY_CONFIG":var n=t.payload.yamjsRevision,r=void 0===n?e.yamjsRevision:n;return p({},e,{yamjsRevision:r});case"SESSION.RESET":return h;default:return e}},m={},_=function(e,t){switch(void 0===e&&(e=m),t.type){case"SESSION.USER_REFRESHED":case"SESSION.BOOTSTRAP":var n=t.payload.user,r=n.guest,i=n.id,a=n.state,o=n.can_create_connected_groups;return{id:i,state:a,networkId:t.payload.network.id,can_create_connected_groups:o,guest:r};case"SESSION.RESET":return m;default:return e}},y=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},v={shouldShowPrivacyPolicy:!0},b=function(e,t){switch(void 0===e&&(e=v),t.type){case"SESSION.USER_REFRESHED":case"SESSION.BOOTSTRAP":var n=t.payload.network;return{id:n.id,permalink:n.permalink,shouldShowPrivacyPolicy:n.shouldShowPrivacyPolicy};case"SESSION.RESET":return v;case"SESSION.FELL_BACK_TO_MASTHEAD":return y({},e,{shouldShowPrivacyPolicy:!0});default:return e}},w=Object(r.c)({client:o,credentials:d,hosts:f,telemetry:g,user:_,network:b,yammerEnvironment:function(e,t){switch(void 0===e&&(e="production"),t.type){case"SESSION.BOOTSTRAP":return t.payload.yammerEnvironment;case"SESSION.UPDATE_FROM_LEGACY_CONFIG":return void 0!==t.payload.yammer_environment?t.payload.yammer_environment:e;case"SESSION.RESET":return"production";default:return e}}}),T=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},E=function(e,t){return Object.keys(e).reduce(function(n,r){return-1===t.indexOf(r)?T({},n,((i={})[r]=e[r],i)):n;var i},{})},I=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},O={pending:{byId:{}},fulfilled:{byId:{}},rejected:{byId:{}}},S=function(e,t){switch(void 0===e&&(e=O),t.type){case"BANNERS.FETCH_PENDING":var n=(o=t.payload.ids).reduce(function(e,t){return I({},e,((n={})[t]=!0,n));var n},{}),r=E(e.rejected.byId,o);return I({},e,{pending:I({},e.pending,{byId:I({},e.pending.byId,n)}),rejected:I({},e.rejected,{byId:r})});case"BANNERS.FETCH_FULFILLED":var i=t.payload,a=i.reduce(function(e,t){return I({},e,((n={})[t.id]=t,n));var n},{}),o=i.map(function(e){return e.id}),s=(r=E(e.rejected.byId,o),E(e.pending.byId,o));return I({},e,{fulfilled:I({},e.fulfilled,{byId:I({},e.fulfilled.byId,a)}),rejected:I({},e.rejected,{byId:r}),pending:I({},e.pending,{byId:s})});case"BANNERS.FETCH_REJECTED":var u=t.payload,d=(o=u.ids,u.error),c=o.reduce(function(e,t){return I({},e,((n={})[t]=d,n));var n},{});return s=E(e.pending.byId,o),I({},e,{rejected:I({},e.rejected,{byId:I({},e.rejected.byId,c)}),pending:I({},e.pending,{byId:s})});case"BANNERS.OPT_OUT_FULFILLED":var l=t.payload.id,f=e.fulfilled.byId[l];return I({},e,{fulfilled:I({},e.fulfilled,{byId:I({},e.fulfilled.byId,(g={},g[l]=I({},f,{isOptedOut:!0}),g))})});case"BANNERS.INCREMENT_FULFILLED":return l=t.payload.id,f=e.fulfilled.byId[l],I({},e,{fulfilled:I({},e.fulfilled,{byId:I({},e.fulfilled.byId,(m={},m[l]=I({},f,{count:f.count+1}),m))})});case"BANNERS.BOOTSTRAP":var p=t.payload.banners.map(function(e){return e.id}),h=t.payload.banners.reduce(function(e,t){return I({},e,((n={})[t.id]=t,n));var n},{});return I({},e,{pending:{byId:E(e.pending.byId,p)},rejected:{byId:E(e.rejected.byId,p)},fulfilled:{byId:I({},e.fulfilled.byId,h)}});default:return e}var g,m},C=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},A={pending:{byId:{}},fulfilled:{byId:{}},rejected:{byId:{}}},k=function(e,t){switch(void 0===e&&(e=A),t.type){case"PDF_PREVIEWS.FETCH_PENDING":var n=t.payload.id,r=E(e.fulfilled.byId,[n]),i=E(e.rejected.byId,[n]);return C({},e,{pending:C({},e.pending,{byId:C({},e.pending.byId,(d={},d[n]=!0,d))}),fulfilled:C({},e.fulfilled,{byId:r}),rejected:C({},e.rejected,{byId:i})});case"PDF_PREVIEWS.FETCH_FULFILLED":var a=t.payload,o=(n=a.id,E(e.pending.byId,[n]));return i=E(e.rejected.byId,[n]),C({},e,{fulfilled:C({},e.fulfilled,{byId:C({},e.fulfilled.byId,(c={},c[n]=a,c))}),pending:C({},e.pending,{byId:o}),rejected:C({},e.rejected,{byId:i})});case"PDF_PREVIEWS.FETCH_REJECTED":var s=t.payload,u=(n=s.id,s.error);return o=E(e.pending.byId,[n]),C({},e,{rejected:C({},e.rejected,{byId:C({},e.rejected.byId,(l={},l[n]=u,l))}),pending:C({},e.pending,{byId:o})});case"PDF_PREVIEWS.CLEANUP":return n=t.payload.id,o=E(e.pending.byId,[n]),r=E(e.fulfilled.byId,[n]),i=E(e.rejected.byId,[n]),C({},e,{pending:C({},e.pending,{byId:o}),fulfilled:C({},e.fulfilled,{byId:r}),rejected:C({},e.rejected,{byId:i})});default:return e}var d,c,l},N=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},x=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n},R={pending:{byGroupId:{},byNetworkId:{},byBroadcastId:{}},fulfilled:{byId:{}},rejected:{byGroupId:{},byNetworkId:{},byBroadcastId:{}}},F=function(e){return e.reduce(function(e,t){return N({},e,((n={})[t.id]=t,n));var n},{})},P=function(e){e.status,e.cancelled,e.yammerGroupId;return x(e,["status","cancelled","yammerGroupId"])},j=function(e,t){switch(void 0===e&&(e=R),t.type){case"BROADCASTS.FETCH_PENDING":var n=t.payload.broadcastId,r=E(e.rejected.byBroadcastId,[n]);return N({},e,{pending:N({},e.pending,{byBroadcastId:N({},e.pending.byBroadcastId,(v={},v[n]=!0,v))}),rejected:N({},e.rejected,{byBroadcastId:N({},r)})});case"BROADCASTS_BY_GROUP.FETCH_PENDING":var i=t.payload.groupId,a=E(e.rejected.byGroupId,[""+i]);return N({},e,{pending:N({},e.pending,{byGroupId:N({},e.pending.byGroupId,(b={},b[i]=!0,b))}),rejected:N({},e.rejected,{byGroupId:N({},a)})});case"BROADCASTS_BY_NETWORK.FETCH_PENDING":var o=t.payload.networkId,s=E(e.rejected.byNetworkId,[""+o]);return N({},e,{pending:N({},e.pending,{byNetworkId:N({},e.pending.byNetworkId,(w={},w[o]=!0,w))}),rejected:N({},e.rejected,{byNetworkId:N({},s)})});case"BROADCASTS.FETCH_FULFILLED":var u=P(t.payload),d=E(e.pending.byBroadcastId,[u.id]);return r=E(e.rejected.byBroadcastId,[u.id]),N({},e,{pending:N({},e.pending,{byBroadcastId:N({},d)}),fulfilled:{byId:N({},e.fulfilled.byId,F([u]))},rejected:N({},e.rejected,{byBroadcastId:N({},r)})});case"BROADCASTS_BY_GROUP.FETCH_FULFILLED":i=t.payload.groupId;var c=t.payload.broadcasts.map(P),l=E(e.pending.byGroupId,[""+i]);return a=E(e.rejected.byGroupId,[""+i]),N({},e,{pending:N({},e.pending,{byGroupId:N({},l)}),fulfilled:{byId:N({},e.fulfilled.byId,F(c))},rejected:N({},e.rejected,{byGroupId:N({},a)})});case"BROADCASTS_BY_NETWORK.FETCH_FULFILLED":o=t.payload.networkId,c=t.payload.broadcasts.map(P);var f=E(e.pending.byNetworkId,[""+o]);return s=E(e.rejected.byNetworkId,[""+o]),N({},e,{pending:N({},e.pending,{byNetworkId:N({},f)}),fulfilled:{byId:N({},e.fulfilled.byId,F(c))},rejected:N({},e.rejected,{byNetworkId:N({},s)})});case"LIVE_EVENT.CREATE_FULFILLED":return u=t.payload,d=E(e.pending.byBroadcastId,[u.id]),r=E(e.rejected.byBroadcastId,[u.id]),N({},e,{pending:N({},e.pending,{byBroadcastId:N({},d)}),fulfilled:{byId:N({},e.fulfilled.byId,F([u]))},rejected:N({},e.rejected,{byBroadcastId:N({},r)})});case"LIVE_EVENT.EDIT_FULFILLED":return u=P(t.payload.broadcast),d=E(e.pending.byBroadcastId,[u.id]),r=E(e.rejected.byBroadcastId,[u.id]),N({},e,{fulfilled:{byId:N({},e.fulfilled.byId,F([u]))},pending:N({},e.pending,{byBroadcastId:N({},d)}),rejected:N({},e.rejected,{byBroadcastId:N({},r)})});case"LIVE_EVENT.CANCEL_FULFILLED":var p=t.payload.id,h=(d=E(e.pending.byBroadcastId,[p]),r=E(e.rejected.byBroadcastId,[p]),E(e.fulfilled.byId,[p]));return N({},e,{fulfilled:N({},e.fulfilled,{byId:N({},h)}),pending:N({},e.pending,{byBroadcastId:N({},d)}),rejected:N({},e.rejected,{byBroadcastId:N({},r)})});case"BROADCASTS.FETCH_REJECTED":var g=t.payload,m=(n=g.broadcastId,g.error);return d=E(e.pending.byBroadcastId,[""+n]),N({},e,{pending:N({},e.pending,{byBroadcastId:N({},d)}),rejected:N({},e.rejected,{byBroadcastId:N({},e.rejected.byBroadcastId,(T={},T[n]=m,T))})});case"BROADCASTS_BY_GROUP.FETCH_REJECTED":var _=t.payload;return i=_.groupId,m=_.error,l=E(e.pending.byGroupId,[""+i]),N({},e,{pending:N({},e.pending,{byGroupId:N({},l)}),rejected:N({},e.rejected,{byGroupId:N({},e.rejected.byGroupId,(I={},I[i]=m,I))})});case"BROADCASTS_BY_NETWORK.FETCH_REJECTED":var y=t.payload;return o=y.networkId,m=y.error,f=E(e.pending.byNetworkId,[""+o]),N({},e,{pending:N({},e.pending,{byNetworkId:N({},f)}),rejected:N({},e.rejected,{byNetworkId:N({},e.rejected.byNetworkId,(O={},O[o]=m,O))})});default:return e}var v,b,w,T,I,O},M=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},U={byId:{}},L=function(e){return e.reduce(function(e,t){return M({},e,((n={})[t.id]={id:t.id,cancelled:t.cancelled,status:t.status,yammerGroupId:t.yammerGroupId},n));var n},{})},D=function(e,t){switch(void 0===e&&(e=U),t.type){case"BROADCAST_STATUSES.UPDATE":var n=t.payload.broadcastStatusInformation;return{byId:M({},e.byId,(a={},a[n.id]={id:n.id,cancelled:n.cancelled,status:n.status,yammerGroupId:n.yammerGroupId},a))};case"BROADCASTS.FETCH_FULFILLED":var r=t.payload;return{byId:M({},e.byId,(o={},o[r.id]={id:r.id,cancelled:r.cancelled,status:r.status,yammerGroupId:r.yammerGroupId},o))};case"BROADCASTS_BY_GROUP.FETCH_FULFILLED":case"BROADCASTS_BY_NETWORK.FETCH_FULFILLED":var i=t.payload.broadcasts;return{byId:M({},e.byId,L(i))};default:return e}var a,o},G=n(97),q=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},H={isEmbed:!1,aadTokenAuthStatus:"UNSTARTED"},B=function(e){switch(e){case G.AuthenticationFailureReason.pendingUser:return"FAILED.PENDING_USER";case G.AuthenticationFailureReason.invalidAadToken:return"FAILED.INVALID_AAD_TOKEN";case G.AuthenticationFailureReason.userSuspended:return"FAILED.USER_SUSPENDED";case G.AuthenticationFailureReason.other:default:return"FAILED.OTHER"}},W=function(e,t){switch(void 0===e&&(e=H),t.type){case"SESSION.UPDATE_FROM_LEGACY_CONFIG":var n=t.payload.isEmbed,r=void 0===n?e.isEmbed:n;return q({},e,{isEmbed:r});case"SESSION.RESET":return H;case"EMBED.BOOTSTRAP":return q({},e,{options:t.payload});case"EMBED.AUTHENTICATE_FROM_AAD_TOKEN_PENDING":return q({},e,{aadTokenAuthStatus:"PENDING"});case"EMBED.AUTHENTICATE_FROM_AAD_TOKEN_SUCCESSFUL":var i=t.payload.oauthToken,a=void 0===i?e.oauthToken:i;return q({},e,{aadTokenAuthStatus:"SUCCESSFUL",oauthToken:a});case"EMBED.AUTHENTICATE_FROM_AAD_TOKEN_FAILED":var o=t.payload.failureReason,s=B(o);return q({},e,{aadTokenAuthStatus:s});default:return e}},$={isPlaceholderActive:!1},V=function(e,t){switch(void 0===e&&(e=$),t.type){case"FOCUS_PORTAL.SET_PLACEHOLDER_STATE":return{isPlaceholderActive:t.payload.isPlaceholderActive};default:return e}},z=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},K={pending:{byId:{}},fulfilled:{byId:{}},rejected:{byId:{}}},Y=function(e,t){switch(void 0===e&&(e=K),t.type){case"USERS.FETCH_PENDING":var n=t.payload.id,r=E(e.fulfilled.byId,[n]),i=E(e.rejected.byId,[n]);return z({},e,{pending:z({},e.pending,{byId:z({},e.pending.byId,(c={},c[n]=!0,c))}),fulfilled:z({},e.fulfilled,{byId:r}),rejected:z({},e.rejected,{byId:i})});case"USERS.FETCH_FULFILLED":n=""+(u=t.payload).id;var a=E(e.pending.byId,[n]);return i=E(e.rejected.byId,[n]),z({},e,{fulfilled:z({},e.fulfilled,{byId:z({},e.fulfilled.byId,(l={},l[n]=u,l))}),pending:z({},e.pending,{byId:a}),rejected:z({},e.rejected,{byId:i})});case"USERS.FETCH_REJECTED":var o=t.payload,s=(n=o.id,o.error);return a=E(e.pending.byId,[n]),r=E(e.fulfilled.byId,[n]),z({},e,{rejected:z({},e.rejected,{byId:z({},e.rejected.byId,(f={},f[n]=s,f))}),pending:z({},e.pending,{byId:a}),fulfilled:z({},e.fulfilled,{byId:r})});case"USERS.AUTCOMPLETE_FULFILLED":var u;return n=""+(u=t.payload).id,a=E(e.pending.byId,[n]),i=E(e.rejected.byId,[n]),z({},e,{fulfilled:z({},e.fulfilled,{byId:z({},e.fulfilled.byId,(p={},p[n]=u,p))}),rejected:z({},e.rejected,{byId:i}),pending:z({},e.pending,{byId:a})});case"BROADCASTS_BY_GROUP.FETCH_FULFILLED":var d=t.payload.users;return z({},e,{fulfilled:z({},e.fulfilled,{byId:z({},e.fulfilled.byId,d)})});default:return e}var c,l,f,p},Q=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},J={pending:{byId:{}},fulfilled:{byId:{}},rejected:{byId:{}}},X=function(e,t){switch(void 0===e&&(e=J),t.type){case"LIVE_EVENT.CREATE_PENDING":var n=t.payload.o365GroupId,r=E(e.fulfilled.byId,[n]),i=E(e.rejected.byId,[n]);return Q({},e,{pending:Q({},e.pending,{byId:Q({},e.pending.byId,(c={},c[n]=!0,c))}),fulfilled:Q({},e.fulfilled,{byId:r}),rejected:Q({},e.rejected,{byId:i})});case"LIVE_EVENT.CREATE_FULFILLED":var a=t.payload,o=(n=a.o365GroupId,a.id),s=E(e.pending.byId,[n]);return i=E(e.rejected.byId,[n]),Q({},e,{fulfilled:Q({},e.fulfilled,{byId:Q({},e.fulfilled.byId,(l={},l[n]=o,l))}),pending:Q({},e.pending,{byId:s}),rejected:Q({},e.rejected,{byId:i})});case"LIVE_EVENT.CREATE_REJECTED":var u=t.payload,d=(n=u.o365GroupId,u.error);return s=E(e.pending.byId,[n]),r=E(e.fulfilled.byId,[n]),Q({},e,{rejected:Q({},e.rejected,{byId:Q({},e.rejected.byId,(f={},f[n]=d,f))}),fulfilled:Q({},e.fulfilled,{byId:r}),pending:Q({},e.pending,{byId:s})});case"LIVE_EVENT.CREATE_CLEAR_STATUS":return n=t.payload.o365GroupId,s=E(e.pending.byId,[n]),r=E(e.fulfilled.byId,[n]),i=E(e.rejected.byId,[n]),Q({},e,{rejected:Q({},e.rejected,{byId:i}),fulfilled:Q({},e.fulfilled,{byId:r}),pending:Q({},e.pending,{byId:s})});default:return e}var c,l,f},Z=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ee={pending:{byId:{}},fulfilled:{byId:{}},rejected:{byId:{}}},te=function(e,t){switch(void 0===e&&(e=ee),t.type){case"LIVE_EVENT.EDIT_PENDING":var n=t.payload.id,r=E(e.fulfilled.byId,[n]),i=E(e.rejected.byId,[n]);return Z({},e,{pending:Z({},e.pending,{byId:Z({},e.pending.byId,(p={},p[n]=!0,p))}),fulfilled:Z({},e.fulfilled,{byId:r}),rejected:Z({},e.rejected,{byId:i})});case"LIVE_EVENT.EDIT_FULFILLED":var a=t.payload,o=a.broadcast,s=a.metadataUpdateFailureReason,u=a.timeUpdateFailureReason,d=a.presenterUpdateFailureReason,c=(n=o.id,E(e.pending.byId,[n]));return i=E(e.rejected.byId,[n]),Z({},e,{fulfilled:Z({},e.fulfilled,{byId:Z({},e.fulfilled.byId,(h={},h[n]={success:!0,metadataUpdateFailed:!!s,timeUpdateFailed:!!u,presenterUpdateFailed:!!d},h))}),pending:Z({},e.pending,{byId:c}),rejected:Z({},e.rejected,{byId:i})});case"LIVE_EVENT.EDIT_REJECTED":var l=t.payload,f=(n=l.id,l.error);return c=E(e.pending.byId,[n]),r=E(e.fulfilled.byId,[n]),Z({},e,{rejected:Z({},e.rejected,{byId:Z({},e.rejected.byId,(g={},g[n]=f,g))}),fulfilled:Z({},e.fulfilled,{byId:r}),pending:Z({},e.pending,{byId:c})});case"LIVE_EVENT.EDIT_CLEAR_STATUS":return n=t.payload.id,c=E(e.pending.byId,[n]),r=E(e.fulfilled.byId,[n]),i=E(e.rejected.byId,[n]),Z({},e,{rejected:Z({},e.rejected,{byId:i}),fulfilled:Z({},e.fulfilled,{byId:r}),pending:Z({},e.pending,{byId:c})});default:return e}var p,h,g},ne=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},re={pending:{byId:{}},fulfilled:{byId:{}},rejected:{byId:{}}},ie=function(e,t){switch(void 0===e&&(e=re),t.type){case"LIVE_EVENT.CANCEL_PENDING":var n=t.payload.id,r=E(e.fulfilled.byId,[n]),i=E(e.rejected.byId,[n]);return ne({},e,{pending:ne({},e.pending,{byId:ne({},e.pending.byId,(u={},u[n]=!0,u))}),fulfilled:ne({},e.fulfilled,{byId:r}),rejected:ne({},e.rejected,{byId:i})});case"LIVE_EVENT.CANCEL_FULFILLED":n=t.payload.id;var a=E(e.pending.byId,[n]);return i=E(e.rejected.byId,[n]),ne({},e,{fulfilled:ne({},e.fulfilled,{byId:ne({},e.fulfilled.byId,(d={},d[n]=!0,d))}),pending:ne({},e.pending,{byId:a}),rejected:ne({},e.rejected,{byId:i})});case"LIVE_EVENT.CANCEL_REJECTED":var o=t.payload,s=(n=o.id,o.error);return a=E(e.pending.byId,[n]),r=E(e.fulfilled.byId,[n]),ne({},e,{rejected:ne({},e.rejected,{byId:ne({},e.rejected.byId,(c={},c[n]=s,c))}),fulfilled:ne({},e.fulfilled,{byId:r}),pending:ne({},e.pending,{byId:a})});default:return e}var u,d,c},ae=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},oe={fetchStatus:"UNSTARTED",fetchError:null,acknowledgeStatus:"UNSTARTED",acknowledgeError:null},se=function(e,t){switch(void 0===e&&(e=oe),t.type){case"LIVE_EVENT_POLICY.FETCH_PENDING":return ae({},e,{fetchStatus:"PENDING",fetchError:null});case"LIVE_EVENT_POLICY.FETCH_FULFILLED":return ae({},e,{fetchStatus:"FULFILLED",fetchError:null,policy:t.payload});case"LIVE_EVENT_POLICY.FETCH_REJECTED":return ae({},e,{fetchError:t.payload.error,fetchStatus:"REJECTED"});case"LIVE_EVENT_POLICY.ACKNOWLEDGE_PENDING":return ae({},e,{acknowledgeStatus:"PENDING",acknowledgeError:null});case"LIVE_EVENT_POLICY.ACKNOWLEDGE_FULFILLED":return ae({},e,{fetchStatus:"FULFILLED",fetchError:null,acknowledgeStatus:"FULFILLED",policy:t.payload,acknowledgeError:null});case"LIVE_EVENT_POLICY.ACKNOWLEDGE_REJECTED":return ae({},e,{acknowledgeStatus:"REJECTED",acknowledgeError:t.payload.error});default:return e}},ue=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},de={theme:{textColor:"white",primaryColor:"black"}},ce=function(e,t){switch(void 0===e&&(e=de),t.type){case"SHELL.THEME_UPDATED":return ue({},e,{theme:t.payload});default:return e}},le=Object(r.c)({session:w,banners:S,pdfPreviews:k,broadcasts:j,broadcastStatuses:D,embed:W,focusPortal:V,users:Y,liveEventCreateRequests:X,liveEventEditRequests:te,liveEventCancelRequests:ie,liveEventPolicy:se,shell:ce}),fe=n(234),pe=n.n(fe);n.d(t,"__esModule",function(){return be});var he=[];he.push(pe.a);var ge=r.a.apply(void 0,he),me=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__,_e=me?me({serialize:!0}):r.d,ye=window;ye.__yammerstore__=ye.__yammerstore__||Object(r.e)(le,_e(ge));var ve=ye.__yammerstore__,be=(t.default=ve,!0)},300:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clientize=void 0;var r,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0)),a=n(240),o=(r=a)&&r.__esModule?r:{default:r};t.clientize=function(e,t){i.extend(this.prototype,o.default),this.prototype._clientClass=e,this.prototype._clientKey=t}},301:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0));var i=function(){this._data={}};i.prototype.create=function(e){return this._data[e.id]=e,e},i.prototype.update=function(e,t){var n={before:{},after:{}};return Object.keys(t||{}).forEach(function(r){Object.prototype.hasOwnProperty.call(t,r)&&(n.before[r]=e[r],e[r]=t[r],n.after[r]=e[r])}),n},i.prototype.destroy=function(e){return delete this._data[e.id],e},i.prototype.truncate=function(){this._data={}},i.prototype.all=function(){var e=this._data,t=[];return Object.keys(e||{}).forEach(function(n){t.push(e[n])}),t},i.prototype.find=function(e,t){var n=this._data,i=[],a=Object.keys(n||{}),o=Object.keys(e||{});t=r.isNumber(t)?t:1/0;for(var s=0;s<a.length;s++){for(var u=!0,d=n[a[s]],c=0;c<o.length;c++){var l=o[c];if(!r.isEqual(d[l],e[l])){u=!1;break}}if(u&&i.push(d),i.length>=t)break}return i},i.prototype.findById=function(e){return this._data[e]},t.default=i},302:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0));t.default={get:function(e){return this[e]},create:function(){var e=this.getRepository().create(this.declaredClass,this);if(yam.backbone&&yam.backbone.isBackboneModel&&yam.backbone.isBackboneModel(this.declaredClass)){var t={};r.each(r.pairs(e),function(e){t[e[0]]=e[1]}),yam.backbone.getBackboneCollectionInstance(this.declaredClass).add(t)}return e},update:function(e){var t=this.getRepository().update(this.declaredClass,this,e);if(yam.backbone&&yam.backbone.isBackboneModel&&yam.backbone.isBackboneModel(this.declaredClass)){var n=yam.backbone.getBackboneCollectionInstance(this.declaredClass).get(this.id);n&&n.set(t.after)}return t},destroy:function(){this.unlisten&&this.unlisten();var e=this.getRepository().destroy(this.declaredClass,this);return yam.backbone&&yam.backbone.isBackboneModel(this.declaredClass)&&yam.backbone.getBackboneCollectionInstance(this.declaredClass).remove(this.id),e},getRepository:function(){return this._repository},setRepository:function(e){this._repository=e},hasAutoKey:function(){return!!this._autoKey},assignAutoKey:function(){var e=this.constructor.prototype;this.id=e._autoKey++},isForeign:function(){return!1}}},303:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(34));t.default={all:function(){var e=this.prototype;return e._repository.all(e.declaredClass)},find:function(e,t){var n=this.prototype;return n._repository.find(n.declaredClass,e,t)},findById:function(e){var t=this.prototype;return t._repository.findById(t.declaredClass,e)},findFirst:function(e){return this.find(e,1)[0]},hasAutoKey:function(){return!!this.prototype._autoKey},findOrCreate:function(e){return this.findFirst(e)||this.create(e)},_findInstance:function(e){var t=e.id,n=void 0;return this.hasAutoKey()?n=this.findFirst(e):t&&(n=this.findById(t)),n},create:function(e){var t=this.prototype.declaredClass;return new(r.ns(t))(e).create()},save:function(e){var t=this._findInstance(e);return t?t.update(e):t=this.create(e),t},update:function(e){var t=this._findInstance(e);return t.update(e),t},destroyAll:function(){var e=this.prototype;e._repository.destroyAll(e.declaredClass)},truncate:function(){var e=this.prototype;(e._repository.truncate(e.declaredClass),e._autoKey&&(e._autoKey=1),yam.backbone.isBackboneModel(e.declaredClass))&&yam.backbone.getBackboneCollectionInstance(e.declaredClass).reset()}}},304:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(8)),i=a(n(55));function a(e){return e&&e.__esModule?e:{default:e}}t.default=i.default.extend({initialize:function(){this.cache={}},get:function(e){var t=r.default.Deferred();if(this.isExpired(e))return t.reject({}).promise();var n=this.cache[e].data;return t.resolve(n).promise()},isExpired:function(e){return!this.cache[e]||Date.now()>this.cache[e].expiry},add:function(e,t,n){this.cache[e]={data:n,expiry:this._calculateExpiryTimestamp(t)}},_calculateExpiryTimestamp:function(e){var t=6e4*e;return Date.now()+t}})},305:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object(r.createGroup)(e).then(function(e){return a.default.save(e),o.default.save({user_id:Object(s.getCurrentUser)().id,group_id:e.id,external:e.external,admin:!0}),Object(i.assign)(e.web_url),e})},n.d(t,"__esModule",function(){return u});var r=n(14),i=(n.n(r),n(75)),a=(n.n(i),n(23)),o=n(103),s=n(6);n.n(s);var u=!0},306:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeUserAdmin=function(e,t){return Object(s.makeAdmin)({user_id:e.id,group_id:t}).then(function(){u(e)})},t.revokeUserAdmin=function(e,t){return Object(s.revokeAdmin)({user_id:e.id,group_id:t}).then(function(){!function(e){i.a.trigger("/ui/alert/show","notice",Object(a.t)("name_is_no_longer_an_admin",{name:e.full_name})),e.update({admin:!1})}(e)})},t.claimGroupAsAdmin=function(e){return Object(s.claimGroup)({id:e}).then(function(){var e=Object(o.getCurrentUser)();u(e)})};var r=n(3),i=n.n(r),a=n(2),o=n(6),s=(n.n(o),n(14));n.n(s);function u(e){e.update({admin:!0}),i.a.trigger("/ui/alert/show","notice",Object(a.t)("name_is_now_an_admin",{name:e.full_name}))}},307:function(e,t){e.exports="query InboxFeedWeb($threadCount: Int = 20, $replyCount: Int = 2, $inboxFeedType: InboxFeedType = ALL, $olderThan: String, $newerThan: String) {\n viewer {\n inbox {\n threads(last: $threadCount, type: $inboxFeedType, before: $olderThan, after: $newerThan) {\n ...InboxThreadList\n }\n }\n }\n}\n\nfragment InboxThreadList on InboxThreadConnection {\n realtimeChannelId\n pageInfo {\n ...PageInfoFields\n }\n edges {\n cursor\n sortKey\n node {\n replies(last: $replyCount) {\n ...MessageList\n }\n ...CoreThreadFields\n }\n }\n viewerUnreadCount\n}\n\nfragment MessageContentFields on NormalMessageContent {\n body {\n parsedBody\n references {\n __typename\n ... on User {\n ...UserFields\n }\n ... on Group {\n ...GroupFields\n }\n }\n }\n}\n\nfragment AnnouncementMessageContentFields on AnnouncementMessageContent {\n title\n body {\n htmlParsedBody\n references {\n __typename\n ... on User {\n ...UserFields\n }\n ... on Group {\n ...GroupFields\n }\n }\n }\n}\n\nfragment PageInfoFields on PageInfo {\n hasPreviousPage\n startCursor\n hasNextPage\n endCursor\n}\n\nfragment NetworkFields on Network {\n databaseId\n gql_id: id\n displayName\n}\n\nfragment UserFields on User {\n databaseId\n gql_id: id\n network {\n ...NetworkFields\n }\n displayName\n avatar(width: 48, height: 48)\n}\n\nfragment GroupFields on Group {\n databaseId\n gql_id: id\n displayName\n network {\n databaseId\n }\n}\n\nfragment MessageParticipantList on MessageParticipantConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n isTagged\n isNotified\n node {\n ...UserFields\n }\n }\n}\n\nfragment ThreadParticipantList on ThreadParticipantConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n node {\n ...UserFields\n }\n }\n}\n\nfragment RepliedToMessageFields on Message {\n databaseId\n gql_id: id\n thread {\n databaseId\n }\n version\n isEdited\n viewerCanEdit\n sender {\n ...UserFields\n }\n content {\n __typename\n ...MessageContentFields\n ...AnnouncementMessageContentFields\n }\n message_participants: participants(first: 100) {\n ...MessageParticipantList\n }\n}\n\nfragment MessageFields on Message {\n ...RepliedToMessageFields\n createdAt\n updatedAt\n repliedTo {\n databaseId\n gql_id: id\n sender {\n ... on User {\n ...UserFields\n }\n }\n }\n viewerMutationId\n}\n\nfragment MessageList on MessageConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n cursor\n node {\n ...MessageFields\n }\n }\n}\n\nfragment CoreThreadFields on Thread {\n databaseId\n gql_id: id\n realtimeChannelId\n network {\n ...NetworkFields\n }\n group {\n ...GroupFields\n }\n viewerLastReadMessage {\n databaseId\n }\n viewerHasUnreadMessages\n viewerMutationId\n viewerIsFollowing\n threadStarter {\n ...MessageFields\n }\n thread_participants: participants(first: 100) {\n ...ThreadParticipantList\n }\n}\n"},308:function(e,t){e.exports="query SearchInboxWeb($threadCount: Int = 20, $replyCount: Int = 2, $searchQuery: String!, $after: String) {\n viewer {\n inbox {\n search(first: $threadCount, query: $searchQuery, after: $after) {\n ...SearchThreadResults\n }\n }\n }\n}\n\nfragment SearchThreadResults on ThreadSearchResultConnection {\n pageInfo {\n ...PageInfoFields\n }\n edges {\n cursor\n node {\n replies(last: $replyCount) {\n ...MessageList\n }\n ...CoreThreadFields\n }\n }\n}\n\nfragment MessageContentFields on NormalMessageContent {\n body {\n parsedBody\n references {\n __typename\n ... on User {\n ...UserFields\n }\n ... on Group {\n ...GroupFields\n }\n }\n }\n}\n\nfragment AnnouncementMessageContentFields on AnnouncementMessageContent {\n title\n body {\n htmlParsedBody\n references {\n __typename\n ... on User {\n ...UserFields\n }\n ... on Group {\n ...GroupFields\n }\n }\n }\n}\n\nfragment PageInfoFields on PageInfo {\n hasPreviousPage\n startCursor\n hasNextPage\n endCursor\n}\n\nfragment NetworkFields on Network {\n databaseId\n gql_id: id\n displayName\n}\n\nfragment UserFields on User {\n databaseId\n gql_id: id\n network {\n ...NetworkFields\n }\n displayName\n avatar(width: 48, height: 48)\n}\n\nfragment GroupFields on Group {\n databaseId\n gql_id: id\n displayName\n network {\n databaseId\n }\n}\n\nfragment MessageParticipantList on MessageParticipantConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n isTagged\n isNotified\n node {\n ...UserFields\n }\n }\n}\n\nfragment ThreadParticipantList on ThreadParticipantConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n node {\n ...UserFields\n }\n }\n}\n\nfragment RepliedToMessageFields on Message {\n databaseId\n gql_id: id\n thread {\n databaseId\n }\n version\n isEdited\n viewerCanEdit\n sender {\n ...UserFields\n }\n content {\n __typename\n ...MessageContentFields\n ...AnnouncementMessageContentFields\n }\n message_participants: participants(first: 100) {\n ...MessageParticipantList\n }\n}\n\nfragment MessageFields on Message {\n ...RepliedToMessageFields\n createdAt\n updatedAt\n repliedTo {\n databaseId\n gql_id: id\n sender {\n ... on User {\n ...UserFields\n }\n }\n }\n viewerMutationId\n}\n\nfragment MessageList on MessageConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n cursor\n node {\n ...MessageFields\n }\n }\n}\n\nfragment CoreThreadFields on Thread {\n databaseId\n gql_id: id\n realtimeChannelId\n network {\n ...NetworkFields\n }\n group {\n ...GroupFields\n }\n viewerLastReadMessage {\n databaseId\n }\n viewerHasUnreadMessages\n viewerMutationId\n viewerIsFollowing\n threadStarter {\n ...MessageFields\n }\n thread_participants: participants(first: 100) {\n ...ThreadParticipantList\n }\n}\n"},309:function(e,t){e.exports="query GroupCountsFetchWeb($groupDatabaseIds: [String!]!) {\n groups(databaseIds: $groupDatabaseIds) {\n databaseId\n gql_id: id\n feed {\n threads(last: 1) {\n viewerUnseenCount\n }\n }\n }\n}\n"},31:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.canCreateGroups=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=g(n(3)),a=n(50),o=n(14),s=h(n(0)),u=g(n(154)),d=h(n(116)),c=h(n(22)),l=h(n(153)),f=n(6),p=n(306);function h(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function g(e){return e&&e.__esModule?e:{default:e}}var m=function(e,t){return e[t]||e.get&&e.get(t)},_=function(e){return m(e,"full_name")||m(e,"name")||m(e,"permalink")},y=function(e){if(!e)return"";var t=e.trim();return t.length>0?t.match(/\S+/)[0]:""},v=function(e,t){var n=m(e,"foreign");if("boolean"==typeof n)return n;var r=t.getCurrentNetwork(),i=r&&r.id,a=m(e,"network_id")||m(e,"networkId");return null!=i&&null!=a&&i!=a},b=function(e){return"active"===m(e,"state")},w=function(e){var t=m(e,"state");return"suspended"===t||"deleted"===t},T=function(e){var t=m(e,"mugshot_url");return t&&-1===t.indexOf("no_photo")},E=function(e,t){var n=e&&m(e,"id");return m(t.getCurrentUser(),"id")===n},I=function(e,t){var n=m(e,"contact"),r=n&&n.phone_numbers||[],i=s.find(r,function(e){return e.type===t});return i?i.number:void 0},O=function(e){var t=m(e,"web_preferences");return t&&t.preferred_my_feed},S=function(e){var t=m(e,"web_preferences");return t&&t.sticky_my_feed},C=function(e,t){if(!t)return!1;var n=d.getMembership(e,t);return!(null==n||!n.admin)},A=t.canCreateGroups=function(e){var t=(0,f.getCurrentNetwork)();return!c.isForceConnectedGroupsEnabled(t)||(0,a.convertStringyBoolean)(m(e,"can_create_connected_groups"))},k=function(e,t,n){e.following=e.following||{},e.following[t]=e.following[t]||new i.default.Collection,e.following[t].add({id:n})},N=function(e,t,n){e.following=e.following||new i.default.Collection,e.following[t]=e.following[t]||new i.default.Collection;var r=e.following[t].length;e.following[t].remove({id:n}),r||e.following[t].trigger("remove",{id:n})},x=function(e,t,n){return e.following=e.following||{},e.following[t]=e.following[t]||new i.default.Collection,!!e.following[t].get(n)},R=function(e){return m(e,"id")};yam.helper=yam.helper||{},yam.helper.user={hasNeverOptedIn:function(e){var t=m(e,"web_preferences");return!!t&&null==t.prefer_modern_client},prefersModernClient:function(e){var t=m(e,"web_preferences");return!!t&&!!t.prefer_modern_client},setPreferModernClient:function(e,t){var n=m(e,"web_preferences");e.update({web_preferences:r({},n,{prefer_modern_client:t})})},getId:R,isUser:function(e){return"user"===m(e,"type")},getFirstName:function(e){var t=m(e,"first_name"),n=t?t.trim():"",r=m(e,"full_name"),i=m(e,"name");return n||y(r)||y(i)||""},getLastName:function(e){var t=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/\[.*\]|\(.*\)|\{.*\}/g,"")}(m(e,"full_name")).trim().split(" ");if(t.length>1)return t[t.length-1]},getFullName:_,getUserName:_,getNetworkName:function(e,t){return function(e,t){var n=m(e,"network_id")||m(e,"networkId");if(null==n)return null;var r=t.findById(n);return c.getName(r)}(e,t)||m(e,"network_name")||function(e){var t=m(e,"type"),n=m(e,"email"),r=s.isFunction(e.getId)?e.getId():m(e,"id");return"domain"===t?u.default.getDomainFromEmail(r):u.default.getDomainFromEmail(n)}(e)},getJobTitle:function(e){return m(e,"job_title")},isForeign:v,isActive:b,isInactive:w,isNew:function(e,t){var n=new Date(t.getCurrentNetwork().created_at).getTime(),r=Date.now(),i=new Date(m(e,"activated_at")).getTime(),a=r-n>=12096e5&&i-n>=12096e5,o=r-i<=12096e5;return b(e)&&a&&o},getPresenceStatus:function(e,t){var n="offline",r=m(e,"presence");return w(e)?n="offline":v(e,t)?n="foreign":r&&"idle"===(n=r.status||r||n)&&(n="online"),n},hasFakeEmail:function(e){var t=m(e,"contact");return t&&t.has_fake_email},usesMobile:function(e){var t=m(e,"web_preferences");return t&&t.has_mobile_client},getYammerLocale:function(e){var t=m(e,"web_preferences");return t&&t.locale},getUserPreferredLocale:function(e){var t=m(e,"web_preferences");return t&&t.user_preferred_locale},showBigPhoto:function(e){var t=new Date(m(e,"activated_at")).getTime(),n=Date.now()-t>864e5;return!T(e)&&b(e)&&n},askForPhoto:function(e,t){return!E(e,t)&&m(e,"show_ask_for_photo")},getPrimaryEmailAddress:function(e){return function(e,t){var n=m(e,"contact"),r=n&&n.email_addresses||[],i=s.find(r,function(e){return e.type===t});return i&&i.address||e.email||""}(e,"primary")},getWorkPhoneNumber:function(e){return I(e,"work")||""},getMobilePhoneNumber:function(e){return I(e,"mobile")||""},isAdmin:function(e){return(0,a.convertStringyBoolean)(m(e,"admin"))},isVerifiedAdmin:function(e){return(0,a.convertStringyBoolean)(m(e,"verified_admin"))},isSupervisorAdmin:function(e){return(0,a.convertStringyBoolean)(m(e,"supervisor_admin"))},getPreferredFeedType:O,isStickyMyFeed:S,leaveGroup:function(e,t,n){var r=m(e,"group_ids");e.set?e.set("group_ids",s.without(r,m(t,"id")+"")):e.group_ids=s.without(r,m(t,"id")+"");var i=n.findFirst({user_id:m(e,"id"),group_id:m(t,"id")});i&&i.destroy()},isAdminOf:C,isMemberOf:function(e,t){var n=d.getMembership(e,t);if(n)return n;var r=m(e,"group_ids"),i=!1;return r&&(i=s.contains(r,m(t,"id")+"")),i&&{user_id:e.id,group_id:t.id}},canAnnounce:function(e,t){return!(m(t,"foreign")||!(0,a.convertStringyBoolean)(m(e,"can_broadcast")))||t&&C(e,t)},canCreateGroups:A,getGroupMemberships:function(e,t){return t.find({user_id:m(e,"id")})},isInvitedToGroup:function(e,t,n){return!!n.find({user_id:m(e,"id"),group_id:t,invited:!0}).length},followUser:function(e,t){return k(e,"user",t)},unFollowUser:function(e,t){return N(e,"user",t)},isFollowingUser:function(e,t){return m(e,"id")===t||x(e,"user",t)},followThreadInInbox:function(e,t){return k(e,"inbox_thread",t)},unfollowThreadInInbox:function(e,t){return N(e,"inbox_thread",t)},isFollowingThreadInInbox:function(e,t){return e&&x(e,"inbox_thread",t)},unfollowFile:function(e,t){return N(e,"uploaded_file",t)},unfollowPage:function(e,t){return N(e,"page",t)},followFile:function(e,t){return k(e,"uploaded_file",t)},followPage:function(e,t){return k(e,"page",t)},follow:k,unfollow:N,isFollowing:x,getFollowing:function(e,t){return e.following=e.following||{},e.following[t]=e.following[t]||new i.default.Collection,e.following[t]},setStickyMyFeed:function(e,t){var n=void 0;if(S(e)!==t.isSticky){var r=m(e,"web_preferences");n=t.feedType,r.sticky_my_feed=t.isSticky,e.update({web_preferences:r}),t.isSticky||(n="algo"),(0,o.updateUser)({id:R(e),sticky_my_feed:t.isSticky,preferred_my_feed:n}).then(t.success)}},setPreferredMyFeed:function(e,t){if(t!==O(e)){var n=m(e,"web_preferences");n.preferred_my_feed=t,e.update({web_preferences:n})}},isCurrentUser:E,fetch:function(e){return(0,o.getUser)({id:e})},followOgo:function(e,t){return k(e,"open_graph_object",t)},unfollowOgo:function(e,t){return N(e,"open_graph_object",t)},getGroups:function(e){return(0,o.getUsersGroups)({id:e.id})},isPending:function(e){return"pending"===m(e,"state")},isFormer:function(e){var t=m(e,"state");return"deleted"===t||"suspended"===t},hasPhoto:T,getMugshotUrl:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"48";return m(e,"mugshot_url_template").replace("{width}",t).replace("{height}",t)},fetchUserPrincipalName:function(t){return t.user_principal_name?e.Deferred().resolve(t).promise():l.getPersonalInfo().then(function(e){t.user_principal_name=e.userPrincipalName})},getUserPrincipalName:function(e){return m(e,"user_principal_name")},makeUserAdmin:p.makeUserAdmin,claimGroupAsAdmin:p.claimGroupAsAdmin,revokeUserAdmin:p.revokeUserAdmin},t.default=yam.helper.user}).call(t,n(20))},310:function(e,t){e.exports="query GroupMembershipsFetchWeb($groupsFirstCount: Int = 2000) {\n viewer {\n groups(first: $groupsFirstCount) {\n edges {\n node {\n gql_id: id\n databaseId\n displayName\n color\n headerImage\n avatar(width: 48, height: 48)\n avatarUrlTemplate\n description\n isExternal\n privacy\n network {\n databaseId\n displayName\n }\n category\n viewerIsAdmin\n participatingNetworks {\n databaseId\n displayName\n }\n viewerMembershipStatus\n }\n }\n }\n }\n}\n"},311:function(e,t){e.exports="query ThreadFetchWeb($threadId: ID!, $replyCount: Int = 2, $olderThan: String, $newerThan: String) {\n thread: node(id: $threadId) {\n ...ThreadFieldsWithPagedReplies\n }\n}\n\nfragment ThreadFieldsWithPagedReplies on Thread {\n replies(last: $replyCount, before: $olderThan, after: $newerThan) {\n ...MessageList\n }\n ...CoreThreadFields\n}\n\nfragment MessageContentFields on NormalMessageContent {\n body {\n parsedBody\n references {\n __typename\n ... on User {\n ...UserFields\n }\n ... on Group {\n ...GroupFields\n }\n }\n }\n}\n\nfragment AnnouncementMessageContentFields on AnnouncementMessageContent {\n title\n body {\n htmlParsedBody\n references {\n __typename\n ... on User {\n ...UserFields\n }\n ... on Group {\n ...GroupFields\n }\n }\n }\n}\n\nfragment PageInfoFields on PageInfo {\n hasPreviousPage\n startCursor\n hasNextPage\n endCursor\n}\n\nfragment NetworkFields on Network {\n databaseId\n gql_id: id\n displayName\n}\n\nfragment UserFields on User {\n databaseId\n gql_id: id\n network {\n ...NetworkFields\n }\n displayName\n avatar(width: 48, height: 48)\n}\n\nfragment GroupFields on Group {\n databaseId\n gql_id: id\n displayName\n network {\n databaseId\n }\n}\n\nfragment MessageParticipantList on MessageParticipantConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n isTagged\n isNotified\n node {\n ...UserFields\n }\n }\n}\n\nfragment ThreadParticipantList on ThreadParticipantConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n node {\n ...UserFields\n }\n }\n}\n\nfragment RepliedToMessageFields on Message {\n databaseId\n gql_id: id\n thread {\n databaseId\n }\n version\n isEdited\n viewerCanEdit\n sender {\n ...UserFields\n }\n content {\n __typename\n ...MessageContentFields\n ...AnnouncementMessageContentFields\n }\n message_participants: participants(first: 100) {\n ...MessageParticipantList\n }\n}\n\nfragment MessageFields on Message {\n ...RepliedToMessageFields\n createdAt\n updatedAt\n repliedTo {\n databaseId\n gql_id: id\n sender {\n ... on User {\n ...UserFields\n }\n }\n }\n viewerMutationId\n}\n\nfragment MessageList on MessageConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n cursor\n node {\n ...MessageFields\n }\n }\n}\n\nfragment CoreThreadFields on Thread {\n databaseId\n gql_id: id\n realtimeChannelId\n network {\n ...NetworkFields\n }\n group {\n ...GroupFields\n }\n viewerLastReadMessage {\n databaseId\n }\n viewerHasUnreadMessages\n viewerMutationId\n viewerIsFollowing\n threadStarter {\n ...MessageFields\n }\n thread_participants: participants(first: 100) {\n ...ThreadParticipantList\n }\n}\n"},312:function(e,t){e.exports="query RealtimeMessageFetchWeb($messageId: ID!) {\n realtimeMessage: node(id: $messageId) {\n ...MessageFields\n ... on Message {\n realtimeThread: thread {\n ...RealtimeThreadWithLatestReplies\n }\n }\n }\n}\n\nfragment RealtimeThreadWithLatestReplies on Thread {\n replies(last: 2) {\n ...MessageList\n }\n ...CoreThreadFields\n}\n\nfragment MessageContentFields on NormalMessageContent {\n body {\n parsedBody\n references {\n __typename\n ... on User {\n ...UserFields\n }\n ... on Group {\n ...GroupFields\n }\n }\n }\n}\n\nfragment AnnouncementMessageContentFields on AnnouncementMessageContent {\n title\n body {\n htmlParsedBody\n references {\n __typename\n ... on User {\n ...UserFields\n }\n ... on Group {\n ...GroupFields\n }\n }\n }\n}\n\nfragment PageInfoFields on PageInfo {\n hasPreviousPage\n startCursor\n hasNextPage\n endCursor\n}\n\nfragment NetworkFields on Network {\n databaseId\n gql_id: id\n displayName\n}\n\nfragment UserFields on User {\n databaseId\n gql_id: id\n network {\n ...NetworkFields\n }\n displayName\n avatar(width: 48, height: 48)\n}\n\nfragment GroupFields on Group {\n databaseId\n gql_id: id\n displayName\n network {\n databaseId\n }\n}\n\nfragment MessageParticipantList on MessageParticipantConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n isTagged\n isNotified\n node {\n ...UserFields\n }\n }\n}\n\nfragment ThreadParticipantList on ThreadParticipantConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n node {\n ...UserFields\n }\n }\n}\n\nfragment RepliedToMessageFields on Message {\n databaseId\n gql_id: id\n thread {\n databaseId\n }\n version\n isEdited\n viewerCanEdit\n sender {\n ...UserFields\n }\n content {\n __typename\n ...MessageContentFields\n ...AnnouncementMessageContentFields\n }\n message_participants: participants(first: 100) {\n ...MessageParticipantList\n }\n}\n\nfragment MessageFields on Message {\n ...RepliedToMessageFields\n createdAt\n updatedAt\n repliedTo {\n databaseId\n gql_id: id\n sender {\n ... on User {\n ...UserFields\n }\n }\n }\n viewerMutationId\n}\n\nfragment MessageList on MessageConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n cursor\n node {\n ...MessageFields\n }\n }\n}\n\nfragment CoreThreadFields on Thread {\n databaseId\n gql_id: id\n realtimeChannelId\n network {\n ...NetworkFields\n }\n group {\n ...GroupFields\n }\n viewerLastReadMessage {\n databaseId\n }\n viewerHasUnreadMessages\n viewerMutationId\n viewerIsFollowing\n threadStarter {\n ...MessageFields\n }\n thread_participants: participants(first: 100) {\n ...ThreadParticipantList\n }\n}\n"},313:function(e,t){e.exports="query UserFeedWeb($userDatabaseId: String!, $threadCount: Int = 8, $replyCount: Int = 2, $olderThan: String, $newerThan: String) {\n user(databaseId: $userDatabaseId) {\n feed {\n threads(last: $threadCount, before: $olderThan, after: $newerThan) {\n ...UserThreadList\n }\n }\n }\n}\n\nfragment UserThreadList on UserFeedThreadConnection {\n realtimeChannelId\n pageInfo {\n ...PageInfoFields\n }\n edges {\n cursor\n sortKey\n node {\n replies(last: $replyCount) {\n ...MessageList\n }\n ...CoreThreadFields\n }\n }\n}\n\nfragment MessageContentFields on NormalMessageContent {\n body {\n parsedBody\n references {\n __typename\n ... on User {\n ...UserFields\n }\n ... on Group {\n ...GroupFields\n }\n }\n }\n}\n\nfragment AnnouncementMessageContentFields on AnnouncementMessageContent {\n title\n body {\n htmlParsedBody\n references {\n __typename\n ... on User {\n ...UserFields\n }\n ... on Group {\n ...GroupFields\n }\n }\n }\n}\n\nfragment PageInfoFields on PageInfo {\n hasPreviousPage\n startCursor\n hasNextPage\n endCursor\n}\n\nfragment NetworkFields on Network {\n databaseId\n gql_id: id\n displayName\n}\n\nfragment UserFields on User {\n databaseId\n gql_id: id\n network {\n ...NetworkFields\n }\n displayName\n avatar(width: 48, height: 48)\n}\n\nfragment GroupFields on Group {\n databaseId\n gql_id: id\n displayName\n network {\n databaseId\n }\n}\n\nfragment MessageParticipantList on MessageParticipantConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n isTagged\n isNotified\n node {\n ...UserFields\n }\n }\n}\n\nfragment ThreadParticipantList on ThreadParticipantConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n node {\n ...UserFields\n }\n }\n}\n\nfragment RepliedToMessageFields on Message {\n databaseId\n gql_id: id\n thread {\n databaseId\n }\n version\n isEdited\n viewerCanEdit\n sender {\n ...UserFields\n }\n content {\n __typename\n ...MessageContentFields\n ...AnnouncementMessageContentFields\n }\n message_participants: participants(first: 100) {\n ...MessageParticipantList\n }\n}\n\nfragment MessageFields on Message {\n ...RepliedToMessageFields\n createdAt\n updatedAt\n repliedTo {\n databaseId\n gql_id: id\n sender {\n ... on User {\n ...UserFields\n }\n }\n }\n viewerMutationId\n}\n\nfragment MessageList on MessageConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n cursor\n node {\n ...MessageFields\n }\n }\n}\n\nfragment CoreThreadFields on Thread {\n databaseId\n gql_id: id\n realtimeChannelId\n network {\n ...NetworkFields\n }\n group {\n ...GroupFields\n }\n viewerLastReadMessage {\n databaseId\n }\n viewerHasUnreadMessages\n viewerMutationId\n viewerIsFollowing\n threadStarter {\n ...MessageFields\n }\n thread_participants: participants(first: 100) {\n ...ThreadParticipantList\n }\n}\n"},314:function(e,t){e.exports="query SearchGroupWeb($groupDatabaseId: String!, $threadCount: Int = 20, $replyCount: Int = 2, $searchQuery: String!, $after: String) {\n group(databaseId: $groupDatabaseId) {\n feed {\n search(first: $threadCount, query: $searchQuery, after: $after) {\n ...SearchThreadResults\n }\n }\n }\n}\n\nfragment SearchThreadResults on ThreadSearchResultConnection {\n pageInfo {\n ...PageInfoFields\n }\n edges {\n cursor\n node {\n replies(last: $replyCount) {\n ...MessageList\n }\n ...CoreThreadFields\n }\n }\n}\n\nfragment MessageContentFields on NormalMessageContent {\n body {\n parsedBody\n references {\n __typename\n ... on User {\n ...UserFields\n }\n ... on Group {\n ...GroupFields\n }\n }\n }\n}\n\nfragment AnnouncementMessageContentFields on AnnouncementMessageContent {\n title\n body {\n htmlParsedBody\n references {\n __typename\n ... on User {\n ...UserFields\n }\n ... on Group {\n ...GroupFields\n }\n }\n }\n}\n\nfragment PageInfoFields on PageInfo {\n hasPreviousPage\n startCursor\n hasNextPage\n endCursor\n}\n\nfragment NetworkFields on Network {\n databaseId\n gql_id: id\n displayName\n}\n\nfragment UserFields on User {\n databaseId\n gql_id: id\n network {\n ...NetworkFields\n }\n displayName\n avatar(width: 48, height: 48)\n}\n\nfragment GroupFields on Group {\n databaseId\n gql_id: id\n displayName\n network {\n databaseId\n }\n}\n\nfragment MessageParticipantList on MessageParticipantConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n isTagged\n isNotified\n node {\n ...UserFields\n }\n }\n}\n\nfragment ThreadParticipantList on ThreadParticipantConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n node {\n ...UserFields\n }\n }\n}\n\nfragment RepliedToMessageFields on Message {\n databaseId\n gql_id: id\n thread {\n databaseId\n }\n version\n isEdited\n viewerCanEdit\n sender {\n ...UserFields\n }\n content {\n __typename\n ...MessageContentFields\n ...AnnouncementMessageContentFields\n }\n message_participants: participants(first: 100) {\n ...MessageParticipantList\n }\n}\n\nfragment MessageFields on Message {\n ...RepliedToMessageFields\n createdAt\n updatedAt\n repliedTo {\n databaseId\n gql_id: id\n sender {\n ... on User {\n ...UserFields\n }\n }\n }\n viewerMutationId\n}\n\nfragment MessageList on MessageConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n cursor\n node {\n ...MessageFields\n }\n }\n}\n\nfragment CoreThreadFields on Thread {\n databaseId\n gql_id: id\n realtimeChannelId\n network {\n ...NetworkFields\n }\n group {\n ...GroupFields\n }\n viewerLastReadMessage {\n databaseId\n }\n viewerHasUnreadMessages\n viewerMutationId\n viewerIsFollowing\n threadStarter {\n ...MessageFields\n }\n thread_participants: participants(first: 100) {\n ...ThreadParticipantList\n }\n}\n"},315:function(e,t){e.exports="query SearchGlobalWeb($threadCount: Int = 20, $replyCount: Int = 2, $searchQuery: String!, $after: String) {\n search(query: $searchQuery) {\n threads(first: $threadCount, after: $after) {\n ...SearchThreadResults\n }\n }\n}\n\nfragment SearchThreadResults on ThreadSearchResultConnection {\n pageInfo {\n ...PageInfoFields\n }\n edges {\n cursor\n node {\n replies(last: $replyCount) {\n ...MessageList\n }\n ...CoreThreadFields\n }\n }\n}\n\nfragment MessageContentFields on NormalMessageContent {\n body {\n parsedBody\n references {\n __typename\n ... on User {\n ...UserFields\n }\n ... on Group {\n ...GroupFields\n }\n }\n }\n}\n\nfragment AnnouncementMessageContentFields on AnnouncementMessageContent {\n title\n body {\n htmlParsedBody\n references {\n __typename\n ... on User {\n ...UserFields\n }\n ... on Group {\n ...GroupFields\n }\n }\n }\n}\n\nfragment PageInfoFields on PageInfo {\n hasPreviousPage\n startCursor\n hasNextPage\n endCursor\n}\n\nfragment NetworkFields on Network {\n databaseId\n gql_id: id\n displayName\n}\n\nfragment UserFields on User {\n databaseId\n gql_id: id\n network {\n ...NetworkFields\n }\n displayName\n avatar(width: 48, height: 48)\n}\n\nfragment GroupFields on Group {\n databaseId\n gql_id: id\n displayName\n network {\n databaseId\n }\n}\n\nfragment MessageParticipantList on MessageParticipantConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n isTagged\n isNotified\n node {\n ...UserFields\n }\n }\n}\n\nfragment ThreadParticipantList on ThreadParticipantConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n node {\n ...UserFields\n }\n }\n}\n\nfragment RepliedToMessageFields on Message {\n databaseId\n gql_id: id\n thread {\n databaseId\n }\n version\n isEdited\n viewerCanEdit\n sender {\n ...UserFields\n }\n content {\n __typename\n ...MessageContentFields\n ...AnnouncementMessageContentFields\n }\n message_participants: participants(first: 100) {\n ...MessageParticipantList\n }\n}\n\nfragment MessageFields on Message {\n ...RepliedToMessageFields\n createdAt\n updatedAt\n repliedTo {\n databaseId\n gql_id: id\n sender {\n ... on User {\n ...UserFields\n }\n }\n }\n viewerMutationId\n}\n\nfragment MessageList on MessageConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n cursor\n node {\n ...MessageFields\n }\n }\n}\n\nfragment CoreThreadFields on Thread {\n databaseId\n gql_id: id\n realtimeChannelId\n network {\n ...NetworkFields\n }\n group {\n ...GroupFields\n }\n viewerLastReadMessage {\n databaseId\n }\n viewerHasUnreadMessages\n viewerMutationId\n viewerIsFollowing\n threadStarter {\n ...MessageFields\n }\n thread_participants: participants(first: 100) {\n ...ThreadParticipantList\n }\n}\n"},316:function(e,t){e.exports="query DiscoveryFeedWeb($threadCount: Int = 20, $replyCount: Int = 2) {\n viewer {\n discoveryFeed {\n threads(last: $threadCount) {\n ...DiscoveryFeedThreadList\n }\n }\n }\n}\n\nfragment DiscoveryFeedThreadList on DiscoveryFeedThreadConnection {\n edges {\n sortKey\n node {\n replies(last: $replyCount) {\n ...MessageList\n }\n ...CoreThreadFields\n }\n }\n}\n\nfragment MessageContentFields on NormalMessageContent {\n body {\n parsedBody\n references {\n __typename\n ... on User {\n ...UserFields\n }\n ... on Group {\n ...GroupFields\n }\n }\n }\n}\n\nfragment AnnouncementMessageContentFields on AnnouncementMessageContent {\n title\n body {\n htmlParsedBody\n references {\n __typename\n ... on User {\n ...UserFields\n }\n ... on Group {\n ...GroupFields\n }\n }\n }\n}\n\nfragment PageInfoFields on PageInfo {\n hasPreviousPage\n startCursor\n hasNextPage\n endCursor\n}\n\nfragment NetworkFields on Network {\n databaseId\n gql_id: id\n displayName\n}\n\nfragment UserFields on User {\n databaseId\n gql_id: id\n network {\n ...NetworkFields\n }\n displayName\n avatar(width: 48, height: 48)\n}\n\nfragment GroupFields on Group {\n databaseId\n gql_id: id\n displayName\n network {\n databaseId\n }\n}\n\nfragment MessageParticipantList on MessageParticipantConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n isTagged\n isNotified\n node {\n ...UserFields\n }\n }\n}\n\nfragment ThreadParticipantList on ThreadParticipantConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n node {\n ...UserFields\n }\n }\n}\n\nfragment RepliedToMessageFields on Message {\n databaseId\n gql_id: id\n thread {\n databaseId\n }\n version\n isEdited\n viewerCanEdit\n sender {\n ...UserFields\n }\n content {\n __typename\n ...MessageContentFields\n ...AnnouncementMessageContentFields\n }\n message_participants: participants(first: 100) {\n ...MessageParticipantList\n }\n}\n\nfragment MessageFields on Message {\n ...RepliedToMessageFields\n createdAt\n updatedAt\n repliedTo {\n databaseId\n gql_id: id\n sender {\n ... on User {\n ...UserFields\n }\n }\n }\n viewerMutationId\n}\n\nfragment MessageList on MessageConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n cursor\n node {\n ...MessageFields\n }\n }\n}\n\nfragment CoreThreadFields on Thread {\n databaseId\n gql_id: id\n realtimeChannelId\n network {\n ...NetworkFields\n }\n group {\n ...GroupFields\n }\n viewerLastReadMessage {\n databaseId\n }\n viewerHasUnreadMessages\n viewerMutationId\n viewerIsFollowing\n threadStarter {\n ...MessageFields\n }\n thread_participants: participants(first: 100) {\n ...ThreadParticipantList\n }\n}\n"},317:function(e,t){e.exports="query AllFeedWeb($threadCount: Int = 8, $replyCount: Int = 2, $olderThan: String, $newerThan: String) {\n allFeed {\n threads(last: $threadCount, before: $olderThan, after: $newerThan) {\n ...AllFeedThreadList\n }\n }\n}\n\nfragment AllFeedThreadList on AllFeedThreadConnection {\n realtimeChannelId\n pageInfo {\n ...PageInfoFields\n }\n edges {\n cursor\n sortKey\n node {\n replies(last: $replyCount) {\n ...MessageList\n }\n ...CoreThreadFields\n }\n }\n}\n\nfragment MessageContentFields on NormalMessageContent {\n body {\n parsedBody\n references {\n __typename\n ... on User {\n ...UserFields\n }\n ... on Group {\n ...GroupFields\n }\n }\n }\n}\n\nfragment AnnouncementMessageContentFields on AnnouncementMessageContent {\n title\n body {\n htmlParsedBody\n references {\n __typename\n ... on User {\n ...UserFields\n }\n ... on Group {\n ...GroupFields\n }\n }\n }\n}\n\nfragment PageInfoFields on PageInfo {\n hasPreviousPage\n startCursor\n hasNextPage\n endCursor\n}\n\nfragment NetworkFields on Network {\n databaseId\n gql_id: id\n displayName\n}\n\nfragment UserFields on User {\n databaseId\n gql_id: id\n network {\n ...NetworkFields\n }\n displayName\n avatar(width: 48, height: 48)\n}\n\nfragment GroupFields on Group {\n databaseId\n gql_id: id\n displayName\n network {\n databaseId\n }\n}\n\nfragment MessageParticipantList on MessageParticipantConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n isTagged\n isNotified\n node {\n ...UserFields\n }\n }\n}\n\nfragment ThreadParticipantList on ThreadParticipantConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n node {\n ...UserFields\n }\n }\n}\n\nfragment RepliedToMessageFields on Message {\n databaseId\n gql_id: id\n thread {\n databaseId\n }\n version\n isEdited\n viewerCanEdit\n sender {\n ...UserFields\n }\n content {\n __typename\n ...MessageContentFields\n ...AnnouncementMessageContentFields\n }\n message_participants: participants(first: 100) {\n ...MessageParticipantList\n }\n}\n\nfragment MessageFields on Message {\n ...RepliedToMessageFields\n createdAt\n updatedAt\n repliedTo {\n databaseId\n gql_id: id\n sender {\n ... on User {\n ...UserFields\n }\n }\n }\n viewerMutationId\n}\n\nfragment MessageList on MessageConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n cursor\n node {\n ...MessageFields\n }\n }\n}\n\nfragment CoreThreadFields on Thread {\n databaseId\n gql_id: id\n realtimeChannelId\n network {\n ...NetworkFields\n }\n group {\n ...GroupFields\n }\n viewerLastReadMessage {\n databaseId\n }\n viewerHasUnreadMessages\n viewerMutationId\n viewerIsFollowing\n threadStarter {\n ...MessageFields\n }\n thread_participants: participants(first: 100) {\n ...ThreadParticipantList\n }\n}\n"},318:function(e,t){e.exports="query UnsupportedFeedWeb($unsupportedFeedInfo: InboxFeedType!) {\n unsupportedFeed: viewer {\n inbox {\n threads(last: 0, type: $unsupportedFeedInfo) {\n viewerUnreadCount\n }\n }\n }\n}\n"},319:function(e,t){e.exports="query EditHistoryWeb($id: ID!) {\n node(id: $id) {\n ... on Message {\n ...EditHistoryMessageFields\n }\n }\n}\n\nfragment EditHistoryMessageFields on Message {\n previousVersions(last: 100) {\n ...MessageVersions\n }\n}\n\nfragment MessageVersions on MessageVersionConnection {\n edges {\n node {\n content {\n __typename\n ...MessageBodyFields\n ...AnnouncementBodyFields\n }\n thread {\n ...ThreadFields\n }\n sender {\n ...SenderFields\n }\n createdAt\n updatedAt\n databaseId\n version\n }\n }\n}\n\nfragment MessageBodyFields on NormalMessageContent {\n body {\n parsedBody\n }\n}\n\nfragment AnnouncementBodyFields on AnnouncementMessageContent {\n title\n body {\n htmlParsedBody\n }\n}\n\nfragment ThreadFields on Thread {\n group {\n databaseId\n }\n network {\n databaseId\n }\n databaseId\n}\n\nfragment SenderFields on MessageSender {\n ... on User {\n databaseId\n }\n}\n"},32:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.threadDeepLink=t.activate=t.invitations=t.notifications=t.logout=t.adminDirectory=t.admin=t.clientApplication=t.clientApplications=t.logoutLanding=t.search=t.message=t.networkIndex=t.ogoFollowers=t.ogoIndex=t.topicIndex=t.account=t.getMugshotUrlFromTemplate=t.userSuspend=t.userBookmarked=t.userImages=t.userVideos=t.userFiles=t.userInfo=t.userIndex=t.filePreview=t.fileDownload=t.fileEdit=t.fileCreate=t.fileCompare=t.fileFollowers=t.fileIndex=t.inboxSearch=t.inboxPrivate=t.inboxAll=t.inboxUnread=t.inboxIndex=t.groupMugshotFullsize=t.groupMugshot=t.groupDelete=t.groupSettings=t.groupFilesFragment=t.groupFiles=t.groupMembers=t.groupName=t.groupInfo=t.groupAll=t.groupUnviewed=t.groupIndexFromId=t.groupIndex=t.groupAnalytics=t.groupsAllCompany=t.groupsSearch=t.groupsAll=t.groupsSuggested=t.groupsMine=t.indexForModel=t.groups=t.validateCommunityName=t.networks=t.thread=t.help=t.blog=t.careers=t.privacyPolicy=t.usageTerms=t.pricing=t.about=t.developers=t.usagePolicyTask=t.usagePolicy=t.home=t.apps=t.gettingStartedTask=t.desktopNotifierTask=t.emailConfirmation=t.pendingInvitations=t.pendingRequests=void 0;var r=n(19),i=n(12),a=h(n(24)),o=h(n(61)),s=p(n(31)),u=p(n(18)),d=n(195),c=h(n(130)),l=h(n(196)),f=h(n(16));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var g=function(e,t){return e[t]||e.get&&e.get(t)},m=function(e){return a.app("/#/users/"+g(e,"id"))},_=function(e){return a.app("/topics/"+e.id)},y=function(e){return a.app("/#/graph/"+e.id)},v=function(e){return u.default.isAllCompany(e)?a.app("/#/threads/company?type=general"):a.app("/#/threads/inGroup",{type:"in_group",feedId:e.id})},b=function(e){return u.default.isAllCompany(e)?a.app("/#/groups/company/files"):a.app("/#/groups/"+e.id+"/files")},w=function(e,t){return a.app("#/files/"+e.id,t)},T=function(e){return a.base()+"/"+e.permalink};t.pendingRequests=function(){return a.app("/notifications")},t.pendingInvitations=function(){return a.app("/account/invitations")},t.emailConfirmation=function(){return a.app("/signup/email_confirm")},t.desktopNotifierTask=function(){return a.app("/home/signup_desktop_task")},t.gettingStartedTask=function(e){return a.app("/getting_started/"+e)},t.apps=function(e){return a.app("/apps",e)},t.home=function(e){return a.app("/#/home",e)},t.usagePolicy=function(){return a.app("/#/usage_policy")},t.usagePolicyTask=function(){return a.app("/usage_policies/usage_policy_task")},t.developers=function(){return"https://developer.yammer.com/"},t.about=function(e){return"https://products.office.com/"+(e=e||"en-US")+"/yammer"},t.pricing=function(e){return"https://products.office.com/"+(e=e||"en-US")+"/business/compare-office-365-for-business-plans"},t.usageTerms=function(e){return"https://products.office.com/"+(e=e||"en-US")+"/yammer/terms-of-use"},t.privacyPolicy=function(){return"https://go.microsoft.com/fwlink/?LinkId=521839"},t.careers=function(){return"https://careers.microsoft.com/yammer"},t.blog=function(){return"https://blogs.office.com/yammer/"},t.help=function(){return(0,r.isDesktopApp)()?"https://aka.ms/yamdesktophelp":"https://aka.ms/yammerhelp"},t.thread=function(e,t){var n=e.id;return(0,i.treatment)("graphql_feed_rendering_web")&&e.gql&&e.gql.gql_id&&(n=e.gql.gql_id),a.app("/#/Threads/show?threadId="+n,t)},t.networks=function(){return a.app("communities")},t.validateCommunityName=function(){return a.app("communities/validate")},t.groups=function(){return a.app("/#/groups")},t.indexForModel=function(e){return u.default.isGroup(e)?v(e):s.default.isUser(e)?m(e):o.isFile(e)?w(e):(0,d.isTag)(e)?e.web_url:(0,d.isTopic)(e)?_(e):c.isOpenGraphObject(e)?y(e):a.base()},t.groupsMine=function(){return a.app("/#/groups/mine")},t.groupsSuggested=function(){return a.app("/#/groups/suggested")},t.groupsAll=function(){return a.app("/#/groups/all")},t.groupsSearch=function(){return a.app("/#/groups/search")},t.groupsAllCompany=function(e){return T(e)+"/groups/company"},t.groupAnalytics=function(e){return u.default.isAllCompany(e)?a.app("/#/groups/company/insights"):a.app("/#/groups/"+e.id+"/insights")},t.groupIndex=v,t.groupIndexFromId=function(e){return u.default.isAllCompanyById(e)?a.app("/#/threads/company?type=general"):a.app("/#/threads/inGroup",{type:"in_group",feedId:e})},t.groupUnviewed=function(e){return u.default.isAllCompany(e)?a.app("/#/threads/company",{type:"general",view:"unviewed"}):a.app("/#/threads/inGroup",{type:"in_group",feedId:e.id,view:"unviewed"})},t.groupAll=function(e){return u.default.isAllCompany(e)?a.app("/#/threads/company",{type:"general",view:"all"}):a.app("/#/threads/inGroup",{type:"in_group",feedId:e.id,view:"all"})},t.groupInfo=function(e){return u.default.isAllCompany(e)?a.app("/#/groups/company/info"):a.app("/#/groups/"+e.id+"/info")},t.groupName=function(e){return a.app("/groups/"+g(e,"name"))},t.groupMembers=function(e){return u.default.isAllCompany(e)?a.app("/groups/company/members"):v(e)},t.groupFiles=b,t.groupFilesFragment=function(e){return f.extractFragment(b(e))},t.groupSettings=function(e){return u.default.isAllCompany(e)?a.app("/groups/company/settings"):a.app("/#/groups/"+e.id+"/settings")},t.groupDelete=function(e){return a.app("/#/groups/"+e.id+"/delete")},t.groupMugshot=function(e,t,n){t&&n&&(t=l.getScaledDimension(t));var r=g(e,"mugshot_url_template");return t&&r?r.replace("{width}",t).replace("{height}",t):g(e,"mugshot_url")},t.groupMugshotFullsize=function(e){var t=g(e,"mugshot_url_template");return t?t.replace(/\{width\}x\{height\}\/(.+)/,"$1"):""},t.inboxIndex=function(e){return a.app("/#/inbox/index",e)},t.inboxUnread=function(){return a.app("/#/inbox/unread")},t.inboxAll=function(){return a.app("/#/inbox/all")},t.inboxPrivate=function(){return a.app("/#/inbox/private")},t.inboxSearch=function(e){return a.app("/#/inbox/search",e)},t.fileIndex=w,t.fileFollowers=function(e){return a.app("/uploaded_files/"+e.id+"/users")},t.fileCompare=function(e,t){return a.app("#/files/"+e.id+"?version="+t.id)},t.fileCreate=function(e,t){var n="?network_id="+e+"&group_id="+t;return a.fileville("/v1/documents/edit_new"+n)},t.fileEdit=function(e){return a.app("/uploaded_files/"+e.id+"/edit")},t.fileDownload=function(e){return a.api("uploaded_files/"+e.id+"/download")},t.filePreview=function(e){return a.api("uploaded_files/"+e.id+"/preview/"+e.name)},t.userIndex=m,t.userInfo=function(e){return a.app("/#/users/"+g(e,"id")+"/info")},t.userFiles=function(e){return a.app("/#/users/"+g(e,"id")+"/files")},t.userVideos=function(e){return a.app("/#/users/"+g(e,"id")+"/videos")},t.userImages=function(e){return a.app("/#/users/"+g(e,"id")+"/images")},t.userBookmarked=function(e){return a.app("/#/users/"+g(e,"id")+"/bookmarked")},t.userSuspend=function(e){return a.app("/users/"+e.id+"/suspend_confirm")},t.getMugshotUrlFromTemplate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"48";return e.replace("{width}",t).replace("{height}",t)},t.account=function(e,t){return"notifications"===(e=e||"profile_info")?a.app("/account/"+e,t):a.app("/#/account/"+e,t)},t.topicIndex=_,t.ogoIndex=y,t.ogoFollowers=function(e){return a.app("/graph/"+e.id+"/users")},t.networkIndex=T,t.message=function(e){return a.app("messages/"+e.id)},t.search=function(e){return a.app("#/Threads/Search",e)},t.logoutLanding=function(){return a.base()+"/logout_landing"},t.clientApplications=function(){return a.app("/client_applications")},t.clientApplication=function(e){return a.app("/client_applications/"+e)},t.admin=function(e){return a.app("/admin",e)},t.adminDirectory=function(){return a.app("admin/directory")},t.logout=function(e){return a.app("/logout",e)},t.notifications=function(){return a.app("#/notifications/index",{type:"notifications"})},t.invitations=function(e){return a.app("#/invitations/by_email",e)},t.activate=function(e,t){return a.app("/activate/"+e,t)},t.threadDeepLink=function(e){return e&&e.gql&&e.gql.gql_id?a.join(a.app("threads"),e.gql.gql_id):a.join(a.app("threads"),e.id+"")}},320:function(e,t){e.exports="query ReplyMessageBodyFetchWeb($id: ID!) {\n reply: node(id: $id) {\n ...MessageFields\n }\n}\n\nfragment MessageContentFields on NormalMessageContent {\n body {\n parsedBody\n references {\n __typename\n ... on User {\n ...UserFields\n }\n ... on Group {\n ...GroupFields\n }\n }\n }\n}\n\nfragment AnnouncementMessageContentFields on AnnouncementMessageContent {\n title\n body {\n htmlParsedBody\n references {\n __typename\n ... on User {\n ...UserFields\n }\n ... on Group {\n ...GroupFields\n }\n }\n }\n}\n\nfragment PageInfoFields on PageInfo {\n hasPreviousPage\n startCursor\n hasNextPage\n endCursor\n}\n\nfragment NetworkFields on Network {\n databaseId\n gql_id: id\n displayName\n}\n\nfragment UserFields on User {\n databaseId\n gql_id: id\n network {\n ...NetworkFields\n }\n displayName\n avatar(width: 48, height: 48)\n}\n\nfragment GroupFields on Group {\n databaseId\n gql_id: id\n displayName\n network {\n databaseId\n }\n}\n\nfragment MessageParticipantList on MessageParticipantConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n isTagged\n isNotified\n node {\n ...UserFields\n }\n }\n}\n\nfragment ThreadParticipantList on ThreadParticipantConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n node {\n ...UserFields\n }\n }\n}\n\nfragment RepliedToMessageFields on Message {\n databaseId\n gql_id: id\n thread {\n databaseId\n }\n version\n isEdited\n viewerCanEdit\n sender {\n ...UserFields\n }\n content {\n __typename\n ...MessageContentFields\n ...AnnouncementMessageContentFields\n }\n message_participants: participants(first: 100) {\n ...MessageParticipantList\n }\n}\n\nfragment MessageFields on Message {\n ...RepliedToMessageFields\n createdAt\n updatedAt\n repliedTo {\n databaseId\n gql_id: id\n sender {\n ... on User {\n ...UserFields\n }\n }\n }\n viewerMutationId\n}\n\nfragment MessageList on MessageConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n cursor\n node {\n ...MessageFields\n }\n }\n}\n\nfragment CoreThreadFields on Thread {\n databaseId\n gql_id: id\n realtimeChannelId\n network {\n ...NetworkFields\n }\n group {\n ...GroupFields\n }\n viewerLastReadMessage {\n databaseId\n }\n viewerHasUnreadMessages\n viewerMutationId\n viewerIsFollowing\n threadStarter {\n ...MessageFields\n }\n thread_participants: participants(first: 100) {\n ...ThreadParticipantList\n }\n}\n"},321:function(e,t){e.exports="mutation CreateGroupMessageWeb($groupId: ID!, $body: String, $notifiedUserIds: [ID!]) {\n createGroupMessage(input: {groupId: $groupId, body: $body, notifiedUserIds: $notifiedUserIds}) {\n message {\n ...CreatedMessageFields\n }\n }\n}\n\nfragment CreatedMessageFields on Message {\n databaseId\n gql_id: id\n viewerMutationId\n createdAt\n updatedAt\n isEdited\n viewerCanEdit\n version\n repliedTo {\n databaseId\n }\n sender {\n ...CreatedMessageUserFields\n }\n thread {\n ...CreateMessageThreadFields\n }\n content {\n __typename\n ...CreatedMessageContentFields\n ...CreatedMessageAnnouncementContentFields\n }\n}\n\nfragment CreateMessageThreadFields on Thread {\n databaseId\n gql_id: id\n network {\n databaseId\n }\n group {\n databaseId\n }\n threadStarter {\n databaseId\n }\n}\n\nfragment CreatedMessageContentFields on NormalMessageContent {\n body {\n parsed: parsedBody\n references {\n __typename\n ... on User {\n ...CreatedMessageUserFields\n }\n }\n }\n}\n\nfragment CreatedMessageAnnouncementContentFields on AnnouncementMessageContent {\n title\n body {\n rich: htmlParsedBody\n references {\n __typename\n ... on User {\n ...CreatedMessageUserFields\n }\n }\n }\n}\n\nfragment CreatedMessageUserFields on User {\n databaseId\n}\n"},322:function(e,t){e.exports="mutation CreateDirectMessageWeb($notifiedUserIds: [ID!], $body: String) {\n createDirectMessage(input: {notifiedUserIds: $notifiedUserIds, body: $body}) {\n message {\n ...CreatedMessageFields\n }\n }\n}\n\nfragment CreatedMessageFields on Message {\n databaseId\n gql_id: id\n viewerMutationId\n createdAt\n updatedAt\n isEdited\n viewerCanEdit\n version\n repliedTo {\n databaseId\n }\n sender {\n ...CreatedMessageUserFields\n }\n thread {\n ...CreateMessageThreadFields\n }\n content {\n __typename\n ...CreatedMessageContentFields\n ...CreatedMessageAnnouncementContentFields\n }\n}\n\nfragment CreateMessageThreadFields on Thread {\n databaseId\n gql_id: id\n network {\n databaseId\n }\n group {\n databaseId\n }\n threadStarter {\n databaseId\n }\n}\n\nfragment CreatedMessageContentFields on NormalMessageContent {\n body {\n parsed: parsedBody\n references {\n __typename\n ... on User {\n ...CreatedMessageUserFields\n }\n }\n }\n}\n\nfragment CreatedMessageAnnouncementContentFields on AnnouncementMessageContent {\n title\n body {\n rich: htmlParsedBody\n references {\n __typename\n ... on User {\n ...CreatedMessageUserFields\n }\n }\n }\n}\n\nfragment CreatedMessageUserFields on User {\n databaseId\n}\n"},323:function(e,t){e.exports="mutation CreateReplyWeb($messageMutationId: ID, $body: String, $notifiedUserIds: [ID!]) {\n replyMessage(input: {messageMutationId: $messageMutationId, body: $body, notifiedUserIds: $notifiedUserIds}) {\n message {\n ...CreatedMessageFields\n }\n }\n}\n\nfragment CreatedMessageFields on Message {\n databaseId\n gql_id: id\n viewerMutationId\n createdAt\n updatedAt\n isEdited\n viewerCanEdit\n version\n repliedTo {\n databaseId\n }\n sender {\n ...CreatedMessageUserFields\n }\n thread {\n ...CreateMessageThreadFields\n }\n content {\n __typename\n ...CreatedMessageContentFields\n ...CreatedMessageAnnouncementContentFields\n }\n}\n\nfragment CreateMessageThreadFields on Thread {\n databaseId\n gql_id: id\n network {\n databaseId\n }\n group {\n databaseId\n }\n threadStarter {\n databaseId\n }\n}\n\nfragment CreatedMessageContentFields on NormalMessageContent {\n body {\n parsed: parsedBody\n references {\n __typename\n ... on User {\n ...CreatedMessageUserFields\n }\n }\n }\n}\n\nfragment CreatedMessageAnnouncementContentFields on AnnouncementMessageContent {\n title\n body {\n rich: htmlParsedBody\n references {\n __typename\n ... on User {\n ...CreatedMessageUserFields\n }\n }\n }\n}\n\nfragment CreatedMessageUserFields on User {\n databaseId\n}\n"},324:function(e,t){e.exports="mutation EditMessageWeb($messageMutationId: ID!, $notifiedUserIds: [ID!], $body: String) {\n editMessage(input: {messageMutationId: $messageMutationId, notifiedUserIds: $notifiedUserIds, body: $body}) {\n message {\n ...CreatedMessageFields\n }\n }\n}\n\nfragment CreatedMessageFields on Message {\n databaseId\n gql_id: id\n viewerMutationId\n createdAt\n updatedAt\n isEdited\n viewerCanEdit\n version\n repliedTo {\n databaseId\n }\n sender {\n ...CreatedMessageUserFields\n }\n thread {\n ...CreateMessageThreadFields\n }\n content {\n __typename\n ...CreatedMessageContentFields\n ...CreatedMessageAnnouncementContentFields\n }\n}\n\nfragment CreateMessageThreadFields on Thread {\n databaseId\n gql_id: id\n network {\n databaseId\n }\n group {\n databaseId\n }\n threadStarter {\n databaseId\n }\n}\n\nfragment CreatedMessageContentFields on NormalMessageContent {\n body {\n parsed: parsedBody\n references {\n __typename\n ... on User {\n ...CreatedMessageUserFields\n }\n }\n }\n}\n\nfragment CreatedMessageAnnouncementContentFields on AnnouncementMessageContent {\n title\n body {\n rich: htmlParsedBody\n references {\n __typename\n ... on User {\n ...CreatedMessageUserFields\n }\n }\n }\n}\n\nfragment CreatedMessageUserFields on User {\n databaseId\n}\n"},325:function(e,t){e.exports="mutation DeleteMessageWeb($messageMutationId: ID!) {\n deleteMessage(input: {messageMutationId: $messageMutationId}) {\n messageId\n }\n}\n"},326:function(e,t){e.exports="mutation EditAnnouncementWeb($messageMutationId: ID!, $notifiedUserIds: [ID!], $htmlBody: HTML!, $title: String!) {\n editAnnouncement(input: {messageMutationId: $messageMutationId, notifiedUserIds: $notifiedUserIds, htmlBody: $htmlBody, title: $title}) {\n message {\n ...CreatedMessageFields\n }\n }\n}\n\nfragment CreatedMessageFields on Message {\n databaseId\n gql_id: id\n viewerMutationId\n createdAt\n updatedAt\n isEdited\n viewerCanEdit\n version\n repliedTo {\n databaseId\n }\n sender {\n ...CreatedMessageUserFields\n }\n thread {\n ...CreateMessageThreadFields\n }\n content {\n __typename\n ...CreatedMessageContentFields\n ...CreatedMessageAnnouncementContentFields\n }\n}\n\nfragment CreateMessageThreadFields on Thread {\n databaseId\n gql_id: id\n network {\n databaseId\n }\n group {\n databaseId\n }\n threadStarter {\n databaseId\n }\n}\n\nfragment CreatedMessageContentFields on NormalMessageContent {\n body {\n parsed: parsedBody\n references {\n __typename\n ... on User {\n ...CreatedMessageUserFields\n }\n }\n }\n}\n\nfragment CreatedMessageAnnouncementContentFields on AnnouncementMessageContent {\n title\n body {\n rich: htmlParsedBody\n references {\n __typename\n ... on User {\n ...CreatedMessageUserFields\n }\n }\n }\n}\n\nfragment CreatedMessageUserFields on User {\n databaseId\n}\n"},327:function(e,t){e.exports="mutation RemoveParticipantsWeb($threadMutationId: ID!, $participantIds: [ID!]!) {\n removeParticipants(input: {threadMutationId: $threadMutationId, participantIds: $participantIds}) {\n thread {\n databaseId\n }\n }\n}\n"},328:function(e,t){e.exports="mutation TestMoveThreadToGroupWeb($threadMutationId: ID!, $groupDatabaseId: ID!) {\n moveThreadToGroup(input: {threadMutationId: $threadMutationId, groupId: $groupDatabaseId}) {\n thread {\n ...CoreThreadFields\n }\n }\n}\n\nfragment MessageContentFields on NormalMessageContent {\n body {\n parsedBody\n references {\n __typename\n ... on User {\n ...UserFields\n }\n ... on Group {\n ...GroupFields\n }\n }\n }\n}\n\nfragment AnnouncementMessageContentFields on AnnouncementMessageContent {\n title\n body {\n htmlParsedBody\n references {\n __typename\n ... on User {\n ...UserFields\n }\n ... on Group {\n ...GroupFields\n }\n }\n }\n}\n\nfragment PageInfoFields on PageInfo {\n hasPreviousPage\n startCursor\n hasNextPage\n endCursor\n}\n\nfragment NetworkFields on Network {\n databaseId\n gql_id: id\n displayName\n}\n\nfragment UserFields on User {\n databaseId\n gql_id: id\n network {\n ...NetworkFields\n }\n displayName\n avatar(width: 48, height: 48)\n}\n\nfragment GroupFields on Group {\n databaseId\n gql_id: id\n displayName\n network {\n databaseId\n }\n}\n\nfragment MessageParticipantList on MessageParticipantConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n isTagged\n isNotified\n node {\n ...UserFields\n }\n }\n}\n\nfragment ThreadParticipantList on ThreadParticipantConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n node {\n ...UserFields\n }\n }\n}\n\nfragment RepliedToMessageFields on Message {\n databaseId\n gql_id: id\n thread {\n databaseId\n }\n version\n isEdited\n viewerCanEdit\n sender {\n ...UserFields\n }\n content {\n __typename\n ...MessageContentFields\n ...AnnouncementMessageContentFields\n }\n message_participants: participants(first: 100) {\n ...MessageParticipantList\n }\n}\n\nfragment MessageFields on Message {\n ...RepliedToMessageFields\n createdAt\n updatedAt\n repliedTo {\n databaseId\n gql_id: id\n sender {\n ... on User {\n ...UserFields\n }\n }\n }\n viewerMutationId\n}\n\nfragment MessageList on MessageConnection {\n totalCount\n pageInfo {\n ...PageInfoFields\n }\n edges {\n cursor\n node {\n ...MessageFields\n }\n }\n}\n\nfragment CoreThreadFields on Thread {\n databaseId\n gql_id: id\n realtimeChannelId\n network {\n ...NetworkFields\n }\n group {\n ...GroupFields\n }\n viewerLastReadMessage {\n databaseId\n }\n viewerHasUnreadMessages\n viewerMutationId\n viewerIsFollowing\n threadStarter {\n ...MessageFields\n }\n thread_participants: participants(first: 100) {\n ...ThreadParticipantList\n }\n}\n"},329:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateGroupMembership=c,n.d(t,"__esModule",function(){return l});var r=n(0),i=n.n(r),a=n(39),o=(n.n(a),n(34)),s=n(56),u=a.schema;function d(e){var t={PRIVATE:"private",PUBLIC:"public",MODERATED:"moderated"}[e.privacy],n="PENDING"===e.viewerMembershipStatus,r="INVITED"===e.viewerMembershipStatus,a=!!e.isExternal,u=e.participatingNetworks;u&&(u=u.map(function(e){return{id:Object(s.getIntId)(e.databaseId),name:e.displayName||"GraphQL participanting network display name missing"}}));var d,c=e.avatar;return{type:"group",id:Object(s.getIntId)(e.databaseId),email:e.email,full_name:e.displayName||"GraphQL group name missing",network_id:Object(s.getIntId)(Object(o.val)(e,"network.databaseId")),description:e.description||null,privacy:t,mugshot_url:c,mugshot_url_template:e.avatarUrlTemplate,mugshot_id:(d=c,void 0===d&&(d=""),i.a.last(d.split("/"))||void 0),created_at:Date.parse(e.createdAt)||null,color:e.color,external:a,moderated:"moderated"===t,header_image_url:e.headerImage,category:function(e){return{TEAM:"team",COMMUNITY:"community",PROJECT:"project",OTHER:"other",NONE:"unclassified"}[e.category||"NONE"]}(e),network_name:a?Object(o.val)(e,"network.displayName"):void 0,participating_networks:a?u:void 0,suggested_networks:a?[]:void 0,network_allows_attachments:!!a||void 0,network_attachment_types_allowed:a?"ALL":void 0,admin:!!e.viewerIsAdmin,member:!(n||r),pending:n,can_add_members:!0,can_invite:!0,gql:{gql_id:e.gql_id}}}function c(e){var t={group_memberships:[],pending_group_memberships:[],invited_group_memberships:[]};return Object(s.graphqlConnectionToArray)(e).reverse().forEach(function(e){var n=d(e);"PENDING"===e.viewerMembershipStatus?t.pending_group_memberships.push(n):"INVITED"===e.viewerMembershipStatus?t.invited_group_memberships.push(n):e&&e.databaseId&&t.group_memberships.push(n)}),t}t.default=new u.Entity("groupMembership",{},{idAttribute:function(){return"groupMembership"},processStrategy:c});var l=!0},330:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(104));var s=function(e){return function(t){return o.isImmutable(t)?t.get(e):t[e]}},u=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t||"string"!=typeof t)throw new Error("Expected a string key for Entity, but found "+t+".");var a=r.idAttribute,o=void 0===a?"id":a,u=r.mergeStrategy,d=void 0===u?function(e,t){return i({},e,t)}:u,c=r.processStrategy,l=void 0===c?function(e){return i({},e)}:c;this._key=t,this._getId="function"==typeof o?o:s(o),this._idAttribute=o,this._mergeStrategy=d,this._processStrategy=l,this.define(n)}return a(e,[{key:"define",value:function(e){this.schema=Object.keys(e).reduce(function(t,n){var r=e[n];return i({},t,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,r))},this.schema||{})}},{key:"getId",value:function(e,t,n){return this._getId(e,t,n)}},{key:"merge",value:function(e,t){return this._mergeStrategy(e,t)}},{key:"normalize",value:function(e,t,n,i,a){var o=this,s=this._processStrategy(e,t,n);return Object.keys(this.schema).forEach(function(e){if(s.hasOwnProperty(e)&&"object"===r(s[e])){var t=o.schema[e];s[e]=i(s[e],s,e,t,a)}}),a(this,s,e,t,n),this.getId(e,t,n)}},{key:"denormalize",value:function(e,t){var n=this;return o.isImmutable(e)?o.denormalizeImmutable(this.schema,e,t):(Object.keys(this.schema).forEach(function(r){if(e.hasOwnProperty(r)){var i=n.schema[r];e[r]=t(e[r],i)}}),e)}},{key:"key",get:function(){return this._key}},{key:"idAttribute",get:function(){return this._idAttribute}}]),e}();t.default=u},331:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(131),o=(r=a)&&r.__esModule?r:{default:r};var s=function(e){function t(e,n){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),!n)throw new Error('Expected option "schemaAttribute" not found on UnionSchema.');return function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),i(t,[{key:"normalize",value:function(e,t,n,r,i){return this.normalizeValue(e,t,n,r,i)}},{key:"denormalize",value:function(e,t){return this.denormalizeValue(e,t)}}]),t}();t.default=s},332:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(131),s=(r=o)&&r.__esModule?r:{default:r};function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.default),a(t,[{key:"normalize",value:function(e,t,n,r,a){var o=this;return Object.keys(e).reduce(function(t,n,s){var d=e[n];return null!=d?i({},t,u({},n,o.normalizeValue(d,e,n,r,a))):t},{})}},{key:"denormalize",value:function(e,t){var n=this;return Object.keys(e).reduce(function(r,a){var o=e[a];return i({},r,u({},a,n.denormalizeValue(o,t)))},{})}}]),t}();t.default=d},333:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.denormalize=t.normalize=void 0;var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(131),o=(r=a)&&r.__esModule?r:{default:r};var s=function(e){if(Array.isArray(e)&&e.length>1)throw new Error("Expected schema definition to be a single schema, but found "+e.length+".");return e[0]},u=function(e){return Array.isArray(e)?e:Object.keys(e).map(function(t){return e[t]})},d=(t.normalize=function(e,t,n,r,i,a){return e=s(e),u(t).map(function(t,o){return i(t,n,r,e,a)})},t.denormalize=function(e,t,n){return e=s(e),t&&t.map?t.map(function(t){return n(t,e)}):t},function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),i(t,[{key:"normalize",value:function(e,t,n,r,i){var a=this;return u(e).map(function(e,o){return a.normalizeValue(e,t,n,r,i)}).filter(function(e){return null!=e})}},{key:"denormalize",value:function(e,t){var n=this;return e&&e.map?e.map(function(e){return n.denormalizeValue(e,t)}):e}}]),t}());t.default=d},334:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.denormalize=t.normalize=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(104));var o=function(e,t,n,r,a,o){var s=i({},t);return Object.keys(e).forEach(function(n){var r=e[n],i=a(t[n],t,n,r,o);null==i?delete s[n]:s[n]=i}),s};t.normalize=o;var s=function(e,t,n){if(a.isImmutable(t))return a.denormalizeImmutable(e,t,n);var r=i({},t);return Object.keys(e).forEach(function(t){r[t]&&(r[t]=n(r[t],e[t]))}),r};t.denormalize=s;var u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.define(t)}return r(e,[{key:"define",value:function(e){this.schema=Object.keys(e).reduce(function(t,n){var r=e[n];return i({},t,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,r))},this.schema||{})}},{key:"normalize",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.apply(void 0,[this.schema].concat(t))}},{key:"denormalize",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return s.apply(void 0,[this.schema].concat(t))}}]),e}();t.default=u},335:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(e&&e.edges||[]).map(function(e){var t=e.cursor,n=e.node;return o({},n,{cursor:t})}),n=s(t,[i.a]),r=function(e){if(!e||0===e.edges.length)return{};return o({},Object(a.b)(e),{has_next_page:(t=e.pageInfo,!!t&&!!t.hasNextPage),end_cursor:function(e){if(e)return e.endCursor;return null}(e.pageInfo)});var t}(e),u=o({message:[]},n.entities),d=n.result.map(function(e){return u.thread[e].thread_starter_id});return{entities:u,result:{messages:d,count:n.result.length,meta:r}}},n.d(t,"__esModule",function(){return u});var r=n(39),i=(n.n(r),n(272)),a=n(273),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s=r.normalize;var u=!0},336:function(e,t){e.exports="mutation UpdateUserPreferencesClients($isModernClientPreferred: Boolean!) {\n updateUserPreferences(input: {isModernClientPreferred: $isModernClientPreferred}) {\n userPreferences {\n isModernClientPreferred\n }\n }\n}\n"},337:function(e,t){e.exports="query GroupNamingConventionsWeb {\n settings {\n group {\n viewerNamingConventions {\n prefix\n suffix\n }\n }\n }\n}\n"},338:function(e,t){e.exports="query GroupClassificationSettingsWeb {\n settings {\n group {\n classifications {\n description\n isDefault\n name\n }\n usageGuidelinesUrl\n }\n }\n}\n"},339:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hydrantRequestFeed=function(e,t,n){var r=e.url,s=Object(a.getParamsForUrl)(r),l=c(d(r)),f=Object(a.isApiV2)(l),p={method:"POST",contentType:"text/plain; charset=UTF-8",url:l+"?"+s,data:Object(a.getFieldsForUrl)(r,f)},h=Object(a.convertCallback)(t,r),g=e.jitterCondition||function(){return!1},m=e.jitter||u(e),_=e.retryCallback||function(){};return Object(o.retry)(function(){return i.default.send(p)},1,g,m,_).then(h,n)};var r=n(0),i=(n.n(r),n(51)),a=n(98),o=(n.n(a),n(132)),s=(n.n(o),function(e,t,n){return Object(r.isNumber)(e[t])?e[t]:n}),u=function(e){return function(t){var n=Object(r.random)(function(e){return s(e,"initialJitterMin",0)}(e),function(e){return s(e,"initialJitterMax",0)}(e)),i=Object(r.random)(function(e){return s(e,"retryJitterMin",0)}(e),function(e){return s(e,"retryJitterMax",0)}(e));return 0===t?n:i}},d=function(e){var t=e.indexOf("?");return-1===t?e:e.slice(0,t)},c=function(e){return Object(a.canConvertUrl)(e)?Object(a.convertUrl)(e):e}},34:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ns=function(e,t){for(var n=window,i="string"==typeof e?e.split("."):e,a=0,o=i;a<o.length;a++){var s=o[a];n[s]||(n[s]={}),n=n[s]}t&&Object(r.extend)(n,t);return n},t.val=function(e,t,n){for(var r=e,i=t.split("."),a=3===arguments.length,o=i.length-1,s=0;s<i.length;s+=1){var u=i[s];if(r[u]){if(s===o)return a?r[u]=n:r[u]}else{if(!a)return r[u];r[u]=s===o?n:{}}r=r[u]}};var r=n(0);n.n(r)},340:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"isHydrantFeedAadEnabled",function(){return a});var r=n(12),i=(n.n(r),n(46)),a=function(){return Object(r.treatment)("web_aad_token_for_hydrant_calls")&&Object(i.isInConditionalAccess)()}},341:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"__esModule",function(){return a});var r=n(9),i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};t.default=function(e){return i({},e,{beforeSend:function(e,t){Object(r.event)("create_upload_session_request",i({},t.data)),"string"!=typeof t.data&&(t.data=JSON.stringify(t.data))}})};var a=!0},38:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},39:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.denormalize=t.normalize=t.schema=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=f(n(330)),o=f(n(331)),s=f(n(332)),u=l(n(333)),d=l(n(334)),c=l(n(104));function l(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function f(e){return e&&e.__esModule?e:{default:e}}t.schema={Array:u.default,Entity:a.default,Object:d.default,Union:o.default,Values:s.default},t.normalize=function(e,t){if(!e||"object"!==(void 0===e?"undefined":i(e)))throw new Error('Unexpected input given to normalize. Expected type to be "object", found "'+(void 0===e?"undefined":i(e))+'".');var n={},r=function(e){return function(t,n,r,i,a){var o=t.key,s=t.getId(r,i,a);o in e||(e[o]={});var u=e[o][s];e[o][s]=u?t.merge(u,n):n}}(n);return{entities:n,result:function e(t,n,r,a,o){return"object"===(void 0===t?"undefined":i(t))&&t?"object"!==(void 0===a?"undefined":i(a))||a.normalize&&"function"==typeof a.normalize?a.normalize(t,n,r,e,o):(Array.isArray(a)?u.normalize:d.normalize)(a,t,n,r,e,o):t}(e,e,null,t,r)}};var p=function(e){var t={},n=h(e);return function e(o,s){return"object"!==(void 0===s?"undefined":i(s))||s.denormalize&&"function"==typeof s.denormalize?null==o?o:s instanceof a.default?function(e,t,n,a,o){var s=a(e,t);if("object"!==(void 0===s?"undefined":i(s))||null===s)return s;if(o[t.key]||(o[t.key]={}),!o[t.key][e]){var u=c.isImmutable(s)?s:r({},s);o[t.key][e]=u,o[t.key][e]=t.denormalize(u,n)}return o[t.key][e]}(o,s,e,n,t):s.denormalize(o,e):(Array.isArray(s)?u.denormalize:d.denormalize)(s,o,e)}},h=function(e){var t=c.isImmutable(e);return function(n,r){var a=r.key;return"object"===(void 0===n?"undefined":i(n))?n:t?e.getIn([a,n.toString()]):e[a][n]}};t.denormalize=function(e,t,n){if(void 0!==e)return p(n)(e,t)}},40:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"__esModule",function(){return s});var r=n(3),i=n.n(r),a=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o=function(e,t){var n=e;return Array.isArray(e)||(n=[e]),function(e,r){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];n.some(function(e){return Object.prototype.hasOwnProperty.call(r.after,e)})&&t.apply(void 0,[e,r].concat(i))}};t.default=a({},i.a.Events,{onPropertyUpdate:function(e,t,n,r){return e.listenTo(this,t,o(n,r))},oncePropertyUpdate:function(e,t,n,r){return e.listenToOnce(this,t,o(n,r))}});var s=!0},42:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAllCompany=t.allCompany=t.allCompanyId=void 0;var r,i=l(n(6)),a=l(n(0)),o=n(3),s=(r=o)&&r.__esModule?r:{default:r},u=l(n(2)),d=n(32),c=l(n(22));function l(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var f=a.constant("COMPANY_GROUP_ID"),p=a.memoize(function(){var e=i.getCurrentNetwork();return new s.default.Model({id:f(),type:"group",color:"#264f8c",member:!0,state:"active",full_name:c.getCompanyGroupName(e),privacy:"public",web_url:(0,d.groupsAllCompany)(i.getCurrentNetwork()),description:u.t("this_is_the_default_group_for_everyone",{network:e.name})})});t.allCompanyId=f,t.allCompany=p,t.getAllCompany=function(){return c.isConnectedAllCompanyEnabled(i.getCurrentNetwork())?i.getAllCompany():p().attributes}},46:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"isInConditionalAccess",function(){return o}),n.d(t,"isInUpdatedSDK",function(){return s}),n.d(t,"isInEDiscovery",function(){return u}),n.d(t,"isInFileImprovements",function(){return d}),n.d(t,"isInFileImprovementsV4",function(){return c}),n.d(t,"isInFileImprovementsSharepoint",function(){return l}),n.d(t,"isInCreateNewSharePointDocument",function(){return f}),n.d(t,"isInGuestExperience",function(){return p});var r=n(12),i=(n.n(r),n(6)),a=(n.n(i),n(114)),o=function(){var e=Object(i.getCurrentNetwork)();return Object(a.b)(e)},s=function(){return Object(r.treatment)("file_improvements_updated_azure_sdk_network")},u=function(){return Object(r.treatment)("file_ediscovery_experiment")},d=function(){return!0},c=function(){return Object(r.treatment)("file_improvements_v4_apis_network")},l=function(){return Object(r.treatment)("file_improvements_sharepoint")||Object(r.treatment)("file_improvements_sharepoint_network")},f=function(){return Object(r.treatment)("file_improvements_new_sharepoint_documents")},p=function(){return!!Object(r.treatment)("file_improvements_thread_level_guests_aad_token")}},49:function(e,t,n){"use strict";n.d(t,"f",function(){return i}),n.d(t,"g",function(){return a}),n.d(t,"a",function(){return s}),n.d(t,"e",function(){return u}),n.d(t,"c",function(){return c}),n.d(t,"d",function(){return l}),n.d(t,"b",function(){return f}),n.d(t,"k",function(){return p}),n.d(t,"i",function(){return h}),n.d(t,"j",function(){return g}),n.d(t,"h",function(){return m});var r=n(64),i=(n.n(r),function(e){return e.session}),a=function(e){return e.session.user.id},o=function(e){return i(e).client},s=function(e){return o(e).aadClientId},u=function(e){return i(e).credentials},d=function(e){return i(e).user},c=function(e){return i(e).hosts.base},l=function(e){return i(e).hosts.broadcast},f=function(e){return i(e).hosts.aadTokenResource},p=Object(r.createSelector)(d,function(e){return"suspended"===e.state}),h=Object(r.createSelector)(d,function(e){return"deleted"===e.state}),g=Object(r.createSelector)(d,function(e){return e.guest}),m=Object(r.createSelector)(o,function(e){return!!e.appId})},50:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"escapeRegExp",function(){return o}),n.d(t,"trim",function(){return u}),n.d(t,"snakeize",function(){return d}),n.d(t,"camelize",function(){return c}),t.capitalize=l,t.singularize=function(e){return e.replace(/s$/,"")},t.stripHtmlTags=function(e){return g()?p(e):h(e)},t.convertStringyBoolean=function(e){if("false"===e||"0"===e)return!1;return!!e},t.truncate=function(e,t,n){void 0===n&&(n={});if(!e)return"";if(e.length<=t||n.max&&e.length<=n.max)return e;var r="";n.file?(r=e.substring(0,t-t/2),r+=n.truncationChar||"…",r+=e.substring(e.length,e.length-t/2)):(r=n.truncateOnWords?e.substring(0,t).replace(/\s\S+$|\s$/,""):e.substring(0,t),r+=n.truncationChar||"…");return r},n.d(t,"synonymsList",function(){return m}),t.removeAccents=function(e){var t=e;return m.forEach(function(e){var n=e[0];e.slice(1).forEach(function(e){t=t.replace(new RegExp(e,"g"),n)})}),t};var r,i,a,o=function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},s=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,u=function(e){return e?e.replace(s,""):""},d=(r=/([A-Z]+)/g,i=/^_/g,function(e,t){var n=t||"_",a=t?new RegExp("^"+o(n),"g"):i;return e.replace(r,n+"$1").toLowerCase().replace(a,"")}),c=function(){var e=/[-_](\w)/g;return function(t,n){void 0===n&&(n=!1);var r=t.replace(e,function(e,t){return t.toUpperCase()});return r=n?l(r):r}}();function l(e){return e?e.substr(0,1).toUpperCase()+e.substr(1):e}var f,p=function(e){return void 0===a&&(a=document.createElement("div")),a.innerHTML=e,a.textContent||a.innerText},h=function(e){return e.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?>|<\/\w+>/gi,"")},g=function(){return void 0===f&&(f="hello world"===p("<p>hello</p> world")),f};var m=[["a","à","á","â","ã","ä","å"],["ae","æ"],["c","ç"],["e","è","é","ê","ë"],["i","ì","í","î","ï"],["l","ł"],["n","ñ"],["o","ò","ó","ô","õ","ö"],["oe","œ"],["u","ù","ú","û","ü"],["y","ý","ÿ"]]},51:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(127),i=n(6),a=n(149),o=n(24),s=n(171),u=n(8),d=n.n(u),c=n(0),l=n(13),f=n(9),p=n(16),h=n(21),g=n(30),m=n(64),_=n(49),y=n(72),v=function(e){return Object(_.f)(e).telemetry},b=Object(m.createSelector)([_.f,y.isEmbed],function(e,t){return e.yammerEnvironment+(t?".embed":"")}),w=Object(m.createSelector)(_.e,function(e){return!e.accessTokenValid}),T=n(114),E=n(151),I=n(22);n.d(t,"__esModule",function(){return j});var O=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},S=1e6;function C(e){return e&&"auth"in e&&!1===e.auth?null:a}var A=function(e){if(!e)return e;var t=/\.{2,}(\/|$)/g;if(t.test(e)){var n=p.parse(e);return n.directory=d.a.trim(n.directory).replace(t,""),n.file=d.a.trim(n.file).replace(t,""),p.stringify(n)}return e},k=function(e,t){var n=e["yammer-capabilities"];return n=null==n?t:c.union(n.split(","),[t]).join(","),O({},e,{"yammer-capabilities":n})};function N(e,t){var n=c.extend({},e.headers);e.headers=c.extend(n,t)}function x(e){var t=O({dataType:"json",cache:!1},e,{url:A(e.url)});t.method?t.type=t.method:(t.type=t.type||"GET",t.method=t.type);var n=t.dataFilter;if(t.dataFilter=function(e,t){var r="json"===t&&""===d.a.trim(e)?"{}":e;return n?n(r,t):r},t.url&&0===t.url.indexOf(o.api())){var r=e.headers||{};r=k(r,"external-messaging"),r=k(r,"user-sidebar"),r=k(r,"external-groups"),t.url.indexOf("notifications")>-1?t.headers=r:(r=k(r,"parsed-body-only2"),t.headers=r),h.config().isEmbed&&N(t,{"yammer-client-id-override":S.toString()})}if(t.url&&(0===t.url.indexOf(o.api())||0===t.url.indexOf(o.apiV2())||0===t.url.indexOf(o.app())||0===t.url.indexOf(o.gql()))){var i=void 0,a=(i=t.url.match(/for_feed=([^&]*)/))&&i[1],u=(i=t.url.match(/fetch_type=([^&]*)/))&&i[1];N(t,{"X-App-Load-Id":P.getPageLoadId(),"X-App-Load-Time":P.getClientLoadTime().toString(),"X-App-Event-Time":Date.now().toString(),"X-App-Version":P.getYamjsRevision(),"X-App-Environment":P.getYamJsEnvironment(),"X-App-Source-Location-Id":u||"","X-App-Context":a||""})}var c=e.beforeSend;t.beforeSend=function(){return!1!==function(t){var n=C(e);if(n&&"function"==typeof n.beforeSend)return n.beforeSend(t,this)}.apply(this,arguments)&&(("function"!=typeof c||!1!==c.apply(this,arguments))&&void 0)};var l=t.url,f=t.auth,p=t.headers,g=p&&p.Authorization;return s.c(l,f,g),t}var R=function(){r.reauthenticate(),s.b()},F=function(e,t){var n=t.headers,r=t.url;return"?trk_event="+("session_mgmt_logout_"+(e.status||"unknown"))+"&trk_unauthorized_url_trunc="+encodeURIComponent((r||"").replace(h.config().baseURI,"").substr(0,70))+"&trk_was_request_authorization_present="+!(!n||!n.Authorization)};g.default.subscribe(function(){var e=g.default.getState();w(e)&&R()});var P={send:function(e){var t=x(e);return t.error=(n=t,r=n.error||function(){},a=n.url,o=!!a&&a.indexOf("//")>=0&&a.indexOf(h.config().baseURI)<0,s=!!a&&/\/whoville\//.test(a),u=!!a&&/\/(auto)?complete\//.test(a),c=!!a&&/\/streams\//.test(a),p=!!a&&/\/suggest\//.test(a),g=!!a&&/\/language\/translate\//.test(a),m=!!a&&/\/experiments\//.test(a),_=!!a&&/\/banners\//.test(a),y=!!a&&/\/o365\/verified_domains/.test(a),v=!!a&&/\/network_migrations/.test(a),b=!!a&&/\/events(\/|$)/.test(a),w=!!a&&/\/graphql/.test(a),!a||o||s||u||c||p||g||m||_||y||v||b||w?function(e,t,n){var i=this;l.log("Do NOT logout session for unauthorized status code.\nREASON: ","isWhoville=",s,"isCompletie=",u,"isStreams=",c,"isSuggests=",p,"isTranslate=",g,"isExperimentUrl=",m,"isExternal=",o,"isBannersUrl=",_,"isFusionDomain=",y,"isFusionMigration=",v,"isEventsUrl=",b,"hasNoUrl=",!a,"isGqlUrl=",w,"\nrequestUrl=",a),Array.isArray(r)?r.forEach(function(r){return r.apply(i,[e,t,n])}):r.apply(this,[e,t,n])}:function(e,t,o){var s=this;Array.isArray(r)?r.forEach(function(n){return n.apply(s,[e,t,o])}):r.apply(this,[e,t,o]);var u=401===e.status;if(u&&n.adalRetry)P.sendWithAADRefresh(n);else{var d=i.getCurrentUser(),c=window.yam,p=!!d&&c.helper.user.isInactive(d),h=F(e,n);l.log("session_mgmt_logout check on API response error:\n","requestUrl=",a,"\nerrObj.status=",e.status,"\nWill trigger session logout?=",u&&!p,"\nisAccessDenied401=",u,"isDeactivatedOrDeletedUser=",p),u&&!p&&(Object(f.eventNow)("unauthorized_redirecting_to_logout"),P.send({type:"POST",url:"/logout"+h,data:{_method:"delete"},complete:function(){R()}}))}}),d.a.ajax(t);var n,r,a,o,s,u,c,p,g,m,_,y,v,b,w},sendWithAADRefresh:function(e){var t=d.a.Deferred();if(Object(I.isExternal)(i.getCurrentNetwork()))return P.send(e);var n={handleTokenRefreshSuccess:function(n){var r=O({},e.headers,{Authorization:"Bearer "+n}),i=O({},e,{auth:!1,headers:r});Object(T.c)(n),Object(f.info)({message:"office_access_token_refresh_successful"}),P.send(i).done(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.resolve.apply(t,e)}).fail(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.reject.apply(t,e)})},handleTokenRefreshFailure:function(e){}};return Object(E.acquireOfficeAccessToken)(n).catch(l.log),t},getAuthenticator:C,getPageLoadId:function(){return e=g.default.getState(),v(e).pageLoadId;var e},getClientLoadTime:function(){return e=g.default.getState(),v(e).clientLoadTime;var e},getYamJsEnvironment:function(){return b(g.default.getState())},getYamjsRevision:function(){return e=g.default.getState(),v(e).yamjsRevision;var e}};window.yam.request=P;t.default=P;var j=!0},546:function(e,t,n){"use strict";n(21),window.yam=window.yam||{}},547:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(21),i=n(143);Object(r.config)(i)},55:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(0)),a=n(3),o=(r=a)&&r.__esModule?r:{default:r};var s=function(e){i.each(e,function(t,n){void 0===t&&delete e[n]}),e=i.extend({},i.result(this,"defaults"),e),this.options=e,this.initialize.call(this,e)};i.extend(s.prototype,o.default.Events,{initialize:function(){},remove:function(){this.stopListening()}}),s.extend=o.default.Model.extend,t.default=s},56:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"generateUrl",function(){return s}),n.d(t,"generateDate",function(){return u}),n.d(t,"getIntId",function(){return d}),n.d(t,"generateMessageReferences",function(){return l}),n.d(t,"graphqlConnectionToArray",function(){return f}),n.d(t,"isNormalizedPayload",function(){return h});var r=n(0),i=(n.n(r),n(6)),a=(n.n(i),this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}),o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n};function s(e,t){if(!e)return"";var n=i.getCurrentNetwork();return t=r.extend({network_permalink:n.get("permalink")},t),e=e.replace(/\{([^{}]*)\}/g,function(e,n){var r=t[n];return"string"==typeof r||"number"==typeof r?r.toString():e})}function u(e){if(e&&""!==e)return new Date(e).toISOString().replace(/-/g,"/").replace(/T/g," ").replace(/\.\d{3}Z$/," +0000")}function d(e){return"string"==typeof e?parseInt(e,10):e}function c(e,t){var n=a({},t);return e.forEach(function(e){if(e){if("User"===e.__typename||"RegisteredUser"===e.__typename){var t=function(e,t){if(!e.user||!e.user.tagged)return!1;var n=d(t.databaseId);return e.user.tagged.filter(function(e){return e.databaseId===n}).length>0}(n,e),r=function(e,t){if(!e.user||!e.user.blind)return!1;var n=d(t.databaseId);return e.user.blind.filter(function(e){return e.databaseId===n}).length>0}(n,e);if(t||r)return;n.user||(n.user={}),n.user.tagged||(n.user.tagged=[]);var i=a({},e,{databaseId:d(e.databaseId)});n.user.tagged.push(i)}if("Group"===e.__typename){n.group||(n.group={}),n.group.tagged||(n.group.tagged=[]);i=a({},e,{databaseId:d(e.databaseId)});n.group.tagged.push(i)}}}),n}function l(e){var t={};(e.message_participants&&(t=function(e,t){var n=a({},t);return e.edges.forEach(function(e){if(e.isTagged||e.isNotified){var t=e.node,r=t.databaseId,i=o(t,["databaseId"]),s=d(r),u=a({databaseId:s},i);n.user||(n.user={}),e.isTagged&&!e.isNotified&&(n.user.blind||(n.user.blind=[]),n.user.blind.push(u)),!e.isTagged&&e.isNotified&&(n.user.cc||(n.user.cc=[]),n.user.cc.push(u)),e.isTagged&&e.isNotified&&(n.user.tagged||(n.user.tagged=[]),n.user.tagged.push(u))}}),n}(e.message_participants,t)),e.content&&e.content.body&&e.content.body.references)&&(t=c(e.content.body.references,t));return e.repliedTo&&e.repliedTo.sender&&e.repliedTo.sender.databaseId&&(t=function(e,t){var n=a({},t);return n.user||(n.user={}),n.user.re||(n.user.re=[]),n.user.re.push(d(e.repliedTo.sender.databaseId)),n}(e,t)),t}function f(e){return e&&e.edges?e.edges.map(p).reverse():[]}function p(e){if(!e)return null;var t=r.extend({},e,e.node);return delete t.node,t}function h(e){return!!e.entities}},6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUserNetworkSetting=t.getUserSetting=t.setAllNetworks=t.getAllNetworks=t.setCurrentNetwork=t.getCurrentNetwork=t.setCurrentUser=t.getCurrentUser=t.setAllCompany=t.getAllCompany=void 0;var r=a(n(0)),i=a(n(60));function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var o=void 0,s=void 0,u=void 0,d=void 0,c=function(){var e=f("locale");null!=e&&i.set({name:"locale",value:e,days:365})},l=function(e){switch(e){case"true":return!0;case"false":return!1;default:return e}},f=function(e){return l(p()[e])},p=function(){return o.web_preferences||{}},h=function(){return p().network_settings||{}};t.getAllCompany=function(){return d},t.setAllCompany=function(e){d=e},t.getCurrentUser=function(){return o},t.setCurrentUser=function(e){return e&&!e.declaredClass&&(e=yam.model.User.save(e)),o=e,e&&c(),e},t.getCurrentNetwork=function(){return s},t.setCurrentNetwork=function(e){return e&&!e.declaredClass&&(e=yam.model.Network.save(e)),s=e,e},t.getAllNetworks=function(){return u},t.setAllNetworks=function(e){return e=r.map(e,function(e){return e&&!e.declaredClass?yam.model.Network.save(r.extend({is_current:e.id===s.id},e)):e}),u=e,e},t.getUserSetting=f,t.getUserNetworkSetting=function(e){return l(h()[e])}},60:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"CookieNames",function(){return r}),t.get=function(e){var t=c.readCookie(),n=t&&(t.match("(^|; )"+e+"=([^;]*)")||[])[2];return null!=n?decodeURIComponent(n):n},t.set=function(e){if(!(e&&e.name&&e.value))throw new Error("CookieHelper.set was not given a name and value");var t=i.compact([encodeURIComponent(e.value),a(e),o(e),s(e),d(e)]).join("; "),n=e.name+"="+t;c.assignCookie(n)},t.unset=function(e){if(!e||!e.name)throw new Error("CookieHelper.unset was not given a name");e.expiry=new Date("1970/01/01 00:00:01 GMT").toUTCString();var t=i.compact([a(e),o(e),s(e)]).join("; "),n=e.name+"=; "+t;c.assignCookie(n)},n.d(t,"stubs",function(){return c});var r,i=n(0);n.n(i);!function(e){e.TogglePreferredClient="toggle_preferred_client"}(r=r||(r={}));var a=function(e){if("string"==typeof e.domain)return"Domain="+e.domain},o=function(e){return"Path="+("string"==typeof e.path?e.path:"/")},s=function(e){var t;if("string"==typeof e.expiry)t=e.expiry;else if(i.isDate(e.expiry))t=e.expiry.toUTCString();else{var n=new Date;n.setDate(n.getDate()+u(e)),t=n.toUTCString()}return"Expires="+t},u=function(e){return"number"==typeof e.days?e.days:30},d=function(e){var t="Secure";return"string"==typeof e.flags?t=e.flags:i.isArray(e.flags)&&(t=e.flags.join("; ")),t};var c={assignCookie:function(e){document.cookie=e},readCookie:function(){return document.cookie}}},61:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLargePreviewUrl=t.hasAttachmentBeenUploaded=t.getPreviewUrlWithVersion=t.isSharePointFile=t.isPreviewable=t.isVideo=t.isReadOnly=t.isForeign=t.isPdf=t.canEditInO365=t.canViewInO365=t.bytesToSize=t.getType=t.getStoredInTextByStorageType=t.getNameWithExtension=t.getName=t.getLocationNameAlt=t.getLocationName=t.getPlainBody=t.getOfficialTooltip=t.getFileObjectFromUrl=t.isInPrivateConversation=t.isOfficial=t.isPrivate=t.isFile=t.canDelete=t.canMarkOfficial=t.canEdit=void 0;var r=c(n(3)),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(2)),a=c(n(18)),o=n(22),s=n(68),u=n(46),d=c(n(174));function c(e){return e&&e.__esModule?e:{default:e}}var l=["docx","pptx","xlsx"],f=["doc","docm","docx","dot","dotm","dotx","odt"],p=["odp","pot","potm","potx","pps","ppsm","ppsx","ppt","pptm","pptx"],h=["ods","xls","xlsb","xlsm","xlsx"],g=["pdf"],m=function(e,t,n){var r=yam.helper.user,i=w(e),o=r.isAdmin(t),s=r.isAdminOf(t,n),u=_(e,t),d=a.default.isAllCompany(n),c=n&&a.default.isGroupAdminFromNetwork(n,t);return!i||u||d&&o||!d&&(s||c)},_=function(e,t){return y(e,"owner_id")===y(t,"id")},y=function(e,t){return e[t]||e.get&&e.get(t)},v=function(e){return y(e,"real_type")||y(e,"type")},b=function(e){var t=v(e);return"uploaded_file"===t||"file"===t},w=function(e){return!!y(e,"official")},T=function(e){var t=!!e.image||"Image"===e.content_class;return E(e)&&t},E=function(e){return"SHAREPOINT"===(e instanceof r.default.Model?e.get("storage_type"):e.storage_type)},I=function(e){return b(e)?i.t("files"):""},O=function(e,t,n,r){return t?i.t(r,{group:a.default.getFullName(t),tab:I(e)}):(s=e).messages&&s.messages.length&&s.messages[0].direct_message?function(e){return b(e)?i.t("file_attachment_location_private_conversation"):""}(e):i.t(r,{group:(0,o.getCompanyGroupName)(n.getCurrentNetwork()),tab:I(e)});var s},S=function(e,t){return y(e,"network_id")!==t.getCurrentNetwork().id};t.canEdit=m,t.canMarkOfficial=function(e,t,n){if((0,u.isInFileImprovementsSharepoint)()&&E(e))return!1;if(n){var r=yam.helper.user,i=r.isAdmin(t),o=r.isAdminOf(t,n),s=a.default.isAllCompany(n),d=a.default.isGroupAdminFromNetwork(n,t);return s&&i||!s&&(o||d)}return!1},t.canDelete=function(e,t,n,r){var i=yam.helper.user,o=i.isAdmin(t),s=i.isAdminOf(t,n),u=i.isForeign(t,r),d=a.default.isAllCompany(n),c=_(e,t),l=!function(e){return"encoding"===e.status}(e);return(c||!d&&s||!u&&o)&&l},t.isFile=b,t.isPrivate=function(e){return"private"===y(e,"privacy")},t.isOfficial=w,t.isInPrivateConversation=function(e){return e.in_private_conversation},t.getFileObjectFromUrl=function(e){return{web_url:e,detected_url:e,type:"uploaded_file",from_link:!0}},t.getOfficialTooltip=function(e){return b(e)?i.t("official_badge_tooltip_file"):""},t.getPlainBody=function(e){return y(e,"full_name")},t.getLocationName=function(e,t,n){return O(e,t,n,"attachment_location_group_tab")},t.getLocationNameAlt=function(e,t,n){return O(e,t,n,"attachment_location_group_tab_alt")},t.getName=function(e){return e.full_name||e.name||e.original_name},t.getNameWithExtension=function(e){return e.name||e.original_name},t.getStoredInTextByStorageType=function(e){switch(y(e,"storage_type")){case"SHAREPOINT":return i.t("storage_type_sharepoint");case"STREAM":return i.t("storage_type_stream");case"AZURE":default:return i.t("storage_type_yammer")}},t.getType=v,t.bytesToSize=function(e){if(0===e)return"0 Bytes";var t=parseInt(Math.floor(Math.log(e)/Math.log(1024)),10);return(0===t?e/Math.pow(1024,t):(e/Math.pow(1024,t)).toFixed(1))+" "+["Bytes","KB","MB","GB","TB","PB"][t]},t.canViewInO365=function(e){var t=(0,s.getExtension)(e);return-1!==[].concat(f,p,h).indexOf(t)},t.canEditInO365=function(e,t,n){var r=(0,s.getExtension)(e.path);return m(e,t,n)&&-1!==l.indexOf(r)},t.isPdf=function(e,t){var n=(0,s.getExtension)(e);return-1!==g.indexOf(n)&&"Document"===t},t.isForeign=S,t.isReadOnly=function(e,t,n){var r=t.getCurrentUser();return!_(e,r)&&S(e,t)&&!n.findFirst({user_id:r.id,group_id:e.group_id})},t.isVideo=function(e){var t=e.extension||(0,s.getExtension)(e.name||e.fileName);return d.default.indexOf(t&&t.toLowerCase())>-1},t.isPreviewable=function(e){return!!e.preview_url},t.isSharePointFile=E,t.getPreviewUrlWithVersion=function(e,t){return e&&t?function(e,t){return e.indexOf("/version/"+t)>-1}(e,t)?e:function(e,t){return function(e){return e.indexOf("/large_preview/")>-1}(e)?e.replace("/large_preview/","/version/"+t+"/large_preview/"):e.replace("/preview/","/version/"+t+"/preview/")}(e,t):e},t.hasAttachmentBeenUploaded=function(e){var t=b(e),n=e.get("file"),r=!e.get("from_link");return!!(t&&n&&r)},t.getLargePreviewUrl=function(e){var t=e instanceof r.default.Model?e.get("preview_url"):e.preview_url;return T(e)&&t?t.replace("/preview/","/large_preview/"):t}},63:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeId=t.maxId=t.objectWithMinId=t.objectWithMaxId=t.sortComparator=t.getLowerIdBound=t.getViewerMutationId=t.getMinSafeId=t.getMaxSafeId=t.isValidMessageOrThreadId=t.isValidOlsOrGqlId=t.isValidOlsId=t.idRegexPattern=void 0;var r,i=n(0),a=(r=i)&&r.__esModule?r:{default:r},o=n(12);var s=Math.pow(2,53)-1,u=-(Math.pow(2,53)-1),d="FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF",c="00000000000000000000000000000000",l=/^[0-9A-Za-z+/]+={0,3}$/,f=/^[0-9A-Fa-f]+$/;t.idRegexPattern=function(){return(0,o.treatment)("graphql_feed_rendering_web")?"([0-9A-Za-z]+={0,3})":"(\\d+)"},t.isValidOlsId=function(e){return"string"==typeof e&&!!f.test(e)},t.isValidOlsOrGqlId=function(e){return"string"==typeof e&&!!l.test(e)},t.isValidMessageOrThreadId=function(e){return a.default.isNumber(e)},t.getMaxSafeId=function(){return(0,o.treatment)("graphql_feed_rendering_web")?d:s},t.getMinSafeId=function(){return(0,o.treatment)("graphql_feed_rendering_web")?c:u},t.getViewerMutationId=function(e){var t=e.get("gql");return t?t.viewerMutationId:null},t.getLowerIdBound=function(){return(0,o.treatment)("graphql_feed_rendering_web")?c:0},t.sortComparator=function(e,t){return e.id===t.id?0:e.id>t.id?1:-1},t.objectWithMaxId=function(e){return Array.isArray(e)&&0!==e.length?e.reduce(function(e,t){return e.id>t.id?e:t}):null},t.objectWithMinId=function(e){return Array.isArray(e)&&0!==e.length?e.reduce(function(e,t){return e.id>t.id?t:e}):null},t.maxId=function(e){return Array.isArray(e)&&0!==e.length?e.reduce(function(e,t){return e>t?e:t}):null},t.normalizeId=function(e,t){return e?"broadcast"===t?e:(0,o.treatment)("graphql_feed_rendering_web")&&"string"==typeof e&&e.match(/^0[0-9A-F]+$/i)?e:parseInt(e,10):e}},64:function(e,t,n){"use strict";function r(e,t){return e===t}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=null,i=null;return function(){return function(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}(t,n,arguments)||(i=e.apply(null,arguments)),n=arguments,i}}function a(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),a=0;a<t;a++)r[a]=arguments[a];var o=0,s=r.pop(),u=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e})){var n=t.map(function(e){return typeof e}).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}(r),d=e.apply(void 0,[function(){return o++,s.apply(null,arguments)}].concat(n)),c=i(function(){for(var e=[],t=u.length,n=0;n<t;n++)e.push(u[n].apply(null,arguments));return d.apply(null,e)});return c.resultFunc=s,c.recomputations=function(){return o},c.resetRecomputations=function(){return o=0},c}}t.__esModule=!0,t.defaultMemoize=i,t.createSelectorCreator=a,t.createStructuredSelector=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map(function(t){return e[t]}),function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t,r){return e[n[r]]=t,e},{})})};var o=t.createSelector=a(i)},65:function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,o,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var d in n=Object(arguments[u]))i.call(n,d)&&(s[d]=n[d]);if(r){o=r(n);for(var c=0;c<o.length;c++)a.call(n,o[c])&&(s[o[c]]=n[o[c]])}}return s}},66:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.FAKE_URL_TEMPLATES=t.transformSearch=t.convertCallback=t.shouldRequestFromGraphql=t.transformToVersionModels=t.getMessageType=t.graphqlQueryOptions=t.getPostMessageVariables=t.getPostMessageType=t.appendVarsFromCallerOptions=t.reportGraphqlErrors=t.transformGraphqlEditMessage=t.transformMessageMutationPayload=t.transformGroupMemberships=t.transformGroupCounts=t.transform=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=j(n(0)),a=n(34),o=n(12),s=n(63),u=P(n(32)),d=P(n(9)),c=P(n(6)),l=j(n(307)),f=j(n(308)),p=j(n(309)),h=j(n(310)),g=j(n(311)),m=j(n(312)),_=j(n(313)),y=j(n(314)),v=j(n(315)),b=j(n(316)),w=j(n(317)),T=j(n(318)),E=j(n(319)),I=j(n(320)),O=j(n(321)),S=j(n(322)),C=j(n(323)),A=j(n(324)),k=j(n(325)),N=j(n(326)),x=j(n(327)),R=j(n(328)),F=n(329);function P(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function j(e){return e&&e.__esModule?e:{default:e}}var M={user_web:"https://www.yammer.com/{network_permalink}/users/{id}",attachment_web:"https://www.yammer.com/{network_permalink}/uploaded_files/{id}",attachment_stream:"https://www.yammer.com/api/v1/uploaded_files/{id}/version/{version_id}/stream",attachment:"https://www.yammer.com/api/v1/uploaded_files/{id}",file_large_icon:"https://c64.assets-yammer.com/images/file_icons/types/{icon}_79x102_icon.png",group:"https://www.yammer.com/api/v1/groups/{id}",realtime:"https://1-6725097-1630856972-209.rt.yammer.com/cometd/{action}",attachment_download:"https://www.yammer.com/api/v1/uploaded_files/{id}/download",group_mugshot:"https://mug0.assets-yammer.com/mugshot/images/{width}x{height}/{mugshot_id}",message_web:"https://www.yammer.com/{network_permalink}/messages/{id}",thread:"https://www.yammer.com/api/v1/messages/in_thread/{id}",message:"https://www.yammer.com/api/v2/messages/{id}",attachment_preview:"https://www.yammer.com/api/v1/uploaded_files/{id}/preview/{original_name}",attachment_scaled:"https://www.yammer.com/api/v1/uploaded_files/{id}/version/{version_id}/scaled/{width}x{height}",topic_web:"https://www.yammer.com/{network_permalink}/topics/{id}",group_web:"https://www.yammer.com/{network_permalink}/#/threads/inGroup?type=in_group&feedId={id}",topic:"https://www.yammer.com/api/v1/topics/{id}",attachment_edit:"https://www.yammer.com/api/v1/uploaded_files/{id}/edit",user_mugshot:"https://mug0.assets-yammer.com/mugshot/images/{width}x{height}/{mugshot_id}",thread_web:"https://www.yammer.com/{network_permalink}/threads/{id}",user:"https://www.yammer.com/api/v1/users/{id}",attachment_thumbnail:"https://www.yammer.com/api/v1/uploaded_files/{id}/version/{version_id}/thumbnail"},U=function(e,t,n){if(!e)return n;var r=(0,a.val)(e,t);return i.default.isUndefined(r)||i.default.isNull(r)?n:r},L=function(e,t){return U(e,t,null)},D=function(e,t,n){var r=U(e,t,null),a=i.default.isNull(r)?void 0:Number(r);return i.default.isNumber(a)?a:n},G=function(e,t){var n=L(e,t),r=n&&Date.parse(n);return i.default.isNumber(r)?r:null},q=function(e,t,n){(function(e,t,n){var r=L(e,t)||n;return(0,a.val)(e,t,r),r})(e,t,[]).push(n)},H=function(e){return e&&e.edges?e.edges.map(B).reverse():[]},B=function(e){if(!e)return null;var t=i.default.extend({},e,e.node);return delete t.node,t},W=function(e){var t=e.isTagged,n=e.isNotified;if(!i.default.isUndefined(t)&&!i.default.isUndefined(n))return t?n?"tagged":"blind":n?"cc":void 0},$=function(e){var t=e,n=H(L(e,"lastMessages")),r=i.default.last(i.default.pluck(n,"databaseId").sort());return{thread_id:L(t,"databaseId"),last_seen_message_id:U(t,"viewerLastSeenMessage.databaseId",(0,s.getLowerIdBound)()),last_message_id:r}},V=function(e,t){var n=t,r={thread_id:L(n,"databaseId"),group_id:D(n,"group.databaseId",void 0),network_id:D(n,"network.databaseId",null),thread_starter_id:U(n,"threadStarter.databaseId",void 0)},i=L(n,"replies.totalCount"),a=function(e,t){var n=H(L(t,"thread_participants")).map(function(t){return Y(e,t),D(t,"databaseId")});return n.length>0?n:void 0}(e,t);r.in_private_conversation=!r.group_id&&!!a&&a.length>0,J(e,L(n,"network")),Q(e,r,L(n,"group"));var o=U(n,"viewerHasUnreadMessages",void 0)?1:0,s={id:r.thread_id,network_id:r.network_id,in_private_conversation:r.in_private_conversation,has_attachments:!1,group_ids:r.group_id?[r.group_id]:void 0,thread_starter_id:r.thread_starter_id,messages_count:i+1,state:{is_following:U(n,"viewerIsFollowing",!0),last_read_message:U(n,"viewerLastReadMessage.databaseId",void 0),unseen_message_count:o},messages:z(e,r,n.replies),participants:a,read_only:!1,latest_reply_id:null,latest_reply_at:null,gql:{gql_id:L(n,"gql_id"),sortKey:L(n,"sortKey"),cursor:L(n,"cursor"),threadMutationId:L(n,"viewerMutationId")}},u=K(e,r,L(n,"threadStarter"));return u&&s.messages.push(u),s.latest_reply_id=U(s,"messages.0.id",void 0),s.latest_reply_at=U(s,"messages.0.updated_at",void 0),s},z=function(e,t,n){return H(n).map(K.bind(null,e,t))},K=function(e,t,n){var r=n,a=function(e,t,n){var r={};H(L(n,"message_participants")).forEach(function(t){Y(e,t);var n=W(t),i=D(t,"databaseId",void 0);n&&i&&q(r,"user."+n,i)});var a=U(n,"content.body.references",[]),o=U(r,"user.tagged",[]),s=U(r,"user.blind",[]);a.forEach(function(n){if("User"===n.__typename||"RegisteredUser"===n.__typename){Y(e,n);var a=D(n,"databaseId",void 0);!a||i.default.contains(o,a)||i.default.contains(s,a)||q(r,"user.tagged",a)}else if("Group"===n.__typename){Q(e,t,n);var u=D(n,"databaseId",void 0);u&&q(r,"group.tagged",u)}});var u=D(n,"repliedTo.sender.databaseId",void 0);return u&&q(r,"user.re",u),i.default.keys(r).length>0?r:void 0}(e,t,n),o=L(r,"databaseId"),s=t.thread_starter_id;o===s&&(s=void 0);var u=L(r,"content.__typename"),d=re(u),c=U(r,"content.body.htmlParsedBody",L(r,"content.body.parsedBody")),l={id:o,thread_id:t.thread_id,network_id:t.network_id,sender_id:D(r,"sender.databaseId",null),message_type:d,message_subtype:"system"===d?"added_participant":void 0,group_id:t.group_id,created_at:G(r,"createdAt"),updated_at:G(r,"updatedAt"),body:c,replied_to_id:U(r,"repliedTo.databaseId",s),language:"en",sender_type:"user",title:U(r,"content.title",void 0),client_type_id:1,references:a,version_num:L(r,"version"),is_edited:L(r,"isEdited"),is_editable:L(r,"viewerCanEdit"),in_private_conversation:t.in_private_conversation,gql:{gql_id:L(r,"gql_id"),cursor:L(r,"cursor"),viewerMutationId:L(r,"viewerMutationId")}};return Y(e,L(r,"sender")),X(e,t,L(r,"repliedTo")),l},Y=function(e,t){var n=D(t,"databaseId",void 0);if(n){var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return i.default.last(e.split("/"))||void 0}(U(t,"avatar","")),a={id:n,network_id:D(t,"network.databaseId",null),full_name:U(t,"displayName","GraphQL full_name missing"),mugshot_id:r,state:"active",is_following:!1,gql:{gql_id:L(t,"gql_id")}};e.users[n]=a,J(e,L(t,"network"))}},Q=function(e,t,n){var r=D(n,"databaseId",void 0);if(r){var i={id:r,network_id:t.network_id,name:U(n,"displayName","GraphQL group name missing"),private:!1,moderated:!1,gql:{gql_id:L(n,"gql_id")}};e.groups[r]=i}},J=function(e,t){var n=D(t,"databaseId",void 0);if(n){var r={id:n,name:U(t,"displayName","GraphQL network name missing"),gql:{gql_id:L(t,"gql_id")}};e.networks[n]=r}},X=function(e,t,n){var r=D(n,"databaseId",void 0);if(n&&r){var i=K(e,t,n);delete i.in_private_conversation,e.replied_to_messages[r]=i}},Z=function(e){var t=(e.errors||[]).map(function(e){var t=e.message||"{Unknown GraphQL Error}";return e.path&&(t=e.path.join(".")+": "+e.message),i.default.extend({failure_key:t},e)}),n=i.default.groupBy(t,"failure_key");return i.default.keys(n).length>0?n:void 0},ee=function(e){var t=null;return t=U(e,"data.createGroupMessage.message",t),t=U(e,"data.createDirectMessage.message",t),t=U(e,"data.createAnnouncement.message",t),t=U(e,"data.replyMessage.message",t),t=U(e,"data.editMessage.message",t),t=U(e,"data.editAnnouncement.message",t)},te=function(e){var t=function(e){var t=null,n=L(e,"data.thread"),r=L(e,"data.realtimeMessage.realtimeThread"),i=L(n||r,"realtimeChannelId");return n?t={realtimeChannelId:i,edges:[{node:n}]}:r?t={realtimeChannelId:i,edges:[{node:r}]}:(t=U(e,"data.viewer.inbox.threads",t),t=U(e,"data.viewer.inbox.search",t),t=U(e,"data.group.feed.threads",t),t=U(e,"data.user.feed.threads",t),t=U(e,"data.group.feed.search",t),t=U(e,"data.search.threads",t),t=U(e,"data.allFeed.threads",t),t=U(e,"data.viewer.discoveryFeed.threads",t)),t}(e),n={id:null,channel_id:L(t,"realtimeChannelId"),network_id:null,has_older_threads:U(t,"pageInfo.hasPreviousPage",!1),threads:[],unseen_thread_count:L(t,"viewerUnreadCount"),reference_data:{replied_to_messages:{},users:{},networks:{},groups:{},client_applications:{1:{id:1,name:"Web",url:"https://www.yammer.com/"}}},url_templates:M,failures:Z(e)};if(!t||!t.edges)throw new Error("GraphQL feed response was incomplete and had no threads: "+JSON.stringify(n.failures));return n.threads=function(e,t){return H(t).map(V.bind(null,e))}(n.reference_data,t),L(e,"data.realtimeMessage")?ne(n):(n.unviewed_threads=function(e){var t=L(e,"data.group.feed");if(t){var n={threads:[],have_older_msgs:!1},r=H(t.unseen_threads);return n.threads=r.map($),n}}(e),n)},ne=function(e){var t=L(e,"threads.0"),n=L(e,"threads.0.id");return t&&n&&(e.messages=t.messages,t.messages=[],L(t,"state.unseen_message_count")&&delete t.state.unseen_message_count,e.reference_data.thread_summaries={},e.reference_data.thread_summaries[n]=t,delete e.has_older_threads,delete e.threads,delete e.unseen_thread_count),e},re=function(e){switch(e){case"AnnouncementMessageContent":return"announcement";case"AddedParticipantSystemMessageContent":return"system";default:return"update"}},ie=function(e){var t=ee(e),n=se(t),r={id:L(t,"thread.databaseId"),gql:{gql_id:L(t,"thread.gql_id")}},i=u.threadDeepLink(r),a=u.thread(r);return{type:"thread",id:L(t,"thread.databaseId"),network_id:D(t,"thread.network.databaseId",c.getCurrentNetwork().id),thread_starter_id:L(t,"thread.threadStarter.databaseId"),context:L(t,"context"),group_id:D(t,"thread.group.databaseId",void 0),url:i,web_url:a,privacy:n?"private":"public",direct_message:n,stats:{updates:1,first_reply_id:null,first_reply_at:null,latest_reply_id:L(t,"databaseId"),latest_reply_at:null,shares:0},invited_user_ids:[],gql:{gql_id:L(t,"thread.gql_id")}}},ae=function(e){return{user:{cc:oe(e)}}},oe=function(e){return L(e,"content.body.references").filter(function(e){return"User"===e.__typename||"RegisteredUser"===e.__typename}).map(function(e){return e.databaseId})},se=function(e){return!L(e,"thread.group")},ue=function(e){return de(e)?"reply":ce(e)?"announcement":le(e)?"privateMessage":fe(e)?"groupMessage":pe(e)?he(e)?"editAnnouncement":"editMessage":ge(e)?"removeParticipants":me(e)?"moveThreadToGroup":void 0},de=function(e){return e.replyToId},ce=function(e){return e.isAnnouncement},le=function(e){return"PRIVATE"===e.conversationType},fe=function(e){return"GROUP"===e.conversationType},pe=function(e){return e.isEdit},he=function(e){return e.title},ge=function(e){return e.isRemoveParticipants},me=function(e){return e.isMoveThreadToGroup},_e={inboxAll:{query:l.default,operationName:"InboxFeedWeb",variables:{threadCount:20,replyCount:2,inboxFeedType:"ALL"}},reply:{query:C.default},privateMessage:{query:S.default},groupMessage:{query:O.default},editMessage:{query:A.default},editHistory:{query:E.default},editAnnouncement:{query:N.default},removeParticipants:{query:x.default},deleteMessage:{query:k.default,operationName:"DeleteMessageWeb"},moveThreadToGroup:{query:R.default},replyMessageBody:{query:I.default,operationName:"ReplyMessageBodyFetchWeb"},inboxUnread:{query:l.default,operationName:"InboxFeedWeb",variables:{threadCount:20,replyCount:2,inboxFeedType:"UNREAD"}},inboxSearch:{query:f.default,operationName:"SearchInboxWeb",variables:{threadCount:20,replyCount:2,searchQuery:null,after:null}},thread:{query:g.default,operationName:"ThreadFetchWeb",variables:{threadId:null,replyCount:2}},realtimeMessage:{query:m.default,operationName:"RealtimeMessageFetchWeb",variables:{messageId:null}},groupSearch:{query:y.default,operationName:"SearchGroupWeb",variables:{threadCount:20,replyCount:2,searchQuery:null,after:null}},globalSearch:{query:v.default,operationName:"SearchGlobalWeb",variables:{threadCount:20,replyCount:2,searchQuery:null}},user:{query:_.default,operationName:"UserFeedWeb",variables:{userDatabaseId:null,threadCount:8,replyCount:2}},algo:{query:b.default,operationName:"DiscoveryFeedWeb",variables:{threadCount:20,replyCount:2}},groupCounts:{query:p.default,operationName:"GroupCountsFetchWeb",variables:{groupDatabaseIds:null}},groupMemberships:{query:h.default,operationName:"GroupMembershipsFetchWeb",variables:{}},inboxChat:{query:l.default,operationName:"InboxFeedWeb",variables:{threadCount:10,replyCount:2,inboxFeedType:"DIRECT"}}},ye={query:w.default,operationName:"AllFeedWeb",variables:{threadCount:8,replyCount:2}};["myAll","all","originalAlgo","myFeed"].forEach(function(e){_e[e]=ye});var ve={query:T.default,operationName:"UnsupportedFeedWeb",variables:{unsupportedFeedInfo:null}},be=function(e){var t=i.default.clone(e);return t&&(t.variables=i.default.clone(e.variables)),t},we=function(e){var t=e.forFeed||"UNKNOWN",n=e.fetchType||"UNKNOWN",r=(0,o.treatment)("graphql_feed_rendering_web");if(!("gql_double_dispatch"===n||"gql_groups_init"===n)&&!r)return null;var i=be(_e[t]);if(!i){var a=[t,n,e.url||"UNKNOWN"].join(":");(i=be(ve)).variables.unsupportedFeedInfo=a}return i.variables=Te(i.variables,e),i.groupDatabaseId||delete i.groupDatabaseId,i},Te=function(e,t){return["olderThan","newerThan","threadOlderReplies","threadCount","replyCount","threadId","groupDatabaseId","userDatabaseId","messageId","searchQuery","groupDatabaseIds","callerVariables","after","replyMessageBody"].forEach(function(n){t[n]&&(e=i.default.extend({},e,Ee(t,n)))}),e},Ee=function(e,t){var n=i.default.pick(e,t),r=i.default.keys(n);return 1===r.length&&"callerVariables"===r[0]?n.callerVariables:n},Ie=function(e,t){return e.errors&&d.info({message:"graphql_api_call_errors",errors:e.errors,operationName:t}),e},Oe=function(e){return new Promise(function(e){e()}).then(n.bind(null,39)).then(function(t){var r=t.normalize;return L(e,"data.viewer.inbox")?n.e(3).then(n.bind(null,584)).then(function(t){return r(e.data.viewer.inbox,t.default)}):L(e,"data.allFeed")?n.e(7).then(n.bind(null,585)).then(function(t){return r(e.data.allFeed,t.default)}):L(e,"data.viewer.discoveryFeed")?n.e(6).then(n.bind(null,586)).then(function(t){return r(e.data.viewer.discoveryFeed,t.default)}):L(e,"data.thread")?n.e(5).then(n.bind(null,587)).then(function(t){return r(e.data.thread,t.default)}):L(e,"data.realtimeMessage")?n.e(2).then(n.bind(null,588)).then(function(t){return r(e.data.realtimeMessage,t.default)}):L(e,"data.group")?n.e(4).then(n.bind(null,589)).then(function(t){return r(e.data.group,t.default)}):L(e,"data.user")?n.e(1).then(n.bind(null,590)).then(function(t){return r(e.data.user.feed,t.default)}):void 0}).then(function(e){return Se(e)})},Se=function(e){return e.entities.message=e.entities.message||{},e},Ce=function(e){return{body:L(e,"content.body.parsedBody")||L(e,"content.body.htmlParsedBody"),client_type_id:1,created_at:L(e,"createdAt"),group_id:L(e,"thread.group.databaseId"),id:L(e,"databaseId"),in_private_conversation:!1,language:"en",message_type:re(e.content.__typename),network_id:L(e,"thread.network.databaseId"),sender_id:L(e,"sender.databaseId"),sender_type:"user",thread_id:L(e,"thread.databaseId"),title:L(e,"content.title"),updated_at:L(e,"updatedAt"),version_num:L(e,"version")}};t.transform=te,t.transformGroupCounts=function(e){var t={},n=U(e,"data.groups",[]),a=0;n.forEach(function(e){var n=D(e,"databaseId",void 0),r=D(e,"feed.threads.viewerUnseenCount",0);i.default.isNumber(n)&&(0===n?a=r:t[n]=r)});var o=c.getCurrentNetwork()||{},s=[r({},o,{group_counts:{unseen_group_thread_counts:t,unseen_general_thread_count:a},failures:Z(e)})];return Promise.resolve(s)},t.transformGroupMemberships=function(e){var t=(0,F.generateGroupMembership)(L(e,"data.viewer.groups"));return t.failures=Z(e),t},t.transformMessageMutationPayload=function(e){var t=ee(e),n=se(t);return{messages:[{id:L(t,"databaseId"),sender_id:c.getCurrentUser().id,replied_to_id:L(t,"repliedTo.databaseId"),created_at:G(t,"createdAt"),network_id:D(t,"thread.network.databaseId",c.getCurrentNetwork().id),updated_at:G(t,"updatedAt"),sender_type:"user",privacy:n?"private":"public",body:L(t,"content.body"),notified_user_ids:[],thread_id:L(t,"thread.databaseId"),group_id:D(t,"thread.group.databaseId",void 0),direct_message:n,content_excerpt:L(t,"content.body"),message_type:re(t.content.__typename),title:U(t,"content.title",void 0),version_num:L(t,"version"),is_edited:L(t,"isEdited"),is_editable:L(t,"viewerCanEdit"),gql:{gql_id:L(t,"gql_id"),viewerMutationId:L(t,"viewerMutationId")},references:ae(t)}],threaded_extended:{},references:[ie(e)],external_references:[],meta:{},failures:Z(e)}},t.transformGraphqlEditMessage=function(e){if((0,o.treatment)("graphql_feed_rendering_web")){var t=i.default.first(e.messages).body;e.messages[0].body=t.parsed||t.rich}return e},t.reportGraphqlErrors=Ie,t.appendVarsFromCallerOptions=Te,t.getPostMessageType=ue,t.getPostMessageVariables=function(e){switch(ue(e)){case"reply":return{body:e.body,messageMutationId:e.replyToId,notifiedUserIds:e.ccIds};case"announcement":return{groupId:e.groupId,title:e.title,htmlBody:e.body,notifiedUserIds:e.ccIds};case"privateMessage":return{notifiedUserIds:e.addParticipantIds,body:e.body};case"groupMessage":return{groupId:e.groupId,body:e.body,notifiedUserIds:e.ccIds};case"editMessage":var t=e.recipients.map(function(e){return e.id});return{messageMutationId:e.id,notifiedUserIds:t,body:e.body};case"editAnnouncement":var n=e.recipients.map(function(e){return e.id});return{messageMutationId:e.id,notifiedUserIds:n,htmlBody:e.body,title:e.title};case"removeParticipants":return{threadMutationId:e.threadId,participantIds:e.participantIds};case"moveThreadToGroup":return{threadMutationId:e.id,groupDatabaseId:String(e.group_id)};default:return}},t.graphqlQueryOptions=we,t.getMessageType=re,t.transformToVersionModels=function(e){return L(e,"data.node.previousVersions.edges").map(function(e){return Ce(e.node)})},t.shouldRequestFromGraphql=function(e){return!!we(e)},t.convertCallback=function(t,n,r){return i.default.wrap(t,function(t,i){return Ie(i,(n.data||{}).operationName),Oe(i).catch(function(t){return console.warn("graphql_helper transform failure:",t,n,r),e.Deferred().reject(t)})})},t.transformSearch=function(e){var t=te(e);return t.total_count=t.threads&&t.threads.length,t.threads=t.threads.reverse(),t.has_next_page=(0,a.val)(e,"data.viewer.inbox.search.pageInfo.hasNextPage")||(0,a.val)(e,"data.group.feed.search.pageInfo.hasNextPage")||U(e,"data.search.threads.pageInfo.hasNextPage",!1),t.end_cursor=(0,a.val)(e,"data.viewer.inbox.search.pageInfo.endCursor")||(0,a.val)(e,"data.group.feed.search.pageInfo.endCursor")||U(e,"data.search.threads.pageInfo.endCursor",""),t},t.FAKE_URL_TEMPLATES=M}).call(t,n(20))},68:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isImage=t.getFileIconClassAltText=t.getFileIconClass=t.getExtension=t.getDotExtension=t.getClass=t.getCanonicalExtension=t.CANONICAL_TYPE=void 0;var r=d(n(239)),i=d(n(298)),a=d(n(174)),o=u(n(0)),s=u(n(2));function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function d(e){return e&&e.__esModule?e:{default:e}}var c=i.default.join(" "),l=a.default.join(" "),f=r.default.join(" "),p="default",h=t.CANONICAL_TYPE={DOCUMENT:"doc",ONENOTE:"one",SPREADSHEET:"xls",PRESENTATION:"ppt",VECTOR_ART:"ai",FLASH:"swf",VIDEO:"mov",IMAGE:"image",AUDIO:"mp3",ARCHIVE:"zip",DEFAULT:"default",NULL:null},g=function(e){return o.reduce(e,function(e,t){return o.each(t.values.split(" "),function(n){e[n]=t.key}),e},{})};function m(e){var t=void 0;return e&&(t=/.+\.(\w+$)/.exec(e)),t&&t[1]?t[1].toLowerCase():""}var _=g([{key:h.DOCUMENT,values:"doc docx docm dot dotx dotm"},{key:h.SPREADSHEET,values:"xls xlsx xlsm xlsb ods"},{key:h.PRESENTATION,values:"ppt pptx pptm pps ppsx ppsm pot potx potm ppam odp"},{key:h.VECTOR_ART,values:"ai svg"},{key:h.FLASH,values:"swf flv"},{key:h.VIDEO,values:l},{key:h.IMAGE,values:c},{key:h.AUDIO,values:"mp3 aac flac wav aif iff mpa wma m4a"},{key:h.ARCHIVE,values:"zip gz pkg rar"},{key:h.ONENOTE,values:"one"},{key:h.NULL,values:"adp fla htm html pdf php psd pst txt"}]);function y(e){var t=m(e),n=_[t];return o.isString(n)?n:null===n?t:"default"}var v=g([{key:"code",values:"c cpp css rb php java js pl xml htm html"},{key:"graph",values:"ppt pptx pptm ppam ppsx ppsm pot potx potm"},{key:"pdf",values:"pdf"},{key:"picture",values:f},{key:"sound",values:"mp3 m4a flac ogg"},{key:"spreadsheet",values:"xls xlsx xlsm xlsb xlam xll xlt xltx xltm csv tsv ods"},{key:"doc",values:"doc docx docm dot dotx dotm"},{key:"text",values:"txt rtf"},{key:"video",values:l},{key:"zip",values:"zip tar gz"},{key:"onenote",values:"one"}]),b={code:s.t("item_type_code_file"),graph:s.t("item_type_powerpoint_file"),pdf:s.t("item_type_pdf_file"),picture:s.t("item_type_image_file"),sound:s.t("item_type_sound_file"),spreadsheet:s.t("item_type_excel_file"),doc:s.t("item_type_word_file"),text:s.t("item_type_text_file"),video:s.t("item_type_video_file"),zip:s.t("item_type_archive_file"),onenote:s.t("item_type_onenote"),default:s.t("item_type_file"),folder:s.t("item_type_folder")};t.getCanonicalExtension=y,t.getClass=function(e){var t=y(e),n="Other";return o.contains(["doc","ppt","pdf","xls"],t)?n="Document":"image"===t?n="Image":"mov"===t&&(n="Video"),n},t.getDotExtension=function(e){var t=m(e);return t?"."+t:""},t.getExtension=m,t.getFileIconClass=function(e){var t=m(e),n=v[t];return n||p},t.getFileIconClassAltText=function(e){return b[e]},t.isImage=function(e){var t=m(e);return o.contains(i.default,t)}},72:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"isEmbedDarkTheme",function(){return a}),t.isEmbed=function(e){return e.embed.isEmbed},n.d(t,"getAadTokenAuthStatus",function(){return o}),n.d(t,"getEmbedOauthToken",function(){return s});var r=n(64),i=(n.n(r),Object(r.createSelector)(function(e){return e.embed.options},function(e){if(e)return e.theme})),a=Object(r.createSelector)(i,function(e){return"dark"===e});var o=function(e){return e.embed.aadTokenAuthStatus},s=function(e){return e.embed.oauthToken}},75:function(e,t,n){"use strict";function r(e){return function(){return window.location[e]}}Object.defineProperty(t,"__esModule",{value:!0}),t.assign=function(e){window.location.assign(e)},t.replace=function(e){window.location.replace(e)},t.reload=function(e){window.location.reload(!!e)},t.back=function(){window.history.back()},t.forward=function(){window.history.forward()};t.hash=r("hash"),t.host=r("host"),t.hostname=r("hostname"),t.href=r("href"),t.origin=r("origin"),t.pathname=r("pathname"),t.port=r("port"),t.protocol=r("protocol"),t.search=r("search")},77:function(e,t,n){(function(n){var r;!function(i){"use strict";void 0===i&&(i={}),void 0===i.performance&&(i.performance={}),i._perfRefForUserTimingPolyfill=i.performance,i.performance.userTimingJsNow=!1,i.performance.userTimingJsNowPrefixed=!1,i.performance.userTimingJsUserTiming=!1,i.performance.userTimingJsUserTimingPrefixed=!1,i.performance.userTimingJsPerformanceTimeline=!1,i.performance.userTimingJsPerformanceTimelinePrefixed=!1;var a,o,s=[],u=[],d=null;if("function"!=typeof i.performance.now){for(i.performance.userTimingJsNow=!0,u=["webkitNow","msNow","mozNow"],a=0;a<u.length;a++)if("function"==typeof i.performance[u[a]]){i.performance.now=i.performance[u[a]],i.performance.userTimingJsNowPrefixed=!0;break}var c=+new Date;i.performance.timing&&i.performance.timing.navigationStart?c=i.performance.timing.navigationStart:void 0!==n&&"function"==typeof n.hrtime&&(c=n.hrtime(),i.performance.now=function(){var e=n.hrtime(c);return 1e3*e[0]+1e-6*e[1]}),"function"!=typeof i.performance.now&&(Date.now?i.performance.now=function(){return Date.now()-c}:i.performance.now=function(){return+new Date-c})}var l=function(){},f=function(){},p=[],h=!1,g=!1;if("function"!=typeof i.performance.getEntries||"function"!=typeof i.performance.mark){for("function"==typeof i.performance.getEntries&&"function"!=typeof i.performance.mark&&(g=!0),i.performance.userTimingJsPerformanceTimeline=!0,s=["webkit","moz"],u=["getEntries","getEntriesByName","getEntriesByType"],a=0;a<u.length;a++)for(o=0;o<s.length;o++)d=s[o]+u[a].substr(0,1).toUpperCase()+u[a].substr(1),"function"==typeof i.performance[d]&&(i.performance[u[a]]=i.performance[d],i.performance.userTimingJsPerformanceTimelinePrefixed=!0);l=function(e){p.push(e),"measure"===e.entryType&&(h=!0)};var m=function(){h&&(p.sort(function(e,t){return e.startTime-t.startTime}),h=!1)};if(f=function(e,t){for(a=0;a<p.length;)p[a].entryType===e&&(void 0===t||p[a].name===t)?p.splice(a,1):a++},"function"!=typeof i.performance.getEntries||g){var _=i.performance.getEntries;i.performance.getEntries=function(){m();var e=p.slice(0);return g&&_&&(Array.prototype.push.apply(e,_.call(i.performance)),e.sort(function(e,t){return e.startTime-t.startTime})),e}}if("function"!=typeof i.performance.getEntriesByType||g){var y=i.performance.getEntriesByType;i.performance.getEntriesByType=function(e){if(void 0===e||"mark"!==e&&"measure"!==e)return g&&y?y.call(i.performance,e):[];"measure"===e&&m();var t=[];for(a=0;a<p.length;a++)p[a].entryType===e&&t.push(p[a]);return t}}if("function"!=typeof i.performance.getEntriesByName||g){var v=i.performance.getEntriesByName;i.performance.getEntriesByName=function(e,t){if(t&&"mark"!==t&&"measure"!==t)return g&&v?v.call(i.performance,e,t):[];void 0!==t&&"measure"===t&&m();var n=[];for(a=0;a<p.length;a++)void 0!==t&&p[a].entryType!==t||p[a].name===e&&n.push(p[a]);return g&&v&&(Array.prototype.push.apply(n,v.call(i.performance,e,t)),n.sort(function(e,t){return e.startTime-t.startTime})),n}}}if("function"!=typeof i.performance.mark){for(i.performance.userTimingJsUserTiming=!0,s=["webkit","moz","ms"],u=["mark","measure","clearMarks","clearMeasures"],a=0;a<u.length;a++)for(o=0;o<s.length;o++)d=s[o]+u[a].substr(0,1).toUpperCase()+u[a].substr(1),"function"==typeof i.performance[d]&&(i.performance[u[a]]=i.performance[d],i.performance.userTimingJsUserTimingPrefixed=!0);var b={};"function"!=typeof i.performance.mark&&(i.performance.mark=function(e){var t=i.performance.now();if(void 0===e)throw new SyntaxError("Mark name must be specified");if(i.performance.timing&&e in i.performance.timing)throw new SyntaxError("Mark name is not allowed");b[e]||(b[e]=[]),b[e].push(t),l({entryType:"mark",name:e,startTime:t,duration:0})}),"function"!=typeof i.performance.clearMarks&&(i.performance.clearMarks=function(e){e?b[e]=[]:b={},f("mark",e)}),"function"!=typeof i.performance.measure&&(i.performance.measure=function(e,t,n){var r=i.performance.now();if(void 0===e)throw new SyntaxError("Measure must be specified");if(t){var a=0;if(i.performance.timing&&t in i.performance.timing){if("navigationStart"!==t&&0===i.performance.timing[t])throw new Error(t+" has a timing of 0");a=i.performance.timing[t]-i.performance.timing.navigationStart}else{if(!(t in b))throw new Error(t+" mark not found");a=b[t][b[t].length-1]}var o=r;if(n)if(o=0,i.performance.timing&&n in i.performance.timing){if("navigationStart"!==n&&0===i.performance.timing[n])throw new Error(n+" has a timing of 0");o=i.performance.timing[n]-i.performance.timing.navigationStart}else{if(!(n in b))throw new Error(n+" mark not found");o=b[n][b[n].length-1]}l({entryType:"measure",name:e,startTime:a,duration:o-a})}else l({entryType:"measure",name:e,startTime:0,duration:r})}),"function"!=typeof i.performance.clearMeasures&&(i.performance.clearMeasures=function(e){f("measure",e)})}void 0===(r=function(){return i.performance}.apply(t,[]))||(e.exports=r)}("undefined"!=typeof window?window:void 0)}).call(t,n(124))},78:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"BACKSPACE",function(){return r}),n.d(t,"TAB",function(){return i}),n.d(t,"ENTER",function(){return a}),n.d(t,"ESCAPE",function(){return o}),n.d(t,"SPACE",function(){return s}),n.d(t,"LEFT_ARROW",function(){return u}),n.d(t,"UP_ARROW",function(){return d}),n.d(t,"RIGHT_ARROW",function(){return c}),n.d(t,"DOWN_ARROW",function(){return l}),n.d(t,"DELETE",function(){return f}),n.d(t,"U_CHAR",function(){return p}),n.d(t,"F6",function(){return h});var r=8,i=9,a=13,o=27,s=32,u=37,d=38,c=39,l=40,f=46,p=85,h=117},8:function(e,t,n){"use strict";(function(t){n(290),t.fx.speeds._default=200,e.exports=t}).call(t,n(20))},83:function(e,t,n){"use strict";var r,i,a;n.d(t,"c",function(){return r}),n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a}),function(e){e.cachedUserNotFound="cached_adal_user_not_found",e.called="acquireOfficeAccessToken_called",e.failed="acquireOfficeAccessToken_failed",e.initializeFailed="initializeOfficeAccessToken_failed",e.redirectFailed="acquireOfficeAccessToken_redirect_failed",e.loginCalled="acquiring_token_via_login",e.popupCalled="acquiring_token_via_popup",e.retrySucceeded="acquireOfficeAccessToken_retry_succeeded",e.retryFailed="acquireOfficeAccessToken_retry_failed",e.redirectCalled="acquiring_token_via_redirect",e.succeeded="acquireOfficeAccessToken_succeeded"}(r=r||(r={})),function(e){e.web="web",e.desktop="desktop"}(i=i||(i={})),function(e){e.AcquireTokenForResourceNotFound="acquireTokenForResource not found",e.AuthContextCreationFailureNoAccessToken="Can not create authentication context: Missing accessToken.",e.AuthContextCreationFailureNoClientId="Can not create authentication context: Missing clientId.",e.AuthContextCreationFailureNoUpn="Can not create authentication context: Missing upn.",e.ExpiredToken="Refreshed token is expired",e.NoCachedUserFound="No user on AuthenticationContext: Login required",e.NoCookieFound="No office_access_token cookie found.",e.NoUpnFoundOnCookie="No upn found on office_access_token cookie.",e.OfficeAccessTokenInitializationNotRequired="Office Access Token initialization not required"}(a=a||(a={}))},9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logRevisionSha=function(){m()},t.info=y,t.event=function(e,t){T(e,t)},t.eventNow=function(e,t){var n=A(e,t);return N([n])},t.experimentalEvent=function(e,t){var n=e&&e.message&&_.test(e.message),r=t&&t.message&&_.test(t.message);if(n||r)return;O(h.EVENT,e,t)},t.error=function(e,t){var n=e&&e.message&&_.test(e.message),r=t&&t.message&&_.test(t.message);if(n||r)return;O(h.ERROR,e,t)};var r=n(6),i=(n.n(r),n(211)),a=(n.n(i),n(8)),o=n.n(a),s=n(0),u=(n.n(s),n(13)),d=n(21),c=n(30),l=n(148),f=n(51),p=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},h={ERROR:{logType:"error",eventName:"javascript_exception"},INFO:{logType:"info",eventName:"yamjs_info"},EVENT:{logType:"event",eventName:"yamjs_event"}},g={ERROR:[],EVENT:[],INFO:[]};var m=s.once(function(){f.default.getYamjsRevision().length>0&&y({message:"YAMJS_REVISION",content:f.default.getYamjsRevision()})}),_=/^script error(\.)?$/gi;function y(e,t){e&&e.message&&_.test(e.message)||O(h.INFO,e,t)}var v,b,w,T=(v=[],b=null,w=function(){N(v),v=[]},function(e,t){var n=A(e,t);v.push(n),null==b?b=s.throttle(w,50,{leading:!1}):b()});function E(){return{UserId:r.getCurrentUser()?r.getCurrentUser().id:null,NetworkId:r.getCurrentNetwork()?r.getCurrentNetwork().id:null,ClientId:Object(i.getTrackingClientId)()}}var I,O=(I=null,function(e,t,n){switch(void 0===t&&(t={}),n&&n.stack&&(t.stack=n.stack),e){case h.ERROR:g.ERROR.push(S(e.logType,e.eventName,t));break;case h.EVENT:g.EVENT.push(S(e.logType,e.eventName,t));break;case h.INFO:window.yam&&window.yam.ready&&window.yam.ready(function(){g.INFO.push(S(e.logType,e.eventName,t))});break;default:return}null==I?(I=s.throttle(C,1e4))():I()}),S=function(e,t,n){var r=p({},n,{client_event_time:Date.now(),client_load_time:f.default.getClientLoadTime(),client_load_id:f.default.getPageLoadId(),yamjs_revision:f.default.getYamjsRevision(),environment:f.default.getYamJsEnvironment()});return p({},E(),{LogType:e,ClientTimeStamp:Date.now(),DeviceId:null,EventName:t,Parameters:r})},C=function(){if(!x()){var e,t=Object(l.a)(c.default.getState())||(e=Object(d.config)().reportAuthorizationFallbacks||[])[Math.floor(Math.random()*e.length)]+"-TELEMETRY",n=Object.keys(g),r=s.flatten(n.map(function(e){return g[e]})),i=g;R(),function(e){var t=e.length,n=[],r=0;for(r=0;r<t;r+=50){var i=e.slice(r,r+50);n.push(i)}return n}(r).forEach(function(e){o.a.ajax({url:Object(d.config)().reportPerfRequestUri,type:"POST",data:JSON.stringify(e),contentType:"application/json",headers:{Authorization:"Bearer "+t,"Authorization-Receiver":Object(d.config)().reportAuthorizationReceiver}}).fail(function(e,t,r){u.warn("report._post: Error: "+t+" "+r),n.forEach(function(e){return g[e]=s.union(i[e],g[e])})})})}},A=function(e,t){return{name:e,properties:k(t)}},k=function(e){return void 0===e&&(e={}),p({},e,E(),{page_load_id:f.default.getPageLoadId(),client_load_id:f.default.getPageLoadId(),client_event_time:Date.now(),client_load_time:f.default.getClientLoadTime(),yamjs_revision:f.default.getYamjsRevision(),environment:f.default.getYamJsEnvironment()})},N=function(e){return n(14).reportEvent({events:e})},x=function(){var e=window;return e._phantom&&!e.jasmine},R=function(){g={ERROR:[],INFO:[],EVENT:[]}}},92:function(e,t,n){"use strict";var r=n(121),i=n(213),a={INIT:"@@redux/INIT"};function o(e,t,n){var s;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(o)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var u=e,d=t,c=[],l=c,f=!1;function p(){l===c&&(l=c.slice())}function h(){return d}function g(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return p(),l.push(e),function(){if(t){t=!1,p();var n=l.indexOf(e);l.splice(n,1)}}}function m(e){if(!Object(r.a)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(f)throw new Error("Reducers may not dispatch actions.");try{f=!0,d=u(d,e)}finally{f=!1}for(var t=c=l,n=0;n<t.length;n++){(0,t[n])()}return e}return m({type:a.INIT}),(s={dispatch:m,subscribe:g,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");u=e,m({type:a.INIT})}})[i.a]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(h())}return n(),{unsubscribe:t(n)}}})[i.a]=function(){return this},e},s}function s(e,t){var n=t&&t.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function u(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"==typeof e[i]&&(n[i]=e[i])}var o=Object.keys(n);var u=void 0;try{!function(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:a.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+a.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}(n)}catch(e){u=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(u)throw u;for(var r=!1,i={},a=0;a<o.length;a++){var d=o[a],c=n[d],l=e[d],f=c(l,t);if(void 0===f){var p=s(d,t);throw new Error(p)}i[d]=f,r=r||f!==l}return r?i:e}}function d(e,t){return function(){return t(e.apply(void 0,arguments))}}function c(e,t){if("function"==typeof e)return d(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),r={},i=0;i<n.length;i++){var a=n[i],o=e[a];"function"==typeof o&&(r[a]=d(o,t))}return r}function l(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}var f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function p(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,i){var a,o=e(n,r,i),s=o.dispatch,u={getState:o.getState,dispatch:function(e){return s(e)}};return a=t.map(function(e){return e(u)}),s=l.apply(void 0,a)(o.dispatch),f({},o,{dispatch:s})}}}n.d(t,"e",function(){return o}),n.d(t,"c",function(){return u}),n.d(t,"b",function(){return c}),n.d(t,"a",function(){return p}),n.d(t,"d",function(){return l})},93:function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return u}),n.d(t,"d",function(){return c}),n.d(t,"c",function(){return p}),n.d(t,"e",function(){return h}),n.d(t,"f",function(){return O});var r=n(128),i=(n.n(r),function(e){return e.replace(/^\/+/,"")}),a=function(e){return e.replace(/\/+$/,"")},o=function(e,t,n){return a(e)+"/"+function(e){var t=/(\.{2,}(\/|$))+/g;return t.test(e)?e.trim().replace(t,""):e}(i(t))+function(e){return e&&0!==Object.keys(e).length?"?"+Object(r.stringify)(e):""}(n)},s=function(e){return o(e.host,e.path,e.query)},u=function(e){return e.client.appId?e.hosts.api?e.hosts.api:e.hosts.base.replace("www.","api."):e.hosts.base},d=function(e,t,n){var r=u(n),i=o(r,e);return 0===t.indexOf(i)},c=function(e,t){return d("api/v1",e,t)},l=function(e,t){return d("graphql",e,t)},f=function(e,t){return 0===e.indexOf(t.hosts.broadcast)},p=function(e,t){return[c,function(e,t){return d("api/v2",e,t)},function(e,t){return d("api/v3",e,t)},l,f].some(function(n){return n(e,t)})},h=function(e,t){var n,r=(n=t.network.permalink,i(a(n)));return d(r,e,t)},g=function(e){return/\/whoville\//.test(e)},m=function(e){return/\/(auto)?complete\//.test(e)},_=function(e){return/\/streams\//.test(e)},y=function(e){return/\/suggest\//.test(e)},v=function(e){return/\/language\/translate\//.test(e)},b=function(e){return/\/experiments\//.test(e)},w=function(e){return/\/banners\//.test(e)},T=function(e){return/\/o365\/verified_domains/.test(e)},E=function(e){return/\/network_migrations/.test(e)},I=function(e){return/\/events(\/|$)/.test(e)},O=function(e,t){return!(function(e){return 0===e.indexOf("http://")||0===e.indexOf("https://")}(e)&&!function(e,t){return e.indexOf(t.hosts.base)>=0}(e,t))&&[g,m,_,y,v,b,w,T,E,I,l,f].every(function(n){return!n(e,t)})}},94:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"TextDirection",function(){return u}),n.d(t,"getTextDirectionByLanguageCode",function(){return g}),n.d(t,"getTextDirectionByFirstStrongCharacter",function(){return m}),n.d(t,"__esModule",function(){return y});var r=n(0),i=(n.n(r),n(60)),a=n(3),o=n.n(a),s=n(297),u={LeftToRight:"ltr",RightToLeft:"rtl"},d=["^","[^--ۿݐ-ݿࢠ-ࣿיִ-ﭏﭐ-﷿ﹰ-\ufeff]*","[","A-Za-z","À-Ö","Ø-ö","ø-ʸ","̀-","ࠀ-","Ⰰ-","︀-","-","]"].join(""),c=["^","[^A-Za-zÀ-ÖØ-öø-ʸ̀-ࠀ-Ⰰ-︀--]*","[","-","-ۿ","ݐ-ݿ","ࢠ-ࣿ","יִ-ﭏ","ﭐ-﷿","ﹰ-\ufeff","]"].join(""),l=r.memoize(function(){return{ltr:new RegExp(d),rtl:new RegExp(c)}}),f=function(e){return e.toLowerCase().substring(0,2)},p=function(e){if("qps-ploc"===e)return e;var t=e.split("-"),n=t[0],i=t[1];return r.compact([n&&n.toLowerCase(),i&&i.toUpperCase()]).join("-")},h={locale:"en-US",translations:{}},g=function(e){return function(e){return r.contains(s,f(e))}(e)?u.RightToLeft:u.LeftToRight},m=function(e){if(!e)return null;var t=l();return t.ltr.test(e)?u.LeftToRight:t.rtl.test(e)?u.RightToLeft:null},_=function(){return function(){var e=this;this.getLocale=function(){return e.locale},this.getShortLocale=function(){return f(e.getLocale())},this.getTranslations=function(){return e.translations},this.getTextDirectionByCurrentUiLocale=function(){return g(e.locale)},this.setLocale=function(t){e.locale=p(t.locale),e.translations=t.translations,i.set({name:"locale",value:e.locale,days:365}),o.a.trigger("locale-changed")},this.setLocale(window.yam.locale||h)}}();t.default=new _;var y=!0},97:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(216);for(var i in r)"default"!==i&&function(e){n.d(t,e,function(){return r[e]})}(i);var a=n(223);n.n(a);for(var i in a)"default"!==i&&function(e){n.d(t,e,function(){return a[e]})}(i);var o=n(224);n.n(o);for(var i in o)"default"!==i&&function(e){n.d(t,e,function(){return o[e]})}(i);var s=n(225);n.d(t,"LiveStatus",function(){return s.c}),n.d(t,"FutureStatus",function(){return s.b}),n.d(t,"PastStatus",function(){return s.d}),n.d(t,"EventType",function(){return s.a});var u=n(226);n.d(t,"ProtocolType",function(){return u.d}),n.d(t,"ProductionType",function(){return u.c}),n.d(t,"IngestUrlType",function(){return u.b}),n.d(t,"ContributorType",function(){return u.a});var d=n(192);n.d(t,"AuthenticationFailureReason",function(){return d.a});var c=n(227);n.n(c);for(var i in c)["LiveStatus","FutureStatus","PastStatus","EventType","ProtocolType","ProductionType","IngestUrlType","ContributorType","AuthenticationFailureReason","default"].indexOf(i)<0&&function(e){n.d(t,e,function(){return c[e]})}(i);var l=n(228);n.n(l);for(var i in l)["LiveStatus","FutureStatus","PastStatus","EventType","ProtocolType","ProductionType","IngestUrlType","ContributorType","AuthenticationFailureReason","default"].indexOf(i)<0&&function(e){n.d(t,e,function(){return l[e]})}(i);var f=n(229);n.n(f);for(var i in f)["LiveStatus","FutureStatus","PastStatus","EventType","ProtocolType","ProductionType","IngestUrlType","ContributorType","AuthenticationFailureReason","default"].indexOf(i)<0&&function(e){n.d(t,e,function(){return f[e]})}(i);var p=n(230);n.n(p);for(var i in p)["LiveStatus","FutureStatus","PastStatus","EventType","ProtocolType","ProductionType","IngestUrlType","ContributorType","AuthenticationFailureReason","default"].indexOf(i)<0&&function(e){n.d(t,e,function(){return p[e]})}(i);var h=n(231);n.n(h);for(var i in h)["LiveStatus","FutureStatus","PastStatus","EventType","ProtocolType","ProductionType","IngestUrlType","ContributorType","AuthenticationFailureReason","default"].indexOf(i)<0&&function(e){n.d(t,e,function(){return h[e]})}(i);var g=n(232);n.n(g);for(var i in g)["LiveStatus","FutureStatus","PastStatus","EventType","ProtocolType","ProductionType","IngestUrlType","ContributorType","AuthenticationFailureReason","default"].indexOf(i)<0&&function(e){n.d(t,e,function(){return g[e]})}(i);var m=n(233);n.n(m);for(var i in m)["LiveStatus","FutureStatus","PastStatus","EventType","ProtocolType","ProductionType","IngestUrlType","ContributorType","AuthenticationFailureReason","default"].indexOf(i)<0&&function(e){n.d(t,e,function(){return m[e]})}(i)},98:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isApiV2=t.resetHydrantFailures=t.getHydrantFailures=t.generateNetwork=t.generateFile=t.generateGroup=t.generateUser=t.generateDate=t.generateUrl=t.transform=t.convertCallback=t.getParamsForUrl=t.getFieldsForUrl=t.convertUrl=t.canConvertUrl=void 0;var r,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=_(n(6)),o=_(n(12)),s=n(63),u=n(8),d=(r=u)&&r.__esModule?r:{default:r},c=_(n(0)),l=_(n(24)),f=_(n(9)),p=_(n(16)),h=n(68),g=_(n(175)),m=n(260);function _(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var y="inbox_unread",v="inbox_all",b="inbox_chat",w=20,T=8,E=1,I=20,O=2,S=function(e){return c.reduce(e,function(e,t,n){return c.isUndefined(t)||(e[n]=t),e},{})},C=function(e,t,n){var r=e.reference_data&&e.reference_data[t]&&e.reference_data[t][n]||{};return"files"!==t||r.id||f.info({message:"hydrant_feed_file_missing",file_id:n}),r},A=function(e){if(e)return new Date(e).toISOString().replace(/-/g,"/").replace(/T/g," ").replace(/\.\d{3}Z$/," +0000")},k=function(e,t){if(e){var n=a.getCurrentNetwork();return t=c.extend({network_permalink:n.get("permalink")},t),e=e.replace(/\{([^{}]*)\}/g,function(e,n){var r=t[n];return"string"==typeof r||"number"==typeof r?r:e})}},N=function(e){var t=e.in_private_conversation||"chat"===e.message_type;return e.privacy||(t?"private":"public")},x=function(e,t){return c.map(t,function(t){return B(e,C(e,"users",t))})},R=function(e){var t=void 0;switch(e.message_type){case"announcement":t={rich:e.body||""};break;case"shared_message":t={plain:e.body||""};break;default:t={parsed:e.body||""}}return e.rich_body&&(t.highlighted=e.rich_body,delete e.rich_body),e.content_state&&(t.content_state=e.content_state),t},F=function(e,t){var n={id:t.id,real_type:"uploaded_file"};if("deleted"===t.state)return i({},n,{name:"(deleted)",type:"deleted_message_attachment",web_url:""});if("inaccessible"===t.state)return i({},n,{type:"inaccessible_message_attachment"});var r,a=(r=t.content_type)&&0===r.indexOf("image")?"image":"file",o=(0,h.getClass)(t.original_name),s=k(e.attachment_preview,c.extend({original_name:t.name},t)),u=k(e.attachment_thumbnail,c.extend({version_id:t.latest_version_id},t)),d=k(e.attachment_scaled,{id:t.id,version_id:t.latest_version_id,width:"{{width}}",height:"{{height}}"});"Other"===o&&(s=null,u=null,d=void 0);var l=S({id:t.id,network_id:t.network_id,group_id:t.group_id,name:t.name,original_name:t.original_name,full_name:t.name&&t.name.substr(0,t.name.lastIndexOf(".")),description:t.description,content_type:t.content_type,content_class:o,size:t.size,height:t.height,width:t.width,transcoded:t.transcoded,privacy:function(e){return e.in_private_conversation||e.in_private_group?"private":"public"}(t),created_at:A(t.created_at),last_uploaded_at:A(t.last_uploaded_at),latest_version_id:t.latest_version_id,type:a,real_type:"uploaded_file",uploader_id:t.uploader_id,snippets:(t.snippets||[]).map(function(e){return e.html}),in_private_conversation:!!t.in_private_conversation,url:k(e.attachment,t),web_url:k(e.attachment_web,t),download_url:k(e.attachment_download,t),preview_url:s,thumbnail_url:u,scaled_url:d,large_icon_url:k(e.file_large_icon,t),edit_url:t.is_editable&&k(e.attachment_edit,t),storage_type:t.storage_type});return"Image"===o?l.image={thumbnail_url:u,url:s}:l.file={size:l.size,url:l.url},"Video"===o&&(l.streaming_url=k(e.attachment_stream,c.extend({version_id:t.latest_version_id},t))),l},P=function(e,t){return t.is_following&&e.followed_references.push({id:t.id,type:"uploaded_file"}),t},j=function(e,t){if(t)return t.map(function(t){return function(e,t){var n=e.url_templates,r=C(e,"topics_reverse",t);return{id:t,network_id:r.network_id,name:r.normalized_name,url:k(n.tag,{id:t}),web_url:k(n.topic_web,r)}}(e,t)})},M=function(e,t){var n=e.url_templates;!function(e,t){t&&t.length&&(e.reference_data.tags=e.reference_data.tags||{},t.forEach(function(t){e.reference_data.tags[t.id]=t}))}(e,j(e,t.references&&t.references.tag&&t.references.tag.tagged));var r,i="chat"===t.message_type||t.in_private_conversation;return S({id:t.id,group_id:t.group_id,network_id:t.network_id,replied_to_id:t.replied_to_id||null,sender_id:t.sender_id,thread_id:t.thread_id,created_at:A(t.created_at),updated_at:A(t.updated_at),version_num:t.version_num,is_edited:t.is_edited,is_editable:t.is_editable,direct_message:i,conversation_id:i&&t.thread_id||void 0,language:t.language,message_type:(r=t.message_type,"normal"===r?"update":r),privacy:N(t),sender_type:t.sender_type,system_message:"system"===t.message_type,system_message_properties:"system"===t.message_type&&{subtype:t.message_subtype}||void 0,url:k(n.message,t),web_url:k(n.message_web,t),previous_versions:t.previous_versions,gql:t.gql})},U=function(e,t){var n=void 0,r=[],i=!t.replied_to_id,o=t.shared_message_id,s=C(e,"shared_messages",o),u=t.client_type_id,d=C(e,"client_applications",u);"poll"===t.message_type&&r.push(H(e,t)),"praise"===t.message_type&&r.push(q(e,t)),t.file_ids&&r.push.apply(r,function(e,t){return t.file_ids.map(C.bind(null,e,"files")).map(F.bind(null,e.url_templates)).map(P.bind(null,e))}(e,t)),s.id&&r.push(D(e,s)),t.references&&t.references.opengraphobject&&t.references.opengraphobject.attached&&r.push.apply(r,function(e,t){return t.references.opengraphobject.attached.map(function(n){var r=C(e,"opengraphobjects",n),i=t.id+10*r.record_id;return r.is_following&&e.followed_references.push({id:r.id,type:"open_graph_object"}),"active"!==r.state?{id:i,record_id:r.record_id,type:"deleted_message_attachment",real_type:"open_graph_object"}:{id:i,record_id:r.record_id,network_id:r.network_id,name:r.title,description:r.description,type:"ymodule",ymodule:{app_id:"",icon_url:"blank.gif",web_app_id:"open_graph_object"},web_url:r.url,thumbnail_url:r.image,video_url:r.video_url,provider_name:r.provider_name}})}(e,t)),t.is_liked&&e.liked_message_ids.push(t.id),t.is_bookmarked&&e.bookmarked_message_ids.push(t.id),t.snippets&&(n=L(t),i?t.rich_body=n[0]&&n[0].snippet_html:e.snippets.push.apply(e.snippets,n)),t.like_ids=t.like_ids||[];var l=a.getCurrentUser().id;return t.is_liked&&-1===t.like_ids.indexOf(l)&&t.like_ids.push(l),t.connector_card&&t.connector_card.content&&(t.connector_card.content.is_yammer_connector_card_attachment=!0),c.extend(M(e,t),S({group_created_id:i&&t.group_id||void 0,shared_message_id:o&&(s.id||null),body:R(t),title:t.title,attachments:r,client_type:d.name,client_url:d.url,like_ids:t.like_ids,likes_count:t.likes_count||0,references:t.references,connector_card:t.connector_card}))},L=function(e){return e.snippets.map(function(t){return{id:e.id,snippet_html:t.html,thread_starter_id:e.thread_id,sender_id:e.sender_id,sender_type:e.sender_type}})},D=function(e,t){return c.extend(M(e,t),S({body:R(t),content_excerpt:t.body,likes_count:t.likes_count||0,like_ids:t.like_ids||[],type:"message",connector_card:t.connector_card,title:t.title}))},G=function(e,t){var n=o.treatment("yamjs_q_and_a_post_creation"),r=n&&o.treatment("yamjs_q_and_a_who_marked"),i=e.url_templates,a=void 0,u=void 0;t.state&&(t.state.is_following&&e.threads_in_inbox.push(t.id),t.state.unseen_message_count&&(e.unseen_message_count_by_thread[t.id]=t.state.unseen_message_count),t.state.last_read_message&&(e.last_seen_message_id=t.state.last_read_message),a=t.state.priority_reason,u=t.state.can_mark_best_reply);var d,l=(0,s.objectWithMaxId)(e.messages||t.messages),f=t.latest_reply_id||l&&l.id,p=t.explanation,h=t.best_reply_id,g=C(e,"best_reply_messages",h),_=o.treatment("explicit_all_company"),y=t.in_private_conversation,v=t.group_ids&&t.group_ids[0],b=void 0;return b=_&&!y?v||"COMPANY_GROUP_ID":v,S({id:t.id,broadcast_event_id:t.broadcast_event_id,broadcast:function(e,t){var n=t.broadcast_event_id;if(!n)return null;var r=C(e,"broadcasts",n);return r&&0!==Object.keys(r).length?(0,m.normalizeBroadcast)(r):null}(e,t),group_id:b,network_id:t.network_id,best_reply_id:h&&(g.id||void 0),best_reply_marked_by_user_id:r&&t.best_reply_marked_by_user_id,thread_starter_id:t.thread_starter_id,direct_message:y,invited_user_ids:t.participants||[],participants:x(e,t.participants),topics:(d=t.topics,c.map(d,function(e){return{id:e,type:"topic"}})),has_attachments:t.has_attachments,stats:{shares:t.share_count,updates:t.messages_count,first_reply_id:t.first_reply_id||null,latest_reply_at:t.latest_reply_at||null,latest_reply_id:f||null},read_only:t.read_only,is_reply_disabled:t.is_reply_disabled,url:k(i.thread,t),web_url:k(i.thread_web,t),priority_reason:a,explanation:p,unique_views_count:t.unique_views_count,gql:t.gql,gql_id:t.gql&&t.gql.gql_id,can_mark_best_reply:n?u:null})},q=function(e,t){var n=e.url_templates;return S({id:t.id,network_id:t.network_id,praised_user_ids:t.praise.praised_user_ids,name:"",full_name:"",description:"",comment:t.body,icon:t.message_subtype,type:"praise",url:k(n.message,t),web_url:k(n.message_web,t)})},H=function(e,t){var n=e.url_templates;return S({id:t.id+"-poll",network_id:t.network_id,body:t.body,poll_options:t.poll_options,type:"poll",url:k(n.message,t),web_url:k(n.message_web,t)})},B=function(e,t){var n=e.url_templates,r=c.extend({},t,{mugshot_id:t.mugshot_id||"no_photo.png"}),i=c.extend({},r,{width:48,height:48});return t.is_following&&e.followed_user_ids.push(t.id),S({id:t.id,network_id:t.network_id,email:t.email,name:t.permalink,full_name:t.full_name,job_title:t.job_title,state:t.state,activated_at:A(t.activated_at),url:k(n.user,t),web_url:k(n.user_web,t),mugshot_url:k(n.user_mugshot,i),mugshot_url_template:k(n.user_mugshot,r),gql:t.gql})},W=function(e,t){var n=e.url_templates,r=c.extend({},t,{mugshot_id:t.mugshot_id||"group_profile.png"}),i=c.extend({},r,{width:48,height:48});return S({id:t.id,network_id:t.network_id,mugshot_id:t.mugshot_id,name:t.permalink,full_name:t.name,color:t.color,description:t.description,office365_url:null,stats:{members:t.members_count||0},created_at:A(t.created_at),privacy:function(e){return e.private?"private":e.moderated?"restricted":"public"}(t),url:k(n.group,t),web_url:k(n.group_web,t),mugshot_url:k(n.group_mugshot,i),mugshot_url_template:k(n.group_mugshot,r),gql:t.gql})},$=function(e,t){return S({id:t.id,name:t.name,gql:t.gql})},V=function(e,t,n){switch(n){case"messages":return c.extend(D(e,t),{type:"message"});case"best_reply_messages":return c.extend(U(e,t),{type:"message"});case"shared_messages":var r=C(e,"thread_summaries",t.id);return c.extend(D(e,t),{type:"shared_message",direct_message:r&&r.in_private_conversation});case"threads":return c.extend(G(e,t),{type:"thread"});case"thread_summaries":return c.extend(G(e,t),{type:"shared_thread"});case"users":return c.extend(B(e,t),{type:"user"});case"guides":return c.extend(function(e,t){var n=e.url_templates,r=c.extend({},t,{mugshot_id:t.mugshot_id||"no_photo.png"}),i=c.extend({},r,{width:48,height:48});return S({id:t.id,network_id:t.network_id,name:t.permalink,full_name:t.full_name,url:k(n.user,t),web_url:k(n.user_web,t),mugshot_url:k(n.user_mugshot,i),mugshot_url_template:k(n.user_mugshot,r)})}(e,t),{type:"guide"});case"groups":return c.extend(W(e,t),{type:"group"});case"networks":return c.extend($(0,t),{type:"network"});case"files":return F(e,t);case"topics":return c.extend(function(e,t){var n=e.url_templates;return S({id:t.id,network_id:t.network_id,name:t.name,normalized_name:t.normalized_name,permalink:t.normalized_name,url:k(n.topic,t),web_url:k(n.topic_web,t)})}(e,t),{type:"topic"});case"tags":return c.extend({},t,{type:"tag"});case"conversations":return c.extend(function(e,t){return{id:t.id,network_id:t.network_id,privacy:N(t),url:k(e.url_templates.thread,t),participating_users_count:t.participants.length,participating_names:x(e,t.participants)}}(e,t),{type:"conversation"});case"broadcasts":return i({},t,{type:"broadcast"})}},z=function(e,t,n){return c.reduce(e.reference_data,function(t,r,i){return r=(r=c.filter(r,n(i))).map(function(t){return V(e,t,i)}),t.push.apply(t,c.compact(r)),t},t)},K=function(e){return c.isString(e)&&e.match(/\/api\/v1\/messages\/in_thread\/(\d+)/)&&e.match(/older_than=(\d+)/)},Y={},Q=function(e,t,n){var r=void 0;return c.isString(e)?r=e.match(t):c.isObject(e)&&e.data&&n&&(r=[null,e.data[n]]),r&&r[1]},J=function(e){var t=new RegExp("/api/v1/messages/("+["general","following","my_all","true_discovery","original_algo"].join("|")+")\\.json");return Q(e,/\/api\/v1\/messages\/in_group\/(\d+)\.json/,"groupId")||Q(e,t,"groupId")},X=function(e){var t="/api/v1/messages/in_thread/"+(0,s.idRegexPattern)()+".json";return Q(e,new RegExp(t),"threadId")},Z=function(e){var t="/api/v1/message_feeds/"+(0,s.idRegexPattern)()+".json",n="/api/v1/messages/by_id/"+(0,s.idRegexPattern)()+".json";return Q(e,new RegExp(t),"messageId")||Q(e,new RegExp(n),"messageId")},ee=function(e){return Q(e,/\/api\/v1\/messages\/from_user\/(\d+)\.json/,"userId")},te=function(e){return Q(e,/\/api\/v1\/messages\/bookmarked_by\/(\d+)\.json/,"bookmarkId")},ne=function(e){return Q(e,/\/api\/v1\/messages\/about_topic\/(\d+)\.json/,"topicId")},re=function(e){return Q(e,/\/api\/v1\/messages\/about_file\/(\d+)\.json/,"fileId")},ie=function(e){return Q(e,/\/api\/v1\/messages\/open_graph_objects\/(\d+)\.json/,"ogoId")},ae=function(e){if(!e||!e.match(/\/api\/v1\/messages\/inbox.json/))return!1;switch(oe(e)){case"PRIVATE%3Bchat":return b;case"unarchived%3Binbox_unseen":return y;case"unarchived":return v;default:return console.warn("Hydrant encountered unknown Inbox request type: ",e),!1}},oe=function(e){return Q(e,/filter=([^&]*)/)},se=function(e){var t=Q(e,/limit=(\d+)/);return t?parseInt(t,10):oe(e)&&ae(e)?w:T},ue=function(e){var t=Q(e,/replies_per_thread=(\d+)/);return t?parseInt(t,10):oe(e)&&ae(e)===b?E:K(e)?I:!0===o.treatment("yamjs_q_and_a_post_creation")?O+1:O};t.canConvertUrl=function(e){return!!(J(e)||X(e)||Z(e)||ne(e)||re(e)||ie(e)||ae(e)||ee(e)||te(e))},t.convertUrl=function(e){var t=J(e),r=ne(e),i=function(e,t){var r=void 0;if(e){var i=n(23).default.findById(Number(e));i&&(r=i.get("network_id"))}else if(t){var o=n(140).default.findById(Number(t));o&&(r=o.network_id)}return r||a.getCurrentNetwork().id}(t,r),o=X(e),s=Z(e),u=re(e),d=ie(e),f=ee(e),p=te(e),h=a.getCurrentUser().id,g=ae(e),m=l.apiBase();return t?(m+="/api/v2/networks/"+i,c.isNaN(parseInt(t,10))?"following"===t?m+="/feeds/following_v2/"+h:"my_all"===t?m+="/feeds/all/":"true_discovery"===t?m+="/feeds/discovery":"general"===t?m+="/feeds/general":"original_algo"===t&&(m+="/feeds/algo"):m+="/feeds/group/"+t):o?m+="/api/v2/threads/"+o:s?m+="/api/v2/messages/"+s:f?(m+="/api/v2/networks/"+i,m+="/feeds/user/"+f):p?(m+="/api/v2/networks/"+i,m+="/feeds/bookmark/"+p):r?(m+="/api/v2/networks/"+i,m+="/feeds/topic/"+r):u?(m+="/api/v2/networks/"+i,m+="/feeds/uploaded_file/"+u):d?(m+="/api/v2/networks/"+i,m+="/feeds/open_graph_object/"+d):g&&(m+="/api/v2/inboxes"),(t||o||s||f||p||r||u||d||g)&&m},t.getFieldsForUrl=function(e,t){var n="true"===Q(e,/use_unviewed=([^&]*)/),r=!!ae(e),a=!!Z(e),u=!!function(e){var t="/api/v2/networks/"+(0,s.idRegexPattern)()+"/feeds/broadcast_event([^/]*)/"+(0,s.idRegexPattern)(),n=new RegExp(t),r=e.match(n);return r&&r[3]}(e),d=o.treatment("yamjs_q_and_a_post_creation"),c=d&&o.treatment("yamjs_q_and_a_who_marked"),l=d?{best_reply_id:!0,best_reply_marked_by_user_id:!!c}:{},f=d?{can_mark_best_reply:!0}:{},p={id:!0,network_id:!0,group_id:!0,thread_id:!0,sender_id:!0,replied_to_id:!0,shared_message_id:!0,file_ids:!0,page_ids:!0,client_type_id:!0,created_at:!0,language:!0,message_type:!0,message_subtype:!0,sender_type:!0,body:!0,title:!0,in_private_conversation:!0,references:!0,version_num:!0,updated_at:!0,praise:{id:!0,network_id:!0,message_id:!0,praised_user_ids:!0,comment:!0,icon:!0},content_state:o.treatment("rich_text_post_and_reply")&&t},h=i({},p,{is_bookmarked:!0,is_liked:!0,like_ids:!0,likes_count:!0,is_edited:!0,is_editable:!0,poll_options:{option:!0,answer:!0,count:!0,selected:!0},connector_card:!0}),m=i({},h,{previous_versions:p}),_=i({unseen_message_count:n||r,last_read_message:!0,is_following:!0,priority_reason:!0},f),y=i({id:!0,network_id:!0,channel_id:!0,group_ids:!0,thread_starter_id:!0,first_reply_id:!0,latest_reply_at:!0,latest_reply_id:!0,read_only:!0,is_reply_disabled:!0,has_attachments:!0,messages_count:!0,share_count:!0,topics:!0,participants:!0,in_private_conversation:!0,messages:m,state:_,explanation:!0,unique_views_count:!0,created_at:!0,broadcast_event_id:!0},l),v={id:!0,network_id:!0,channel_id:!0,last_seen_message_id:!0,has_older_threads:!0,unseen_thread_count:!0,unviewed_threads:n,threads:y,reference_data:i({client_applications:{id:!0,name:!0,url:!0},networks:{id:!0,name:!0},groups:{id:!0,network_id:!0,mugshot_id:!0,permalink:!0,name:!0,private:!0,moderated:!0,color:!0},users:{id:!0,network_id:!0,mugshot_id:!0,activated_at:!0,permalink:!0,full_name:!0,job_title:!0,state:!0,email:!0,is_following:!0},guides:{id:!0,network_id:!0,mugshot_id:!0,permalink:!0,full_name:!0},files:{id:!0,network_id:!0,group_id:!0,latest_version_id:!0,created_at:!0,last_uploaded_at:!0,name:!0,original_name:!0,description:!0,content_type:!0,size:!0,width:!0,height:!0,transcoded:!0,in_private_conversation:!0,in_private_group:!0,icon:!0,state:!0,is_following:!0,is_editable:!0,storage_type:!0},opengraphobjects:{id:!0,record_id:!0,network_id:!0,url:!0,image:!0,title:!0,description:!0,state:!0,is_following:!0,video_url:!0,provider_name:!0},pages:{id:!0,network_id:!0,group_id:!0,latest_version_id:!0,updated_at:!0,title:!0,official:!0,state:!0,is_following:!0},tags:{id:!0},topics:{id:!0,tag_id:!0,network_id:!0,name:!0,normalized_name:!0},shared_messages:h,replied_to_messages:h,thread_summaries:a?y:{id:!0,network_id:!0,group_ids:!0,thread_starter_id:!0,in_private_conversation:!0,messages_count:!0,share_count:!0}},u?{}:{broadcasts:{id:!0,yammer_group_id:!0,broadcast_id:!0,title:!0}},d?{best_reply_messages:m}:{}),url_templates:{thread:!0,thread_web:!0,message:!0,message_web:!0,attachment:!0,attachment_web:!0,attachment_download:!0,attachment_thumbnail:!0,attachment_scaled:!0,attachment_preview:!0,attachment_stream:!0,attachment_edit:!0,file_large_icon:!0,page:!0,page_web:!0,page_preview:!0,user:!0,user_web:!0,user_mugshot:!0,group:!0,group_web:!0,group_mugshot:!0,topic:!0,topic_web:!0,tag:!0}};return ae(e)?g.stringify({inboxes:v}):g.stringify({feed:v})},t.getParamsForUrl=function(e){var t={include_thread_starter:!0,threads_count:se(e),messages_count:ue(e)},n=oe(e);if(n){var r=ae(e);r?(t.followed_threads=!0,r===y?t.thread_read_state="UNREAD":r===b&&(t.private_threads="true")):t.filter=n}var i=function(e){var t="older_than="+(0,s.idRegexPattern)();return Q(e,new RegExp(t),"threadId")}(e);i&&(t.older_than=i);var a=function(e){var t="newer_than="+(0,s.idRegexPattern)();return Q(e,new RegExp(t),"threadId")}(e);a&&(t.newer_than=a);var u=function(e){return Q(e,/for_feed=([^&]*)/)}(e);u&&(t.for_feed="myAll"===u?"all":u);var d=function(e){return Q(e,/message_type_filter=([^&]*)/)}(e);d&&(t.message_type_filter=d);var c=["network_greatest_hits_v2","true_discovery_feed_sources_v3"].reduce(function(e,t){var n=o.treatment(t);return n&&e.push(t+":"+n),e},[]).join(",");t.treatment=c;var l=function(e){return Q(e,/fetch_type=([^&]*)/)}(e);l&&(t.fetch_type=l);var f=function(e){return Q(e,/versions_count=(\d+)/)}(e);f&&(t.versions_count=f);var h=function(e){return Q(e,/versions_before=(\d+)/)}(e);return h&&(t.versions_before=h),p.paramify(t)},t.convertCallback=function(e,n){return c.wrap(e,function(e,r){try{return e(t.transform(r,n))}catch(e){return console.warn(e),d.default.Deferred().reject(e)}})},t.transform=function(e,t){if(e.failures){console.error("Hydrant reported failures: "+JSON.stringify(e.failures));var n=e.failures.users;n&&f.error({message:"hydrating_user_failed",failures:n,url:t}),Y=c.extend(Y,e.failures)}e.reference_data=e.reference_data||{},e.threads_in_inbox=[],e.unseen_message_count_by_thread={},e.reference_data.topics_reverse=function(e){return c.reduce(e.reference_data.topics,function(e,t){return t.tag_id&&(e[t.tag_id]=t),e},{})}(e),e.followed_user_ids=[],e.followed_references=[],e.liked_message_ids=[],e.bookmarked_message_ids=[],e.snippets=[];var r=e.threads||e.reference_data.thread_summaries,i=e.reference_data.replied_to_messages;e.messages&&(e.reference_data.threads=r),e.reference_data.conversations=r&&c.reduce(r,function(e,t){return t.in_private_conversation&&(t.messages.forEach(function(e){e.conversation_id=t.id,e.in_private_conversation=t.in_private_conversation}),e[t.id]=t),e},e.reference_data.conversations||{}),e.reference_data.messages=r&&c.reduce(r,function(e,t){return c.each(t.messages,function(t){e[t.id]||(e[t.id]=t)}),e},e.reference_data.messages||{}),i&&(e.reference_data.messages=c.reduce(i,function(e,t){return e[t.id]||(e[t.id]=t),e},e.reference_data.messages||{}));var o=a.getCurrentNetwork().id,s=function(e){return e.messages&&e.messages.map(U.bind(null,e))}(e),u=function(e){return e.threads&&e.threads.map(function(t){var n=c.findWhere(t.messages,{id:t.thread_starter_id});return U(e,n)})}(e),d=function(e){return e.threads&&e.threads.reduce(function(t,n){var r=n.messages.filter(c.negate(c.matcher({id:n.thread_starter_id})));return(r=r.map(function(t){return U(e,t)})).length&&(t[n.id]=r),t},{})}(e),l=function(e,t){var n=e.threads&&e.threads.map(function(t){return c.extend(G(e,t),{type:"thread"})});return z(e,n||[],function(e){return function(n){var r=n["networks"===e?"id":"network_id"];return null==r||r===t}})}(e,o),p=function(e,t){return z(e,[],function(e){return function(n){var r=n["networks"===e?"id":"network_id"];return null!=r&&r!==t}})}(e,o),h=function(e){var t=void 0;return e.channel_id?t=e.channel_id:e.threads&&e.threads.length>0&&(t=e.threads[0].channel_id),S({older_available:!!e.has_older_threads,end_cursor:e.end_cursor,has_next_page:e.has_next_page,realtime:{channel_id:t},threads_in_inbox:e.threads_in_inbox,last_seen_message_id:e.last_seen_message_id,unseen_thread_count:e.unseen_thread_count,unseen_message_count_by_thread:e.unseen_message_count_by_thread,unviewed_threads:e.unviewed_threads,followed_user_ids:e.followed_user_ids,followed_references:e.followed_references,liked_message_ids:e.liked_message_ids,bookmarked_message_ids:e.bookmarked_message_ids})}(e);return K(t)&&(u.unshift.apply(u,d[u[0].thread_id]),d=void 0),function(e){return c.isString(e)&&e.match(/\/api\/v2\/search\//)}(t)&&(d=void 0),S({messages:s||u||[],threaded_extended:d||{},references:l,external_references:p,meta:h,count:e.total_count,snippets:e.snippets})},t.generateUrl=k,t.generateDate=A,t.generateUser=B,t.generateGroup=W,t.generateFile=F,t.generateNetwork=$,t.getHydrantFailures=function(){return Y},t.resetHydrantFailures=function(){Y={}},t.isApiV2=function(e){return e.indexOf("api/v2")>0}}}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment