!function(){function e(e){return l.then(function(n){for(var a=0,t=n.length;t>a;a++)if(n[a].path===e)return!0;return!1})}function n(e){return new Promise(function(n,a){$u.xhr({url:e,callback:function(e){e.status<400&&e.responseText?n(e.responseText):a()}})})}function a(e){var a=o[e];a.enabled?(a.examplesPromise||(a.examplesPromise=n(a.examplesPath)),a.examplesPromise.then(function(n){r[e].innerHTML=n,t(e).then(function(){for(var n,a=r[e].querySelectorAll('code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'),t=0;n=a[t++];)Prism.highlightElement(n)})})):r[e].innerHTML=""}function t(e){var n=s(e).map(t);return Promise.all(n).then(function(){return Prism.languages[e]?void 0:new Promise(function(n){$u.script("components/prism-"+e+".js",n)})})}function s(e){return components.languages[e]&&components.languages[e].require?"array"===$u.type(components.languages[e].require)?components.languages[e].require:[components.languages[e].require]:[]}var r={},i="https://api.github.com/repos/PrismJS/prism/git/trees/gh-pages?recursive=1",l=new Promise(function(e){$u.xhr({url:i,callback:function(n){n.status<400&&e(JSON.parse(n.responseText).tree)}})}),o=components.languages;for(var u in o)"meta"!==u&&!function(n){var t=o[n],s=!1;"default"===t.option&&(s=!0),t.enabled=s,t.path=o.meta.path.replace(/\{id}/g,n)+".js",t.examplesPath=o.meta.examplesPath.replace(/\{id}/g,n)+".html",e(t.examplesPath).then(function(e){$u.element.create("label",{attributes:{"data-id":n,title:e?"":"No examples are available for this language."},className:e?"":"unavailable",contents:[{tag:"input",properties:{type:"checkbox",name:"language",value:n,checked:s&&e,disabled:!e,onclick:function(){$$('input[name="'+this.name+'"]').forEach(function(e){o[e.value].enabled=e.checked}),a(n)}}},t.title],inside:"#languages"}),r[n]=$u.element.create("section",{id:"language-"+n,className:"language-"+n,inside:"#examples"}),s&&a(n)})}(u)}();