!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=68)}([function(e,t){"use strict";function n(e){return Object.prototype.toString.call(e).replace(/^\[object\s+|\]$/gi,"").toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){return"function"===i.default(e)||"function"==typeof e}Object.defineProperty(t,"__esModule",{value:!0});var i=n(4);t.default=r},function(e,t,n){"use strict";function r(e,t,n,r){void 0===r&&(r=!1),i.default(e,"addEventListener")?e.addEventListener(t,n,r):i.default(e,"attachEvent")&&e.attachEvent("on"+t,n)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3);t.default=r},function(e,t){"use strict";function n(e,t){if(null!==e)try{return t in e}catch(n){return void 0!==typeof e[t]}return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e){var t=i.default(Object.prototype.toString.call(e),0,8);return i.default(t,t.length-1,1).toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0});var i=n(15);t.default=r},,function(e,t,n){"use strict";function r(e){if(i.default(e.getBoundingClientRect))try{if(e.getClientRects().length>0)return"number"==typeof e.getBoundingClientRect().width}catch(e){}return!1}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);t.default=r},function(e,t,n){"use strict";function r(e){return{top:parseInt(l.default(e,"borderTopWidth"),10)||0,left:parseInt(l.default(e,"borderLeftWidth"),10)||0,right:parseInt(l.default(e,"borderRightWidth"),10)||0,bottom:parseInt(l.default(e,"borderBottomWidth"),10)||0}}function i(e){return{top:parseInt(l.default(e,"marginTop"),10)||0,left:parseInt(l.default(e,"marginLeft"),10)||0,right:parseInt(l.default(e,"marginRight"),10)||0,bottom:parseInt(l.default(e,"marginBottom"),10)||0}}function o(e){return{top:parseInt(l.default(e,"paddingTop"),10)||0,left:parseInt(l.default(e,"paddingLeft"),10)||0,right:parseInt(l.default(e,"paddingRight"),10)||0,bottom:parseInt(l.default(e,"paddingBottom"),10)||0}}function a(e){if(c.default(e)){var t=e.getBoundingClientRect();return{width:t.width,height:t.height}}return{width:Math.max(e.offsetWidth,e.clientWidth),height:Math.max(e.offsetHeight,e.clientHeight)}}function u(e,t){var n=a(e),o=r(e),u={width:n.width,height:n.height};if(u.width+=o.left+o.right,u.height+=o.top+o.bottom,t){var l=i(e);u.width+=l.left+l.right,u.height+=l.top+l.bottom}return u}Object.defineProperty(t,"__esModule",{value:!0});var l=n(8),c=n(6);t.elementBorder=r,t.elementMargin=i,t.elementPadding=o,t.elementSize=a,t.elementOuterSize=u,t.default=a},function(e,t,n){"use strict";function r(e,t){return i.default(window.getComputedStyle)?window.getComputedStyle(e,null).getPropertyValue(t):e.currentStyle[t]}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);t.default=r},function(e,t){"use strict";function n(e,t){if(null!==e)try{return t in e}catch(n){return void 0!==e[t]}return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e,t,n){i.default(e,"removeEventListener")?e.removeEventListener(t,n):i.default(e,"detachEvent")&&e.detachEvent("on"+t,n)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(3);t.default=r},function(e,t,n){"use strict";function r(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return"function"==typeof e?"function"==typeof Function.prototype.bind?Function.prototype.bind.apply(e,i.default([t],n)):n.length>0?function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length>0?e.apply(t,i.default(n,r)):e.apply(t,n)}:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length>0?e.apply(t,n):e.apply(t)}:e}Object.defineProperty(t,"__esModule",{value:!0});var i=n(13);t.default=r},function(e,t,n){"use strict";function r(e,t,n){i.default(e,"removeEventListener")?e.removeEventListener(t,n):i.default(e,"detachEvent")&&e.detachEvent("on"+t,n)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(9);t.default=r},function(e,t){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Array.prototype.concat.apply(Array.prototype,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(e){var t=/^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/.exec(e),n=location&&location.protocol?location.protocol:"";return{href:e||"",host:t[10]||"",hash:t[17]||"",port:t[12]||"",origin:(t[4]||n)+(t[5]||"")+(t[10]||""),search:t[16]||"",protocol:t[4]||"",pathname:t[13]||"",password:t[9]||"",username:t[8]||"",hostname:t[11]||""}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(e,t,n){if(void 0===n&&(n=1),t<0||t>e.length)throw new RangeError;return t>0?e.slice(0,t)+e.slice(t+n):e.slice(t+n)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e,t,n,r){i.default(e,"addEventListener")?e.addEventListener(t,n,r):i.default(e,"attachEvent")&&e.attachEvent("on"+t,n)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(9);t.default=r},function(e,t){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Array.prototype.concat.apply(Array.prototype,e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return"function"==o.default(e)?"function"==o.default(Function.prototype.bind)?Function.prototype.bind.apply(e,i.default([t],n)):n.length>0?function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return r.length>0?e.apply(t,i.default(n,r)):e.apply(t,n)}:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.length>0?e.apply(t,n):e.apply(t)}:e}Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),o=n(0);t.default=r},function(e,t,n){"use strict";function r(e){return"function"===i.default(e)||"function"==typeof e}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0);t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(18),i=n(0),o=n(16),a=n(19),u=n(12),l=n(24),c=function(){function e(e,t,n){this.listenerRegistered=!1,this.messageListener=[],this.secret=e,this.target=t,this.targetOrigin=n,this.eventCallback=r.default(this.handleMessage,this)}return e.prototype.subscribe=function(t){this.listenerRegistered||(this.listenerRegistered=!0,e.registerListener(this.eventCallback)),a.default(t)&&this.messageListener.push(t)},e.prototype.unsubscribe=function(t){var n=this.messageListener.indexOf(t);n>-1&&this.messageListener.splice(n,1),this.messageListener.length<=0&&(e.removeListener(this.eventCallback),this.listenerRegistered=!1)},e.prototype.send=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.serialize(t);if(r=this.secret+r,a.default(this.target.postMessage))try{return this.target.postMessage(r,this.targetOrigin),!0}catch(e){}return!1},e.registerListener=function(e){o.default(window,"message",e,!1)},e.removeListener=function(e){u.default(window,"message",e)},e.parse=function(t){return e.JSON.parse(t)},e.serialize=function(t){return e.JSON.stringify(t)},e.prototype.checkEventOrigin=function(e,t){return e===this.targetOrigin&&t===this.target},e.prototype.handleMessage=function(t){var n=t.message?"message":"data",r="string"==i.default(t[n])?t[n].slice(0,this.secret.length):"",o="string"==i.default(t[n])?t[n].slice(this.secret.length):"";this.checkEventOrigin(t.origin,t.source)&&r===this.secret&&this.callListener(e.parse(o))},e.prototype.callListener=function(e){for(var t=this.messageListener.length>>>0,n=-1;++n<t;)this.messageListener[n].apply(void 0,e)},e.JSON=l.noConflict(),e}();t.default=c},function(e,t){(function(t){e.exports=t}).call(t,{})},function(e){var t;t=function(){return this}();try{t=t||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(t=window)}e.exports=t},function(e){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){(function(e,r){var i;void 0!==(i=function(){function i(e,t){function n(e){if(n[e]!==y)return n[e];var i;if("bug-string-char-index"==e)i="a"!="a"[0];else if("json"==e)i=n("json-stringify")&&n("json-parse");else{var o,u='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==e){var l=t.stringify,s="function"==typeof l&&b;if(s){(o=function(){return 1}).toJSON=o;try{s="0"===l(0)&&"0"===l(new r)&&'""'==l(new a)&&l(m)===y&&l(y)===y&&l()===y&&"1"===l(o)&&"[1]"==l([o])&&"[null]"==l([y])&&"null"==l(null)&&"[null,null,null]"==l([y,m,null])&&l({a:[o,!0,!1,null,"\0\b\n\f\r\t"]})==u&&"1"===l(null,o)&&"[\n 1,\n 2\n]"==l([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==l(new c(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==l(new c(864e13))&&'"-000001-01-01T00:00:00.000Z"'==l(new c(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==l(new c(-1))}catch(e){s=!1}}i=s}if("json-parse"==e){var f=t.parse;if("function"==typeof f)try{if(0===f("0")&&!f(!1)){o=f(u);var d=5==o.a.length&&1===o.a[0];if(d){try{d=!f('"\t"')}catch(e){}if(d)try{d=1!==f("01")}catch(e){}if(d)try{d=1!==f("1.")}catch(e){}}}}catch(e){d=!1}i=d}}return n[e]=!!i}e||(e=u.Object()),t||(t=u.Object());var r=e.Number||u.Number,a=e.String||u.String,l=e.Object||u.Object,c=e.Date||u.Date,s=e.SyntaxError||u.SyntaxError,f=e.TypeError||u.TypeError,d=e.Math||u.Math,h=e.JSON||u.JSON;"object"==typeof h&&h&&(t.stringify=h.stringify,t.parse=h.parse);var p,g,y,v=l.prototype,m=v.toString,b=new c(-0xc782b5b800cec);try{b=-109252==b.getUTCFullYear()&&0===b.getUTCMonth()&&1===b.getUTCDate()&&10==b.getUTCHours()&&37==b.getUTCMinutes()&&6==b.getUTCSeconds()&&708==b.getUTCMilliseconds()}catch(e){}if(!n("json")){var w=n("bug-string-char-index");if(!b)var _=d.floor,j=[0,31,59,90,120,151,181,212,243,273,304,334],O=function(e,t){return j[t]+365*(e-1970)+_((e-1969+(t=+(t>1)))/4)-_((e-1901+t)/100)+_((e-1601+t)/400)};if((p=v.hasOwnProperty)||(p=function(e){var t,n={};return(n.__proto__=null,n.__proto__={toString:1},n).toString!=m?p=function(e){var t=this.__proto__,n=e in(this.__proto__=null,this);return this.__proto__=t,n}:(t=n.constructor,p=function(e){var n=(this.constructor||t).prototype;return e in this&&!(e in n&&this[e]===n[e])}),n=null,p.call(this,e)}),g=function(e,t){var n,r,i,a=0;(n=function(){this.valueOf=0}).prototype.valueOf=0,r=new n;for(i in r)p.call(r,i)&&a++;return n=r=null,a?g=2==a?function(e,t){var n,r={},i="[object Function]"==m.call(e);for(n in e)i&&"prototype"==n||p.call(r,n)||!(r[n]=1)||!p.call(e,n)||t(n)}:function(e,t){var n,r,i="[object Function]"==m.call(e);for(n in e)i&&"prototype"==n||!p.call(e,n)||(r="constructor"===n)||t(n);(r||p.call(e,n="constructor"))&&t(n)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],g=function(e,t){var n,i,a="[object Function]"==m.call(e),u=!a&&"function"!=typeof e.constructor&&o[typeof e.hasOwnProperty]&&e.hasOwnProperty||p;for(n in e)a&&"prototype"==n||!u.call(e,n)||t(n);for(i=r.length;n=r[--i];u.call(e,n)&&t(n));}),g(e,t)},!n("json-stringify")){var M={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},S=function(e,t){return("000000"+(t||0)).slice(-e)},C=function(e){for(var t='"',n=0,r=e.length,i=!w||r>10,o=i&&(w?e.split(""):e);n<r;n++){var a=e.charCodeAt(n);switch(a){case 8:case 9:case 10:case 12:case 13:case 34:case 92:t+=M[a];break;default:if(a<32){t+="\\u00"+S(2,a.toString(16));break}t+=i?o[n]:e.charAt(n)}}return t+'"'},P=function(e,t,n,r,i,o,a){var u,l,c,s,d,h,v,b,w,j,M,E,T,A,L,x;try{u=t[e]}catch(e){}if("object"==typeof u&&u)if("[object Date]"!=(l=m.call(u))||p.call(u,"toJSON"))"function"==typeof u.toJSON&&("[object Number]"!=l&&"[object String]"!=l&&"[object Array]"!=l||p.call(u,"toJSON"))&&(u=u.toJSON(e));else if(u>-1/0&&u<1/0){if(O){for(d=_(u/864e5),c=_(d/365.2425)+1970-1;O(c+1,0)<=d;c++);for(s=_((d-O(c,0))/30.42);O(c,s+1)<=d;s++);d=1+d-O(c,s),h=(u%864e5+864e5)%864e5,v=_(h/36e5)%24,b=_(h/6e4)%60,w=_(h/1e3)%60,j=h%1e3}else c=u.getUTCFullYear(),s=u.getUTCMonth(),d=u.getUTCDate(),v=u.getUTCHours(),b=u.getUTCMinutes(),w=u.getUTCSeconds(),j=u.getUTCMilliseconds();u=(c<=0||c>=1e4?(c<0?"-":"+")+S(6,c<0?-c:c):S(4,c))+"-"+S(2,s+1)+"-"+S(2,d)+"T"+S(2,v)+":"+S(2,b)+":"+S(2,w)+"."+S(3,j)+"Z"}else u=null;if(n&&(u=n.call(t,e,u)),null===u)return"null";if("[object Boolean]"==(l=m.call(u)))return""+u;if("[object Number]"==l)return u>-1/0&&u<1/0?""+u:"null";if("[object String]"==l)return C(""+u);if("object"==typeof u){for(A=a.length;A--;)if(a[A]===u)throw f();if(a.push(u),M=[],L=o,o+=i,"[object Array]"==l){for(T=0,A=u.length;T<A;T++)E=P(T,u,n,r,i,o,a),M.push(E===y?"null":E);x=M.length?i?"[\n"+o+M.join(",\n"+o)+"\n"+L+"]":"["+M.join(",")+"]":"[]"}else g(r||u,function(e){var t=P(e,u,n,r,i,o,a);t!==y&&M.push(C(e)+":"+(i?" ":"")+t)}),x=M.length?i?"{\n"+o+M.join(",\n"+o)+"\n"+L+"}":"{"+M.join(",")+"}":"{}";return a.pop(),x}};t.stringify=function(e,t,n){var r,i,a,u;if(o[typeof t]&&t)if("[object Function]"==(u=m.call(t)))i=t;else if("[object Array]"==u){a={};for(var l,c=0,s=t.length;c<s;l=t[c++],("[object String]"==(u=m.call(l))||"[object Number]"==u)&&(a[l]=1));}if(n)if("[object Number]"==(u=m.call(n))){if((n-=n%1)>0)for(r="",n>10&&(n=10);r.length<n;r+=" ");}else"[object String]"==u&&(r=n.length<=10?n:n.slice(0,10));return P("",(l={},l[""]=e,l),i,a,r,"",[])}}if(!n("json-parse")){var E,T,A=a.fromCharCode,L={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},x=function(){throw E=T=null,s()},N=function(){for(var e,t,n,r,i,o=T,a=o.length;E<a;)switch(i=o.charCodeAt(E)){case 9:case 10:case 13:case 32:E++;break;case 123:case 125:case 91:case 93:case 58:case 44:return e=w?o.charAt(E):o[E],E++,e;case 34:for(e="@",E++;E<a;)if((i=o.charCodeAt(E))<32)x();else if(92==i)switch(i=o.charCodeAt(++E)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:e+=L[i],E++;break;case 117:for(t=++E,n=E+4;E<n;E++)(i=o.charCodeAt(E))>=48&&i<=57||i>=97&&i<=102||i>=65&&i<=70||x();e+=A("0x"+o.slice(t,E));break;default:x()}else{if(34==i)break;for(i=o.charCodeAt(E),t=E;i>=32&&92!=i&&34!=i;)i=o.charCodeAt(++E);e+=o.slice(t,E)}if(34==o.charCodeAt(E))return E++,e;x();default:if(t=E,45==i&&(r=!0,i=o.charCodeAt(++E)),i>=48&&i<=57){for(48==i&&(i=o.charCodeAt(E+1))>=48&&i<=57&&x(),r=!1;E<a&&(i=o.charCodeAt(E))>=48&&i<=57;E++);if(46==o.charCodeAt(E)){for(n=++E;n<a&&(i=o.charCodeAt(n))>=48&&i<=57;n++);n==E&&x(),E=n}if(101==(i=o.charCodeAt(E))||69==i){for(i=o.charCodeAt(++E),43!=i&&45!=i||E++,n=E;n<a&&(i=o.charCodeAt(n))>=48&&i<=57;n++);n==E&&x(),E=n}return+o.slice(t,E)}if(r&&x(),"true"==o.slice(E,E+4))return E+=4,!0;if("false"==o.slice(E,E+5))return E+=5,!1;if("null"==o.slice(E,E+4))return E+=4,null;x()}return"$"},I=function(e){var t,n;if("$"==e&&x(),"string"==typeof e){if("@"==(w?e.charAt(0):e[0]))return e.slice(1);if("["==e){for(t=[];"]"!=(e=N());n||(n=!0))n&&(","==e?"]"==(e=N())&&x():x()),","==e&&x(),t.push(I(e));return t}if("{"==e){for(t={};"}"!=(e=N());n||(n=!0))n&&(","==e?"}"==(e=N())&&x():x()),","!=e&&"string"==typeof e&&"@"==(w?e.charAt(0):e[0])&&":"==N()||x(),t[e.slice(1)]=I(N());return t}x()}return e},U=function(e,t,n){var r=F(e,t,n);r===y?delete e[t]:e[t]=r},F=function(e,t,n){var r,i=e[t];if("object"==typeof i&&i)if("[object Array]"==m.call(i))for(r=i.length;r--;)U(i,r,n);else g(i,function(e){U(i,e,n)});return n.call(e,t,i)};t.parse=function(e,t){var n,r;return E=0,T=""+e,n=I(N()),"$"!=N()&&x(),E=T=null,t&&"[object Function]"==m.call(t)?F((r={},r[""]=n,r),"",t):n}}}return t.runInContext=i,t}var o=(n(21),{function:!0,object:!0}),a=o[typeof t]&&t&&!t.nodeType&&t,u=o[typeof window]&&window||this,l=a&&o[typeof e]&&e&&!e.nodeType&&"object"==typeof r&&r;!l||l.global!==l&&l.window!==l&&l.self!==l||(u=l);var c=u.JSON,s=u.JSON3,f=!1,d=i(u,u.JSON3={noConflict:function(){return f||(f=!0,u.JSON=c,u.JSON3=s,c=s=null),d}});return d}.call(t,n,t,e))&&(e.exports=i)}).call(t,n(23)(e),n(22))},,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(64);location&&"localhost"===location.hostname?new r.default("/frame-dev.html"):new r.default("//static-collage.a4mtools.net/frame.html?")},,,,function(e,t,n){"use strict";function r(e,t){function n(){e.apply(t||this,c||[])}function r(n){n&&n.source===window&&n.data==l&&(o.default(window,"message",r),e.apply(t||this,c||[]))}for(var c=[],s=2;s<arguments.length;s++)c[s-2]=arguments[s];u?window.setImmediate(n):a?(i.default(window,"message",r,!1),window.postMessage(l,"*")):window.setTimeout(n,0)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(2),o=n(10),a=window.postMessage&&window.postMessage.length>>>0>0,u=window.setImmediate&&window.setImmediate.length>>>0>0,l="async-callback-polyfill";t.default=r},,,,function(e,t){"use strict";function n(e){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e||(e="-"),t()+t()+e+t()+e+t()+e+t()+e+t()+t()+t()}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t){"use strict";function n(e,t){return e.appendChild(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},function(e,t,n){"use strict";function r(e,t){var n=document.createElement(e);if(void 0!==t)for(var r in t)if(t.hasOwnProperty(r))if("style"==r)for(var o in t[r])t[r].hasOwnProperty(o)&&(n.style[o]=t[r][o]);else i.default(t[r])||"object"==typeof t[r]?n[r]=t[r]:n.setAttribute(r,t[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);t.default=r},function(e,t){"use strict";function n(){if(void 0!==document.currentScript&&null!==document.currentScript)return document.currentScript;var e=document.getElementsByTagName("script");return e[e.length-1]}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},,,function(e,t){"use strict";function n(e,t){return void 0!==e.nextSibling&&null!==e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},,,,,,,function(e,t,n){"use strict";function r(e){function t(t){return!c&&r()&&n()&&(c=!0),!c&&t&&t.type&&s(t.type)&&(c=!0),c&&!h&&(h=!0,i.default(e),f()),c&&h}function n(){if(!document.addEventListener){var e;try{e=null===window.frameElement&&document.documentElement}catch(e){}if(e&&e.doScroll)try{return e.doScroll("left"),!0}catch(e){}return!1}return!0}function r(){return document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState}function s(e){return"domcontentloaded"===(e=e.toLowerCase())||"load"===e}function f(){u.default(document,"DOMContentLoaded",d),u.default(document,"readystatechange",d),u.default(window,"load",d)}function d(e){t(e)||setTimeout(d,l)}var h=!1;c?i.default(e):(o.default(document,"addEventListener")?a.default(document,"DOMContentLoaded",d,!1):o.default(document,"attachEvent")&&a.default(document,"readystatechange",function(e){r()&&d(e)},!1),a.default(window,"load",d,!1),i.default(d))}Object.defineProperty(t,"__esModule",{value:!0});var i=n(31),o=n(3),a=n(2),u=n(10),l=10,c=!1;t.default=r},,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=n(11),o=n(14),a=n(35),u=n(48),l=n(7),c=n(41),s=n(36),f=n(37),d=n(38),h=n(20),p=function(){function e(e,t,n){this.identifier=a.default(),this.requestUrl=this.addQueryParameter(e),this.target=t,this.defaultHeight=parseInt(n,10),this.currentScript=d.default(),u.default(i.default(this.setup,this))}return e.prototype.setup=function(){this.element=this.addToContainer(f.default("div",{id:"collage-ad-container-"+this.identifier,class:"ad4mat-container",style:{width:"100%",height:"auto","max-width":"100%"}})),this.element.appendChild(document.createComment(e.copyright)),this.addFrame(this.element)},e.prototype.addQueryParameter=function(e){return location&&"localhost"===location.hostname&&(e+="?zTrackId=359069&collageId=1551&lang=se&isPreview=true",e+="&isPreview=true"),/[^\#]\?/.test(e)?e+"&unique_id="+this.identifier:e+"?unique_id="+this.identifier},e.prototype.addToContainer=function(e){return"string"==typeof this.target&&null!==document.getElementById(this.target)?s.default(document.getElementById(this.target),e):null!==this.currentScript.parentElement&&"HEAD"===this.currentScript.parentElement.nodeName?s.default(document.getElementsByTagName("body")[0],e):c.default(this.currentScript,e)},e.prototype.resize=function(e){this.iFrame.style.height=e+"px"},e.prototype.resizeEventHandler=function(){if(this.PostMessage instanceof h.default){var e=l.default(this.iFrame);this.PostMessage.send(e.width,e.height)}},e.prototype.registerPostMessageHandler=function(){if(!(this.PostMessage instanceof h.default)){var e=o.default(this.requestUrl),t=l.default(this.iFrame);this.PostMessage=new h.default("AD4MAT-CollageAd",this.iFrame.contentWindow||this.iFrame,e.origin),this.PostMessage.subscribe(i.default(this.resize,this)),this.PostMessage.send(t.width,t.height)}},e.prototype.addFrame=function(e){var t=f.default("iframe",{id:"collage-ad-"+this.identifier,src:this.requestUrl,scrolling:"no",allowtransparency:"yes",frameborder:"0",style:{"max-width":"100%",width:"100%",height:this.defaultHeight!==this.defaultHeight?"auto":this.defaultHeight+"px"}});r.default(t,"load",i.default(this.registerPostMessageHandler,this),!1),r.default(window,"resize",i.default(this.resizeEventHandler,this),!1),this.iFrame=s.default(e,t)},e.copyright="\n(c) advanced STORE GmbH / 2008 - "+(new Date).getFullYear()+"\nad4mat, ad4mat WUSIWUG (What User Sees Is What User Gets) and ad4mat 360 Ads are protected by copyright\nAll rights reserved\n",e}();t.default=p},,,,function(e,t,n){e.exports=n(27)}]);