In fact, reading this again, they agree that cheese is good for you. So i can go back to my smelly cheeses with a glass of red. Good news. Look at the explanation for the full details.
Associate Professor of Dietetics, Swinburne University of Technology
Almost everyone loves a good vegemite and cheddar sandwich or some brie with a glass of wine. But the evidence seems to shift about whether or not cheese should be part of a healthy diet.
Most types of cheese contain salt and saturated fat, but it’s also high in protein and calcium, so what’s the verdict?
We asked five experts if cheese is bad for our health.
If you have a “yes or no” health question you’d like posed to Five Experts, email your suggestion to: alexandra.hansen@theconversation.edu.au
Disclosures: Rebecca Reynolds owns The Real Bok Choy, a nutrition and lifestyle consultancy.
Clare Collins is affiliated with the Priority Research Centre for Physical Activity and Nutrition, the University of Newcastle, NSW. She is an NHMRC Senior Research and Gladys M Brawn Research Fellow. She has received research grants from NHMRC, ARC, Hunter Medical Research Institute, Meat and Livestock Australia, Diabetes Australia, Heart Foundation, Bill and Melinda Gates Foundation, nib foundation. She has consulted to SHINE Australia, Novo Nordisk, Quality Bakers and the Sax Institute. She was a team member conducting systematic reviews to inform the Australian Dietary Guidelines update and 2017 evidence review on dietary patterns for the Heart Foundation.
//3&&n&&n(s.responseText,s)},s.send(i)}catch(e){console&&console.log(e)}}},108:function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0}),t.defaults=function(e){return r.call(i.call(arguments,1),function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])}),e},t.extend=function(e){return r.call(i.call(arguments,1),function(t){if(t)for(var n in t)e[n]=t[n]}),e};var o=[],r=o.forEach,i=o.slice},109:function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0});var o,r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,e),this.init(t,n),this.type=”backend”}return r(e,[{key:”init”,value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.services=e,this.options=i.defaults(t,this.options||{},{loadPath:”/locales/{{lng}}/{{ns}}.json”,addPath:”/locales/add/{{lng}}/{{ns}}”,allowMultiLoading:!1,parse:JSON.parse,crossDomain:!1,ajax:s.default})}},{key:”readMulti”,value:function(e,t,n){var o=this.options.loadPath;”function”==typeof this.options.loadPath&&(o=this.options.loadPath(e,t));var r=this.services.interpolator.interpolate(o,{lng:e.join(“+”),ns:t.join(“+”)});this.loadUrl(r,n)}},{key:”read”,value:function(e,t,n){var o=this.options.loadPath;”function”==typeof this.options.loadPath&&(o=this.options.loadPath([e],[t]));var r=this.services.interpolator.interpolate(o,{lng:e,ns:t});this.loadUrl(r,n)}},{key:”loadUrl”,value:function(e,t){var n=this;this.options.ajax(e,this.options,function(o,r){if(r.status>=500&&r.status=400&&r.status<500)return t(“failed loading “+e,!1);var i=void 0,a=void 0;try{i=n.options.parse(o,e)}catch(t){a=”failed parsing “+e+” to json”}if(a)return t(a,!1);t(null,i)})}},{key:”create”,value:function(e,t,n,o){var r=this;”string”==typeof e&&(e=[e]);var i={};i[n]=o||””,e.forEach(function(e){var n=r.services.interpolator.interpolate(r.options.addPath,{lng:e,ns:t});r.options.ajax(n,r.options,function(e,t){},i)})}}]),e}();l.type=”backend”,t.default=l},2:function(e,t,n){“use strict”;var o=n(25),r=n(54),i=n.n(r),a=n(27),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,”value”in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();var l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,e)}return s(e,null,[{key:”init”,value:function(e,t,n,r){o.a.use(i.a).init({backend:{loadPath:e,crossDomain:n},lng:t},function(e){e&&e.length&&Object(a.a)(“/no_js_locale?message=”+e[0]);try{r()}catch(e){throw Object(a.a)(“/js_init_failure?message=”+e),e}})}},{key:”t”,value:function(){return o.a.t.apply(o.a,arguments)||(arguments.length<=0?void 0:arguments[0])}}]),e}();t.a=l},25:function(e,t,n){“use strict”;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};var r={type:”logger”,log:function(e){this.output(“log”,e)},warn:function(e){this.output(“warn”,e)},error:function(e){this.output(“error”,e)},output:function(e,t){var n;console&&console[e]&&(n=console)[e].apply(n,function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,e),this.init(t,n)}return e.prototype.init=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||”i18next:”,this.logger=e||r,this.options=t,this.debug=t.debug},e.prototype.setDebug=function(e){this.debug=e},e.prototype.log=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,”log”,””,!0)},e.prototype.warn=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,”warn”,””,!0)},e.prototype.error=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,”error”,””)},e.prototype.deprecate=function(){for(var e=arguments.length,t=Array(e),n=0;n-1&&n.observers[e].splice(o,1)}else delete n.observers[e]})},e.prototype.emit=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o-1?e.replace(/###/g,”.”):e}function r(){return!e||”string”==typeof e}for(var i=”string”!=typeof t?[].concat(t):t.split(“.”);i.length>1;){if(r())return{};var a=o(i.shift());!e[a]&&n&&(e[a]=new n),e=e[a]}return r()?{}:{obj:e,k:o(i.shift())}}function c(e,t,n){var o=l(e,t,Object);o.obj[o.k]=n}function u(e,t){var n=l(e,t),o=n.obj,r=n.k;if(o)return o[r]}function p(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,”\\$&”)}var f={“&”:”&”,””:”>”,'”‘:”””,”‘”:”‘”,”/”:”/”};function h(e){return”string”==typeof e?e.replace(/[&”‘\/]/g,function(e){return f[e]}):e}var g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function d(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not “+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:[“translation”],defaultNS:”translation”};!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,t);var r=function(e,t){if(!e)throw new ReferenceError(“this hasn’t been initialised – super() hasn’t been called”);return!t||”object”!=typeof t&&”function”!=typeof t?e:t}(this,e.call(this));return r.data=n,r.options=o,r}return d(t,e),t.prototype.addNamespaces=function(e){this.options.ns.indexOf(e)-1&&this.options.ns.splice(t,1)},t.prototype.getResource=function(e,t,n){var o=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).keySeparator||this.options.keySeparator;void 0===o&&(o=”.”);var r=[e,t];return n&&”string”!=typeof n&&(r=r.concat(n)),n&&”string”==typeof n&&(r=r.concat(o?n.split(o):n)),e.indexOf(“.”)>-1&&(r=e.split(“.”)),u(this.data,r)},t.prototype.addResource=function(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=”.”);var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(“.”)>-1&&(o=t,t=(a=e.split(“.”))[1]),this.addNamespaces(t),c(this.data,a,o),r.silent||this.emit(“added”,e,t,n,o)},t.prototype.addResources=function(e,t,n){for(var o in n)”string”==typeof n[o]&&this.addResource(e,t,o,n[o],{silent:!0});this.emit(“added”,e,t,n)},t.prototype.addResourceBundle=function(e,t,n,o,r){var i=[e,t];e.indexOf(“.”)>-1&&(o=n,n=t,t=(i=e.split(“.”))[1]),this.addNamespaces(t);var a=u(this.data,i)||{};o?function e(t,n,o){for(var r in n)r in t?”string”==typeof t[r]||t[r]instanceof String||”string”==typeof n[r]||n[r]instanceof String?o&&(t[r]=n[r]):e(t[r],n[r],o):t[r]=n[r];return t}(a,n,r):a=g({},a,n),c(this.data,i,a),this.emit(“added”,e,t,n)},t.prototype.removeResourceBundle=function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(“removed”,e,t)},t.prototype.hasResourceBundle=function(e,t){return void 0!==this.getResource(e,t)},t.prototype.getResourceBundle=function(e,t){return t||(t=this.options.defaultNS),”v1″===this.options.compatibilityAPI?g({},this.getResource(e,t)):this.getResource(e,t)},t.prototype.toJSON=function(){return this.data},t}(a),v={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,o,r){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,n,o,r))}),t}};function b(e){return e.interpolation={unescapeSuffix:”HTML”},e.interpolation.prefix=e.interpolationPrefix||”__”,e.interpolation.suffix=e.interpolationSuffix||”__”,e.interpolation.escapeValue=e.escapeInterpolation||!1,e.interpolation.nestingPrefix=e.reusePrefix||”$t(“,e.interpolation.nestingSuffix=e.reuseSuffix||”)”,e}function m(e){return(e.interpolationPrefix||e.interpolationSuffix||void 0!==e.escapeInterpolation)&&(e=b(e)),e.nsSeparator=e.nsseparator,e.keySeparator=e.keyseparator,e.returnObjects=e.returnObjectTrees,e}var x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},w=”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 O(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not “+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,t);var r,a,s=function(e,t){if(!e)throw new ReferenceError(“this hasn’t been initialised – super() hasn’t been called”);return!t||”object”!=typeof t&&”function”!=typeof t?e:t}(this,e.call(this));return r=n,a=s,[“resourceStore”,”languageUtils”,”pluralResolver”,”interpolator”,”backendConnector”].forEach(function(e){r[e]&&(a[e]=r[e])}),s.options=o,s.logger=i.create(“translator”),s}return O(t,e),t.prototype.changeLanguage=function(e){e&&(this.language=e)},t.prototype.exists=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};return”v1″===this.options.compatibilityAPI&&(t=m(t)),void 0!==this.resolve(e,t)},t.prototype.extractFromKey=function(e,t){var n=t.nsSeparator||this.options.nsSeparator;void 0===n&&(n=”:”);var o=t.keySeparator||this.options.keySeparator||”.”,r=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.split(n);(n!==o||n===o&&this.options.ns.indexOf(i[0])>-1)&&(r=i.shift()),e=i.join(o)}return”string”==typeof r&&(r=[r]),{key:e,namespaces:r}},t.prototype.translate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(“object”!==(void 0===t?”undefined”:w(t))?t=this.options.overloadTranslationOptionHandler(arguments):”v1″===this.options.compatibilityAPI&&(t=m(t)),void 0===e||null===e||””===e)return””;”number”==typeof e&&(e=String(e)),”string”==typeof e&&(e=[e]);var n=t.keySeparator||this.options.keySeparator||”.”,o=this.extractFromKey(e[e.length-1],t),r=o.key,i=o.namespaces,a=i[i.length-1],s=t.lng||this.language,l=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(s&&”cimode”===s.toLowerCase())return l?a+(t.nsSeparator||this.options.nsSeparator)+r:r;var c=this.resolve(e,t),u=Object.prototype.toString.apply(c),p=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays;if(c&&”string”!=typeof c&&[“[object Number]”,”[object Function]”,”[object RegExp]”].indexOf(u)<0&&(!p||”[object Array]”!==u)){if(!t.returnObjects&&!this.options.returnObjects)return this.logger.warn(“accessing an object – but returnObjects options is not enabled!”),this.options.returnedObjectHandler?this.options.returnedObjectHandler(r,c,t):”key ‘”+r+” (“+this.language+”)’ returned an object instead of string.”;if(t.keySeparator||this.options.keySeparator){var f=”[object Array]”===u?[]:{};for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(f[h]=this.translate(“”+r+n+h,x({},t,{joinArrays:!1,ns:i})));c=f}}else if(p&&”[object Array]”===u)(c=c.join(p))&&(c=this.extendTranslation(c,r,t));else{var g=!1,d=!1;if(this.isValidLookup(c)||void 0===t.defaultValue||(g=!0,c=t.defaultValue),this.isValidLookup(c)||(d=!0,c=r),d||g){this.logger.log(“missingKey”,s,a,r,c);var y=[],v=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(“fallback”===this.options.saveMissingTo&&v&&v[0])for(var b=0;b1&&void 0!==arguments[1]?arguments[1]:{},o=void 0;return”string”==typeof e&&(e=[e]),e.forEach(function(e){if(!t.isValidLookup(o)){var r=t.extractFromKey(e,n),i=r.key,a=r.namespaces;t.options.fallbackNS&&(a=a.concat(t.options.fallbackNS));var s=void 0!==n.count&&”string”!=typeof n.count,l=void 0!==n.context&&”string”==typeof n.context&&””!==n.context,c=n.lngs?n.lngs:t.languageUtils.toResolveHierarchy(n.lng||t.language);a.forEach(function(e){t.isValidLookup(o)||c.forEach(function(r){if(!t.isValidLookup(o)){var a=i,c=[a],u=void 0;s&&(u=t.pluralResolver.getSuffix(r,n.count)),s&&l&&c.push(a+u),l&&c.push(a+=””+t.options.contextSeparator+n.context),s&&c.push(a+=u);for(var p=void 0;p=c.pop();)t.isValidLookup(o)||(o=t.getResource(r,e,p,n))}})})}}),o},t.prototype.isValidLookup=function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&””===e)},t.prototype.getResource=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.resourceStore.getResource(e,t,n,o)},t}(a);function j(e){return e.charAt(0).toUpperCase()+e.slice(1)}var k=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,e),this.options=t,this.whitelist=this.options.whitelist||!1,this.logger=i.create(“languageUtils”)}return e.prototype.getScriptPartFromCode=function(e){if(!e||e.indexOf(“-“)<0)return null;var t=e.split(“-“);return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join(“-“)))},e.prototype.getLanguagePartFromCode=function(e){if(!e||e.indexOf(“-“)-1){var t=[“hans”,”hant”,”latn”,”cyrl”,”cans”,”mong”,”arab”],n=e.split(“-“);return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=j(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),”sgn”!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=j(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=j(n[2].toLowerCase()))),n.join(“-“)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e},e.prototype.isWhitelisted=function(e){return(“languageOnly”===this.options.load||this.options.nonExplicitWhitelist)&&(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||this.whitelist.indexOf(e)>-1},e.prototype.getFallbackCodes=function(e,t){if(!e)return[];if(“string”==typeof e&&(e=[e]),”[object Array]”===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e.default),n||[]},e.prototype.toResolveHierarchy=function(e,t){var n=this,o=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=function(e){e&&(n.isWhitelisted(e)?r.push(e):n.logger.warn(“rejecting non-whitelisted language code: “+e))};return”string”==typeof e&&e.indexOf(“-“)>-1?(“languageOnly”!==this.options.load&&i(this.formatLanguageCode(e)),”languageOnly”!==this.options.load&&”currentOnly”!==this.options.load&&i(this.getScriptPartFromCode(e)),”currentOnly”!==this.options.load&&i(this.getLanguagePartFromCode(e))):”string”==typeof e&&i(this.formatLanguageCode(e)),o.forEach(function(e){r.indexOf(e)1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100=20)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:e%100>=3&&e%100=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e=2&&e%10<=4&&(e%100=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e2&&e=2&&(e%100=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||e%100>1&&e%10010&&e%1000&&e%1001&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,e),this.languageUtils=t,this.options=o,this.logger=i.create(“pluralResolver”),this.rules=(n={},P.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:L[e.fc]}})}),n)}return e.prototype.addRule=function(e,t){this.rules[e]=t},e.prototype.getRule=function(e){return this.rules[this.languageUtils.getLanguagePartFromCode(e)]},e.prototype.needsPlural=function(e){var t=this.getRule(e);return t&&t.numbers.length>1},e.prototype.getSuffix=function(e,t){var n=this,o=this.getRule(e);if(o){if(1===o.numbers.length)return””;var r=o.noAbs?o.plurals(t):o.plurals(Math.abs(t)),i=o.numbers[r];this.options.simplifyPluralSuffix&&2===o.numbers.length&&1===o.numbers[0]&&(2===i?i=”plural”:1===i&&(i=””));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return”v1″===this.options.compatibilityJSON?1===i?””:”number”==typeof i?”_plural_”+i.toString():a():”v2″===this.options.compatibilityJSON||2===o.numbers.length&&1===o.numbers[0]?a():2===o.numbers.length&&1===o.numbers[0]?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}return this.logger.warn(“no plural rule found for: “+e),””},e}(),C=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,e),this.logger=i.create(“interpolator”),this.init(t,!0)}return e.prototype.init=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};arguments[1]&&(this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.escape=e.interpolation&&e.interpolation.escape||h),e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.prefix=t.prefix?p(t.prefix):t.prefixEscaped||”{{“,this.suffix=t.suffix?p(t.suffix):t.suffixEscaped||”}}”,this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||”,”,this.unescapePrefix=t.unescapeSuffix?””:t.unescapePrefix||”-“,this.unescapeSuffix=this.unescapePrefix?””:t.unescapeSuffix||””,this.nestingPrefix=t.nestingPrefix?p(t.nestingPrefix):t.nestingPrefixEscaped||p(“$t(“),this.nestingSuffix=t.nestingSuffix?p(t.nestingSuffix):t.nestingSuffixEscaped||p(“)”),this.resetRegExp()},e.prototype.reset=function(){this.options&&this.init(this.options)},e.prototype.resetRegExp=function(){var e=this.prefix+”(.+?)”+this.suffix;this.regexp=new RegExp(e,”g”);var t=””+this.prefix+this.unescapePrefix+”(.+?)”+this.unescapeSuffix+this.suffix;this.regexpUnescape=new RegExp(t,”g”);var n=this.nestingPrefix+”(.+?)”+this.nestingSuffix;this.nestingRegexp=new RegExp(n,”g”)},e.prototype.interpolate=function(e,t,n){var o=this,r=void 0,i=void 0;function a(e){return e.replace(/\$/g,”$$$$”)}var l=function(e){if(e.indexOf(o.formatSeparator)2&&void 0!==arguments[2]?arguments[2]:{},o=void 0,r=void 0,i=C({},n);function a(e){if(e.indexOf(“,”)<0)return e;var t=e.split(“,”);e=t.shift();var n=t.join(“,”);n=(n=this.interpolate(n,i)).replace(/’/g,'”‘);try{i=JSON.parse(n)}catch(t){this.logger.error(“failed parsing options string in nesting for key “+e,t)}return e}for(i.applyPostProcessor=!1;o=this.nestingRegexp.exec(e);){if((r=t(a.call(this,o[1].trim()),i))&&o[0]===e&&”string”!=typeof r)return r;”string”!=typeof r&&(r=s(r)),r||(this.logger.warn(“missed to resolve “+o[1]+” for nesting “+e),r=””),e=e.replace(o[0],r),this.regexp.lastIndex=0}return e},e}(),R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},T=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError(“Invalid attempt to destructure non-iterable instance”)}}();function M(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not “+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),o=0;o3&&void 0!==arguments[3]?arguments[3]:{};!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,t);var s=function(e,t){if(!e)throw new ReferenceError(“this hasn’t been initialised – super() hasn’t been called”);return!t||”object”!=typeof t&&”function”!=typeof t?e:t}(this,e.call(this));return s.backend=n,s.store=o,s.services=r,s.options=a,s.logger=i.create(“backendConnector”),s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(r,a.backend,a),s}return M(t,e),t.prototype.queueLoad=function(e,t,n){var o=this,r=[],i=[],a=[],s=[];return e.forEach(function(e){var n=!0;t.forEach(function(t){var a=e+”|”+t;o.store.hasResourceBundle(e,t)?o.state[a]=2:o.state[a]<0||(1===o.state[a]?i.indexOf(a)<0&&i.push(a):(o.state[a]=1,n=!1,i.indexOf(a)<0&&i.push(a),r.indexOf(a)<0&&r.push(a),s.indexOf(t)3&&void 0!==arguments[3]?arguments[3]:0,r=this,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,a=arguments[5];return e.length?this.backend[n](e,t,function(s,l){s&&l&&o1&&void 0!==arguments[1]?arguments[1]:””,o=e.split(“|”),r=T(o,2),i=r[0],a=r[1];this.read(i,a,”read”,null,null,function(o,r){o&&t.logger.warn(n+”loading namespace “+a+” for language “+i+” failed”,o),!o&&r&&t.logger.log(n+”loaded namespace “+a+” for language “+i,r),t.loaded(e,o,r)})},t.prototype.saveMissing=function(e,t,n,o){this.backend&&this.backend.create&&this.backend.create(e,t,n,o),e&&e[0]&&this.store.addResource(e[0],t,n,o)},t}(a),H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function A(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not “+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),o=0;o3&&void 0!==arguments[3]?arguments[3]:{};!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,t);var s=function(e,t){if(!e)throw new ReferenceError(“this hasn’t been initialised – super() hasn’t been called”);return!t||”object”!=typeof t&&”function”!=typeof t?e:t}(this,e.call(this));return s.cache=n,s.store=o,s.services=r,s.options=a,s.logger=i.create(“cacheConnector”),s.cache&&s.cache.init&&s.cache.init(r,a.cache,a),s}return A(t,e),t.prototype.load=function(e,t,n){var o=this;if(!this.cache)return n&&n();var r=H({},this.cache.options,this.options.cache),i=”string”==typeof e?this.services.languageUtils.toResolveHierarchy(e):e;r.enabled?this.cache.load(i,function(e,t){if(e&&o.logger.error(“loading languages “+i.join(“, “)+” from cache failed”,e),t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))for(var a in t[r])if(Object.prototype.hasOwnProperty.call(t[r],a)&&”i18nStamp”!==a){var s=t[r][a];s&&o.store.addResourceBundle(r,a,s)}n&&n()}):n&&n()},t.prototype.save=function(){this.cache&&this.options.cache&&this.options.cache.enabled&&this.cache.save(this.store.data)},t}(a);function I(e){return”string”==typeof e.ns&&(e.ns=[e.ns]),”string”==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),”string”==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf(“cimode”)<0&&e.whitelist.push(“cimode”),e}var V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function U(e,t){if(!e)throw new ReferenceError(“this hasn’t been initialised – super() hasn’t been called”);return!t||”object”!=typeof t&&”function”!=typeof t?e:t}function q(e,t){if(“function”!=typeof t&&null!==t)throw new TypeError(“Super expression must either be null or a function, not “+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):function(e,t){for(var n=Object.getOwnPropertyNames(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},o=arguments[1];!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,t);var r=U(this,e.call(this));if(r.options=I(n),r.services={},r.logger=i,r.modules={external:[]},o&&!r.isInitialized&&!n.isClone){var a;if(!r.options.initImmediate)return a=r.init(n,o),U(r,a);setTimeout(function(){r.init(n,o)},0)}return r}return q(t,e),t.prototype.init=function(e,t){var n=this;function o(e){return e?”function”==typeof e?new e:e:null}if(“function”==typeof e&&(t=e,e={}),e||(e={}),”v1″===e.compatibilityAPI?this.options=V({},{debug:!1,initImmediate:!0,ns:[“translation”],defaultNS:[“translation”],fallbackLng:[“dev”],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:”all”,preload:!1,simplifyPluralSuffix:!0,keySeparator:”.”,nsSeparator:”:”,pluralSeparator:”_”,contextSeparator:”_”,saveMissing:!1,saveMissingTo:”fallback”,missingKeyHandler:!1,postProcess:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:function(){},parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){return{defaultValue:e[1]}},interpolation:{escapeValue:!0,format:function(e,t,n){return e},prefix:”{{“,suffix:”}}”,formatSeparator:”,”,unescapePrefix:”-“,nestingPrefix:”$t(“,nestingSuffix:”)”,defaultVariables:void 0}},I(function(e){return e.resStore&&(e.resources=e.resStore),e.ns&&e.ns.defaultNs?(e.defaultNS=e.ns.defaultNs,e.ns=e.ns.namespaces):e.defaultNS=e.ns||”translation”,e.fallbackToDefaultNS&&e.defaultNS&&(e.fallbackNS=e.defaultNS),e.saveMissing=e.sendMissing,e.saveMissingTo=e.sendMissingTo||”current”,e.returnNull=!e.fallbackOnNull,e.returnEmptyString=!e.fallbackOnEmpty,e.returnObjects=e.returnObjectTrees,e.joinArrays=”\n”,e.returnedObjectHandler=e.objectTreeKeyHandler,e.parseMissingKeyHandler=e.parseMissingKey,e.appendNamespaceToMissingKey=!0,e.nsSeparator=e.nsseparator||”:”,e.keySeparator=e.keyseparator||”.”,”sprintf”===e.shortcutFunction&&(e.overloadTranslationOptionHandler=function(e){for(var t=[],n=1;n1?t-1:0),r=1;r1?t-1:0),r=1;r1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:K;if(this.options.resources)t(null);else{if(this.language&&”cimode”===this.language.toLowerCase())return t();var n=[],o=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach(function(e){n.indexOf(e)1&&void 0!==arguments[1]?arguments[1]:{},r=V({},o);return r.lng=r.lng||e.lng,r.lngs=r.lngs||e.lngs,r.ns=r.ns||e.ns,n.t(t,r)};return”string”==typeof e?o.lng=e:o.lngs=e,o.ns=t,o},t.prototype.t=function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)},t.prototype.exists=function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)},t.prototype.setDefaultNamespace=function(e){this.options.defaultNS=e},t.prototype.loadNamespaces=function(e,t){var n=this;if(!this.options.ns)return t&&t();”string”==typeof e&&(e=[e]),e.forEach(function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)}),this.loadResources(t)},t.prototype.loadLanguages=function(e,t){“string”==typeof e&&(e=[e]);var n=this.options.preload||[],o=e.filter(function(e){return n.indexOf(e)0?this.languages[0]:this.language),!e)return”rtl”;return[“ar”,”shu”,”sqr”,”ssh”,”xaa”,”yhd”,”yud”,”aao”,”abh”,”abv”,”acm”,”acq”,”acw”,”acx”,”acy”,”adf”,”ads”,”aeb”,”aec”,”afb”,”ajp”,”apc”,”apd”,”arb”,”arq”,”ars”,”ary”,”arz”,”auz”,”avl”,”ayh”,”ayl”,”ayn”,”ayp”,”bbz”,”pga”,”he”,”iw”,”ps”,”pbt”,”pbu”,”pst”,”prp”,”prd”,”ur”,”ydd”,”yds”,”yih”,”ji”,”yi”,”hbo”,”men”,”xmn”,”fa”,”jpr”,”peo”,”pes”,”prs”,”dv”,”sam”].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?”rtl”:”ltr”},t.prototype.createInstance=function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments[1])},t.prototype.cloneInstance=function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K,r=V({},this.options,n,{isClone:!0}),i=new t(r,o);return[“store”,”services”,”language”].forEach(function(t){i[t]=e[t]}),i.translator=new S(i.services,i.options),i.translator.on(“*”,function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o https://theconversation.com/assets/runtime-35cf524207974d2ad30a.jshttps://platform.twitter.com/widgets/widget_iframe.7a5ca036ea5299f1d2ebb2234731e35e.html?origin=https%3A%2F%2Ftheconversation.com&settingsEndpoint=https%3A%2F%2Fsyndication.twitter.com%2Fsettings
Comments on this article are now closed.