From 9b99c68ac27a5b03ab7ac4ec797e9464977e1156 Mon Sep 17 00:00:00 2001 From: Daniel Brain Date: Mon, 29 Oct 2018 22:05:13 -0700 Subject: [PATCH] Dist --- dist/brainblocks.js | 29 ++++++++++++++++++++++------- dist/brainblocks.min.js | 4 ++-- dist/module/config.js | 2 +- 3 files changed, 25 insertions(+), 10 deletions(-) diff --git a/dist/brainblocks.js b/dist/brainblocks.js index 1ebe390..160ce85 100644 --- a/dist/brainblocks.js +++ b/dist/brainblocks.js @@ -705,11 +705,11 @@ "./node_modules/cross-domain-safe-weakmap/src/native.js": function(module, __webpack_exports__, __webpack_require__) { "use strict"; function hasNativeWeakMap() { - if (!window.WeakMap) return !1; - if (!window.Object.freeze) return !1; + if ("undefined" == typeof WeakMap) return !1; + if (void 0 === Object.freeze) return !1; try { - var testWeakMap = new window.WeakMap(), testKey = {}; - window.Object.freeze(testKey); + var testWeakMap = new WeakMap(), testKey = {}; + Object.freeze(testKey); testWeakMap.set(testKey, "__testvalue__"); return "__testvalue__" === testWeakMap.get(testKey); } catch (err) { @@ -744,7 +744,7 @@ counter += 1; this.name = "__weakmap_" + (1e9 * Math.random() >>> 0) + "__" + counter; if (Object(__WEBPACK_IMPORTED_MODULE_1__native__.a)()) try { - this.weakmap = new window.WeakMap(); + this.weakmap = new WeakMap(); } catch (err) {} this.keys = []; this.values = []; @@ -847,6 +847,12 @@ this._cleanupClosedWindows(); return -1 !== Object(__WEBPACK_IMPORTED_MODULE_2__util__.b)(this.keys, key); }; + CrossDomainSafeWeakMap.prototype.getOrSet = function(key, getter) { + if (this.has(key)) return this.get(key); + var value = getter(); + this.set(key, value); + return value; + }; return CrossDomainSafeWeakMap; }(); }, @@ -1139,7 +1145,7 @@ if (!frame.contentWindow) return !0; if (!frame.parentNode) return !0; var doc = frame.ownerDocument; - return !(!doc || !doc.body || doc.body.contains(frame)); + return !(!doc || !doc.documentElement || doc.documentElement.contains(frame)); } function safeIndexOf(collection, item) { for (var i = 0; i < collection.length; i++) try { @@ -6232,6 +6238,9 @@ }); }); })).then(function() { + Object.keys(params).forEach(function(key) { + params[key] = escape(params[key]); + }); return params; }); } @@ -6798,6 +6807,9 @@ }, componentDidUpdate: function() { this.state && this.state.parent && this.state.parent.updateProps(Object(__WEBPACK_IMPORTED_MODULE_0__lib__.t)({}, this.props)); + }, + componentWillUnmount: function() { + this.state && this.state.parent && this.state.parent.destroy(); } }) : component.react = function(_React$Component) { function _class() { @@ -6819,6 +6831,9 @@ _class.prototype.componentDidUpdate = function() { this.state && this.state.parent && this.state.parent.updateProps(Object(__WEBPACK_IMPORTED_MODULE_0__lib__.t)({}, this.props)); }; + _class.prototype.componentWillUnmount = function() { + this.state && this.state.parent && this.state.parent.destroy(); + }; return _class; }(React.Component); return component.react; @@ -8631,7 +8646,7 @@ __webpack_require__.d(__webpack_exports__, "a", function() { return SUPPORTED_CURRENCIES; }); - var SUPPORTED_CURRENCIES = [ "btc", "bch", "usd", "eur", "gbp", "jpy", "cad", "aud", "cny", "chf", "sek", "nzd", "krw", "aed", "afn", "all", "amd", "ang", "aoa", "ars", "awg", "azn", "bam", "bbd", "bdt", "bgn", "bhd", "bif", "bmd", "bnd", "bob", "brl", "bsd", "btn", "bwp", "bzd", "cdf", "clf", "clp", "cop", "crc", "cup", "cve", "czk", "djf", "dkk", "dop", "dzd", "egp", "etb", "fjd", "fkp", "gel", "ghs", "gip", "gmd", "gnf", "gtq", "gyd", "hkd", "hnl", "hrk", "htg", "huf", "idr", "ils", "inr", "iqd", "irr", "isk", "jep", "jmd", "jod", "kes", "kgs", "khr", "kmf", "kpw", "kwd", "kyd", "kzt", "lak", "lbp", "lkr", "lrd", "lsl", "lyd", "mad", "mdl", "mga", "mkd", "mmk", "mnt", "mop", "mru", "mur", "mvr", "mwk", "mxn", "myr", "mzn", "nad", "ngn", "nio", "nok", "npr", "omr", "pab", "pen", "pgk", "php", "pkr", "pln", "pyg", "qar", "ron", "rsd", "rub", "rwf", "sar", "sbd", "scr", "sdg", "sgd", "shp", "sll", "sos", "srd", "stn", "svc", "syp", "szl", "thb", "tjs", "tmt", "tnd", "top", "try", "ttd", "twd", "tzs", "uah", "ugx", "uyu", "uzs", "vef", "vnd", "vuv", "wst", "xaf", "xcd", "xof", "xpf", "yer", "zar", "zmw", "zwl", "xag", "xau" ]; + var SUPPORTED_CURRENCIES = [ "btc", "bch", "usd", "eur", "gbp", "jpy", "cad", "aud", "cny", "chf", "sek", "nzd", "krw", "aed", "afn", "all", "amd", "ang", "aoa", "ars", "awg", "azn", "bam", "bbd", "bdt", "bgn", "bhd", "bif", "bmd", "bnd", "bob", "brl", "bsd", "btn", "bwp", "bzd", "cdf", "clf", "clp", "cop", "crc", "cup", "cve", "czk", "djf", "dkk", "dop", "dzd", "egp", "etb", "fjd", "fkp", "gel", "ghs", "gip", "gmd", "gnf", "gtq", "gyd", "hkd", "hnl", "hrk", "htg", "huf", "idr", "ils", "inr", "iqd", "irr", "isk", "jep", "jmd", "jod", "kes", "kgs", "khr", "kmf", "kpw", "kwd", "kyd", "kzt", "lak", "lbp", "lkr", "lrd", "lsl", "lyd", "mad", "mdl", "mga", "mkd", "mmk", "mnt", "mop", "mru", "mur", "mvr", "mwk", "mxn", "myr", "mzn", "nad", "ngn", "nio", "nok", "npr", "omr", "pab", "pen", "pgk", "php", "pkr", "pln", "pyg", "qar", "ron", "rsd", "rub", "rwf", "sar", "sbd", "scr", "sdg", "sgd", "shp", "sll", "sos", "srd", "stn", "svc", "syp", "szl", "thb", "tjs", "tmt", "tnd", "top", "try", "ttd", "twd", "tzs", "uah", "ugx", "uyu", "uzs", "vef", "vnd", "vuv", "wst", "xaf", "xcd", "xof", "xpf", "yer", "zar", "zmw", "zwl", "xag", "xau", "raw" ]; }, "./src/index.js": function(module, __webpack_exports__, __webpack_require__) { "use strict"; diff --git a/dist/brainblocks.min.js b/dist/brainblocks.min.js index 6bfcb4c..160110d 100644 --- a/dist/brainblocks.min.js +++ b/dist/brainblocks.min.js @@ -1,4 +1,4 @@ -!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("brainblocks",[],n):"object"==typeof exports?exports.brainblocks=n():e.brainblocks=n()}("undefined"!=typeof self?self:this,function(){return function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var t={};return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s="./src/index.js")}({"./node_modules/beaver-logger/client/builders.js":function(e,n,t){"use strict";function r(e){s.push(e)}function o(e){c.push(e)}function i(e){u.push(e)}function a(e){d.push(e)}t.d(n,"g",function(){return s}),t.d(n,"f",function(){return c}),t.d(n,"h",function(){return u}),t.d(n,"e",function(){return d}),n.c=r,n.b=o,n.d=i,n.a=a;var s=[],c=[],u=[],d=[]},"./node_modules/beaver-logger/client/config.js":function(e,n,t){"use strict";t.d(n,"a",function(){return r}),t.d(n,"b",function(){return o});var r={uri:"",prefix:"",initial_state_name:"init",flushInterval:6e5,debounceInterval:10,sizeLimit:300,silent:!1,heartbeat:!0,heartbeatConsoleLog:!0,heartbeatInterval:5e3,heartbeatTooBusy:!1,heartbeatTooBusyThreshold:1e4,logLevel:"warn",autoLog:["warn","error"],logUnload:!0,logPerformance:!0},o=["error","warn","info","debug"]},"./node_modules/beaver-logger/client/index.js":function(e,n,t){"use strict";var r=t("./node_modules/beaver-logger/client/interface.js");t.d(n,"a",function(){return r.config}),t.d(n,"b",function(){return r.error}),t.d(n,"c",function(){return r.flush}),t.d(n,"d",function(){return r.info}),t.d(n,"e",function(){return r.logLevels}),t.d(n,"f",function(){return r.warn})},"./node_modules/beaver-logger/client/init.js":function(e,n,t){"use strict";function r(e){Object(i.b)(o.a,e||{}),c||(c=!0,o.a.logPerformance&&Object(a.b)(),o.a.heartbeat&&Object(a.a)(),o.a.logUnload&&(window.addEventListener("beforeunload",function(){Object(s.g)("window_beforeunload"),Object(s.f)({fireAndForget:!0})}),window.addEventListener("unload",function(){Object(s.g)("window_unload"),Object(s.f)({fireAndForget:!0})})),o.a.flushInterval&&setInterval(s.d,o.a.flushInterval),window.beaverLogQueue&&(window.beaverLogQueue.forEach(function(e){Object(s.h)(e.level,e.event,e)}),delete window.beaverLogQueue))}n.a=r;var o=t("./node_modules/beaver-logger/client/config.js"),i=t("./node_modules/beaver-logger/client/util.js"),a=t("./node_modules/beaver-logger/client/performance.js"),s=t("./node_modules/beaver-logger/client/logger.js"),c=!1},"./node_modules/beaver-logger/client/interface.js":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("./node_modules/beaver-logger/client/logger.js");t.d(n,"track",function(){return r.l}),t.d(n,"buffer",function(){return r.a}),t.d(n,"tracking",function(){return r.m}),t.d(n,"getTransport",function(){return r.e}),t.d(n,"setTransport",function(){return r.k}),t.d(n,"print",function(){return r.j}),t.d(n,"immediateFlush",function(){return r.f}),t.d(n,"flush",function(){return r.d}),t.d(n,"log",function(){return r.h}),t.d(n,"prefix",function(){return r.i}),t.d(n,"debug",function(){return r.b}),t.d(n,"info",function(){return r.g}),t.d(n,"warn",function(){return r.n}),t.d(n,"error",function(){return r.c});var o=t("./node_modules/beaver-logger/client/init.js");t.d(n,"init",function(){return o.a});var i=t("./node_modules/beaver-logger/client/transitions.js");t.d(n,"startTransition",function(){return i.b}),t.d(n,"endTransition",function(){return i.a}),t.d(n,"transition",function(){return i.c});var a=t("./node_modules/beaver-logger/client/builders.js");t.d(n,"payloadBuilders",function(){return a.g}),t.d(n,"metaBuilders",function(){return a.f}),t.d(n,"trackingBuilders",function(){return a.h}),t.d(n,"headerBuilders",function(){return a.e}),t.d(n,"addPayloadBuilder",function(){return a.c}),t.d(n,"addMetaBuilder",function(){return a.b}),t.d(n,"addTrackingBuilder",function(){return a.d}),t.d(n,"addHeaderBuilder",function(){return a.a});var s=t("./node_modules/beaver-logger/client/config.js");t.d(n,"config",function(){return s.a}),t.d(n,"logLevels",function(){return s.b})},"./node_modules/beaver-logger/client/logger.js":function(e,n,t){"use strict";function r(){return v}function o(e){v=e}function i(e,n,t){if("undefined"!=typeof window&&window.console&&window.console.log){if(!E)return setTimeout(function(){return i(e,n,t)},1);var r=w.a.logLevel;if(window.LOG_LEVEL&&(r=window.LOG_LEVEL),!(w.b.indexOf(e)>w.b.indexOf(r))){t=t||{};var o=[n];Object(h.c)()&&(t=JSON.stringify(t)),o.push(t),(t.error||t.warning)&&o.push("\n\n",t.error||t.warning);try{window.console[e]&&window.console[e].apply?window.console[e].apply(window.console,o):window.console.log&&window.console.log.apply&&window.console.log.apply(window.console,o)}catch(e){}}}}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.fireAndForget,t=void 0!==n&&n;if("undefined"!=typeof window&&w.a.uri){var r=y.length,o=g.length;if(r||o){for(var i={},a=b.f,s=Array.isArray(a),c=0,a=s?a:a[Symbol.iterator]();;){var u;if(s){if(c>=a.length)break;u=a[c++]}else{if(c=a.next(),c.done)break;u=c.value}var d=u;try{Object(h.b)(i,d(i),!1)}catch(e){console.error("Error in custom meta builder:",e.stack||e.toString())}}for(var l={},f=b.e,p=Array.isArray(f),m=0,f=p?f:f[Symbol.iterator]();;){var E;if(p){if(m>=f.length)break;E=f[m++]}else{if(m=f.next(),m.done)break;E=m.value}var _=E;try{Object(h.b)(l,_(l),!1)}catch(e){console.error("Error in custom header builder:",e.stack||e.toString())}}var O=y,j=v(l,{events:O,meta:i,tracking:g},{fireAndForget:t});return y=[],g=[],j}}}function s(e,n,t){y.push({level:e,event:n,payload:t}),w.a.autoLog.indexOf(e)>-1&&_()}function c(e,n,t){if("undefined"!=typeof window){w.a.prefix&&(n=w.a.prefix+"_"+n),t=t||{},"string"==typeof t?t={message:t}:t instanceof Error&&(t={error:t.stack||t.toString()});try{JSON.stringify(t)}catch(e){return}t.timestamp=Date.now();for(var r=b.g,o=Array.isArray(r),a=0,r=o?r:r[Symbol.iterator]();;){var c;if(o){if(a>=r.length)break;c=r[a++]}else{if(a=r.next(),a.done)break;c=a.value}var u=c;try{Object(h.b)(t,u(t),!1)}catch(e){console.error("Error in custom payload builder:",e.stack||e.toString())}}w.a.silent||i(e,n,t),y.length===w.a.sizeLimit?s("info","logger_max_buffer_length"):y.length=n.length)break;o=n[r++]}else{if(r=n.next(),r.done)break;o=r.value}var a=o;try{Object(h.b)(e,a(e),!1)}catch(e){console.error("Error in custom tracking builder:",e.stack||e.toString())}}i("debug","tracking",e),g.push(e)}}t.d(n,"l",function(){return m}),t.d(n,"a",function(){return y}),t.d(n,"m",function(){return g}),n.e=r,n.k=o,n.j=i,n.f=a,t.d(n,"d",function(){return _}),n.h=c,n.i=u,n.b=d,n.g=l,n.n=f,n.c=p;var h=t("./node_modules/beaver-logger/client/util.js"),b=t("./node_modules/beaver-logger/client/builders.js"),w=t("./node_modules/beaver-logger/client/config.js"),y=[],g=[],v=function(e,n,t){return Object(h.a)("post",w.a.uri,e,n,t)},E=!1;setTimeout(function(){E=!0},1);var _=Object(h.e)(a,w.a.debounceInterval)},"./node_modules/beaver-logger/client/performance.js":function(e,n,t){"use strict";function r(){return f?performance.now():Date.now()}function o(e){return e=void 0!==e?e:r(),{startTime:e,elapsed:function(){return parseInt(r()-e,10)},reset:function(){e=r()}}}function i(){if(f){var e=window.performance.timing;return parseInt(e.connectEnd-e.navigationStart,10)}}function a(){var e=o(),n=0;Object(l.f)(function(){if(!(c.a.heartbeatMaxThreshold&&n>c.a.heartbeatMaxThreshold)){n+=1;var t=e.elapsed(),r=t-c.a.heartbeatInterval,o={count:n,elapsed:t};c.a.heartbeatTooBusy&&(o.lag=r,r>=c.a.heartbeatTooBusyThreshold&&Object(u.g)("toobusy",o,{noConsole:!c.a.heartbeatConsoleLog})),Object(u.g)("heartbeat",o,{noConsole:!c.a.heartbeatConsoleLog})}},c.a.heartbeatInterval)}function s(){if(!f)return Object(u.g)("no_performance_data");Object(d.c)(function(){var e={};return e.client_elapsed=p.elapsed(),f&&(e.req_elapsed=m.elapsed()),e}),Object(l.d)().then(function(){var e=["connectEnd","connectStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","domainLookupEnd","domainLookupStart","fetchStart","loadEventEnd","loadEventStart","navigationStart","redirectEnd","redirectStart","requestStart","responseEnd","responseStart","secureConnectionStart","unloadEventEnd","unloadEventStart"],n={};e.forEach(function(e){n[e]=parseInt(window.performance.timing[e],10)||0});var t=n.connectEnd-n.navigationStart;n.connectEnd&&Object.keys(n).forEach(function(e){var r=n[e];r&&Object(u.g)("timing_"+e,{client_elapsed:parseInt(r-n.connectEnd-(p.startTime-t),10),req_elapsed:parseInt(r-n.connectEnd,10)})}),Object(u.g)("timing",n),Object(u.g)("memory",window.performance.memory),Object(u.g)("navigation",window.performance.navigation),window.performance.getEntries&&window.performance.getEntries().forEach(function(e){["link","script","img","css"].indexOf(e.initiatorType)>-1&&Object(u.g)(e.initiatorType,e)})})}n.c=r,n.d=i,n.a=a,n.b=s;var c=t("./node_modules/beaver-logger/client/config.js"),u=t("./node_modules/beaver-logger/client/logger.js"),d=t("./node_modules/beaver-logger/client/builders.js"),l=t("./node_modules/beaver-logger/client/util.js"),f=window&&window.performance&&performance.now&&performance.timing&&performance.timing.connectEnd&&performance.timing.navigationStart&&Math.abs(performance.now()-Date.now())>1e3&&performance.now()-(performance.timing.connectEnd-performance.timing.navigationStart)>0,p=o(),m=o(i())},"./node_modules/beaver-logger/client/transitions.js":function(e,n,t){"use strict";function r(){m=Object(a.c)()}function o(e){m=m||Object(a.d)();var n=Object(a.c)(),t=void 0;void 0!==m&&(t=parseInt(n-m,0));var r="transition_"+p+"_to_"+e;Object(s.g)(r,{duration:t}),Object(s.l)({transition:r,transition_time:t}),Object(s.f)(),m=n,p=e,f=Object(u.g)()}function i(e){r(),o(e)}n.b=r,n.a=o,n.c=i;var a=t("./node_modules/beaver-logger/client/performance.js"),s=t("./node_modules/beaver-logger/client/logger.js"),c=t("./node_modules/beaver-logger/client/builders.js"),u=t("./node_modules/beaver-logger/client/util.js"),d=t("./node_modules/beaver-logger/client/config.js"),l=Object(u.g)(),f=Object(u.g)(),p=d.a.initial_state_name,m=void 0;Object(c.c)(function(){return{windowID:l,pageID:f}}),Object(c.b)(function(){return{state:"ui_"+p}})},"./node_modules/beaver-logger/client/util.js":function(e,n,t){"use strict";function r(e,n){var t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e=e||{},n=n||{};for(var r in n)n.hasOwnProperty(r)&&(!t&&e.hasOwnProperty(r)||(e[r]=n[r]));return e}function o(e){return window.location.protocol===e.split("/")[0]}function i(e){var n=e.match(/https?:\/\/[^\/]+/);return!n||n[0]===window.location.protocol+"//"+window.location.host}function a(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=a.fireAndForget,c=void 0!==s&&s;return new f.a(function(a){var s=window.XMLHttpRequest||window.ActiveXObject;if(window.XDomainRequest&&!i(n)){if(!o(n))return a();s=window.XDomainRequest}var u=new s("MSXML2.XMLHTTP.3.0");if(u.open(e.toUpperCase(),n,!0),"function"==typeof u.setRequestHeader){u.setRequestHeader("X-Requested-With","XMLHttpRequest"),u.setRequestHeader("Content-type","application/json");for(var d in t)t.hasOwnProperty(d)&&u.setRequestHeader(d,t[d])}c?a():u.onreadystatechange=function(){u.readyState>3&&a()},u.send(JSON.stringify(r).replace(/&/g,"%26"))})}function s(e,n){var t={};return function(){var r=arguments;return t.timeout&&(clearTimeout(t.timeout),delete t.timeout),t.timeout=setTimeout(function(){var n=t.resolver,o=t.rejector;return delete t.promise,delete t.resolver,delete t.rejector,delete t.timeout,f.a.resolve().then(function(){return e.apply(null,r)}).then(n,o)},n),t.promise=t.promise||new f.a(function(e,n){t.resolver=e,t.rejector=n}),t.promise}}function c(){return new f.a(function(e){"undefined"!=typeof document&&"complete"===document.readyState&&e(),window.addEventListener("load",e)})}function u(e,n){function t(){r=setTimeout(function(){e(),t()},n)}var r=void 0;return t(),{cancel:function(){clearTimeout(r)}}}function d(){var e="0123456789abcdef";return"xxxxxxxxxx".replace(/./g,function(){return e.charAt(Math.floor(Math.random()*e.length))})}function l(){return Boolean(window.document.documentMode)}n.b=r,n.a=a,n.e=s,n.d=c,n.f=u,n.g=d,n.c=l;var f=t("./node_modules/zalgo-promise/src/index.js")},"./node_modules/cross-domain-safe-weakmap/src/index.js":function(e,n,t){"use strict";var r=t("./node_modules/cross-domain-safe-weakmap/src/interface.js");t.d(n,"a",function(){return r.WeakMap})},"./node_modules/cross-domain-safe-weakmap/src/interface.js":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("./node_modules/cross-domain-safe-weakmap/src/weakmap.js");t.d(n,"WeakMap",function(){return r.a})},"./node_modules/cross-domain-safe-weakmap/src/native.js":function(e,n,t){"use strict";function r(){if(!window.WeakMap)return!1;if(!window.Object.freeze)return!1;try{var e=new window.WeakMap,n={};return window.Object.freeze(n),e.set(n,"__testvalue__"),"__testvalue__"===e.get(n)}catch(e){return!1}}n.a=r},"./node_modules/cross-domain-safe-weakmap/src/util.js":function(e,n,t){"use strict";function r(e,n){for(var t=0;t>>0)+"__"+c,Object(i.a)())try{this.weakmap=new window.WeakMap}catch(e){}this.keys=[],this.values=[]}return e.prototype._cleanupClosedWindows=function(){for(var e=this.weakmap,n=this.keys,t=0;t0&&void 0!==arguments[0]?arguments[0]:window).location.protocol===F.ABOUT_PROTOCOL}function o(e){if(e)try{if(e.parent&&e.parent!==e)return e.parent}catch(e){}}function i(e){if(e&&!o(e))try{return e.opener}catch(e){}}function a(e){try{return Object(B.b)(e&&e.location&&e.location.href),!0}catch(e){}return!1}function s(e){e=e||window;var n=e.location;if(!n)throw new Error("Can not read window location");var t=n.protocol;if(!t)throw new Error("Can not read window protocol");if(t===F.FILE_PROTOCOL)return F.FILE_PROTOCOL+"//";if(t===F.ABOUT_PROTOCOL){var r=o(e);return r&&a(r)?s(r):F.ABOUT_PROTOCOL+"//"}var i=n.host;if(!i)throw new Error("Can not read window host");return t+"//"+i}function c(e){e=e||window;var n=s(e);return n&&e.mockDomain&&0===e.mockDomain.indexOf(F.MOCK_PROTOCOL)?e.mockDomain:n}function u(e){try{if(e===window)return!0}catch(e){}try{var n=Object.getOwnPropertyDescriptor(e,"location");if(n&&!1===n.enumerable)return!1}catch(e){}try{if(r(e)&&a(e))return!0}catch(e){}try{if(s(e)===s(window))return!0}catch(e){}return!1}function d(e){if(!u(e))return!1;try{if(e===window)return!0;if(r(e)&&a(e))return!0;if(c(window)===c(e))return!0}catch(e){}return!1}function l(e){var n=[];try{for(;e.parent!==e;)n.push(e.parent),e=e.parent}catch(e){}return n}function f(e,n){if(!e||!n)return!1;var t=o(n);return t?t===e:-1!==l(n).indexOf(e)}function p(e){var n=[],t=void 0;try{t=e.frames}catch(n){t=e}var r=void 0;try{r=t.length}catch(e){}if(0===r)return n;if(r){for(var o=0;o=t.length)break;i=t[o++]}else{if(o=t.next(),o.done)break;i=o.value}var a=i;n.push(a);for(var s=m(a),c=Array.isArray(s),u=0,s=c?s:s[Symbol.iterator]();;){var d;if(c){if(u>=s.length)break;d=s[u++]}else{if(u=s.next(),u.done)break;d=u.value}var l=d;n.push(l)}}return n}function h(e){if(e){try{if(e.top)return e.top}catch(e){}if(o(e)===e)return e;try{if(f(window,e)&&window.top)return window.top}catch(e){}try{if(f(e,window)&&window.top)return window.top}catch(e){}for(var n=m(e),t=Array.isArray(n),r=0,n=t?n:n[Symbol.iterator]();;){var i;if(t){if(r>=n.length)break;i=n[r++]}else{if(r=n.next(),r.done)break;i=r.value}var a=i;try{if(a.top)return a.top}catch(e){}if(o(a)===a)return a}}}function b(e){var n=h(e);if(!n)throw new Error("Can not determine top window");return[].concat(m(n),[n])}function w(e){return e===h(e)}function y(e){if(!e.contentWindow)return!0;if(!e.parentNode)return!0;var n=e.ownerDocument;return!(!n||!n.body||n.body.contains(e))}function g(e,n){for(var t=0;t1&&void 0!==arguments[1])||arguments[1];try{if(e===window)return!1}catch(e){return!0}try{if(!e)return!0}catch(e){return!0}try{if(e.closed)return!0}catch(e){return!e||e.message!==H}if(n&&d(e))try{if(e.mockclosed)return!0}catch(e){}try{if(!e.parent||!e.top)return!0}catch(e){}try{Object(B.b)(e===e)}catch(e){return!0}var t=g(q,e);if(-1!==t){var r=Y[t];if(r&&y(r))return!0}return!1}function E(){for(var e=0;e=r.length)break;a=r[i++]}else{if(i=r.next(),i.done)break;a=i.value}var s=a;try{if(d(s)&&s.name===n&&-1!==t.indexOf(s))return s}catch(e){}}try{if(-1!==t.indexOf(e.frames[n]))return e.frames[n]}catch(e){}try{if(-1!==t.indexOf(e[n]))return e[n]}catch(e){}}function S(e,n){var t=j(e,n);if(t)return t;for(var r=p(e),o=Array.isArray(r),i=0,r=o?r:r[Symbol.iterator]();;){var a;if(o){if(i>=r.length)break;a=r[i++]}else{if(i=r.next(),i.done)break;a=i.value}var s=a,c=S(s,n);if(c)return c}}function A(e,n){var t=void 0;return(t=j(e,n))?t:S(h(e)||e,n)}function T(e,n){return e===i(n)}function P(e){e=e||window;var n=i(e);if(n)return n;var t=o(e);return t||void 0}function x(e,n){var t=P(n);if(t)return t===e;if(n===e)return!1;if(h(n)===n)return!1;for(var r=p(e),o=Array.isArray(r),i=0,r=o?r:r[Symbol.iterator]();;){var a;if(o){if(i>=r.length)break;a=r[i++]}else{if(i=r.next(),i.done)break;a=i.value}if(a===n)return!0}return!1}function C(){return Boolean(i(window))}function L(){return Boolean(o(window))}function I(e,n){for(var t=e,r=Array.isArray(t),o=0,t=r?t:t[Symbol.iterator]();;){var i;if(r){if(o>=t.length)break;i=t[o++]}else{if(o=t.next(),o.done)break;i=o.value}for(var a=i,s=n,c=Array.isArray(s),u=0,s=c?s:s[Symbol.iterator]();;){var d;if(c){if(u>=s.length)break;d=s[u++]}else{if(u=s.next(),u.done)break;d=u.value}if(a===d)return!0}}return!1}function N(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,n=0,t=e;t;)(t=o(t))&&(n+=1);return n}function D(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=e,r=0;r1&&void 0!==arguments[1]?arguments[1]:1;return D(e,N(e)-n)}function R(e,n){var t=h(e)||e,r=h(n)||n;try{if(t&&r)return t===r}catch(e){}var o=b(e),a=b(n);if(I(o,a))return!0;var s=i(t),c=i(r);return(!s||!I(b(s),a))&&(c&&I(b(c),o),!1)}function M(e,n){if("string"==typeof e){if("string"==typeof n)return e===F.WILDCARD||n===e;if(Object(B.a)(n))return!1;if(Array.isArray(n))return!1}return Object(B.a)(e)?Object(B.a)(n)?e.toString()===n.toString():!Array.isArray(n)&&Boolean(n.match(e)):!!Array.isArray(e)&&(Array.isArray(n)?JSON.stringify(e)===JSON.stringify(n):!Object(B.a)(n)&&e.some(function(e){return M(e,n)}))}function W(e){return Array.isArray(e)?"("+e.join(" | ")+")":Object(B.a)(e)?"RegExp("+e.toString():e.toString()}function G(e){var n=void 0;return e.match(/^(https?|mock|file):\/\//)?(n=e,n=n.split("/").slice(0,3).join("/")):c()}function U(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,o=void 0;return function i(){if(v(e))return o&&clearTimeout(o),n();r<=0?clearTimeout(o):(r-=t,o=setTimeout(i,t))}(),{cancel:function(){o&&clearTimeout(o)}}}function z(e){try{if(e===window)return!0}catch(e){if(e&&e.message===H)return!0}try{if("[object Window]"===Object.prototype.toString.call(e))return!0}catch(e){if(e&&e.message===H)return!0}try{if(window.Window&&e instanceof window.Window)return!0}catch(e){if(e&&e.message===H)return!0}try{if(e&&e.self===e)return!0}catch(e){if(e&&e.message===H)return!0}try{if(e&&e.parent===e)return!0}catch(e){if(e&&e.message===H)return!0}try{if(e&&e.top===e)return!0}catch(e){if(e&&e.message===H)return!0}try{Object(B.b)(e===e)}catch(e){return!0}try{Object(B.b)(e&&e.__cross_domain_utils_window_check__)}catch(e){return!0}return!1}n.l=o,n.k=i,n.b=s,n.f=c,n.o=u,n.t=d,n.i=p,n.m=h,n.c=b,n.v=w,n.x=v,n.y=_,n.n=O,n.h=j,n.a=A,n.r=T,n.d=P,n.p=x,n.s=C,n.q=L,n.e=N,n.j=k,n.u=R,n.z=M,n.B=W,n.g=G,n.A=U,n.w=z;var B=t("./node_modules/cross-domain-utils/src/util.js"),F={MOCK_PROTOCOL:"mock:",FILE_PROTOCOL:"file:",ABOUT_PROTOCOL:"about:",WILDCARD:"*"},H="Call was rejected by callee.\r\n",q=[],Y=[]},"./node_modules/hi-base32/src/base32.js":function(e,n,t){(function(e,n,r){var o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};/* +!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("brainblocks",[],n):"object"==typeof exports?exports.brainblocks=n():e.brainblocks=n()}("undefined"!=typeof self?self:this,function(){return function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var t={};return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s="./src/index.js")}({"./node_modules/beaver-logger/client/builders.js":function(e,n,t){"use strict";function r(e){s.push(e)}function o(e){c.push(e)}function i(e){u.push(e)}function a(e){d.push(e)}t.d(n,"g",function(){return s}),t.d(n,"f",function(){return c}),t.d(n,"h",function(){return u}),t.d(n,"e",function(){return d}),n.c=r,n.b=o,n.d=i,n.a=a;var s=[],c=[],u=[],d=[]},"./node_modules/beaver-logger/client/config.js":function(e,n,t){"use strict";t.d(n,"a",function(){return r}),t.d(n,"b",function(){return o});var r={uri:"",prefix:"",initial_state_name:"init",flushInterval:6e5,debounceInterval:10,sizeLimit:300,silent:!1,heartbeat:!0,heartbeatConsoleLog:!0,heartbeatInterval:5e3,heartbeatTooBusy:!1,heartbeatTooBusyThreshold:1e4,logLevel:"warn",autoLog:["warn","error"],logUnload:!0,logPerformance:!0},o=["error","warn","info","debug"]},"./node_modules/beaver-logger/client/index.js":function(e,n,t){"use strict";var r=t("./node_modules/beaver-logger/client/interface.js");t.d(n,"a",function(){return r.config}),t.d(n,"b",function(){return r.error}),t.d(n,"c",function(){return r.flush}),t.d(n,"d",function(){return r.info}),t.d(n,"e",function(){return r.logLevels}),t.d(n,"f",function(){return r.warn})},"./node_modules/beaver-logger/client/init.js":function(e,n,t){"use strict";function r(e){Object(i.b)(o.a,e||{}),c||(c=!0,o.a.logPerformance&&Object(a.b)(),o.a.heartbeat&&Object(a.a)(),o.a.logUnload&&(window.addEventListener("beforeunload",function(){Object(s.g)("window_beforeunload"),Object(s.f)({fireAndForget:!0})}),window.addEventListener("unload",function(){Object(s.g)("window_unload"),Object(s.f)({fireAndForget:!0})})),o.a.flushInterval&&setInterval(s.d,o.a.flushInterval),window.beaverLogQueue&&(window.beaverLogQueue.forEach(function(e){Object(s.h)(e.level,e.event,e)}),delete window.beaverLogQueue))}n.a=r;var o=t("./node_modules/beaver-logger/client/config.js"),i=t("./node_modules/beaver-logger/client/util.js"),a=t("./node_modules/beaver-logger/client/performance.js"),s=t("./node_modules/beaver-logger/client/logger.js"),c=!1},"./node_modules/beaver-logger/client/interface.js":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("./node_modules/beaver-logger/client/logger.js");t.d(n,"track",function(){return r.l}),t.d(n,"buffer",function(){return r.a}),t.d(n,"tracking",function(){return r.m}),t.d(n,"getTransport",function(){return r.e}),t.d(n,"setTransport",function(){return r.k}),t.d(n,"print",function(){return r.j}),t.d(n,"immediateFlush",function(){return r.f}),t.d(n,"flush",function(){return r.d}),t.d(n,"log",function(){return r.h}),t.d(n,"prefix",function(){return r.i}),t.d(n,"debug",function(){return r.b}),t.d(n,"info",function(){return r.g}),t.d(n,"warn",function(){return r.n}),t.d(n,"error",function(){return r.c});var o=t("./node_modules/beaver-logger/client/init.js");t.d(n,"init",function(){return o.a});var i=t("./node_modules/beaver-logger/client/transitions.js");t.d(n,"startTransition",function(){return i.b}),t.d(n,"endTransition",function(){return i.a}),t.d(n,"transition",function(){return i.c});var a=t("./node_modules/beaver-logger/client/builders.js");t.d(n,"payloadBuilders",function(){return a.g}),t.d(n,"metaBuilders",function(){return a.f}),t.d(n,"trackingBuilders",function(){return a.h}),t.d(n,"headerBuilders",function(){return a.e}),t.d(n,"addPayloadBuilder",function(){return a.c}),t.d(n,"addMetaBuilder",function(){return a.b}),t.d(n,"addTrackingBuilder",function(){return a.d}),t.d(n,"addHeaderBuilder",function(){return a.a});var s=t("./node_modules/beaver-logger/client/config.js");t.d(n,"config",function(){return s.a}),t.d(n,"logLevels",function(){return s.b})},"./node_modules/beaver-logger/client/logger.js":function(e,n,t){"use strict";function r(){return v}function o(e){v=e}function i(e,n,t){if("undefined"!=typeof window&&window.console&&window.console.log){if(!E)return setTimeout(function(){return i(e,n,t)},1);var r=w.a.logLevel;if(window.LOG_LEVEL&&(r=window.LOG_LEVEL),!(w.b.indexOf(e)>w.b.indexOf(r))){t=t||{};var o=[n];Object(h.c)()&&(t=JSON.stringify(t)),o.push(t),(t.error||t.warning)&&o.push("\n\n",t.error||t.warning);try{window.console[e]&&window.console[e].apply?window.console[e].apply(window.console,o):window.console.log&&window.console.log.apply&&window.console.log.apply(window.console,o)}catch(e){}}}}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.fireAndForget,t=void 0!==n&&n;if("undefined"!=typeof window&&w.a.uri){var r=y.length,o=g.length;if(r||o){for(var i={},a=b.f,s=Array.isArray(a),c=0,a=s?a:a[Symbol.iterator]();;){var u;if(s){if(c>=a.length)break;u=a[c++]}else{if(c=a.next(),c.done)break;u=c.value}var d=u;try{Object(h.b)(i,d(i),!1)}catch(e){console.error("Error in custom meta builder:",e.stack||e.toString())}}for(var l={},f=b.e,p=Array.isArray(f),m=0,f=p?f:f[Symbol.iterator]();;){var E;if(p){if(m>=f.length)break;E=f[m++]}else{if(m=f.next(),m.done)break;E=m.value}var _=E;try{Object(h.b)(l,_(l),!1)}catch(e){console.error("Error in custom header builder:",e.stack||e.toString())}}var O=y,j=v(l,{events:O,meta:i,tracking:g},{fireAndForget:t});return y=[],g=[],j}}}function s(e,n,t){y.push({level:e,event:n,payload:t}),w.a.autoLog.indexOf(e)>-1&&_()}function c(e,n,t){if("undefined"!=typeof window){w.a.prefix&&(n=w.a.prefix+"_"+n),t=t||{},"string"==typeof t?t={message:t}:t instanceof Error&&(t={error:t.stack||t.toString()});try{JSON.stringify(t)}catch(e){return}t.timestamp=Date.now();for(var r=b.g,o=Array.isArray(r),a=0,r=o?r:r[Symbol.iterator]();;){var c;if(o){if(a>=r.length)break;c=r[a++]}else{if(a=r.next(),a.done)break;c=a.value}var u=c;try{Object(h.b)(t,u(t),!1)}catch(e){console.error("Error in custom payload builder:",e.stack||e.toString())}}w.a.silent||i(e,n,t),y.length===w.a.sizeLimit?s("info","logger_max_buffer_length"):y.length=n.length)break;o=n[r++]}else{if(r=n.next(),r.done)break;o=r.value}var a=o;try{Object(h.b)(e,a(e),!1)}catch(e){console.error("Error in custom tracking builder:",e.stack||e.toString())}}i("debug","tracking",e),g.push(e)}}t.d(n,"l",function(){return m}),t.d(n,"a",function(){return y}),t.d(n,"m",function(){return g}),n.e=r,n.k=o,n.j=i,n.f=a,t.d(n,"d",function(){return _}),n.h=c,n.i=u,n.b=d,n.g=l,n.n=f,n.c=p;var h=t("./node_modules/beaver-logger/client/util.js"),b=t("./node_modules/beaver-logger/client/builders.js"),w=t("./node_modules/beaver-logger/client/config.js"),y=[],g=[],v=function(e,n,t){return Object(h.a)("post",w.a.uri,e,n,t)},E=!1;setTimeout(function(){E=!0},1);var _=Object(h.e)(a,w.a.debounceInterval)},"./node_modules/beaver-logger/client/performance.js":function(e,n,t){"use strict";function r(){return f?performance.now():Date.now()}function o(e){return e=void 0!==e?e:r(),{startTime:e,elapsed:function(){return parseInt(r()-e,10)},reset:function(){e=r()}}}function i(){if(f){var e=window.performance.timing;return parseInt(e.connectEnd-e.navigationStart,10)}}function a(){var e=o(),n=0;Object(l.f)(function(){if(!(c.a.heartbeatMaxThreshold&&n>c.a.heartbeatMaxThreshold)){n+=1;var t=e.elapsed(),r=t-c.a.heartbeatInterval,o={count:n,elapsed:t};c.a.heartbeatTooBusy&&(o.lag=r,r>=c.a.heartbeatTooBusyThreshold&&Object(u.g)("toobusy",o,{noConsole:!c.a.heartbeatConsoleLog})),Object(u.g)("heartbeat",o,{noConsole:!c.a.heartbeatConsoleLog})}},c.a.heartbeatInterval)}function s(){if(!f)return Object(u.g)("no_performance_data");Object(d.c)(function(){var e={};return e.client_elapsed=p.elapsed(),f&&(e.req_elapsed=m.elapsed()),e}),Object(l.d)().then(function(){var e=["connectEnd","connectStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","domainLookupEnd","domainLookupStart","fetchStart","loadEventEnd","loadEventStart","navigationStart","redirectEnd","redirectStart","requestStart","responseEnd","responseStart","secureConnectionStart","unloadEventEnd","unloadEventStart"],n={};e.forEach(function(e){n[e]=parseInt(window.performance.timing[e],10)||0});var t=n.connectEnd-n.navigationStart;n.connectEnd&&Object.keys(n).forEach(function(e){var r=n[e];r&&Object(u.g)("timing_"+e,{client_elapsed:parseInt(r-n.connectEnd-(p.startTime-t),10),req_elapsed:parseInt(r-n.connectEnd,10)})}),Object(u.g)("timing",n),Object(u.g)("memory",window.performance.memory),Object(u.g)("navigation",window.performance.navigation),window.performance.getEntries&&window.performance.getEntries().forEach(function(e){["link","script","img","css"].indexOf(e.initiatorType)>-1&&Object(u.g)(e.initiatorType,e)})})}n.c=r,n.d=i,n.a=a,n.b=s;var c=t("./node_modules/beaver-logger/client/config.js"),u=t("./node_modules/beaver-logger/client/logger.js"),d=t("./node_modules/beaver-logger/client/builders.js"),l=t("./node_modules/beaver-logger/client/util.js"),f=window&&window.performance&&performance.now&&performance.timing&&performance.timing.connectEnd&&performance.timing.navigationStart&&Math.abs(performance.now()-Date.now())>1e3&&performance.now()-(performance.timing.connectEnd-performance.timing.navigationStart)>0,p=o(),m=o(i())},"./node_modules/beaver-logger/client/transitions.js":function(e,n,t){"use strict";function r(){m=Object(a.c)()}function o(e){m=m||Object(a.d)();var n=Object(a.c)(),t=void 0;void 0!==m&&(t=parseInt(n-m,0));var r="transition_"+p+"_to_"+e;Object(s.g)(r,{duration:t}),Object(s.l)({transition:r,transition_time:t}),Object(s.f)(),m=n,p=e,f=Object(u.g)()}function i(e){r(),o(e)}n.b=r,n.a=o,n.c=i;var a=t("./node_modules/beaver-logger/client/performance.js"),s=t("./node_modules/beaver-logger/client/logger.js"),c=t("./node_modules/beaver-logger/client/builders.js"),u=t("./node_modules/beaver-logger/client/util.js"),d=t("./node_modules/beaver-logger/client/config.js"),l=Object(u.g)(),f=Object(u.g)(),p=d.a.initial_state_name,m=void 0;Object(c.c)(function(){return{windowID:l,pageID:f}}),Object(c.b)(function(){return{state:"ui_"+p}})},"./node_modules/beaver-logger/client/util.js":function(e,n,t){"use strict";function r(e,n){var t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e=e||{},n=n||{};for(var r in n)n.hasOwnProperty(r)&&(!t&&e.hasOwnProperty(r)||(e[r]=n[r]));return e}function o(e){return window.location.protocol===e.split("/")[0]}function i(e){var n=e.match(/https?:\/\/[^\/]+/);return!n||n[0]===window.location.protocol+"//"+window.location.host}function a(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=a.fireAndForget,c=void 0!==s&&s;return new f.a(function(a){var s=window.XMLHttpRequest||window.ActiveXObject;if(window.XDomainRequest&&!i(n)){if(!o(n))return a();s=window.XDomainRequest}var u=new s("MSXML2.XMLHTTP.3.0");if(u.open(e.toUpperCase(),n,!0),"function"==typeof u.setRequestHeader){u.setRequestHeader("X-Requested-With","XMLHttpRequest"),u.setRequestHeader("Content-type","application/json");for(var d in t)t.hasOwnProperty(d)&&u.setRequestHeader(d,t[d])}c?a():u.onreadystatechange=function(){u.readyState>3&&a()},u.send(JSON.stringify(r).replace(/&/g,"%26"))})}function s(e,n){var t={};return function(){var r=arguments;return t.timeout&&(clearTimeout(t.timeout),delete t.timeout),t.timeout=setTimeout(function(){var n=t.resolver,o=t.rejector;return delete t.promise,delete t.resolver,delete t.rejector,delete t.timeout,f.a.resolve().then(function(){return e.apply(null,r)}).then(n,o)},n),t.promise=t.promise||new f.a(function(e,n){t.resolver=e,t.rejector=n}),t.promise}}function c(){return new f.a(function(e){"undefined"!=typeof document&&"complete"===document.readyState&&e(),window.addEventListener("load",e)})}function u(e,n){function t(){r=setTimeout(function(){e(),t()},n)}var r=void 0;return t(),{cancel:function(){clearTimeout(r)}}}function d(){var e="0123456789abcdef";return"xxxxxxxxxx".replace(/./g,function(){return e.charAt(Math.floor(Math.random()*e.length))})}function l(){return Boolean(window.document.documentMode)}n.b=r,n.a=a,n.e=s,n.d=c,n.f=u,n.g=d,n.c=l;var f=t("./node_modules/zalgo-promise/src/index.js")},"./node_modules/cross-domain-safe-weakmap/src/index.js":function(e,n,t){"use strict";var r=t("./node_modules/cross-domain-safe-weakmap/src/interface.js");t.d(n,"a",function(){return r.WeakMap})},"./node_modules/cross-domain-safe-weakmap/src/interface.js":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("./node_modules/cross-domain-safe-weakmap/src/weakmap.js");t.d(n,"WeakMap",function(){return r.a})},"./node_modules/cross-domain-safe-weakmap/src/native.js":function(e,n,t){"use strict";function r(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var e=new WeakMap,n={};return Object.freeze(n),e.set(n,"__testvalue__"),"__testvalue__"===e.get(n)}catch(e){return!1}}n.a=r},"./node_modules/cross-domain-safe-weakmap/src/util.js":function(e,n,t){"use strict";function r(e,n){for(var t=0;t>>0)+"__"+c,Object(i.a)())try{this.weakmap=new WeakMap}catch(e){}this.keys=[],this.values=[]}return e.prototype._cleanupClosedWindows=function(){for(var e=this.weakmap,n=this.keys,t=0;t0&&void 0!==arguments[0]?arguments[0]:window).location.protocol===F.ABOUT_PROTOCOL}function o(e){if(e)try{if(e.parent&&e.parent!==e)return e.parent}catch(e){}}function i(e){if(e&&!o(e))try{return e.opener}catch(e){}}function a(e){try{return Object(B.b)(e&&e.location&&e.location.href),!0}catch(e){}return!1}function s(e){e=e||window;var n=e.location;if(!n)throw new Error("Can not read window location");var t=n.protocol;if(!t)throw new Error("Can not read window protocol");if(t===F.FILE_PROTOCOL)return F.FILE_PROTOCOL+"//";if(t===F.ABOUT_PROTOCOL){var r=o(e);return r&&a(r)?s(r):F.ABOUT_PROTOCOL+"//"}var i=n.host;if(!i)throw new Error("Can not read window host");return t+"//"+i}function c(e){e=e||window;var n=s(e);return n&&e.mockDomain&&0===e.mockDomain.indexOf(F.MOCK_PROTOCOL)?e.mockDomain:n}function u(e){try{if(e===window)return!0}catch(e){}try{var n=Object.getOwnPropertyDescriptor(e,"location");if(n&&!1===n.enumerable)return!1}catch(e){}try{if(r(e)&&a(e))return!0}catch(e){}try{if(s(e)===s(window))return!0}catch(e){}return!1}function d(e){if(!u(e))return!1;try{if(e===window)return!0;if(r(e)&&a(e))return!0;if(c(window)===c(e))return!0}catch(e){}return!1}function l(e){var n=[];try{for(;e.parent!==e;)n.push(e.parent),e=e.parent}catch(e){}return n}function f(e,n){if(!e||!n)return!1;var t=o(n);return t?t===e:-1!==l(n).indexOf(e)}function p(e){var n=[],t=void 0;try{t=e.frames}catch(n){t=e}var r=void 0;try{r=t.length}catch(e){}if(0===r)return n;if(r){for(var o=0;o=t.length)break;i=t[o++]}else{if(o=t.next(),o.done)break;i=o.value}var a=i;n.push(a);for(var s=m(a),c=Array.isArray(s),u=0,s=c?s:s[Symbol.iterator]();;){var d;if(c){if(u>=s.length)break;d=s[u++]}else{if(u=s.next(),u.done)break;d=u.value}var l=d;n.push(l)}}return n}function h(e){if(e){try{if(e.top)return e.top}catch(e){}if(o(e)===e)return e;try{if(f(window,e)&&window.top)return window.top}catch(e){}try{if(f(e,window)&&window.top)return window.top}catch(e){}for(var n=m(e),t=Array.isArray(n),r=0,n=t?n:n[Symbol.iterator]();;){var i;if(t){if(r>=n.length)break;i=n[r++]}else{if(r=n.next(),r.done)break;i=r.value}var a=i;try{if(a.top)return a.top}catch(e){}if(o(a)===a)return a}}}function b(e){var n=h(e);if(!n)throw new Error("Can not determine top window");return[].concat(m(n),[n])}function w(e){return e===h(e)}function y(e){if(!e.contentWindow)return!0;if(!e.parentNode)return!0;var n=e.ownerDocument;return!(!n||!n.documentElement||n.documentElement.contains(e))}function g(e,n){for(var t=0;t1&&void 0!==arguments[1])||arguments[1];try{if(e===window)return!1}catch(e){return!0}try{if(!e)return!0}catch(e){return!0}try{if(e.closed)return!0}catch(e){return!e||e.message!==H}if(n&&d(e))try{if(e.mockclosed)return!0}catch(e){}try{if(!e.parent||!e.top)return!0}catch(e){}try{Object(B.b)(e===e)}catch(e){return!0}var t=g(q,e);if(-1!==t){var r=Y[t];if(r&&y(r))return!0}return!1}function E(){for(var e=0;e=r.length)break;a=r[i++]}else{if(i=r.next(),i.done)break;a=i.value}var s=a;try{if(d(s)&&s.name===n&&-1!==t.indexOf(s))return s}catch(e){}}try{if(-1!==t.indexOf(e.frames[n]))return e.frames[n]}catch(e){}try{if(-1!==t.indexOf(e[n]))return e[n]}catch(e){}}function S(e,n){var t=j(e,n);if(t)return t;for(var r=p(e),o=Array.isArray(r),i=0,r=o?r:r[Symbol.iterator]();;){var a;if(o){if(i>=r.length)break;a=r[i++]}else{if(i=r.next(),i.done)break;a=i.value}var s=a,c=S(s,n);if(c)return c}}function A(e,n){var t=void 0;return(t=j(e,n))?t:S(h(e)||e,n)}function T(e,n){return e===i(n)}function P(e){e=e||window;var n=i(e);if(n)return n;var t=o(e);return t||void 0}function x(e,n){var t=P(n);if(t)return t===e;if(n===e)return!1;if(h(n)===n)return!1;for(var r=p(e),o=Array.isArray(r),i=0,r=o?r:r[Symbol.iterator]();;){var a;if(o){if(i>=r.length)break;a=r[i++]}else{if(i=r.next(),i.done)break;a=i.value}if(a===n)return!0}return!1}function C(){return Boolean(i(window))}function L(){return Boolean(o(window))}function I(e,n){for(var t=e,r=Array.isArray(t),o=0,t=r?t:t[Symbol.iterator]();;){var i;if(r){if(o>=t.length)break;i=t[o++]}else{if(o=t.next(),o.done)break;i=o.value}for(var a=i,s=n,c=Array.isArray(s),u=0,s=c?s:s[Symbol.iterator]();;){var d;if(c){if(u>=s.length)break;d=s[u++]}else{if(u=s.next(),u.done)break;d=u.value}if(a===d)return!0}}return!1}function N(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,n=0,t=e;t;)(t=o(t))&&(n+=1);return n}function D(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=e,r=0;r1&&void 0!==arguments[1]?arguments[1]:1;return D(e,N(e)-n)}function R(e,n){var t=h(e)||e,r=h(n)||n;try{if(t&&r)return t===r}catch(e){}var o=b(e),a=b(n);if(I(o,a))return!0;var s=i(t),c=i(r);return(!s||!I(b(s),a))&&(c&&I(b(c),o),!1)}function M(e,n){if("string"==typeof e){if("string"==typeof n)return e===F.WILDCARD||n===e;if(Object(B.a)(n))return!1;if(Array.isArray(n))return!1}return Object(B.a)(e)?Object(B.a)(n)?e.toString()===n.toString():!Array.isArray(n)&&Boolean(n.match(e)):!!Array.isArray(e)&&(Array.isArray(n)?JSON.stringify(e)===JSON.stringify(n):!Object(B.a)(n)&&e.some(function(e){return M(e,n)}))}function W(e){return Array.isArray(e)?"("+e.join(" | ")+")":Object(B.a)(e)?"RegExp("+e.toString():e.toString()}function G(e){var n=void 0;return e.match(/^(https?|mock|file):\/\//)?(n=e,n=n.split("/").slice(0,3).join("/")):c()}function U(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,o=void 0;return function i(){if(v(e))return o&&clearTimeout(o),n();r<=0?clearTimeout(o):(r-=t,o=setTimeout(i,t))}(),{cancel:function(){o&&clearTimeout(o)}}}function z(e){try{if(e===window)return!0}catch(e){if(e&&e.message===H)return!0}try{if("[object Window]"===Object.prototype.toString.call(e))return!0}catch(e){if(e&&e.message===H)return!0}try{if(window.Window&&e instanceof window.Window)return!0}catch(e){if(e&&e.message===H)return!0}try{if(e&&e.self===e)return!0}catch(e){if(e&&e.message===H)return!0}try{if(e&&e.parent===e)return!0}catch(e){if(e&&e.message===H)return!0}try{if(e&&e.top===e)return!0}catch(e){if(e&&e.message===H)return!0}try{Object(B.b)(e===e)}catch(e){return!0}try{Object(B.b)(e&&e.__cross_domain_utils_window_check__)}catch(e){return!0}return!1}n.l=o,n.k=i,n.b=s,n.f=c,n.o=u,n.t=d,n.i=p,n.m=h,n.c=b,n.v=w,n.x=v,n.y=_,n.n=O,n.h=j,n.a=A,n.r=T,n.d=P,n.p=x,n.s=C,n.q=L,n.e=N,n.j=k,n.u=R,n.z=M,n.B=W,n.g=G,n.A=U,n.w=z;var B=t("./node_modules/cross-domain-utils/src/util.js"),F={MOCK_PROTOCOL:"mock:",FILE_PROTOCOL:"file:",ABOUT_PROTOCOL:"about:",WILDCARD:"*"},H="Call was rejected by callee.\r\n",q=[],Y=[]},"./node_modules/hi-base32/src/base32.js":function(e,n,t){(function(e,n,r){var o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};/* * [hi-base32]{@link https://github.com/emn178/hi-base32} * * @version 0.5.0 @@ -6,6 +6,6 @@ * @copyright Chen, Yi-Cyuan 2015-2018 * @license MIT */ -!function(){"use strict";var a="object"===("undefined"==typeof window?"undefined":i(window))?window:{};!a.HI_BASE32_NO_NODE_JS&&"object"===(void 0===e?"undefined":i(e))&&e.versions&&e.versions.node&&(a=n);var s=!a.HI_BASE32_NO_COMMON_JS&&"object"===i(r)&&r.exports,c=t("./node_modules/webpack/buildin/amd-options.js"),u="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".split(""),d={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,2:26,3:27,4:28,5:29,6:30,7:31},l=[0,0,0,0,0,0,0,0],f=function(e,n){n.length>10&&(n="..."+n.substr(-10));var t=new Error("Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading "+e+" bytes: "+n+" <-");throw t.position=e,t},p=function(e){for(var n,t,r="",o=e.length,i=0,a=0;i191&&n<=223?(t=31&n,a=1):n<=239?(t=15&n,a=2):n<=247?(t=7&n,a=3):f(i,r);for(var s=0;s191)&&f(i,r),t<<=6,t+=63&n;t>=55296&&t<=57343&&f(i,r),t>1114111&&f(i,r),t<=65535?r+=String.fromCharCode(t):(t-=65536,r+=String.fromCharCode(55296+(t>>10)),r+=String.fromCharCode(56320+(1023&t)))}return r},m=function(e){if(!/^[A-Z2-7=]+$/.test(e))throw new Error("Invalid base32 characters");e=e.replace(/=/g,"");for(var n,t,r,o,i,a,s,c,u=[],l=0,f=e.length,p=0,m=f>>3<<3;p>>2),u[l++]=255&(t<<6|r<<1|o>>>4),u[l++]=255&(o<<4|i>>>1),u[l++]=255&(i<<7|a<<2|s>>>3),u[l++]=255&(s<<5|c);var h=f-m;return 2===h?(n=d[e.charAt(p++)],t=d[e.charAt(p++)],u[l++]=255&(n<<3|t>>>2)):4===h?(n=d[e.charAt(p++)],t=d[e.charAt(p++)],r=d[e.charAt(p++)],o=d[e.charAt(p++)],u[l++]=255&(n<<3|t>>>2),u[l++]=255&(t<<6|r<<1|o>>>4)):5===h?(n=d[e.charAt(p++)],t=d[e.charAt(p++)],r=d[e.charAt(p++)],o=d[e.charAt(p++)],i=d[e.charAt(p++)],u[l++]=255&(n<<3|t>>>2),u[l++]=255&(t<<6|r<<1|o>>>4),u[l++]=255&(o<<4|i>>>1)):7===h&&(n=d[e.charAt(p++)],t=d[e.charAt(p++)],r=d[e.charAt(p++)],o=d[e.charAt(p++)],i=d[e.charAt(p++)],a=d[e.charAt(p++)],s=d[e.charAt(p++)],u[l++]=255&(n<<3|t>>>2),u[l++]=255&(t<<6|r<<1|o>>>4),u[l++]=255&(o<<4|i>>>1),u[l++]=255&(i<<7|a<<2|s>>>3)),u},h=function(e){for(var n,t,r,o,i,a="",s=e.length,c=0,d=5*parseInt(s/5);c>>3]+u[31&(n<<2|t>>>6)]+u[t>>>1&31]+u[31&(t<<4|r>>>4)]+u[31&(r<<1|o>>>7)]+u[o>>>2&31]+u[31&(o<<3|i>>>5)]+u[31&i];var l=s-d;return 1===l?(n=e.charCodeAt(c),a+=u[n>>>3]+u[n<<2&31]+"======"):2===l?(n=e.charCodeAt(c++),t=e.charCodeAt(c),a+=u[n>>>3]+u[31&(n<<2|t>>>6)]+u[t>>>1&31]+u[t<<4&31]+"===="):3===l?(n=e.charCodeAt(c++),t=e.charCodeAt(c++),r=e.charCodeAt(c),a+=u[n>>>3]+u[31&(n<<2|t>>>6)]+u[t>>>1&31]+u[31&(t<<4|r>>>4)]+u[r<<1&31]+"==="):4===l&&(n=e.charCodeAt(c++),t=e.charCodeAt(c++),r=e.charCodeAt(c++),o=e.charCodeAt(c),a+=u[n>>>3]+u[31&(n<<2|t>>>6)]+u[t>>>1&31]+u[31&(t<<4|r>>>4)]+u[31&(r<<1|o>>>7)]+u[o>>>2&31]+u[o<<3&31]+"="),a},b=function(e){var n,t,r,o,i,a,s,c=!1,d="",f=0,p=0,m=0,h=e.length;do{for(l[0]=l[5],l[1]=l[6],l[2]=l[7],s=p;f>6,l[s++]=128|63&a):a<55296||a>=57344?(l[s++]=224|a>>12,l[s++]=128|a>>6&63,l[s++]=128|63&a):(a=65536+((1023&a)<<10|1023&e.charCodeAt(++f)),l[s++]=240|a>>18,l[s++]=128|a>>12&63,l[s++]=128|a>>6&63,l[s++]=128|63&a);m+=s-p,p=s-5,f===h&&++f,f>h&&s<6&&(c=!0),n=l[0],s>4?(t=l[1],r=l[2],o=l[3],i=l[4],d+=u[n>>>3]+u[31&(n<<2|t>>>6)]+u[t>>>1&31]+u[31&(t<<4|r>>>4)]+u[31&(r<<1|o>>>7)]+u[o>>>2&31]+u[31&(o<<3|i>>>5)]+u[31&i]):1===s?d+=u[n>>>3]+u[n<<2&31]+"======":2===s?(t=l[1],d+=u[n>>>3]+u[31&(n<<2|t>>>6)]+u[t>>>1&31]+u[t<<4&31]+"===="):3===s?(t=l[1],r=l[2],d+=u[n>>>3]+u[31&(n<<2|t>>>6)]+u[t>>>1&31]+u[31&(t<<4|r>>>4)]+u[r<<1&31]+"==="):(t=l[1],r=l[2],o=l[3],d+=u[n>>>3]+u[31&(n<<2|t>>>6)]+u[t>>>1&31]+u[31&(t<<4|r>>>4)]+u[31&(r<<1|o>>>7)]+u[o>>>2&31]+u[o<<3&31]+"=")}while(!c);return d},w=function(e){for(var n,t,r,o,i,a="",s=e.length,c=0,d=5*parseInt(s/5);c>>3]+u[31&(n<<2|t>>>6)]+u[t>>>1&31]+u[31&(t<<4|r>>>4)]+u[31&(r<<1|o>>>7)]+u[o>>>2&31]+u[31&(o<<3|i>>>5)]+u[31&i];var l=s-d;return 1===l?(n=e[c],a+=u[n>>>3]+u[n<<2&31]+"======"):2===l?(n=e[c++],t=e[c],a+=u[n>>>3]+u[31&(n<<2|t>>>6)]+u[t>>>1&31]+u[t<<4&31]+"===="):3===l?(n=e[c++],t=e[c++],r=e[c],a+=u[n>>>3]+u[31&(n<<2|t>>>6)]+u[t>>>1&31]+u[31&(t<<4|r>>>4)]+u[r<<1&31]+"==="):4===l&&(n=e[c++],t=e[c++],r=e[c++],o=e[c],a+=u[n>>>3]+u[31&(n<<2|t>>>6)]+u[t>>>1&31]+u[31&(t<<4|r>>>4)]+u[31&(r<<1|o>>>7)]+u[o>>>2&31]+u[o<<3&31]+"="),a},y=function(e,n){var t="string"!=typeof e;return t&&e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),t?w(e):n?h(e):b(e)},g=function(e,n){if(!n)return p(m(e));if(!/^[A-Z2-7=]+$/.test(e))throw new Error("Invalid base32 characters");var t,r,o,i,a,s,c,u,l="",f=e.indexOf("=");-1===f&&(f=e.length);for(var h=0,b=f>>3<<3;h>>2))+String.fromCharCode(255&(r<<6|o<<1|i>>>4))+String.fromCharCode(255&(i<<4|a>>>1))+String.fromCharCode(255&(a<<7|s<<2|c>>>3))+String.fromCharCode(255&(c<<5|u));var w=f-b;return 2===w?(t=d[e.charAt(h++)],r=d[e.charAt(h++)],l+=String.fromCharCode(255&(t<<3|r>>>2))):4===w?(t=d[e.charAt(h++)],r=d[e.charAt(h++)],o=d[e.charAt(h++)],i=d[e.charAt(h++)],l+=String.fromCharCode(255&(t<<3|r>>>2))+String.fromCharCode(255&(r<<6|o<<1|i>>>4))):5===w?(t=d[e.charAt(h++)],r=d[e.charAt(h++)],o=d[e.charAt(h++)],i=d[e.charAt(h++)],a=d[e.charAt(h++)],l+=String.fromCharCode(255&(t<<3|r>>>2))+String.fromCharCode(255&(r<<6|o<<1|i>>>4))+String.fromCharCode(255&(i<<4|a>>>1))):7===w&&(t=d[e.charAt(h++)],r=d[e.charAt(h++)],o=d[e.charAt(h++)],i=d[e.charAt(h++)],a=d[e.charAt(h++)],s=d[e.charAt(h++)],c=d[e.charAt(h++)],l+=String.fromCharCode(255&(t<<3|r>>>2))+String.fromCharCode(255&(r<<6|o<<1|i>>>4))+String.fromCharCode(255&(i<<4|a>>>1))+String.fromCharCode(255&(a<<7|s<<2|c>>>3))),l},v={encode:y,decode:g};g.asBytes=m,s?r.exports=v:(a.base32=v,c&&void 0!==(o=function(){return v}.call(v,t,v,r))&&(r.exports=o))}()}).call(n,t("./node_modules/process/browser.js"),t("./node_modules/webpack/buildin/global.js"),t("./node_modules/webpack/buildin/module.js")(e))},"./node_modules/post-robot/src/bridge/bridge.js":function(e,n,t){"use strict";function r(e){try{d.a.tunnelWindows[e]&&delete d.a.tunnelWindows[e].source}catch(e){}delete d.a.tunnelWindows[e]}function o(){for(var e=d.a.tunnelWindows,n=Object.keys(e),t=Array.isArray(n),o=0,n=t?n:n[Symbol.iterator]();;){var i;if(t){if(o>=n.length)break;i=n[o++]}else{if(o=n.next(),o.done)break;i=o.value}var a=i,c=e[a];try{Object(u.j)(c.source)}catch(e){r(a);continue}Object(s.isWindowClosed)(c.source)&&r(a)}}function i(e){var n=e.name,t=e.source,r=e.canary,i=e.sendMessage;return o(),d.a.tunnelWindowId+=1,d.a.tunnelWindows[d.a.tunnelWindowId]={name:n,source:t,canary:r,sendMessage:i},d.a.tunnelWindowId}function a(e){return d.a.tunnelWindows[e]}var s=(t("./node_modules/zalgo-promise/src/index.js"),t("./node_modules/cross-domain-utils/src/index.js")),c=t("./node_modules/post-robot/src/conf/index.js"),u=t("./node_modules/post-robot/src/lib/index.js"),d=t("./node_modules/post-robot/src/global.js");d.a.tunnelWindows=d.a.tunnelWindows||{},d.a.tunnelWindowId=0,d.a.openTunnelToParent=function(e){var n=e.name,t=e.source,o=e.canary,l=e.sendMessage,f=Object(s.getParent)(window);if(!f)throw new Error("No parent window found to open tunnel to");var p=i({name:n,source:t,canary:o,sendMessage:l});return d.a.send(f,c.b.POST_MESSAGE_NAMES.OPEN_TUNNEL,{name:n,sendMessage:function(){var e=a(p);try{Object(u.j)(e&&e.source)}catch(e){return void r(p)}if(e&&e.source&&!Object(s.isWindowClosed)(e.source)){try{e.canary()}catch(e){return}e.sendMessage.apply(this,arguments)}}},{domain:c.b.WILDCARD})}},"./node_modules/post-robot/src/bridge/child.js":function(e,n,t){"use strict";function r(){return o.a.try(function(){var e=Object(i.getOpener)(window);if(e&&Object(u.e)({win:e}))return Object(u.j)(e),d(e).then(function(n){return n?window.name?n[a.b.WINDOW_PROPS.POSTROBOT].openTunnelToParent({name:window.name,source:window,canary:function(){},sendMessage:function(e){try{Object(s.j)(window)}catch(e){return}if(window&&!window.closed)try{c.a.receiveMessage({data:e,origin:this.origin,source:this.source})}catch(e){o.a.reject(e)}}}).then(function(n){var t=n.source,r=n.origin,o=n.data;if(t!==e)throw new Error("Source does not match opener");Object(u.i)(t,r,o.sendMessage)}).catch(function(n){throw Object(u.k)(e,n),n}):Object(u.k)(e,new Error("Can not register with opener: window does not have a name")):Object(u.k)(e,new Error("Can not register with opener: no bridge found in opener"))})})}n.a=r;var o=t("./node_modules/zalgo-promise/src/index.js"),i=t("./node_modules/cross-domain-utils/src/index.js"),a=t("./node_modules/post-robot/src/conf/index.js"),s=t("./node_modules/post-robot/src/lib/index.js"),c=t("./node_modules/post-robot/src/global.js"),u=t("./node_modules/post-robot/src/bridge/common.js"),d=Object(s.r)(function(e){return o.a.try(function(){for(var n=Object(i.getFrames)(e),t=Array.isArray(n),r=0,n=t?n:n[Symbol.iterator]();;){var s;if(t){if(r>=n.length)break;s=n[r++]}else{if(r=n.next(),r.done)break;s=r.value}var c=s;try{if(c&&c!==window&&Object(i.isSameDomain)(c)&&c[a.b.WINDOW_PROPS.POSTROBOT])return c}catch(e){continue}}try{var d=Object(i.getFrameByName)(e,Object(u.c)(Object(i.getDomain)()));if(!d)return;return Object(i.isSameDomain)(d)&&d[a.b.WINDOW_PROPS.POSTROBOT]?d:new o.a(function(e){var n=void 0,t=void 0;n=setInterval(function(){if(d&&Object(i.isSameDomain)(d)&&d[a.b.WINDOW_PROPS.POSTROBOT])return clearInterval(n),clearTimeout(t),e(d)},100),t=setTimeout(function(){return clearInterval(n),e()},2e3)})}catch(e){}})})},"./node_modules/post-robot/src/bridge/common.js":function(e,n,t){"use strict";function r(){return!!Object(b.getUserAgent)(window).match(/MSIE|trident|edge\/12|edge\/13/i)||!w.a.ALLOW_POSTMESSAGE_POPUP}function o(e){return!Object(b.isSameTopWindow)(window,e)}function i(e,n){if(e){if(Object(b.getDomain)()!==Object(b.getDomainFromUrl)(e))return!0}else if(n&&!Object(b.isSameDomain)(n))return!0;return!1}function a(e){var n=e.win,t=e.domain;return!!r()&&(!(t&&!i(t,n))&&!(n&&!o(n)))}function s(e){e=e||Object(b.getDomainFromUrl)(e);var n=e.replace(/[^a-zA-Z0-9]+/g,"_");return w.b.BRIDGE_NAME_PREFIX+"_"+n}function c(){return Boolean(window.name&&window.name===s(Object(b.getDomain)()))}function u(e){y.a.remoteWindows.set(e,{sendMessagePromise:new h.a})}function d(e){return y.a.remoteWindows.get(e)}function l(e,n,t){var r=d(e);if(!r)throw new Error("Window not found to register sendMessage to");var o=function(r,o,i){if(r!==e)throw new Error("Remote window does not match window");if(!Object(b.matchDomain)(i,n))throw new Error("Remote domain "+i+" does not match domain "+n);t(o)};r.sendMessagePromise.resolve(o),r.sendMessagePromise=h.a.resolve(o)}function f(e,n){var t=d(e);if(!t)throw new Error("Window not found on which to reject sendMessage");t.sendMessagePromise.asyncReject(n)}function p(e,n,t){var r=Object(b.isOpener)(window,e),o=Object(b.isOpener)(e,window);if(!r&&!o)throw new Error("Can only send messages to and from parent and popup windows");var i=d(e);if(!i)throw new Error("Window not found to send message to");return i.sendMessagePromise.then(function(r){return r(e,n,t)})}n.f=r,n.h=o,n.g=i,n.e=a,n.c=s,n.d=c,t.d(n,"a",function(){return g}),n.j=u,n.b=d,n.i=l,n.k=f,n.l=p;var m=t("./node_modules/cross-domain-safe-weakmap/src/index.js"),h=t("./node_modules/zalgo-promise/src/index.js"),b=t("./node_modules/cross-domain-utils/src/index.js"),w=t("./node_modules/post-robot/src/conf/index.js"),y=t("./node_modules/post-robot/src/global.js"),g=new h.a(function(e){if(window.document&&window.document.body)return e(window.document.body);var n=setInterval(function(){if(window.document&&window.document.body)return clearInterval(n),e(window.document.body)},10)});y.a.remoteWindows=y.a.remoteWindows||new m.a},"./node_modules/post-robot/src/bridge/index.js":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=(t("./node_modules/post-robot/src/bridge/bridge.js"),t("./node_modules/post-robot/src/bridge/child.js"));t.d(n,"openTunnelToOpener",function(){return r.a});var o=t("./node_modules/post-robot/src/bridge/common.js");t.d(n,"needsBridgeForBrowser",function(){return o.f}),t.d(n,"needsBridgeForWin",function(){return o.h}),t.d(n,"needsBridgeForDomain",function(){return o.g}),t.d(n,"needsBridge",function(){return o.e}),t.d(n,"getBridgeName",function(){return o.c}),t.d(n,"isBridge",function(){return o.d}),t.d(n,"documentBodyReady",function(){return o.a}),t.d(n,"registerRemoteWindow",function(){return o.j}),t.d(n,"findRemoteWindow",function(){return o.b}),t.d(n,"registerRemoteSendMessage",function(){return o.i}),t.d(n,"rejectRemoteSendMessage",function(){return o.k}),t.d(n,"sendBridgeMessage",function(){return o.l});var i=t("./node_modules/post-robot/src/bridge/parent.js");t.d(n,"hasBridge",function(){return i.b}),t.d(n,"openBridge",function(){return i.d}),t.d(n,"linkUrl",function(){return i.c}),t.d(n,"destroyBridges",function(){return i.a})},"./node_modules/post-robot/src/bridge/interface.js":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("./node_modules/post-robot/src/bridge/index.js");t.d(n,"openBridge",function(){return r.openBridge}),t.d(n,"linkUrl",function(){return r.linkUrl}),t.d(n,"isBridge",function(){return r.isBridge}),t.d(n,"needsBridge",function(){return r.needsBridge}),t.d(n,"needsBridgeForBrowser",function(){return r.needsBridgeForBrowser}),t.d(n,"hasBridge",function(){return r.hasBridge}),t.d(n,"needsBridgeForWin",function(){return r.needsBridgeForWin}),t.d(n,"needsBridgeForDomain",function(){return r.needsBridgeForDomain}),t.d(n,"openTunnelToOpener",function(){return r.openTunnelToOpener}),t.d(n,"destroyBridges",function(){return r.destroyBridges})},"./node_modules/post-robot/src/bridge/parent.js":function(e,n,t){"use strict";function r(e,n){m.a.on(f.b.POST_MESSAGE_NAMES.OPEN_TUNNEL,{window:e,domain:n},function(e){var t=e.origin,r=e.data;if(t!==n)throw new Error("Domain "+n+" does not match origin "+t);if(!r.name)throw new Error("Register window expected to be passed window name");if(!r.sendMessage)throw new Error("Register window expected to be passed sendMessage method");if(!m.a.popupWindowsByName[r.name])throw new Error("Window with name "+r.name+" does not exist, or was not opened by this window");if(!m.a.popupWindowsByName[r.name].domain)throw new Error("We do not have a registered domain for window "+r.name);if(m.a.popupWindowsByName[r.name].domain!==t)throw new Error("Message origin "+t+" does not matched registered window origin "+m.a.popupWindowsByName[r.name].domain);return Object(h.i)(m.a.popupWindowsByName[r.name].win,n,r.sendMessage),{sendMessage:function(e){if(window&&!window.closed){var n=m.a.popupWindowsByName[r.name];if(n)try{m.a.receiveMessage({data:e,origin:n.domain,source:n.win})}catch(e){d.a.reject(e)}}}}})}function o(e,n){var t=document.createElement("iframe");return t.setAttribute("name",e),t.setAttribute("id",e),t.setAttribute("style","display: none; margin: 0; padding: 0; border: 0px none; overflow: hidden;"),t.setAttribute("frameborder","0"),t.setAttribute("border","0"),t.setAttribute("scrolling","no"),t.setAttribute("allowTransparency","true"),t.setAttribute("tabindex","-1"),t.setAttribute("hidden","true"),t.setAttribute("title",""),t.setAttribute("role","presentation"),t.src=n,t}function i(e,n){return n=n||Object(l.getDomainFromUrl)(e),Boolean(m.a.bridges[n])}function a(e,n){return n=n||Object(l.getDomainFromUrl)(e),m.a.bridges[n]?m.a.bridges[n]:(m.a.bridges[n]=d.a.try(function(){if(Object(l.getDomain)()===n)throw new Error("Can not open bridge on the same domain as current domain: "+n);var t=Object(h.c)(n);if(Object(l.getFrameByName)(window,t))throw new Error("Frame with name "+t+" already exists on page");var i=o(t,e);return m.a.bridgeFrames[n]=i,h.a.then(function(t){t.appendChild(i);var o=i.contentWindow;return r(o,n),new d.a(function(e,n){i.onload=e,i.onerror=n}).then(function(){return Object(p.k)(o,f.a.BRIDGE_TIMEOUT,"Bridge "+e)}).then(function(){return o})})}),m.a.bridges[n])}function s(e,n){var t=m.a.popupWindowsByWin.get(e);t&&(t.domain=Object(l.getDomainFromUrl)(n),Object(h.j)(e))}function c(){for(var e=Object.keys(m.a.bridgeFrames),n=Array.isArray(e),t=0,e=n?e:e[Symbol.iterator]();;){var r;if(n){if(t>=e.length)break;r=e[t++]}else{if(t=e.next(),t.done)break;r=t.value}var o=r,i=m.a.bridgeFrames[o];i.parentNode&&i.parentNode.removeChild(i)}m.a.bridgeFrames={},m.a.bridges={}}n.b=i,n.d=a,n.c=s,n.a=c;var u=t("./node_modules/cross-domain-safe-weakmap/src/index.js"),d=t("./node_modules/zalgo-promise/src/index.js"),l=t("./node_modules/cross-domain-utils/src/index.js"),f=t("./node_modules/post-robot/src/conf/index.js"),p=t("./node_modules/post-robot/src/lib/index.js"),m=t("./node_modules/post-robot/src/global.js"),h=t("./node_modules/post-robot/src/bridge/common.js");m.a.bridges=m.a.bridges||{},m.a.bridgeFrames=m.a.bridgeFrames||{},m.a.popupWindowsByWin=m.a.popupWindowsByWin||new u.a,m.a.popupWindowsByName=m.a.popupWindowsByName||{};var b=window.open;window.open=function(e,n,t,r){var o=e;if(e&&0===e.indexOf(f.b.MOCK_PROTOCOL)){var i=e.split("|");o=i[0],e=i[1]}o&&(o=Object(l.getDomainFromUrl)(o));var a=b.call(this,e,n,t,r);if(!a)return a;e&&Object(h.j)(a);for(var s=Object.keys(m.a.popupWindowsByName),c=Array.isArray(s),u=0,s=c?s:s[Symbol.iterator]();;){var d;if(c){if(u>=s.length)break;d=s[u++]}else{if(u=s.next(),u.done)break;d=u.value}var p=d;Object(l.isWindowClosed)(m.a.popupWindowsByName[p].win)&&delete m.a.popupWindowsByName[p]}if(n&&a){var w=m.a.popupWindowsByWin.get(a)||m.a.popupWindowsByName[n]||{};w.name=w.name||n,w.win=w.win||a,w.domain=w.domain||o,m.a.popupWindowsByWin.set(a,w),m.a.popupWindowsByName[n]=w}return a}},"./node_modules/post-robot/src/clean.js":function(e,n,t){"use strict";function r(e){var n=o.a.requestPromises.get(e);if(n)for(var t=n,r=Array.isArray(t),i=0,t=r?t:t[Symbol.iterator]();;){var a;if(r){if(i>=t.length)break;a=t[i++]}else{if(i=t.next(),i.done)break;a=i.value}var s=a;s.reject(new Error("No response from window - cleaned up"))}o.a.popupWindowsByWin&&o.a.popupWindowsByWin.delete(e),o.a.remoteWindows&&o.a.remoteWindows.delete(e),o.a.requestPromises.delete(e),o.a.methods.delete(e),o.a.readyPromises.delete(e)}n.a=r;var o=(t("./node_modules/cross-domain-utils/src/index.js"),t("./node_modules/post-robot/src/global.js"))},"./node_modules/post-robot/src/compat/ie.js":function(e,n,t){"use strict";function r(e,n){if(!i.a.ALLOW_POSTMESSAGE_POPUP&&!1===Object(o.isSameTopWindow)(e,n))throw new Error("Can not send and receive post messages between two different windows (disabled to emulate IE)")}n.a=r;var o=t("./node_modules/cross-domain-utils/src/index.js"),i=t("./node_modules/post-robot/src/conf/index.js")},"./node_modules/post-robot/src/compat/index.js":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("./node_modules/post-robot/src/compat/ie.js");t.d(n,"emulateIERestrictions",function(){return r.a})},"./node_modules/post-robot/src/conf/config.js":function(e,n,t){"use strict";t.d(n,"a",function(){return i});var r,o=t("./node_modules/post-robot/src/conf/constants.js"),i={ALLOW_POSTMESSAGE_POPUP:"__ALLOW_POSTMESSAGE_POPUP__"in window?window.__ALLOW_POSTMESSAGE_POPUP__:{__IE_POPUP_SUPPORT__:!1,__ALLOW_POSTMESSAGE_POPUP__:!0}.__ALLOW_POSTMESSAGE_POPUP__,BRIDGE_TIMEOUT:5e3,CHILD_WINDOW_TIMEOUT:5e3,ACK_TIMEOUT:-1!==window.navigator.userAgent.match(/MSIE/i)?2e3:1e3,RES_TIMEOUT:-1,ALLOWED_POST_MESSAGE_METHODS:(r={},r[o.a.SEND_STRATEGIES.POST_MESSAGE]=!0,r[o.a.SEND_STRATEGIES.BRIDGE]=!0,r[o.a.SEND_STRATEGIES.GLOBAL]=!0,r),ALLOW_SAME_ORIGIN:!1};0===window.location.href.indexOf(o.a.FILE_PROTOCOL)&&(i.ALLOW_POSTMESSAGE_POPUP=!0)},"./node_modules/post-robot/src/conf/constants.js":function(e,n,t){"use strict";t.d(n,"a",function(){return r});var r={POST_MESSAGE_TYPE:{REQUEST:"postrobot_message_request",RESPONSE:"postrobot_message_response",ACK:"postrobot_message_ack"},POST_MESSAGE_ACK:{SUCCESS:"success",ERROR:"error"},POST_MESSAGE_NAMES:{METHOD:"postrobot_method",HELLO:"postrobot_ready",OPEN_TUNNEL:"postrobot_open_tunnel"},WINDOW_TYPES:{FULLPAGE:"fullpage",POPUP:"popup",IFRAME:"iframe"},WINDOW_PROPS:{POSTROBOT:"__postRobot__"},SERIALIZATION_TYPES:{METHOD:"postrobot_method",ERROR:"postrobot_error",PROMISE:"postrobot_promise",ZALGO_PROMISE:"postrobot_zalgo_promise",REGEX:"regex"},SEND_STRATEGIES:{POST_MESSAGE:"postrobot_post_message",BRIDGE:"postrobot_bridge",GLOBAL:"postrobot_global"},MOCK_PROTOCOL:"mock:",FILE_PROTOCOL:"file:",BRIDGE_NAME_PREFIX:"__postrobot_bridge__",POSTROBOT_PROXY:"__postrobot_proxy__",WILDCARD:"*"},o={METHOD:"postrobot_method",HELLO:"postrobot_hello",OPEN_TUNNEL:"postrobot_open_tunnel"};Object.keys(o).map(function(e){return o[e]})},"./node_modules/post-robot/src/conf/index.js":function(e,n,t){"use strict";var r=t("./node_modules/post-robot/src/conf/config.js");t.d(n,"a",function(){return r.a});var o=t("./node_modules/post-robot/src/conf/constants.js");t.d(n,"b",function(){return o.a})},"./node_modules/post-robot/src/drivers/index.js":function(e,n,t){"use strict";var r=t("./node_modules/post-robot/src/drivers/receive/index.js");t.d(n,"d",function(){return r.a}),t.d(n,"f",function(){return r.b});var o=t("./node_modules/post-robot/src/drivers/send/index.js");t.d(n,"g",function(){return o.a});var i=t("./node_modules/post-robot/src/drivers/listeners.js");t.d(n,"a",function(){return i.a}),t.d(n,"b",function(){return i.b}),t.d(n,"c",function(){return i.c}),t.d(n,"e",function(){return i.g})},"./node_modules/post-robot/src/drivers/listeners.js":function(e,n,t){"use strict";function r(e,n){f.a.responseListeners[e]=n}function o(e){return f.a.responseListeners[e]}function i(e){delete f.a.responseListeners[e]}function a(e){f.a.erroredResponseListeners[e]=!0}function s(e){return Boolean(f.a.erroredResponseListeners[e])}function c(e){var n=e.name,t=e.win,r=e.domain;if(t===m.b.WILDCARD&&(t=null),r===m.b.WILDCARD&&(r=null),!n)throw new Error("Name required to get request listener");var o=f.a.requestListeners[n];if(o)for(var i=[t,f.a.WINDOW_WILDCARD],a=0;a=u.length)break;b=u[p++]}else{if(p=u.next(),p.done)break;b=p.value}var w=b,y=w.regex,g=w.listener;if(Object(l.matchDomain)(y,r))return g}}if(c[m.b.WILDCARD])return c[m.b.WILDCARD]}}}function u(e,n){var t=e.name,r=e.win,o=e.domain;if(!t||"string"!=typeof t)throw new Error("Name required to add request listener");if(Array.isArray(r)){for(var i=[],a=r,s=Array.isArray(a),l=0,a=s?a:a[Symbol.iterator]();;){var b;if(s){if(l>=a.length)break;b=a[l++]}else{if(l=a.next(),l.done)break;b=l.value}var w=b;i.push(u({name:t,domain:o,win:w},n))}return{cancel:function(){for(var e=i,n=Array.isArray(e),t=0,e=n?e:e[Symbol.iterator]();;){var r;if(n){if(t>=e.length)break;r=e[t++]}else{if(t=e.next(),t.done)break;r=t.value}r.cancel()}}}}if(Array.isArray(o)){for(var y=[],g=o,v=Array.isArray(g),E=0,g=v?g:g[Symbol.iterator]();;){var _;if(v){if(E>=g.length)break;_=g[E++]}else{if(E=g.next(),E.done)break;_=E.value}var O=_;y.push(u({name:t,win:r,domain:O},n))}return{cancel:function(){for(var e=y,n=Array.isArray(e),t=0,e=n?e:e[Symbol.iterator]();;){var r;if(n){if(t>=e.length)break;r=e[t++]}else{if(t=e.next(),t.done)break;r=t.value}r.cancel()}}}}var j=c({name:t,win:r,domain:o});if(r&&r!==m.b.WILDCARD||(r=f.a.WINDOW_WILDCARD),o=o||m.b.WILDCARD,j)throw r&&o?new Error("Request listener already exists for "+t+" on domain "+o.toString()+" for "+(r===f.a.WINDOW_WILDCARD?"wildcard":"specified")+" window"):r?new Error("Request listener already exists for "+t+" for "+(r===f.a.WINDOW_WILDCARD?"wildcard":"specified")+" window"):o?new Error("Request listener already exists for "+t+" on domain "+o.toString()):new Error("Request listener already exists for "+t);var S=f.a.requestListeners,A=S[t];A||(A=new d.a,S[t]=A);var T=A.get(r);T||(T={},A.set(r,T));var P=o.toString(),x=T[h],C=void 0;return Object(p.e)(o)?(x||(x=[],T[h]=x),C={regex:o,listener:n},x.push(C)):T[P]=n,{cancel:function(){T&&(delete T[P],r&&0===Object.keys(T).length&&A.delete(r),C&&x.splice(x.indexOf(C,1)))}}}n.b=r,n.e=o,n.c=i,n.g=a,n.f=s,n.d=c,n.a=u;var d=(t("./node_modules/zalgo-promise/src/index.js"),t("./node_modules/cross-domain-safe-weakmap/src/index.js")),l=t("./node_modules/cross-domain-utils/src/index.js"),f=t("./node_modules/post-robot/src/global.js"),p=t("./node_modules/post-robot/src/lib/index.js"),m=t("./node_modules/post-robot/src/conf/index.js");f.a.responseListeners=f.a.responseListeners||{},f.a.requestListeners=f.a.requestListeners||{},f.a.WINDOW_WILDCARD=f.a.WINDOW_WILDCARD||new function(){},f.a.erroredResponseListeners=f.a.erroredResponseListeners||{};var h="__domain_regex__"},"./node_modules/post-robot/src/drivers/receive/index.js":function(e,n,t){"use strict";function r(e){var n=void 0;try{n=Object(u.f)(e)}catch(e){return}if(n&&"object"===(void 0===n?"undefined":f(n))&&null!==n&&(n=n[c.b.WINDOW_PROPS.POSTROBOT])&&"object"===(void 0===n?"undefined":f(n))&&null!==n&&n.type&&"string"==typeof n.type&&l.a[n.type])return n}function o(e){if(!window||window.closed)throw new Error("Message recieved in closed window");try{if(!e.source)return}catch(e){return}var n=e.source,t=e.origin,o=e.data,i=r(o);if(i){if(!i.sourceDomain||"string"!=typeof i.sourceDomain)throw new Error("Expected message to have sourceDomain");if(0!==i.sourceDomain.indexOf(c.b.MOCK_PROTOCOL)&&0!==i.sourceDomain.indexOf(c.b.FILE_PROTOCOL)||(t=i.sourceDomain),-1===d.a.receivedMessages.indexOf(i.id)){d.a.receivedMessages.push(i.id);Object(s.isWindowClosed)(n)&&!i.fireAndForget||(i.data&&(i.data=Object(u.b)(n,t,i.data)),l.a[i.type](n,t,i))}}}function i(e){try{Object(u.j)(e.source)}catch(e){return}var n={source:e.source||e.sourceElement,origin:e.origin||e.originalEvent&&e.originalEvent.origin,data:e.data};if({__IE_POPUP_SUPPORT__:!1,__ALLOW_POSTMESSAGE_POPUP__:!0}.__IE_POPUP_SUPPORT__)try{t("./node_modules/post-robot/src/compat/index.js").emulateIERestrictions(n.source,window)}catch(e){return}o(n)}function a(){Object(u.a)(window,"message",i)}n.b=i,n.a=a;var s=t("./node_modules/cross-domain-utils/src/index.js"),c=t("./node_modules/post-robot/src/conf/index.js"),u=t("./node_modules/post-robot/src/lib/index.js"),d=t("./node_modules/post-robot/src/global.js"),l=t("./node_modules/post-robot/src/drivers/receive/types.js"),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};d.a.receivedMessages=d.a.receivedMessages||[],d.a.receiveMessage=o},"./node_modules/post-robot/src/drivers/receive/types.js":function(e,n,t){"use strict";t.d(n,"a",function(){return l});var r,o=t("./node_modules/zalgo-promise/src/index.js"),i=t("./node_modules/cross-domain-utils/src/index.js"),a=t("./node_modules/post-robot/src/conf/index.js"),s=t("./node_modules/post-robot/src/lib/index.js"),c=t("./node_modules/post-robot/src/drivers/send/index.js"),u=t("./node_modules/post-robot/src/drivers/listeners.js"),d=Object.assign||function(e){for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:{},r=Object(c.q)(),o=Object(c.c)(),a=Object(i.getDomain)(window);return d({},n,t,{sourceDomain:a,id:n.id||r,windowType:o})}function o(e,n,t){return a.a.try(function(){var o;n=r(e,n,{data:Object(c.o)(e,t,n.data),domain:t});if(e===window&&!s.a.ALLOW_SAME_ORIGIN)throw new Error("Attemping to send message to self");if(Object(i.isWindowClosed)(e))throw new Error("Window is closed");var d=[],l=Object(c.g)((o={},o[s.b.WINDOW_PROPS.POSTROBOT]=n,o),null,2);return a.a.map(Object.keys(u.a),function(n){return a.a.try(function(){if(!s.a.ALLOWED_POST_MESSAGE_METHODS[n])throw new Error("Strategy disallowed: "+n);return u.a[n](e,l,t)}).then(function(){return d.push(n+": success"),!0},function(e){return d.push(n+": "+Object(c.p)(e)+"\n"),!1})}).then(function(e){var t=e.some(Boolean),r=n.type+" "+n.name+" "+(t?"success":"error")+":\n - "+d.join("\n - ")+"\n";if(!t)throw new Error(r)})})}n.a=o;var i=t("./node_modules/cross-domain-utils/src/index.js"),a=t("./node_modules/zalgo-promise/src/index.js"),s=t("./node_modules/post-robot/src/conf/index.js"),c=t("./node_modules/post-robot/src/lib/index.js"),u=t("./node_modules/post-robot/src/drivers/send/strategies.js"),d=Object.assign||function(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:5e3,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Window",r=l.a.readyPromises.get(e);return r||(r=new u.a,l.a.readyPromises.set(e,r),-1!==n&&setTimeout(function(){return r.reject(new Error(t+" did not load after "+n+"ms"))},n),r)}n.c=o,n.a=i,n.b=a;var s=t("./node_modules/cross-domain-safe-weakmap/src/index.js"),c=t("./node_modules/cross-domain-utils/src/index.js"),u=t("./node_modules/zalgo-promise/src/index.js"),d=t("./node_modules/post-robot/src/conf/index.js"),l=t("./node_modules/post-robot/src/global.js"),f=t("./node_modules/post-robot/src/lib/util.js");l.a.readyPromises=l.a.readyPromises||new s.a},"./node_modules/post-robot/src/lib/serialize.js":function(e,n,t){"use strict";function r(e,n){return"object"===(void 0===e?"undefined":_(e))&&null!==e&&e.__type__===n}function o(e,n,t,r){var o=Object(E.l)(),i=v.a.methods.get(e);return i||(i={},v.a.methods.set(e,i)),i[o]={domain:n,method:t},{__type__:g.b.SERIALIZATION_TYPES.METHOD,__id__:o,__name__:r}}function i(e){return{__type__:g.b.SERIALIZATION_TYPES.ERROR,__message__:Object(E.k)(e),__code__:e.code}}function a(e,n,t,r){return{__type__:g.b.SERIALIZATION_TYPES.PROMISE,__then__:o(e,n,function(e,n){return t.then(e,n)},r+".then")}}function s(e,n,t,r){return{__type__:g.b.SERIALIZATION_TYPES.ZALGO_PROMISE,__then__:o(e,n,function(e,n){return t.then(e,n)},r+".then")}}function c(e){return{__type__:g.b.SERIALIZATION_TYPES.REGEX,__source__:e.source}}function u(e,n,t){return Object(E.i)({obj:t},function(t,r){return"function"==typeof t?o(e,n,t,r.toString()):t instanceof Error?i(t):window.Promise&&t instanceof window.Promise?a(e,n,t,r.toString()):y.a.isPromise(t)?s(e,n,t,r.toString()):Object(E.c)(t)?c(t):void 0}).obj}function d(e,n,t){function r(){var r=Array.prototype.slice.call(arguments);return v.a.send(e,g.b.POST_MESSAGE_NAMES.METHOD,{id:t.__id__,name:t.__name__,args:r},{domain:n,timeout:-1}).then(function(e){return e.data.result},function(e){throw e})}return r.__name__=t.__name__,r.__xdomain__=!0,r.source=e,r.origin=n,r}function l(e,n,t){var r=new Error(t.__message__);return t.__code__&&(r.code=t.__code__),r}function f(e,n,t){return new y.a(function(r,o){return d(e,n,t.__then__)(r,o)})}function p(e,n,t){return window.Promise?new window.Promise(function(r,o){return d(e,n,t.__then__)(r,o)}):f(e,n,t)}function m(e,n,t){return new RegExp(t.__source__)}function h(e,n,t){return Object(E.i)({obj:t},function(t){if("object"===(void 0===t?"undefined":_(t))&&null!==t)return r(t,g.b.SERIALIZATION_TYPES.METHOD)?d(e,n,t):r(t,g.b.SERIALIZATION_TYPES.ERROR)?l(e,n,t):r(t,g.b.SERIALIZATION_TYPES.PROMISE)?p(e,n,t):r(t,g.b.SERIALIZATION_TYPES.ZALGO_PROMISE)?f(e,n,t):r(t,g.b.SERIALIZATION_TYPES.REGEX)?m(e,n,t):void 0}).obj}t.d(n,"b",function(){return O}),n.c=u,n.a=h;var b=t("./node_modules/cross-domain-safe-weakmap/src/index.js"),w=t("./node_modules/cross-domain-utils/src/index.js"),y=t("./node_modules/zalgo-promise/src/index.js"),g=t("./node_modules/post-robot/src/conf/index.js"),v=t("./node_modules/post-robot/src/global.js"),E=t("./node_modules/post-robot/src/lib/util.js"),_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};v.a.methods=v.a.methods||new b.a;var O=Object(E.h)(function(){v.a.on(g.b.POST_MESSAGE_NAMES.METHOD,{origin:g.b.WILDCARD},function(e){var n=e.source,t=e.origin,r=e.data,o=v.a.methods.get(n);if(!o)throw new Error("Could not find any methods this window has privileges to call");var i=o[r.id];if(!i)throw new Error("Could not find method with id: "+r.id);if(!Object(w.matchDomain)(i.domain,t))throw new Error("Method domain "+i.domain+" does not match origin "+t);return y.a.try(function(){return i.method.apply({source:n,origin:t,data:r},r.args)}).then(function(e){return{result:e,id:r.id,name:r.name}})})})},"./node_modules/post-robot/src/lib/util.js":function(e,n,t){"use strict";function r(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(n>=3)return"stringifyError stack overflow";try{if(!e)return"";if("string"==typeof e)return e;if(e instanceof Error){var t=e&&e.stack,o=e&&e.message;if(t&&o)return-1!==t.indexOf(o)?t:o+"\n"+t;if(t)return t;if(o)return o}return"function"==typeof e.toString?e.toString():Object.prototype.toString.call(e)}catch(e){return"Error while stringifying error: "+r(e,n+1)}}function o(){}function i(e,n,t){return e.addEventListener?e.addEventListener(n,t):e.attachEvent("on"+n,t),{cancel:function(){e.removeEventListener?e.removeEventListener(n,t):e.detachEvent("on"+n,t)}}}function a(){var e="0123456789abcdef";return"xxxxxxxxxx".replace(/./g,function(){return e.charAt(Math.floor(Math.random()*e.length))})}function s(e,n){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:1;if(t>=100)throw new Error("Self-referential object passed, or object contained too many layers");var r=void 0;if("object"!==(void 0===e?"undefined":v(e))||null===e||Array.isArray(e)){if(!Array.isArray(e))throw new TypeError("Invalid type: "+(void 0===e?"undefined":v(e)));r=[]}else r={};return u(e,function(e,o){var i=n(e,o);void 0!==i?r[o]=i:"object"===(void 0===e?"undefined":v(e))&&null!==e?r[o]=d(e,n,t+1):r[o]=e}),r}function l(e,n){function t(){r=setTimeout(t,n),e.call()}var r=void 0;return r=setTimeout(t,n),{cancel:function(){clearTimeout(r)}}}function f(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function p(){return Object(y.isPopup)()?g.b.WINDOW_TYPES.POPUP:Object(y.isIframe)()?g.b.WINDOW_TYPES.IFRAME:g.b.WINDOW_TYPES.FULLPAGE}function m(e,n,t){var r=void 0,o=void 0;try{if("{}"!==JSON.stringify({})&&(r=Object.prototype.toJSON,delete Object.prototype.toJSON),"{}"!==JSON.stringify({}))throw new Error("Can not correctly serialize JSON objects");if("[]"!==JSON.stringify([])&&(o=Array.prototype.toJSON,delete Array.prototype.toJSON),"[]"!==JSON.stringify([]))throw new Error("Can not correctly serialize JSON objects")}catch(e){throw new Error("Can not repair JSON.stringify: "+e.message)}var i=JSON.stringify.call(this,e,n,t);try{r&&(Object.prototype.toJSON=r),o&&(Array.prototype.toJSON=o)}catch(e){throw new Error("Can not repair JSON.stringify: "+e.message)}return i}function h(e){return JSON.parse(e)}function b(){return!!Object(y.getUserAgent)(window).match(/MSIE|trident|edge\/12|edge\/13/i)||!g.a.ALLOW_POSTMESSAGE_POPUP}n.k=r,t.d(n,"h",function(){return E}),n.g=o,n.a=i,n.l=a,n.i=d,n.j=l,n.c=f,t.d(n,"m",function(){return _}),n.b=p,n.e=m,n.d=h,n.f=b;var w=t("./node_modules/cross-domain-safe-weakmap/src/index.js"),y=t("./node_modules/cross-domain-utils/src/index.js"),g=t("./node_modules/post-robot/src/conf/index.js"),v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E=function(e){if(!e)return e;var n=!1;return function(){if(!n)return n=!0,e.apply(this,arguments)}},_=function(e){var n=new w.a;return function(t){var r=n.get(t);return void 0!==r?r:(r=e.call(this,t),void 0!==r&&n.set(t,r),r)}}},"./node_modules/post-robot/src/public/client.js":function(e,n,t){"use strict";function r(e){return c.a.try(function(){if(!e.name)throw new Error("Expected options.name");var n=e.name,t=void 0,r=void 0;if("string"==typeof e.window){var o=document.getElementById(e.window);if(!o)throw new Error("Expected options.window "+Object.prototype.toString.call(e.window)+" to be a valid element id");if("iframe"!==o.tagName.toLowerCase())throw new Error("Expected options.window "+Object.prototype.toString.call(e.window)+" to be an iframe");if(!o.contentWindow)throw new Error("Iframe must have contentWindow. Make sure it has a src attribute and is in the DOM.");t=o.contentWindow}else if(e.window instanceof HTMLIFrameElement){if("iframe"!==e.window.tagName.toLowerCase())throw new Error("Expected options.window "+Object.prototype.toString.call(e.window)+" to be an iframe");if(e.window&&!e.window.contentWindow)throw new Error("Iframe must have contentWindow. Make sure it has a src attribute and is in the DOM.");e.window&&e.window.contentWindow&&(t=e.window.contentWindow)}else t=e.window;if(!t)throw new Error("Expected options.window to be a window object, iframe, or iframe element id.");var i=t;r=e.domain||d.b.WILDCARD;var a=e.name+"_"+Object(f.q)();if(Object(u.isWindowClosed)(i))throw new Error("Target window is closed");var s=!1,m=p.a.requestPromises.get(i);m||(m=[],p.a.requestPromises.set(i,m));var h=c.a.try(function(){if(Object(u.isAncestor)(window,i))return Object(f.k)(i,e.timeout||d.a.CHILD_WINDOW_TIMEOUT)}).then(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.origin;if(Object(f.e)(r)&&!n)return Object(f.n)(i)}).then(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.origin;if(Object(f.e)(r)){if(!Object(u.matchDomain)(r,o))throw new Error("Remote window domain "+o+" does not match regex: "+r.toString());r=o}if("string"!=typeof r&&!Array.isArray(r))throw new TypeError("Expected domain to be a string or array");var p=r;return new c.a(function(t,r){var o=void 0;if(e.fireAndForget||(o={name:n,window:i,domain:p,respond:function(e,n){e||(s=!0,m.splice(m.indexOf(h,1))),e?r(e):t(n)}},Object(l.b)(a,o)),Object(l.g)(i,{type:d.b.POST_MESSAGE_TYPE.REQUEST,hash:a,name:n,data:e.data,fireAndForget:e.fireAndForget},p).catch(r),e.fireAndForget)return t();var c=d.a.ACK_TIMEOUT,f=e.timeout||d.a.RES_TIMEOUT,b=100,w=function t(){if(!s){if(Object(u.isWindowClosed)(i))return r(o.ack?new Error("Window closed for "+n+" before response"):new Error("Window closed for "+n+" before ack"));c=Math.max(c-b,0),-1!==f&&(f=Math.max(f-b,0));if(o.ack){if(-1===f)return;b=Math.min(f,2e3)}else{if(0===c)return r(new Error("No ack for postMessage "+n+" in "+Object(u.getDomain)()+" in "+d.a.ACK_TIMEOUT+"ms"));if(0===f)return r(new Error("No response for postMessage "+n+" in "+Object(u.getDomain)()+" in "+(e.timeout||d.a.RES_TIMEOUT)+"ms"))}setTimeout(t,b)}};setTimeout(w,b)})});return h.catch(function(){Object(l.e)(a),Object(l.c)(a)}),m.push(h),h})}function o(e,n,t,o){return o=o||{},o.window=e,o.name=n,o.data=t,r(o)}function i(e,n,t){var r=Object(u.getAncestor)();return r?o(r,e,n,t):new c.a(function(e,n){return n(new Error("Window does not have a parent"))})}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e.window)throw new Error("Expected options.window");var n=e.window;return{send:function(t,r){return o(n,t,r,e)}}}t.d(n,"c",function(){return o}),n.b=r,n.d=i,n.a=a;var s=t("./node_modules/cross-domain-safe-weakmap/src/index.js"),c=t("./node_modules/zalgo-promise/src/index.js"),u=t("./node_modules/cross-domain-utils/src/index.js"),d=t("./node_modules/post-robot/src/conf/index.js"),l=t("./node_modules/post-robot/src/drivers/index.js"),f=t("./node_modules/post-robot/src/lib/index.js"),p=t("./node_modules/post-robot/src/global.js");p.a.requestPromises=p.a.requestPromises||new s.a,p.a.send=o},"./node_modules/post-robot/src/public/config.js":function(e,n,t){"use strict";function r(){delete window[o.b.WINDOW_PROPS.POSTROBOT],window.removeEventListener("message",i.f)}n.c=r;var o=t("./node_modules/post-robot/src/conf/index.js"),i=t("./node_modules/post-robot/src/drivers/index.js");t.d(n,"a",function(){return o.a}),t.d(n,"b",function(){return o.b})},"./node_modules/post-robot/src/public/index.js":function(e,n,t){"use strict";t.d(n,"i",function(){return s});var r=t("./node_modules/cross-domain-utils/src/index.js"),o=t("./node_modules/post-robot/src/public/client.js");t.d(n,"c",function(){return o.a}),t.d(n,"j",function(){return o.b}),t.d(n,"k",function(){return o.c}),t.d(n,"l",function(){return o.d});var i=t("./node_modules/post-robot/src/public/server.js");t.d(n,"e",function(){return i.a}),t.d(n,"f",function(){return i.b}),t.d(n,"g",function(){return i.c}),t.d(n,"h",function(){return i.d});var a=t("./node_modules/post-robot/src/public/config.js");t.d(n,"a",function(){return a.a}),t.d(n,"b",function(){return a.b}),t.d(n,"d",function(){return a.c});var s=Object(r.getAncestor)()},"./node_modules/post-robot/src/public/server.js":function(e,n,t){"use strict";function r(e){if(!e.name)throw new Error("Expected options.name");if(!e.handler)throw new Error("Expected options.handler");var n=e.name,t=e.window,r=e.domain,o={handler:e.handler,handleError:e.errorHandler||function(e){throw e},window:t,domain:r||l.b.WILDCARD,name:n},i=Object(d.a)({name:n,win:t,domain:r},o);if(e.once){var a=o.handler;o.handler=Object(u.l)(function(){return i.cancel(),a.apply(this,arguments)})}if(o.window&&e.errorOnClose)var c=Object(u.m)(function(){t&&"object"===(void 0===t?"undefined":p(t))&&Object(s.isWindowClosed)(t)&&(c.cancel(),o.handleError(new Error("Post message target window is closed")))},50);return{cancel:function(){i.cancel()}}}function o(e,n,t){return"function"==typeof n&&(t=n,n={}),n=n||{},n.name=e,n.handler=t||n.handler,r(n)}function i(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments[2];"function"==typeof n&&(t=n,n={}),n=n||{},t=t||n.handler;var o=n.errorHandler,i=new c.a(function(r,i){n=n||{},n.name=e,n.once=!0,n.handler=function(e){if(r(e),t)return t(e)},n.errorHandler=function(e){if(i(e),o)return o(e)}}),a=r(n);return i.cancel=a.cancel,i}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{on:function(n,t){return o(n,e,t)}}}t.d(n,"c",function(){return o}),n.a=r,n.d=i,n.b=a;var s=t("./node_modules/cross-domain-utils/src/index.js"),c=t("./node_modules/zalgo-promise/src/index.js"),u=t("./node_modules/post-robot/src/lib/index.js"),d=t("./node_modules/post-robot/src/drivers/index.js"),l=t("./node_modules/post-robot/src/conf/index.js"),f=t("./node_modules/post-robot/src/global.js"),p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};f.a.on=o},"./node_modules/process/browser.js":function(e,n){function t(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(d===setTimeout)return setTimeout(e,0);if((d===t||!d)&&setTimeout)return d=setTimeout,setTimeout(e,0);try{return d(e,0)}catch(n){try{return d.call(null,e,0)}catch(n){return d.call(this,e,0)}}}function i(e){if(l===clearTimeout)return clearTimeout(e);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(e);try{return l(e)}catch(n){try{return l.call(null,e)}catch(n){return l.call(this,e)}}}function a(){h&&p&&(h=!1,p.length?m=p.concat(m):b=-1,m.length&&s())}function s(){if(!h){var e=o(a);h=!0;for(var n=m.length;n;){for(p=m,m=[];++b1)for(var t=1;t"),"function"!=typeof r)throw new TypeError("Expected to be passed function to clean.register");if(t)return void r();n.push({complete:!1,name:e,run:function(){this.complete||(this.complete=!0,r&&r())}})},hasTasks:function(){return Boolean(n.filter(function(e){return!e.complete}).length)},all:function(){var e=[];for(t=!0;n.length;)e.push(n.pop().run());return i.a.all(e).then(function(){})},run:function(e){for(var t=[],r=n,o=Array.isArray(r),a=0,r=o?r:r[Symbol.iterator]();;){var c;if(o){if(a>=r.length)break;c=r[a++]}else{if(a=r.next(),a.done)break;c=a.value}var u=c;u.name===e&&t.push(u.run())}return i.a.all(t).then(s.I)}}}t.d(n,"a",function(){return c});var i=t("./node_modules/zalgo-promise/src/index.js"),a=t("./node_modules/post-robot/src/index.js"),s=(t("./node_modules/cross-domain-utils/src/index.js"),t("./node_modules/xcomponent/src/lib/index.js")),c=function(){function e(){r(this,e),this.clean=o(this),this.event=Object(s.s)()}return e.prototype.addProp=function(e,n,t){Object(s.g)(e,this,n,t)},e.prototype.on=function(e,n){return this.event.on(e,n)},e.prototype.listeners=function(){throw new Error("Expected listeners to be implemented")},e.prototype.error=function(e){throw new Error("Expected error to be implemented - got "+Object(s.X)(e))},e.prototype.listen=function(e,n){var t=this;if(!e)throw this.component.createError("window to listen to not set");if(!n)throw new Error("Must pass domain to listen to");if(this.listeners)for(var r=this.listeners(),o=Object.keys(r),i=Array.isArray(o),s=0,o=i?o:o[Symbol.iterator]();;){var c,u=function(){if(i){if(s>=o.length)return"break";c=o[s++]}else{if(s=o.next(),s.done)return"break";c=s.value}var u=c,d=u.replace(/^xcomponent_/,""),l=function(e){t.error(e)},f=Object(a.on)(u,{window:e,domain:n,errorHandler:l},function(e){var n=e.source,o=e.data;return t.component.log("listener_"+d),r[u].call(t,n,o)}),p=Object(a.on)(u,{window:e,errorHandler:l},function(e){var r=e.origin;t.component.logError("unexpected_listener_"+d,{origin:r,domain:n.toString()}),t.error(new Error("Unexpected "+d+" message from domain "+r+" -- expected message from "+n.toString()))});t.clean.register(function(){f.cancel(),p.cancel()})}();if("break"===u)break}},e}()},"./node_modules/xcomponent/src/component/child/index.js":function(e,n,t){"use strict";function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function o(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}function i(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}t.d(n,"a",function(){return y});var a=t("./node_modules/beaver-logger/client/index.js"),s=t("./node_modules/cross-domain-utils/src/index.js"),c=t("./node_modules/post-robot/src/index.js"),u=t("./node_modules/zalgo-promise/src/index.js"),d=t("./node_modules/xcomponent/src/component/base.js"),l=t("./node_modules/xcomponent/src/component/window.js"),f=t("./node_modules/xcomponent/src/lib/index.js"),p=t("./node_modules/xcomponent/src/constants.js"),m=t("./node_modules/xcomponent/src/error.js"),h=t("./node_modules/xcomponent/src/component/child/props.js"),b=Object.assign||function(e){for(var n=1;n2&&void 0!==arguments[2])||arguments[2];this.props=this.props||{};var r=Object(h.a)(this.component,e,n,t);Object(f.t)(this.props,r),this.props.logLevel&&Object(f.S)(this.props.logLevel);for(var o=this.onPropHandlers,i=Array.isArray(o),a=0,o=i?o:o[Symbol.iterator]();;){var s;if(i){if(a>=o.length)break;s=o[a++]}else{if(a=o.next(),a.done)break;s=a.value}s.call(this,this.props)}},n.prototype.sendToParent=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object(l.c)();if(!r)throw new Error("Can not find parent component window to message");return this.component.log("send_to_parent_"+e),Object(c.send)(r,e,n,b({domain:Object(l.d)()},t))},n.prototype.setWindows=function(){if(window.__activeXComponent__)throw this.component.createError("Can not attach multiple components to the same window");if(window.__activeXComponent__=this,!Object(l.c)())throw this.component.createError("Can not find parent window");var e=Object(l.b)();if(e.tag!==this.component.tag)throw this.component.createError("Parent is "+e.tag+" - can not attach "+this.component.tag);this.watchForClose()},n.prototype.watchForClose=function(){var e=this;window.addEventListener("unload",function(){return e.checkClose()})},n.prototype.enableAutoResize=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width,t=void 0===n||n,r=e.height,o=void 0===r||r;this.autoResize={width:t,height:o},this.watchForResize()},n.prototype.getAutoResize=function(){var e=!1,n=!1,t=this.autoResize||this.component.autoResize;"object"===(void 0===t?"undefined":w(t))?(e=Boolean(t.width),n=Boolean(t.height)):t&&(e=!0,n=!0);var r=void 0;return r=t.element?Object(f.x)(t.element):window.navigator.userAgent.match(/MSIE (9|10)\./)?document.body:document.documentElement,{width:e,height:n,element:r}},n.prototype.watchForResize=function(){var e=this,n=this.getAutoResize(),t=n.width,r=n.height,o=n.element;if((t||r)&&this.context!==p.CONTEXT_TYPES.POPUP&&!this.watchingForResize)return this.watchingForResize=!0,u.a.try(function(){return f.n}).then(function(){if(!Object(f.m)(o,{width:t,height:r}))return e.resizeToElement(o,{width:t,height:r})}).then(function(){return Object(f.h)(function(){return Object(f.K)(o,{width:t,height:r}).then(function(){return e.resizeToElement(o,{width:t,height:r})})})})},n.prototype.exports=function(){var e=this;return{updateProps:function(n){var t=this;return u.a.try(function(){return e.setProps(n,t.origin,!1)})},close:function(){return u.a.try(function(){return e.destroy()})}}},n.prototype.resize=function(e,n){var t=this;return u.a.resolve().then(function(){if(t.component.log("resize",{width:Object(f.W)(e),height:Object(f.W)(n)}),t.context!==p.CONTEXT_TYPES.POPUP)return t.sendToParent(p.POST_MESSAGE.RESIZE,{width:e,height:n}).then(f.I)})},n.prototype.resizeToElement=function(e,n){var t=this,r=n.width,o=n.height,i=[];return function n(){return u.a.try(function(){for(var a=Object(f.Z)(e,{width:r,height:o}),s=a.check(),c=s.dimensions,u=i,d=Array.isArray(u),l=0,u=d?u:u[Symbol.iterator]();;){var p;if(d){if(l>=u.length)break;p=u[l++]}else{if(l=u.next(),l.done)break;p=l.value}var m=p,h=!r||m.width===c.width,b=!o||m.height===c.height;if(h&&b)return}return i.push({width:c.width,height:c.height}),t.resize(r?c.width:null,o?c.height:null).then(function(){if(a.check().changed)return n()})})}()},n.prototype.hide=function(){return this.sendToParent(p.POST_MESSAGE.HIDE).then(f.I)},n.prototype.show=function(){return this.sendToParent(p.POST_MESSAGE.SHOW).then(f.I)},n.prototype.userClose=function(){return this.close(p.CLOSE_REASONS.USER_CLOSED)},n.prototype.close=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.CLOSE_REASONS.CHILD_CALL;this.component.log("close_child"),this.sendToParent(p.POST_MESSAGE.CLOSE,{reason:e})},n.prototype.checkClose=function(){this.sendToParent(p.POST_MESSAGE.CHECK_CLOSE,{},{fireAndForget:!0})},n.prototype.destroy=function(){return Object(a.c)().then(function(){window.close()})},n.prototype.focus=function(){this.component.log("focus"),window.focus()},n.prototype.error=function(e){var n=Object(f.X)(e);return this.component.logError("error",{error:n}),this.sendToParent(p.POST_MESSAGE.ERROR,{error:n}).then(f.I)},n}(d.a)},"./node_modules/xcomponent/src/component/child/props.js":function(e,n,t){"use strict";function r(e,n,t,r){var o=e.getProp(t);return o?"function"==typeof o.childDecorate?o.childDecorate(r):r:e.looseProps?r:void 0}function o(e,n,t){for(var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a={},s=Object.keys(n),c=Array.isArray(s),u=0,s=c?s:s[Symbol.iterator]();;){var d;if(c){if(u>=s.length)break;d=s[u++]}else{if(u=s.next(),u.done)break;d=u.value}var l=d,f=e.getProp(l),p=n[l];f&&f.sameDomain&&t!==Object(i.getDomain)(window)||(a[l]=r(e,n,l,p),f&&f.alias&&!a[f.alias]&&(a[f.alias]=p))}if(o)for(var m=e.getPropNames(),h=Array.isArray(m),b=0,m=h?m:m[Symbol.iterator]();;){var w;if(h){if(b>=m.length)break;w=m[b++]}else{if(b=m.next(),b.done)break;w=b.value}var y=w;n.hasOwnProperty(y)||(a[y]=r(e,n,y,n[y]))}return a}n.a=o;var i=t("./node_modules/cross-domain-utils/src/index.js")},"./node_modules/xcomponent/src/component/component/index.js":function(e,n,t){"use strict";function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function o(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}function i(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}t.d(n,"a",function(){return O});var a,s=t("./node_modules/post-robot/src/index.js"),c=t("./node_modules/zalgo-promise/src/index.js"),u=t("./node_modules/cross-domain-utils/src/index.js"),d=t("./node_modules/xcomponent/src/component/base.js"),l=t("./node_modules/xcomponent/src/component/child/index.js"),f=t("./node_modules/xcomponent/src/component/parent/index.js"),p=t("./node_modules/xcomponent/src/component/delegate/index.js"),m=t("./node_modules/xcomponent/src/component/window.js"),h=t("./node_modules/xcomponent/src/constants.js"),b=t("./node_modules/xcomponent/src/drivers/index.js"),w=t("./node_modules/xcomponent/src/lib/index.js"),y=t("./node_modules/xcomponent/src/component/component/validate.js"),g=t("./node_modules/xcomponent/src/component/component/templates/index.js"),v=t("./node_modules/xcomponent/src/component/component/props.js"),E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_={angular:b.angular,angular2:b.angular2,glimmer:b.glimmer,react:b.react,vue:b.vue,script:b.script},O=(a=function(e){function n(t){r(this,n);var i=o(this,e.call(this));if(Object(y.a)(t),i.addProp(t,"tag"),i.addProp(t,"defaultLogLevel","info"),i.addProp(t,"allowedParentDomains",h.WILDCARD),Object(w.S)(i.defaultLogLevel),n.components[i.tag])throw new Error("Can not register multiple components with the same tag");return i.addProp(t,"name",i.tag.replace(/-/g,"_")),i.builtinProps=Object(v.a)(),i.props=t.props||{},t.props||(i.looseProps=!0),i.addProp(t,"dimensions"),i.addProp(t,"scrolling"),i.addProp(t,"listenForResize"),i.addProp(t,"version","latest"),i.addProp(t,"defaultEnv"),i.addProp(t,"buildUrl"),i.addProp(t,"url"),i.addProp(t,"domain"),i.addProp(t,"bridgeUrl"),i.addProp(t,"bridgeDomain"),i.addProp(t,"attributes",{}),i.addProp(t,"contexts",{iframe:!0,popup:!1}),i.addProp(t,"defaultContext"),i.addProp(t,"autoResize",!1),i.addProp(t,"containerTemplate",g.a),i.addProp(t,"prerenderTemplate",g.b),i.addProp(t,"validate"),i.addProp(t,"unsafeRenderTo",!1),n.components[i.tag]=i,i.registerDrivers(),i.registerChild(),i.listenDelegate(),i}return i(n,e),n.prototype.getPropNames=function(){for(var e=Object.keys(this.props),n=Object.keys(this.builtinProps),t=Array.isArray(n),r=0,n=t?n:n[Symbol.iterator]();;){var o;if(t){if(r>=n.length)break;o=n[r++]}else{if(r=n.next(),r.done)break;o=r.value}var i=o;-1===e.indexOf(i)&&e.push(i)}return e},n.prototype.getProp=function(e){return this.props[e]||this.builtinProps[e]},n.prototype.registerDrivers=function(){this.driverCache={};for(var e=Object.keys(_),n=Array.isArray(e),t=0,e=n?e:e[Symbol.iterator]();;){var r;if(n){if(t>=e.length)break;r=e[t++]}else{if(t=e.next(),t.done)break;r=t.value}var o=r;if(0!==o.indexOf("_")){var i=_[o],a=i.global();a&&this.driver(o,a)}}},n.prototype.driver=function(e,n){if(!_[e])throw new Error("Could not find driver for framework: "+e);return this.driverCache[e]||(this.driverCache[e]=_[e].register(this,n)),this.driverCache[e]},n.prototype.registerChild=function(){var e=this;return c.a.try(function(){if(e.isChild())return new l.a(e)})},n.prototype.listenDelegate=function(){var e=this;Object(s.on)(h.POST_MESSAGE.ALLOW_DELEGATE+"_"+this.name,function(){return!0}),Object(s.on)(h.POST_MESSAGE.DELEGATE+"_"+this.name,function(n){var t=n.source,r=n.origin,o=n.data,i=e.getDomain(null,o.env||e.defaultEnv);if(!i)throw new Error("Could not determine domain to allow remote render");if(!Object(u.matchDomain)(i,r))throw new Error("Can not render from "+r+" - expected "+i.toString());var a=e.delegate(t,o.options);return{overrides:a.getOverrides(o.context),destroy:function(){return a.destroy()}}})},n.prototype.canRenderTo=function(e){return Object(s.send)(e,h.POST_MESSAGE.ALLOW_DELEGATE+"_"+this.name).then(function(e){return e.data}).catch(function(){return!1})},n.prototype.getValidDomain=function(e){if(e){var n=Object(u.getDomainFromUrl)(e);if("string"==typeof this.domain&&n===this.domain)return n;var t=this.domain;if(t&&"object"===(void 0===t?"undefined":E(t))&&!(t instanceof RegExp))for(var r=Object.keys(t),o=Array.isArray(r),i=0,r=o?r:r[Symbol.iterator]();;){var a;if(o){if(i>=r.length)break;a=r[i++]}else{if(i=r.next(),i.done)break;a=i.value}var s=a;if("test"!==s&&n===t[s])return n}}},n.prototype.getDomain=function(e,n){var t=this.getForEnv(this.domain,n);if(t)return t;if(t=this.getValidDomain(e))return t;var r=this.getForEnv(this.url,n);return r?Object(u.getDomainFromUrl)(r):e?Object(u.getDomainFromUrl)(e):void 0},n.prototype.getBridgeUrl=function(e){return this.getForEnv(this.bridgeUrl,e)},n.prototype.getForEnv=function(e,n){if(e){if("string"==typeof e||e instanceof RegExp)return e;if(n||(n=this.defaultEnv),n)return n&&"object"===(void 0===e?"undefined":E(e))&&e[n]?e[n]:void 0}},n.prototype.getBridgeDomain=function(e){var n=this.getForEnv(this.bridgeDomain,e);if(n)return n;var t=this.getBridgeUrl(e);return t?Object(u.getDomainFromUrl)(t):void 0},n.prototype.getUrl=function(e,n){var t=this.getForEnv(this.url,e);if(t)return t;if(this.buildUrl)return this.buildUrl(n);throw new Error("Unable to get url")},n.prototype.isXComponent=function(){return Object(m.g)()},n.prototype.isChild=function(){return Object(m.g)()&&Object(m.b)().tag===this.tag},n.prototype.createError=function(e,n){return new Error("["+(n||this.tag)+"] "+e)},n.prototype.init=function(e,n,t){return new f.a(this,this.getRenderContext(n,t),{props:e})},n.prototype.delegate=function(e,n){return new p.a(this,e,n)},n.prototype.validateRenderContext=function(e,n){if(e&&!this.contexts[e])throw new Error("["+this.tag+"] Can not render to "+e);if(!n&&e===h.CONTEXT_TYPES.IFRAME)throw new Error("["+this.tag+"] Context type "+h.CONTEXT_TYPES.IFRAME+" requires an element selector")},n.prototype.getDefaultContext=function(){if(this.defaultContext)return this.defaultContext;if(this.contexts[h.CONTEXT_TYPES.IFRAME])return h.CONTEXT_TYPES.IFRAME;if(this.contexts[h.CONTEXT_TYPES.POPUP])return h.CONTEXT_TYPES.POPUP;throw new Error("Can not determine default context")},n.prototype.getRenderContext=function(e,n){return e=e||this.getDefaultContext(),this.validateRenderContext(e,n),e},n.prototype.render=function(e,n){var t=this;return c.a.try(function(){return new f.a(t,t.getRenderContext(null,n),{props:e}).render(n)})},n.prototype.renderIframe=function(e,n){var t=this;return c.a.try(function(){return new f.a(t,t.getRenderContext(h.CONTEXT_TYPES.IFRAME,n),{props:e}).render(n)})},n.prototype.renderPopup=function(e){var n=this;return c.a.try(function(){return new f.a(n,n.getRenderContext(h.CONTEXT_TYPES.POPUP),{props:e}).render()})},n.prototype.renderTo=function(e,n,t){var r=this;return c.a.try(function(){return new f.a(r,r.getRenderContext(null,t),{props:n}).renderTo(e,t)})},n.prototype.renderIframeTo=function(e,n,t){var r=this;return c.a.try(function(){return new f.a(r,r.getRenderContext(h.CONTEXT_TYPES.IFRAME,t),{props:n}).renderTo(e,t)})},n.prototype.renderPopupTo=function(e,n){var t=this;return c.a.try(function(){return new f.a(t,t.getRenderContext(h.CONTEXT_TYPES.POPUP),{props:n}).renderTo(e)})},n.prototype.prerender=function(e,n){var t=new f.a(this,this.getRenderContext(null,n),{props:e});return t.prefetch(),{render:function(e,n){return e&&t.updateProps(e),t.render(n)},renderTo:function(e,n,r){return n&&t.updateProps(n),t.renderTo(e,r)},get html(){return t.html},set html(e){t.html=e}}},n.prototype.log=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(w.C)(this.name,e,n)},n.prototype.logWarning=function(e,n){Object(w._1)(this.name,e,n)},n.prototype.logError=function(e,n){Object(w.r)(this.name,e,n)},n.getByTag=function(e){return n.components[e]},n}(d.a),function(e,n,t,r,o){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=t.slice().reverse().reduce(function(t,r){return r(e,n,t)||t},i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,n,i),i=null),i}(a.prototype,"getPropNames",[w.G],Object.getOwnPropertyDescriptor(a.prototype,"getPropNames"),a.prototype),a);O.components={}},"./node_modules/xcomponent/src/component/component/props.js":function(e,n,t){"use strict";function r(){return{env:{type:"string",required:!1,queryParam:!0,def:function(){return this.defaultEnv}},uid:{type:"string",def:function(){return Object(o._0)()},queryParam:!0},logLevel:{type:"string",required:!1,queryParam:!0,def:function(){return this.defaultLogLevel}},url:{type:"string",required:!1,promise:!0,sendToChild:!1},dimensions:{type:"object",required:!1},version:{type:"string",required:!1,queryParam:!0,def:function(){return this.version}},timeout:{type:"number",required:!1,sendToChild:!1},onDisplay:{type:"function",required:!1,noop:!0,promisify:!0,memoize:!0,sendToChild:!1},onEnter:{type:"function",required:!1,noop:!0,promisify:!0,sendToChild:!1},onRender:{type:"function",required:!1,noop:!0,promisify:!0,sendToChild:!1},onClose:{type:"function",required:!1,noop:!0,once:!0,promisify:!0,sendToChild:!1},onTimeout:{type:"function",required:!1,memoize:!0,promisify:!0,sendToChild:!1,def:function(){return function(e){if(this.props.onError)return this.props.onError(e);throw e}}},onError:{type:"function",required:!1,promisify:!0,sendToChild:!0,once:!0,def:function(){return function(e){setTimeout(function(){throw e})}}}}}n.a=r;var o=(t("./node_modules/zalgo-promise/src/index.js"),t("./node_modules/xcomponent/src/lib/index.js")),i=t("./node_modules/xcomponent/src/types.js");t.n(i)},"./node_modules/xcomponent/src/component/component/templates/component.jsx":function(e,n,t){"use strict";function r(e){var n=e.jsxDom;return n("html",null,n("head",null,n("style",null,"\n html, body {\n width: 100%;\n height: 100%;\n overflow: hidden;\n top: 0;\n left: 0;\n margin: 0;\n text-align: center;\n }\n\n .spinner {\n position: absolute;\n max-height: 60vmin;\n max-width: 60vmin;\n height: 40px;\n width: 40px;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n z-index: 10;\n }\n\n .spinner .loader {\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n border: 3px solid rgba(0, 0, 0, .2);\n border-top-color: rgba(33, 128, 192, 0.8);\n border-radius: 100%;\n animation: rotation .7s infinite linear;\n\n }\n\n @keyframes rotation {\n from {\n transform: rotate(0deg)\n }\n to {\n transform: rotate(359deg)\n }\n }\n ")),n("body",null,n("div",{class:"spinner"},n("div",{id:"loader",class:"loader"}))))}n.a=r;t("./node_modules/xcomponent/src/component/parent/index.js")},"./node_modules/xcomponent/src/component/component/templates/container.jsx":function(e,n,t){"use strict";function r(e){var n=e.id,t=e.tag,r=e.context,o=e.CLASS,i=e.outlet,a=e.jsxDom,s=e.dimensions,c=s.width,u=s.height;return a("div",{id:n,class:o.XCOMPONENT+" "+o.XCOMPONENT+"-tag-"+t+" "+o.XCOMPONENT+"-context-"+r},a("style",null,"\n #"+n+", #"+n+" > ."+o.OUTLET+" {\n width: "+c+";\n height: "+u+";\n }\n\n #"+n+" > ."+o.OUTLET+" {\n display: inline-block;\n position: relative;\n }\n\n #"+n+" > ."+o.OUTLET+" > iframe {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n transition: opacity .2s ease-in-out;\n }\n\n #"+n+" > ."+o.OUTLET+" > iframe."+o.VISIBLE+" {\n opacity: 1;\n }\n\n #"+n+" > ."+o.OUTLET+" > iframe."+o.INVISIBLE+" {\n opacity: 0;\n }\n "),i)}n.a=r;t("./node_modules/xcomponent/src/component/parent/index.js")},"./node_modules/xcomponent/src/component/component/templates/index.js":function(e,n,t){"use strict";var r=t("./node_modules/xcomponent/src/component/component/templates/container.jsx");t.d(n,"a",function(){return r.a});var o=t("./node_modules/xcomponent/src/component/component/templates/component.jsx");t.d(n,"b",function(){return o.a})},"./node_modules/xcomponent/src/component/component/validate.js":function(e,n,t){"use strict";function r(e){if(e.props&&"object"!==s(e.props))throw new Error("Expected options.props to be an object");if(e.props)for(var n=Object.keys(e.props),t=Array.isArray(n),r=0,n=t?n:n[Symbol.iterator]();;){var o;if(t){if(r>=n.length)break;o=n[r++]}else{if(r=n.next(),r.done)break;o=r.value}var a=o,c=e.props[a];if(!c||"object"!==(void 0===c?"undefined":s(c)))throw new Error("Expected options.props."+a+" to be an object");if(!c.type)throw new Error("Expected prop.type");if(-1===i.PROP_TYPES_LIST.indexOf(c.type))throw new Error("Expected prop.type to be one of "+i.PROP_TYPES_LIST.join(", "));if(c.required&&c.def)throw new Error("Required prop can not have a default value")}}function o(e){if(!e)throw new Error("Expecred options to be passed");if(!e.tag||!e.tag.match(/^[a-z0-9-]+$/))throw new Error("Invalid options.tag: "+e.tag);if(r(e),e.dimensions){if(e.dimensions&&!Object(a.E)(e.dimensions.width)&&!Object(a.D)(e.dimensions.width))throw new Error("Expected options.dimensions.width to be a px or % string value");if(e.dimensions&&!Object(a.E)(e.dimensions.height)&&!Object(a.D)(e.dimensions.height))throw new Error("Expected options.dimensions.height to be a px or % string value")}if(e.contexts){if(e.contexts.popup&&!{__POPUP_SUPPORT__:!0}.__POPUP_SUPPORT__)throw new Error("Popups not supported in this build -- please use the full xcomponent.js build");for(var n=!1,t=Object.keys(e.contexts),o=Array.isArray(t),c=0,t=o?t:t[Symbol.iterator]();;){var u;if(o){if(c>=t.length)break;u=t[c++]}else{if(c=t.next(),c.done)break;u=c.value}var d=u;if(-1===i.CONTEXT_TYPES_LIST.indexOf(d))throw new Error("Unsupported context type: "+d);(e.contexts&&e.contexts[d]||e.contexts&&void 0===e.contexts[d])&&(n=!0)}if(!n)throw new Error("No context type is enabled")}if(e.defaultContext){if(-1===i.CONTEXT_TYPES_LIST.indexOf(e.defaultContext))throw new Error("Unsupported context type: "+(e.defaultContext||"unknown"));if(e.contexts&&e.defaultContext&&!e.contexts[e.defaultContext])throw new Error("Disallowed default context type: "+(e.defaultContext||"unknown"))}if(e.url&&e.buildUrl)throw new Error("Can not pass both options.url and options.buildUrl");if(e.defaultEnv){if("string"!=typeof e.defaultEnv)throw new TypeError("Expected options.defaultEnv to be a string");if(!e.buildUrl&&"object"!==s(e.url))throw new Error("Expected options.url to be an object mapping env->url");if(e.url&&"object"===s(e.url)&&!e.url[e.defaultEnv])throw new Error("No url found for default env: "+e.defaultEnv)}if(e.url&&"object"===s(e.url)){if(!e.defaultEnv)throw new Error("Must pass options.defaultEnv with env->url mapping");for(var l=Object.keys(e.url),f=Array.isArray(l),p=0,l=f?l:l[Symbol.iterator]();;){var m;if(f){if(p>=l.length)break;m=l[p++]}else{if(p=l.next(),p.done)break;m=p.value}var h=m;if(!e.url[h])throw new Error("No url specified for env: "+h)}}if(e.prerenderTemplate&&"function"!=typeof e.prerenderTemplate)throw new Error("Expected options.prerenderTemplate to be a function");if(e.containerTemplate&&"function"!=typeof e.containerTemplate)throw new Error("Expected options.containerTemplate to be a function")}n.a=o;var i=t("./node_modules/xcomponent/src/constants.js"),a=t("./node_modules/xcomponent/src/lib/index.js"),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}},"./node_modules/xcomponent/src/component/delegate/index.js":function(e,n,t){"use strict";function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function o(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}function i(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}t.d(n,"a",function(){return f});var a=t("./node_modules/cross-domain-utils/src/index.js"),s=(t("./node_modules/zalgo-promise/src/index.js"),t("./node_modules/xcomponent/src/component/base.js")),c=t("./node_modules/xcomponent/src/component/parent/index.js"),u=t("./node_modules/xcomponent/src/component/parent/drivers.js"),d=t("./node_modules/xcomponent/src/lib/index.js"),l=function(){function e(e,n){for(var t=0;t=l.length)break;m=l[p++]}else{if(p=l.next(),p.done)break;m=p.value}var h=m;s.component.getProp(h).allowDelegate&&(s.props[h]=a.props[h])}s.focus=function(){return a.overrides.focus.call(s)},s.clean.register("destroyFocusOverride",function(){s.focus=d.I}),s.userClose=a.overrides.userClose,s.getDomain=a.overrides.getDomain,s.error=a.overrides.error,s.on=a.overrides.on;for(var b=u.a[a.context].delegateOverrides,w=Object.keys(b),y=Array.isArray(w),g=0,w=y?w:w[Symbol.iterator]();;){var v;if(y){if(g>=w.length)break;v=w[g++]}else{if(g=w.next(),g.done)break;v=g.value}var E=v;s[E]=c.a.prototype[E]}return s.childWindowName=a.childWindowName,c.a.prototype.registerActiveComponent.call(s),s.watchForClose(),s}return i(n,e),n.prototype.watchForClose=function(){var e=this,n=Object(a.onCloseWindow)(this.source,function(){return e.destroy()},3e3);this.clean.register("destroyCloseWindowListener",n.cancel)},n.prototype.getOverrides=function(e){for(var n=u.a[e].delegateOverrides,t={},r=this,o=Object.keys(n),i=Array.isArray(o),a=0,o=i?o:o[Symbol.iterator]();;){var s;if("break"===function(){if(i){if(a>=o.length)return"break";s=o[a++]}else{if(a=o.next(),a.done)return"break";s=a.value}var e=s;t[e]=function(){return c.a.prototype[e].apply(r,arguments)}}())break}return t},n.prototype.destroy=function(){return this.clean.all()},l(n,[{key:"driver",get:function(){if(!this.context)throw new Error("Context not set");return u.a[this.context]}}]),n}(s.a)},"./node_modules/xcomponent/src/component/index.js":function(e,n,t){"use strict";var r=t("./node_modules/xcomponent/src/component/component/index.js");t.d(n,"a",function(){return r.a});t("./node_modules/xcomponent/src/component/parent/index.js"),t("./node_modules/xcomponent/src/component/child/index.js")},"./node_modules/xcomponent/src/component/parent/drivers.js":function(e,n,t){"use strict";t.d(n,"a",function(){return d});var r=t("./node_modules/zalgo-promise/src/index.js"),o=t("./node_modules/post-robot/src/index.js"),i=t("./node_modules/cross-domain-utils/src/index.js"),a=t("./node_modules/xcomponent/src/lib/index.js"),s=t("./node_modules/xcomponent/src/constants.js"),c=t("./node_modules/xcomponent/src/component/window.js"),u=Object.assign||function(e){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:"";return r.a.try(function(){var t=e.component.dimensions||{},r=t.width,i=void 0===r?s.DEFAULT_DIMENSIONS.WIDTH:r,d=t.height,l=void 0===d?s.DEFAULT_DIMENSIONS.HEIGHT:d;i=Object(a.J)(i,window.outerWidth),l=Object(a.J)(l,window.outerWidth);var f=Object(c.f)({width:i,height:l}),p=f.x,m=f.y,h=e.component.attributes.popup||{};e.window=Object(a.M)(n||"",u({name:e.childWindowName,width:i,height:l,top:m,left:p,status:1,toolbar:0,menubar:0,resizable:1,scrollbars:1},h)),e.prerenderWindow=e.window,e.clean.register("destroyWindow",function(){e.window&&(e.window.close(),Object(o.cleanUpWindow)(e.window),delete e.window,delete e.prerenderWindow)}),e.resize(i,l)})},openPrerender:function(){return r.a.try(a.I)},resize:function(){},hide:function(){throw new Error("Can not hide popup")},show:function(){throw new Error("Can not show popup")},delegateOverrides:{openContainer:s.DELEGATE.CALL_DELEGATE,destroyContainer:s.DELEGATE.CALL_DELEGATE,elementReady:s.DELEGATE.CALL_DELEGATE,showContainer:s.DELEGATE.CALL_DELEGATE,showComponent:s.DELEGATE.CALL_DELEGATE,hideContainer:s.DELEGATE.CALL_DELEGATE,hideComponent:s.DELEGATE.CALL_DELEGATE,hide:s.DELEGATE.CALL_DELEGATE,show:s.DELEGATE.CALL_DELEGATE,cancelContainerEvents:s.DELEGATE.CALL_DELEGATE,open:s.DELEGATE.CALL_ORIGINAL,loadUrl:s.DELEGATE.CALL_ORIGINAL,createPrerenderTemplate:s.DELEGATE.CALL_ORIGINAL,destroyComponent:s.DELEGATE.CALL_ORIGINAL,resize:s.DELEGATE.CALL_ORIGINAL,renderTemplate:s.DELEGATE.CALL_ORIGINAL,openContainerFrame:s.DELEGATE.CALL_ORIGINAL,getOutlet:s.DELEGATE.CALL_ORIGINAL},loadUrl:function(e){if(Object(i.isSameDomain)(this.window))try{if(this.window.location&&this.window.location.replace)return void this.window.location.replace(e)}catch(e){}this.window.location=e}})},"./node_modules/xcomponent/src/component/parent/index.js":function(e,n,t){"use strict";function r(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function o(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}function i(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}function a(e,n,t,r,o){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=t.slice().reverse().reduce(function(t,r){return r(e,n,t)||t},i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,n,i),i=null),i}t.d(n,"a",function(){return O});var s,c=t("./node_modules/beaver-logger/client/index.js"),u=t("./node_modules/post-robot/src/index.js"),d=t("./node_modules/cross-domain-utils/src/index.js"),l=t("./node_modules/zalgo-promise/src/index.js"),f=t("./node_modules/xcomponent/src/component/base.js"),p=t("./node_modules/xcomponent/src/component/window.js"),m=t("./node_modules/xcomponent/src/lib/index.js"),h=t("./node_modules/xcomponent/src/constants.js"),b=t("./node_modules/xcomponent/src/error.js"),w=t("./node_modules/xcomponent/src/component/parent/drivers.js"),y=t("./node_modules/xcomponent/src/component/parent/validate.js"),g=t("./node_modules/xcomponent/src/component/parent/props.js"),v=Object.assign||function(e){for(var n=1;n1&&void 0!==arguments[1])||arguments[1];return this.tryInit(function(){n.component.log("render_"+n.context,{context:n.context,element:e,loadUrl:Object(m.W)(t)});var r={};return r.onRender=n.props.onRender(),r.getDomain=n.getDomain(),r.elementReady=l.a.try(function(){if(e)return n.elementReady(e)}),r.openContainer=r.elementReady.then(function(){return n.openContainer(e)}),r.showContainer=r.openContainer.then(function(){return n.showContainer()}),r.openPrerender=r.openContainer.then(function(){return n.openPrerender()}),r.switchPrerender=l.a.all([r.openPrerender,n.onInit]).then(function(){return n.switchPrerender()}),r.open=n.driver.openOnClick?n.open():r.openContainer.then(function(){return n.open()}),r.listen=l.a.all([r.getDomain,r.open]).then(function(e){var t=e[0];n.listen(n.window,t)}),r.watchForClose=r.open.then(function(){return n.watchForClose()}),r.linkDomain=l.a.all([r.getDomain,r.open]).then(function(e){var t=e[0];if(u.bridge&&"string"==typeof t)return u.bridge.linkUrl(n.window,t)}),n.html||(r.createPrerenderTemplate=r.openPrerender.then(function(){return n.createPrerenderTemplate()}),r.showComponent=r.createPrerenderTemplate.then(function(){return n.showComponent()})),r.openBridge=l.a.all([r.getDomain,r.open]).then(function(e){var t=e[0];return n.openBridge("string"==typeof t?t:null)}),n.html?r.loadHTML=r.open.then(function(){return n.loadHTML()}):t&&(r.buildUrl=n.buildUrl(),r.loadUrl=l.a.all([r.buildUrl,r.open,r.linkDomain,r.listen,r.open,r.openBridge,r.createPrerenderTemplate]).then(function(e){var t=e[0];return n.loadUrl(t)}),r.runTimeout=r.loadUrl.then(function(){return n.runTimeout()})),l.a.hash(r)}).then(function(){return n.props.onEnter()}).then(function(){return n})},n.prototype.getOutlet=function(){var e=document.createElement("div");return Object(m.a)(e,h.CLASS_NAMES.OUTLET),e},n.prototype.validateParentDomain=function(){var e=Object(d.getDomain)();if(!Object(d.matchDomain)(this.component.allowedParentDomains,e))throw new b.c("Can not be rendered by domain: "+e)},n.prototype.renderTo=function(e,n){var t=this;return this.tryInit(function(){if(e===window)return t.render(n);if(!Object(d.isSameTopWindow)(window,e))throw new Error("Can only renderTo an adjacent frame");if(n&&"string"!=typeof n)throw new Error("Element passed to renderTo must be a string selector, got "+(void 0===n?"undefined":E(n))+" "+n);return t.checkAllowRenderTo(e),t.component.log("render_"+t.context+"_to_win",{element:Object(m.W)(n),context:t.context}),t.childWindowName=t.buildChildWindowName({renderTo:e}),t.delegate(e),t.render(n)})},n.prototype.prefetch=function(){var e=this;return l.a.try(function(){e.html=e.buildUrl().then(function(e){return Object(m.N)(e).then(function(n){return'\n \n\n '+n+"\n\n