Re: index.js

From disqus.com, 2 Months ago, written in JavaScript, viewed 3 times. This paste is a reply to Re: jester.js from disqus.com - view diff
URL https://pastebin.freepbx.org/view/d222c8f1 Embed
Download Paste or View Raw
  1. !function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};t[r].call(o.exports,o,o.exports,n);o.l=!0;return o.exports}n.m=t;n.c=e;n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})};n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});Object.defineProperty(t,"__esModule",{value:!0})};n.t=function(t,e){1&e&&(t=n(t));if(8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);n.r(r);Object.defineProperty(r,"default",{enumerable:!0,value:t});if(2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r};n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};n.d(e,"a",e);return e};n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};n.p="//static.hsappstatic.net/HubspotToolsMenu/static-1.99/";n(n.s=10)}([function(t,e,n){(function(t){"use es6";!function(){"use strict";var e={}.toString,n=function(t){return e.call(t).slice(8,-1)},r=Array.isArray||function(t){return"Array"==n(t)},o=function(t){return"object"==typeof t?null!==t:"function"==typeof t},i=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t},s=function(t){return Object(i(t))},c=Math.ceil,u=Math.floor,a=function(t){return isNaN(t=+t)?0:(t>0?u:c)(t)},f=Math.min,l=function(t){return t>0?f(a(t),9007199254740991):0},h=function(t,e){if(!o(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!o(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},p=function(t){try{return!!t()}catch(t){return!0}},d=!p(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),v="object"==typeof window&&window&&window.Math==Math?window:"object"==typeof self&&self&&self.Math==Math?self:Function("return this")(),g=v.document,y=o(g)&&o(g.createElement),m=function(t){return y?g.createElement(t):{}},b=!d&&!p(function(){return 7!=Object.defineProperty(m("div"),"a",{get:function(){return 7}}).a}),w=function(t){if(!o(t))throw TypeError(String(t)+" is not an object");return t},S=Object.defineProperty,E={f:d?S:function(t,e,n){w(t);e=h(e,!0);w(n);if(b)try{return S(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");"value"in n&&(t[e]=n.value);return t}},_=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},O=function(t,e,n){var r=h(e);r in t?E.f(t,r,_(0,n)):t[r]=n};"undefined"!=typeof window?window:void 0!==t||"undefined"!=typeof self&&self;function T(t,e){return t(e={exports:{}},e.exports),e.exports}var I,L,k,j=d?function(t,e,n){return E.f(t,e,_(1,n))}:function(t,e,n){t[e]=n;return t},x=function(t,e){try{j(v,t,e)}catch(n){v[t]=e}return e},A=!1,M=T(function(t){var e="__core-js_shared__",n=v[e]||x(e,{});(t.exports=function(t,e){return n[t]||(n[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.0.1",mode:A?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),P=0,R=Math.random(),C=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++P+R).toString(36))},D=!p(function(){return!String(Symbol())}),N=M("wks"),F=v.Symbol,U=function(t){return N[t]||(N[t]=D&&F[t]||(D?F:C)("Symbol."+t))},H=U("species"),V=function(t,e){var n;r(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!r(n.prototype)?o(n)&&null===(n=n[H])&&(n=void 0):n=void 0);return new(void 0===n?Array:n)(0===e?0:e)},G=U("species"),q=function(t){return!p(function(){var e=[];(e.constructor={})[G]=function(){return{foo:1}};return 1!==e[t](Boolean).foo})},B={}.propertyIsEnumerable,W=Object.getOwnPropertyDescriptor,z={f:W&&!B.call({1:2},1)?function(t){var e=W(this,t);return!!e&&e.enumerable}:B},J="".split,K=p(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==n(t)?J.call(t,""):Object(t)}:Object,Q=function(t){return K(i(t))},Y={}.hasOwnProperty,$=function(t,e){return Y.call(t,e)},X=Object.getOwnPropertyDescriptor,Z={f:d?X:function(t,e){t=Q(t);e=h(e,!0);if(b)try{return X(t,e)}catch(t){}if($(t,e))return _(!z.f.call(t,e),t[e])}},tt=M("native-function-to-string",Function.toString),et=v.WeakMap,nt="function"==typeof et&&/native code/.test(tt.call(et)),rt=M("keys"),ot=function(t){return rt[t]||(rt[t]=C(t))},it={},st=v.WeakMap,ct=function(t){return k(t)?L(t):I(t,{})},ut=function(t){return function(e){var n;if(!o(e)||(n=L(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(nt){var at=new st,ft=at.get,lt=at.has,ht=at.set;I=function(t,e){ht.call(at,t,e);return e};L=function(t){return ft.call(at,t)||{}};k=function(t){return lt.call(at,t)}}else{var pt=ot("state");it[pt]=!0;I=function(t,e){j(t,pt,e);return e};L=function(t){return $(t,pt)?t[pt]:{}};k=function(t){return $(t,pt)}}var dt={set:I,get:L,has:k,enforce:ct,getterFor:ut},vt=(dt.set,dt.get,dt.has,dt.enforce,dt.getterFor,T(function(t){var e=dt.get,n=dt.enforce,r=String(tt).split("toString");M("inspectSource",function(t){return tt.call(t)});(t.exports=function(t,e,o,i){var s=!!i&&!!i.unsafe,c=!!i&&!!i.enumerable,u=!!i&&!!i.noTargetGet;if("function"==typeof o){"string"!=typeof e||$(o,"name")||j(o,"name",e);n(o).source=r.join("string"==typeof e?e:"")}if(t!==v){s?!u&&t[e]&&(c=!0):delete t[e];c?t[e]=o:j(t,e,o)}else c?t[e]=o:x(e,o)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||tt.call(this)})})),gt=Math.max,yt=Math.min,mt=function(t,e){var n=a(t);return n<0?gt(n+e,0):yt(n,e)},bt=function(t){return function(e,n,r){var o,i=Q(e),s=l(i.length),c=mt(r,s);if(t&&n!=n){for(;s>c;)if((o=i[c++])!=o)return!0}else for(;s>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},wt=bt(!1),St=function(t,e){var n,r=Q(t),o=0,i=[];for(n in r)!$(it,n)&&$(r,n)&&i.push(n);for(;e.length>o;)$(r,n=e[o++])&&(~wt(i,n)||i.push(n));return i},Et=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],_t=Et.concat("length","prototype"),Ot={f:Object.getOwnPropertyNames||function(t){return St(t,_t)}},Tt={f:Object.getOwnPropertySymbols},It=v.Reflect,Lt=It&&It.ownKeys||function(t){var e=Ot.f(w(t)),n=Tt.f;return n?e.concat(n(t)):e},kt=function(t,e){for(var n=Lt(e),r=E.f,o=Z.f,i=0;i<n.length;i++){var s=n[i];$(t,s)||r(t,s,o(e,s))}},jt=/#|\.prototype\./,xt=function(t,e){var n=Mt[At(t)];return n==Rt||n!=Pt&&("function"==typeof e?p(e):!!e)},At=xt.normalize=function(t){return String(t).replace(jt,".").toLowerCase()},Mt=xt.data={},Pt=xt.NATIVE="N",Rt=xt.POLYFILL="P",Ct=xt,Dt=Z.f,Nt=function(t,e){var n,r,o,i,s,c=t.target,u=t.global,a=t.stat;if(n=u?v:a?v[c]||x(c,{}):(v[c]||{}).prototype)for(r in e){i=e[r];o=t.noTargetGet?(s=Dt(n,r))&&s.value:n[r];if(!Ct(u?r:c+(a?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;kt(i,o)}(t.sham||o&&o.sham)&&j(i,"sham",!0);vt(n,r,i,t)}},Ft=U("isConcatSpreadable"),Ut=9007199254740991,Ht="Maximum allowed index exceeded",Vt=!p(function(){var t=[];t[Ft]=!1;return t.concat()[0]!==t}),Gt=q("concat"),qt=function(t){if(!o(t))return!1;var e=t[Ft];return void 0!==e?!!e:r(t)};Nt({target:"Array",proto:!0,forced:!Vt||!Gt},{concat:function(t){var e,n,r,o,i,c=s(this),u=V(c,0),a=0;for(e=-1,r=arguments.length;e<r;e++){i=-1===e?c:arguments[e];if(qt(i)){if(a+(o=l(i.length))>Ut)throw TypeError(Ht);for(n=0;n<o;n++,a++)n in i&&O(u,a,i[n])}else{if(a>=Ut)throw TypeError(Ht);O(u,a++,i)}}u.length=a;return u}});var Bt=U("toStringTag"),Wt="Arguments"==n(function(){return arguments}()),zt=function(t,e){try{return t[e]}catch(t){}},Jt=function(t){var e,r,o;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=zt(e=Object(t),Bt))?r:Wt?n(e):"Object"==(o=n(e))&&"function"==typeof e.callee?"Arguments":o},Kt={};Kt[U("toStringTag")]="z";var Qt="[object z]"!==String(Kt)?function(){return"[object "+Jt(this)+"]"}:Kt.toString,Yt=Object.prototype;Qt!==Yt.toString&&vt(Yt,"toString",Qt,{unsafe:!0});var $t=E.f,Xt=U("toStringTag"),Zt=function(t,e,n){t&&!$(t=n?t:t.prototype,Xt)&&$t(t,Xt,{configurable:!0,value:e})},te={f:U},ee=v,ne=E.f,re=function(t){var e=ee.Symbol||(ee.Symbol={});$(e,t)||ne(e,t,{value:te.f(t)})},oe=Object.keys||function(t){return St(t,Et)},ie=function(t){var e=oe(t),n=Tt.f;if(n)for(var r,o=n(t),i=z.f,s=0;o.length>s;)i.call(t,r=o[s++])&&e.push(r);return e},se=d?Object.defineProperties:function(t,e){w(t);for(var n,r=oe(e),o=r.length,i=0;o>i;)E.f(t,n=r[i++],e[n]);return t},ce=v.document,ue=ce&&ce.documentElement,ae=ot("IE_PROTO"),fe="prototype",le=function(){},he=function(){var t,e=m("iframe"),n=Et.length,r="<",o="script",i=">",s="java"+o+":";e.style.display="none";ue.appendChild(e);e.src=String(s);(t=e.contentWindow.document).open();t.write(r+o+i+"document.F=Object"+r+"/"+o+i);t.close();he=t.F;for(;n--;)delete he[fe][Et[n]];return he()},pe=Object.create||function(t,e){var n;if(null!==t){le[fe]=w(t);n=new le;le[fe]=null;n[ae]=t}else n=he();return void 0===e?n:se(n,e)};it[ae]=!0;var de=Ot.f,ve={}.toString,ge="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ye=function(t){try{return de(t)}catch(t){return ge.slice()}},me={f:function(t){return ge&&"[object Window]"==ve.call(t)?ye(t):de(Q(t))}},be=ot("hidden"),we="Symbol",Se=dt.set,Ee=dt.getterFor(we),_e=Z.f,Oe=E.f,Te=me.f,Ie=v.Symbol,Le=v.JSON,ke=Le&&Le.stringify,je="prototype",xe=U("toPrimitive"),Ae=z.f,Me=M("symbol-registry"),Pe=M("symbols"),Re=M("op-symbols"),Ce=M("wks"),De=Object[je],Ne=v.QObject,Fe=!Ne||!Ne[je]||!Ne[je].findChild,Ue=d&&p(function(){return 7!=pe(Oe({},"a",{get:function(){return Oe(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=_e(De,e);r&&delete De[e];Oe(t,e,n);r&&t!==De&&Oe(De,e,r)}:Oe,He=function(t,e){var n=Pe[t]=pe(Ie[je]);Se(n,{type:we,tag:t,description:e});d||(n.description=e);return n},Ve=D&&"symbol"==typeof Ie.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Ie},Ge=function(t,e,n){t===De&&Ge(Re,e,n);w(t);e=h(e,!0);w(n);if($(Pe,e)){if(n.enumerable){$(t,be)&&t[be][e]&&(t[be][e]=!1);n=pe(n,{enumerable:_(0,!1)})}else{$(t,be)||Oe(t,be,_(1,{}));t[be][e]=!0}return Ue(t,e,n)}return Oe(t,e,n)},qe=function(t,e){w(t);for(var n,r=ie(e=Q(e)),o=0,i=r.length;i>o;)Ge(t,n=r[o++],e[n]);return t},Be=function(t,e){return void 0===e?pe(t):qe(pe(t),e)},We=function(t){var e=Ae.call(this,t=h(t,!0));return!(this===De&&$(Pe,t)&&!$(Re,t))&&(!(e||!$(this,t)||!$(Pe,t)||$(this,be)&&this[be][t])||e)},ze=function(t,e){t=Q(t);e=h(e,!0);if(t!==De||!$(Pe,e)||$(Re,e)){var n=_e(t,e);!n||!$(Pe,e)||$(t,be)&&t[be][e]||(n.enumerable=!0);return n}},Je=function(t){for(var e,n=Te(Q(t)),r=[],o=0;n.length>o;)$(Pe,e=n[o++])||$(it,e)||r.push(e);return r},Ke=function(t){for(var e,n=t===De,r=Te(n?Re:Q(t)),o=[],i=0;r.length>i;)!$(Pe,e=r[i++])||n&&!$(De,e)||o.push(Pe[e]);return o};if(!D){vt((Ie=function(){if(this instanceof Ie)throw TypeError("Symbol is not a constructor");var t=void 0===arguments[0]?void 0:String(arguments[0]),e=C(t);d&&Fe&&Ue(De,e,{configurable:!0,set:function t(n){this===De&&t.call(Re,n);$(this,be)&&$(this[be],e)&&(this[be][e]=!1);Ue(this,e,_(1,n))}});return He(e,t)})[je],"toString",function(){return Ee(this).tag});z.f=We;E.f=Ge;Z.f=ze;Ot.f=me.f=Je;Tt.f=Ke;if(d){Oe(Ie[je],"description",{configurable:!0,get:function(){return Ee(this).description}});A||vt(De,"propertyIsEnumerable",We,{unsafe:!0})}te.f=function(t){return He(U(t),t)}}Nt({global:!0,wrap:!0,forced:!D,sham:!D},{Symbol:Ie});for(var Qe=oe(Ce),Ye=0;Qe.length>Ye;)re(Qe[Ye++]);Nt({target:we,stat:!0,forced:!D},{for:function(t){return $(Me,t+="")?Me[t]:Me[t]=Ie(t)},keyFor:function(t){if(!Ve(t))throw TypeError(t+" is not a symbol");for(var e in Me)if(Me[e]===t)return e},useSetter:function(){Fe=!0},useSimple:function(){Fe=!1}});Nt({target:"Object",stat:!0,forced:!D,sham:!d},{create:Be,defineProperty:Ge,defineProperties:qe,getOwnPropertyDescriptor:ze});Nt({target:"Object",stat:!0,forced:!D},{getOwnPropertyNames:Je,getOwnPropertySymbols:Ke});Le&&Nt({target:"JSON",stat:!0,forced:!D||p(function(){var t=Ie();return"[null]"!=ke([t])||"{}"!=ke({a:t})||"{}"!=ke(Object(t))})},{stringify:function(t){for(var e,n,i=[t],s=1;arguments.length>s;)i.push(arguments[s++]);n=e=i[1];if((o(e)||void 0!==t)&&!Ve(t)){r(e)||(e=function(t,e){"function"==typeof n&&(e=n.call(this,t,e));if(!Ve(e))return e});i[1]=e;return ke.apply(Le,i)}}});Ie[je][xe]||j(Ie[je],xe,Ie[je].valueOf);Zt(Ie,we);it[be]=!0;re("asyncIterator");var $e=E.f,Xe=v.Symbol;if(d&&"function"==typeof Xe&&(!("description"in Xe.prototype)||void 0!==Xe().description)){var Ze={},tn=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof tn?new Xe(t):void 0===t?Xe():Xe(t);""===t&&(Ze[e]=!0);return e};kt(tn,Xe);var en=tn.prototype=Xe.prototype;en.constructor=tn;var nn=en.toString,rn="Symbol(test)"==String(Xe("test")),on=/^Symbol\((.*)\)[^)]+$/;$e(en,"description",{configurable:!0,get:function(){var t=o(this)?this.valueOf():this,e=nn.call(t);if($(Ze,t))return"";var n=rn?e.slice(7,-1):e.replace(on,"$1");return""===n?void 0:n}});Nt({global:!0,forced:!0},{Symbol:tn})}re("hasInstance");re("isConcatSpreadable");re("iterator");re("match");re("replace");re("search");re("species");re("split");re("toPrimitive");re("toStringTag");re("unscopables");Zt(Math,"Math",!0);Zt(v.JSON,"JSON",!0);ee.Symbol;var sn=U("iterator"),cn=!1;try{var un=0,an={next:function(){return{done:!!un++}},return:function(){cn=!0}};an[sn]=function(){return this};Array.from(an,function(){throw 2})}catch(t){}var fn=function(t,e){if(!e&&!cn)return!1;var n=!1;try{var r={};r[sn]=function(){return{next:function(){return{done:n=!0}}}};t(r)}catch(t){}return n},ln=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},hn=function(t,e,n){ln(t);if(void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},pn=function(t,e,n,r){try{return r?e(w(n)[0],n[1]):e(n)}catch(e){var o=t.return;void 0!==o&&w(o.call(t));throw e}},dn={},vn=U("iterator"),gn=Array.prototype,yn=function(t){return void 0!==t&&(dn.Array===t||gn[vn]===t)},mn=U("iterator"),bn=function(t){if(void 0!=t)return t[mn]||t["@@iterator"]||dn[Jt(t)]},wn=function(t){var e,n,r,o,i=s(t),c="function"==typeof this?this:Array,u=arguments.length,a=u>1?arguments[1]:void 0,f=void 0!==a,h=0,p=bn(i);f&&(a=hn(a,u>2?arguments[2]:void 0,2));if(void 0==p||c==Array&&yn(p)){n=new c(e=l(i.length));for(;e>h;h++)O(n,h,f?a(i[h],h):i[h])}else{o=p.call(i);n=new c;for(;!(r=o.next()).done;h++)O(n,h,f?pn(o,a,[r.value,h],!0):r.value)}n.length=h;return n},Sn=!fn(function(t){Array.from(t)});Nt({target:"Array",stat:!0,forced:Sn},{from:wn});var En=function(t){for(var e=s(this),n=l(e.length),r=arguments.length,o=mt(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,c=void 0===i?n:mt(i,n);c>o;)e[o++]=t;return e},_n=U("unscopables"),On=Array.prototype;void 0==On[_n]&&j(On,_n,pe(null));var Tn=function(t){On[_n][t]=!0};Nt({target:"Array",proto:!0},{fill:En});Tn("fill");var In=function(t,e){var n=1==t,r=2==t,o=3==t,i=4==t,c=6==t,u=5==t||c,a=e||V;return function(e,f,h){for(var p,d,v=s(e),g=K(v),y=hn(f,h,3),m=l(g.length),b=0,w=n?a(e,m):r?a(e,0):void 0;m>b;b++)if(u||b in g){d=y(p=g[b],b,v);if(t)if(n)w[b]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return b;case 2:w.push(p)}else if(i)return!1}return c?-1:o||i?i:w}},Ln=In(5),kn="find",jn=!0;kn in[]&&Array(1)[kn](function(){jn=!1});Nt({target:"Array",proto:!0,forced:jn},{find:function(t){return Ln(this,t,arguments.length>1?arguments[1]:void 0)}});Tn(kn);var xn=In(6),An="findIndex",Mn=!0;An in[]&&Array(1)[An](function(){Mn=!1});Nt({target:"Array",proto:!0,forced:Mn},{findIndex:function(t){return xn(this,t,arguments.length>1?arguments[1]:void 0)}});Tn(An);var Pn=bt(!0);Nt({target:"Array",proto:!0},{includes:function(t){return Pn(this,t,arguments.length>1?arguments[1]:void 0)}});Tn("includes");var Rn,Cn,Dn,Nn=!p(function(){function t(){}t.prototype.constructor=null;return Object.getPrototypeOf(new t)!==t.prototype}),Fn=ot("IE_PROTO"),Un=Object.prototype,Hn=Nn?Object.getPrototypeOf:function(t){t=s(t);return $(t,Fn)?t[Fn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Un:null},Vn=U("iterator"),Gn=!1,qn=function(){return this};[].keys&&("next"in(Dn=[].keys())?(Cn=Hn(Hn(Dn)))!==Object.prototype&&(Rn=Cn):Gn=!0);void 0==Rn&&(Rn={});A||$(Rn,Vn)||j(Rn,Vn,qn);var Bn={IteratorPrototype:Rn,BUGGY_SAFARI_ITERATORS:Gn},Wn=(Bn.IteratorPrototype,Bn.BUGGY_SAFARI_ITERATORS,Bn.IteratorPrototype),zn=function(){return this},Jn=function(t,e,n){var r=e+" Iterator";t.prototype=pe(Wn,{next:_(1,n)});Zt(t,r,!1,!0);dn[r]=zn;return t},Kn=function(t,e){w(t);if(!o(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")},Qn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]);e=n instanceof Array}catch(t){}return function(n,r){Kn(n,r);e?t.call(n,r):n.__proto__=r;return n}}():void 0),Yn=U("iterator"),$n=Bn.IteratorPrototype,Xn=Bn.BUGGY_SAFARI_ITERATORS,Zn="keys",tr="values",er="entries",nr=function(){return this},rr=function(t,e,n,r,o,i,s){Jn(n,e,r);var c,u,a,f=function(t){if(t===o&&v)return v;if(!Xn&&t in p)return p[t];switch(t){case Zn:case tr:case er:return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",h=!1,p=t.prototype,d=p[Yn]||p["@@iterator"]||o&&p[o],v=!Xn&&d||f(o),g="Array"==e&&p.entries||d;if(g){c=Hn(g.call(new t));if($n!==Object.prototype&&c.next){A||Hn(c)===$n||(Qn?Qn(c,$n):"function"!=typeof c[Yn]&&j(c,Yn,nr));Zt(c,l,!0,!0);A&&(dn[l]=nr)}}if(o==tr&&d&&d.name!==tr){h=!0;v=function(){return d.call(this)}}A&&!s||p[Yn]===v||j(p,Yn,v);dn[e]=v;if(o){u={values:f(tr),keys:i?v:f(Zn),entries:f(er)};if(s)for(a in u)!Xn&&!h&&a in p||vt(p,a,u[a]);else Nt({target:e,proto:!0,forced:Xn||h},u)}return u},or="Array Iterator",ir=dt.set,sr=dt.getterFor(or),cr=rr(Array,"Array",function(t,e){ir(this,{type:or,target:Q(t),index:0,kind:e})},function(){var t=sr(this),e=t.target,n=t.kind,r=t.index++;if(!e||r>=e.length){t.target=void 0;return{value:void 0,done:!0}}return"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values");dn.Arguments=dn.Array;Tn("keys");Tn("values");Tn("entries");var ur=U("match"),ar=function(t){var e;return o(t)&&(void 0!==(e=t[ur])?!!e:"RegExp"==n(t))},fr=function(t,e,n){if(ar(e))throw TypeError("String.prototype."+n+" doesn't accept regex");return String(i(t))},lr=U("match"),hr=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{e[lr]=!1;return"/./"[t](e)}catch(t){}}return!1},pr="includes",dr=hr(pr);Nt({target:"String",proto:!0,forced:!dr},{includes:function(t){return!!~fr(this,t,pr).indexOf(t,arguments.length>1?arguments[1]:void 0)}});var vr="startsWith",gr=hr(vr),yr=""[vr];Nt({target:"String",proto:!0,forced:!gr},{startsWith:function(t){var e=fr(this,t,vr),n=l(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return yr?yr.call(e,r,n):e.slice(n,n+r.length)===r}});var mr="endsWith",br=""[mr],wr=Math.min,Sr=hr(mr);Nt({target:"String",proto:!0,forced:!Sr},{endsWith:function(t){var e=fr(this,t,mr),n=arguments.length>1?arguments[1]:void 0,r=l(e.length),o=void 0===n?r:wr(l(n),r),i=String(t);return br?br.call(e,i,o):e.slice(o-i.length,o)===i}});var Er=function(t,e,n){var r,o,s=String(i(t)),c=a(e),u=s.length;return c<0||c>=u?n?"":void 0:(r=s.charCodeAt(c))<55296||r>56319||c+1===u||(o=s.charCodeAt(c+1))<56320||o>57343?n?s.charAt(c):r:n?s.slice(c,c+2):o-56320+(r-55296<<10)+65536},_r="String Iterator",Or=dt.set,Tr=dt.getterFor(_r);rr(String,"String",function(t){Or(this,{type:_r,string:String(t),index:0})},function(){var t,e=Tr(this),n=e.string,r=e.index;if(r>=n.length)return{value:void 0,done:!0};t=Er(n,r,!0);e.index+=t.length;return{value:t,done:!1}});var Ir=String.fromCharCode,Lr=String.fromCodePoint,kr=!!Lr&&1!=Lr.length;Nt({target:"String",stat:!0,forced:kr},{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,o=0;r>o;){e=+arguments[o++];if(mt(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?Ir(e):Ir(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}});var jr=Object.assign,xr=!jr||p(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";t[n]=7;r.split("").forEach(function(t){e[t]=t});return 7!=jr({},t)[n]||oe(jr({},e)).join("")!=r})?function(t,e){for(var n=s(t),r=arguments.length,o=1,i=Tt.f,c=z.f;r>o;)for(var u,a=K(arguments[o++]),f=i?oe(a).concat(i(a)):oe(a),l=f.length,h=0;l>h;)c.call(a,u=f[h++])&&(n[u]=a[u]);return n}:jr;Nt({target:"Object",stat:!0,forced:Object.assign!==xr},{assign:xr});var Ar=z.f,Mr=function(t,e){for(var n,r=Q(t),o=oe(r),i=o.length,s=0,c=[];i>s;)Ar.call(r,n=o[s++])&&c.push(e?[n,r[n]]:r[n]);return c};Nt({target:"Object",stat:!0},{values:function(t){return Mr(t)}});var Pr=Math.floor;Nt({target:"Number",stat:!0},{isInteger:function(t){return!o(t)&&isFinite(t)&&Pr(t)===t}});var Rr=E.f,Cr=Function.prototype,Dr=Cr.toString,Nr=/^\s*function ([^ (]*)/,Fr="name";!d||Fr in Cr||Rr(Cr,Fr,{configurable:!0,get:function(){try{return Dr.call(this).match(Nr)[1]}catch(t){return""}}});var Ur=!p(function(){return Object.isExtensible(Object.preventExtensions({}))}),Hr=T(function(t){var e=C("meta"),n=E.f,r=0,i=Object.isExtensible||function(){return!0},s=function(t){n(t,e,{value:{objectID:"O"+ ++r,weakData:{}}})},c=function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!$(t,e)){if(!i(t))return"F";if(!n)return"E";s(t)}return t[e].objectID},u=function(t,n){if(!$(t,e)){if(!i(t))return!0;if(!n)return!1;s(t)}return t[e].weakData},a=function(t){Ur&&f.REQUIRED&&i(t)&&!$(t,e)&&s(t);return t},f=t.exports={REQUIRED:!1,fastKey:c,getWeakData:u,onFreeze:a};it[e]=!0}),Vr=(Hr.REQUIRED,Hr.fastKey,Hr.getWeakData,Hr.onFreeze,T(function(t){var e={};(t.exports=function(t,n,r,o,i){var s,c,u,a,f,h=hn(n,r,o?2:1);if(i)s=t;else{if("function"!=typeof(c=bn(t)))throw TypeError("Target is not iterable");if(yn(c)){for(u=0,a=l(t.length);a>u;u++)if((o?h(w(f=t[u])[0],f[1]):h(t[u]))===e)return e;return}s=c.call(t)}for(;!(f=s.next()).done;)if(pn(s,h,f.value,o)===e)return e}).BREAK=e})),Gr=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t},qr=function(t,e,n){var r,i=e.constructor;i!==n&&"function"==typeof i&&(r=i.prototype)!==n.prototype&&o(r)&&Qn&&Qn(t,r);return t},Br=function(t,e,n,r,i){var s=v[t],c=s&&s.prototype,u=s,a=r?"set":"add",f={},l=function(t){var e=c[t];vt(c,t,"add"==t?function(t){e.call(this,0===t?0:t);return this}:"delete"==t?function(t){return!(i&&!o(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return i&&!o(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(i&&!o(t))&&e.call(this,0===t?0:t)}:function(t,n){e.call(this,0===t?0:t,n);return this})};if(Ct(t,"function"!=typeof s||!(i||c.forEach&&!p(function(){(new s).entries().next()})))){u=n.getConstructor(e,t,r,a);Hr.REQUIRED=!0}else if(Ct(t,!0)){var h=new u,d=h[a](i?{}:-0,1)!=h,g=p(function(){h.has(1)}),y=fn(function(t){new s(t)}),m=!i&&p(function(){for(var t=new s,e=5;e--;)t[a](e,e);return!t.has(-0)});if(!y){(u=e(function(e,n){Gr(e,u,t);var o=qr(new s,e,u);void 0!=n&&Vr(n,o[a],o,r);return o})).prototype=c;c.constructor=u}if(g||m){l("delete");l("has");r&&l("get")}(m||d)&&l(a);i&&c.clear&&delete c.clear}f[t]=u;Nt({global:!0,forced:u!=s},f);Zt(u,t);i||n.setStrong(u,t,r);return u},Wr=function(t,e,n){for(var r in e)vt(t,r,e[r],n);return t},zr=function(t){return"function"==typeof t?t:void 0},Jr=function(t,e){return arguments.length<2?zr(ee[t])||zr(v[t]):ee[t]&&ee[t][e]||v[t]&&v[t][e]},Kr=U("species"),Qr=function(t){var e=Jr(t),n=E.f;d&&e&&!e[Kr]&&n(e,Kr,{configurable:!0,get:function(){return this}})},Yr=E.f,$r=Hr.fastKey,Xr=dt.set,Zr=dt.getterFor,to={getConstructor:function(t,e,n,r){var o=t(function(t,i){Gr(t,o,e);Xr(t,{type:e,index:pe(null),first:void 0,last:void 0,size:0});d||(t.size=0);void 0!=i&&Vr(i,t[r],t,n)}),i=Zr(e),s=function(t,e,n){var r,o,s=i(t),u=c(t,e);if(u)u.value=n;else{s.last=u={index:o=$r(e,!0),key:e,value:n,previous:r=s.last,next:void 0,removed:!1};s.first||(s.first=u);r&&(r.next=u);d?s.size++:t.size++;"F"!==o&&(s.index[o]=u)}return t},c=function(t,e){var n,r=i(t),o=$r(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};Wr(o.prototype,{clear:function(){for(var t=this,e=i(t),n=e.index,r=e.first;r;){r.removed=!0;r.previous&&(r.previous=r.previous.next=void 0);delete n[r.index];r=r.next}e.first=e.last=void 0;d?e.size=0:t.size=0},delete:function(t){var e=this,n=i(e),r=c(e,t);if(r){var o=r.next,s=r.previous;delete n.index[r.index];r.removed=!0;s&&(s.next=o);o&&(o.previous=s);n.first==r&&(n.first=o);n.last==r&&(n.last=s);d?n.size--:e.size--}return!!r},forEach:function(t){for(var e,n=i(this),r=hn(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;){r(e.value,e.key,this);for(;e&&e.removed;)e=e.previous}},has:function(t){return!!c(this,t)}});Wr(o.prototype,n?{get:function(t){var e=c(this,t);return e&&e.value},set:function(t,e){return s(this,0===t?0:t,e)}}:{add:function(t){return s(this,t=0===t?0:t,t)}});d&&Yr(o.prototype,"size",{get:function(){return i(this).size}});return o},setStrong:function(t,e,n){var r=e+" Iterator",o=Zr(e),i=Zr(r);rr(t,e,function(t,e){Xr(this,{type:r,target:t,state:o(t),kind:e,last:void 0})},function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;if(!t.target||!(t.last=n=n?n.next:t.state.first)){t.target=void 0;return{value:void 0,done:!0}}return"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}},n?"entries":"values",!n,!0);Qr(e)}},eo=(to.getConstructor,to.setStrong,Br("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},to,!0),{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),no=(eo.CSSRuleList,eo.CSSStyleDeclaration,eo.CSSValueList,eo.ClientRectList,eo.DOMRectList,eo.DOMStringList,eo.DOMTokenList,eo.DataTransferItemList,eo.FileList,eo.HTMLAllCollection,eo.HTMLCollection,eo.HTMLFormElement,eo.HTMLSelectElement,eo.MediaList,eo.MimeTypeArray,eo.NamedNodeMap,eo.NodeList,eo.PaintRequestList,eo.Plugin,eo.PluginArray,eo.SVGLengthList,eo.SVGNumberList,eo.SVGPathSegList,eo.SVGPointList,eo.SVGStringList,eo.SVGTransformList,eo.SourceBufferList,eo.StyleSheetList,eo.TextTrackCueList,eo.TextTrackList,eo.TouchList,U("iterator")),ro=U("toStringTag"),oo=cr.values;for(var io in eo){var so=v[io],co=so&&so.prototype;if(co){if(co[no]!==oo)try{j(co,no,oo)}catch(t){co[no]=oo}co[ro]||j(co,ro,io);if(eo[io])for(var uo in cr)if(co[uo]!==cr[uo])try{j(co,uo,cr[uo])}catch(t){co[uo]=cr[uo]}}}ee.Map,Br("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},to),ee.Set;var ao,fo,lo,ho=U("species"),po=function(t,e){var n,r=w(t).constructor;return void 0===r||void 0==(n=w(r)[ho])?e:ln(n)},vo=v.setImmediate,go=v.clearImmediate,yo=v.process,mo=v.MessageChannel,bo=v.Dispatch,wo=0,So={},Eo="onreadystatechange",_o=function(){var t=+this;if(So.hasOwnProperty(t)){var e=So[t];delete So[t];e()}},Oo=function(t){_o.call(t.data)};if(!vo||!go){vo=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);So[++wo]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)};ao(wo);return wo};go=function(t){delete So[t]};if("process"==n(yo))ao=function(t){yo.nextTick(hn(_o,t,1))};else if(bo&&bo.now)ao=function(t){bo.now(hn(_o,t,1))};else if(mo){lo=(fo=new mo).port2;fo.port1.onmessage=Oo;ao=hn(lo.postMessage,lo,1)}else if(v.addEventListener&&"function"==typeof postMessage&&!v.importScripts){ao=function(t){v.postMessage(t+"","*")};v.addEventListener("message",Oo,!1)}else ao=Eo in m("script")?function(t){ue.appendChild(m("script"))[Eo]=function(){ue.removeChild(this);_o.call(t)}}:function(t){setTimeout(hn(_o,t,1),0)}}var To,Io,Lo,ko,jo,xo,Ao,Mo={set:vo,clear:go},Po=(Mo.set,Mo.clear,v.navigator),Ro=Po&&Po.userAgent||"",Co=Z.f,Do=Mo.set,No=v.MutationObserver||v.WebKitMutationObserver,Fo=v.process,Uo=v.Promise,Ho="process"==n(Fo),Vo=Co(v,"queueMicrotask"),Go=Vo&&Vo.value;if(!Go){To=function(){var t,e;Ho&&(t=Fo.domain)&&t.exit();for(;Io;){e=Io.fn;Io=Io.next;try{e()}catch(t){Io?ko():Lo=void 0;throw t}}Lo=void 0;t&&t.enter()};if(Ho)ko=function(){Fo.nextTick(To)};else if(No&&!/(iPhone|iPod|iPad).*AppleWebKit/i.test(Ro)){jo=!0;xo=document.createTextNode("");new No(To).observe(xo,{characterData:!0});ko=function(){xo.data=jo=!jo}}else if(Uo&&Uo.resolve){Ao=Uo.resolve(void 0);ko=function(){Ao.then(To)}}else ko=function(){Do.call(v,To)}}var qo,Bo,Wo,zo=Go||function(t){var e={fn:t,next:void 0};Lo&&(Lo.next=e);if(!Io){Io=e;ko()}Lo=e},Jo=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t;n=r});this.resolve=ln(e);this.reject=ln(n)},Ko={f:function(t){return new Jo(t)}},Qo=function(t,e){w(t);if(o(e)&&e.constructor===t)return e;var n=Ko.f(t);(0,n.resolve)(e);return n.promise},Yo=function(t,e){var n=v.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))},$o=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Xo="Promise",Zo=Mo.set,ti=U("species"),ei=dt.get,ni=dt.set,ri=dt.getterFor(Xo),oi=v[Xo],ii=v.TypeError,si=v.document,ci=v.process,ui=v.fetch,ai=ci&&ci.versions,fi=ai&&ai.v8||"",li=Ko.f,hi=li,pi="process"==n(ci),di=!!(si&&si.createEvent&&v.dispatchEvent),vi="unhandledrejection",gi="rejectionhandled",yi=0,mi=1,bi=2,wi=1,Si=2,Ei=Ct(Xo,function(){var t=oi.resolve(1),e=function(){},n=(t.constructor={})[ti]=function(t){t(e,e)};return!((pi||"function"==typeof PromiseRejectionEvent)&&(!A||t.finally)&&t.then(e)instanceof n&&0!==fi.indexOf("6.6")&&-1===Ro.indexOf("Chrome/66"))}),_i=Ei||!fn(function(t){oi.all(t).catch(function(){})}),Oi=function(t){var e;return!(!o(t)||"function"!=typeof(e=t.then))&&e},Ti=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;zo(function(){for(var o=e.value,i=e.state==mi,s=0,c=function(n){var r,s,c,u=i?n.ok:n.fail,a=n.resolve,f=n.reject,l=n.domain;try{if(u){if(!i){e.rejection===Si&&ji(t,e);e.rejection=wi}if(!0===u)r=o;else{l&&l.enter();r=u(o);if(l){l.exit();c=!0}}r===n.promise?f(ii("Promise-chain cycle")):(s=Oi(r))?s.call(r,a,f):a(r)}else f(o)}catch(t){l&&!c&&l.exit();f(t)}};r.length>s;)c(r[s++]);e.reactions=[];e.notified=!1;n&&!e.rejection&&Li(t,e)})}},Ii=function(t,e,n){var r,o;if(di){(r=si.createEvent("Event")).promise=e;r.reason=n;r.initEvent(t,!1,!0);v.dispatchEvent(r)}else r={promise:e,reason:n};(o=v["on"+t])?o(r):t===vi&&Yo("Unhandled promise rejection",n)},Li=function(t,e){Zo.call(v,function(){var n,r=e.value;if(ki(e)){n=$o(function(){pi?ci.emit("unhandledRejection",r,t):Ii(vi,t,r)});e.rejection=pi||ki(e)?Si:wi;if(n.error)throw n.value}})},ki=function(t){return t.rejection!==wi&&!t.parent},ji=function(t,e){Zo.call(v,function(){pi?ci.emit("rejectionHandled",t):Ii(gi,t,e.value)})},xi=function(t,e,n,r){return function(o){t(e,n,o,r)}},Ai=function(t,e,n,r){if(!e.done){e.done=!0;r&&(e=r);e.value=n;e.state=bi;Ti(t,e,!0)}},Mi=function t(e,n,r,o){if(!n.done){n.done=!0;o&&(n=o);try{if(e===r)throw ii("Promise can't be resolved itself");var i=Oi(r);if(i)zo(function(){var o={done:!1};try{i.call(r,xi(t,e,o,n),xi(Ai,e,o,n))}catch(t){Ai(e,o,t,n)}});else{n.value=r;n.state=mi;Ti(e,n,!1)}}catch(t){Ai(e,{done:!1},t,n)}}};if(Ei){oi=function(t){Gr(this,oi,Xo);ln(t);qo.call(this);var e=ei(this);try{t(xi(Mi,this,e),xi(Ai,this,e))}catch(t){Ai(this,e,t)}};(qo=function(t){ni(this,{type:Xo,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:yi,value:void 0})}).prototype=Wr(oi.prototype,{then:function(t,e){var n=ri(this),r=li(po(this,oi));r.ok="function"!=typeof t||t;r.fail="function"==typeof e&&e;r.domain=pi?ci.domain:void 0;n.parent=!0;n.reactions.push(r);n.state!=yi&&Ti(this,n,!1);return r.promise},catch:function(t){return this.then(void 0,t)}});Bo=function(){var t=new qo,e=ei(t);this.promise=t;this.resolve=xi(Mi,t,e);this.reject=xi(Ai,t,e)};Ko.f=li=function(t){return t===oi||t===Wo?new Bo(t):hi(t)};A||"function"!=typeof ui||Nt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return Qo(oi,ui.apply(v,arguments))}})}Nt({global:!0,wrap:!0,forced:Ei},{Promise:oi});Zt(oi,Xo,!1,!0);Qr(Xo);Wo=ee[Xo];Nt({target:Xo,stat:!0,forced:Ei},{reject:function(t){var e=li(this);e.reject.call(void 0,t);return e.promise}});Nt({target:Xo,stat:!0,forced:A||Ei},{resolve:function(t){return Qo(A&&this===Wo?oi:this,t)}});Nt({target:Xo,stat:!0,forced:_i},{all:function(t){var e=this,n=li(e),r=n.resolve,o=n.reject,i=$o(function(){var n=[],i=0,s=1;Vr(t,function(t){var c=i++,u=!1;n.push(void 0);s++;e.resolve(t).then(function(t){if(!u){u=!0;n[c]=t;--s||r(n)}},o)});--s||r(n)});i.error&&o(i.value);return n.promise},race:function(t){var e=this,n=li(e),r=n.reject,o=$o(function(){Vr(t,function(t){e.resolve(t).then(n.resolve,r)})});o.error&&r(o.value);return n.promise}});Nt({target:"Promise",proto:!0,real:!0},{finally:function(t){var e=po(this,Jr("Promise")),n="function"==typeof t;return this.then(n?function(n){return Qo(e,t()).then(function(){return n})}:t,n?function(n){return Qo(e,t()).then(function(){throw n})}:t)}});ee.Promise;!function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=function(t){for(var e=window.document,n=o(e);n;)n=o(e=n.ownerDocument);return e}(),e=[],n=null,r=null;s.prototype.THROTTLE_TIMEOUT=100;s.prototype.POLL_INTERVAL=null;s.prototype.USE_MUTATION_OBSERVER=!0;s._setupCrossOriginUpdater=function(){n||(n=function(t,n){r=t&&n?v(t,n):p();e.forEach(function(t){t._checkForIntersections()})});return n};s._resetCrossOriginUpdater=function(){n=null;r=null};s.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance();this._observationTargets.push({element:t,entry:null});this._monitorIntersections(t.ownerDocument);this._checkForIntersections()}};s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t});this._unmonitorIntersections(t.ownerDocument);0==this._observationTargets.length&&this._unregisterInstance()};s.prototype.disconnect=function(){this._observationTargets=[];this._unmonitorAllIntersections();this._unregisterInstance()};s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();this._queuedEntries=[];return t};s.prototype._initThresholds=function(t){var e=t||[0];Array.isArray(e)||(e=[e]);return e.sort().filter(function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]})};s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});e[1]=e[1]||e[0];e[2]=e[2]||e[0];e[3]=e[3]||e[1];return e};s.prototype._monitorIntersections=function(e){var n=e.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(e)){var r=this._checkForIntersections,i=null,s=null;if(this.POLL_INTERVAL)i=n.setInterval(r,this.POLL_INTERVAL);else{a(n,"resize",r,!0);a(e,"scroll",r,!0);this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(s=new n.MutationObserver(r)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}this._monitoringDocuments.push(e);this._monitoringUnsubscribes.push(function(){var t=e.defaultView;if(t){i&&t.clearInterval(i);f(t,"resize",r,!0)}f(e,"scroll",r,!0);s&&s.disconnect()});if(e!=(this.root&&this.root.ownerDocument||t)){var c=o(e);c&&this._monitorIntersections(c.ownerDocument)}}};s.prototype._unmonitorIntersections=function(e){var n=this._monitoringDocuments.indexOf(e);if(-1!=n){var r=this.root&&this.root.ownerDocument||t;if(!this._observationTargets.some(function(t){var n=t.element.ownerDocument;if(n==e)return!0;for(;n&&n!=r;){var i=o(n);if((n=i&&i.ownerDocument)==e)return!0}return!1})){var i=this._monitoringUnsubscribes[n];this._monitoringDocuments.splice(n,1);this._monitoringUnsubscribes.splice(n,1);i();if(e!=r){var s=o(e);s&&this._unmonitorIntersections(s.ownerDocument)}}}};s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0;this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()};s.prototype._checkForIntersections=function(){if(this.root||!n||r){var t=this._rootIsInDom(),e=t?this._getRootRect():p();this._observationTargets.forEach(function(r){var o=r.element,s=h(o),u=this._rootContainsTarget(o),a=r.entry,f=t&&u&&this._computeTargetAndRootIntersection(o,s,e),l=r.entry=new i({time:c(),target:o,boundingClientRect:s,rootBounds:n&&!this.root?null:e,intersectionRect:f});a?t&&u?this._hasCrossedThreshold(a,l)&&this._queuedEntries.push(l):a&&a.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)},this);this._queuedEntries.length&&this._callback(this.takeRecords(),this)}};s.prototype._computeTargetAndRootIntersection=function(e,o,i){if("none"!=window.getComputedStyle(e).display){for(var s=o,c=y(e),u=!1;!u&&c;){var a=null,f=1==c.nodeType?window.getComputedStyle(c):{};if("none"==f.display)return null;if(c==this.root||9==c.nodeType){u=!0;if(c==this.root||c==t)if(n&&!this.root)if(!r||0==r.width&&0==r.height){c=null;a=null;s=null}else a=r;else a=i;else{var p=y(c),d=p&&h(p),g=p&&this._computeTargetAndRootIntersection(p,d,i);if(d&&g){c=p;a=v(d,g)}else{c=null;s=null}}}else{var m=c.ownerDocument;c!=m.body&&c!=m.documentElement&&"visible"!=f.overflow&&(a=h(c))}a&&(s=l(a,s));if(!s)break;c=c&&y(c)}return s}};s.prototype._getRootRect=function(){var e;if(this.root)e=h(this.root);else{var n=t.documentElement,r=t.body;e={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(e)};s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100}),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};n.width=n.right-n.left;n.height=n.bottom-n.top;return n};s.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(var o=0;o<this.thresholds.length;o++){var i=this.thresholds[o];if(i==n||i==r||i<n!=i<r)return!0}};s.prototype._rootIsInDom=function(){return!this.root||g(t,this.root)};s.prototype._rootContainsTarget=function(e){return g(this.root||t,e)&&(!this.root||this.root.ownerDocument==e.ownerDocument)};s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)};s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)};window.IntersectionObserver=s;window.IntersectionObserverEntry=i}function o(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}function i(t){this.time=t.time;this.target=t.target;this.rootBounds=d(t.rootBounds);this.boundingClientRect=d(t.boundingClientRect);this.intersectionRect=d(t.intersectionRect||p());this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,r=this.intersectionRect,o=r.width*r.height;this.intersectionRatio=n?Number((o/n).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var n=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=u(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT);this._callback=t;this._observationTargets=[];this._queuedEntries=[];this._rootMarginValues=this._parseRootMargin(n.rootMargin);this.thresholds=this._initThresholds(n.threshold);this.root=n.root||null;this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" ");this._monitoringDocuments=[];this._monitoringUnsubscribes=[]}function c(){return window.performance&&performance.now&&performance.now()}function u(t,e){var n=null;return function(){n||(n=setTimeout(function(){t();n=null},e))}}function a(t,e,n,r){"function"==typeof t.addEventListener?t.addEventListener(e,n,r||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function f(t,e,n,r){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,r||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function l(t,e){var n=Math.max(t.top,e.top),r=Math.min(t.bottom,e.bottom),o=Math.max(t.left,e.left),i=Math.min(t.right,e.right),s=i-o,c=r-n;return s>=0&&c>=0&&{top:n,bottom:r,left:o,right:i,width:s,height:c}||null}function h(t){var e;try{e=t.getBoundingClientRect()}catch(t){}if(!e)return p();e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top});return e}function p(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function d(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function v(t,e){var n=e.top-t.top,r=e.left-t.left;return{top:n,left:r,height:e.height,width:e.width,bottom:n+e.height,right:r+e.width}}function g(t,e){for(var n=e;n;){if(n==t)return!0;n=y(n)}return!1}function y(e){var n=e.parentNode;return 9==e.nodeType&&e!=t?o(e):n&&11==n.nodeType&&n.host?n.host:n&&n.assignedSlot?n.assignedSlot.parentNode:n}}();try{void 0===window.hubspot&&(window.hubspot={});"object"!=typeof window.hubspot.polyfills&&(window.hubspot.polyfills={});window.hubspot.polyfills["Object.assign"]=!0;window.hubspot.polyfills.Promise=!0;window.hubspot.polyfills.Symbol=!0;window.hubspot.polyfills["String.prototype[Symbol.iterator]"]=!0;window.hubspot.polyfills.__INSTALLED=!0}catch(t){console.error("Error while building hubspot.polyfill object",t)}}()}).call(this,n(1))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){t.exports="//static.hsappstatic.net/HubspotToolsMenu/static-1.99/js/sprocket_white.svg"},function(t,e){t.exports="//static.hsappstatic.net/HubspotToolsMenu/static-1.99/js/sprocket_orange.svg"},function(t,e){t.exports="//static.hsappstatic.net/HubspotToolsMenu/static-1.99/css/toolsmenu.css"},,,,,,function(t,e,n){"use strict";n.r(e);n(0);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1;r.configurable=!0;"value"in r&&(r.writable=!0);Object.defineProperty(t,r.key,r)}}function i(t,e,n){e&&o(t.prototype,e);n&&o(t,n);return t}var s=n(2),c=n.n(s),u=n(3),a=n.n(u),f=n(4),l=n.n(f),h=function(){function t(e){r(this,t);this.baseUrl=this.getHsBaseUrl(e.app_hs_base_url);this.cpBaseUrl=this.getHsBaseUrl(e.cp_hs_base_url);this.contentId=e.dynamic_page_id&&"0"!==e.dynamic_page_id&&"null"!==e.dynamic_page_id?e.dynamic_page_id:e.page_id;this.categoryId=e.category_id;this.contentGroupId=e.content_group_id;this.portalId=e.portal_id;this.cmsEnvironment=this.getCmsEnvironmentFromCookie();this.permissionObj={}}i(t,[{key:"getHsBaseUrl",value:function(t){return window.localStorage.getItem("HS_LOCAL_TESTING")?t.replace(/[^/](\w+?)(?=\.)/,"local"):t}},{key:"createElementFromHTML",value:function(t){var e=document.createElement("div");e.innerHTML=t.trim();return e.firstChild}},{key:"jsonp",value:function(t,e){window.jsonpHandler=function(t){e(t)};var n=t+(-1!==t.indexOf("?")?"&":"?")+"callback=jsonpHandler",r=document.createElement("script");r.type="text/javascript";r.referrerPolicy="no-referrer-when-downgrade";r.async=!0;r.src=n;document.getElementsByTagName("head")[0].appendChild(r)}},{key:"httpGet",value:function(t,e){var n=new XMLHttpRequest;n.withCredentials=!0;n.onreadystatechange=function(){4===this.readyState&&200===this.status&&e(JSON.parse(this.responseText))};n.open("GET",t,!0);n.send()}},{key:"showToolsMenuIfAuthor",value:function(){var t=this;if(window.location===window.parent.location&&-1===window.location.pathname.indexOf("_hcms/preview/template")){var e,n=this.contentId,r=!1;if(this.contentId&&this.contentGroupId)e=6===this.categoryId?"knowledge-articles":"blog-posts";else if(this.contentGroupId){e=6===this.categoryId?"knowledge-bases":"blogs";n=this.contentGroupId}else if(window.location.pathname.endsWith("_hcms/mem/login"))e="content-membership";else{r=!0;e="landing-pages"}var o=this.baseUrl+"/content-tools-menu/api/v1/tools-menu/has-permission?portalId="+this.portalId;this.jsonp(o,function(o){if(o.has_permission){var i=t.cpBaseUrl+"/content-tools-menu/api/v1/tools-menu/permissions?portalId="+t.portalId;t.httpGet(i,function(o){t.permissionObj=o;"content-membership"===e?t.getContentMembershipCookie(e,t.portalId):t.getAppLinks(e,n,t.portalId);r&&t.setupDeferredPrefetchingOfEditorAssets(e)})}})}}},{key:"getContentMembershipCookie",value:function(t,e){var n=this;this.jsonp(this.baseUrl+"/content-tools-menu/api/v1/content/validate-hubspot-user?redirect_url="+window.location.href+"&portalId="+e,function(t){if(t&&t.verified){var e=n.getUrlParameter("redirect_url");window.location.href=""===e?window.location.origin:e}})}},{key:"getAppLinks",value:function(t,e,n){var r=this;this.jsonp(this.baseUrl+"/content-tools-menu/api/v1/tools-menu/"+t+"/"+e+"/actions?portalId="+n,function(t){t.actions&&t.strings&&r.showAppLinks(t.actions,t.strings)})}},{key:"showAppLinks",value:function(t,e){var n=[].slice.call(document.querySelectorAll("[data-menu-id]")).filter(function(t){return!!t.getAttribute("data-menu-id").trim()}),r=n.length>0?n[0]:null;if(null!==r){var o=r.getAttribute("data-menu-id").trim();t.push([e.EDIT_NAVIGATION_MENU,this.baseUrl+"/menus/"+this.portalId+"/edit/"+o])}var i="";t.forEach(function(t){i+="        <li><a target='_blank' href='"+t[1]+"'>\n        "+t[0]+"\n        </a></li>      "});this.permissionObj.permissions.includes("CAN_PREVIEW_ENVIRONMENTS")&&(i+='        <li><a class="hs-environment-buffer-on">'+e.VIEW_BUFFER+'</a></li>        <li><a class="hs-environment-buffer-off">'+e.VIEW_HARD+"</a></li>      ");var s='<link rel="stylesheet" href="'+l.a+'" />',u='\n      <div role="button" class="hs-tools-menu hs-collapsed" aria-expanded="false">\n        <img class="hs-sprocket" alt="'+e.MENU_ICON_ALT_TEXT+'" src="'+c.a+'" />\n        <div class="hs-dropdown">\n          <div class="hs-title">'+e.MENU_TITLE+"</div>\n          <ul>\n            "+i+'\n            <li>\n              <a role="button" href="#hide-menu" class="hs-menu-hider">'+e.HIDE_THIS_MENU+"</a>\n            </li>\n          </ul>\n        </div>\n      </div>\n    ";document.body.appendChild(this.createElementFromHTML(s));document.body.appendChild(this.createElementFromHTML(u));this.registerEvents()}},{key:"registerEvents",value:function(){var t=this,e=document.querySelector(".hs-tools-menu");this.registerDropdown(e);e.querySelector(".hs-menu-hider").addEventListener("click",function(t){t.preventDefault();t.stopPropagation();e.style.display="none"});var n=e.querySelector(".hs-environment-buffer-on");n&&(this.cmsEnvironment.buffer?n.parentElement.removeChild(n):n.addEventListener("click",function(e){e.preventDefault();e.stopPropagation();t.requestAndSetEnvironmentCookie(t.portalId,!0)}));var r=e.querySelector(".hs-environment-buffer-off");r&&(this.cmsEnvironment.buffer?r.addEventListener("click",function(e){e.preventDefault();e.stopPropagation();t.requestAndSetEnvironmentCookie(t.portalId,!1)}):r.parentElement.removeChild(r))}},{key:"requestAndSetEnvironmentCookie",value:function(t,e){var n=this.cpBaseUrl+"/content-tools-menu/api/v1/tools-menu/environment-cookie?portalId="+t+"&environmentId=1&buffer="+e;this.httpGet(n,function(t){document.cookie="hs_cms_environment="+btoa(JSON.stringify(t));window.location.reload()})}},{key:"registerDropdown",value:function(t){var e=Array.from(t.children).find(function(t){return t.classList.contains("hs-sprocket")}),n=function(){t.classList.add("hs-collapsed");t.setAttribute("aria-expanded",!1);e.setAttribute("src",c.a)},r=function(){t.classList.remove("hs-collapsed");t.setAttribute("aria-expanded",!0);e.setAttribute("src",a.a)},o=function t(){n();document.body.removeEventListener("click",t)},i=function(e){if(!e.target.getAttribute("href")){e.preventDefault();e.stopPropagation();if(t.classList.contains("hs-collapsed")){r();document.body.addEventListener("click",o)}else{n();document.body.removeEventListener("click",o)}}};t.addEventListener("click",i,!1)}},{key:"getUrlParameter",value:function(t){t=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var e=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(location.search);return null===e?"":decodeURIComponent(e[1].replace(/\+/g," "))}},{key:"getCmsEnvironmentFromCookie",value:function(){var t=this.getCookie("hs_cms_environment");return t?JSON.parse(atob(t)):{portalId:0,env:1,buffer:!1,createdAt:0}}},{key:"getCookie",value:function(t){for(var e=t+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var o=n[r];" "===o.charAt(0);)o=o.substring(1);if(0===o.indexOf(e))return o.substring(e.length,o.length)}return""}},{key:"setupDeferredPrefetchingOfEditorAssets",value:function(t){window.addEventListener("load",function(){setTimeout(function(){var e;if("landing-pages"===t){e="content/editor/prefetcher.js";var n=window.location.host.indexOf("hubspotqa")>-1?"app.hubspotqa.com":"app.hubspot.com",r=document.createElement("script");r.src="https://"+n+"/"+e;document.head.appendChild(r)}},2e3)})}}]);return t}(),p=function(){function t(){r(this,t);this.getShowAllFiltersLinkEventHandler=function(t){return function(e){var n=t.previousElementSibling.children;n&&[].slice.call(n,0).forEach(function(t){t.style.display="block"});t.style.display="none";e.preventDefault();e.stopPropagation()}}}i(t,[{key:"setup",value:function(){var t=this;[].slice.call(document.querySelectorAll(".filter-expand-link"),0).forEach(function(e){e.addEventListener("click",t.getShowAllFiltersLinkEventHandler(e))})}}]);return t}();document.addEventListener("DOMContentLoaded",function t(){new h(window.hsVars).showToolsMenuIfAuthor();(new p).setup();document.removeEventListener("DOMContentLoaded",t)},!1);e.default=h}]);
  2. // https://blog.disqus.com/hs/hsstatic/HubspotToolsMenu/static-1.99/js/index.js
  3.   //# sourceMappingURL=https://blog.disqus.com/hs/hsstatic/HubspotToolsMenu/static-1.99/js/index.js.map

Replies to Re: index.js rss

Title Name Language When
Re: disqus.com javascript 2 Months ago.

Reply to "Re: index.js"

Here you can reply to the paste above