(self.webpackChunkwpuEsModules=self.webpackChunkwpuEsModules||[]).push([[836],{70836:function(t){t.exports=function(){const t=Object.freeze({});class e{constructor(t){if(!t.phrases)throw new Error('Must be instantiated with an object with property "phrases"');try{const e=babelHelpers.objectSpread2({onMissingKey:this.onMissingKey,allowMissing:!1},t);this._polyglot=new Polyglot(e)}catch(t){throw new Error("Problem instantiating polyglot: "+t)}}t(){switch(arguments.length){case 1:return this._polyglot.t(arguments[0]);case 2:return arguments[1]instanceof Object?this._polyglot.t(arguments[0],this._escapeData(arguments[1])):new Error("Second argument must be an object to interpolate data.");default:throw new Error("Must have One or Two arguments")}}raw(e){return{type:t,payload:e}}_escapeData(e){const n=(n,r)=>{if(e[r]&&e[r].type)e[r].type===t?n[r]=e[r].payload:new Error("Interpolation must be string or number.");else{const t=e[r],o="number"==typeof t;t instanceof Object&&(t.toString=function(){const e=JSON.stringify(t);return console.error(`Interpolation data must be a string or number. \n You gave: ${e}`),e}),n[r]=o?t:escapeHtml(t.toString())}return n};return Object.keys(e).reduce(n,{})}onMissingKey(t){return console.error("The Polyglot key given was not found:",t),t}}return e}()}}]); //# sourceURL=https://static-assets.filmfreeway.com/webpack/esmodule_bundles/FFESMODULES-836~2d987794629a8d6c47d9.js