mirror of
https://github.com/owncast/owncast.git
synced 2024-12-23 09:40:49 +03:00
1 line
No EOL
7.8 KiB
JavaScript
Vendored
1 line
No EOL
7.8 KiB
JavaScript
Vendored
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3509],{63509:function(e,t,n){function r(e){return{type:e,style:"keyword"}}n.r(t),n.d(t,{haxe:function(){return et},hxml:function(){return en}});var i,a,o=r("keyword a"),u=r("keyword b"),l=r("keyword c"),c=r("operator"),f={type:"atom",style:"atom"},s={type:"attribute",style:"attribute"},i=r("typedef"),d={if:o,while:o,else:u,do:u,try:u,return:l,break:l,continue:l,new:l,throw:l,var:r("var"),inline:s,static:s,using:r("import"),public:s,private:s,cast:r("cast"),import:r("import"),macro:r("macro"),function:r("function"),catch:r("catch"),untyped:r("untyped"),callback:r("cb"),for:r("for"),switch:r("switch"),case:r("case"),default:r("default"),in:c,never:r("property_access"),trace:r("trace"),class:i,abstract:i,enum:i,interface:i,typedef:i,extends:i,implements:i,dynamic:i,true:f,false:f,null:f},p=/[+\-*&%=<>!?|]/;function m(e,t,n){return t.tokenize=n,n(e,t)}function v(e,t){for(var n,r=!1;null!=(n=e.next());){if(n==t&&!r)return!0;r=!r&&"\\"==n}}function y(e,t){var n,r=e.next();if('"'==r||"'"==r)return m(e,t,function(e,t){return v(e,r)&&(t.tokenize=y),i="string",a=void 0,"string"});if(/[\[\]{}\(\),;\:\.]/.test(r))return i=r,void(a=void 0);if("0"==r&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),i="number",a=void 0,"number";if(/\d/.test(r)||"-"==r&&e.eat(/\d/))return e.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/),i="number",a=void 0,"number";if(t.reAllowed&&"~"==r&&e.eat(/\//))return v(e,"/"),e.eatWhile(/[gimsu]/),i="regexp",a=void 0,"string.special";if("/"==r)return e.eat("*")?m(e,t,h):e.eat("/")?(e.skipToEnd(),i="comment",a=void 0,"comment"):(e.eatWhile(p),o=e.current(),i="operator",a=o,null);if("#"==r)return e.skipToEnd(),i="conditional",a=void 0,"meta";if("@"==r)return e.eat(/:/),e.eatWhile(/[\w_]/),i="metadata",a=void 0,"meta";if(p.test(r))return e.eatWhile(p),u=e.current(),i="operator",a=u,null;if(/[A-Z]/.test(r))return e.eatWhile(/[\w_<>]/),l=n=e.current(),i="type",a=l,"type";e.eatWhile(/[\w_]/);var o,u,l,c,f,s,n=e.current(),b=d.propertyIsEnumerable(n)&&d[n];return b&&t.kwAllowed?(c=b.type,f=b.style,s=n,i=c,a=s,f):(i="variable",a=n,"variable")}function h(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=y;break}r="*"==n}return i="comment",a=void 0,"comment"}var b={atom:!0,number:!0,variable:!0,string:!0,regexp:!0};function k(e,t,n,r,i,a){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=a,null!=r&&(this.align=r)}function x(e){for(var t=w.state,n=t.importedtypes;n;n=n.next)if(n.name==e)return;t.importedtypes={name:e,next:t.importedtypes}}var w={state:null,column:null,marked:null,cc:null};function g(){for(var e=arguments.length-1;e>=0;e--)w.cc.push(arguments[e])}function A(){return g.apply(null,arguments),!0}function V(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function S(e){var t=w.state;if(t.context){if(w.marked="def",V(e,t.localVars))return;t.localVars={name:e,next:t.localVars}}else if(t.globalVars){if(V(e,t.globalVars))return;t.globalVars={name:e,next:t.globalVars}}}var E={name:"this",next:null};function W(){w.state.context||(w.state.localVars=E),w.state.context={prev:w.state.context,vars:w.state.localVars}}function _(){w.state.localVars=w.state.context.vars,w.state.context=w.state.context.prev}function z(e,t){var n=function(){var n=w.state;n.lexical=new k(n.indented,w.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function T(){var e=w.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function D(e){return function t(n){return n==e?A():";"==e?g():A(t)}}function O(e){return"@"==e?A(C):"var"==e?A(z("vardef"),K,D(";"),T):"keyword a"==e?A(z("form"),Z,O,T):"keyword b"==e?A(z("form"),O,T):"{"==e?A(z("}"),W,J,T,_):";"==e?A():"attribute"==e?A(I):"function"==e?A(R):"for"==e?A(z("form"),D("("),z(")"),M,D(")"),T,O,T):"variable"==e?A(z("stat"),j):"switch"==e?A(z("form"),Z,z("}","switch"),D("{"),J,T,T):"case"==e?A(Z,D(":")):"default"==e?A(D(":")):"catch"==e?A(z("form"),W,D("("),ee,D(")"),O,T,_):"import"==e?A(B,D(";")):"typedef"==e?A(F):g(z("stat"),Z,D(";"),T)}function Z(e){return b.hasOwnProperty(e)||"type"==e?A(P):"function"==e?A(R):"keyword c"==e?A(N):"("==e?A(z(")"),N,D(")"),T,P):"operator"==e?A(Z):"["==e?A(z("]"),H(N,"]"),T,P):"{"==e?A(z("}"),H(G,"}"),T,P):A()}function N(e){return e.match(/[;\}\)\],]/)?g():g(Z)}function P(e,t){if("operator"==e&&/\+\+|--/.test(t))return A(P);if("operator"==e||":"==e)return A(Z);if(";"!=e){if("("==e)return A(z(")"),H(Z,")"),T,P);if("."==e)return A(q,P);if("["==e)return A(z("]"),Z,D("]"),T,P)}}function I(e){return"attribute"==e?A(I):"function"==e?A(R):"var"==e?A(K):void 0}function C(e){return":"==e||"variable"==e?A(C):"("==e?A(z(")"),H($,")"),T,O):void 0}function $(e){if("variable"==e)return A()}function B(e,t){return"variable"==e&&/[A-Z]/.test(t.charAt(0))?(x(t),A()):"variable"==e||"property"==e||"."==e||"*"==t?A(B):void 0}function F(e,t){return"variable"==e&&/[A-Z]/.test(t.charAt(0))?(x(t),A()):"type"==e&&/[A-Z]/.test(t.charAt(0))?A():void 0}function j(e){return":"==e?A(T,O):g(P,D(";"),T)}function q(e){if("variable"==e)return w.marked="property",A()}function G(e){if("variable"==e&&(w.marked="property"),b.hasOwnProperty(e))return A(D(":"),Z)}function H(e,t){function n(r){return","==r?A(e,n):r==t?A():A(D(t))}return function(r){return r==t?A():g(e,n)}}function J(e){return"}"==e?A():g(O,J)}function K(e,t){return"variable"==e?(S(t),A(U,L)):A()}function L(e,t){return"="==t?A(Z,L):","==e?A(K):void 0}function M(e,t){return"variable"==e?(S(t),A(Q,Z)):g()}function Q(e,t){if("in"==t)return A()}function R(e,t){return"variable"==e||"type"==e?(S(t),A(R)):"new"==t?A(R):"("==e?A(z(")"),W,H(ee,")"),T,U,O,_):void 0}function U(e){if(":"==e)return A(X)}function X(e){return"type"==e||"variable"==e?A():"{"==e?A(z("}"),H(Y,"}"),T):void 0}function Y(e){if("variable"==e)return A(U)}function ee(e,t){if("variable"==e)return S(t),A(U)}_.lex=!0,T.lex=!0;let et={name:"haxe",startState:function(e){return{tokenize:y,reAllowed:!0,kwAllowed:!0,cc:[],lexical:new k(-e,0,"block",!1),importedtypes:["Int","Float","String","Void","Std","Bool","Dynamic","Array"],context:null,indented:0}},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==i?n:(t.reAllowed=!!("operator"==i||"keyword c"==i||i.match(/^[\[{}\(,;:]$/)),t.kwAllowed="."!=i,function(e,t,n,r,i){var a=e.cc;for(w.state=e,w.stream=i,w.marked=null,w.cc=a,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((a.length?a.pop():O)(n,r)){for(;a.length&&a[a.length-1].lex;)a.pop()();if(w.marked)return w.marked;if("variable"==n&&function(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0}(e,r))return"variableName.local";if("variable"==n&&function(e,t){if(/[a-z]/.test(t.charAt(0)))return!1;for(var n=e.importedtypes.length,r=0;r<n;r++)if(e.importedtypes[r]==t)return!0}(e,r))return"variableName.special";return t}}(t,n,i,a,e))},indent:function(e,t,n){if(e.tokenize!=y)return 0;var r=t&&t.charAt(0),i=e.lexical;"stat"==i.type&&"}"==r&&(i=i.prev);var a=i.type,o=r==a;return"vardef"==a?i.indented+4:"form"==a&&"{"==r?i.indented:"stat"==a||"form"==a?i.indented+n.unit:"switch"!=i.info||o?i.align?i.column+(o?0:1):i.indented+(o?0:n.unit):i.indented+(/^(?:case|default)\b/.test(t)?n.unit:2*n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}},en={name:"hxml",startState:function(){return{define:!1,inString:!1}},token:function(e,t){var n=e.peek(),r=e.sol();if("#"==n)return e.skipToEnd(),"comment";if(r&&"-"==n){var i="variable-2";return e.eat(/-/),"-"==e.peek()&&(e.eat(/-/),i="keyword a"),"D"==e.peek()&&(e.eat(/[D]/),i="keyword c",t.define=!0),e.eatWhile(/[A-Z]/i),i}var n=e.peek();return(!1==t.inString&&"'"==n&&(t.inString=!0,e.next()),!0==t.inString)?(e.skipTo("'")||e.skipToEnd(),"'"==e.peek()&&(e.next(),t.inString=!1),"string"):(e.next(),null)},languageData:{commentTokens:{line:"#"}}}}}]); |