var FBPublication=function(t){function e(e){for(var r,o,n=e[0],a=e[1],s=0,h=[];s=0;--o){var n=this.tryEntries[o],i=n.completion;if("root"===n.tryLoc)return e("end");if(n.tryLoc<=this.prev){var a=m.call(n,"catchLoc"),s=m.call(n,"finallyLoc");if(a&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&m.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),l(r),j}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var n=o.arg;l(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:d(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=v),j}}}}(function(){return this}()||Function("return this")())},48:function(t,e,r){t.exports=r(49)},49:function(t,e,r){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function n(t){var e={container:window.document.getElementsByTagName("body")[0],callback:function(){},onPublicationLoad:function(){},navigator:window.navigator};if(this.options=i(e,t),this.options.api=this.api=this.options.api||new a.default,this.options.adapter||(this.options.adapter=new s.default),r.p=this.options.adapter.translatePath("static/mobile/").split("?")[0],this.userAgentInfo=new c.default(this.options.navigator),this.options.overrideVersion)this._renderVersion(this.options.overrideVersion);else{this.detector=new u.default(this.userAgentInfo,this.options.versions);var o=this.detector.getSupportedVersions();if(o&&o.length){var n=this.detector.mainVersion();(n=n||this.options.callback(o))?this._renderVersion(n):void 0===n&&this._renderVersion(o[0])}}}Object.defineProperty(e,"__esModule",{value:!0}),e.HistoryApiAdapter=e.Publication=void 0;var i=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};this.options=n({mappings:{},firstPage:"1"},e),i.default.call(this,this.options.mappings);var r=this;void 0!==t.addEventListener?t.addEventListener("hashchange",function(){r._hashChanged()}):void 0!==t.attachEvent&&t.attachEvent("onhashchange",function(){r._hashChanged()}),this._parseQueryString()}Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e0&&(o+="&"),o+=encodeURIComponent(a)+"="+("boolean"==typeof s?"1":encodeURIComponent(s))}if(o.length>0)if(-1!==r.indexOf("?")){var h=r.split("?");h[1].length>0&&(h[1]+="&"),h[1]+=o,r=h.join("?")}else r+="?"+o}}return r},o.prototype.getEmbedPrefix=function(){return"fbp"},o.prototype._hashChanged=function(){if(t.location){var e=t.location.hash,r=this._getInfoFromHash(e);r&&this.callback&&this.callback(r)}},o.prototype._getInfoFromHash=function(t){if("#"===t.substring(0,1)&&(t=t.slice(1)),0===t.length)return null;var e=t.split("/"),r={};return r.page=encodeURIComponent(e[0]),2===e.length?"z"!==e[1]?r.productId=encodeURIComponent(e[1]):r.zoom=!0:e.length>2&&(r.zoom="z"===e[1],r.productId=encodeURIComponent(e[2])),r},o.prototype._parseQueryString=function(){if(t.location){var e=t.location.search.replace("?","");if(e.length){for(var r={},o=e.split("&"),n=0;n1?decodeURIComponent(i[1]):null}for(var a=["p","page","z","zoom","id"],s=!1,h=0,c=a.length;h0&&(f+="&"),f=encodeURIComponent(d)+"="+(r[d]?encodeURIComponent(r[d]):""));t.location.search=f.length>0?"?"+f:""}}}},e.default=o}).call(this,r(21))},52:function(t,e,r){"use strict";function o(){this.callback=null}Object.defineProperty(e,"__esModule",{value:!0}),o.prototype.setCallback=function(t){this.callback=t},o.prototype.getPathInfo=function(){throw new Error("Method getPathInfo() should be overridden")},o.prototype.setPath=function(){throw new Error("Method setPath() should be overridden")},o.prototype.getShareUrl=function(){throw new Error("Method getShareUrl() should be overridden")},o.prototype.getEmbedUrl=function(){throw new Error("Method getEmbedUrl() should be overridden")},o.prototype.translatePath=function(){throw new Error("Method translatePath() should be overridden")},o.prototype.getFirstPage=function(){throw new Error("Method getEmbedPrefix() should be overridden")},o.prototype.getCurrentPage=function(){throw new Error("Method getEmbedPrefix() should be overridden")},o.prototype.getVersions=function(){throw new Error("Method getEmbedPrefix() should be overridden")},o.prototype.getEmbedPrefix=function(){throw new Error("Method getEmbedPrefix() should be overridden")},o.prototype.getModulesUrl=function(){throw new Error("Method getModulesUrl() should be overridden")},e.default=o},53:function(t,e,r){"use strict";(function(t){function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=n({mappings:[],firstPage:"1",currentPage:"1",editorMode:!1,hashMode:!1,crossOrigin:!1},e),i.default.call(this,this.options.mappings),this.options.hasOwnProperty("baseUrl")&&(this.baseUrl=this.options.baseUrl);var r=this;t.history&&t.history.pushState&&!this.options.editorMode&&!this.options.hashMode&&window.addEventListener("popstate",function(){r._urlChanged.call(r)})}Object.defineProperty(e,"__esModule",{value:!0});var n=Object.assign||function(t){for(var e=1;e1?decodeURIComponent(h[0]):"page"]=h.length>1?decodeURIComponent(h[1]):h[0];i.page?n.page=i.page:i.p?n.page=i.p:n.page=r&&null!==r?r:this.options.firstPage,n.page&&(n.page=n.page.replace(a,"$1"));var u=(i.zoom||i.z||"").replace(a,"$1");return n.zoom="z"===u,n},o.prototype.getBaseUrl=function(t){return t?this.baseUrl+("/"===this.baseUrl[this.baseUrl.length-1]?"":"/"):this.baseUrl},o.prototype.setPath=function(e){if(!this.options.editorMode){var r=void 0;if(t.history&&t.history.pushState&&!this.options.hashMode){r=this._getUrlParams(e,!0);var o=this.options.baseUrl+r;t.history.state&&t.history.state.page===e.page||t.history.pushState(e,null,o)}else{var n="#"+(r=this._getUrlParams(e));t.location&&t.location.hash!==n&&(t.location.hash=n)}}},o.prototype.getShareUrl=function(t){var e=this.getPathInfo(),r=this.options.baseUrl,o=this._getUrlParams(e,!0);return t&&e.page&&(r+=o),r},o.prototype.getEmbedPrefix=function(){return"fbo"},o.prototype._getUrlParams=function(t,e){var r=[],o=void 0;return t.zoom&&r.push("zoom=z"),t.page&&(e?(o=this.options.firstPage===t.page.toString()?"":t.page+"/",r.length>0&&(o+="#")):(o="page="+t.page,r.length>0&&(o+="&"))),o+r.join("&")},o.prototype._urlChanged=function(){if(t.location){var e=this.getPathInfo();e&&this.callback&&this.callback(e)}},o.prototype.getCrossOrigin=function(){return this.options.crossOrigin},e.default=o}).call(this,r(21))},54:function(t,e,r){"use strict";(function(t){function r(e){this._navigator=e||(t.navigator?t.navigator:window?window.navigator:void 0),this.browser=this._getBrowser(),this.flash=this._getFlash(),this.os=this._getOS(),this.device=this._getDevice(),this.locales=this._getLocales(),this.locale=this.locales?this.locales[0]:void 0}Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};r.prototype.constructor=r,r.prototype._getBrowser=function(){var t=void 0!==this._navigator?this._navigator.userAgent.toLowerCase():"",e=function(e){var r=t.match(e);return r&&r.length>1&&r[1]||""},r=void 0,o=/CrOS/.test(t),n=e(/edge\/(\d+(\.\d+)?)/i),i=e(/version\/(\d+(\.\d+)?)/i),a=!1;return/opera|opr/i.test(t)?r={name:"Opera",opera:!0,version:i||e(/(?:opera|opr)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(t)?r={name:"Yandex Browser",yandexbrowser:!0,version:i||e(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/windows phone/i.test(t)?(a=!0,r={name:"Windows Phone IE",ie:!0},n?(r.msedge=!0,r.version=n):(r.msie=!0,r.version=e(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(t)?(r={name:"Internet Explorer",msie:!0,ie:!0,version:e(/(?:msie |rv:)(\d+(\.\d+)?)/i)},/trident/i.test(t)&&("7.0"===r.version&&"4.0"===e(/(?:trident\/)(\d+(\.\d+)?)/i)&&(r.version="8.0"),"7.0"===r.version&&"5.0"===e(/(?:trident\/)(\d+(\.\d+)?)/i)&&(r.version="9.0"))):r=/silk/i.test(t)?{name:"Amazon Silk",silk:!0,version:e(/silk\/(\d+(\.\d+)?)/i)}:o?{name:"Chrome",chrome:!0,version:e(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/chrome.+? edge/i.test(t)?{name:"Microsoft Edge",ie:!0,msedge:!0,version:n}:/chrome|crios|crmo/i.test(t)?{name:"Chrome",chrome:!0,version:e(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(t)?{name:"SeaMonkey",seamonkey:!0,version:e(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel/i.test(t)?{name:"Firefox",firefox:!0,version:e(/(?:firefox|iceweasel)[ \/](\d+(\.\d+)?)/i)}:/phantom/i.test(t)?{name:"PhantomJS",phantom:!0,version:e(/phantomjs\/(\d+(\.\d+)?)/i)}:/safari/i.test(t)?{name:"Safari",safari:!0,version:i}:{other:!0},a||r.msie||r.msedge||!/(apple)?webkit/i.test(t)?!r.opera&&/gecko\//i.test(t)&&(r.name=r.name||"Gecko",r.gecko=!0,r.version=r.version||e(/gecko\/(\d+(\.\d+)?)/i)):(r.name=r.name||"Webkit",r.webkit=!0,!r.version&&i&&(r.version=i)),r.name||(r.name="Other"),-1!==t.toLowerCase().indexOf("publisher")&&(r.publisher=!0),r},r.prototype._getFlash=function(){var e=null;if("undefined"!==o(this._navigator.plugins)&&"object"===o(this._navigator.plugins["Shockwave Flash"])){var r=this._navigator.plugins["Shockwave Flash"].description;!r||"undefined"!==o(this._navigator.mimeTypes)&&this._navigator.mimeTypes["application/x-shockwave-flash"]&&!this._navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin||(r=r.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),e=[parseInt(r.replace(/^(.*)\..*$/,"$1"),10),parseInt(r.replace(/^.*\.(.*)\s.*$/,"$1"),10),/[a-zA-Z]/.test(r)?parseInt(r.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0])}else if("undefined"!==o(t.ActiveXObject))try{var n=new t.ActiveXObject("ShockwaveFlash.ShockwaveFlash");n&&(d=n.GetVariable("$version"),d&&(ie=!0,d=d.split(" ")[1].split(","),e=[parseInt(d[0],10),parseInt(d[1],10),parseInt(d[2],10)]))}catch(t){}return e},r.prototype._getOS=function(){var t=void 0!==this._navigator?this._navigator.userAgent.toLowerCase():"",e=function(e){var r=t.match(e);return r&&r.length>1&&r[1]||""},r={name:"Other",other:!0},o=e(/(ipod|iphone|ipad)/i).toLowerCase(),n=!/like android/i.test(t)&&/android/i.test(t),i=e(/version\/(\d+(\.\d+)?)/i);return o?r={name:"iOS",version:e(/os\s(\d+_*\d*_*\d*)/).split("_").join("."),ios:!0}:n?r={name:"Android",version:e(/android\s(\d+\.*\d*\.*\d*)/),android:!0}:/mac os/.test(t)?r={name:"Mac OS",mac:!0}:/windows/i.test(t)?r={name:"Windows",windows:!0}:/playbook|blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?r={name:"Blackberry",blackberry:!0,version:i||e(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:/(web|hpw)os/i.test(t)?(r={name:"WebOS",webos:!0,version:i||e(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(r.touchpad=!0)):/bada/i.test(t)?r={name:"Bada",bada:!0,version:e(/dolfin\/(\d+(\.\d+)?)/i)}:/tizen/i.test(t)?r={name:"Tizen",tizen:!0,version:e(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||i}:/sailfish/i.test(t)?r={name:"Sailfish",sailfish:!0,version:e(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel/i.test(t)&&/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(r={name:"Firefox OS",firefoxos:!0}),r},r.prototype._getDevice=function(){var t=void 0!==this._navigator?this._navigator.userAgent.toLowerCase():"",e={},r=!/like android/i.test(t)&&/android/i.test(t),o=/cros/.test(t);return e.name=t.match(/ipad/)?"ipad":t.match(/ipod/)?"ipod":t.match(/iphone/)?"iphone":r?"android":t.match(/windows phone/)?"wphone":t.match(/mobile/)?"mobile":t.match(/mac|win|linux/)||o?"desktop":"other",e[e.name]=!0,e},r.prototype._getLocales=function(){if(void 0!==this._navigator){if(this._navigator.languages&&this._navigator.languages.length>0){for(var t=[],e=void 0,r=0;re[0]||r[0]===e[0]&&r[1]>=e[1])&&t.push("flash"),this.userAgentInfo.browser.ie?(this.userAgentInfo.browser.version||"7.0").split(".")[0]>10&&t.push("html"):t.push("html")}else{var o=this.userAgentInfo.os.ios,n=this.userAgentInfo.os.android&&(parseInt(this.userAgentInfo.os.version.split(".")[0],10)>4||4===parseInt(this.userAgentInfo.os.version.split(".")[0],10)&&parseInt(this.userAgentInfo.os.version.split(".")[1],10)>=1);(o||n)&&((o&&parseInt(this.userAgentInfo.os.version.split(".")[0],10)>=10||n&&parseInt(this.userAgentInfo.os.version.split(".")[0],10)>=6)&&!this.userAgentInfo.browser.firefox?t.push("mobile"):t.push("mobile-old"))}return t.push("basic"),t},o.prototype.mainVersion=function(){var t=this.getSupportedVersions();if(this.priorities){for(var e=0;e0)return t[0];return null},o.prototype.isRenderable=function(){return null!==this.mainVersion()},e.default=o}});