UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

2 lines 2.65 kB
import{n as e}from"./rolldown-runtime-DkW27tQK.js";function t(e,t){for(var n=t.split(` `),r=0;r<n.length;r++)i[n[r]]=e}function n(e,t){for(var n,r,i=!1;!e.eol()&&(n=e.next())!=t.pending;){if(n===`$`&&r!=`\\`&&t.pending==`"`){i=!0;break}r=n}return i&&e.backUp(1),t.continueString=n!=t.pending,`string`}function r(e,t){var r=e.match(/[\w]+/,!1),o=e.match(/(\s+)?\w+\s+=>.*/,!1),s=e.match(/(\s+)?[\w:_]+(\s+)?{/,!1),c=e.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),l=e.next();if(l===`$`)return e.match(a)?t.continueString?`variableName.special`:`variable`:`error`;if(t.continueString)return e.backUp(1),n(e,t);if(t.inDefinition){if(e.match(/(\s+)?[\w:_]+(\s+)?/))return`def`;e.match(/\s+{/),t.inDefinition=!1}return t.inInclude?(e.match(/(\s+)?\S+(\s+)?/),t.inInclude=!1,`def`):e.match(/(\s+)?\w+\(/)?(e.backUp(1),`def`):o?(e.match(/(\s+)?\w+/),`tag`):r&&i.hasOwnProperty(r)?(e.backUp(1),e.match(/[\w]+/),e.match(/\s+\S+\s+{/,!1)&&(t.inDefinition=!0),r==`include`&&(t.inInclude=!0),i[r]):/(^|\s+)[A-Z][\w:_]+/.test(r)?(e.backUp(1),e.match(/(^|\s+)[A-Z][\w:_]+/),`def`):s?(e.match(/(\s+)?[\w:_]+/),`def`):c?(e.match(/(\s+)?[@]{1,2}/),`atom`):l==`#`?(e.skipToEnd(),`comment`):l==`'`||l==`"`?(t.pending=l,n(e,t)):l==`{`||l==`}`?`bracket`:l==`/`?(e.match(/^[^\/]*\//),`string.special`):l.match(/[0-9]/)?(e.eatWhile(/[0-9]+/),`number`):l==`=`?(e.peek()==`>`&&e.next(),`operator`):(e.eatWhile(/[\w-]/),null)}var i,a,o;function s(){return(s=e((()=>{i={},a=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/,t(`keyword`,`class define site node include import inherits`),t(`keyword`,`case if else in and elsif default or`),t(`atom`,`false true running present absent file directory undef`),t(`builtin`,`action augeas burst chain computer cron destination dport exec file filebucket group host icmp iniface interface jump k5login limit log_level log_prefix macauthorization mailalias maillist mcx mount nagios_command nagios_contact nagios_contactgroup nagios_host nagios_hostdependency nagios_hostescalation nagios_hostextinfo nagios_hostgroup nagios_service nagios_servicedependency nagios_serviceescalation nagios_serviceextinfo nagios_servicegroup nagios_timeperiod name notify outiface package proto reject resources router schedule scheduled_task selboolean selmodule service source sport ssh_authorized_key sshkey stage state table tidy todest toports tosource user vlan yumrepo zfs zone zpool`),o={name:`puppet`,startState:function(){var e={};return e.inDefinition=!1,e.inInclude=!1,e.continueString=!1,e.pending=!1,e},token:function(e,t){return e.eatSpace()?null:r(e,t)}}})))()}s();export{o as puppet}; //# sourceMappingURL=puppet-vmUf8xpM.js.map