code
stringlengths 501
5.19M
| package
stringlengths 2
81
| path
stringlengths 9
304
| filename
stringlengths 4
145
|
---|---|---|---|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[4333],{34333:function(E,T,R){R.r(T),R.d(T,{conf:function(){return A},language:function(){return I}});var A={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},I={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ABORT","ABSOLUTE","ACTION","ADA","ADD","AFTER","ALL","ALLOCATE","ALTER","ALWAYS","ANALYZE","AND","ANY","ARE","AS","ASC","ASSERTION","AT","ATTACH","AUTHORIZATION","AUTOINCREMENT","AVG","BACKUP","BEFORE","BEGIN","BETWEEN","BIT","BIT_LENGTH","BOTH","BREAK","BROWSE","BULK","BY","CASCADE","CASCADED","CASE","CAST","CATALOG","CHAR","CHARACTER","CHARACTER_LENGTH","CHAR_LENGTH","CHECK","CHECKPOINT","CLOSE","CLUSTERED","COALESCE","COLLATE","COLLATION","COLUMN","COMMIT","COMPUTE","CONFLICT","CONNECT","CONNECTION","CONSTRAINT","CONSTRAINTS","CONTAINS","CONTAINSTABLE","CONTINUE","CONVERT","CORRESPONDING","COUNT","CREATE","CROSS","CURRENT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATE","DAY","DBCC","DEALLOCATE","DEC","DECIMAL","DECLARE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DENY","DESC","DESCRIBE","DESCRIPTOR","DETACH","DIAGNOSTICS","DISCONNECT","DISK","DISTINCT","DISTRIBUTED","DO","DOMAIN","DOUBLE","DROP","DUMP","EACH","ELSE","END","END-EXEC","ERRLVL","ESCAPE","EXCEPT","EXCEPTION","EXCLUDE","EXCLUSIVE","EXEC","EXECUTE","EXISTS","EXIT","EXPLAIN","EXTERNAL","EXTRACT","FAIL","FALSE","FETCH","FILE","FILLFACTOR","FILTER","FIRST","FLOAT","FOLLOWING","FOR","FOREIGN","FORTRAN","FOUND","FREETEXT","FREETEXTTABLE","FROM","FULL","FUNCTION","GENERATED","GET","GLOB","GLOBAL","GO","GOTO","GRANT","GROUP","GROUPS","HAVING","HOLDLOCK","HOUR","IDENTITY","IDENTITYCOL","IDENTITY_INSERT","IF","IGNORE","IMMEDIATE","IN","INCLUDE","INDEX","INDEXED","INDICATOR","INITIALLY","INNER","INPUT","INSENSITIVE","INSERT","INSTEAD","INT","INTEGER","INTERSECT","INTERVAL","INTO","IS","ISNULL","ISOLATION","JOIN","KEY","KILL","LANGUAGE","LAST","LEADING","LEFT","LEVEL","LIKE","LIMIT","LINENO","LOAD","LOCAL","LOWER","MATCH","MATERIALIZED","MAX","MERGE","MIN","MINUTE","MODULE","MONTH","NAMES","NATIONAL","NATURAL","NCHAR","NEXT","NO","NOCHECK","NONCLUSTERED","NONE","NOT","NOTHING","NOTNULL","NULL","NULLIF","NULLS","NUMERIC","OCTET_LENGTH","OF","OFF","OFFSET","OFFSETS","ON","ONLY","OPEN","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","OPTION","OR","ORDER","OTHERS","OUTER","OUTPUT","OVER","OVERLAPS","PAD","PARTIAL","PARTITION","PASCAL","PERCENT","PIVOT","PLAN","POSITION","PRAGMA","PRECEDING","PRECISION","PREPARE","PRESERVE","PRIMARY","PRINT","PRIOR","PRIVILEGES","PROC","PROCEDURE","PUBLIC","QUERY","RAISE","RAISERROR","RANGE","READ","READTEXT","REAL","RECONFIGURE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELATIVE","RELEASE","RENAME","REPLACE","REPLICATION","RESTORE","RESTRICT","RETURN","RETURNING","REVERT","REVOKE","RIGHT","ROLLBACK","ROW","ROWCOUNT","ROWGUIDCOL","ROWS","RULE","SAVE","SAVEPOINT","SCHEMA","SCROLL","SECOND","SECTION","SECURITYAUDIT","SELECT","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","SESSION","SESSION_USER","SET","SETUSER","SHUTDOWN","SIZE","SMALLINT","SOME","SPACE","SQL","SQLCA","SQLCODE","SQLERROR","SQLSTATE","SQLWARNING","STATISTICS","SUBSTRING","SUM","SYSTEM_USER","TABLE","TABLESAMPLE","TEMP","TEMPORARY","TEXTSIZE","THEN","TIES","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TOP","TRAILING","TRAN","TRANSACTION","TRANSLATE","TRANSLATION","TRIGGER","TRIM","TRUE","TRUNCATE","TRY_CONVERT","TSEQUAL","UNBOUNDED","UNION","UNIQUE","UNKNOWN","UNPIVOT","UPDATE","UPDATETEXT","UPPER","USAGE","USE","USER","USING","VACUUM","VALUE","VALUES","VARCHAR","VARYING","VIEW","VIRTUAL","WAITFOR","WHEN","WHENEVER","WHERE","WHILE","WINDOW","WITH","WITHIN GROUP","WITHOUT","WORK","WRITE","WRITETEXT","YEAR","ZONE"],operators:["ALL","AND","ANY","BETWEEN","EXISTS","IN","LIKE","NOT","OR","SOME","EXCEPT","INTERSECT","UNION","APPLY","CROSS","FULL","INNER","JOIN","LEFT","OUTER","RIGHT","CONTAINS","FREETEXT","IS","NULL","PIVOT","UNPIVOT","MATCHED"],builtinFunctions:["AVG","CHECKSUM_AGG","COUNT","COUNT_BIG","GROUPING","GROUPING_ID","MAX","MIN","SUM","STDEV","STDEVP","VAR","VARP","CUME_DIST","FIRST_VALUE","LAG","LAST_VALUE","LEAD","PERCENTILE_CONT","PERCENTILE_DISC","PERCENT_RANK","COLLATE","COLLATIONPROPERTY","TERTIARY_WEIGHTS","FEDERATION_FILTERING_VALUE","CAST","CONVERT","PARSE","TRY_CAST","TRY_CONVERT","TRY_PARSE","ASYMKEY_ID","ASYMKEYPROPERTY","CERTPROPERTY","CERT_ID","CRYPT_GEN_RANDOM","DECRYPTBYASYMKEY","DECRYPTBYCERT","DECRYPTBYKEY","DECRYPTBYKEYAUTOASYMKEY","DECRYPTBYKEYAUTOCERT","DECRYPTBYPASSPHRASE","ENCRYPTBYASYMKEY","ENCRYPTBYCERT","ENCRYPTBYKEY","ENCRYPTBYPASSPHRASE","HASHBYTES","IS_OBJECTSIGNED","KEY_GUID","KEY_ID","KEY_NAME","SIGNBYASYMKEY","SIGNBYCERT","SYMKEYPROPERTY","VERIFYSIGNEDBYCERT","VERIFYSIGNEDBYASYMKEY","CURSOR_STATUS","DATALENGTH","IDENT_CURRENT","IDENT_INCR","IDENT_SEED","IDENTITY","SQL_VARIANT_PROPERTY","CURRENT_TIMESTAMP","DATEADD","DATEDIFF","DATEFROMPARTS","DATENAME","DATEPART","DATETIME2FROMPARTS","DATETIMEFROMPARTS","DATETIMEOFFSETFROMPARTS","DAY","EOMONTH","GETDATE","GETUTCDATE","ISDATE","MONTH","SMALLDATETIMEFROMPARTS","SWITCHOFFSET","SYSDATETIME","SYSDATETIMEOFFSET","SYSUTCDATETIME","TIMEFROMPARTS","TODATETIMEOFFSET","YEAR","CHOOSE","COALESCE","IIF","NULLIF","ABS","ACOS","ASIN","ATAN","ATN2","CEILING","COS","COT","DEGREES","EXP","FLOOR","LOG","LOG10","PI","POWER","RADIANS","RAND","ROUND","SIGN","SIN","SQRT","SQUARE","TAN","APP_NAME","APPLOCK_MODE","APPLOCK_TEST","ASSEMBLYPROPERTY","COL_LENGTH","COL_NAME","COLUMNPROPERTY","DATABASE_PRINCIPAL_ID","DATABASEPROPERTYEX","DB_ID","DB_NAME","FILE_ID","FILE_IDEX","FILE_NAME","FILEGROUP_ID","FILEGROUP_NAME","FILEGROUPPROPERTY","FILEPROPERTY","FULLTEXTCATALOGPROPERTY","FULLTEXTSERVICEPROPERTY","INDEX_COL","INDEXKEY_PROPERTY","INDEXPROPERTY","OBJECT_DEFINITION","OBJECT_ID","OBJECT_NAME","OBJECT_SCHEMA_NAME","OBJECTPROPERTY","OBJECTPROPERTYEX","ORIGINAL_DB_NAME","PARSENAME","SCHEMA_ID","SCHEMA_NAME","SCOPE_IDENTITY","SERVERPROPERTY","STATS_DATE","TYPE_ID","TYPE_NAME","TYPEPROPERTY","DENSE_RANK","NTILE","RANK","ROW_NUMBER","PUBLISHINGSERVERNAME","OPENDATASOURCE","OPENQUERY","OPENROWSET","OPENXML","CERTENCODED","CERTPRIVATEKEY","CURRENT_USER","HAS_DBACCESS","HAS_PERMS_BY_NAME","IS_MEMBER","IS_ROLEMEMBER","IS_SRVROLEMEMBER","LOGINPROPERTY","ORIGINAL_LOGIN","PERMISSIONS","PWDENCRYPT","PWDCOMPARE","SESSION_USER","SESSIONPROPERTY","SUSER_ID","SUSER_NAME","SUSER_SID","SUSER_SNAME","SYSTEM_USER","USER","USER_ID","USER_NAME","ASCII","CHAR","CHARINDEX","CONCAT","DIFFERENCE","FORMAT","LEFT","LEN","LOWER","LTRIM","NCHAR","PATINDEX","QUOTENAME","REPLACE","REPLICATE","REVERSE","RIGHT","RTRIM","SOUNDEX","SPACE","STR","STUFF","SUBSTRING","UNICODE","UPPER","BINARY_CHECKSUM","CHECKSUM","CONNECTIONPROPERTY","CONTEXT_INFO","CURRENT_REQUEST_ID","ERROR_LINE","ERROR_NUMBER","ERROR_MESSAGE","ERROR_PROCEDURE","ERROR_SEVERITY","ERROR_STATE","FORMATMESSAGE","GETANSINULL","GET_FILESTREAM_TRANSACTION_CONTEXT","HOST_ID","HOST_NAME","ISNULL","ISNUMERIC","MIN_ACTIVE_ROWVERSION","NEWID","NEWSEQUENTIALID","ROWCOUNT_BIG","XACT_STATE","TEXTPTR","TEXTVALID","COLUMNS_UPDATED","EVENTDATA","TRIGGER_NESTLEVEL","UPDATE","CHANGETABLE","CHANGE_TRACKING_CONTEXT","CHANGE_TRACKING_CURRENT_VERSION","CHANGE_TRACKING_IS_COLUMN_IN_MASK","CHANGE_TRACKING_MIN_VALID_VERSION","CONTAINSTABLE","FREETEXTTABLE","SEMANTICKEYPHRASETABLE","SEMANTICSIMILARITYDETAILSTABLE","SEMANTICSIMILARITYTABLE","FILETABLEROOTPATH","GETFILENAMESPACEPATH","GETPATHLOCATOR","PATHNAME","GET_TRANSMISSION_STATUS"],builtinVariables:["@@DATEFIRST","@@DBTS","@@LANGID","@@LANGUAGE","@@LOCK_TIMEOUT","@@MAX_CONNECTIONS","@@MAX_PRECISION","@@NESTLEVEL","@@OPTIONS","@@REMSERVER","@@SERVERNAME","@@SERVICENAME","@@SPID","@@TEXTSIZE","@@VERSION","@@CURSOR_ROWS","@@FETCH_STATUS","@@DATEFIRST","@@PROCID","@@ERROR","@@IDENTITY","@@ROWCOUNT","@@TRANCOUNT","@@CONNECTIONS","@@CPU_BUSY","@@IDLE","@@IO_BUSY","@@PACKET_ERRORS","@@PACK_RECEIVED","@@PACK_SENT","@@TIMETICKS","@@TOTAL_ERRORS","@@TOTAL_READ","@@TOTAL_WRITE"],pseudoColumns:["$ACTION","$IDENTITY","$ROWGUID","$PARTITION"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/BEGIN\s+(DISTRIBUTED\s+)?TRAN(SACTION)?\b/i,"keyword"],[/BEGIN\s+TRY\b/i,{token:"keyword.try"}],[/END\s+TRY\b/i,{token:"keyword.try"}],[/BEGIN\s+CATCH\b/i,{token:"keyword.catch"}],[/END\s+CATCH\b/i,{token:"keyword.catch"}],[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}}}}]);
//# sourceMappingURL=4333.61aa216a.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/4333.61aa216a.chunk.js
|
4333.61aa216a.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[1324],{1324:function(e,t,n){n.r(t),n.d(t,{conf:function(){return m},language:function(){return u}});var r,o,i=n(37762),s=n(94389),c=Object.defineProperty,a=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,l=function(e,t,n,r){if(t&&"object"===typeof t||"function"===typeof t){var o,s=(0,i.Z)(p(t));try{var l=function(){var i=o.value;g.call(e,i)||i===n||c(e,i,{get:function(){return t[i]},enumerable:!(r=a(t,i))||r.enumerable})};for(s.s();!(o=s.n()).done;)l()}catch(d){s.e(d)}finally{s.f()}}return e},d={};l(d,r=s,"default"),o&&l(o,r,"default");var m={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:d.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:d.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:d.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:d.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},u={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}}}}]);
//# sourceMappingURL=1324.be7507c8.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/1324.be7507c8.chunk.js
|
1324.be7507c8.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[9186],{89186:function(e,t,n){n.r(t),n.d(t,{conf:function(){return i},language:function(){return o}});var i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],autoCloseBefore:".,=}])>' \n\t",indentationRules:{increaseIndentPattern:new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},o={defaultToken:"",tokenPostfix:".proto",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],symbols:/[=><!~?:&|+\-*/^%]+/,keywords:["syntax","import","weak","public","package","option","repeated","oneof","map","reserved","to","max","enum","message","service","rpc","stream","returns","package","optional","true","false"],builtinTypes:["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],operators:["=","+","-"],namedLiterals:["true","false"],escapes:"\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",identifier:/[a-zA-Z]\w*/,fullIdentifier:/@identifier(?:\s*\.\s*@identifier)*/,optionName:/(?:@identifier|\(\s*@fullIdentifier\s*\))(?:\s*\.\s*@identifier)*/,messageName:/@identifier/,enumName:/@identifier/,messageType:/\.?\s*(?:@identifier\s*\.\s*)*@messageName/,enumType:/\.?\s*(?:@identifier\s*\.\s*)*@enumName/,floatLit:/[0-9]+\s*\.\s*[0-9]*(?:@exponent)?|[0-9]+@exponent|\.[0-9]+(?:@exponent)?/,exponent:/[eE]\s*[+-]?\s*[0-9]+/,boolLit:/true\b|false\b/,decimalLit:/[1-9][0-9]*/,octalLit:/0[0-7]*/,hexLit:/0[xX][0-9a-fA-F]+/,type:/double|float|int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string|bytes|@messageType|@enumType/,keyType:/int32|int64|uint32|uint64|sint32|sint64|fixed32|fixed64|sfixed32|sfixed64|bool|string/,tokenizer:{root:[{include:"@whitespace"},[/syntax/,"keyword"],[/=/,"operators"],[/;/,"delimiter"],[/(")(proto3)(")/,["string.quote","string",{token:"string.quote",switchTo:"@topLevel.proto3"}]],[/(")(proto2)(")/,["string.quote","string",{token:"string.quote",switchTo:"@topLevel.proto2"}]],[/.*?/,{token:"",switchTo:"@topLevel.proto2"}]],topLevel:[{include:"@whitespace"},{include:"@constant"},[/=/,"operators"],[/[;.]/,"delimiter"],[/@fullIdentifier/,{cases:{option:{token:"keyword",next:"@option.$S2"},enum:{token:"keyword",next:"@enumDecl.$S2"},message:{token:"keyword",next:"@messageDecl.$S2"},service:{token:"keyword",next:"@serviceDecl.$S2"},extend:{cases:{"$S2==proto2":{token:"keyword",next:"@extendDecl.$S2"}}},"@keywords":"keyword","@default":"identifier"}}]],enumDecl:[{include:"@whitespace"},[/@identifier/,"type.identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@enumBody.$S2"}]],enumBody:[{include:"@whitespace"},{include:"@constant"},[/=/,"operators"],[/;/,"delimiter"],[/option\b/,"keyword","@option.$S2"],[/@identifier/,"identifier"],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],messageDecl:[{include:"@whitespace"},[/@identifier/,"type.identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@messageBody.$S2"}]],messageBody:[{include:"@whitespace"},{include:"@constant"},[/=/,"operators"],[/;/,"delimiter"],["(map)(s*)(<)",["keyword","white",{token:"@brackets",bracket:"@open",next:"@map.$S2"}]],[/@identifier/,{cases:{option:{token:"keyword",next:"@option.$S2"},enum:{token:"keyword",next:"@enumDecl.$S2"},message:{token:"keyword",next:"@messageDecl.$S2"},oneof:{token:"keyword",next:"@oneofDecl.$S2"},extensions:{cases:{"$S2==proto2":{token:"keyword",next:"@reserved.$S2"}}},reserved:{token:"keyword",next:"@reserved.$S2"},"(?:repeated|optional)":{token:"keyword",next:"@field.$S2"},required:{cases:{"$S2==proto2":{token:"keyword",next:"@field.$S2"}}},"$S2==proto3":{token:"@rematch",next:"@field.$S2"}}}],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],extendDecl:[{include:"@whitespace"},[/@identifier/,"type.identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@extendBody.$S2"}]],extendBody:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/(?:repeated|optional|required)/,"keyword","@field.$S2"],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],options:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/@optionName/,"annotation"],[/[()]/,"annotation.brackets"],[/=/,"operator"],[/\]/,{token:"@brackets",bracket:"@close",next:"@pop"}]],option:[{include:"@whitespace"},[/@optionName/,"annotation"],[/[()]/,"annotation.brackets"],[/=/,"operator","@pop"]],oneofDecl:[{include:"@whitespace"},[/@identifier/,"identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@oneofBody.$S2"}]],oneofBody:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/(@identifier)(\s*)(=)/,["identifier","white","delimiter"]],[/@fullIdentifier|\./,{cases:{"@builtinTypes":"keyword","@default":"type.identifier"}}],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],reserved:[{include:"@whitespace"},[/,/,"delimiter"],[/;/,"delimiter","@pop"],{include:"@constant"},[/to\b|max\b/,"keyword"]],map:[{include:"@whitespace"},[/@fullIdentifier|\./,{cases:{"@builtinTypes":"keyword","@default":"type.identifier"}}],[/,/,"delimiter"],[/>/,{token:"@brackets",bracket:"@close",switchTo:"identifier"}]],field:[{include:"@whitespace"},["group",{cases:{"$S2==proto2":{token:"keyword",switchTo:"@groupDecl.$S2"}}}],[/(@identifier)(\s*)(=)/,["identifier","white",{token:"delimiter",next:"@pop"}]],[/@fullIdentifier|\./,{cases:{"@builtinTypes":"keyword","@default":"type.identifier"}}]],groupDecl:[{include:"@whitespace"},[/@identifier/,"identifier"],["=","operator"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@messageBody.$S2"}],{include:"@constant"}],type:[{include:"@whitespace"},[/@identifier/,"type.identifier","@pop"],[/./,"delimiter"]],identifier:[{include:"@whitespace"},[/@identifier/,"identifier","@pop"]],serviceDecl:[{include:"@whitespace"},[/@identifier/,"identifier"],[/{/,{token:"@brackets",bracket:"@open",switchTo:"@serviceBody.$S2"}]],serviceBody:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],[/option\b/,"keyword","@option.$S2"],[/rpc\b/,"keyword","@rpc.$S2"],[/\[/,{token:"@brackets",bracket:"@open",next:"@options.$S2"}],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],rpc:[{include:"@whitespace"},[/@identifier/,"identifier"],[/\(/,{token:"@brackets",bracket:"@open",switchTo:"@request.$S2"}],[/{/,{token:"@brackets",bracket:"@open",next:"@methodOptions.$S2"}],[/;/,"delimiter","@pop"]],request:[{include:"@whitespace"},[/@messageType/,{cases:{stream:{token:"keyword",next:"@type.$S2"},"@default":"type.identifier"}}],[/\)/,{token:"@brackets",bracket:"@close",switchTo:"@returns.$S2"}]],returns:[{include:"@whitespace"},[/returns\b/,"keyword"],[/\(/,{token:"@brackets",bracket:"@open",switchTo:"@response.$S2"}]],response:[{include:"@whitespace"},[/@messageType/,{cases:{stream:{token:"keyword",next:"@type.$S2"},"@default":"type.identifier"}}],[/\)/,{token:"@brackets",bracket:"@close",switchTo:"@rpc.$S2"}]],methodOptions:[{include:"@whitespace"},{include:"@constant"},[/;/,"delimiter"],["option","keyword"],[/@optionName/,"annotation"],[/[()]/,"annotation.brackets"],[/=/,"operator"],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],constant:[["@boolLit","keyword.constant"],["@hexLit","number.hex"],["@octalLit","number.octal"],["@decimalLit","number"],["@floatLit","number.float"],[/("([^"\\]|\\.)*|'([^'\\]|\\.)*)$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],[/'/,{token:"string.quote",bracket:"@open",next:"@stringSingle"}],[/{/,{token:"@brackets",bracket:"@open",next:"@prototext"}],[/identifier/,"identifier"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],prototext:[{include:"@whitespace"},{include:"@constant"},[/@identifier/,"identifier"],[/[:;]/,"delimiter"],[/}/,{token:"@brackets",bracket:"@close",next:"@pop"}]]}}}}]);
//# sourceMappingURL=9186.73a41896.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/9186.73a41896.chunk.js
|
9186.73a41896.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[6965],{56965:function(e,n,t){t.r(n),t.d(n,{CompletionAdapter:function(){return _n},DefinitionAdapter:function(){return Rn},DiagnosticsAdapter:function(){return pn},DocumentColorAdapter:function(){return Nn},DocumentFormattingEditProvider:function(){return Zn},DocumentHighlightAdapter:function(){return An},DocumentLinkAdapter:function(){return Fn},DocumentRangeFormattingEditProvider:function(){return jn},DocumentSymbolAdapter:function(){return Mn},FoldingRangeAdapter:function(){return Un},HoverAdapter:function(){return Cn},ReferenceAdapter:function(){return Dn},RenameAdapter:function(){return Pn},SelectionRangeAdapter:function(){return Wn},WorkerManager:function(){return le},fromPosition:function(){return wn},fromRange:function(){return kn},setupMode:function(){return Kn},setupMode1:function(){return Hn},toRange:function(){return yn},toTextEdit:function(){return En}});var r,i,o=t(60136),a=t(27277),s=t(15671),u=t(43144),c=t(4942),d=t(37762),g=t(94389),f=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyNames,v=Object.prototype.hasOwnProperty,p=function(e,n,t,r){if(n&&"object"===typeof n||"function"===typeof n){var i,o=(0,d.Z)(h(n));try{var a=function(){var o=i.value;v.call(e,o)||o===t||f(e,o,{get:function(){return n[o]},enumerable:!(r=l(n,o))||r.enumerable})};for(o.s();!(i=o.n()).done;)a()}catch(s){o.e(s)}finally{o.f()}}return e},m={};p(m,r=g,"default"),i&&p(i,r,"default");var _,w,k,y,b,E,C,x,I,A,S,R,T,D,P,M,L,F,Z,j,O,N,U,W,V,H,K,z,X,B,$,q,Q,G,J,Y,ee,ne,te,re,ie,oe,ae,se,ue,ce,de,ge,fe,le=function(){function e(n){var t=this;(0,s.Z)(this,e),(0,c.Z)(this,"_defaults",void 0),(0,c.Z)(this,"_idleCheckInterval",void 0),(0,c.Z)(this,"_lastUsedTime",void 0),(0,c.Z)(this,"_configChangeListener",void 0),(0,c.Z)(this,"_worker",void 0),(0,c.Z)(this,"_client",void 0),this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((function(){return t._checkIfIdle()}),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((function(){return t._stopWorker()}))}return(0,u.Z)(e,[{key:"_stopWorker",value:function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}},{key:"dispose",value:function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}},{key:"_checkIfIdle",value:function(){this._worker&&(Date.now()-this._lastUsedTime>12e4&&this._stopWorker())}},{key:"_getClient",value:function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=m.editor.createWebWorker({moduleId:"vs/language/html/htmlWorker",createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._client=this._worker.getProxy()),this._client}},{key:"getLanguageServiceWorker",value:function(){for(var e,n=this,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return this._getClient().then((function(n){e=n})).then((function(e){if(n._worker)return n._worker.withSyncedResources(r)})).then((function(n){return e}))}}]),e}();(w=_||(_={})).MIN_VALUE=-2147483648,w.MAX_VALUE=2147483647,(y=k||(k={})).MIN_VALUE=0,y.MAX_VALUE=2147483647,(E=b||(b={})).create=function(e,n){return e===Number.MAX_VALUE&&(e=k.MAX_VALUE),n===Number.MAX_VALUE&&(n=k.MAX_VALUE),{line:e,character:n}},E.is=function(e){var n=e;return hn.objectLiteral(n)&&hn.uinteger(n.line)&&hn.uinteger(n.character)},(x=C||(C={})).create=function(e,n,t,r){if(hn.uinteger(e)&&hn.uinteger(n)&&hn.uinteger(t)&&hn.uinteger(r))return{start:b.create(e,n),end:b.create(t,r)};if(b.is(e)&&b.is(n))return{start:e,end:n};throw new Error("Range#create called with invalid arguments["+e+", "+n+", "+t+", "+r+"]")},x.is=function(e){var n=e;return hn.objectLiteral(n)&&b.is(n.start)&&b.is(n.end)},(A=I||(I={})).create=function(e,n){return{uri:e,range:n}},A.is=function(e){var n=e;return hn.defined(n)&&C.is(n.range)&&(hn.string(n.uri)||hn.undefined(n.uri))},(R=S||(S={})).create=function(e,n,t,r){return{targetUri:e,targetRange:n,targetSelectionRange:t,originSelectionRange:r}},R.is=function(e){var n=e;return hn.defined(n)&&C.is(n.targetRange)&&hn.string(n.targetUri)&&(C.is(n.targetSelectionRange)||hn.undefined(n.targetSelectionRange))&&(C.is(n.originSelectionRange)||hn.undefined(n.originSelectionRange))},(D=T||(T={})).create=function(e,n,t,r){return{red:e,green:n,blue:t,alpha:r}},D.is=function(e){var n=e;return hn.numberRange(n.red,0,1)&&hn.numberRange(n.green,0,1)&&hn.numberRange(n.blue,0,1)&&hn.numberRange(n.alpha,0,1)},(M=P||(P={})).create=function(e,n){return{range:e,color:n}},M.is=function(e){var n=e;return C.is(n.range)&&T.is(n.color)},(F=L||(L={})).create=function(e,n,t){return{label:e,textEdit:n,additionalTextEdits:t}},F.is=function(e){var n=e;return hn.string(n.label)&&(hn.undefined(n.textEdit)||G.is(n))&&(hn.undefined(n.additionalTextEdits)||hn.typedArray(n.additionalTextEdits,G.is))},(j=Z||(Z={})).Comment="comment",j.Imports="imports",j.Region="region",(N=O||(O={})).create=function(e,n,t,r,i){var o={startLine:e,endLine:n};return hn.defined(t)&&(o.startCharacter=t),hn.defined(r)&&(o.endCharacter=r),hn.defined(i)&&(o.kind=i),o},N.is=function(e){var n=e;return hn.uinteger(n.startLine)&&hn.uinteger(n.startLine)&&(hn.undefined(n.startCharacter)||hn.uinteger(n.startCharacter))&&(hn.undefined(n.endCharacter)||hn.uinteger(n.endCharacter))&&(hn.undefined(n.kind)||hn.string(n.kind))},(W=U||(U={})).create=function(e,n){return{location:e,message:n}},W.is=function(e){var n=e;return hn.defined(n)&&I.is(n.location)&&hn.string(n.message)},(H=V||(V={})).Error=1,H.Warning=2,H.Information=3,H.Hint=4,(z=K||(K={})).Unnecessary=1,z.Deprecated=2,(X||(X={})).is=function(e){var n=e;return void 0!==n&&null!==n&&hn.string(n.href)},($=B||(B={})).create=function(e,n,t,r,i,o){var a={range:e,message:n};return hn.defined(t)&&(a.severity=t),hn.defined(r)&&(a.code=r),hn.defined(i)&&(a.source=i),hn.defined(o)&&(a.relatedInformation=o),a},$.is=function(e){var n,t=e;return hn.defined(t)&&C.is(t.range)&&hn.string(t.message)&&(hn.number(t.severity)||hn.undefined(t.severity))&&(hn.integer(t.code)||hn.string(t.code)||hn.undefined(t.code))&&(hn.undefined(t.codeDescription)||hn.string(null===(n=t.codeDescription)||void 0===n?void 0:n.href))&&(hn.string(t.source)||hn.undefined(t.source))&&(hn.undefined(t.relatedInformation)||hn.typedArray(t.relatedInformation,U.is))},(Q=q||(q={})).create=function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i={title:e,command:n};return hn.defined(t)&&t.length>0&&(i.arguments=t),i},Q.is=function(e){var n=e;return hn.defined(n)&&hn.string(n.title)&&hn.string(n.command)},(J=G||(G={})).replace=function(e,n){return{range:e,newText:n}},J.insert=function(e,n){return{range:{start:e,end:e},newText:n}},J.del=function(e){return{range:e,newText:""}},J.is=function(e){var n=e;return hn.objectLiteral(n)&&hn.string(n.newText)&&C.is(n.range)},(ee=Y||(Y={})).create=function(e,n,t){var r={label:e};return void 0!==n&&(r.needsConfirmation=n),void 0!==t&&(r.description=t),r},ee.is=function(e){var n=e;return void 0!==n&&hn.objectLiteral(n)&&hn.string(n.label)&&(hn.boolean(n.needsConfirmation)||void 0===n.needsConfirmation)&&(hn.string(n.description)||void 0===n.description)},(ne||(ne={})).is=function(e){return"string"===typeof e},(re=te||(te={})).replace=function(e,n,t){return{range:e,newText:n,annotationId:t}},re.insert=function(e,n,t){return{range:{start:e,end:e},newText:n,annotationId:t}},re.del=function(e,n){return{range:e,newText:"",annotationId:n}},re.is=function(e){var n=e;return G.is(n)&&(Y.is(n.annotationId)||ne.is(n.annotationId))},(oe=ie||(ie={})).create=function(e,n){return{textDocument:e,edits:n}},oe.is=function(e){var n=e;return hn.defined(n)&&_e.is(n.textDocument)&&Array.isArray(n.edits)},(se=ae||(ae={})).create=function(e,n,t){var r={kind:"create",uri:e};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==t&&(r.annotationId=t),r},se.is=function(e){var n=e;return n&&"create"===n.kind&&hn.string(n.uri)&&(void 0===n.options||(void 0===n.options.overwrite||hn.boolean(n.options.overwrite))&&(void 0===n.options.ignoreIfExists||hn.boolean(n.options.ignoreIfExists)))&&(void 0===n.annotationId||ne.is(n.annotationId))},(ce=ue||(ue={})).create=function(e,n,t,r){var i={kind:"rename",oldUri:e,newUri:n};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==r&&(i.annotationId=r),i},ce.is=function(e){var n=e;return n&&"rename"===n.kind&&hn.string(n.oldUri)&&hn.string(n.newUri)&&(void 0===n.options||(void 0===n.options.overwrite||hn.boolean(n.options.overwrite))&&(void 0===n.options.ignoreIfExists||hn.boolean(n.options.ignoreIfExists)))&&(void 0===n.annotationId||ne.is(n.annotationId))},(ge=de||(de={})).create=function(e,n,t){var r={kind:"delete",uri:e};return void 0===n||void 0===n.recursive&&void 0===n.ignoreIfNotExists||(r.options=n),void 0!==t&&(r.annotationId=t),r},ge.is=function(e){var n=e;return n&&"delete"===n.kind&&hn.string(n.uri)&&(void 0===n.options||(void 0===n.options.recursive||hn.boolean(n.options.recursive))&&(void 0===n.options.ignoreIfNotExists||hn.boolean(n.options.ignoreIfNotExists)))&&(void 0===n.annotationId||ne.is(n.annotationId))},(fe||(fe={})).is=function(e){var n=e;return n&&(void 0!==n.changes||void 0!==n.documentChanges)&&(void 0===n.documentChanges||n.documentChanges.every((function(e){return hn.string(e.kind)?ae.is(e)||ue.is(e)||de.is(e):ie.is(e)})))};var he,ve,pe,me,_e,we,ke,ye,be,Ee,Ce,xe,Ie,Ae,Se,Re,Te,De,Pe,Me,Le,Fe,Ze,je,Oe,Ne,Ue,We,Ve,He,Ke,ze,Xe,Be,$e,qe,Qe,Ge,Je,Ye,en,nn,tn,rn,on,an,sn,un,cn,dn,gn,fn=function(){function e(e,n){this.edits=e,this.changeAnnotations=n}return e.prototype.insert=function(e,n,t){var r,i;if(void 0===t?r=G.insert(e,n):ne.is(t)?(i=t,r=te.insert(e,n,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),r=te.insert(e,n,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,n,t){var r,i;if(void 0===t?r=G.replace(e,n):ne.is(t)?(i=t,r=te.replace(e,n,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),r=te.replace(e,n,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,n){var t,r;if(void 0===n?t=G.del(e):ne.is(n)?(r=n,t=te.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),t=te.del(e,r)),this.edits.push(t),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ln=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,n){var t;if(ne.is(e)?t=e:(t=this.nextId(),n=e),void 0!==this._annotations[t])throw new Error("Id "+t+" is already in use.");if(void 0===n)throw new Error("No annotation provided for id "+t);return this._annotations[t]=n,this._size++,t},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var n=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new ln(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(ie.is(e)){var t=new fn(e.edits,n._changeAnnotations);n._textEditChanges[e.textDocument.uri]=t}}))):e.changes&&Object.keys(e.changes).forEach((function(t){var r=new fn(e.changes[t]);n._textEditChanges[t]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(_e.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var n={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[n.uri])){var t={textDocument:n,edits:i=[]};this._workspaceEdit.documentChanges.push(t),r=new fn(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new fn(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new ln,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,n,t){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(Y.is(n)||ne.is(n)?r=n:t=n,void 0===r?i=ae.create(e,t):(o=ne.is(r)?r:this._changeAnnotations.manage(r),i=ae.create(e,t,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,n,t,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(Y.is(t)||ne.is(t)?i=t:r=t,void 0===i?o=ue.create(e,n,r):(a=ne.is(i)?i:this._changeAnnotations.manage(i),o=ue.create(e,n,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,n,t){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(Y.is(n)||ne.is(n)?r=n:t=n,void 0===r?i=de.create(e,t):(o=ne.is(r)?r:this._changeAnnotations.manage(r),i=de.create(e,t,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}();(ve=he||(he={})).create=function(e){return{uri:e}},ve.is=function(e){var n=e;return hn.defined(n)&&hn.string(n.uri)},(me=pe||(pe={})).create=function(e,n){return{uri:e,version:n}},me.is=function(e){var n=e;return hn.defined(n)&&hn.string(n.uri)&&hn.integer(n.version)},(we=_e||(_e={})).create=function(e,n){return{uri:e,version:n}},we.is=function(e){var n=e;return hn.defined(n)&&hn.string(n.uri)&&(null===n.version||hn.integer(n.version))},(ye=ke||(ke={})).create=function(e,n,t,r){return{uri:e,languageId:n,version:t,text:r}},ye.is=function(e){var n=e;return hn.defined(n)&&hn.string(n.uri)&&hn.string(n.languageId)&&hn.integer(n.version)&&hn.string(n.text)},(Ee=be||(be={})).PlainText="plaintext",Ee.Markdown="markdown",function(e){e.is=function(n){var t=n;return t===e.PlainText||t===e.Markdown}}(be||(be={})),(Ce||(Ce={})).is=function(e){var n=e;return hn.objectLiteral(e)&&be.is(n.kind)&&hn.string(n.value)},(Ie=xe||(xe={})).Text=1,Ie.Method=2,Ie.Function=3,Ie.Constructor=4,Ie.Field=5,Ie.Variable=6,Ie.Class=7,Ie.Interface=8,Ie.Module=9,Ie.Property=10,Ie.Unit=11,Ie.Value=12,Ie.Enum=13,Ie.Keyword=14,Ie.Snippet=15,Ie.Color=16,Ie.File=17,Ie.Reference=18,Ie.Folder=19,Ie.EnumMember=20,Ie.Constant=21,Ie.Struct=22,Ie.Event=23,Ie.Operator=24,Ie.TypeParameter=25,(Se=Ae||(Ae={})).PlainText=1,Se.Snippet=2,(Re||(Re={})).Deprecated=1,(De=Te||(Te={})).create=function(e,n,t){return{newText:e,insert:n,replace:t}},De.is=function(e){var n=e;return n&&hn.string(n.newText)&&C.is(n.insert)&&C.is(n.replace)},(Me=Pe||(Pe={})).asIs=1,Me.adjustIndentation=2,(Le||(Le={})).create=function(e){return{label:e}},(Fe||(Fe={})).create=function(e,n){return{items:e||[],isIncomplete:!!n}},(je=Ze||(Ze={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},je.is=function(e){var n=e;return hn.string(n)||hn.objectLiteral(n)&&hn.string(n.language)&&hn.string(n.value)},(Oe||(Oe={})).is=function(e){var n=e;return!!n&&hn.objectLiteral(n)&&(Ce.is(n.contents)||Ze.is(n.contents)||hn.typedArray(n.contents,Ze.is))&&(void 0===e.range||C.is(e.range))},(Ne||(Ne={})).create=function(e,n){return n?{label:e,documentation:n}:{label:e}},(Ue||(Ue={})).create=function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i={label:e};return hn.defined(n)&&(i.documentation=n),hn.defined(t)?i.parameters=t:i.parameters=[],i},(Ve=We||(We={})).Text=1,Ve.Read=2,Ve.Write=3,(He||(He={})).create=function(e,n){var t={range:e};return hn.number(n)&&(t.kind=n),t},(ze=Ke||(Ke={})).File=1,ze.Module=2,ze.Namespace=3,ze.Package=4,ze.Class=5,ze.Method=6,ze.Property=7,ze.Field=8,ze.Constructor=9,ze.Enum=10,ze.Interface=11,ze.Function=12,ze.Variable=13,ze.Constant=14,ze.String=15,ze.Number=16,ze.Boolean=17,ze.Array=18,ze.Object=19,ze.Key=20,ze.Null=21,ze.EnumMember=22,ze.Struct=23,ze.Event=24,ze.Operator=25,ze.TypeParameter=26,(Xe||(Xe={})).Deprecated=1,(Be||(Be={})).create=function(e,n,t,r,i){var o={name:e,kind:n,location:{uri:r,range:t}};return i&&(o.containerName=i),o},(qe=$e||($e={})).create=function(e,n,t,r,i,o){var a={name:e,detail:n,kind:t,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},qe.is=function(e){var n=e;return n&&hn.string(n.name)&&hn.number(n.kind)&&C.is(n.range)&&C.is(n.selectionRange)&&(void 0===n.detail||hn.string(n.detail))&&(void 0===n.deprecated||hn.boolean(n.deprecated))&&(void 0===n.children||Array.isArray(n.children))&&(void 0===n.tags||Array.isArray(n.tags))},(Ge=Qe||(Qe={})).Empty="",Ge.QuickFix="quickfix",Ge.Refactor="refactor",Ge.RefactorExtract="refactor.extract",Ge.RefactorInline="refactor.inline",Ge.RefactorRewrite="refactor.rewrite",Ge.Source="source",Ge.SourceOrganizeImports="source.organizeImports",Ge.SourceFixAll="source.fixAll",(Ye=Je||(Je={})).create=function(e,n){var t={diagnostics:e};return void 0!==n&&null!==n&&(t.only=n),t},Ye.is=function(e){var n=e;return hn.defined(n)&&hn.typedArray(n.diagnostics,B.is)&&(void 0===n.only||hn.typedArray(n.only,hn.string))},(nn=en||(en={})).create=function(e,n,t){var r={title:e},i=!0;return"string"===typeof n?(i=!1,r.kind=n):q.is(n)?r.command=n:r.edit=n,i&&void 0!==t&&(r.kind=t),r},nn.is=function(e){var n=e;return n&&hn.string(n.title)&&(void 0===n.diagnostics||hn.typedArray(n.diagnostics,B.is))&&(void 0===n.kind||hn.string(n.kind))&&(void 0!==n.edit||void 0!==n.command)&&(void 0===n.command||q.is(n.command))&&(void 0===n.isPreferred||hn.boolean(n.isPreferred))&&(void 0===n.edit||fe.is(n.edit))},(rn=tn||(tn={})).create=function(e,n){var t={range:e};return hn.defined(n)&&(t.data=n),t},rn.is=function(e){var n=e;return hn.defined(n)&&C.is(n.range)&&(hn.undefined(n.command)||q.is(n.command))},(an=on||(on={})).create=function(e,n){return{tabSize:e,insertSpaces:n}},an.is=function(e){var n=e;return hn.defined(n)&&hn.uinteger(n.tabSize)&&hn.boolean(n.insertSpaces)},(un=sn||(sn={})).create=function(e,n,t){return{range:e,target:n,data:t}},un.is=function(e){var n=e;return hn.defined(n)&&C.is(n.range)&&(hn.undefined(n.target)||hn.string(n.target))},(dn=cn||(cn={})).create=function(e,n){return{range:e,parent:n}},dn.is=function(e){var n=e;return void 0!==n&&C.is(n.range)&&(void 0===n.parent||dn.is(n.parent))},function(e){function n(e,t){if(e.length<=1)return e;var r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);n(i,t),n(o,t);for(var a=0,s=0,u=0;a<i.length&&s<o.length;){var c=t(i[a],o[s]);e[u++]=c<=0?i[a++]:o[s++]}for(;a<i.length;)e[u++]=i[a++];for(;s<o.length;)e[u++]=o[s++];return e}e.create=function(e,n,t,r){return new vn(e,n,t,r)},e.is=function(e){var n=e;return!!(hn.defined(n)&&hn.string(n.uri)&&(hn.undefined(n.languageId)||hn.string(n.languageId))&&hn.uinteger(n.lineCount)&&hn.func(n.getText)&&hn.func(n.positionAt)&&hn.func(n.offsetAt))},e.applyEdits=function(e,t){for(var r=e.getText(),i=n(t,(function(e,n){var t=e.range.start.line-n.range.start.line;return 0===t?e.range.start.character-n.range.start.character:t})),o=r.length,a=i.length-1;a>=0;a--){var s=i[a],u=e.offsetAt(s.range.start),c=e.offsetAt(s.range.end);if(!(c<=o))throw new Error("Overlapping edit");r=r.substring(0,u)+s.newText+r.substring(c,r.length),o=u}return r}}(gn||(gn={}));var hn,vn=function(){function e(e,n,t,r){this._uri=e,this._languageId=n,this._version=t,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var n=this.offsetAt(e.start),t=this.offsetAt(e.end);return this._content.substring(n,t)}return this._content},e.prototype.update=function(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],n=this._content,t=!0,r=0;r<n.length;r++){t&&(e.push(r),t=!1);var i=n.charAt(r);t="\r"===i||"\n"===i,"\r"===i&&r+1<n.length&&"\n"===n.charAt(r+1)&&r++}t&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),t=0,r=n.length;if(0===r)return b.create(0,e);for(;t<r;){var i=Math.floor((t+r)/2);n[i]>e?r=i:t=i+1}var o=t-1;return b.create(o,e-n[o])},e.prototype.offsetAt=function(e){var n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;var t=n[e.line],r=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(t+e.character,r),t)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();!function(e){var n=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===n.call(e)},e.number=function(e){return"[object Number]"===n.call(e)},e.numberRange=function(e,t,r){return"[object Number]"===n.call(e)&&t<=e&&e<=r},e.integer=function(e){return"[object Number]"===n.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===n.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===n.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,n){return Array.isArray(e)&&e.every(n)}}(hn||(hn={}));var pn=function(){function e(n,t,r){var i=this;(0,s.Z)(this,e),(0,c.Z)(this,"_disposables",[]),(0,c.Z)(this,"_listener",Object.create(null)),this._languageId=n,this._worker=t;var o=function(e){var n,t=e.getLanguageId();t===i._languageId&&(i._listener[e.uri.toString()]=e.onDidChangeContent((function(){window.clearTimeout(n),n=window.setTimeout((function(){return i._doValidate(e.uri,t)}),500)})),i._doValidate(e.uri,t))},a=function(e){m.editor.setModelMarkers(e,i._languageId,[]);var n=e.uri.toString(),t=i._listener[n];t&&(t.dispose(),delete i._listener[n])};this._disposables.push(m.editor.onDidCreateModel(o)),this._disposables.push(m.editor.onWillDisposeModel(a)),this._disposables.push(m.editor.onDidChangeModelLanguage((function(e){a(e.model),o(e.model)}))),this._disposables.push(r((function(e){m.editor.getModels().forEach((function(e){e.getLanguageId()===i._languageId&&(a(e),o(e))}))}))),this._disposables.push({dispose:function(){for(var e in m.editor.getModels().forEach(a),i._listener)i._listener[e].dispose()}}),m.editor.getModels().forEach(o)}return(0,u.Z)(e,[{key:"dispose",value:function(){this._disposables.forEach((function(e){return e&&e.dispose()})),this._disposables.length=0}},{key:"_doValidate",value:function(e,n){this._worker(e).then((function(n){return n.doValidation(e.toString())})).then((function(t){var r=t.map((function(e){return function(e,n){var t="number"===typeof n.code?String(n.code):n.code;return{severity:mn(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:t,source:n.source}}(0,e)})),i=m.editor.getModel(e);i&&i.getLanguageId()===n&&m.editor.setModelMarkers(i,n,r)})).then(void 0,(function(e){console.error(e)}))}}]),e}();function mn(e){switch(e){case V.Error:return m.MarkerSeverity.Error;case V.Warning:return m.MarkerSeverity.Warning;case V.Information:return m.MarkerSeverity.Info;case V.Hint:return m.MarkerSeverity.Hint;default:return m.MarkerSeverity.Info}}var _n=function(){function e(n,t){(0,s.Z)(this,e),this._worker=n,this._triggerCharacters=t}return(0,u.Z)(e,[{key:"triggerCharacters",get:function(){return this._triggerCharacters}},{key:"provideCompletionItems",value:function(e,n,t,r){var i=e.uri;return this._worker(i).then((function(e){return e.doComplete(i.toString(),wn(n))})).then((function(t){if(t){var r=e.getWordUntilPosition(n),i=new m.Range(n.lineNumber,r.startColumn,n.lineNumber,r.endColumn),o=t.items.map((function(e){var n,t,r={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:bn(e.kind)};return e.textEdit&&("undefined"!==typeof(t=e.textEdit).insert&&"undefined"!==typeof t.replace?r.range={insert:yn(e.textEdit.insert),replace:yn(e.textEdit.replace)}:r.range=yn(e.textEdit.range),r.insertText=e.textEdit.newText),e.additionalTextEdits&&(r.additionalTextEdits=e.additionalTextEdits.map(En)),e.insertTextFormat===Ae.Snippet&&(r.insertTextRules=m.languages.CompletionItemInsertTextRule.InsertAsSnippet),r}));return{isIncomplete:t.isIncomplete,suggestions:o}}}))}}]),e}();function wn(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function kn(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function yn(e){if(e)return new m.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function bn(e){var n=m.languages.CompletionItemKind;switch(e){case xe.Text:return n.Text;case xe.Method:return n.Method;case xe.Function:return n.Function;case xe.Constructor:return n.Constructor;case xe.Field:return n.Field;case xe.Variable:return n.Variable;case xe.Class:return n.Class;case xe.Interface:return n.Interface;case xe.Module:return n.Module;case xe.Property:return n.Property;case xe.Unit:return n.Unit;case xe.Value:return n.Value;case xe.Enum:return n.Enum;case xe.Keyword:return n.Keyword;case xe.Snippet:return n.Snippet;case xe.Color:return n.Color;case xe.File:return n.File;case xe.Reference:return n.Reference}return n.Property}function En(e){if(e)return{range:yn(e.range),text:e.newText}}var Cn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideHover",value:function(e,n,t){var r=e.uri;return this._worker(r).then((function(e){return e.doHover(r.toString(),wn(n))})).then((function(e){if(e)return{range:yn(e.range),contents:In(e.contents)}}))}}]),e}();function xn(e){return"string"===typeof e?{value:e}:(n=e)&&"object"===typeof n&&"string"===typeof n.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var n}function In(e){if(e)return Array.isArray(e)?e.map(xn):[xn(e)]}var An=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideDocumentHighlights",value:function(e,n,t){var r=e.uri;return this._worker(r).then((function(e){return e.findDocumentHighlights(r.toString(),wn(n))})).then((function(e){if(e)return e.map((function(e){return{range:yn(e.range),kind:Sn(e.kind)}}))}))}}]),e}();function Sn(e){switch(e){case We.Read:return m.languages.DocumentHighlightKind.Read;case We.Write:return m.languages.DocumentHighlightKind.Write;case We.Text:return m.languages.DocumentHighlightKind.Text}return m.languages.DocumentHighlightKind.Text}var Rn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideDefinition",value:function(e,n,t){var r=e.uri;return this._worker(r).then((function(e){return e.findDefinition(r.toString(),wn(n))})).then((function(e){if(e)return[Tn(e)]}))}}]),e}();function Tn(e){return{uri:m.Uri.parse(e.uri),range:yn(e.range)}}var Dn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideReferences",value:function(e,n,t,r){var i=e.uri;return this._worker(i).then((function(e){return e.findReferences(i.toString(),wn(n))})).then((function(e){if(e)return e.map(Tn)}))}}]),e}(),Pn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideRenameEdits",value:function(e,n,t,r){var i=e.uri;return this._worker(i).then((function(e){return e.doRename(i.toString(),wn(n),t)})).then((function(e){return function(e){if(!e||!e.changes)return;var n=[];for(var t in e.changes){var r,i=m.Uri.parse(t),o=(0,d.Z)(e.changes[t]);try{for(o.s();!(r=o.n()).done;){var a=r.value;n.push({resource:i,versionId:void 0,textEdit:{range:yn(a.range),text:a.newText}})}}catch(s){o.e(s)}finally{o.f()}}return{edits:n}}(e)}))}}]),e}();var Mn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideDocumentSymbols",value:function(e,n){var t=e.uri;return this._worker(t).then((function(e){return e.findDocumentSymbols(t.toString())})).then((function(e){if(e)return e.map((function(e){return{name:e.name,detail:"",containerName:e.containerName,kind:Ln(e.kind),range:yn(e.location.range),selectionRange:yn(e.location.range),tags:[]}}))}))}}]),e}();function Ln(e){var n=m.languages.SymbolKind;switch(e){case Ke.File:return n.Array;case Ke.Module:return n.Module;case Ke.Namespace:return n.Namespace;case Ke.Package:return n.Package;case Ke.Class:return n.Class;case Ke.Method:return n.Method;case Ke.Property:return n.Property;case Ke.Field:return n.Field;case Ke.Constructor:return n.Constructor;case Ke.Enum:return n.Enum;case Ke.Interface:return n.Interface;case Ke.Function:return n.Function;case Ke.Variable:return n.Variable;case Ke.Constant:return n.Constant;case Ke.String:return n.String;case Ke.Number:return n.Number;case Ke.Boolean:return n.Boolean;case Ke.Array:return n.Array}return n.Function}var Fn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideLinks",value:function(e,n){var t=e.uri;return this._worker(t).then((function(e){return e.findDocumentLinks(t.toString())})).then((function(e){if(e)return{links:e.map((function(e){return{range:yn(e.range),url:e.target}}))}}))}}]),e}(),Zn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideDocumentFormattingEdits",value:function(e,n,t){var r=e.uri;return this._worker(r).then((function(e){return e.format(r.toString(),null,On(n)).then((function(e){if(e&&0!==e.length)return e.map(En)}))}))}}]),e}(),jn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideDocumentRangeFormattingEdits",value:function(e,n,t,r){var i=e.uri;return this._worker(i).then((function(e){return e.format(i.toString(),kn(n),On(t)).then((function(e){if(e&&0!==e.length)return e.map(En)}))}))}}]),e}();function On(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Nn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideDocumentColors",value:function(e,n){var t=e.uri;return this._worker(t).then((function(e){return e.findDocumentColors(t.toString())})).then((function(e){if(e)return e.map((function(e){return{color:e.color,range:yn(e.range)}}))}))}},{key:"provideColorPresentations",value:function(e,n,t){var r=e.uri;return this._worker(r).then((function(e){return e.getColorPresentations(r.toString(),n.color,kn(n.range))})).then((function(e){if(e)return e.map((function(e){var n={label:e.label};return e.textEdit&&(n.textEdit=En(e.textEdit)),e.additionalTextEdits&&(n.additionalTextEdits=e.additionalTextEdits.map(En)),n}))}))}}]),e}(),Un=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideFoldingRanges",value:function(e,n,t){var r=e.uri;return this._worker(r).then((function(e){return e.getFoldingRanges(r.toString(),n)})).then((function(e){if(e)return e.map((function(e){var n={start:e.startLine+1,end:e.endLine+1};return"undefined"!==typeof e.kind&&(n.kind=function(e){switch(e){case Z.Comment:return m.languages.FoldingRangeKind.Comment;case Z.Imports:return m.languages.FoldingRangeKind.Imports;case Z.Region:return m.languages.FoldingRangeKind.Region}return}(e.kind)),n}))}))}}]),e}();var Wn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideSelectionRanges",value:function(e,n,t){var r=e.uri;return this._worker(r).then((function(e){return e.getSelectionRanges(r.toString(),n.map(wn))})).then((function(e){if(e)return e.map((function(e){for(var n=[];e;)n.push({range:yn(e.range)}),e=e.parent;return n}))}))}}]),e}(),Vn=function(e){(0,o.Z)(t,e);var n=(0,a.Z)(t);function t(e){return(0,s.Z)(this,t),n.call(this,e,[".",":","<",'"',"=","/"])}return(0,u.Z)(t)}(_n);function Hn(e){var n=new le(e),t=function(){return n.getLanguageServiceWorker.apply(n,arguments)},r=e.languageId;m.languages.registerCompletionItemProvider(r,new Vn(t)),m.languages.registerHoverProvider(r,new Cn(t)),m.languages.registerDocumentHighlightProvider(r,new An(t)),m.languages.registerLinkProvider(r,new Fn(t)),m.languages.registerFoldingRangeProvider(r,new Un(t)),m.languages.registerDocumentSymbolProvider(r,new Mn(t)),m.languages.registerSelectionRangeProvider(r,new Wn(t)),m.languages.registerRenameProvider(r,new Pn(t)),"html"===r&&(m.languages.registerDocumentFormattingEditProvider(r,new Zn(t)),m.languages.registerDocumentRangeFormattingEditProvider(r,new jn(t)))}function Kn(e){var n=[],t=[],r=new le(e);n.push(r);var i=function(){return r.getLanguageServiceWorker.apply(r,arguments)};return function(){var n=e.languageId,r=e.modeConfiguration;Xn(t),r.completionItems&&t.push(m.languages.registerCompletionItemProvider(n,new Vn(i))),r.hovers&&t.push(m.languages.registerHoverProvider(n,new Cn(i))),r.documentHighlights&&t.push(m.languages.registerDocumentHighlightProvider(n,new An(i))),r.links&&t.push(m.languages.registerLinkProvider(n,new Fn(i))),r.documentSymbols&&t.push(m.languages.registerDocumentSymbolProvider(n,new Mn(i))),r.rename&&t.push(m.languages.registerRenameProvider(n,new Pn(i))),r.foldingRanges&&t.push(m.languages.registerFoldingRangeProvider(n,new Un(i))),r.selectionRanges&&t.push(m.languages.registerSelectionRangeProvider(n,new Wn(i))),r.documentFormattingEdits&&t.push(m.languages.registerDocumentFormattingEditProvider(n,new Zn(i))),r.documentRangeFormattingEdits&&t.push(m.languages.registerDocumentRangeFormattingEditProvider(n,new jn(i)))}(),n.push(zn(t)),zn(n)}function zn(e){return{dispose:function(){return Xn(e)}}}function Xn(e){for(;e.length;)e.pop().dispose()}}}]);
//# sourceMappingURL=6965.381dbe04.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/6965.381dbe04.chunk.js
|
6965.381dbe04.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[4877],{54877:function(e,t,n){n.r(t),n.d(t,{conf:function(){return s},language:function(){return i}});var s={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},o=[];["abstract","activate","and","any","array","as","asc","assert","autonomous","begin","bigdecimal","blob","boolean","break","bulk","by","case","cast","catch","char","class","collect","commit","const","continue","convertcurrency","decimal","default","delete","desc","do","double","else","end","enum","exception","exit","export","extends","false","final","finally","float","for","from","future","get","global","goto","group","having","hint","if","implements","import","in","inner","insert","instanceof","int","interface","into","join","last_90_days","last_month","last_n_days","last_week","like","limit","list","long","loop","map","merge","native","new","next_90_days","next_month","next_n_days","next_week","not","null","nulls","number","object","of","on","or","outer","override","package","parallel","pragma","private","protected","public","retrieve","return","returning","rollback","savepoint","search","select","set","short","sort","stat","static","strictfp","super","switch","synchronized","system","testmethod","then","this","this_month","this_week","throw","throws","today","tolabel","tomorrow","transaction","transient","trigger","true","try","type","undelete","update","upsert","using","virtual","void","volatile","webservice","when","where","while","yesterday"].forEach((function(e){o.push(e),o.push(e.toUpperCase()),o.push(function(e){return e.charAt(0).toUpperCase()+e.substr(1)}(e))}));var i={defaultToken:"",tokenPostfix:".apex",keywords:o,operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[[/[a-z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@apexdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],apexdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}}}]);
//# sourceMappingURL=4877.7cebca37.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/4877.7cebca37.chunk.js
|
4877.7cebca37.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[787],{787:function(e,t,n){n.r(t),n.d(t,{getCLS:function(){return y},getFCP:function(){return g},getFID:function(){return C},getLCP:function(){return P},getTTFB:function(){return D}});var i,r,a,o,u=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},c=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},f=function(e,t){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},s=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},m=function(e,t,n){var i;return function(r){t.value>=0&&(r||n)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},v=-1,d=function(){return"hidden"===document.visibilityState?0:1/0},p=function(){f((function(e){var t=e.timeStamp;v=t}),!0)},l=function(){return v<0&&(v=d(),p(),s((function(){setTimeout((function(){v=d(),p()}),0)}))),{get firstHiddenTime(){return v}}},g=function(e,t){var n,i=l(),r=u("FCP"),a=function(e){"first-contentful-paint"===e.name&&(f&&f.disconnect(),e.startTime<i.firstHiddenTime&&(r.value=e.startTime,r.entries.push(e),n(!0)))},o=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],f=o?null:c("paint",a);(o||f)&&(n=m(e,r,t),o&&a(o),s((function(i){r=u("FCP"),n=m(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))},h=!1,T=-1,y=function(e,t){h||(g((function(e){T=e.value})),h=!0);var n,i=function(t){T>-1&&e(t)},r=u("CLS",0),a=0,o=[],v=function(e){if(!e.hadRecentInput){var t=o[0],i=o[o.length-1];a&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(a+=e.value,o.push(e)):(a=e.value,o=[e]),a>r.value&&(r.value=a,r.entries=o,n())}},d=c("layout-shift",v);d&&(n=m(i,r,t),f((function(){d.takeRecords().map(v),n(!0)})),s((function(){a=0,T=-1,r=u("CLS",0),n=m(i,r,t)})))},E={passive:!0,capture:!0},w=new Date,L=function(e,t){i||(i=t,r=e,a=new Date,F(removeEventListener),S())},S=function(){if(r>=0&&r<a-w){var e={entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+r};o.forEach((function(t){t(e)})),o=[]}},b=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){L(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,E),removeEventListener("pointercancel",i,E)};addEventListener("pointerup",n,E),addEventListener("pointercancel",i,E)}(t,e):L(t,e)}},F=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,b,E)}))},C=function(e,t){var n,a=l(),v=u("FID"),d=function(e){e.startTime<a.firstHiddenTime&&(v.value=e.processingStart-e.startTime,v.entries.push(e),n(!0))},p=c("first-input",d);n=m(e,v,t),p&&f((function(){p.takeRecords().map(d),p.disconnect()}),!0),p&&s((function(){var a;v=u("FID"),n=m(e,v,t),o=[],r=-1,i=null,F(addEventListener),a=d,o.push(a),S()}))},k={},P=function(e,t){var n,i=l(),r=u("LCP"),a=function(e){var t=e.startTime;t<i.firstHiddenTime&&(r.value=t,r.entries.push(e),n())},o=c("largest-contentful-paint",a);if(o){n=m(e,r,t);var v=function(){k[r.id]||(o.takeRecords().map(a),o.disconnect(),k[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,v,{once:!0,capture:!0})})),f(v,!0),s((function(i){r=u("LCP"),n=m(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,k[r.id]=!0,n(!0)}))}))}))}},D=function(e){var t,n=u("TTFB");t=function(){try{var t=performance.getEntriesByType("navigation")[0]||function(){var e=performance.timing,t={entryType:"navigation",startTime:0};for(var n in e)"navigationStart"!==n&&"toJSON"!==n&&(t[n]=Math.max(e[n]-e.navigationStart,0));return t}();if(n.value=n.delta=t.responseStart,n.value<0||n.value>performance.now())return;n.entries=[t],e(n)}catch(e){}},"complete"===document.readyState?setTimeout(t,0):addEventListener("load",(function(){return setTimeout(t,0)}))}}}]);
//# sourceMappingURL=787.d5293104.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/787.d5293104.chunk.js
|
787.d5293104.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[3323],{73323:function(e,t,r){r.r(t),r.d(t,{conf:function(){return o},language:function(){return n}});var o={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["{","}"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\{\\$REGION(\\s\\'.*\\')?\\}"),end:new RegExp("^\\s*\\{\\$ENDREGION\\}")}}},n={defaultToken:"",tokenPostfix:".pascal",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["absolute","abstract","all","and_then","array","as","asm","attribute","begin","bindable","case","class","const","contains","default","div","else","end","except","exports","external","far","file","finalization","finally","forward","generic","goto","if","implements","import","in","index","inherited","initialization","interrupt","is","label","library","mod","module","name","near","not","object","of","on","only","operator","or_else","otherwise","override","package","packed","pow","private","program","protected","public","published","interface","implementation","qualified","read","record","resident","requires","resourcestring","restricted","segment","set","shl","shr","specialize","stored","strict","then","threadvar","to","try","type","unit","uses","var","view","virtual","dynamic","overload","reintroduce","with","write","xor","true","false","procedure","function","constructor","destructor","property","break","continue","exit","abort","while","do","for","raise","repeat","until"],typeKeywords:["boolean","double","byte","integer","shortint","char","longint","float","string"],operators:["=",">","<","<=",">=","<>",":",":=","and","or","+","-","*","/","@","&","^","%"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\*\}]+/,"comment"],[/\}/,"comment","@pop"],[/[\{]/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\{/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]);
//# sourceMappingURL=3323.b47b9b1e.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/3323.b47b9b1e.chunk.js
|
3323.b47b9b1e.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[2611],{42611:function(e,n,r){r.r(n),r.d(n,{conf:function(){return t},language:function(){return s}});var t={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},s={defaultToken:"",ignoreCase:!0,tokenPostfix:".coffee",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:["and","or","is","isnt","not","on","yes","@","no","off","true","false","null","this","new","delete","typeof","in","instanceof","return","throw","break","continue","debugger","if","else","switch","for","while","do","try","catch","finally","class","extends","super","undefined","then","unless","until","loop","of","by","when"],symbols:/[=><!~?&%|+\-*\/\^\.,\:]+/,escapes:/\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\@[a-zA-Z_]\w*/,"variable.predefined"],[/[a-zA-Z_]\w*/,{cases:{this:"variable.predefined","@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/###/,"comment","@comment"],[/#.*$/,"comment"],["///",{token:"regexp",next:"@hereregexp"}],[/^(\s*)(@regEx)/,["","regexp"]],[/(\()(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\,)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\=)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\:)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\[)(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\!)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\&)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\|)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\?)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\{)(\s*)(@regEx)/,["@brackets","","regexp"]],[/(\;)(\s*)(@regEx)/,["","","regexp"]],[/}/,{cases:{"$S2==interpolatedstring":{token:"string",next:"@pop"},"@default":"@brackets"}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/0[0-7]+(?!\d)/,"number.octal"],[/\d+/,"number"],[/[,.]/,"delimiter"],[/"""/,"string",'@herestring."""'],[/'''/,"string","@herestring.'''"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\#\\]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/\./,"string.escape.invalid"],[/#{/,{cases:{'$S2=="':{token:"string",next:"root.interpolatedstring"},"@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/#/,"string"]],herestring:[[/("""|''')/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^#\\'"]+/,"string"],[/['"]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/#{/,{token:"string.quote",next:"root.interpolatedstring"}],[/#/,"string"]],comment:[[/[^#]+/,"comment"],[/###/,"comment","@pop"],[/#/,"comment"]],hereregexp:[[/[^\\\/#]+/,"regexp"],[/\\./,"regexp"],[/#.*$/,"comment"],["///[igm]*",{token:"regexp",next:"@pop"}],[/\//,"regexp"]]}}}}]);
//# sourceMappingURL=2611.8815ae2b.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/2611.8815ae2b.chunk.js
|
2611.8815ae2b.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[2900],{12900:function(e,t,n){n.r(t),n.d(t,{conf:function(){return i},language:function(){return r}});var i={wordPattern:/(#?-?\d*\.\d\w*%?)|([@#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},r={defaultToken:"",tokenPostfix:".less",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",identifierPlus:"-?-?([a-zA-Z:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-:.]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@nestedJSBegin"},["[ \\t\\r\\n]+",""],{include:"@comments"},{include:"@keyword"},{include:"@strings"},{include:"@numbers"},["[*_]?[a-zA-Z\\-\\s]+(?=:.*(;|(\\\\$)))","attribute.name","@attribute"],["url(\\-prefix)?\\(",{token:"tag",next:"@urldeclaration"}],["[{}()\\[\\]]","@brackets"],["[,:;]","delimiter"],["#@identifierPlus","tag.id"],["&","tag"],["\\.@identifierPlus(?=\\()","tag.class","@attribute"],["\\.@identifierPlus","tag.class"],["@identifierPlus","tag"],{include:"@operators"},["@(@identifier(?=[:,\\)]))","variable","@attribute"],["@(@identifier)","variable"],["@","key","@atRules"]],nestedJSBegin:[["``","delimiter.backtick"],["`",{token:"delimiter.backtick",next:"@nestedJSEnd",nextEmbedded:"text/javascript"}]],nestedJSEnd:[["`",{token:"delimiter.backtick",next:"@pop",nextEmbedded:"@pop"}]],operators:[["[<>=\\+\\-\\*\\/\\^\\|\\~]","operator"]],keyword:[["(@[\\s]*import|![\\s]*important|true|false|when|iscolor|isnumber|isstring|iskeyword|isurl|ispixel|ispercentage|isem|hue|saturation|lightness|alpha|lighten|darken|saturate|desaturate|fadein|fadeout|fade|spin|mix|round|ceil|floor|percentage)\\b","keyword"]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"tag",next:"@pop"}]],attribute:[{include:"@nestedJSBegin"},{include:"@comments"},{include:"@strings"},{include:"@numbers"},{include:"@keyword"},["[a-zA-Z\\-]+(?=\\()","attribute.value","@attribute"],[">","operator","@pop"],["@identifier","attribute.value"],{include:"@operators"},["@(@identifier)","variable"],["[)\\}]","@brackets","@pop"],["[{}()\\[\\]>]","@brackets"],["[;]","delimiter","@pop"],["[,=:]","delimiter"],["\\s",""],[".","attribute.value"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],numbers:[["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],strings:[['~?"',{token:"string.delimiter",next:"@stringsEndDoubleQuote"}],["~?'",{token:"string.delimiter",next:"@stringsEndQuote"}]],stringsEndDoubleQuote:[['\\\\"',"string"],['"',{token:"string.delimiter",next:"@popall"}],[".","string"]],stringsEndQuote:[["\\\\'","string"],["'",{token:"string.delimiter",next:"@popall"}],[".","string"]],atRules:[{include:"@comments"},{include:"@strings"},["[()]","delimiter"],["[\\{;]","delimiter","@pop"],[".","key"]]}}}}]);
//# sourceMappingURL=2900.14a00390.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/2900.14a00390.chunk.js
|
2900.14a00390.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[907],{50907:function(e,_,t){t.r(_),t.d(_,{conf:function(){return s},language:function(){return r}});var s={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},r={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ALL","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","ASYMMETRIC","AUTHORIZATION","BINARY","BOTH","CASE","CAST","CHECK","COLLATE","COLLATION","COLUMN","CONCURRENTLY","CONSTRAINT","CREATE","CROSS","CURRENT_CATALOG","CURRENT_DATE","CURRENT_ROLE","CURRENT_SCHEMA","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","DEFAULT","DEFERRABLE","DESC","DISTINCT","DO","ELSE","END","EXCEPT","FALSE","FETCH","FOR","FOREIGN","FREEZE","FROM","FULL","GRANT","GROUP","HAVING","ILIKE","IN","INITIALLY","INNER","INTERSECT","INTO","IS","ISNULL","JOIN","LATERAL","LEADING","LEFT","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","NATURAL","NOT","NOTNULL","NULL","OFFSET","ON","ONLY","OR","ORDER","OUTER","OVERLAPS","PLACING","PRIMARY","REFERENCES","RETURNING","RIGHT","SELECT","SESSION_USER","SIMILAR","SOME","SYMMETRIC","TABLE","TABLESAMPLE","THEN","TO","TRAILING","TRUE","UNION","UNIQUE","USER","USING","VARIADIC","VERBOSE","WHEN","WHERE","WINDOW","WITH"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["abbrev","abs","acldefault","aclexplode","acos","acosd","acosh","age","any","area","array_agg","array_append","array_cat","array_dims","array_fill","array_length","array_lower","array_ndims","array_position","array_positions","array_prepend","array_remove","array_replace","array_to_json","array_to_string","array_to_tsvector","array_upper","ascii","asin","asind","asinh","atan","atan2","atan2d","atand","atanh","avg","bit","bit_and","bit_count","bit_length","bit_or","bit_xor","bool_and","bool_or","bound_box","box","brin_desummarize_range","brin_summarize_new_values","brin_summarize_range","broadcast","btrim","cardinality","cbrt","ceil","ceiling","center","char_length","character_length","chr","circle","clock_timestamp","coalesce","col_description","concat","concat_ws","convert","convert_from","convert_to","corr","cos","cosd","cosh","cot","cotd","count","covar_pop","covar_samp","cume_dist","current_catalog","current_database","current_date","current_query","current_role","current_schema","current_schemas","current_setting","current_time","current_timestamp","current_user","currval","cursor_to_xml","cursor_to_xmlschema","date_bin","date_part","date_trunc","database_to_xml","database_to_xml_and_xmlschema","database_to_xmlschema","decode","degrees","dense_rank","diagonal","diameter","div","encode","enum_first","enum_last","enum_range","every","exp","extract","factorial","family","first_value","floor","format","format_type","gcd","gen_random_uuid","generate_series","generate_subscripts","get_bit","get_byte","get_current_ts_config","gin_clean_pending_list","greatest","grouping","has_any_column_privilege","has_column_privilege","has_database_privilege","has_foreign_data_wrapper_privilege","has_function_privilege","has_language_privilege","has_schema_privilege","has_sequence_privilege","has_server_privilege","has_table_privilege","has_tablespace_privilege","has_type_privilege","height","host","hostmask","inet_client_addr","inet_client_port","inet_merge","inet_same_family","inet_server_addr","inet_server_port","initcap","isclosed","isempty","isfinite","isopen","json_agg","json_array_elements","json_array_elements_text","json_array_length","json_build_array","json_build_object","json_each","json_each_text","json_extract_path","json_extract_path_text","json_object","json_object_agg","json_object_keys","json_populate_record","json_populate_recordset","json_strip_nulls","json_to_record","json_to_recordset","json_to_tsvector","json_typeof","jsonb_agg","jsonb_array_elements","jsonb_array_elements_text","jsonb_array_length","jsonb_build_array","jsonb_build_object","jsonb_each","jsonb_each_text","jsonb_extract_path","jsonb_extract_path_text","jsonb_insert","jsonb_object","jsonb_object_agg","jsonb_object_keys","jsonb_path_exists","jsonb_path_match","jsonb_path_query","jsonb_path_query_array","jsonb_path_exists_tz","jsonb_path_query_first","jsonb_path_query_array_tz","jsonb_path_query_first_tz","jsonb_path_query_tz","jsonb_path_match_tz","jsonb_populate_record","jsonb_populate_recordset","jsonb_pretty","jsonb_set","jsonb_set_lax","jsonb_strip_nulls","jsonb_to_record","jsonb_to_recordset","jsonb_to_tsvector","jsonb_typeof","justify_days","justify_hours","justify_interval","lag","last_value","lastval","lcm","lead","least","left","length","line","ln","localtime","localtimestamp","log","log10","lower","lower_inc","lower_inf","lpad","lseg","ltrim","macaddr8_set7bit","make_date","make_interval","make_time","make_timestamp","make_timestamptz","makeaclitem","masklen","max","md5","min","min_scale","mod","mode","multirange","netmask","network","nextval","normalize","now","npoints","nth_value","ntile","nullif","num_nonnulls","num_nulls","numnode","obj_description","octet_length","overlay","parse_ident","path","pclose","percent_rank","percentile_cont","percentile_disc","pg_advisory_lock","pg_advisory_lock_shared","pg_advisory_unlock","pg_advisory_unlock_all","pg_advisory_unlock_shared","pg_advisory_xact_lock","pg_advisory_xact_lock_shared","pg_backend_pid","pg_backup_start_time","pg_blocking_pids","pg_cancel_backend","pg_client_encoding","pg_collation_actual_version","pg_collation_is_visible","pg_column_compression","pg_column_size","pg_conf_load_time","pg_control_checkpoint","pg_control_init","pg_control_recovery","pg_control_system","pg_conversion_is_visible","pg_copy_logical_replication_slot","pg_copy_physical_replication_slot","pg_create_logical_replication_slot","pg_create_physical_replication_slot","pg_create_restore_point","pg_current_logfile","pg_current_snapshot","pg_current_wal_flush_lsn","pg_current_wal_insert_lsn","pg_current_wal_lsn","pg_current_xact_id","pg_current_xact_id_if_assigned","pg_current_xlog_flush_location","pg_current_xlog_insert_location","pg_current_xlog_location","pg_database_size","pg_describe_object","pg_drop_replication_slot","pg_event_trigger_ddl_commands","pg_event_trigger_dropped_objects","pg_event_trigger_table_rewrite_oid","pg_event_trigger_table_rewrite_reason","pg_export_snapshot","pg_filenode_relation","pg_function_is_visible","pg_get_catalog_foreign_keys","pg_get_constraintdef","pg_get_expr","pg_get_function_arguments","pg_get_function_identity_arguments","pg_get_function_result","pg_get_functiondef","pg_get_indexdef","pg_get_keywords","pg_get_object_address","pg_get_owned_sequence","pg_get_ruledef","pg_get_serial_sequence","pg_get_statisticsobjdef","pg_get_triggerdef","pg_get_userbyid","pg_get_viewdef","pg_get_wal_replay_pause_state","pg_has_role","pg_identify_object","pg_identify_object_as_address","pg_import_system_collations","pg_index_column_has_property","pg_index_has_property","pg_indexam_has_property","pg_indexes_size","pg_is_in_backup","pg_is_in_recovery","pg_is_other_temp_schema","pg_is_wal_replay_paused","pg_is_xlog_replay_paused","pg_jit_available","pg_last_committed_xact","pg_last_wal_receive_lsn","pg_last_wal_replay_lsn","pg_last_xact_replay_timestamp","pg_last_xlog_receive_location","pg_last_xlog_replay_location","pg_listening_channels","pg_log_backend_memory_contexts","pg_logical_emit_message","pg_logical_slot_get_binary_changes","pg_logical_slot_get_changes","pg_logical_slot_peek_binary_changes","pg_logical_slot_peek_changes","pg_ls_archive_statusdir","pg_ls_dir","pg_ls_logdir","pg_ls_tmpdir","pg_ls_waldir","pg_mcv_list_items","pg_my_temp_schema","pg_notification_queue_usage","pg_opclass_is_visible","pg_operator_is_visible","pg_opfamily_is_visible","pg_options_to_table","pg_partition_ancestors","pg_partition_root","pg_partition_tree","pg_postmaster_start_time","pg_promote","pg_read_binary_file","pg_read_file","pg_relation_filenode","pg_relation_filepath","pg_relation_size","pg_reload_conf","pg_replication_origin_advance","pg_replication_origin_create","pg_replication_origin_drop","pg_replication_origin_oid","pg_replication_origin_progress","pg_replication_origin_session_is_setup","pg_replication_origin_session_progress","pg_replication_origin_session_reset","pg_replication_origin_session_setup","pg_replication_origin_xact_reset","pg_replication_origin_xact_setup","pg_replication_slot_advance","pg_rotate_logfile","pg_safe_snapshot_blocking_pids","pg_size_bytes","pg_size_pretty","pg_sleep","pg_sleep_for","pg_sleep_until","pg_snapshot_xip","pg_snapshot_xmax","pg_snapshot_xmin","pg_start_backup","pg_stat_file","pg_statistics_obj_is_visible","pg_stop_backup","pg_switch_wal","pg_switch_xlog","pg_table_is_visible","pg_table_size","pg_tablespace_databases","pg_tablespace_location","pg_tablespace_size","pg_terminate_backend","pg_total_relation_size","pg_trigger_depth","pg_try_advisory_lock","pg_try_advisory_lock_shared","pg_try_advisory_xact_lock","pg_try_advisory_xact_lock_shared","pg_ts_config_is_visible","pg_ts_dict_is_visible","pg_ts_parser_is_visible","pg_ts_template_is_visible","pg_type_is_visible","pg_typeof","pg_visible_in_snapshot","pg_wal_lsn_diff","pg_wal_replay_pause","pg_wal_replay_resume","pg_walfile_name","pg_walfile_name_offset","pg_xact_commit_timestamp","pg_xact_commit_timestamp_origin","pg_xact_status","pg_xlog_location_diff","pg_xlog_replay_pause","pg_xlog_replay_resume","pg_xlogfile_name","pg_xlogfile_name_offset","phraseto_tsquery","pi","plainto_tsquery","point","polygon","popen","position","power","pqserverversion","query_to_xml","query_to_xml_and_xmlschema","query_to_xmlschema","querytree","quote_ident","quote_literal","quote_nullable","radians","radius","random","range_agg","range_intersect_agg","range_merge","rank","regexp_match","regexp_matches","regexp_replace","regexp_split_to_array","regexp_split_to_table","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","repeat","replace","reverse","right","round","row_number","row_security_active","row_to_json","rpad","rtrim","scale","schema_to_xml","schema_to_xml_and_xmlschema","schema_to_xmlschema","session_user","set_bit","set_byte","set_config","set_masklen","setseed","setval","setweight","sha224","sha256","sha384","sha512","shobj_description","sign","sin","sind","sinh","slope","split_part","sprintf","sqrt","starts_with","statement_timestamp","stddev","stddev_pop","stddev_samp","string_agg","string_to_array","string_to_table","strip","strpos","substr","substring","sum","suppress_redundant_updates_trigger","table_to_xml","table_to_xml_and_xmlschema","table_to_xmlschema","tan","tand","tanh","text","timeofday","timezone","to_ascii","to_char","to_date","to_hex","to_json","to_number","to_regclass","to_regcollation","to_regnamespace","to_regoper","to_regoperator","to_regproc","to_regprocedure","to_regrole","to_regtype","to_timestamp","to_tsquery","to_tsvector","transaction_timestamp","translate","trim","trim_array","trim_scale","trunc","ts_debug","ts_delete","ts_filter","ts_headline","ts_lexize","ts_parse","ts_rank","ts_rank_cd","ts_rewrite","ts_stat","ts_token_type","tsquery_phrase","tsvector_to_array","tsvector_update_trigger","tsvector_update_trigger_column","txid_current","txid_current_if_assigned","txid_current_snapshot","txid_snapshot_xip","txid_snapshot_xmax","txid_snapshot_xmin","txid_status","txid_visible_in_snapshot","unistr","unnest","upper","upper_inc","upper_inf","user","var_pop","var_samp","variance","version","websearch_to_tsquery","width","width_bucket","xml_is_well_formed","xml_is_well_formed_content","xml_is_well_formed_document","xmlagg","xmlcomment","xmlconcat","xmlelement","xmlexists","xmlforest","xmlparse","xmlpi","xmlroot","xmlserialize","xpath","xpath_exists"],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}}}}]);
//# sourceMappingURL=907.7b650179.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/907.7b650179.chunk.js
|
907.7b650179.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[5328],{35328:function(e,n,t){t.r(n),t.d(n,{conf:function(){return u},language:function(){return m}});var r,s,o=t(37762),i=t(94389),a=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,d=function(e,n,t,r){if(n&&"object"===typeof n||"function"===typeof n){var s,i=(0,o.Z)(c(n));try{var d=function(){var o=s.value;p.call(e,o)||o===t||a(e,o,{get:function(){return n[o]},enumerable:!(r=l(n,o))||r.enumerable})};for(i.s();!(s=i.n()).done;)d()}catch(g){i.e(g)}finally{i.f()}}return e},g={};d(g,r=i,"default"),s&&d(s,r,"default");var u={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:g.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},m={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}}}}]);
//# sourceMappingURL=5328.77d62d48.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/5328.77d62d48.chunk.js
|
5328.77d62d48.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[9381],{79381:function(e,t,n){n.r(t),n.d(t,{conf:function(){return p},language:function(){return f}});var a,o,i=n(37762),r=n(94389),c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,m=Object.prototype.hasOwnProperty,d=function(e,t,n,a){if(t&&"object"===typeof t||"function"===typeof t){var o,r=(0,i.Z)(l(t));try{var d=function(){var i=o.value;m.call(e,i)||i===n||c(e,i,{get:function(){return t[i]},enumerable:!(a=u(t,i))||a.enumerable})};for(r.s();!(o=r.n()).done;)d()}catch(s){r.e(s)}finally{r.f()}}return e},s={};d(s,a=r,"default"),o&&d(o,a,"default");var p={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:s.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:s.languages.IndentAction.Indent}}]},f={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}}}}]);
//# sourceMappingURL=9381.9495a14c.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/9381.9495a14c.chunk.js
|
9381.9495a14c.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[7713],{77713:function(e,s,t){t.r(s),t.d(s,{conf:function(){return n},language:function(){return r}});var n={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"'",close:"'",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"}]},r={defaultToken:"",tokenPostfix:".rq",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["add","as","asc","ask","base","by","clear","construct","copy","create","data","delete","desc","describe","distinct","drop","false","filter","from","graph","group","having","in","insert","limit","load","minus","move","named","not","offset","optional","order","prefix","reduced","select","service","silent","to","true","undef","union","using","values","where","with"],builtinFunctions:["a","abs","avg","bind","bnode","bound","ceil","coalesce","concat","contains","count","datatype","day","encode_for_uri","exists","floor","group_concat","hours","if","iri","isblank","isiri","isliteral","isnumeric","isuri","lang","langmatches","lcase","max","md5","min","minutes","month","now","rand","regex","replace","round","sameterm","sample","seconds","sha1","sha256","sha384","sha512","str","strafter","strbefore","strdt","strends","strlang","strlen","strstarts","struuid","substr","sum","timezone","tz","ucase","uri","uuid","year"],ignoreCase:!0,tokenizer:{root:[[/<[^\s\u00a0>]*>?/,"tag"],{include:"@strings"},[/#.*/,"comment"],[/[{}()\[\]]/,"@brackets"],[/[;,.]/,"delimiter"],[/[_\w\d]+:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])*/,"tag"],[/:(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/,"tag"],[/[$?]?[_\w\d]+/,{cases:{"@keywords":{token:"keyword"},"@builtinFunctions":{token:"predefined.sql"},"@default":"identifier"}}],[/\^\^/,"operator.sql"],[/\^[*+\-<>=&|^\/!?]*/,"operator.sql"],[/[*+\-<>=&|\/!?]/,"operator.sql"],[/@[a-z\d\-]*/,"metatag.html"],[/\s+/,"white"]],strings:[[/'([^'\\]|\\.)*$/,"string.invalid"],[/'$/,"string.sql","@pop"],[/'/,"string.sql","@stringBody"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"$/,"string.sql","@pop"],[/"/,"string.sql","@dblStringBody"]],stringBody:[[/[^\\']+/,"string.sql"],[/\\./,"string.escape"],[/'/,"string.sql","@pop"]],dblStringBody:[[/[^\\"]+/,"string.sql"],[/\\./,"string.escape"],[/"/,"string.sql","@pop"]]}}}}]);
//# sourceMappingURL=7713.6d02efa2.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/7713.6d02efa2.chunk.js
|
7713.6d02efa2.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[6304],{86304:function(e,t,o){o.r(t),o.d(t,{conf:function(){return n},language:function(){return i}});var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},i={defaultToken:"",tokenPostfix:".swift",identifier:/[a-zA-Z_][\w$]*/,attributes:["@GKInspectable","@IBAction","@IBDesignable","@IBInspectable","@IBOutlet","@IBSegueAction","@NSApplicationMain","@NSCopying","@NSManaged","@Sendable","@UIApplicationMain","@autoclosure","@actorIndependent","@asyncHandler","@available","@convention","@derivative","@differentiable","@discardableResult","@dynamicCallable","@dynamicMemberLookup","@escaping","@frozen","@globalActor","@inlinable","@inline","@main","@noDerivative","@nonobjc","@noreturn","@objc","@objcMembers","@preconcurrency","@propertyWrapper","@requires_stored_property_inits","@resultBuilder","@testable","@unchecked","@unknown","@usableFromInline","@warn_unqualified_access"],accessmodifiers:["open","public","internal","fileprivate","private"],keywords:["#available","#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning","Any","Protocol","Self","Type","actor","as","assignment","associatedtype","associativity","async","await","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","dynamicType","else","enum","extension","fallthrough","false","fileprivate","final","for","func","get","guard","higherThan","if","import","in","indirect","infix","init","inout","internal","is","isolated","lazy","left","let","lowerThan","mutating","nil","none","nonisolated","nonmutating","open","operator","optional","override","postfix","precedence","precedencegroup","prefix","private","protocol","public","repeat","required","rethrows","return","right","safe","self","set","some","static","struct","subscript","super","switch","throw","throws","true","try","typealias","unowned","unsafe","var","weak","where","while","willSet","__consuming","__owned"],symbols:/[=(){}\[\].,:;@#\_&\-<>`?!+*\\\/]/,operatorstart:/[\/=\-+!*%<>&|^~?\u00A1-\u00A7\u00A9\u00AB\u00AC\u00AE\u00B0-\u00B1\u00B6\u00BB\u00BF\u00D7\u00F7\u2016-\u2017\u2020-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u23FF\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3030]/,operatorend:/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE00-\uFE0F\uFE20-\uFE2F\uE0100-\uE01EF]/,operators:/(@operatorstart)((@operatorstart)|(@operatorend))*/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},{include:"@attribute"},{include:"@literal"},{include:"@keyword"},{include:"@invokedmethod"},{include:"@symbol"}],whitespace:[[/\s+/,"white"],[/"""/,"string.quote","@endDblDocString"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string.quote","@popall"],[/"/,"string"]],symbol:[[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/[.]/,"delimiter"],[/@operators/,"operator"],[/@symbols/,"operator"]],comment:[[/\/\/\/.*$/,"comment.doc"],[/\/\*\*/,"comment.doc","@commentdocbody"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@commentbody"]],commentdocbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment.doc","@pop"],[/\:[a-zA-Z]+\:/,"comment.doc.param"],[/./,"comment.doc"]],commentbody:[[/\/\*/,"comment","@commentbody"],[/\*\//,"comment","@pop"],[/./,"comment"]],attribute:[[/@@@identifier/,{cases:{"@attributes":"keyword.control","@default":""}}]],literal:[[/"/,{token:"string.quote",next:"@stringlit"}],[/0[b]([01]_?)+/,"number.binary"],[/0[o]([0-7]_?)+/,"number.octal"],[/0[x]([0-9a-fA-F]_?)+([pP][\-+](\d_?)+)?/,"number.hex"],[/(\d_?)*\.(\d_?)+([eE][\-+]?(\d_?)+)?/,"number.float"],[/(\d_?)+/,"number"]],stringlit:[[/\\\(/,{token:"operator",next:"@interpolatedexpression"}],[/@escapes/,"string"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}],[/./,"string"]],interpolatedexpression:[[/\(/,{token:"operator",next:"@interpolatedexpression"}],[/\)/,{token:"operator",next:"@pop"}],{include:"@literal"},{include:"@keyword"},{include:"@symbol"}],keyword:[[/`/,{token:"operator",next:"@escapedkeyword"}],[/@identifier/,{cases:{"@keywords":"keyword","[A-Z][a-zA-Z0-9$]*":"type.identifier","@default":"identifier"}}]],escapedkeyword:[[/`/,{token:"operator",next:"@pop"}],[/./,"identifier"]],invokedmethod:[[/([.])(@identifier)/,{cases:{$2:["delimeter","type.identifier"],"@default":""}}]]}}}}]);
//# sourceMappingURL=6304.ce792f5f.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/6304.ce792f5f.chunk.js
|
6304.ce792f5f.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[1532],{21532:function(e,n,t){t.r(n),t.d(n,{conf:function(){return o},language:function(){return s}});var o={comments:{lineComment:"--",blockComment:["--[[","]]"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".lua",keywords:["and","break","do","else","elseif","end","false","for","function","goto","if","in","local","nil","not","or","repeat","return","then","true","until","while"],brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],operators:["+","-","*","/","%","^","#","==","~=","<=",">=","<",">","=",";",":",",",".","..","..."],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/(,)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["delimiter","","key","","delimiter"]],[/({)(\s*)([a-zA-Z_]\w*)(\s*)(:)(?!:)/,["@brackets","","key","","delimiter"]],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],whitespace:[[/[ \t\r\n]+/,""],[/--\[([=]*)\[/,"comment","@comment.$1"],[/--.*$/,"comment"]],comment:[[/[^\]]+/,"comment"],[/\]([=]*)\]/,{cases:{"$1==$S2":{token:"comment",next:"@pop"},"@default":"comment"}}],[/./,"comment"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}}}]);
//# sourceMappingURL=1532.41e3c0c8.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/1532.41e3c0c8.chunk.js
|
1532.41e3c0c8.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[651],{90651:function(e,t,o){o.r(t),o.d(t,{conf:function(){return r},language:function(){return n}});var r={wordPattern:/(unary_[@~!#%^&*()\-=+\\|:<>\/?]+)|([a-zA-Z_$][\w$]*?_=)|(`[^`]+`)|([a-zA-Z_$][\w$]*)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},n={tokenPostfix:".scala",keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],softKeywords:["as","export","extension","end","derives","on"],constants:["true","false","null","this","super"],modifiers:["abstract","final","implicit","lazy","override","private","protected","sealed"],softModifiers:["inline","opaque","open","transparent","using"],name:/(?:[a-z_$][\w$]*|`[^`]+`)/,type:/(?:[A-Z][\w$]*)/,symbols:/[=><!~?:&|+\-*\/^\\%@#]+/,digits:/\d+(_+\d+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,escapes:/\\(?:[btnfr\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,fstring_conv:/[bBhHsScCdoxXeEfgGaAt]|[Tn](?:[HIklMSLNpzZsQ]|[BbhAaCYyjmde]|[RTrDFC])/,tokenizer:{root:[[/\braw"""/,{token:"string.quote",bracket:"@open",next:"@rawstringt"}],[/\braw"/,{token:"string.quote",bracket:"@open",next:"@rawstring"}],[/\bs"""/,{token:"string.quote",bracket:"@open",next:"@sstringt"}],[/\bs"/,{token:"string.quote",bracket:"@open",next:"@sstring"}],[/\bf""""/,{token:"string.quote",bracket:"@open",next:"@fstringt"}],[/\bf"/,{token:"string.quote",bracket:"@open",next:"@fstring"}],[/"""/,{token:"string.quote",bracket:"@open",next:"@stringt"}],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float","@allowMethod"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float","@allowMethod"],[/0[xX](@hexdigits)[Ll]?/,"number.hex","@allowMethod"],[/(@digits)[fFdD]/,"number.float","@allowMethod"],[/(@digits)[lL]?/,"number","@allowMethod"],[/\b_\*/,"key"],[/\b(_)\b/,"keyword","@allowMethod"],[/\bimport\b/,"keyword","@import"],[/\b(case)([ \t]+)(class)\b/,["keyword.modifier","white","keyword"]],[/\bcase\b/,"keyword","@case"],[/\bva[lr]\b/,"keyword","@vardef"],[/\b(def)([ \t]+)((?:unary_)?@symbols|@name(?:_=)|@name)/,["keyword","white","identifier"]],[/@name(?=[ \t]*:(?!:))/,"variable"],[/(\.)(@name|@symbols)/,["operator",{token:"@rematch",next:"@allowMethod"}]],[/([{(])(\s*)(@name(?=\s*=>))/,["@brackets","white","variable"]],[/@name/,{cases:{"@keywords":"keyword","@softKeywords":"keyword","@modifiers":"keyword.modifier","@softModifiers":"keyword.modifier","@constants":{token:"constant",next:"@allowMethod"},"@default":{token:"identifier",next:"@allowMethod"}}}],[/@type/,"type","@allowMethod"],{include:"@whitespace"},[/@[a-zA-Z_$][\w$]*(?:\.[a-zA-Z_$][\w$]*)*/,"annotation"],[/[{(]/,"@brackets"],[/[})]/,"@brackets","@allowMethod"],[/\[/,"operator.square"],[/](?!\s*(?:va[rl]|def|type)\b)/,"operator.square","@allowMethod"],[/]/,"operator.square"],[/([=-]>|<-|>:|<:|:>|<%)(?=[\s\w()[\]{},\."'`])/,"keyword"],[/@symbols/,"operator"],[/[;,\.]/,"delimiter"],[/'[a-zA-Z$][\w$]*(?!')/,"attribute.name"],[/'[^\\']'/,"string","@allowMethod"],[/(')(@escapes)(')/,["string","string.escape",{token:"string",next:"@allowMethod"}]],[/'/,"string.invalid"]],import:[[/;/,"delimiter","@pop"],[/^|$/,"","@pop"],[/[ \t]+/,"white"],[/[\n\r]+/,"white","@pop"],[/\/\*/,"comment","@comment"],[/@name|@type/,"type"],[/[(){}]/,"@brackets"],[/[[\]]/,"operator.square"],[/[\.,]/,"delimiter"]],allowMethod:[[/^|$/,"","@pop"],[/[ \t]+/,"white"],[/[\n\r]+/,"white","@pop"],[/\/\*/,"comment","@comment"],[/(?==>[\s\w([{])/,"keyword","@pop"],[/(@name|@symbols)(?=[ \t]*[[({"'`]|[ \t]+(?:[+-]?\.?\d|\w))/,{cases:{"@keywords":{token:"keyword",next:"@pop"},"->|<-|>:|<:|<%":{token:"keyword",next:"@pop"},"@default":{token:"@rematch",next:"@pop"}}}],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],case:[[/\b_\*/,"key"],[/\b(_|true|false|null|this|super)\b/,"keyword","@allowMethod"],[/\bif\b|=>/,"keyword","@pop"],[/`[^`]+`/,"identifier","@allowMethod"],[/@name/,"variable","@allowMethod"],[/:::?|\||@(?![a-z_$])/,"keyword"],{include:"@root"}],vardef:[[/\b_\*/,"key"],[/\b(_|true|false|null|this|super)\b/,"keyword"],[/@name/,"variable"],[/:::?|\||@(?![a-z_$])/,"keyword"],[/=|:(?!:)/,"operator","@pop"],[/$/,"white","@pop"],{include:"@root"}],string:[[/[^\\"\n\r]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}]],stringt:[[/[^\\"\n\r]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/"/,"string"]],fstring:[[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/%%/,"string"],[/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","keyword.modifier","number","metatag"]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","number","metatag"]],[/(%)([\-#+ 0,(])(@fstring_conv)/,["metatag","keyword.modifier","metatag"]],[/(%)(@fstring_conv)/,["metatag","metatag"]],[/./,"string"]],fstringt:[[/@escapes/,"string.escape"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/%%/,"string"],[/(%)([\-#+ 0,(])(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","keyword.modifier","number","metatag"]],[/(%)(\d+|\.\d+|\d+\.\d+)(@fstring_conv)/,["metatag","number","metatag"]],[/(%)([\-#+ 0,(])(@fstring_conv)/,["metatag","keyword.modifier","metatag"]],[/(%)(@fstring_conv)/,["metatag","metatag"]],[/./,"string"]],sstring:[[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/./,"string"]],sstringt:[[/@escapes/,"string.escape"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/\$\$/,"string"],[/(\$)([a-z_]\w*)/,["operator","identifier"]],[/\$\{/,"operator","@interp"],[/./,"string"]],interp:[[/{/,"operator","@push"],[/}/,"operator","@pop"],{include:"@root"}],rawstring:[[/[^"]/,"string"],[/"/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}]],rawstringt:[[/[^"]/,"string"],[/"(?=""")/,"string"],[/"""/,{token:"string.quote",bracket:"@close",switchTo:"@allowMethod"}],[/"/,"string"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]);
//# sourceMappingURL=651.bf520a75.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/651.bf520a75.chunk.js
|
651.bf520a75.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[3698],{83698:function(e,t,n){n.r(t),n.d(t,{conf:function(){return o},language:function(){return i}});var o={wordPattern:/(#?-?\d*\.\d\w*%?)|([@$#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},i={defaultToken:"",tokenPostfix:".scss",ws:"[ \t\n\r\f]*",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@variabledeclaration"},{include:"@warndebug"},["[@](include)",{token:"keyword",next:"@includedeclaration"}],["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["[@](function)",{token:"keyword",next:"@functiondeclaration"}],["[@](mixin)",{token:"keyword",next:"@mixindeclaration"}],["url(\\-prefix)?\\(",{token:"meta",next:"@urldeclaration"}],{include:"@controlstatement"},{include:"@selectorname"},["[&\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.curly",next:"@selectorbody"}]],selectorbody:[["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],{include:"@selector"},["[@](extend)",{token:"keyword",next:"@extendbody"}],["[@](return)",{token:"keyword",next:"@declarationbody"}],["}",{token:"delimiter.curly",next:"@pop"}]],selectorname:[["#{",{token:"meta",next:"@variableinterpolation"}],["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["url(\\-prefix)?\\(",{token:"meta",next:"@urldeclaration"}],{include:"@functioninvocation"},{include:"@numbers"},{include:"@strings"},{include:"@variablereference"},["(and\\b|or\\b|not\\b)","operator"],{include:"@name"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","operator"],[",","delimiter"],["!default","literal"],["\\(",{token:"delimiter.parenthesis",next:"@parenthizedterm"}]],rulevalue:[{include:"@term"},["!important","literal"],[";","delimiter","@pop"],["{",{token:"delimiter.curly",switchTo:"@nestedproperty"}],["(?=})",{token:"",next:"@pop"}]],nestedproperty:[["[*_]?@identifier@ws:","attribute.name","@rulevalue"],{include:"@comments"},["}",{token:"delimiter.curly",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],variabledeclaration:[["\\$@identifier@ws:","variable.decl","@declarationbody"]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"meta",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],extendbody:[{include:"@selectorname"},["!optional","literal"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],variablereference:[["\\$@identifier","variable.ref"],["\\.\\.\\.","operator"],["#{",{token:"meta",next:"@variableinterpolation"}]],variableinterpolation:[{include:"@variablereference"},["}",{token:"meta",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],name:[["@identifier","attribute.value"]],numbers:[["(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","number.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","number","@pop"]],functiondeclaration:[["@identifier@ws\\(",{token:"meta",next:"@parameterdeclaration"}],["{",{token:"delimiter.curly",switchTo:"@functionbody"}]],mixindeclaration:[["@identifier@ws\\(",{token:"meta",next:"@parameterdeclaration"}],["@identifier","meta"],["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],parameterdeclaration:[["\\$@identifier@ws:","variable.decl"],["\\.\\.\\.","operator"],[",","delimiter"],{include:"@term"},["\\)",{token:"meta",next:"@pop"}]],includedeclaration:[{include:"@functioninvocation"},["@identifier","meta"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}],["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],keyframedeclaration:[["@identifier","meta"],["{",{token:"delimiter.curly",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.curly",next:"@selectorbody"}],["}",{token:"delimiter.curly",next:"@pop"}]],controlstatement:[["[@](if|else|for|while|each|media)",{token:"keyword.flow",next:"@controlstatementdeclaration"}]],controlstatementdeclaration:[["(in|from|through|if|to)\\b",{token:"keyword.flow"}],{include:"@term"},["{",{token:"delimiter.curly",switchTo:"@selectorbody"}]],functionbody:[["[@](return)",{token:"keyword"}],{include:"@variabledeclaration"},{include:"@term"},{include:"@controlstatement"},[";","delimiter"],["}",{token:"delimiter.curly",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"meta",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"meta",next:"@pop"}]],strings:[['~?"',{token:"string.delimiter",next:"@stringenddoublequote"}],["~?'",{token:"string.delimiter",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string.delimiter",next:"@pop"}],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string.delimiter",next:"@pop"}],[".","string"]]}}}}]);
//# sourceMappingURL=3698.750e43d6.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/3698.750e43d6.chunk.js
|
3698.750e43d6.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[369],{50369:function(e,t,n){n.r(t),n.d(t,{conf:function(){return a},language:function(){return o}});var a={comments:{lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}],folding:{offSide:!0}},o={defaultToken:"",tokenPostfix:".pug",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["append","block","case","default","doctype","each","else","extends","for","if","in","include","mixin","typeof","unless","var","when"],tags:["a","abbr","acronym","address","area","article","aside","audio","b","base","basefont","bdi","bdo","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","keygen","kbd","label","li","link","map","mark","menu","meta","meter","nav","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strike","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","tracks","tt","u","ul","video","wbr"],symbols:/[\+\-\*\%\&\|\!\=\/\.\,\:]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)([a-zA-Z_-][\w-]*)/,{cases:{"$2@tags":{cases:{"@eos":["","tag"],"@default":["",{token:"tag",next:"@tag.$1"}]}},"$2@keywords":["",{token:"keyword.$2"}],"@default":["",""]}}],[/^(\s*)(#[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.id"],"@default":["",{token:"tag.id",next:"@tag.$1"}]}}],[/^(\s*)(\.[a-zA-Z_-][\w-]*)/,{cases:{"@eos":["","tag.class"],"@default":["",{token:"tag.class",next:"@tag.$1"}]}}],[/^(\s*)(\|.*)$/,""],{include:"@whitespace"},[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d+/,"number"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],tag:[[/(\.)(\s*$)/,[{token:"delimiter",next:"@blockText.$S2."},""]],[/\s+/,{token:"",next:"@simpleText"}],[/#[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.id",next:"@pop"},"@default":"tag.id"}}],[/\.[a-zA-Z_-][\w-]*/,{cases:{"@eos":{token:"tag.class",next:"@pop"},"@default":"tag.class"}}],[/\(/,{token:"delimiter.parenthesis",next:"@attributeList"}]],simpleText:[[/[^#]+$/,{token:"",next:"@popall"}],[/[^#]+/,{token:""}],[/(#{)([^}]*)(})/,{cases:{"@eos":["interpolation.delimiter","interpolation",{token:"interpolation.delimiter",next:"@popall"}],"@default":["interpolation.delimiter","interpolation","interpolation.delimiter"]}}],[/#$/,{token:"",next:"@popall"}],[/#/,""]],attributeList:[[/\s+/,""],[/(\w+)(\s*=\s*)("|')/,["attribute.name","delimiter",{token:"attribute.value",next:"@value.$3"}]],[/\w+/,"attribute.name"],[/,/,{cases:{"@eos":{token:"attribute.delimiter",next:"@popall"},"@default":"attribute.delimiter"}}],[/\)$/,{token:"delimiter.parenthesis",next:"@popall"}],[/\)/,{token:"delimiter.parenthesis",next:"@pop"}]],whitespace:[[/^(\s*)(\/\/.*)$/,{token:"comment",next:"@blockText.$1.comment"}],[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],blockText:[[/^\s+.*$/,{cases:{"($S2\\s+.*$)":{token:"$S3"},"@default":{token:"@rematch",next:"@popall"}}}],[/./,{token:"@rematch",next:"@popall"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],string:[[/[^\\"'#]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,{cases:{"@eos":{token:"string.escape",next:"@popall"},"@default":"string.escape"}}],[/\\./,{cases:{"@eos":{token:"string.escape.invalid",next:"@popall"},"@default":"string.escape.invalid"}}],[/(#{)([^}]*)(})/,["interpolation.delimiter","interpolation","interpolation.delimiter"]],[/#/,"string"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":{token:"string"}}}]],value:[[/[^\\"']+/,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/\\./,{cases:{"@eos":{token:"attribute.value",next:"@popall"},"@default":"attribute.value"}}],[/["']/,{cases:{"$#==$S2":{token:"attribute.value",next:"@pop"},"@default":{token:"attribute.value"}}}]]}}}}]);
//# sourceMappingURL=369.0237ca8c.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/369.0237ca8c.chunk.js
|
369.0237ca8c.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[9335],{9335:function(e,t,n){n.r(t),n.d(t,{conf:function(){return r},language:function(){return i}});var r={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},i={defaultToken:"",tokenPostfix:".css",ws:"[ \t\n\r\f]*",identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.bracket"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@strings"},["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@selectorname"},["[\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.bracket",next:"@selectorbody"}]],selectorbody:[{include:"@comments"},["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],["}",{token:"delimiter.bracket",next:"@pop"}]],selectorname:[["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@functioninvocation"},{include:"@numbers"},{include:"@name"},{include:"@strings"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","delimiter"],[",","delimiter"]],rulevalue:[{include:"@comments"},{include:"@strings"},{include:"@term"},["!important","keyword"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],urldeclaration:[{include:"@strings"},["[^)\r\n]+","string"],["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[/[^*/]+/,"comment"],[/./,"comment"]],name:[["@identifier","attribute.value"]],numbers:[["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],keyframedeclaration:[["@identifier","attribute.value"],["{",{token:"delimiter.bracket",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.bracket",next:"@selectorbody"}],["}",{token:"delimiter.bracket",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"attribute.value",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"attribute.value",next:"@pop"}]],strings:[['~?"',{token:"string",next:"@stringenddoublequote"}],["~?'",{token:"string",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string",next:"@pop"}],[/[^\\"]+/,"string"],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string",next:"@pop"}],[/[^\\']+/,"string"],[".","string"]]}}}}]);
//# sourceMappingURL=9335.43329da2.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/9335.43329da2.chunk.js
|
9335.43329da2.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[312],{50312:function(e,t,n){n.r(t),n.d(t,{conf:function(){return i},language:function(){return s}});var i={comments:{lineComment:"*"},brackets:[["[","]"],["(",")"]]},s={defaultToken:"invalid",ignoreCase:!0,tokenPostfix:".abap",keywords:["abap-source","abbreviated","abstract","accept","accepting","according","activation","actual","add","add-corresponding","adjacent","after","alias","aliases","align","all","allocate","alpha","analysis","analyzer","and","append","appendage","appending","application","archive","area","arithmetic","as","ascending","aspect","assert","assign","assigned","assigning","association","asynchronous","at","attributes","authority","authority-check","avg","back","background","backup","backward","badi","base","before","begin","between","big","binary","bintohex","bit","black","blank","blanks","blob","block","blocks","blue","bound","boundaries","bounds","boxed","break-point","buffer","by","bypassing","byte","byte-order","call","calling","case","cast","casting","catch","center","centered","chain","chain-input","chain-request","change","changing","channels","character","char-to-hex","check","checkbox","ci_","circular","class","class-coding","class-data","class-events","class-methods","class-pool","cleanup","clear","client","clob","clock","close","coalesce","code","coding","col_background","col_group","col_heading","col_key","col_negative","col_normal","col_positive","col_total","collect","color","column","columns","comment","comments","commit","common","communication","comparing","component","components","compression","compute","concat","concat_with_space","concatenate","cond","condense","condition","connect","connection","constants","context","contexts","continue","control","controls","conv","conversion","convert","copies","copy","corresponding","country","cover","cpi","create","creating","critical","currency","currency_conversion","current","cursor","cursor-selection","customer","customer-function","dangerous","data","database","datainfo","dataset","date","dats_add_days","dats_add_months","dats_days_between","dats_is_valid","daylight","dd/mm/yy","dd/mm/yyyy","ddmmyy","deallocate","decimal_shift","decimals","declarations","deep","default","deferred","define","defining","definition","delete","deleting","demand","department","descending","describe","destination","detail","dialog","directory","disconnect","display","display-mode","distinct","divide","divide-corresponding","division","do","dummy","duplicate","duplicates","duration","during","dynamic","dynpro","edit","editor-call","else","elseif","empty","enabled","enabling","encoding","end","endat","endcase","endcatch","endchain","endclass","enddo","endenhancement","end-enhancement-section","endexec","endform","endfunction","endian","endif","ending","endinterface","end-lines","endloop","endmethod","endmodule","end-of-definition","end-of-editing","end-of-file","end-of-page","end-of-selection","endon","endprovide","endselect","end-test-injection","end-test-seam","endtry","endwhile","endwith","engineering","enhancement","enhancement-point","enhancements","enhancement-section","entries","entry","enum","environment","equiv","errormessage","errors","escaping","event","events","exact","except","exception","exceptions","exception-table","exclude","excluding","exec","execute","exists","exit","exit-command","expand","expanding","expiration","explicit","exponent","export","exporting","extend","extended","extension","extract","fail","fetch","field","field-groups","fields","field-symbol","field-symbols","file","filter","filters","filter-table","final","find","first","first-line","fixed-point","fkeq","fkge","flush","font","for","form","format","forward","found","frame","frames","free","friends","from","function","functionality","function-pool","further","gaps","generate","get","giving","gkeq","gkge","global","grant","green","group","groups","handle","handler","harmless","hashed","having","hdb","header","headers","heading","head-lines","help-id","help-request","hextobin","hide","high","hint","hold","hotspot","icon","id","identification","identifier","ids","if","ignore","ignoring","immediately","implementation","implementations","implemented","implicit","import","importing","in","inactive","incl","include","includes","including","increment","index","index-line","infotypes","inheriting","init","initial","initialization","inner","inout","input","insert","instance","instances","instr","intensified","interface","interface-pool","interfaces","internal","intervals","into","inverse","inverted-date","is","iso","job","join","keep","keeping","kernel","key","keys","keywords","kind","language","last","late","layout","leading","leave","left","left-justified","leftplus","leftspace","legacy","length","let","level","levels","like","line","lines","line-count","linefeed","line-selection","line-size","list","listbox","list-processing","little","llang","load","load-of-program","lob","local","locale","locator","logfile","logical","log-point","long","loop","low","lower","lpad","lpi","ltrim","mail","main","major-id","mapping","margin","mark","mask","match","matchcode","max","maximum","medium","members","memory","mesh","message","message-id","messages","messaging","method","methods","min","minimum","minor-id","mm/dd/yy","mm/dd/yyyy","mmddyy","mode","modif","modifier","modify","module","move","move-corresponding","multiply","multiply-corresponding","name","nametab","native","nested","nesting","new","new-line","new-page","new-section","next","no","no-display","no-extension","no-gap","no-gaps","no-grouping","no-heading","no-scrolling","no-sign","no-title","no-topofpage","no-zero","node","nodes","non-unicode","non-unique","not","null","number","object","objects","obligatory","occurrence","occurrences","occurs","of","off","offset","ole","on","only","open","option","optional","options","or","order","other","others","out","outer","output","output-length","overflow","overlay","pack","package","pad","padding","page","pages","parameter","parameters","parameter-table","part","partially","pattern","percentage","perform","performing","person","pf1","pf10","pf11","pf12","pf13","pf14","pf15","pf2","pf3","pf4","pf5","pf6","pf7","pf8","pf9","pf-status","pink","places","pool","pos_high","pos_low","position","pragmas","precompiled","preferred","preserving","primary","print","print-control","priority","private","procedure","process","program","property","protected","provide","public","push","pushbutton","put","queue-only","quickinfo","radiobutton","raise","raising","range","ranges","read","reader","read-only","receive","received","receiver","receiving","red","redefinition","reduce","reduced","ref","reference","refresh","regex","reject","remote","renaming","replace","replacement","replacing","report","request","requested","reserve","reset","resolution","respecting","responsible","result","results","resumable","resume","retry","return","returncode","returning","returns","right","right-justified","rightplus","rightspace","risk","rmc_communication_failure","rmc_invalid_status","rmc_system_failure","role","rollback","rows","rpad","rtrim","run","sap","sap-spool","saving","scale_preserving","scale_preserving_scientific","scan","scientific","scientific_with_leading_zero","scroll","scroll-boundary","scrolling","search","secondary","seconds","section","select","selection","selections","selection-screen","selection-set","selection-sets","selection-table","select-options","send","separate","separated","set","shared","shift","short","shortdump-id","sign_as_postfix","single","size","skip","skipping","smart","some","sort","sortable","sorted","source","specified","split","spool","spots","sql","sqlscript","stable","stamp","standard","starting","start-of-editing","start-of-selection","state","statement","statements","static","statics","statusinfo","step-loop","stop","structure","structures","style","subkey","submatches","submit","subroutine","subscreen","subtract","subtract-corresponding","suffix","sum","summary","summing","supplied","supply","suppress","switch","switchstates","symbol","syncpoints","syntax","syntax-check","syntax-trace","system-call","system-exceptions","system-exit","tab","tabbed","table","tables","tableview","tabstrip","target","task","tasks","test","testing","test-injection","test-seam","text","textpool","then","throw","time","times","timestamp","timezone","tims_is_valid","title","titlebar","title-lines","to","tokenization","tokens","top-lines","top-of-page","trace-file","trace-table","trailing","transaction","transfer","transformation","translate","transporting","trmac","truncate","truncation","try","tstmp_add_seconds","tstmp_current_utctimestamp","tstmp_is_valid","tstmp_seconds_between","type","type-pool","type-pools","types","uline","unassign","under","unicode","union","unique","unit_conversion","unix","unpack","until","unwind","up","update","upper","user","user-command","using","utf-8","valid","value","value-request","values","vary","varying","verification-message","version","via","view","visible","wait","warning","when","whenever","where","while","width","window","windows","with","with-heading","without","with-title","word","work","write","writer","xml","xsd","yellow","yes","yymmdd","zero","zone","abap_system_timezone","abap_user_timezone","access","action","adabas","adjust_numbers","allow_precision_loss","allowed","amdp","applicationuser","as_geo_json","as400","associations","balance","behavior","breakup","bulk","cds","cds_client","check_before_save","child","clients","corr","corr_spearman","cross","cycles","datn_add_days","datn_add_months","datn_days_between","dats_from_datn","dats_tims_to_tstmp","dats_to_datn","db2","db6","ddl","dense_rank","depth","deterministic","discarding","entities","entity","error","failed","finalize","first_value","fltp_to_dec","following","fractional","full","graph","grouping","hierarchy","hierarchy_ancestors","hierarchy_ancestors_aggregate","hierarchy_descendants","hierarchy_descendants_aggregate","hierarchy_siblings","incremental","indicators","lag","last_value","lead","leaves","like_regexpr","link","locale_sap","lock","locks","many","mapped","matched","measures","median","mssqlnt","multiple","nodetype","ntile","nulls","occurrences_regexpr","one","operations","oracle","orphans","over","parent","parents","partition","pcre","period","pfcg_mapping","preceding","privileged","product","projection","rank","redirected","replace_regexpr","reported","response","responses","root","row","row_number","sap_system_date","save","schema","session","sets","shortdump","siblings","spantree","start","stddev","string_agg","subtotal","sybase","tims_from_timn","tims_to_timn","to_blob","to_clob","total","trace-entry","tstmp_to_dats","tstmp_to_dst","tstmp_to_tims","tstmpl_from_utcl","tstmpl_to_utcl","unbounded","utcl_add_seconds","utcl_current","utcl_seconds_between","uuid","var","verbatim"],builtinFunctions:["abs","acos","asin","atan","bit-set","boolc","boolx","ceil","char_off","charlen","cmax","cmin","concat_lines_of","contains","contains_any_not_of","contains_any_of","cos","cosh","count","count_any_not_of","count_any_of","dbmaxlen","distance","escape","exp","find_any_not_of","find_any_of","find_end","floor","frac","from_mixed","ipow","line_exists","line_index","log","log10","matches","nmax","nmin","numofchar","repeat","rescale","reverse","round","segment","shift_left","shift_right","sign","sin","sinh","sqrt","strlen","substring","substring_after","substring_before","substring_from","substring_to","tan","tanh","to_lower","to_mixed","to_upper","trunc","utclong_add","utclong_current","utclong_diff","xsdbool","xstrlen"],typeKeywords:["b","c","d","decfloat16","decfloat34","f","i","int8","n","p","s","string","t","utclong","x","xstring","any","clike","csequence","decfloat","numeric","simple","xsequence","accp","char","clnt","cuky","curr","datn","dats","d16d","d16n","d16r","d34d","d34n","d34r","dec","df16_dec","df16_raw","df34_dec","df34_raw","fltp","geom_ewkb","int1","int2","int4","lang","lchr","lraw","numc","quan","raw","rawstring","sstring","timn","tims","unit","utcl","df16_scl","df34_scl","prec","varc","abap_bool","abap_false","abap_true","abap_undefined","me","screen","space","super","sy","syst","table_line","*sys*"],builtinMethods:["class_constructor","constructor"],derivedTypes:["%CID","%CID_REF","%CONTROL","%DATA","%ELEMENT","%FAIL","%KEY","%MSG","%PARAM","%PID","%PID_ASSOC","%PID_PARENT","%_HINTS"],cdsLanguage:["@AbapAnnotation","@AbapCatalog","@AccessControl","@API","@ClientDependent","@ClientHandling","@CompatibilityContract","@DataAging","@EndUserText","@Environment","@LanguageDependency","@MappingRole","@Metadata","@MetadataExtension","@ObjectModel","@Scope","@Semantics","$EXTENSION","$SELF"],selectors:["->","->*","=>","~","~*"],operators:[" +"," -","/","*","**","div","mod","=","#","@","+=","-=","*=","/=","**=","&&=","?=","&","&&","bit-and","bit-not","bit-or","bit-xor","m","o","z","<"," >","<=",">=","<>","><","=<","=>","bt","byte-ca","byte-cn","byte-co","byte-cs","byte-na","byte-ns","ca","cn","co","cp","cs","eq","ge","gt","le","lt","na","nb","ne","np","ns","*/","*:","--","/*","//"],symbols:/[=><!~?&+\-*\/\^%#@]+/,tokenizer:{root:[[/[a-z_\/$%@]([\w\/$%]|-(?!>))*/,{cases:{"@typeKeywords":"type","@keywords":"keyword","@cdsLanguage":"annotation","@derivedTypes":"type","@builtinFunctions":"type","@builtinMethods":"type","@operators":"key","@default":"identifier"}}],[/<[\w]+>/,"identifier"],[/##[\w|_]+/,"comment"],{include:"@whitespace"},[/[:,.]/,"delimiter"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@selectors":"tag","@operators":"key","@default":""}}],[/'/,{token:"string",bracket:"@open",next:"@stringquote"}],[/`/,{token:"string",bracket:"@open",next:"@stringping"}],[/\|/,{token:"string",bracket:"@open",next:"@stringtemplate"}],[/\d+/,"number"]],stringtemplate:[[/[^\\\|]+/,"string"],[/\\\|/,"string"],[/\|/,{token:"string",bracket:"@close",next:"@pop"}]],stringping:[[/[^\\`]+/,"string"],[/`/,{token:"string",bracket:"@close",next:"@pop"}]],stringquote:[[/[^\\']+/,"string"],[/'/,{token:"string",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/^\*.*$/,"comment"],[/\".*$/,"comment"]]}}}}]);
//# sourceMappingURL=312.3d69e408.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/312.3d69e408.chunk.js
|
312.3d69e408.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[2478],{42478:function(e,t,i){i.r(t),i.d(t,{conf:function(){return f},language:function(){return w}});var n,r,o=i(37762),a=i(94389),l=Object.defineProperty,d=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,c=function(e,t,i,n){if(t&&"object"===typeof t||"function"===typeof t){var r,a=(0,o.Z)(s(t));try{var c=function(){var o=r.value;u.call(e,o)||o===i||l(e,o,{get:function(){return t[o]},enumerable:!(n=d(t,o))||n.enumerable})};for(a.s();!(r=a.n()).done;)c()}catch(m){a.e(m)}finally{a.f()}}return e},m={};c(m,n=a,"default"),r&&c(r,n,"default");var p=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],f={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,brackets:[["\x3c!--","--\x3e"],["<",">"],["{{","}}"],["{%","%}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"%",close:"%"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:".concat(p.join("|"),"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$"),"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:m.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:".concat(p.join("|"),"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$"),"i"),action:{indentAction:m.languages.IndentAction.Indent}}]},w={defaultToken:"",tokenPostfix:"",builtinTags:["if","else","elseif","endif","render","assign","capture","endcapture","case","endcase","comment","endcomment","cycle","decrement","for","endfor","include","increment","layout","raw","endraw","render","tablerow","endtablerow","unless","endunless"],builtinFilters:["abs","append","at_least","at_most","capitalize","ceil","compact","date","default","divided_by","downcase","escape","escape_once","first","floor","join","json","last","lstrip","map","minus","modulo","newline_to_br","plus","prepend","remove","remove_first","replace","replace_first","reverse","round","rstrip","size","slice","sort","sort_natural","split","strip","strip_html","strip_newlines","times","truncate","truncatewords","uniq","upcase","url_decode","url_encode","where"],constants:["true","false"],operators:["==","!=",">","<",">=","<="],symbol:/[=><!]+/,identifier:/[a-zA-Z_][\w]*/,tokenizer:{root:[[/\{\%\s*comment\s*\%\}/,"comment.start.liquid","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@liquidState.root"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.root"}],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],comment:[[/\{\%\s*endcomment\s*\%\}/,"comment.end.liquid","@pop"],[/./,"comment.content.liquid"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\{\%/,{token:"@rematch",switchTo:"@liquidState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],liquidState:[[/\{\{/,"delimiter.output.liquid"],[/\}\}/,{token:"delimiter.output.liquid",switchTo:"@$S2.$S3"}],[/\{\%/,"delimiter.tag.liquid"],[/raw\s*\%\}/,"delimiter.tag.liquid","@liquidRaw"],[/\%\}/,{token:"delimiter.tag.liquid",switchTo:"@$S2.$S3"}],{include:"liquidRoot"}],liquidRaw:[[/^(?!\{\%\s*endraw\s*\%\}).+/],[/\{\%/,"delimiter.tag.liquid"],[/@identifier/],[/\%\}/,{token:"delimiter.tag.liquid",next:"@root"}]],liquidRoot:[[/\d+(\.\d+)?/,"number.liquid"],[/"[^"]*"/,"string.liquid"],[/'[^']*'/,"string.liquid"],[/\s+/],[/@symbol/,{cases:{"@operators":"operator.liquid","@default":""}}],[/\./],[/@identifier/,{cases:{"@constants":"keyword.liquid","@builtinFilters":"predefined.liquid","@builtinTags":"predefined.liquid","@default":"variable.liquid"}}],[/[^}|%]/,"variable.liquid"]]}}}}]);
//# sourceMappingURL=2478.4e6b45fa.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/2478.4e6b45fa.chunk.js
|
2478.4e6b45fa.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[9687],{39687:function(e,t,r){r.r(t),r.d(t,{conf:function(){return n},language:function(){return o}});var n={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},o={tokenPostfix:".julia",keywords:["begin","while","if","for","try","return","break","continue","function","macro","quote","let","local","global","const","do","struct","module","baremodule","using","import","export","end","else","elseif","catch","finally","mutable","primitive","abstract","type","in","isa","where","new"],types:["LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","AbstractArray","UndefKeywordError","AbstractChannel","UndefRefError","AbstractChar","UndefVarError","AbstractDict","Union","AbstractDisplay","UnionAll","AbstractFloat","UnitRange","AbstractIrrational","Unsigned","AbstractMatrix","AbstractRange","Val","AbstractSet","Vararg","AbstractString","VecElement","AbstractUnitRange","VecOrMat","AbstractVecOrMat","Vector","AbstractVector","VersionNumber","Any","WeakKeyDict","ArgumentError","WeakRef","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError"],keywordops:["<:",">:",":","=>","...",".","->","?"],allops:/[^\w\d\s()\[\]{}"'#]+/,constants:["true","false","nothing","missing","undef","Inf","pi","NaN","\u03c0","\u212f","ans","PROGRAM_FILE","ARGS","C_NULL","VERSION","DEPOT_PATH","LOAD_PATH"],operators:["!","!=","!==","%","&","*","+","-","/","//","<","<<","<=","==","===","=>",">",">=",">>",">>>","\\","^","|","|>","~","\xf7","\u2208","\u2209","\u220b","\u220c","\u2218","\u221a","\u221b","\u2229","\u222a","\u2248","\u2249","\u2260","\u2261","\u2262","\u2264","\u2265","\u2286","\u2287","\u2288","\u2289","\u228a","\u228b","\u22bb"],brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],ident:/\u03c0|\u212f|\b(?!\d)\w+\b/,escape:/(?:[abefnrstv\\"'\n\r]|[0-7]{1,3}|x[0-9A-Fa-f]{1,2}|u[0-9A-Fa-f]{4})/,escapes:/\\(?:C\-(@escape|.)|c(@escape|.)|@escape)/,tokenizer:{root:[[/(::)\s*|\b(isa)\s+/,"keyword","@typeanno"],[/\b(isa)(\s*\(@ident\s*,\s*)/,["keyword",{token:"",next:"@typeanno"}]],[/\b(type|struct)[ \t]+/,"keyword","@typeanno"],[/^\s*:@ident[!?]?/,"metatag"],[/(return)(\s*:@ident[!?]?)/,["keyword","metatag"]],[/(\(|\[|\{|@allops)(\s*:@ident[!?]?)/,["","metatag"]],[/:\(/,"metatag","@quote"],[/r"""/,"regexp.delim","@tregexp"],[/r"/,"regexp.delim","@sregexp"],[/raw"""/,"string.delim","@rtstring"],[/[bv]?"""/,"string.delim","@dtstring"],[/raw"/,"string.delim","@rsstring"],[/[bv]?"/,"string.delim","@dsstring"],[/(@ident)\{/,{cases:{"$1@types":{token:"type",next:"@gen"},"@default":{token:"type",next:"@gen"}}}],[/@ident[!?'']?(?=\.?\()/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"keyword.flow"}}],[/@ident[!?']?/,{cases:{"@types":"type","@keywords":"keyword","@constants":"variable","@default":"identifier"}}],[/\$\w+/,"key"],[/\$\(/,"key","@paste"],[/@@@ident/,"annotation"],{include:"@whitespace"},[/'(?:@escapes|.)'/,"string.character"],[/[()\[\]{}]/,"@brackets"],[/@allops/,{cases:{"@keywordops":"keyword","@operators":"operator"}}],[/[;,]/,"delimiter"],[/0[xX][0-9a-fA-F](_?[0-9a-fA-F])*/,"number.hex"],[/0[_oO][0-7](_?[0-7])*/,"number.octal"],[/0[bB][01](_?[01])*/,"number.binary"],[/[+\-]?\d+(\.\d+)?(im?|[eE][+\-]?\d+(\.\d+)?)?/,"number"]],typeanno:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@gen"],[/([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)(\s*<:\s*)/,["type","keyword"]],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type","@pop"],["","","@pop"]],gen:[[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*\{/,"type","@push"],[/[a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*/,"type"],[/<:/,"keyword"],[/(\})(\s*<:\s*)/,["type",{token:"keyword",next:"@pop"}]],[/\}/,"type","@pop"],{include:"@root"}],quote:[[/\$\(/,"key","@paste"],[/\(/,"@brackets","@paren"],[/\)/,"metatag","@pop"],{include:"@root"}],paste:[[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@paren"],[/\)/,"key","@pop"],{include:"@root"}],paren:[[/\$\(/,"key","@paste"],[/:\(/,"metatag","@quote"],[/\(/,"@brackets","@push"],[/\)/,"@brackets","@pop"],{include:"@root"}],sregexp:[[/^.*/,"invalid"],[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"[imsx]*/,"regexp.delim","@pop"]],tregexp:[[/[^\\"()\[\]{}]/,"regexp"],[/[()\[\]{}]/,"@brackets"],[/\\./,"operator.scss"],[/"(?!"")/,"string"],[/"""[imsx]*/,"regexp.delim","@pop"]],rsstring:[[/^.*/,"invalid"],[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"/,"string.delim","@pop"]],rtstring:[[/[^\\"]/,"string"],[/\\./,"string.escape"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],dsstring:[[/^.*/,"invalid"],[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string.delim","@pop"]],dtstring:[[/[^\\"\$]/,"string"],[/\$/,"","@interpolated"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"(?!"")/,"string"],[/"""/,"string.delim","@pop"]],interpolated:[[/\(/,{token:"",switchTo:"@interpolated_compound"}],[/[a-zA-Z_]\w*/,"identifier"],["","","@pop"]],interpolated_compound:[[/\)/,"","@pop"],{include:"@root"}],whitespace:[[/[ \t\r\n]+/,""],[/#=/,"comment","@multi_comment"],[/#.*$/,"comment"]],multi_comment:[[/#=/,"comment","@push"],[/=#/,"comment","@pop"],[/=(?!#)|#(?!=)/,"comment"],[/[^#=]+/,"comment"]]}}}}]);
//# sourceMappingURL=9687.e1a38d25.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/9687.e1a38d25.chunk.js
|
9687.e1a38d25.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[1258],{41258:function(e,t,r){r.r(t),r.d(t,{Adapter:function(){return F},CodeActionAdaptor:function(){return G},DefinitionAdapter:function(){return M},DiagnosticsAdapter:function(){return L},FormatAdapter:function(){return U},FormatHelper:function(){return B},FormatOnTypeAdapter:function(){return z},InlayHintsAdapter:function(){return Q},Kind:function(){return H},LibFiles:function(){return I},OccurrencesAdapter:function(){return K},OutlineAdapter:function(){return E},QuickInfoAdapter:function(){return N},ReferenceAdapter:function(){return R},RenameAdapter:function(){return J},SignatureHelpAdapter:function(){return O},SuggestAdapter:function(){return T},WorkerManager:function(){return S},flattenDiagnosticMessageText:function(){return A},getJavaScriptWorker:function(){return Y},getTypeScriptWorker:function(){return $},setupJavaScript:function(){return X},setupTypeScript:function(){return q}});var n,i,s=r(1413),a=r(84506),o=r(97326),u=r(60136),c=r(27277),l=r(74165),f=r(15861),p=r(15671),d=r(43144),g=r(4942),b=r(37762),m=r(94389),h=r(64104),v=Object.defineProperty,y=Object.getOwnPropertyDescriptor,k=Object.getOwnPropertyNames,x=Object.prototype.hasOwnProperty,_=function(e,t,r,n){if(t&&"object"===typeof t||"function"===typeof t){var i,s=(0,b.Z)(k(t));try{var a=function(){var s=i.value;x.call(e,s)||s===r||v(e,s,{get:function(){return t[s]},enumerable:!(n=y(t,s))||n.enumerable})};for(s.s();!(i=s.n()).done;)a()}catch(o){s.e(o)}finally{s.f()}}return e},Z=function(e,t,r){return function(e,t,r){t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r}(e,"symbol"!==typeof t?t+"":t,r),r},w={};_(w,n=m,"default"),i&&_(i,n,"default");var S=function(){function e(t,r){var n=this;(0,p.Z)(this,e),(0,g.Z)(this,"_configChangeListener",void 0),(0,g.Z)(this,"_updateExtraLibsToken",void 0),(0,g.Z)(this,"_extraLibsChangeListener",void 0),(0,g.Z)(this,"_worker",void 0),(0,g.Z)(this,"_client",void 0),this._modeId=t,this._defaults=r,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange((function(){return n._stopWorker()})),this._updateExtraLibsToken=0,this._extraLibsChangeListener=this._defaults.onDidExtraLibsChange((function(){return n._updateExtraLibs()}))}return(0,d.Z)(e,[{key:"dispose",value:function(){this._configChangeListener.dispose(),this._extraLibsChangeListener.dispose(),this._stopWorker()}},{key:"_stopWorker",value:function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}},{key:"_updateExtraLibs",value:function(){var e=(0,f.Z)((0,l.Z)().mark((function e(){var t,r;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._worker){e.next=2;break}return e.abrupt("return");case 2:return t=++this._updateExtraLibsToken,e.next=5,this._worker.getProxy();case 5:if(r=e.sent,this._updateExtraLibsToken===t){e.next=8;break}return e.abrupt("return");case 8:r.updateExtraLibs(this._defaults.getExtraLibs());case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_getClient",value:function(){var e=this;return this._client||(this._client=(0,f.Z)((0,l.Z)().mark((function t(){return(0,l.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e._worker=w.editor.createWebWorker({moduleId:"vs/language/typescript/tsWorker",label:e._modeId,keepIdleModels:!0,createData:{compilerOptions:e._defaults.getCompilerOptions(),extraLibs:e._defaults.getExtraLibs(),customWorkerPath:e._defaults.workerOptions.customWorkerPath,inlayHintsOptions:e._defaults.inlayHintsOptions}}),!e._defaults.getEagerModelSync()){t.next=5;break}return t.next=4,e._worker.withSyncedResources(w.editor.getModels().filter((function(t){return t.getLanguageId()===e._modeId})).map((function(e){return e.uri})));case 4:case 7:return t.abrupt("return",t.sent);case 5:return t.next=7,e._worker.getProxy();case 8:case"end":return t.stop()}}),t)})))()),this._client}},{key:"getLanguageServiceWorker",value:function(){var e=(0,f.Z)((0,l.Z)().mark((function e(){var t,r,n,i,s=arguments;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._getClient();case 2:if(t=e.sent,!this._worker){e.next=7;break}for(r=s.length,n=new Array(r),i=0;i<r;i++)n[i]=s[i];return e.next=7,this._worker.withSyncedResources(n);case 7:return e.abrupt("return",t);case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),C={};function A(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if("string"===typeof e)return e;if(void 0===e)return"";var n="";if(r){n+=t;for(var i=0;i<r;i++)n+=" "}if(n+=e.messageText,r++,e.next){var s,a=(0,b.Z)(e.next);try{for(a.s();!(s=a.n()).done;){var o=s.value;n+=A(o,t,r)}}catch(u){a.e(u)}finally{a.f()}}return n}function D(e){return e?e.map((function(e){return e.text})).join(""):""}C["lib.d.ts"]=!0,C["lib.dom.d.ts"]=!0,C["lib.dom.iterable.d.ts"]=!0,C["lib.es2015.collection.d.ts"]=!0,C["lib.es2015.core.d.ts"]=!0,C["lib.es2015.d.ts"]=!0,C["lib.es2015.generator.d.ts"]=!0,C["lib.es2015.iterable.d.ts"]=!0,C["lib.es2015.promise.d.ts"]=!0,C["lib.es2015.proxy.d.ts"]=!0,C["lib.es2015.reflect.d.ts"]=!0,C["lib.es2015.symbol.d.ts"]=!0,C["lib.es2015.symbol.wellknown.d.ts"]=!0,C["lib.es2016.array.include.d.ts"]=!0,C["lib.es2016.d.ts"]=!0,C["lib.es2016.full.d.ts"]=!0,C["lib.es2017.d.ts"]=!0,C["lib.es2017.full.d.ts"]=!0,C["lib.es2017.intl.d.ts"]=!0,C["lib.es2017.object.d.ts"]=!0,C["lib.es2017.sharedmemory.d.ts"]=!0,C["lib.es2017.string.d.ts"]=!0,C["lib.es2017.typedarrays.d.ts"]=!0,C["lib.es2018.asyncgenerator.d.ts"]=!0,C["lib.es2018.asynciterable.d.ts"]=!0,C["lib.es2018.d.ts"]=!0,C["lib.es2018.full.d.ts"]=!0,C["lib.es2018.intl.d.ts"]=!0,C["lib.es2018.promise.d.ts"]=!0,C["lib.es2018.regexp.d.ts"]=!0,C["lib.es2019.array.d.ts"]=!0,C["lib.es2019.d.ts"]=!0,C["lib.es2019.full.d.ts"]=!0,C["lib.es2019.object.d.ts"]=!0,C["lib.es2019.string.d.ts"]=!0,C["lib.es2019.symbol.d.ts"]=!0,C["lib.es2020.bigint.d.ts"]=!0,C["lib.es2020.d.ts"]=!0,C["lib.es2020.full.d.ts"]=!0,C["lib.es2020.intl.d.ts"]=!0,C["lib.es2020.promise.d.ts"]=!0,C["lib.es2020.sharedmemory.d.ts"]=!0,C["lib.es2020.string.d.ts"]=!0,C["lib.es2020.symbol.wellknown.d.ts"]=!0,C["lib.es2021.d.ts"]=!0,C["lib.es2021.full.d.ts"]=!0,C["lib.es2021.intl.d.ts"]=!0,C["lib.es2021.promise.d.ts"]=!0,C["lib.es2021.string.d.ts"]=!0,C["lib.es2021.weakref.d.ts"]=!0,C["lib.es5.d.ts"]=!0,C["lib.es6.d.ts"]=!0,C["lib.esnext.d.ts"]=!0,C["lib.esnext.full.d.ts"]=!0,C["lib.esnext.intl.d.ts"]=!0,C["lib.esnext.promise.d.ts"]=!0,C["lib.esnext.string.d.ts"]=!0,C["lib.esnext.weakref.d.ts"]=!0,C["lib.scripthost.d.ts"]=!0,C["lib.webworker.d.ts"]=!0,C["lib.webworker.importscripts.d.ts"]=!0,C["lib.webworker.iterable.d.ts"]=!0;var F=function(){function e(t){(0,p.Z)(this,e),this._worker=t}return(0,d.Z)(e,[{key:"_textSpanToRange",value:function(e,t){var r=e.getPositionAt(t.start),n=e.getPositionAt(t.start+t.length);return{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:n.lineNumber,endColumn:n.column}}}]),e}(),I=function(){function e(t){(0,p.Z)(this,e),(0,g.Z)(this,"_libFiles",void 0),(0,g.Z)(this,"_hasFetchedLibFiles",void 0),(0,g.Z)(this,"_fetchLibFilesPromise",void 0),this._worker=t,this._libFiles={},this._hasFetchedLibFiles=!1,this._fetchLibFilesPromise=null}return(0,d.Z)(e,[{key:"isLibFile",value:function(e){return!!e&&(0===e.path.indexOf("/lib.")&&!!C[e.path.slice(1)])}},{key:"getOrCreateModel",value:function(e){var t=w.Uri.parse(e),r=w.editor.getModel(t);if(r)return r;if(this.isLibFile(t)&&this._hasFetchedLibFiles)return w.editor.createModel(this._libFiles[t.path.slice(1)],"typescript",t);var n=h.TG.getExtraLibs()[e];return n?w.editor.createModel(n.content,"typescript",t):null}},{key:"_containsLibFile",value:function(e){var t,r=(0,b.Z)(e);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(this.isLibFile(n))return!0}}catch(i){r.e(i)}finally{r.f()}return!1}},{key:"fetchLibFilesIfNecessary",value:function(){var e=(0,f.Z)((0,l.Z)().mark((function e(t){return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._containsLibFile(t)){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this._fetchLibFiles();case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_fetchLibFiles",value:function(){var e=this;return this._fetchLibFilesPromise||(this._fetchLibFilesPromise=this._worker().then((function(e){return e.getLibFiles()})).then((function(t){e._hasFetchedLibFiles=!0,e._libFiles=t}))),this._fetchLibFilesPromise}}]),e}(),L=function(e){(0,u.Z)(r,e);var t=(0,c.Z)(r);function r(e,n,i,s){var a;(0,p.Z)(this,r),a=t.call(this,s),(0,g.Z)((0,o.Z)(a),"_disposables",[]),(0,g.Z)((0,o.Z)(a),"_listener",Object.create(null)),a._libFiles=e,a._defaults=n,a._selector=i;var u=function(e){if(e.getLanguageId()===i){var t,r=function(){a._defaults.getDiagnosticsOptions().onlyVisible?e.isAttachedToEditor()&&a._doValidate(e):a._doValidate(e)},n=e.onDidChangeContent((function(){clearTimeout(t),t=window.setTimeout(r,500)})),s=e.onDidChangeAttached((function(){a._defaults.getDiagnosticsOptions().onlyVisible&&(e.isAttachedToEditor()?r():w.editor.setModelMarkers(e,a._selector,[]))}));a._listener[e.uri.toString()]={dispose:function(){n.dispose(),s.dispose(),clearTimeout(t)}},r()}},c=function(e){w.editor.setModelMarkers(e,a._selector,[]);var t=e.uri.toString();a._listener[t]&&(a._listener[t].dispose(),delete a._listener[t])};a._disposables.push(w.editor.onDidCreateModel((function(e){return u(e)}))),a._disposables.push(w.editor.onWillDisposeModel(c)),a._disposables.push(w.editor.onDidChangeModelLanguage((function(e){c(e.model),u(e.model)}))),a._disposables.push({dispose:function(){var e,t=(0,b.Z)(w.editor.getModels());try{for(t.s();!(e=t.n()).done;){var r=e.value;c(r)}}catch(n){t.e(n)}finally{t.f()}}});var l=function(){var e,t=(0,b.Z)(w.editor.getModels());try{for(t.s();!(e=t.n()).done;){var r=e.value;c(r),u(r)}}catch(n){t.e(n)}finally{t.f()}};return a._disposables.push(a._defaults.onDidChange(l)),a._disposables.push(a._defaults.onDidExtraLibsChange(l)),w.editor.getModels().forEach((function(e){return u(e)})),a}return(0,d.Z)(r,[{key:"dispose",value:function(){this._disposables.forEach((function(e){return e&&e.dispose()})),this._disposables=[]}},{key:"_doValidate",value:function(){var e=(0,f.Z)((0,l.Z)().mark((function e(t){var r,n,i,s,a,o,u,c,f,p=this;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._worker(t.uri);case 2:if(r=e.sent,!t.isDisposed()){e.next=5;break}return e.abrupt("return");case 5:return n=[],i=this._defaults.getDiagnosticsOptions(),s=i.noSyntaxValidation,a=i.noSemanticValidation,o=i.noSuggestionDiagnostics,s||n.push(r.getSyntacticDiagnostics(t.uri.toString())),a||n.push(r.getSemanticDiagnostics(t.uri.toString())),o||n.push(r.getSuggestionDiagnostics(t.uri.toString())),e.next=12,Promise.all(n);case 12:if((u=e.sent)&&!t.isDisposed()){e.next=15;break}return e.abrupt("return");case 15:return c=u.reduce((function(e,t){return t.concat(e)}),[]).filter((function(e){return-1===(p._defaults.getDiagnosticsOptions().diagnosticCodesToIgnore||[]).indexOf(e.code)})),f=c.map((function(e){return e.relatedInformation||[]})).reduce((function(e,t){return t.concat(e)}),[]).map((function(e){return e.file?w.Uri.parse(e.file.fileName):null})),e.next=19,this._libFiles.fetchLibFilesIfNecessary(f);case 19:if(!t.isDisposed()){e.next=21;break}return e.abrupt("return");case 21:w.editor.setModelMarkers(t,this._selector,c.map((function(e){return p._convertDiagnostics(t,e)})));case 22:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_convertDiagnostics",value:function(e,t){var r=t.start||0,n=t.length||1,i=e.getPositionAt(r),s=i.lineNumber,a=i.column,o=e.getPositionAt(r+n),u=o.lineNumber,c=o.column,l=[];return t.reportsUnnecessary&&l.push(w.MarkerTag.Unnecessary),t.reportsDeprecated&&l.push(w.MarkerTag.Deprecated),{severity:this._tsDiagnosticCategoryToMarkerSeverity(t.category),startLineNumber:s,startColumn:a,endLineNumber:u,endColumn:c,message:A(t.messageText,"\n"),code:t.code.toString(),tags:l,relatedInformation:this._convertRelatedInformation(e,t.relatedInformation)}}},{key:"_convertRelatedInformation",value:function(e,t){var r=this;if(!t)return[];var n=[];return t.forEach((function(t){var i=e;if(t.file&&(i=r._libFiles.getOrCreateModel(t.file.fileName)),i){var s=t.start||0,a=t.length||1,o=i.getPositionAt(s),u=o.lineNumber,c=o.column,l=i.getPositionAt(s+a),f=l.lineNumber,p=l.column;n.push({resource:i.uri,startLineNumber:u,startColumn:c,endLineNumber:f,endColumn:p,message:A(t.messageText,"\n")})}})),n}},{key:"_tsDiagnosticCategoryToMarkerSeverity",value:function(e){switch(e){case 1:return w.MarkerSeverity.Error;case 3:return w.MarkerSeverity.Info;case 0:return w.MarkerSeverity.Warning;case 2:return w.MarkerSeverity.Hint}return w.MarkerSeverity.Info}}]),r}(F),T=function(e){(0,u.Z)(r,e);var t=(0,c.Z)(r);function r(){return(0,p.Z)(this,r),t.apply(this,arguments)}return(0,d.Z)(r,[{key:"triggerCharacters",get:function(){return["."]}},{key:"provideCompletionItems",value:function(){var e=(0,f.Z)((0,l.Z)().mark((function e(t,n,i,s){var a,o,u,c,f,p,d;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.getWordUntilPosition(n),o=new w.Range(n.lineNumber,a.startColumn,n.lineNumber,a.endColumn),u=t.uri,c=t.getOffsetAt(n),e.next=6,this._worker(u);case 6:if(f=e.sent,!t.isDisposed()){e.next=9;break}return e.abrupt("return");case 9:return e.next=11,f.getCompletionsAtPosition(u.toString(),c);case 11:if((p=e.sent)&&!t.isDisposed()){e.next=14;break}return e.abrupt("return");case 14:return d=p.entries.map((function(e){var i,s=o;if(e.replacementSpan){var a=t.getPositionAt(e.replacementSpan.start),l=t.getPositionAt(e.replacementSpan.start+e.replacementSpan.length);s=new w.Range(a.lineNumber,a.column,l.lineNumber,l.column)}var f=[];return-1!==(null===(i=e.kindModifiers)||void 0===i?void 0:i.indexOf("deprecated"))&&f.push(w.languages.CompletionItemTag.Deprecated),{uri:u,position:n,offset:c,range:s,label:e.name,insertText:e.name,sortText:e.sortText,kind:r.convertKind(e.kind),tags:f}})),e.abrupt("return",{suggestions:d});case 16:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i){return e.apply(this,arguments)}}()},{key:"resolveCompletionItem",value:function(){var e=(0,f.Z)((0,l.Z)().mark((function e(t,n){var i,s,a,o,u,c;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=(i=t).uri,a=i.position,o=i.offset,e.next=6,this._worker(s);case 6:return u=e.sent,e.next=9,u.getCompletionEntryDetails(s.toString(),o,i.label);case 9:if(c=e.sent){e.next=12;break}return e.abrupt("return",i);case 12:return e.abrupt("return",{uri:s,position:a,label:c.name,kind:r.convertKind(c.kind),detail:D(c.displayParts),documentation:{value:r.createDocumentationString(c)}});case 13:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()}],[{key:"convertKind",value:function(e){switch(e){case H.primitiveType:case H.keyword:return w.languages.CompletionItemKind.Keyword;case H.variable:case H.localVariable:return w.languages.CompletionItemKind.Variable;case H.memberVariable:case H.memberGetAccessor:case H.memberSetAccessor:return w.languages.CompletionItemKind.Field;case H.function:case H.memberFunction:case H.constructSignature:case H.callSignature:case H.indexSignature:return w.languages.CompletionItemKind.Function;case H.enum:return w.languages.CompletionItemKind.Enum;case H.module:return w.languages.CompletionItemKind.Module;case H.class:return w.languages.CompletionItemKind.Class;case H.interface:return w.languages.CompletionItemKind.Interface;case H.warning:return w.languages.CompletionItemKind.File}return w.languages.CompletionItemKind.Property}},{key:"createDocumentationString",value:function(e){var t=D(e.documentation);if(e.tags){var r,n=(0,b.Z)(e.tags);try{for(n.s();!(r=n.n()).done;){var i=r.value;t+="\n\n".concat(P(i))}}catch(s){n.e(s)}finally{n.f()}}return t}}]),r}(F);function P(e){var t="*@".concat(e.name,"*");if("param"===e.name&&e.text){var r=(0,a.Z)(e.text),n=r[0],i=r.slice(1);t+="`".concat(n.text,"`"),i.length>0&&(t+=" \u2014 ".concat(i.map((function(e){return e.text})).join(" ")))}else Array.isArray(e.text)?t+=" \u2014 ".concat(e.text.map((function(e){return e.text})).join(" ")):e.text&&(t+=" \u2014 ".concat(e.text));return t}var O=function(e){(0,u.Z)(r,e);var t=(0,c.Z)(r);function r(){var e;(0,p.Z)(this,r);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return e=t.call.apply(t,[this].concat(i)),(0,g.Z)((0,o.Z)(e),"signatureHelpTriggerCharacters",["(",","]),e}return(0,d.Z)(r,[{key:"provideSignatureHelp",value:function(){var e=(0,f.Z)((0,l.Z)().mark((function e(t,n,i,s){var a,o,u,c,f;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.uri,o=t.getOffsetAt(n),e.next=4,this._worker(a);case 4:if(u=e.sent,!t.isDisposed()){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,u.getSignatureHelpItems(a.toString(),o,{triggerReason:r._toSignatureHelpTriggerReason(s)});case 9:if((c=e.sent)&&!t.isDisposed()){e.next=12;break}return e.abrupt("return");case 12:return f={activeSignature:c.selectedItemIndex,activeParameter:c.argumentIndex,signatures:[]},c.items.forEach((function(e){var t={label:"",parameters:[]};t.documentation={value:D(e.documentation)},t.label+=D(e.prefixDisplayParts),e.parameters.forEach((function(r,n,i){var s=D(r.displayParts),a={label:s,documentation:{value:D(r.documentation)}};t.label+=s,t.parameters.push(a),n<i.length-1&&(t.label+=D(e.separatorDisplayParts))})),t.label+=D(e.suffixDisplayParts),f.signatures.push(t)})),e.abrupt("return",{value:f,dispose:function(){}});case 15:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i){return e.apply(this,arguments)}}()}],[{key:"_toSignatureHelpTriggerReason",value:function(e){switch(e.triggerKind){case w.languages.SignatureHelpTriggerKind.TriggerCharacter:return e.triggerCharacter?e.isRetrigger?{kind:"retrigger",triggerCharacter:e.triggerCharacter}:{kind:"characterTyped",triggerCharacter:e.triggerCharacter}:{kind:"invoked"};case w.languages.SignatureHelpTriggerKind.ContentChange:return e.isRetrigger?{kind:"retrigger"}:{kind:"invoked"};case w.languages.SignatureHelpTriggerKind.Invoke:default:return{kind:"invoked"}}}}]),r}(F),N=function(e){(0,u.Z)(r,e);var t=(0,c.Z)(r);function r(){return(0,p.Z)(this,r),t.apply(this,arguments)}return(0,d.Z)(r,[{key:"provideHover",value:function(){var e=(0,f.Z)((0,l.Z)().mark((function e(t,r,n){var i,s,a,o,u,c,f;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.uri,s=t.getOffsetAt(r),e.next=4,this._worker(i);case 4:if(a=e.sent,!t.isDisposed()){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,a.getQuickInfoAtPosition(i.toString(),s);case 9:if((o=e.sent)&&!t.isDisposed()){e.next=12;break}return e.abrupt("return");case 12:return u=D(o.documentation),c=o.tags?o.tags.map((function(e){return P(e)})).join(" \n\n"):"",f=D(o.displayParts),e.abrupt("return",{range:this._textSpanToRange(t,o.textSpan),contents:[{value:"```typescript\n"+f+"\n```\n"},{value:u+(c?"\n\n"+c:"")}]});case 16:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()}]),r}(F),K=function(e){(0,u.Z)(r,e);var t=(0,c.Z)(r);function r(){return(0,p.Z)(this,r),t.apply(this,arguments)}return(0,d.Z)(r,[{key:"provideDocumentHighlights",value:function(){var e=(0,f.Z)((0,l.Z)().mark((function e(t,r,n){var i,s,a,o,u=this;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.uri,s=t.getOffsetAt(r),e.next=4,this._worker(i);case 4:if(a=e.sent,!t.isDisposed()){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,a.getOccurrencesAtPosition(i.toString(),s);case 9:if((o=e.sent)&&!t.isDisposed()){e.next=12;break}return e.abrupt("return");case 12:return e.abrupt("return",o.map((function(e){return{range:u._textSpanToRange(t,e.textSpan),kind:e.isWriteAccess?w.languages.DocumentHighlightKind.Write:w.languages.DocumentHighlightKind.Text}})));case 13:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()}]),r}(F),M=function(e){(0,u.Z)(r,e);var t=(0,c.Z)(r);function r(e,n){var i;return(0,p.Z)(this,r),(i=t.call(this,n))._libFiles=e,i}return(0,d.Z)(r,[{key:"provideDefinition",value:function(){var e=(0,f.Z)((0,l.Z)().mark((function e(t,r,n){var i,s,a,o,u,c,f,p,d;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.uri,s=t.getOffsetAt(r),e.next=4,this._worker(i);case 4:if(a=e.sent,!t.isDisposed()){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,a.getDefinitionAtPosition(i.toString(),s);case 9:if((o=e.sent)&&!t.isDisposed()){e.next=12;break}return e.abrupt("return");case 12:return e.next=14,this._libFiles.fetchLibFilesIfNecessary(o.map((function(e){return w.Uri.parse(e.fileName)})));case 14:if(!t.isDisposed()){e.next=16;break}return e.abrupt("return");case 16:u=[],c=(0,b.Z)(o);try{for(c.s();!(f=c.n()).done;)p=f.value,(d=this._libFiles.getOrCreateModel(p.fileName))&&u.push({uri:d.uri,range:this._textSpanToRange(d,p.textSpan)})}catch(n){c.e(n)}finally{c.f()}return e.abrupt("return",u);case 20:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()}]),r}(F),R=function(e){(0,u.Z)(r,e);var t=(0,c.Z)(r);function r(e,n){var i;return(0,p.Z)(this,r),(i=t.call(this,n))._libFiles=e,i}return(0,d.Z)(r,[{key:"provideReferences",value:function(){var e=(0,f.Z)((0,l.Z)().mark((function e(t,r,n,i){var s,a,o,u,c,f,p,d,g;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=t.uri,a=t.getOffsetAt(r),e.next=4,this._worker(s);case 4:if(o=e.sent,!t.isDisposed()){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,o.getReferencesAtPosition(s.toString(),a);case 9:if((u=e.sent)&&!t.isDisposed()){e.next=12;break}return e.abrupt("return");case 12:return e.next=14,this._libFiles.fetchLibFilesIfNecessary(u.map((function(e){return w.Uri.parse(e.fileName)})));case 14:if(!t.isDisposed()){e.next=16;break}return e.abrupt("return");case 16:c=[],f=(0,b.Z)(u);try{for(f.s();!(p=f.n()).done;)d=p.value,(g=this._libFiles.getOrCreateModel(d.fileName))&&c.push({uri:g.uri,range:this._textSpanToRange(g,d.textSpan)})}catch(n){f.e(n)}finally{f.f()}return e.abrupt("return",c);case 20:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i){return e.apply(this,arguments)}}()}]),r}(F),E=function(e){(0,u.Z)(r,e);var t=(0,c.Z)(r);function r(){return(0,p.Z)(this,r),t.apply(this,arguments)}return(0,d.Z)(r,[{key:"provideDocumentSymbols",value:function(){var e=(0,f.Z)((0,l.Z)().mark((function e(t,r){var n,i,s,a,o,u=this;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.uri,e.next=3,this._worker(n);case 3:if(i=e.sent,!t.isDisposed()){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,i.getNavigationBarItems(n.toString());case 8:if((s=e.sent)&&!t.isDisposed()){e.next=11;break}return e.abrupt("return");case 11:return a=function e(r,n,i){var s={name:n.text,detail:"",kind:V[n.kind]||w.languages.SymbolKind.Variable,range:u._textSpanToRange(t,n.spans[0]),selectionRange:u._textSpanToRange(t,n.spans[0]),tags:[]};if(i&&(s.containerName=i),n.childItems&&n.childItems.length>0){var a,o=(0,b.Z)(n.childItems);try{for(o.s();!(a=o.n()).done;){e(r,a.value,s.name)}}catch(c){o.e(c)}finally{o.f()}}r.push(s)},o=[],s.forEach((function(e){return a(o,e)})),e.abrupt("return",o);case 15:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()}]),r}(F),H=(0,d.Z)((function e(){(0,p.Z)(this,e)}));Z(H,"unknown",""),Z(H,"keyword","keyword"),Z(H,"script","script"),Z(H,"module","module"),Z(H,"class","class"),Z(H,"interface","interface"),Z(H,"type","type"),Z(H,"enum","enum"),Z(H,"variable","var"),Z(H,"localVariable","local var"),Z(H,"function","function"),Z(H,"localFunction","local function"),Z(H,"memberFunction","method"),Z(H,"memberGetAccessor","getter"),Z(H,"memberSetAccessor","setter"),Z(H,"memberVariable","property"),Z(H,"constructorImplementation","constructor"),Z(H,"callSignature","call"),Z(H,"indexSignature","index"),Z(H,"constructSignature","construct"),Z(H,"parameter","parameter"),Z(H,"typeParameter","type parameter"),Z(H,"primitiveType","primitive type"),Z(H,"label","label"),Z(H,"alias","alias"),Z(H,"const","const"),Z(H,"let","let"),Z(H,"warning","warning");var V=Object.create(null);V[H.module]=w.languages.SymbolKind.Module,V[H.class]=w.languages.SymbolKind.Class,V[H.enum]=w.languages.SymbolKind.Enum,V[H.interface]=w.languages.SymbolKind.Interface,V[H.memberFunction]=w.languages.SymbolKind.Method,V[H.memberVariable]=w.languages.SymbolKind.Property,V[H.memberGetAccessor]=w.languages.SymbolKind.Property,V[H.memberSetAccessor]=w.languages.SymbolKind.Property,V[H.variable]=w.languages.SymbolKind.Variable,V[H.const]=w.languages.SymbolKind.Variable,V[H.localVariable]=w.languages.SymbolKind.Variable,V[H.variable]=w.languages.SymbolKind.Variable,V[H.function]=w.languages.SymbolKind.Function,V[H.localFunction]=w.languages.SymbolKind.Function;var W,j,B=function(e){(0,u.Z)(r,e);var t=(0,c.Z)(r);function r(){return(0,p.Z)(this,r),t.apply(this,arguments)}return(0,d.Z)(r,[{key:"_convertTextChanges",value:function(e,t){return{text:t.newText,range:this._textSpanToRange(e,t.span)}}}],[{key:"_convertOptions",value:function(e){return{ConvertTabsToSpaces:e.insertSpaces,TabSize:e.tabSize,IndentSize:e.tabSize,IndentStyle:2,NewLineCharacter:"\n",InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1}}}]),r}(F),U=function(e){(0,u.Z)(r,e);var t=(0,c.Z)(r);function r(){return(0,p.Z)(this,r),t.apply(this,arguments)}return(0,d.Z)(r,[{key:"provideDocumentRangeFormattingEdits",value:function(){var e=(0,f.Z)((0,l.Z)().mark((function e(t,r,n,i){var s,a,o,u,c,f=this;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=t.uri,a=t.getOffsetAt({lineNumber:r.startLineNumber,column:r.startColumn}),o=t.getOffsetAt({lineNumber:r.endLineNumber,column:r.endColumn}),e.next=5,this._worker(s);case 5:if(u=e.sent,!t.isDisposed()){e.next=8;break}return e.abrupt("return");case 8:return e.next=10,u.getFormattingEditsForRange(s.toString(),a,o,B._convertOptions(n));case 10:if((c=e.sent)&&!t.isDisposed()){e.next=13;break}return e.abrupt("return");case 13:return e.abrupt("return",c.map((function(e){return f._convertTextChanges(t,e)})));case 14:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i){return e.apply(this,arguments)}}()}]),r}(B),z=function(e){(0,u.Z)(r,e);var t=(0,c.Z)(r);function r(){return(0,p.Z)(this,r),t.apply(this,arguments)}return(0,d.Z)(r,[{key:"autoFormatTriggerCharacters",get:function(){return[";","}","\n"]}},{key:"provideOnTypeFormattingEdits",value:function(){var e=(0,f.Z)((0,l.Z)().mark((function e(t,r,n,i,s){var a,o,u,c,f=this;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.uri,o=t.getOffsetAt(r),e.next=4,this._worker(a);case 4:if(u=e.sent,!t.isDisposed()){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,u.getFormattingEditsAfterKeystroke(a.toString(),o,n,B._convertOptions(i));case 9:if((c=e.sent)&&!t.isDisposed()){e.next=12;break}return e.abrupt("return");case 12:return e.abrupt("return",c.map((function(e){return f._convertTextChanges(t,e)})));case 13:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i,s){return e.apply(this,arguments)}}()}]),r}(B),G=function(e){(0,u.Z)(r,e);var t=(0,c.Z)(r);function r(){return(0,p.Z)(this,r),t.apply(this,arguments)}return(0,d.Z)(r,[{key:"provideCodeActions",value:function(){var e=(0,f.Z)((0,l.Z)().mark((function e(t,r,n,i){var s,a,o,u,c,f,p,d,g=this;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=t.uri,a=t.getOffsetAt({lineNumber:r.startLineNumber,column:r.startColumn}),o=t.getOffsetAt({lineNumber:r.endLineNumber,column:r.endColumn}),u=B._convertOptions(t.getOptions()),c=n.markers.filter((function(e){return e.code})).map((function(e){return e.code})).map(Number),e.next=7,this._worker(s);case 7:if(f=e.sent,!t.isDisposed()){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,f.getCodeFixesAtPosition(s.toString(),a,o,c,u);case 12:if((p=e.sent)&&!t.isDisposed()){e.next=15;break}return e.abrupt("return",{actions:[],dispose:function(){}});case 15:return d=p.filter((function(e){return 0===e.changes.filter((function(e){return e.isNewFile})).length})).map((function(e){return g._tsCodeFixActionToMonacoCodeAction(t,n,e)})),e.abrupt("return",{actions:d,dispose:function(){}});case 17:case"end":return e.stop()}}),e,this)})));return function(t,r,n,i){return e.apply(this,arguments)}}()},{key:"_tsCodeFixActionToMonacoCodeAction",value:function(e,t,r){var n,i=[],s=(0,b.Z)(r.changes);try{for(s.s();!(n=s.n()).done;){var a,o=n.value,u=(0,b.Z)(o.textChanges);try{for(u.s();!(a=u.n()).done;){var c=a.value;i.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,c.span),text:c.newText}})}}catch(l){u.e(l)}finally{u.f()}}}catch(l){s.e(l)}finally{s.f()}return{title:r.description,edit:{edits:i},diagnostics:t.markers,kind:"quickfix"}}}]),r}(B),J=function(e){(0,u.Z)(r,e);var t=(0,c.Z)(r);function r(e,n){var i;return(0,p.Z)(this,r),(i=t.call(this,n))._libFiles=e,i}return(0,d.Z)(r,[{key:"provideRenameEdits",value:function(){var e=(0,f.Z)((0,l.Z)().mark((function e(t,r,n,i){var s,a,o,u,c,f,p,d,g,m,h;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=t.uri,a=s.toString(),o=t.getOffsetAt(r),e.next=5,this._worker(s);case 5:if(u=e.sent,!t.isDisposed()){e.next=8;break}return e.abrupt("return");case 8:return e.next=10,u.getRenameInfo(a,o,{allowRenameOfImportPath:!1});case 10:if(!1!==(c=e.sent).canRename){e.next=13;break}return e.abrupt("return",{edits:[],rejectReason:c.localizedErrorMessage});case 13:if(void 0===c.fileToRename){e.next=15;break}throw new Error("Renaming files is not supported.");case 15:return e.next=17,u.findRenameLocations(a,o,!1,!1,!1);case 17:if((f=e.sent)&&!t.isDisposed()){e.next=20;break}return e.abrupt("return");case 20:p=[],d=(0,b.Z)(f),e.prev=22,d.s();case 24:if((g=d.n()).done){e.next=34;break}if(m=g.value,!(h=this._libFiles.getOrCreateModel(m.fileName))){e.next=31;break}p.push({resource:h.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(h,m.textSpan),text:n}}),e.next=32;break;case 31:throw new Error("Unknown file ".concat(m.fileName,"."));case 32:e.next=24;break;case 34:e.next=39;break;case 36:e.prev=36,e.t0=e.catch(22),d.e(e.t0);case 39:return e.prev=39,d.f(),e.finish(39);case 42:return e.abrupt("return",{edits:p});case 43:case"end":return e.stop()}}),e,this,[[22,36,39,42]])})));return function(t,r,n,i){return e.apply(this,arguments)}}()}]),r}(F),Q=function(e){(0,u.Z)(r,e);var t=(0,c.Z)(r);function r(){return(0,p.Z)(this,r),t.apply(this,arguments)}return(0,d.Z)(r,[{key:"provideInlayHints",value:function(){var e=(0,f.Z)((0,l.Z)().mark((function e(t,r,n){var i,a,o,u,c,f,p,d=this;return(0,l.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.uri,a=i.toString(),o=t.getOffsetAt({lineNumber:r.startLineNumber,column:r.startColumn}),u=t.getOffsetAt({lineNumber:r.endLineNumber,column:r.endColumn}),e.next=6,this._worker(i);case 6:if(c=e.sent,!t.isDisposed()){e.next=9;break}return e.abrupt("return",null);case 9:return e.next=11,c.provideInlayHints(a,o,u);case 11:return f=e.sent,p=f.map((function(e){return(0,s.Z)((0,s.Z)({},e),{},{label:e.text,position:t.getPositionAt(e.position),kind:d._convertHintKind(e.kind)})})),e.abrupt("return",{hints:p,dispose:function(){}});case 14:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"_convertHintKind",value:function(e){return"Parameter"===e?w.languages.InlayHintKind.Parameter:w.languages.InlayHintKind.Type}}]),r}(F);function q(e){j=ee(e,"typescript")}function X(e){W=ee(e,"javascript")}function Y(){return new Promise((function(e,t){if(!W)return t("JavaScript not registered!");e(W)}))}function $(){return new Promise((function(e,t){if(!j)return t("TypeScript not registered!");e(j)}))}function ee(e,t){var r=new S(t,e),n=function(){return r.getLanguageServiceWorker.apply(r,arguments)},i=new I(n);return w.languages.registerCompletionItemProvider(t,new T(n)),w.languages.registerSignatureHelpProvider(t,new O(n)),w.languages.registerHoverProvider(t,new N(n)),w.languages.registerDocumentHighlightProvider(t,new K(n)),w.languages.registerDefinitionProvider(t,new M(i,n)),w.languages.registerReferenceProvider(t,new R(i,n)),w.languages.registerDocumentSymbolProvider(t,new E(n)),w.languages.registerDocumentRangeFormattingEditProvider(t,new U(n)),w.languages.registerOnTypeFormattingEditProvider(t,new z(n)),w.languages.registerCodeActionProvider(t,new G(n)),w.languages.registerRenameProvider(t,new J(i,n)),w.languages.registerInlayHintsProvider(t,new Q(n)),new L(i,e,t,n),n}}}]);
//# sourceMappingURL=1258.94dead34.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/1258.94dead34.chunk.js
|
1258.94dead34.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[3003],{93003:function(e,n,s){s.r(n),s.d(n,{conf:function(){return i},language:function(){return t}});var i={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#?region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#?endregion\\b.*--\x3e")}}},t={defaultToken:"",tokenPostfix:".rst",control:/[\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],alphanumerics:/[A-Za-z0-9]/,simpleRefNameWithoutBq:/(?:@alphanumerics[-_+:.]*@alphanumerics)+|(?:@alphanumerics+)/,simpleRefName:/(?:`@phrase`|@simpleRefNameWithoutBq)/,phrase:/@simpleRefNameWithoutBq(?:\s@simpleRefNameWithoutBq)*/,citationName:/[A-Za-z][A-Za-z0-9-_.]*/,blockLiteralStart:/(?:[!"#$%&'()*+,-./:;<=>?@\[\]^_`{|}~]|[\s])/,precedingChars:/(?:[ -:/'"<([{])/,followingChars:/(?:[ -.,:;!?/'")\]}>]|$)/,punctuation:/(=|-|~|`|#|"|\^|\+|\*|:|\.|'|_|\+)/,tokenizer:{root:[[/^(@punctuation{3,}$){1,1}?/,"keyword"],[/^\s*([\*\-+\u2023\u2022]|[a-zA-Z0-9]+\.|\([a-zA-Z0-9]+\)|[a-zA-Z0-9]+\))\s/,"keyword"],[/([ ]::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],[/(::)\s*$/,"keyword","@blankLineOfLiteralBlocks"],{include:"@tables"},{include:"@explicitMarkupBlocks"},{include:"@inlineMarkup"}],explicitMarkupBlocks:[{include:"@citations"},{include:"@footnotes"},[/^(\.\.\s)(@simpleRefName)(::\s)(.*)$/,[{token:"",next:"subsequentLines"},"keyword","",""]],[/^(\.\.)(\s+)(_)(@simpleRefName)(:)(\s+)(.*)/,[{token:"",next:"hyperlinks"},"","","string.link","","","string.link"]],[/^((?:(?:\.\.)(?:\s+))?)(__)(:)(\s+)(.*)/,[{token:"",next:"subsequentLines"},"","","","string.link"]],[/^(__\s+)(.+)/,["","string.link"]],[/^(\.\.)( \|)([^| ]+[^|]*[^| ]*)(\| )(@simpleRefName)(:: .*)/,[{token:"",next:"subsequentLines"},"","string.link","","keyword",""],"@rawBlocks"],[/(\|)([^| ]+[^|]*[^| ]*)(\|_{0,2})/,["","string.link",""]],[/^(\.\.)([ ].*)$/,[{token:"",next:"@comments"},"comment"]]],inlineMarkup:[{include:"@citationsReference"},{include:"@footnotesReference"},[/(@simpleRefName)(_{1,2})/,["string.link",""]],[/(`)([^<`]+\s+)(<)(.*)(>)(`)(_)/,["","string.link","","string.link","","",""]],[/\*\*([^\\*]|\*(?!\*))+\*\*/,"strong"],[/\*[^*]+\*/,"emphasis"],[/(``)((?:[^`]|\`(?!`))+)(``)/,["","keyword",""]],[/(__\s+)(.+)/,["","keyword"]],[/(:)((?:@simpleRefNameWithoutBq)?)(:`)([^`]+)(`)/,["","keyword","","",""]],[/(`)([^`]+)(`:)((?:@simpleRefNameWithoutBq)?)(:)/,["","","","keyword",""]],[/(`)([^`]+)(`)/,""],[/(_`)(@phrase)(`)/,["","string.link",""]]],citations:[[/^(\.\.\s+\[)((?:@citationName))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],citationsReference:[[/(\[)(@citationName)(\]_)/,["","string.link",""]]],footnotes:[[/^(\.\.\s+\[)((?:[0-9]+))(\]\s+.*)/,[{token:"",next:"@subsequentLines"},"string.link",""]],[/^(\.\.\s+\[)((?:#@simpleRefName?))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]],[/^(\.\.\s+\[)((?:\*))(\]\s+)(.*)/,[{token:"",next:"@subsequentLines"},"string.link","",""]]],footnotesReference:[[/(\[)([0-9]+)(\])(_)/,["","string.link","",""]],[/(\[)(#@simpleRefName?)(\])(_)/,["","string.link","",""]],[/(\[)(\*)(\])(_)/,["","string.link","",""]]],blankLineOfLiteralBlocks:[[/^$/,"","@subsequentLinesOfLiteralBlocks"],[/^.*$/,"","@pop"]],subsequentLinesOfLiteralBlocks:[[/(@blockLiteralStart+)(.*)/,["keyword",""]],[/^(?!blockLiteralStart)/,"","@popall"]],subsequentLines:[[/^[\s]+.*/,""],[/^(?!\s)/,"","@pop"]],hyperlinks:[[/^[\s]+.*/,"string.link"],[/^(?!\s)/,"","@pop"]],comments:[[/^[\s]+.*/,"comment"],[/^(?!\s)/,"","@pop"]],tables:[[/\+-[+-]+/,"keyword"],[/\+=[+=]+/,"keyword"]]}}}}]);
//# sourceMappingURL=3003.57cfe277.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/3003.57cfe277.chunk.js
|
3003.57cfe277.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[2880],{72880:function(e,n,t){t.r(n),t.d(n,{conf:function(){return s},language:function(){return o}});var s={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),end:new RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")}}},o={defaultToken:"",tokenPostfix:".fs",keywords:["abstract","and","atomic","as","assert","asr","base","begin","break","checked","component","const","constraint","constructor","continue","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","eager","event","external","extern","false","finally","for","fun","function","fixed","functor","global","if","in","include","inherit","inline","interface","internal","land","lor","lsl","lsr","lxor","lazy","let","match","member","mod","module","mutable","namespace","method","mixin","new","not","null","of","open","or","object","override","private","parallel","process","protected","pure","public","rec","return","static","sealed","struct","sig","then","to","true","tailcall","trait","try","type","upcast","use","val","void","virtual","volatile","when","while","with","yield"],symbols:/[=><!~?:&|+\-*\^%;\.,\/]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/[uU]?[yslnLI]?/,floatsuffix:/[fFmM]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[<.*>\]/,"annotation"],[/^#(if|else|endif)/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0x[0-9a-fA-F]+LF/,"number.float"],[/0x[0-9a-fA-F]+(@integersuffix)/,"number.hex"],[/0b[0-1]+(@integersuffix)/,"number.bin"],[/\d+(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string",'@string."""'],[/"/,"string",'@string."'],[/\@"/,{token:"string.quote",next:"@litstring"}],[/'[^\\']'B?/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\(\*(?!\))/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^*(]+/,"comment"],[/\*\)/,"comment","@pop"],[/\*/,"comment"],[/\(\*\)/,"comment"],[/\(/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/("""|"B?)/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]]}}}}]);
//# sourceMappingURL=2880.029aa44e.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/2880.029aa44e.chunk.js
|
2880.029aa44e.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[2154],{32154:function(e,_,t){t.r(_),t.d(_,{conf:function(){return r},language:function(){return i}});var r={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},i={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["AES128","AES256","ALL","ALLOWOVERWRITE","ANALYSE","ANALYZE","AND","ANY","ARRAY","AS","ASC","AUTHORIZATION","AZ64","BACKUP","BETWEEN","BINARY","BLANKSASNULL","BOTH","BYTEDICT","BZIP2","CASE","CAST","CHECK","COLLATE","COLUMN","CONSTRAINT","CREATE","CREDENTIALS","CROSS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURRENT_USER_ID","DEFAULT","DEFERRABLE","DEFLATE","DEFRAG","DELTA","DELTA32K","DESC","DISABLE","DISTINCT","DO","ELSE","EMPTYASNULL","ENABLE","ENCODE","ENCRYPT","ENCRYPTION","END","EXCEPT","EXPLICIT","FALSE","FOR","FOREIGN","FREEZE","FROM","FULL","GLOBALDICT256","GLOBALDICT64K","GRANT","GROUP","GZIP","HAVING","IDENTITY","IGNORE","ILIKE","IN","INITIALLY","INNER","INTERSECT","INTO","IS","ISNULL","JOIN","LANGUAGE","LEADING","LEFT","LIKE","LIMIT","LOCALTIME","LOCALTIMESTAMP","LUN","LUNS","LZO","LZOP","MINUS","MOSTLY16","MOSTLY32","MOSTLY8","NATURAL","NEW","NOT","NOTNULL","NULL","NULLS","OFF","OFFLINE","OFFSET","OID","OLD","ON","ONLY","OPEN","OR","ORDER","OUTER","OVERLAPS","PARALLEL","PARTITION","PERCENT","PERMISSIONS","PLACING","PRIMARY","RAW","READRATIO","RECOVER","REFERENCES","RESPECT","REJECTLOG","RESORT","RESTORE","RIGHT","SELECT","SESSION_USER","SIMILAR","SNAPSHOT","SOME","SYSDATE","SYSTEM","TABLE","TAG","TDES","TEXT255","TEXT32K","THEN","TIMESTAMP","TO","TOP","TRAILING","TRUE","TRUNCATECOLUMNS","UNION","UNIQUE","USER","USING","VERBOSE","WALLET","WHEN","WHERE","WITH","WITHOUT"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["current_schema","current_schemas","has_database_privilege","has_schema_privilege","has_table_privilege","age","current_time","current_timestamp","localtime","isfinite","now","ascii","get_bit","get_byte","set_bit","set_byte","to_ascii","approximate percentile_disc","avg","count","listagg","max","median","min","percentile_cont","stddev_samp","stddev_pop","sum","var_samp","var_pop","bit_and","bit_or","bool_and","bool_or","cume_dist","first_value","lag","last_value","lead","nth_value","ratio_to_report","dense_rank","ntile","percent_rank","rank","row_number","case","coalesce","decode","greatest","least","nvl","nvl2","nullif","add_months","at time zone","convert_timezone","current_date","date_cmp","date_cmp_timestamp","date_cmp_timestamptz","date_part_year","dateadd","datediff","date_part","date_trunc","extract","getdate","interval_cmp","last_day","months_between","next_day","sysdate","timeofday","timestamp_cmp","timestamp_cmp_date","timestamp_cmp_timestamptz","timestamptz_cmp","timestamptz_cmp_date","timestamptz_cmp_timestamp","timezone","to_timestamp","trunc","abs","acos","asin","atan","atan2","cbrt","ceil","ceiling","checksum","cos","cot","degrees","dexp","dlog1","dlog10","exp","floor","ln","log","mod","pi","power","radians","random","round","sin","sign","sqrt","tan","to_hex","bpcharcmp","btrim","bttext_pattern_cmp","char_length","character_length","charindex","chr","concat","crc32","func_sha1","initcap","left and rights","len","length","lower","lpad and rpads","ltrim","md5","octet_length","position","quote_ident","quote_literal","regexp_count","regexp_instr","regexp_replace","regexp_substr","repeat","replace","replicate","reverse","rtrim","split_part","strpos","strtol","substring","textlen","translate","trim","upper","cast","convert","to_char","to_date","to_number","json_array_length","json_extract_array_element_text","json_extract_path_text","current_setting","pg_cancel_backend","pg_terminate_backend","set_config","current_database","current_user","current_user_id","pg_backend_pid","pg_last_copy_count","pg_last_copy_id","pg_last_query_id","pg_last_unload_count","session_user","slice_num","user","version","abbrev","acosd","any","area","array_agg","array_append","array_cat","array_dims","array_fill","array_length","array_lower","array_ndims","array_position","array_positions","array_prepend","array_remove","array_replace","array_to_json","array_to_string","array_to_tsvector","array_upper","asind","atan2d","atand","bit","bit_length","bound_box","box","brin_summarize_new_values","broadcast","cardinality","center","circle","clock_timestamp","col_description","concat_ws","convert_from","convert_to","corr","cosd","cotd","covar_pop","covar_samp","current_catalog","current_query","current_role","currval","cursor_to_xml","diameter","div","encode","enum_first","enum_last","enum_range","every","family","format","format_type","generate_series","generate_subscripts","get_current_ts_config","gin_clean_pending_list","grouping","has_any_column_privilege","has_column_privilege","has_foreign_data_wrapper_privilege","has_function_privilege","has_language_privilege","has_sequence_privilege","has_server_privilege","has_tablespace_privilege","has_type_privilege","height","host","hostmask","inet_client_addr","inet_client_port","inet_merge","inet_same_family","inet_server_addr","inet_server_port","isclosed","isempty","isopen","json_agg","json_object","json_object_agg","json_populate_record","json_populate_recordset","json_to_record","json_to_recordset","jsonb_agg","jsonb_object_agg","justify_days","justify_hours","justify_interval","lastval","left","line","localtimestamp","lower_inc","lower_inf","lpad","lseg","make_date","make_interval","make_time","make_timestamp","make_timestamptz","masklen","mode","netmask","network","nextval","npoints","num_nonnulls","num_nulls","numnode","obj_description","overlay","parse_ident","path","pclose","percentile_disc","pg_advisory_lock","pg_advisory_lock_shared","pg_advisory_unlock","pg_advisory_unlock_all","pg_advisory_unlock_shared","pg_advisory_xact_lock","pg_advisory_xact_lock_shared","pg_backup_start_time","pg_blocking_pids","pg_client_encoding","pg_collation_is_visible","pg_column_size","pg_conf_load_time","pg_control_checkpoint","pg_control_init","pg_control_recovery","pg_control_system","pg_conversion_is_visible","pg_create_logical_replication_slot","pg_create_physical_replication_slot","pg_create_restore_point","pg_current_xlog_flush_location","pg_current_xlog_insert_location","pg_current_xlog_location","pg_database_size","pg_describe_object","pg_drop_replication_slot","pg_export_snapshot","pg_filenode_relation","pg_function_is_visible","pg_get_constraintdef","pg_get_expr","pg_get_function_arguments","pg_get_function_identity_arguments","pg_get_function_result","pg_get_functiondef","pg_get_indexdef","pg_get_keywords","pg_get_object_address","pg_get_owned_sequence","pg_get_ruledef","pg_get_serial_sequence","pg_get_triggerdef","pg_get_userbyid","pg_get_viewdef","pg_has_role","pg_identify_object","pg_identify_object_as_address","pg_index_column_has_property","pg_index_has_property","pg_indexam_has_property","pg_indexes_size","pg_is_in_backup","pg_is_in_recovery","pg_is_other_temp_schema","pg_is_xlog_replay_paused","pg_last_committed_xact","pg_last_xact_replay_timestamp","pg_last_xlog_receive_location","pg_last_xlog_replay_location","pg_listening_channels","pg_logical_emit_message","pg_logical_slot_get_binary_changes","pg_logical_slot_get_changes","pg_logical_slot_peek_binary_changes","pg_logical_slot_peek_changes","pg_ls_dir","pg_my_temp_schema","pg_notification_queue_usage","pg_opclass_is_visible","pg_operator_is_visible","pg_opfamily_is_visible","pg_options_to_table","pg_postmaster_start_time","pg_read_binary_file","pg_read_file","pg_relation_filenode","pg_relation_filepath","pg_relation_size","pg_reload_conf","pg_replication_origin_create","pg_replication_origin_drop","pg_replication_origin_oid","pg_replication_origin_progress","pg_replication_origin_session_is_setup","pg_replication_origin_session_progress","pg_replication_origin_session_reset","pg_replication_origin_session_setup","pg_replication_origin_xact_reset","pg_replication_origin_xact_setup","pg_rotate_logfile","pg_size_bytes","pg_size_pretty","pg_sleep","pg_sleep_for","pg_sleep_until","pg_start_backup","pg_stat_file","pg_stop_backup","pg_switch_xlog","pg_table_is_visible","pg_table_size","pg_tablespace_databases","pg_tablespace_location","pg_tablespace_size","pg_total_relation_size","pg_trigger_depth","pg_try_advisory_lock","pg_try_advisory_lock_shared","pg_try_advisory_xact_lock","pg_try_advisory_xact_lock_shared","pg_ts_config_is_visible","pg_ts_dict_is_visible","pg_ts_parser_is_visible","pg_ts_template_is_visible","pg_type_is_visible","pg_typeof","pg_xact_commit_timestamp","pg_xlog_location_diff","pg_xlog_replay_pause","pg_xlog_replay_resume","pg_xlogfile_name","pg_xlogfile_name_offset","phraseto_tsquery","plainto_tsquery","point","polygon","popen","pqserverversion","query_to_xml","querytree","quote_nullable","radius","range_merge","regexp_matches","regexp_split_to_array","regexp_split_to_table","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","right","row_security_active","row_to_json","rpad","scale","set_masklen","setseed","setval","setweight","shobj_description","sind","sprintf","statement_timestamp","stddev","string_agg","string_to_array","strip","substr","table_to_xml","table_to_xml_and_xmlschema","tand","text","to_json","to_regclass","to_regnamespace","to_regoper","to_regoperator","to_regproc","to_regprocedure","to_regrole","to_regtype","to_tsquery","to_tsvector","transaction_timestamp","ts_debug","ts_delete","ts_filter","ts_headline","ts_lexize","ts_parse","ts_rank","ts_rank_cd","ts_rewrite","ts_stat","ts_token_type","tsquery_phrase","tsvector_to_array","tsvector_update_trigger","tsvector_update_trigger_column","txid_current","txid_current_snapshot","txid_snapshot_xip","txid_snapshot_xmax","txid_snapshot_xmin","txid_visible_in_snapshot","unnest","upper_inc","upper_inf","variance","width","width_bucket","xml_is_well_formed","xml_is_well_formed_content","xml_is_well_formed_document","xmlagg","xmlcomment","xmlconcat","xmlelement","xmlexists","xmlforest","xmlparse","xmlpi","xmlroot","xmlserialize","xpath","xpath_exists"],builtinVariables:[],pseudoColumns:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@pseudoColumns"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@keywords":"keyword","@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],pseudoColumns:[[/[$][A-Za-z_][\w@#$]*/,{cases:{"@pseudoColumns":"predefined","@default":"identifier"}}]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}}}}]);
//# sourceMappingURL=2154.5c399961.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/2154.5c399961.chunk.js
|
2154.5c399961.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[9361],{29361:function(E,T,S){S.r(T),S.d(T,{conf:function(){return R},language:function(){return _}});var R={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},_={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ACCESSIBLE","ADD","ALL","ALTER","ANALYZE","AND","AS","ASC","ASENSITIVE","BEFORE","BETWEEN","BIGINT","BINARY","BLOB","BOTH","BY","CALL","CASCADE","CASE","CHANGE","CHAR","CHARACTER","CHECK","COLLATE","COLUMN","CONDITION","CONSTRAINT","CONTINUE","CONVERT","CREATE","CROSS","CUBE","CUME_DIST","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURSOR","DATABASE","DATABASES","DAY_HOUR","DAY_MICROSECOND","DAY_MINUTE","DAY_SECOND","DEC","DECIMAL","DECLARE","DEFAULT","DELAYED","DELETE","DENSE_RANK","DESC","DESCRIBE","DETERMINISTIC","DISTINCT","DISTINCTROW","DIV","DOUBLE","DROP","DUAL","EACH","ELSE","ELSEIF","EMPTY","ENCLOSED","ESCAPED","EXCEPT","EXISTS","EXIT","EXPLAIN","FALSE","FETCH","FIRST_VALUE","FLOAT","FLOAT4","FLOAT8","FOR","FORCE","FOREIGN","FROM","FULLTEXT","FUNCTION","GENERATED","GET","GRANT","GROUP","GROUPING","GROUPS","HAVING","HIGH_PRIORITY","HOUR_MICROSECOND","HOUR_MINUTE","HOUR_SECOND","IF","IGNORE","IN","INDEX","INFILE","INNER","INOUT","INSENSITIVE","INSERT","INT","INT1","INT2","INT3","INT4","INT8","INTEGER","INTERVAL","INTO","IO_AFTER_GTIDS","IO_BEFORE_GTIDS","IS","ITERATE","JOIN","JSON_TABLE","KEY","KEYS","KILL","LAG","LAST_VALUE","LATERAL","LEAD","LEADING","LEAVE","LEFT","LIKE","LIMIT","LINEAR","LINES","LOAD","LOCALTIME","LOCALTIMESTAMP","LOCK","LONG","LONGBLOB","LONGTEXT","LOOP","LOW_PRIORITY","MASTER_BIND","MASTER_SSL_VERIFY_SERVER_CERT","MATCH","MAXVALUE","MEDIUMBLOB","MEDIUMINT","MEDIUMTEXT","MIDDLEINT","MINUTE_MICROSECOND","MINUTE_SECOND","MOD","MODIFIES","NATURAL","NOT","NO_WRITE_TO_BINLOG","NTH_VALUE","NTILE","NULL","NUMERIC","OF","ON","OPTIMIZE","OPTIMIZER_COSTS","OPTION","OPTIONALLY","OR","ORDER","OUT","OUTER","OUTFILE","OVER","PARTITION","PERCENT_RANK","PRECISION","PRIMARY","PROCEDURE","PURGE","RANGE","RANK","READ","READS","READ_WRITE","REAL","RECURSIVE","REFERENCES","REGEXP","RELEASE","RENAME","REPEAT","REPLACE","REQUIRE","RESIGNAL","RESTRICT","RETURN","REVOKE","RIGHT","RLIKE","ROW","ROWS","ROW_NUMBER","SCHEMA","SCHEMAS","SECOND_MICROSECOND","SELECT","SENSITIVE","SEPARATOR","SET","SHOW","SIGNAL","SMALLINT","SPATIAL","SPECIFIC","SQL","SQLEXCEPTION","SQLSTATE","SQLWARNING","SQL_BIG_RESULT","SQL_CALC_FOUND_ROWS","SQL_SMALL_RESULT","SSL","STARTING","STORED","STRAIGHT_JOIN","SYSTEM","TABLE","TERMINATED","THEN","TINYBLOB","TINYINT","TINYTEXT","TO","TRAILING","TRIGGER","TRUE","UNDO","UNION","UNIQUE","UNLOCK","UNSIGNED","UPDATE","USAGE","USE","USING","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","VALUES","VARBINARY","VARCHAR","VARCHARACTER","VARYING","VIRTUAL","WHEN","WHERE","WHILE","WINDOW","WITH","WRITE","XOR","YEAR_MONTH","ZEROFILL"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL","INTERSECT","UNION","INNER","JOIN","LEFT","OUTER","RIGHT"],builtinFunctions:["ABS","ACOS","ADDDATE","ADDTIME","AES_DECRYPT","AES_ENCRYPT","ANY_VALUE","Area","AsBinary","AsWKB","ASCII","ASIN","AsText","AsWKT","ASYMMETRIC_DECRYPT","ASYMMETRIC_DERIVE","ASYMMETRIC_ENCRYPT","ASYMMETRIC_SIGN","ASYMMETRIC_VERIFY","ATAN","ATAN2","ATAN","AVG","BENCHMARK","BIN","BIT_AND","BIT_COUNT","BIT_LENGTH","BIT_OR","BIT_XOR","Buffer","CAST","CEIL","CEILING","Centroid","CHAR","CHAR_LENGTH","CHARACTER_LENGTH","CHARSET","COALESCE","COERCIBILITY","COLLATION","COMPRESS","CONCAT","CONCAT_WS","CONNECTION_ID","Contains","CONV","CONVERT","CONVERT_TZ","ConvexHull","COS","COT","COUNT","CRC32","CREATE_ASYMMETRIC_PRIV_KEY","CREATE_ASYMMETRIC_PUB_KEY","CREATE_DH_PARAMETERS","CREATE_DIGEST","Crosses","CUME_DIST","CURDATE","CURRENT_DATE","CURRENT_ROLE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","CURTIME","DATABASE","DATE","DATE_ADD","DATE_FORMAT","DATE_SUB","DATEDIFF","DAY","DAYNAME","DAYOFMONTH","DAYOFWEEK","DAYOFYEAR","DECODE","DEFAULT","DEGREES","DES_DECRYPT","DES_ENCRYPT","DENSE_RANK","Dimension","Disjoint","Distance","ELT","ENCODE","ENCRYPT","EndPoint","Envelope","Equals","EXP","EXPORT_SET","ExteriorRing","EXTRACT","ExtractValue","FIELD","FIND_IN_SET","FIRST_VALUE","FLOOR","FORMAT","FORMAT_BYTES","FORMAT_PICO_TIME","FOUND_ROWS","FROM_BASE64","FROM_DAYS","FROM_UNIXTIME","GEN_RANGE","GEN_RND_EMAIL","GEN_RND_PAN","GEN_RND_SSN","GEN_RND_US_PHONE","GeomCollection","GeomCollFromText","GeometryCollectionFromText","GeomCollFromWKB","GeometryCollectionFromWKB","GeometryCollection","GeometryN","GeometryType","GeomFromText","GeometryFromText","GeomFromWKB","GeometryFromWKB","GET_FORMAT","GET_LOCK","GLength","GREATEST","GROUP_CONCAT","GROUPING","GTID_SUBSET","GTID_SUBTRACT","HEX","HOUR","ICU_VERSION","IF","IFNULL","INET_ATON","INET_NTOA","INET6_ATON","INET6_NTOA","INSERT","INSTR","InteriorRingN","Intersects","INTERVAL","IS_FREE_LOCK","IS_IPV4","IS_IPV4_COMPAT","IS_IPV4_MAPPED","IS_IPV6","IS_USED_LOCK","IS_UUID","IsClosed","IsEmpty","ISNULL","IsSimple","JSON_APPEND","JSON_ARRAY","JSON_ARRAY_APPEND","JSON_ARRAY_INSERT","JSON_ARRAYAGG","JSON_CONTAINS","JSON_CONTAINS_PATH","JSON_DEPTH","JSON_EXTRACT","JSON_INSERT","JSON_KEYS","JSON_LENGTH","JSON_MERGE","JSON_MERGE_PATCH","JSON_MERGE_PRESERVE","JSON_OBJECT","JSON_OBJECTAGG","JSON_OVERLAPS","JSON_PRETTY","JSON_QUOTE","JSON_REMOVE","JSON_REPLACE","JSON_SCHEMA_VALID","JSON_SCHEMA_VALIDATION_REPORT","JSON_SEARCH","JSON_SET","JSON_STORAGE_FREE","JSON_STORAGE_SIZE","JSON_TABLE","JSON_TYPE","JSON_UNQUOTE","JSON_VALID","LAG","LAST_DAY","LAST_INSERT_ID","LAST_VALUE","LCASE","LEAD","LEAST","LEFT","LENGTH","LineFromText","LineStringFromText","LineFromWKB","LineStringFromWKB","LineString","LN","LOAD_FILE","LOCALTIME","LOCALTIMESTAMP","LOCATE","LOG","LOG10","LOG2","LOWER","LPAD","LTRIM","MAKE_SET","MAKEDATE","MAKETIME","MASK_INNER","MASK_OUTER","MASK_PAN","MASK_PAN_RELAXED","MASK_SSN","MASTER_POS_WAIT","MAX","MBRContains","MBRCoveredBy","MBRCovers","MBRDisjoint","MBREqual","MBREquals","MBRIntersects","MBROverlaps","MBRTouches","MBRWithin","MD5","MEMBER OF","MICROSECOND","MID","MIN","MINUTE","MLineFromText","MultiLineStringFromText","MLineFromWKB","MultiLineStringFromWKB","MOD","MONTH","MONTHNAME","MPointFromText","MultiPointFromText","MPointFromWKB","MultiPointFromWKB","MPolyFromText","MultiPolygonFromText","MPolyFromWKB","MultiPolygonFromWKB","MultiLineString","MultiPoint","MultiPolygon","NAME_CONST","NOT IN","NOW","NTH_VALUE","NTILE","NULLIF","NumGeometries","NumInteriorRings","NumPoints","OCT","OCTET_LENGTH","OLD_PASSWORD","ORD","Overlaps","PASSWORD","PERCENT_RANK","PERIOD_ADD","PERIOD_DIFF","PI","Point","PointFromText","PointFromWKB","PointN","PolyFromText","PolygonFromText","PolyFromWKB","PolygonFromWKB","Polygon","POSITION","POW","POWER","PS_CURRENT_THREAD_ID","PS_THREAD_ID","PROCEDURE ANALYSE","QUARTER","QUOTE","RADIANS","RAND","RANDOM_BYTES","RANK","REGEXP_INSTR","REGEXP_LIKE","REGEXP_REPLACE","REGEXP_REPLACE","RELEASE_ALL_LOCKS","RELEASE_LOCK","REPEAT","REPLACE","REVERSE","RIGHT","ROLES_GRAPHML","ROUND","ROW_COUNT","ROW_NUMBER","RPAD","RTRIM","SCHEMA","SEC_TO_TIME","SECOND","SESSION_USER","SHA1","SHA","SHA2","SIGN","SIN","SLEEP","SOUNDEX","SOURCE_POS_WAIT","SPACE","SQRT","SRID","ST_Area","ST_AsBinary","ST_AsWKB","ST_AsGeoJSON","ST_AsText","ST_AsWKT","ST_Buffer","ST_Buffer_Strategy","ST_Centroid","ST_Collect","ST_Contains","ST_ConvexHull","ST_Crosses","ST_Difference","ST_Dimension","ST_Disjoint","ST_Distance","ST_Distance_Sphere","ST_EndPoint","ST_Envelope","ST_Equals","ST_ExteriorRing","ST_FrechetDistance","ST_GeoHash","ST_GeomCollFromText","ST_GeometryCollectionFromText","ST_GeomCollFromTxt","ST_GeomCollFromWKB","ST_GeometryCollectionFromWKB","ST_GeometryN","ST_GeometryType","ST_GeomFromGeoJSON","ST_GeomFromText","ST_GeometryFromText","ST_GeomFromWKB","ST_GeometryFromWKB","ST_HausdorffDistance","ST_InteriorRingN","ST_Intersection","ST_Intersects","ST_IsClosed","ST_IsEmpty","ST_IsSimple","ST_IsValid","ST_LatFromGeoHash","ST_Length","ST_LineFromText","ST_LineStringFromText","ST_LineFromWKB","ST_LineStringFromWKB","ST_LineInterpolatePoint","ST_LineInterpolatePoints","ST_LongFromGeoHash","ST_Longitude","ST_MakeEnvelope","ST_MLineFromText","ST_MultiLineStringFromText","ST_MLineFromWKB","ST_MultiLineStringFromWKB","ST_MPointFromText","ST_MultiPointFromText","ST_MPointFromWKB","ST_MultiPointFromWKB","ST_MPolyFromText","ST_MultiPolygonFromText","ST_MPolyFromWKB","ST_MultiPolygonFromWKB","ST_NumGeometries","ST_NumInteriorRing","ST_NumInteriorRings","ST_NumPoints","ST_Overlaps","ST_PointAtDistance","ST_PointFromGeoHash","ST_PointFromText","ST_PointFromWKB","ST_PointN","ST_PolyFromText","ST_PolygonFromText","ST_PolyFromWKB","ST_PolygonFromWKB","ST_Simplify","ST_SRID","ST_StartPoint","ST_SwapXY","ST_SymDifference","ST_Touches","ST_Transform","ST_Union","ST_Validate","ST_Within","ST_X","ST_Y","StartPoint","STATEMENT_DIGEST","STATEMENT_DIGEST_TEXT","STD","STDDEV","STDDEV_POP","STDDEV_SAMP","STR_TO_DATE","STRCMP","SUBDATE","SUBSTR","SUBSTRING","SUBSTRING_INDEX","SUBTIME","SUM","SYSDATE","SYSTEM_USER","TAN","TIME","TIME_FORMAT","TIME_TO_SEC","TIMEDIFF","TIMESTAMP","TIMESTAMPADD","TIMESTAMPDIFF","TO_BASE64","TO_DAYS","TO_SECONDS","Touches","TRIM","TRUNCATE","UCASE","UNCOMPRESS","UNCOMPRESSED_LENGTH","UNHEX","UNIX_TIMESTAMP","UpdateXML","UPPER","USER","UTC_DATE","UTC_TIME","UTC_TIMESTAMP","UUID","UUID_SHORT","UUID_TO_BIN","VALIDATE_PASSWORD_STRENGTH","VALUES","VAR_POP","VAR_SAMP","VARIANCE","VERSION","WAIT_FOR_EXECUTED_GTID_SET","WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS","WEEK","WEEKDAY","WEEKOFYEAR","WEIGHT_STRING","Within","X","Y","YEAR","YEARWEEK"],builtinVariables:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/#+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/'/,{token:"string",next:"@string"}],[/"/,{token:"string.double",next:"@stringDouble"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],stringDouble:[[/[^"]+/,"string.double"],[/""/,"string.double"],[/"/,{token:"string.double",next:"@pop"}]],complexIdentifiers:[[/`/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^`]+/,"identifier"],[/``/,"identifier"],[/`/,{token:"identifier.quote",next:"@pop"}]],scopes:[]}}}}]);
//# sourceMappingURL=9361.e7bbdd03.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/9361.e7bbdd03.chunk.js
|
9361.e7bbdd03.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[254],{254:function(e,n,t){t.r(n),t.d(n,{conf:function(){return i},language:function(){return s}});var i={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},s={defaultToken:"",tokenPostfix:".kt",keywords:["as","as?","break","class","continue","do","else","false","for","fun","if","in","!in","interface","is","!is","null","object","package","return","super","this","throw","true","try","typealias","val","var","when","while","by","catch","constructor","delegate","dynamic","field","file","finally","get","import","init","param","property","receiver","set","setparam","where","actual","abstract","annotation","companion","const","crossinline","data","enum","expect","external","final","infix","inline","inner","internal","lateinit","noinline","open","operator","out","override","private","protected","public","reified","sealed","suspend","tailrec","vararg","field","it"],operators:["+","-","*","/","%","=","+=","-=","*=","/=","%=","++","--","&&","||","!","==","!=","===","!==",">","<","<=",">=","[","]","!!","?.","?:","::","..",":","?","->","@",";","$","_"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[[/[A-Z][\w\$]*/,"type.identifier"],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc","@push"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}}}}]);
//# sourceMappingURL=254.1bc22866.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/254.1bc22866.chunk.js
|
254.1bc22866.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[1690],{91690:function(e,n,t){t.r(n),t.d(n,{conf:function(){return o},language:function(){return r}});var o={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:"(",close:")"},{open:'"',close:'"'},{open:"`",close:"`"}],folding:{markers:{start:/^\s*\s*#?region\b/,end:/^\s*\s*#?endregion\b/}}},r={defaultToken:"invalid",tokenPostfix:".dart",keywords:["abstract","dynamic","implements","show","as","else","import","static","assert","enum","in","super","async","export","interface","switch","await","extends","is","sync","break","external","library","this","case","factory","mixin","throw","catch","false","new","true","class","final","null","try","const","finally","on","typedef","continue","for","operator","var","covariant","Function","part","void","default","get","rethrow","while","deferred","hide","return","with","do","if","set","yield"],typeKeywords:["int","double","String","bool"],operators:["+","-","*","/","~/","%","++","--","==","!=",">","<",">=","<=","=","-=","/=","%=",">>=","^=","+=","*=","~/=","<<=","&=","!=","||","&&","&","|","^","~","<<",">>","!",">>>","??","?",":","|="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/[a-z_$][\w$]*/,{cases:{"@typeKeywords":"type.identifier","@keywords":"keyword","@default":"identifier"}}],[/[A-Z_$][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/@[a-zA-Z]+/,"annotation"],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/\/.*$/,"comment.doc"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([gimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"\$]+/,"string"],[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"],[/\$\w+/,"identifier"]],string_single:[[/[^\\'\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"],[/\$\w+/,"identifier"]]}}}}]);
//# sourceMappingURL=1690.e74e47c3.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/1690.e74e47c3.chunk.js
|
1690.e74e47c3.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[6403],{36403:function(e,n,t){t.r(n),t.d(n,{conf:function(){return o},language:function(){return s}});var o={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""',notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"""',close:'"""'},{open:'"',close:'"'}],folding:{offSide:!0}},s={defaultToken:"invalid",tokenPostfix:".gql",keywords:["null","true","false","query","mutation","subscription","extend","schema","directive","scalar","type","interface","union","enum","input","implements","fragment","on"],typeKeywords:["Int","Float","String","Boolean","ID"],directiveLocations:["SCHEMA","SCALAR","OBJECT","FIELD_DEFINITION","ARGUMENT_DEFINITION","INTERFACE","UNION","ENUM","ENUM_VALUE","INPUT_OBJECT","INPUT_FIELD_DEFINITION","QUERY","MUTATION","SUBSCRIPTION","FIELD","FRAGMENT_DEFINITION","FRAGMENT_SPREAD","INLINE_FRAGMENT","VARIABLE_DEFINITION"],operators:["=","!","?",":","&","|"],symbols:/[=!?:&|]+/,escapes:/\\(?:["\\\/bfnrt]|u[0-9A-Fa-f]{4})/,tokenizer:{root:[[/[a-z_][\w$]*/,{cases:{"@keywords":"keyword","@default":"key.identifier"}}],[/[$][\w$]*/,{cases:{"@keywords":"keyword","@default":"argument.identifier"}}],[/[A-Z][\w\$]*/,{cases:{"@typeKeywords":"keyword","@default":"type.identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,{token:"annotation",log:"annotation token: $0"}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"""/,{token:"string",next:"@mlstring",nextEmbedded:"markdown"}],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],mlstring:[[/[^"]+/,"string"],['"""',{token:"string",next:"@pop",nextEmbedded:"@pop"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/#.*$/,"comment"]]}}}}]);
//# sourceMappingURL=6403.77f38472.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/6403.77f38472.chunk.js
|
6403.77f38472.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[1619],{31619:function(e,t,s){s.r(t),s.d(t,{conf:function(){return r},language:function(){return o}});var r={comments:{lineComment:"#",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},o={defaultToken:"",tokenPostfix:".hcl",keywords:["var","local","path","for_each","any","string","number","bool","true","false","null","if ","else ","endif ","for ","in","endfor"],operators:["=",">=","<=","==","!=","+","-","*","/","%","&&","||","!","<",">","?","...",":"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,terraformFunctions:/(abs|ceil|floor|log|max|min|pow|signum|chomp|format|formatlist|indent|join|lower|regex|regexall|replace|split|strrev|substr|title|trimspace|upper|chunklist|coalesce|coalescelist|compact|concat|contains|distinct|element|flatten|index|keys|length|list|lookup|map|matchkeys|merge|range|reverse|setintersection|setproduct|setunion|slice|sort|transpose|values|zipmap|base64decode|base64encode|base64gzip|csvdecode|jsondecode|jsonencode|urlencode|yamldecode|yamlencode|abspath|dirname|pathexpand|basename|file|fileexists|fileset|filebase64|templatefile|formatdate|timeadd|timestamp|base64sha256|base64sha512|bcrypt|filebase64sha256|filebase64sha512|filemd5|filemd1|filesha256|filesha512|md5|rsadecrypt|sha1|sha256|sha512|uuid|uuidv5|cidrhost|cidrnetmask|cidrsubnet|tobool|tolist|tomap|tonumber|toset|tostring)/,terraformMainBlocks:/(module|data|terraform|resource|provider|variable|output|locals)/,tokenizer:{root:[[/^@terraformMainBlocks([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,["type","","string","","string","","@brackets"]],[/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)(\{)/,["identifier","","string","","string","","@brackets"]],[/(\w+[ \t]+)([ \t]*)([\w-]+|"[\w-]+"|)([ \t]*)([\w-]+|"[\w-]+"|)(=)(\{)/,["identifier","","string","","operator","","@brackets"]],{include:"@terraform"}],terraform:[[/@terraformFunctions(\()/,["type","@brackets"]],[/[a-zA-Z_]\w*-*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"variable"}}],{include:"@whitespace"},{include:"@heredoc"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"/,"string","@string"],[/'/,"invalid"]],heredoc:[[/<<[-]*\s*["]?([\w\-]+)["]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"],[/#.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/\$\{/,{token:"delimiter",next:"@stringExpression"}],[/[^\\"\$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@popall"]],stringInsideExpression:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],stringExpression:[[/\}/,{token:"delimiter",next:"@pop"}],[/"/,"string","@stringInsideExpression"],{include:"@terraform"}]}}}}]);
//# sourceMappingURL=1619.31b6d6e8.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/1619.31b6d6e8.chunk.js
|
1619.31b6d6e8.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[52],{40052:function(e,n,s){s.r(n),s.d(n,{conf:function(){return t},language:function(){return o}});var t={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"#",blockComment:["<#","#>"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},o={defaultToken:"",ignoreCase:!0,tokenPostfix:".ps1",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"}],keywords:["begin","break","catch","class","continue","data","define","do","dynamicparam","else","elseif","end","exit","filter","finally","for","foreach","from","function","if","in","param","process","return","switch","throw","trap","try","until","using","var","while","workflow","parallel","sequence","inlinescript","configuration"],helpKeywords:/SYNOPSIS|DESCRIPTION|PARAMETER|EXAMPLE|INPUTS|OUTPUTS|NOTES|LINK|COMPONENT|ROLE|FUNCTIONALITY|FORWARDHELPTARGETNAME|FORWARDHELPCATEGORY|REMOTEHELPRUNSPACE|EXTERNALHELP/,symbols:/[=><!~?&%|+\-*\/\^;\.,]+/,escapes:/`(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_][\w-]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/^:\w*/,"metatag"],[/\$(\{((global|local|private|script|using):)?[\w]+\}|((global|local|private|script|using):)?[\w]+)/,"variable"],[/<#/,"comment","@comment"],[/#.*$/,"comment"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+?/,"number"],[/[;,.]/,"delimiter"],[/\@"/,"string",'@herestring."'],[/\@'/,"string","@herestring.'"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\$`]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,{cases:{"@eos":{token:"string.escape",next:"@popall"},"@default":"string.escape"}}],[/`./,{cases:{"@eos":{token:"string.escape.invalid",next:"@popall"},"@default":"string.escape.invalid"}}],[/\$[\w]+$/,{cases:{'$S2=="':{token:"variable",next:"@popall"},"@default":{token:"string",next:"@popall"}}}],[/\$[\w]+/,{cases:{'$S2=="':"variable","@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}}}]],herestring:[[/^\s*(["'])@/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^\$`]+/,"string"],[/@escapes/,"string.escape"],[/`./,"string.escape.invalid"],[/\$[\w]+/,{cases:{'$S2=="':"variable","@default":"string"}}]],comment:[[/[^#\.]+/,"comment"],[/#>/,"comment","@pop"],[/(\.)(@helpKeywords)(?!\w)/,{token:"comment.keyword.$2"}],[/[\.#]/,"comment"]]}}}}]);
//# sourceMappingURL=52.22a03ee6.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/52.22a03ee6.chunk.js
|
52.22a03ee6.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[5571],{25571:function(e,t,n){n.r(t),n.d(t,{conf:function(){return s},language:function(){return o}});var s={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},o={defaultToken:"",tokenPostfix:".cs",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["extern","alias","using","bool","decimal","sbyte","byte","short","ushort","int","uint","long","ulong","char","float","double","object","dynamic","string","assembly","is","as","ref","out","this","base","new","typeof","void","checked","unchecked","default","delegate","var","const","if","else","switch","case","while","do","for","foreach","in","break","continue","goto","return","throw","try","catch","finally","lock","yield","from","let","where","join","on","equals","into","orderby","ascending","descending","select","group","by","namespace","partial","class","field","event","method","param","public","protected","internal","private","abstract","sealed","static","struct","readonly","volatile","virtual","override","params","get","set","add","remove","operator","true","false","implicit","explicit","interface","enum","null","async","await","fixed","sizeof","stackalloc","unsafe","nameof","when"],namespaceFollows:["namespace","using"],parenFollows:["if","for","while","switch","foreach","using","catch","when"],operators:["=","??","||","&&","|","^","&","==","!=","<=",">=","<<","+","-","*","/","%","!","~","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=",">>","=>"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\@?[a-zA-Z_]\w*/,{cases:{"@namespaceFollows":{token:"keyword.$0",next:"@namespace"},"@keywords":{token:"keyword.$0",next:"@qualified"},"@default":{token:"identifier",next:"@qualified"}}}],{include:"@whitespace"},[/}/,{cases:{"$S2==interpolatedstring":{token:"string.quote",next:"@pop"},"$S2==litinterpstring":{token:"string.quote",next:"@pop"},"@default":"@brackets"}}],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01_]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",next:"@string"}],[/\$\@"/,{token:"string.quote",next:"@litinterpstring"}],[/\@"/,{token:"string.quote",next:"@litstring"}],[/\$"/,{token:"string.quote",next:"@interpolatedstring"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],qualified:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/\./,"delimiter"],["","","@pop"]],namespace:[{include:"@whitespace"},[/[A-Z]\w*/,"namespace"],[/[\.=]/,"delimiter"],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]],litinterpstring:[[/[^"{]+/,"string"],[/""/,"string.escape"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.litinterpstring"}],[/"/,{token:"string.quote",next:"@pop"}]],interpolatedstring:[[/[^\\"{]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.interpolatedstring"}],[/"/,{token:"string.quote",next:"@pop"}]],whitespace:[[/^[ \t\v\f]*#((r)|(load))(?=\s)/,"directive.csx"],[/^[ \t\v\f]*#\w.*$/,"namespace.cpp"],[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]);
//# sourceMappingURL=5571.ad570057.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/5571.ad570057.chunk.js
|
5571.ad570057.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[5540],{35540:function(e,t,n){n.r(t),n.d(t,{conf:function(){return i},language:function(){return o}});var i={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:'"',close:'"'}],autoClosingPairs:[{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["comment"]},{open:'"""',close:'"""'},{open:"`",close:"`",notIn:["string","comment"]},{open:"(",close:")"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"<<",close:">>"}],indentationRules:{increaseIndentPattern:/^\s*(after|else|catch|rescue|fn|[^#]*(do|<\-|\->|\{|\[|\=))\s*$/,decreaseIndentPattern:/^\s*((\}|\])\s*$|(after|else|catch|rescue|end)\b)/}},o={defaultToken:"source",tokenPostfix:".elixir",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"<<",close:">>",token:"delimiter.angle.special"}],declarationKeywords:["def","defp","defn","defnp","defguard","defguardp","defmacro","defmacrop","defdelegate","defcallback","defmacrocallback","defmodule","defprotocol","defexception","defimpl","defstruct"],operatorKeywords:["and","in","not","or","when"],namespaceKeywords:["alias","import","require","use"],otherKeywords:["after","case","catch","cond","do","else","end","fn","for","if","quote","raise","receive","rescue","super","throw","try","unless","unquote_splicing","unquote","with"],constants:["true","false","nil"],nameBuiltin:["__MODULE__","__DIR__","__ENV__","__CALLER__","__STACKTRACE__"],operator:/-[->]?|!={0,2}|\*{1,2}|\/|\\\\|&{1,3}|\.\.?|\^(?:\^\^)?|\+\+?|<(?:-|<<|=|>|\|>|~>?)?|=~|={1,3}|>(?:=|>>)?|\|~>|\|>|\|{1,3}|~>>?|~~~|::/,variableName:/[a-z_][a-zA-Z0-9_]*[?!]?/,atomName:/[a-zA-Z_][a-zA-Z0-9_@]*[?!]?|@specialAtomName|@operator/,specialAtomName:/\.\.\.|<<>>|%\{\}|%|\{\}/,aliasPart:/[A-Z][a-zA-Z0-9_]*/,moduleName:/@aliasPart(?:\.@aliasPart)*/,sigilSymmetricDelimiter:/"""|'''|"|'|\/|\|/,sigilStartDelimiter:/@sigilSymmetricDelimiter|<|\{|\[|\(/,sigilEndDelimiter:/@sigilSymmetricDelimiter|>|\}|\]|\)/,sigilModifiers:/[a-zA-Z0-9]*/,decimal:/\d(?:_?\d)*/,hex:/[0-9a-fA-F](_?[0-9a-fA-F])*/,octal:/[0-7](_?[0-7])*/,binary:/[01](_?[01])*/,escape:/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}|\\./,tokenizer:{root:[{include:"@whitespace"},{include:"@comments"},{include:"@keywordsShorthand"},{include:"@numbers"},{include:"@identifiers"},{include:"@strings"},{include:"@atoms"},{include:"@sigils"},{include:"@attributes"},{include:"@symbols"}],whitespace:[[/\s+/,"white"]],comments:[[/(#)(.*)/,["comment.punctuation","comment"]]],keywordsShorthand:[[/(@atomName)(:)/,["constant","constant.punctuation"]],[/"(?=([^"]|#\{.*?\}|\\")*":)/,{token:"constant.delimiter",next:"@doubleQuotedStringKeyword"}],[/'(?=([^']|#\{.*?\}|\\')*':)/,{token:"constant.delimiter",next:"@singleQuotedStringKeyword"}]],doubleQuotedStringKeyword:[[/":/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],singleQuotedStringKeyword:[[/':/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],numbers:[[/0b@binary/,"number.binary"],[/0o@octal/,"number.octal"],[/0x@hex/,"number.hex"],[/@decimal\.@decimal([eE]-?@decimal)?/,"number.float"],[/@decimal/,"number"]],identifiers:[[/\b(defp?|defnp?|defmacrop?|defguardp?|defdelegate)(\s+)(@variableName)(?!\s+@operator)/,["keyword.declaration","white",{cases:{unquote:"keyword","@default":"function"}}]],[/(@variableName)(?=\s*\.?\s*\()/,{cases:{"@declarationKeywords":"keyword.declaration","@namespaceKeywords":"keyword","@otherKeywords":"keyword","@default":"function.call"}}],[/(@moduleName)(\s*)(\.)(\s*)(@variableName)/,["type.identifier","white","operator","white","function.call"]],[/(:)(@atomName)(\s*)(\.)(\s*)(@variableName)/,["constant.punctuation","constant","white","operator","white","function.call"]],[/(\|>)(\s*)(@variableName)/,["operator","white",{cases:{"@otherKeywords":"keyword","@default":"function.call"}}]],[/(&)(\s*)(@variableName)/,["operator","white","function.call"]],[/@variableName/,{cases:{"@declarationKeywords":"keyword.declaration","@operatorKeywords":"keyword.operator","@namespaceKeywords":"keyword","@otherKeywords":"keyword","@constants":"constant.language","@nameBuiltin":"variable.language","_.*":"comment.unused","@default":"identifier"}}],[/@moduleName/,"type.identifier"]],strings:[[/"""/,{token:"string.delimiter",next:"@doubleQuotedHeredoc"}],[/'''/,{token:"string.delimiter",next:"@singleQuotedHeredoc"}],[/"/,{token:"string.delimiter",next:"@doubleQuotedString"}],[/'/,{token:"string.delimiter",next:"@singleQuotedString"}]],doubleQuotedHeredoc:[[/"""/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],singleQuotedHeredoc:[[/'''/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],doubleQuotedString:[[/"/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],singleQuotedString:[[/'/,{token:"string.delimiter",next:"@pop"}],{include:"@stringContentInterpol"}],atoms:[[/(:)(@atomName)/,["constant.punctuation","constant"]],[/:"/,{token:"constant.delimiter",next:"@doubleQuotedStringAtom"}],[/:'/,{token:"constant.delimiter",next:"@singleQuotedStringAtom"}]],doubleQuotedStringAtom:[[/"/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],singleQuotedStringAtom:[[/'/,{token:"constant.delimiter",next:"@pop"}],{include:"@stringConstantContentInterpol"}],sigils:[[/~[a-z]@sigilStartDelimiter/,{token:"@rematch",next:"@sigil.interpol"}],[/~[A-Z]@sigilStartDelimiter/,{token:"@rematch",next:"@sigil.noInterpol"}]],sigil:[[/~([a-zA-Z])\{/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.{.}"}],[/~([a-zA-Z])\[/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.[.]"}],[/~([a-zA-Z])\(/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.(.)"}],[/~([a-zA-Z])\</,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.<.>"}],[/~([a-zA-Z])(@sigilSymmetricDelimiter)/,{token:"@rematch",switchTo:"@sigilStart.$S2.$1.$2.$2"}]],"sigilStart.interpol.s":[[/~s@sigilStartDelimiter/,{token:"string.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol.s":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"string.delimiter",next:"@pop"},"@default":"string"}}],{include:"@stringContentInterpol"}],"sigilStart.noInterpol.S":[[/~S@sigilStartDelimiter/,{token:"string.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol.S":[[/(^|[^\\])\\@sigilEndDelimiter/,"string"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"string.delimiter",next:"@pop"},"@default":"string"}}],{include:"@stringContent"}],"sigilStart.interpol.r":[[/~r@sigilStartDelimiter/,{token:"regexp.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol.r":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"regexp.delimiter",next:"@pop"},"@default":"regexp"}}],{include:"@regexpContentInterpol"}],"sigilStart.noInterpol.R":[[/~R@sigilStartDelimiter/,{token:"regexp.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol.R":[[/(^|[^\\])\\@sigilEndDelimiter/,"regexp"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"regexp.delimiter",next:"@pop"},"@default":"regexp"}}],{include:"@regexpContent"}],"sigilStart.interpol":[[/~([a-zA-Z])@sigilStartDelimiter/,{token:"sigil.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.interpol":[[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"sigil.delimiter",next:"@pop"},"@default":"sigil"}}],{include:"@sigilContentInterpol"}],"sigilStart.noInterpol":[[/~([a-zA-Z])@sigilStartDelimiter/,{token:"sigil.delimiter",switchTo:"@sigilContinue.$S2.$S3.$S4.$S5"}]],"sigilContinue.noInterpol":[[/(^|[^\\])\\@sigilEndDelimiter/,"sigil"],[/(@sigilEndDelimiter)@sigilModifiers/,{cases:{"$1==$S5":{token:"sigil.delimiter",next:"@pop"},"@default":"sigil"}}],{include:"@sigilContent"}],attributes:[[/\@(module|type)?doc (~[sS])?"""/,{token:"comment.block.documentation",next:"@doubleQuotedHeredocDocstring"}],[/\@(module|type)?doc (~[sS])?"/,{token:"comment.block.documentation",next:"@doubleQuotedStringDocstring"}],[/\@(module|type)?doc false/,"comment.block.documentation"],[/\@(@variableName)/,"variable"]],doubleQuotedHeredocDocstring:[[/"""/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],doubleQuotedStringDocstring:[[/"/,{token:"comment.block.documentation",next:"@pop"}],{include:"@docstringContent"}],symbols:[[/\?(\\.|[^\\\s])/,"number.constant"],[/&\d+/,"operator"],[/<<<|>>>/,"operator"],[/[()\[\]\{\}]|<<|>>/,"@brackets"],[/\.\.\./,"identifier"],[/=>/,"punctuation"],[/@operator/,"operator"],[/[:;,.%]/,"punctuation"]],stringContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@stringContent"}],stringContent:[[/./,"string"]],stringConstantContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@stringConstantContent"}],stringConstantContent:[[/./,"constant"]],regexpContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@regexpContent"}],regexpContent:[[/(\s)(#)(\s.*)$/,["white","comment.punctuation","comment"]],[/./,"regexp"]],sigilContentInterpol:[{include:"@interpolation"},{include:"@escapeChar"},{include:"@sigilContent"}],sigilContent:[[/./,"sigil"]],docstringContent:[[/./,"comment.block.documentation"]],escapeChar:[[/@escape/,"constant.character.escape"]],interpolation:[[/#{/,{token:"delimiter.bracket.embed",next:"@interpolationContinue"}]],interpolationContinue:[[/}/,{token:"delimiter.bracket.embed",next:"@pop"}],{include:"@root"}]}}}}]);
//# sourceMappingURL=5540.d957a974.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/5540.d957a974.chunk.js
|
5540.d957a974.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[1295],{21295:function(n,e,t){t.r(e),t.d(e,{ApiAdminHome:function(){return Y},ApiGenerateField:function(){return D},ApiShow:function(){return R},ApiURL:function(){return W},ApiUserPasswordTab:function(){return v},CustomTab:function(){return K},CustomerLabel:function(){return z},DBConnection:function(){return B},EmployeeLabel:function(){return J},MyComp:function(){return E},SampleColumnField:function(){return H},UserPasswordField:function(){return G},UserPasswordTab:function(){return Z}});var i=t(1288),r=t(38302),a=t(28437),s=t(35614),o=t(25748),l=t(80184),c=t(29439),d=t(72791),u=t(26513),h=t(50228),x=t(59911),m=t(81898),p=t(73566),g=t(60195),j=t(15296),f=t(47609),Z=function(){var n=(0,j.QZ)(),e=(0,f.d)(),t=(0,o.j)(),a=((0,p.x)(),(0,d.useState)("")),s=(0,c.Z)(a,2),Z=s[0],v=s[1],b=(0,d.useState)(""),w=(0,c.Z)(b,2),y=w[0],C=w[1],S=(0,d.useState)(""),P=(0,c.Z)(S,2),_=P[0],N=P[1];return(0,l.jsx)(h.Z,{component:"form",sx:{"& .MuiTextField-root":{m:1,width:"25ch"}},noValidate:!0,autoComplete:"off",children:(0,l.jsxs)(m.Z,{children:[(0,l.jsx)(i.Z,{item:!0,xs:12,spacing:4,margin:5,children:(0,l.jsx)(r.Z,{variant:"body2",component:"p",children:(0,l.jsx)("b",{children:"Change the user password"})})}),(0,l.jsx)(i.Z,{item:!0,xs:12,spacing:4,margin:5,children:(0,l.jsx)(x.Z,{id:"outlined-password-input",label:"New Password",type:"password",onChange:function(n){var e=n.target.value;v(e),N(e===y&&e.length>5?"primary":""),console.log(e,y)}})}),(0,l.jsx)(i.Z,{item:!0,xs:12,spacing:4,margin:5,children:(0,l.jsx)(x.Z,{id:"outlined-password-input",label:"Repeat Password",type:"password",onChange:function(n){var e=n.target.value;C(e),N(Z===e&&Z.length>5?"primary":""),console.log(Z,e)}})}),(0,l.jsx)(i.Z,{item:!0,xs:12,spacing:4,margin:5,children:(0,l.jsx)(u.Z,{variant:"contained",color:_,onClick:function(){if(console.log(y),Z===y)if(Z.length<6)e("Password too short",{type:"warning"});else{var i={password:Z};(0,g.t)("".concat(n.api_root,"/Users/").concat(t.id,"/change_password"),{method:"POST",body:JSON.stringify(i)}).then((function(){return e("Password Changed!")})).catch((function(){return e("Error Changing Password",{type:"warning"})}))}else e("Passwords don't match",{type:"warning"})},children:"Submit"})})]})})},v=function(){var n=(0,j.QZ)(),e=(0,f.d)(),t=(0,o.j)(),a=((0,p.x)(),(0,d.useState)("")),s=(0,c.Z)(a,2),Z=(s[0],s[1]),v=(0,d.useState)(""),b=(0,c.Z)(v,2),w=b[0],y=b[1],C=(0,d.useState)(""),S=(0,c.Z)(C,2),P=S[0],_=S[1],N=(0,d.useState)(""),k=(0,c.Z)(N,2),A=k[0],F=k[1];return(0,l.jsx)(h.Z,{component:"form",sx:{"& .MuiTextField-root":{m:1,width:"25ch"}},noValidate:!0,autoComplete:"off",children:(0,l.jsxs)(m.Z,{children:[(0,l.jsx)(i.Z,{item:!0,xs:12,spacing:4,margin:5,children:(0,l.jsx)(r.Z,{variant:"body2",component:"p",children:(0,l.jsx)("b",{children:"Current user password"})})}),(0,l.jsx)(i.Z,{item:!0,xs:12,spacing:4,margin:5,children:(0,l.jsx)(x.Z,{id:"outlined-password-input",label:"Current Password",type:"password",onChange:function(n){var e=n.target.value;Z(e),F(e===P&&e.length>5?"primary":"")}})}),(0,l.jsx)(i.Z,{item:!0,xs:12,spacing:4,margin:5,children:(0,l.jsx)(r.Z,{variant:"body2",component:"p",children:(0,l.jsx)("b",{children:"New user password"})})}),(0,l.jsx)(i.Z,{item:!0,xs:12,spacing:4,margin:5,children:(0,l.jsx)(x.Z,{id:"outlined-password-input",label:"New Password",type:"password",onChange:function(n){var e=n.target.value;y(e),F(e===P&&e.length>5?"primary":"")}})}),(0,l.jsx)(i.Z,{item:!0,xs:12,spacing:4,margin:5,children:(0,l.jsx)(x.Z,{id:"outlined-password-input",label:"Repeat Password",type:"password",onChange:function(n){var e=n.target.value;_(e),F(w===e&&w.length>5?"primary":"")}})}),(0,l.jsx)(i.Z,{item:!0,xs:12,spacing:4,margin:5,children:(0,l.jsx)(u.Z,{variant:"contained",color:A,onClick:function(){if(console.log(P),w===P)if(w.length<1)e("Password too short",{type:"warning"});else{var i={password:w};(0,g.t)("".concat(n.api_root,"/Users/").concat(t.id,"/change_password"),{method:"POST",body:JSON.stringify(i)}).then((function(){return e("Password Changed!")})).catch((function(){return e("Error Changing Password",{type:"warning"})}))}else e("Passwords don't match",{type:"warning"})},children:"Submit"})})]})})},b=t(1413),w=t(18631),y=t(41971),C=t(107),S=t(38596),P=t(51911),_=t(29387),N=t(18152),k=t(72228),A=t(85078),F=t(86321),T=t(97265),M=t(72900),O=t(50120),L={position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"75%",bgcolor:"background.paper",border:"0px solid #000",boxShadow:24,p:4,textAlign:"left"},Q=(0,S.Z)({joined_field:{cursor:"pointer",color:"#3f51b5"},modalStyle:{position:"absolute",top:"10%",left:"10%",overflow:"scroll",height:"100%",fontWeight:"0.6em",display:"flex"},db_btn:{height:"80%",position:"relative",top:"50%","-webkit-transform":"translateY(-50%)","-ms-transform":"translateY(-50%)",transform:"translateY(-50%)"},db_grid:{"& .MuiTextField-root":{borderBottom:"4px solid white",paddingBottom:"1em",paddingRight:"1em"}},actions:{textAlign:"center","& button":{width:"99%"}},conn_str:{backgroundColor:"#ccc",fontFamily:"Consolas"}}),U=function(n,e,t){var i={method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(localStorage.getItem("auth_token"))},body:JSON.stringify(e||{})},r=Object.assign(i,t||{});return fetch(n,r)},q=function(n){var e=(0,j.QZ)(),t=d.useState(!1),i=(0,c.Z)(t,2),a=i[0],s=i[1],o=d.useState(""),h=(0,c.Z)(o,2),x=h[0],m=h[1],p=d.useState(L),g=(0,c.Z)(p,2),f=g[0],Z=g[1],v=n.record,b=Q();return(0,l.jsxs)("span",{children:[(0,l.jsx)("span",{onClick:function(n){s(!0),n.stopPropagation()},className:b.joined_field,title:" Relationship",children:(0,l.jsx)(P.Z,{})}),(0,l.jsx)(w.Z,{className:b.modalStyle,open:a,onClose:function(n){n.stopPropagation(),s(!1)},onClick:function(n){return n.stopPropagation()},"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:(0,l.jsxs)(y.Z,{sx:f,children:[(0,l.jsx)(r.Z,{id:"modal-modal-title",variant:"h6",component:"h2",children:"Create API"}),"Pressing the button will generate an API with the following properties:",(0,l.jsxs)("dl",{children:[(0,l.jsx)("dt",{children:"Name:"}),(0,l.jsx)("dd",{children:null===v||void 0===v?void 0:v.name}),(0,l.jsx)("dt",{children:"Database URL:"}),(0,l.jsx)("dd",{children:null===v||void 0===v?void 0:v.connection_string}),(0,l.jsx)("dt",{children:"Port:"}),(0,l.jsx)("dd",{children:null===v||void 0===v?void 0:v.port}),(0,l.jsx)("dt",{children:"Hostname:"}),(0,l.jsx)("dd",{children:null===v||void 0===v?void 0:v.hostname})]}),(0,l.jsxs)(u.Z,{variant:"outlined",onClick:function(){return function(n){var t="".concat(e.api_root,"/Apis/").concat(n.id,"/generate");m((0,l.jsx)(_.g,{})),f.top="90%",Z(f),U(t).then((function(n){return n.json()})).then((function(n){m((0,l.jsx)("pre",{children:n}))}))}(v)},children:[" Start ",(0,l.jsx)(P.Z,{})," "]}),(0,l.jsx)("hr",{}),x]})})]})},D=function(n){return"list"===n.mode?(0,l.jsx)(q,(0,b.Z)({},n)):(0,l.jsx)(l.Fragment,{})},R=function(n){return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{children:"xxxx"}),n.show]})},I=function(n){var e=(0,A.cI)(),t=(0,o.j)(),a=t?t.connection_string:"",s=Q(),h=d.useState(!1),x=(0,c.Z)(h,2),p=x[0],g=x[1],f=d.useState(L),Z=(0,c.Z)(f,1)[0],v=d.useState(a),b=(0,c.Z)(v,2),S=b[0],P=b[1],k=d.useState("user"),q=(0,c.Z)(k,2),D=q[0],R=q[1],I=d.useState("pass"),B=(0,c.Z)(I,2),V=B[0],W=B[1],Y=d.useState("dbhost"),E=(0,c.Z)(Y,2),H=E[0],J=E[1],z=d.useState("dbname"),G=(0,c.Z)(z,2),K=G[0],X=G[1],$=d.useState("Other"),nn=(0,c.Z)($,2),en=nn[0],tn=nn[1],rn=d.useState(""),an=(0,c.Z)(rn,2),sn=an[0],on=an[1],ln=(0,j.QZ)(),cn=function(){var n="".concat(en,"://");return"Other"===en?n=S:n+="sqlite"===en?"/".concat(K):"".concat(D,":").concat(V,"@").concat(H,"/").concat(K),n};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Z,{item:!0,xs:12,spacing:4,margin:5}),(0,l.jsx)(i.Z,{item:!0,xs:4,spacing:4,margin:5,children:(0,l.jsx)(N.o,{source:"connection_string",initialValue:cn(),helperText:"SQLAlchemy connection string syntax",fullWidth:!0})}),(0,l.jsx)(i.Z,{item:!0,xs:4,spacing:4,margin:5,children:(0,l.jsx)(u.Z,{variant:"outlined",onClick:function(){return g(!0)},color:"primary",size:"large",className:s.db_btn,children:"Configure Connection"})}),(0,l.jsx)(i.Z,{item:!0,xs:12,spacing:4,margin:5}),(0,l.jsx)(w.Z,{open:p,onClose:function(){return g(!1)},className:s.modalStyle,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",children:(0,l.jsx)(y.Z,{sx:Z,children:(0,l.jsxs)(i.Z,{container:!0,className:s.db_grid,children:[(0,l.jsxs)(i.Z,{item:!0,xs:12,spacing:4,margin:5,children:[(0,l.jsx)(r.Z,{id:"modal-modal-title",variant:"h6",component:"h2",children:"Database Configuration"}),(0,l.jsx)("hr",{})]}),(0,l.jsx)(i.Z,{item:!0,xs:6,spacing:4,margin:5,children:(0,l.jsxs)(m.Z,{children:[(0,l.jsx)(O.Z,{id:"demo-radio-buttons-group-label",children:"DB Dialect"}),(0,l.jsxs)(T.Z,{"aria-labelledby":"demo-radio-buttons-group-label",defaultValue:"Other",name:"radio-buttons-group",onChange:function(n){var e=n.target.value;tn(e),"sqlite"===e&&(R(""),W(""),J(""))},children:[(0,l.jsx)(M.Z,{value:"mysql+pymysql",control:(0,l.jsx)(F.Z,{}),label:"MySQL"}),(0,l.jsx)(M.Z,{value:"oracle",control:(0,l.jsx)(F.Z,{}),label:"Oracle"}),(0,l.jsx)(M.Z,{value:"postgresql",control:(0,l.jsx)(F.Z,{}),label:"Postgres"}),(0,l.jsx)(M.Z,{value:"sqlite",control:(0,l.jsx)(F.Z,{}),label:"SQLite"}),(0,l.jsx)(M.Z,{value:"mssql+pyodbc",control:(0,l.jsx)(F.Z,{}),label:"SQLServer"}),(0,l.jsx)(M.Z,{value:"Other",control:(0,l.jsx)(F.Z,{}),label:"Manual:"})]}),(0,l.jsx)(C.Z,{id:"outlined-basic",label:"Manual",variant:"outlined",defaultValue:a,onChange:function(n){return P(n.target.value)},helperText:"Manual connection string configuration"})]})}),(0,l.jsxs)(i.Z,{item:!0,xs:6,spacing:4,margin:5,children:[(0,l.jsx)(C.Z,{label:"Username",variant:"outlined",onChange:function(n){return R(n.target.value)},value:D}),(0,l.jsx)(C.Z,{label:"Password",variant:"outlined",onChange:function(n){return W(n.target.value)},value:V}),(0,l.jsx)(C.Z,{label:"Database host",variant:"outlined",onChange:function(n){return J(n.target.value)},value:H}),(0,l.jsx)(C.Z,{label:"Database name",variant:"outlined",onChange:function(n){return X(n.target.value)},value:K})]}),(0,l.jsx)(i.Z,{item:!0,xs:6,spacing:4,margin:5,children:(0,l.jsxs)(r.Z,{children:["Connection String: ",(0,l.jsx)("span",{className:s.conn_str,children:cn()})]})}),(0,l.jsx)(i.Z,{item:!0,xs:12,spacing:4,margin:5,className:s.actions,children:(0,l.jsx)("hr",{})}),(0,l.jsx)(i.Z,{item:!0,xs:12,spacing:4,margin:5}),(0,l.jsx)(i.Z,{item:!0,xs:2,spacing:4,margin:5,className:s.actions,children:(0,l.jsx)(u.Z,{variant:"outlined",color:"primary",onClick:function(){return function(n){var e="".concat(ln.api_root,"/Apis/test_conn");U(e,{connection_string:n}).then((function(n){return n.json()})).then((function(n){on((0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.Z,{variant:"h6",component:"h2",children:"Result:"}),(0,l.jsx)("pre",{children:n})]}))})).catch((function(n){return alert()}))}(cn())},children:" Test Connection"})}),(0,l.jsx)(i.Z,{item:!0,xs:2,spacing:4,margin:5,className:s.actions,children:(0,l.jsx)(u.Z,{variant:"outlined",color:"primary",onClick:function(){g(!1),e.change("connection_string",cn())},children:"Save & Close"})}),(0,l.jsx)(i.Z,{item:!0,xs:2,spacing:4,margin:5,className:s.actions,children:(0,l.jsx)(u.Z,{variant:"outlined",color:"primary",onClick:function(){return function(){if(void 0===t.id){var n="you must first save the api";return alert(n),void on(n)}var e="".concat(ln.api_root,"/Apis/").concat(t.id,"/generate");on((0,l.jsx)(_.g,{})),Z.top="90%",U(e).then((function(n){return n.json()})).then((function(n){on((0,l.jsx)("pre",{children:n}))}))}()},disabled:!t.id,title:t.id?"":"you must first save the api",children:"Generate API"})}),(0,l.jsx)(i.Z,{item:!0,xs:2,spacing:4,margin:5,className:s.actions,children:(0,l.jsx)(u.Z,{variant:"outlined",color:"primary",onClick:function(){return g(!1)},children:"Close"})}),(0,l.jsx)(i.Z,{item:!0,xs:12,spacing:4,margin:5,className:s.logdata,children:sn})]})})})]})},B=function(n){var e=(0,o.j)(),t=e?e.connection_string:"";return"edit"!==n.mode&&"create"!==n.mode?(0,l.jsx)(r.Z,{children:t}):(0,l.jsx)(I,(0,b.Z)({},n))},V=function(n){var e="/".concat(n.name,"/api");return(0,l.jsx)(r.Z,{children:(0,l.jsx)("a",{href:e,children:e})})},W=function(n){var e=(0,o.j)();return e.id?V(e):null},Y=function(n){var e=(0,k.Y)("Apis",{pagination:{page:0,perPage:100}}).data,t=null===e||void 0===e?void 0:e.map((function(n){return(0,l.jsx)("li",{children:V(n)})}));return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r.Z,{variant:"h6",component:"h2",children:" APIs"}),(0,l.jsx)(r.Z,{children:(0,l.jsx)("ul",{children:t})})]})},E=function(n){return(0,l.jsx)("div",{children:"HMMMM"})},H=function(n){var e=n.attribute;return(0,l.jsx)(a.n,{source:e.name,style:{color:"red"}},e.name)},J=function(n){var e,t,i=n.instance;return(0,l.jsxs)("div",{children:[" ",null===(e=i.attributes)||void 0===e?void 0:e.FirstName," ",null===(t=i.attributes)||void 0===t?void 0:t.LastName]})},z=function(n){var e,t,i=n.instance;return(0,l.jsxs)("div",{children:[" ",(0,l.jsx)("b",{children:null===(e=i.attributes)||void 0===e?void 0:e.CompanyName})," ",(0,l.jsx)("i",{children:null===(t=i.attributes)||void 0===t?void 0:t.ContactName})]})},G=function(n){return"list"===n.mode?(0,l.jsx)("span",{}):"edit"===n.mode?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(i.Z,{item:!0,xs:12,spacing:4,margin:5,children:(0,l.jsx)(r.Z,{variant:"h6",component:"h6",children:"Change Password"})}),(0,l.jsxs)(i.Z,{item:!0,xs:4,spacing:4,margin:5,children:[(0,l.jsx)(s.W,{source:"_password"})," "]}),(0,l.jsxs)(i.Z,{item:!0,xs:4,spacing:4,margin:5,children:[(0,l.jsx)(s.W,{source:"_password"})," "]}),(0,l.jsx)(i.Z,{item:!0,xs:4,spacing:4,margin:5})]}):(0,l.jsx)(l.Fragment,{})},K=function(n){(0,o.j)();return(0,l.jsx)("div",{children:"Some Text"})}}}]);
//# sourceMappingURL=1295.179239a3.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/1295.179239a3.chunk.js
|
1295.179239a3.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[5507],{65507:function(e,t,s){s.r(t),s.d(t,{conf:function(){return n},language:function(){return r}});var n={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},r={defaultToken:"",tokenPostfix:".perl",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["__DATA__","else","lock","__END__","elsif","lt","__FILE__","eq","__LINE__","exp","ne","sub","__PACKAGE__","for","no","and","foreach","or","unless","cmp","ge","package","until","continue","gt","while","CORE","if","xor","do","le","__DIE__","__WARN__"],builtinFunctions:["-A","END","length","setpgrp","-B","endgrent","link","setpriority","-b","endhostent","listen","setprotoent","-C","endnetent","local","setpwent","-c","endprotoent","localtime","setservent","-d","endpwent","log","setsockopt","-e","endservent","lstat","shift","-f","eof","map","shmctl","-g","eval","mkdir","shmget","-k","exec","msgctl","shmread","-l","exists","msgget","shmwrite","-M","exit","msgrcv","shutdown","-O","fcntl","msgsnd","sin","-o","fileno","my","sleep","-p","flock","next","socket","-r","fork","not","socketpair","-R","format","oct","sort","-S","formline","open","splice","-s","getc","opendir","split","-T","getgrent","ord","sprintf","-t","getgrgid","our","sqrt","-u","getgrnam","pack","srand","-w","gethostbyaddr","pipe","stat","-W","gethostbyname","pop","state","-X","gethostent","pos","study","-x","getlogin","print","substr","-z","getnetbyaddr","printf","symlink","abs","getnetbyname","prototype","syscall","accept","getnetent","push","sysopen","alarm","getpeername","quotemeta","sysread","atan2","getpgrp","rand","sysseek","AUTOLOAD","getppid","read","system","BEGIN","getpriority","readdir","syswrite","bind","getprotobyname","readline","tell","binmode","getprotobynumber","readlink","telldir","bless","getprotoent","readpipe","tie","break","getpwent","recv","tied","caller","getpwnam","redo","time","chdir","getpwuid","ref","times","CHECK","getservbyname","rename","truncate","chmod","getservbyport","require","uc","chomp","getservent","reset","ucfirst","chop","getsockname","return","umask","chown","getsockopt","reverse","undef","chr","glob","rewinddir","UNITCHECK","chroot","gmtime","rindex","unlink","close","goto","rmdir","unpack","closedir","grep","say","unshift","connect","hex","scalar","untie","cos","index","seek","use","crypt","INIT","seekdir","utime","dbmclose","int","select","values","dbmopen","ioctl","semctl","vec","defined","join","semget","wait","delete","keys","semop","waitpid","DESTROY","kill","send","wantarray","die","last","setgrent","warn","dump","lc","sethostent","write","each","lcfirst","setnetent"],builtinFileHandlers:["ARGV","STDERR","STDOUT","ARGVOUT","STDIN","ENV"],builtinVariables:["$!","$^RE_TRIE_MAXBUF","$LAST_REGEXP_CODE_RESULT",'$"',"$^S","$LIST_SEPARATOR","$#","$^T","$MATCH","$$","$^TAINT","$MULTILINE_MATCHING","$%","$^UNICODE","$NR","$&","$^UTF8LOCALE","$OFMT","$'","$^V","$OFS","$(","$^W","$ORS","$)","$^WARNING_BITS","$OS_ERROR","$*","$^WIDE_SYSTEM_CALLS","$OSNAME","$+","$^X","$OUTPUT_AUTO_FLUSH","$,","$_","$OUTPUT_FIELD_SEPARATOR","$-","$`","$OUTPUT_RECORD_SEPARATOR","$.","$a","$PERL_VERSION","$/","$ACCUMULATOR","$PERLDB","$0","$ARG","$PID","$:","$ARGV","$POSTMATCH","$;","$b","$PREMATCH","$<","$BASETIME","$PROCESS_ID","$=","$CHILD_ERROR","$PROGRAM_NAME","$>","$COMPILING","$REAL_GROUP_ID","$?","$DEBUGGING","$REAL_USER_ID","$@","$EFFECTIVE_GROUP_ID","$RS","$[","$EFFECTIVE_USER_ID","$SUBSCRIPT_SEPARATOR","$\\","$EGID","$SUBSEP","$]","$ERRNO","$SYSTEM_FD_MAX","$^","$EUID","$UID","$^A","$EVAL_ERROR","$WARNING","$^C","$EXCEPTIONS_BEING_CAUGHT","$|","$^CHILD_ERROR_NATIVE","$EXECUTABLE_NAME","$~","$^D","$EXTENDED_OS_ERROR","%!","$^E","$FORMAT_FORMFEED","%^H","$^ENCODING","$FORMAT_LINE_BREAK_CHARACTERS","%ENV","$^F","$FORMAT_LINES_LEFT","%INC","$^H","$FORMAT_LINES_PER_PAGE","%OVERLOAD","$^I","$FORMAT_NAME","%SIG","$^L","$FORMAT_PAGE_NUMBER","@+","$^M","$FORMAT_TOP_NAME","@-","$^N","$GID","@_","$^O","$INPLACE_EDIT","@ARGV","$^OPEN","$INPUT_LINE_NUMBER","@INC","$^P","$INPUT_RECORD_SEPARATOR","@LAST_MATCH_START","$^R","$LAST_MATCH_END","$^RE_DEBUG_FLAGS","$LAST_PAREN_MATCH"],symbols:/[:+\-\^*$&%@=<>!?|\/~\.]/,quoteLikeOps:["qr","m","s","q","qq","qx","qw","tr","y"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[{include:"@whitespace"},[/[a-zA-Z\-_][\w\-_]*/,{cases:{"@keywords":"keyword","@builtinFunctions":"type.identifier","@builtinFileHandlers":"variable.predefined","@quoteLikeOps":{token:"@rematch",next:"quotedConstructs"},"@default":""}}],[/[\$@%][*@#?\+\-\$!\w\\\^><~:;\.]+/,{cases:{"@builtinVariables":"variable.predefined","@default":"variable"}}],{include:"@strings"},{include:"@dblStrings"},{include:"@perldoc"},{include:"@heredoc"},[/[{}\[\]()]/,"@brackets"],[/[\/](?:(?:\[(?:\\]|[^\]])+\])|(?:\\\/|[^\]\/]))*[\/]\w*\s*(?=[).,;]|$)/,"regexp"],[/@symbols/,"operators"],{include:"@numbers"},[/[,;]/,"delimiter"]],whitespace:[[/\s+/,"white"],[/(^#!.*$)/,"metatag"],[/(^#.*$)/,"comment"]],numbers:[[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"]],strings:[[/'/,"string","@stringBody"]],stringBody:[[/'/,"string","@popall"],[/\\'/,"string.escape"],[/./,"string"]],dblStrings:[[/"/,"string","@dblStringBody"]],dblStringBody:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],{include:"@variables"},[/./,"string"]],quotedConstructs:[[/(q|qw|tr|y)\s*\(/,{token:"string.delim",switchTo:"@qstring.(.)"}],[/(q|qw|tr|y)\s*\[/,{token:"string.delim",switchTo:"@qstring.[.]"}],[/(q|qw|tr|y)\s*\{/,{token:"string.delim",switchTo:"@qstring.{.}"}],[/(q|qw|tr|y)\s*</,{token:"string.delim",switchTo:"@qstring.<.>"}],[/(q|qw|tr|y)#/,{token:"string.delim",switchTo:"@qstring.#.#"}],[/(q|qw|tr|y)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(q|qw|tr|y)\s+(\w)/,{token:"string.delim",switchTo:"@qstring.$2.$2"}],[/(qr|m|s)\s*\(/,{token:"regexp.delim",switchTo:"@qregexp.(.)"}],[/(qr|m|s)\s*\[/,{token:"regexp.delim",switchTo:"@qregexp.[.]"}],[/(qr|m|s)\s*\{/,{token:"regexp.delim",switchTo:"@qregexp.{.}"}],[/(qr|m|s)\s*</,{token:"regexp.delim",switchTo:"@qregexp.<.>"}],[/(qr|m|s)#/,{token:"regexp.delim",switchTo:"@qregexp.#.#"}],[/(qr|m|s)\s*([^A-Za-z0-9_#\s])/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qr|m|s)\s+(\w)/,{token:"regexp.delim",switchTo:"@qregexp.$2.$2"}],[/(qq|qx)\s*\(/,{token:"string.delim",switchTo:"@qqstring.(.)"}],[/(qq|qx)\s*\[/,{token:"string.delim",switchTo:"@qqstring.[.]"}],[/(qq|qx)\s*\{/,{token:"string.delim",switchTo:"@qqstring.{.}"}],[/(qq|qx)\s*</,{token:"string.delim",switchTo:"@qqstring.<.>"}],[/(qq|qx)#/,{token:"string.delim",switchTo:"@qqstring.#.#"}],[/(qq|qx)\s*([^A-Za-z0-9#\s])/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}],[/(qq|qx)\s+(\w)/,{token:"string.delim",switchTo:"@qqstring.$2.$2"}]],qstring:[[/\\./,"string.escape"],[/./,{cases:{"$#==$S3":{token:"string.delim",next:"@pop"},"$#==$S2":{token:"string.delim",next:"@push"},"@default":"string"}}]],qregexp:[{include:"@variables"},[/\\./,"regexp.escape"],[/./,{cases:{"$#==$S3":{token:"regexp.delim",next:"@regexpModifiers"},"$#==$S2":{token:"regexp.delim",next:"@push"},"@default":"regexp"}}]],regexpModifiers:[[/[msixpodualngcer]+/,{token:"regexp.modifier",next:"@popall"}]],qqstring:[{include:"@variables"},{include:"@qstring"}],heredoc:[[/<<\s*['"`]?([\w\-]+)['"`]?/,{token:"string.heredoc.delimiter",next:"@heredocBody.$1"}]],heredocBody:[[/^([\w\-]+)$/,{cases:{"$1==$S2":[{token:"string.heredoc.delimiter",next:"@popall"}],"@default":"string.heredoc"}}],[/./,"string.heredoc"]],perldoc:[[/^=\w/,"comment.doc","@perldocBody"]],perldocBody:[[/^=cut\b/,"type.identifier","@popall"],[/./,"comment.doc"]],variables:[[/\$\w+/,"variable"],[/@\w+/,"variable"],[/%\w+/,"variable"]]}}}}]);
//# sourceMappingURL=5507.c29076d8.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/5507.c29076d8.chunk.js
|
5507.c29076d8.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[9200],{69200:function(E,T,A){A.r(T),A.d(T,{conf:function(){return N},language:function(){return e}});var N={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]}]},e={defaultToken:"",tokenPostfix:".msdax",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.brackets"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["VAR","RETURN","NOT","EVALUATE","DATATABLE","ORDER","BY","START","AT","DEFINE","MEASURE","ASC","DESC","IN","BOOLEAN","DOUBLE","INTEGER","DATETIME","CURRENCY","STRING"],functions:["CLOSINGBALANCEMONTH","CLOSINGBALANCEQUARTER","CLOSINGBALANCEYEAR","DATEADD","DATESBETWEEN","DATESINPERIOD","DATESMTD","DATESQTD","DATESYTD","ENDOFMONTH","ENDOFQUARTER","ENDOFYEAR","FIRSTDATE","FIRSTNONBLANK","LASTDATE","LASTNONBLANK","NEXTDAY","NEXTMONTH","NEXTQUARTER","NEXTYEAR","OPENINGBALANCEMONTH","OPENINGBALANCEQUARTER","OPENINGBALANCEYEAR","PARALLELPERIOD","PREVIOUSDAY","PREVIOUSMONTH","PREVIOUSQUARTER","PREVIOUSYEAR","SAMEPERIODLASTYEAR","STARTOFMONTH","STARTOFQUARTER","STARTOFYEAR","TOTALMTD","TOTALQTD","TOTALYTD","ADDCOLUMNS","ADDMISSINGITEMS","ALL","ALLEXCEPT","ALLNOBLANKROW","ALLSELECTED","CALCULATE","CALCULATETABLE","CALENDAR","CALENDARAUTO","CROSSFILTER","CROSSJOIN","CURRENTGROUP","DATATABLE","DETAILROWS","DISTINCT","EARLIER","EARLIEST","EXCEPT","FILTER","FILTERS","GENERATE","GENERATEALL","GROUPBY","IGNORE","INTERSECT","ISONORAFTER","KEEPFILTERS","LOOKUPVALUE","NATURALINNERJOIN","NATURALLEFTOUTERJOIN","RELATED","RELATEDTABLE","ROLLUP","ROLLUPADDISSUBTOTAL","ROLLUPGROUP","ROLLUPISSUBTOTAL","ROW","SAMPLE","SELECTCOLUMNS","SUBSTITUTEWITHINDEX","SUMMARIZE","SUMMARIZECOLUMNS","TOPN","TREATAS","UNION","USERELATIONSHIP","VALUES","SUM","SUMX","PATH","PATHCONTAINS","PATHITEM","PATHITEMREVERSE","PATHLENGTH","AVERAGE","AVERAGEA","AVERAGEX","COUNT","COUNTA","COUNTAX","COUNTBLANK","COUNTROWS","COUNTX","DISTINCTCOUNT","DIVIDE","GEOMEAN","GEOMEANX","MAX","MAXA","MAXX","MEDIAN","MEDIANX","MIN","MINA","MINX","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILEX.EXC","PERCENTILEX.INC","PRODUCT","PRODUCTX","RANK.EQ","RANKX","STDEV.P","STDEV.S","STDEVX.P","STDEVX.S","VAR.P","VAR.S","VARX.P","VARX.S","XIRR","XNPV","DATE","DATEDIFF","DATEVALUE","DAY","EDATE","EOMONTH","HOUR","MINUTE","MONTH","NOW","SECOND","TIME","TIMEVALUE","TODAY","WEEKDAY","WEEKNUM","YEAR","YEARFRAC","CONTAINS","CONTAINSROW","CUSTOMDATA","ERROR","HASONEFILTER","HASONEVALUE","ISBLANK","ISCROSSFILTERED","ISEMPTY","ISERROR","ISEVEN","ISFILTERED","ISLOGICAL","ISNONTEXT","ISNUMBER","ISODD","ISSUBTOTAL","ISTEXT","USERNAME","USERPRINCIPALNAME","AND","FALSE","IF","IFERROR","NOT","OR","SWITCH","TRUE","ABS","ACOS","ACOSH","ACOT","ACOTH","ASIN","ASINH","ATAN","ATANH","BETA.DIST","BETA.INV","CEILING","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","COMBIN","COMBINA","CONFIDENCE.NORM","CONFIDENCE.T","COS","COSH","COT","COTH","CURRENCY","DEGREES","EVEN","EXP","EXPON.DIST","FACT","FLOOR","GCD","INT","ISO.CEILING","LCM","LN","LOG","LOG10","MOD","MROUND","ODD","PERMUT","PI","POISSON.DIST","POWER","QUOTIENT","RADIANS","RAND","RANDBETWEEN","ROUND","ROUNDDOWN","ROUNDUP","SIGN","SIN","SINH","SQRT","SQRTPI","TAN","TANH","TRUNC","BLANK","CONCATENATE","CONCATENATEX","EXACT","FIND","FIXED","FORMAT","LEFT","LEN","LOWER","MID","REPLACE","REPT","RIGHT","SEARCH","SUBSTITUTE","TRIM","UNICHAR","UNICODE","UPPER","VALUE"],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},[/[;,.]/,"delimiter"],[/[({})]/,"@brackets"],[/[a-z_][a-zA-Z0-9_]*/,{cases:{"@keywords":"keyword","@functions":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/\/\/+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N"/,{token:"string",next:"@string"}],[/"/,{token:"string",next:"@string"}]],string:[[/[^"]+/,"string"],[/""/,"string"],[/"/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/\[/,{token:"identifier.quote",next:"@bracketedIdentifier"}],[/'/,{token:"identifier.quote",next:"@quotedIdentifier"}]],bracketedIdentifier:[[/[^\]]+/,"identifier"],[/]]/,"identifier"],[/]/,{token:"identifier.quote",next:"@pop"}]],quotedIdentifier:[[/[^']+/,"identifier"],[/''/,"identifier"],[/'/,{token:"identifier.quote",next:"@pop"}]]}}}}]);
//# sourceMappingURL=9200.d0bc8746.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/9200.d0bc8746.chunk.js
|
9200.d0bc8746.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[1431],{51431:function(t,e,i){i.r(e),i.d(e,{conf:function(){return r},language:function(){return m}});var r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{#","#}"]},brackets:[["{#","#}"],["{%","%}"],["{{","}}"],["(",")"],["[","]"],["\x3c!--","--\x3e"],["<",">"]],autoClosingPairs:[{open:"{# ",close:" #}"},{open:"{% ",close:" %}"},{open:"{{ ",close:" }}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}]},m={defaultToken:"",tokenPostfix:"",ignoreCase:!0,keywords:["apply","autoescape","block","deprecated","do","embed","extends","flush","for","from","if","import","include","macro","sandbox","set","use","verbatim","with","endapply","endautoescape","endblock","endembed","endfor","endif","endmacro","endsandbox","endset","endwith","true","false"],tokenizer:{root:[[/\s+/],[/{#/,"comment.twig","@commentState"],[/{%[-~]?/,"delimiter.twig","@blockState"],[/{{[-~]?/,"delimiter.twig","@variableState"],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter.html","tag.html","","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[^<]+/]],commentState:[[/#}/,"comment.twig","@pop"],[/./,"comment.twig"]],blockState:[[/[-~]?%}/,"delimiter.twig","@pop"],[/\s+/],[/(verbatim)(\s*)([-~]?%})/,["keyword.twig","",{token:"delimiter.twig",next:"@rawDataState"}]],{include:"expression"}],rawDataState:[[/({%[-~]?)(\s*)(endverbatim)(\s*)([-~]?%})/,["delimiter.twig","","keyword.twig","",{token:"delimiter.twig",next:"@popall"}]],[/./,"string.twig"]],variableState:[[/[-~]?}}/,"delimiter.twig","@pop"],{include:"expression"}],stringState:[[/"/,"string.twig","@pop"],[/#{\s*/,"string.twig","@interpolationState"],[/[^#"\\]*(?:(?:\\.|#(?!\{))[^#"\\]*)*/,"string.twig"]],interpolationState:[[/}/,"string.twig","@pop"],{include:"expression"}],expression:[[/\s+/],[/\+|-|\/{1,2}|%|\*{1,2}/,"operators.twig"],[/(and|or|not|b-and|b-xor|b-or)(\s+)/,["operators.twig",""]],[/==|!=|<|>|>=|<=/,"operators.twig"],[/(starts with|ends with|matches)(\s+)/,["operators.twig",""]],[/(in)(\s+)/,["operators.twig",""]],[/(is)(\s+)/,["operators.twig",""]],[/\||~|:|\.{1,2}|\?{1,2}/,"operators.twig"],[/[^\W\d][\w]*/,{cases:{"@keywords":"keyword.twig","@default":"variable.twig"}}],[/\d+(\.\d+)?/,"number.twig"],[/\(|\)|\[|\]|{|}|,/,"delimiter.twig"],[/"([^#"\\]*(?:\\.[^#"\\]*)*)"|\'([^\'\\]*(?:\\.[^\'\\]*)*)\'/,"string.twig"],[/"/,"string.twig","@stringState"],[/=>/,"operators.twig"],[/=/,"operators.twig"]],doctype:[[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name.html","@scriptAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter.html","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name.html","@styleAfterType"],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter.html","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value.html",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value.html"],[/'([^']*)'/,"attribute.value.html"],[/[\w\-]+/,"attribute.name.html"],[/=/,"delimiter.html"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}}}]);
//# sourceMappingURL=1431.d02260cd.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/1431.d02260cd.chunk.js
|
1431.d02260cd.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[9432],{19432:function(e,t,n){n.r(t),n.d(t,{conf:function(){return b},language:function(){return x}});var r,i,o=n(37762),a=n(94389),s=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,m=function(e,t,n,r){if(t&&"object"===typeof t||"function"===typeof t){var i,a=(0,o.Z)(c(t));try{var m=function(){var o=i.value;p.call(e,o)||o===n||s(e,o,{get:function(){return t[o]},enumerable:!(r=d(t,o))||r.enumerable})};for(a.s();!(i=a.n()).done;)m()}catch(l){a.e(l)}finally{a.f()}}return e},l={};m(l,r=a,"default"),i&&m(i,r,"default");var u=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],b={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:".concat(u.join("|"),"))([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$"),"i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:l.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:".concat(u.join("|"),"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$"),"i"),action:{indentAction:l.languages.IndentAction.Indent}}],folding:{markers:{start:new RegExp("^\\s*\x3c!--\\s*#region\\b.*--\x3e"),end:new RegExp("^\\s*\x3c!--\\s*#endregion\\b.*--\x3e")}}},x={defaultToken:"",tokenPostfix:".html",ignoreCase:!0,tokenizer:{root:[[/<!DOCTYPE/,"metatag","@doctype"],[/<!--/,"comment","@comment"],[/(<)((?:[\w\-]+:)?[\w\-]+)(\s*)(\/>)/,["delimiter","tag","","delimiter"]],[/(<)(script)/,["delimiter",{token:"tag",next:"@script"}]],[/(<)(style)/,["delimiter",{token:"tag",next:"@style"}]],[/(<)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/(<\/)((?:[\w\-]+:)?[\w\-]+)/,["delimiter",{token:"tag",next:"@otherTag"}]],[/</,"delimiter"],[/[^<]+/]],doctype:[[/[^>]+/,"metatag.content"],[/>/,"metatag","@pop"]],comment:[[/-->/,"comment","@pop"],[/[^-]+/,"comment.content"],[/./,"comment.content"]],otherTag:[[/\/?>/,"delimiter","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],scriptAfterType:[[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/"module"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/'module'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.text/javascript"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@scriptEmbedded",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/>/,{token:"delimiter",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]],style:[[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter","tag",{token:"delimiter",next:"@pop"}]]],styleAfterType:[[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter",next:"@styleEmbedded",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/>/,{token:"delimiter",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/[^<]+/,""]]}}}}]);
//# sourceMappingURL=9432.e84dc193.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/9432.e84dc193.chunk.js
|
9432.e84dc193.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[4040],{44040:function(e,n,t){t.r(n),t.d(n,{conf:function(){return o},language:function(){return r}});var o={comments:{lineComment:"'",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"],["addhandler","end addhandler"],["class","end class"],["enum","end enum"],["event","end event"],["function","end function"],["get","end get"],["if","end if"],["interface","end interface"],["module","end module"],["namespace","end namespace"],["operator","end operator"],["property","end property"],["raiseevent","end raiseevent"],["removehandler","end removehandler"],["select","end select"],["set","end set"],["structure","end structure"],["sub","end sub"],["synclock","end synclock"],["try","end try"],["while","end while"],["with","end with"],["using","end using"],["do","loop"],["for","next"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"<",close:">",notIn:["string","comment"]}],folding:{markers:{start:new RegExp("^\\s*#Region\\b"),end:new RegExp("^\\s*#End Region\\b")}}},r={defaultToken:"",tokenPostfix:".vb",ignoreCase:!0,brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.angle",open:"<",close:">"},{token:"keyword.tag-addhandler",open:"addhandler",close:"end addhandler"},{token:"keyword.tag-class",open:"class",close:"end class"},{token:"keyword.tag-enum",open:"enum",close:"end enum"},{token:"keyword.tag-event",open:"event",close:"end event"},{token:"keyword.tag-function",open:"function",close:"end function"},{token:"keyword.tag-get",open:"get",close:"end get"},{token:"keyword.tag-if",open:"if",close:"end if"},{token:"keyword.tag-interface",open:"interface",close:"end interface"},{token:"keyword.tag-module",open:"module",close:"end module"},{token:"keyword.tag-namespace",open:"namespace",close:"end namespace"},{token:"keyword.tag-operator",open:"operator",close:"end operator"},{token:"keyword.tag-property",open:"property",close:"end property"},{token:"keyword.tag-raiseevent",open:"raiseevent",close:"end raiseevent"},{token:"keyword.tag-removehandler",open:"removehandler",close:"end removehandler"},{token:"keyword.tag-select",open:"select",close:"end select"},{token:"keyword.tag-set",open:"set",close:"end set"},{token:"keyword.tag-structure",open:"structure",close:"end structure"},{token:"keyword.tag-sub",open:"sub",close:"end sub"},{token:"keyword.tag-synclock",open:"synclock",close:"end synclock"},{token:"keyword.tag-try",open:"try",close:"end try"},{token:"keyword.tag-while",open:"while",close:"end while"},{token:"keyword.tag-with",open:"with",close:"end with"},{token:"keyword.tag-using",open:"using",close:"end using"},{token:"keyword.tag-do",open:"do",close:"loop"},{token:"keyword.tag-for",open:"for",close:"next"}],keywords:["AddHandler","AddressOf","Alias","And","AndAlso","As","Async","Boolean","ByRef","Byte","ByVal","Call","Case","Catch","CBool","CByte","CChar","CDate","CDbl","CDec","Char","CInt","Class","CLng","CObj","Const","Continue","CSByte","CShort","CSng","CStr","CType","CUInt","CULng","CUShort","Date","Decimal","Declare","Default","Delegate","Dim","DirectCast","Do","Double","Each","Else","ElseIf","End","EndIf","Enum","Erase","Error","Event","Exit","False","Finally","For","Friend","Function","Get","GetType","GetXMLNamespace","Global","GoSub","GoTo","Handles","If","Implements","Imports","In","Inherits","Integer","Interface","Is","IsNot","Let","Lib","Like","Long","Loop","Me","Mod","Module","MustInherit","MustOverride","MyBase","MyClass","NameOf","Namespace","Narrowing","New","Next","Not","Nothing","NotInheritable","NotOverridable","Object","Of","On","Operator","Option","Optional","Or","OrElse","Out","Overloads","Overridable","Overrides","ParamArray","Partial","Private","Property","Protected","Public","RaiseEvent","ReadOnly","ReDim","RemoveHandler","Resume","Return","SByte","Select","Set","Shadows","Shared","Short","Single","Static","Step","Stop","String","Structure","Sub","SyncLock","Then","Throw","To","True","Try","TryCast","TypeOf","UInteger","ULong","UShort","Using","Variant","Wend","When","While","Widening","With","WithEvents","WriteOnly","Xor"],tagwords:["If","Sub","Select","Try","Class","Enum","Function","Get","Interface","Module","Namespace","Operator","Set","Structure","Using","While","With","Do","Loop","For","Next","Property","Continue","AddHandler","RemoveHandler","Event","RaiseEvent","SyncLock"],symbols:/[=><!~?;\.,:&|+\-*\/\^%]+/,integersuffix:/U?[DI%L&S@]?/,floatsuffix:/[R#F!]?/,tokenizer:{root:[{include:"@whitespace"},[/next(?!\w)/,{token:"keyword.tag-for"}],[/loop(?!\w)/,{token:"keyword.tag-do"}],[/end\s+(?!for|do)(addhandler|class|enum|event|function|get|if|interface|module|namespace|operator|property|raiseevent|removehandler|select|set|structure|sub|synclock|try|while|with|using)/,{token:"keyword.tag-$1"}],[/[a-zA-Z_]\w*/,{cases:{"@tagwords":{token:"keyword.tag-$0"},"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/^\s*#\w+/,"keyword"],[/\d*\d+e([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+(e[\-+]?\d+)?(@floatsuffix)/,"number.float"],[/&H[0-9a-f]+(@integersuffix)/,"number.hex"],[/&0[0-7]+(@integersuffix)/,"number.octal"],[/\d+(@integersuffix)/,"number"],[/#.*#/,"number"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/["\u201c\u201d]/,{token:"string.quote",next:"@string"}]],whitespace:[[/[ \t\r\n]+/,""],[/(\'|REM(?!\w)).*$/,"comment"]],string:[[/[^"\u201c\u201d]+/,"string"],[/["\u201c\u201d]{2}/,"string.escape"],[/["\u201c\u201d]C?/,{token:"string.quote",next:"@pop"}]]}}}}]);
//# sourceMappingURL=4040.613bd8c0.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/4040.613bd8c0.chunk.js
|
4040.613bd8c0.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[5419],{65419:function(e,n,t){t.r(n),t.d(n,{conf:function(){return i},language:function(){return r}});var i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},r={defaultToken:"",tokenPostfix:".cpp",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","for","friend","gcnew","generic","goto","if","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/([uU](ll|LL|l|L)|(ll|LL|l|L)?[uU]?)/,floatsuffix:/[fFlL]?/,encoding:/u|u8|U|L/,tokenizer:{root:[[/@encoding?R\"(?:([^ ()\\\t]*))\(/,{token:"string.raw.begin",next:"@raw.$1"}],[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/^\s*#\s*include/,{token:"keyword.directive.include",next:"@include"}],[/^\s*#\s*\w+/,"keyword.directive"],{include:"@whitespace"},[/\[\s*\[/,{token:"annotation",next:"@annotation"}],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*\\$/,"comment","@linecomment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],linecomment:[[/.*[^\\]$/,"comment","@pop"],[/[^]+/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],raw:[[/(.*)(\))(?:([^ ()\\\t"]*))(\")/,{cases:{"$3==$S2":["string.raw","string.raw.end","string.raw.end",{token:"string.raw.end",next:"@pop"}],"@default":["string.raw","string.raw","string.raw","string.raw"]}}],[/.*/,"string.raw"]],annotation:[{include:"@whitespace"},[/using|alignas/,"keyword"],[/[a-zA-Z0-9_]+/,"annotation"],[/[,:]/,"delimiter"],[/[()]/,"@brackets"],[/\]\s*\]/,{token:"annotation",next:"@pop"}]],include:[[/(\s*)(<)([^<>]*)(>)/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]],[/(\s*)(")([^"]*)(")/,["","keyword.directive.include.begin","string.include.identifier",{token:"keyword.directive.include.end",next:"@pop"}]]]}}}}]);
//# sourceMappingURL=5419.3d10c516.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/5419.3d10c516.chunk.js
|
5419.3d10c516.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[5342],{95342:function(e,n,t){t.r(n),t.d(n,{CompletionAdapter:function(){return kn},DefinitionAdapter:function(){return Tn},DiagnosticsAdapter:function(){return pn},DocumentColorAdapter:function(){return Nn},DocumentFormattingEditProvider:function(){return Ln},DocumentHighlightAdapter:function(){return In},DocumentLinkAdapter:function(){return jn},DocumentRangeFormattingEditProvider:function(){return Fn},DocumentSymbolAdapter:function(){return Pn},FoldingRangeAdapter:function(){return Wn},HoverAdapter:function(){return En},ReferenceAdapter:function(){return Dn},RenameAdapter:function(){return Zn},SelectionRangeAdapter:function(){return Vn},WorkerManager:function(){return le},fromPosition:function(){return _n},fromRange:function(){return bn},setupMode:function(){return ut},toRange:function(){return wn},toTextEdit:function(){return Cn}});var r,i,o=t(60136),a=t(27277),s=t(15671),u=t(43144),c=t(4942),d=t(37762),f=t(94389),g=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyNames,v=Object.prototype.hasOwnProperty,p=function(e,n,t,r){if(n&&"object"===typeof n||"function"===typeof n){var i,o=(0,d.Z)(h(n));try{var a=function(){var o=i.value;v.call(e,o)||o===t||g(e,o,{get:function(){return n[o]},enumerable:!(r=l(n,o))||r.enumerable})};for(o.s();!(i=o.n()).done;)a()}catch(s){o.e(s)}finally{o.f()}}return e},m={};p(m,r=f,"default"),i&&p(i,r,"default");var k,_,b,w,y,C,E,A,x,I,S,T,R,D,Z,P,M,j,L,F,O,N,W,U,V,H,K,z,q,X,B,$,Q,G,J,Y,ee,ne,te,re,ie,oe,ae,se,ue,ce,de,fe,ge,le=function(){function e(n){var t=this;(0,s.Z)(this,e),(0,c.Z)(this,"_defaults",void 0),(0,c.Z)(this,"_idleCheckInterval",void 0),(0,c.Z)(this,"_lastUsedTime",void 0),(0,c.Z)(this,"_configChangeListener",void 0),(0,c.Z)(this,"_worker",void 0),(0,c.Z)(this,"_client",void 0),this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval((function(){return t._checkIfIdle()}),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange((function(){return t._stopWorker()}))}return(0,u.Z)(e,[{key:"_stopWorker",value:function(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}},{key:"dispose",value:function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}},{key:"_checkIfIdle",value:function(){this._worker&&(Date.now()-this._lastUsedTime>12e4&&this._stopWorker())}},{key:"_getClient",value:function(){return this._lastUsedTime=Date.now(),this._client||(this._worker=m.editor.createWebWorker({moduleId:"vs/language/json/jsonWorker",label:this._defaults.languageId,createData:{languageSettings:this._defaults.diagnosticsOptions,languageId:this._defaults.languageId,enableSchemaRequest:this._defaults.diagnosticsOptions.enableSchemaRequest}}),this._client=this._worker.getProxy()),this._client}},{key:"getLanguageServiceWorker",value:function(){for(var e,n=this,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return this._getClient().then((function(n){e=n})).then((function(e){if(n._worker)return n._worker.withSyncedResources(r)})).then((function(n){return e}))}}]),e}();(_=k||(k={})).MIN_VALUE=-2147483648,_.MAX_VALUE=2147483647,(w=b||(b={})).MIN_VALUE=0,w.MAX_VALUE=2147483647,(C=y||(y={})).create=function(e,n){return e===Number.MAX_VALUE&&(e=b.MAX_VALUE),n===Number.MAX_VALUE&&(n=b.MAX_VALUE),{line:e,character:n}},C.is=function(e){var n=e;return hn.objectLiteral(n)&&hn.uinteger(n.line)&&hn.uinteger(n.character)},(A=E||(E={})).create=function(e,n,t,r){if(hn.uinteger(e)&&hn.uinteger(n)&&hn.uinteger(t)&&hn.uinteger(r))return{start:y.create(e,n),end:y.create(t,r)};if(y.is(e)&&y.is(n))return{start:e,end:n};throw new Error("Range#create called with invalid arguments["+e+", "+n+", "+t+", "+r+"]")},A.is=function(e){var n=e;return hn.objectLiteral(n)&&y.is(n.start)&&y.is(n.end)},(I=x||(x={})).create=function(e,n){return{uri:e,range:n}},I.is=function(e){var n=e;return hn.defined(n)&&E.is(n.range)&&(hn.string(n.uri)||hn.undefined(n.uri))},(T=S||(S={})).create=function(e,n,t,r){return{targetUri:e,targetRange:n,targetSelectionRange:t,originSelectionRange:r}},T.is=function(e){var n=e;return hn.defined(n)&&E.is(n.targetRange)&&hn.string(n.targetUri)&&(E.is(n.targetSelectionRange)||hn.undefined(n.targetSelectionRange))&&(E.is(n.originSelectionRange)||hn.undefined(n.originSelectionRange))},(D=R||(R={})).create=function(e,n,t,r){return{red:e,green:n,blue:t,alpha:r}},D.is=function(e){var n=e;return hn.numberRange(n.red,0,1)&&hn.numberRange(n.green,0,1)&&hn.numberRange(n.blue,0,1)&&hn.numberRange(n.alpha,0,1)},(P=Z||(Z={})).create=function(e,n){return{range:e,color:n}},P.is=function(e){var n=e;return E.is(n.range)&&R.is(n.color)},(j=M||(M={})).create=function(e,n,t){return{label:e,textEdit:n,additionalTextEdits:t}},j.is=function(e){var n=e;return hn.string(n.label)&&(hn.undefined(n.textEdit)||G.is(n))&&(hn.undefined(n.additionalTextEdits)||hn.typedArray(n.additionalTextEdits,G.is))},(F=L||(L={})).Comment="comment",F.Imports="imports",F.Region="region",(N=O||(O={})).create=function(e,n,t,r,i){var o={startLine:e,endLine:n};return hn.defined(t)&&(o.startCharacter=t),hn.defined(r)&&(o.endCharacter=r),hn.defined(i)&&(o.kind=i),o},N.is=function(e){var n=e;return hn.uinteger(n.startLine)&&hn.uinteger(n.startLine)&&(hn.undefined(n.startCharacter)||hn.uinteger(n.startCharacter))&&(hn.undefined(n.endCharacter)||hn.uinteger(n.endCharacter))&&(hn.undefined(n.kind)||hn.string(n.kind))},(U=W||(W={})).create=function(e,n){return{location:e,message:n}},U.is=function(e){var n=e;return hn.defined(n)&&x.is(n.location)&&hn.string(n.message)},(H=V||(V={})).Error=1,H.Warning=2,H.Information=3,H.Hint=4,(z=K||(K={})).Unnecessary=1,z.Deprecated=2,(q||(q={})).is=function(e){var n=e;return void 0!==n&&null!==n&&hn.string(n.href)},(B=X||(X={})).create=function(e,n,t,r,i,o){var a={range:e,message:n};return hn.defined(t)&&(a.severity=t),hn.defined(r)&&(a.code=r),hn.defined(i)&&(a.source=i),hn.defined(o)&&(a.relatedInformation=o),a},B.is=function(e){var n,t=e;return hn.defined(t)&&E.is(t.range)&&hn.string(t.message)&&(hn.number(t.severity)||hn.undefined(t.severity))&&(hn.integer(t.code)||hn.string(t.code)||hn.undefined(t.code))&&(hn.undefined(t.codeDescription)||hn.string(null===(n=t.codeDescription)||void 0===n?void 0:n.href))&&(hn.string(t.source)||hn.undefined(t.source))&&(hn.undefined(t.relatedInformation)||hn.typedArray(t.relatedInformation,W.is))},(Q=$||($={})).create=function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i={title:e,command:n};return hn.defined(t)&&t.length>0&&(i.arguments=t),i},Q.is=function(e){var n=e;return hn.defined(n)&&hn.string(n.title)&&hn.string(n.command)},(J=G||(G={})).replace=function(e,n){return{range:e,newText:n}},J.insert=function(e,n){return{range:{start:e,end:e},newText:n}},J.del=function(e){return{range:e,newText:""}},J.is=function(e){var n=e;return hn.objectLiteral(n)&&hn.string(n.newText)&&E.is(n.range)},(ee=Y||(Y={})).create=function(e,n,t){var r={label:e};return void 0!==n&&(r.needsConfirmation=n),void 0!==t&&(r.description=t),r},ee.is=function(e){var n=e;return void 0!==n&&hn.objectLiteral(n)&&hn.string(n.label)&&(hn.boolean(n.needsConfirmation)||void 0===n.needsConfirmation)&&(hn.string(n.description)||void 0===n.description)},(ne||(ne={})).is=function(e){return"string"===typeof e},(re=te||(te={})).replace=function(e,n,t){return{range:e,newText:n,annotationId:t}},re.insert=function(e,n,t){return{range:{start:e,end:e},newText:n,annotationId:t}},re.del=function(e,n){return{range:e,newText:"",annotationId:n}},re.is=function(e){var n=e;return G.is(n)&&(Y.is(n.annotationId)||ne.is(n.annotationId))},(oe=ie||(ie={})).create=function(e,n){return{textDocument:e,edits:n}},oe.is=function(e){var n=e;return hn.defined(n)&&ke.is(n.textDocument)&&Array.isArray(n.edits)},(se=ae||(ae={})).create=function(e,n,t){var r={kind:"create",uri:e};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==t&&(r.annotationId=t),r},se.is=function(e){var n=e;return n&&"create"===n.kind&&hn.string(n.uri)&&(void 0===n.options||(void 0===n.options.overwrite||hn.boolean(n.options.overwrite))&&(void 0===n.options.ignoreIfExists||hn.boolean(n.options.ignoreIfExists)))&&(void 0===n.annotationId||ne.is(n.annotationId))},(ce=ue||(ue={})).create=function(e,n,t,r){var i={kind:"rename",oldUri:e,newUri:n};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(i.options=t),void 0!==r&&(i.annotationId=r),i},ce.is=function(e){var n=e;return n&&"rename"===n.kind&&hn.string(n.oldUri)&&hn.string(n.newUri)&&(void 0===n.options||(void 0===n.options.overwrite||hn.boolean(n.options.overwrite))&&(void 0===n.options.ignoreIfExists||hn.boolean(n.options.ignoreIfExists)))&&(void 0===n.annotationId||ne.is(n.annotationId))},(fe=de||(de={})).create=function(e,n,t){var r={kind:"delete",uri:e};return void 0===n||void 0===n.recursive&&void 0===n.ignoreIfNotExists||(r.options=n),void 0!==t&&(r.annotationId=t),r},fe.is=function(e){var n=e;return n&&"delete"===n.kind&&hn.string(n.uri)&&(void 0===n.options||(void 0===n.options.recursive||hn.boolean(n.options.recursive))&&(void 0===n.options.ignoreIfNotExists||hn.boolean(n.options.ignoreIfNotExists)))&&(void 0===n.annotationId||ne.is(n.annotationId))},(ge||(ge={})).is=function(e){var n=e;return n&&(void 0!==n.changes||void 0!==n.documentChanges)&&(void 0===n.documentChanges||n.documentChanges.every((function(e){return hn.string(e.kind)?ae.is(e)||ue.is(e)||de.is(e):ie.is(e)})))};var he,ve,pe,me,ke,_e,be,we,ye,Ce,Ee,Ae,xe,Ie,Se,Te,Re,De,Ze,Pe,Me,je,Le,Fe,Oe,Ne,We,Ue,Ve,He,Ke,ze,qe,Xe,Be,$e,Qe,Ge,Je,Ye,en,nn,tn,rn,on,an,sn,un,cn,dn,fn,gn=function(){function e(e,n){this.edits=e,this.changeAnnotations=n}return e.prototype.insert=function(e,n,t){var r,i;if(void 0===t?r=G.insert(e,n):ne.is(t)?(i=t,r=te.insert(e,n,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),r=te.insert(e,n,i)),this.edits.push(r),void 0!==i)return i},e.prototype.replace=function(e,n,t){var r,i;if(void 0===t?r=G.replace(e,n):ne.is(t)?(i=t,r=te.replace(e,n,t)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(t),r=te.replace(e,n,i)),this.edits.push(r),void 0!==i)return i},e.prototype.delete=function(e,n){var t,r;if(void 0===n?t=G.del(e):ne.is(n)?(r=n,t=te.del(e,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),t=te.del(e,r)),this.edits.push(t),void 0!==r)return r},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),ln=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,n){var t;if(ne.is(e)?t=e:(t=this.nextId(),n=e),void 0!==this._annotations[t])throw new Error("Id "+t+" is already in use.");if(void 0===n)throw new Error("No annotation provided for id "+t);return this._annotations[t]=n,this._size++,t},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();!function(){function e(e){var n=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new ln(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(ie.is(e)){var t=new gn(e.edits,n._changeAnnotations);n._textEditChanges[e.textDocument.uri]=t}}))):e.changes&&Object.keys(e.changes).forEach((function(t){var r=new gn(e.changes[t]);n._textEditChanges[t]=r}))):this._workspaceEdit={}}Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(ke.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var n={uri:e.uri,version:e.version};if(!(r=this._textEditChanges[n.uri])){var t={textDocument:n,edits:i=[]};this._workspaceEdit.documentChanges.push(t),r=new gn(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var r;if(!(r=this._textEditChanges[e])){var i=[];this._workspaceEdit.changes[e]=i,r=new gn(i),this._textEditChanges[e]=r}return r},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new ln,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,n,t){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(Y.is(n)||ne.is(n)?r=n:t=n,void 0===r?i=ae.create(e,t):(o=ne.is(r)?r:this._changeAnnotations.manage(r),i=ae.create(e,t,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o},e.prototype.renameFile=function(e,n,t,r){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var i,o,a;if(Y.is(t)||ne.is(t)?i=t:r=t,void 0===i?o=ue.create(e,n,r):(a=ne.is(i)?i:this._changeAnnotations.manage(i),o=ue.create(e,n,r,a)),this._workspaceEdit.documentChanges.push(o),void 0!==a)return a},e.prototype.deleteFile=function(e,n,t){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,o;if(Y.is(n)||ne.is(n)?r=n:t=n,void 0===r?i=de.create(e,t):(o=ne.is(r)?r:this._changeAnnotations.manage(r),i=de.create(e,t,o)),this._workspaceEdit.documentChanges.push(i),void 0!==o)return o}}();(ve=he||(he={})).create=function(e){return{uri:e}},ve.is=function(e){var n=e;return hn.defined(n)&&hn.string(n.uri)},(me=pe||(pe={})).create=function(e,n){return{uri:e,version:n}},me.is=function(e){var n=e;return hn.defined(n)&&hn.string(n.uri)&&hn.integer(n.version)},(_e=ke||(ke={})).create=function(e,n){return{uri:e,version:n}},_e.is=function(e){var n=e;return hn.defined(n)&&hn.string(n.uri)&&(null===n.version||hn.integer(n.version))},(we=be||(be={})).create=function(e,n,t,r){return{uri:e,languageId:n,version:t,text:r}},we.is=function(e){var n=e;return hn.defined(n)&&hn.string(n.uri)&&hn.string(n.languageId)&&hn.integer(n.version)&&hn.string(n.text)},(Ce=ye||(ye={})).PlainText="plaintext",Ce.Markdown="markdown",function(e){e.is=function(n){var t=n;return t===e.PlainText||t===e.Markdown}}(ye||(ye={})),(Ee||(Ee={})).is=function(e){var n=e;return hn.objectLiteral(e)&&ye.is(n.kind)&&hn.string(n.value)},(xe=Ae||(Ae={})).Text=1,xe.Method=2,xe.Function=3,xe.Constructor=4,xe.Field=5,xe.Variable=6,xe.Class=7,xe.Interface=8,xe.Module=9,xe.Property=10,xe.Unit=11,xe.Value=12,xe.Enum=13,xe.Keyword=14,xe.Snippet=15,xe.Color=16,xe.File=17,xe.Reference=18,xe.Folder=19,xe.EnumMember=20,xe.Constant=21,xe.Struct=22,xe.Event=23,xe.Operator=24,xe.TypeParameter=25,(Se=Ie||(Ie={})).PlainText=1,Se.Snippet=2,(Te||(Te={})).Deprecated=1,(De=Re||(Re={})).create=function(e,n,t){return{newText:e,insert:n,replace:t}},De.is=function(e){var n=e;return n&&hn.string(n.newText)&&E.is(n.insert)&&E.is(n.replace)},(Pe=Ze||(Ze={})).asIs=1,Pe.adjustIndentation=2,(Me||(Me={})).create=function(e){return{label:e}},(je||(je={})).create=function(e,n){return{items:e||[],isIncomplete:!!n}},(Fe=Le||(Le={})).fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},Fe.is=function(e){var n=e;return hn.string(n)||hn.objectLiteral(n)&&hn.string(n.language)&&hn.string(n.value)},(Oe||(Oe={})).is=function(e){var n=e;return!!n&&hn.objectLiteral(n)&&(Ee.is(n.contents)||Le.is(n.contents)||hn.typedArray(n.contents,Le.is))&&(void 0===e.range||E.is(e.range))},(Ne||(Ne={})).create=function(e,n){return n?{label:e,documentation:n}:{label:e}},(We||(We={})).create=function(e,n){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i={label:e};return hn.defined(n)&&(i.documentation=n),hn.defined(t)?i.parameters=t:i.parameters=[],i},(Ve=Ue||(Ue={})).Text=1,Ve.Read=2,Ve.Write=3,(He||(He={})).create=function(e,n){var t={range:e};return hn.number(n)&&(t.kind=n),t},(ze=Ke||(Ke={})).File=1,ze.Module=2,ze.Namespace=3,ze.Package=4,ze.Class=5,ze.Method=6,ze.Property=7,ze.Field=8,ze.Constructor=9,ze.Enum=10,ze.Interface=11,ze.Function=12,ze.Variable=13,ze.Constant=14,ze.String=15,ze.Number=16,ze.Boolean=17,ze.Array=18,ze.Object=19,ze.Key=20,ze.Null=21,ze.EnumMember=22,ze.Struct=23,ze.Event=24,ze.Operator=25,ze.TypeParameter=26,(qe||(qe={})).Deprecated=1,(Xe||(Xe={})).create=function(e,n,t,r,i){var o={name:e,kind:n,location:{uri:r,range:t}};return i&&(o.containerName=i),o},($e=Be||(Be={})).create=function(e,n,t,r,i,o){var a={name:e,detail:n,kind:t,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},$e.is=function(e){var n=e;return n&&hn.string(n.name)&&hn.number(n.kind)&&E.is(n.range)&&E.is(n.selectionRange)&&(void 0===n.detail||hn.string(n.detail))&&(void 0===n.deprecated||hn.boolean(n.deprecated))&&(void 0===n.children||Array.isArray(n.children))&&(void 0===n.tags||Array.isArray(n.tags))},(Ge=Qe||(Qe={})).Empty="",Ge.QuickFix="quickfix",Ge.Refactor="refactor",Ge.RefactorExtract="refactor.extract",Ge.RefactorInline="refactor.inline",Ge.RefactorRewrite="refactor.rewrite",Ge.Source="source",Ge.SourceOrganizeImports="source.organizeImports",Ge.SourceFixAll="source.fixAll",(Ye=Je||(Je={})).create=function(e,n){var t={diagnostics:e};return void 0!==n&&null!==n&&(t.only=n),t},Ye.is=function(e){var n=e;return hn.defined(n)&&hn.typedArray(n.diagnostics,X.is)&&(void 0===n.only||hn.typedArray(n.only,hn.string))},(nn=en||(en={})).create=function(e,n,t){var r={title:e},i=!0;return"string"===typeof n?(i=!1,r.kind=n):$.is(n)?r.command=n:r.edit=n,i&&void 0!==t&&(r.kind=t),r},nn.is=function(e){var n=e;return n&&hn.string(n.title)&&(void 0===n.diagnostics||hn.typedArray(n.diagnostics,X.is))&&(void 0===n.kind||hn.string(n.kind))&&(void 0!==n.edit||void 0!==n.command)&&(void 0===n.command||$.is(n.command))&&(void 0===n.isPreferred||hn.boolean(n.isPreferred))&&(void 0===n.edit||ge.is(n.edit))},(rn=tn||(tn={})).create=function(e,n){var t={range:e};return hn.defined(n)&&(t.data=n),t},rn.is=function(e){var n=e;return hn.defined(n)&&E.is(n.range)&&(hn.undefined(n.command)||$.is(n.command))},(an=on||(on={})).create=function(e,n){return{tabSize:e,insertSpaces:n}},an.is=function(e){var n=e;return hn.defined(n)&&hn.uinteger(n.tabSize)&&hn.boolean(n.insertSpaces)},(un=sn||(sn={})).create=function(e,n,t){return{range:e,target:n,data:t}},un.is=function(e){var n=e;return hn.defined(n)&&E.is(n.range)&&(hn.undefined(n.target)||hn.string(n.target))},(dn=cn||(cn={})).create=function(e,n){return{range:e,parent:n}},dn.is=function(e){var n=e;return void 0!==n&&E.is(n.range)&&(void 0===n.parent||dn.is(n.parent))},function(e){function n(e,t){if(e.length<=1)return e;var r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);n(i,t),n(o,t);for(var a=0,s=0,u=0;a<i.length&&s<o.length;){var c=t(i[a],o[s]);e[u++]=c<=0?i[a++]:o[s++]}for(;a<i.length;)e[u++]=i[a++];for(;s<o.length;)e[u++]=o[s++];return e}e.create=function(e,n,t,r){return new vn(e,n,t,r)},e.is=function(e){var n=e;return!!(hn.defined(n)&&hn.string(n.uri)&&(hn.undefined(n.languageId)||hn.string(n.languageId))&&hn.uinteger(n.lineCount)&&hn.func(n.getText)&&hn.func(n.positionAt)&&hn.func(n.offsetAt))},e.applyEdits=function(e,t){for(var r=e.getText(),i=n(t,(function(e,n){var t=e.range.start.line-n.range.start.line;return 0===t?e.range.start.character-n.range.start.character:t})),o=r.length,a=i.length-1;a>=0;a--){var s=i[a],u=e.offsetAt(s.range.start),c=e.offsetAt(s.range.end);if(!(c<=o))throw new Error("Overlapping edit");r=r.substring(0,u)+s.newText+r.substring(c,r.length),o=u}return r}}(fn||(fn={}));var hn,vn=function(){function e(e,n,t,r){this._uri=e,this._languageId=n,this._version=t,this._content=r,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var n=this.offsetAt(e.start),t=this.offsetAt(e.end);return this._content.substring(n,t)}return this._content},e.prototype.update=function(e,n){this._content=e.text,this._version=n,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],n=this._content,t=!0,r=0;r<n.length;r++){t&&(e.push(r),t=!1);var i=n.charAt(r);t="\r"===i||"\n"===i,"\r"===i&&r+1<n.length&&"\n"===n.charAt(r+1)&&r++}t&&n.length>0&&e.push(n.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var n=this.getLineOffsets(),t=0,r=n.length;if(0===r)return y.create(0,e);for(;t<r;){var i=Math.floor((t+r)/2);n[i]>e?r=i:t=i+1}var o=t-1;return y.create(o,e-n[o])},e.prototype.offsetAt=function(e){var n=this.getLineOffsets();if(e.line>=n.length)return this._content.length;if(e.line<0)return 0;var t=n[e.line],r=e.line+1<n.length?n[e.line+1]:this._content.length;return Math.max(Math.min(t+e.character,r),t)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();!function(e){var n=Object.prototype.toString;e.defined=function(e){return"undefined"!==typeof e},e.undefined=function(e){return"undefined"===typeof e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===n.call(e)},e.number=function(e){return"[object Number]"===n.call(e)},e.numberRange=function(e,t,r){return"[object Number]"===n.call(e)&&t<=e&&e<=r},e.integer=function(e){return"[object Number]"===n.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===n.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===n.call(e)},e.objectLiteral=function(e){return null!==e&&"object"===typeof e},e.typedArray=function(e,n){return Array.isArray(e)&&e.every(n)}}(hn||(hn={}));var pn=function(){function e(n,t,r){var i=this;(0,s.Z)(this,e),(0,c.Z)(this,"_disposables",[]),(0,c.Z)(this,"_listener",Object.create(null)),this._languageId=n,this._worker=t;var o=function(e){var n,t=e.getLanguageId();t===i._languageId&&(i._listener[e.uri.toString()]=e.onDidChangeContent((function(){window.clearTimeout(n),n=window.setTimeout((function(){return i._doValidate(e.uri,t)}),500)})),i._doValidate(e.uri,t))},a=function(e){m.editor.setModelMarkers(e,i._languageId,[]);var n=e.uri.toString(),t=i._listener[n];t&&(t.dispose(),delete i._listener[n])};this._disposables.push(m.editor.onDidCreateModel(o)),this._disposables.push(m.editor.onWillDisposeModel(a)),this._disposables.push(m.editor.onDidChangeModelLanguage((function(e){a(e.model),o(e.model)}))),this._disposables.push(r((function(e){m.editor.getModels().forEach((function(e){e.getLanguageId()===i._languageId&&(a(e),o(e))}))}))),this._disposables.push({dispose:function(){for(var e in m.editor.getModels().forEach(a),i._listener)i._listener[e].dispose()}}),m.editor.getModels().forEach(o)}return(0,u.Z)(e,[{key:"dispose",value:function(){this._disposables.forEach((function(e){return e&&e.dispose()})),this._disposables.length=0}},{key:"_doValidate",value:function(e,n){this._worker(e).then((function(n){return n.doValidation(e.toString())})).then((function(t){var r=t.map((function(e){return function(e,n){var t="number"===typeof n.code?String(n.code):n.code;return{severity:mn(n.severity),startLineNumber:n.range.start.line+1,startColumn:n.range.start.character+1,endLineNumber:n.range.end.line+1,endColumn:n.range.end.character+1,message:n.message,code:t,source:n.source}}(0,e)})),i=m.editor.getModel(e);i&&i.getLanguageId()===n&&m.editor.setModelMarkers(i,n,r)})).then(void 0,(function(e){console.error(e)}))}}]),e}();function mn(e){switch(e){case V.Error:return m.MarkerSeverity.Error;case V.Warning:return m.MarkerSeverity.Warning;case V.Information:return m.MarkerSeverity.Info;case V.Hint:return m.MarkerSeverity.Hint;default:return m.MarkerSeverity.Info}}var kn=function(){function e(n,t){(0,s.Z)(this,e),this._worker=n,this._triggerCharacters=t}return(0,u.Z)(e,[{key:"triggerCharacters",get:function(){return this._triggerCharacters}},{key:"provideCompletionItems",value:function(e,n,t,r){var i=e.uri;return this._worker(i).then((function(e){return e.doComplete(i.toString(),_n(n))})).then((function(t){if(t){var r=e.getWordUntilPosition(n),i=new m.Range(n.lineNumber,r.startColumn,n.lineNumber,r.endColumn),o=t.items.map((function(e){var n,t,r={label:e.label,insertText:e.insertText||e.label,sortText:e.sortText,filterText:e.filterText,documentation:e.documentation,detail:e.detail,command:(n=e.command,n&&"editor.action.triggerSuggest"===n.command?{id:n.command,title:n.title,arguments:n.arguments}:void 0),range:i,kind:yn(e.kind)};return e.textEdit&&("undefined"!==typeof(t=e.textEdit).insert&&"undefined"!==typeof t.replace?r.range={insert:wn(e.textEdit.insert),replace:wn(e.textEdit.replace)}:r.range=wn(e.textEdit.range),r.insertText=e.textEdit.newText),e.additionalTextEdits&&(r.additionalTextEdits=e.additionalTextEdits.map(Cn)),e.insertTextFormat===Ie.Snippet&&(r.insertTextRules=m.languages.CompletionItemInsertTextRule.InsertAsSnippet),r}));return{isIncomplete:t.isIncomplete,suggestions:o}}}))}}]),e}();function _n(e){if(e)return{character:e.column-1,line:e.lineNumber-1}}function bn(e){if(e)return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function wn(e){if(e)return new m.Range(e.start.line+1,e.start.character+1,e.end.line+1,e.end.character+1)}function yn(e){var n=m.languages.CompletionItemKind;switch(e){case Ae.Text:return n.Text;case Ae.Method:return n.Method;case Ae.Function:return n.Function;case Ae.Constructor:return n.Constructor;case Ae.Field:return n.Field;case Ae.Variable:return n.Variable;case Ae.Class:return n.Class;case Ae.Interface:return n.Interface;case Ae.Module:return n.Module;case Ae.Property:return n.Property;case Ae.Unit:return n.Unit;case Ae.Value:return n.Value;case Ae.Enum:return n.Enum;case Ae.Keyword:return n.Keyword;case Ae.Snippet:return n.Snippet;case Ae.Color:return n.Color;case Ae.File:return n.File;case Ae.Reference:return n.Reference}return n.Property}function Cn(e){if(e)return{range:wn(e.range),text:e.newText}}var En=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideHover",value:function(e,n,t){var r=e.uri;return this._worker(r).then((function(e){return e.doHover(r.toString(),_n(n))})).then((function(e){if(e)return{range:wn(e.range),contents:xn(e.contents)}}))}}]),e}();function An(e){return"string"===typeof e?{value:e}:(n=e)&&"object"===typeof n&&"string"===typeof n.kind?"plaintext"===e.kind?{value:e.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:e.value}:{value:"```"+e.language+"\n"+e.value+"\n```\n"};var n}function xn(e){if(e)return Array.isArray(e)?e.map(An):[An(e)]}var In=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideDocumentHighlights",value:function(e,n,t){var r=e.uri;return this._worker(r).then((function(e){return e.findDocumentHighlights(r.toString(),_n(n))})).then((function(e){if(e)return e.map((function(e){return{range:wn(e.range),kind:Sn(e.kind)}}))}))}}]),e}();function Sn(e){switch(e){case Ue.Read:return m.languages.DocumentHighlightKind.Read;case Ue.Write:return m.languages.DocumentHighlightKind.Write;case Ue.Text:return m.languages.DocumentHighlightKind.Text}return m.languages.DocumentHighlightKind.Text}var Tn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideDefinition",value:function(e,n,t){var r=e.uri;return this._worker(r).then((function(e){return e.findDefinition(r.toString(),_n(n))})).then((function(e){if(e)return[Rn(e)]}))}}]),e}();function Rn(e){return{uri:m.Uri.parse(e.uri),range:wn(e.range)}}var Dn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideReferences",value:function(e,n,t,r){var i=e.uri;return this._worker(i).then((function(e){return e.findReferences(i.toString(),_n(n))})).then((function(e){if(e)return e.map(Rn)}))}}]),e}(),Zn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideRenameEdits",value:function(e,n,t,r){var i=e.uri;return this._worker(i).then((function(e){return e.doRename(i.toString(),_n(n),t)})).then((function(e){return function(e){if(!e||!e.changes)return;var n=[];for(var t in e.changes){var r,i=m.Uri.parse(t),o=(0,d.Z)(e.changes[t]);try{for(o.s();!(r=o.n()).done;){var a=r.value;n.push({resource:i,versionId:void 0,textEdit:{range:wn(a.range),text:a.newText}})}}catch(s){o.e(s)}finally{o.f()}}return{edits:n}}(e)}))}}]),e}();var Pn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideDocumentSymbols",value:function(e,n){var t=e.uri;return this._worker(t).then((function(e){return e.findDocumentSymbols(t.toString())})).then((function(e){if(e)return e.map((function(e){return{name:e.name,detail:"",containerName:e.containerName,kind:Mn(e.kind),range:wn(e.location.range),selectionRange:wn(e.location.range),tags:[]}}))}))}}]),e}();function Mn(e){var n=m.languages.SymbolKind;switch(e){case Ke.File:return n.Array;case Ke.Module:return n.Module;case Ke.Namespace:return n.Namespace;case Ke.Package:return n.Package;case Ke.Class:return n.Class;case Ke.Method:return n.Method;case Ke.Property:return n.Property;case Ke.Field:return n.Field;case Ke.Constructor:return n.Constructor;case Ke.Enum:return n.Enum;case Ke.Interface:return n.Interface;case Ke.Function:return n.Function;case Ke.Variable:return n.Variable;case Ke.Constant:return n.Constant;case Ke.String:return n.String;case Ke.Number:return n.Number;case Ke.Boolean:return n.Boolean;case Ke.Array:return n.Array}return n.Function}var jn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideLinks",value:function(e,n){var t=e.uri;return this._worker(t).then((function(e){return e.findDocumentLinks(t.toString())})).then((function(e){if(e)return{links:e.map((function(e){return{range:wn(e.range),url:e.target}}))}}))}}]),e}(),Ln=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideDocumentFormattingEdits",value:function(e,n,t){var r=e.uri;return this._worker(r).then((function(e){return e.format(r.toString(),null,On(n)).then((function(e){if(e&&0!==e.length)return e.map(Cn)}))}))}}]),e}(),Fn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideDocumentRangeFormattingEdits",value:function(e,n,t,r){var i=e.uri;return this._worker(i).then((function(e){return e.format(i.toString(),bn(n),On(t)).then((function(e){if(e&&0!==e.length)return e.map(Cn)}))}))}}]),e}();function On(e){return{tabSize:e.tabSize,insertSpaces:e.insertSpaces}}var Nn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideDocumentColors",value:function(e,n){var t=e.uri;return this._worker(t).then((function(e){return e.findDocumentColors(t.toString())})).then((function(e){if(e)return e.map((function(e){return{color:e.color,range:wn(e.range)}}))}))}},{key:"provideColorPresentations",value:function(e,n,t){var r=e.uri;return this._worker(r).then((function(e){return e.getColorPresentations(r.toString(),n.color,bn(n.range))})).then((function(e){if(e)return e.map((function(e){var n={label:e.label};return e.textEdit&&(n.textEdit=Cn(e.textEdit)),e.additionalTextEdits&&(n.additionalTextEdits=e.additionalTextEdits.map(Cn)),n}))}))}}]),e}(),Wn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideFoldingRanges",value:function(e,n,t){var r=e.uri;return this._worker(r).then((function(e){return e.getFoldingRanges(r.toString(),n)})).then((function(e){if(e)return e.map((function(e){var n={start:e.startLine+1,end:e.endLine+1};return"undefined"!==typeof e.kind&&(n.kind=function(e){switch(e){case L.Comment:return m.languages.FoldingRangeKind.Comment;case L.Imports:return m.languages.FoldingRangeKind.Imports;case L.Region:return m.languages.FoldingRangeKind.Region}return}(e.kind)),n}))}))}}]),e}();var Un,Vn=function(){function e(n){(0,s.Z)(this,e),this._worker=n}return(0,u.Z)(e,[{key:"provideSelectionRanges",value:function(e,n,t){var r=e.uri;return this._worker(r).then((function(e){return e.getSelectionRanges(r.toString(),n.map(_n))})).then((function(e){if(e)return e.map((function(e){for(var n=[];e;)n.push({range:wn(e.range)}),e=e.parent;return n}))}))}}]),e}();function Hn(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function Kn(e){return 10===e||13===e||8232===e||8233===e}function zn(e){return e>=48&&e<=57}(Un||(Un={})).DEFAULT={allowTrailingComma:!1};var qn=function(e,n){void 0===n&&(n=!1);var t=e.length,r=0,i="",o=0,a=16,s=0,u=0,c=0,d=0,f=0;function g(n,t){for(var i=0,o=0;i<n||!t;){var a=e.charCodeAt(r);if(a>=48&&a<=57)o=16*o+a-48;else if(a>=65&&a<=70)o=16*o+a-65+10;else{if(!(a>=97&&a<=102))break;o=16*o+a-97+10}r++,i++}return i<n&&(o=-1),o}function l(){if(i="",f=0,o=r,u=s,d=c,r>=t)return o=t,a=17;var n=e.charCodeAt(r);if(Hn(n)){do{r++,i+=String.fromCharCode(n),n=e.charCodeAt(r)}while(Hn(n));return a=15}if(Kn(n))return r++,i+=String.fromCharCode(n),13===n&&10===e.charCodeAt(r)&&(r++,i+="\n"),s++,c=r,a=14;switch(n){case 123:return r++,a=1;case 125:return r++,a=2;case 91:return r++,a=3;case 93:return r++,a=4;case 58:return r++,a=6;case 44:return r++,a=5;case 34:return r++,i=function(){for(var n="",i=r;;){if(r>=t){n+=e.substring(i,r),f=2;break}var o=e.charCodeAt(r);if(34===o){n+=e.substring(i,r),r++;break}if(92!==o){if(o>=0&&o<=31){if(Kn(o)){n+=e.substring(i,r),f=2;break}f=6}r++}else{if(n+=e.substring(i,r),++r>=t){f=2;break}switch(e.charCodeAt(r++)){case 34:n+='"';break;case 92:n+="\\";break;case 47:n+="/";break;case 98:n+="\b";break;case 102:n+="\f";break;case 110:n+="\n";break;case 114:n+="\r";break;case 116:n+="\t";break;case 117:var a=g(4,!0);a>=0?n+=String.fromCharCode(a):f=4;break;default:f=5}i=r}}return n}(),a=10;case 47:var l=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<t&&!Kn(e.charCodeAt(r));)r++;return i=e.substring(l,r),a=12}if(42===e.charCodeAt(r+1)){r+=2;for(var v=t-1,p=!1;r<v;){var m=e.charCodeAt(r);if(42===m&&47===e.charCodeAt(r+1)){r+=2,p=!0;break}r++,Kn(m)&&(13===m&&10===e.charCodeAt(r)&&r++,s++,c=r)}return p||(r++,f=1),i=e.substring(l,r),a=13}return i+=String.fromCharCode(n),r++,a=16;case 45:if(i+=String.fromCharCode(n),++r===t||!zn(e.charCodeAt(r)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=function(){var n=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&zn(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(!(++r<e.length&&zn(e.charCodeAt(r))))return f=3,e.substring(n,r);for(r++;r<e.length&&zn(e.charCodeAt(r));)r++}var t=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if((++r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&zn(e.charCodeAt(r))){for(r++;r<e.length&&zn(e.charCodeAt(r));)r++;t=r}else f=3;return e.substring(n,t)}(),a=11;default:for(;r<t&&h(n);)r++,n=e.charCodeAt(r);if(o!==r){switch(i=e.substring(o,r)){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return i+=String.fromCharCode(n),r++,a=16}}function h(e){if(Hn(e)||Kn(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,i="",o=0,a=16,f=0},getPosition:function(){return r},scan:n?function(){var e;do{e=l()}while(e>=12&&e<=15);return e}:l,getToken:function(){return a},getTokenValue:function(){return i},getTokenOffset:function(){return o},getTokenLength:function(){return r-o},getTokenStartLine:function(){return u},getTokenStartCharacter:function(){return o-d},getTokenError:function(){return f}}};function Xn(e){return{getInitialState:function(){return new at(null,null,!1,null)},tokenize:function(n,t){return function(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=0,o=!1;switch(t.scanError){case 2:n='"'+n,i=1;break;case 1:n="/*"+n,i=2}var a=qn(n),s=t.lastWasColon,u=t.parents,c={tokens:[],endState:t.clone()};for(;;){var d=r+a.getPosition(),f="",g=a.scan();if(17===g)break;if(d===r+a.getPosition())throw new Error("Scanner did not advance, next 3 characters are: "+n.substr(a.getPosition(),3));switch(o&&(d-=i),o=i>0,g){case 1:u=ot.push(u,0),f=Bn,s=!1;break;case 2:u=ot.pop(u),f=Bn,s=!1;break;case 3:u=ot.push(u,1),f=$n,s=!1;break;case 4:u=ot.pop(u),f=$n,s=!1;break;case 6:f=Qn,s=!0;break;case 5:f=Gn,s=!1;break;case 8:case 9:f=Jn,s=!1;break;case 7:f=Yn,s=!1;break;case 10:var l=u?u.type:0;f=s||1===l?et:tt,s=!1;break;case 11:f=nt,s=!1}if(e)switch(g){case 12:f=it;break;case 13:f=rt}c.endState=new at(t.getStateData(),a.getTokenError(),s,u),c.tokens.push({startIndex:d,scopes:f})}return c}(e,n,t)}}}var Bn="delimiter.bracket.json",$n="delimiter.array.json",Qn="delimiter.colon.json",Gn="delimiter.comma.json",Jn="keyword.json",Yn="keyword.json",et="string.value.json",nt="number.json",tt="string.key.json",rt="comment.block.json",it="comment.line.json",ot=function(){function e(n,t){(0,s.Z)(this,e),this.parent=n,this.type=t}return(0,u.Z)(e,null,[{key:"pop",value:function(e){return e?e.parent:null}},{key:"push",value:function(n,t){return new e(n,t)}},{key:"equals",value:function(e,n){if(!e&&!n)return!0;if(!e||!n)return!1;for(;e&&n;){if(e===n)return!0;if(e.type!==n.type)return!1;e=e.parent,n=n.parent}return!0}}]),e}(),at=function(){function e(n,t,r,i){(0,s.Z)(this,e),(0,c.Z)(this,"_state",void 0),(0,c.Z)(this,"scanError",void 0),(0,c.Z)(this,"lastWasColon",void 0),(0,c.Z)(this,"parents",void 0),this._state=n,this.scanError=t,this.lastWasColon=r,this.parents=i}return(0,u.Z)(e,[{key:"clone",value:function(){return new e(this._state,this.scanError,this.lastWasColon,this.parents)}},{key:"equals",value:function(n){return n===this||!!(n&&n instanceof e)&&(this.scanError===n.scanError&&this.lastWasColon===n.lastWasColon&&ot.equals(this.parents,n.parents))}},{key:"getStateData",value:function(){return this._state}},{key:"setStateData",value:function(e){this._state=e}}]),e}();var st=function(e){(0,o.Z)(t,e);var n=(0,a.Z)(t);function t(e,r,i){var o;return(0,s.Z)(this,t),(o=n.call(this,e,r,i.onDidChange))._disposables.push(m.editor.onWillDisposeModel((function(e){o._resetSchema(e.uri)}))),o._disposables.push(m.editor.onDidChangeModelLanguage((function(e){o._resetSchema(e.model.uri)}))),o}return(0,u.Z)(t,[{key:"_resetSchema",value:function(e){this._worker().then((function(n){n.resetSchema(e.toString())}))}}]),t}(pn);function ut(e){var n=[],t=[],r=new le(e);n.push(r);var i=function(){return r.getLanguageServiceWorker.apply(r,arguments)};function o(){var n=e.languageId,r=e.modeConfiguration;dt(t),r.documentFormattingEdits&&t.push(m.languages.registerDocumentFormattingEditProvider(n,new Ln(i))),r.documentRangeFormattingEdits&&t.push(m.languages.registerDocumentRangeFormattingEditProvider(n,new Fn(i))),r.completionItems&&t.push(m.languages.registerCompletionItemProvider(n,new kn(i,[" ",":",'"']))),r.hovers&&t.push(m.languages.registerHoverProvider(n,new En(i))),r.documentSymbols&&t.push(m.languages.registerDocumentSymbolProvider(n,new Pn(i))),r.tokens&&t.push(m.languages.setTokensProvider(n,Xn(!0))),r.colors&&t.push(m.languages.registerColorProvider(n,new Nn(i))),r.foldingRanges&&t.push(m.languages.registerFoldingRangeProvider(n,new Wn(i))),r.diagnostics&&t.push(new st(n,i,e)),r.selectionRanges&&t.push(m.languages.registerSelectionRangeProvider(n,new Vn(i)))}o(),n.push(m.languages.setLanguageConfiguration(e.languageId,ft));var a=e.modeConfiguration;return e.onDidChange((function(e){e.modeConfiguration!==a&&(a=e.modeConfiguration,o())})),n.push(ct(t)),ct(n)}function ct(e){return{dispose:function(){return dt(e)}}}function dt(e){for(;e.length;)e.pop().dispose()}var ft={wordPattern:/(-?\d*\.\d\w*)|([^\[\{\]\}\:\"\,\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string"]},{open:"[",close:"]",notIn:["string"]},{open:'"',close:'"',notIn:["string"]}]}}}]);
//# sourceMappingURL=5342.e36bdc43.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/5342.e36bdc43.chunk.js
|
5342.e36bdc43.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[7294],{67294:function(e,t,i){i.r(t),i.d(t,{conf:function(){return n},language:function(){return o}});var n={comments:{lineComment:"COMMENT"},brackets:[["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:":",close:"."}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"},{open:":",close:"."}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#region"),end:new RegExp("^\\s*(::\\s*|COMMENT\\s+)#endregion")}}},o={tokenPostfix:".lexon",ignoreCase:!0,keywords:["lexon","lex","clause","terms","contracts","may","pay","pays","appoints","into","to"],typeKeywords:["amount","person","key","time","date","asset","text"],operators:["less","greater","equal","le","gt","or","and","add","added","subtract","subtracted","multiply","multiplied","times","divide","divided","is","be","certified"],symbols:/[=><!~?:&|+\-*\/\^%]+/,tokenizer:{root:[[/^(\s*)(comment:?(?:\s.*|))$/,["","comment"]],[/"/,{token:"identifier.quote",bracket:"@open",next:"@quoted_identifier"}],["LEX$",{token:"keyword",bracket:"@open",next:"@identifier_until_period"}],["LEXON",{token:"keyword",bracket:"@open",next:"@semver"}],[":",{token:"delimiter",bracket:"@open",next:"@identifier_until_period"}],[/[a-z_$][\w$]*/,{cases:{"@operators":"operator","@typeKeywords":"keyword.type","@keywords":"keyword","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d*\.\d*/,"number.semver"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"]],quoted_identifier:[[/[^\\"]+/,"identifier"],[/"/,{token:"identifier.quote",bracket:"@close",next:"@pop"}]],space_identifier_until_period:[[":","delimiter"],[" ",{token:"white",next:"@identifier_rest"}]],identifier_until_period:[{include:"@whitespace"},[":",{token:"delimiter",next:"@identifier_rest"}],[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],identifier_rest:[[/[^\\.]+/,"identifier"],[/\./,{token:"delimiter",bracket:"@close",next:"@pop"}]],semver:[{include:"@whitespace"},[":","delimiter"],[/\d*\.\d*\.\d*/,{token:"number.semver",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"]]}}}}]);
//# sourceMappingURL=7294.6813eb1f.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/7294.6813eb1f.chunk.js
|
7294.6813eb1f.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[2526],{22526:function(e,t,n){n.r(t),n.d(t,{conf:function(){return b},language:function(){return u}});var a,r,m=n(37762),i=n(94389),l=Object.defineProperty,o=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=function(e,t,n,a){if(t&&"object"===typeof t||"function"===typeof t){var r,i=(0,m.Z)(d(t));try{var c=function(){var m=r.value;s.call(e,m)||m===n||l(e,m,{get:function(){return t[m]},enumerable:!(a=o(t,m))||a.enumerable})};for(i.s();!(r=i.n()).done;)c()}catch(p){i.e(p)}finally{i.f()}}return e},p={};c(p,a=i,"default"),r&&c(r,a,"default");var h=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],b={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["{{!--","--}}"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{{","}}"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:".concat(h.join("|"),"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$"),"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:p.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:".concat(h.join("|"),"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$"),"i"),action:{indentAction:p.languages.IndentAction.Indent}}]},u={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/\{\{!--/,"comment.block.start.handlebars","@commentBlock"],[/\{\{!/,"comment.start.handlebars","@comment"],[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@commentHtml"],[/(<)(\w+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)(\w+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/\{/,"delimiter.html"],[/[^<{]+/]],doctype:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/\}\}/,"comment.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentBlock:[[/--\}\}/,"comment.block.end.handlebars","@pop"],[/./,"comment.content.handlebars"]],commentHtml:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/\{\{/,{token:"@rematch",switchTo:"@handlebarsInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],handlebarsInSimpleState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3"}],{include:"handlebarsRoot"}],handlebarsInEmbeddedState:[[/\{\{\{?/,"delimiter.handlebars"],[/\}\}\}?/,{token:"delimiter.handlebars",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],{include:"handlebarsRoot"}],handlebarsRoot:[[/"[^"]*"/,"string.handlebars"],[/[#/][^\s}]+/,"keyword.helper.handlebars"],[/else\b/,"keyword.helper.handlebars"],[/[\s]+/],[/[^}]/,"variable.parameter.handlebars"]]}}}}]);
//# sourceMappingURL=2526.c4309069.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/2526.c4309069.chunk.js
|
2526.c4309069.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[6717],{66717:function(e,o,t){t.r(o),t.d(o,{conf:function(){return n},language:function(){return s}});var n={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}]},s={defaultToken:"",tokenPostfix:".cameligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["abs","assert","block","Bytes","case","Crypto","Current","else","failwith","false","for","fun","if","in","let","let%entry","let%init","List","list","Map","map","match","match%nat","mod","not","operation","Operation","of","record","Set","set","sender","skip","source","String","then","to","true","type","with"],typeKeywords:["int","unit","string","tz","nat","bool"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%","->","<-","&&","||"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]);
//# sourceMappingURL=6717.805e1882.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/6717.805e1882.chunk.js
|
6717.805e1882.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[8347],{78347:function(e,t,n){n.r(t),n.d(t,{conf:function(){return i},language:function(){return o}});var i={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},o={tokenPostfix:".pats",defaultToken:"invalid",keywords:["abstype","abst0ype","absprop","absview","absvtype","absviewtype","absvt0ype","absviewt0ype","as","and","assume","begin","classdec","datasort","datatype","dataprop","dataview","datavtype","dataviewtype","do","end","extern","extype","extvar","exception","fn","fnx","fun","prfn","prfun","praxi","castfn","if","then","else","ifcase","in","infix","infixl","infixr","prefix","postfix","implmnt","implement","primplmnt","primplement","import","let","local","macdef","macrodef","nonfix","symelim","symintr","overload","of","op","rec","sif","scase","sortdef","sta","stacst","stadef","static","staload","dynload","try","tkindef","typedef","propdef","viewdef","vtypedef","viewtypedef","prval","var","prvar","when","where","with","withtype","withprop","withview","withvtype","withviewtype"],keywords_dlr:["$delay","$ldelay","$arrpsz","$arrptrsize","$d2ctype","$effmask","$effmask_ntm","$effmask_exn","$effmask_ref","$effmask_wrt","$effmask_all","$extern","$extkind","$extype","$extype_struct","$extval","$extfcall","$extmcall","$literal","$myfilename","$mylocation","$myfunction","$lst","$lst_t","$lst_vt","$list","$list_t","$list_vt","$rec","$rec_t","$rec_vt","$record","$record_t","$record_vt","$tup","$tup_t","$tup_vt","$tuple","$tuple_t","$tuple_vt","$break","$continue","$raise","$showtype","$vcopyenv_v","$vcopyenv_vt","$tempenver","$solver_assert","$solver_verify"],keywords_srp:["#if","#ifdef","#ifndef","#then","#elif","#elifdef","#elifndef","#else","#endif","#error","#prerr","#print","#assert","#undef","#define","#include","#require","#pragma","#codegen2","#codegen3"],irregular_keyword_list:["val+","val-","val","case+","case-","case","addr@","addr","fold@","free@","fix@","fix","lam@","lam","llam@","llam","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","view+","view-","view@","view","type+","type-","type","vtype+","vtype-","vtype","vt@ype+","vt@ype-","vt@ype","viewt@ype+","viewt@ype-","viewt@ype","viewtype+","viewtype-","viewtype","prop+","prop-","prop","type+","type-","type","t@ype","t@ype+","t@ype-","abst@ype","abstype","absviewt@ype","absvt@ype","for*","for","while*","while"],keywords_types:["bool","double","byte","int","short","char","void","unit","long","float","string","strptr"],keywords_effects:["0","fun","clo","prf","funclo","cloptr","cloref","ref","ntm","1"],operators:["@","!","|","`",":","$",".","=","#","~","..","...","=>","=<>","=/=>","=>>","=/=>>","<",">","><",".<",">.",".<>.","->","-<>"],brackets:[{open:",(",close:")",token:"delimiter.parenthesis"},{open:"`(",close:")",token:"delimiter.parenthesis"},{open:"%(",close:")",token:"delimiter.parenthesis"},{open:"'(",close:")",token:"delimiter.parenthesis"},{open:"'{",close:"}",token:"delimiter.parenthesis"},{open:"@(",close:")",token:"delimiter.parenthesis"},{open:"@{",close:"}",token:"delimiter.brace"},{open:"@[",close:"]",token:"delimiter.square"},{open:"#[",close:"]",token:"delimiter.square"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],symbols:/[=><!~?:&|+\-*\/\^%]+/,IDENTFST:/[a-zA-Z_]/,IDENTRST:/[a-zA-Z0-9_'$]/,symbolic:/[%&+-./:=@~`^|*!$#?<>]/,digit:/[0-9]/,digitseq0:/@digit*/,xdigit:/[0-9A-Za-z]/,xdigitseq0:/@xdigit*/,INTSP:/[lLuU]/,FLOATSP:/[fFlL]/,fexponent:/[eE][+-]?[0-9]+/,fexponent_bin:/[pP][+-]?[0-9]+/,deciexp:/\.[0-9]*@fexponent?/,hexiexp:/\.[0-9a-zA-Z]*@fexponent_bin?/,irregular_keywords:/val[+-]?|case[+-]?|addr\@?|fold\@|free\@|fix\@?|lam\@?|llam\@?|prop[+-]?|type[+-]?|view[+-@]?|viewt@?ype[+-]?|t@?ype[+-]?|v(iew)?t@?ype[+-]?|abst@?ype|absv(iew)?t@?ype|for\*?|while\*?/,ESCHAR:/[ntvbrfa\\\?'"\(\[\{]/,start:"root",tokenizer:{root:[{regex:/[ \t\r\n]+/,action:{token:""}},{regex:/\(\*\)/,action:{token:"invalid"}},{regex:/\(\*/,action:{token:"comment",next:"lexing_COMMENT_block_ml"}},{regex:/\(/,action:"@brackets"},{regex:/\)/,action:"@brackets"},{regex:/\[/,action:"@brackets"},{regex:/\]/,action:"@brackets"},{regex:/\{/,action:"@brackets"},{regex:/\}/,action:"@brackets"},{regex:/,\(/,action:"@brackets"},{regex:/,/,action:{token:"delimiter.comma"}},{regex:/;/,action:{token:"delimiter.semicolon"}},{regex:/@\(/,action:"@brackets"},{regex:/@\[/,action:"@brackets"},{regex:/@\{/,action:"@brackets"},{regex:/:</,action:{token:"keyword",next:"@lexing_EFFECT_commaseq0"}},{regex:/\.@symbolic+/,action:{token:"identifier.sym"}},{regex:/\.@digit*@fexponent@FLOATSP*/,action:{token:"number.float"}},{regex:/\.@digit+/,action:{token:"number.float"}},{regex:/\$@IDENTFST@IDENTRST*/,action:{cases:{"@keywords_dlr":{token:"keyword.dlr"},"@default":{token:"namespace"}}}},{regex:/\#@IDENTFST@IDENTRST*/,action:{cases:{"@keywords_srp":{token:"keyword.srp"},"@default":{token:"identifier"}}}},{regex:/%\(/,action:{token:"delimiter.parenthesis"}},{regex:/^%{(#|\^|\$)?/,action:{token:"keyword",next:"@lexing_EXTCODE",nextEmbedded:"text/javascript"}},{regex:/^%}/,action:{token:"keyword"}},{regex:/'\(/,action:{token:"delimiter.parenthesis"}},{regex:/'\[/,action:{token:"delimiter.bracket"}},{regex:/'\{/,action:{token:"delimiter.brace"}},[/(')(\\@ESCHAR|\\[xX]@xdigit+|\\@digit+)(')/,["string","string.escape","string"]],[/'[^\\']'/,"string"],[/"/,"string.quote","@lexing_DQUOTE"],{regex:/`\(/,action:"@brackets"},{regex:/\\/,action:{token:"punctuation"}},{regex:/@irregular_keywords(?!@IDENTRST)/,action:{token:"keyword"}},{regex:/@IDENTFST@IDENTRST*[<!\[]?/,action:{cases:{"@keywords":{token:"keyword"},"@keywords_types":{token:"type"},"@default":{token:"identifier"}}}},{regex:/\/\/\/\//,action:{token:"comment",next:"@lexing_COMMENT_rest"}},{regex:/\/\/.*$/,action:{token:"comment"}},{regex:/\/\*/,action:{token:"comment",next:"@lexing_COMMENT_block_c"}},{regex:/-<|=</,action:{token:"keyword",next:"@lexing_EFFECT_commaseq0"}},{regex:/@symbolic+/,action:{cases:{"@operators":"keyword","@default":"operator"}}},{regex:/0[xX]@xdigit+(@hexiexp|@fexponent_bin)@FLOATSP*/,action:{token:"number.float"}},{regex:/0[xX]@xdigit+@INTSP*/,action:{token:"number.hex"}},{regex:/0[0-7]+(?![0-9])@INTSP*/,action:{token:"number.octal"}},{regex:/@digit+(@fexponent|@deciexp)@FLOATSP*/,action:{token:"number.float"}},{regex:/@digit@digitseq0@INTSP*/,action:{token:"number.decimal"}},{regex:/@digit+@INTSP*/,action:{token:"number"}}],lexing_COMMENT_block_ml:[[/[^\(\*]+/,"comment"],[/\(\*/,"comment","@push"],[/\(\*/,"comment.invalid"],[/\*\)/,"comment","@pop"],[/\*/,"comment"]],lexing_COMMENT_block_c:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],lexing_COMMENT_rest:[[/$/,"comment","@pop"],[/.*/,"comment"]],lexing_EFFECT_commaseq0:[{regex:/@IDENTFST@IDENTRST+|@digit+/,action:{cases:{"@keywords_effects":{token:"type.effect"},"@default":{token:"identifier"}}}},{regex:/,/,action:{token:"punctuation"}},{regex:/>/,action:{token:"@rematch",next:"@pop"}}],lexing_EXTCODE:[{regex:/^%}/,action:{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}},{regex:/[^%]+/,action:""}],lexing_DQUOTE:[{regex:/"/,action:{token:"string.quote",next:"@pop"}},{regex:/(\{\$)(@IDENTFST@IDENTRST*)(\})/,action:[{token:"string.escape"},{token:"identifier"},{token:"string.escape"}]},{regex:/\\$/,action:{token:"string.escape"}},{regex:/\\(@ESCHAR|[xX]@xdigit+|@digit+)/,action:{token:"string.escape"}},{regex:/[^\\"]+/,action:{token:"string"}}]}}}}]);
//# sourceMappingURL=8347.649393e6.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/8347.649393e6.chunk.js
|
8347.649393e6.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[2402],{72402:function(e,n,o){o.r(n),o.d(n,{conf:function(){return t},language:function(){return r}});var t={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}]},r={defaultToken:"",tokenPostfix:".ecl",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],pounds:["append","break","declare","demangle","end","for","getdatatype","if","inmodule","loop","mangle","onwarning","option","set","stored","uniquename"].join("|"),keywords:["__compressed__","after","all","and","any","as","atmost","before","beginc","best","between","case","cluster","compressed","compression","const","counter","csv","default","descend","embed","encoding","encrypt","end","endc","endembed","endmacro","enum","escape","except","exclusive","expire","export","extend","fail","few","fileposition","first","flat","forward","from","full","function","functionmacro","group","grouped","heading","hole","ifblock","import","in","inner","interface","internal","joined","keep","keyed","last","left","limit","linkcounted","literal","little_endian","load","local","locale","lookup","lzw","macro","many","maxcount","maxlength","min skew","module","mofn","multiple","named","namespace","nocase","noroot","noscan","nosort","not","noxpath","of","onfail","only","opt","or","outer","overwrite","packed","partition","penalty","physicallength","pipe","prefetch","quote","record","repeat","retry","return","right","right1","right2","rows","rowset","scan","scope","self","separator","service","shared","skew","skip","smart","soapaction","sql","stable","store","terminator","thor","threshold","timelimit","timeout","token","transform","trim","type","unicodeorder","unordered","unsorted","unstable","update","use","validate","virtual","whole","width","wild","within","wnotrim","xml","xpath"],functions:["abs","acos","aggregate","allnodes","apply","ascii","asin","assert","asstring","atan","atan2","ave","build","buildindex","case","catch","choose","choosen","choosesets","clustersize","combine","correlation","cos","cosh","count","covariance","cron","dataset","dedup","define","denormalize","dictionary","distribute","distributed","distribution","ebcdic","enth","error","evaluate","event","eventextra","eventname","exists","exp","fail","failcode","failmessage","fetch","fromunicode","fromxml","getenv","getisvalid","global","graph","group","hash","hash32","hash64","hashcrc","hashmd5","having","httpcall","httpheader","if","iff","index","intformat","isvalid","iterate","join","keydiff","keypatch","keyunicode","length","library","limit","ln","loadxml","local","log","loop","map","matched","matchlength","matchposition","matchtext","matchunicode","max","merge","mergejoin","min","nofold","nolocal","nonempty","normalize","nothor","notify","output","parallel","parse","pipe","power","preload","process","project","pull","random","range","rank","ranked","realformat","recordof","regexfind","regexreplace","regroup","rejected","rollup","round","roundup","row","rowdiff","sample","sequential","set","sin","sinh","sizeof","soapcall","sort","sorted","sqrt","stepped","stored","sum","table","tan","tanh","thisnode","topn","tounicode","toxml","transfer","transform","trim","truncate","typeof","ungroup","unicodeorder","variance","wait","which","workunit","xmldecode","xmlencode","xmltext","xmlunicode"],typesint:["integer","unsigned"].join("|"),typesnum:["data","qstring","string","unicode","utf8","varstring","varunicode"],typesone:["ascii","big_endian","boolean","data","decimal","ebcdic","grouped","integer","linkcounted","pattern","qstring","real","record","rule","set of","streamed","string","token","udecimal","unicode","unsigned","utf8","varstring","varunicode"].join("|"),operators:["+","-","/",":=","<","<>","=",">","\\","and","in","not","or"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/@typesint[4|8]/,"type"],[/#(@pounds)/,"type"],[/@typesone/,"type"],[/[a-zA-Z_$][\w-$]*/,{cases:{"@functions":"keyword.function","@keywords":"keyword","@operators":"operator"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]]}}}}]);
//# sourceMappingURL=2402.e66e47e8.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/2402.e66e47e8.chunk.js
|
2402.e66e47e8.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[1989],{1989:function(e,o,n){n.r(o),n.d(o,{conf:function(){return t},language:function(){return s}});var t={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".pascaligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["begin","block","case","const","else","end","fail","for","from","function","if","is","nil","of","remove","return","skip","then","type","var","while","with","option","None","transaction"],typeKeywords:["bool","int","list","map","nat","record","string","unit","address","map","mtz","xtz"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}}]);
//# sourceMappingURL=1989.ee922c62.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/1989.ee922c62.chunk.js
|
1989.ee922c62.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[7117],{27117:function(e,t,n){n.r(t),n.d(t,{TagAngleInterpolationBracket:function(){return w},TagAngleInterpolationDollar:function(){return B},TagAutoInterpolationBracket:function(){return $},TagAutoInterpolationDollar:function(){return T},TagBracketInterpolationBracket:function(){return h},TagBracketInterpolationDollar:function(){return C}});var o,i,_=n(4942),a=n(1413),r=n(37762),c=n(94389),u=Object.defineProperty,s=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,k=function(e,t,n,o){if(t&&"object"===typeof t||"function"===typeof t){var i,_=(0,r.Z)(d(t));try{var a=function(){var _=i.value;l.call(e,_)||_===n||u(e,_,{get:function(){return t[_]},enumerable:!(o=s(t,_))||o.enumerable})};for(_.s();!(i=_.n()).done;)a()}catch(c){_.e(c)}finally{_.f()}}return e},p={};k(p,o=c,"default"),i&&k(i,o,"default");var g=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],A=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],m={close:">",id:"angle",open:"<"},f={close:"\\]",id:"bracket",open:"\\["},F={close:"[>\\]]",id:"auto",open:"[<\\[]"},b={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},x={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function Z(e){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:["".concat(e.open,"--"),"--".concat(e.close)]},autoCloseBefore:"\n\r\t }]),.:;=",autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("".concat(e.open,"#(?:").concat(A.join("|"),")([^/").concat(e.close,"]*(?!/)").concat(e.close,")[^").concat(e.open,"]*$")),end:new RegExp("".concat(e.open,"/#(?:").concat(A.join("|"),")[\\r\\n\\t ]*>"))}},onEnterRules:[{beforeText:new RegExp("".concat(e.open,"#(?!(?:").concat(g.join("|"),"))([a-zA-Z_]+)([^/").concat(e.close,"]*(?!/)").concat(e.close,")[^").concat(e.open,"]*$")),afterText:new RegExp("^".concat(e.open,"/#([a-zA-Z_]+)[\\r\\n\\t ]*").concat(e.close,"$")),action:{indentAction:p.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("".concat(e.open,"#(?!(?:").concat(g.join("|"),"))([a-zA-Z_]+)([^/").concat(e.close,"]*(?!/)").concat(e.close,")[^").concat(e.open,"]*$")),action:{indentAction:p.languages.IndentAction.Indent}}]}}function D(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:"\n\r\t }]),.:;=",autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("[<\\[]#(?:".concat(A.join("|"),")([^/>\\]]*(?!/)[>\\]])[^<\\[]*$")),end:new RegExp("[<\\[]/#(?:".concat(A.join("|"),")[\\r\\n\\t ]*>"))}},onEnterRules:[{beforeText:new RegExp("[<\\[]#(?!(?:".concat(g.join("|"),"))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$")),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:p.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("[<\\[]#(?!(?:".concat(g.join("|"),"))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$")),action:{indentAction:p.languages.IndentAction.Indent}}]}}function E(e,t){var n,o,i,r,c,u="_".concat(e.id,"_").concat(t.id),s=function(e){return e.replace(/__id__/g,u)},d=function(e){var t=e.source.replace(/__id__/g,u);return new RegExp(t,e.flags)};return c={unicode:!0,includeLF:!1,start:s("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}]},(0,_.Z)(c,s("open__id__"),new RegExp(e.open)),(0,_.Z)(c,s("close__id__"),new RegExp(e.close)),(0,_.Z)(c,s("iOpen1__id__"),new RegExp(t.open1)),(0,_.Z)(c,s("iOpen2__id__"),new RegExp(t.open2)),(0,_.Z)(c,s("iClose__id__"),new RegExp(t.close)),(0,_.Z)(c,s("startTag__id__"),d(/(@open__id__)(#)/)),(0,_.Z)(c,s("endTag__id__"),d(/(@open__id__)(\/#)/)),(0,_.Z)(c,s("startOrEndTag__id__"),d(/(@open__id__)(\/?#)/)),(0,_.Z)(c,s("closeTag1__id__"),d(/((?:@blank)*)(@close__id__)/)),(0,_.Z)(c,s("closeTag2__id__"),d(/((?:@blank)*\/?)(@close__id__)/)),(0,_.Z)(c,"blank",/[ \t\n\r]/),(0,_.Z)(c,"keywords",["false","true","in","as","using"]),(0,_.Z)(c,"directiveStartCloseTag1",/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/),(0,_.Z)(c,"directiveStartCloseTag2",/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/),(0,_.Z)(c,"directiveStartBlank",/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/),(0,_.Z)(c,"directiveEndCloseTag1",/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/),(0,_.Z)(c,"escapedChar",/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/),(0,_.Z)(c,"asciiDigit",/[0-9]/),(0,_.Z)(c,"integer",/[0-9]+/),(0,_.Z)(c,"nonEscapedIdStartChar",/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/),(0,_.Z)(c,"escapedIdChar",/\\[\-\.:#]/),(0,_.Z)(c,"idStartChar",/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/),(0,_.Z)(c,"id",/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/),(0,_.Z)(c,"specialHashKeys",/\*\*|\*|false|true|in|as|using/),(0,_.Z)(c,"namedSymbols",/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/),(0,_.Z)(c,"arrows",["->","->"]),(0,_.Z)(c,"delimiters",[";",":",",","."]),(0,_.Z)(c,"stringOperators",["lte","lt","gte","gt"]),(0,_.Z)(c,"noParseTags",["noparse","noParse","comment"]),(0,_.Z)(c,"tokenizer",(r={},(0,_.Z)(r,s("default__id__"),[{include:s("@directive_token__id__")},{include:s("@interpolation_and_text_token__id__")}]),(0,_.Z)(r,s("fmExpression__id__.directive"),[{include:s("@blank_and_expression_comment_token__id__")},{include:s("@directive_end_token__id__")},{include:s("@expression_token__id__")}]),(0,_.Z)(r,s("fmExpression__id__.interpolation"),[{include:s("@blank_and_expression_comment_token__id__")},{include:s("@expression_token__id__")},{include:s("@greater_operators_token__id__")}]),(0,_.Z)(r,s("inParen__id__.plain"),[{include:s("@blank_and_expression_comment_token__id__")},{include:s("@directive_end_token__id__")},{include:s("@expression_token__id__")}]),(0,_.Z)(r,s("inParen__id__.gt"),[{include:s("@blank_and_expression_comment_token__id__")},{include:s("@expression_token__id__")},{include:s("@greater_operators_token__id__")}]),(0,_.Z)(r,s("noSpaceExpression__id__"),[{include:s("@no_space_expression_end_token__id__")},{include:s("@directive_end_token__id__")},{include:s("@expression_token__id__")}]),(0,_.Z)(r,s("unifiedCall__id__"),[{include:s("@unified_call_token__id__")}]),(0,_.Z)(r,s("singleString__id__"),[{include:s("@string_single_token__id__")}]),(0,_.Z)(r,s("doubleString__id__"),[{include:s("@string_double_token__id__")}]),(0,_.Z)(r,s("rawSingleString__id__"),[{include:s("@string_single_raw_token__id__")}]),(0,_.Z)(r,s("rawDoubleString__id__"),[{include:s("@string_double_raw_token__id__")}]),(0,_.Z)(r,s("expressionComment__id__"),[{include:s("@expression_comment_token__id__")}]),(0,_.Z)(r,s("noParse__id__"),[{include:s("@no_parse_token__id__")}]),(0,_.Z)(r,s("terseComment__id__"),[{include:s("@terse_comment_token__id__")}]),(0,_.Z)(r,s("directive_token__id__"),[[d(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:"@default_angle_".concat(t.id)},"$1==[":{token:"@rematch",switchTo:"@default_bracket_".concat(t.id)}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:s("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[d(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:"@default_angle_".concat(t.id)},"$1==[":{token:"@rematch",switchTo:"@default_bracket_".concat(t.id)}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[d(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:"@default_angle_".concat(t.id)},"$1==[":{token:"@rematch",switchTo:"@default_bracket_".concat(t.id)}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:s("@fmExpression__id__.directive")}]],[d(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:"@default_angle_".concat(t.id)},"$1==[":{token:"@rematch",switchTo:"@default_bracket_".concat(t.id)}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[d(/(@open__id__)(@)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:"@default_angle_".concat(t.id)},"$1==[":{token:"@rematch",switchTo:"@default_bracket_".concat(t.id)}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:s("@unifiedCall__id__")}]],[d(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[d(/(@open__id__)#--/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:"@default_angle_".concat(t.id)},"$1==[":{token:"@rematch",switchTo:"@default_bracket_".concat(t.id)}}}:{token:"comment",next:s("@terseComment__id__")}],[d(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),"auto"===e.id?{cases:{"$1==<":{token:"@rematch",switchTo:"@default_angle_".concat(t.id)},"$1==[":{token:"@rematch",switchTo:"@default_bracket_".concat(t.id)}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:s("@fmExpression__id__.directive")}]]]),(0,_.Z)(r,s("interpolation_and_text_token__id__"),[[d(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:"bracket"===t.id?"@brackets.interpolation":"delimiter.interpolation"},{token:"bracket"===t.id?"delimiter.interpolation":"@brackets.interpolation",next:s("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]]),(0,_.Z)(r,s("string_single_token__id__"),[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]]),(0,_.Z)(r,s("string_double_token__id__"),[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]]),(0,_.Z)(r,s("string_single_raw_token__id__"),[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]]),(0,_.Z)(r,s("string_double_raw_token__id__"),[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]]),(0,_.Z)(r,s("expression_token__id__"),[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:s("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:s("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:s("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:s("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:s("@inParen__id__.gt")},"@default":{token:"@brackets",next:s("@inParen__id__.plain")}}},"\\]":{cases:(0,a.Z)((0,a.Z)((0,a.Z)({},"bracket"===t.id?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{}),"bracket"===e.id?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{}),{},(n={},(0,_.Z)(n,s("$S1==inParen__id__"),{token:"@brackets",next:"@pop"}),(0,_.Z)(n,"@default",{token:"@brackets"}),n))},"\\(":{token:"@brackets",next:s("@inParen__id__.gt")},"\\)":{cases:(o={},(0,_.Z)(o,s("$S1==inParen__id__"),{token:"@brackets",next:"@pop"}),(0,_.Z)(o,"@default",{token:"@brackets"}),o)},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:s("@inParen__id__.gt")},"@default":{token:"@brackets",next:s("@inParen__id__.plain")}}},"\\}":{cases:(0,a.Z)((0,a.Z)({},"bracket"===t.id?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}),{},(i={},(0,_.Z)(i,s("$S1==inParen__id__"),{token:"@brackets",next:"@pop"}),(0,_.Z)(i,"@default",{token:"@brackets"}),i))}}}],[/\$\{/,{token:"delimiter.invalid"}]]),(0,_.Z)(r,s("blank_and_expression_comment_token__id__"),[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:s("@expressionComment__id__")}]]),(0,_.Z)(r,s("directive_end_token__id__"),[[/>/,"bracket"===e.id?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[d(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]]),(0,_.Z)(r,s("greater_operators_token__id__"),[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]]),(0,_.Z)(r,s("no_space_expression_end_token__id__"),[[/(?:@blank)+/,{token:"",switchTo:s("@fmExpression__id__.directive")}]]),(0,_.Z)(r,s("unified_call_token__id__"),[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:s("@fmExpression__id__.directive")}]],[d(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:s("@noSpaceExpression__id__")}]]),(0,_.Z)(r,s("no_parse_token__id__"),[[d(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]]),(0,_.Z)(r,s("expression_comment_token__id__"),[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]]),(0,_.Z)(r,s("terse_comment_token__id__"),[[d(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]),r)),c}function v(e){var t=E(m,e),n=E(f,e),o=E(F,e);return(0,a.Z)((0,a.Z)((0,a.Z)((0,a.Z)({},t),n),o),{},{unicode:!0,includeLF:!1,start:"default_auto_".concat(e.id),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:(0,a.Z)((0,a.Z)((0,a.Z)({},t.tokenizer),n.tokenizer),o.tokenizer)})}var B={conf:Z(m),language:E(m,b)},C={conf:Z(f),language:E(f,b)},w={conf:Z(m),language:E(m,x)},h={conf:Z(f),language:E(f,x)},T={conf:D(),language:v(b)},$={conf:D(),language:v(x)}}}]);
//# sourceMappingURL=7117.b2e9eb70.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/7117.b2e9eb70.chunk.js
|
7117.b2e9eb70.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[7894],{27894:function(e,n,t){t.r(n),t.d(n,{conf:function(){return b},language:function(){return f}});var r,o,a=t(37762),l=t(94389),i=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,d=function(e,n,t,r){if(n&&"object"===typeof n||"function"===typeof n){var o,l=(0,a.Z)(u(n));try{var d=function(){var a=o.value;s.call(e,a)||a===t||i(e,a,{get:function(){return n[a]},enumerable:!(r=c(n,a))||r.enumerable})};for(l.s();!(o=l.n()).done;)d()}catch(m){l.e(m)}finally{l.f()}}return e},m={};d(m,r=l,"default"),o&&d(o,r,"default");var b={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:m.languages.IndentAction.Indent}}]},f={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|.*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/[^#]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}}}}]);
//# sourceMappingURL=7894.f8f70466.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/7894.f8f70466.chunk.js
|
7894.f8f70466.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[8501],{38501:function(e,o,r){r.r(o),r.d(o,{conf:function(){return t},language:function(){return a}});var t={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},a={defaultToken:"",tokenPostfix:".r",roxygen:["@alias","@aliases","@assignee","@author","@backref","@callGraph","@callGraphDepth","@callGraphPrimitives","@concept","@describeIn","@description","@details","@docType","@encoding","@evalNamespace","@evalRd","@example","@examples","@export","@exportClass","@exportMethod","@exportPattern","@family","@field","@formals","@format","@import","@importClassesFrom","@importFrom","@importMethodsFrom","@include","@inherit","@inheritDotParams","@inheritParams","@inheritSection","@keywords","@md","@method","@name","@noMd","@noRd","@note","@param","@rawNamespace","@rawRd","@rdname","@references","@return","@S3method","@section","@seealso","@setClass","@slot","@source","@template","@templateVar","@title","@TODO","@usage","@useDynLib"],constants:["NULL","FALSE","TRUE","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","T","F","LETTERS","letters","month.abb","month.name","pi","R.version.string"],keywords:["break","next","return","if","else","for","in","repeat","while","array","category","character","complex","double","function","integer","list","logical","matrix","numeric","vector","data.frame","factor","library","require","attach","detach","source"],special:["\\n","\\r","\\t","\\b","\\a","\\f","\\v","\\'",'\\"',"\\\\"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@numbers"},{include:"@strings"},[/[{}\[\]()]/,"@brackets"],{include:"@operators"},[/#'$/,"comment.doc"],[/#'/,"comment.doc","@roxygen"],[/(^#.*$)/,"comment"],[/\s+/,"white"],[/[,:;]/,"delimiter"],[/@[a-zA-Z]\w*/,"tag"],[/[a-zA-Z]\w*/,{cases:{"@keywords":"keyword","@constants":"constant","@default":"identifier"}}]],roxygen:[[/@\w+/,{cases:{"@roxygen":"tag","@eos":{token:"comment.doc",next:"@pop"},"@default":"comment.doc"}}],[/\s+/,{cases:{"@eos":{token:"comment.doc",next:"@pop"},"@default":"comment.doc"}}],[/.*/,{token:"comment.doc",next:"@pop"}]],numbers:[[/0[xX][0-9a-fA-F]+/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?/,"number"]],operators:[[/<{1,2}-/,"operator"],[/->{1,2}/,"operator"],[/%[^%\s]+%/,"operator"],[/\*\*/,"operator"],[/%%/,"operator"],[/&&/,"operator"],[/\|\|/,"operator"],[/<</,"operator"],[/>>/,"operator"],[/[-+=&|!<>^~*/:$]/,"operator"]],strings:[[/'/,"string.escape","@stringBody"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/\\./,{cases:{"@special":"string","@default":"error-token"}}],[/'/,"string.escape","@popall"],[/./,"string"]],dblStringBody:[[/\\./,{cases:{"@special":"string","@default":"error-token"}}],[/"/,"string.escape","@popall"],[/./,"string"]]}}}}]);
//# sourceMappingURL=8501.ea0cd3a2.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/8501.ea0cd3a2.chunk.js
|
8501.ea0cd3a2.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[7436],{67436:function(x,e,i){i.r(e),i.d(e,{conf:function(){return d},language:function(){return f}});var d={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:'"',close:'"',notIn:["string","comment"]},{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]}]},f={defaultToken:"",tokenPostfix:".sol",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"},{token:"delimiter.angle",open:"<",close:">"}],keywords:["pragma","solidity","contract","library","using","struct","function","modifier","constructor","address","string","bool","Int","Uint","Byte","Fixed","Ufixed","int","int8","int16","int24","int32","int40","int48","int56","int64","int72","int80","int88","int96","int104","int112","int120","int128","int136","int144","int152","int160","int168","int176","int184","int192","int200","int208","int216","int224","int232","int240","int248","int256","uint","uint8","uint16","uint24","uint32","uint40","uint48","uint56","uint64","uint72","uint80","uint88","uint96","uint104","uint112","uint120","uint128","uint136","uint144","uint152","uint160","uint168","uint176","uint184","uint192","uint200","uint208","uint216","uint224","uint232","uint240","uint248","uint256","byte","bytes","bytes1","bytes2","bytes3","bytes4","bytes5","bytes6","bytes7","bytes8","bytes9","bytes10","bytes11","bytes12","bytes13","bytes14","bytes15","bytes16","bytes17","bytes18","bytes19","bytes20","bytes21","bytes22","bytes23","bytes24","bytes25","bytes26","bytes27","bytes28","bytes29","bytes30","bytes31","bytes32","fixed","fixed0x8","fixed0x16","fixed0x24","fixed0x32","fixed0x40","fixed0x48","fixed0x56","fixed0x64","fixed0x72","fixed0x80","fixed0x88","fixed0x96","fixed0x104","fixed0x112","fixed0x120","fixed0x128","fixed0x136","fixed0x144","fixed0x152","fixed0x160","fixed0x168","fixed0x176","fixed0x184","fixed0x192","fixed0x200","fixed0x208","fixed0x216","fixed0x224","fixed0x232","fixed0x240","fixed0x248","fixed0x256","fixed8x8","fixed8x16","fixed8x24","fixed8x32","fixed8x40","fixed8x48","fixed8x56","fixed8x64","fixed8x72","fixed8x80","fixed8x88","fixed8x96","fixed8x104","fixed8x112","fixed8x120","fixed8x128","fixed8x136","fixed8x144","fixed8x152","fixed8x160","fixed8x168","fixed8x176","fixed8x184","fixed8x192","fixed8x200","fixed8x208","fixed8x216","fixed8x224","fixed8x232","fixed8x240","fixed8x248","fixed16x8","fixed16x16","fixed16x24","fixed16x32","fixed16x40","fixed16x48","fixed16x56","fixed16x64","fixed16x72","fixed16x80","fixed16x88","fixed16x96","fixed16x104","fixed16x112","fixed16x120","fixed16x128","fixed16x136","fixed16x144","fixed16x152","fixed16x160","fixed16x168","fixed16x176","fixed16x184","fixed16x192","fixed16x200","fixed16x208","fixed16x216","fixed16x224","fixed16x232","fixed16x240","fixed24x8","fixed24x16","fixed24x24","fixed24x32","fixed24x40","fixed24x48","fixed24x56","fixed24x64","fixed24x72","fixed24x80","fixed24x88","fixed24x96","fixed24x104","fixed24x112","fixed24x120","fixed24x128","fixed24x136","fixed24x144","fixed24x152","fixed24x160","fixed24x168","fixed24x176","fixed24x184","fixed24x192","fixed24x200","fixed24x208","fixed24x216","fixed24x224","fixed24x232","fixed32x8","fixed32x16","fixed32x24","fixed32x32","fixed32x40","fixed32x48","fixed32x56","fixed32x64","fixed32x72","fixed32x80","fixed32x88","fixed32x96","fixed32x104","fixed32x112","fixed32x120","fixed32x128","fixed32x136","fixed32x144","fixed32x152","fixed32x160","fixed32x168","fixed32x176","fixed32x184","fixed32x192","fixed32x200","fixed32x208","fixed32x216","fixed32x224","fixed40x8","fixed40x16","fixed40x24","fixed40x32","fixed40x40","fixed40x48","fixed40x56","fixed40x64","fixed40x72","fixed40x80","fixed40x88","fixed40x96","fixed40x104","fixed40x112","fixed40x120","fixed40x128","fixed40x136","fixed40x144","fixed40x152","fixed40x160","fixed40x168","fixed40x176","fixed40x184","fixed40x192","fixed40x200","fixed40x208","fixed40x216","fixed48x8","fixed48x16","fixed48x24","fixed48x32","fixed48x40","fixed48x48","fixed48x56","fixed48x64","fixed48x72","fixed48x80","fixed48x88","fixed48x96","fixed48x104","fixed48x112","fixed48x120","fixed48x128","fixed48x136","fixed48x144","fixed48x152","fixed48x160","fixed48x168","fixed48x176","fixed48x184","fixed48x192","fixed48x200","fixed48x208","fixed56x8","fixed56x16","fixed56x24","fixed56x32","fixed56x40","fixed56x48","fixed56x56","fixed56x64","fixed56x72","fixed56x80","fixed56x88","fixed56x96","fixed56x104","fixed56x112","fixed56x120","fixed56x128","fixed56x136","fixed56x144","fixed56x152","fixed56x160","fixed56x168","fixed56x176","fixed56x184","fixed56x192","fixed56x200","fixed64x8","fixed64x16","fixed64x24","fixed64x32","fixed64x40","fixed64x48","fixed64x56","fixed64x64","fixed64x72","fixed64x80","fixed64x88","fixed64x96","fixed64x104","fixed64x112","fixed64x120","fixed64x128","fixed64x136","fixed64x144","fixed64x152","fixed64x160","fixed64x168","fixed64x176","fixed64x184","fixed64x192","fixed72x8","fixed72x16","fixed72x24","fixed72x32","fixed72x40","fixed72x48","fixed72x56","fixed72x64","fixed72x72","fixed72x80","fixed72x88","fixed72x96","fixed72x104","fixed72x112","fixed72x120","fixed72x128","fixed72x136","fixed72x144","fixed72x152","fixed72x160","fixed72x168","fixed72x176","fixed72x184","fixed80x8","fixed80x16","fixed80x24","fixed80x32","fixed80x40","fixed80x48","fixed80x56","fixed80x64","fixed80x72","fixed80x80","fixed80x88","fixed80x96","fixed80x104","fixed80x112","fixed80x120","fixed80x128","fixed80x136","fixed80x144","fixed80x152","fixed80x160","fixed80x168","fixed80x176","fixed88x8","fixed88x16","fixed88x24","fixed88x32","fixed88x40","fixed88x48","fixed88x56","fixed88x64","fixed88x72","fixed88x80","fixed88x88","fixed88x96","fixed88x104","fixed88x112","fixed88x120","fixed88x128","fixed88x136","fixed88x144","fixed88x152","fixed88x160","fixed88x168","fixed96x8","fixed96x16","fixed96x24","fixed96x32","fixed96x40","fixed96x48","fixed96x56","fixed96x64","fixed96x72","fixed96x80","fixed96x88","fixed96x96","fixed96x104","fixed96x112","fixed96x120","fixed96x128","fixed96x136","fixed96x144","fixed96x152","fixed96x160","fixed104x8","fixed104x16","fixed104x24","fixed104x32","fixed104x40","fixed104x48","fixed104x56","fixed104x64","fixed104x72","fixed104x80","fixed104x88","fixed104x96","fixed104x104","fixed104x112","fixed104x120","fixed104x128","fixed104x136","fixed104x144","fixed104x152","fixed112x8","fixed112x16","fixed112x24","fixed112x32","fixed112x40","fixed112x48","fixed112x56","fixed112x64","fixed112x72","fixed112x80","fixed112x88","fixed112x96","fixed112x104","fixed112x112","fixed112x120","fixed112x128","fixed112x136","fixed112x144","fixed120x8","fixed120x16","fixed120x24","fixed120x32","fixed120x40","fixed120x48","fixed120x56","fixed120x64","fixed120x72","fixed120x80","fixed120x88","fixed120x96","fixed120x104","fixed120x112","fixed120x120","fixed120x128","fixed120x136","fixed128x8","fixed128x16","fixed128x24","fixed128x32","fixed128x40","fixed128x48","fixed128x56","fixed128x64","fixed128x72","fixed128x80","fixed128x88","fixed128x96","fixed128x104","fixed128x112","fixed128x120","fixed128x128","fixed136x8","fixed136x16","fixed136x24","fixed136x32","fixed136x40","fixed136x48","fixed136x56","fixed136x64","fixed136x72","fixed136x80","fixed136x88","fixed136x96","fixed136x104","fixed136x112","fixed136x120","fixed144x8","fixed144x16","fixed144x24","fixed144x32","fixed144x40","fixed144x48","fixed144x56","fixed144x64","fixed144x72","fixed144x80","fixed144x88","fixed144x96","fixed144x104","fixed144x112","fixed152x8","fixed152x16","fixed152x24","fixed152x32","fixed152x40","fixed152x48","fixed152x56","fixed152x64","fixed152x72","fixed152x80","fixed152x88","fixed152x96","fixed152x104","fixed160x8","fixed160x16","fixed160x24","fixed160x32","fixed160x40","fixed160x48","fixed160x56","fixed160x64","fixed160x72","fixed160x80","fixed160x88","fixed160x96","fixed168x8","fixed168x16","fixed168x24","fixed168x32","fixed168x40","fixed168x48","fixed168x56","fixed168x64","fixed168x72","fixed168x80","fixed168x88","fixed176x8","fixed176x16","fixed176x24","fixed176x32","fixed176x40","fixed176x48","fixed176x56","fixed176x64","fixed176x72","fixed176x80","fixed184x8","fixed184x16","fixed184x24","fixed184x32","fixed184x40","fixed184x48","fixed184x56","fixed184x64","fixed184x72","fixed192x8","fixed192x16","fixed192x24","fixed192x32","fixed192x40","fixed192x48","fixed192x56","fixed192x64","fixed200x8","fixed200x16","fixed200x24","fixed200x32","fixed200x40","fixed200x48","fixed200x56","fixed208x8","fixed208x16","fixed208x24","fixed208x32","fixed208x40","fixed208x48","fixed216x8","fixed216x16","fixed216x24","fixed216x32","fixed216x40","fixed224x8","fixed224x16","fixed224x24","fixed224x32","fixed232x8","fixed232x16","fixed232x24","fixed240x8","fixed240x16","fixed248x8","ufixed","ufixed0x8","ufixed0x16","ufixed0x24","ufixed0x32","ufixed0x40","ufixed0x48","ufixed0x56","ufixed0x64","ufixed0x72","ufixed0x80","ufixed0x88","ufixed0x96","ufixed0x104","ufixed0x112","ufixed0x120","ufixed0x128","ufixed0x136","ufixed0x144","ufixed0x152","ufixed0x160","ufixed0x168","ufixed0x176","ufixed0x184","ufixed0x192","ufixed0x200","ufixed0x208","ufixed0x216","ufixed0x224","ufixed0x232","ufixed0x240","ufixed0x248","ufixed0x256","ufixed8x8","ufixed8x16","ufixed8x24","ufixed8x32","ufixed8x40","ufixed8x48","ufixed8x56","ufixed8x64","ufixed8x72","ufixed8x80","ufixed8x88","ufixed8x96","ufixed8x104","ufixed8x112","ufixed8x120","ufixed8x128","ufixed8x136","ufixed8x144","ufixed8x152","ufixed8x160","ufixed8x168","ufixed8x176","ufixed8x184","ufixed8x192","ufixed8x200","ufixed8x208","ufixed8x216","ufixed8x224","ufixed8x232","ufixed8x240","ufixed8x248","ufixed16x8","ufixed16x16","ufixed16x24","ufixed16x32","ufixed16x40","ufixed16x48","ufixed16x56","ufixed16x64","ufixed16x72","ufixed16x80","ufixed16x88","ufixed16x96","ufixed16x104","ufixed16x112","ufixed16x120","ufixed16x128","ufixed16x136","ufixed16x144","ufixed16x152","ufixed16x160","ufixed16x168","ufixed16x176","ufixed16x184","ufixed16x192","ufixed16x200","ufixed16x208","ufixed16x216","ufixed16x224","ufixed16x232","ufixed16x240","ufixed24x8","ufixed24x16","ufixed24x24","ufixed24x32","ufixed24x40","ufixed24x48","ufixed24x56","ufixed24x64","ufixed24x72","ufixed24x80","ufixed24x88","ufixed24x96","ufixed24x104","ufixed24x112","ufixed24x120","ufixed24x128","ufixed24x136","ufixed24x144","ufixed24x152","ufixed24x160","ufixed24x168","ufixed24x176","ufixed24x184","ufixed24x192","ufixed24x200","ufixed24x208","ufixed24x216","ufixed24x224","ufixed24x232","ufixed32x8","ufixed32x16","ufixed32x24","ufixed32x32","ufixed32x40","ufixed32x48","ufixed32x56","ufixed32x64","ufixed32x72","ufixed32x80","ufixed32x88","ufixed32x96","ufixed32x104","ufixed32x112","ufixed32x120","ufixed32x128","ufixed32x136","ufixed32x144","ufixed32x152","ufixed32x160","ufixed32x168","ufixed32x176","ufixed32x184","ufixed32x192","ufixed32x200","ufixed32x208","ufixed32x216","ufixed32x224","ufixed40x8","ufixed40x16","ufixed40x24","ufixed40x32","ufixed40x40","ufixed40x48","ufixed40x56","ufixed40x64","ufixed40x72","ufixed40x80","ufixed40x88","ufixed40x96","ufixed40x104","ufixed40x112","ufixed40x120","ufixed40x128","ufixed40x136","ufixed40x144","ufixed40x152","ufixed40x160","ufixed40x168","ufixed40x176","ufixed40x184","ufixed40x192","ufixed40x200","ufixed40x208","ufixed40x216","ufixed48x8","ufixed48x16","ufixed48x24","ufixed48x32","ufixed48x40","ufixed48x48","ufixed48x56","ufixed48x64","ufixed48x72","ufixed48x80","ufixed48x88","ufixed48x96","ufixed48x104","ufixed48x112","ufixed48x120","ufixed48x128","ufixed48x136","ufixed48x144","ufixed48x152","ufixed48x160","ufixed48x168","ufixed48x176","ufixed48x184","ufixed48x192","ufixed48x200","ufixed48x208","ufixed56x8","ufixed56x16","ufixed56x24","ufixed56x32","ufixed56x40","ufixed56x48","ufixed56x56","ufixed56x64","ufixed56x72","ufixed56x80","ufixed56x88","ufixed56x96","ufixed56x104","ufixed56x112","ufixed56x120","ufixed56x128","ufixed56x136","ufixed56x144","ufixed56x152","ufixed56x160","ufixed56x168","ufixed56x176","ufixed56x184","ufixed56x192","ufixed56x200","ufixed64x8","ufixed64x16","ufixed64x24","ufixed64x32","ufixed64x40","ufixed64x48","ufixed64x56","ufixed64x64","ufixed64x72","ufixed64x80","ufixed64x88","ufixed64x96","ufixed64x104","ufixed64x112","ufixed64x120","ufixed64x128","ufixed64x136","ufixed64x144","ufixed64x152","ufixed64x160","ufixed64x168","ufixed64x176","ufixed64x184","ufixed64x192","ufixed72x8","ufixed72x16","ufixed72x24","ufixed72x32","ufixed72x40","ufixed72x48","ufixed72x56","ufixed72x64","ufixed72x72","ufixed72x80","ufixed72x88","ufixed72x96","ufixed72x104","ufixed72x112","ufixed72x120","ufixed72x128","ufixed72x136","ufixed72x144","ufixed72x152","ufixed72x160","ufixed72x168","ufixed72x176","ufixed72x184","ufixed80x8","ufixed80x16","ufixed80x24","ufixed80x32","ufixed80x40","ufixed80x48","ufixed80x56","ufixed80x64","ufixed80x72","ufixed80x80","ufixed80x88","ufixed80x96","ufixed80x104","ufixed80x112","ufixed80x120","ufixed80x128","ufixed80x136","ufixed80x144","ufixed80x152","ufixed80x160","ufixed80x168","ufixed80x176","ufixed88x8","ufixed88x16","ufixed88x24","ufixed88x32","ufixed88x40","ufixed88x48","ufixed88x56","ufixed88x64","ufixed88x72","ufixed88x80","ufixed88x88","ufixed88x96","ufixed88x104","ufixed88x112","ufixed88x120","ufixed88x128","ufixed88x136","ufixed88x144","ufixed88x152","ufixed88x160","ufixed88x168","ufixed96x8","ufixed96x16","ufixed96x24","ufixed96x32","ufixed96x40","ufixed96x48","ufixed96x56","ufixed96x64","ufixed96x72","ufixed96x80","ufixed96x88","ufixed96x96","ufixed96x104","ufixed96x112","ufixed96x120","ufixed96x128","ufixed96x136","ufixed96x144","ufixed96x152","ufixed96x160","ufixed104x8","ufixed104x16","ufixed104x24","ufixed104x32","ufixed104x40","ufixed104x48","ufixed104x56","ufixed104x64","ufixed104x72","ufixed104x80","ufixed104x88","ufixed104x96","ufixed104x104","ufixed104x112","ufixed104x120","ufixed104x128","ufixed104x136","ufixed104x144","ufixed104x152","ufixed112x8","ufixed112x16","ufixed112x24","ufixed112x32","ufixed112x40","ufixed112x48","ufixed112x56","ufixed112x64","ufixed112x72","ufixed112x80","ufixed112x88","ufixed112x96","ufixed112x104","ufixed112x112","ufixed112x120","ufixed112x128","ufixed112x136","ufixed112x144","ufixed120x8","ufixed120x16","ufixed120x24","ufixed120x32","ufixed120x40","ufixed120x48","ufixed120x56","ufixed120x64","ufixed120x72","ufixed120x80","ufixed120x88","ufixed120x96","ufixed120x104","ufixed120x112","ufixed120x120","ufixed120x128","ufixed120x136","ufixed128x8","ufixed128x16","ufixed128x24","ufixed128x32","ufixed128x40","ufixed128x48","ufixed128x56","ufixed128x64","ufixed128x72","ufixed128x80","ufixed128x88","ufixed128x96","ufixed128x104","ufixed128x112","ufixed128x120","ufixed128x128","ufixed136x8","ufixed136x16","ufixed136x24","ufixed136x32","ufixed136x40","ufixed136x48","ufixed136x56","ufixed136x64","ufixed136x72","ufixed136x80","ufixed136x88","ufixed136x96","ufixed136x104","ufixed136x112","ufixed136x120","ufixed144x8","ufixed144x16","ufixed144x24","ufixed144x32","ufixed144x40","ufixed144x48","ufixed144x56","ufixed144x64","ufixed144x72","ufixed144x80","ufixed144x88","ufixed144x96","ufixed144x104","ufixed144x112","ufixed152x8","ufixed152x16","ufixed152x24","ufixed152x32","ufixed152x40","ufixed152x48","ufixed152x56","ufixed152x64","ufixed152x72","ufixed152x80","ufixed152x88","ufixed152x96","ufixed152x104","ufixed160x8","ufixed160x16","ufixed160x24","ufixed160x32","ufixed160x40","ufixed160x48","ufixed160x56","ufixed160x64","ufixed160x72","ufixed160x80","ufixed160x88","ufixed160x96","ufixed168x8","ufixed168x16","ufixed168x24","ufixed168x32","ufixed168x40","ufixed168x48","ufixed168x56","ufixed168x64","ufixed168x72","ufixed168x80","ufixed168x88","ufixed176x8","ufixed176x16","ufixed176x24","ufixed176x32","ufixed176x40","ufixed176x48","ufixed176x56","ufixed176x64","ufixed176x72","ufixed176x80","ufixed184x8","ufixed184x16","ufixed184x24","ufixed184x32","ufixed184x40","ufixed184x48","ufixed184x56","ufixed184x64","ufixed184x72","ufixed192x8","ufixed192x16","ufixed192x24","ufixed192x32","ufixed192x40","ufixed192x48","ufixed192x56","ufixed192x64","ufixed200x8","ufixed200x16","ufixed200x24","ufixed200x32","ufixed200x40","ufixed200x48","ufixed200x56","ufixed208x8","ufixed208x16","ufixed208x24","ufixed208x32","ufixed208x40","ufixed208x48","ufixed216x8","ufixed216x16","ufixed216x24","ufixed216x32","ufixed216x40","ufixed224x8","ufixed224x16","ufixed224x24","ufixed224x32","ufixed232x8","ufixed232x16","ufixed232x24","ufixed240x8","ufixed240x16","ufixed248x8","event","enum","let","mapping","private","public","external","inherited","payable","true","false","var","import","constant","if","else","for","else","for","while","do","break","continue","throw","returns","return","suicide","new","is","this","super"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,floatsuffix:/[fFlL]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#\w+/,"keyword"],[/int\d*/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/,"number.hex"],[/0[0-7']*[0-7](@integersuffix)/,"number.octal"],[/0[bB][0-1']*[0-1](@integersuffix)/,"number.binary"],[/\d[\d']*\d(@integersuffix)/,"number"],[/\d(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]]}}}}]);
//# sourceMappingURL=7436.4e91a3a5.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/7436.4e91a3a5.chunk.js
|
7436.4e91a3a5.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[839],{80839:function(e,t,n){n.r(t),n.d(t,{conf:function(){return o},language:function(){return s}});var o={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},s={tokenPostfix:".tcl",specialFunctions:["set","unset","rename","variable","proc","coroutine","foreach","incr","append","lappend","linsert","lreplace"],mainFunctions:["if","then","elseif","else","case","switch","while","for","break","continue","return","package","namespace","catch","exit","eval","expr","uplevel","upvar"],builtinFunctions:["file","info","concat","join","lindex","list","llength","lrange","lsearch","lsort","split","array","parray","binary","format","regexp","regsub","scan","string","subst","dict","cd","clock","exec","glob","pid","pwd","close","eof","fblocked","fconfigure","fcopy","fileevent","flush","gets","open","puts","read","seek","socket","tell","interp","after","auto_execok","auto_load","auto_mkindex","auto_reset","bgerror","error","global","history","load","source","time","trace","unknown","unset","update","vwait","winfo","wm","bind","event","pack","place","grid","font","bell","clipboard","destroy","focus","grab","lower","option","raise","selection","send","tk","tkwait","tk_bisque","tk_focusNext","tk_focusPrev","tk_focusFollowsMouse","tk_popup","tk_setPalette"],symbols:/[=><!~?:&|+\-*\/\^%]+/,brackets:[{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"}],escapes:/\\(?:[abfnrtv\\"'\[\]\{\};\$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,variables:/(?:\$+(?:(?:\:\:?)?[a-zA-Z_]\w*)+)/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@specialFunctions":{token:"keyword.flow",next:"@specialFunc"},"@mainFunctions":"keyword","@builtinFunctions":"variable","@default":"operator.scss"}}],[/\s+\-+(?!\d|\.)\w*|{\*}/,"metatag"],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,"operator"],[/\$+(?:\:\:)?\{/,{token:"identifier",next:"@nestedVariable"}],[/@variables/,"type.identifier"],[/\.(?!\d|\.)[\w\-]*/,"operator.sql"],[/\d+(\.\d+)?/,"number"],[/\d+/,"number"],[/;/,"delimiter"],[/"/,{token:"string.quote",bracket:"@open",next:"@dstring"}],[/'/,{token:"string.quote",bracket:"@open",next:"@sstring"}]],dstring:[[/\[/,{token:"@brackets",next:"@nestedCall"}],[/\$+(?:\:\:)?\{/,{token:"identifier",next:"@nestedVariable"}],[/@variables/,"type.identifier"],[/[^\\$\[\]"]+/,"string"],[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],sstring:[[/\[/,{token:"@brackets",next:"@nestedCall"}],[/\$+(?:\:\:)?\{/,{token:"identifier",next:"@nestedVariable"}],[/@variables/,"type.identifier"],[/[^\\$\[\]']+/,"string"],[/@escapes/,"string.escape"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/#.*\\$/,{token:"comment",next:"@newlineComment"}],[/#.*(?!\\)$/,"comment"]],newlineComment:[[/.*\\$/,"comment"],[/.*(?!\\)$/,{token:"comment",next:"@pop"}]],nestedVariable:[[/[^\{\}\$]+/,"type.identifier"],[/\}/,{token:"identifier",next:"@pop"}]],nestedCall:[[/\[/,{token:"@brackets",next:"@nestedCall"}],[/\]/,{token:"@brackets",next:"@pop"}],{include:"root"}],specialFunc:[[/"/,{token:"string",next:"@dstring"}],[/'/,{token:"string",next:"@sstring"}],[/\S+/,{token:"type",next:"@pop"}]]}}}}]);
//# sourceMappingURL=839.87662037.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/839.87662037.chunk.js
|
839.87662037.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[7497],{57497:function(e,t,r){r.r(t),r.d(t,{conf:function(){return n},language:function(){return s}});var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#%\^\&\*\(\)\=\$\-\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{blockComment:["###","###"],lineComment:"#"},folding:{markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},s={defaultToken:"",ignoreCase:!1,tokenPostfix:".mips",regEx:/\/(?!\/\/)(?:[^\/\\]|\\.)*\/[igm]*/,keywords:[".data",".text","syscall","trap","add","addu","addi","addiu","and","andi","div","divu","mult","multu","nor","or","ori","sll","slv","sra","srav","srl","srlv","sub","subu","xor","xori","lhi","lho","lhi","llo","slt","slti","sltu","sltiu","beq","bgtz","blez","bne","j","jal","jalr","jr","lb","lbu","lh","lhu","lw","li","la","sb","sh","sw","mfhi","mflo","mthi","mtlo","move"],symbols:/[\.,\:]+/,escapes:/\\(?:[abfnrtv\\"'$]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\$[a-zA-Z_]\w*/,"variable.predefined"],[/[.a-zA-Z_]\w*/,{cases:{this:"variable.predefined","@keywords":{token:"keyword.$0"},"@default":""}}],[/[ \t\r\n]+/,""],[/#.*$/,"comment"],["///",{token:"regexp",next:"@hereregexp"}],[/^(\s*)(@regEx)/,["","regexp"]],[/(\,)(\s*)(@regEx)/,["delimiter","","regexp"]],[/(\:)(\s*)(@regEx)/,["delimiter","","regexp"]],[/@symbols/,"delimiter"],[/\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d+\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F]+/,"number.hex"],[/0[0-7]+(?!\d)/,"number.octal"],[/\d+/,"number"],[/[,.]/,"delimiter"],[/"""/,"string",'@herestring."""'],[/'''/,"string","@herestring.'''"],[/"/,{cases:{"@eos":"string","@default":{token:"string",next:'@string."'}}}],[/'/,{cases:{"@eos":"string","@default":{token:"string",next:"@string.'"}}}]],string:[[/[^"'\#\\]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/\./,"string.escape.invalid"],[/#{/,{cases:{'$S2=="':{token:"string",next:"root.interpolatedstring"},"@default":"string"}}],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/#/,"string"]],herestring:[[/("""|''')/,{cases:{"$1==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/[^#\\'"]+/,"string"],[/['"]+/,"string"],[/@escapes/,"string.escape"],[/\./,"string.escape.invalid"],[/#{/,{token:"string.quote",next:"root.interpolatedstring"}],[/#/,"string"]],comment:[[/[^#]+/,"comment"],[/#/,"comment"]],hereregexp:[[/[^\\\/#]+/,"regexp"],[/\\./,"regexp"],[/#.*$/,"comment"],["///[igm]*",{token:"regexp",next:"@pop"}],[/\//,"regexp"]]}}}}]);
//# sourceMappingURL=7497.f56048e1.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/7497.f56048e1.chunk.js
|
7497.f56048e1.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[6384],{26384:function(e,t,n){n.r(t),n.d(t,{conf:function(){return o},language:function(){return s}});var o={comments:{lineComment:"//"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}]},s={keywords:["namespace","open","as","operation","function","body","adjoint","newtype","controlled","if","elif","else","repeat","until","fixup","for","in","while","return","fail","within","apply","Adjoint","Controlled","Adj","Ctl","is","self","auto","distribute","invert","intrinsic","let","set","w/","new","not","and","or","use","borrow","using","borrowing","mutable","internal"],typeKeywords:["Unit","Int","BigInt","Double","Bool","String","Qubit","Result","Pauli","Range"],invalidKeywords:["abstract","base","bool","break","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","enum","event","explicit","extern","finally","fixed","float","foreach","goto","implicit","int","interface","lock","long","null","object","operator","out","override","params","private","protected","public","readonly","ref","sbyte","sealed","short","sizeof","stackalloc","static","string","struct","switch","this","throw","try","typeof","unit","ulong","unchecked","unsafe","ushort","virtual","void","volatile"],constants:["true","false","PauliI","PauliX","PauliY","PauliZ","One","Zero"],builtin:["X","Y","Z","H","HY","S","T","SWAP","CNOT","CCNOT","MultiX","R","RFrac","Rx","Ry","Rz","R1","R1Frac","Exp","ExpFrac","Measure","M","MultiM","Message","Length","Assert","AssertProb","AssertEqual"],operators:["and=","<-","->","*","*=","@","!","^","^=",":","::","..","==","...","=","=>",">",">=","<","<=","-","-=","!=","or=","%","%=","|","+","+=","?","/","/=","&&&","&&&=","^^^","^^^=",">>>",">>>=","<<<","<<<=","|||","|||=","~~~","_","w/","w/="],namespaceFollows:["namespace","open"],symbols:/[=><!~?:&|+\-*\/\^%@._]+/,escapes:/\\[\s\S]/,tokenizer:{root:[[/[a-zA-Z_$][\w$]*/,{cases:{"@namespaceFollows":{token:"keyword.$0",next:"@namespace"},"@typeKeywords":"type","@keywords":"keyword","@constants":"constant","@builtin":"keyword","@invalidKeywords":"invalid","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],namespace:[{include:"@whitespace"},[/[A-Za-z]\w*/,"namespace"],[/[\.=]/,"delimiter"],["","","@pop"]],whitespace:[[/[ \t\r\n]+/,"white"],[/(\/\/).*/,"comment"]]}}}}]);
//# sourceMappingURL=6384.8f33f789.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/6384.8f33f789.chunk.js
|
6384.8f33f789.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[7952],{17952:function(e,n,t){t.r(n),t.d(n,{conf:function(){return o},language:function(){return s}});var o={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".objective-c",keywords:["#import","#include","#define","#else","#endif","#if","#ifdef","#ifndef","#ident","#undef","@class","@defs","@dynamic","@encode","@end","@implementation","@interface","@package","@private","@protected","@property","@protocol","@public","@selector","@synthesize","__declspec","assign","auto","BOOL","break","bycopy","byref","case","char","Class","const","copy","continue","default","do","double","else","enum","extern","FALSE","false","float","for","goto","if","in","int","id","inout","IMP","long","nil","nonatomic","NULL","oneway","out","private","public","protected","readwrite","readonly","register","return","SEL","self","short","signed","sizeof","static","struct","super","switch","typedef","TRUE","true","union","unsigned","volatile","void","while"],decpart:/\d(_?\d)*/,decimal:/0|@decpart/,tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()<>]/,"@brackets"],[/[a-zA-Z@#]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[<>=\\+\\-\\*\\/\\^\\|\\~,]|and\\b|or\\b|not\\b]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[".","comment"]],numbers:[[/0[xX][0-9a-fA-F]*(_?[0-9a-fA-F])*/,"number.hex"],[/@decimal((\.@decpart)?([eE][\-+]?@decpart)?)[fF]*/,{cases:{"(\\d)*":"number",$0:"number.float"}}]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}}}}]);
//# sourceMappingURL=7952.29e2c950.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/7952.29e2c950.chunk.js
|
7952.29e2c950.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[5672],{75672:function(e,i,t){t.r(i),t.d(i,{conf:function(){return n},language:function(){return s}});var n={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}]},s={defaultToken:"",tokenPostfix:".cypher",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["ALL","AND","AS","ASC","ASCENDING","BY","CALL","CASE","CONTAINS","CREATE","DELETE","DESC","DESCENDING","DETACH","DISTINCT","ELSE","END","ENDS","EXISTS","IN","IS","LIMIT","MANDATORY","MATCH","MERGE","NOT","ON","ON","OPTIONAL","OR","ORDER","REMOVE","RETURN","SET","SKIP","STARTS","THEN","UNION","UNWIND","WHEN","WHERE","WITH","XOR","YIELD"],builtinLiterals:["true","TRUE","false","FALSE","null","NULL"],builtinFunctions:["abs","acos","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endNode","exists","exp","floor","head","id","keys","labels","last","left","length","log","log10","lTrim","max","min","nodes","percentileCont","percentileDisc","pi","properties","radians","rand","range","relationships","replace","reverse","right","round","rTrim","sign","sin","size","split","sqrt","startNode","stDev","stDevP","substring","sum","tail","tan","timestamp","toBoolean","toFloat","toInteger","toLower","toString","toUpper","trim","type"],operators:["+","-","*","/","%","^","=","<>","<",">","<=",">=","->","<-","--\x3e","<--"],escapes:/\\(?:[tbnrf\\"'`]|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+/,octaldigits:/[0-7]+/,hexdigits:/[0-9a-fA-F]+/,tokenizer:{root:[[/[{}[\]()]/,"@brackets"],{include:"common"}],common:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/:[a-zA-Z_][\w]*/,"type.identifier"],[/[a-zA-Z_][\w]*(?=\()/,{cases:{"@builtinFunctions":"predefined.function"}}],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":"keyword","@builtinLiterals":"predefined.literal","@default":"identifier"}}],[/`/,"identifier.escape","@identifierBacktick"],[/[;,.:|]/,"delimiter"],[/[<>=%+\-*/^]+/,{cases:{"@operators":"delimiter","@default":""}}]],numbers:[[/-?(@digits)[eE](-?(@digits))?/,"number.float"],[/-?(@digits)?\.(@digits)([eE]-?(@digits))?/,"number.float"],[/-?0x(@hexdigits)/,"number.hex"],[/-?0(@octaldigits)/,"number.octal"],[/-?(@digits)/,"number"]],strings:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@stringDouble"],[/'/,"string","@stringSingle"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/\/\/.*/,"comment"],[/[^/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[/*]/,"comment"]],stringDouble:[[/[^\\"]+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/"/,"string","@pop"]],stringSingle:[[/[^\\']+/,"string"],[/@escapes/,"string"],[/\\./,"string.invalid"],[/'/,"string","@pop"]],identifierBacktick:[[/[^\\`]+/,"identifier.escape"],[/@escapes/,"identifier.escape"],[/\\./,"identifier.escape.invalid"],[/`/,"identifier.escape","@pop"]]}}}}]);
//# sourceMappingURL=5672.f0c2440f.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/5672.f0c2440f.chunk.js
|
5672.f0c2440f.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[1251],{1251:function(e,n,o){o.r(n),o.d(n,{conf:function(){return t},language:function(){return r}});var t={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["var","end_var"],["var_input","end_var"],["var_output","end_var"],["var_in_out","end_var"],["var_temp","end_var"],["var_global","end_var"],["var_access","end_var"],["var_external","end_var"],["type","end_type"],["struct","end_struct"],["program","end_program"],["function","end_function"],["function_block","end_function_block"],["action","end_action"],["step","end_step"],["initial_step","end_step"],["transaction","end_transaction"],["configuration","end_configuration"],["tcp","end_tcp"],["recource","end_recource"],["channel","end_channel"],["library","end_library"],["folder","end_folder"],["binaries","end_binaries"],["includes","end_includes"],["sources","end_sources"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"/*",close:"*/"},{open:"'",close:"'",notIn:["string_sq"]},{open:'"',close:'"',notIn:["string_dq"]},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"var",close:"end_var"},{open:"var_input",close:"end_var"},{open:"var_output",close:"end_var"},{open:"var_in_out",close:"end_var"},{open:"var_temp",close:"end_var"},{open:"var_global",close:"end_var"},{open:"var_access",close:"end_var"},{open:"var_external",close:"end_var"},{open:"type",close:"end_type"},{open:"struct",close:"end_struct"},{open:"program",close:"end_program"},{open:"function",close:"end_function"},{open:"function_block",close:"end_function_block"},{open:"action",close:"end_action"},{open:"step",close:"end_step"},{open:"initial_step",close:"end_step"},{open:"transaction",close:"end_transaction"},{open:"configuration",close:"end_configuration"},{open:"tcp",close:"end_tcp"},{open:"recource",close:"end_recource"},{open:"channel",close:"end_channel"},{open:"library",close:"end_library"},{open:"folder",close:"end_folder"},{open:"binaries",close:"end_binaries"},{open:"includes",close:"end_includes"},{open:"sources",close:"end_sources"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},r={defaultToken:"",tokenPostfix:".st",ignoreCase:!0,brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["if","end_if","elsif","else","case","of","to","__try","__catch","__finally","do","with","by","while","repeat","end_while","end_repeat","end_case","for","end_for","task","retain","non_retain","constant","with","at","exit","return","interval","priority","address","port","on_channel","then","iec","file","uses","version","packagetype","displayname","copyright","summary","vendor","common_source","from","extends"],constant:["false","true","null"],defineKeywords:["var","var_input","var_output","var_in_out","var_temp","var_global","var_access","var_external","end_var","type","end_type","struct","end_struct","program","end_program","function","end_function","function_block","end_function_block","interface","end_interface","method","end_method","property","end_property","namespace","end_namespace","configuration","end_configuration","tcp","end_tcp","resource","end_resource","channel","end_channel","library","end_library","folder","end_folder","binaries","end_binaries","includes","end_includes","sources","end_sources","action","end_action","step","initial_step","end_step","transaction","end_transaction"],typeKeywords:["int","sint","dint","lint","usint","uint","udint","ulint","real","lreal","time","date","time_of_day","date_and_time","string","bool","byte","word","dword","array","pointer","lword"],operators:["=",">","<",":",":=","<=",">=","<>","&","+","-","*","**","MOD","^","or","and","not","xor","abs","acos","asin","atan","cos","exp","expt","ln","log","sin","sqrt","tan","sel","max","min","limit","mux","shl","shr","rol","ror","indexof","sizeof","adr","adrinst","bitadr","is_valid","ref","ref_to"],builtinVariables:[],builtinFunctions:["sr","rs","tp","ton","tof","eq","ge","le","lt","ne","round","trunc","ctd","\u0441tu","ctud","r_trig","f_trig","move","concat","delete","find","insert","left","len","replace","right","rtc"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/(\.\.)/,"delimiter"],[/\b(16#[0-9A-Fa-f\_]*)+\b/,"number.hex"],[/\b(2#[01\_]+)+\b/,"number.binary"],[/\b(8#[0-9\_]*)+\b/,"number.octal"],[/\b\d*\.\d+([eE][\-+]?\d+)?\b/,"number.float"],[/\b(L?REAL)#[0-9\_\.e]+\b/,"number.float"],[/\b(BYTE|(?:D|L)?WORD|U?(?:S|D|L)?INT)#[0-9\_]+\b/,"number"],[/\d+/,"number"],[/\b(T|DT|TOD)#[0-9:-_shmyd]+\b/,"tag"],[/\%(I|Q|M)(X|B|W|D|L)[0-9\.]+/,"tag"],[/\%(I|Q|M)[0-9\.]*/,"tag"],[/\b[A-Za-z]{1,6}#[0-9]+\b/,"tag"],[/\b(TO_|CTU_|CTD_|CTUD_|MUX_|SEL_)[A_Za-z]+\b/,"predefined"],[/\b[A_Za-z]+(_TO_)[A_Za-z]+\b/,"predefined"],[/[;]/,"delimiter"],[/[.]/,{token:"delimiter",next:"@params"}],[/[a-zA-Z_]\w*/,{cases:{"@operators":"operators","@keywords":"keyword","@typeKeywords":"type","@defineKeywords":"variable","@constant":"constant","@builtinVariables":"predefined","@builtinFunctions":"predefined","@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",bracket:"@open",next:"@string_dq"}],[/'/,{token:"string.quote",bracket:"@open",next:"@string_sq"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],params:[[/\b[A-Za-z0-9_]+\b(?=\()/,{token:"identifier",next:"@pop"}],[/\b[A-Za-z0-9_]+\b/,"variable.name","@pop"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],comment2:[[/[^\(*]+/,"comment"],[/\(\*/,"comment","@push"],["\\*\\)","comment","@pop"],[/[\(*]/,"comment"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\/.*$/,"comment"],[/\/\*/,"comment","@comment"],[/\(\*/,"comment","@comment2"]],string_dq:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],string_sq:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]]}}}}]);
//# sourceMappingURL=1251.10ac0097.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/1251.10ac0097.chunk.js
|
1251.10ac0097.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[1062],{11062:function(e,t,r){r.r(t),r.d(t,{conf:function(){return u},language:function(){return b}});var o,n,a=r(37762),i=r(94389),m=Object.defineProperty,c=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,d=function(e,t,r,o){if(t&&"object"===typeof t||"function"===typeof t){var n,i=(0,a.Z)(s(t));try{var d=function(){var a=n.value;l.call(e,a)||a===r||m(e,a,{get:function(){return t[a]},enumerable:!(o=c(t,a))||o.enumerable})};for(i.s();!(n=i.n()).done;)d()}catch(p){i.e(p)}finally{i.f()}}return e},p={};d(p,o=i,"default"),n&&d(n,o,"default");var h=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],u={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["\x3c!--","--\x3e"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp("<(?!(?:".concat(h.join("|"),"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$"),"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:p.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(?!(?:".concat(h.join("|"),"))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$"),"i"),action:{indentAction:p.languages.IndentAction.Indent}}]},b={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/}}}]);
//# sourceMappingURL=1062.9e2b1e6c.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/1062.9e2b1e6c.chunk.js
|
1062.9e2b1e6c.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[7499],{77499:function(e,n,t){t.r(n),t.d(n,{conf:function(){return i},language:function(){return c}});var o,r=(o="".concat("[_a-zA-Z]").concat("[_a-zA-Z0-9]","*"),"\\b".concat(o,"\\b")),i={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:"'''",close:"'''"}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:"'''",close:"'''",notIn:["string","comment"]}],autoCloseBefore:":.,=}])' \n\t",indentationRules:{increaseIndentPattern:new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},c={defaultToken:"",tokenPostfix:".bicep",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=><!~?:&|+\-*/^%]+/,keywords:["targetScope","resource","module","param","var","output","for","in","if","existing"],namedLiterals:["true","false","null"],escapes:"\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",tokenizer:{root:[{include:"@expression"},{include:"@whitespace"}],stringVerbatim:[{regex:"(|'|'')[^']",action:{token:"string"}},{regex:"'''",action:{token:"string.quote",next:"@pop"}}],stringLiteral:[{regex:"\\${",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:"[^\\\\'$]+",action:{token:"string"}},{regex:"@escapes",action:{token:"string.escape"}},{regex:"\\\\.",action:{token:"string.escape.invalid"}},{regex:"'",action:{token:"string",next:"@pop"}}],bracketCounting:[{regex:"{",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:"}",action:{token:"delimiter.bracket",next:"@pop"}},{include:"expression"}],comment:[{regex:"[^\\*]+",action:{token:"comment"}},{regex:"\\*\\/",action:{token:"comment",next:"@pop"}},{regex:"[\\/*]",action:{token:"comment"}}],whitespace:[{regex:"[ \\t\\r\\n]"},{regex:"\\/\\*",action:{token:"comment",next:"@comment"}},{regex:"\\/\\/.*$",action:{token:"comment"}}],expression:[{regex:"'''",action:{token:"string.quote",next:"@stringVerbatim"}},{regex:"'",action:{token:"string.quote",next:"@stringLiteral"}},{regex:"[0-9]+",action:{token:"number"}},{regex:r,action:{cases:{"@keywords":{token:"keyword"},"@namedLiterals":{token:"keyword"},"@default":{token:"identifier"}}}}]}}}}]);
//# sourceMappingURL=7499.b216e9da.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/7499.b216e9da.chunk.js
|
7499.b216e9da.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[7299],{57299:function(e,n,t){t.r(n),t.d(n,{conf:function(){return o},language:function(){return s}});var o={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`",notIn:["string"]},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"`",close:"`"},{open:'"',close:'"'},{open:"'",close:"'"}]},s={defaultToken:"",tokenPostfix:".go",keywords:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var","bool","true","false","uint8","uint16","uint32","uint64","int8","int16","int32","int64","float32","float64","complex64","complex128","byte","rune","uint","int","uintptr","string","nil"],operators:["+","-","*","/","%","&","|","^","<<",">>","&^","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=","&^=","&&","||","<-","++","--","==","<",">","=","!","!=","<=",">=",":=","...","(",")","","]","{","}",",",";",".",":"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[\[.*\]\]/,"annotation"],[/^\s*#\w+/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex"],[/0[0-7']*[0-7]/,"number.octal"],[/0[bB][0-1']*[0-1]/,"number.binary"],[/\d[\d']*/,"number"],[/\d/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string"],[/`/,"string","@rawstring"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@doccomment"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],doccomment:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],rawstring:[[/[^\`]/,"string"],[/`/,"string","@pop"]]}}}}]);
//# sourceMappingURL=7299.20100701.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/7299.20100701.chunk.js
|
7299.20100701.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[3907],{93907:function(e,t,r){r.r(t),r.d(t,{conf:function(){return s},language:function(){return o}});var s={comments:{blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:"(*",close:"*)"},{open:"<*",close:"*>"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}]},o={defaultToken:"",tokenPostfix:".m3",brackets:[{token:"delimiter.curly",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["AND","ANY","ARRAY","AS","BEGIN","BITS","BRANDED","BY","CASE","CONST","DIV","DO","ELSE","ELSIF","END","EVAL","EXCEPT","EXCEPTION","EXIT","EXPORTS","FINALLY","FOR","FROM","GENERIC","IF","IMPORT","IN","INTERFACE","LOCK","LOOP","METHODS","MOD","MODULE","NOT","OBJECT","OF","OR","OVERRIDES","PROCEDURE","RAISE","RAISES","READONLY","RECORD","REF","REPEAT","RETURN","REVEAL","SET","THEN","TO","TRY","TYPE","TYPECASE","UNSAFE","UNTIL","UNTRACED","VALUE","VAR","WHILE","WITH"],reservedConstNames:["ABS","ADR","ADRSIZE","BITSIZE","BYTESIZE","CEILING","DEC","DISPOSE","FALSE","FIRST","FLOAT","FLOOR","INC","ISTYPE","LAST","LOOPHOLE","MAX","MIN","NARROW","NEW","NIL","NUMBER","ORD","ROUND","SUBARRAY","TRUE","TRUNC","TYPECODE","VAL"],reservedTypeNames:["ADDRESS","ANY","BOOLEAN","CARDINAL","CHAR","EXTENDED","INTEGER","LONGCARD","LONGINT","LONGREAL","MUTEX","NULL","REAL","REFANY","ROOT","TEXT"],operators:["+","-","*","/","&","^","."],relations:["=","#","<","<=",">",">=","<:",":"],delimiters:["|","..","=>",",",";",":="],symbols:/[>=<#.,:;+\-*/&^]+/,escapes:/\\(?:[\\fnrt"']|[0-7]{3})/,tokenizer:{root:[[/_\w*/,"invalid"],[/[a-zA-Z][a-zA-Z0-9_]*/,{cases:{"@keywords":{token:"keyword.$0"},"@reservedConstNames":{token:"constant.reserved.$0"},"@reservedTypeNames":{token:"type.reserved.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[0-9]+\.[0-9]+(?:[DdEeXx][\+\-]?[0-9]+)?/,"number.float"],[/[0-9]+(?:\_[0-9a-fA-F]+)?L?/,"number"],[/@symbols/,{cases:{"@operators":"operators","@relations":"operators","@delimiters":"delimiter","@default":"invalid"}}],[/'[^\\']'/,"string.char"],[/(')(@escapes)(')/,["string.char","string.escape","string.char"]],[/'/,"invalid"],[/"([^"\\]|\\.)*$/,"invalid"],[/"/,"string.text","@text"]],text:[[/[^\\"]+/,"string.text"],[/@escapes/,"string.escape"],[/\\./,"invalid"],[/"/,"string.text","@pop"]],comment:[[/\(\*/,"comment","@push"],[/\*\)/,"comment","@pop"],[/./,"comment"]],pragma:[[/<\*/,"keyword.pragma","@push"],[/\*>/,"keyword.pragma","@pop"],[/./,"keyword.pragma"]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/<\*/,"keyword.pragma","@pragma"]]}}}}]);
//# sourceMappingURL=3907.7b2efd62.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/3907.7b2efd62.chunk.js
|
3907.7b2efd62.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[8184],{51911:function(e,t,n){var o=n(64836);t.Z=void 0;var r=o(n(45649)),a=n(80184),i=(0,r.default)((0,a.jsx)("path",{d:"m10 16.5 6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"PlayCircleOutline");t.Z=i},86321:function(e,t,n){n.d(t,{Z:function(){return F}});var o=n(4942),r=n(63366),a=n(87462),i=n(72791),c=n(94419),s=n(12065),d=n(7278),u=n(67254),l=n(81245),v=n(80184),f=(0,l.Z)((0,v.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),m=(0,l.Z)((0,v.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),h=n(76863),p=(0,h.ZP)("span")({position:"relative",display:"flex"}),Z=(0,h.ZP)(f)({transform:"scale(1)"}),S=(0,h.ZP)(m)((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},n.checked&&{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})})}));var g=function(e){var t=e.checked,n=void 0!==t&&t,o=e.classes,r=void 0===o?{}:o,i=e.fontSize,c=(0,a.Z)({},e,{checked:n});return(0,v.jsxs)(p,{className:r.root,ownerState:c,children:[(0,v.jsx)(Z,{fontSize:i,className:r.background,ownerState:c}),(0,v.jsx)(S,{fontSize:i,className:r.dot,ownerState:c})]})},b=n(49853),C=n(5311),k=n(75700);var w=n(21217);function y(e){return(0,w.Z)("MuiRadio",e)}var x=(0,n(75878).Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]),z=["checked","checkedIcon","color","icon","name","onChange","size"],R=(0,h.ZP)(d.Z,{shouldForwardProp:function(e){return(0,h.FO)(e)||"classes"===e},name:"MuiRadio",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["color".concat((0,b.Z)(n.color))]]}})((function(e){var t=e.theme,n=e.ownerState;return(0,a.Z)({color:(t.vars||t).palette.text.secondary,"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,s.Fq)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&(0,o.Z)({},"&.".concat(x.checked),{color:(t.vars||t).palette[n.color].main}),(0,o.Z)({},"&.".concat(x.disabled),{color:(t.vars||t).palette.action.disabled}))}));var j=(0,v.jsx)(g,{checked:!0}),E=(0,v.jsx)(g,{}),F=i.forwardRef((function(e,t){var n,o,s,d,l=(0,u.Z)({props:e,name:"MuiRadio"}),f=l.checked,m=l.checkedIcon,h=void 0===m?j:m,p=l.color,Z=void 0===p?"primary":p,S=l.icon,g=void 0===S?E:S,w=l.name,x=l.onChange,F=l.size,P=void 0===F?"medium":F,M=(0,r.Z)(l,z),I=(0,a.Z)({},l,{color:Z,size:P}),L=function(e){var t=e.classes,n=e.color,o={root:["root","color".concat((0,b.Z)(n))]};return(0,a.Z)({},t,(0,c.Z)(o,y,t))}(I),O=i.useContext(k.Z),V=f,_=(0,C.Z)(x,O&&O.onChange),q=w;return O&&("undefined"===typeof V&&(s=O.value,V="object"===typeof(d=l.value)&&null!==d?s===d:String(s)===String(d)),"undefined"===typeof q&&(q=O.name)),(0,v.jsx)(R,(0,a.Z)({type:"radio",icon:i.cloneElement(g,{fontSize:null!=(n=E.props.fontSize)?n:P}),checkedIcon:i.cloneElement(h,{fontSize:null!=(o=j.props.fontSize)?o:P}),ownerState:I,classes:L,name:q,checked:V,onChange:_,ref:t},M))}))},97265:function(e,t,n){var o=n(29439),r=n(87462),a=n(63366),i=n(72791),c=n(54871),s=n(57933),d=n(15178),u=n(75700),l=n(51853),v=n(80184),f=["actions","children","defaultValue","name","onChange","value"],m=i.forwardRef((function(e,t){var n=e.actions,m=e.children,h=e.defaultValue,p=e.name,Z=e.onChange,S=e.value,g=(0,a.Z)(e,f),b=i.useRef(null),C=(0,d.Z)({controlled:S,default:h,name:"RadioGroup"}),k=(0,o.Z)(C,2),w=k[0],y=k[1];i.useImperativeHandle(n,(function(){return{focus:function(){var e=b.current.querySelector("input:not(:disabled):checked");e||(e=b.current.querySelector("input:not(:disabled)")),e&&e.focus()}}}),[]);var x=(0,s.Z)(t,b),z=(0,l.Z)(p);return(0,v.jsx)(u.Z.Provider,{value:{name:z,onChange:function(e){y(e.target.value),Z&&Z(e,e.target.value)},value:w},children:(0,v.jsx)(c.Z,(0,r.Z)({role:"radiogroup",ref:x},g,{children:m}))})}));t.Z=m},75700:function(e,t,n){var o=n(72791).createContext(void 0);t.Z=o},85078:function(e,t,n){n.d(t,{cI:function(){return c}});var o=n(72791);".".charCodeAt(0),RegExp("[^.[\\]]+|\\[(?:([^\"'][^[]*)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))","g");var r=["active","data","dirty","dirtySinceLastSubmit","error","initial","invalid","length","modified","modifiedSinceLastSubmit","pristine","submitError","submitFailed","submitSucceeded","submitting","touched","valid","value","visited","validating"];var a=["active","dirty","dirtyFields","dirtyFieldsSinceLastSubmit","dirtySinceLastSubmit","error","errors","hasSubmitErrors","hasValidationErrors","initialValues","invalid","modified","modifiedSinceLastSubmit","pristine","submitting","submitError","submitErrors","submitFailed","submitSucceeded","touched","valid","validating","values","visited"];var i=o.createContext();a.reduce((function(e,t){return e[t]=!0,e}),{});function c(e){var t=o.useContext(i);if(!t)throw new Error((e||"useForm")+" must be used inside of a <Form> component");return t}"undefined"!==typeof window&&window.navigator&&window.navigator.product&&window.navigator.product;r.reduce((function(e,t){return e[t]=!0,e}),{})}}]);
//# sourceMappingURL=8184.741e3d56.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/8184.741e3d56.chunk.js
|
8184.741e3d56.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[5133],{15133:function(e,t,n){n.r(t),n.d(t,{conf:function(){return r},language:function(){return a}});var r={comments:{lineComment:";;"},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}],surroundingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}]},a={defaultToken:"",ignoreCase:!0,tokenPostfix:".clj",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],constants:["true","false","nil"],numbers:/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,characters:/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,escapes:/^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,qualifiedSymbols:/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/,specialForms:[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],coreSymbols:["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],tokenizer:{root:[{include:"@whitespace"},[/@numbers/,"number"],[/@characters/,"string"],{include:"@string"},[/[()\[\]{}]/,"@brackets"],[/\/#"(?:\.|(?:")|[^"\n])*"\/g/,"regexp"],[/[#'@^`~]/,"meta"],[/@qualifiedSymbols/,{cases:{"^:.+$":"constant","@specialForms":"keyword","@coreSymbols":"keyword","@constants":"constant","@default":"identifier"}}]],whitespace:[[/[\s,]+/,"white"],[/;.*$/,"comment"],[/\(comment\b/,"comment","@comment"]],comment:[[/\(/,"comment","@push"],[/\)/,"comment","@pop"],[/[^()]/,"comment"]],string:[[/"/,"string","@multiLineString"]],multiLineString:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/./,"string"]]}}}}]);
//# sourceMappingURL=5133.71af5a54.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/5133.71af5a54.chunk.js
|
5133.71af5a54.chunk.js
|
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[9357],{9357:function(e,t,n){n.r(t),n.d(t,{conf:function(){return o},language:function(){return r}});var o={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*#pragma\\s+region\\b"),end:new RegExp("^\\s*#pragma\\s+endregion\\b")}}},r={tokenPostfix:".rust",defaultToken:"invalid",keywords:["as","async","await","box","break","const","continue","crate","dyn","else","enum","extern","false","fn","for","if","impl","in","let","loop","match","mod","move","mut","pub","ref","return","self","static","struct","super","trait","true","try","type","unsafe","use","where","while","catch","default","union","static","abstract","alignof","become","do","final","macro","offsetof","override","priv","proc","pure","sizeof","typeof","unsized","virtual","yield"],typeKeywords:["Self","m32","m64","m128","f80","f16","f128","int","uint","float","char","bool","u8","u16","u32","u64","f32","f64","i8","i16","i32","i64","str","Option","Either","c_float","c_double","c_void","FILE","fpos_t","DIR","dirent","c_char","c_schar","c_uchar","c_short","c_ushort","c_int","c_uint","c_long","c_ulong","size_t","ptrdiff_t","clock_t","time_t","c_longlong","c_ulonglong","intptr_t","uintptr_t","off_t","dev_t","ino_t","pid_t","mode_t","ssize_t"],constants:["true","false","Some","None","Left","Right","Ok","Err"],supportConstants:["EXIT_FAILURE","EXIT_SUCCESS","RAND_MAX","EOF","SEEK_SET","SEEK_CUR","SEEK_END","_IOFBF","_IONBF","_IOLBF","BUFSIZ","FOPEN_MAX","FILENAME_MAX","L_tmpnam","TMP_MAX","O_RDONLY","O_WRONLY","O_RDWR","O_APPEND","O_CREAT","O_EXCL","O_TRUNC","S_IFIFO","S_IFCHR","S_IFBLK","S_IFDIR","S_IFREG","S_IFMT","S_IEXEC","S_IWRITE","S_IREAD","S_IRWXU","S_IXUSR","S_IWUSR","S_IRUSR","F_OK","R_OK","W_OK","X_OK","STDIN_FILENO","STDOUT_FILENO","STDERR_FILENO"],supportMacros:["format!","print!","println!","panic!","format_args!","unreachable!","write!","writeln!"],operators:["!","!=","%","%=","&","&=","&&","*","*=","+","+=","-","-=","->",".","..","...","/","/=",":",";","<<","<<=","<","<=","=","==","=>",">",">=",">>",">>=","@","^","^=","|","|=","||","_","?","#"],escapes:/\\([nrt0\"''\\]|x\h{2}|u\{\h{1,6}\})/,delimiters:/[,]/,symbols:/[\#\!\%\&\*\+\-\.\/\:\;\<\=\>\@\^\|_\?]+/,intSuffixes:/[iu](8|16|32|64|128|size)/,floatSuffixes:/f(32|64)/,tokenizer:{root:[[/r(#*)"/,{token:"string.quote",bracket:"@open",next:"@stringraw.$1"}],[/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,{cases:{"@typeKeywords":"keyword.type","@keywords":"keyword","@supportConstants":"keyword","@supportMacros":"keyword","@constants":"keyword","@default":"identifier"}}],[/\$/,"identifier"],[/'[a-zA-Z_][a-zA-Z0-9_]*(?=[^\'])/,"identifier"],[/'(\S|@escapes)'/,"string.byteliteral"],[/"/,{token:"string.quote",bracket:"@open",next:"@string"}],{include:"@numbers"},{include:"@whitespace"},[/@delimiters/,{cases:{"@keywords":"keyword","@default":"delimiter"}}],[/[{}()\[\]<>]/,"@brackets"],[/@symbols/,{cases:{"@operators":"operator","@default":""}}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\/\*/,"comment","@push"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",bracket:"@close",next:"@pop"}]],stringraw:[[/[^"#]+/,{token:"string"}],[/"(#*)/,{cases:{"$1==$S2":{token:"string.quote",bracket:"@close",next:"@pop"},"@default":{token:"string"}}}],[/["#]/,{token:"string"}]],numbers:[[/(0o[0-7_]+)(@intSuffixes)?/,{token:"number"}],[/(0b[0-1_]+)(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(\.[\d][\d_]*)?[eE][+-][\d_]+(@floatSuffixes)?/,{token:"number"}],[/\b(\d\.?[\d_]*)(@floatSuffixes)?\b/,{token:"number"}],[/(0x[\da-fA-F]+)_?(@intSuffixes)?/,{token:"number"}],[/[\d][\d_]*(@intSuffixes?)?/,{token:"number"}]]}}}}]);
//# sourceMappingURL=9357.e2f466b8.chunk.js.map
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/9357.e2f466b8.chunk.js
|
9357.e2f466b8.chunk.js
|
const sla_doc =
'<div class="MuiTypography-root jss4" style="color: rgba(0, 0, 0, 0.66)">' +
'<div style="text-align:center">' +
'<h2>Welcome to API Logic Server</h2>' +
'</div><br>' +
'<h3><a class="custom" style="color: #3f51b5;" rel="nofollow" href="https://github.com/valhuber/ApiLogicServer/blob/main/README.md/" target="_blank">API Logic Server</a> ' +
'creates <i>customizable</i> model-driven systems, instantly from your ' +
'database:' +
'</h3>' +
'<h4>1. Automatic Admin App</h4>' +
'<ul>' +
' <li>For instant collaboration and Back Office data maintenance</li>' +
' <li>Rich functionality: multi-page, multi-table</li>' +
' <li>Explore this Admin App, ' +
' and how to <a class="custom" style="color: #3f51b5" rel="nofollow" href="https://apilogicserver.github.io/Docs/Admin-Customization/" target="_blank">customize it</a></li>' +
'</ul>' +
'<h4>2. API, with <a class="custom" style="color: #3f51b5;" rel="nofollow" href="/api_logic_server_api_name" target="_blank">oas/Swagger</a></h4>' +
'<ul>' +
' <li>For custom app dev, integration</li>' +
' <li>Rich functionality: endpoint for each table, with filtering, pagination, related data</li>' +
' <li><a class="custom" style="color: #3f51b5" rel="nofollow" href="https://github.com/valhuber/ApiLogicServer/wiki#customize-the-api-with-expose_servicespy-add-rpcs-services" target="_blank">Customizable</a>: add your own endpoints</li>' +
'</ul>' +
'<h4>3. Business Logic, for <span class="JoinedField" title="Often nearly half the app -- automation required"><span>backend processing</span> </span></h4>' +
'<ul>' +
' <li>Spreadsheet-like rules for multi-table derivations and constraints</li>' +
' <li>Extensible with Python events for email, messages, etc</li>' +
' <li><a class="custom" style="color: #3f51b5" rel="nofollow" href="https://apilogicserver.github.io/Docs/Logic-Why/" target="_blank">Explore</a> ' +
' how logic can meaningfully improve ' +
' <a class="custom" style="color: #3f51b5" rel="nofollow" href="https://github.com/valhuber/LogicBank/wiki/by-code" title="Rules are 40X more concise than code, and address over 95% of database logic" target="_blank">conciseness</a> ' +
' and quality</li>' +
'</ul>' +
'</div>'
function getContent(){
let result = '<button class="MuiButtonBase-root MuiButton-root MuiButton-text makeStyles-widget-159 MuiButton-textPrimary" tabindex="0" type="button" ><span class="MuiButton-label">Loaded External Component. </span></button>';
result = ""
result += sla_doc;
return result;
}
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/templates/home.js
|
home.js
|
import { React } from "react";
import { List,
Datagrid,
TextField,
DateField,
NumberField,
EditButton,
} from "react-admin";
import Grid from '@material-ui/core/Grid';
import { TabbedShowLayout, Tab } from 'react-admin';
import {
Edit,
Create,
Show,
SimpleForm,
ReferenceInput,
SelectInput,
TextInput,
DateInput,
NumberInput,
SimpleShowLayout,
ReferenceManyField,
ShowController,
useRecordContext
} from "react-admin";
import Paper from '@material-ui/core/Paper';
import { Typography } from '@material-ui/core';
import { useRefresh } from 'react-admin';
import { useDataProvider } from 'react-admin';
import { FunctionField } from 'react-admin';
import DeleteIcon from "@material-ui/icons/Delete";
const customerFilters = [
<TextInput source="q" label="Search" alwaysOn />
];
export const ApiLogicServer_componentList = props => {
const dataProvider = useDataProvider();
const refresh = useRefresh();
return <List filters={customerFilters} perPage={10} {...props} >
<Datagrid rowClick="show">
// ApiLogicServer_list_columns
<EditButton label="Edit"/>
// This functionField is similar to react-admin "DeleteButton"
<FunctionField onClick={(e)=> {e.stopPropagation()}}
label="Delete"
render={record => <DeleteIcon style={{fill: "#3f51b5"}} onClick={(item)=>deleteField(dataProvider, record, refresh)}/>}
/>
</Datagrid>
</List>
};
export const ApiLogicServer_componentEdit = props => (
<Edit {...props}>
<SimpleForm>
// ApiLogicServer_edit_columns
</SimpleForm>
</Edit>
);
const deleteField = (dataProvider, record, refresh) => {
dataProvider.delete('ApiLogicServer_component', record).then(()=>{
refresh();
}
).catch((e)=> alert('error'))
}
export const ApiLogicServer_componentCreate = props => (
<Create {...props}>
<SimpleForm>
// ApiLogicServer_add_columns
</SimpleForm>
</Create >
);
const ApiLogicServer_componentTitle = ({ record }) => {
return <span>Post {record ? `ID: "${record.id}" ContactName: "${record.ContactName}"` : ''}</span>;
};
const ShowField = ({ source }) => {
const record = useRecordContext();
return record ? (
<Grid item xs={3}>
<Typography variant="body2" color="textSecondary" component="p">
{source}
</Typography>
<Typography variant="body2" component="p">
{record[source]}
</Typography>
</Grid>
) : null;
};
export const ApiLogicServer_componentShow = props => {
return (
<Show title={<ApiLogicServer_componentTitle />} {...props}>
<SimpleShowLayout>
<Typography variant="h5" component="h5" style={{ margin: "30px 0px 30px" }}>
ApiLogicServer_component Data:
</Typography>
<Grid container spacing={3} margin={5} m={40}>
// ApiLogicServer_show_columns
</Grid>
// ApiLogicServer_related
</SimpleShowLayout>
</Show>
);
}
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/templates/react_admin_component.js
|
react_admin_component.js
|
import os
from flask_appbuilder.security.manager import (
AUTH_OID,
AUTH_REMOTE_USER,
AUTH_DB,
AUTH_LDAP,
AUTH_OAUTH,
)
basedir = os.path.abspath(os.path.dirname(__file__))
# Your App secret key
SECRET_KEY = "\2\1thisismyscretkey\1\2\e\y\y\h"
# The SQLAlchemy connection string.
SQLALCHEMY_DATABASE_URI = "sqlite:///" + os.path.join(basedir, "app.db")
# SQLALCHEMY_DATABASE_URI = 'mysql://myapp@localhost/myapp'
# SQLALCHEMY_DATABASE_URI = 'postgresql://root:password@localhost/myapp'
# Flask-WTF flag for CSRF
CSRF_ENABLED = True
# ------------------------------
# GLOBALS FOR APP Builder
# ------------------------------
# Uncomment to setup Your App name
# APP_NAME = "My App Name"
# Uncomment to setup Setup an App icon
# APP_ICON = "static/img/logo.jpg"
# ----------------------------------------------------
# AUTHENTICATION CONFIG
# ----------------------------------------------------
# The authentication type
# AUTH_OID : Is for OpenID
# AUTH_DB : Is for database (username/password()
# AUTH_LDAP : Is for LDAP
# AUTH_REMOTE_USER : Is for using REMOTE_USER from web server
AUTH_TYPE = AUTH_DB
# Uncomment to setup Full admin role name
# AUTH_ROLE_ADMIN = 'Admin'
# Uncomment to setup Public role name, no authentication needed
# AUTH_ROLE_PUBLIC = 'Public'
# Will allow user self registration
# AUTH_USER_REGISTRATION = True
# The default user self registration role
# AUTH_USER_REGISTRATION_ROLE = "Public"
# When using LDAP Auth, setup the ldap server
# AUTH_LDAP_SERVER = "ldap://ldapserver.new"
# Uncomment to setup OpenID providers example for OpenID authentication
# OPENID_PROVIDERS = [
# { 'name': 'Yahoo', 'url': 'https://me.yahoo.com' },
# { 'name': 'AOL', 'url': 'http://openid.aol.com/<username>' },
# { 'name': 'Flickr', 'url': 'http://www.flickr.com/<username>' },
# { 'name': 'MyOpenID', 'url': 'https://www.myopenid.com' }]
# ---------------------------------------------------
# Babel config for translations
# ---------------------------------------------------
# Setup default language
BABEL_DEFAULT_LOCALE = "en"
# Your application default translation path
BABEL_DEFAULT_FOLDER = "translations"
# The allowed translation for you app
LANGUAGES = {
"en": {"flag": "gb", "name": "English"},
"pt": {"flag": "pt", "name": "Portuguese"},
"pt_BR": {"flag": "br", "name": "Pt Brazil"},
"es": {"flag": "es", "name": "Spanish"},
"de": {"flag": "de", "name": "German"},
"zh": {"flag": "cn", "name": "Chinese"},
"ru": {"flag": "ru", "name": "Russian"},
"pl": {"flag": "pl", "name": "Polish"},
}
# ---------------------------------------------------
# Image and file configuration
# ---------------------------------------------------
# The file upload folder, when using models with files
UPLOAD_FOLDER = basedir + "/app/static/uploads/"
# The image upload folder, when using models with images
IMG_UPLOAD_FOLDER = basedir + "/app/static/uploads/"
# The image upload url, when using models with images
IMG_UPLOAD_URL = "/static/uploads/"
# Setup image size default is (300, 200, True)
# IMG_SIZE = (300, 200, True)
# Theme configuration
# these are located on static/appbuilder/css/themes
# you can create your own and easily use them placing them on the same dir structure to override
# APP_THEME = "bootstrap-theme.css" # default bootstrap
# APP_THEME = "cerulean.css"
# APP_THEME = "amelia.css"
# APP_THEME = "cosmo.css"
# APP_THEME = "cyborg.css"
# APP_THEME = "flatly.css"
# APP_THEME = "journal.css"
# APP_THEME = "readable.css"
# APP_THEME = "simplex.css"
# APP_THEME = "slate.css"
# APP_THEME = "spacelab.css"
# APP_THEME = "united.css"
# APP_THEME = "yeti.css"
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/templates/basic_web_app/config.py
|
config.py
|
# Northwind Sample, without customizations
This is the _no-customizations_ version of the Northwind Sample project. It enables you to:
1. See exactly what database introspection creates
2. Introduce customizations to explore them and their impact
To introduce customizations, use the terminal and run:
```
ApiLogicServer add-cust
```
# API Logic Server
This project was created by API Logic Server. Edit / extend this readme as desired.
# Setup and Run
### Establish your Python environment
Install your projects' virtual environment
as described in [Virtual Environment](https://apilogicserver.github.io/Docs/Project-Env/). See also the `venv_setup` directory in your API Logic Project.
### For SqlServer, install `pyodbc`
Not required for docker-based projects (it's pre-installed).
For local installs, see the [Install pyodbc](https://apilogicserver.github.io/Docs/Install-pyodbc/).
### Run
Then, start the API, either by IDE launch configurations, or by command line:
```
python api_logic_server_run.py
```
* **Open the Admin App -** [http://localhost:5656/admin-app/index.html#/Home](http://localhost:5656/admin-app/index.html#/Home)
# Project Information
| About | Info |
|:-------------------------|:-----------------------------------|
| Created | creation-date |
| API Logic Server Version | api_logic_server_version |
| Created in directory | api_logic_server_project_directory |
| API Name | api_logic_server_api_name |
# Key Technologies
API Logic Server is based on the projects shown below.
Consult their documentation for important information.
### SARFS JSON:API Server
[SAFRS: Python OpenAPI & JSON:API Framework](https://github.com/thomaxxl/safrs)
SAFRS is an acronym for SqlAlchemy Flask-Restful Swagger.
The purpose of this framework is to help python developers create
a self-documenting JSON API for sqlalchemy database objects and relationships.
These objects are serialized to JSON and
created, retrieved, updated and deleted through the JSON API.
Optionally, custom resource object methods can be exposed and invoked using JSON.
Class and method descriptions and examples can be provided
in yaml syntax in the code comments.
The description is parsed and shown in the swagger web interface.
The result is an easy-to-use
swagger/OpenAPI and JSON:API compliant API implementation.
### LogicBank
[Transaction Logic for SQLAlchemy Object Models](https://apilogicserver.github.io/Docs/Logic/)
Use Logic Bank to govern SQLAlchemy update transaction logic -
multi-table derivations, constraints, and actions such as sending mail or messages. Logic consists of _both:_
* **Rules - 40X** more concise using a spreadsheet-like paradigm, and
* **Python - control and extensibility,** using standard tools and techniques
Logic Bank is based on SQLAlchemy - it handles `before_flush` events to enforce your logic.
Your logic therefore applies to any SQLAlchemy-based access - JSON:Api, Admin App, etc.
### SQLAlchemy
[Object Relational Mapping for Python](https://docs.sqlalchemy.org/en/13/).
SQLAlchemy provides Python-friendly database access for Python.
It is used by JSON:Api, Logic Bank, and the Admin App.
SQLAlchemy processing is based on Python `model` classes,
created automatically by API Logic Server from your database,
and saved in the `database` directory.
### Admin App
This generated project also contains a React Admin app:
* Multi-page - including page transitions to "drill down"
* Multi-table - master / details (with tab sheets)
* Intelligent layout - favorite fields first, predictive joins, etc
* Logic Aware - updates are monitored by business logic
# Project Structure
This project was created with the following directory structure:
| Directory | Usage | Key Customization File | Typical Customization |
|:-------------- |:------------------------------|:-----------------------------------|:--------------------------------------------------------------------------------------|
| ```api``` | JSON:API | ```api/customize_api.py``` | Add new end points / services |
| ```database``` | SQLAlchemy Data Model Classes | ```database/customize_models.py``` | Add derived attributes, and relationships missing in the schema |
| ```logic``` | Transactional Logic | ```logic/declare_logic.py``` | Declare multi-table derivations, constraints, and events such as send mail / messages |
| ```ui``` | Admin App | ```ui/admin/admin.yaml``` | Control field display - order, captions etc. |
### Key Customization File - Typical Customization
In the table above, the _Key Customization Files_ are created as stubs, intended for you to add customizations that extend
the created API, Logic and Web App. Since they are separate files, the project can be
recreated (e.g., synchronized with a revised schema), and these files can be easily copied
into the new project, without line-by-line merges.
Please see the ```nw``` sample for examples of typical customizations.
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/nw_no_cust/readme.md
|
readme.md
|
# Tutorial
<details markdown>
<br>
<summary>Welcome to this Tutorial</summary>
Use this Tutorial for a quick tour of API Logic Server
- **Instant** project creation from a database
- **Fully customizable,** using both standard code (Flask/SQLAlchemy) in *your* IDE, and
- **Logic** -- multi-table derivation and constraint logic using unique spreadsheet-like rules
This contains several projects. These projects use the [Northwind Sample Database](https://apilogicserver.github.io/Docs/Sample-Database/) (customers, orders, products).
| Project | What it is | Use it to... |
|:---- |:------|:-----------|
| 1. Instant_Creation | Northwind Database - Uncustomized | Explore **automated project creation** from Database |
| 2. Customized | Northwind Database - Customized | Explore **customizing** with code |
| 3. Logic | Northwind Database - Customized, with Logic | Explore **customizing** with code, and rule-based logic |
| Next Steps | Create other sample databases | More examples - initial project creation from Database |
> If you are running via `pip install` (not Docker or Codespaces), you need to [setup your virtual environment](https://apilogicserver.github.io/Docs/Project-Env/#shared-venv).
</details>
<details markdown>
<br>
<summary>0. App_Fiddle: Manually Coded -- Learn Flask / SQLAlchemy - Fully customizable, but slow</summary>
This first app (_0. App_Fiddle_) illustrates a typical framework-based approach for creating projects - a minimal project for seeing core Flask and SQLAlchemy services in action. Let's run/test it, then explore the code.
To run, use the Run Configuration, and test with `cURL`.
<details markdown>
<summary> Show me how </summary>
To run the basic app:
1. Click **Run and Debug** (you should see *0. App Fiddle), and the green button to start the server
2. Copy the `cURL` text, and paste it into the `bash`/`zsh` window
3. When you have reviewed the result ([here's the readme](./1.%20App_Fiddle/readme.md)), **stop** the server

</details>
<details markdown>
<summary> --> Fully Customizable, but Faster Would Be Better</summary>
Frameworks are flexible, and leverage your existing dev environment (IDE, git, etc). But the manual effort is time-consuming, and complex. This minimal project **does not provide:**
<img align="right" width="150" height="150" src="https://github.com/ApiLogicServer/Docs/blob/main/docs/images/vscode/app-fiddle/horse-feathers.jpg?raw=true" alt="Horse Feathers">
* an API endpoint for each table
* We saw above it's straightforward to provide a *single endpoint.* It's quite another matter -- ***weeks to months*** -- to provide endpoints for **all** the tables, with pagination, filtering, and related data access. That's a horse of an entirely different feather.<br><br>
* a User Interface
* any security, or business logic (multi-table derivations and constraints).
Instead of frameworks, we might consider a Low Code approach. Low Code tools provide excellent custom user interfaces. However, these often require extensive screen painting, and typically require a proprietary IDE.
And neither frameworks nor Low-Code address multi-table derivation and constraint logic. This is typically nearly half the effort.
The next section introduces an approach that is as flexible as a framework, but faster than Low Code for APIs and Admin Apps.
</details>
</details>
<details markdown>
<summary>1. Instant Creation -- Flexible as a Framework, Faster than Low Code</summary>
<br>
The *1. Instant_Creation* app illustrates an alternative, creating an entire project by reading your schema. This automated approach is:
* **Instant:** faster than Low Code screen painting, with instant APIs and Admin User Interfaces:
* **Admin UI:** multi-page / multi-table apps, with page navigations, automatic joins and declarative hide/show. No HTML or JavaScript required. Ready for Agile collaboration.
* Custom UIs can be built using your tool of choice (React, Angular, etc), using the API<br><br>
* **API:** an endpoint for each table, with filtering, sorting, pagination and related data access. Swagger is automatic. Ready for custom app dev.
* **Fully Customizable:** with **standard dev tools**. Use *your IDE*, Python, and Flask/SQLAlchemy to create new services. We'll see several examples below.
* **Open Source:** install with pip or docker.
To execute (see *Show me how*, below, for details): **start the server** with **Run and Debug >> *1. Instant Creation***, and then start the Browser at localhost:5656 **(url in the console log)**
<details markdown>
<summary> Show me how </summary>

</details>
This application was *not coded* - **it was created** using the API Logic Server CLI (Command Language Interface), with 1 command (not necessary to do now - it's already been done):
```bash
cd tutorial
ApiLogicServer create --db_url=sqlite:///sample_db.sqlite --project_name=nw
```
If you *do* want to execute: **stop** the server, restart with **Run and Debug >> nw**, and then start the Browser at localhost:5656 (url in the console log).
> Key Takeway: you will achieve this level automation for your projects: provide a database, get an instant API and Admin App. Ready for agile collaboration, custom app dev. Then, customize in your IDE.
<details markdown>
<summary> What is API Logic Server </summary>
**What is Installed**
API Logic server installs with `pip`, in a docker container, or in codespaces. As shown below, it consists of a:
* **CLI:** the `ApiLogicServer create` command you saw above
* **Runtime Packages:** for API, UI and Logic execution<br>

**Development Architecture**
It operates as shown below:
* A) Create your database as usual
* B) Use the CLI to generate an executable project
* The system reads your database to create an executable API Logic Project
* C) Customize and debug it in VSCode, PyCharm, etc.

**Standard, Scalable Modern Architecture**
* A modern 3-tiered architecture, accessed by **APIs**
* Logic is **automatically reused**, factored out of web apps and custom services
* **Containerized** for scalable cloud deployment - the project includes a dockerfile to containerize it to DockerHub.

</details>
<details markdown>
<summary> --> Instant, But Customization Required</summary>
An instant Admin App and API are a great start, but there are some significant short-comings:
* **Limited endpoints -** we may require additional endpoints beyond those automatically created
* **No security -** no login authentication
* **No logic -** multi-table derivations and constraints for save logic
* For example, open **Customer** (left nav menu), **click `ALFKI`**, and **EDIT > DELETE the first Order**. Re-click Customer from the left nav menu - it should have reduced the customer's balance from 2102, but it's unchanged. That's because there is *no logic...*
* Backend update logic can be as much as half the effort, so we really haven't achieved "Low Code" until this are addressed.
Let's see how these are addressed, in the next sections.
</details>
</details>
<details markdown>
<summary>2. Customized -- Admin App, New Endpoint... Standard Dev Tools</summary>
<br>
Customizations are addressed using your IDE, using **Standard use Flask and SQLAlchemy**, exactly as you normally do.
Customizations are illustrated in the project [`2. Customized`](2.%20Customized/). To see the effect of the changes, run the app like this:
1. **Stop the server** using the red "stop" button.
2. **Restart the server** with the same procedure as Step 1, above, but choose Run Configuration ***2. Customized***.<br>
<details markdown>
<summary> Remind me how</summary>
1. Restart the Server:
1. Click **Run and Debug**
2. Use the dropdown to select **3. API Logic Project: Logic**, and
3. Click the green button to start the server
<br><br>
2. Start the Browser at localhost:5656, using the **url shown in the console log**

</details>
This project is the customized version of _1. Instant_Creation_, above. The table below lists some of the key customizations you can explore.
<p align="center">
<h2 align="center">Explore Key Customizations</h2>
</p>
<p align="center">
Explore customizations in project: <i>2. Customized</i><br>
Click Explore Code to see the code.<br>
<b>TL;DR - scan code marked by <--</b>
</p>
| Customization Area | Try It | Click to Explore Code | Notes |
|:-----------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------|:---------------------|
| **New API endpoint <--** | `curl -X GET "http://localhost:5656/filters_cats"` | [```api/customize_api.py```](2.%20Customized/api/customize_api.py) | Standard Flask/SQLAlchemy |
| **Admin App <--** | Observe **help text** describes features | [```ui/admin/admin.yaml```](2.%20Customized/ui/admin/admin.yaml) | Not complex JS, HTML |
</details>
<details markdown>
<summary>3. Logic -- Unique Spreadsheet-like Rules (40X more concise), Plus Python</summary>
<br>
In addition to standard Flask/SQLAlchemy use, you can declare rules for multi-table derivations and constraints. Declare rules using Python as a DSL, leveraging IDE support for type-checking, code completion, logging and debugging.
Rules are extensible using standard Python. This enables you to address non-database oriented logic such as sending mail or messages.<br><br>
**Rules operate like a spreadsheet**
Rules plug into SQLAlchemy events, and execute as follows:
| Logic Phase | Why It Matters |
|:-----------------------------|:---------------------|
| **Watch** for changes at the attribute level | Performance - Automatic Attribute-level Pruning |
| **React** if referenced data is changed | Ensures Reuse - Invocation is automatic<br>Derivations are optimized (e.g. *adjustment updates* - not aggregate queries) |
| **Chain** to other referencing data | Simplifies Maintenance - ordering is automatic |
Customizations are illustrated in the project [`3. Logic`](3.%20Logic/). To see the effect of the changes, run the app like this:
1. **Stop the server** using the red "stop" button.
2. **Restart the server** with the same procedure as Step 2, above, but choose Run Configuration ***3. Logic***.<br>
<details markdown>
<summary> Remind me how</summary>
1. Restart the Server:
1. Click **Run and Debug**
2. Use the dropdown to select **3. API Logic Project: Logic**, and
3. Click the green button to start the server
<br><br>
2. Start the Browser at localhost:5656, using the **url shown in the console log**

</details>
This project further customizes _2. Customized_, above. The table below lists some of the key customizations you can explore.
<p align="center">
<h2 align="center">Explore Key Customizations</h2>
</p>
<p align="center">
Explore customizations in project: <i>3. ApiLogicProject_Logic</i><br>
Click Explore Code to see the code.<br>
<b>TL;DR - scan code marked by <--</b>
</p>
| Customization Area | Try It | Click to Explore Code | Notes |
|:-----------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------|:---------------------|
| **New API endpoint <--** | Use Swagger for endpoint: *CategoriesEndPoint/get_cats*<br><br>See [docs](https://apilogicserver.github.io/Docs/Security-Swagger/) - authenticate as **u1** | [```api/customize_api.py```](3.%20Logic/api/customize_api.py) | Standard Flask/SQLAlchemy |
| **Multi-table Update Logic <--** | Delete Order now adjusts the customer balance | [```logic/declare_logic.py```](3.%20Logic/logic/declare_logic.py) | Spreadsheet-like rules |
| **Admin App <--** | Observe **help text** describes features | [```ui/admin/admin.yaml```](3.%20Logic/ui/admin/admin.yaml) | Not complex JS, HTML |
| **Login Authentication** | Click Category - observe you need to **login** now (user u1, password p) | [```config.py```](3.%20Logic/config.py) | See SECURITY_ENABLED |
| **Role-Based Authorization** | Observe categories has **fewer rows** | [```security/declare_security.py```](3.%20Logic/security/declare_security.py) | |
Use the [```Detailed Tutorial```](3.%20Logic/Tutorial.md) to further explore this app.
</details>
<details markdown>
<summary>Key Takeaways: Instant App/API, Fully Flexible, Unique Declarative Rules</summary>
You have seen the **fastest and simplest** way to create **modern, scalable API-based database systems:**
1. Use the `ApiLogicServer create` command to create a Flask/SQLAlchemy project from your database. Zero learning curve. Projects are **instantly executable**, providing:
* **an Admin App:** multi-page, multi-table apps -- ready for business user agile collaboration
* **an API:** end points for each table, with filtering, sorting, pagination and related data access -- ready for custom app dev<br><br>
2. **Open Flexibility:** leverage standards for development and deployment:
* Dev: customize and debug with **<span style="background-color:Azure;">standard dev tools</span>**. Use *your IDE (e.g. <span style="background-color:Azure;">VSCode, PyCharm</span>)*, <span style="background-color:Azure;">Python</span>, and Flask/SQLAlchemy to create new services. Manage projects with <span style="background-color:Azure;">GitHub</span>.
* Deploy: **containerize** your project - deploy on-premise or to the cloud <span style="background-color:Azure;">(Azure, AWS, etc)</span>.
* *Flexible as a framework, Faster then Low Code for Admin Apps*
3. ***Declare* security and multi-table constraint/validation logic**, using **declarative spreadsheet-like rules**. Addressing the backend *half* of your system, logic consists of rules, extensible with Python event code.
* *40X more concise than code - unique to API Logic Server*<br><br>
</details>
<details markdown>
<summary>Next Steps: New Projects</summary>
As shown above, it's easy to create projects with a single command. To help you explore, ApiLogicServer provides several pre-installed sqlite sample databases:
```bash
cd tutorial
ApiLogicServer create --db_url=sqlite:///sample_db.sqlite --project_name=nw
# that's a bit of a mouthful, so abbreviations are provided for pre-included samples
ApiLogicServer create --project_name=nw --db_url=nw- # same sample as 2, above
ApiLogicServer create --project_name=chinook --db_url=chinook # artists and albums
ApiLogicServer create --project_name=classicmodels --db_url=classicmodels # customers, orders
ApiLogicServer create --project_name=todo --db_url=todo # 1 table database
```
Then, **restart** the server as above, using the pre-created Run Configuration for `Execute <new project>`.<br><br>
> Next, try it on your own databases: if you have a database, you can have an API and an Admin app in minutes.
<details markdown>
<summary> SQLAlchemy url required for your own databases </summary>
The system provides shorthand notations for the pre-installed sample databases above. For your own databases, you will need to provide a SQLAlchemy URI for the `db_url` parameter. These can be tricky - try `ApiLogicServer examples`, or, when all else fails, [try the docs](https://apilogicserver.github.io/Docs/Database-Connectivity/).
</details>
Click here for the [docs](https://apilogicserver.github.io/Docs/).
</details>
<details markdown>
<summary> Notes </summary>
**Project Structure**
This tutorial is actually 3 independent projects. When you create a project using `ApiLogicServer create --project_name=my_project`, the system will create a free-standing project. The project will include your container settings, IDE settings etc, so you can just open it your IDE to run and debug.
**Guided Demo**
Demonstrations of API Logic Server often follow this script, provided as take-away notes.
<details markdown>
<summary> Guided Demo Summary </summary>
1. Run the automatic **Admin App, and Swagger**<br><br>
2. Explore the Admin App (no html, js): `ui/admin/admin.yaml`<br><br>
3. Explore the API
* **Automatic API:** `api/expose_api_models.py`
* `database/models.py` - from schema
* **Custom Endpoint:** `api/customize_api.py` - see `add_order()`<br><br>
4. Explore `logic/declare_logic.py`
* **Executable Design** - declarative
* **Breakpoint here**<br><br>
5. Run **Custom APIs and Logic Execution / Debugging**
* In swagger: **POST ServicesEndPoint/add_order > Try it out**
* At the breakpoint, observe the
* **Debugger State** -- row attributes, etc
* **Logic Log** -- line for each rule fire, showing row, with indents for chaining
</details markdown>
</details markdown>
</details>
<details markdown>
<summary>Key Technology Concepts </summary>
<p align="center">
<h2 align="center">Key Technology Concepts</h2>
</p>
<p align="center">
Select a skill of interest, and<br>Click the link to see sample code
</p>
| Tech Area | Skill | App_Fiddle Example | APILogicProject Logic Example | Notes |
|:---- |:------|:-----------|:--------|:--------|
| __Flask__ | Setup | [```flask_basic.py```](0.%20App_Fiddle/flask_basic.py) | [```api_logic_server_run.py```](3.%20Logic/api_logic_server_run.py) | |
| | Events | | [```ui/admin/admin_loader.py```](3.%20Logic/ui/admin/admin_loader.py) | |
| __API__ | Create End Point | [```api/end_points.py```](0.%20App_Fiddle/api/end_points.py) | [```api/customize_api.py```](3.%20Logic/api/customize_api.py) | see `def order():` |
| | Call endpoint | | [```test/.../place_order.py```](3.%20Logic/test/api_logic_server_behave/features/steps/place_order.py) | |
| __Config__ | Config | [```config.py```](3.%20Logic/config.py) | | |
| | Env variables | | [```config.py```](3.%20Logic/config.py) | os.getenv(...) |
| __SQLAlchemy__ | Data Model Classes | [```database/models.py```](3.%20Logic/database/models.py) | | |
| | Read / Write | [```api/end_points.py```](3.%20Basic_App/api/end_points.py) | [```api/customize_api.py```](3.%20Logic/api/customize_api.py) | see `def order():` |
| | Multiple Databases | | [```database/bind_databases.py```](3.%20Logic/database/bind_databases.py) | |
| | Events | | [```security/system/security_manager.py```](3.%20Logic/security/system/security_manager.py) | |
| __Logic__ | Business Rules | n/a | [```logic/declare_logic.py```](3.%20Logic/logic/declare_logic.py) | ***Unique*** to API Logic Server |
| __Security__ | Multi-tenant | n/a | [```security/declare_security.py```](3.%20Logic/security/declare_security.py) | |
| __Behave__ | Testing | | [```test/.../place_order.py```](3.%20Logic/test/api_logic_server_behave/features/steps/place_order.py) | |
| __Alembic__ | Schema Changes | | [```database/alembic/readme.md```](3.%20Logic/database/alembic/readme.md) | |
| __Docker__ | Dev Env | | [```.devcontainer/devcontainer.json```](.devcontainer/devcontainer.json) | See also "For_VS_Code.dockerFile" |
| | Containerize Project | | [```devops/docker/build-container.dockerfile```](3.%20Logic/devops/docker/build-container.dockerfile) | |
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/tutorial/readme.md
|
readme.md
|
import sqlite3
from os import path
import logging
import sys
from typing import Any, Optional, Tuple
import sqlalchemy
from sqlalchemy.ext.hybrid import hybrid_property
from sqlalchemy.orm import object_mapper
import flask_sqlalchemy
from logic_bank.rule_bank.rule_bank import RuleBank
app_logger = logging.getLogger(__name__)
def log(msg: object) -> None:
app_logger.debug(msg)
# print("TIL==> " + msg)
def connection() -> sqlite3.Connection:
ROOT: str = path.dirname(path.realpath(__file__))
log(ROOT)
_connection = sqlite3.connect(path.join(ROOT, "sqlitedata.db"))
return _connection
def dbpath(dbname: str) -> str:
ROOT: str = path.dirname(path.realpath(__file__))
log('ROOT: '+ROOT)
PATH: str = path.join(ROOT, dbname)
log('DBPATH: '+PATH)
return PATH
def json_to_entities(from_row: str or object, to_row):
"""
transform json object to SQLAlchemy rows, for save & logic
:param from_row: json service payload: dict - e.g., Order and OrderDetailsList
:param to_row: instantiated mapped object (e.g., Order)
:return: updates to_row with contents of from_row (recursively for lists)
"""
def get_attr_name(mapper, attr)-> Tuple[Optional[Any], str]:
""" returns name, type of SQLAlchemy attr metadata object """
attr_name = None
attr_type = "attr"
if hasattr(attr, "key"):
attr_name = attr.key
elif isinstance(attr, hybrid_property):
attr_name = attr.__name__
elif hasattr(attr, "__name__"):
attr_name = attr.__name__
elif hasattr(attr, "name"):
attr_name = attr.name
if attr_name == "OrderDetailListX" or attr_name == "CustomerX":
print("Debug Stop")
if isinstance(attr, sqlalchemy.orm.relationships.RelationshipProperty): # hasattr(attr, "impl"): # sqlalchemy.orm.relationships.RelationshipProperty
if attr.uselist:
attr_type = "list"
else: # if isinstance(attr.impl, sqlalchemy.orm.attributes.ScalarObjectAttributeImpl):
attr_type = "object"
return attr_name, attr_type
row_mapper = object_mapper(to_row)
for each_attr_name in from_row:
if hasattr(to_row, each_attr_name):
for each_attr in row_mapper.attrs:
mapped_attr_name, mapped_attr_type = get_attr_name(row_mapper, each_attr)
if mapped_attr_name == each_attr_name:
if mapped_attr_type == "attr":
value = from_row[each_attr_name]
setattr(to_row, each_attr_name, value)
elif mapped_attr_type == "list":
child_from = from_row[each_attr_name]
for each_child_from in child_from:
child_class = each_attr.entity.class_
# eachOrderDetail = OrderDetail(); order.OrderDetailList.append(eachOrderDetail)
child_to = child_class() # instance of child (e.g., OrderDetail)
json_to_entities(each_child_from, child_to)
child_list = getattr(to_row, each_attr_name)
child_list.append(child_to)
pass
elif mapped_attr_type == "object":
log("a parent object - skip (future - lookups here?)")
break
rule_count = 0
from flask import request, jsonify
def rules_report():
"""
logs report of all rules, using rules_bank.__str__()
"""
global rule_count
rules_bank = RuleBank()
logic_logger = logging.getLogger("logic_logger")
rule_count = 0
logic_logger.debug(f'\nThe following rules have been activated\n')
list_rules = rules_bank.__str__()
loaded_rules = list(list_rules.split("\n"))
for each_rule in loaded_rules:
logic_logger.info(each_rule + '\t\t## ')
rule_count += 1
logic_logger.info(f'Logic Bank - {rule_count} rules loaded')
def server_log(request, jsonify):
"""
Used by test/*.py - enables client app to log msg into server
"""
import os
import datetime
from pathlib import Path
import logging
global rule_count
def add_file_handler(logger, name: str, log_dir):
"""Add a file handler for this logger with the specified `name` (and
store the log file under `log_dir`)."""
# Format for file log
for each_handler in logger.handlers:
each_handler.flush()
handler_name = str(each_handler)
if "stderr" in handler_name:
pass
# print(f'do not delete stderr')
else:
logger.removeHandler(each_handler)
fmt = '%(asctime)s | %(levelname)8s | %(filename)s:%(lineno)d | %(message)s'
formatter = logging.Formatter(fmt)
formatter = logging.Formatter('%(message)s - %(asctime)s - %(name)s - %(levelname)s')
# Determine log path/file name; create log_dir if necessary
now = datetime.datetime.now().strftime('%Y%m%d_%H%M%S')
log_name = f'{str(name).replace(" ", "_")}' # {now}'
if len(log_name) >= 26:
log_name = log_name[0:25]
if not os.path.exists(log_dir):
try:
os.makedirs(log_dir)
except:
app_logger.info(f'util.add_file_handler unable to create dir {log_dir}')
log_dir = '/tmp' if sys.platform.startswith('linux') else '.'
app_logger.info(f'Defaulting to {log_dir}.')
log_file = os.path.join(log_dir, log_name) + '.log'
if os.path.exists(log_file):
os.remove(log_file)
else:
pass # file does not exist
# Create file handler for logging to a file (log all five levels)
# print(f'create file handler for logging: {log_file}')
logger.file_handler = logging.FileHandler(log_file)
logger.file_handler.setLevel(logging.DEBUG)
logger.file_handler.setFormatter(formatter)
logger.addHandler(logger.file_handler)
msg = request.args.get('msg')
test = request.args.get('test')
if test is not None and test != "None":
if test == "None":
print(f'None for msg: {msg}')
logic_logger = logging.getLogger('logic_logger') # for debugging user logic
# logic_logger.info("\n\nLOGIC LOGGER HERE\n")
dir = request.args.get('dir')
add_file_handler(logic_logger, test, Path(os.getcwd()).joinpath(dir))
if msg == "Rules Report":
rules_report()
logic_logger.info(f'Logic Bank {__version__} - {rule_count} rules loaded')
else:
app_logger.info(f'{msg}')
return jsonify({"result": f'ok'})
def format_nested_object(row
, replace_attribute_tag: str = ""
, remove_links_relationships: bool = False) -> dict:
"""
Args:
row (safrs.DB.Model): models instance (object + related objects)
replace_attribute_tag (str): replace _attribute_ tag with this name
remove_links_relationships (bool): remove these tags
Example: in sample nw project, see customize_api: order()
Returns:
_type_: row suitable for safrs response (a dict)
"""
row_as_dict = jsonify(row).json
log(f'row_to_dict: {row_as_dict}')
if replace_attribute_tag != "":
row_as_dict[replace_attribute_tag] = row_as_dict.pop('attributes')
if remove_links_relationships:
row_as_dict.pop('links')
row_as_dict.pop('relationships')
return row_as_dict
def rows_to_dict(result: flask_sqlalchemy.BaseQuery) -> list:
"""
Converts SQLAlchemy result (mapped or raw) to dict array of un-nested rows
Args:
result (object): list of serializable objects (e.g., dict)
Returns:
list of rows as dicts
"""
rows = []
for each_row in result:
row_as_dict = {}
log(f'type(each_row): {type(each_row)}')
if isinstance (each_row, sqlalchemy.engine.row.Row): # raw sql, eg, sample catsql
key_to_index = each_row._key_to_index # note: SQLAlchemy 2 specific
for name, value in key_to_index.items():
row_as_dict[name] = each_row[value]
else:
row_as_dict = each_row.to_dict()
rows.append(row_as_dict)
return rows
def sys_info():
"""
Print env and path
"""
import os, socket
print("\n\nsys_info here")
print("\nEnvironment Variables...")
env = os.environ
for each_variable in os.environ:
print(f'.. {each_variable} = {env[each_variable]}')
print("\nPYTHONPATH..")
for p in sys.path:
print(".." + p)
print("")
print(f'sys.prefix (venv): {sys.prefix}\n')
print("")
hostname = socket.gethostname()
try:
local_ip = socket.gethostbyname(hostname)
except:
local_ip = f"Warning - Failed local_ip = socket.gethostbyname(hostname) with hostname: {hostname}"
print(f"hostname={hostname} on local_ip={local_ip}\n\n")
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/tutorial/0. App_Fiddle/util.py
|
util.py
|
from os import environ, path
from pathlib import Path
import os
from dotenv import load_dotenv
import logging
# for complete flask_sqlachemy config parameters and session handling,
# read: file flask_sqlalchemy/__init__.py AND flask/config.py
'''
app.config.setdefault('SQLALCHEMY_DATABASE_URI', 'sqlite:///:memory:')
app.config.setdefault('SQLALCHEMY_BINDS', None)
app.config.setdefault('SQLALCHEMY_NATIVE_UNICODE', None)
app.config.setdefault('SQLALCHEMY_ECHO', False)
app.config.setdefault('SQLALCHEMY_RECORD_QUERIES', None)
app.config.setdefault('SQLALCHEMY_POOL_SIZE', None)
app.config.setdefault('SQLALCHEMY_POOL_TIMEOUT', None)
app.config.setdefault('SQLALCHEMY_POOL_RECYCLE', None)
app.config.setdefault('SQLALCHEMY_MAX_OVERFLOW', None)
app.config.setdefault('SQLALCHEMY_COMMIT_ON_TEARDOWN', False)
'''
basedir = path.abspath(path.dirname(__file__))
load_dotenv(path.join(basedir, "default.env"))
app_logger = logging.getLogger('api_logic_server_app')
class Config:
"""Set Flask configuration from .env file."""
# General Config
SECRET_KEY = environ.get("SECRET_KEY")
FLASK_APP = environ.get("FLASK_APP")
FLASK_ENV = environ.get("FLASK_ENV")
DEBUG = environ.get("DEBUG")
running_at = Path(__file__)
project_abs_dir = running_at.parent.absolute()
# Database
SQLALCHEMY_DATABASE_URI = f"sqlite:///{str(project_abs_dir.joinpath('database/db.sqlite'))}"
# override SQLALCHEMY_DATABASE_URI here as required
app_logger.debug(f'config.py - SQLALCHEMY_DATABASE_URI: {SQLALCHEMY_DATABASE_URI}')
# as desired, use env variable: export SQLALCHEMY_DATABASE_URI='sqlite:////Users/val/dev/servers/docker_api_logic_project/database/db.sqliteXX'
if os.getenv('SQLALCHEMY_DATABASE_URI'): # e.g. export SECURITY_ENABLED=true
SQLALCHEMY_DATABASE_URI = os.getenv('SQLALCHEMY_DATABASE_URI')
app_logger.debug(f'.. overridden from env variable: {SQLALCHEMY_DATABASE_URI}')
SQLALCHEMY_TRACK_MODIFICATIONS = False
PROPAGATE_EXCEPTIONS = False
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/tutorial/0. App_Fiddle/config.py
|
config.py
|
# 1. Learn APIs using Flask / SQLAlchemy
This is a manually coded server providing a few APIs for [this database](https://apilogicserver.github.io/Docs/Sample-Database/).
It is the smallest example of a typical project for a modern database API server.
# APIs
Here's a brief overview of APIs.
## Requirement: Networked Database Access
Most database applications require networked database access. You simply cannot call database access libraries (e.g., ODBC, JDBC) from a mobile app or a remote computer for B2B or application integration.
## RESTful APIs: Leverage HTTP, JSON
REST has emerged as a loose standard for APIs, by leveraging 2 key technology elements:
* **HTTP protocol:** Web Browsers utilize this, invoking `Get` commands to obtain `html` responses, but HTTP is far more extensive as shown in the table below.
* **JSON:** JavaScript Object Notation is supported by virtually all language, providing readable formatting for objects/properties, including lists and sub-objects.
## Example: retrieve some data
HTTP is invoked with a URL, as shown in the following cURL command, identifies a verb, a server/port, an endpoint (`order`) and arguments:
```
curl -X GET "http://localhost:8080/order?Id=10643"
```
## Key Elements
| HTTP Component | Designates | Notes | Example |
|:----|:--------|:--------|:--------|
| **Verb** | `Post`, `Get`, `Patch`, `Delete` | Maps well to ***crud*** | `Get` |
| Server:port | Identifies server | | http://localhost:8080 |
| **Endpoint** | Can be series of nodes | Analogous to **table/view** name | `Order` |
| **Arguments** | Key/values Start with `?`, separate by `&` | E.g., **filter/sort**. Caution: special characters | `?Id=10643` |
| Return Code | Success/failure | a number | 200 means success |
| **Response** | The requested data | JSON format | See below |
| **Request** | Data for insert, update | JSON format | Not used for `Get` |
| *Header* | **Authentication** | typically a token | Commonly JWT (Java Web Token) |
<details markdown>
<br>
<summary>Response Example</summary>
```json
{
"AmountTotal": "1086.00",
"City": "None",
"CloneFromOrder": "None",
"Country": "None",
"CustomerId": "ALFKI",
"Customer_Name": "Alfreds Futterkiste",
"EmployeeId": "6",
"Freight": "29.4600000000",
"Id": "10643",
"OrderDate": "2013-08-25",
"OrderDetailCount": "3",
"OrderDetailListAsDicts": [
{
"Amount": "684.0000000000",
"Discount": "0.25",
"Id": "1040",
"OrderId": "10643",
"ProductId": "28",
"ProductName": "R\u00f6ssle Sauerkraut",
"Quantity": "15",
"ShippedDate": "None",
"UnitPrice": "45.6000000000"
},
{
"Amount": "378.0000000000",
"Discount": "0.25",
"Id": "1041",
"OrderId": "10643",
"ProductId": "39",
"ProductName": "Chartreuse verte",
"Quantity": "21",
"ShippedDate": "None",
"UnitPrice": "18.0000000000"
},
{
"Amount": "24.0000000000",
"Discount": "0.25",
"Id": "1042",
"OrderId": "10643",
"ProductId": "46",
"ProductName": "Spegesild",
"Quantity": "2",
"ShippedDate": "None",
"UnitPrice": "12.0000000000"
}
],
"Ready": "True",
"RequiredDate": "2013-09-22",
"ShipAddress": "Obere Str. 57",
"ShipCity": "Berlin",
"ShipCountry": "Germany",
"ShipName": "Alfreds Futterkiste",
"ShipZip": "12209",
"ShipRegion": "Western Europe",
"ShipVia": "1",
"ShippedDate": "None"
}
```
</details>
### Considerable Design Required
There is ***considerable*** variation with RESTful servers:
* how the arguments are specified
* how exactly are request/response objects structured, etc.
Resolving these is a substantial design task, requiring considerable time and experience. Standards such as **JSON:API** can therefore save time and improve quality.
# Python Frameworks
Creating an API Server requires 2 basic tools: a Framework, and database access.
There are several libraries for creating Web Servers in Python, including Django, Fast API, and Flask. Here we will explore:
* Flask - a framework for receiving HTTP calls and returning responses
* SQLAlchemy - SQL Access
## Framework - Flask
A framework is a "your code goes here" library, providing backend functions to handle api calls, html calls, etc. The framework provides key basic functions such as:
* listening for incoming calls, and **invoking your code** (your 'handler')
* providing **access to url parameters and request data**
* enabling you to **return a response** in a designated format, such as html or json
A popular framework in Python is ***Flask***, illustrated in this application. Basically:
```python
@app.route('/order', methods=['GET']) # Tell Flask: call this on order request
def order():
order_id = request.args.get('Id') # Obtain URL argument from Flask
```
## Data Access - SQLAlchemy ORM
In your handler, you may need to read or write database data. You can use raw SQL, or an ORM (Object Relational Manager) such as SQLAlchemy. ORMs can facilitate database access:
* **use Objects** (instead of dictionaries), which provide IDE services such as code completion to simplify coding and reduce errors
* simplified **access to related data** (e.g., a simple way to get the OrderDetails for an Order)
* **custom naming** - independent of database table/columns
* See `Category.CategoryName`, `Order.ShipZip`<br><br>
* other services, such as support for type hierarchies
There are 2 basic elements for using an ORM:
* provide **data model classes** - these are used to read/write data, and can also be used to create / update the database structure (add tables and columns). See `database/models.py`:
```python
class Customer(Base):
__tablename__ = 'Customer'
_s_collection_name = 'Customer'
__bind_key__ = 'None'
Id = Column(String(8000), primary_key=True)
CompanyName = Column(String(8000))
OrderList = relationship('Order', cascade_backrefs=False, backref='Customer')
```
* use **data access** - verbs to read/write data. See `api/end_points.py`:
```python
order = db.session.query(models.Order).filter(models.Order.Id == order_id).one()
for each_order_detail in order.OrderDetailList: # SQLAlchemy related data access
```
---
# Exploring the App
## App Structure
Long before you use the Flask/SQLAlchemy tools, you need to create project structure. You can explore [```1. Learn APIs using Flask SqlAlchemy```](../1.%20Learn%20APIs%20using%20Flask%20SqlAlchemy/):
* `api` - a directory for api code
* `database` - a directory for SQLAlchemy artifacts
There are also important devops artifacts:
* `.devcontainer/` - files here enable your project to be run in docker images (including Codespaces), and to package your application as an image for production deployment
* `config.py` - use this to set up key configuration parameters, including code to override them with environment variables
## Server
See [```flask_basic.py```](/1.%20Learn%20APIs%20using%20Flask%20SqlAlchemy/flask_basic.py) to see how to establish a Flask server. It's this program you ran to start the server.
## API
Explore [```api/end_points.py```](/1.%20Learn%20APIs%20using%20Flask%20SqlAlchemy/api/end_points.py) for examples of handling api calls. See `def order():`.
## Data Access
There are 2 files to explore for SQLAlchemy:
* See [```database/models.py```](/1.%20Learn%20APIs%20using%20Flask%20SqlAlchemy/database/models.py) for examples of defining objects (models) for database rows. These correspond to the tables in your database.
* See [```api/end_points.py```](/1.%20Learn%20APIs%20using%20Flask%20SqlAlchemy/api/end_points.py) for examples of SQLAlchemy calls. See `def order():`.
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/tutorial/0. App_Fiddle/readme.md
|
readme.md
|
from sqlalchemy import Boolean, Column, DECIMAL, Date, Float, ForeignKey, ForeignKeyConstraint, Integer, LargeBinary, String, Table, Text, text
from sqlalchemy.orm import relationship
from sqlalchemy.sql.sqltypes import NullType
from sqlalchemy.ext.declarative import declarative_base
########################################################################################################################
# Classes describing database for SqlAlchemy ORM.
########################################################################################################################
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
Base = declarative_base()
metadata = Base.metadata
#NullType = db.String # datatype fixup
#TIMESTAMP= db.TIMESTAMP
from sqlalchemy.dialects.sqlite import *
########################################################################################################################
class Category(Base):
__tablename__ = 'CategoryTableNameTest'
_s_collection_name = 'Category'
__bind_key__ = 'None'
Id = Column(Integer, primary_key=True)
CategoryName = Column('CategoryName_ColumnName', String(8000)) # logical name
Description = Column(String(8000))
Client_id = Column(Integer)
class Customer(Base):
__tablename__ = 'Customer'
_s_collection_name = 'Customer'
__bind_key__ = 'None'
Id = Column(String(8000), primary_key=True)
CompanyName = Column(String(8000))
ContactName = Column(String(8000))
ContactTitle = Column(String(8000))
Address = Column(String(8000))
City = Column(String(8000))
Region = Column(String(8000))
PostalCode = Column(String(8000))
Country = Column(String(8000))
Phone = Column(String(8000))
Fax = Column(String(8000))
Balance = Column(DECIMAL)
CreditLimit = Column(DECIMAL)
OrderCount = Column(Integer, server_default=text("0"))
UnpaidOrderCount = Column(Integer, server_default=text("0"))
Client_id = Column(Integer)
allow_client_generated_ids = True
OrderList = relationship('Order', cascade_backrefs=False, backref='Customer')
class CustomerDemographic(Base):
__tablename__ = 'CustomerDemographic'
_s_collection_name = 'CustomerDemographic'
__bind_key__ = 'None'
Id = Column(String(8000), primary_key=True)
CustomerDesc = Column(String(8000))
allow_client_generated_ids = True
class Department(Base):
__tablename__ = 'Department'
_s_collection_name = 'Department'
__bind_key__ = 'None'
Id = Column(Integer, primary_key=True)
DepartmentId = Column(ForeignKey('Department.Id'))
DepartmentName = Column(String(100))
# see backref on parent: Department = relationship('Department', remote_side=[Id], cascade_backrefs=False, backref='DepartmentList')
Department = relationship('Department', remote_side=[Id], cascade_backrefs=False, backref='DepartmentList') # special handling for self-relationships
EmployeeList = relationship('Employee', primaryjoin='Employee.OnLoanDepartmentId == Department.Id', cascade_backrefs=False, backref='Department')
EmployeeList1 = relationship('Employee', primaryjoin='Employee.WorksForDepartmentId == Department.Id', cascade_backrefs=False, backref='Department1')
class Location(Base):
__tablename__ = 'Location'
_s_collection_name = 'Location'
__bind_key__ = 'None'
country = Column(String(50), primary_key=True)
city = Column(String(50), primary_key=True)
notes = Column(String(256))
allow_client_generated_ids = True
OrderList = relationship('Order', cascade_backrefs=False, backref='Location')
class Product(Base):
__tablename__ = 'Product'
_s_collection_name = 'Product'
__bind_key__ = 'None'
Id = Column(Integer, primary_key=True)
ProductName = Column(String(8000))
SupplierId = Column(Integer, nullable=False)
CategoryId = Column(Integer, nullable=False)
QuantityPerUnit = Column(String(8000))
UnitPrice = Column(DECIMAL, nullable=False)
UnitsInStock = Column(Integer, nullable=False)
UnitsOnOrder = Column(Integer, nullable=False)
ReorderLevel = Column(Integer, nullable=False)
Discontinued = Column(Integer, nullable=False)
UnitsShipped = Column(Integer)
OrderDetailList = relationship('OrderDetail', cascade_backrefs=False, backref='Product')
class Region(Base):
__tablename__ = 'Region'
_s_collection_name = 'Region'
__bind_key__ = 'None'
Id = Column(Integer, primary_key=True)
RegionDescription = Column(String(8000))
class SampleDBVersion(Base):
__tablename__ = 'SampleDBVersion'
_s_collection_name = 'SampleDBVersion'
__bind_key__ = 'None'
Id = Column(Integer, primary_key=True)
Notes = Column(String(800))
class Shipper(Base):
__tablename__ = 'Shipper'
_s_collection_name = 'Shipper'
__bind_key__ = 'None'
Id = Column(Integer, primary_key=True)
CompanyName = Column(String(8000))
Phone = Column(String(8000))
class Supplier(Base):
__tablename__ = 'Supplier'
_s_collection_name = 'Supplier'
__bind_key__ = 'None'
Id = Column(Integer, primary_key=True)
CompanyName = Column(String(8000))
ContactName = Column(String(8000))
ContactTitle = Column(String(8000))
Address = Column(String(8000))
City = Column(String(8000))
Region = Column(String(8000))
ShipZip = Column('ShipPostalCode', String(8000)) # manual fix - alias
Country = Column(String(8000))
Phone = Column(String(8000))
Fax = Column(String(8000))
HomePage = Column(String(8000))
class Territory(Base):
__tablename__ = 'Territory'
_s_collection_name = 'Territory'
__bind_key__ = 'None'
Id = Column(String(8000), primary_key=True)
TerritoryDescription = Column(String(8000))
RegionId = Column(Integer, nullable=False)
allow_client_generated_ids = True
EmployeeTerritoryList = relationship('EmployeeTerritory', cascade_backrefs=False, backref='Territory')
class Union(Base):
__tablename__ = 'Union'
_s_collection_name = 'Union'
__bind_key__ = 'None'
Id = Column(Integer, primary_key=True)
Name = Column(String(80))
EmployeeList = relationship('Employee', cascade_backrefs=False, backref='Union')
t_sqlite_sequence = Table(
'sqlite_sequence', metadata,
Column('name', NullType),
Column('seq', NullType)
)
class Employee(Base):
__tablename__ = 'Employee'
_s_collection_name = 'Employee'
__bind_key__ = 'None'
Id = Column(Integer, primary_key=True)
LastName = Column(String(8000))
FirstName = Column(String(8000))
Title = Column(String(8000))
TitleOfCourtesy = Column(String(8000))
BirthDate = Column(String(8000))
HireDate = Column(String(8000))
Address = Column(String(8000))
City = Column(String(8000))
Region = Column(String(8000))
PostalCode = Column(String(8000))
Country = Column(String(8000))
HomePhone = Column(String(8000))
Extension = Column(String(8000))
Notes = Column(String(8000))
ReportsTo = Column(Integer, index=True)
PhotoPath = Column(String(8000))
EmployeeType = Column(String(16), server_default=text("Salaried"))
Salary = Column(DECIMAL)
WorksForDepartmentId = Column(ForeignKey('Department.Id'))
OnLoanDepartmentId = Column(ForeignKey('Department.Id'))
UnionId = Column(ForeignKey('Union.Id'))
Dues = Column(DECIMAL)
# see backref on parent: Department = relationship('Department', primaryjoin='Employee.OnLoanDepartmentId == Department.Id', cascade_backrefs=False, backref='EmployeeList')
# see backref on parent: Union = relationship('Union', cascade_backrefs=False, backref='EmployeeList')
# see backref on parent: Department1 = relationship('Department', primaryjoin='Employee.WorksForDepartmentId == Department.Id', cascade_backrefs=False, backref='EmployeeList_Department1')
EmployeeAuditList = relationship('EmployeeAudit', cascade_backrefs=False, backref='Employee')
EmployeeTerritoryList = relationship('EmployeeTerritory', cascade_backrefs=False, backref='Employee')
OrderList = relationship('Order', cascade_backrefs=False, backref='Employee')
class EmployeeAudit(Base):
__tablename__ = 'EmployeeAudit'
_s_collection_name = 'EmployeeAudit'
__bind_key__ = 'None'
Id = Column(Integer, primary_key=True)
Title = Column(String)
Salary = Column(DECIMAL)
LastName = Column(String)
FirstName = Column(String)
EmployeeId = Column(ForeignKey('Employee.Id'))
CreatedOn = Column(Text)
# see backref on parent: Employee = relationship('Employee', cascade_backrefs=False, backref='EmployeeAuditList')
class EmployeeTerritory(Base):
__tablename__ = 'EmployeeTerritory'
_s_collection_name = 'EmployeeTerritory'
__bind_key__ = 'None'
Id = Column(String(8000), primary_key=True)
EmployeeId = Column(ForeignKey('Employee.Id'), nullable=False)
TerritoryId = Column(ForeignKey('Territory.Id'))
allow_client_generated_ids = True
# see backref on parent: Employee = relationship('Employee', cascade_backrefs=False, backref='EmployeeTerritoryList')
# see backref on parent: Territory = relationship('Territory', cascade_backrefs=False, backref='EmployeeTerritoryList')
class Order(Base):
__tablename__ = 'Order'
_s_collection_name = 'Order'
__bind_key__ = 'None'
__table_args__ = (
ForeignKeyConstraint(['Country', 'City'], ['Location.country', 'Location.city']),
)
Id = Column(Integer, primary_key=True)
CustomerId = Column(ForeignKey('Customer.Id'), nullable=False, index=True)
EmployeeId = Column(ForeignKey('Employee.Id'), nullable=False, index=True)
OrderDate = Column(String(8000))
RequiredDate = Column(Date)
ShippedDate = Column(String(8000))
ShipVia = Column(Integer)
Freight = Column(DECIMAL, server_default=text("0"))
ShipName = Column(String(8000))
ShipAddress = Column(String(8000))
ShipCity = Column(String(8000))
ShipRegion = Column(String(8000))
ShipZip = Column('ShipPostalCode', String(8000)) # manual fix - alias
ShipCountry = Column(String(8000))
AmountTotal = Column(DECIMAL(10, 2))
Country = Column(String(50))
City = Column(String(50))
Ready = Column(Boolean, server_default=text("TRUE"))
OrderDetailCount = Column(Integer, server_default=text("0"))
CloneFromOrder = Column(ForeignKey('Order.Id'))
# see backref on parent: parent = relationship('Order', remote_side=[Id], cascade_backrefs=False, backref='OrderList')
# see backref on parent: Location = relationship('Location', cascade_backrefs=False, backref='OrderList')
# see backref on parent: Customer = relationship('Customer', cascade_backrefs=False, backref='OrderList')
# see backref on parent: Employee = relationship('Employee', cascade_backrefs=False, backref='OrderList')
parent = relationship('Order', remote_side=[Id], cascade_backrefs=False, backref='OrderList') # special handling for self-relationships
OrderDetailList = relationship('OrderDetail', cascade='all, delete', cascade_backrefs=False, backref='Order') # manual fix
class OrderDetail(Base):
__tablename__ = 'OrderDetail'
_s_collection_name = 'OrderDetail'
__bind_key__ = 'None'
Id = Column(Integer, primary_key=True)
OrderId = Column(ForeignKey('Order.Id'), nullable=False, index=True)
ProductId = Column(ForeignKey('Product.Id'), nullable=False, index=True)
UnitPrice = Column(DECIMAL)
Quantity = Column(Integer, server_default=text("1"), nullable=False)
Discount = Column(Float, server_default=text("0"))
Amount = Column(DECIMAL)
ShippedDate = Column(String(8000))
# see backref on parent: Order = relationship('Order', cascade_backrefs=False, backref='OrderDetailList')
# see backref on parent: Product = relationship('Product', cascade_backrefs=False, backref='OrderDetailList')
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/tutorial/0. App_Fiddle/database/models.py
|
models.py
|
import logging
from flask import request, jsonify
from database import models
import util
from sqlalchemy import inspect
def row2dict(row):
"""
Get dict for row.
Note mapped rows are *logical*, not physical db table/column names.
* see Category, Order.ShipZip
https://docs.sqlalchemy.org/en/20/orm/mapping_styles.html#inspection-of-mapped-instances
Args:
row (_type_): row instance (mapped object)
Returns:
_type_: dict of attr names/values
"""
mapper = inspect(row.__class__).mapper
return {
c.key: str(getattr(row, c.key))
for c in mapper.attrs # not: for c in row.__table__.columns
}
def flask_events(app, db):
"""
Illustrate flask events
"""
app_logger = logging.getLogger(__name__)
@app.route('/hello_world')
def hello_world():
"""
Illustrates simplest possible endpoint, with url args.
The url suffix is specified in the annotation.
Test it with: http://localhost:8080/hello_world?user=Basic_App
Returns:
json : a simple string
"""
user = request.args.get('user') # obtain URL argument from Flask via built-in request object
app_logger.info(f'{user}')
return jsonify({"result": f'hello, {user}'}) # the api response (in json)
@app.route('/order', methods=['GET']) # tell Flask: call this function when /order request occurs
def order():
"""
End point to return a nested result set response, from related database rows
Illustrates:
1. Obtain URL argument from Flask
2. Read data from SQLAlchemy, and related data (via foreign keys)
3. Restructure row results to desired json (e.g., for tool such as Sencha)
4. Use Flask to return nested response json
Test:
http://localhost:8080/order?Id=10643
curl -X GET "http://localhost:8080/order?Id=10643"
"""
# 1. Obtain URL argument from Flask
order_id = request.args.get('Id')
# 2. Read data from SQLAlchemy
order = db.session.query(models.Order).\
filter(models.Order.Id == order_id).one()
app_logger.info(f'\n Breakpoint - examine order in debugger \n')
# 3. Restructure row results - format as result_std_dict
result_std_dict = util.format_nested_object(row2dict(order)
, remove_links_relationships=False)
result_std_dict['Customer_Name'] = order.Customer.CompanyName # eager fetch
result_std_dict['OrderDetailListAsDicts'] = []
for each_order_detail in order.OrderDetailList: # SQLAlchemy related data access
each_order_detail_dict = util.format_nested_object(row=row2dict(each_order_detail)
, remove_links_relationships=False)
each_order_detail_dict['ProductName'] = each_order_detail.Product.ProductName
result_std_dict['OrderDetailListAsDicts'].append(each_order_detail_dict)
# 4. Use Flask to return nested response json (Flask jsonifies dict)
return result_std_dict # rest response
@app.route('/stop')
def stop(): # test it with: http://localhost:8080/stop?msg=API stop - Stop Basic App Server
"""
Use this to stop the server from the Browser.
See: https://stackoverflow.com/questions/15562446/how-to-stop-flask-application-without-using-ctrl-c
"""
import os, signal
msg = request.args.get('msg')
app_logger.info(f'\nStopped server: {msg}\n')
os.kill(os.getpid(), signal.SIGINT)
return jsonify({ "success": True, "message": "Server is shutting down..." })
logging.info("\n\n..Basic App, exposing end points: hello_world, order, stop\n")
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/tutorial/0. App_Fiddle/api/end_points.py
|
end_points.py
|
import * as React from 'react';
import { styled } from '@mui/material/styles';
import ArrowForwardIosSharpIcon from '@mui/icons-material/ArrowForwardIosSharp';
import MuiAccordion from '@mui/material/Accordion';
import MuiAccordionSummary from '@mui/material/AccordionSummary';
import MuiAccordionDetails from '@mui/material/AccordionDetails';
import Typography from '@mui/material/Typography';
import { typography } from '@material-ui/system';
const Accordion = styled((props) => (
<MuiAccordion disableGutters elevation={0} square {...props} />
))(({ theme }) => ({
border: `1px solid ${theme.palette.divider}`,
'&:not(:last-child)': {
borderBottom: 0,
},
'&:before': {
display: 'none',
},
}));
const AccordionSummary = styled((props) => (
<MuiAccordionSummary
expandIcon={<ArrowForwardIosSharpIcon sx={{ fontSize: '0.9rem' }} />}
{...props}
/>
))(({ theme }) => ({
backgroundColor:
theme.palette.mode === 'dark'
? 'rgba(255, 255, 255, .05)'
: 'rgba(0, 0, 0, .03)',
flexDirection: 'row-reverse',
'& .MuiAccordionSummary-expandIconWrapper.Mui-expanded': {
transform: 'rotate(90deg)',
},
'& .MuiAccordionSummary-content': {
marginLeft: theme.spacing(1),
},
}));
const AccordionDetails = styled(MuiAccordionDetails)(({ theme }) => ({
padding: theme.spacing(2),
borderTop: '1px solid rgba(0, 0, 0, .125)',
}));
export default function CustomizedAccordions() {
const [expanded, setExpanded] = React.useState('panel1');
const handleChange = (panel) => (event, newExpanded) => {
setExpanded(newExpanded ? panel : false);
};
return (
<div>
<div className="MuiTypography-root jss4">
<Typography variant="h4" align="center">Welcome to API Logic Server -- Sample System</Typography>
<Typography lineHeight = {2}><br></br><a rel="nofollow" href="https://github.com/valhuber/ApiLogicServer/blob/main/README.md/" target="_blank">API Logic Server</a>
creates <i>customizable</i> model-driven systems, instantly from your
<a href="https://apilogicserver.github.io/Docs/Sample-Database/" target="_blank">database</a>.
<Typography><br></br></Typography>
</Typography>
<Accordion >
<AccordionSummary aria-controls="panel1d-content" id="panel1d-header">
<Typography>This app was not coded - it was <i>created.</i> Click here to see how:</Typography>
</AccordionSummary>
<AccordionDetails>
<Typography>
<ul>
<li><i>Automated: </i>create executable systems with this single command...
<pre>
ApiLogicServer <strong>create-and-run</strong> \<br></br>
--project_name=ApiLogicProject \ # customize with Python and your IDE<br></br>
--db_url=sqlite:///nw.sqlite # your db here
</pre>
</li>
<li><i>Model-driven: </i>creation builds executable
<a rel="nofollow" href="https://apilogicserver.github.io/Docshitecture/#customizable-declarative-models" target="_blank">models</a>
, not code
<ul>
<li>
Dramatically simpler to understand, customize and maintain
</li>
</ul>
<Typography> </Typography></li>
<li><i>Customizable: </i>models are created into a project;
<a rel="nofollow" href="https://apilogicserver.github.io/Docsject-Structure/" target="_blank">customize</a>
with Python and your IDE
<ul>
<li>This system has about 20 rules, and 20 lines of code</li>
</ul>
</li>
</ul>
</Typography>
</AccordionDetails>
</Accordion>
<Typography><br></br>
1.
<a href="https://apilogicserver.github.io/Docsin-Tour/" target="_blank">Automatic Admin App</a>
, you are running it now
<ul>
<li>For instant collaboration and Back Office data maintenance</li>
<li>Rich functionality: multi-page, multi-table, automatic joins</li>
<li>Explore this app (e.g., click Customer, at left),
and how to <a rel="nofollow" href="https://apilogicserver.github.io/Docsin-Customization/" target="_blank">customize it</a></li>
</ul>
2. <a href="/api" target="_blank">API</a>, with oas/Swagger
<ul>
<li>For custom app dev, application integration</li>
<li>Rich functionality: endpoint for each table, with filtering, pagination, related data</li>
<li><a rel="nofollow" href="https://github.com/valhuber/ApiLogicServer/wiki#customize-the-api-with-expose_servicespy-add-rpcs-services" target="_blank">Customizable</a>: add your own endpoints</li>
</ul>
3.
<a rel="nofollow" href="https://apilogicserver.github.io/Docsic/" target="_blank">Business Logic</a>
, for <span title="Often nearly half the app -- automation required"><span>backend processing</span> </span>
<ul>
<li>Spreadsheet-like rules for multi-table derivations and constraints</li>
<li>Extensible with Python events for email, messages, etc</li>
<li>Explore
how logic can meaningfully improve
<a rel="nofollow" href="https://github.com/valhuber/LogicBank/wiki/by-code" title="Rules are 40X more concise than code, and address over 95% of database logic" target="_blank">conciseness</a>
and quality</li>
</ul>
</Typography>
</div>
</div>
);
}
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/nw_pa/home_nw_pa.js
|
home_nw_pa.js
|
# +++++++++++ GENERAL DEBUGGING TIPS +++++++++++
# getting imports and sys.path right can be fiddly!
# We've tried to collect some general tips here:
# https://help.pythonanywhere.com/pages/DebuggingImportError
# +++++++++++ HELLO WORLD +++++++++++
# A little pure-wsgi hello world we've cooked up, just
# to prove everything works. You should delete this
# code to get your own working.
HELLO_WORLD = """<html>
<head>
<title>PythonAnywhere hosted web application</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>
This is the default welcome page for a
<a href="https://www.pythonanywhere.com/">PythonAnywhere</a>
hosted web application.
</p>
<p>
Find out more about how to configure your own web application
by visiting the <a href="https://www.pythonanywhere.com/web_app_setup/">web app setup</a> page
</p>
</body>
</html>"""
"""
def application(environ, start_response):
if environ.get('PATH_INFO') == '/':
status = '200 OK'
content = HELLO_WORLD
else:
status = '404 NOT FOUND'
content = 'Page not found.'
response_headers = [('Content-Type', 'text/html'), ('Content-Length', str(len(content)))]
start_response(status, response_headers)
yield content.encode('utf8')
"""
# Below are templates for Django and Flask. You should update the file
# appropriately for the web framework you're using, and then
# click the 'Reload /yourdomain.com/' button on the 'Web' tab to make your site
# live.
# +++++++++++ VIRTUALENV +++++++++++
# If you want to use a virtualenv, set its path on the web app setup tab.
# Then come back here and import your application object as per the
# instructions below
# +++++++++++ CUSTOM WSGI +++++++++++
# If you have a WSGI file that you want to serve using PythonAnywhere, perhaps
# in your home directory under version control, then use something like this:
#
#import sys
#
#path = '/home/ApiLogicServer/path/to/my/app
#if path not in sys.path:
# sys.path.append(path)
#
#from my_wsgi_file import application # noqa
# +++++++++++ DJANGO +++++++++++
# To use your own django app use code like this:
#import os
#import sys
#
## assuming your django settings file is at '/home/ApiLogicServer/mysite/mysite/settings.py'
## and your manage.py is is at '/home/ApiLogicServer/mysite/manage.py'
#path = '/home/ApiLogicServer/mysite'
#if path not in sys.path:
# sys.path.append(path)
#
#os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
#
## then:
#from django.core.wsgi import get_wsgi_application
#application = get_wsgi_application()
# +++++++++++ FLASK +++++++++++
# Flask works like any other WSGI-compatible framework, we just need
# to import the application. Often Flask apps are called "app" so we
# may need to rename it during the import:
#
#
import sys
#
## The "/home/ApiLogicServer" below specifies your home
## directory -- the rest should be the directory you uploaded your Flask
## code to underneath the home directory. So if you just ran
## "git clone [email protected]/myusername/myproject.git"
## ...or uploaded files to the directory "myproject", then you should
## specify "/home/ApiLogicServer/myproject"
path = '/home/ApiLogicServer/dev/ApiLogicProject' # updated in creation process
if path not in sys.path:
sys.path.append(path)
#
from api_logic_server_run import flask_app as application # noqa
#
# NB -- many Flask guides suggest you use a file called run.py; that's
# not necessary on PythonAnywhere. And you should make sure your code
# does *not* invoke the flask development server with app.run(), as it
# will prevent your wsgi file from working.
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/nw_pa/python_anywhere_wsgi.py
|
python_anywhere_wsgi.py
|
## About this Detailed Tutorial
This Detailed Tutorial is designed for these scenarios:
* You are using **codespaces** / VSCode, open to either the [tutorial project](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=593459232), or [app_fiddle](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=594296622).
* You are using a **local install** (pip install) version of API Logic Server, and have reviewed the [tutorial readme](https://github.com/ApiLogicServer/tutorial#readme).
* You are using a **docker version** of API Logic Server, and have reviewed the [tutorial readme](https://github.com/ApiLogicServer/tutorial#readme).
* Projects are pre-configured for VS Code with `.devcontainer` and `launch configurations,` so these instructions are oriented around VS Code.
* You are reviewing the docs, and want to get a sense of the software
In this tutorial, we will explore:
* **create** - we will briefly review what actually happens during the create process.
* **run** - we will first run the Admin App and the JSON:API. These will illustrate how automation creates an app and API from a data model. You can then infer what you'd get for one of your databases.
* **customize** - we will then explore some customizations already done for the API and logic, and how to debug them.
---
## Key Underlying Concepts
This tutorial illustrates some key concepts:
### _Declarative Models_, not code
Observe that the files for the Admin App and API are models that describe _what, not how_. This makes it much easier to understand than large amounts of generated code.
### Preserve Customizations
The system is designed to enable `rebuild`, so you can iterate the data model - _without losing your customizations._ In general, such customizations are kept in separate files from the model files. So, the model files can be rebuilt without affecting customization files.
### Logic Automation
A unique feature of API Logic Server is provision for spreadsheet-like rules, customizable with Python. Rules address update logic (multi-table derivations and constraints), and security (authorization).
---
## Create
[](https://youtu.be/tOojjEAct4M "Using VS Code with the ApiLogicServer container - click for video")
The diagram above summarizes the create / run / customize process. When you issue the `ApiLogicServer create` CLI command, the system reads your schema and creates a customizable API Logic Project.
> It's a video - click to view.
## Create and establish Python Environment
After creation, you must establish your Python environment:
* This is already complete for Codespace users
* Other users - please see [Quick Start > Express Install](https://valhuber.github.io/ApiLogicServer/IDE-Execute/). Note there are different instructions, depending on how your install / IDE.
## Start the Server and Admin App
> Stop any running servers that might still be running from the readme - (square red button at top in "Show me how", below).
Now (see *Show me how*, below, for details):
1. Start the server with **Run and Debug >> *2. API Logic Project: Instant, Open***, and then
2. Start the Browser at localhost:5656 by **clicking the url shown in the console log.**
<details markdown>
<summary> Show me how </summary>
To run the ApiLogicProject app:
1. Start the Server:
1. Click **Run and Debug**
2. Use the dropdown to select **3. API Logic Project: Logic**, and
3. Click the green button to start the server
<br><br>
2. Start the Browser at localhost:5656 by **clicking the url shown in the console log.**
<figure><img src="https://github.com/ApiLogicServer/Docs/blob/main/docs/images/tutorial/2-apilogicproject-tutorial.png?raw=true"></figure>
</details>
---
## Run
With the server started and the Admin App open in your Browser, we are ready to explore the Admin App and the API.
### Admin App: Multi-Page, Multi-Table, Automatic Joins
After starting the server and browser, explore the Admin App in your browser:
1. Navigate to `Customer`
* Depending on your screen size, you may need to hit the "hamburger menu" (top left) to see the left menu<br/><br/>
2. Click the first Customer row to see Customer Details
3. Observe the `Placed Order List` tab at the bottom
4. Click the first Order row
5. Observe the `Order Detail List` tab at the bottom
6. Observe the elements shown in the diagram
* Multi-Page - 2 pages for each table (list, with search, and display)
* Multi-Table - database relationships (typically from foreign keys) used to build master/detail pages
* Automatic Joins - the Order Detail table contains `ProductId`, but the system has joined in the `Product Name`. You can edit the `admin.yaml` file to control such behavior.
7. __Leave the server and browser running__
<figure><img src="https://github.com/valhuber/apilogicserver/wiki/images/ui-admin/run-admin-app.png?raw=true"></figure>
> **Key Take-away:** instant multi-page / multi-table admin apps, suitable for **back office, and instant agile collaboration.**
### JSON:API - Related Data, Filtering, Sorting, Pagination, Swagger
Your API is instantly ready to support ui and integration
development, available in swagger, as shown below. JSON:APIs are interesting because they
are client configurable to **reduce network traffic** and **minimize organizational dependencies.**
The creation process builds not only the API, but also swagger so you can explore it. The Admin App Home page provides a link to the swagger. In the browser:
1. Click __Home__ to open the Home Page
2. Click "2. API with __oas/Swagger__" to see the swagger
3. (Leave the swagger and server running)
<figure><img src="https://github.com/valhuber/apilogicserver/wiki/images/ui-admin/swagger.png?raw=true"></figure>
> **Key Take-away:** instant *rich* APIs, with filtering, sorting, pagination and swagger. **Custom App Dev is unblocked.**
---
## Customize and Debug
That's quite a good start on a project. But we've all seen generators that get close, but fail because the results cannot be extended, debugged, or managed with tools such as git and diff.
Let's examine how API Logic Server projects can be customized for both APIs and logic. We'll first have a quick look at the created project structure, then some typical customizations.
To run the customized app:
1. Stop the server
2. Restart the server with **Run and Debug >> *3. API Logic Project: Logic***, and then
3. Start the Browser at localhost:5656 by **clicking the url shown in the console log.**
4. Re-access the swagger, and authorize (see below):
* Click "2. API with __oas/Swagger__" to see the swagger (as you did above)
* Get an **access_token** and **authorize** (see Show me how, below)
<details markdown>
<summary> Show me how </summary>
**Get `access_token`:**
* Click the `auth/Post` endpoint (at the end of the swagger)
* Click **Try it out**
* Click **Execute** (you'll need to scroll down a bit)
* Copy the `access_token` to your clipboard
<figure><img src="https://github.com/ApiLogicServer/Docs/blob/main/docs/images/security/token-get.png?raw=true"></figure>
**Authenticate with your `access_token`**
* Scroll up to the top of the swagger, and click **Authorize**
* Enter **Bearer**, add a space, **paste** your `access_token`, click **Authorize**, and **Close** the dialog
<figure><img src="https://github.com/ApiLogicServer/Docs/blob/main/docs/images/security/token-auth.png?raw=true"></figure>
</details>
### Project Structure
Use VS Code's **Project Explorer** to see the project structure under *3. ApiLogicProject_Logic*:
| Directory | Usage | Key Customization File | Typical Customization |
|:-------------- |:------------------------------|:-----------------------------------|:--------------------------------------------------------------------------------------|
| ```api``` | JSON:API | ```api/customize_api.py``` | Add new end points / services |
| ```database``` | SQLAlchemy Data Model Classes | ```database/customize_models.py``` | Add derived attributes, and relationships missing in the schema |
| ```logic``` | Transactional Logic | ```logic/declare_logic.py``` | Declare multi-table derivations, constraints, and events such as send mail / messages |
| ```security``` | Admin App | ```security/declare_security.py``` | Control role-based access to data rows |
| ```ui``` | Admin App | ```ui/admin/admin.yaml``` | Control field display, ordering, etc. |
<figure><img src="https://raw.githubusercontent.com/valhuber/ApiLogicServer/main/images/generated-project.png"></figure>
Let's now explore some examples.
### Admin App Customization
There is no code for the Admin app - it's behavior is declared in the `admin.yaml` model file. Alter this file to control labels, hide fields, change display order, etc:
1. In your IDE, open **Explorer > 3. ApiLogicProject_Logic/ui/admin/admin.yaml**
* Find and alter the string `- label: 'Placed Order List'` (e.g, make it plural)
* Click Save
3. Load the updated configuration: in the running Admin App, click __Configuration > Reset__ and __Apply__
4. Revisit **Customer > Order** to observe the new label
> **Key Take-away:** you can alter labels, which fields are displayed and their order, etc -- via a simple model. No need to learn a new framework, or deal with low-level code or html.
### API Customization
While a standards-based API is a great start, sometimes you need custom endpoints tailored exactly to your business requirement. You can create these as shown below, where we create an additional endpoint for `add_order`.
To review the implementation:
1. In your IDE, open **Explorer > 3. ApiLogicProject_Logic/api/customize_api.py**:
3. Set the breakpoint as shown in `add_order`
4. Use the swagger to access the `ServicesEndPoint > add_order`, and
1. **Try it out**, then
2. **execute**
5. Your breakpoint will be hit
1. You can examine the variables, step, etc.
6. Click **Continue** on the floating debug menu (upper right in screen shot below)
<figure><img src="https://github.com/valhuber/apilogicserver/wiki/images/tutorial/customize-api.png?raw=true"></figure>
### Logic
API and UI automation are impressive answers to _familiar_ challenges. Logic automation is a _unique_ answer to a significant and unaddressed problem:
> For transaction systems, backend constraint and derivation logic is often nearly *half* the system. This is not addressed by conventional approaches of "your code goes here".
The *logic* portion of API *Logic* server is a declarative approach - you declare spreadsheet-like rules for multi-table constraints and derivations. The 5 rules shown below represent the same logic as 200 lines of Python - a remarkable **40X.**
> Since they automate all the re-use and dependency management, rules are [40X more concise](https://github.com/valhuber/LogicBank/wiki/by-code) than code. Like a spreadsheet, rules __watch__ for changes, __react__ by automatically executing relevant rules, which can __chain__ to activate other rules; you can [visualize the process here](https://valhuber.github.io/ApiLogicServer/Logic-Operation/#watch-react-chain).
[Logic](https://valhuber.github.io/ApiLogicServer/Logic-Why/) consists of rules **and** conventional Python code. Explore it like this:
1. Open **Explorer > 3. ApiLogicProject_Logic/logic/declare_logic.py**:
* Observe the 5 rules highlighted in the diagram below. These are built with code completion.
2. Set a breakpoint as shown in `congratulate_sales_rep`
* This event illustrates that logic is mainly _rules,_ customizable with standard _Python code_
3. Using swagger, re-execute the `add_order` endpoint
4. When you hit the breakpoint, expand `row` VARIABLES list (top left)
<figure><img src="https://github.com/valhuber/apilogicserver/wiki/images/tutorial/debug-logic.png?raw=true"></figure>
Internally, rules execute by listening to SQLAlchemy `before_flush` events, as [described here](https://valhuber.github.io/ApiLogicServer/Logic-Operation/#how-usage-and-operation-overview).
> This rule architecture ensures that rules are always re-used across all client applications and integrations. This avoids common "fat client" approaches that embed logic in user interface controllers, which leads to replication and inconsistency.
### Security Logic
The declarative approach addresses not only multi-table derivation and constraint logic, it addresses security. This controls who can login, and what data they see.
The overview Tutorial noted how grants on the `Category` table controlled what rows users like _u1_ and _u2_ were able to see. The grant logic is in `security/declare_security.py`. For more on security, [see here](https://apilogicserver.github.io/Docs/Security-Overview/).
---
## Test
You can test using standard api and ui test tools. We recommend exploring the [Behave framework](https://valhuber.github.io/ApiLogicServer/Behave/). This can be used as part of an overall agile approach as described in the [Logic Tutorial](https://valhuber.github.io/ApiLogicServer/Logic-Tutorial/).
TL;DR - features and test scripts are predefined in the sample; to run them (with the server running):
1. Run Launch Configuration `Behave Run Behave`
2. Run Launch Configuration ``Behave Logic Report``
3. Open `test/api_logic_server_behave/reports/Behave Logic Report.md`
> The sample Scenarios below were chosen to illustrate the basic patterns of using rules. Open the disclosure box ("Tests - and their logic...") to see the implementation and notes.
For more information, see [Testing with Behave](https://valhuber.github.io/ApiLogicServer/Behave/).
---
## Wrap up
Let's recap what you've seen:
* **ApiLogicProject Creation and Execution** - a database API and an Admin App - created automatically from a database, in moments instead of weeks or months
* **Customizable** - the UI, API and Logic - using Visual Studio code, for both editing and debugging
### Next Steps
After the Tutorial, these are excellent next steps:
* Try other databases - here are [some installed samples](https://valhuber.github.io/ApiLogicServer/Data-Model-Examples/), and try your own
* Explore the [Logic Tutorial](https://valhuber.github.io/ApiLogicServer/Logic-Tutorial/).
### Docker cleanup
VS Code leaves the container and image definitions intact, so you can quickly resume your session. You may wish to delete this. It will look something like `vsc-ApiLogicProject...`.
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/nw/Tutorial.md
|
Tutorial.md
|
import datetime
from decimal import Decimal
from logic_bank.exec_row_logic.logic_row import LogicRow
from logic_bank.extensions.rule_extensions import RuleExtension
from logic_bank.logic_bank import Rule
from database import models
import api.system.opt_locking.opt_locking as opt_locking
import logging
preferred_approach = True
""" Some examples below contrast a preferred approach with a more manual one """
app_logger = logging.getLogger(__name__)
def declare_logic():
"""
Declare logic (rules and code) for multi-table derivations and constraints on API updates
"""
""" HOW TO USE RULES
================
Declare, Activate and Run...
*Declare* Logic here, using Python with code completion.
This logic pre-created for default database, nw.sqlite.
You would normally declare your *own* rules.
For details on these rules, see
https://apilogicserver.github.io/Docs/Logic/
https://apilogicserver.github.io/Docs/Logic-Tutorial/
*Activation* occurs in api_logic_server_run.py:
LogicBank.activate(session=session, activator=declare_logic, constraint_event=constraint_handler)
Logic *runs* automatically, in response to transaction commits (typically via the API),
for multi-table derivations and constraints,
and events such as sending messages or mail
it consists of spreadsheet-like Rules and Python code
"""
""" HOW RULES OPERATE
=================
Rules operate much like a spreadsheet:
Watch, for changes in referenced values
React, by recomputing value
Chain, to any referencing rules, including other tables (multi-table logic)
SQL is automated, and optimized (e.g., adjust vs. select sum)
Unlike procedural code, rules are declarative:
automatically re-used (improves quality)
automatically ordered per their dependencies (simplifies maintenance)
automatically optimized (pruned, with sql optimizations such as adjust logic)
These 5 rules apply to all transactions (automatic re-use), eg.
* place order
* change Order Detail product, quantity
* add/delete Order Detail
* ship / unship order
* delete order
* move order to new customer, etc
This reuse is how 5 rules replace 200 lines of legacy code: https://github.com/valhuber/LogicBank/wiki/by-code
"""
""" FEATURE: Place Order
====================
You can use a BDD approach to doc/run test suites
See test/api_logic_server/behave/features/place_order.feature
See https://apilogicserver.github.io/Docs/Behave/
SCENARIO: Bad Order Custom Service
When Order Placed with excessive quantity
Then Rejected per CHECK CREDIT LIMIT
LOGIC DESIGN: ("Cocktail Napkin Design")
========================================
Customer.Balance <= CreditLimit
Customer.Balance = Sum(Order.AmountTotal where unshipped)
Order.AmountTotal = Sum(OrderDetail.Amount)
OrderDetail.Amount = Quantity * UnitPrice
OrderDetail.UnitPrice = copy from Product
"""
if preferred_approach:
Rule.constraint(validate=models.Customer, # logic design translates directly into rules
as_condition=lambda row: row.Balance <= row.CreditLimit,
error_msg="balance ({round(row.Balance, 2)}) exceeds credit ({round(row.CreditLimit, 2)})")
Rule.sum(derive=models.Customer.Balance, # adjust iff AmountTotal or ShippedDate or CustomerID changes
as_sum_of=models.Order.AmountTotal,
where=lambda row: row.ShippedDate is None) # adjusts - *not* a sql select sum...
Rule.sum(derive=models.Order.AmountTotal, # adjust iff Amount or OrderID changes
as_sum_of=models.OrderDetail.Amount)
Rule.formula(derive=models.OrderDetail.Amount, # compute price * qty
as_expression=lambda row: row.UnitPrice * row.Quantity)
Rule.copy(derive=models.OrderDetail.UnitPrice, # get Product Price (e,g., on insert, or ProductId change)
from_parent=models.Product.UnitPrice)
else:
pass # 5 rules above, or these 200 lines of code: https://github.com/valhuber/LogicBank/wiki/by-code
"""
Demonstrate that logic == Rules + Python (for extensibility)
"""
def congratulate_sales_rep(row: models.Order, old_row: models.Order, logic_row: LogicRow):
""" use events for sending email, messages, etc. """
if logic_row.ins_upd_dlt == "ins": # logic engine fills parents for insert
sales_rep = row.Employee # parent accessor
if sales_rep is None: # breakpoint here
logic_row.log("no salesrep for this order")
elif sales_rep.Manager is None:
logic_row.log("no manager for this order's salesrep")
else:
logic_row.log(f'Hi, {sales_rep.Manager.FirstName} - '
f'Congratulate {sales_rep.FirstName} on their new order')
category_1 = logic_row.session.query(models.Category).filter(models.Category.Id == 1).one()
logic_row.log("Illustrate database access") # not granted for user: u2
# Note: *Client* access is subject to authorization
# *Logic* is system code, not subject to authorization
Rule.commit_row_event(on_class=models.Order, calling=congratulate_sales_rep)
"""
Simplify data entry with defaults
"""
def customer_defaults(row: models.Customer, old_row: models.Order, logic_row: LogicRow):
if row.Balance is None:
row.Balance = 0
if row.CreditLimit is None:
row.CreditLimit = 1000
def order_defaults(row: models.Order, old_row: models.Order, logic_row: LogicRow):
if row.Freight is None:
row.Freight = 10
def order_detail_defaults(row: models.OrderDetail, old_row: models.OrderDetail, logic_row: LogicRow):
if row.Quantity is None:
row.Quantity = 1
if row.Discount is None:
row.Discount = 0
Rule.early_row_event(on_class=models.Customer, calling=customer_defaults)
Rule.early_row_event(on_class=models.Order, calling=order_defaults)
Rule.early_row_event(on_class=models.OrderDetail, calling=order_detail_defaults)
"""
Simple constraints for error testing
"""
Rule.constraint(validate=models.Customer,
as_condition=lambda row: row.CompanyName != 'x',
error_msg="CustomerName cannot be 'x'")
Rule.constraint(validate=models.Employee,
as_condition=lambda row: row.LastName != 'x',
error_msg="LastName cannot be 'x'")
def valid_category_description(row: models.Category, old_row: models.Category, logic_row: LogicRow):
if logic_row.ins_upd_dlt == "upd":
return row.Description != 'x'
else:
return True
Rule.constraint(validate=models.Category,
calling=valid_category_description,
error_msg="{row.Description} cannot be 'x'")
"""
More complex rules follow - see:
https://github.com/valhuber/LogicBank/wiki/Examples
https://github.com/valhuber/LogicBank/wiki/Rule-Extensibility
"""
def units_in_stock(row: models.Product, old_row: models.Product, logic_row: LogicRow):
result = row.UnitsInStock - (row.UnitsShipped - old_row.UnitsShipped)
return result # use lambdas for simple expressions, functions for complex logic (if/else etc)
Rule.formula(derive=models.Product.UnitsInStock, calling=units_in_stock) # compute reorder required
Rule.sum(derive=models.Product.UnitsShipped,
as_sum_of=models.OrderDetail.Quantity,
where=lambda row: row.ShippedDate is None)
Rule.formula(derive=models.OrderDetail.ShippedDate, # unlike copy, referenced parent values cascade to children
as_exp="row.Order.ShippedDate")
Rule.count(derive=models.Customer.UnpaidOrderCount,
as_count_of=models.Order,
where=lambda row: row.ShippedDate is None) # *not* a sql select sum...
Rule.count(derive=models.Customer.OrderCount, as_count_of=models.Order)
Rule.count(derive=models.Order.OrderDetailCount, as_count_of=models.OrderDetail)
"""
STATE TRANSITION LOGIC, using old_row
"""
def raise_over_20_percent(row: models.Employee, old_row: models.Employee, logic_row: LogicRow):
if logic_row.ins_upd_dlt == "upd" and row.Salary > old_row.Salary:
return row.Salary >= Decimal('1.20') * old_row.Salary
else:
return True
Rule.constraint(validate=models.Employee,
calling=raise_over_20_percent,
error_msg="{row.LastName} needs a more meaningful raise")
"""
EXTEND RULE TYPES
Events, plus *generic* event handlers
"""
if preferred_approach: # AUDITING can be as simple as 1 rule
RuleExtension.copy_row(copy_from=models.Employee,
copy_to=models.EmployeeAudit,
copy_when=lambda logic_row: logic_row.ins_upd_dlt == "upd" and
logic_row.are_attributes_changed([models.Employee.Salary, models.Employee.Title]))
else:
def audit_by_event(row: models.Employee, old_row: models.Employee, logic_row: LogicRow):
tedious = False # tedious code to repeat for every audited class
if tedious: # see instead the following RuleExtension.copy_row below (you can create similar rule extensions)
if logic_row.ins_upd_dlt == "upd" and logic_row.are_attributes_changed([models.Employee.Salary, models.Employee.Title]):
copy_to_logic_row = logic_row.new_logic_row(models.EmployeeAudit)
copy_to_logic_row.link(to_parent=logic_row)
copy_to_logic_row.set_same_named_attributes(logic_row)
copy_to_logic_row.insert(reason="Manual Copy " + copy_to_logic_row.name) # triggers rules...
Rule.commit_row_event(on_class=models.Employee, calling=audit_by_event)
def clone_order(row: models.Order, old_row: models.Order, logic_row: LogicRow):
if row.CloneFromOrder is not None and logic_row.nest_level == 0:
which = ["OrderDetailList"]
logic_row.copy_children(copy_from=row.Order,
which_children=which)
Rule.row_event(on_class=models.Order, calling=clone_order)
def handle_all(logic_row: LogicRow): # OPTIMISTIC LOCKING, [TIME / DATE STAMPING]
"""
This is generic - executed for all classes.
Invokes optimistic locking.
You can optionally do time and date stamping here, as shown below.
Args:
logic_row (LogicRow): from LogicBank - old/new row, state
"""
if logic_row.is_updated() and logic_row.old_row is not None and logic_row.nest_level == 0:
opt_locking.opt_lock_patch(logic_row=logic_row)
enable_creation_stamping = True # CreatedOn time stamping
if enable_creation_stamping:
row = logic_row.row
if logic_row.ins_upd_dlt == "ins" and hasattr(row, "CreatedOn"):
row.CreatedOn = datetime.datetime.now()
logic_row.log("early_row_event_all_classes - handle_all sets 'Created_on"'')
Rule.early_row_event_all_classes(early_row_event_all_classes=handle_all)
app_logger.debug("..logic/declare_logic.py (logic == rules + code)")
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/nw/logic/declare_logic.py
|
declare_logic.py
|
const sla_doc =
'<div class="MuiTypography-root jss4" style="color: rgba(0, 0, 0, 0.66)">' +
'<div style="text-align:center">' +
'<h2>Welcome to API Logic Server - Sample</h2>' +
'</div><br>' +
'<h3><a class="custom" style="color: #3f51b5;" rel="nofollow" href="https://apilogicserver.github.io/Docs/" target="_blank">API Logic Server</a> ' +
'creates <i>customizable</i> model-driven systems, instantly from your ' +
'<a class="custom" style="color: #3f51b5;" rel="nofollow" href="https://apilogicserver.github.io/Docs/Sample-Database/" target="_blank">database:</a>' +
'</h3>' +
'<h4>1. Automatic Admin App</h4>' +
'<ul>' +
' <li>For instant collaboration and Back Office data maintenance</li>' +
' <li>Rich functionality: multi-page, multi-table, automatic joins, declarative hide/show</li>' +
' <li><a class="custom" style="color: #3f51b5;" rel="nofollow" href="https://apilogicserver.github.io/Docs/Admin-Tour/" target="_blank">Explore</a> this Admin App, ' +
' and how to <a class="custom" style="color: #3f51b5" rel="nofollow" href="https://apilogicserver.github.io/Docsin-Customization/" target="_blank">customize it</a></li>' +
'</ul>' +
'<h4>2. API, with <a class="custom" style="color: #3f51b5;" rel="nofollow" href="/api" target="_blank">oas/Swagger</a></h4>' +
'<ul>' +
' <li>For custom app dev, integration</li>' +
' <li>Rich functionality: endpoint for each table, with filtering, pagination, related data</li>' +
' <li><a class="custom" style="color: #3f51b5" rel="nofollow" href="https://apilogicserver.github.io/Docs/API-Customize/" target="_blank">Customizable</a>: add your own endpoints</li>' +
' <li><a class="custom" style="color: #3f51b5" rel="nofollow" href="http://localhost:5656/stop" target="_blank">Stop</a> the server</li>' +
'</ul>' +
'<h4>3. Business Logic, for <span class="JoinedField" title="Often nearly half the app -- automation required"><span>backend processing</span> </span></h4>' +
'<ul>' +
' <li>Spreadsheet-like rules for multi-table derivations and constraints</li>' +
' <li>Extensible with Python events for email, messages, etc</li>' +
' <li><a class="custom" style="color: #3f51b5" rel="nofollow" href="https://apilogicserver.github.io/Docs/Logic/" target="_blank">Explore</a> ' +
' how logic can meaningfully improve ' +
' <a class="custom" style="color: #3f51b5" rel="nofollow" href="https://apilogicserver.github.io/Docs/Logic-Why/#rules-executable-design" title="Rules are 40X more concise than code, and address over 95% of database logic" target="_blank">conciseness</a> ' +
' and quality</li>' +
' <li><a class="custom" style="color: #3f51b5" rel="nofollow" href="https://apilogicserver.github.io/Docs/Logic-Tutorial/" target="_blank">Test</a> ' +
' using Behave, a TDD (Test Driven Design) framework </li>' +
'</ul><br/><br/>' +
'<h4>Explore this app</h4>' +
' <ul><li>Start with Customer (at left), and watch for the Info icons (upper right)</li></ul>' +
'</div>'
function getContent(){
let result = '<button class="MuiButtonBase-root MuiButton-root MuiButton-text makeStyles-widget-159 MuiButton-textPrimary" tabindex="0" type="button" ><span class="MuiButton-label">Loaded External Component. </span></button>';
result = ""
result += sla_doc;
return result;
}
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/nw/ui/admin/home.js
|
home.js
|
import sqlalchemy
from sqlalchemy import create_engine, inspect, MetaData
from sqlalchemy.orm import Session
import models
# *******************************************
# Use this to inspect SQLAlchemy2 connection
# *******************************************
def print_meta(meta):
print("\n\nmeta.sorted_tables (meta = models.metadata.sorted_tables)\n")
for each_table in meta.sorted_tables:
print(f'\n{each_table.key}')
for each_column in each_table.columns:
print(f'\t{each_column.name}')
db_url = "sqlite:////Users/val/dev/ApiLogicServer/ApiLogicServer-dev/servers/ApiLogicProject/database/db.sqlite"
# db_url = "sqlite:////Users/val/dev/servers/ApiLogicProject/database/nw-gold.sqlite"
e = sqlalchemy.create_engine(db_url)
inspector = inspect(e)
conn = e.connect()
with Session(e) as session:
print(f'session: {session}')
# metadata = MetaData(bind=e)
metadata = MetaData() # SQLAlchemy2
meta = models.metadata # tables should show list of db tables
print_meta(meta)
print("\n\n")
"""
Caution - use of debugger may result in "no app context"
https://stackoverflow.com/questions/34122949/working-outside-of-application-context-flask
"""
order_id = 10643
order : models.Order = session.query(models.Order).filter(models.Order.Id == order_id).one()
# hover to view code completion...
print(f'Order: {order.Id}, AmountTotal: {order.AmountTotal}, ready: {order.Ready}, Required: {order.RequiredDate}, Customer: {order.CustomerId}, Balance: {order.Customer.Balance}\n\n')
order.AmountTotal
departments = session.query(models.Department).all()
for each_dept in departments:
print(f'\nDept: {each_dept}')
for each_works_for_emp in each_dept.EmployeeList1:
print(f'...each_works_for_emp: {each_works_for_emp}')
print("")
for each_on_loan_emp in each_dept.EmployeeList:
print(f'...each_on_loan_emp: {each_on_loan_emp}')
print("")
for each_sub_dept in each_dept.DepartmentList:
print(f'...each_sub_dept: {each_sub_dept}')
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/nw/database/db_debug.py
|
db_debug.py
|
from database import models
import logging
from safrs import jsonapi_attr
from sqlalchemy.orm import relationship, remote, foreign
from functools import wraps # This convenience func preserves name and docstring
import decimal as decimal
"""
If you wish to drive models from the database schema,
you can use this file to customize your schema (add relationships, derived attributes),
and preserve customizations over iterations (regenerations of models.py).
"""
app_logger = logging.getLogger(__name__)
def add_method(cls):
"""
Decorator to add method to class, e.g., derived attribute ProperSalary.
Thanks to: https://mgarod.medium.com/dynamically-add-a-method-to-a-class-in-python-c49204b85bd6
"""
def decorator(func):
@wraps(func)
def wrapper(self, *args, **kwargs):
return func(*args, **kwargs)
setattr(cls, func.__name__, wrapper)
# Note we are not binding func, but wrapper which accepts self but does exactly the same as func
return func # returning func means func can still be used normally
return decorator
# add relationship: https://docs.sqlalchemy.org/en/13/orm/join_conditions.html#specifying-alternate-join-conditions
models.Employee.Manager = relationship('Employee', cascade_backrefs=False, backref='Manages',
primaryjoin=remote(models.Employee.Id) == foreign(models.Employee.ReportsTo))
"""
added relationships appear in your api / swagger, automatically.
They must be manually added to your ui/admin/admin.yaml, e.g.
- direction: tomany
fks:
- ReportsTo
name: Manages
resource: Employee
- direction: toone
fks:
- ReportsTo
name: Manager
resource: Employee
"""
# add derived attribute: https://github.com/thomaxxl/safrs/blob/master/examples/demo_pythonanywhere_com.py
@add_method(models.Employee)
@jsonapi_attr
def __proper_salary__(self): # type: ignore [no-redef]
import database.models as models
if isinstance(self, models.Employee):
import decimal
rtn_value = self.Salary
rtn_value = decimal.Decimal('1.25') * rtn_value
self._proper_salary = int(rtn_value)
return self._proper_salary
else:
# print("class")
return None
@add_method(models.Employee)
@__proper_salary__.setter
def _proper_salary(self, value): # type: ignore [no-redef]
self._proper_salary = value
print(f'_proper_salary={self._proper_salary}')
pass
models.Employee.ProperSalary = __proper_salary__
app_logger.info("..database/customize_models.py: models.Employee.Manager(manages), Employee.ProperSalary")
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/nw/database/customize_models.py
|
customize_models.py
|
from functools import wraps
import logging
from flask_jwt_extended import get_jwt, jwt_required, verify_jwt_in_request
from config import Config
from security.system.authorization import Security
import util
from typing import List
import safrs
import sqlalchemy
from flask import request, jsonify
from safrs import jsonapi_rpc, SAFRSAPI
from sqlalchemy.ext.hybrid import hybrid_property
from sqlalchemy.orm import object_mapper
from database import models
from logic_bank.rule_bank.rule_bank import RuleBank
# Customize this file to add endpoints/services, using SQLAlchemy as required
# Separate from expose_api_models.py, to simplify merge if project rebuilt
# Called by api_logic_server_run.py
app_logger = logging.getLogger("api_logic_server_app") # only for create-and-run, no?
def expose_services(app, api, project_dir, swagger_host: str, PORT: str):
"""
Illustrates Customized APIs, Data Access.
* Observe that APIs not limited to database objects, but are extensible.
* See: https://apilogicserver.github.io/Docs/API-Customize/
* See: https://github.com/thomaxxl/safrs/wiki/Customization
Examples
* order_nested_objects() -
* Uses util.format_nested_objects() (-> jsonify(row).json)
* CategoriesEndPoint get_cats() - swagger, row security
* Uses util.rows_to_dict (-> row.to_dict())
* filters_cats() - model query with filters
* Uses manual result creation (not util)
* raw_sql_cats() - raw sql (non-modeled objects)
* Uses util.rows_to_dict (-> iterate attributes)
"""
app_logger.info("..api/expose_service.py, exposing custom services: hello_world, add_order")
api.expose_object(ServicesEndPoint) # Swagger-visible services
api.expose_object(CategoriesEndPoint)
@app.route('/hello_world')
def hello_world():
"""
Illustrates:
* Use standard Flask, here for non-database endpoints.
Test it with:
http://localhost:5656/hello_world?user=ApiLogicServer
"""
user = request.args.get('user')
# app_logger.info(f'hello_world returning: hello, {user}')
app_logger.info(f'{user}')
return jsonify({"result": f'hello, {user}'})
@app.route('/stop')
def stop():
"""
Use this to stop the server from the Browser.
* See: https://stackoverflow.com/questions/15562446/how-to-stop-flask-application-without-using-ctrl-c
* See: https://github.com/thomaxxl/safrs/wiki/Customization
Usage:
http://localhost:5656/stop?msg=API stop - Stop API Logic Server
"""
import os, signal
msg = request.args.get('msg')
app_logger.info(f'\nStopped server: {msg}\n')
os.kill(os.getpid(), signal.SIGINT)
return jsonify({ "success": True, "message": "Server is shutting down..." })
def bypass_security():
"""
Support option to bypass security (see cats, below).
"""
def wrapper(fn):
@wraps(fn)
def decorator(*args, **kwargs):
if Config.SECURITY_ENABLED == False:
return fn(*args, **kwargs)
verify_jwt_in_request(True) # must be issued if security enabled
return fn(*args, **kwargs)
return decorator
return wrapper
@app.route('/filters_cats')
@bypass_security()
def filters_cats():
"""
Illustrates:
* Explore SQLAlchemy and/or filters.
Test (returns rows 2-5) (no auth):
curl -X GET "http://localhost:5656/filters_cats" [no-filter | simple-filter]"
"""
from sqlalchemy import and_, or_
filter_type = request.args.get('filter')
if filter_type is None:
filter_type = "multiple filters"
db = safrs.DB # Use the safrs.DB, not db!
session = db.session # sqlalchemy.orm.scoping.scoped_session
Security.set_user_sa() # an endpoint that requires no auth header (see also @bypass_security)
if filter_type.startswith("n"):
results = session.query(models.Category) # .filter(models.Category.Id > 1)
elif filter_type.startswith("s"): # normally coded like this
results = session.query(models.Category) \
.filter(models.Category.Id > 1) \
.filter(or_((models.Category.Client_id == 2), (models.Category.Id == 5)))
else: # simulate grant logic (multiple filters)
client_grant = models.Category.Client_id == 2
id_grant = models.Category.Id == 5
grant_filter = or_( client_grant, id_grant)
results = session.query(models.Category) \
.filter(models.Category.Id > 1) \
.filter(grant_filter)
return_result = []
for each_result in results:
row = { 'id': each_result.Id, 'name': each_result.CategoryName}
return_result.append(row)
return jsonify({ "success": True, "result": return_result})
@app.route('/raw_sql_cats')
@bypass_security()
def raw_sql_cats():
"""
Illustrates:
* "Raw" SQLAlchemy table queries (non-mapped objects)
* Observe phyical column name: CategoryName_ColumnName
* Contrast to models.py, get_cats()
Test (auth optional):
curl -X GET "http://localhost:5656/raw_sql_cats"
"""
DB = safrs.DB
sql_query = DB.text("SELECT * FROM CategoryTableNameTest")
with DB.engine.begin() as connection:
query_result = connection.execute(sql_query).all()
rows_to_dict_rows = util.rows_to_dict(query_result)
response = {"result": rows_to_dict_rows}
return response
@app.route('/order_nested_objects')
def order_nested_objects():
"""
Illustrates:
* Returning a nested result set response
* Using SQLAlchemy to obtain data, and related data
* Restructuring row results to desired json (e.g., for tool such as Sencha)
Test (auth optional):
http://localhost:5656/order_nested_objects?Id=10643
curl -X GET "http://localhost:5656/order_nested_objects?Id=10643"
"""
order_id = request.args.get('Id')
db = safrs.DB # Use the safrs.DB, not db!
session = db.session # sqlalchemy.orm.scoping.scoped_session
order = session.query(models.Order).filter(models.Order.Id == order_id).one()
result_std_dict = util.format_nested_object(order
, replace_attribute_tag='data'
, remove_links_relationships=True)
result_std_dict['data']['Customer_Name'] = order.Customer.CompanyName # eager fetch
result_std_dict['data']['OrderDetailListAsDicts'] = []
for each_order_detail in order.OrderDetailList: # lazy fetch
each_order_detail_dict = util.format_nested_object(row=each_order_detail
, replace_attribute_tag='data'
, remove_links_relationships=True)
each_order_detail_dict['data']['ProductName'] = each_order_detail.Product.ProductName
result_std_dict['data']['OrderDetailListAsDicts'].append(each_order_detail_dict)
return result_std_dict
@app.route('/server_log')
def server_log():
"""
Used by test/*.py - enables client app to log msg into server
"""
return util.server_log(request, jsonify)
@app.route('/metadata')
def metadata():
"""
Swagger provides typical API discovery. This is for tool providers
requiring programmatic access to api definition, e.g.,
to drive artifact code generation.
Returns json for list of 1 / all resources, with optional attribute name/type, eg
curl -X GET "http://localhost:5656/metadata?resource=Category&include=attributes"
curl -X GET "http://localhost:5656/metadata?include=attributes"
"""
import inspect
import sys
from sqlalchemy.ext.declarative import declarative_base
resource_name = request.args.get('resource')
include_attributes = False
include = request.args.get('include')
if include:
include_attributes = "attributes" in include
resource_list = [] # array of attributes[], name (so, the name is last...)
resource_objs = {} # objects, named = resource_name
models_name = "database.models"
cls_members = inspect.getmembers(sys.modules["database.models"], inspect.isclass)
for each_cls_member in cls_members:
each_class_def_str = str(each_cls_member)
if (f"'{models_name}." in str(each_class_def_str) and
"Ab" not in str(each_class_def_str)):
each_resource_name = each_cls_member[0]
each_resource_class = each_cls_member[1]
each_resource_mapper = each_resource_class.__mapper__
if resource_name is None or resource_name == each_resource_name:
resource_object = {"name": each_resource_name}
resource_list.append(resource_object)
resource_objs[each_resource_name] = {}
if include_attributes:
attr_list = []
for each_attr in each_resource_mapper.attrs:
if not each_attr._is_relationship:
try:
attribute_object = {"name": each_attr.key,
"type": str(each_attr.expression.type)}
except:
attribute_object = {"name": each_attr.key,
"type": "unkown"}
attr_list.append(attribute_object)
resource_object["attributes"] = attr_list
resource_objs[each_resource_name] = {"attributes": attr_list}
# pick the format you like
return_result = {"resources": resource_list}
return_result = {"resources": resource_objs}
return jsonify(return_result)
class ServicesEndPoint(safrs.JABase):
"""
Illustrates
* Custom service - visible in swagger
* Quite small, since leverages logic/declare_logic rules
"""
@classmethod
@jsonapi_rpc(http_methods=["POST"])
def add_order(self, *args, **kwargs): # yaml comment => swagger description
""" # yaml creates Swagger description
args :
CustomerId: ALFKI
EmployeeId: 1
Freight: 10
OrderDetailList :
- ProductId: 1
Quantity: 1
Discount: 0
- ProductId: 2
Quantity: 2
Discount: 0
"""
# test using swagger -> try it out (includes sample data, above)
db = safrs.DB # Use the safrs.DB, not db!
session = db.session # sqlalchemy.orm.scoping.scoped_session
new_order = models.Order()
session.add(new_order)
util.json_to_entities(kwargs, new_order) # generic function - any db object
return {"Thankyou For Your Order"} # automatic commit, which executes transaction logic
class CategoriesEndPoint(safrs.JABase):
"""
Illustrates
* Swagger-visible RPC that requires authentication (@jwt_required()).
* Row Security
Test in swagger (auth required)
* Post to endpoint auth to obtain <access_token> value - copy to clipboard
* Row Security - Users determines results
* u1 - 1 row, u2 - 4 rows, admin - 9 rows
* Authorize (top of swagger), using Bearer <access_token>
* Post to CategoriesEndPoint/get_cats, observe results depend on login
"""
@staticmethod
@jwt_required()
@jsonapi_rpc(http_methods=['POST'], valid_jsonapi=False)
def get_cats():
db = safrs.DB
session = db.session
result = session.query(models.Category)
for each_row in result:
app_logger.debug(f'each_row: {each_row}')
rows = util.rows_to_dict(result)
response = {"result": rows}
return response
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/nw/api/customize_api.py
|
customize_api.py
|
from behave import *
import requests, pdb
import json
import test_utils
host = "localhost"
port = "5656"
@given('Category: 1')
def step_impl(context):
pass
@when('Get Cat1')
def step_impl(context):
get_cat1 = "http://localhost:5656/api/Category/1/?fields%5BCategory%5D=Id%2CCategoryName%2CDescription%2CClient_id%2C_check_sum_%2CS_CheckSum"
r = requests.get(url=get_cat1, headers= test_utils.login())
response_text = r.text
cat1 = json.loads(response_text) # 'str' object has no attribute 'read'
context.cat1 = cat1 # checksum: -4130312969102546939
pass
@then('Expected Cat1 Checksum')
def step_impl(context):
cat1 = context.cat1
expected_checksum = "-4130312969102546939"
checksum = cat1["data"]["attributes"]["S_CheckSum"]
assert checksum == "-4130312969102546939", f'Unexpected Checksum[{checksum}, expected {expected_checksum}]'
@when('Patch Valid Checksum')
def step_impl(context):
patch_uri = "http://localhost:5656/api/Category/1/"
patch_args = \
{
"data": {
"attributes": {
"Description": "x",
"S_CheckSum": "-4130312969102546939"
},
"type": "Category",
"id": "1"
}
}
r = requests.patch(url=patch_uri, json=patch_args, headers=test_utils.login())
context.response = r
@then('Valid Checksum, Invalid Description')
def step_impl(context):
response_text = context.response.text
assert "x cannot be" in response_text,\
"Opt Locking Failed: Matching Checksum test"
@when('Patch Missing Checksum')
def step_impl(context):
patch_uri = "http://localhost:5656/api/Category/1/"
patch_args = \
{
"data": {
"attributes": {
"Description": "x",
"S_CheckSum": "-4130312969102546939"
},
"type": "Category",
"id": "1"
}
}
r = requests.patch(url=patch_uri, json=patch_args, headers=test_utils.login())
context.response = r
@when('Patch Invalid Checksum')
def step_impl(context):
patch_uri = "http://localhost:5656/api/Category/1/"
patch_args = \
{
"data": {
"attributes": {
"Description": "x",
"S_CheckSum": "Patch Invalid Checksum"
},
"type": "Category",
"id": "1"
}
}
r = requests.patch(url=patch_uri, json=patch_args, headers=test_utils.login())
context.response = r
@then('Invalid Checksum')
def step_impl(context):
response_text = context.response.text
assert "Sorry, row altered by another" in response_text,\
"Patch Invalid Checksum"
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/nw/test/api_logic_server_behave/features/steps/opt_locking.py
|
opt_locking.py
|
from behave import *
import requests, pdb
import test_utils
import sys
import json
from dotmap import DotMap
logic_logs_dir = "logs/scenario_logic_logs"
"""
These tests can be re-run -- they restore the data to original state.
Good illustrations of API calls from Python.
Rows used for testing:
* customer: ALFKI, with a balance of 2102
* order: 10643, with an amount 1086
* orderdetail: 1040
* employee: Buchanan (5), with a salary of 95k
"""
def get_ALFLI():
get_uri = 'http://localhost:5656/api/Customer/ALFKI/?include=OrderList&fields%5BCustomer%5D=Id%2CCompanyName%2CBalance%2CCreditLimit%2COrderCount%2CUnpaidOrderCount'
header = test_utils.login()
r = requests.get(url=get_uri, headers= header)
response_text = r.text
status_code = r.status_code
if status_code > 300:
raise Exception(f'get_ALFKI failed with {r.text}')
save_for_session = True
if save_for_session:
s = requests.Session()
s.headers.update(header)
result_data = json.loads(response_text)
result_map = DotMap(result_data)
result_attrs = result_map.data.attributes
return result_attrs
def get_truncated_scenario_name(scenario_name: str) -> str:
""" address max file length (chop at 26), illegal characters """
scenario_trunc = scenario_name
if scenario_trunc is not None and len(scenario_trunc) >= 26:
scenario_trunc = scenario_name[0:25]
scenario_trunc = f'{str(scenario_trunc).replace(" ", "_")}'
return scenario_trunc
@given('Customer Account: ALFKI')
def step_impl(context):
alfki_before = get_ALFLI()
context.alfki_before = alfki_before
pass
@when('Good Order Placed')
def step_impl(context):
"""
We place an Order with an Order Detail. It's one transaction.
Note how the `Order.OrderTotal` and `Customer.Balance` are *adjusted* as Order Details are processed.
Similarly, the `Product.UnitsShipped` is adjusted, and used to recompute `UnitsInStock`
<figure><img src="https://github.com/valhuber/ApiLogicServer/wiki/images/behave/declare-logic.png?raw=true"></figure>
> **Key Takeaway:** sum/count aggregates (e.g., `Customer.Balance`) automate ***chain up*** multi-table transactions.
**Events - Extensible Logic**
Inspect the log for __Hi, Andrew - Congratulate Nancy on their new order__.
The `congratulate_sales_rep` event illustrates logic
[Extensibility](https://apilogicserver.github.io/Docs/Logic/#extensibility-python-events)
- using Python to provide logic not covered by rules,
like non-database operations such as sending email or messages.
<figure><img src="https://github.com/valhuber/ApiLogicServer/wiki/images/behave/send-email.png?raw=true"></figure>
There are actually multiple kinds of events:
* *Before* row logic
* *After* row logic
* On *commit,* after all row logic has completed (as here), so that your code "sees" the full logic results
Events are passed the `row` and `old_row`, as well as `logic_row` which enables you to test the actual operation, chaining nest level, etc.
You can set breakpoints in events, and inspect these.
"""
scenario_name = 'Good Order Custom Service'
add_order_uri = f'http://localhost:5656/api/ServicesEndPoint/add_order'
add_order_args = {
"meta": {
"method": "add_order",
"args": {
"CustomerId": "ALFKI",
"EmployeeId": 1,
"Freight": 11,
"OrderDetailList": [
{
"ProductId": 1,
"Quantity": 1,
"Discount": 0
},
{
"ProductId": 2,
"Quantity": 2,
"Discount": 0
}
]
}
}
}
test_utils.prt(f'\n\n\n{scenario_name} - verify adjustments...\n',\
scenario_name)
r = requests.post(url=add_order_uri, json=add_order_args, headers=test_utils.login())
context.response_text = r.text
@then('Logic adjusts Balance (demo: chain up)')
def step_impl(context):
before = context.alfki_before
expected_adjustment = 56 # find this from inspecting data on test run
after = get_ALFLI()
context.alfki_after = after
assert before.Balance + expected_adjustment == after.Balance, \
f'On add, before balance {before.Balance} + {expected_adjustment} != new Balance {after.Balance}'
@then('Logic adjusts Products Reordered')
def step_impl(context):
assert True is not False
@then('Logic sends email to salesrep')
def step_impl(context):
stub = True
if stub:
assert True == True
else:
scenario_name = context.scenario.name
scenario_trunc = get_truncated_scenario_name(scenario_name)
logic_file_name = f'{logic_logs_dir}/{scenario_trunc}.log'
with open(logic_file_name) as logic:
logic_lines = logic.readlines()
found = False
for each_logic_line in logic_lines:
if 'Congratulate' in each_logic_line:
found = True
break
assert found, "Logic Log does not contain 'Congratulate'"
@then('Logic adjusts aggregates down on delete order')
def step_impl(context):
scenario_name = 'Good Order Custom Svc - cleanup'
test_utils.prt(f'\n\n\n{scenario_name} - verify credit check response...\n', scenario_name)
# find ALFKI order with freight of 11 and delete it (hmm... cannot get created id)
order_uri = "http://localhost:5656/api/Order/?include=Customer&fields%5BOrder%5D=Id%2CCustomerId%2CEmployeeId%2COrderDate%2CRequiredDate%2CShippedDate%2CShipVia%2CFreight%2CShipName%2CShipAddress%2CShipCity%2CShipRegion%2CShipPostalCode%2CShipCountry%2CAmountTotal%2CCountry%2CCity%2CReady%2COrderDetailCount&page%5Boffset%5D=0&page%5Blimit%5D=10&sort=Id%2CCustomerId%2CEmployeeId%2COrderDate%2CRequiredDate%2CShippedDate%2CShipVia%2CFreight%2CShipName%2CShipAddress%2CShipCity%2CShipRegion%2CShipPostalCode%2CShipCountry%2CAmountTotal%2CCountry%2CCity%2CReady%2COrderDetailCount%2Cid&filter%5BCustomerId%5D=ALFKI&filter%5BFreight%5D=11"
r = requests.get(url=order_uri, headers= test_utils.login())
response_text = r.text
result_data = json.loads(response_text)
result_map = DotMap(result_data)
orders = result_map.data
for each_order in orders:
order_id = each_order.id
delete_uri = "http://localhost:5656/api/Order/" + str(order_id) + "/"
# TODO - fails in SQLAlchemy 2 - stacktrace after commit on flush
# sqlalchemy.exc.IntegrityError: (sqlite3.IntegrityError) NOT NULL constraint failed: OrderDetail.OrderId
r = requests.delete(delete_uri, headers= test_utils.login())
before = context.alfki_before
expected_adjustment = 0
after = get_ALFLI()
context.alfki_after = after
assert before.Balance + expected_adjustment == after.Balance, \
f'On delete, Before balance {before.Balance} + {expected_adjustment} != new Balance {after.Balance}'
assert True is not False
@when('Order Placed with excessive quantity')
def step_impl(context):
"""
Familiar logic patterns:
* Constrain a derived result
* Chain up, to adjust parent sum/count aggregates
Logic Design ("Cocktail Napkin Design")
* Customer.Balance <= CreditLimit
* Customer.Balance = Sum(Order.AmountTotal where unshipped)
* Order.AmountTotal = Sum(OrderDetail.Amount)
* OrderDetail.Amount = Quantity * UnitPrice
* OrderDetail.UnitPrice = copy from Product
"""
scenario_name = 'Bad Order Custom Service'
add_order_uri = f'http://localhost:5656/api/ServicesEndPoint/add_order'
add_order_args = {
"meta": {
"method": "add_order",
"args": {
"CustomerId": "ALFKI",
"EmployeeId": 1,
"Freight": 10,
"OrderDetailList": [
{
"ProductId": 1,
"Quantity": 1111,
"Discount": 0
},
{
"ProductId": 2,
"Quantity": 2,
"Discount": 0
}
]
}
}
}
test_utils.prt(f'\n\n\n{scenario_name} - verify credit check response...\n',
scenario_name)
r = requests.post(url=add_order_uri, json=add_order_args)
context.response_text = r.text
@then('Rejected per Check Credit')
def step_impl(context):
response_text = context.response_text
print( "one last thing", "by the way", "\n")
assert "exceeds credit" in response_text, f'Error - "exceeds credit not in {response_text}'
# behave.log_capture.capture("THIS IS behave.log_capture.capture")
def after_step(context, step):
print("\nflush1 \n\n") # ensure print statements work
print("\nflush2 \n\n")
@when('Order Detail Quantity altered very high')
def step_impl(context):
"""
Same constraint as above.
> **Key Takeaway:** Automatic Reuse (_design one, solve many_)
"""
scenario_name = 'Alter Item Qty to exceed credit'
test_utils.prt(f'\n\n\n{scenario_name} - verify credit check response...\n', scenario_name)
patch_cust_uri = f'http://localhost:5656/api/OrderDetail/1040/'
patch_args = \
{
"data": {
"attributes": {
"Id": 1040,
"Quantity": 1110
},
"type": "OrderDetail",
"id": "1040"
}
}
r = requests.patch(url=patch_cust_uri, json=patch_args, headers=test_utils.login())
response_text = r.text
context.response_text = r.text
@when('Order RequiredDate altered (2013-10-13)')
def step_impl(context):
"""
We set `Order.RequiredDate`.
This is a normal update. Nothing depends on the columns altered, so this has no effect on the related Customer, Order Details or Products. Contrast this to the *Cascade Update Test* and the *Custom Service* test, where logic chaining affects related rows. Only the commit event fires.
> **Key Takeaway:** rule pruning automatically avoids unnecessary SQL overhead.
"""
scenario_name = 'Alter Required Date - adjust logic pruned'
test_utils.prt(f'\n\n\n{scenario_name}... observe rules pruned for Order.RequiredDate (2013-10-13) \n\n', scenario_name)
patch_uri = f'http://localhost:5656/api/Order/10643/'
patch_args = \
{
"data": {
"attributes": {
"RequiredDate": "2013-10-13",
"Id": 10643},
"type": "Order",
"id": 10643
}}
r = requests.patch(url=patch_uri, json=patch_args, headers=test_utils.login())
response_text = r.text
context.response_text = r.text
@then('Balance not adjusted')
def step_impl(context):
before = context.alfki_before
expected_adjustment = 0
after = get_ALFLI()
context.alfki_after = after
assert before.Balance + expected_adjustment == after.Balance, \
f'Before balance {before.Balance} + {expected_adjustment} != new Balance {after.Balance}'
@when('Order ShippedDate altered (2013-10-13)')
def step_impl(context):
"""
We set `Order.ShippedDate`.
This cascades to the Order Details, per the `derive=models.OrderDetail.ShippedDate` rule.
This chains to adjust the `Product.UnitsShipped` and recomputes `UnitsInStock`, as above
<figure><img src="https://github.com/valhuber/ApiLogicServer/wiki/images/behave/order-shipped-date.png?raw=true"></figure>
> **Key Takeaway:** parent references (e.g., `OrderDetail.ShippedDate`) automate ***chain-down*** multi-table transactions.
> **Key Takeaway:** Automatic Reuse (_design one, solve many_)
"""
scenario_name = 'Set Shipped - adjust logic reuse'
test_utils.prt(f'\n\n\n{scenario_name}... observe rules pruned for Order.RequiredDate (2013-10-13) \n\n', scenario_name)
patch_uri = f'http://localhost:5656/api/Order/10643/'
patch_args = \
{
"data": {
"attributes": {
"ShippedDate": "2013-10-13",
"Id": 10643},
"type": "Order",
"id": 10643
}}
r = requests.patch(url=patch_uri, json=patch_args, headers=test_utils.login())
response_text = r.text
context.response_text = r.text
@then('Balance reduced 1086')
def step_impl(context):
before = context.alfki_before
expected_adjustment = -1086
shipped = get_ALFLI()
context.alfki_shipped = shipped # alert - this variable not visible in next scenario... need to use given
assert before.Balance + expected_adjustment == shipped.Balance, \
f'Before balance {before.Balance} + {expected_adjustment} != new Balance {shipped.Balance}'
@given('Shipped Order')
def step_impl(context):
context.alfki_shipped = get_ALFLI()
pass
@when('Order ShippedDate set to None')
def step_impl(context):
"""
Same logic as above.
> **Key Takeaway:** Automatic Reuse (_design one, solve many_)
"""
scenario_name = 'Reset Shipped - adjust logic reuse'
test_utils.prt(f'\n\n\n{scenario_name}... observe rules pruned for Order.RequiredDate (2013-10-13) \n\n', scenario_name)
patch_uri = f'http://localhost:5656/api/Order/10643/'
patch_args = \
{
"data": {
"attributes": {
"ShippedDate": None,
"Id": 10643},
"type": "Order",
"id": 10643
}}
r = requests.patch(url=patch_uri, json=patch_args, headers=test_utils.login())
response_text = r.text
context.response_text = r.text
@then('Logic adjusts Balance by -1086')
def step_impl(context):
before = context.alfki_shipped
expected_adjustment = 1086
after = get_ALFLI()
context.alfki_after = after
assert before.Balance + expected_adjustment == after.Balance, \
f'Before balance {before.Balance} + {expected_adjustment} != new Balance {after.Balance}'
@when('Cloning Existing Order')
def step_impl(context):
"""
We create an order, setting CloneFromOrder.
This copies the CloneFromOrder OrderDetails to our new Order.
The copy operation is automated using `logic_row.copy_children()`:
1. `place_order.feature` defines the test
2. `place_order.py` implements the test. It uses the API to Post an Order, setting `CloneFromOrder` to trigger the copy logic
3. `declare_logic.py` implements the logic, by invoking `logic_row.copy_children()`. `which` defines which children to copy, here just `OrderDetailList`
<figure><img src="https://github.com/valhuber/ApiLogicServer/wiki/images/behave/clone-order.png?raw=true"></figure>
`CopyChildren` For more information, [see here](https://github.com/valhuber/LogicBank/wiki/Copy-Children)
Useful in row event handlers to copy multiple children types to self from copy_from children.
child-spec := < ‘child-list-name’ | < ‘child-list-name = parent-list-name’ >
child-list-spec := [child-spec | (child-spec, child-list-spec)]
Eg. RowEvent on Order
which = ["OrderDetailList"]
logic_row.copy_children(copy_from=row.parent, which_children=which)
Eg, test/copy_children:
child_list_spec = [
("MileStoneList",
["DeliverableList"] # for each Milestone, get the Deliverables
),
"StaffList"
]
> **Key Takeaway:** copy_children provides a deep-copy service.
"""
scenario_name = 'Clone Existing Order'
test_utils.prt(f'\n\n\n{scenario_name}... Clone Order per CloneFromOrder 10643 ($1086), for ALFKI ($2102, limit of $2200)) \n\n', scenario_name)
add_order_uri = f'http://localhost:5656/api/ServicesEndPoint/add_order'
clone_of_10643 = {
"meta": {
"method": "add_order",
"args": {
"CustomerId": "ALFKI",
"EmployeeId": 1,
"Freight": 11,
"CloneFromOrder": 10643
}
}
}
"""
ALFKI - Balance: 2102, CreditLimit = 2200
Order 10643
"""
test_utils.prt(f'\n\n\n{scenario_name} - verify adjustments...\n',\
scenario_name)
r = requests.post(url=add_order_uri, json=clone_of_10643)
context.response_text = r.text
@then('Logic Copies ClonedFrom OrderDetails')
def step_impl(context):
response_text = context.response_text
assert "exceeds credit" in response_text, f'Error - "exceeds credit not in {response_text}'
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/nw/test/api_logic_server_behave/features/steps/place_order.py
|
place_order.py
|
from behave import *
import requests, pdb
import json
import test_utils
host = "localhost"
port = "5656"
@given('Employee 5 (Buchanan) - Salary 95k')
def step_impl(context):
pass
@when('Patch Salary to 200k')
def step_impl(context):
"""
Observe the logic log to see that it creates audit rows:
1. **Discouraged:** you can implement auditing with events. But auditing is a common pattern, and this can lead to repetitive, tedious code
2. **Preferred:** approaches use [extensible rules](https://github.com/valhuber/LogicBank/wiki/Rule-Extensibility#generic-event-handlers).
Generic event handlers can also reduce redundant code, illustrated in the time/date stamping `handle_all` logic.
This is due to the `copy_row` rule. Contrast this to the *tedious* `audit_by_event` alternative:
<figure><img src="https://github.com/valhuber/ApiLogicServer/wiki/images/behave/salary_change.png?raw=true"></figure>
> **Key Takeaway:** use **extensible own rule types** to automate pattern you identify; events can result in tedious amounts of code.
"""
scenario_name = 'Audit Salary Change'
test_utils.prt(f'\n\n\n{scenario_name}... alter salary, ensure audit row created (also available in shell script\n\n', scenario_name)
patch_emp_uri = f'http://localhost:5656/api/Employee/5/'
patch_args = \
{
"data": {
"attributes": {
"Salary": 200000,
"Id": 5},
"type": "Employee",
"id": 5
}}
r = requests.patch(url=patch_emp_uri, json=patch_args, headers= test_utils.login())
context.response_text = r.text
@then("Salary_audit row created")
def step_impl(context):
response_text = context.response_text
assert '"Salary": 200000.0' in response_text or '"Salary":200000.0', \
f'Error - "Salary": 200000.0 not in patch response:\n{response_text}'
audit_uri = f'http://localhost:5656/api/EmployeeAudit/?' \
'include=Employee&fields%5BEmployeeAudit%5D=Id%2CTitle%2CSalary%2CLastName%2CFirstName%2CEmployeeId%2CCreatedOn&' \
'page%5Boffset%5D=0&page%5Blimit%5D=10&sort=Id%2CTitle%2CSalary%2CLastName%2CFirstName%2CEmployeeId%2CCreatedOn%2Cid'
r = requests.get(url=audit_uri, headers= test_utils.login())
response_text = r.text
assert '"Salary": 200000.0' in response_text or '"Salary":200000.0', \
f'Error - "Salary": 200000.0 not in audit response:\n{response_text}'
test_utils.prt(f'\n then Salary_audit row created... return DB to original state\n')
patch_emp_uri = f'http://localhost:5656/api/Employee/5/'
patch_args = \
{
"data": {
"attributes": {
"Salary": 95000,
"Id": 5},
"type": "Employee",
"id": 5
}}
r = requests.patch(url=patch_emp_uri, json=patch_args, headers= test_utils.login())
response_text = r.text
@when('Patch Salary to 96k')
def step_impl(context):
"""
Observe the use of `old_row
`
> **Key Takeaway:** State Transition Logic enabled per `old_row`
"""
scenario_name = 'Raise Must be Meaningful'
test_utils.prt(f'\n\n\n{scenario_name}... alter salary, ensure audit row created (also available in shell script\n\n', scenario_name)
patch_emp_uri = f'http://localhost:5656/api/Employee/5/'
patch_args = \
{
"data": {
"attributes": {
"Salary": 96000,
"Id": 5},
"type": "Employee",
"id": 5
}}
r = requests.patch(url=patch_emp_uri, json=patch_args, headers= test_utils.login())
context.response_text = r.text
@then("Reject - Raise too small")
def step_impl(context):
response_text = context.response_text
assert 'meaningful raise' in response_text, f'Error - "meaningful raise" not in response:\n{response_text}'
@when('Retrieve Employee Row')
def step_impl(context):
"""
Observe the use of `old_row
`
> **Key Takeaway:** State Transition Logic enabled per `old_row`
"""
scenario_name = 'Manage ProperSalary'
test_utils.prt(f'\n\n\n{scenario_name}... Get Employee - verify contains virtual ProperSalary\n\n', scenario_name)
header = test_utils.login()
get_emp_uri = f'http://localhost:5656/api/Employee/5/'
r = requests.get(url=get_emp_uri, headers= header)
context.response_text = r.text
@then("Verify Contains ProperSalary")
def step_impl(context):
response_text = context.response_text
assert 'ProperSalary' in response_text, f'Error - "ProperSalary" not in response:\n{response_text}'
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/nw/test/api_logic_server_behave/features/steps/salary_change.py
|
salary_change.py
|
from behave import *
import requests, pdb
import json
import test_utils
host = "localhost"
port = "5656"
@given('Customer Account: VINET')
def step_impl(context):
pass
@when('GET Orders API')
def step_impl(context):
# pdb.set_trace() # I want to add a break point in here (for whatever reason)
# todo - host and port hard-coded
get_order_uri = f'http://localhost:5656/api/Order/?' \
f'fields%5BOrder%5D=Id%2CCustomerId%2CEmployeeId%2COrderDate%2CAmountTotal' \
f'&page%5Boffset%5D=0&page%5Blimit%5D=10&filter%5BId%5D=10248'
r = requests.get(url=get_order_uri, headers= test_utils.login())
response_text = r.text
context.response_text = response_text
assert True is not False
@then('VINET retrieved')
def step_impl(context):
response_text = context.response_text
assert "VINET" in response_text, f'Error - "VINET not in {response_text}'
@given('Department 2')
def step_impl(context):
pass # sample db should contain this - verify by test
@when('GET Department with SubDepartments API')
def step_impl(context):
assert True is not False
@then('SubDepartments returned')
def step_impl(context):
get_dept_uri = f'http://{host}:{port}/api/Department/2/?' \
f'include=DepartmentList%2CEmployeeList%2CEmployeeList1%2CDepartment' \
f'&fields%5BDepartment%5D=Id%2CDepartmentId%2CDepartmentName'
r = requests.get(url=get_dept_uri, headers= test_utils.login())
response_text = r.text
result_data = json.loads(response_text) # 'str' object has no attribute 'read'
relationships = result_data["data"]["relationships"]
relationships_department = relationships["Department"]
relationships_department_list = relationships["DepartmentList"]
ceo_check = relationships_department["data"]["id"] # should be '1'
ne_sales_check = relationships_department_list["data"][0]["id"] # should be 4
assert ceo_check == '1' and ne_sales_check == '4', \
f'Error - "CEO not in Department or NE Sales not in DepartmentList: {response_text}'
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/nw/test/api_logic_server_behave/features/steps/api.py
|
api.py
|
import sqlite3
from os import path
import logging
import sys
from typing import Any, Optional, Tuple
import sqlalchemy
from sqlalchemy.ext.hybrid import hybrid_property
from sqlalchemy.orm import object_mapper
import flask_sqlalchemy
from logic_bank.rule_bank.rule_bank import RuleBank
app_logger = logging.getLogger(__name__)
def log(msg: object) -> None:
app_logger.debug(msg)
# print("TIL==> " + msg)
def connection() -> sqlite3.Connection:
ROOT: str = path.dirname(path.realpath(__file__))
log(ROOT)
_connection = sqlite3.connect(path.join(ROOT, "sqlitedata.db"))
return _connection
def dbpath(dbname: str) -> str:
ROOT: str = path.dirname(path.realpath(__file__))
log('ROOT: '+ROOT)
PATH: str = path.join(ROOT, dbname)
log('DBPATH: '+PATH)
return PATH
def json_to_entities(from_row: str or object, to_row):
"""
transform json object to SQLAlchemy rows, for save & logic
:param from_row: json service payload: dict - e.g., Order and OrderDetailsList
:param to_row: instantiated mapped object (e.g., Order)
:return: updates to_row with contents of from_row (recursively for lists)
"""
def get_attr_name(mapper, attr)-> Tuple[Optional[Any], str]:
""" returns name, type of SQLAlchemy attr metadata object """
attr_name = None
attr_type = "attr"
if hasattr(attr, "key"):
attr_name = attr.key
elif isinstance(attr, hybrid_property):
attr_name = attr.__name__
elif hasattr(attr, "__name__"):
attr_name = attr.__name__
elif hasattr(attr, "name"):
attr_name = attr.name
if attr_name == "OrderDetailListX" or attr_name == "CustomerX":
print("Debug Stop")
if isinstance(attr, sqlalchemy.orm.relationships.RelationshipProperty): # hasattr(attr, "impl"): # sqlalchemy.orm.relationships.RelationshipProperty
if attr.uselist:
attr_type = "list"
else: # if isinstance(attr.impl, sqlalchemy.orm.attributes.ScalarObjectAttributeImpl):
attr_type = "object"
return attr_name, attr_type
row_mapper = object_mapper(to_row)
for each_attr_name in from_row:
if hasattr(to_row, each_attr_name):
for each_attr in row_mapper.attrs:
mapped_attr_name, mapped_attr_type = get_attr_name(row_mapper, each_attr)
if mapped_attr_name == each_attr_name:
if mapped_attr_type == "attr":
value = from_row[each_attr_name]
setattr(to_row, each_attr_name, value)
elif mapped_attr_type == "list":
child_from = from_row[each_attr_name]
for each_child_from in child_from:
child_class = each_attr.entity.class_
# eachOrderDetail = OrderDetail(); order.OrderDetailList.append(eachOrderDetail)
child_to = child_class() # instance of child (e.g., OrderDetail)
json_to_entities(each_child_from, child_to)
child_list = getattr(to_row, each_attr_name)
child_list.append(child_to)
pass
elif mapped_attr_type == "object":
log("a parent object - skip (future - lookups here?)")
break
rule_count = 0
from flask import request, jsonify
def rules_report():
"""
logs report of all rules, using rules_bank.__str__()
"""
global rule_count
rules_bank = RuleBank()
logic_logger = logging.getLogger("logic_logger")
rule_count = 0
logic_logger.debug(f'\nThe following rules have been activated\n')
list_rules = rules_bank.__str__()
loaded_rules = list(list_rules.split("\n"))
for each_rule in loaded_rules:
logic_logger.info(each_rule + '\t\t## ')
rule_count += 1
logic_logger.info(f'Logic Bank - {rule_count} rules loaded')
def server_log(request, jsonify):
"""
Used by test/*.py - enables client app to log msg into server
"""
import os
import datetime
from pathlib import Path
import logging
global rule_count
def add_file_handler(logger, name: str, log_dir):
"""Add a file handler for this logger with the specified `name` (and
store the log file under `log_dir`)."""
# Format for file log
for each_handler in logger.handlers:
each_handler.flush()
handler_name = str(each_handler)
if "stderr" in handler_name:
pass
# print(f'do not delete stderr')
else:
logger.removeHandler(each_handler)
fmt = '%(asctime)s | %(levelname)8s | %(filename)s:%(lineno)d | %(message)s'
formatter = logging.Formatter(fmt)
formatter = logging.Formatter('%(message)s - %(asctime)s - %(name)s - %(levelname)s')
# Determine log path/file name; create log_dir if necessary
now = datetime.datetime.now().strftime('%Y%m%d_%H%M%S')
log_name = f'{str(name).replace(" ", "_")}' # {now}'
if len(log_name) >= 26:
log_name = log_name[0:25]
if not os.path.exists(log_dir):
try:
os.makedirs(log_dir)
except:
app_logger.info(f'util.add_file_handler unable to create dir {log_dir}')
log_dir = '/tmp' if sys.platform.startswith('linux') else '.'
app_logger.info(f'Defaulting to {log_dir}.')
log_file = os.path.join(log_dir, log_name) + '.log'
if os.path.exists(log_file):
os.remove(log_file)
else:
pass # file does not exist
# Create file handler for logging to a file (log all five levels)
# print(f'create file handler for logging: {log_file}')
logger.file_handler = logging.FileHandler(log_file)
logger.file_handler.setLevel(logging.DEBUG)
logger.file_handler.setFormatter(formatter)
logger.addHandler(logger.file_handler)
msg = request.args.get('msg')
test = request.args.get('test')
if test is not None and test != "None":
if test == "None":
print(f'None for msg: {msg}')
logic_logger = logging.getLogger('logic_logger') # for debugging user logic
# logic_logger.info("\n\nLOGIC LOGGER HERE\n")
dir = request.args.get('dir')
add_file_handler(logic_logger, test, Path(os.getcwd()).joinpath(dir))
if msg == "Rules Report":
rules_report()
logic_logger.info(f'Logic Bank {__version__} - {rule_count} rules loaded')
else:
app_logger.info(f'{msg}')
return jsonify({"result": f'ok'})
def format_nested_object(row
, replace_attribute_tag: str = ""
, remove_links_relationships: bool = False) -> dict:
"""
Args:
row (safrs.DB.Model): models instance (object + related objects)
replace_attribute_tag (str): replace _attribute_ tag with this name
remove_links_relationships (bool): remove these tags
Example: in sample nw project, see customize_api: order()
Returns:
_type_: row suitable for safrs response (a dict)
"""
row_as_dict = jsonify(row).json
log(f'row_to_dict: {row_as_dict}')
if replace_attribute_tag != "":
row_as_dict[replace_attribute_tag] = row_as_dict.pop('attributes')
if remove_links_relationships:
if "links" in row_as_dict:
row_as_dict.pop('links')
if "relationships" in row_as_dict:
row_as_dict.pop('relationships')
return row_as_dict
def rows_to_dict(result: flask_sqlalchemy.BaseQuery) -> list:
"""
Converts SQLAlchemy result (mapped or raw) to dict array of un-nested rows
Args:
result (object): list of serializable objects (e.g., dict)
Returns:
list of rows as dicts
"""
rows = []
for each_row in result:
row_as_dict = {}
log(f'type(each_row): {type(each_row)}')
if isinstance (each_row, sqlalchemy.engine.row.Row): # raw sql, eg, sample catsql
key_to_index = each_row._key_to_index # note: SQLAlchemy 2 specific
for name, value in key_to_index.items():
row_as_dict[name] = each_row[value]
else:
row_as_dict = each_row.to_dict() # safrs helper
rows.append(row_as_dict)
return rows
def sys_info(flask_app_config):
"""
Print env and path
"""
import os, socket
print("\n\nsys_info here")
print("\nEnvironment Variables...")
env = os.environ
for each_variable in os.environ:
print(f'.. {each_variable} = {env[each_variable]}')
print(f'\n\nflask_app.config: \n\t')
flask_app_config_str = str(flask_app_config)
flask_app_config_str = flask_app_config_str.replace(', ', ',\n\t')
print((flask_app_config_str))
print("\n\nPYTHONPATH..")
for p in sys.path:
print(".." + p)
print("")
print(f'sys.prefix (venv): {sys.prefix}\n')
print("")
hostname = socket.gethostname()
try:
local_ip = socket.gethostbyname(hostname)
except:
local_ip = f"Warning - Failed local_ip = socket.gethostbyname(hostname) with hostname: {hostname}"
print(f"hostname={hostname} on local_ip={local_ip}\n\n")
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/base/util.py
|
util.py
|
from os import environ, path
from pathlib import Path
import os
import typing
from dotenv import load_dotenv
import logging
from enum import Enum
# for complete flask_sqlachemy config parameters and session handling,
# read: file flask_sqlalchemy/__init__.py AND flask/config.py
'''
app.config.setdefault('SQLALCHEMY_DATABASE_URI', 'sqlite:///:memory:')
app.config.setdefault('SQLALCHEMY_BINDS', None)
app.config.setdefault('SQLALCHEMY_NATIVE_UNICODE', None)
app.config.setdefault('SQLALCHEMY_ECHO', False)
app.config.setdefault('SQLALCHEMY_RECORD_QUERIES', None)
app.config.setdefault('SQLALCHEMY_POOL_SIZE', None)
app.config.setdefault('SQLALCHEMY_POOL_TIMEOUT', None)
app.config.setdefault('SQLALCHEMY_POOL_RECYCLE', None)
app.config.setdefault('SQLALCHEMY_MAX_OVERFLOW', None)
app.config.setdefault('SQLALCHEMY_COMMIT_ON_TEARDOWN', False)
'''
class ExtendedEnum(Enum):
"""
enum that supports list() to print allowed values
Thanks: https://stackoverflow.com/questions/29503339/how-to-get-all-values-from-python-enum-class
"""
@classmethod
def list(cls):
return list(map(lambda c: c.value, cls))
class OptLocking(ExtendedEnum):
IGNORED = "ignored"
OPTIONAL = "optional"
REQUIRED = "required"
basedir = path.abspath(path.dirname(__file__))
load_dotenv(path.join(basedir, "default.env"))
app_logger = logging.getLogger('api_logic_server_app')
def is_docker() -> bool:
""" running docker? dir exists: /home/api_logic_server """
path = '/home/api_logic_server'
path_result = os.path.isdir(path) # this *should* exist only on docker
env_result = "DOCKER" == os.getenv('APILOGICSERVER_RUNNING')
# assert path_result == env_result
return path_result
class Config:
"""
Set default Flask configuration from .env file.
These values are overridden by api_logic_server_run cli args, and APILOGICPROJECT_ env variables.
Code should therefore access these ONLY as described in Args, below.
"""
# Project Creation Defaults (overridden from args, env variables)
CREATED_API_PREFIX = "/api"
CREATED_FLASK_HOST = "api_logic_server_host"
""" where clients find the API (eg, cloud server addr)"""
CREATED_SWAGGER_HOST = "api_logic_server_swagger_host"
""" where swagger (and other clients) find the API """
if CREATED_SWAGGER_HOST == "":
CREATED_SWAGGER_HOST = CREATED_FLASK_HOST #
if is_docker and CREATED_FLASK_HOST == "localhost":
CREATED_FLASK_HOST = "0.0.0.0" # enables docker run.sh (where there are no args)
CREATED_PORT = "api_logic_server_port"
CREATED_SWAGGER_PORT = CREATED_PORT
""" for codespaces - see values in launch config """
CREATED_HTTP_SCHEME = "http"
# General Config
SECRET_KEY = environ.get("SECRET_KEY")
FLASK_APP = environ.get("FLASK_APP")
FLASK_ENV = environ.get("FLASK_ENV")
DEBUG = environ.get("DEBUG")
running_at = Path(__file__)
project_abs_dir = running_at.parent.absolute()
# Database
SQLALCHEMY_DATABASE_URI : typing.Optional[str] = f"replace_db_url"
# override SQLALCHEMY_DATABASE_URI here as required
app_logger.debug(f'config.py - SQLALCHEMY_DATABASE_URI: {SQLALCHEMY_DATABASE_URI}')
# as desired, use env variable: export SQLALCHEMY_DATABASE_URI='sqlite:////Users/val/dev/servers/docker_api_logic_project/database/db.sqliteXX'
if os.getenv('SQLALCHEMY_DATABASE_URI'): # e.g. export SECURITY_ENABLED=true
SQLALCHEMY_DATABASE_URI = os.getenv('SQLALCHEMY_DATABASE_URI')
app_logger.debug(f'.. overridden from env variable: {SQLALCHEMY_DATABASE_URI}')
SECURITY_ENABLED = False # you must also: ApiLogicServer add-db --db_url=auth --bind_key=authentication
SECURITY_PROVIDER = None
if os.getenv('SECURITY_ENABLED'): # e.g. export SECURITY_ENABLED=true
security_export = os.getenv('SECURITY_ENABLED') # type: ignore # type: str
security_export = security_export.lower() # type: ignore
if security_export in ["false", "no"]: # NO SEC
SECURITY_ENABLED = False
else:
SECURITY_ENABLED = True
app_logger.debug(f'Security .. overridden from env variable: {SECURITY_ENABLED}')
if SECURITY_ENABLED:
from security.authentication_provider.sql.auth_provider import Authentication_Provider
SECURITY_PROVIDER = Authentication_Provider
app_logger.debug(f'config.py - security enabled')
else:
app_logger.info(f'config.py - security disabled')
# Begin Multi-Database URLs (from ApiLogicServer add-db...)
# End Multi-Database URLs (from ApiLogicServer add-db...)
# SQLALCHEMY_ECHO = environ.get("SQLALCHEMY_ECHO")
SQLALCHEMY_TRACK_MODIFICATIONS = False
PROPAGATE_EXCEPTIONS = False
OPT_LOCKING = "replace_opt_locking"
if os.getenv('OPT_LOCKING'): # e.g. export OPT_LOCKING=required
opt_locking_export = os.getenv('OPT_LOCKING') # type: ignore # type: str
opt_locking = opt_locking_export.lower() # type: ignore
if opt_locking in OptLocking.list():
OPT_LOCKING = opt_locking
else:
print(f'\n{__name__}: Invalid OPT_LOCKING.\n..Valid values are {OptLocking.list()}')
exit(1)
app_logger.debug(f'Opt Locking .. overridden from env variable: {OPT_LOCKING}')
class Args():
"""
Singleton class - typed accessors for flask_app.config values.
The source of truth is the flask_app.config.
Set from created values in Config, overwritten by cli args, then APILOGICPROJECT_ env variables.
This class provides **typed** access.
"""
values = None
def __new__(cls, flask_app):
if not hasattr(cls, 'instance'):
cls.instance = super(Args, cls).__new__(cls)
return cls.instance
def __init__(self, flask_app):
"""
Create args object with CREATED_ defaults.
Defaults assigned to flask_app.config[name]
1. flask_app.config names do not have suffix (e.g. flask_app.config["FLASK_HOST"])
2. Override with CLI arguments (use -h to see names)
3. Then override with env variables (prefixed, e.g., APILOGICPROJECT_FLASK_HOST)
Args:
flask_app (_type_): created flask_app
"""
self.flask_app = flask_app
self.api_prefix = Config.CREATED_API_PREFIX
self.flask_host = Config.CREATED_FLASK_HOST
self.swagger_host = Config.CREATED_SWAGGER_HOST
self.port = Config.CREATED_PORT
self.swagger_port = Config.CREATED_PORT
self.http_scheme = Config.CREATED_HTTP_SCHEME
self.verbose = False
self.create_and_run = False
@property
def port(self) -> str:
""" port to which flask will be bound """
return self.flask_app.config["PORT"] # if "PORT" in self.flask_app.config else self.__port
@port.setter
def port(self, a):
self.flask_app.config["PORT"] = a
@property
def swagger_port(self) -> str:
""" swagger port (eg, 443 for codespaces) """
return self.flask_app.config["SWAGGER_PORT"]
@swagger_port.setter
def swagger_port(self, a):
self.flask_app.config["SWAGGER_PORT"] = a
@property
def swagger_host(self) -> str:
""" ip clients use to access API """
return self.flask_app.config["SWAGGER_HOST"]
@swagger_host.setter
def swagger_host(self, a):
self.flask_app.config["SWAGGER_HOST"] = a
@property
def flask_host(self) -> str:
""" ip to which flask will be bound """
return self.flask_app.config["FLASK_HOST"]
@flask_host.setter
def flask_host(self, a):
self.flask_app.config["FLASK_HOST"] = a
@property
def security_enabled(self) -> bool:
""" is security enabled. Stored as string, returned as bool """
return_security = self.flask_app.config["SECURITY_ENABLED"]
if isinstance(return_security, str):
security = return_security.lower() # type: ignore
if security in ["false", "no"]: # NO SEC
return_security = False
else:
return_security = True
return return_security
@security_enabled.setter
def security_enabled(self, a):
self.flask_app.config["SECURITY_ENABLED"] = a
@property
def security_provider(self):
""" class for auth provider (unused - see auth_provider) """
return self.flask_app.config["SECURITY_PROVIDER"]
@security_provider.setter
def security_provider(self, a):
raise Exception("Sorry, security_provider must be specified in the Config class")
@property
def api_logic_server_home(self):
""" location of ApiLogicServer-src (for admin_loader) """
return self.flask_app.config["APILOGICSERVER_HOME"]
@api_logic_server_home.setter
def api_logic_server_home(self, a):
self.flask_app.config["APILOGICSERVER_HOME"] = a
@property
def opt_locking(self) -> str:
""" values: ignored, optional, required """
return self.flask_app.config["OPT_LOCKING"]
@opt_locking.setter
def opt_locking(self, a):
opt_locking_export = self.flask_app.config('OPT_LOCKING') # type: ignore # type: str
opt_locking = opt_locking_export.lower() # type: ignore
if opt_locking in OptLocking.list():
OPT_LOCKING = opt_locking
else:
print(f'\n{__name__}: Invalid APILOGICPROJECT_OPT_LOCKING.\n..Valid values are {OptLocking.list()}')
exit(1)
app_logger.debug(f'Opt Locking .. overridden from env variable: {OPT_LOCKING}')
self.flask_app.config["OPT_LOCKING"] = a
@property
def api_prefix(self) -> str:
""" uri node for this project (e.g, /api) """
return self.flask_app.config["API_PREFIX"]
@api_prefix.setter
def api_prefix(self, a):
self.flask_app.config["API_PREFIX"] = a
@property
def http_scheme(self) -> str:
""" http or https """
return self.flask_app.config["HTTP_SCHEME"]
@http_scheme.setter
def http_scheme(self, a):
self.flask_app.config["HTTP_SCHEME"] = a
@property
def create_and_run(self):
""" internal use: ApiLogicServer create-and-run """
return self.flask_app.config["CREATE_AND_RUN"]
@create_and_run.setter
def create_and_run(self, a):
self.flask_app.config["CREATE_AND_RUN"] = a
@property
def verbose(self):
""" activate key loggers for debug """
return self.flask_app.config["VERBOSE"]
@verbose.setter
def verbose(self, a):
self.flask_app.config["VERBOSE"] = a
@property
def client_uri(self):
""" in prod env, port might be omitted (e.g., nginx) """
return self.flask_app.config["CLIENT_URI"] if "CLIENT_URI" in self.flask_app.config \
else None
@client_uri.setter
def client_uri(self, a):
self.flask_app.config["CLIENT_URI"] = a
def __str__(self) -> str:
rtn = f'.. flask_host: {self.flask_host}, port: {self.port}, \n'\
f'.. swagger_host: {self.swagger_host}, swagger_port: {self.swagger_port}, \n'\
f'.. client_uri: {self.client_uri}, \n'\
f'.. http_scheme: {self.http_scheme}, api_prefix: {self.api_prefix}, \n'\
f'.. | verbose: {self.verbose}, create_and_run: {self.create_and_run}'
return rtn
def get_cli_args(self, args: 'Args', dunder_name: str):
"""
returns tuple of start args:
(flask_host, swagger_host, port, swagger_port, http_scheme, verbose, create_and_run)
"""
import socket
import warnings
import sys
# global flask_host, swagger_host, port, swagger_port, http_scheme, verbose, create_and_run
network_diagnostics = True
hostname = socket.gethostname()
try:
local_ip = socket.gethostbyname(hostname)
except:
local_ip = f"Warning - Failed local_ip = socket.gethostbyname(hostname) with hostname: {hostname}"
app_logger.debug(f"Failed local_ip = socket.gethostbyname(hostname) with hostname: {hostname}")
app_logger.debug(f"Getting cli args, with hostname={hostname} on local_ip={local_ip}")
args.verbose = False
args.create_and_run = False
def make_wide(formatter, w=120, h=36):
""" Return a wider HelpFormatter, if possible."""
try:
# https://stackoverflow.com/a/5464440
# beware: "Only the name of this class is considered a public API."
kwargs = {'width': w, 'max_help_position': h}
formatter(None, **kwargs)
return lambda prog: formatter(prog, **kwargs)
except TypeError:
warnings.warn("argparse help formatter failed, falling back.")
return formatter
if dunder_name != "__main__":
app_logger.debug(f"WSGI - no args, using creation default host/port.. sys.argv = {sys.argv}\n")
else: # gunicorn-friendly host/port settings ()
# thanks to https://www.geeksforgeeks.org/command-line-arguments-in-python/#argparse
import argparse
# Initialize parser
if len(sys.argv) == 1:
app_logger.debug("No arguments - using creation default host/port")
else:
msg = "API Logic Project"
parser = argparse.ArgumentParser(
formatter_class=make_wide(argparse.ArgumentDefaultsHelpFormatter))
parser.add_argument("--port",
help = f'port (Flask)', default = args.port)
parser.add_argument("--flask_host",
help = f'ip to which flask will be bound',
default = args.flask_host)
parser.add_argument("--swagger_host",
help = f'ip clients use to access API',
default = args.swagger_host)
parser.add_argument("--swagger_port",
help = f'swagger port (eg, 443 for codespaces)',
default = args.port)
parser.add_argument("--http_scheme",
help = f'http or https',
default = "http")
parser.add_argument("--verbose",
help = f'for more logging',
default = False)
parser.add_argument("--create_and_run",
help = f'system use - log how to open project',
default = False)
parser.add_argument("flask_host_p", nargs='?', default = args.flask_host)
parser.add_argument("port_p", nargs='?', default = args.port)
parser.add_argument("swagger_host_p", nargs='?', default = args.swagger_host)
parse_args = parser.parse_args()
"""
accepting both positional (compatibility) and keyword args...
cases that matter:
no args
kw only: argv[1] starts with -
pos only
positional values always override keyword, so decide which parsed values to use...
"""
if sys.argv[1].startswith("-"): # keyword arguments
args.port = parse_args.port
args.flask_host = parse_args.flask_host
args.swagger_host = parse_args.swagger_host
args.swagger_port = parse_args.swagger_port
args.http_scheme = parse_args.http_scheme
args.verbose = parse_args.verbose in ["True", "true"]
args.create_and_run = parse_args.create_and_run
else: # positional arguments (compatibility)
args.port = parse_args.port_p
args.flask_host = parse_args.flask_host_p
args.swagger_host = parse_args.swagger_host_p
if args.swagger_host.startswith("https://"):
args.swagger_host = args.swagger_host[8:]
if args.swagger_host.endswith("/"):
args.swagger_host = args.swagger_host[0:len(args.swagger_host)-1]
use_codespace_defaulting = True # experimental support to run default launch config
if use_codespace_defaulting and os.getenv('CODESPACES') and args.swagger_host == 'localhost':
app_logger.info('\n Applying Codespaces default port settings')
args.swagger_host = os.getenv('CODESPACE_NAME') + '-5656.githubpreview.dev'
args.swagger_port = 443
args.http_scheme = 'https'
return
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/base/config.py
|
config.py
|
# Using this readme
This readme contains the following sections:
| Section | Info |
|:-------------------------|:-----------------------------------|
| [1. Setup and Run](#1-setup-and-run) | Information about API Logic Server, and setting up your venv |
| [2. Deployment](#2-deployment) | Deploy early previews to the cloud - enable team collaboration |
| [3. Key Customization Files](#3-key-customization-files) | Quick idea of the key files you'll alter |
| [4. Project Requirements](#4-project-requirements) | Options for capturing requirements |
| [5. Project Information](#5-project-information) | Creation dates, versions |
| [Appendix - Key Technologies](#appendix-key-technologies) | Doc links of key libraries |
# 1. Setup and Run
To run your project, the system requires various runtime systems for data access, api, and logic. These are included with API Logic Server ([architecture doc here](https://apilogicserver.github.io/Docs/Architecture-What-Is/)). So, to run your project ([instructions here](#setup-instructions)):
1. __Establish your Python Environment__ to activate these runtime systems
2. __Run__
Setup your Python environment, according to whether you did a *local install*, or *Docker*. Choose the appropriate section, then run.
## Establish Your Python Environment - Local Install
You `requirements.txt` has already been created, so...
```bash title="Install API Logic Server in a Virtual Environment"
python -m venv venv # may require python3 -m venv venv
venv\Scripts\activate # mac/linux: source venv/bin/activate
python -m pip install -r requirements.txt # accept "new Virtual environment"
```
Notes:
* See also the `venv_setup` directory in this API Logic Project.
* If using SqlServer, install `pyodbc`. Not required for docker-based projects. For local installs, see the [Quick Start](https://apilogicserver.github.io/Docs/Install-pyodbc/).
* If you are creating multiple projects, you may wish to use a [Shared venv](https://apilogicserver.github.io/Docs/Project-Env/).
## Establish Your Python Environment - Docker
Your runtime systems are part of Dev Container, which you probably activated when you [opened the project](https://apilogicserver.github.io/Docs/IDE-Execute/).
* If you did not accept the "Open in Container" option when you started VSCode, use __View > Command Palette > Remote-Containers: Reopen in Container__.
## Run
To run your project

As shown above:
1. Use the pre-supplied Run Configuration; use either:
* `**ApiLogicServer - No Security (e.g., for behave tests** to run *with security* (recommended initially)
* `**ApiLogicServer** to run [with security](https://apilogicserver.github.io/Docs/Security-Swagger/)
2. Click the url in the console to start the Admin App
* Use it to explore your data (shown below)
* And your API (via Swagger)

# 2. Deployment
The `devops` directory contains several scripts for creating container images, testing them, and deploying them.
Since API Logic Server creates working software (UI, API), you can do this after creating your project, to [collaborate with your team](https://apilogicserver.github.io/Docs/DevOps-Containers-Preview/).
# 3. Key Customization Files
Your project is ready to run, but it's likely you'll want to customize it - declare logic, new endpoints, etc.
The ___Key Customization Files___ listed in the table below are created as stubs, intended for you to add customizations that extend
the created API, Logic and Web App.
* Since they are separate files, the project can be
[rebuilt](https://apilogicserver.github.io/Docs/Project-Rebuild/) (e.g., synchronized with a revised schema), preserving your customizations.
Please see the `nw` sample for examples of typical customizations. You can open it in GitHub (use Shift + "." to view in project mode) - [click here](https://github.com/ApiLogicServer/demo).
| Directory | Usage | Key Customization File | Typical Customization |
|:-------------- |:------------------------------|:-----------------------------------|:--------------------------------------------------------------------------------------|
| ```api``` | **JSON:API**<br>*Ready to Run* | ```api/customize_api.py``` | Add new end points / services |
| ```ui``` | **Multi-Page Admin App**<br>*Ready to Run* | ```ui/admin/admin.yaml``` | Control field display - order, captions etc. |
| ```database``` | SQLAlchemy Data Model Classes | ```database/customize_models.py``` | Add derived attributes, and relationships missing in the schema |
| ```logic``` | **Transactional Logic**<br>spreadsheet-like rules | ```logic/declare_logic.py``` | Declare multi-table derivations, constraints, and Python events such as send mail / messages |
| ```security``` | Authentication, Authorization | ```security/declare_security.py``` | Control login, role-based row access |
| ```tests``` | Behave Test Suite | ```tests/api_logic_server_behave/features``` | Declare and implement [Behave Tests](https://apilogicserver.github.io/Docs/Behave/) |
# 4. Project Requirements
Optionally, you can **document requirements** as part of an **executable test plan**. Test plan execution creates documentation (in markdown), including **requirements traceability** into implementation. [See example here](test/api_logic_server_behave/reports/Behave%20Logic%20Report%20Sample.md).
# 5. Project Information
This API Logic Project was created with the `ApiLogicServer create` command.
For information on Managing API Logic Projects, [click here](https://apilogicserver.github.io/Docs/Project-Structure).
| About | Info |
|:-------------------------|:-----------------------------------|
| Created | creation-date |
| API Logic Server Version | api_logic_server_version |
| Created in directory | api_logic_server_project_directory |
| API Name | api_logic_server_api_name |
| Execution begins with | `api_logic_server_run.py` |
# Appendix: Key Technologies
API Logic Server is based on the projects shown below.
Consult their documentation for important information.
### SARFS JSON:API Server
[SAFRS: Python OpenAPI & JSON:API Framework](https://github.com/thomaxxl/safrs)
SAFRS is an acronym for SqlAlchemy Flask-Restful Swagger.
The purpose of this framework is to help python developers create
a self-documenting JSON API for sqlalchemy database objects and relationships.
These objects are serialized to JSON and
created, retrieved, updated and deleted through the JSON API.
Optionally, custom resource object methods can be exposed and invoked using JSON.
Class and method descriptions and examples can be provided
in yaml syntax in the code comments.
The description is parsed and shown in the swagger web interface.
The result is an easy-to-use
swagger/OpenAPI and JSON:API compliant API implementation.
### LogicBank
[Transaction Logic for SQLAlchemy Object Models](https://apilogicserver.github.io/Docs/Logic-Why/)
Use Logic Bank to govern SQLAlchemy update transaction logic -
multi-table derivations, constraints, and actions such as sending mail or messages. Logic consists of _both:_
* **Rules - 40X** more concise using a spreadsheet-like paradigm, and
* **Python - control and extensibility,** using standard tools and techniques
Logic Bank is based on SQLAlchemy - it handles `before_flush` events to enforce your logic.
Your logic therefore applies to any SQLAlchemy-based access - JSON:Api, Admin App, etc.
### SQLAlchemy
[Object Relational Mapping for Python](https://docs.sqlalchemy.org/en/13/).
SQLAlchemy provides Python-friendly database access for Python.
It is used by JSON:Api, Logic Bank, and the Admin App.
SQLAlchemy processing is based on Python `model` classes,
created automatically by API Logic Server from your database,
and saved in the `database` directory.
### Admin App
This generated project also contains a React Admin app:
* Multi-page - including page transitions to "drill down"
* Multi-table - master / details (with tab sheets)
* Intelligent layout - favorite fields first, predictive joins, etc
* Logic Aware - updates are monitored by business logic
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/base/readme.md
|
readme.md
|
###############################################################################
#
# This file initializes and starts the API Logic Server (v api_logic_server_version, api_logic_server_created_on):
# $ python3 api_logic_server_run.py [--help]
#
# Then, access the Admin App and API via the Browser, eg:
# http://api_logic_server_host:api_logic_server_port
#
# You typically do not customize this file,
# except to override Creation Defaults and Logging, below.
#
# See Main Code (at end).
# Use log messages to understand API and Logic activation.
#
###############################################################################
import traceback
try:
import os, logging, logging.config, sys, yaml # failure here means venv probably not set
except:
track = traceback.format_exc()
print(" ")
print(track)
print("venv probably not set")
print("Please see https://apilogicserver.github.io/Docs/Project-Env/ \n")
exit(1)
from flask_sqlalchemy import SQLAlchemy
import json
from pathlib import Path
from config import Args
def is_docker() -> bool:
""" running docker? dir exists: /home/api_logic_server """
path = '/home/api_logic_server'
path_result = os.path.isdir(path) # this *should* exist only on docker
env_result = "DOCKER" == os.getenv('APILOGICSERVER_RUNNING')
# assert path_result == env_result
return path_result
current_path = os.path.abspath(os.path.dirname(__file__))
sys.path.append(current_path)
if is_docker():
sys.path.append(os.path.abspath('/home/api_logic_server'))
project_dir = str(current_path)
os.chdir(project_dir) # so admin app can find images, code
import util as util
logic_logger_activate_debug = False
""" True prints all rules on startup """
args = ""
arg_num = 0
for each_arg in sys.argv:
args += each_arg
arg_num += 1
if arg_num < len(sys.argv):
args += ", "
project_name = os.path.basename(os.path.normpath(current_path))
from typing import TypedDict
import safrs # fails without venv - see https://apilogicserver.github.io/Docs/Project-Env/
from safrs import ValidationError, SAFRSBase, SAFRSAPI as _SAFRSAPI
from logic_bank.logic_bank import LogicBank
from logic_bank.exec_row_logic.logic_row import LogicRow
from logic_bank.rule_type.constraint import Constraint
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import Session
import socket
import warnings
from flask import Flask, redirect, send_from_directory, send_file
from flask_cors import CORS
from safrs import ValidationError, SAFRSBase, SAFRSAPI
import ui.admin.admin_loader as AdminLoader
from security.system.authentication import configure_auth
import database.multi_db as multi_db
class SAFRSAPI(_SAFRSAPI):
"""
Extends SAFRSAPI to handle client_uri
Args:
_SAFRSAPI (_type_): _description_
"""
def __init__(self, *args, **kwargs):
client_uri = kwargs.pop('client_uri', None)
if client_uri:
kwargs['port'] = None
kwargs['host'] = client_uri
super().__init__(*args, **kwargs)
# ==================================
# LOGGING SETUP
# ==================================
current_path = os.path.abspath(os.path.dirname(__file__))
with open(f'{current_path}/logging.yml','rt') as f: # see also logic/declare_logic.py
config=yaml.safe_load(f.read())
f.close()
logging.config.dictConfig(config) # log levels: notset 0, debug 10, info 20, warn 30, error 40, critical 50
app_logger = logging.getLogger("api_logic_server_app")
debug_value = os.getenv('APILOGICPROJECT_DEBUG')
if debug_value is not None: # > export APILOGICPROJECT_DEBUG=True
debug_value = debug_value.upper()
if debug_value.startswith("F") or debug_value.startswith("N"):
app_logger.setLevel(logging.INFO)
else:
app_logger.setLevel(logging.DEBUG)
app_logger.debug(f'\nDEBUG level set from env\n')
app_logger.info(f'\nAPI Logic Project ({project_name}) Starting with CLI args: \n.. {args}\n')
app_logger.info(f'Created api_logic_server_created_on at {str(current_path)}\n')
class ValidationErrorExt(ValidationError):
"""
This exception is raised when invalid input has been detected (client side input)
Always send back the message to the client in the response
"""
def __init__(self, message="", status_code=400, api_code=2001, detail=None, error_attributes=None):
Exception.__init__(self)
self.error_attributes = error_attributes
self.status_code = status_code
self.message = message
self.api_code = api_code
self.detail: TypedDict = detail
# ==========================================================
# API Logic Server Setup
# - Opens Database(s)
# - Setup API, Logic, Security, Optimistic Locking
# ==========================================================
def api_logic_server_setup(flask_app: Flask, args: Args):
"""
API Logic Server Setup
1. Opens Database(s)
2. Setup API, Logic, Security, Optimistic Locking
Args:
flask_app (_type_): configured flask_app (servers, ports, db uri's)
args (_type_): typed access to flask_app.config
Raises:
ValidationErrorExt: rebadge LogicBank errors for SAFRS API
"""
from sqlalchemy import exc as sa_exc
global logic_logger_activate_debug
with warnings.catch_warnings():
safrs_log_level = safrs.log.getEffectiveLevel()
db_logger = logging.getLogger('sqlalchemy')
db_log_level = db_logger.getEffectiveLevel()
safrs_init_logger = logging.getLogger("safrs.safrs_init")
do_hide_chatty_logging = True and not args.verbose
if do_hide_chatty_logging and app_logger.getEffectiveLevel() <= logging.INFO:
safrs.log.setLevel(logging.WARN) # notset 0, debug 10, info 20, warn 30, error 40, critical 50
db_logger.setLevel(logging.WARN)
safrs_init_logger.setLevel(logging.WARN)
multi_db.bind_dbs(flask_app)
# https://stackoverflow.com/questions/34674029/sqlalchemy-query-raises-unnecessary-warning-about-sqlite-and-decimal-how-to-spe
warnings.simplefilter("ignore", category=sa_exc.SAWarning) # alert - disable for safety msgs
def constraint_handler(message: str, constraint: Constraint, logic_row: LogicRow):
""" format LogicBank constraint exception for SAFRS """
if constraint.error_attributes:
detail = {"model": logic_row.name, "error_attributes": constraint.error_attributes}
else:
detail = {"model": logic_row.name}
raise ValidationErrorExt(message=message, detail=detail)
admin_enabled = os.name != "nt"
admin_enabled = False
""" internal use, for future enhancements """
if admin_enabled:
flask_app.config.update(SQLALCHEMY_BINDS={'admin': 'sqlite:////tmp/4LSBE.sqlite.4'})
db = SQLAlchemy()
db.init_app(flask_app)
with flask_app.app_context():
with open(Path(current_path).joinpath('security/system/custom_swagger.json')) as json_file:
custom_swagger = json.load(json_file)
safrs_api = SAFRSAPI(flask_app, app_db= db, host=args.swagger_host, port=args.swagger_port, client_uri=args.client_uri,
prefix = args.api_prefix, custom_swagger=custom_swagger)
db = safrs.DB # valid only after is initialized, above
session: Session = db.session
if admin_enabled: # unused (internal dev use)
db.create_all()
db.create_all(bind='admin')
session.commit()
from api import expose_api_models, customize_api
import database.models
app_logger.info("Data Model Loaded, customizing...")
from database import customize_models
from logic import declare_logic
logic_logger = logging.getLogger('logic_logger')
logic_logger_level = logic_logger.getEffectiveLevel()
if logic_logger_activate_debug == False:
logic_logger.setLevel(logging.INFO)
app_logger.info("")
LogicBank.activate(session=session, activator=declare_logic.declare_logic, constraint_event=constraint_handler)
logic_logger.setLevel(logic_logger_level)
app_logger.info("Declare Logic complete - logic/declare_logic.py (rules + code)"
+ f' -- {len(database.models.metadata.tables)} tables loaded\n') # db opened 1st access
method_decorators : list = []
safrs_init_logger.setLevel(logging.WARN)
expose_api_models.expose_models(safrs_api, method_decorators)
app_logger.info(f'Declare API - api/expose_api_models, endpoint for each table on {args.swagger_host}:{args.swagger_port}, customizing...')
customize_api.expose_services(flask_app, safrs_api, project_dir, swagger_host=args.swagger_host, PORT=args.port) # custom services
if args.security_enabled:
configure_auth(flask_app, database, method_decorators)
multi_db.expose_db_apis(flask_app, session, safrs_api, method_decorators)
if args.security_enabled:
from security import declare_security # activate security
app_logger.info("..declare security - security/declare_security.py"
# not accurate: + f' -- {len(database.authentication_models.metadata.tables)}'
+ ' authentication tables loaded')
from api.system.opt_locking import opt_locking
from config import OptLocking
if args.opt_locking == OptLocking.IGNORED.value:
app_logger.info("\nOptimistic Locking: ignored")
else:
opt_locking.opt_locking_setup(session)
SAFRSBase._s_auto_commit = False
session.close()
safrs.log.setLevel(safrs_log_level)
db_logger.setLevel(db_log_level)
# ==================================
# MAIN CODE
# ==================================
flask_app = Flask("API Logic Server", template_folder='ui/templates') # templates to load ui/admin/admin.yaml
CORS(flask_app, resources=[{r"/api/*": {"origins": "*"}}],
allow_headers=["Content-Type", "Authorization", "Access-Control-Allow-Credentials"],supports_credentials=True)
args = Args(flask_app=flask_app) # creation defaults
flask_app.config.from_object("config.Config")
app_logger.debug(f"\nConfig args: \n{args}") # config file (e.g., db uri's)
args.get_cli_args(dunder_name=__name__, args=args)
app_logger.debug(f"\nCLI args: \n{args}") # api_logic_server_run cl args
flask_app.config.from_prefixed_env(prefix="APILOGICPROJECT") # env overrides (e.g., docker)
app_logger.debug(f"\nENV args: \n{args}\n\n")
if args.verbose:
app_logger.setLevel(logging.DEBUG)
safrs.log.setLevel(logging.DEBUG) # notset 0, debug 10, info 20, warn 30, error 40, critical 50
if app_logger.getEffectiveLevel() <= logging.DEBUG:
util.sys_info(flask_app.config)
app_logger.debug(f"\nENV args: \n{args}\n\n")
api_logic_server_setup(flask_app, args)
AdminLoader.admin_events(flask_app = flask_app, args = args, validation_error = ValidationError)
if __name__ == "__main__":
msg = f'API Logic Project loaded (not WSGI), version api_logic_server_version\n'
if is_docker():
msg += f' (running from docker container at flask_host: {args.flask_host} - may require refresh)\n'
else:
msg += f' (running locally at flask_host: {args.flask_host})\n'
app_logger.info(f'\n{msg}')
if args.create_and_run:
app_logger.info(f'==> Customizable API Logic Project created and running:\n'
f'..Open it with your IDE at {project_dir}\n')
if os.getenv('CODESPACES'):
app_logger.info(f'API Logic Project (name: {project_name}) starting on Codespaces:\n'
f'..Explore data and API on codespaces, swagger_host: {args.http_scheme}://{args.swagger_host}/\n')
else:
app_logger.info(f'API Logic Project (name: {project_name}) starting:\n'
f'..Explore data and API at http_scheme://swagger_host:port {args.http_scheme}://{args.swagger_host}:{args.port}\n'
f'.... with flask_host: {args.flask_host}\n'
f'.... and swagger_port: {args.swagger_port}')
flask_app.run(host=args.flask_host, threaded=True, port=args.port)
else:
msg = f'API Logic Project Loaded (WSGI), version api_logic_server_version\n'
if is_docker():
msg += f' (running from docker container at {args.flask_host} - may require refresh)\n'
else:
msg += f' (running locally at flask_host: {args.flask_host})\n'
app_logger.info(f'\n{msg}')
app_logger.info(f'API Logic Project (name: {project_name}) starting:\n'
f'..Explore data and API at http_scheme://swagger_host:port {args.http_scheme}://{args.swagger_host}:{args.port}\n'
f'.... with flask_host: {args.flask_host}\n'
f'.... and swagger_port: {args.swagger_port}')
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/base/api_logic_server_run.py
|
api_logic_server_run.py
|
This describes how to use Logic; for more information, [see here](https://apilogicserver.github.io/Docs/Logic-Why).
## Examples
Examples from tutorial project:
* Examples drawn from [tutorial project](https://github.com/ApiLogicServer/demo/blob/main/logic/declare_logic.py)
* Use Shift + "." to view in project mode
You can [find the rules here](https://apilogicserver.github.io/Docs/Logic). Below, we explore the syntax of 3 typical rules.
### 1. Multi-Table Derivations
This declares the Customer.Balance as the sum of the unshipped Order.AmountTotal:
```python
Rule.sum(derive=models.Customer.Balance,
as_sum_of=models.Order.AmountTotal,
where=lambda row: row.ShippedDate is None)
```
It means the rule engine **watches** for these changes:
* Order inserted/deleted, or
* AmountTotal or ShippedDate or CustomerID changes
Iff changes are detected, the engine **reacts** by *adjusting* the Customer.Balance. SQLs are [optimized](#declarative-logic-important-notes).
This would **chain** to check the Customers' Constraint rule, described below.
### 2. Constraints: lambda or function
Constraints are multi-field conditions which must be true for transactions to succeed (else an exception is raised). You can express the condition as a lambda or a function:
**As a lambda:**
```python
Rule.constraint(validate=models.Customer,
as_condition=lambda row: row.Balance <= row.CreditLimit, # parent references are supported
error_msg="balance ({row.Balance}) exceeds credit ({row.CreditLimit})")
```
**Or, as a function:**
```python
def check_balance(row: models.Customer, old_row: models.Customer, logic_row: LogicRow):
if logic_row.ins_upd_dlt != "dlt": # see also: logic_row.old_row
return row.Balance <= row.CreditLimit
else:
return True
Rule.constraint(validate=models.Customer,
calling=check_balance,
error_msg=f"balance ({row.Balance}) exceeds credit ({row.CreditLimit})")
```
### 3. Row Events: Extensible with Python
Events are procedural Python code, providing extensibility for declarative rules:
```python
def congratulate_sales_rep(row: models.Order, old_row: models.Order, logic_row: LogicRow):
pass # event code here - sending email, messages, etc.
Rule.commit_row_event(on_class=models.Order, calling=congratulate_sales_rep)
```
Note there are multiple kinds of events, so you can control whether they run before or after rule execution. For more information, [see here](https://apilogicserver.github.io/Docs/Logic-Type-Constraint).
## LogicRow: old_row, verb, etc
A key argument to functions is `logic_row`:
* **Wraps row and old_row,** plus methods for insert, update and delete - rule enforcement
* **Additional instance variables:** ins_upd_dlt, nest_level, session, etc.
* **Helper Methods:** are_attributes_changed, set_same_named_attributes, get_parent_logic_row(role_name), get_derived_attributes, log, is_inserted, etc
Here is an example:
```python
"""
STATE TRANSITION LOGIC, using old_row
"""
def raise_over_20_percent(row: models.Employee, old_row: models.Employee, logic_row: LogicRow):
if logic_row.ins_upd_dlt == "upd" and row.Salary > old_row.Salary:
return row.Salary >= Decimal('1.20') * old_row.Salary
else:
return True
Rule.constraint(validate=models.Employee,
calling=raise_over_20_percent,
error_msg="{row.LastName} needs a more meaningful raise")
```
Note the `log` method, which enables you to write row/old_row into the log with a short message:
```python
logic_row.log("no manager for this order's salesrep")
```
## Declarative Logic: Important Notes
Logic *declarative*, which differs from conventional *procedural* logic:
1. **Automatic Invocation:** you don't call the rules; they execute in response to updates (via SQLAlchemy events).
2. **Automatic Ordering:** you don't order the rules; execution order is based on system-discovered depencencies.
3. **Automatic Optimizations:** logic is optimized to reduce SQLs.
* Rule execution is *pruned* if dependent attributes are not altered
* SQL is optimized, e.g., `sum` rules operate by *adjustment*, not expensive SQL `select sum`
These simplify maintenance / iteration: you can be sure new logic is always called, in the correct order.
## Debugging
Debug rules using **system-generated logic log** and your **IDE debugger**; for more information, [see here](https://apilogicserver.github.io/Docs/Logic-Use).
### Using the debugger
Use the debugger as shown below. Note you can stop in lambda functions.

### Logic Log
Logging is performed using standard Python logging, with a logger named `logic_logger`. Use `info` for tracing, and `debug` for additional information (e.g., all declared rules are logged).
In addition, the system logs all rules that fire, to aid in debugging. Referring the the screen shot above:
* Each line represents a rule execution, showing row state (old/new values), and the _{reason}_ that caused the update (e.g., client, sum adjustment)
* Log indention shows multi-table chaining
## How Logic works
*Activation* occurs in `api_logic_server_run.py`:
```python
LogicBank.activate(session=session, activator=declare_logic, constraint_event=constraint_handler)
```
This installs the rule engine as a SQLAlchemy event listener (`before_flush`). So, Logic *runs* automatically, in response to transaction commits (typically via the API).
Rules plug into SQLAlchemy events, and execute as follows:
| Logic Phase | Why It Matters |
|:-----------------------------|:---------------------|
| **Watch** for changes at the attribute level | Performance - Automatic Attribute-level Pruning |
| **React** by recomputing value | Ensures Reuse - Invocation is automatic<br>Derivations are optimized (e.g. *adjustment updates* - not aggregate queries) |
| **Chain** to other referencing data | Simplifies Maintenance - ordering is automatic<br>Multi-table logic automation |
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/base/logic/readme_declare_logic.md
|
readme_declare_logic.md
|
import logging, sys, io
from flask import Flask, redirect, send_from_directory, send_file
from config import Config
from config import Args
from pathlib import Path
import os, inspect
from safrs import ValidationError
admin_logger = logging.getLogger(__name__) # log levels: critical < error < warning(20) < info(30) < debug
did_send_spa = False
def get_sra_directory(args: Args) -> str:
"""
return location of minified sra, which can be...
1. in the venv (from install or Docker) -- the normal case (small projects, less git)
2. local to project: ui/safrs-react-admin
3. in env(APILOGICSERVER_HOME | APILOGICPROJECT_APILOGICSERVER_HOME)
This enables the sra code to be re-used, reducing app size 32MB -> 2.5 MB
"""
directory = 'ui/safrs-react-admin' # local project sra typical API Logic Server path (index.yaml)
if Path(directory).joinpath('robots.txt').is_file():
admin_logger.debug("return_spa - using local directory")
else: # else use installed sra - from venv, or, for dev, in APILOGICSERVER_HOME
try: # works for installed, docker, codespaces. not Azure
from api_logic_server_cli.create_from_model import api_logic_server_utils as api_logic_server_utils
except:
dev_home = os.getenv('APILOGICSERVER_HOME')
if dev_home:
admin_logger.debug("ApiLogicServer not in venv, trying APILOGICSERVER_HOME")
else:
dev_home = args.api_logic_server_home
if dev_home:
admin_logger.debug("ApiLogicServer not in venv, trying APILOGICPROJECT_APILOGICSERVER_HOME")
else:
dev_home = os.getenv('HOME')
if not dev_home:
raise Exception('ApiLogicServer not in venv, env APILOGICSERVER_HOME or HOME must be set')
sys.path.append(dev_home)
from api_logic_server_cli.create_from_model import api_logic_server_utils as api_logic_server_utils
admin_logger.debug("return_spa - install directory")
utils_str = inspect.getfile(api_logic_server_utils)
sra_path = Path(utils_str).parent.joinpath('safrs-react-admin-npm-build')
directory = str(sra_path)
return directory
def admin_events(flask_app: Flask, args: Args, validation_error: ValidationError):
""" events for serving minified safrs-admin, using admin.yaml
"""
@flask_app.route("/admin/<path:path>")
def start_custom_app_return_spa(path=None):
""" Step 1 - Start Custom App, and return minified safrs-react-admin app (acquired from safrs-react-admin/build)
Custom url: http://localhost:5656/admin/custom_app
"""
global did_send_spa
admin_logger.debug(f'API Logic Server - Start Custom App, return minified sra')
if True or not did_send_spa:
did_send_spa = True
admin_logger.info(f'\nStart Custom App ({path}): return spa "ui/safrs-react-admin", "index.html"\n')
directory = get_sra_directory(args)
return send_from_directory(directory, 'index.html') # unsure how admin finds custom url
@flask_app.route('/')
def start_default_app():
""" Step 1 - Start default Admin App
Default URL: http://localhost:5656/
"""
admin_logger.info(f'API Logic Server - Start Default App - redirect /admin-app/index.html')
return redirect('/admin-app/index.html') # --> return_spa
@flask_app.route("/admin-app/<path:path>")
def return_spa(path=None):
""" Step 2 - return minified sra for default admin app
"""
global did_send_spa
if path == "home.js":
directory = "ui/admin"
else:
directory = get_sra_directory(args)
if not did_send_spa:
did_send_spa = True
admin_logger.debug(f'return_spa - directory = {directory}, path= {path}')
return send_from_directory(directory, path)
@flask_app.route('/ui/admin/<path:path>')
def admin_yaml(path=None):
""" Step 3 - return admin file response (to now-running safrs-react-admin app)
and text-substitutes to get url args from startup args (avoid specify twice for *both* server & admin.yaml)
api_root: {http_type}://{swagger_host}:{port}/{api} (from ui_admin_creator)
auth/endpoint: {http_type}://{swagger_host}:{port}/api/auth/login
e.g. http://localhost:5656/ui/admin/admin.yaml
"""
use_type = "mem"
if use_type == "mem":
with open(f'ui/admin/{path}', "r") as f: # path is admin.yaml for default url/app
content = f.read()
if args.client_uri is not None:
content = content.replace(
'{http_type}://{swagger_host}:{port}',
args.client_uri
)
content = content.replace("{api}", args.api_prefix[1:])
else:
content = content.replace("{http_type}", args.http_scheme)
content = content.replace("{swagger_host}", args.swagger_host)
content = content.replace("{port}", str(args.swagger_port)) # note - codespaces requires 443 here (typically via args)
content = content.replace("{api}", args.api_prefix[1:])
if Config.SECURITY_ENABLED == False:
content = content.replace("authentication", 'no-authentication')
admin_logger.debug(f'loading ui/admin/admin.yaml')
mem = io.BytesIO(str.encode(content))
return send_file(mem, mimetype='text/yaml')
else:
response = send_file("ui/admin/admin.yaml", mimetype='text/yaml')
return response
@flask_app.route('/ui/images/<path:path>')
def get_image(path=None):
""" return requested image
data: Employee/janet.jpg
url: http://localhost:5656/ui/images/Employee/janet.jpg
"""
response = send_file(f'ui/images/{path}', mimetype='image/jpeg')
return response
@flask_app.errorhandler(ValidationError)
def handle_exception(e: ValidationError):
res = {'code': e.status_code,
'errorType': 'Validation Error',
'errorMessage': e.message}
# if debug:
# res['errorMessage'] = e.message if hasattr(e, 'message') else f'{e}'
return res, 400
@flask_app.after_request
def after_request(response):
'''
Enable CORS. Disable it if you don't need CORS or install Cors Library
https://parzibyte.me/blog
'''
response.headers[
"Access-Control-Allow-Origin"] = "*" # <- You can change "*" for a domain for example "http://localhost"
response.headers["Access-Control-Allow-Credentials"] = "true"
response.headers["Access-Control-Allow-Methods"] = "POST, GET, OPTIONS, PUT, DELETE, PATCH"
response.headers["Access-Control-Allow-Headers"] = \
"Accept, Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization"
# admin_logger.debug(f'cors after_request - response: {str(response)}')
return response
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/base/ui/admin/admin_loader.py
|
admin_loader.py
|
const sla_doc =
'<div class="MuiTypography-root jss4" style="color: rgba(0, 0, 0, 0.66)">' +
'<div style="text-align:center">' +
'<h2>Welcome to API Logic Server</h2>' +
'</div><br>' +
'<h3><a class="custom" style="color: #3f51b5;" rel="nofollow" href="https://apilogicserver.github.io/Docs/" target="_blank">API Logic Server</a> ' +
'creates <i>customizable</i> model-driven systems, instantly from your ' +
'database:' +
'</h3>' +
'<h4>1. Automatic Admin App</h4>' +
'<ul>' +
' <li>For instant collaboration and Back Office data maintenance</li>' +
' <li>Rich functionality: multi-page, multi-table</li>' +
' <li>Explore this Admin App, ' +
' and how to <a class="custom" style="color: #3f51b5" rel="nofollow" href="https://apilogicserver.github.io/Docs/Admin-Customization/" target="_blank">customize it</a></li>' +
'</ul>' +
'<h4>2. API, with <a class="custom" style="color: #3f51b5;" rel="nofollow" href="/api_logic_server_api_name" target="_blank">oas/Swagger</a></h4>' +
'<ul>' +
' <li>For custom app dev, integration</li>' +
' <li>Rich functionality: endpoint for each table, with filtering, pagination, related data</li>' +
' <li><a class="custom" style="color: #3f51b5" rel="nofollow" href="https://apilogicserver.github.io/Docs/API-Customize/" target="_blank">Customizable</a>: add your own endpoints</li>' +
' <li><a class="custom" style="color: #3f51b5" rel="nofollow" href="http://localhost:5656/stop" target="_blank">Stop</a> the server</li>' +
'</ul>' +
'<h4>3. Business Logic, for <span class="JoinedField" title="Often nearly half the app -- automation required"><span>backend processing</span> </span></h4>' +
'<ul>' +
' <li>Spreadsheet-like rules for multi-table derivations and constraints</li>' +
' <li>Extensible with Python events for email, messages, etc</li>' +
' <li><a class="custom" style="color: #3f51b5" rel="nofollow" href="https://apilogicserver.github.io/Docs/Logic-Why/" target="_blank">Explore</a> ' +
' how logic can meaningfully improve ' +
' <a class="custom" style="color: #3f51b5" rel="nofollow" href="https://github.com/valhuber/LogicBank/wiki/by-code" title="Rules are 40X more concise than code, and address over 95% of database logic" target="_blank">conciseness</a> ' +
' and quality</li>' +
'</ul>' +
'</div>'
function getContent(){
let result = '<button class="MuiButtonBase-root MuiButton-root MuiButton-text makeStyles-widget-159 MuiButton-textPrimary" tabindex="0" type="button" ><span class="MuiButton-label">Loaded External Component. </span></button>';
result = ""
result += sla_doc;
return result;
}
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/base/ui/admin/home.js
|
home.js
|
This project integrates [Alembic](https://alembic.sqlalchemy.org/en/latest/index.html) to perform database migrations.
* Manual: create migration scripts by hand, or
* Autogenerate: alter your `database/models.py`, and have alembic create the migration scripts for you
This project is preconfigured for alembic migrations:
* initialized `database/alembic` directory
* configured `database/alembic/env.py` for autogenerations
* configured `database/alembic.ini` for directory structure
## Manual
As described in the [Tutorial](https://alembic.sqlalchemy.org/en/latest/tutorial.html):
```
cd database
alembic revision -m "my revision"
```
This will create `database/alembic/versions/xxx_my_revision.py`.
* edit the `upgrade()` and `downgrade()` functions as shown in the Tutorial
Then, to run the script
```
alembic upgrade head
```
## Autogenerate
[Autogenerate](https://alembic.sqlalchemy.org/en/latest/autogenerate.html) can be used to forward engineer an altered `database/models.py` to create migration scripts:
```
cd database
alembic revision --autogenerate -m "Added Tables and Columns" # used to create version
alembic upgrade head # runs the version, as above for Manual
```
#### Example - Sample Database
Alter your model by pasting in the following, then follow the procedure above:
```
class CategoryNew(SAFRSBase, Base):
__tablename__ = 'CategoryNew'
Id = Column(Integer, primary_key=True)
Name = Column(String(8000))
Description = Column(String(8000))
# NewCol = Column(String(8000))
```
Then, comment out the NewCol line, and repeat the migration.
> Note: this generates a number of warnings for the sample database. These are caused by _autonum_ columns declared as _null allowed_. These warnings are benign, and should not affect your own databases.
## Next steps
Consider using [API Logic Server `rebuild`](https://github.com/valhuber/ApiLogicServer/wiki#rebuilding) services to upgrade your API and admin app.
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/base/database/alembic/readme.md
|
readme.md
|
from logging.config import fileConfig
from sqlalchemy import engine_from_config
from sqlalchemy import pool
from alembic import context
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
# Interpret the config file for Python logging.
# This line sets up loggers basically.
if config.config_file_name is not None:
fileConfig(config.config_file_name)
# add your model's MetaData object here
# for 'autogenerate' support
# customized for ApiLogicServer
from database.models import Base
target_metadata = Base.metadata
# other values from the config, defined by the needs of env.py,
# can be acquired:
# my_important_option = config.get_main_option("my_important_option")
# ... etc.
def run_migrations_offline():
"""Run migrations in 'offline' mode.
This configures the context with just a URL
and not an Engine, though an Engine is acceptable
here as well. By skipping the Engine creation
we don't even need a DBAPI to be available.
Calls to context.execute() here emit the given string to the
script output.
"""
url = config.get_main_option("sqlalchemy.url")
context.configure(
url=url,
target_metadata=target_metadata,
literal_binds=True,
dialect_opts={"paramstyle": "named"},
)
with context.begin_transaction():
context.run_migrations()
def run_migrations_online():
"""Run migrations in 'online' mode.
In this scenario we need to create an Engine
and associate a connection with the context.
"""
connectable = engine_from_config(
config.get_section(config.config_ini_section),
prefix="sqlalchemy.",
poolclass=pool.NullPool,
)
with connectable.connect() as connection:
context.configure(
connection=connection, target_metadata=target_metadata
)
with context.begin_transaction():
context.run_migrations()
print("hello")
if context.is_offline_mode():
run_migrations_offline()
else:
run_migrations_online()
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/base/database/alembic/env.py
|
env.py
|
Without customization, your API supports multi-table retrieval. For more information, [see here](https://apilogicserver.github.io/Docs/API-Multi-Table).
This describes how to *add new endpoints*. For more information, [see here](https://apilogicserver.github.io/Docs/API-Customize).
## Examples
Examples from tutorial project:
* Examples drawn from [tutorial project](https://github.com/ApiLogicServer/demo/blob/main/api/customize_api.py)
* Use Shift + "." to view in project mode
### New Endpoint: Standard Flask with Security, not exposed in Swagger
Use standard Flask / SQLAlchemy (background [here](https://docs.sqlalchemy.org/en/20/core/connections.html)):
```python
@app.route('/filters_cats')
@admin_required()
def filters_cats():
"""
Illustrates:
* Explore SQLAlchemy and/or filters.
Test (returns rows 2-5) (no auth):
curl -X GET "http://localhost:5656/filters_cats [no-filter | simple-filter]"
"""
from sqlalchemy import and_, or_
filter_type = request.args.get('filter')
if filter_type is None:
filter_type = "multiple filters"
db = safrs.DB # Use the safrs.DB, not db!
session = db.session # sqlalchemy.orm.scoping.scoped_session
Security.set_user_sa() # an endpoint that requires no auth header (see also @admin_required)
if filter_type.startswith("n"):
results = session.query(models.Category) # .filter(models.Category.Id > 1)
elif filter_type.startswith("s"): # normally coded like this
results = session.query(models.Category) \
.filter(models.Category.Id > 1) \
.filter(or_((models.Category.Client_id == 2), (models.Category.Id == 5)))
else: # simulate grant logic (multiple filters)
client_grant = models.Category.Client_id == 2
id_grant = models.Category.Id == 5
grant_filter = or_( client_grant, id_grant)
results = session.query(models.Category) \
.filter(models.Category.Id > 1) \
.filter(grant_filter)
return_result = []
for each_result in results:
row = { 'id': each_result.Id, 'name': each_result.CategoryName}
return_result.append(row)
return jsonify({ "success": True, "results": return_result})
```
### New Endpoint: Standard Flask, exposed in Swagger
```python
class CategoriesEndPoint(safrs.JABase):
"""
Illustrates
* Swagger-visible RPC that requires authentication (@jwt_required()).
Test in swagger (auth required)
* Post to endpoint auth to obtain <access_token> value - copy it to clipboard
* Authorize (top of swagger), using Bearer <access_token>
* Post to CategoriesEndPoint/get_cats, observe only row 1 returned
"""
@staticmethod
@jwt_required()
@jsonapi_rpc(http_methods=['POST'], valid_jsonapi=False)
def get_cats():
db = safrs.DB
session = db.session
# Security.set_user_sa() # use to bypass authorization (also requires @admin_required)
result = session.query(models.Category)
for each_row in result:
app_logger.debug(f'each_row: {each_row}')
rows = util.rows_to_dict(result)
response = {"result": rows}
return response
```
## Data Access
The samples also illustrate several forms of data access, summarized in the table below. Note the use of `util.py`, included with all projects.
| Function | Auth required | Illustrates | Util Usage |
|:-------------- |:------------------------------|:-----------------------------------|:--------------------------------------------------------------------------------------|
| ```order_nested_objects()``` | | Nested Model Objects | util.format_nested_objects() jsoniify(row).json |
| ```get_cats()``` | Y | Model query |Util.rows_to_dict<br>..row.to_dict |
| ```filters_cats()``` | Y | Model query, filters | No: No - Manual {} creation |
| ```raw_sql_cats()``` | | Raw sql | Util.rows_to_dict<br>..fields iterator |
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/base/api/readme_customize_api.md
|
readme_customize_api.md
|
import logging
import util
import safrs
from flask import request, jsonify
from safrs import jsonapi_rpc
from database import models
# called by api_logic_server_run.py, to customize api (new end points, services).
# separate from expose_api_models.py, to simplify merge if project recreated
app_logger = logging.getLogger(__name__)
def expose_services(app, api, project_dir, swagger_host: str, PORT: str):
""" Customize API - new end points for services
Brief background: see readme_customize_api.md
"""
app_logger.debug("api/customize_api.py - expose custom services")
@app.route('/hello_world')
def hello_world(): # test it with: http://api_logic_server_host:api_logic_server_port/hello_world?user=ApiLogicServer
"""
This is inserted to illustrate that APIs not limited to database objects, but are extensible.
See: https://apilogicserver.github.io/Docs/API-Customize/
See: https://github.com/thomaxxl/safrs/wiki/Customization
"""
user = request.args.get('user')
return jsonify({"result": f'hello, {user}'})
@app.route('/stop')
def stop(): # test it with: http://localhost:5656/stop?msg=API stop - Stop API Logic Server
"""
Use this to stop the server from the Browser.
See: https://stackoverflow.com/questions/15562446/how-to-stop-flask-application-without-using-ctrl-c
See: https://github.com/thomaxxl/safrs/wiki/Customization
"""
import os, signal
msg = request.args.get('msg')
app_logger.info(f'\nStopped server: {msg}\n')
os.kill(os.getpid(), signal.SIGINT)
return jsonify({ "success": True, "message": "Server is shutting down..." })
@app.route('/server_log')
def server_log():
"""
Used by test/api_logic_server_behave/features/steps/test_utils.py - enables client app to log msg into server
Special support for the msg parameter -- Rules Report
"""
return util.server_log(request, jsonify)
@app.route('/metadata')
def metadata():
"""
Returns json for list of resources, with optional attribute name/type, eg
curl -X GET "http://localhost:5656/metadata?resource=Category&include=attributes"
curl -X GET "http://localhost:5656/metadata?include=attributes"
"""
from typing import List, Dict
import inspect
import sys
from sqlalchemy.ext.declarative import declarative_base
resource_name = request.args.get('resource')
include_attributes = False
include = request.args.get('include')
if include:
include_attributes = "attributes" in include
resource_list = [] # array of attributes[], name (so, the name is last...)
resource_objs = {} # objects, named = resource_name
models_name = "database.models"
cls_members = inspect.getmembers(sys.modules["database.models"], inspect.isclass)
for each_cls_member in cls_members:
each_class_def_str = str(each_cls_member)
if (f"'{models_name}." in str(each_class_def_str) and
"Ab" not in str(each_class_def_str)):
each_resource_name = each_cls_member[0]
each_resource_class = each_cls_member[1]
each_resource_mapper = each_resource_class.__mapper__
if resource_name is None or resource_name == each_resource_name:
resource_object = {"name": each_resource_name}
resource_list.append(resource_object)
resource_objs[each_resource_name] = {}
if include_attributes:
attr_list = []
for each_attr in each_resource_mapper.attrs:
if not each_attr._is_relationship:
try:
attribute_object = {"name": each_attr.key,
"type": str(each_attr.expression.type)}
except:
attribute_object = {"name": each_attr.key,
"type": "unkown"}
attr_list.append(attribute_object)
resource_object["attributes"] = attr_list
resource_objs[each_resource_name] = {"attributes": attr_list}
# pick the format you like
return_result = {"resources": resource_list}
return_result = {"resources": resource_objs}
return jsonify(return_result)
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/base/api/customize_api.py
|
customize_api.py
|
## Problem Statement
Optimistic locking is a valuable feature for interactive systems, to **avoid update overwrites** and **maximize concurrency**, **without requiring special database columns**.
### Constraints
Most systems operate under the following constraints:
1. **Maximize concurrency** by be eliminating long-duration locks
* Rows cannot be locked (pessimistically) on read, _in case_ they are updated
2. **No special columns**, such as `VersionNumber`
* Database design is often constrained by other applications, or by internal standards
3. **Minimize network traffic** and keep client coding simple
* E.g., unwieldy to send all "old" values back
### Avoid Update Overwrites
Within these constraints, the key objective is avoid overwriting updates. Consider the following scenario:
| Time | User | Action |
|:----- |:-------|:----|
| T0 | U1 | Reads Row.Column with value V1 |
| T1 | U2 | Reads same row |
| T2 | U1 | Updates row with value V2 |
| T3 | U2 | Updates row with value V3 - V2 value overwritten, U1 not happy |
The objective, then, is to ***avoid overwriting U1's update***.
### Optimistic Locking
A widely accepted solution is **optimistic locking:**
1. On reads, no database locks are acquired
2. On update, ensure the row has not changed since the user read it
## Approach: virtual `CheckSum` to detect changes
Before summarizing the approach, we note some key elements provided by architectural components.
### Background: Key Architectural Elements
#### 1. SAFRS `@jsonapi_attr`
SAFRS API provides adding derived virtual (non-stored) attributes: [`@jsonapi_attr`](https://github.com/thomaxxl/safrs/blob/master/examples/demo_pythonanywhere_com.py)
* This enables the server to compute unstored values, here, `S_CheckSum`
* SAFRS supports sending such values on client `patch` operations, so it is visible in logic
#### 2. SQLAlchemy `loaded_as_persistent`
SQLAlchemy provides the `loaded_as_persistent` [event](https://docs.sqlalchemy.org/en/20/orm/events.html#sqlalchemy.orm.SessionEvents.loaded_as_persistent), enabling us to compute the `CheckSum`, store it in the row, so we can later check it on update.
#### 3. The rules engine supports generic `before_logic`
This enables us to check the row compare `CheckSum` values before updates; see [`logic/declare_logic](https://github.com/ApiLogicServer/demo/blob/main/logic/declare_logic.py). Note such logic has access to the about-to-be-updated row, and the old-row.
### Creation options
You can configure optimistic locking when you create projects, with the following 2 CLI arguments:
1. `--opt_locking_attr` - this is the name of the attribute that contains the CheckSum. It defaults to `S_CheckSum`
2. `--opt_locking` - select one of the following (default is *optional*):
| Option | Included on `Get` | Checked on `Patch` |
|:----- |:-------|:----|
| **ignored** | Never | Never |
| **optional** | Always | Yes - but no error if omitted |
| **required** | Always | Yes - error if omitted |
### Configuration options
You can override the created `opt_locking` on server startup:
* by updating the Config file, and
* by using the `OPT_LOCKING` Env variable.
The options are the same as shown in the table above.
Note the env variables can be set on your IDE Run Configurations.
### Processing Overview
The approach is summarized in the table below. See the the code in [`api/system/opt_locking/opt_locking.py`](https://github.com/ApiLogicServer/demo/blob/main/api/system/opt_locking/opt_locking.py) for details.
| Phase | Responsibility | Action | Notes |
|:-----|:-------|:-------|:----|
| Design Time | **System** | Declare <`opt_locking_attr`> as a `@jsonapi_attr` | Project creation (CLI) builds `models.py` with @json_attr |
| Runtime - Read | **System** | Compute Checksum | `opt_locking#loaded_as` (setup from from api_logic_server_run.py) |
| Runtime - Call Patch | **User** App Code,<br>Admin App | Return as-read-Checksum | See examples below |
| Runtime - Process Patch | **System** | Compare CheckSums: as-read vs. current | `opt_locking#opt_locking_patch`, via `logic/declare_logic.py`: generic before event |
----
## Exploring Optimistic Locking
You can explore this using the sample database with the the Admin App, or with the cURL commands below.
Use the `No Security` run config.
### Category `Patch` - Missing S_Checksum passes
This should bypass optlock check and report "can't be x"
```
curl -X 'PATCH' \
'http://localhost:5656/api/Category/1/' \
-H 'accept: application/vnd.api+json' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"attributes": {
"Description": "x"
},
"type": "Category",
"id": "1"
}
}'
```
### Category `Patch` - Invalid S_Checksum raises exception
This should fail "Sorry, row altered by another user..."
```
curl -X 'PATCH' \
'http://localhost:5656/api/Category/1/' \
-H 'accept: application/vnd.api+json' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"attributes": {
"Description": "x",
"S_CheckSum": "Invalid S_Checksum raises exception"
},
"type": "Category",
"id": "1"
}
}'
```
### Category 9 `Patch` valid S_CheckSum passes
This should bypass optlock check and report "can't be x"
```
curl -X 'PATCH' \
'http://localhost:5656/api/Category/9/' \
-H 'accept: application/vnd.api+json' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"attributes": {
"Description": "x",
"S_CheckSum": "83926768455664603"
},
"type": "Category",
"id": "9"
}
}'
```
### Order 10643 Set Shipped (from null)
This case tests different attribute ordering (per alias attribute), resulting in different checksums.
Be sure to replace the db.sqlite after the test, since this changes it.
```
curl -X 'PATCH' \
'http://localhost:5656/api/Order/10643/' \
-H 'accept: application/vnd.api+json' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"attributes": {
"RequiredDate": "2013-10-13",
"Id": 10643
},
"type": "Order",
"id": 10643
}
}'
```
```
curl -X 'GET' \
'http://localhost:5656/api/Order/10643/?include=parent%2COrderDetailList%2CCustomer%2CLocation%2CEmployee%2COrderList&fields%5BOrder%5D=ShipZip%2CId%2CCustomerId%2CEmployeeId%2COrderDate%2CRequiredDate%2CShippedDate%2CShipVia%2CFreight%2CShipName%2CShipAddress%2CShipCity%2CShipRegion%2CShipCountry%2CAmountTotal%2CCountry%2CCity%2CReady%2COrderDetailCount%2CCloneFromOrder%2C_check_sum_%2CCheckSum' \
-H 'accept: application/vnd.api+json' \
-H 'Content-Type: application/vnd.api+json'
```
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/base/api/system/opt_locking/readme.md
|
readme.md
|
import datetime
from decimal import Decimal
from logic_bank.exec_row_logic.logic_row import LogicRow
from logic_bank.extensions.rule_extensions import RuleExtension
from logic_bank.logic_bank import Rule
from database import models
import logging
import sqlalchemy
from sqlalchemy import inspect
from sqlalchemy import event
from safrs import SAFRSBase
from safrs.util import classproperty
from safrs.errors import JsonapiError
from http import HTTPStatus
from config import OptLocking
from config import Args as args
logger = logging.getLogger(__name__)
def opt_locking_setup(session):
"""
Listen_for read events - set rows' CheckSum property for optimistic locking
Called at Server start (api_logic_server_run)...
"""
@event.listens_for(session, 'loaded_as_persistent')
def receive_loaded_as_persistent(session, instance):
"listen for the 'loaded_as_persistent' (get) event - set CheckSum"
checksum_value = checksum_row(instance)
logger.debug(f'checksum_value: {checksum_value}')
setattr(instance, "_check_sum_property", checksum_value)
def checksum(list_arg: list) -> str:
"""
Args:
list_arg (list): list of (rows') attribute values
Returns:
int: hash(list values), with special handling for None
"""
real_tuple = []
skip_none = True # work-around for non-repeatable hash(None)
if skip_none: # https://bugs.python.org/issue19224
real_tuple = []
for each_entry in list_arg:
if each_entry is None:
real_tuple.append(13)
else:
real_tuple.append(each_entry)
result = hash(tuple(real_tuple))
# print(f'checksum[{result}] from row: {list_arg})')
result = str(result) # maxint 870744036720833075 https://stackoverflow.com/questions/47188449/json-max-int-number
return result
def checksum_row(row: object) -> str:
"""
Args:
row (object): SQLAlchemy row
Returns:
int: hash(row attributes), using checksum()
"""
inspector = inspect(row)
mapper = inspector.mapper
iterate_properties = mapper.iterate_properties
attr_list = []
for each_property in iterate_properties: # does not include CheckSum
if each_property.key == "CheckSum":
logger.debug(f'checksum_row (CheckSum) - good place for breakpoint')
if isinstance(each_property, sqlalchemy.orm.properties.ColumnProperty):
# logger.debug(f'row.property: {each_property} [{getattr(row, each_property.key)}] <{type(each_property)}>')
attr_list.append(getattr(row, each_property.class_attribute.key))
return_value = checksum(attr_list)
# logger.debug(f'checksum_row (get) [{return_value}], inspector: {inspector}')
return return_value
def checksum_old_row(logic_row: object) -> str:
"""
Args:
logic_row (object): old_row (from LogicBank via declare_logic)
Returns:
int: hash(old_row attributes), using checksum()
"""
inspector = inspect(logic_row.row) # get the mapper from row, values from old_row
mapper = inspector.mapper
iterate_properties = mapper.iterate_properties
attr_list = []
for each_property in iterate_properties: # does not include CheckSum
if each_property.key == "CheckSum":
logger.debug(f'checksum_row (CheckSum) - good place for breakpoint')
if isinstance(each_property, sqlalchemy.orm.properties.ColumnProperty):
# logger.debug(f'old_row.property: {each_property} [{getattr(logic_row.old_row, each_property.key)}] <{type(each_property)}>')
attr_list.append(getattr(logic_row.old_row, each_property.class_attribute.key))
return_value = checksum(attr_list)
# logger.debug(f'checksum_row (get) [{return_value}], inspector: {inspector}')
return return_value
class ALSError(JsonapiError):
def __init__(self, message, status_code=HTTPStatus.BAD_REQUEST):
super().__init__()
self.message = message
self.status_code = status_code
def opt_lock_patch(logic_row: LogicRow):
"""
Called by logic/declare_logic in early (before logic) event for updates (patch)
Compares as_read_checksum to old_row_checksum, to determine whether row changed since read
- as_read_checksum is submitted in patch by client, from initial get (see receive_loaded_as_persistent)
- old_row_checksum is provided by Logicbank - it's the current row on disk
Args:
logic_row (LogicRow): LogicBank row being updated
Raises:
ALSError: "Sorry, row altered by another user - please note changes, cancel and retry"
ALSError: "Optimistic Locking error - required CheckSum not present"
"""
logger.debug(f'Opt Lock Patch')
if hasattr(logic_row.row, "replace_opt_locking_attr"):
as_read_checksum = logic_row.row.replace_opt_locking_attr
old_row_checksum = checksum_old_row(logic_row)
if as_read_checksum != old_row_checksum:
logger.info(f"optimistic lock failure - as-read vs current: {as_read_checksum} vs {old_row_checksum}")
raise ALSError(message="Sorry, row altered by another user - please note changes, cancel and retry")
else:
if args.opt_locking == OptLocking.OPTIONAL.value:
logger.debug(f'No CheckSum -- ok, configured as optional')
else:
raise ALSError("Optimistic Locking error - required CheckSum not present")
|
ApiLogicServer
|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/prototypes/base/api/system/opt_locking/opt_locking.py
|
opt_locking.py
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.