Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (self.AMP=self.AMP||[]).push({n:"amp-iframe",v:"1528391646530",f:(function(AMP){var l;function aa(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a;for(var d in b)if(Object.defineProperties){var e=Object.getOwnPropertyDescriptor(b,d);e&&Object.defineProperty(a,d,e)}else a[d]=b[d]}function q(a,b){b=void 0===b?"":b;try{return decodeURIComponent(a)}catch(c){return b}};var ba=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;self.log=self.log||{user:null,dev:null,userForEmbed:null};var t=self.log;function u(){if(!t.user)throw Error("failed to call initLogConstructor");return t.user}function w(){if(t.dev)return t.dev;throw Error("failed to call initLogConstructor");};function x(){var a,b=Object.create(null);a&&Object.assign(b,a);return b}function y(a){return a||{}};function z(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};var ca=(self.AMP_CONFIG||{}).thirdPartyFrameHost||"ampproject.net";function A(a){this.aa=a;this.K=this.U=0;this.C=Object.create(null)}A.prototype.has=function(a){return!!this.C[a]};A.prototype.get=function(a){var b=this.C[a];if(b)return b.access=++this.K,b.payload};A.prototype.put=function(a,b){this.has(a)||this.U++;this.C[a]={payload:b,access:this.K};if(!(this.U<=this.aa)){w().warn("lru-cache","Trimming LRU cache");a=this.C;var c=this.K+1,d,e;for(e in a){var f=a[e].access;f<c&&(c=f,d=e)}void 0!==d&&(delete a[d],this.U--)}};y({c:!0,v:!0,a:!0,ad:!0});var C,D;function da(a){var b="iframe-messaging",c;if(a.__AMP__EXPERIMENT_TOGGLES)c=a.__AMP__EXPERIMENT_TOGGLES;else{a.__AMP__EXPERIMENT_TOGGLES=Object.create(null);c=a.__AMP__EXPERIMENT_TOGGLES;if(a.AMP_CONFIG)for(var d in a.AMP_CONFIG){var e=a.AMP_CONFIG[d];"number"===typeof e&&0<=e&&1>=e&&(c[d]=Math.random()<e)}if(a.AMP_CONFIG&&Array.isArray(a.AMP_CONFIG["allow-doc-opt-in"])&&0<a.AMP_CONFIG["allow-doc-opt-in"].length&&(d=a.AMP_CONFIG["allow-doc-opt-in"],e=a.document.head.querySelector('meta[name="amp-experiments-opt-in"]')))for(var e=
- e.getAttribute("content").split(","),f=0;f<e.length;f++)-1!=d.indexOf(e[f])&&(c[e[f]]=!0);Object.assign(c,ea(a));if(a.AMP_CONFIG&&Array.isArray(a.AMP_CONFIG["allow-url-opt-in"])&&0<a.AMP_CONFIG["allow-url-opt-in"].length){d=a.AMP_CONFIG["allow-url-opt-in"];e=a.location.originalHash||a.location.hash;a=Object.create(null);if(e)for(var g;g=ba.exec(e);)f=q(g[1],g[1]),g=g[2]?q(g[2],g[2]):"",a[f]=g;for(e=0;e<d.length;e++)f=a["e-"+d[e]],"1"==f&&(c[d[e]]=!0),"0"==f&&(c[d[e]]=!1)}}var h=c;return!!h[b]}
- function ea(a){a:{var b;try{b=a.document.cookie}catch(h){b=""}if(a=b)for(a=a.split(";"),b=0;b<a.length;b++){var c=a[b].trim(),d=c.indexOf("="),e;if(e=-1!=d)e=c.substring(0,d).trim(),e="AMP_EXP"==q(e,void 0);if(e){a=c.substring(d+1).trim();a=q(a,a);break a}}a=null}var f=a,g=f?f.split(/\s*,\s*/g):[];a=Object.create(null);for(b=0;b<g.length;b++)0!=g[b].length&&("-"==g[b][0]?a[g[b].substr(1)]=!1:a[g[b]]=!0);return a};function E(a,b){if(a.nodeType){var c=(a.ownerDocument||a).defaultView;if(c=c!=(c.__AMP_TOP||c)&&F(c,b)?G(c,b):null)return c}c=H(a);c=H(c);c=c.isSingleDoc()?c.win:c;return G(c,b)}function I(a,b){a=a.__AMP_TOP||a;return G(a,b)}function H(a){return a.nodeType?I((a.ownerDocument||a).defaultView,"ampdoc").getAmpDoc(a):a}function G(a,b){F(a,b);var c=a.services;c||(c=a.services={});var d=c;a=d[b];a.obj||(a.obj=new a.ctor(a.context),a.ctor=null,a.context=null,a.resolve&&a.resolve(a.obj));return a.obj}
- function F(a,b){a=a.services&&a.services[b];return!(!a||!a.ctor&&!a.obj)};/*
- https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
- function fa(a,b){for(var c,d=a;d&&d!==c;d=d.parentElement)if(b(d))return d;return null}function ga(a){return a.closest?a.closest(".i-amphtml-overlay"):fa(a,function(a){var b=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector;return b?b.call(a,".i-amphtml-overlay"):!1})};function ha(a,b){try{return JSON.parse(a)}catch(c){b&&b(c)}};var J,K="Webkit webkit Moz moz ms O o".split(" ");function L(a,b){var c,d;d=a.style;J||(J=x());var e=J.zIndex;if(!e){e="zIndex";if(void 0===d.zIndex){var f;b:{for(f=0;f<K.length;f++){var g=K[f]+"ZIndex";if(void 0!==d[g]){f=g;break b}}f=""}void 0!==d[f]&&(e=f)}J.zIndex=e}d=e;d&&(a.style[d]=c?b+c:b)};var ia={"AMP-FX-FLYING-CARPET":!0,"AMP-LIGHTBOX":!0,"AMP-STICKY-AD":!0,"AMP-LIGHTBOX-GALLERY":!0};function M(a,b,c,d){return{left:a,top:b,width:c,height:d,bottom:b+d,right:a+c,x:a,y:b}}function ja(a){for(var b=-Infinity,c=Infinity,d=-Infinity,e=Infinity,f=0;f<arguments.length;f++){var g=arguments[f];if(g&&(b=Math.max(b,g.left),c=Math.min(c,g.left+g.width),d=Math.max(d,g.top),e=Math.min(e,g.top+g.height),c<b||e<d))return null}return Infinity==c?null:M(b,d,c-b,e-d)}function N(a,b,c){return 0==b&&0==c||0==a.width&&0==a.height?a:M(a.left+b,a.top+c,a.width,a.height)};function ka(a){if(!O(a))return null;var b=a.indexOf("{");try{return JSON.parse(a.substr(b))}catch(c){return w().error("MESSAGING","Failed to parse message: "+a,c),null}}function O(a){return"string"==typeof a&&0==a.indexOf("amp-")&&-1!=a.indexOf("{")};function la(a,b){for(var c=[],d=0,e=0;e<a.length;e++){var f=a[e];b(f,e,a)?(d<e&&(a[d]=f),d++):c.push(f)}d<a.length&&(a.length=d)};function P(a,b,c){var d=a.listeningFors;!d&&c&&(d=a.listeningFors=Object.create(null));a=d||null;if(!a)return a;var e=a[b];!e&&c&&(e=a[b]=[]);return e||null}
- function ma(a,b,c){var d=b.src;C||(C=self.document.createElement("a"),D=self.UrlCache||(self.UrlCache=new A(100)));var e=D,f=C;if(e&&e.has(d))d=e.get(d);else{f.href=d;f.protocol||(f.href=f.href);var g={href:f.href,protocol:f.protocol,host:f.host,hostname:f.hostname,port:"0"==f.port?"":f.port,pathname:f.pathname,search:f.search,hash:f.hash,origin:null};"/"!==g.pathname[0]&&(g.pathname="/"+g.pathname);if("http:"==g.protocol&&80==g.port||"https:"==g.protocol&&443==g.port)g.port="",g.host=g.hostname;
- g.origin=f.origin&&"null"!=f.origin?f.origin:"data:"!=g.protocol&&g.host?g.protocol+"//"+g.host:g.href;e&&e.put(d,g);d=g}d=d.origin;e=c?b.getAttribute("data-amp-3p-sentinel"):"amp";a=P(a,e,!0);for(var h,e=0;e<a.length;e++){var n=a[e];if(n.frame===b){h=n;break}}h||(h={frame:b,origin:d,events:Object.create(null)},a.push(h));return h.events}
- function na(a){for(var b=y({sentinel:"unlisten"}),c=a.length-1;0<=c;c--){var d=a[c];if(!d.frame.contentWindow){a.splice(c,1);var e=d.events,f;for(f in e)e[f].splice(0,Infinity).forEach(function(a){a(b)})}}}
- function oa(a){if(!a.listeningFors){var b=function(b){if(b.data){var c=pa(b.data);if(c&&c.sentinel){var e;e=c.sentinel;var f=b.origin,g=b.source,h=P(a,e);if(h){for(var n,k=0;k<h.length;k++){var m=h[k],r=m.frame.contentWindow;if(r)if("amp"===e){if(m.origin===f&&r==g){n=m;break}}else{var p;if(!(p=g==r))b:{for(p=g;p&&p!=p.parent;p=p.parent)if(p==r){p=!0;break b}p=!1}if(p){n=m;break}}else setTimeout(na,0,h)}e=n?n.events:null}else e=h;var B=e;if(B){var v=B[c.type];if(v)for(v=v.slice(),e=0;e<v.length;e++)(0,v[e])(c,
- b.source,b.origin)}}}};a.addEventListener("message",b)}}function Q(a,b,c,d,e){function f(b,d,g){if(e||d==a.contentWindow)"unlisten"==b.sentinel?n():c(b,d,g)}var g=a.ownerDocument.defaultView;oa(g);d=ma(g,a,d);var h=d[b]||(d[b]=[]),n;h.push(f);return n=function(){if(f){var a=h.indexOf(f);-1<a&&h.splice(a,1);c=h=f=null}}}
- function qa(a,b,c,d,e){if(a.contentWindow)for(d.type=c,d.sentinel=e?a.getAttribute("data-amp-3p-sentinel"):"amp",a=d,e&&(a="amp-"+JSON.stringify(d)),d=0;d<b.length;d++)e=b[d],e.win.postMessage(a,e.origin)}function pa(a){"string"==typeof a&&(a="{"==a.charAt(0)?ha(a,function(a){w().warn("IFRAME-HELPER","Postmessage could not be parsed. Is it in a valid JSON format?",a)})||null:O(a)?ka(a):null);return a}
- function R(a,b,c,d){var e=this;this.h=a;this.N=c;this.w=[];this.ca=Q(this.h,b,function(a,b,c){e.w.some(function(a){return a.win==b})||e.w.push({win:b,origin:c});d(a,b,c)},this.N,this.N)}R.prototype.send=function(a,b){la(this.w,function(a){return!!a.win.parent});qa(this.h,this.w,a,b,this.N)};R.prototype.destroy=function(){this.ca();this.w.length=0};var ra=[0,.05,.1,.15,.2,.25,.3,.35,.4,.45,.5,.55,.6,.65,.7,.75,.8,.85,.9,.95,1],sa=Date.now();function S(a,b,c){var d=this;this.L=a;this.A=null;this.R=this.T=!1;this.I=null;this.J=a.getViewport();this.V=new R(b,"send-intersections",c||!1,function(){ta(d)});this.A=new T(function(a){for(var b=0;b<a.length;b++)delete a[b].target;d.V.send("intersection",y({changes:a}))},{threshold:ra});this.A.tick(this.J.getRect());this.fire=function(){d.T&&d.R&&d.A.tick(d.J.getRect())}}
- function ta(a){a.T=!0;a.A.observe(a.L.element);a.L.getVsync().measure(function(){a.R=a.L.isInViewport();a.fire()});var b=a.J.onScroll(a.fire),c=a.J.onChanged(a.fire);a.I=function(){b();c()}}S.prototype.onViewportCallback=function(a){this.R=a};S.prototype.destroy=function(){this.T=!1;this.A=null;this.I&&(this.I(),this.I=null);this.V.destroy();this.V=null};
- function T(a,b){this.X=a;var c=b&&b.threshold,c=c?Array.isArray(c)?c:[c]:[0];for(a=0;a<c.length;a++){var d=c[a];"number"===typeof d&&isFinite(d)}this.ba=c.sort();this.S=null;this.$=void 0;this.j=[]}T.prototype.disconnect=function(){this.j.length=0};
- T.prototype.observe=function(a){for(var b=0;b<this.j.length;b++)if(this.j[b].element===a){w().warn("INTERSECTION-OBSERVER","should observe same element once");return}var c={element:a,currentThresholdSlot:0};this.S&&(a=U(this,c,this.S,this.$))&&this.X([a]);this.j.push(c)};T.prototype.unobserve=function(a){for(var b=0;b<this.j.length;b++)if(this.j[b].element===a){this.j.splice(b,1);return}w().warn("INTERSECTION-OBSERVER","unobserve non-observed element")};
- T.prototype.tick=function(a,b){b&&(a=N(a,-b.left,-b.top),b=N(b,-b.left,-b.top));this.S=a;this.$=b;for(var c=[],d=0;d<this.j.length;d++){var e=U(this,this.j[d],a,b);e&&c.push(e)}c.length&&this.X(c)};
- function U(a,b,c,d){var e=b.element,f=null,g=e.getLayoutBox(),h=e.getOwner(),f=h&&h.getLayoutBox(),n=ja(g,f,c,d)||M(0,0,0,0),h=n,k=g,h=h.width*h.height/(k.width*k.height);a=a.ba;var k=0,m=a.length;if(0==h)a=0;else{for(var r=(k+m)/2|0;k<r;)h<a[r]?m=r:k=r,r=(k+m)/2|0;a=m}var p=a;if(p==b.currentThresholdSlot)return null;b.currentThresholdSlot=p;c=d?null:c;d=n;a=g;if(k=c)d=N(d,-c.left,-c.top),a=N(a,-c.left,-c.top),k=N(k,-c.left,-c.top);var B={time:"undefined"!==typeof performance&&performance.now?performance.now():
- Date.now()-sa,rootBounds:k,boundingClientRect:a,intersectionRect:d,intersectionRatio:h,target:e};return B};function ua(a){var b=!1,c=null,d=a;return function(a){for(var e=[],g=0;g<arguments.length;++g)e[g-0]=arguments[g];b||(c=d.apply(self,e),b=!0,d=null);return c}};var va="allowfullscreen allowpaymentrequest allowtransparency allow frameborder referrerpolicy scrolling".split(" "),wa=0,V=0;function W(a){var b;b=AMP.BaseElement.call(this,a)||this;b.H=null;b.F=!1;b.O=!1;b.B=!1;b.Z=!1;b.M=null;b.h=null;b.G=!1;b.l=null;b.o="";b.iframeSrc=null;b.D=null;b.P=void 0;b.m=null;b.Y=ua(function(){return E(b.element,"url")});return b}aa(W,AMP.BaseElement);l=W.prototype;
- l.isLayoutSupported=function(a){return"fixed"==a||"fixed-height"==a||"responsive"==a||"fill"==a||"flex-item"==a||"fluid"==a||"intrinsic"==a};
- function X(a,b,c){var d=window.location.href;c=void 0===c?"":c;var e=a.element,f=a.Y();a=f.parse(b);var g=a.hostname,h=a.protocol,n=a.origin;u().assert(f.isSecureUrl(a)||"data:"==h,"Invalid <amp-iframe> src. Must start with https://. Found %s",e);var k=f.parse(d);u().assert(!Y(c,"allow-same-origin")||n!=k.origin&&"data:"!=h,"Origin of <amp-iframe> must not be equal to container %sif allow-same-origin is set. See https://github.com/ampproject/amphtml/blob/master/spec/amp-iframe-origin-policy.md for details.",e);
- u().assert(!(z(g,"."+ca)||z(g,".ampproject.org")),"amp-iframe does not allow embedding of frames from ampproject.*: %s",b);return b}
- function xa(a){var b=a.element.getLayoutBox(),c=Math.min(600,.75*a.getViewport().getSize().height);u().assert(b.top>=c,"<amp-iframe> elements must be positioned outside the first 75% of the viewport or 600px from the top (whichever is smaller): %s Current position %s. Min: %sPositioning rules don't apply for iframes that use `placeholder`.See https://github.com/ampproject/amphtml/blob/master/extensions/amp-iframe/amp-iframe.md#iframe-with-placeholder for details.",a.element,b.top,c)}
- function Y(a,b){var c=new RegExp("\\s"+b+"\\s","i");return c.test(" "+a+" ")}function ya(a,b){if(b){a=a.Y().parse(b);var c=a.hash;"data:"==a.protocol||c&&"#"!=c||(a=b.indexOf("#"),b=(-1==a?b:b.substring(0,a))+"#amp=1");return b}}
- l.firstAttachedCallback=function(){this.o=this.element.getAttribute("sandbox");var a;if(!(a=ya(this,this.element.getAttribute("src")))){a=this.element.getAttribute("srcdoc");var b=this.o;if(a){u().assert(!(" "+b+" ").match(/\s+allow-same-origin\s+/i),"allow-same-origin is not allowed with the srcdoc attribute %s.",this.element);if("undefined"!==typeof TextEncoder)b=(new TextEncoder("utf-8")).encode(a);else{a=unescape(encodeURIComponent(a));for(var b=new Uint8Array(a.length),c=0;c<a.length;c++){var d=
- a.charCodeAt(c);b[c]=d}}a=btoa;c=Array(b.length);for(d=0;d<b.length;d++)c[d]=String.fromCharCode(b[d]);b=c.join("");a="data:text/html;charset=utf-8;base64,"+a(b)}else a=void 0}var e=a;this.iframeSrc=X(this,e,this.o)};l.preconnectCallback=function(a){this.iframeSrc&&this.preconnect.url(this.iframeSrc,a)};
- l.buildCallback=function(){this.H=this.getPlaceholder();this.F=!!this.H;(this.G=this.element.hasAttribute("resizable"))&&this.element.setAttribute("scrolling","no");this.element.hasAttribute("frameborder")||this.element.setAttribute("frameborder","0");var a;a=this.element;if("no"!=a.getAttribute("scrolling")){var b=a.ownerDocument.createElement("i-amphtml-scroll-container");a.appendChild(b);a=b}this.D=a;za(this)};
- l.onLayoutMeasure=function(){Aa(this);var a;a:{var b=this.element.getLayoutBox();a=b.height;for(var b=b.width,c=0;c<Z.length;c++){var d=Z[c][0],e=Z[c][1];if(!(e>a||d>b)&&20>=a-e&&20>=b-d){a=!0;break a}}a=!1}this.O=a;a=this.element.getLayoutBox();10<a.width&&10<a.height?a=!1:(void 0===this.P&&(this.P=!!ga(this.element)),a=!this.P);this.B=a;if(a=this.O){a=this.win;b=!1;c=0;d=this.element;do ia[d.tagName]?(c++,b=!1):(e=(a.getComputedStyle(d)||x()).position,"fixed"!=e&&"sticky"!=e||(b=!0)),d=d.parentElement;
- while(d&&"BODY"!=d.tagName);a=!(!b&&1>=c)}this.Z=a;this.l&&this.l.fire()};function Aa(a){if(a.h){var b=a.getViewport().getLayoutRect(a.h),c=a.getLayoutBox();a.M=N(b,-c.left,-c.top)}}l.getIntersectionElementLayoutBox=function(){if(!this.h)return AMP.BaseElement.prototype.getIntersectionElementLayoutBox.call(this);var a=this.getLayoutBox();this.M||Aa(this);return N(this.M,a.left,a.top)};
- l.layoutCallback=function(){var a=this;u().assert(!this.Z,"amp-iframe is not used for displaying fixed ad. Please use amp-sticky-ad and amp-ad instead.");this.F||xa(this);this.G&&u().assert(this.getOverflowElement(),"Overflow element must be defined for resizable frames: %s",this.element);if(!this.iframeSrc)return Promise.resolve();if(this.B&&(V++,1<V))return console.error("Only 1 analytics/tracking iframe allowed per page. Please use amp-analytics instead or file a GitHub issue for your use case: https://github.com/ampproject/amphtml/issues/new"),
- Promise.resolve();var b=this.element.ownerDocument.createElement("iframe");this.h=b;this.applyFillContent(b);b.name="amp_iframe"+wa++;this.F&&L(b,-1);this.propagateAttributes(va,b);Ba(b,this.o);b.src=this.iframeSrc;this.B||(this.l=new S(this,b));b.onload=function(){b.readyState="complete";a.W();a.B&&(a.iframeSrc=null,I(a.win,"timer").promise(5E3).then(function(){b.parentElement&&b.parentElement.removeChild(b);a.element.setAttribute("amp-removed","");a.h=null}))};Q(b,"embed-size",function(b){Ca(a,
- b.height,b.width)});this.F&&Q(b,"embed-ready",this.W.bind(this));this.D.appendChild(b);return this.loadPromise(b).then(function(){a.D!=a.element&&I(a.win,"timer").delay(function(){a.mutateElement(function(){a.D.classList.add("amp-active")})},1E3)})};l.unlayoutOnPause=function(){return!0};l.unlayoutCallback=function(){if(this.h){var a=this.h;a.parentElement&&a.parentElement.removeChild(a);this.H&&this.togglePlaceholder(!0);this.h=null;this.l&&(this.l.destroy(),this.l=null)}return!0};
- l.viewportCallback=function(a){if(this.l)this.l.onViewportCallback(a)};l.getLayoutPriority=function(){return this.O?2:this.B?1:AMP.BaseElement.prototype.getLayoutPriority.call(this)};l.mutatedAttributesCallback=function(a){var b=a.src;void 0!==b&&(this.iframeSrc=ya(this,b),this.h&&(this.h.src=X(this,this.iframeSrc,this.o)))};l.W=function(){var a=this;this.H&&this.getVsync().mutate(function(){a.h&&(L(a.h,0),a.togglePlaceholder(!1))})};l.firstLayoutCompleted=function(){};
- l.throwIfCannotNavigate=function(){if(!Y(this.o,"allow-top-navigation"))throw u().createError('"AMP.navigateTo" is only allowed on <amp-iframe> when its "sandbox" attribute contains "allow-top-navigation".');};
- function Ca(a,b,c){if(a.G)if(100>b)a.user().error("amp-iframe","Ignoring embed-size request because the resize height is less than 100px. If you are using amp-iframe to display ads, consider using amp-ad instead.",a.element);else{var d,e;b=parseInt(b,10);isNaN(b)||(d=Math.max(b+(a.element.offsetHeight-a.h.offsetHeight),b));c=parseInt(c,10);isNaN(c)||(e=Math.max(c+(a.element.offsetWidth-a.h.offsetWidth),c));void 0!==d||void 0!==e?a.attemptChangeSize(d,e).then(function(){void 0!==d&&a.element.setAttribute("height",
- d);void 0!==e&&a.element.setAttribute("width",e)},function(){}):a.user().error("amp-iframe","Ignoring embed-size request because no width or height value is provided",a.element)}else a.user().error("amp-iframe","Ignoring embed-size request because this iframe is not resizable",a.element)}
- function za(a){if(da(a.win)){var b=a.element,c=b.getAttribute("src");c&&(a.m=E(b,"url").parse(c).origin);a.registerAction("postMessage",function(b){a.m?a.h.contentWindow.postMessage(b.args,a.m):u().error("amp-iframe",'"postMessage" action is only allowed with "src"attribute with an origin.')},100);if(a.m){var d=10,e=0,f=function(b){if(b.source===a.h.contentWindow)if(b.origin!==a.m)u().error("amp-iframe",'"message" received from unexpected origin: '+b.origin+". Only allowed from: "+a.m);else{var c;
- a.getAmpDoc().getRootNode().activeElement!==a.h?c=!1:(c=a.win.document.createElement("audio"),c.play(),c=c.paused?!1:!0);if(c){var g=b.data,k;try{k=JSON.parse(JSON.stringify(g))}catch(p){u().error("amp-iframe",'Data from "message" event must be JSON.');return}var m=a.win;b={data:k};c={detail:b};Object.assign(c,void 0);"function"==typeof m.CustomEvent?b=new m.CustomEvent("amp-iframe:message",c):(m=m.document.createEvent("CustomEvent"),m.initCustomEvent("amp-iframe:message",!!c.bubbles,!!c.cancelable,
- b),b=m);var r=E(a.getAmpDoc(),"action");r.trigger(a.element,"message",b,100)}else e++,u().error("amp-iframe",'"message" event may only be triggered from a user gesture.'),e>=d&&(u().error("amp-iframe",'Too many non-gesture-triggered "message" events; detaching event listener.'),a.win.removeEventListener("message",f))}};a.win.addEventListener("message",f)}}}l.da=function(a){this.m=a};function Ba(a,b){var c=b||"";a.setAttribute("sandbox",c)}var Z=[[300,250],[320,50],[300,50],[320,100]];
- (function(a){a.registerElement("amp-iframe",W)})(self.AMP);
- })});
- //# sourceMappingURL=amp-iframe-0.1.js.map
Add Comment
Please, Sign In to add comment