!function(n,t){"use strict";"undefined"!=typeof exports?n(global,exports):n(window,t)}(function(n,t){"use strict";function e(t){function e(n,t){var e=document.createElement("script");e.type="text/javascript",e.charset="UTF-8",e.async=!1,e.src=n;var o=function(n,t){"loaded"===n.readyState||"complete"===n.readyState?t():setTimeout(function(){o(n,t)},100)};"function"==typeof t&&("undefined"!=typeof e.addEventListener?e.addEventListener("load",t,!1):e.onreadystatechange=function(){e.onreadystatechange=null,o(e,t)}),c.appendChild(e)}function o(n,t){if(!n||!n.length)return void t();var a=n.shift();e(i.translatePath(a),function(){o(n,t)})}var i=t.adapter,a=t.onPublicationLoad||function(){},r=t.onPublicationError||function(n){console.error(n)};"function"==typeof t.onInit&&t.onInit();var c=n.document.getElementsByTagName("head")[0],s=["static/html/js/build.js"];o(s,function(){var e=new n.FBPublication.App(t.container,{adapter:t.adapter,analytics:t.analytics,userAgentInfo:t.userAgentInfo,extensions:t.extensions,services:t.services});e.on("change:isStarted",function(){a(e)},this),e.on("error",function(n){r(n)},this)})}t.FBPublicationVersion=e},this);