define(["require","exports","../../Validation"],function(e,t,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=(a.prototype.execute=function(e){var t=l.validation.string("content",e.content,void 0),e=l.validation.string("url",e.url,void 0);if(t){for(var n=!1,a=document.getElementsByTagName("style"),r=0;r<a.length;r++)if(a[r].textContent===t){n=!0;break}n||((o=document.createElement("style")).appendChild(document.createTextNode(t)),document.getElementsByTagName("head")[0].appendChild(o))}if(e){var n=!1,i=document.createElement("a");i.href=e;for(var o,c=document.getElementsByTagName("link"),r=0;r<c.length;r++)if(c[r].href===i.href){n=!0;break}n||((o=document.createElement("link")).href=e,o.rel="stylesheet",o.type="text/css",document.getElementsByTagName("head")[0].appendChild(o))}return{}},a.action="gcx:wf:browser::InjectCss",a.suite="gcx:wf:builtin",a);function a(){}t.InjectCss=n});