Você está na página 1de 5

!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!

1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var
n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,
{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?
function(){return t["default"]}:function(){return t};return
e.d(n,"a",n),n},e.o=function(t,e){return
Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s="./shared/qevents/main.js")
}({"./shared/Class.js":function(t,e){function n(t,e){function n(){if(i||
(t.call(u),r(c,e,s),i=!0,e=null),this!==u){var
n=this.__init__;n&&n.apply(this,arguments)}}var i,s=a.prototype=t.prototype,c=new
a;return n.prototype=c,n.extend=o,c.constructor=n,n}function r(t,e,n){for(var r in
e)e.hasOwnProperty(r)&&(t[r]=n?i(r,e,n):e[r])}function i(t,e,n){var
r=e[t],i=n[t];return"function"==typeof r&&"function"==typeof i&&r!==i&&s.test(r)?
function(){var e=this._super;this._super=n[t];try{return
r.apply(this,arguments)}finally{this._super=e}}:r}function o(t){return
n(this,t)}var s=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/,a=function()
{},u={};e.Class=o.call(function(){},
{})},"./shared/polyfills/array.js":function(t,e){var n=function(t,e,n)
{"function"==typeof Object.defineProperty?Object.defineProperty(t,e,{configurable:!
0,value:n,writable:!0,enumerable:!1}):t.prototype[e]=n};if(!Array.prototype.every)
{var r=function(t,e){"use strict";var n,r;if(null===this)throw new TypeError("this
is null or not defined");var i=Object(this),o=i.length>>>0;if("function"!=typeof
t)throw new TypeError;for(arguments.length>1&&(n=e),r=0;r<o;){var s;if(r in i)
{s=i[r];if(!t.call(n,s,r,i))return!1}r++}return!0};n(Array,"every",r)}if(!
Array.prototype.some){var i=function(t){"use strict";if(null===this)throw new
TypeError("Array.prototype.some called on null or undefined");if("function"!=typeof
t)throw new TypeError;for(var e=Object(this),n=e.length>>>0,r=arguments.length>=2?
arguments[1]:void 0,i=0;i<n;i++)if(i in e&&t.call(r,e[i],i,e))return!0;return!
1};n(Array,"some",i)}if(!Array.prototype.indexOf){var o=function(t,e){var
n;if(null===this)throw new TypeError('"this" is null or not defined');var
r=Object(this),i=r.length>>>0;if(0===i)return-1;var o=+e||
0;if(Math.abs(o)===Infinity&&(o=0),o>=i)return-1;for(n=Math.max(o>=0?o:i-
Math.abs(o),0);n<i;){if(n in r&&r[n]===t)return n;n++}return-
1};n(Array,"indexOf",o)}if(!Array.prototype.forEach){var s=function(t,e){var
n,r;if(null===this)throw new TypeError(" this is null or not defined");var
i=Object(this),o=i.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is
not a function");for(arguments.length>1&&(n=e),r=0;r<o;){var s;r in
i&&(s=i[r],t.call(n,s,r,i)),r++}};n(Array,"forEach",s)}if(!Array.prototype.map){var
a=function(t,e){var n,r,i;if(null===this)throw new TypeError(" this is null or not
defined");var o=Object(this),s=o.length>>>0;if("function"!=typeof t)throw new
TypeError(t+" is not a function");for(arguments.length>1&&(n=e),r=new
Array(s),i=0;i<s;){var a,u;i in o&&(a=o[i],u=t.call(n,a,i,o),r[i]=u),i++}return
r};n(Array,"map",a)}if(!Array.prototype.filter){var u=function(t){"use
strict";if(void 0===this||null===this)throw new TypeError;var
e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError;for(var
r=[],i=arguments.length>=2?arguments[1]:void 0,o=0;o<n;o++)if(o in e){var
s=e[o];t.call(i,s,o,e)&&r.push(s)}return r};n(Array,"filter",u)}if(!
Array.prototype.reduce){var c=function(t){"use strict";if(null===this)throw new
TypeError("Array.prototype.reduce called on null or undefined");if("function"!
=typeof t)throw new TypeError(t+" is not a function");var
e,n=Object(this),r=n.length>>>0,i=0;if(2==arguments.length)e=arguments[1];else{for(
;i<r&&!(i in n);)i++;if(i>=r)throw new TypeError("Reduce of empty array with no
initial value");e=n[i++]}for(;i<r;i++)i in n&&(e=t(e,n[i],i,n));return
e};n(Array,"reduce",c)}if(!Array.prototype.lastIndexOf){var l=function(t){"use
strict";if(void 0===this||null===this)throw new TypeError;var
e,n,r=Object(this),i=r.length>>>0;if(0===i)return-1;for(e=i-
1,arguments.length>1&&(e=Number(arguments[1]),e!=e?e=0:0!==e&&e!=1/0&&e!=-
1/0&&(e=(e>0||-1)*Math.floor(Math.abs(e)))),n=e>=0?Math.min(e,i-1):i-
Math.abs(e);n>=0;n--)if(n in r&&r[n]===t)return n;return-
1};n(Array,"lastIndexOf",l)}if(!Array.prototype.includes){var h=function(t){"use
strict";if(null==this)throw new TypeError("Array.prototype.includes called on null
or undefined");var e=Object(this),n=parseInt(e.length,10)||0;if(0===n)return!1;var
r,i=parseInt(arguments[1],10)||0;i>=0?r=i:(r=n+i)<0&&(r=0);for(var o;r<n;)
{if(o=e[r],t===o||t!==t&&o!==o)return!0;r++}return!
1};n(Array,"includes",h)}},"./shared/polyfills/classList.js":function(t,e){!
function(){function t(t){this.el=t;for(var e=t.className.replace(/^\s+|\s+
$/g,"").split(/\s+/),n=0;n<e.length;n++)r.call(this,e[n])}function e(t,e,n)
{Object.defineProperty?Object.defineProperty(t,e,
{get:n}):t.__defineGetter__(e,n)}if(!("undefined"==typeof
window.Element||"classList"in document.documentElement)){var
n=Array.prototype,r=n.push,i=n.splice,o=n.join;t.prototype={add:function(t)
{this.contains(t)||
(r.call(this,t),this.el.className=this.toString())},contains:function(t){return-1!
=this.el.className.indexOf(t)},item:function(t){return this[t]||
null},remove:function(t){if(this.contains(t)){for(var e=0;e<this.length&&this[e]!
=t;e++);i.call(this,e,1),this.el.className=this.toString()}},toString:function()
{return o.call(this," ")},toggle:function(t){return this.contains(t)?
this.remove(t):this.add(t),this.contains(t)}},window.DOMTokenList=t,e(Element.proto
type,"classList",function(){return new t(this)})}}
()},"./shared/polyfills/date.js":function(t,e){Date.now||(Date.now=function()
{return(new Date).getTime()})},"./shared/polyfills/function.js":function(t,e)
{Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!
=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be
bound is not callable");var
e=Array.prototype.slice.call(arguments,1),n=this,r=function(){},i=function(){return
n.apply(this instanceof r?
this:t,e.concat(Array.prototype.slice.call(arguments)))};return
this.prototype&&(r.prototype=this.prototype),i.prototype=new
r,i})},"./shared/polyfills/intersection-observer.js":function(t,e){!function(t,e)
{"use strict";function n(t)
{this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingCl
ientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||
l(),this.isIntersecting=!!t.intersectionRect;var
e=this.boundingClientRect,n=e.width*e.height,r=this.intersectionRect,i=r.width*r.he
ight;this.intersectionRatio=n?i/n:0}function r(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=o(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(" ")}function i(){return
t.performance&&performance.now&&performance.now()}function o(t,e){var n=null;return
function(){n||(n=setTimeout(function(){t(),n=null},e))}}function s(t,e,n,r)
{"function"==typeof t.addEventListener?t.addEventListener(e,n,r||!
1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function a(t,e,n,r)
{"function"==typeof t.removeEventListener?t.removeEventListener(e,n,r||!
1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function u(t,e){var
n=Math.max(t.top,e.top),r=Math.min(t.bottom,e.bottom),i=Math.max(t.left,e.left),o=M
ath.min(t.right,e.right),s=o-i,a=r-n;return
s>=0&&a>=0&&{top:n,bottom:r,left:i,right:o,width:s,height:a}}function c(t){var
e=t.getBoundingClientRect();if(e)return 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}),e}function l()
{return{top:0,bottom:0,left:0,right:0,width:0,height:0}}if(!
("IntersectionObserver"in t&&"IntersectionObserverEntry"in t&&"intersectionRatio"in
t.IntersectionObserverEntry.prototype)){var
h=e.documentElement,f=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL
=null,r.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:n
ull}),this._monitorIntersections()}},r.prototype.unobserve=function(t)
{this._observationTargets=this._observationTargets.filter(function(e){return
e.element!=t}),this._observationTargets.length||
(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect
=function()
{this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstanc
e()},r.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return
this._queuedEntries=[],t},r.prototype._initThresholds=function(t){var e=t||
[0];return Array.isArray(e)||(e=[e]),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]})},r.prototype._parseRootMargin=function(t)
{var e=t||"0px",n=e.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]}});return n[1]=n[1]||
n[0],n[2]=n[2]||n[0],n[3]=n[3]||
n[1],n},r.prototype._monitorIntersections=function()
{this._monitoringIntersections||(this._monitoringIntersections=!
0,this._checkForIntersections(),this.POLL_INTERVAL?
this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL
):(s(t,"resize",this._checkForIntersections,!
0),s(e,"scroll",this._checkForIntersections,!0),"MutationObserver"in
t&&(this._domObserver=new
MutationObserver(this._checkForIntersections),this._domObserver.observe(e,
{attributes:!0,childList:!0,characterData:!0,subtree:!
0}))))},r.prototype._unmonitorIntersections=function()
{this._monitoringIntersections&&(this._monitoringIntersections=!
1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,a(t,"resize
",this._checkForIntersections,!0),a(e,"scroll",this._checkForIntersections,!
0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},r.p
rototype._checkForIntersections=function(){var t=this._rootIsInDom(),e=t?
this._getRootRect():l();this._observationTargets.forEach(function(r){var
o=r.element,s=c(o),a=this._rootContainsTarget(o),u=r.entry,l=t&&a&&this._computeTar
getAndRootIntersection(o,e),h=r.entry=new
n({time:i(),target:o,boundingClientRect:s,rootBounds:e,intersectionRect:l});t&&a?
this._hasCrossedThreshold(u,h)&&this._queuedEntries.push(h):u&&u.isIntersecting&&th
is._queuedEntries.push(h)},this),this._queuedEntries.length&&this._callback(this.ta
keRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(e,n)
{if("none"!=t.getComputedStyle(e).display){return
u(n,c(e))}},r.prototype._getRootRect=function(){var
t;if(this.root)t=c(this.root);else{var
n=e.documentElement,r=e.body;t={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(t)},r.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]};return
n.width=n.right-n.left,n.height=n.bottom-
n.top,n},r.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 i=0;i<this.thresholds.length;i++){var o=this.thresholds[i];if(o==n||
o==r||o<n!=o<r)return!0}},r.prototype._rootIsInDom=function(){return!this.root||
h.contains(this.root)},r.prototype._rootContainsTarget=function(t)
{return(this.root||h).contains(t)},r.prototype._registerInstance=function()
{f.indexOf(this)<0&&f.push(this)},r.prototype._unregisterInstance=function(){var
t=f.indexOf(this);-1!
=t&&f.splice(t,1)},t.IntersectionObserver=r,t.IntersectionObserverEntry=n}}
(window,document)},"./shared/polyfills/object.js":function(t,e){Object.keys||
(Object.keys=function(){"use strict";var t=Object.prototype.hasOwnProperty,e=!
{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","va
lueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],r=n.l
ength;return function(i){if("object"!=typeof i&&("function"!=typeof i||
null===i))throw new TypeError("Object.keys called on non-object");var
o,s,a=[];for(o in i)t.call(i,o)&&a.push(o);if(e)for(s=0;s<r;s+
+)t.call(i,n[s])&&a.push(n[s]);return a}}
())},"./shared/polyfills/requestAnimationFrame.js":function(t,e){!function()
{for(var t=0,e=["webkit","moz"],n=0;n<e.length&&!window.requestAnimationFrame;+
+n)window.requestAnimationFrame=window[e[n]
+"RequestAnimationFrame"],window.cancelAnimationFrame=window[e[n]
+"CancelAnimationFrame"]||window[e[n]
+"CancelRequestAnimationFrame"];window.requestAnimationFrame||
(window.requestAnimationFrame=function(e,n){var r=(new
Date).getTime(),i=Math.max(0,16-(r-t)),o=window.setTimeout(function()
{e(r+i)},i);return t=r+i,o}),window.cancelAnimationFrame||
(window.cancelAnimationFrame=function(t){clearTimeout(t)})}
()},"./shared/polyfills/string.js":function(t,e){String.prototype.endsWith||
(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!=typeof
e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var
r=n.indexOf(t,e);return-1!==r&&r===e}),String.prototype.startsWith||
(String.prototype.startsWith=function(t,e){return e=e||
0,this.substr(e,t.length)===t}),String.prototype.trim||
(String.prototype.trim=function(){return this.replace(/^[\s\uFEFF\xA0]+|
[\s\uFEFF\xA0]+$/g,"")}),String.prototype.includes||
(String.prototype.includes=function(t,e){"use strict";return"number"!=typeof
e&&(e=0),!(e+t.length>this.length)&&-1!
==this.indexOf(t,e)})},"./shared/qevents/main.js":function(t,e,n)
{n("./shared/polyfills/requestAnimationFrame.js"),n("./shared/polyfills/string.js")
,n("./shared/polyfills/classList.js"),n("./shared/polyfills/array.js"),n("./shared/
polyfills/function.js"),n("./shared/polyfills/object.js"),n("./shared/polyfills/dat
e.js"),n("./shared/polyfills/intersection-
observer.js"),n("./shared/qevents/pixel.js").init(),n("./shared/qevents/queue.js").
flush()},"./shared/qevents/pixel.js":function(t,e,n){function r(){try{var
t=o("ia_share_url");if(null!==t)return t}catch(t){}try{return ia_document!
==undefined&&ia_document.shareURL}catch(t){return}}function i(t){var e,n=[];for(var
r in t)e=t[r],s(r)&&a(e)&&n.push(r+"="+encodeURIComponent(e));return
n.join("&")}function o(t){var e=null,n=[];return
window.location.search.substr(1).split("&").forEach(function(r)
{n=r.split("="),n[0]===t&&(e=decodeURIComponent(n[1]))}),e}function s(t)
{return"string"==typeof t}function a(t){return"string"==typeof t||!
isNaN(Number(t))}function u(){function t(t,e){var
n=window.history[t];window.history[t]=function(){var
t=n.apply(this,arguments);return
e.apply(this,arguments),t}}window.history.pushState&&window.history.replaceState&&(
t("pushState",c),t("replaceState",c),window.addEventListener("popstate",c,!
1))}function c(){!0!
==window.qp.disablePushState&&e.quoraPixelHelper("track","ViewContent")}var
l,h=n("./shared/Class.js").Class,f=h.extend({__init__:function(t){if("string"!
=typeof t)throw new Error("Quora Pixel Error: The second argument passed to qp is
invalid.");this.uuid=t,this.lastViewContentUrl=""},track:function(t,n){if("string"!
=typeof t)throw new Error("Quora Pixel Error: The second argument passed to qp is
invalid.");var
r,i,o=this._getIsFBIAUrl(),s=this._getValueFromPassback(n),a=this._getUrl();this._s
houldTrack(t,a)&&(r=this._getMetadata(t,a,o,s),i=this._getPixelUrl(r),e.firePixel(i
))},_shouldTrack:function(t,e){return("ViewContent"!=t||e!
=this.lastViewContentUrl)&&("ViewContent"==t&&(this.lastViewContentUrl=e),!
0)},_getMetadata:function(t,e,n,r){var i={j:1,u:e,tag:t,ts:(new
Date).getTime()};return n&&(i.fbia=1),r!
==undefined&&(i.v=r),i},_getValueFromPassback:function(t){var e;if(t!
==undefined&&null!==t&&t.value!==undefined&&"number"!=typeof(e=t.value)&&"string"!
=typeof e)throw new Error("Quora Pixel Error: The third argument passed to qp is
invalid.");return e},_getUrl:function(){var t=r();return t||
(t=window.location.href),t},_getIsFBIAUrl:function(){return
Boolean(r())},_getPixelUrl:function(t){return this._getBasePixelUrl()
+this.uuid+"/pixel?"+i(t)},_getBasePixelUrl:function()
{return"https://q.quora.com/_/ad/"}}),p=h.extend({__init__:function()
{this.uuidToPixel={}},installPixel:function(t){if(this.uuidToPixel[t]===undefined)
{var e=new f(t);this.uuidToPixel[t]=e}},track:function(t,e){var
n=Object.keys(this.uuidToPixel);if(!n.length)throw new Error("Quora Pixel Error:
Base pixel code is not installed properly.");for(var r=0;r<n.length;r++){var
i=n[r];this.uuidToPixel[i].track(t,e)}}});e.quoraPixelHelper=function(t,e,n)
{if("string"!=typeof arguments[0])throw new Error("Quora Pixel Error: The first
argument passed to qp is invalid.");"init"==t?
l.installPixel(e):"track"==t&&l.track(e,n)},e.firePixel=function(t){(new
Image).src=t},e.init=function(){if(!window.qp)throw new Error("Quora Pixel Error:
Base pixel code is not installed
properly.");window.qp.qp=e.quoraPixelHelper,u(),l=new
p},e.initializeStates=function(){l=new
p}},"./shared/qevents/queue.js":function(t,e){e.flush=function(){var
t,e=window.qp;for(e.queue||
(e.queue=[]);e.queue.length;)t=e.queue.shift(),e.apply(e,t)}}});

Você também pode gostar