@oinone/kunlun-meta 6.3.1 → 6.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var i,r,o,a,s=function(){return s=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},s.apply(this,arguments)};function c(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})}!function(e){e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE"}(i||(i={})),function(e){e.DRAFT="DRAFT",e.NOT_ENABLED="NOT_ENABLED",e.ENABLED="ENABLED",e.DISABLED="DISABLED"}(r||(r={})),function(e){e.STORE="STORE",e.TRANSIENT="TRANSIENT",e.ABSTRACT="ABSTRACT",e.PROXY="PROXY",e.CLIENT="CLIENT"}(o||(o={})),function(e){e.String="STRING",e.Text="TEXT",e.HTML="HTML",e.Phone="PHONE",e.Email="EMAIL",e.Integer="INTEGER",e.Long="LONG",e.Float="FLOAT",e.Currency="MONEY",e.DateTime="DATETIME",e.Date="DATE",e.Time="TIME",e.Year="YEAR",e.Boolean="BOOLEAN",e.Enum="ENUM",e.Map="MAP",e.Related="RELATED",e.OneToOne="O2O",e.OneToMany="O2M",e.ManyToOne="M2O",e.ManyToMany="M2M",e.OBJ="OBJ",e.ID="ID",e.Null="NULL",e.UID="UID",e.MultiEnum="MULTI_ENUM"}(a||(a={}));const l={ID:"ID",NULL:"空",INTEGER:"整数",LONG:"长整型",FLOAT:"浮点数",BOOLEAN:"布尔型",STRING:"文本",TEXT:"多行文本",DATETIME:"时间日期",DATE:"日期",TIME:"时间",YEAR:"年份",HTML:"富文本",MONEY:"金额",ENUM:"数据字典",MULTI_ENUM:"多枚举",O2O:"一对一",O2M:"一对多",M2O:"多对一",M2M:"多对多",RELATED:"引用类型",MAP:"键值对",UID:"用户ID",PHONE:"手机",EMAIL:"邮箱"},u=[{label:l.STRING,value:a.String},{label:l.TEXT,value:a.Text},{label:l.HTML,value:a.HTML},{label:l.PHONE,value:a.Phone},{label:l.EMAIL,value:a.Email},{label:l.INTEGER,value:a.Integer},{label:l.LONG,value:a.Long},{label:l.FLOAT,value:a.Float},{label:l.MONEY,value:a.Currency},{label:l.DATETIME,value:a.DateTime},{label:l.DATE,value:a.Date},{label:l.TIME,value:a.Time},{label:l.YEAR,value:a.Year},{label:l.BOOLEAN,value:a.Boolean},{label:l.ENUM,value:a.Enum},{label:l.MAP,value:a.Map},{label:l.O2M,value:a.OneToMany},{label:l.M2O,value:a.ManyToOne},{label:l.M2M,value:a.ManyToMany}];var p,d,f,h,E,m,N,T,O,I,y,_,A,D;function v(e){return[a.OneToOne,a.OneToMany,a.ManyToOne,a.ManyToMany].includes(e)}function S(e){return[a.OneToOne,a.ManyToOne].includes(e)}function g(e){return[a.ManyToMany,a.OneToMany].includes(e)}function M(e){return e===a.Related}!function(e){e.NON="NON",e.JSON="JSON",e.COMMA="COMMA",e.BIT="BIT",e.DOT="DOT"}(p||(p={})),function(e){e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE"}(d||(d={})),function(e){e.GRAPHQL="graphql",e.RESTFUL="restful"}(f||(f={})),function(e){e.PRIMITIVE="primitive",e.OBJECT="object",e.LIST="list"}(h||(h={})),function(e){e.CLIENT="client",e.SERVER="server"}(E||(E={})),function(e){e.CLIENT="client",e.SERVER="server",e.BOTH="both"}(m||(m={})),function(e){e.DOMAIN="domain",e.OBJECT="object",e.LIST="list"}(N||(N={})),function(e){e.Server="SERVER",e.View="VIEW",e.URL="URL",e.Client="CLIENT",e.Model="model",e.Composition="COMPOSITION",e.Custom="custom"}(T||(T={})),function(e){e.Single="SINGLE",e.Batch="BATCH",e.SingleAndBatch="SINGLE_AND_BATCH",e.ContextFree="CONTEXT_FREE"}(O||(O={})),function(e){e.JAVA="JAVA",e.JS="JS",e.GROOVY="GROOVY"}(I||(I={})),function(e){e.FindOne="FindOne",e.FindList="FindList",e.FindAll="FindAll",e.InsertOne="InsertOne",e.UpdateOne="UpdateOne",e.DeleteOne="DeleteOne",e.DeleteOneInline="DeleteOneInline",e.UpdateList="UpdateList",e.DeleteList="DeleteList"}(y||(y={})),function(e){e.ContextAction="contextFreeAction",e.SingleAction="singleAction",e.FooterAction="footer"}(_||(_={})),function(e){e.ValidateForm="validateForm",e.UpdateContext="updateContext",e.ShowDialog="showDialog",e.SubmitDialog="submitDialog",e.CloseDialog="closeDialog",e.InsertEmptyItemToList="insertEmptyItemToList",e.InsertEmptyItemToBefore="insertEmptyItemToBefore",e.InsertEmptyItemToAfter="insertEmptyItemToAfter",e.DeleteListItem="deleteListItem",e.ReloadData="reloadData",e.CopyText="copyText",e.Confirm="confirm",e.StartCreate="startCreate",e.StartInlineEdit="startInlineEdit",e.SubmitInlineEdit="submitInlineEdit",e.CancelInlineEdit="cancelInlineEdit",e.HistoryBack="historyBack",e.O2MCreateForm="O2MCreateForm",e.O2MEditForm="O2MEditForm",e.O2MDelete="O2MDelete",e.O2MCreateFormConfirm="O2MCreateFormConfirm",e.O2MEditFormConfirm="O2MEditFormConfirm",e.M2MCreateTable="M2MCreateTable",e.M2MDelete="M2MDelete",e.M2MCreateTableConfirm="M2MCreateTableConfirm",e.O2MCloseForm="O2MCloseForm"}(A||(A={})),function(e){e.create="create",e.update="update",e.delete="delete",e.redirectDetailPage="redirectDetailPage",e.redirectCreatePage="redirectCreatePage",e.redirectUpdatePage="redirectUpdatePage",e.$$internal_AddOne="$$internal_AddOne",e.$$internal_EditOne="$$internal_EditOne",e.$$internal_CopyOne="$$internal_CopyOne",e.$$internal_DeleteOne="$$internal_DeleteOne",e.$$internal_ListInsertOneAndBackToList="$$internal_ListInsertOneAndBackToList",e.$$internal_ListUpdateOneAndBackToList="$$internal_ListUpdateOneAndBackToList",e.$$internal_GotoListImportDialog="$$internal_GotoListImportDialog",e.$$internal_GotoListExportDialog="$$internal_GotoListExportDialog",e.$$internal_GotoListTableRouter="$$internal_GotoListTableRouter",e.$$internal_DialogCancel="$$internal_DialogCancel",e.$$internal_GotoO2MCreateDialog="$$internal_GotoO2MCreateDialog",e.$$internal_GotoO2MEditDialog="$$internal_GotoO2MEditDialog",e.$$internal_O2MUpdateOneAndSubmitDialog="$$internal_O2MUpdateOneAndSubmitDialog",e.$$internal_O2MDeleteOne="$$internal_O2MDeleteOne",e.$$internal_DialogSubmit="$$internal_DialogSubmit",e.$$internal_O2MInsertOneAndSubmitDialog="$$internal_O2MInsertOneAndSubmitDialog",e.$$internal_ListUpdateAndCloseDialogReloadOpenerAction="$$internal_ListUpdateAndCloseDialogReloadOpenerAction",e.$$internal_ListInsertOneAndCloseDialog="$$internal_ListInsertOneAndCloseDialog",e.$$internal_GotoM2MListDialog="$$internal_GotoM2MListDialog",e.$$internal_ReloadData="$$internal_ReloadData",e.$$internal_ValidateForm="$$internal_ValidateForm",e.$$internal_Download="$$internal_Download",e.$$internal_BatchUpdate="$$internal_BatchUpdate",e.$$internal_DownloadImportWorkbook="$$internal_DownloadImportWorkbook",e.$$internal_ImportWorkbook="$$internal_ImportWorkbook",e.$$internal_ExportWorkbook="$$internal_ExportWorkbook",e.$$internal_PrintPdfDocument="$$internal_PrintPdfDocument"}(D||(D={}));const L=[D.create,D.update,D.delete,D.redirectDetailPage,D.redirectCreatePage,D.redirectUpdatePage];var C,b,R,x,k,P,F,w,B,$;!function(e){e.Sequential="sequential",e.Parallel="parallel",e.ForkJoin="fork-join",e.Race="race"}(C||(C={})),function(e){e.Client="client",e.Server="server",e.Both="both"}(b||(b={})),function(e){e.MASK="MASK",e.BLOCK="BLOCK",e.HEADER="HEADER",e.CONTAINER="CONTAINER",e.SIDEBAR="SIDEBAR",e.CONTENT="CONTENT",e.VIEW="VIEW",e.FIELD="FIELD",e.GROUP="GROUP",e.GRID="GRID",e.ACTION="ACTION",e.API="API",e.CONTEXT="CONTEXT",e.REQUEST="REQUEST",e.RESPONSE="RESPONSE",e.CLEAR="CLEAR",e.FILTER="FILTER",e.WIDGET="WIDGET",e.PROP="PROP",e.VALIDATION="VALIDATION"}(R||(R={})),function(e){e.SIGN_UP_PHONE="SIGN_UP_PHONE",e.SIGN_UP_EMAIL="SIGN_UP_EMAIL",e.PHONE_MODIFY_PASSWORD_BY_PHONE_SUBMIT="MODIFY_PASSWORD_BY_PHONE",e.PHONE_MODIFY_PASSWORD_BY_PHONE_SEND_CODE="MODIFY_PASSWORD_BYPHONE_SEND_CODE",e.EMAIL_MODIFY_PASSWORD_BY_EMAIL_SUBMIT="MODIFY_PASSWORD_BY_EMAIL",e.EMAIL_MODIFY_PASSWORD_BY_EMAIL_SEND_CODE="MODIFY_PASSWORD_SEND_RESET_EMAIL",e.PHONE_MODIFY_PHONE_SUBMIT="MODIFY_PHONE",e.PHONE_MODIFY_PHONE_OLD_PHONE_CODE="MODIFY_PHONE_OLD_PHONE_CODE",e.EMAIL_MODIFY_PHONE_SEND_EMAIL_CODE="MODIFY_PHONE_SEND_EMAIL",e.PHONE_MODIFY_PHONE_NEW_PHONE_CODE="MODIFY_PHONE_NEW_PHONE_CODE",e.EMAIL_MODIFY_EMAIL_SUBMIT="MODIFY_EMAIL",e.EMAIL_MODIFY_EMAIL_SEND_OLD_EMAIL="MODIFY_EMAIL_SEND_OLD_EMAIL",e.PHONE_MODIFY_EMAIL_SEND_PHONE_CODE="MODIFY_EMAIL_SEND_PHONE_CODE",e.EMAIL_MODIFY_EMAIL_SEND_NEW_EMAIL="MODIFY_EMAIL_SEND_NEW_EMAIL",e.PHONE_ADD_CORP_SEND_PHONE_CODE="ADD_CORP_SEND_PHONE_CODE",e.EMAIL_ADD_CORP_SEND_EMAIL_CODE="ADD_CORP_SEND_EMAIL_CODE",e.PHONE_LOGIN_BY_PHONE_CODE="LOGIN_BY_PHONE_CODE",e.PHONE_SEND_LOGIN_BY_PHONE_CODE="SEND_LOGIN_BY_PHONE_CODE",e.EMAIL_LOGIN_BY_EMAIL_CODE="LOGIN_BY_EMAIL_CODE",e.EMAIL_SEND_LOGIN_BY_EMAIL_CODE="SEND_LOGIN_BY_EMAIL_CODE"}(x||(x={})),function(e){e.List="LIST",e.Object="OBJECT"}(k||(k={})),function(e){e.PC="PC",e.MOBILE="MOBILE"}(P||(P={})),function(e){e.Table="TABLE",e.Form="FORM",e.Detail="DETAIL",e.Search="SEARCH",e.Gallery="GALLERY",e.Tree="TREE",e.Multiple="MULTIPLE",e.Custom="CUSTOM"}(F||(F={})),function(e){e.Create="CREATE",e.Editor="EDITOR",e.Lookup="LOOKUP"}(w||(w={})),function(e){e.Router="ROUTER",e.Dialog="DIALOG",e.Drawer="DRAWER",e.Inner="INNER",e.OpenWindow="OPEN_WINDOW",e.Frame="iframe"}(B||(B={})),function(e){e.SYSTEM="SYSTEM",e.BASE="BASE",e.MANUAL="MANUAL",e.UI="UI",e.RELATION="RELATION",e.ABSTRACT_INHERITED="ABSTRACT_INHERITED",e.TRANSIENT_INHERITED="TRANSIENT_INHERITED",e.EXTEND_INHERITED="EXTEND_INHERITED",e.MULTI_TABLE_INHERITED="MULTI_TABLE_INHERITED",e.PROXY_INHERITED="PROXY_INHERITED"}($||($={}));const U={BASE:"base",COMMON:"common",USER:"user",AUTH:"auth",MESSAGE:"message",RESOURCE:"resource",FILE:"file",EIP:"eip",DESIGNER_COMMON:"designer_common"},V={BASE:"base",COMMON:"common",USER:"user",AUTH:"auth",MESSAGE:"message",RESOURCE:"resource",FILE:"file",EIP:"eip",DESIGNER_COMMON:"designerCommon"},Y="id =notnull= true";function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}var j="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function H(e,t){for(var n,i=/\r\n|[\n\r]/g,r=1,o=t+1;(n=i.exec(e.body))&&n.index<t;)r+=1,o=t+1-(n.index+n[0].length);return{line:r,column:o}}function K(e){return J(e.source,H(e.source,e.start))}function J(e,t){var n=e.locationOffset.column-1,i=q(n)+e.body,r=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,c=t.column+s,l="".concat(e.name,":").concat(a,":").concat(c,"\n"),u=i.split(/\r\n|[\n\r]/g),p=u[r];if(p.length>120){for(var d=Math.floor(c/80),f=c%80,h=[],E=0;E<p.length;E+=80)h.push(p.slice(E,E+80));return l+W([["".concat(a),h[0]]].concat(h.slice(1,d+1).map(function(e){return["",e]}),[[" ",q(f-1)+"^"],["",h[d+1]]]))}return l+W([["".concat(a-1),u[r-1]],["".concat(a),p],["",q(c-1)+"^"],["".concat(a+1),u[r+1]]])}function W(e){var t=e.filter(function(e){return e[0],void 0!==e[1]}),n=Math.max.apply(Math,t.map(function(e){return e[0].length}));return t.map(function(e){var t,i=e[0],r=e[1];return q(n-(t=i).length)+t+(r?" | "+r:" |")}).join("\n")}function q(e){return Array(e+1).join(" ")}function X(e){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X(e)}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ee(e,t){return!t||"object"!==X(t)&&"function"!=typeof t?te(e):t}function te(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ne(e){var t="function"==typeof Map?new Map:void 0;return ne=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return ie(e,arguments,ae(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),oe(i,e)},ne(e)}function ie(e,t,n){return ie=re()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&oe(r,n.prototype),r},ie.apply(null,arguments)}function re(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function oe(e,t){return oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},oe(e,t)}function ae(e){return ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ae(e)}var se=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oe(e,t)}(a,ne(Error));var e,t,n,i,r,o=(e=a,t=re(),function(){var n,i=ae(e);if(t){var r=ae(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return ee(this,n)});function a(e,t,n,i,r,s,c){var l,u,p,d;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(d=o.call(this,e)).name="GraphQLError",d.originalError=null!=s?s:void 0,d.nodes=ce(Array.isArray(t)?t:t?[t]:void 0);for(var f=[],h=0,E=null!==(m=d.nodes)&&void 0!==m?m:[];h<E.length;h++){var m,N=E[h].loc;null!=N&&f.push(N)}f=ce(f),d.source=null!=n?n:null===(l=f)||void 0===l?void 0:l[0].source,d.positions=null!=i?i:null===(u=f)||void 0===u?void 0:u.map(function(e){return e.start}),d.locations=i&&n?i.map(function(e){return H(n,e)}):null===(p=f)||void 0===p?void 0:p.map(function(e){return H(e.source,e.start)}),d.path=null!=r?r:void 0;var T,O=null==s?void 0:s.extensions;return null==c&&("object"==G(T=O)&&null!==T)?d.extensions=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach(function(t){z(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},O):d.extensions=null!=c?c:{},Object.defineProperties(te(d),{message:{enumerable:!0},locations:{enumerable:null!=d.locations},path:{enumerable:null!=d.path},extensions:{enumerable:null!=d.extensions&&Object.keys(d.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=s&&s.stack?(Object.defineProperty(te(d),"stack",{value:s.stack,writable:!0,configurable:!0}),ee(d)):(Error.captureStackTrace?Error.captureStackTrace(te(d),a):Object.defineProperty(te(d),"stack",{value:Error().stack,writable:!0,configurable:!0}),d)}return n=a,(i=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var n=0,i=e.nodes;n<i.length;n++){var r=i[n];r.loc&&(t+="\n\n"+K(r.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++){var s=a[o];t+="\n\n"+J(e.source,s)}return t}(this)}},{key:j,get:function(){return"Object"}}])&&Z(n.prototype,i),r&&Z(n,r),a}();function ce(e){return void 0===e||0===e.length?void 0:e}function le(e,t,n){return new se("Syntax Error: ".concat(n),void 0,e,[t])}var ue=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});var pe="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function de(e){var t=e.prototype.toJSON;"function"==typeof t||function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}(0),e.prototype.inspect=t,pe&&(e.prototype[pe]=t)}var fe=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();de(fe);var he=function(){function e(e,t,n,i,r,o,a){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();de(he);var Ee=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function me(e){return me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},me(e)}function Ne(e){return Te(e,[])}function Te(e,t){switch(me(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),i=function(e){var t=e[String(pe)];if("function"==typeof t)return t;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==i){var r=i.call(e);if(r!==e)return"string"==typeof r?r:Te(r,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),i=e.length-n,r=[],o=0;o<n;++o)r.push(Te(e[o],t));1===i?r.push("... 1 more item"):i>1&&r.push("... ".concat(i," more items"));return"["+r.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]";var i=n.map(function(n){return n+": "+Te(e[n],t)});return"{ "+i.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function Oe(e,t){if(!Boolean(e))throw new Error(t)}function Ie(e){return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ie(e)}var ye="production"===process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"===Ie(e)&&null!==e){var n,i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){var r=Ne(e);throw new Error("Cannot use ".concat(i,' "').concat(r,'" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.'))}}return!1};function _e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var Ae=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||Oe(0,"Body must be a string. Received: ".concat(Ne(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Oe(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Oe(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,i;return t=e,(n=[{key:j,get:function(){return"Source"}}])&&_e(t.prototype,n),i&&_e(t,i),e}();var De=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function ve(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t,n=!0,i=!0,r=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,i=!0,r=0;break;case 9:case 32:++r;break;default:i&&!n&&(null===o||r<o)&&(o=r),i=!1}return null!==(t=o)&&void 0!==t?t:0}(e);if(0!==n)for(var i=1;i<t.length;i++)t[i]=t[i].slice(n);for(var r=0;r<t.length&&Se(t[r]);)++r;for(var o=t.length;o>r&&Se(t[o-1]);)--o;return t.slice(r,o).join("\n")}function Se(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}var ge=function(){function e(e){var t=new he(Ee.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==Ee.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=Le(this,e)}while(e.kind===Ee.COMMENT);return e},e}();function Me(e){return isNaN(e)?Ee.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function Le(e,t){for(var n=e.source,i=n.body,r=i.length,o=t.end;o<r;){var a=i.charCodeAt(o),s=e.line,c=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===i.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new he(Ee.BANG,o,o+1,s,c,t);case 35:return be(n,o,s,c,t);case 36:return new he(Ee.DOLLAR,o,o+1,s,c,t);case 38:return new he(Ee.AMP,o,o+1,s,c,t);case 40:return new he(Ee.PAREN_L,o,o+1,s,c,t);case 41:return new he(Ee.PAREN_R,o,o+1,s,c,t);case 46:if(46===i.charCodeAt(o+1)&&46===i.charCodeAt(o+2))return new he(Ee.SPREAD,o,o+3,s,c,t);break;case 58:return new he(Ee.COLON,o,o+1,s,c,t);case 61:return new he(Ee.EQUALS,o,o+1,s,c,t);case 64:return new he(Ee.AT,o,o+1,s,c,t);case 91:return new he(Ee.BRACKET_L,o,o+1,s,c,t);case 93:return new he(Ee.BRACKET_R,o,o+1,s,c,t);case 123:return new he(Ee.BRACE_L,o,o+1,s,c,t);case 124:return new he(Ee.PIPE,o,o+1,s,c,t);case 125:return new he(Ee.BRACE_R,o,o+1,s,c,t);case 34:return 34===i.charCodeAt(o+1)&&34===i.charCodeAt(o+2)?Pe(n,o,s,c,t,e):ke(n,o,s,c,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Re(n,o,a,s,c,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return Be(n,o,s,c,t)}throw le(n,o,Ce(a))}var l=e.line,u=1+o-e.lineStart;return new he(Ee.EOF,r,r,l,u,t)}function Ce(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(Me(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(Me(e),".")}function be(e,t,n,i,r){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new he(Ee.COMMENT,t,s,n,i,r,a.slice(t+1,s))}function Re(e,t,n,i,r,o){var a=e.body,s=n,c=t,l=!1;if(45===s&&(s=a.charCodeAt(++c)),48===s){if((s=a.charCodeAt(++c))>=48&&s<=57)throw le(e,c,"Invalid number, unexpected digit after 0: ".concat(Me(s),"."))}else c=xe(e,c,s),s=a.charCodeAt(c);if(46===s&&(l=!0,s=a.charCodeAt(++c),c=xe(e,c,s),s=a.charCodeAt(c)),69!==s&&101!==s||(l=!0,43!==(s=a.charCodeAt(++c))&&45!==s||(s=a.charCodeAt(++c)),c=xe(e,c,s),s=a.charCodeAt(c)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw le(e,c,"Invalid number, expected digit but got: ".concat(Me(s),"."));return new he(l?Ee.FLOAT:Ee.INT,t,c,i,r,o,a.slice(t,c))}function xe(e,t,n){var i=e.body,r=t,o=n;if(o>=48&&o<=57){do{o=i.charCodeAt(++r)}while(o>=48&&o<=57);return r}throw le(e,r,"Invalid number, expected digit but got: ".concat(Me(o),"."))}function ke(e,t,n,i,r){for(var o=e.body,a=t+1,s=a,c=0,l="";a<o.length&&!isNaN(c=o.charCodeAt(a))&&10!==c&&13!==c;){if(34===c)return l+=o.slice(s,a),new he(Ee.STRING,t,a+1,n,i,r,l);if(c<32&&9!==c)throw le(e,a,"Invalid character within String: ".concat(Me(c),"."));if(++a,92===c){switch(l+=o.slice(s,a-1),c=o.charCodeAt(a)){case 34:l+='"';break;case 47:l+="/";break;case 92:l+="\\";break;case 98:l+="\b";break;case 102:l+="\f";break;case 110:l+="\n";break;case 114:l+="\r";break;case 116:l+="\t";break;case 117:var u=Fe(o.charCodeAt(a+1),o.charCodeAt(a+2),o.charCodeAt(a+3),o.charCodeAt(a+4));if(u<0){var p=o.slice(a+1,a+5);throw le(e,a,"Invalid character escape sequence: \\u".concat(p,"."))}l+=String.fromCharCode(u),a+=4;break;default:throw le(e,a,"Invalid character escape sequence: \\".concat(String.fromCharCode(c),"."))}s=++a}}throw le(e,a,"Unterminated string.")}function Pe(e,t,n,i,r,o){for(var a=e.body,s=t+3,c=s,l=0,u="";s<a.length&&!isNaN(l=a.charCodeAt(s));){if(34===l&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return u+=a.slice(c,s),new he(Ee.BLOCK_STRING,t,s+3,n,i,r,ve(u));if(l<32&&9!==l&&10!==l&&13!==l)throw le(e,s,"Invalid character within String: ".concat(Me(l),"."));10===l?(++s,++o.line,o.lineStart=s):13===l?(10===a.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===l&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(u+=a.slice(c,s)+'"""',c=s+=4):++s}throw le(e,s,"Unterminated string.")}function Fe(e,t,n,i){return we(e)<<12|we(t)<<8|we(n)<<4|we(i)}function we(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Be(e,t,n,i,r){for(var o=e.body,a=o.length,s=t+1,c=0;s!==a&&!isNaN(c=o.charCodeAt(s))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++s;return new he(Ee.NAME,t,s,n,i,r,o.slice(t,s))}var $e=function(){function e(e,t){var n=function(e){return ye(e,Ae)}(e)?e:new Ae(e);this._lexer=new ge(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(Ee.NAME);return{kind:ue.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:ue.DOCUMENT,definitions:this.many(Ee.SOF,this.parseDefinition,Ee.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(Ee.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(Ee.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(Ee.BRACE_L))return{kind:ue.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(Ee.NAME)&&(t=this.parseName()),{kind:ue.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(Ee.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(Ee.PAREN_L,this.parseVariableDefinition,Ee.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:ue.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Ee.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Ee.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(Ee.DOLLAR),{kind:ue.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:ue.SELECTION_SET,selections:this.many(Ee.BRACE_L,this.parseSelection,Ee.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(Ee.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,i=this.parseName();return this.expectOptionalToken(Ee.COLON)?(e=i,t=this.parseName()):t=i,{kind:ue.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Ee.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(Ee.PAREN_L,t,Ee.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(Ee.COLON),{kind:ue.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:ue.ARGUMENT,name:this.parseName(),value:(this.expectToken(Ee.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(Ee.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(Ee.NAME)?{kind:ue.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:ue.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:ue.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:ue.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case Ee.BRACKET_L:return this.parseList(e);case Ee.BRACE_L:return this.parseObject(e);case Ee.INT:return this._lexer.advance(),{kind:ue.INT,value:t.value,loc:this.loc(t)};case Ee.FLOAT:return this._lexer.advance(),{kind:ue.FLOAT,value:t.value,loc:this.loc(t)};case Ee.STRING:case Ee.BLOCK_STRING:return this.parseStringLiteral();case Ee.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:ue.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:ue.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:ue.NULL,loc:this.loc(t)};default:return{kind:ue.ENUM,value:t.value,loc:this.loc(t)}}case Ee.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:ue.STRING,value:e.value,block:e.kind===Ee.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:ue.LIST,values:this.any(Ee.BRACKET_L,function(){return t.parseValueLiteral(e)},Ee.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:ue.OBJECT,fields:this.any(Ee.BRACE_L,function(){return t.parseObjectField(e)},Ee.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(Ee.COLON),{kind:ue.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(Ee.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(Ee.AT),{kind:ue.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(Ee.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(Ee.BRACKET_R),e={kind:ue.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(Ee.BANG)?{kind:ue.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:ue.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===Ee.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(Ee.STRING)||this.peek(Ee.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),i=this.many(Ee.BRACE_L,this.parseOperationTypeDefinition,Ee.BRACE_R);return{kind:ue.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(Ee.COLON);var n=this.parseNamedType();return{kind:ue.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),i=this.parseDirectives(!0);return{kind:ue.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:ue.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(Ee.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(Ee.AMP)||this.peek(Ee.NAME));return t}return this.delimitedMany(Ee.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(Ee.BRACE_L)&&this._lexer.lookahead().kind===Ee.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(Ee.BRACE_L,this.parseFieldDefinition,Ee.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(Ee.COLON);var r=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:ue.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(Ee.PAREN_L,this.parseInputValueDef,Ee.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(Ee.COLON);var i,r=this.parseTypeReference();this.expectOptionalToken(Ee.EQUALS)&&(i=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:ue.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:ue.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseUnionMemberTypes();return{kind:ue.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(Ee.EQUALS)?this.delimitedMany(Ee.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();return{kind:ue.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(Ee.BRACE_L,this.parseEnumValueDefinition,Ee.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseDirectives(!0);return{kind:ue.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();return{kind:ue.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(Ee.BRACE_L,this.parseInputValueDef,Ee.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===Ee.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(Ee.BRACE_L,this.parseOperationTypeDefinition,Ee.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:ue.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:ue.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:ue.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:ue.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:ue.UNION_TYPE_EXTENSION,name:t,directives:n,types:i,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:ue.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:ue.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Ee.AT);var n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:ue.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(Ee.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==De[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new fe(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw le(this._lexer.source,t.start,"Expected ".concat(Ve(e),", found ").concat(Ue(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==Ee.NAME||t.value!==e)throw le(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(Ue(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===Ee.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return le(this._lexer.source,t.start,"Unexpected ".concat(Ue(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var i=[];!this.expectOptionalToken(n);)i.push(t.call(this));return i},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i}return[]},t.many=function(e,t,n){this.expectToken(e);var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function Ue(e){var t=e.value;return Ve(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function Ve(e){return function(e){return e===Ee.BANG||e===Ee.DOLLAR||e===Ee.AMP||e===Ee.PAREN_L||e===Ee.PAREN_R||e===Ee.SPREAD||e===Ee.COLON||e===Ee.EQUALS||e===Ee.AT||e===Ee.BRACKET_L||e===Ee.BRACKET_R||e===Ee.BRACE_L||e===Ee.PIPE||e===Ee.BRACE_R}(e)?'"'.concat(e,'"'):e}var Ye=new Map,Ge=new Map,je=!0,He=!1;function Ke(e){return e.replace(/[\s,]+/g," ").trim()}function Je(e){var t=new Set,n=[];return e.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var i=e.name.value,r=Ke((a=e.loc).source.body.substring(a.start,a.end)),o=Ge.get(i);o&&!o.has(r)?je&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||Ge.set(i,o=new Set),o.add(r),t.has(r)||(t.add(r),n.push(e))}else n.push(e);var a}),s(s({},e),{definitions:n})}function We(e){var t=Ke(e);if(!Ye.has(t)){var n=function(e,t){return new $e(e,t).parseDocument()}(e,{experimentalFragmentVariables:He,allowLegacyFragmentVariables:He});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Ye.set(t,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(n){var i=e[n];i&&"object"==typeof i&&t.add(i)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(Je(n)))}return Ye.get(t)}function qe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var i=e[0];return t.forEach(function(t,n){t&&"Document"===t.kind?i+=t.loc.source.body:i+=t,i+=e[n+1]}),We(i)}var Xe,Qe=qe,ze=function(){Ye.clear(),Ge.clear()},Ze=function(){je=!1},et=function(){He=!0},tt=function(){He=!1};(Xe=qe||(qe={})).gql=Qe,Xe.resetCaches=ze,Xe.disableFragmentWarnings=Ze,Xe.enableExperimentalFragmentVariables=et,Xe.disableExperimentalFragmentVariables=tt,qe.default=qe;const nt=qe`
15
+ ***************************************************************************** */var i,r,o,a,s=function(){return s=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},s.apply(this,arguments)};function c(e,t,n,i){return new(n||(n=Promise))(function(r,o){function a(e){try{c(i.next(e))}catch(e){o(e)}}function s(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((i=i.apply(e,t||[])).next())})}!function(e){e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE"}(i||(i={})),function(e){e.DRAFT="DRAFT",e.NOT_ENABLED="NOT_ENABLED",e.ENABLED="ENABLED",e.DISABLED="DISABLED"}(r||(r={})),function(e){e.STORE="STORE",e.TRANSIENT="TRANSIENT",e.ABSTRACT="ABSTRACT",e.PROXY="PROXY",e.CLIENT="CLIENT"}(o||(o={})),function(e){e.String="STRING",e.Text="TEXT",e.HTML="HTML",e.Html="HTML",e.Phone="PHONE",e.Email="EMAIL",e.Integer="INTEGER",e.Long="LONG",e.Float="FLOAT",e.Currency="MONEY",e.DateTime="DATETIME",e.Date="DATE",e.Time="TIME",e.Year="YEAR",e.Boolean="BOOLEAN",e.Enum="ENUM",e.Map="MAP",e.Related="RELATED",e.OneToOne="O2O",e.OneToMany="O2M",e.ManyToOne="M2O",e.ManyToMany="M2M",e.OBJ="OBJ",e.ID="ID",e.Null="NULL",e.UID="UID",e.MultiEnum="MULTI_ENUM"}(a||(a={}));const l={ID:"ID",NULL:"空",INTEGER:"整数",LONG:"长整型",FLOAT:"浮点数",BOOLEAN:"布尔型",STRING:"文本",TEXT:"多行文本",DATETIME:"时间日期",DATE:"日期",TIME:"时间",YEAR:"年份",HTML:"富文本",MONEY:"金额",ENUM:"数据字典",MULTI_ENUM:"多枚举",O2O:"一对一",O2M:"一对多",M2O:"多对一",M2M:"多对多",RELATED:"引用类型",MAP:"键值对",UID:"用户ID",PHONE:"手机",EMAIL:"邮箱"},u=[{label:l.STRING,value:a.String},{label:l.TEXT,value:a.Text},{label:l.HTML,value:a.HTML},{label:l.PHONE,value:a.Phone},{label:l.EMAIL,value:a.Email},{label:l.INTEGER,value:a.Integer},{label:l.LONG,value:a.Long},{label:l.FLOAT,value:a.Float},{label:l.MONEY,value:a.Currency},{label:l.DATETIME,value:a.DateTime},{label:l.DATE,value:a.Date},{label:l.TIME,value:a.Time},{label:l.YEAR,value:a.Year},{label:l.BOOLEAN,value:a.Boolean},{label:l.ENUM,value:a.Enum},{label:l.MAP,value:a.Map},{label:l.O2M,value:a.OneToMany},{label:l.M2O,value:a.ManyToOne},{label:l.M2M,value:a.ManyToMany}];var p,d,f,h,E,m,N,T,O,I,y,_,A,D;function v(e){return[a.OneToOne,a.OneToMany,a.ManyToOne,a.ManyToMany].includes(e)}function S(e){return[a.OneToOne,a.ManyToOne].includes(e)}function g(e){return[a.ManyToMany,a.OneToMany].includes(e)}function M(e){return e===a.Related}!function(e){e.NON="NON",e.JSON="JSON",e.COMMA="COMMA",e.BIT="BIT",e.DOT="DOT"}(p||(p={})),function(e){e.ACTIVE="ACTIVE",e.INACTIVE="INACTIVE"}(d||(d={})),function(e){e.GRAPHQL="graphql",e.RESTFUL="restful"}(f||(f={})),function(e){e.PRIMITIVE="primitive",e.OBJECT="object",e.LIST="list"}(h||(h={})),function(e){e.CLIENT="client",e.SERVER="server"}(E||(E={})),function(e){e.CLIENT="client",e.SERVER="server",e.BOTH="both"}(m||(m={})),function(e){e.DOMAIN="domain",e.OBJECT="object",e.LIST="list"}(N||(N={})),function(e){e.Server="SERVER",e.View="VIEW",e.URL="URL",e.Client="CLIENT",e.Model="model",e.Composition="COMPOSITION",e.Custom="custom"}(T||(T={})),function(e){e.Single="SINGLE",e.Batch="BATCH",e.SingleAndBatch="SINGLE_AND_BATCH",e.ContextFree="CONTEXT_FREE"}(O||(O={})),function(e){e.JAVA="JAVA",e.JS="JS",e.GROOVY="GROOVY"}(I||(I={})),function(e){e.FindOne="FindOne",e.FindList="FindList",e.FindAll="FindAll",e.InsertOne="InsertOne",e.UpdateOne="UpdateOne",e.DeleteOne="DeleteOne",e.DeleteOneInline="DeleteOneInline",e.UpdateList="UpdateList",e.DeleteList="DeleteList"}(y||(y={})),function(e){e.ContextAction="contextFreeAction",e.SingleAction="singleAction",e.FooterAction="footer"}(_||(_={})),function(e){e.ValidateForm="validateForm",e.UpdateContext="updateContext",e.ShowDialog="showDialog",e.SubmitDialog="submitDialog",e.CloseDialog="closeDialog",e.InsertEmptyItemToList="insertEmptyItemToList",e.InsertEmptyItemToBefore="insertEmptyItemToBefore",e.InsertEmptyItemToAfter="insertEmptyItemToAfter",e.DeleteListItem="deleteListItem",e.ReloadData="reloadData",e.CopyText="copyText",e.Confirm="confirm",e.StartCreate="startCreate",e.StartInlineEdit="startInlineEdit",e.SubmitInlineEdit="submitInlineEdit",e.CancelInlineEdit="cancelInlineEdit",e.HistoryBack="historyBack",e.O2MCreateForm="O2MCreateForm",e.O2MEditForm="O2MEditForm",e.O2MDelete="O2MDelete",e.O2MCreateFormConfirm="O2MCreateFormConfirm",e.O2MEditFormConfirm="O2MEditFormConfirm",e.M2MCreateTable="M2MCreateTable",e.M2MDelete="M2MDelete",e.M2MCreateTableConfirm="M2MCreateTableConfirm",e.O2MCloseForm="O2MCloseForm"}(A||(A={})),function(e){e.create="create",e.update="update",e.delete="delete",e.redirectDetailPage="redirectDetailPage",e.redirectCreatePage="redirectCreatePage",e.redirectUpdatePage="redirectUpdatePage",e.$$internal_AddOne="$$internal_AddOne",e.$$internal_EditOne="$$internal_EditOne",e.$$internal_CopyOne="$$internal_CopyOne",e.$$internal_DeleteOne="$$internal_DeleteOne",e.$$internal_ListInsertOneAndBackToList="$$internal_ListInsertOneAndBackToList",e.$$internal_ListUpdateOneAndBackToList="$$internal_ListUpdateOneAndBackToList",e.$$internal_GotoListImportDialog="$$internal_GotoListImportDialog",e.$$internal_GotoListExportDialog="$$internal_GotoListExportDialog",e.$$internal_GotoListTableRouter="$$internal_GotoListTableRouter",e.$$internal_DialogCancel="$$internal_DialogCancel",e.$$internal_GotoO2MCreateDialog="$$internal_GotoO2MCreateDialog",e.$$internal_GotoO2MEditDialog="$$internal_GotoO2MEditDialog",e.$$internal_O2MUpdateOneAndSubmitDialog="$$internal_O2MUpdateOneAndSubmitDialog",e.$$internal_O2MDeleteOne="$$internal_O2MDeleteOne",e.$$internal_DialogSubmit="$$internal_DialogSubmit",e.$$internal_O2MInsertOneAndSubmitDialog="$$internal_O2MInsertOneAndSubmitDialog",e.$$internal_ListUpdateAndCloseDialogReloadOpenerAction="$$internal_ListUpdateAndCloseDialogReloadOpenerAction",e.$$internal_ListInsertOneAndCloseDialog="$$internal_ListInsertOneAndCloseDialog",e.$$internal_GotoM2MListDialog="$$internal_GotoM2MListDialog",e.$$internal_ReloadData="$$internal_ReloadData",e.$$internal_ValidateForm="$$internal_ValidateForm",e.$$internal_SaveDraft="$$internal_SaveDraft",e.$$internal_Download="$$internal_Download",e.$$internal_BatchUpdate="$$internal_BatchUpdate",e.$$internal_DownloadImportWorkbook="$$internal_DownloadImportWorkbook",e.$$internal_ImportWorkbook="$$internal_ImportWorkbook",e.$$internal_ExportWorkbook="$$internal_ExportWorkbook",e.$$internal_PrintPdfDocument="$$internal_PrintPdfDocument"}(D||(D={}));const L=[D.create,D.update,D.delete,D.redirectDetailPage,D.redirectCreatePage,D.redirectUpdatePage];var C,b,R,x,k,P,F,w,B,$;!function(e){e.Sequential="sequential",e.Parallel="parallel",e.ForkJoin="fork-join",e.Race="race"}(C||(C={})),function(e){e.Client="client",e.Server="server",e.Both="both"}(b||(b={})),function(e){e.MASK="MASK",e.BLOCK="BLOCK",e.HEADER="HEADER",e.CONTAINER="CONTAINER",e.SIDEBAR="SIDEBAR",e.CONTENT="CONTENT",e.VIEW="VIEW",e.FIELD="FIELD",e.GROUP="GROUP",e.GRID="GRID",e.ACTION="ACTION",e.API="API",e.CONTEXT="CONTEXT",e.REQUEST="REQUEST",e.RESPONSE="RESPONSE",e.CLEAR="CLEAR",e.FILTER="FILTER",e.WIDGET="WIDGET",e.PROP="PROP",e.VALIDATION="VALIDATION"}(R||(R={})),function(e){e.SIGN_UP_PHONE="SIGN_UP_PHONE",e.SIGN_UP_EMAIL="SIGN_UP_EMAIL",e.PHONE_MODIFY_PASSWORD_BY_PHONE_SUBMIT="MODIFY_PASSWORD_BY_PHONE",e.PHONE_MODIFY_PASSWORD_BY_PHONE_SEND_CODE="MODIFY_PASSWORD_BYPHONE_SEND_CODE",e.EMAIL_MODIFY_PASSWORD_BY_EMAIL_SUBMIT="MODIFY_PASSWORD_BY_EMAIL",e.EMAIL_MODIFY_PASSWORD_BY_EMAIL_SEND_CODE="MODIFY_PASSWORD_SEND_RESET_EMAIL",e.PHONE_MODIFY_PHONE_SUBMIT="MODIFY_PHONE",e.PHONE_MODIFY_PHONE_OLD_PHONE_CODE="MODIFY_PHONE_OLD_PHONE_CODE",e.EMAIL_MODIFY_PHONE_SEND_EMAIL_CODE="MODIFY_PHONE_SEND_EMAIL",e.PHONE_MODIFY_PHONE_NEW_PHONE_CODE="MODIFY_PHONE_NEW_PHONE_CODE",e.EMAIL_MODIFY_EMAIL_SUBMIT="MODIFY_EMAIL",e.EMAIL_MODIFY_EMAIL_SEND_OLD_EMAIL="MODIFY_EMAIL_SEND_OLD_EMAIL",e.PHONE_MODIFY_EMAIL_SEND_PHONE_CODE="MODIFY_EMAIL_SEND_PHONE_CODE",e.EMAIL_MODIFY_EMAIL_SEND_NEW_EMAIL="MODIFY_EMAIL_SEND_NEW_EMAIL",e.PHONE_ADD_CORP_SEND_PHONE_CODE="ADD_CORP_SEND_PHONE_CODE",e.EMAIL_ADD_CORP_SEND_EMAIL_CODE="ADD_CORP_SEND_EMAIL_CODE",e.PHONE_LOGIN_BY_PHONE_CODE="LOGIN_BY_PHONE_CODE",e.PHONE_SEND_LOGIN_BY_PHONE_CODE="SEND_LOGIN_BY_PHONE_CODE",e.EMAIL_LOGIN_BY_EMAIL_CODE="LOGIN_BY_EMAIL_CODE",e.EMAIL_SEND_LOGIN_BY_EMAIL_CODE="SEND_LOGIN_BY_EMAIL_CODE"}(x||(x={})),function(e){e.List="LIST",e.Object="OBJECT"}(k||(k={})),function(e){e.PC="PC",e.MOBILE="MOBILE"}(P||(P={})),function(e){e.Table="TABLE",e.Form="FORM",e.Detail="DETAIL",e.Search="SEARCH",e.Gallery="GALLERY",e.Tree="TREE",e.Multiple="MULTIPLE",e.Custom="CUSTOM"}(F||(F={})),function(e){e.Create="CREATE",e.Editor="EDITOR",e.Lookup="LOOKUP"}(w||(w={})),function(e){e.Router="ROUTER",e.Dialog="DIALOG",e.Drawer="DRAWER",e.Inner="INNER",e.OpenWindow="OPEN_WINDOW",e.Frame="iframe"}(B||(B={})),function(e){e.SYSTEM="SYSTEM",e.BASE="BASE",e.MANUAL="MANUAL",e.UI="UI",e.RELATION="RELATION",e.ABSTRACT_INHERITED="ABSTRACT_INHERITED",e.TRANSIENT_INHERITED="TRANSIENT_INHERITED",e.EXTEND_INHERITED="EXTEND_INHERITED",e.MULTI_TABLE_INHERITED="MULTI_TABLE_INHERITED",e.PROXY_INHERITED="PROXY_INHERITED"}($||($={}));const U={BASE:"base",GROUPING:"grouping",COMMON:"common",USER:"user",AUTH:"auth",MESSAGE:"message",RESOURCE:"resource",FILE:"file",EIP:"eip",DESIGNER_COMMON:"designer_common"},V={BASE:"base",GROUPING:"grouping",COMMON:"common",USER:"user",AUTH:"auth",MESSAGE:"message",RESOURCE:"resource",FILE:"file",EIP:"eip",DESIGNER_COMMON:"designerCommon"},G="id =notnull= true";function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}var j="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function H(e,t){for(var n,i=/\r\n|[\n\r]/g,r=1,o=t+1;(n=i.exec(e.body))&&n.index<t;)r+=1,o=t+1-(n.index+n[0].length);return{line:r,column:o}}function K(e){return J(e.source,H(e.source,e.start))}function J(e,t){var n=e.locationOffset.column-1,i=q(n)+e.body,r=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,c=t.column+s,l="".concat(e.name,":").concat(a,":").concat(c,"\n"),u=i.split(/\r\n|[\n\r]/g),p=u[r];if(p.length>120){for(var d=Math.floor(c/80),f=c%80,h=[],E=0;E<p.length;E+=80)h.push(p.slice(E,E+80));return l+W([["".concat(a),h[0]]].concat(h.slice(1,d+1).map(function(e){return["",e]}),[[" ",q(f-1)+"^"],["",h[d+1]]]))}return l+W([["".concat(a-1),u[r-1]],["".concat(a),p],["",q(c-1)+"^"],["".concat(a+1),u[r+1]]])}function W(e){var t=e.filter(function(e){return e[0],void 0!==e[1]}),n=Math.max.apply(Math,t.map(function(e){return e[0].length}));return t.map(function(e){var t,i=e[0],r=e[1];return q(n-(t=i).length)+t+(r?" | "+r:" |")}).join("\n")}function q(e){return Array(e+1).join(" ")}function X(e){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X(e)}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ee(e,t){return!t||"object"!==X(t)&&"function"!=typeof t?te(e):t}function te(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ne(e){var t="function"==typeof Map?new Map:void 0;return ne=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return ie(e,arguments,ae(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),oe(i,e)},ne(e)}function ie(e,t,n){return ie=re()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&oe(r,n.prototype),r},ie.apply(null,arguments)}function re(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function oe(e,t){return oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},oe(e,t)}function ae(e){return ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ae(e)}var se=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oe(e,t)}(a,ne(Error));var e,t,n,i,r,o=(e=a,t=re(),function(){var n,i=ae(e);if(t){var r=ae(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return ee(this,n)});function a(e,t,n,i,r,s,c){var l,u,p,d;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(d=o.call(this,e)).name="GraphQLError",d.originalError=null!=s?s:void 0,d.nodes=ce(Array.isArray(t)?t:t?[t]:void 0);for(var f=[],h=0,E=null!==(m=d.nodes)&&void 0!==m?m:[];h<E.length;h++){var m,N=E[h].loc;null!=N&&f.push(N)}f=ce(f),d.source=null!=n?n:null===(l=f)||void 0===l?void 0:l[0].source,d.positions=null!=i?i:null===(u=f)||void 0===u?void 0:u.map(function(e){return e.start}),d.locations=i&&n?i.map(function(e){return H(n,e)}):null===(p=f)||void 0===p?void 0:p.map(function(e){return H(e.source,e.start)}),d.path=null!=r?r:void 0;var T,O=null==s?void 0:s.extensions;return null==c&&("object"==Y(T=O)&&null!==T)?d.extensions=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach(function(t){z(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},O):d.extensions=null!=c?c:{},Object.defineProperties(te(d),{message:{enumerable:!0},locations:{enumerable:null!=d.locations},path:{enumerable:null!=d.path},extensions:{enumerable:null!=d.extensions&&Object.keys(d.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=s&&s.stack?(Object.defineProperty(te(d),"stack",{value:s.stack,writable:!0,configurable:!0}),ee(d)):(Error.captureStackTrace?Error.captureStackTrace(te(d),a):Object.defineProperty(te(d),"stack",{value:Error().stack,writable:!0,configurable:!0}),d)}return n=a,(i=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var n=0,i=e.nodes;n<i.length;n++){var r=i[n];r.loc&&(t+="\n\n"+K(r.loc))}else if(e.source&&e.locations)for(var o=0,a=e.locations;o<a.length;o++){var s=a[o];t+="\n\n"+J(e.source,s)}return t}(this)}},{key:j,get:function(){return"Object"}}])&&Z(n.prototype,i),r&&Z(n,r),a}();function ce(e){return void 0===e||0===e.length?void 0:e}function le(e,t,n){return new se("Syntax Error: ".concat(n),void 0,e,[t])}var ue=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});var pe="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function de(e){var t=e.prototype.toJSON;"function"==typeof t||function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}(0),e.prototype.inspect=t,pe&&(e.prototype[pe]=t)}var fe=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();de(fe);var he=function(){function e(e,t,n,i,r,o,a){this.kind=e,this.start=t,this.end=n,this.line=i,this.column=r,this.value=a,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();de(he);var Ee=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function me(e){return me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},me(e)}function Ne(e){return Te(e,[])}function Te(e,t){switch(me(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),i=function(e){var t=e[String(pe)];if("function"==typeof t)return t;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==i){var r=i.call(e);if(r!==e)return"string"==typeof r?r:Te(r,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),i=e.length-n,r=[],o=0;o<n;++o)r.push(Te(e[o],t));1===i?r.push("... 1 more item"):i>1&&r.push("... ".concat(i," more items"));return"["+r.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]";var i=n.map(function(n){return n+": "+Te(e[n],t)});return"{ "+i.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}function Oe(e,t){if(!Boolean(e))throw new Error(t)}function Ie(e){return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ie(e)}var ye="production"===process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"===Ie(e)&&null!==e){var n,i=t.prototype[Symbol.toStringTag];if(i===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){var r=Ne(e);throw new Error("Cannot use ".concat(i,' "').concat(r,'" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.'))}}return!1};function _e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}var Ae=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||Oe(0,"Body must be a string. Received: ".concat(Ne(e),".")),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||Oe(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Oe(0,"column in locationOffset is 1-indexed and must be positive.")}var t,n,i;return t=e,(n=[{key:j,get:function(){return"Source"}}])&&_e(t.prototype,n),i&&_e(t,i),e}();var De=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function ve(e){var t=e.split(/\r\n|[\n\r]/g),n=function(e){for(var t,n=!0,i=!0,r=0,o=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,i=!0,r=0;break;case 9:case 32:++r;break;default:i&&!n&&(null===o||r<o)&&(o=r),i=!1}return null!==(t=o)&&void 0!==t?t:0}(e);if(0!==n)for(var i=1;i<t.length;i++)t[i]=t[i].slice(n);for(var r=0;r<t.length&&Se(t[r]);)++r;for(var o=t.length;o>r&&Se(t[o-1]);)--o;return t.slice(r,o).join("\n")}function Se(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}var ge=function(){function e(e){var t=new he(Ee.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==Ee.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=Le(this,e)}while(e.kind===Ee.COMMENT);return e},e}();function Me(e){return isNaN(e)?Ee.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function Le(e,t){for(var n=e.source,i=n.body,r=i.length,o=t.end;o<r;){var a=i.charCodeAt(o),s=e.line,c=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===i.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new he(Ee.BANG,o,o+1,s,c,t);case 35:return be(n,o,s,c,t);case 36:return new he(Ee.DOLLAR,o,o+1,s,c,t);case 38:return new he(Ee.AMP,o,o+1,s,c,t);case 40:return new he(Ee.PAREN_L,o,o+1,s,c,t);case 41:return new he(Ee.PAREN_R,o,o+1,s,c,t);case 46:if(46===i.charCodeAt(o+1)&&46===i.charCodeAt(o+2))return new he(Ee.SPREAD,o,o+3,s,c,t);break;case 58:return new he(Ee.COLON,o,o+1,s,c,t);case 61:return new he(Ee.EQUALS,o,o+1,s,c,t);case 64:return new he(Ee.AT,o,o+1,s,c,t);case 91:return new he(Ee.BRACKET_L,o,o+1,s,c,t);case 93:return new he(Ee.BRACKET_R,o,o+1,s,c,t);case 123:return new he(Ee.BRACE_L,o,o+1,s,c,t);case 124:return new he(Ee.PIPE,o,o+1,s,c,t);case 125:return new he(Ee.BRACE_R,o,o+1,s,c,t);case 34:return 34===i.charCodeAt(o+1)&&34===i.charCodeAt(o+2)?Pe(n,o,s,c,t,e):ke(n,o,s,c,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Re(n,o,a,s,c,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return Be(n,o,s,c,t)}throw le(n,o,Ce(a))}var l=e.line,u=1+o-e.lineStart;return new he(Ee.EOF,r,r,l,u,t)}function Ce(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(Me(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(Me(e),".")}function be(e,t,n,i,r){var o,a=e.body,s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new he(Ee.COMMENT,t,s,n,i,r,a.slice(t+1,s))}function Re(e,t,n,i,r,o){var a=e.body,s=n,c=t,l=!1;if(45===s&&(s=a.charCodeAt(++c)),48===s){if((s=a.charCodeAt(++c))>=48&&s<=57)throw le(e,c,"Invalid number, unexpected digit after 0: ".concat(Me(s),"."))}else c=xe(e,c,s),s=a.charCodeAt(c);if(46===s&&(l=!0,s=a.charCodeAt(++c),c=xe(e,c,s),s=a.charCodeAt(c)),69!==s&&101!==s||(l=!0,43!==(s=a.charCodeAt(++c))&&45!==s||(s=a.charCodeAt(++c)),c=xe(e,c,s),s=a.charCodeAt(c)),46===s||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(s))throw le(e,c,"Invalid number, expected digit but got: ".concat(Me(s),"."));return new he(l?Ee.FLOAT:Ee.INT,t,c,i,r,o,a.slice(t,c))}function xe(e,t,n){var i=e.body,r=t,o=n;if(o>=48&&o<=57){do{o=i.charCodeAt(++r)}while(o>=48&&o<=57);return r}throw le(e,r,"Invalid number, expected digit but got: ".concat(Me(o),"."))}function ke(e,t,n,i,r){for(var o=e.body,a=t+1,s=a,c=0,l="";a<o.length&&!isNaN(c=o.charCodeAt(a))&&10!==c&&13!==c;){if(34===c)return l+=o.slice(s,a),new he(Ee.STRING,t,a+1,n,i,r,l);if(c<32&&9!==c)throw le(e,a,"Invalid character within String: ".concat(Me(c),"."));if(++a,92===c){switch(l+=o.slice(s,a-1),c=o.charCodeAt(a)){case 34:l+='"';break;case 47:l+="/";break;case 92:l+="\\";break;case 98:l+="\b";break;case 102:l+="\f";break;case 110:l+="\n";break;case 114:l+="\r";break;case 116:l+="\t";break;case 117:var u=Fe(o.charCodeAt(a+1),o.charCodeAt(a+2),o.charCodeAt(a+3),o.charCodeAt(a+4));if(u<0){var p=o.slice(a+1,a+5);throw le(e,a,"Invalid character escape sequence: \\u".concat(p,"."))}l+=String.fromCharCode(u),a+=4;break;default:throw le(e,a,"Invalid character escape sequence: \\".concat(String.fromCharCode(c),"."))}s=++a}}throw le(e,a,"Unterminated string.")}function Pe(e,t,n,i,r,o){for(var a=e.body,s=t+3,c=s,l=0,u="";s<a.length&&!isNaN(l=a.charCodeAt(s));){if(34===l&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2))return u+=a.slice(c,s),new he(Ee.BLOCK_STRING,t,s+3,n,i,r,ve(u));if(l<32&&9!==l&&10!==l&&13!==l)throw le(e,s,"Invalid character within String: ".concat(Me(l),"."));10===l?(++s,++o.line,o.lineStart=s):13===l?(10===a.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===l&&34===a.charCodeAt(s+1)&&34===a.charCodeAt(s+2)&&34===a.charCodeAt(s+3)?(u+=a.slice(c,s)+'"""',c=s+=4):++s}throw le(e,s,"Unterminated string.")}function Fe(e,t,n,i){return we(e)<<12|we(t)<<8|we(n)<<4|we(i)}function we(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Be(e,t,n,i,r){for(var o=e.body,a=o.length,s=t+1,c=0;s!==a&&!isNaN(c=o.charCodeAt(s))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++s;return new he(Ee.NAME,t,s,n,i,r,o.slice(t,s))}var $e=function(){function e(e,t){var n=function(e){return ye(e,Ae)}(e)?e:new Ae(e);this._lexer=new ge(n),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(Ee.NAME);return{kind:ue.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:ue.DOCUMENT,definitions:this.many(Ee.SOF,this.parseDefinition,Ee.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(Ee.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(Ee.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(Ee.BRACE_L))return{kind:ue.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,n=this.parseOperationType();return this.peek(Ee.NAME)&&(t=this.parseName()),{kind:ue.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(Ee.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(Ee.PAREN_L,this.parseVariableDefinition,Ee.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:ue.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Ee.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Ee.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(Ee.DOLLAR),{kind:ue.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:ue.SELECTION_SET,selections:this.many(Ee.BRACE_L,this.parseSelection,Ee.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(Ee.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,n=this._lexer.token,i=this.parseName();return this.expectOptionalToken(Ee.COLON)?(e=i,t=this.parseName()):t=i,{kind:ue.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Ee.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(n)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(Ee.PAREN_L,t,Ee.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(Ee.COLON),{kind:ue.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:ue.ARGUMENT,name:this.parseName(),value:(this.expectToken(Ee.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(Ee.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(Ee.NAME)?{kind:ue.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:ue.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:ue.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:ue.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case Ee.BRACKET_L:return this.parseList(e);case Ee.BRACE_L:return this.parseObject(e);case Ee.INT:return this._lexer.advance(),{kind:ue.INT,value:t.value,loc:this.loc(t)};case Ee.FLOAT:return this._lexer.advance(),{kind:ue.FLOAT,value:t.value,loc:this.loc(t)};case Ee.STRING:case Ee.BLOCK_STRING:return this.parseStringLiteral();case Ee.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:ue.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:ue.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:ue.NULL,loc:this.loc(t)};default:return{kind:ue.ENUM,value:t.value,loc:this.loc(t)}}case Ee.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:ue.STRING,value:e.value,block:e.kind===Ee.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,n=this._lexer.token;return{kind:ue.LIST,values:this.any(Ee.BRACKET_L,function(){return t.parseValueLiteral(e)},Ee.BRACKET_R),loc:this.loc(n)}},t.parseObject=function(e){var t=this,n=this._lexer.token;return{kind:ue.OBJECT,fields:this.any(Ee.BRACE_L,function(){return t.parseObjectField(e)},Ee.BRACE_R),loc:this.loc(n)}},t.parseObjectField=function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(Ee.COLON),{kind:ue.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(Ee.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(Ee.AT),{kind:ue.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(Ee.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(Ee.BRACKET_R),e={kind:ue.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(Ee.BANG)?{kind:ue.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:ue.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===Ee.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(Ee.STRING)||this.peek(Ee.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseDirectives(!0),i=this.many(Ee.BRACE_L,this.parseOperationTypeDefinition,Ee.BRACE_R);return{kind:ue.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:i,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(Ee.COLON);var n=this.parseNamedType();return{kind:ue.OPERATION_TYPE_DEFINITION,operation:t,type:n,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),i=this.parseDirectives(!0);return{kind:ue.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:i,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:ue.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(Ee.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(Ee.AMP)||this.peek(Ee.NAME));return t}return this.delimitedMany(Ee.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(Ee.BRACE_L)&&this._lexer.lookahead().kind===Ee.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(Ee.BRACE_L,this.parseFieldDefinition,Ee.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseArgumentDefs();this.expectToken(Ee.COLON);var r=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:ue.FIELD_DEFINITION,description:t,name:n,arguments:i,type:r,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(Ee.PAREN_L,this.parseInputValueDef,Ee.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(Ee.COLON);var i,r=this.parseTypeReference();this.expectOptionalToken(Ee.EQUALS)&&(i=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:ue.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:ue.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:i,directives:r,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseUnionMemberTypes();return{kind:ue.UNION_TYPE_DEFINITION,description:t,name:n,directives:i,types:r,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(Ee.EQUALS)?this.delimitedMany(Ee.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();return{kind:ue.ENUM_TYPE_DEFINITION,description:t,name:n,directives:i,values:r,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(Ee.BRACE_L,this.parseEnumValueDefinition,Ee.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),i=this.parseDirectives(!0);return{kind:ue.ENUM_VALUE_DEFINITION,description:t,name:n,directives:i,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),i=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();return{kind:ue.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:i,fields:r,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(Ee.BRACE_L,this.parseInputValueDef,Ee.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===Ee.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),n=this.optionalMany(Ee.BRACE_L,this.parseOperationTypeDefinition,Ee.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return{kind:ue.SCHEMA_EXTENSION,directives:t,operationTypes:n,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseDirectives(!0);if(0===n.length)throw this.unexpected();return{kind:ue.SCALAR_TYPE_EXTENSION,name:t,directives:n,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:ue.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),r=this.parseFieldsDefinition();if(0===n.length&&0===i.length&&0===r.length)throw this.unexpected();return{kind:ue.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:i,fields:r,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:ue.UNION_TYPE_EXTENSION,name:t,directives:n,types:i,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:ue.ENUM_TYPE_EXTENSION,name:t,directives:n,values:i,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();if(0===n.length&&0===i.length)throw this.unexpected();return{kind:ue.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:i,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Ee.AT);var n=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:ue.DIRECTIVE_DEFINITION,description:t,name:n,arguments:i,repeatable:r,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(Ee.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==De[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new fe(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw le(this._lexer.source,t.start,"Expected ".concat(Ve(e),", found ").concat(Ue(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==Ee.NAME||t.value!==e)throw le(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(Ue(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===Ee.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return le(this._lexer.source,t.start,"Unexpected ".concat(Ue(t),"."))},t.any=function(e,t,n){this.expectToken(e);for(var i=[];!this.expectOptionalToken(n);)i.push(t.call(this));return i},t.optionalMany=function(e,t,n){if(this.expectOptionalToken(e)){var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i}return[]},t.many=function(e,t,n){this.expectToken(e);var i=[];do{i.push(t.call(this))}while(!this.expectOptionalToken(n));return i},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n},e}();function Ue(e){var t=e.value;return Ve(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function Ve(e){return function(e){return e===Ee.BANG||e===Ee.DOLLAR||e===Ee.AMP||e===Ee.PAREN_L||e===Ee.PAREN_R||e===Ee.SPREAD||e===Ee.COLON||e===Ee.EQUALS||e===Ee.AT||e===Ee.BRACKET_L||e===Ee.BRACKET_R||e===Ee.BRACE_L||e===Ee.PIPE||e===Ee.BRACE_R}(e)?'"'.concat(e,'"'):e}var Ge=new Map,Ye=new Map,je=!0,He=!1;function Ke(e){return e.replace(/[\s,]+/g," ").trim()}function Je(e){var t=new Set,n=[];return e.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var i=e.name.value,r=Ke((a=e.loc).source.body.substring(a.start,a.end)),o=Ye.get(i);o&&!o.has(r)?je&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||Ye.set(i,o=new Set),o.add(r),t.has(r)||(t.add(r),n.push(e))}else n.push(e);var a}),s(s({},e),{definitions:n})}function We(e){var t=Ke(e);if(!Ge.has(t)){var n=function(e,t){return new $e(e,t).parseDocument()}(e,{experimentalFragmentVariables:He,allowLegacyFragmentVariables:He});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");Ge.set(t,function(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(n){var i=e[n];i&&"object"==typeof i&&t.add(i)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}(Je(n)))}return Ge.get(t)}function qe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var i=e[0];return t.forEach(function(t,n){t&&"Document"===t.kind?i+=t.loc.source.body:i+=t,i+=e[n+1]}),We(i)}var Xe,Qe=qe,ze=function(){Ge.clear(),Ye.clear()},Ze=function(){je=!1},et=function(){He=!0},tt=function(){He=!1};(Xe=qe||(qe={})).gql=Qe,Xe.resetCaches=ze,Xe.disableFragmentWarnings=Ze,Xe.enableExperimentalFragmentVariables=et,Xe.disableExperimentalFragmentVariables=tt,qe.default=qe;const nt=qe`
16
16
  fragment ViewAction on ViewAction {
17
17
  id
18
18
  name
@@ -493,4 +493,4 @@ PERFORMANCE OF THIS SOFTWARE.
493
493
  }
494
494
  }
495
495
  }
496
- `;try{return(yield Ft.query(V.BASE,e)).data.widgetDefinitionQuery.loadSDK}catch(e){return void console.error("remote plugin load error.",e)}})}(),e||(e=null),this.cache=e),e){const{javascript:t,css:n}=e,i=[];t&&i.push(Pt.loadJavascript(t)),n&&i.push(Pt.loadCSS(n)),yield Promise.allSettled(i)}})}}wt.INSTANCE=new wt;class Bt{static load(e,t){return c(this,void 0,void 0,function*(){const{dependencies:n,mounted:i,usingRemote:r}=e;if(t&&(yield Pt.loadDependencies(t)),n&&(yield Pt.loadDependencies(n)),i)if(Array.isArray(i))yield Pt.loadJavascript(i);else{const{js:e,css:t}=i;e&&(yield Pt.loadJavascript(e)),t&&(yield Pt.loadCSS(t))}r&&(yield wt.INSTANCE.load())})}}class $t{static resister(e){this._config=e}static getConfig(){return this._config}static getConfigByName(e){return"login"===e?this._config.login||this.defaultLoginPath:this._config[e]}}$t.defaultLoginPath="/login",$t._config={};const Ut="runtimeConfigResolve",Vt={init:!1,updateTime:new Date,value:{}};class Yt{static init(e){return c(this,void 0,void 0,function*(){if(!Vt.init)return function(){if(Vt.init)return;if(Reflect.get(window,Ut))return;return new Promise(e=>{Reflect.set(window,Ut,t=>{e(t),Reflect.deleteProperty(window,Ut)});const t=document.createElement("script");t.src=`${process.env.RUNTIME_CONFIG_BASE_URL||""}/${process.env.RUNTIME_CONFIG_FILENAME||"manifest"}.js`;const n=function(e){return()=>{e({}),Reflect.deleteProperty(window,Ut)}}(e);t.onload=n,t.onerror=n,document.body.appendChild(t)}).then(e=>c(this,void 0,void 0,function*(){Vt.updateTime=new Date,Vt.value=e})).finally(()=>{Vt.init=!0})}()})}static get(){return Vt.init?Vt.value||{}:("development"===process.env.NODE_ENV&&console.warn("runtime config is not init."),{})}static getConfig(e){return Yt.get()[e]}}function Gt(e){return null==e?e:JSON.parse(JSON.stringify(e))}n.register({name:"runtimeConfig",priority:90},{getConfig:Yt.getConfig});const jt=e=>e?Array.isArray(e)?null:Gt(e):{},Ht=e=>e&&e.children?e.children.filter(e=>e.tagName===R.PROP).map(e=>({name:e.name,textContent:e.textContent})):[],Kt=e=>e?Gt(e):{},Jt=e=>e&&e.children?e.children.filter(e=>e.tagName===R.FIELD).map(e=>({name:e.name,textContent:e.textContent,children:Jt(e)})):[],Wt=(e,t)=>{if(!t)return{};const n=Gt(e);if(t.children&&t.children.find(e=>e.tagName===R.API&&e.name===n.submitApi)||null){const e=qt(t,n.submitApi);if(!e)return{};n.api=e}return n},qt=(e,t,n)=>{const i=e.children&&e.children.find(e=>e.tagName===R.API&&e.name===t)||null;if(!i)return console.warn(`api not fund: ${t}`,e),null;const r=Gt(i);return r.fun||console.warn(`api fun not fund: ${t}`,e),r.type||console.warn(`api type not fund: ${t}`,e),r.context={props:Ht(i.children.find(e=>e.tagName===R.CONTEXT))},r.request={fields:Xt(Jt(i.children.find(e=>e.tagName===R.REQUEST)),n)},r.response={fields:Xt(Jt(i.children.find(e=>e.tagName===R.RESPONSE)),n)},r.clear={fields:Jt(i.children.find(e=>e.tagName===R.CLEAR))},r};function Xt(e,t){return e&&e.length?e:(t||[]).map(e=>zt(e))}const Qt=e=>({name:e.data,ttype:e.ttype,references:e.references,relatedTtype:e.relatedTtype}),zt=e=>({data:e.name,name:e.name,ttype:e.ttype,references:e.references,relatedTtype:e.relatedTtype});function Zt(e){return!!e&&"function"==typeof e.then}const en=e=>{switch(e.ttype){case a.Boolean:case a.Integer:case a.Long:case a.Float:case a.Currency:case a.String:case a.Email:case a.Phone:case a.ID:case a.Date:case a.DateTime:case a.Time:case a.Year:case a.Enum:case a.MultiEnum:case a.HTML:case a.Map:case a.Text:return!0;default:return!1}},tn=e=>[a.OneToOne,a.OneToMany,a.ManyToOne,a.ManyToMany].includes(e),nn=e=>[a.Date,a.DateTime,a.Year,a.Time].includes(e),rn=e=>[a.ID,a.UID,a.Integer,a.Long,a.Float,a.Currency].includes(e),on=e=>[a.String,a.Text,a.HTML,a.Phone,a.Email].includes(e),an=e=>e===a.Boolean,sn=e=>e===a.Enum,cn=e=>{if(!1===e||0===e)return!1;if(!e)return!0;if(e instanceof Object){if(0===Object.keys(e||{}).length)return!0;return 0===Object.keys(e||{}).filter(e=>!e.startsWith("_")).length}return!(!Array.isArray(e)||0!==e.length)},ln=e=>cn(e)||Array.isArray(e)&&0===e.length,un=e=>null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length;export{C as ActionCompositionType,O as ActionContextType,I as ActionFunctionType,T as ActionType,b as ActionValidationScope,i as ActiveEnum,f as ApiProtocol,Y as BASE_RSQL_QUERY_CONDITION,A as ClientActionName,k as DataClass,r as DataStatusEnum,h as DataType,R as ElementType,d as EnumOptionState,$t as GlobalConfig,_ as IActionTag,E as LoadType,lt as MetadataFragment,It as MetadataRuntimeFragment,yt as MetadataRuntimeFragmentName,y as ModelActionType,D as ModelDefaultActionName,L as ModelDefaultActionNames,p as ModelFieldSerializeType,a as ModelFieldType,l as ModelFieldTypeDisplayName,u as ModelFieldTypeOptions,o as ModelType,Bt as PluginsLoader,N as QueryType,Yt as RuntimeConfig,U as SYSTEM_MODULE,V as SYSTEM_MODULE_NAME,$ as SystemSource,x as UserBehaviorEventEnum,m as ValidationScope,B as ViewActionTarget,P as ViewClientType,w as ViewMode,F as ViewType,Wt as createActionElement,qt as createApiElement,Kt as createFieldElement,Jt as createFieldElements,Ht as createPropElements,jt as createViewElement,Gt as deepClone,Qt as fieldElement2ModelField,an as isBooleanTtype,tn as isComplexTtype,nn as isDateTtype,cn as isEmptyKeObject,un as isEmptyValue,sn as isEnumTtype,rn as isNumberTtype,Zt as isPromise,M as isRelatedTtype,v as isRelationTtype,en as isSimpleField,on as isStringTtype,g as isToManyTtype,S as isToOneTtype,ln as isValidateEmpty,zt as modelField2fieldElement};
496
+ `;try{return(yield Ft.query(V.BASE,e)).data.widgetDefinitionQuery.loadSDK}catch(e){return void console.error("remote plugin load error.",e)}})}(),e||(e=null),this.cache=e),e){const{javascript:t,css:n}=e,i=[];t&&i.push(Pt.loadJavascript(t)),n&&i.push(Pt.loadCSS(n)),yield Promise.allSettled(i)}})}}wt.INSTANCE=new wt;class Bt{static load(e,t){return c(this,void 0,void 0,function*(){const{dependencies:n,mounted:i,usingRemote:r}=e;if(t&&(yield Pt.loadDependencies(t)),n&&(yield Pt.loadDependencies(n)),i)if(Array.isArray(i))yield Pt.loadJavascript(i);else{const{js:e,css:t}=i;e&&(yield Pt.loadJavascript(e)),t&&(yield Pt.loadCSS(t))}r&&(yield wt.INSTANCE.load())})}}class $t{static resister(e){this._config=e}static getConfig(){return this._config}static getConfigByName(e){return"login"===e?this._config.login||this.defaultLoginPath:this._config[e]}}$t.defaultLoginPath="/login",$t._config={};const Ut="runtimeConfigResolve",Vt={init:!1,updateTime:new Date,value:{}};class Gt{static init(e){return c(this,void 0,void 0,function*(){if(!Vt.init)return function(){if(Vt.init)return;if(Reflect.get(window,Ut))return;return new Promise(e=>{Reflect.set(window,Ut,t=>{e(t),Reflect.deleteProperty(window,Ut)});const t=document.createElement("script");t.src=`${process.env.RUNTIME_CONFIG_BASE_URL||""}/${process.env.RUNTIME_CONFIG_FILENAME||"manifest"}.js`;const n=function(e){return()=>{e({}),Reflect.deleteProperty(window,Ut)}}(e);t.onload=n,t.onerror=n,document.body.appendChild(t)}).then(e=>c(this,void 0,void 0,function*(){Vt.updateTime=new Date,Vt.value=e})).finally(()=>{Vt.init=!0})}()})}static get(){return Vt.init?Vt.value||{}:("development"===process.env.NODE_ENV&&console.warn("runtime config is not init."),{})}static getConfig(e){return Gt.get()[e]}}function Yt(e){return null==e?e:JSON.parse(JSON.stringify(e))}n.register({name:"runtimeConfig",priority:90},{getConfig:Gt.getConfig});const jt=e=>e?Array.isArray(e)?null:Yt(e):{},Ht=e=>e&&e.children?e.children.filter(e=>e.tagName===R.PROP).map(e=>({name:e.name,textContent:e.textContent})):[],Kt=e=>e?Yt(e):{},Jt=e=>e&&e.children?e.children.filter(e=>e.tagName===R.FIELD).map(e=>({name:e.name,textContent:e.textContent,children:Jt(e)})):[],Wt=(e,t)=>{if(!t)return{};const n=Yt(e);if(t.children&&t.children.find(e=>e.tagName===R.API&&e.name===n.submitApi)||null){const e=qt(t,n.submitApi);if(!e)return{};n.api=e}return n},qt=(e,t,n)=>{const i=e.children&&e.children.find(e=>e.tagName===R.API&&e.name===t)||null;if(!i)return console.warn(`api not fund: ${t}`,e),null;const r=Yt(i);return r.fun||console.warn(`api fun not fund: ${t}`,e),r.type||console.warn(`api type not fund: ${t}`,e),r.context={props:Ht(i.children.find(e=>e.tagName===R.CONTEXT))},r.request={fields:Xt(Jt(i.children.find(e=>e.tagName===R.REQUEST)),n)},r.response={fields:Xt(Jt(i.children.find(e=>e.tagName===R.RESPONSE)),n)},r.clear={fields:Jt(i.children.find(e=>e.tagName===R.CLEAR))},r};function Xt(e,t){return e&&e.length?e:(t||[]).map(e=>zt(e))}const Qt=e=>({name:e.data,ttype:e.ttype,references:e.references,relatedTtype:e.relatedTtype}),zt=e=>({data:e.name,name:e.name,ttype:e.ttype,references:e.references,relatedTtype:e.relatedTtype});function Zt(e){return!!e&&"function"==typeof e.then}const en=e=>{switch(e.ttype){case a.Boolean:case a.Integer:case a.Long:case a.Float:case a.Currency:case a.String:case a.Email:case a.Phone:case a.ID:case a.Date:case a.DateTime:case a.Time:case a.Year:case a.Enum:case a.MultiEnum:case a.HTML:case a.Map:case a.Text:return!0;default:return!1}},tn=e=>[a.OneToOne,a.OneToMany,a.ManyToOne,a.ManyToMany].includes(e),nn=e=>[a.Date,a.DateTime,a.Year,a.Time].includes(e),rn=e=>[a.ID,a.UID,a.Integer,a.Long,a.Float,a.Currency].includes(e),on=e=>[a.String,a.Text,a.HTML,a.Phone,a.Email].includes(e),an=e=>e===a.Boolean,sn=e=>e===a.Enum,cn=e=>{if(!1===e||0===e)return!1;if(!e)return!0;if(e instanceof Object){if(0===Object.keys(e||{}).length)return!0;return 0===Object.keys(e||{}).filter(e=>!e.startsWith("_")).length}return!(!Array.isArray(e)||0!==e.length)},ln=e=>cn(e)||Array.isArray(e)&&0===e.length,un=e=>null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length;export{C as ActionCompositionType,O as ActionContextType,I as ActionFunctionType,T as ActionType,b as ActionValidationScope,i as ActiveEnum,f as ApiProtocol,G as BASE_RSQL_QUERY_CONDITION,A as ClientActionName,k as DataClass,r as DataStatusEnum,h as DataType,R as ElementType,d as EnumOptionState,$t as GlobalConfig,_ as IActionTag,E as LoadType,lt as MetadataFragment,It as MetadataRuntimeFragment,yt as MetadataRuntimeFragmentName,y as ModelActionType,D as ModelDefaultActionName,L as ModelDefaultActionNames,p as ModelFieldSerializeType,a as ModelFieldType,l as ModelFieldTypeDisplayName,u as ModelFieldTypeOptions,o as ModelType,Bt as PluginsLoader,N as QueryType,Gt as RuntimeConfig,U as SYSTEM_MODULE,V as SYSTEM_MODULE_NAME,$ as SystemSource,x as UserBehaviorEventEnum,m as ValidationScope,B as ViewActionTarget,P as ViewClientType,w as ViewMode,F as ViewType,Wt as createActionElement,qt as createApiElement,Kt as createFieldElement,Jt as createFieldElements,Ht as createPropElements,jt as createViewElement,Yt as deepClone,Qt as fieldElement2ModelField,an as isBooleanTtype,tn as isComplexTtype,nn as isDateTtype,cn as isEmptyKeObject,un as isEmptyValue,sn as isEnumTtype,rn as isNumberTtype,Zt as isPromise,M as isRelatedTtype,v as isRelationTtype,en as isSimpleField,on as isStringTtype,g as isToManyTtype,S as isToOneTtype,ln as isValidateEmpty,zt as modelField2fieldElement};
@@ -1,5 +1,6 @@
1
1
  export declare const SYSTEM_MODULE: {
2
2
  BASE: string;
3
+ GROUPING: string;
3
4
  COMMON: string;
4
5
  USER: string;
5
6
  AUTH: string;
@@ -11,6 +12,7 @@ export declare const SYSTEM_MODULE: {
11
12
  };
12
13
  export declare const SYSTEM_MODULE_NAME: {
13
14
  BASE: string;
15
+ GROUPING: string;
14
16
  COMMON: string;
15
17
  USER: string;
16
18
  AUTH: string;
@@ -52,7 +52,11 @@ export declare enum ModelType {
52
52
  export declare enum ModelFieldType {
53
53
  String = "STRING",
54
54
  Text = "TEXT",
55
+ /**
56
+ * @deprecated please using {@link ModelFieldType#Html}
57
+ */
55
58
  HTML = "HTML",
59
+ Html = "HTML",
56
60
  Phone = "PHONE",
57
61
  Email = "EMAIL",
58
62
  Integer = "INTEGER",
@@ -521,6 +525,10 @@ export declare enum ModelDefaultActionName {
521
525
  $$internal_GotoM2MListDialog = "$$internal_GotoM2MListDialog",
522
526
  $$internal_ReloadData = "$$internal_ReloadData",
523
527
  $$internal_ValidateForm = "$$internal_ValidateForm",
528
+ /**
529
+ * 保存草稿动作
530
+ */
531
+ $$internal_SaveDraft = "$$internal_SaveDraft",
524
532
  $$internal_Download = "$$internal_Download",
525
533
  /**
526
534
  * 批量更新
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oinone/kunlun-meta",
3
- "version": "6.3.1",
3
+ "version": "6.4.1",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf dist",
@@ -11,10 +11,8 @@
11
11
  "x-postpublish": "node ../../scripts/postpublish.js"
12
12
  },
13
13
  "dependencies": {
14
- "@oinone/kunlun-config": "6.3.1"
15
- },
16
- "devDependencies": {
17
- "@oinone/kunlun-request": "6.3.1"
14
+ "@oinone/kunlun-config": "6.4.1",
15
+ "@oinone/kunlun-request": "6.4.1"
18
16
  },
19
17
  "gitHead": "2b4c0c7911626c105ca71c2d41e54af470e2e079"
20
18
  }
@@ -1,5 +1,6 @@
1
1
  export const SYSTEM_MODULE = {
2
2
  BASE: 'base',
3
+ GROUPING: 'grouping',
3
4
  COMMON: 'common',
4
5
  USER: 'user',
5
6
  AUTH: 'auth',
@@ -12,6 +13,7 @@ export const SYSTEM_MODULE = {
12
13
 
13
14
  export const SYSTEM_MODULE_NAME = {
14
15
  BASE: 'base',
16
+ GROUPING: 'grouping',
15
17
  COMMON: 'common',
16
18
  USER: 'user',
17
19
  AUTH: 'auth',
@@ -52,7 +52,11 @@ export enum ModelFieldType {
52
52
  // region string
53
53
  String = 'STRING',
54
54
  Text = 'TEXT',
55
+ /**
56
+ * @deprecated please using {@link ModelFieldType#Html}
57
+ */
55
58
  HTML = 'HTML',
59
+ Html = 'HTML',
56
60
  Phone = 'PHONE',
57
61
  Email = 'EMAIL',
58
62
  // endregion
@@ -752,6 +756,12 @@ export enum ModelDefaultActionName {
752
756
  // 校验表单
753
757
  $$internal_ValidateForm = '$$internal_ValidateForm',
754
758
  // 下载
759
+
760
+ /**
761
+ * 保存草稿动作
762
+ */
763
+ $$internal_SaveDraft = '$$internal_SaveDraft',
764
+
755
765
  $$internal_Download = '$$internal_Download',
756
766
 
757
767
  /**
@@ -1,6 +1,4 @@
1
1
  function deepClone(obj) {
2
2
  return obj == null ? obj : JSON.parse(JSON.stringify(obj));
3
3
  }
4
- export {
5
- deepClone
6
- };
4
+ export { deepClone };