install-expo-modules 0.10.0 → 0.10.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.
- package/build/index.js +1 -1
- package/package.json +4 -4
package/build/index.js
CHANGED
|
@@ -31,4 +31,4 @@
|
|
|
31
31
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
32
32
|
* Released under the MIT License.
|
|
33
33
|
*/b.exports=function(b){if(typeof b==="number"){return b-b===0}if(typeof b==="string"&&b.trim()!==""){return Number.isFinite?Number.isFinite(+b):isFinite(+b)}return false}},98674:function(b,S,J){"use strict";var ee=this&&this.__spreadArrays||function(){for(var b=0,S=0,J=arguments.length;S<J;S++)b+=arguments[S].length;for(var ee=Array(b),te=0,S=0;S<J;S++)for(var re=arguments[S],ne=0,ie=re.length;ne<ie;ne++,te++)ee[te]=re[ne];return ee};Object.defineProperty(S,"__esModule",{value:true});S.Checker=S.createCheckers=void 0;var te=J(4871);var re=J(63576);var ne=J(4871);Object.defineProperty(S,"TArray",{enumerable:true,get:function(){return ne.TArray}});Object.defineProperty(S,"TEnumType",{enumerable:true,get:function(){return ne.TEnumType}});Object.defineProperty(S,"TEnumLiteral",{enumerable:true,get:function(){return ne.TEnumLiteral}});Object.defineProperty(S,"TFunc",{enumerable:true,get:function(){return ne.TFunc}});Object.defineProperty(S,"TIface",{enumerable:true,get:function(){return ne.TIface}});Object.defineProperty(S,"TLiteral",{enumerable:true,get:function(){return ne.TLiteral}});Object.defineProperty(S,"TName",{enumerable:true,get:function(){return ne.TName}});Object.defineProperty(S,"TOptional",{enumerable:true,get:function(){return ne.TOptional}});Object.defineProperty(S,"TParam",{enumerable:true,get:function(){return ne.TParam}});Object.defineProperty(S,"TParamList",{enumerable:true,get:function(){return ne.TParamList}});Object.defineProperty(S,"TProp",{enumerable:true,get:function(){return ne.TProp}});Object.defineProperty(S,"TTuple",{enumerable:true,get:function(){return ne.TTuple}});Object.defineProperty(S,"TType",{enumerable:true,get:function(){return ne.TType}});Object.defineProperty(S,"TUnion",{enumerable:true,get:function(){return ne.TUnion}});Object.defineProperty(S,"TIntersection",{enumerable:true,get:function(){return ne.TIntersection}});Object.defineProperty(S,"array",{enumerable:true,get:function(){return ne.array}});Object.defineProperty(S,"enumlit",{enumerable:true,get:function(){return ne.enumlit}});Object.defineProperty(S,"enumtype",{enumerable:true,get:function(){return ne.enumtype}});Object.defineProperty(S,"func",{enumerable:true,get:function(){return ne.func}});Object.defineProperty(S,"iface",{enumerable:true,get:function(){return ne.iface}});Object.defineProperty(S,"lit",{enumerable:true,get:function(){return ne.lit}});Object.defineProperty(S,"name",{enumerable:true,get:function(){return ne.name}});Object.defineProperty(S,"opt",{enumerable:true,get:function(){return ne.opt}});Object.defineProperty(S,"param",{enumerable:true,get:function(){return ne.param}});Object.defineProperty(S,"tuple",{enumerable:true,get:function(){return ne.tuple}});Object.defineProperty(S,"union",{enumerable:true,get:function(){return ne.union}});Object.defineProperty(S,"intersection",{enumerable:true,get:function(){return ne.intersection}});Object.defineProperty(S,"BasicType",{enumerable:true,get:function(){return ne.BasicType}});var ie=J(63576);Object.defineProperty(S,"VError",{enumerable:true,get:function(){return ie.VError}});function createCheckers(){var b=[];for(var S=0;S<arguments.length;S++){b[S]=arguments[S]}var J=Object.assign.apply(Object,ee([{},te.basicTypes],b));var re={};for(var ne=0,ie=b;ne<ie.length;ne++){var se=ie[ne];for(var ae=0,ue=Object.keys(se);ae<ue.length;ae++){var ce=ue[ae];re[ce]=new oe(J,se[ce])}}return re}S.createCheckers=createCheckers;var oe=function(){function Checker(b,S,J){if(J===void 0){J="value"}this.suite=b;this.ttype=S;this._path=J;this.props=new Map;if(S instanceof te.TIface){for(var ee=0,re=S.props;ee<re.length;ee++){var ne=re[ee];this.props.set(ne.name,ne.ttype)}}this.checkerPlain=this.ttype.getChecker(b,false);this.checkerStrict=this.ttype.getChecker(b,true)}Checker.prototype.setReportedPath=function(b){this._path=b};Checker.prototype.check=function(b){return this._doCheck(this.checkerPlain,b)};Checker.prototype.test=function(b){return this.checkerPlain(b,new re.NoopContext)};Checker.prototype.validate=function(b){return this._doValidate(this.checkerPlain,b)};Checker.prototype.strictCheck=function(b){return this._doCheck(this.checkerStrict,b)};Checker.prototype.strictTest=function(b){return this.checkerStrict(b,new re.NoopContext)};Checker.prototype.strictValidate=function(b){return this._doValidate(this.checkerStrict,b)};Checker.prototype.getProp=function(b){var S=this.props.get(b);if(!S){throw new Error("Type has no property "+b)}return new Checker(this.suite,S,this._path+"."+b)};Checker.prototype.methodArgs=function(b){var S=this._getMethod(b);return new Checker(this.suite,S.paramList)};Checker.prototype.methodResult=function(b){var S=this._getMethod(b);return new Checker(this.suite,S.result)};Checker.prototype.getArgs=function(){if(!(this.ttype instanceof te.TFunc)){throw new Error("getArgs() applied to non-function")}return new Checker(this.suite,this.ttype.paramList)};Checker.prototype.getResult=function(){if(!(this.ttype instanceof te.TFunc)){throw new Error("getResult() applied to non-function")}return new Checker(this.suite,this.ttype.result)};Checker.prototype.getType=function(){return this.ttype};Checker.prototype._doCheck=function(b,S){var J=new re.NoopContext;if(!b(S,J)){var ee=new re.DetailContext;b(S,ee);throw ee.getError(this._path)}};Checker.prototype._doValidate=function(b,S){var J=new re.NoopContext;if(b(S,J)){return null}var ee=new re.DetailContext;b(S,ee);return ee.getErrorDetail(this._path)};Checker.prototype._getMethod=function(b){var S=this.props.get(b);if(!S){throw new Error("Type has no property "+b)}if(!(S instanceof te.TFunc)){throw new Error("Property "+b+" is not a method")}return S};return Checker}();S.Checker=oe},4871:function(b,S,J){"use strict";var ee=this&&this.__extends||function(){var extendStatics=function(b,S){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)if(S.hasOwnProperty(J))b[J]=S[J]};return extendStatics(b,S)};return function(b,S){extendStatics(b,S);function __(){this.constructor=b}b.prototype=S===null?Object.create(S):(__.prototype=S.prototype,new __)}}();Object.defineProperty(S,"__esModule",{value:true});S.basicTypes=S.BasicType=S.TParamList=S.TParam=S.param=S.TFunc=S.func=S.TProp=S.TOptional=S.opt=S.TIface=S.iface=S.TEnumLiteral=S.enumlit=S.TEnumType=S.enumtype=S.TIntersection=S.intersection=S.TUnion=S.union=S.TTuple=S.tuple=S.TArray=S.array=S.TLiteral=S.lit=S.TName=S.name=S.TType=void 0;var te=J(63576);var re=function(){function TType(){}return TType}();S.TType=re;function parseSpec(b){return typeof b==="string"?name(b):b}function getNamedType(b,S){var J=b[S];if(!J){throw new Error("Unknown type "+S)}return J}function name(b){return new ne(b)}S.name=name;var ne=function(b){ee(TName,b);function TName(S){var J=b.call(this)||this;J.name=S;J._failMsg="is not a "+S;return J}TName.prototype.getChecker=function(b,S,J){var ee=this;var te=getNamedType(b,this.name);var re=te.getChecker(b,S,J);if(te instanceof ye||te instanceof TName){return re}return function(b,S){return re(b,S)?true:S.fail(null,ee._failMsg,0)}};return TName}(re);S.TName=ne;function lit(b){return new ie(b)}S.lit=lit;var ie=function(b){ee(TLiteral,b);function TLiteral(S){var J=b.call(this)||this;J.value=S;J.name=JSON.stringify(S);J._failMsg="is not "+J.name;return J}TLiteral.prototype.getChecker=function(b,S){var J=this;return function(b,S){return b===J.value?true:S.fail(null,J._failMsg,-1)}};return TLiteral}(re);S.TLiteral=ie;function array(b){return new oe(parseSpec(b))}S.array=array;var oe=function(b){ee(TArray,b);function TArray(S){var J=b.call(this)||this;J.ttype=S;return J}TArray.prototype.getChecker=function(b,S){var J=this.ttype.getChecker(b,S);return function(b,S){if(!Array.isArray(b)){return S.fail(null,"is not an array",0)}for(var ee=0;ee<b.length;ee++){var te=J(b[ee],S);if(!te){return S.fail(ee,null,1)}}return true}};return TArray}(re);S.TArray=oe;function tuple(){var b=[];for(var S=0;S<arguments.length;S++){b[S]=arguments[S]}return new se(b.map((function(b){return parseSpec(b)})))}S.tuple=tuple;var se=function(b){ee(TTuple,b);function TTuple(S){var J=b.call(this)||this;J.ttypes=S;return J}TTuple.prototype.getChecker=function(b,S){var J=this.ttypes.map((function(J){return J.getChecker(b,S)}));var checker=function(b,S){if(!Array.isArray(b)){return S.fail(null,"is not an array",0)}for(var ee=0;ee<J.length;ee++){var te=J[ee](b[ee],S);if(!te){return S.fail(ee,null,1)}}return true};if(!S){return checker}return function(b,S){if(!checker(b,S)){return false}return b.length<=J.length?true:S.fail(J.length,"is extraneous",2)}};return TTuple}(re);S.TTuple=se;function union(){var b=[];for(var S=0;S<arguments.length;S++){b[S]=arguments[S]}return new ae(b.map((function(b){return parseSpec(b)})))}S.union=union;var ae=function(b){ee(TUnion,b);function TUnion(S){var J=b.call(this)||this;J.ttypes=S;var ee=S.map((function(b){return b instanceof ne||b instanceof ie?b.name:null})).filter((function(b){return b}));var te=S.length-ee.length;if(ee.length){if(te>0){ee.push(te+" more")}J._failMsg="is none of "+ee.join(", ")}else{J._failMsg="is none of "+te+" types"}return J}TUnion.prototype.getChecker=function(b,S){var J=this;var ee=this.ttypes.map((function(J){return J.getChecker(b,S)}));return function(b,S){var te=S.unionResolver();for(var re=0;re<ee.length;re++){var ne=ee[re](b,te.createContext());if(ne){return true}}S.resolveUnion(te);return S.fail(null,J._failMsg,0)}};return TUnion}(re);S.TUnion=ae;function intersection(){var b=[];for(var S=0;S<arguments.length;S++){b[S]=arguments[S]}return new ue(b.map((function(b){return parseSpec(b)})))}S.intersection=intersection;var ue=function(b){ee(TIntersection,b);function TIntersection(S){var J=b.call(this)||this;J.ttypes=S;return J}TIntersection.prototype.getChecker=function(b,S){var J=new Set;var ee=this.ttypes.map((function(ee){return ee.getChecker(b,S,J)}));return function(b,S){var J=ee.every((function(J){return J(b,S)}));if(J){return true}return S.fail(null,null,0)}};return TIntersection}(re);S.TIntersection=ue;function enumtype(b){return new ce(b)}S.enumtype=enumtype;var ce=function(b){ee(TEnumType,b);function TEnumType(S){var J=b.call(this)||this;J.members=S;J.validValues=new Set;J._failMsg="is not a valid enum value";J.validValues=new Set(Object.keys(S).map((function(b){return S[b]})));return J}TEnumType.prototype.getChecker=function(b,S){var J=this;return function(b,S){return J.validValues.has(b)?true:S.fail(null,J._failMsg,0)}};return TEnumType}(re);S.TEnumType=ce;function enumlit(b,S){return new le(b,S)}S.enumlit=enumlit;var le=function(b){ee(TEnumLiteral,b);function TEnumLiteral(S,J){var ee=b.call(this)||this;ee.enumName=S;ee.prop=J;ee._failMsg="is not "+S+"."+J;return ee}TEnumLiteral.prototype.getChecker=function(b,S){var J=this;var ee=getNamedType(b,this.enumName);if(!(ee instanceof ce)){throw new Error("Type "+this.enumName+" used in enumlit is not an enum type")}var te=ee.members[this.prop];if(!ee.members.hasOwnProperty(this.prop)){throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit")}return function(b,S){return b===te?true:S.fail(null,J._failMsg,-1)}};return TEnumLiteral}(re);S.TEnumLiteral=le;function makeIfaceProps(b){return Object.keys(b).map((function(S){return makeIfaceProp(S,b[S])}))}function makeIfaceProp(b,S){return S instanceof fe?new de(b,S.ttype,true):new de(b,parseSpec(S),false)}function iface(b,S){return new pe(b,makeIfaceProps(S))}S.iface=iface;var pe=function(b){ee(TIface,b);function TIface(S,J){var ee=b.call(this)||this;ee.bases=S;ee.props=J;ee.propSet=new Set(J.map((function(b){return b.name})));return ee}TIface.prototype.getChecker=function(b,S,J){var ee=this;var re=this.bases.map((function(J){return getNamedType(b,J).getChecker(b,S)}));var ne=this.props.map((function(J){return J.ttype.getChecker(b,S)}));var ie=new te.NoopContext;var oe=this.props.map((function(b,S){return!b.isOpt&&!ne[S](undefined,ie)}));var checker=function(b,S){if(typeof b!=="object"||b===null){return S.fail(null,"is not an object",0)}for(var J=0;J<re.length;J++){if(!re[J](b,S)){return false}}for(var J=0;J<ne.length;J++){var te=ee.props[J].name;var ie=b[te];if(ie===undefined){if(oe[J]){return S.fail(te,"is missing",1)}}else{var se=ne[J](ie,S);if(!se){return S.fail(te,null,1)}}}return true};if(!S){return checker}var se=this.propSet;if(J){this.propSet.forEach((function(b){return J.add(b)}));se=J}return function(b,S){if(!checker(b,S)){return false}for(var J in b){if(!se.has(J)){return S.fail(J,"is extraneous",2)}}return true}};return TIface}(re);S.TIface=pe;function opt(b){return new fe(parseSpec(b))}S.opt=opt;var fe=function(b){ee(TOptional,b);function TOptional(S){var J=b.call(this)||this;J.ttype=S;return J}TOptional.prototype.getChecker=function(b,S){var J=this.ttype.getChecker(b,S);return function(b,S){return b===undefined||J(b,S)}};return TOptional}(re);S.TOptional=fe;var de=function(){function TProp(b,S,J){this.name=b;this.ttype=S;this.isOpt=J}return TProp}();S.TProp=de;function func(b){var S=[];for(var J=1;J<arguments.length;J++){S[J-1]=arguments[J]}return new he(new ge(S),parseSpec(b))}S.func=func;var he=function(b){ee(TFunc,b);function TFunc(S,J){var ee=b.call(this)||this;ee.paramList=S;ee.result=J;return ee}TFunc.prototype.getChecker=function(b,S){return function(b,S){return typeof b==="function"?true:S.fail(null,"is not a function",0)}};return TFunc}(re);S.TFunc=he;function param(b,S,J){return new me(b,parseSpec(S),Boolean(J))}S.param=param;var me=function(){function TParam(b,S,J){this.name=b;this.ttype=S;this.isOpt=J}return TParam}();S.TParam=me;var ge=function(b){ee(TParamList,b);function TParamList(S){var J=b.call(this)||this;J.params=S;return J}TParamList.prototype.getChecker=function(b,S){var J=this;var ee=this.params.map((function(J){return J.ttype.getChecker(b,S)}));var re=new te.NoopContext;var ne=this.params.map((function(b,S){return!b.isOpt&&!ee[S](undefined,re)}));var checker=function(b,S){if(!Array.isArray(b)){return S.fail(null,"is not an array",0)}for(var te=0;te<ee.length;te++){var re=J.params[te];if(b[te]===undefined){if(ne[te]){return S.fail(re.name,"is missing",1)}}else{var ie=ee[te](b[te],S);if(!ie){return S.fail(re.name,null,1)}}}return true};if(!S){return checker}return function(b,S){if(!checker(b,S)){return false}return b.length<=ee.length?true:S.fail(ee.length,"is extraneous",2)}};return TParamList}(re);S.TParamList=ge;var ye=function(b){ee(BasicType,b);function BasicType(S,J){var ee=b.call(this)||this;ee.validator=S;ee.message=J;return ee}BasicType.prototype.getChecker=function(b,S){var J=this;return function(b,S){return J.validator(b)?true:S.fail(null,J.message,0)}};return BasicType}(re);S.BasicType=ye;S.basicTypes={any:new ye((function(b){return true}),"is invalid"),number:new ye((function(b){return typeof b==="number"}),"is not a number"),object:new ye((function(b){return typeof b==="object"&&b}),"is not an object"),boolean:new ye((function(b){return typeof b==="boolean"}),"is not a boolean"),string:new ye((function(b){return typeof b==="string"}),"is not a string"),symbol:new ye((function(b){return typeof b==="symbol"}),"is not a symbol"),void:new ye((function(b){return b==null}),"is not void"),undefined:new ye((function(b){return b===undefined}),"is not undefined"),null:new ye((function(b){return b===null}),"is not null"),never:new ye((function(b){return false}),"is unexpected"),Date:new ye(getIsNativeChecker("[object Date]"),"is not a Date"),RegExp:new ye(getIsNativeChecker("[object RegExp]"),"is not a RegExp")};var ve=Object.prototype.toString;function getIsNativeChecker(b){return function(S){return typeof S==="object"&&S&&ve.call(S)===b}}if(typeof Buffer!=="undefined"){S.basicTypes.Buffer=new ye((function(b){return Buffer.isBuffer(b)}),"is not a Buffer")}var _loop_1=function(b){S.basicTypes[b.name]=new ye((function(S){return S instanceof b}),"is not a "+b.name)};for(var Te=0,be=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];Te<be.length;Te++){var _e=be[Te];_loop_1(_e)}},63576:function(b,S){"use strict";var J=this&&this.__extends||function(){var extendStatics=function(b,S){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)if(S.hasOwnProperty(J))b[J]=S[J]};return extendStatics(b,S)};return function(b,S){extendStatics(b,S);function __(){this.constructor=b}b.prototype=S===null?Object.create(S):(__.prototype=S.prototype,new __)}}();Object.defineProperty(S,"__esModule",{value:true});S.DetailContext=S.NoopContext=S.VError=void 0;var ee=function(b){J(VError,b);function VError(S,J){var ee=b.call(this,J)||this;ee.path=S;Object.setPrototypeOf(ee,VError.prototype);return ee}return VError}(Error);S.VError=ee;var te=function(){function NoopContext(){}NoopContext.prototype.fail=function(b,S,J){return false};NoopContext.prototype.unionResolver=function(){return this};NoopContext.prototype.createContext=function(){return this};NoopContext.prototype.resolveUnion=function(b){};return NoopContext}();S.NoopContext=te;var re=function(){function DetailContext(){this._propNames=[""];this._messages=[null];this._score=0}DetailContext.prototype.fail=function(b,S,J){this._propNames.push(b);this._messages.push(S);this._score+=J;return false};DetailContext.prototype.unionResolver=function(){return new ne};DetailContext.prototype.resolveUnion=function(b){var S,J;var ee=b;var te=null;for(var re=0,ne=ee.contexts;re<ne.length;re++){var ie=ne[re];if(!te||ie._score>=te._score){te=ie}}if(te&&te._score>0){(S=this._propNames).push.apply(S,te._propNames);(J=this._messages).push.apply(J,te._messages)}};DetailContext.prototype.getError=function(b){var S=[];for(var J=this._propNames.length-1;J>=0;J--){var te=this._propNames[J];b+=typeof te==="number"?"["+te+"]":te?"."+te:"";var re=this._messages[J];if(re){S.push(b+" "+re)}}return new ee(b,S.join("; "))};DetailContext.prototype.getErrorDetail=function(b){var S=[];for(var J=this._propNames.length-1;J>=0;J--){var ee=this._propNames[J];b+=typeof ee==="number"?"["+ee+"]":ee?"."+ee:"";var te=this._messages[J];if(te){S.push({path:b,message:te})}}var re=null;for(var J=S.length-1;J>=0;J--){if(re){S[J].nested=[re]}re=S[J]}return re};return DetailContext}();S.DetailContext=re;var ne=function(){function DetailUnionResolver(){this.contexts=[]}DetailUnionResolver.prototype.createContext=function(){var b=new re;this.contexts.push(b);return b};return DetailUnionResolver}()},84586:b=>{b.exports=wrappy;function wrappy(b,S){if(b&&S)return wrappy(b)(S);if(typeof b!=="function")throw new TypeError("need wrapper function");Object.keys(b).forEach((function(S){wrapper[S]=b[S]}));return wrapper;function wrapper(){var S=new Array(arguments.length);for(var J=0;J<S.length;J++){S[J]=arguments[J]}var ee=b.apply(this,S);var te=S[S.length-1];if(typeof ee==="function"&&ee!==te){Object.keys(te).forEach((function(b){ee[b]=te[b]}))}return ee}}},50460:(b,S,J)=>{"use strict";b.exports=writeFile;b.exports.sync=writeFileSync;b.exports._getTmpname=getTmpname;b.exports._cleanupOnExit=cleanupOnExit;var ee=J(90552);var te=J(95091);var re=J(52028);var ne=J(71017);var ie={};var oe=function getId(){try{var b=J(71267);return b.threadId}catch(b){return 0}}();var se=0;function getTmpname(b){return b+"."+te(__filename).hash(String(process.pid)).hash(String(oe)).hash(String(++se)).result()}function cleanupOnExit(b){return function(){try{ee.unlinkSync(typeof b==="function"?b():b)}catch(b){}}}function writeFile(b,S,J,te){if(J){if(J instanceof Function){te=J;J={}}else if(typeof J==="string"){J={encoding:J}}}else{J={}}var oe=J.Promise||global.Promise;var se;var ae;var ue;var ce=re(cleanupOnExit((()=>ue)));var le=ne.resolve(b);new oe((function serializeSameFile(b){if(!ie[le])ie[le]=[];ie[le].push(b);if(ie[le].length===1)b()})).then((function getRealPath(){return new oe((function(S){ee.realpath(b,(function(J,ee){se=ee||b;ue=getTmpname(se);S()}))}))})).then((function stat(){return new oe((function stat(b){if(J.mode&&J.chown)b();else{ee.stat(se,(function(S,ee){if(S||!ee)b();else{J=Object.assign({},J);if(J.mode==null){J.mode=ee.mode}if(J.chown==null&&process.getuid){J.chown={uid:ee.uid,gid:ee.gid}}b()}}))}}))})).then((function thenWriteFile(){return new oe((function(b,S){ee.open(ue,"w",J.mode,(function(J,ee){ae=ee;if(J)S(J);else b()}))}))})).then((function write(){return new oe((function(b,te){if(Buffer.isBuffer(S)){ee.write(ae,S,0,S.length,0,(function(S){if(S)te(S);else b()}))}else if(S!=null){ee.write(ae,String(S),0,String(J.encoding||"utf8"),(function(S){if(S)te(S);else b()}))}else b()}))})).then((function syncAndClose(){return new oe((function(b,S){if(J.fsync!==false){ee.fsync(ae,(function(J){if(J)ee.close(ae,(()=>S(J)));else ee.close(ae,b)}))}else{ee.close(ae,b)}}))})).then((function chown(){ae=null;if(J.chown){return new oe((function(b,S){ee.chown(ue,J.chown.uid,J.chown.gid,(function(J){if(J)S(J);else b()}))}))}})).then((function chmod(){if(J.mode){return new oe((function(b,S){ee.chmod(ue,J.mode,(function(J){if(J)S(J);else b()}))}))}})).then((function rename(){return new oe((function(b,S){ee.rename(ue,se,(function(J){if(J)S(J);else b()}))}))})).then((function success(){ce();te()}),(function fail(b){return new oe((b=>ae?ee.close(ae,b):b())).then((()=>{ce();ee.unlink(ue,(function(){te(b)}))}))})).then((function checkQueue(){ie[le].shift();if(ie[le].length>0){ie[le][0]()}else delete ie[le]}))}function writeFileSync(b,S,J){if(typeof J==="string")J={encoding:J};else if(!J)J={};try{b=ee.realpathSync(b)}catch(b){}var te=getTmpname(b);if(!J.mode||!J.chown){try{var ne=ee.statSync(b);J=Object.assign({},J);if(!J.mode){J.mode=ne.mode}if(!J.chown&&process.getuid){J.chown={uid:ne.uid,gid:ne.gid}}}catch(b){}}var ie;var oe=cleanupOnExit(te);var se=re(oe);try{ie=ee.openSync(te,"w",J.mode);if(Buffer.isBuffer(S)){ee.writeSync(ie,S,0,S.length,0)}else if(S!=null){ee.writeSync(ie,String(S),0,String(J.encoding||"utf8"))}if(J.fsync!==false){ee.fsyncSync(ie)}ee.closeSync(ie);if(J.chown)ee.chownSync(te,J.chown.uid,J.chown.gid);if(J.mode)ee.chmodSync(te,J.mode);ee.renameSync(te,b);se()}catch(b){if(ie){try{ee.closeSync(ie)}catch(b){}}se();oe();throw b}}},49658:(b,S,J)=>{S.project=J(3854)},11521:b=>{"use strict";function peg$subclass(b,S){function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor}function peg$SyntaxError(b,S,J,ee){this.message=b;this.expected=S;this.found=J;this.location=ee;this.name="SyntaxError";if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(this,peg$SyntaxError)}}peg$subclass(peg$SyntaxError,Error);peg$SyntaxError.buildMessage=function(b,S){var J={literal:function(b){return'"'+literalEscape(b.text)+'"'},class:function(b){var S="",J;for(J=0;J<b.parts.length;J++){S+=b.parts[J]instanceof Array?classEscape(b.parts[J][0])+"-"+classEscape(b.parts[J][1]):classEscape(b.parts[J])}return"["+(b.inverted?"^":"")+S+"]"},any:function(b){return"any character"},end:function(b){return"end of input"},other:function(b){return b.description}};function hex(b){return b.charCodeAt(0).toString(16).toUpperCase()}function literalEscape(b){return b.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(b){return"\\x0"+hex(b)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(b){return"\\x"+hex(b)}))}function classEscape(b){return b.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(b){return"\\x0"+hex(b)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(b){return"\\x"+hex(b)}))}function describeExpectation(b){return J[b.type](b)}function describeExpected(b){var S=new Array(b.length),J,ee;for(J=0;J<b.length;J++){S[J]=describeExpectation(b[J])}S.sort();if(S.length>0){for(J=1,ee=1;J<S.length;J++){if(S[J-1]!==S[J]){S[ee]=S[J];ee++}}S.length=ee}switch(S.length){case 1:return S[0];case 2:return S[0]+" or "+S[1];default:return S.slice(0,-1).join(", ")+", or "+S[S.length-1]}}function describeFound(b){return b?'"'+literalEscape(b)+'"':"end of input"}return"Expected "+describeExpected(b)+" but "+describeFound(S)+" found."};function peg$parse(b,S){S=S!==void 0?S:{};var J={},ee={Project:peg$parseProject},te=peg$parseProject,peg$c0=function(b,S){var J=Object.create(null);J.project=S;if(b){J.headComment=b}return J},re="{",ne=peg$literalExpectation("{",false),ie="}",oe=peg$literalExpectation("}",false),peg$c5=function(b){return b},peg$c6=function(){return Object.create(null)},peg$c7=function(b){var S=b[0][0];for(var J=1;J<b.length;J++){var ee=b[J][0];S=Object.assign(S,ee)}return S},se="=",ae=peg$literalExpectation("=",false),ue=";",ce=peg$literalExpectation(";",false),peg$c12=function(b,S){var J=Object.create(null);J[b]=S;return J},peg$c13=function(b,S){var J=Object.create(null),ee=b.id+"_comment";J[b.id]=S;J[ee]=b[ee];return J},peg$c14=function(b,S){var J=Object.create(null);J[b]=S.value;J[b+"_comment"]=S.comment;return J},peg$c15=function(b,S){var J=Object.create(null);J.id=b;J[b+"_comment"]=S.trim();return J},peg$c16=function(b,S){var J=Object.create(null);J.comment=S.trim();J.value=b.trim();return J},le=/^[^*]/,pe=peg$classExpectation(["*"],true,false),peg$c19=function(b){return b.join("")},fe="/*",de=peg$literalExpectation("/*",false),he="*/",me=peg$literalExpectation("*/",false),peg$c24=function(b,S){var J=Object.create(null);J[b.name]=S;return J},ge="/* Begin ",ye=peg$literalExpectation("/* Begin ",false),ve=" section */",Te=peg$literalExpectation(" section */",false),peg$c29=function(b){return{name:b}},be="/* End ",_e=peg$literalExpectation("/* End ",false),Ee="(",Ae=peg$literalExpectation("(",false),we=")",xe=peg$literalExpectation(")",false),peg$c36=function(b){return b},peg$c37=function(){return[]},peg$c38=function(b,S){if(S){S.unshift(b);return S}else{return[b]}},peg$c39=function(b){return b},peg$c40=function(b,S){var J=Object.create(null);J.value=b.trim();J.comment=S.trim();return J},ke=",",Ce=peg$literalExpectation(",",false),Pe=/^[A-Za-z0-9_.]/,Se=peg$classExpectation([["A","Z"],["a","z"],["0","9"],"_","."],false,false),peg$c45=function(b){return b.join("")},Ie=".",De=peg$literalExpectation(".",false),peg$c48=function(b){return b.join("")},peg$c49=function(b){return parseInt(b.join(""),10)},peg$c50=function(b){return'"'+b+'"'},peg$c51=function(b){return b.join("")},Oe=peg$anyExpectation(),peg$c53=function(b){return b},Re="\\",Ne=peg$literalExpectation("\\",false),peg$c56=function(){return'\\"'},peg$c57=function(b){return b.join("")},Me=/^[^;,\n]/,Fe=peg$classExpectation([";",",","\n"],true,false),Le="//",je=peg$literalExpectation("//",false),peg$c62=function(b){return b},peg$c63=function(b){return b.join("")},Be=/^[0-9]/,$e=peg$classExpectation([["0","9"]],false,false),Ue=/^[A-Za-z]/,Xe=peg$classExpectation([["A","Z"],["a","z"]],false,false),Ge='"',Ve=peg$literalExpectation('"',false),We=peg$otherExpectation("whitespace"),qe=/^[\t ]/,He=peg$classExpectation(["\t"," "],false,false),Ke=/^[\n\r]/,Ye=peg$classExpectation(["\n","\r"],false,false),ze=0,Qe=0,Je=[{line:1,column:1}],Ze=0,et=[],rt=0,nt;if("startRule"in S){if(!(S.startRule in ee)){throw new Error("Can't start parsing from rule \""+S.startRule+'".')}te=ee[S.startRule]}function text(){return b.substring(Qe,ze)}function location(){return peg$computeLocation(Qe,ze)}function expected(S,J){J=J!==void 0?J:peg$computeLocation(Qe,ze);throw peg$buildStructuredError([peg$otherExpectation(S)],b.substring(Qe,ze),J)}function error(b,S){S=S!==void 0?S:peg$computeLocation(Qe,ze);throw peg$buildSimpleError(b,S)}function peg$literalExpectation(b,S){return{type:"literal",text:b,ignoreCase:S}}function peg$classExpectation(b,S,J){return{type:"class",parts:b,inverted:S,ignoreCase:J}}function peg$anyExpectation(){return{type:"any"}}function peg$endExpectation(){return{type:"end"}}function peg$otherExpectation(b){return{type:"other",description:b}}function peg$computePosDetails(S){var J=Je[S],ee;if(J){return J}else{ee=S-1;while(!Je[ee]){ee--}J=Je[ee];J={line:J.line,column:J.column};while(ee<S){if(b.charCodeAt(ee)===10){J.line++;J.column=1}else{J.column++}ee++}Je[S]=J;return J}}function peg$computeLocation(b,S){var J=peg$computePosDetails(b),ee=peg$computePosDetails(S);return{start:{offset:b,line:J.line,column:J.column},end:{offset:S,line:ee.line,column:ee.column}}}function peg$fail(b){if(ze<Ze){return}if(ze>Ze){Ze=ze;et=[]}et.push(b)}function peg$buildSimpleError(b,S){return new peg$SyntaxError(b,null,null,S)}function peg$buildStructuredError(b,S,J){return new peg$SyntaxError(peg$SyntaxError.buildMessage(b,S),b,S,J)}function peg$parseProject(){var b,S,ee,te,re,ne,ie;b=ze;S=peg$parseSingleLineComment();if(S===J){S=null}if(S!==J){ee=peg$parseInlineComment();if(ee===J){ee=null}if(ee!==J){te=peg$parse_();if(te!==J){re=peg$parseObject();if(re!==J){ne=peg$parseNewLine();if(ne!==J){ie=peg$parse_();if(ie!==J){Qe=b;S=peg$c0(S,re);b=S}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseObject(){var S,ee,te,se;S=ze;if(b.charCodeAt(ze)===123){ee=re;ze++}else{ee=J;if(rt===0){peg$fail(ne)}}if(ee!==J){te=peg$parseAssignmentList();if(te===J){te=peg$parseEmptyBody()}if(te!==J){if(b.charCodeAt(ze)===125){se=ie;ze++}else{se=J;if(rt===0){peg$fail(oe)}}if(se!==J){Qe=S;ee=peg$c5(te);S=ee}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}return S}function peg$parseEmptyBody(){var b,S;b=ze;S=peg$parse_();if(S!==J){Qe=b;S=peg$c6()}b=S;return b}function peg$parseAssignmentList(){var b,S,ee,te,re,ne;b=ze;S=peg$parse_();if(S!==J){ee=[];te=ze;re=peg$parseAssignment();if(re===J){re=peg$parseDelimitedSection()}if(re!==J){ne=peg$parse_();if(ne!==J){re=[re,ne];te=re}else{ze=te;te=J}}else{ze=te;te=J}if(te!==J){while(te!==J){ee.push(te);te=ze;re=peg$parseAssignment();if(re===J){re=peg$parseDelimitedSection()}if(re!==J){ne=peg$parse_();if(ne!==J){re=[re,ne];te=re}else{ze=te;te=J}}else{ze=te;te=J}}}else{ee=J}if(ee!==J){Qe=b;S=peg$c7(ee);b=S}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseAssignment(){var b;b=peg$parseSimpleAssignment();if(b===J){b=peg$parseCommentedAssignment()}return b}function peg$parseSimpleAssignment(){var S,ee,te,re,ne,ie,oe;S=ze;ee=peg$parseIdentifier();if(ee!==J){te=peg$parse_();if(te!==J){if(b.charCodeAt(ze)===61){re=se;ze++}else{re=J;if(rt===0){peg$fail(ae)}}if(re!==J){ne=peg$parse_();if(ne!==J){ie=peg$parseValue();if(ie!==J){if(b.charCodeAt(ze)===59){oe=ue;ze++}else{oe=J;if(rt===0){peg$fail(ce)}}if(oe!==J){Qe=S;ee=peg$c12(ee,ie);S=ee}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}return S}function peg$parseCommentedAssignment(){var S,ee,te,re,ne,ie,oe;S=ze;ee=peg$parseCommentedIdentifier();if(ee!==J){te=peg$parse_();if(te!==J){if(b.charCodeAt(ze)===61){re=se;ze++}else{re=J;if(rt===0){peg$fail(ae)}}if(re!==J){ne=peg$parse_();if(ne!==J){ie=peg$parseValue();if(ie!==J){if(b.charCodeAt(ze)===59){oe=ue;ze++}else{oe=J;if(rt===0){peg$fail(ce)}}if(oe!==J){Qe=S;ee=peg$c13(ee,ie);S=ee}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}if(S===J){S=ze;ee=peg$parseIdentifier();if(ee!==J){te=peg$parse_();if(te!==J){if(b.charCodeAt(ze)===61){re=se;ze++}else{re=J;if(rt===0){peg$fail(ae)}}if(re!==J){ne=peg$parse_();if(ne!==J){ie=peg$parseCommentedValue();if(ie!==J){if(b.charCodeAt(ze)===59){oe=ue;ze++}else{oe=J;if(rt===0){peg$fail(ce)}}if(oe!==J){Qe=S;ee=peg$c14(ee,ie);S=ee}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}return S}function peg$parseCommentedIdentifier(){var b,S,ee,te;b=ze;S=peg$parseIdentifier();if(S!==J){ee=peg$parse_();if(ee!==J){te=peg$parseInlineComment();if(te!==J){Qe=b;S=peg$c15(S,te);b=S}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseCommentedValue(){var b,S,ee,te;b=ze;S=peg$parseValue();if(S!==J){ee=peg$parse_();if(ee!==J){te=peg$parseInlineComment();if(te!==J){Qe=b;S=peg$c16(S,te);b=S}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseInlineComment(){var S,ee,te,re;S=ze;ee=peg$parseInlineCommentOpen();if(ee!==J){te=[];if(le.test(b.charAt(ze))){re=b.charAt(ze);ze++}else{re=J;if(rt===0){peg$fail(pe)}}if(re!==J){while(re!==J){te.push(re);if(le.test(b.charAt(ze))){re=b.charAt(ze);ze++}else{re=J;if(rt===0){peg$fail(pe)}}}}else{te=J}if(te!==J){re=peg$parseInlineCommentClose();if(re!==J){Qe=S;ee=peg$c19(te);S=ee}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}return S}function peg$parseInlineCommentOpen(){var S;if(b.substr(ze,2)===fe){S=fe;ze+=2}else{S=J;if(rt===0){peg$fail(de)}}return S}function peg$parseInlineCommentClose(){var S;if(b.substr(ze,2)===he){S=he;ze+=2}else{S=J;if(rt===0){peg$fail(me)}}return S}function peg$parseDelimitedSection(){var b,S,ee,te,re,ne;b=ze;S=peg$parseDelimitedSectionBegin();if(S!==J){ee=peg$parse_();if(ee!==J){te=peg$parseAssignmentList();if(te===J){te=peg$parseEmptyBody()}if(te!==J){re=peg$parse_();if(re!==J){ne=peg$parseDelimitedSectionEnd();if(ne!==J){Qe=b;S=peg$c24(S,te);b=S}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseDelimitedSectionBegin(){var S,ee,te,re,ne;S=ze;if(b.substr(ze,9)===ge){ee=ge;ze+=9}else{ee=J;if(rt===0){peg$fail(ye)}}if(ee!==J){te=peg$parseIdentifier();if(te!==J){if(b.substr(ze,11)===ve){re=ve;ze+=11}else{re=J;if(rt===0){peg$fail(Te)}}if(re!==J){ne=peg$parseNewLine();if(ne!==J){Qe=S;ee=peg$c29(te);S=ee}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}return S}function peg$parseDelimitedSectionEnd(){var S,ee,te,re,ne;S=ze;if(b.substr(ze,7)===be){ee=be;ze+=7}else{ee=J;if(rt===0){peg$fail(_e)}}if(ee!==J){te=peg$parseIdentifier();if(te!==J){if(b.substr(ze,11)===ve){re=ve;ze+=11}else{re=J;if(rt===0){peg$fail(Te)}}if(re!==J){ne=peg$parseNewLine();if(ne!==J){Qe=S;ee=peg$c29(te);S=ee}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}return S}function peg$parseArray(){var S,ee,te,re;S=ze;if(b.charCodeAt(ze)===40){ee=Ee;ze++}else{ee=J;if(rt===0){peg$fail(Ae)}}if(ee!==J){te=peg$parseArrayBody();if(te===J){te=peg$parseEmptyArray()}if(te!==J){if(b.charCodeAt(ze)===41){re=we;ze++}else{re=J;if(rt===0){peg$fail(xe)}}if(re!==J){Qe=S;ee=peg$c36(te);S=ee}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}return S}function peg$parseEmptyArray(){var b,S;b=ze;S=peg$parse_();if(S!==J){Qe=b;S=peg$c37()}b=S;return b}function peg$parseArrayBody(){var b,S,ee,te,re,ne;b=ze;S=peg$parse_();if(S!==J){ee=peg$parseArrayEntry();if(ee!==J){te=peg$parse_();if(te!==J){re=peg$parseArrayBody();if(re===J){re=null}if(re!==J){ne=peg$parse_();if(ne!==J){Qe=b;S=peg$c38(ee,re);b=S}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseArrayEntry(){var b;b=peg$parseSimpleArrayEntry();if(b===J){b=peg$parseCommentedArrayEntry()}return b}function peg$parseSimpleArrayEntry(){var b,S,ee;b=ze;S=peg$parseValue();if(S!==J){ee=peg$parseEndArrayEntry();if(ee!==J){Qe=b;S=peg$c39(S);b=S}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseCommentedArrayEntry(){var b,S,ee,te,re;b=ze;S=peg$parseValue();if(S!==J){ee=peg$parse_();if(ee!==J){te=peg$parseInlineComment();if(te!==J){re=peg$parseEndArrayEntry();if(re!==J){Qe=b;S=peg$c40(S,te);b=S}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseEndArrayEntry(){var S,ee,te,re;if(b.charCodeAt(ze)===44){S=ke;ze++}else{S=J;if(rt===0){peg$fail(Ce)}}if(S===J){S=ze;ee=peg$parse_();if(ee!==J){te=ze;rt++;if(b.charCodeAt(ze)===41){re=we;ze++}else{re=J;if(rt===0){peg$fail(xe)}}rt--;if(re!==J){ze=te;te=void 0}else{te=J}if(te!==J){ee=[ee,te];S=ee}else{ze=S;S=J}}else{ze=S;S=J}}return S}function peg$parseIdentifier(){var S,ee,te;S=ze;ee=[];if(Pe.test(b.charAt(ze))){te=b.charAt(ze);ze++}else{te=J;if(rt===0){peg$fail(Se)}}if(te!==J){while(te!==J){ee.push(te);if(Pe.test(b.charAt(ze))){te=b.charAt(ze);ze++}else{te=J;if(rt===0){peg$fail(Se)}}}}else{ee=J}if(ee!==J){Qe=S;ee=peg$c45(ee)}S=ee;if(S===J){S=peg$parseQuotedString()}return S}function peg$parseValue(){var b;b=peg$parseObject();if(b===J){b=peg$parseArray();if(b===J){b=peg$parseNumberValue();if(b===J){b=peg$parseStringValue()}}}return b}function peg$parseNumberValue(){var b;b=peg$parseDecimalValue();if(b===J){b=peg$parseIntegerValue()}return b}function peg$parseDecimalValue(){var S,ee,te,re,ne;S=ze;ee=ze;te=peg$parseIntegerValue();if(te!==J){if(b.charCodeAt(ze)===46){re=Ie;ze++}else{re=J;if(rt===0){peg$fail(De)}}if(re!==J){ne=peg$parseIntegerValue();if(ne!==J){te=[te,re,ne];ee=te}else{ze=ee;ee=J}}else{ze=ee;ee=J}}else{ze=ee;ee=J}if(ee!==J){Qe=S;ee=peg$c48(ee)}S=ee;return S}function peg$parseIntegerValue(){var b,S,ee,te,re;b=ze;S=ze;rt++;ee=peg$parseAlpha();rt--;if(ee===J){S=void 0}else{ze=S;S=J}if(S!==J){ee=[];te=peg$parseDigit();if(te!==J){while(te!==J){ee.push(te);te=peg$parseDigit()}}else{ee=J}if(ee!==J){te=ze;rt++;re=peg$parseNonTerminator();rt--;if(re===J){te=void 0}else{ze=te;te=J}if(te!==J){Qe=b;S=peg$c49(ee);b=S}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseStringValue(){var b;b=peg$parseQuotedString();if(b===J){b=peg$parseLiteralString()}return b}function peg$parseQuotedString(){var b,S,ee,te;b=ze;S=peg$parseDoubleQuote();if(S!==J){ee=peg$parseQuotedBody();if(ee!==J){te=peg$parseDoubleQuote();if(te!==J){Qe=b;S=peg$c50(ee);b=S}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseQuotedBody(){var b,S,ee;b=ze;S=[];ee=peg$parseNonQuote();if(ee!==J){while(ee!==J){S.push(ee);ee=peg$parseNonQuote()}}else{S=J}if(S!==J){Qe=b;S=peg$c51(S)}b=S;return b}function peg$parseNonQuote(){var S,ee,te;S=peg$parseEscapedQuote();if(S===J){S=ze;ee=ze;rt++;te=peg$parseDoubleQuote();rt--;if(te===J){ee=void 0}else{ze=ee;ee=J}if(ee!==J){if(b.length>ze){te=b.charAt(ze);ze++}else{te=J;if(rt===0){peg$fail(Oe)}}if(te!==J){Qe=S;ee=peg$c53(te);S=ee}else{ze=S;S=J}}else{ze=S;S=J}}return S}function peg$parseEscapedQuote(){var S,ee,te;S=ze;if(b.charCodeAt(ze)===92){ee=Re;ze++}else{ee=J;if(rt===0){peg$fail(Ne)}}if(ee!==J){te=peg$parseDoubleQuote();if(te!==J){Qe=S;ee=peg$c56();S=ee}else{ze=S;S=J}}else{ze=S;S=J}return S}function peg$parseLiteralString(){var b,S,ee;b=ze;S=[];ee=peg$parseLiteralChar();if(ee!==J){while(ee!==J){S.push(ee);ee=peg$parseLiteralChar()}}else{S=J}if(S!==J){Qe=b;S=peg$c57(S)}b=S;return b}function peg$parseLiteralChar(){var b,S,ee,te;b=ze;S=ze;rt++;ee=peg$parseInlineCommentOpen();rt--;if(ee===J){S=void 0}else{ze=S;S=J}if(S!==J){ee=ze;rt++;te=peg$parseLineTerminator();rt--;if(te===J){ee=void 0}else{ze=ee;ee=J}if(ee!==J){te=peg$parseNonTerminator();if(te!==J){Qe=b;S=peg$c53(te);b=S}else{ze=b;b=J}}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseNonTerminator(){var S;if(Me.test(b.charAt(ze))){S=b.charAt(ze);ze++}else{S=J;if(rt===0){peg$fail(Fe)}}return S}function peg$parseSingleLineComment(){var S,ee,te,re,ne;S=ze;if(b.substr(ze,2)===Le){ee=Le;ze+=2}else{ee=J;if(rt===0){peg$fail(je)}}if(ee!==J){te=peg$parse_();if(te!==J){re=peg$parseOneLineString();if(re!==J){ne=peg$parseNewLine();if(ne!==J){Qe=S;ee=peg$c62(re);S=ee}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}}else{ze=S;S=J}return S}function peg$parseOneLineString(){var b,S,ee;b=ze;S=[];ee=peg$parseNonLine();while(ee!==J){S.push(ee);ee=peg$parseNonLine()}if(S!==J){Qe=b;S=peg$c63(S)}b=S;return b}function peg$parseDigit(){var S;if(Be.test(b.charAt(ze))){S=b.charAt(ze);ze++}else{S=J;if(rt===0){peg$fail($e)}}return S}function peg$parseAlpha(){var S;if(Ue.test(b.charAt(ze))){S=b.charAt(ze);ze++}else{S=J;if(rt===0){peg$fail(Xe)}}return S}function peg$parseDoubleQuote(){var S;if(b.charCodeAt(ze)===34){S=Ge;ze++}else{S=J;if(rt===0){peg$fail(Ve)}}return S}function peg$parse_(){var b,S;rt++;b=[];S=peg$parsewhitespace();while(S!==J){b.push(S);S=peg$parsewhitespace()}rt--;if(b===J){S=J;if(rt===0){peg$fail(We)}}return b}function peg$parsewhitespace(){var S;S=peg$parseNewLine();if(S===J){if(qe.test(b.charAt(ze))){S=b.charAt(ze);ze++}else{S=J;if(rt===0){peg$fail(He)}}}return S}function peg$parseNonLine(){var b,S,ee;b=ze;S=ze;rt++;ee=peg$parseNewLine();rt--;if(ee===J){S=void 0}else{ze=S;S=J}if(S!==J){ee=peg$parseChar();if(ee!==J){Qe=b;S=peg$c53(ee);b=S}else{ze=b;b=J}}else{ze=b;b=J}return b}function peg$parseLineTerminator(){var S;S=peg$parseNewLine();if(S===J){if(b.charCodeAt(ze)===59){S=ue;ze++}else{S=J;if(rt===0){peg$fail(ce)}}}return S}function peg$parseNewLine(){var S;if(Ke.test(b.charAt(ze))){S=b.charAt(ze);ze++}else{S=J;if(rt===0){peg$fail(Ye)}}return S}function peg$parseChar(){var S;if(b.length>ze){S=b.charAt(ze);ze++}else{S=J;if(rt===0){peg$fail(Oe)}}return S}nt=te();if(nt!==J&&ze===b.length){return nt}else{if(nt!==J&&ze<b.length){peg$fail(peg$endExpectation())}throw peg$buildStructuredError(et,Ze<b.length?b.charAt(Ze):null,Ze<b.length?peg$computeLocation(Ze,Ze+1):peg$computeLocation(Ze,Ze))}}b.exports={SyntaxError:peg$SyntaxError,parse:peg$parse}},42470:(b,S,J)=>{var ee=J(71017),te=J(73837);var re='"<group>"',ne="BUILT_PRODUCTS_DIR",ie=4,oe="Resources",se="unknown";var ae={a:"archive.ar",app:"wrapper.application",appex:"wrapper.app-extension",bundle:"wrapper.plug-in",dylib:"compiled.mach-o.dylib",framework:"wrapper.framework",h:"sourcecode.c.h",m:"sourcecode.c.objc",markdown:"text",mdimporter:"wrapper.cfbundle",octest:"wrapper.cfbundle",pch:"sourcecode.c.h",plist:"text.plist.xml",sh:"text.script.sh",swift:"sourcecode.swift",tbd:"sourcecode.text-based-dylib-definition",xcassets:"folder.assetcatalog",xcconfig:"text.xcconfig",xcdatamodel:"wrapper.xcdatamodel",xcodeproj:"wrapper.pb-project",xctest:"wrapper.cfbundle",xib:"file.xib",strings:"text.plist.strings"},ue={"archive.ar":"Frameworks","compiled.mach-o.dylib":"Frameworks","sourcecode.text-based-dylib-definition":"Frameworks","wrapper.framework":"Frameworks","embedded.framework":"Embed Frameworks","sourcecode.c.h":"Resources","sourcecode.c.objc":"Sources","sourcecode.swift":"Sources"},ce={"compiled.mach-o.dylib":"usr/lib/","sourcecode.text-based-dylib-definition":"usr/lib/","wrapper.framework":"System/Library/Frameworks/"},le={"compiled.mach-o.dylib":"SDKROOT","sourcecode.text-based-dylib-definition":"SDKROOT","wrapper.framework":"SDKROOT"},pe={"sourcecode.c.h":4,"sourcecode.c.h":4,"sourcecode.c.objc":4,"sourcecode.swift":4,text:4,"text.plist.xml":4,"text.script.sh":4,"text.xcconfig":4,"text.plist.strings":4};function unquoted(b){return b==null?"":b.replace(/(^")|("$)/g,"")}function detectType(b){var S=ee.extname(b).substring(1),J=ae[unquoted(S)];if(!J){return se}return J}function defaultExtension(b){var S=b.lastKnownFileType&&b.lastKnownFileType!=se?b.lastKnownFileType:b.explicitFileType;for(var J in ae){if(ae.hasOwnProperty(unquoted(J))){if(ae[unquoted(J)]===unquoted(S))return J}}}function defaultEncoding(b){var S=b.lastKnownFileType||b.explicitFileType,J=pe[unquoted(S)];if(J){return J}}function detectGroup(b,S){var J=ee.extname(b.basename).substring(1),te=b.lastKnownFileType||b.explicitFileType,re=ue[unquoted(te)];if(J==="xcdatamodeld"){return"Sources"}if(S.customFramework&&S.embed){return ue["embedded.framework"]}if(!re){return oe}return re}function detectSourcetree(b){var S=b.lastKnownFileType||b.explicitFileType,J=le[unquoted(S)];if(b.explicitFileType){return ne}if(b.customFramework){return re}if(!J){return re}return J}function defaultPath(b,S){var J=b.lastKnownFileType||b.explicitFileType,te=ce[unquoted(J)];if(b.customFramework){return S}if(te){return ee.join(te,ee.basename(S))}return S}function defaultGroup(b){var S=ue[b.lastKnownFileType];if(!S){return oe}return defaultGroup}function pbxFile(b,S){var S=S||{};this.basename=ee.basename(b);this.lastKnownFileType=S.lastKnownFileType||detectType(b);this.group=detectGroup(this,S);if(S.customFramework==true){this.customFramework=true;this.dirname=ee.dirname(b).replace(/\\/g,"/")}this.path=defaultPath(this,b).replace(/\\/g,"/");this.fileEncoding=this.defaultEncoding=S.defaultEncoding||defaultEncoding(this);if(S.explicitFileType){this.explicitFileType=S.explicitFileType;this.basename=this.basename+"."+defaultExtension(this);delete this.path;delete this.lastKnownFileType;delete this.group;delete this.defaultEncoding}this.sourceTree=S.sourceTree||detectSourcetree(this);this.includeInIndex=0;if(S.weak&&S.weak===true)this.settings={ATTRIBUTES:["Weak"]};if(S.compilerFlags){if(!this.settings)this.settings={};this.settings.COMPILER_FLAGS=te.format('"%s"',S.compilerFlags)}if(S.embed&&S.sign){if(!this.settings)this.settings={};if(!this.settings.ATTRIBUTES)this.settings.ATTRIBUTES=[];this.settings.ATTRIBUTES.push("CodeSignOnCopy")}}b.exports=pbxFile},3854:(b,S,J)=>{var ee=J(73837),te=ee.format,re=J(82361).EventEmitter,ne=J(71017),ie=J(87265),oe=J(32081).fork,se=J(32704),ae=J(42470),ue=J(57147),ce=J(11521),le=J(51735),pe=/_comment$/;function pbxProject(b){if(!(this instanceof pbxProject))return new pbxProject(b);this.filepath=ne.resolve(b)}ee.inherits(pbxProject,re);pbxProject.prototype.parse=function(b){var S=oe(J.ab+"parseJob.js",[this.filepath]);S.on("message",function(b){if(b.name=="SyntaxError"||b.code){this.emit("error",b)}else{this.hash=b;this.emit("end",null,b)}}.bind(this));if(b){this.on("error",b);this.on("end",b)}return this};pbxProject.prototype.parseSync=function(){var b=ue.readFileSync(this.filepath,"utf-8");this.hash=ce.parse(b);return this};pbxProject.prototype.writeSync=function(b){this.writer=new se(this.hash,b);return this.writer.writeSync()};pbxProject.prototype.allUuids=function(){var b=this.hash.project.objects,S=[],J;for(key in b){J=b[key];S=S.concat(Object.keys(J))}S=S.filter((function(b){return!pe.test(b)&&b.length==24}));return S};pbxProject.prototype.generateUuid=function(){var b=ie.v4().replace(/-/g,"").substr(0,24).toUpperCase();if(this.allUuids().indexOf(b)>=0){return this.generateUuid()}else{return b}};pbxProject.prototype.addPluginFile=function(b,S){var J=new ae(b,S);J.plugin=true;correctForPluginsPath(J,this);if(this.hasFile(J.path))return null;J.fileRef=this.generateUuid();this.addToPbxFileReferenceSection(J);this.addToPluginsPbxGroup(J);return J};pbxProject.prototype.removePluginFile=function(b,S){var J=new ae(b,S);correctForPluginsPath(J,this);this.removeFromPbxFileReferenceSection(J);this.removeFromPluginsPbxGroup(J);return J};pbxProject.prototype.addProductFile=function(b,S){var J=new ae(b,S);J.includeInIndex=0;J.fileRef=this.generateUuid();J.target=S?S.target:undefined;J.group=S?S.group:undefined;J.uuid=this.generateUuid();J.path=J.basename;this.addToPbxFileReferenceSection(J);this.addToProductsPbxGroup(J);return J};pbxProject.prototype.removeProductFile=function(b,S){var J=new ae(b,S);this.removeFromProductsPbxGroup(J);return J};pbxProject.prototype.addSourceFile=function(b,S,J){var ee;if(J){ee=this.addFile(b,J,S)}else{ee=this.addPluginFile(b,S)}if(!ee)return false;ee.target=S?S.target:undefined;ee.uuid=this.generateUuid();this.addToPbxBuildFileSection(ee);this.addToPbxSourcesBuildPhase(ee);return ee};pbxProject.prototype.removeSourceFile=function(b,S,J){var ee;if(J){ee=this.removeFile(b,J,S)}else{ee=this.removePluginFile(b,S)}ee.target=S?S.target:undefined;this.removeFromPbxBuildFileSection(ee);this.removeFromPbxSourcesBuildPhase(ee);return ee};pbxProject.prototype.addHeaderFile=function(b,S,J){if(J){return this.addFile(b,J,S)}else{return this.addPluginFile(b,S)}};pbxProject.prototype.removeHeaderFile=function(b,S,J){if(J){return this.removeFile(b,J,S)}else{return this.removePluginFile(b,S)}};pbxProject.prototype.addResourceFile=function(b,S,J){S=S||{};var ee;if(S.plugin){ee=this.addPluginFile(b,S);if(!ee)return false}else{ee=new ae(b,S);if(this.hasFile(ee.path))return false}ee.uuid=this.generateUuid();ee.target=S?S.target:undefined;if(!S.plugin){correctForResourcesPath(ee,this);ee.fileRef=this.generateUuid()}if(!S.variantGroup){this.addToPbxBuildFileSection(ee);this.addToPbxResourcesBuildPhase(ee)}if(!S.plugin){this.addToPbxFileReferenceSection(ee);if(J){if(this.getPBXGroupByKey(J)){this.addToPbxGroup(ee,J)}else if(this.getPBXVariantGroupByKey(J)){this.addToPbxVariantGroup(ee,J)}}else{this.addToResourcesPbxGroup(ee)}}return ee};pbxProject.prototype.removeResourceFile=function(b,S,J){var ee=new ae(b,S);ee.target=S?S.target:undefined;correctForResourcesPath(ee,this);this.removeFromPbxBuildFileSection(ee);this.removeFromPbxFileReferenceSection(ee);if(J){if(this.getPBXGroupByKey(J)){this.removeFromPbxGroup(ee,J)}else if(this.getPBXVariantGroupByKey(J)){this.removeFromPbxVariantGroup(ee,J)}}else{this.removeFromResourcesPbxGroup(ee)}this.removeFromPbxResourcesBuildPhase(ee);return ee};pbxProject.prototype.addFramework=function(b,S){var J=S&&S.customFramework==true;var ee=!S||(S.link==undefined||S.link);var te=S&&S.embed;if(S){delete S.embed}var re=new ae(b,S);re.uuid=this.generateUuid();re.fileRef=this.generateUuid();re.target=S?S.target:undefined;if(this.hasFile(re.path))return false;this.addToPbxBuildFileSection(re);this.addToPbxFileReferenceSection(re);this.addToFrameworksPbxGroup(re);if(ee){this.addToPbxFrameworksBuildPhase(re)}if(J){this.addToFrameworkSearchPaths(re);if(te){S.embed=te;var ne=new ae(b,S);ne.uuid=this.generateUuid();ne.fileRef=re.fileRef;this.addToPbxBuildFileSection(ne);this.addToPbxEmbedFrameworksBuildPhase(ne);return ne}}return re};pbxProject.prototype.removeFramework=function(b,S){var J=S&&S.embed;if(S){delete S.embed}var ee=new ae(b,S);ee.target=S?S.target:undefined;this.removeFromPbxBuildFileSection(ee);this.removeFromPbxFileReferenceSection(ee);this.removeFromFrameworksPbxGroup(ee);this.removeFromPbxFrameworksBuildPhase(ee);if(S&&S.customFramework){this.removeFromFrameworkSearchPaths(ee)}S=S||{};S.embed=true;var te=new ae(b,S);te.fileRef=ee.fileRef;this.removeFromPbxBuildFileSection(te);this.removeFromPbxEmbedFrameworksBuildPhase(te);return ee};pbxProject.prototype.addCopyfile=function(b,S){var J=new ae(b,S);if(this.hasFile(J.path)){J=this.hasFile(J.path)}J.fileRef=J.uuid=this.generateUuid();J.target=S?S.target:undefined;this.addToPbxBuildFileSection(J);this.addToPbxFileReferenceSection(J);this.addToPbxCopyfilesBuildPhase(J);return J};pbxProject.prototype.pbxCopyfilesBuildPhaseObj=function(b){return this.buildPhaseObject("PBXCopyFilesBuildPhase","Copy Files",b)};pbxProject.prototype.addToPbxCopyfilesBuildPhase=function(b){var S=this.buildPhaseObject("PBXCopyFilesBuildPhase","Copy Files",b.target);S.files.push(pbxBuildPhaseObj(b))};pbxProject.prototype.removeCopyfile=function(b,S){var J=new ae(b,S);J.target=S?S.target:undefined;this.removeFromPbxBuildFileSection(J);this.removeFromPbxFileReferenceSection(J);this.removeFromPbxCopyfilesBuildPhase(J);return J};pbxProject.prototype.removeFromPbxCopyfilesBuildPhase=function(b){var S=this.pbxCopyfilesBuildPhaseObj(b.target);for(i in S.files){if(S.files[i].comment==longComment(b)){S.files.splice(i,1);break}}};pbxProject.prototype.addStaticLibrary=function(b,S){S=S||{};var J;if(S.plugin){J=this.addPluginFile(b,S);if(!J)return false}else{J=new ae(b,S);if(this.hasFile(J.path))return false}J.uuid=this.generateUuid();J.target=S?S.target:undefined;if(!S.plugin){J.fileRef=this.generateUuid();this.addToPbxFileReferenceSection(J)}this.addToPbxBuildFileSection(J);this.addToPbxFrameworksBuildPhase(J);this.addToLibrarySearchPaths(J);return J};pbxProject.prototype.addToPbxBuildFileSection=function(b){var S=te("%s_comment",b.uuid);this.pbxBuildFileSection()[b.uuid]=pbxBuildFileObj(b);this.pbxBuildFileSection()[S]=pbxBuildFileComment(b)};pbxProject.prototype.removeFromPbxBuildFileSection=function(b){var S;for(S in this.pbxBuildFileSection()){if(this.pbxBuildFileSection()[S].fileRef_comment==b.basename){b.uuid=S;delete this.pbxBuildFileSection()[S];var J=te("%s_comment",S);delete this.pbxBuildFileSection()[J]}}};pbxProject.prototype.addPbxGroup=function(b,S,J,ee){var re=this.hash.project.objects["PBXGroup"],ne=this.generateUuid(),ie=te("%s_comment",ne),oe={isa:"PBXGroup",children:[],name:S,path:J,sourceTree:ee?ee:'"<group>"'},se=this.pbxFileReferenceSection(),ue={};for(var ce in se){if(!pe.test(ce))continue;var le=ce.split(pe)[0],fe=se[le];ue[fe.path]={fileRef:le,basename:se[ce]}}for(var de=0;de<b.length;de++){var he=b[de],me='"'+he+'"';if(ue[he]){oe.children.push(pbxGroupChild(ue[he]));continue}else if(ue[me]){oe.children.push(pbxGroupChild(ue[me]));continue}var ge=new ae(he);ge.uuid=this.generateUuid();ge.fileRef=this.generateUuid();this.addToPbxFileReferenceSection(ge);this.addToPbxBuildFileSection(ge);oe.children.push(pbxGroupChild(ge))}if(re){re[ne]=oe;re[ie]=S}return{uuid:ne,pbxGroup:oe}};pbxProject.prototype.removePbxGroup=function(b){var S=this.hash.project.objects["PBXGroup"],J,ee;for(J in S){if(!pe.test(J))continue;if(S[J]==b){ee=J.split(pe)[0];delete S[ee]}}};pbxProject.prototype.addToPbxProjectSection=function(b){var S={value:b.uuid,comment:pbxNativeTargetComment(b.pbxNativeTarget)};this.pbxProjectSection()[this.getFirstProject()["uuid"]]["targets"].push(S)};pbxProject.prototype.addToPbxNativeTargetSection=function(b){var S=te("%s_comment",b.uuid);this.pbxNativeTargetSection()[b.uuid]=b.pbxNativeTarget;this.pbxNativeTargetSection()[S]=b.pbxNativeTarget.name};pbxProject.prototype.addToPbxFileReferenceSection=function(b){var S=te("%s_comment",b.fileRef);this.pbxFileReferenceSection()[b.fileRef]=pbxFileReferenceObj(b);this.pbxFileReferenceSection()[S]=pbxFileReferenceComment(b)};pbxProject.prototype.removeFromPbxFileReferenceSection=function(b){var S;var J=pbxFileReferenceObj(b);for(S in this.pbxFileReferenceSection()){if(this.pbxFileReferenceSection()[S].name==J.name||'"'+this.pbxFileReferenceSection()[S].name+'"'==J.name||this.pbxFileReferenceSection()[S].path==J.path||'"'+this.pbxFileReferenceSection()[S].path+'"'==J.path){b.fileRef=b.uuid=S;delete this.pbxFileReferenceSection()[S];break}}var ee=te("%s_comment",b.fileRef);if(this.pbxFileReferenceSection()[ee]!=undefined){delete this.pbxFileReferenceSection()[ee]}return b};pbxProject.prototype.addToXcVersionGroupSection=function(b){if(!b.models||!b.currentModel){throw new Error("Cannot create a XCVersionGroup section from not a data model document file")}var S=te("%s_comment",b.fileRef);if(!this.xcVersionGroupSection()[b.fileRef]){this.xcVersionGroupSection()[b.fileRef]={isa:"XCVersionGroup",children:b.models.map((function(b){return b.fileRef})),currentVersion:b.currentModel.fileRef,name:ne.basename(b.path),path:b.path,sourceTree:'"<group>"',versionGroupType:"wrapper.xcdatamodel"};this.xcVersionGroupSection()[S]=ne.basename(b.path)}};pbxProject.prototype.addToPluginsPbxGroup=function(b){var S=this.pbxGroupByName("Plugins");if(!S){this.addPbxGroup([b.path],"Plugins")}else{S.children.push(pbxGroupChild(b))}};pbxProject.prototype.removeFromPluginsPbxGroup=function(b){if(!this.pbxGroupByName("Plugins")){return null}var S=this.pbxGroupByName("Plugins").children,J;for(J in S){if(pbxGroupChild(b).value==S[J].value&&pbxGroupChild(b).comment==S[J].comment){S.splice(J,1);break}}};pbxProject.prototype.addToResourcesPbxGroup=function(b){var S=this.pbxGroupByName("Resources");if(!S){this.addPbxGroup([b.path],"Resources")}else{S.children.push(pbxGroupChild(b))}};pbxProject.prototype.removeFromResourcesPbxGroup=function(b){if(!this.pbxGroupByName("Resources")){return null}var S=this.pbxGroupByName("Resources").children,J;for(J in S){if(pbxGroupChild(b).value==S[J].value&&pbxGroupChild(b).comment==S[J].comment){S.splice(J,1);break}}};pbxProject.prototype.addToFrameworksPbxGroup=function(b){var S=this.pbxGroupByName("Frameworks");if(!S){this.addPbxGroup([b.path],"Frameworks")}else{S.children.push(pbxGroupChild(b))}};pbxProject.prototype.removeFromFrameworksPbxGroup=function(b){if(!this.pbxGroupByName("Frameworks")){return null}var S=this.pbxGroupByName("Frameworks").children;for(i in S){if(pbxGroupChild(b).value==S[i].value&&pbxGroupChild(b).comment==S[i].comment){S.splice(i,1);break}}};pbxProject.prototype.addToPbxEmbedFrameworksBuildPhase=function(b){var S=this.pbxEmbedFrameworksBuildPhaseObj(b.target);if(S){S.files.push(pbxBuildPhaseObj(b))}};pbxProject.prototype.removeFromPbxEmbedFrameworksBuildPhase=function(b){var S=this.pbxEmbedFrameworksBuildPhaseObj(b.target);if(S){var J=[];for(i in S.files){if(S.files[i].comment!=longComment(b)){J.push(S.files[i])}}S.files=J}};pbxProject.prototype.addToProductsPbxGroup=function(b){var S=this.pbxGroupByName("Products");if(!S){this.addPbxGroup([b.path],"Products")}else{S.children.push(pbxGroupChild(b))}};pbxProject.prototype.removeFromProductsPbxGroup=function(b){if(!this.pbxGroupByName("Products")){return null}var S=this.pbxGroupByName("Products").children,J;for(J in S){if(pbxGroupChild(b).value==S[J].value&&pbxGroupChild(b).comment==S[J].comment){S.splice(J,1);break}}};pbxProject.prototype.addToPbxSourcesBuildPhase=function(b){var S=this.pbxSourcesBuildPhaseObj(b.target);S.files.push(pbxBuildPhaseObj(b))};pbxProject.prototype.removeFromPbxSourcesBuildPhase=function(b){var S=this.pbxSourcesBuildPhaseObj(b.target),J;for(J in S.files){if(S.files[J].comment==longComment(b)){S.files.splice(J,1);break}}};pbxProject.prototype.addToPbxResourcesBuildPhase=function(b){var S=this.pbxResourcesBuildPhaseObj(b.target);S.files.push(pbxBuildPhaseObj(b))};pbxProject.prototype.removeFromPbxResourcesBuildPhase=function(b){var S=this.pbxResourcesBuildPhaseObj(b.target),J;for(J in S.files){if(S.files[J].comment==longComment(b)){S.files.splice(J,1);break}}};pbxProject.prototype.addToPbxFrameworksBuildPhase=function(b){var S=this.pbxFrameworksBuildPhaseObj(b.target);S.files.push(pbxBuildPhaseObj(b))};pbxProject.prototype.removeFromPbxFrameworksBuildPhase=function(b){var S=this.pbxFrameworksBuildPhaseObj(b.target);for(i in S.files){if(S.files[i].comment==longComment(b)){S.files.splice(i,1);break}}};pbxProject.prototype.addXCConfigurationList=function(b,S,J){var ee=this.pbxXCBuildConfigurationSection(),re=this.pbxXCConfigurationList(),ne=this.generateUuid(),ie=te("%s_comment",ne),oe={isa:"XCConfigurationList",buildConfigurations:[],defaultConfigurationIsVisible:0,defaultConfigurationName:S};for(var se=0;se<b.length;se++){var ae=b[se],ue=this.generateUuid(),ce=te("%s_comment",ue);ee[ue]=ae;ee[ce]=ae.name;oe.buildConfigurations.push({value:ue,comment:ae.name})}if(re){re[ne]=oe;re[ie]=J}return{uuid:ne,xcConfigurationList:oe}};pbxProject.prototype.addTargetDependency=function(b,S){if(!b)return undefined;var J=this.pbxNativeTargetSection();if(typeof J[b]=="undefined")throw new Error("Invalid target: "+b);for(var ee=0;ee<S.length;ee++){var re=S[ee];if(typeof J[re]=="undefined")throw new Error("Invalid target: "+re)}var ne="PBXTargetDependency",ie="PBXContainerItemProxy",oe=this.hash.project.objects[ne],se=this.hash.project.objects[ie];for(var ee=0;ee<S.length;ee++){var ae=S[ee],ue=te("%s_comment",ae),ce=this.generateUuid(),le=te("%s_comment",ce),pe=this.generateUuid(),fe=te("%s_comment",pe),de={isa:ie,containerPortal:this.hash.project["rootObject"],containerPortal_comment:this.hash.project["rootObject_comment"],proxyType:1,remoteGlobalIDString:ae,remoteInfo:J[ae].name},he={isa:ne,target:ae,target_comment:J[ue],targetProxy:pe,targetProxy_comment:ie};if(se&&oe){se[pe]=de;se[fe]=ie;oe[ce]=he;oe[le]=ne;J[b].dependencies.push({value:ce,comment:ne})}}return{uuid:b,target:J[b]}};pbxProject.prototype.addBuildPhase=function(b,S,J,ee,re,ne){var ie,oe=this.pbxFileReferenceSection(),se=this.pbxBuildFileSection(),ue=this.generateUuid(),ce=ee||this.getFirstTarget().uuid,le=te("%s_comment",ue),fe={isa:S,buildActionMask:2147483647,files:[],runOnlyForDeploymentPostprocessing:0},de={};if(S==="PBXCopyFilesBuildPhase"){fe=pbxCopyFilesBuildPhaseObj(fe,re,ne,J)}else if(S==="PBXShellScriptBuildPhase"){fe=pbxShellScriptBuildPhaseObj(fe,re,J)}if(!this.hash.project.objects[S]){this.hash.project.objects[S]=new Object}if(!this.hash.project.objects[S][ue]){this.hash.project.objects[S][ue]=fe;this.hash.project.objects[S][le]=J}if(this.hash.project.objects["PBXNativeTarget"][ce]["buildPhases"]){this.hash.project.objects["PBXNativeTarget"][ce]["buildPhases"].push({value:ue,comment:J})}for(var he in se){if(!pe.test(he))continue;var me=he.split(pe)[0],ge=se[me];fileReference=oe[ge.fileRef];if(!fileReference)continue;var ye=new ae(fileReference.path);de[fileReference.path]={uuid:me,basename:ye.basename,group:ye.group}}for(var ve=0;ve<b.length;ve++){var Te=b[ve],be='"'+Te+'"',_e=new ae(Te);if(de[Te]){fe.files.push(pbxBuildPhaseObj(de[Te]));continue}else if(de[be]){fe.files.push(pbxBuildPhaseObj(de[be]));continue}_e.uuid=this.generateUuid();_e.fileRef=this.generateUuid();this.addToPbxFileReferenceSection(_e);this.addToPbxBuildFileSection(_e);fe.files.push(pbxBuildPhaseObj(_e))}if(ie){ie[ue]=fe;ie[le]=J}return{uuid:ue,buildPhase:fe}};pbxProject.prototype.pbxProjectSection=function(){return this.hash.project.objects["PBXProject"]};pbxProject.prototype.pbxBuildFileSection=function(){return this.hash.project.objects["PBXBuildFile"]};pbxProject.prototype.pbxXCBuildConfigurationSection=function(){return this.hash.project.objects["XCBuildConfiguration"]};pbxProject.prototype.pbxFileReferenceSection=function(){return this.hash.project.objects["PBXFileReference"]};pbxProject.prototype.pbxNativeTargetSection=function(){return this.hash.project.objects["PBXNativeTarget"]};pbxProject.prototype.xcVersionGroupSection=function(){if(typeof this.hash.project.objects["XCVersionGroup"]!=="object"){this.hash.project.objects["XCVersionGroup"]={}}return this.hash.project.objects["XCVersionGroup"]};pbxProject.prototype.pbxXCConfigurationList=function(){return this.hash.project.objects["XCConfigurationList"]};pbxProject.prototype.pbxGroupByName=function(b){var S=this.hash.project.objects["PBXGroup"],J,ee;for(J in S){if(!pe.test(J))continue;if(S[J]==b){ee=J.split(pe)[0];return S[ee]}}return null};pbxProject.prototype.pbxTargetByName=function(b){return this.pbxItemByComment(b,"PBXNativeTarget")};pbxProject.prototype.findTargetKey=function(b){var S=this.hash.project.objects["PBXNativeTarget"];for(var J in S){if(pe.test(J))continue;var ee=S[J];if(ee.name===b){return J}}return null};pbxProject.prototype.pbxItemByComment=function(b,S){var J=this.hash.project.objects[S],ee,te;for(ee in J){if(!pe.test(ee))continue;if(J[ee]==b){te=ee.split(pe)[0];return J[te]}}return null};pbxProject.prototype.pbxSourcesBuildPhaseObj=function(b){return this.buildPhaseObject("PBXSourcesBuildPhase","Sources",b)};pbxProject.prototype.pbxResourcesBuildPhaseObj=function(b){return this.buildPhaseObject("PBXResourcesBuildPhase","Resources",b)};pbxProject.prototype.pbxFrameworksBuildPhaseObj=function(b){return this.buildPhaseObject("PBXFrameworksBuildPhase","Frameworks",b)};pbxProject.prototype.pbxEmbedFrameworksBuildPhaseObj=function(b){return this.buildPhaseObject("PBXCopyFilesBuildPhase","Embed Frameworks",b)};pbxProject.prototype.buildPhase=function(b,S){if(!S)return undefined;var J=this.pbxNativeTargetSection();if(typeof J[S]=="undefined")throw new Error("Invalid target: "+S);var ee=J[S];var te=ee.buildPhases;for(var re in te){var ne=te[re];if(ne.comment==b)return ne.value+"_comment"}};pbxProject.prototype.buildPhaseObject=function(b,S,J){var ee=this.hash.project.objects[b],te,re,ne;var ie=this.buildPhase(S,J);for(ne in ee){if(!pe.test(ne))continue;if(ie&&ie!=ne)continue;if(ee[ne]==S){re=ne.split(pe)[0];return ee[re]}}return null};pbxProject.prototype.addBuildProperty=function(b,S,J){var ee=nonComments(this.pbxXCBuildConfigurationSection()),te,re;for(te in ee){re=ee[te];if(!J||re.name===J){re.buildSettings[b]=S}}};pbxProject.prototype.removeBuildProperty=function(b,S){var J=nonComments(this.pbxXCBuildConfigurationSection()),ee,te;for(ee in J){te=J[ee];if(te.buildSettings[b]&&!S||te.name===S){delete te.buildSettings[b]}}};pbxProject.prototype.updateBuildProperty=function(b,S,J,ee){let te=[];if(ee){const b=this.pbxTargetByName(ee);const S=b&&b.buildConfigurationList;const J=this.pbxXCConfigurationList();for(const b in J){if(!pe.test(b)&&S===b){const S=J[b].buildConfigurations;for(const b of S){te.push(b.value)}break}}}var re=this.pbxXCBuildConfigurationSection();for(var ne in re){if(!pe.test(ne)){if(ee&&!te.includes(ne))continue;var ie=re[ne];if(J&&ie.name===J||!J){ie.buildSettings[b]=S}}}};pbxProject.prototype.updateProductName=function(b){this.updateBuildProperty("PRODUCT_NAME",'"'+b+'"')};pbxProject.prototype.removeFromFrameworkSearchPaths=function(b){var S=nonComments(this.pbxXCBuildConfigurationSection()),J='"$(inherited)"',ee="FRAMEWORK_SEARCH_PATHS",te,re,ne;var ie=searchPathForFile(b,this);for(te in S){re=S[te].buildSettings;if(unquote(re["PRODUCT_NAME"])!=this.productName)continue;ne=re[ee];if(ne&&Array.isArray(ne)){var oe=ne.filter((function(b){return b.indexOf(ie)>-1}));oe.forEach((function(b){var S=ne.indexOf(b);ne.splice(S,1)}))}}};pbxProject.prototype.addToFrameworkSearchPaths=function(b){var S=nonComments(this.pbxXCBuildConfigurationSection()),J='"$(inherited)"',ee,te,re;for(ee in S){te=S[ee].buildSettings;if(unquote(te["PRODUCT_NAME"])!=this.productName)continue;if(!te["FRAMEWORK_SEARCH_PATHS"]||te["FRAMEWORK_SEARCH_PATHS"]===J){te["FRAMEWORK_SEARCH_PATHS"]=[J]}te["FRAMEWORK_SEARCH_PATHS"].push(searchPathForFile(b,this))}};pbxProject.prototype.removeFromLibrarySearchPaths=function(b){var S=nonComments(this.pbxXCBuildConfigurationSection()),J='"$(inherited)"',ee="LIBRARY_SEARCH_PATHS",te,re,ne;var ie=searchPathForFile(b,this);for(te in S){re=S[te].buildSettings;if(unquote(re["PRODUCT_NAME"])!=this.productName)continue;ne=re[ee];if(ne&&Array.isArray(ne)){var oe=ne.filter((function(b){return b.indexOf(ie)>-1}));oe.forEach((function(b){var S=ne.indexOf(b);ne.splice(S,1)}))}}};pbxProject.prototype.addToLibrarySearchPaths=function(b){var S=nonComments(this.pbxXCBuildConfigurationSection()),J='"$(inherited)"',ee,te,re;for(ee in S){te=S[ee].buildSettings;if(unquote(te["PRODUCT_NAME"])!=this.productName)continue;if(!te["LIBRARY_SEARCH_PATHS"]||te["LIBRARY_SEARCH_PATHS"]===J){te["LIBRARY_SEARCH_PATHS"]=[J]}if(typeof b==="string"){te["LIBRARY_SEARCH_PATHS"].push(b)}else{te["LIBRARY_SEARCH_PATHS"].push(searchPathForFile(b,this))}}};pbxProject.prototype.removeFromHeaderSearchPaths=function(b){var S=nonComments(this.pbxXCBuildConfigurationSection()),J='"$(inherited)"',ee="HEADER_SEARCH_PATHS",te,re,ne;var ie=searchPathForFile(b,this);for(te in S){re=S[te].buildSettings;if(unquote(re["PRODUCT_NAME"])!=this.productName)continue;if(re[ee]){var oe=re[ee].filter((function(b){return b.indexOf(ie)>-1}));oe.forEach((function(b){var S=re[ee].indexOf(b);re[ee].splice(S,1)}))}}};pbxProject.prototype.addToHeaderSearchPaths=function(b){var S=nonComments(this.pbxXCBuildConfigurationSection()),J='"$(inherited)"',ee,te,re;for(ee in S){te=S[ee].buildSettings;if(unquote(te["PRODUCT_NAME"])!=this.productName)continue;if(!te["HEADER_SEARCH_PATHS"]){te["HEADER_SEARCH_PATHS"]=[J]}if(typeof b==="string"){te["HEADER_SEARCH_PATHS"].push(b)}else{te["HEADER_SEARCH_PATHS"].push(searchPathForFile(b,this))}}};pbxProject.prototype.addToOtherLinkerFlags=function(b){var S=nonComments(this.pbxXCBuildConfigurationSection()),J='"$(inherited)"',ee="OTHER_LDFLAGS",te,re;for(te in S){re=S[te].buildSettings;if(unquote(re["PRODUCT_NAME"])!=this.productName)continue;if(!re[ee]||re[ee]===J){re[ee]=[J]}re[ee].push(b)}};pbxProject.prototype.removeFromOtherLinkerFlags=function(b){var S=nonComments(this.pbxXCBuildConfigurationSection()),J="OTHER_LDFLAGS",ee,te;for(ee in S){te=S[ee].buildSettings;if(unquote(te["PRODUCT_NAME"])!=this.productName){continue}if(te[J]){var re=te[J].filter((function(S){return S.indexOf(b)>-1}));re.forEach((function(b){var S=te[J].indexOf(b);te[J].splice(S,1)}))}}};pbxProject.prototype.addToBuildSettings=function(b,S){var J=nonComments(this.pbxXCBuildConfigurationSection()),ee,te;for(ee in J){te=J[ee].buildSettings;te[b]=S}};pbxProject.prototype.removeFromBuildSettings=function(b){var S=nonComments(this.pbxXCBuildConfigurationSection()),J,ee;for(J in S){ee=S[J].buildSettings;if(ee[b]){delete ee[b]}}};pbxProject.prototype.__defineGetter__("productName",(function(){var b=nonComments(this.pbxXCBuildConfigurationSection()),S,J;for(S in b){J=b[S].buildSettings["PRODUCT_NAME"];if(J){return unquote(J)}}}));pbxProject.prototype.hasFile=function(b){var S=nonComments(this.pbxFileReferenceSection()),J,ee;for(ee in S){J=S[ee];if(J.path==b||J.path=='"'+b+'"'){return J}}return false};pbxProject.prototype.addTarget=function(b,S,J,ee){var te=this.generateUuid(),re=S,ie=J||b,oe=b.trim(),se=ee;if(!oe){throw new Error("Target name missing.")}if(!re){throw new Error("Target type missing.")}if(!producttypeForTargettype(re)){throw new Error("Target type invalid: "+re)}var ae=[{name:"Debug",isa:"XCBuildConfiguration",buildSettings:{GCC_PREPROCESSOR_DEFINITIONS:['"DEBUG=1"','"$(inherited)"'],INFOPLIST_FILE:'"'+ne.join(ie,ie+"-Info.plist"+'"'),LD_RUNPATH_SEARCH_PATHS:'"$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"',PRODUCT_NAME:'"'+oe+'"',SKIP_INSTALL:"YES"}},{name:"Release",isa:"XCBuildConfiguration",buildSettings:{INFOPLIST_FILE:'"'+ne.join(ie,ie+"-Info.plist"+'"'),LD_RUNPATH_SEARCH_PATHS:'"$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"',PRODUCT_NAME:'"'+oe+'"',SKIP_INSTALL:"YES"}}];if(se){ae=ae.map((b=>{b.buildSettings.PRODUCT_BUNDLE_IDENTIFIER='"'+se+'"';return b}))}var ue=this.addXCConfigurationList(ae,"Release",'Build configuration list for PBXNativeTarget "'+oe+'"');var ce=oe,le=producttypeForTargettype(re),pe=filetypeForProducttype(le),fe=this.addProductFile(ce,{group:"Copy Files",target:te,explicitFileType:pe}),de=fe.basename;this.addToPbxBuildFileSection(fe);var he={uuid:te,pbxNativeTarget:{isa:"PBXNativeTarget",name:'"'+oe+'"',productName:'"'+oe+'"',productReference:fe.fileRef,productType:'"'+producttypeForTargettype(re)+'"',buildConfigurationList:ue.uuid,buildPhases:[],buildRules:[],dependencies:[]}};this.addToPbxNativeTargetSection(he);if(re==="app_extension"){this.addBuildPhase([],"PBXCopyFilesBuildPhase","Copy Files",this.getFirstTarget().uuid,re);this.addToPbxCopyfilesBuildPhase(fe)}else if(re==="watch2_app"){this.addBuildPhase([oe+".app"],"PBXCopyFilesBuildPhase","Embed Watch Content",this.getFirstTarget().uuid,re,'"$(CONTENTS_FOLDER_PATH)/Watch"')}else if(re==="watch2_extension"){var me=this.getTarget(producttypeForTargettype("watch2_app"));if(me){this.addBuildPhase([oe+".appex"],"PBXCopyFilesBuildPhase","Embed App Extensions",me.uuid,re)}}this.addToPbxProjectSection(he);if(re==="watch2_extension"){var me=this.getTarget(producttypeForTargettype("watch2_app"));if(me){this.addTargetDependency(me.uuid,[he.uuid])}}else{this.addTargetDependency(this.getFirstTarget().uuid,[he.uuid])}return he};function pbxBuildFileObj(b){var S=Object.create(null);S.isa="PBXBuildFile";S.fileRef=b.fileRef;S.fileRef_comment=b.basename;if(b.settings)S.settings=b.settings;return S}function pbxFileReferenceObj(b){var S={isa:"PBXFileReference",name:'"'+b.basename+'"',path:'"'+b.path.replace(/\\/g,"/")+'"',sourceTree:b.sourceTree,fileEncoding:b.fileEncoding,lastKnownFileType:b.lastKnownFileType,explicitFileType:b.explicitFileType,includeInIndex:b.includeInIndex};return S}function pbxGroupChild(b){var S=Object.create(null);S.value=b.fileRef;S.comment=b.basename;return S}function pbxBuildPhaseObj(b){var S=Object.create(null);S.value=b.uuid;S.comment=longComment(b);return S}function pbxCopyFilesBuildPhaseObj(b,S,J,ee){var te={application:"wrapper",app_extension:"plugins",bundle:"wrapper",command_line_tool:"wrapper",dynamic_library:"products_directory",framework:"shared_frameworks",frameworks:"frameworks",static_library:"products_directory",unit_test_bundle:"wrapper",watch_app:"wrapper",watch2_app:"products_directory",watch_extension:"plugins",watch2_extension:"plugins"};var re={absolute_path:0,executables:6,frameworks:10,java_resources:15,plugins:13,products_directory:16,resources:7,shared_frameworks:11,shared_support:12,wrapper:1,xpc_services:0};b.name='"'+ee+'"';b.dstPath=J||'""';b.dstSubfolderSpec=re[te[S]];return b}function pbxShellScriptBuildPhaseObj(b,S,J){b.name='"'+J+'"';b.inputPaths=S.inputPaths||[];b.outputPaths=S.outputPaths||[];b.shellPath=S.shellPath;b.shellScript='"'+S.shellScript.replace(/"/g,'\\"')+'"';return b}function pbxBuildFileComment(b){return longComment(b)}function pbxFileReferenceComment(b){return b.basename||ne.basename(b.path)}function pbxNativeTargetComment(b){return b.name}function longComment(b){return te("%s in %s",b.basename,b.group)}function correctForPluginsPath(b,S){return correctForPath(b,S,"Plugins")}function correctForResourcesPath(b,S){return correctForPath(b,S,"Resources")}function correctForFrameworksPath(b,S){return correctForPath(b,S,"Frameworks")}function correctForPath(b,S,J){var ee=new RegExp("^"+J+"[\\\\/]");if(S.pbxGroupByName(J).path)b.path=b.path.replace(ee,"");return b}function searchPathForFile(b,S){var J=S.pbxGroupByName("Plugins"),ee=J?J.path:null,te=ne.dirname(b.path);if(te=="."){te=""}else{te="/"+te}if(b.plugin&&ee){return'"\\"$(SRCROOT)/'+unquote(ee)+'\\""'}else if(b.customFramework&&b.dirname){return'"\\"'+b.dirname+'\\""'}else{return'"\\"$(SRCROOT)/'+S.productName+te+'\\""'}}function nonComments(b){var S=Object.keys(b),J={},ee=0;for(ee;ee<S.length;ee++){if(!pe.test(S[ee])){J[S[ee]]=b[S[ee]]}}return J}function unquote(b){if(b)return b.replace(/^"(.*)"$/,"$1")}function buildPhaseNameForIsa(b){BUILDPHASENAME_BY_ISA={PBXCopyFilesBuildPhase:"Copy Files",PBXResourcesBuildPhase:"Resources",PBXSourcesBuildPhase:"Sources",PBXFrameworksBuildPhase:"Frameworks"};return BUILDPHASENAME_BY_ISA[b]}function producttypeForTargettype(b){PRODUCTTYPE_BY_TARGETTYPE={application:"com.apple.product-type.application",app_extension:"com.apple.product-type.app-extension",bundle:"com.apple.product-type.bundle",command_line_tool:"com.apple.product-type.tool",dynamic_library:"com.apple.product-type.library.dynamic",framework:"com.apple.product-type.framework",static_library:"com.apple.product-type.library.static",unit_test_bundle:"com.apple.product-type.bundle.unit-test",watch_app:"com.apple.product-type.application.watchapp",watch2_app:"com.apple.product-type.application.watchapp2",watch_extension:"com.apple.product-type.watchkit-extension",watch2_extension:"com.apple.product-type.watchkit2-extension"};return PRODUCTTYPE_BY_TARGETTYPE[b]}function filetypeForProducttype(b){FILETYPE_BY_PRODUCTTYPE={"com.apple.product-type.application":'"wrapper.application"',"com.apple.product-type.app-extension":'"wrapper.app-extension"',"com.apple.product-type.bundle":'"wrapper.plug-in"',"com.apple.product-type.tool":'"compiled.mach-o.dylib"',"com.apple.product-type.library.dynamic":'"compiled.mach-o.dylib"',"com.apple.product-type.framework":'"wrapper.framework"',"com.apple.product-type.library.static":'"archive.ar"',"com.apple.product-type.bundle.unit-test":'"wrapper.cfbundle"',"com.apple.product-type.application.watchapp":'"wrapper.application"',"com.apple.product-type.application.watchapp2":'"wrapper.application"',"com.apple.product-type.watchkit-extension":'"wrapper.app-extension"',"com.apple.product-type.watchkit2-extension":'"wrapper.app-extension"'};return FILETYPE_BY_PRODUCTTYPE[b]}pbxProject.prototype.getFirstProject=function(){var b=this.pbxProjectSection();var S=Object.keys(b)[0];var J=b[S];return{uuid:S,firstProject:J}};pbxProject.prototype.getFirstTarget=function(){var b=this.getFirstProject()["firstProject"]["targets"][0].value;var S=this.pbxNativeTargetSection()[b];return{uuid:b,firstTarget:S}};pbxProject.prototype.getTarget=function(b){var S=this.getFirstProject()["firstProject"]["targets"];var J=this.pbxNativeTargetSection();for(var ee=0;ee<S.length;ee++){var te=S[ee];var re=te.value;if(J[re]["productType"]==='"'+b+'"'){var ne=this.pbxNativeTargetSection()[re];return{uuid:re,target:ne}}}return null};pbxProject.prototype.addToPbxGroupType=function(b,S,J){var ee=this.getPBXGroupByKeyAndType(S,J);if(ee&&ee.children!==undefined){if(typeof b==="string"){var te={value:b};if(this.getPBXGroupByKey(b)){te.comment=this.getPBXGroupByKey(b).name}else if(this.getPBXVariantGroupByKey(b)){te.comment=this.getPBXVariantGroupByKey(b).name}ee.children.push(te)}else{ee.children.push(pbxGroupChild(b))}}};pbxProject.prototype.addToPbxVariantGroup=function(b,S){this.addToPbxGroupType(b,S,"PBXVariantGroup")};pbxProject.prototype.addToPbxGroup=function(b,S){this.addToPbxGroupType(b,S,"PBXGroup")};pbxProject.prototype.pbxCreateGroupWithType=function(b,S,J){var ee={isa:'"'+J+'"',children:[],name:b,sourceTree:'"<group>"'};if(S)ee.path=S;var te=this.generateUuid();var re=te+"_comment";var ne=this.hash.project.objects[J];if(!ne){ne=this.hash.project.objects[J]=new Object}ne[re]=b;ne[te]=ee;return te};pbxProject.prototype.pbxCreateVariantGroup=function(b){return this.pbxCreateGroupWithType(b,undefined,"PBXVariantGroup")};pbxProject.prototype.pbxCreateGroup=function(b,S){return this.pbxCreateGroupWithType(b,S,"PBXGroup")};pbxProject.prototype.removeFromPbxGroupAndType=function(b,S,J){var ee=this.getPBXGroupByKeyAndType(S,J);if(ee){var te=ee.children,re;for(re in te){if(pbxGroupChild(b).value==te[re].value&&pbxGroupChild(b).comment==te[re].comment){te.splice(re,1);break}}}};pbxProject.prototype.removeFromPbxGroup=function(b,S){this.removeFromPbxGroupAndType(b,S,"PBXGroup")};pbxProject.prototype.removeFromPbxVariantGroup=function(b,S){this.removeFromPbxGroupAndType(b,S,"PBXVariantGroup")};pbxProject.prototype.getPBXGroupByKeyAndType=function(b,S){return this.hash.project.objects[S][b]};pbxProject.prototype.getPBXGroupByKey=function(b){return this.hash.project.objects["PBXGroup"][b]};pbxProject.prototype.getPBXVariantGroupByKey=function(b){return this.hash.project.objects["PBXVariantGroup"][b]};pbxProject.prototype.findPBXGroupKeyAndType=function(b,S){var J=this.hash.project.objects[S];var ee;for(var te in J){if(pe.test(te))continue;var re=J[te];if(b&&b.path&&b.name){if(b.path===re.path&&b.name===re.name){ee=te;break}}else if(b&&b.path){if(b.path===re.path){ee=te;break}}else if(b&&b.name){if(b.name===re.name){ee=te;break}}}return ee};pbxProject.prototype.findPBXGroupKey=function(b){return this.findPBXGroupKeyAndType(b,"PBXGroup")};pbxProject.prototype.findPBXVariantGroupKey=function(b){return this.findPBXGroupKeyAndType(b,"PBXVariantGroup")};pbxProject.prototype.addLocalizationVariantGroup=function(b){var S=this.pbxCreateVariantGroup(b);var J=this.findPBXGroupKey({name:"Resources"});this.addToPbxGroup(S,J);var ee={uuid:this.generateUuid(),fileRef:S,basename:b};this.addToPbxBuildFileSection(ee);this.addToPbxResourcesBuildPhase(ee);return ee};pbxProject.prototype.addKnownRegion=function(b){if(!this.pbxProjectSection()[this.getFirstProject()["uuid"]]["knownRegions"]){this.pbxProjectSection()[this.getFirstProject()["uuid"]]["knownRegions"]=[]}if(!this.hasKnownRegion(b)){this.pbxProjectSection()[this.getFirstProject()["uuid"]]["knownRegions"].push(b)}};pbxProject.prototype.removeKnownRegion=function(b){var S=this.pbxProjectSection()[this.getFirstProject()["uuid"]]["knownRegions"];if(S){for(var J=0;J<S.length;J++){if(S[J]===b){S.splice(J,1);break}}this.pbxProjectSection()[this.getFirstProject()["uuid"]]["knownRegions"]=S}};pbxProject.prototype.hasKnownRegion=function(b){var S=this.pbxProjectSection()[this.getFirstProject()["uuid"]]["knownRegions"];if(S){for(var J in S){if(S[J]===b){return true}}}return false};pbxProject.prototype.getPBXObject=function(b){return this.hash.project.objects[b]};pbxProject.prototype.addFile=function(b,S,J){var ee=new ae(b,J);if(this.hasFile(ee.path))return null;ee.fileRef=this.generateUuid();this.addToPbxFileReferenceSection(ee);if(this.getPBXGroupByKey(S)){this.addToPbxGroup(ee,S)}else if(this.getPBXVariantGroupByKey(S)){this.addToPbxVariantGroup(ee,S)}return ee};pbxProject.prototype.removeFile=function(b,S,J){var ee=new ae(b,J);this.removeFromPbxFileReferenceSection(ee);if(this.getPBXGroupByKey(S)){this.removeFromPbxGroup(ee,S)}else if(this.getPBXVariantGroupByKey(S)){this.removeFromPbxVariantGroup(ee,S)}return ee};pbxProject.prototype.getBuildProperty=function(b,S,J){var ee;let te=[];if(J){const b=this.pbxTargetByName(J);const S=b&&b.buildConfigurationList;const ee=this.pbxXCConfigurationList();for(const b in ee){if(!pe.test(b)&&S===b){const S=ee[b].buildConfigurations;for(const b of S){te.push(b.value)}break}}}var re=this.pbxXCBuildConfigurationSection();for(var ne in re){if(!pe.test(ne)){if(J&&!te.includes(ne))continue;var ie=re[ne];if(S&&ie.name===S||S===undefined){if(ie.buildSettings[b]!==undefined){ee=ie.buildSettings[b]}}}}return ee};pbxProject.prototype.getBuildConfigByName=function(b){var S={};var J=this.pbxXCBuildConfigurationSection();for(var ee in J){if(!pe.test(ee)){var te=J[ee];if(te.name===b){S[ee]=te}}}return S};pbxProject.prototype.addDataModelDocument=function(b,S,J){if(!S){S="Resources"}if(!this.getPBXGroupByKey(S)){S=this.findPBXGroupKey({name:S})}var ee=new ae(b,J);if(!ee||this.hasFile(ee.path))return null;ee.fileRef=this.generateUuid();this.addToPbxGroup(ee,S);if(!ee)return false;ee.target=J?J.target:undefined;ee.uuid=this.generateUuid();this.addToPbxBuildFileSection(ee);this.addToPbxSourcesBuildPhase(ee);ee.models=[];var te;var re=ue.readdirSync(ee.path);for(var ie in re){var oe=re[ie];var se=ne.join(b,oe);if(oe==".xccurrentversion"){te=le.readFileSync(se)._XCCurrentVersionName;continue}var ce=new ae(se);ce.fileRef=this.generateUuid();this.addToPbxFileReferenceSection(ce);ee.models.push(ce);if(te&&te===oe){ee.currentModel=ce}}if(!ee.currentModel){ee.currentModel=ee.models[0]}this.addToXcVersionGroupSection(ee);return ee};pbxProject.prototype.addTargetAttribute=function(b,S,J){var ee=this.getFirstProject()["firstProject"]["attributes"];if(ee["TargetAttributes"]===undefined){ee["TargetAttributes"]={}}J=J||this.getFirstTarget();if(ee["TargetAttributes"][J.uuid]===undefined){ee["TargetAttributes"][J.uuid]={}}ee["TargetAttributes"][J.uuid][b]=S};pbxProject.prototype.removeTargetAttribute=function(b,S){var J=this.getFirstProject()["firstProject"]["attributes"];S=S||this.getFirstTarget();if(J["TargetAttributes"]&&J["TargetAttributes"][S.uuid]){delete J["TargetAttributes"][S.uuid][b]}};b.exports=pbxProject},32704:(b,S,J)=>{var ee=J(3854),te=J(73837),re=te.format,ne="\t",ie=/_comment$/,oe=/^"(.*)"$/,se=J(82361).EventEmitter;function i(b){if(b<=0)return"";else return ne+i(b-1)}function comment(b,S){var J=S[b+"_comment"];if(J)return J;else return null}function isObject(b){return b===Object(b)}function isArray(b){return Array.isArray(b)}function pbxWriter(b,S){if(!S){S={}}if(S.omitEmptyValues===undefined){S.omitEmptyValues=false}this.contents=b;this.sync=false;this.indentLevel=0;this.omitEmptyValues=S.omitEmptyValues}te.inherits(pbxWriter,se);pbxWriter.prototype.write=function(b){var S=re.apply(null,arguments);if(this.sync){this.buffer+=re("%s%s",i(this.indentLevel),S)}else{}};pbxWriter.prototype.writeFlush=function(b){var S=this.indentLevel;this.indentLevel=0;this.write.apply(this,arguments);this.indentLevel=S};pbxWriter.prototype.writeSync=function(){this.sync=true;this.buffer="";this.writeHeadComment();this.writeProject();return this.buffer};pbxWriter.prototype.writeHeadComment=function(){if(this.contents.headComment){this.write("// %s\n",this.contents.headComment)}};pbxWriter.prototype.writeProject=function(){var b=this.contents.project,S,J,ee;this.write("{\n");if(b){this.indentLevel++;for(S in b){if(ie.test(S))continue;J=comment(S,b);ee=b[S];if(isArray(ee)){this.writeArray(ee,S)}else if(isObject(ee)){this.write("%s = {\n",S);this.indentLevel++;if(S==="objects"){this.writeObjectsSections(ee)}else{this.writeObject(ee)}this.indentLevel--;this.write("};\n")}else if(this.omitEmptyValues&&(ee===undefined||ee===null)){continue}else if(J){this.write("%s = %s /* %s */;\n",S,ee,J)}else{this.write("%s = %s;\n",S,ee)}}this.indentLevel--}this.write("}\n")};pbxWriter.prototype.writeObject=function(b){var S,J,ee;for(S in b){if(ie.test(S))continue;ee=comment(S,b);J=b[S];if(isArray(J)){this.writeArray(J,S)}else if(isObject(J)){this.write("%s = {\n",S);this.indentLevel++;this.writeObject(J);this.indentLevel--;this.write("};\n")}else{if(this.omitEmptyValues&&(J===undefined||J===null)){continue}else if(ee){this.write("%s = %s /* %s */;\n",S,J,ee)}else{this.write("%s = %s;\n",S,J)}}}};pbxWriter.prototype.writeObjectsSections=function(b){var S,J;for(S in b){this.writeFlush("\n");J=b[S];if(isObject(J)){this.writeSectionComment(S,true);this.writeSection(J);this.writeSectionComment(S,false)}}};pbxWriter.prototype.writeArray=function(b,S){var J,ee;this.write("%s = (\n",S);this.indentLevel++;for(J=0;J<b.length;J++){ee=b[J];if(ee.value&&ee.comment){this.write("%s /* %s */,\n",ee.value,ee.comment)}else if(isObject(ee)){this.write("{\n");this.indentLevel++;this.writeObject(ee);this.indentLevel--;this.write("},\n")}else{this.write("%s,\n",ee)}}this.indentLevel--;this.write(");\n")};pbxWriter.prototype.writeSectionComment=function(b,S){if(S){this.writeFlush("/* Begin %s section */\n",b)}else{this.writeFlush("/* End %s section */\n",b)}};pbxWriter.prototype.writeSection=function(b){var S,J,ee;for(S in b){if(ie.test(S))continue;ee=comment(S,b);J=b[S];if(J.isa=="PBXBuildFile"||J.isa=="PBXFileReference"){this.writeInlineObject(S,ee,J)}else{if(ee){this.write("%s /* %s */ = {\n",S,ee)}else{this.write("%s = {\n",S)}this.indentLevel++;this.writeObject(J);this.indentLevel--;this.write("};\n")}}};pbxWriter.prototype.writeInlineObject=function(b,S,J){var ee=[];var te=this;var inlineObjectHelper=function(b,S,J){var ne,oe,se;if(S){ee.push(re("%s /* %s */ = {",b,S))}else{ee.push(re("%s = {",b))}for(ne in J){if(ie.test(ne))continue;oe=comment(ne,J);se=J[ne];if(isArray(se)){ee.push(re("%s = (",ne));for(var ae=0;ae<se.length;ae++){ee.push(re("%s, ",se[ae]))}ee.push("); ")}else if(isObject(se)){inlineObjectHelper(ne,oe,se)}else if(te.omitEmptyValues&&(se===undefined||se===null)){continue}else if(oe){ee.push(re("%s = %s /* %s */; ",ne,se,oe))}else{ee.push(re("%s = %s; ",ne,se))}}ee.push("}; ")};inlineObjectHelper(b,S,J);this.write("%s\n",ee.join("").trim())};b.exports=pbxWriter},74913:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=void 0;var J=[];for(var ee=0;ee<256;++ee){J[ee]=(ee+256).toString(16).substr(1)}function bytesToUuid(b,S){var ee=S||0;var te=J;return[te[b[ee++]],te[b[ee++]],te[b[ee++]],te[b[ee++]],"-",te[b[ee++]],te[b[ee++]],"-",te[b[ee++]],te[b[ee++]],"-",te[b[ee++]],te[b[ee++]],"-",te[b[ee++]],te[b[ee++]],te[b[ee++]],te[b[ee++]],te[b[ee++]],te[b[ee++]]].join("")}var te=bytesToUuid;S["default"]=te;b.exports=S.default},87265:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});Object.defineProperty(S,"v1",{enumerable:true,get:function(){return ee.default}});Object.defineProperty(S,"v3",{enumerable:true,get:function(){return te.default}});Object.defineProperty(S,"v4",{enumerable:true,get:function(){return re.default}});Object.defineProperty(S,"v5",{enumerable:true,get:function(){return ne.default}});var ee=_interopRequireDefault(J(82289));var te=_interopRequireDefault(J(68104));var re=_interopRequireDefault(J(91384));var ne=_interopRequireDefault(J(20092));function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}},58349:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=void 0;var ee=_interopRequireDefault(J(6113));function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function md5(b){if(Array.isArray(b)){b=Buffer.from(b)}else if(typeof b==="string"){b=Buffer.from(b,"utf8")}return ee.default.createHash("md5").update(b).digest()}var te=md5;S["default"]=te;b.exports=S.default},77788:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=rng;var ee=_interopRequireDefault(J(6113));function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function rng(){return ee.default.randomBytes(16)}b.exports=S.default},25925:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=void 0;var ee=_interopRequireDefault(J(6113));function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function sha1(b){if(Array.isArray(b)){b=Buffer.from(b)}else if(typeof b==="string"){b=Buffer.from(b,"utf8")}return ee.default.createHash("sha1").update(b).digest()}var te=sha1;S["default"]=te;b.exports=S.default},82289:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=void 0;var ee=_interopRequireDefault(J(77788));var te=_interopRequireDefault(J(74913));function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}var re;var ne;var ie=0;var oe=0;function v1(b,S,J){var se=S&&J||0;var ae=S||[];b=b||{};var ue=b.node||re;var ce=b.clockseq!==undefined?b.clockseq:ne;if(ue==null||ce==null){var le=b.random||(b.rng||ee.default)();if(ue==null){ue=re=[le[0]|1,le[1],le[2],le[3],le[4],le[5]]}if(ce==null){ce=ne=(le[6]<<8|le[7])&16383}}var pe=b.msecs!==undefined?b.msecs:(new Date).getTime();var fe=b.nsecs!==undefined?b.nsecs:oe+1;var de=pe-ie+(fe-oe)/1e4;if(de<0&&b.clockseq===undefined){ce=ce+1&16383}if((de<0||pe>ie)&&b.nsecs===undefined){fe=0}if(fe>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}ie=pe;oe=fe;ne=ce;pe+=122192928e5;var he=((pe&268435455)*1e4+fe)%4294967296;ae[se++]=he>>>24&255;ae[se++]=he>>>16&255;ae[se++]=he>>>8&255;ae[se++]=he&255;var me=pe/4294967296*1e4&268435455;ae[se++]=me>>>8&255;ae[se++]=me&255;ae[se++]=me>>>24&15|16;ae[se++]=me>>>16&255;ae[se++]=ce>>>8|128;ae[se++]=ce&255;for(var ge=0;ge<6;++ge){ae[se+ge]=ue[ge]}return S?S:(0,te.default)(ae)}var se=v1;S["default"]=se;b.exports=S.default},68104:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=void 0;var ee=_interopRequireDefault(J(66165));var te=_interopRequireDefault(J(58349));function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const re=(0,ee.default)("v3",48,te.default);var ne=re;S["default"]=ne;b.exports=S.default},66165:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=_default;S.URL=S.DNS=void 0;var ee=_interopRequireDefault(J(74913));function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function uuidToBytes(b){var S=[];b.replace(/[a-fA-F0-9]{2}/g,(function(b){S.push(parseInt(b,16))}));return S}function stringToBytes(b){b=unescape(encodeURIComponent(b));var S=new Array(b.length);for(var J=0;J<b.length;J++){S[J]=b.charCodeAt(J)}return S}const te="6ba7b810-9dad-11d1-80b4-00c04fd430c8";S.DNS=te;const re="6ba7b811-9dad-11d1-80b4-00c04fd430c8";S.URL=re;function _default(b,S,J){var generateUUID=function(b,te,re,ne){var ie=re&&ne||0;if(typeof b=="string")b=stringToBytes(b);if(typeof te=="string")te=uuidToBytes(te);if(!Array.isArray(b))throw TypeError("value must be an array of bytes");if(!Array.isArray(te)||te.length!==16)throw TypeError("namespace must be uuid string or an Array of 16 byte values");var oe=J(te.concat(b));oe[6]=oe[6]&15|S;oe[8]=oe[8]&63|128;if(re){for(var se=0;se<16;++se){re[ie+se]=oe[se]}}return re||(0,ee.default)(oe)};try{generateUUID.name=b}catch(b){}generateUUID.DNS=te;generateUUID.URL=re;return generateUUID}},91384:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=void 0;var ee=_interopRequireDefault(J(77788));var te=_interopRequireDefault(J(74913));function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function v4(b,S,J){var re=S&&J||0;if(typeof b=="string"){S=b==="binary"?new Array(16):null;b=null}b=b||{};var ne=b.random||(b.rng||ee.default)();ne[6]=ne[6]&15|64;ne[8]=ne[8]&63|128;if(S){for(var ie=0;ie<16;++ie){S[re+ie]=ne[ie]}}return S||(0,te.default)(ne)}var re=v4;S["default"]=re;b.exports=S.default},20092:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=void 0;var ee=_interopRequireDefault(J(66165));var te=_interopRequireDefault(J(25925));function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const re=(0,ee.default)("v5",80,te.default);var ne=re;S["default"]=ne;b.exports=S.default},40504:function(b,S,J){"use strict";var ee=this&&this.__createBinding||(Object.create?function(b,S,J,ee){if(ee===undefined)ee=J;var te=Object.getOwnPropertyDescriptor(S,J);if(!te||("get"in te?!S.__esModule:te.writable||te.configurable)){te={enumerable:true,get:function(){return S[J]}}}Object.defineProperty(b,ee,te)}:function(b,S,J,ee){if(ee===undefined)ee=J;b[ee]=S[J]});var te=this&&this.__setModuleDefault||(Object.create?function(b,S){Object.defineProperty(b,"default",{enumerable:true,value:S})}:function(b,S){b["default"]=S});var re=this&&this.__importStar||function(b){if(b&&b.__esModule)return b;var S={};if(b!=null)for(var J in b)if(J!=="default"&&Object.prototype.hasOwnProperty.call(b,J))ee(S,b,J);te(S,b);return S};var ne=this&&this.__exportStar||function(b,S){for(var J in b)if(J!=="default"&&!Object.prototype.hasOwnProperty.call(S,J))ee(S,b,J)};Object.defineProperty(S,"__esModule",{value:true});S.build=S.parse=void 0;const ie=re(J(62902));const oe=J(62540);const se=J(9128);function parse(b){const S=ie.parse(b);const J=new oe.ContextVisitor;J.visit(S);return J.context}S.parse=parse;function build(b){return new se.Writer(b).getResults()}S.build=build;ne(J(99348),S)},41791:function(b){"use strict";
|
|
34
|
-
/*! For license information please see chevrotain.min.js.LICENSE.txt */!function(S,J){true?b.exports=J():0}("undefined"!=typeof self?self:this,(function(){return(()=>{var b={9515:(b,S,J)=>{var ee=J(8761)(J(7772),"DataView");b.exports=ee},9612:(b,S,J)=>{var ee=J(2118),te=J(6909),re=J(8138),ne=J(4174),ie=J(7942);function u(b){var S=-1,J=null==b?0:b.length;for(this.clear();++S<J;){var ee=b[S];this.set(ee[0],ee[1])}}u.prototype.clear=ee,u.prototype.delete=te,u.prototype.get=re,u.prototype.has=ne,u.prototype.set=ie,b.exports=u},235:(b,S,J)=>{var ee=J(3945),te=J(1846),re=J(8028),ne=J(2344),ie=J(4769);function u(b){var S=-1,J=null==b?0:b.length;for(this.clear();++S<J;){var ee=b[S];this.set(ee[0],ee[1])}}u.prototype.clear=ee,u.prototype.delete=te,u.prototype.get=re,u.prototype.has=ne,u.prototype.set=ie,b.exports=u},326:(b,S,J)=>{var ee=J(8761)(J(7772),"Map");b.exports=ee},6738:(b,S,J)=>{var ee=J(2411),te=J(6417),re=J(6928),ne=J(9493),ie=J(4150);function u(b){var S=-1,J=null==b?0:b.length;for(this.clear();++S<J;){var ee=b[S];this.set(ee[0],ee[1])}}u.prototype.clear=ee,u.prototype.delete=te,u.prototype.get=re,u.prototype.has=ne,u.prototype.set=ie,b.exports=u},2760:(b,S,J)=>{var ee=J(8761)(J(7772),"Promise");b.exports=ee},2143:(b,S,J)=>{var ee=J(8761)(J(7772),"Set");b.exports=ee},5386:(b,S,J)=>{var ee=J(6738),te=J(2842),re=J(2482);function a(b){var S=-1,J=null==b?0:b.length;for(this.__data__=new ee;++S<J;)this.add(b[S])}a.prototype.add=a.prototype.push=te,a.prototype.has=re,b.exports=a},6571:(b,S,J)=>{var ee=J(235),te=J(5243),re=J(2858),ne=J(4417),ie=J(8605),oe=J(1418);function c(b){var S=this.__data__=new ee(b);this.size=S.size}c.prototype.clear=te,c.prototype.delete=re,c.prototype.get=ne,c.prototype.has=ie,c.prototype.set=oe,b.exports=c},857:(b,S,J)=>{var ee=J(7772).Symbol;b.exports=ee},9162:(b,S,J)=>{var ee=J(7772).Uint8Array;b.exports=ee},3215:(b,S,J)=>{var ee=J(8761)(J(7772),"WeakMap");b.exports=ee},9432:b=>{b.exports=function(b,S,J){switch(J.length){case 0:return b.call(S);case 1:return b.call(S,J[0]);case 2:return b.call(S,J[0],J[1]);case 3:return b.call(S,J[0],J[1],J[2])}return b.apply(S,J)}},5338:b=>{b.exports=function(b,S,J,ee){for(var te=-1,re=null==b?0:b.length;++te<re;){var ne=b[te];S(ee,ne,J(ne),b)}return ee}},2517:b=>{b.exports=function(b,S){for(var J=-1,ee=null==b?0:b.length;++J<ee&&!1!==S(b[J],J,b););return b}},7603:b=>{b.exports=function(b,S){for(var J=-1,ee=null==b?0:b.length;++J<ee;)if(!S(b[J],J,b))return!1;return!0}},7552:b=>{b.exports=function(b,S){for(var J=-1,ee=null==b?0:b.length,te=0,re=[];++J<ee;){var ne=b[J];S(ne,J,b)&&(re[te++]=ne)}return re}},8333:(b,S,J)=>{var ee=J(7832);b.exports=function(b,S){return!(null==b||!b.length)&&ee(b,S,0)>-1}},4893:b=>{b.exports=function(b,S,J){for(var ee=-1,te=null==b?0:b.length;++ee<te;)if(J(S,b[ee]))return!0;return!1}},1634:(b,S,J)=>{var ee=J(6473),te=J(9631),re=J(6152),ne=J(3226),ie=J(9045),oe=J(7598),se=Object.prototype.hasOwnProperty;b.exports=function(b,S){var J=re(b),ae=!J&&te(b),ue=!J&&!ae&&ne(b),ce=!J&&!ae&&!ue&&oe(b),le=J||ae||ue||ce,pe=le?ee(b.length,String):[],fe=pe.length;for(var de in b)!S&&!se.call(b,de)||le&&("length"==de||ue&&("offset"==de||"parent"==de)||ce&&("buffer"==de||"byteLength"==de||"byteOffset"==de)||ie(de,fe))||pe.push(de);return pe}},343:b=>{b.exports=function(b,S){for(var J=-1,ee=null==b?0:b.length,te=Array(ee);++J<ee;)te[J]=S(b[J],J,b);return te}},5067:b=>{b.exports=function(b,S){for(var J=-1,ee=S.length,te=b.length;++J<ee;)b[te+J]=S[J];return b}},1207:b=>{b.exports=function(b,S,J,ee){var te=-1,re=null==b?0:b.length;for(ee&&re&&(J=b[++te]);++te<re;)J=S(J,b[te],te,b);return J}},7064:b=>{b.exports=function(b,S){for(var J=-1,ee=null==b?0:b.length;++J<ee;)if(S(b[J],J,b))return!0;return!1}},217:b=>{b.exports=function(b){return b.split("")}},91:(b,S,J)=>{var ee=J(3940),te=J(1225),re=Object.prototype.hasOwnProperty;b.exports=function(b,S,J){var ne=b[S];re.call(b,S)&&te(ne,J)&&(void 0!==J||S in b)||ee(b,S,J)}},2218:(b,S,J)=>{var ee=J(1225);b.exports=function(b,S){for(var J=b.length;J--;)if(ee(b[J][0],S))return J;return-1}},2825:(b,S,J)=>{var ee=J(4303);b.exports=function(b,S,J,te){return ee(b,(function(b,ee,re){S(te,b,J(b),re)})),te}},7993:(b,S,J)=>{var ee=J(752),te=J(249);b.exports=function(b,S){return b&&ee(S,te(S),b)}},5906:(b,S,J)=>{var ee=J(752),te=J(8582);b.exports=function(b,S){return b&&ee(S,te(S),b)}},3940:(b,S,J)=>{var ee=J(3043);b.exports=function(b,S,J){"__proto__"==S&&ee?ee(b,S,{configurable:!0,enumerable:!0,value:J,writable:!0}):b[S]=J}},8874:(b,S,J)=>{var ee=J(6571),te=J(2517),re=J(91),ne=J(7993),ie=J(5906),oe=J(2175),se=J(1522),ae=J(7680),ue=J(9987),ce=J(3483),le=J(6939),pe=J(940),fe=J(9917),de=J(8222),he=J(8725),me=J(6152),ge=J(3226),ye=J(4714),ve=J(9259),Te=J(3679),be=J(249),_e=J(8582),Ee="[object Arguments]",Ae="[object Function]",we="[object Object]",xe={};xe[Ee]=xe["[object Array]"]=xe["[object ArrayBuffer]"]=xe["[object DataView]"]=xe["[object Boolean]"]=xe["[object Date]"]=xe["[object Float32Array]"]=xe["[object Float64Array]"]=xe["[object Int8Array]"]=xe["[object Int16Array]"]=xe["[object Int32Array]"]=xe["[object Map]"]=xe["[object Number]"]=xe[we]=xe["[object RegExp]"]=xe["[object Set]"]=xe["[object String]"]=xe["[object Symbol]"]=xe["[object Uint8Array]"]=xe["[object Uint8ClampedArray]"]=xe["[object Uint16Array]"]=xe["[object Uint32Array]"]=!0,xe["[object Error]"]=xe[Ae]=xe["[object WeakMap]"]=!1,b.exports=function t(b,S,J,ke,Ce,Pe){var Se,Ie=1&S,De=2&S,Oe=4&S;if(J&&(Se=Ce?J(b,ke,Ce,Pe):J(b)),void 0!==Se)return Se;if(!ve(b))return b;var Re=me(b);if(Re){if(Se=fe(b),!Ie)return se(b,Se)}else{var Ne=pe(b),Me=Ne==Ae||"[object GeneratorFunction]"==Ne;if(ge(b))return oe(b,Ie);if(Ne==we||Ne==Ee||Me&&!Ce){if(Se=De||Me?{}:he(b),!Ie)return De?ue(b,ie(Se,b)):ae(b,ne(Se,b))}else{if(!xe[Ne])return Ce?b:{};Se=de(b,Ne,Ie)}}Pe||(Pe=new ee);var Fe=Pe.get(b);if(Fe)return Fe;Pe.set(b,Se),Te(b)?b.forEach((function(ee){Se.add(t(ee,S,J,ee,b,Pe))})):ye(b)&&b.forEach((function(ee,te){Se.set(te,t(ee,S,J,te,b,Pe))}));var Le=Re?void 0:(Oe?De?le:ce:De?_e:be)(b);return te(Le||b,(function(ee,te){Le&&(ee=b[te=ee]),re(Se,te,t(ee,S,J,te,b,Pe))})),Se}},9413:(b,S,J)=>{var ee=J(9259),te=Object.create,re=function(){function t(){}return function(b){if(!ee(b))return{};if(te)return te(b);t.prototype=b;var S=new t;return t.prototype=void 0,S}}();b.exports=re},5246:(b,S,J)=>{var ee=J(5386),te=J(8333),re=J(4893),ne=J(343),ie=J(7826),oe=J(9950);b.exports=function(b,S,J,se){var ae=-1,ue=te,ce=!0,le=b.length,pe=[],fe=S.length;if(!le)return pe;J&&(S=ne(S,ie(J))),se?(ue=re,ce=!1):S.length>=200&&(ue=oe,ce=!1,S=new ee(S));e:for(;++ae<le;){var de=b[ae],he=null==J?de:J(de);if(de=se||0!==de?de:0,ce&&he==he){for(var me=fe;me--;)if(S[me]===he)continue e;pe.push(de)}else ue(S,he,se)||pe.push(de)}return pe}},4303:(b,S,J)=>{var ee=J(6548),te=J(2019)(ee);b.exports=te},80:(b,S,J)=>{var ee=J(4303);b.exports=function(b,S){var J=!0;return ee(b,(function(b,ee,te){return J=!!S(b,ee,te)})),J}},8043:(b,S,J)=>{var ee=J(4303);b.exports=function(b,S){var J=[];return ee(b,(function(b,ee,te){S(b,ee,te)&&J.push(b)})),J}},1359:b=>{b.exports=function(b,S,J,ee){for(var te=b.length,re=J+(ee?1:-1);ee?re--:++re<te;)if(S(b[re],re,b))return re;return-1}},2034:(b,S,J)=>{var ee=J(5067),te=J(5882);b.exports=function t(b,S,J,re,ne){var ie=-1,oe=b.length;for(J||(J=te),ne||(ne=[]);++ie<oe;){var se=b[ie];S>0&&J(se)?S>1?t(se,S-1,J,re,ne):ee(ne,se):re||(ne[ne.length]=se)}return ne}},5308:(b,S,J)=>{var ee=J(5463)();b.exports=ee},6548:(b,S,J)=>{var ee=J(5308),te=J(249);b.exports=function(b,S){return b&&ee(b,S,te)}},3324:(b,S,J)=>{var ee=J(7297),te=J(3812);b.exports=function(b,S){for(var J=0,re=(S=ee(S,b)).length;null!=b&&J<re;)b=b[te(S[J++])];return J&&J==re?b:void 0}},1897:(b,S,J)=>{var ee=J(5067),te=J(6152);b.exports=function(b,S,J){var re=S(b);return te(b)?re:ee(re,J(b))}},3366:(b,S,J)=>{var ee=J(857),te=J(2107),re=J(7157),ne=ee?ee.toStringTag:void 0;b.exports=function(b){return null==b?void 0===b?"[object Undefined]":"[object Null]":ne&&ne in Object(b)?te(b):re(b)}},2726:b=>{var S=Object.prototype.hasOwnProperty;b.exports=function(b,J){return null!=b&&S.call(b,J)}},187:b=>{b.exports=function(b,S){return null!=b&&S in Object(b)}},7832:(b,S,J)=>{var ee=J(1359),te=J(2195),re=J(6024);b.exports=function(b,S,J){return S==S?re(b,S,J):ee(b,te,J)}},5183:(b,S,J)=>{var ee=J(3366),te=J(5125);b.exports=function(b){return te(b)&&"[object Arguments]"==ee(b)}},8746:(b,S,J)=>{var ee=J(1952),te=J(5125);b.exports=function t(b,S,J,re,ne){return b===S||(null==b||null==S||!te(b)&&!te(S)?b!=b&&S!=S:ee(b,S,J,re,t,ne))}},1952:(b,S,J)=>{var ee=J(6571),te=J(4871),re=J(1491),ne=J(7416),ie=J(940),oe=J(6152),se=J(3226),ae=J(7598),ue="[object Arguments]",ce="[object Array]",le="[object Object]",pe=Object.prototype.hasOwnProperty;b.exports=function(b,S,J,fe,de,he){var me=oe(b),ge=oe(S),ye=me?ce:ie(b),ve=ge?ce:ie(S),Te=(ye=ye==ue?le:ye)==le,be=(ve=ve==ue?le:ve)==le,_e=ye==ve;if(_e&&se(b)){if(!se(S))return!1;me=!0,Te=!1}if(_e&&!Te)return he||(he=new ee),me||ae(b)?te(b,S,J,fe,de,he):re(b,S,ye,J,fe,de,he);if(!(1&J)){var Ee=Te&&pe.call(b,"__wrapped__"),Ae=be&&pe.call(S,"__wrapped__");if(Ee||Ae){var we=Ee?b.value():b,xe=Ae?S.value():S;return he||(he=new ee),de(we,xe,J,fe,he)}}return!!_e&&(he||(he=new ee),ne(b,S,J,fe,de,he))}},4511:(b,S,J)=>{var ee=J(940),te=J(5125);b.exports=function(b){return te(b)&&"[object Map]"==ee(b)}},7036:(b,S,J)=>{var ee=J(6571),te=J(8746);b.exports=function(b,S,J,re){var ne=J.length,ie=ne,oe=!re;if(null==b)return!ie;for(b=Object(b);ne--;){var se=J[ne];if(oe&&se[2]?se[1]!==b[se[0]]:!(se[0]in b))return!1}for(;++ne<ie;){var ae=(se=J[ne])[0],ue=b[ae],ce=se[1];if(oe&&se[2]){if(void 0===ue&&!(ae in b))return!1}else{var le=new ee;if(re)var pe=re(ue,ce,ae,b,S,le);if(!(void 0===pe?te(ce,ue,3,re,le):pe))return!1}}return!0}},2195:b=>{b.exports=function(b){return b!=b}},6840:(b,S,J)=>{var ee=J(1049),te=J(7394),re=J(9259),ne=J(7035),ie=/^\[object .+?Constructor\]$/,oe=Function.prototype,se=Object.prototype,ae=oe.toString,ue=se.hasOwnProperty,ce=RegExp("^"+ae.call(ue).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");b.exports=function(b){return!(!re(b)||te(b))&&(ee(b)?ce:ie).test(ne(b))}},4333:(b,S,J)=>{var ee=J(3366),te=J(5125);b.exports=function(b){return te(b)&&"[object RegExp]"==ee(b)}},8436:(b,S,J)=>{var ee=J(940),te=J(5125);b.exports=function(b){return te(b)&&"[object Set]"==ee(b)}},5522:(b,S,J)=>{var ee=J(3366),te=J(1158),re=J(5125),ne={};ne["[object Float32Array]"]=ne["[object Float64Array]"]=ne["[object Int8Array]"]=ne["[object Int16Array]"]=ne["[object Int32Array]"]=ne["[object Uint8Array]"]=ne["[object Uint8ClampedArray]"]=ne["[object Uint16Array]"]=ne["[object Uint32Array]"]=!0,ne["[object Arguments]"]=ne["[object Array]"]=ne["[object ArrayBuffer]"]=ne["[object Boolean]"]=ne["[object DataView]"]=ne["[object Date]"]=ne["[object Error]"]=ne["[object Function]"]=ne["[object Map]"]=ne["[object Number]"]=ne["[object Object]"]=ne["[object RegExp]"]=ne["[object Set]"]=ne["[object String]"]=ne["[object WeakMap]"]=!1,b.exports=function(b){return re(b)&&te(b.length)&&!!ne[ee(b)]}},8286:(b,S,J)=>{var ee=J(6423),te=J(4716),re=J(3059),ne=J(6152),ie=J(5798);b.exports=function(b){return"function"==typeof b?b:null==b?re:"object"==typeof b?ne(b)?te(b[0],b[1]):ee(b):ie(b)}},6411:(b,S,J)=>{var ee=J(6001),te=J(4248),re=Object.prototype.hasOwnProperty;b.exports=function(b){if(!ee(b))return te(b);var S=[];for(var J in Object(b))re.call(b,J)&&"constructor"!=J&&S.push(J);return S}},8390:(b,S,J)=>{var ee=J(9259),te=J(6001),re=J(2966),ne=Object.prototype.hasOwnProperty;b.exports=function(b){if(!ee(b))return re(b);var S=te(b),J=[];for(var ie in b)("constructor"!=ie||!S&&ne.call(b,ie))&&J.push(ie);return J}},3401:(b,S,J)=>{var ee=J(4303),te=J(7878);b.exports=function(b,S){var J=-1,re=te(b)?Array(b.length):[];return ee(b,(function(b,ee,te){re[++J]=S(b,ee,te)})),re}},6423:(b,S,J)=>{var ee=J(7036),te=J(9882),re=J(3477);b.exports=function(b){var S=te(b);return 1==S.length&&S[0][2]?re(S[0][0],S[0][1]):function(J){return J===b||ee(J,b,S)}}},4716:(b,S,J)=>{var ee=J(8746),te=J(2579),re=J(5041),ne=J(1401),ie=J(8792),oe=J(3477),se=J(3812);b.exports=function(b,S){return ne(b)&&ie(S)?oe(se(b),S):function(J){var ne=te(J,b);return void 0===ne&&ne===S?re(J,b):ee(S,ne,3)}}},3759:(b,S,J)=>{var ee=J(3324),te=J(2857),re=J(7297);b.exports=function(b,S,J){for(var ne=-1,ie=S.length,oe={};++ne<ie;){var se=S[ne],ae=ee(b,se);J(ae,se)&&te(oe,re(se,b),ae)}return oe}},256:b=>{b.exports=function(b){return function(S){return null==S?void 0:S[b]}}},2952:(b,S,J)=>{var ee=J(3324);b.exports=function(b){return function(S){return ee(S,b)}}},5877:b=>{b.exports=function(b,S,J,ee,te){return te(b,(function(b,te,re){J=ee?(ee=!1,b):S(J,b,te,re)})),J}},6060:(b,S,J)=>{var ee=J(3059),te=J(3114),re=J(5251);b.exports=function(b,S){return re(te(b,S,ee),b+"")}},2857:(b,S,J)=>{var ee=J(91),te=J(7297),re=J(9045),ne=J(9259),ie=J(3812);b.exports=function(b,S,J,oe){if(!ne(b))return b;for(var se=-1,ae=(S=te(S,b)).length,ue=ae-1,ce=b;null!=ce&&++se<ae;){var le=ie(S[se]),pe=J;if("__proto__"===le||"constructor"===le||"prototype"===le)return b;if(se!=ue){var fe=ce[le];void 0===(pe=oe?oe(fe,le,ce):void 0)&&(pe=ne(fe)?fe:re(S[se+1])?[]:{})}ee(ce,le,pe),ce=ce[le]}return b}},6532:(b,S,J)=>{var ee=J(6874),te=J(3043),re=J(3059),ne=te?function(b,S){return te(b,"toString",{configurable:!0,enumerable:!1,value:ee(S),writable:!0})}:re;b.exports=ne},9872:b=>{b.exports=function(b,S,J){var ee=-1,te=b.length;S<0&&(S=-S>te?0:te+S),(J=J>te?te:J)<0&&(J+=te),te=S>J?0:J-S>>>0,S>>>=0;for(var re=Array(te);++ee<te;)re[ee]=b[ee+S];return re}},4751:(b,S,J)=>{var ee=J(4303);b.exports=function(b,S){var J;return ee(b,(function(b,ee,te){return!(J=S(b,ee,te))})),!!J}},6473:b=>{b.exports=function(b,S){for(var J=-1,ee=Array(b);++J<b;)ee[J]=S(J);return ee}},1054:(b,S,J)=>{var ee=J(857),te=J(343),re=J(6152),ne=J(4795),ie=ee?ee.prototype:void 0,oe=ie?ie.toString:void 0;b.exports=function t(b){if("string"==typeof b)return b;if(re(b))return te(b,t)+"";if(ne(b))return oe?oe.call(b):"";var S=b+"";return"0"==S&&1/b==-1/0?"-0":S}},1704:(b,S,J)=>{var ee=J(2153),te=/^\s+/;b.exports=function(b){return b?b.slice(0,ee(b)+1).replace(te,""):b}},7826:b=>{b.exports=function(b){return function(S){return b(S)}}},7326:(b,S,J)=>{var ee=J(5386),te=J(8333),re=J(4893),ne=J(9950),ie=J(8803),oe=J(4207);b.exports=function(b,S,J){var se=-1,ae=te,ue=b.length,ce=!0,le=[],pe=le;if(J)ce=!1,ae=re;else if(ue>=200){var fe=S?null:ie(b);if(fe)return oe(fe);ce=!1,ae=ne,pe=new ee}else pe=S?[]:le;e:for(;++se<ue;){var de=b[se],he=S?S(de):de;if(de=J||0!==de?de:0,ce&&he==he){for(var me=pe.length;me--;)if(pe[me]===he)continue e;S&&pe.push(he),le.push(de)}else ae(pe,he,J)||(pe!==le&&pe.push(he),le.push(de))}return le}},753:(b,S,J)=>{var ee=J(343);b.exports=function(b,S){return ee(S,(function(S){return b[S]}))}},9950:b=>{b.exports=function(b,S){return b.has(S)}},9419:(b,S,J)=>{var ee=J(3059);b.exports=function(b){return"function"==typeof b?b:ee}},7297:(b,S,J)=>{var ee=J(6152),te=J(1401),re=J(4452),ne=J(6188);b.exports=function(b,S){return ee(b)?b:te(b,S)?[b]:re(ne(b))}},3895:(b,S,J)=>{var ee=J(9872);b.exports=function(b,S,J){var te=b.length;return J=void 0===J?te:J,!S&&J>=te?b:ee(b,S,J)}},897:(b,S,J)=>{var ee=J(9162);b.exports=function(b){var S=new b.constructor(b.byteLength);return new ee(S).set(new ee(b)),S}},2175:(b,S,J)=>{b=J.nmd(b);var ee=J(7772),te=S&&!S.nodeType&&S,re=te&&b&&!b.nodeType&&b,ne=re&&re.exports===te?ee.Buffer:void 0,ie=ne?ne.allocUnsafe:void 0;b.exports=function(b,S){if(S)return b.slice();var J=b.length,ee=ie?ie(J):new b.constructor(J);return b.copy(ee),ee}},4727:(b,S,J)=>{var ee=J(897);b.exports=function(b,S){var J=S?ee(b.buffer):b.buffer;return new b.constructor(J,b.byteOffset,b.byteLength)}},6058:b=>{var S=/\w*$/;b.exports=function(b){var J=new b.constructor(b.source,S.exec(b));return J.lastIndex=b.lastIndex,J}},169:(b,S,J)=>{var ee=J(857),te=ee?ee.prototype:void 0,re=te?te.valueOf:void 0;b.exports=function(b){return re?Object(re.call(b)):{}}},6190:(b,S,J)=>{var ee=J(897);b.exports=function(b,S){var J=S?ee(b.buffer):b.buffer;return new b.constructor(J,b.byteOffset,b.length)}},1522:b=>{b.exports=function(b,S){var J=-1,ee=b.length;for(S||(S=Array(ee));++J<ee;)S[J]=b[J];return S}},752:(b,S,J)=>{var ee=J(91),te=J(3940);b.exports=function(b,S,J,re){var ne=!J;J||(J={});for(var ie=-1,oe=S.length;++ie<oe;){var se=S[ie],ae=re?re(J[se],b[se],se,J,b):void 0;void 0===ae&&(ae=b[se]),ne?te(J,se,ae):ee(J,se,ae)}return J}},7680:(b,S,J)=>{var ee=J(752),te=J(633);b.exports=function(b,S){return ee(b,te(b),S)}},9987:(b,S,J)=>{var ee=J(752),te=J(2680);b.exports=function(b,S){return ee(b,te(b),S)}},4019:(b,S,J)=>{var ee=J(7772)["__core-js_shared__"];b.exports=ee},6740:(b,S,J)=>{var ee=J(5338),te=J(2825),re=J(8286),ne=J(6152);b.exports=function(b,S){return function(J,ie){var oe=ne(J)?ee:te,se=S?S():{};return oe(J,b,re(ie,2),se)}}},7263:(b,S,J)=>{var ee=J(6060),te=J(2406);b.exports=function(b){return ee((function(S,J){var ee=-1,re=J.length,ne=re>1?J[re-1]:void 0,ie=re>2?J[2]:void 0;for(ne=b.length>3&&"function"==typeof ne?(re--,ne):void 0,ie&&te(J[0],J[1],ie)&&(ne=re<3?void 0:ne,re=1),S=Object(S);++ee<re;){var oe=J[ee];oe&&b(S,oe,ee,ne)}return S}))}},2019:(b,S,J)=>{var ee=J(7878);b.exports=function(b,S){return function(J,te){if(null==J)return J;if(!ee(J))return b(J,te);for(var re=J.length,ne=S?re:-1,ie=Object(J);(S?ne--:++ne<re)&&!1!==te(ie[ne],ne,ie););return J}}},5463:b=>{b.exports=function(b){return function(S,J,ee){for(var te=-1,re=Object(S),ne=ee(S),ie=ne.length;ie--;){var oe=ne[b?ie:++te];if(!1===J(re[oe],oe,re))break}return S}}},3126:(b,S,J)=>{var ee=J(3895),te=J(3880),re=J(8435),ne=J(6188);b.exports=function(b){return function(S){S=ne(S);var J=te(S)?re(S):void 0,ie=J?J[0]:S.charAt(0),oe=J?ee(J,1).join(""):S.slice(1);return ie[b]()+oe}}},8776:(b,S,J)=>{var ee=J(8286),te=J(7878),re=J(249);b.exports=function(b){return function(S,J,ne){var ie=Object(S);if(!te(S)){var oe=ee(J,3);S=re(S),J=function(b){return oe(ie[b],b,ie)}}var se=b(S,J,ne);return se>-1?ie[oe?S[se]:se]:void 0}}},8803:(b,S,J)=>{var ee=J(2143),te=J(4291),re=J(4207),ne=ee&&1/re(new ee([,-0]))[1]==1/0?function(b){return new ee(b)}:te;b.exports=ne},3043:(b,S,J)=>{var ee=J(8761),te=function(){try{var b=ee(Object,"defineProperty");return b({},"",{}),b}catch(b){}}();b.exports=te},4871:(b,S,J)=>{var ee=J(5386),te=J(7064),re=J(9950);b.exports=function(b,S,J,ne,ie,oe){var se=1&J,ae=b.length,ue=S.length;if(ae!=ue&&!(se&&ue>ae))return!1;var ce=oe.get(b),le=oe.get(S);if(ce&&le)return ce==S&&le==b;var pe=-1,fe=!0,de=2&J?new ee:void 0;for(oe.set(b,S),oe.set(S,b);++pe<ae;){var he=b[pe],me=S[pe];if(ne)var ge=se?ne(me,he,pe,S,b,oe):ne(he,me,pe,b,S,oe);if(void 0!==ge){if(ge)continue;fe=!1;break}if(de){if(!te(S,(function(b,S){if(!re(de,S)&&(he===b||ie(he,b,J,ne,oe)))return de.push(S)}))){fe=!1;break}}else if(he!==me&&!ie(he,me,J,ne,oe)){fe=!1;break}}return oe.delete(b),oe.delete(S),fe}},1491:(b,S,J)=>{var ee=J(857),te=J(9162),re=J(1225),ne=J(4871),ie=J(5179),oe=J(4207),se=ee?ee.prototype:void 0,ae=se?se.valueOf:void 0;b.exports=function(b,S,J,ee,se,ue,ce){switch(J){case"[object DataView]":if(b.byteLength!=S.byteLength||b.byteOffset!=S.byteOffset)return!1;b=b.buffer,S=S.buffer;case"[object ArrayBuffer]":return!(b.byteLength!=S.byteLength||!ue(new te(b),new te(S)));case"[object Boolean]":case"[object Date]":case"[object Number]":return re(+b,+S);case"[object Error]":return b.name==S.name&&b.message==S.message;case"[object RegExp]":case"[object String]":return b==S+"";case"[object Map]":var le=ie;case"[object Set]":var pe=1ⅇif(le||(le=oe),b.size!=S.size&&!pe)return!1;var fe=ce.get(b);if(fe)return fe==S;ee|=2,ce.set(b,S);var de=ne(le(b),le(S),ee,se,ue,ce);return ce.delete(b),de;case"[object Symbol]":if(ae)return ae.call(b)==ae.call(S)}return!1}},7416:(b,S,J)=>{var ee=J(3483),te=Object.prototype.hasOwnProperty;b.exports=function(b,S,J,re,ne,ie){var oe=1&J,se=ee(b),ae=se.length;if(ae!=ee(S).length&&!oe)return!1;for(var ue=ae;ue--;){var ce=se[ue];if(!(oe?ce in S:te.call(S,ce)))return!1}var le=ie.get(b),pe=ie.get(S);if(le&&pe)return le==S&&pe==b;var fe=!0;ie.set(b,S),ie.set(S,b);for(var de=oe;++ue<ae;){var he=b[ce=se[ue]],me=S[ce];if(re)var ge=oe?re(me,he,ce,S,b,ie):re(he,me,ce,b,S,ie);if(!(void 0===ge?he===me||ne(he,me,J,re,ie):ge)){fe=!1;break}de||(de="constructor"==ce)}if(fe&&!de){var ye=b.constructor,ve=S.constructor;ye==ve||!("constructor"in b)||!("constructor"in S)||"function"==typeof ye&&ye instanceof ye&&"function"==typeof ve&&ve instanceof ve||(fe=!1)}return ie.delete(b),ie.delete(S),fe}},1242:(b,S,J)=>{var ee="object"==typeof J.g&&J.g&&J.g.Object===Object&&J.g;b.exports=ee},3483:(b,S,J)=>{var ee=J(1897),te=J(633),re=J(249);b.exports=function(b){return ee(b,re,te)}},6939:(b,S,J)=>{var ee=J(1897),te=J(2680),re=J(8582);b.exports=function(b){return ee(b,re,te)}},7937:(b,S,J)=>{var ee=J(8304);b.exports=function(b,S){var J=b.__data__;return ee(S)?J["string"==typeof S?"string":"hash"]:J.map}},9882:(b,S,J)=>{var ee=J(8792),te=J(249);b.exports=function(b){for(var S=te(b),J=S.length;J--;){var re=S[J],ne=b[re];S[J]=[re,ne,ee(ne)]}return S}},8761:(b,S,J)=>{var ee=J(6840),te=J(8109);b.exports=function(b,S){var J=te(b,S);return ee(J)?J:void 0}},7353:(b,S,J)=>{var ee=J(241)(Object.getPrototypeOf,Object);b.exports=ee},2107:(b,S,J)=>{var ee=J(857),te=Object.prototype,re=te.hasOwnProperty,ne=te.toString,ie=ee?ee.toStringTag:void 0;b.exports=function(b){var S=re.call(b,ie),J=b[ie];try{b[ie]=void 0;var ee=!0}catch(b){}var te=ne.call(b);return ee&&(S?b[ie]=J:delete b[ie]),te}},633:(b,S,J)=>{var ee=J(7552),te=J(981),re=Object.prototype.propertyIsEnumerable,ne=Object.getOwnPropertySymbols,ie=ne?function(b){return null==b?[]:(b=Object(b),ee(ne(b),(function(S){return re.call(b,S)})))}:te;b.exports=ie},2680:(b,S,J)=>{var ee=J(5067),te=J(7353),re=J(633),ne=J(981),ie=Object.getOwnPropertySymbols?function(b){for(var S=[];b;)ee(S,re(b)),b=te(b);return S}:ne;b.exports=ie},940:(b,S,J)=>{var ee=J(9515),te=J(326),re=J(2760),ne=J(2143),ie=J(3215),oe=J(3366),se=J(7035),ae="[object Map]",ue="[object Promise]",ce="[object Set]",le="[object WeakMap]",pe="[object DataView]",fe=se(ee),de=se(te),he=se(re),me=se(ne),ge=se(ie),ye=oe;(ee&&ye(new ee(new ArrayBuffer(1)))!=pe||te&&ye(new te)!=ae||re&&ye(re.resolve())!=ue||ne&&ye(new ne)!=ce||ie&&ye(new ie)!=le)&&(ye=function(b){var S=oe(b),J="[object Object]"==S?b.constructor:void 0,ee=J?se(J):"";if(ee)switch(ee){case fe:return pe;case de:return ae;case he:return ue;case me:return ce;case ge:return le}return S}),b.exports=ye},8109:b=>{b.exports=function(b,S){return null==b?void 0:b[S]}},1369:(b,S,J)=>{var ee=J(7297),te=J(9631),re=J(6152),ne=J(9045),ie=J(1158),oe=J(3812);b.exports=function(b,S,J){for(var se=-1,ae=(S=ee(S,b)).length,ue=!1;++se<ae;){var ce=oe(S[se]);if(!(ue=null!=b&&J(b,ce)))break;b=b[ce]}return ue||++se!=ae?ue:!!(ae=null==b?0:b.length)&&ie(ae)&&ne(ce,ae)&&(re(b)||te(b))}},3880:b=>{var S=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");b.exports=function(b){return S.test(b)}},2118:(b,S,J)=>{var ee=J(9191);b.exports=function(){this.__data__=ee?ee(null):{},this.size=0}},6909:b=>{b.exports=function(b){var S=this.has(b)&&delete this.__data__[b];return this.size-=S?1:0,S}},8138:(b,S,J)=>{var ee=J(9191),te=Object.prototype.hasOwnProperty;b.exports=function(b){var S=this.__data__;if(ee){var J=S[b];return"__lodash_hash_undefined__"===J?void 0:J}return te.call(S,b)?S[b]:void 0}},4174:(b,S,J)=>{var ee=J(9191),te=Object.prototype.hasOwnProperty;b.exports=function(b){var S=this.__data__;return ee?void 0!==S[b]:te.call(S,b)}},7942:(b,S,J)=>{var ee=J(9191);b.exports=function(b,S){var J=this.__data__;return this.size+=this.has(b)?0:1,J[b]=ee&&void 0===S?"__lodash_hash_undefined__":S,this}},9917:b=>{var S=Object.prototype.hasOwnProperty;b.exports=function(b){var J=b.length,ee=new b.constructor(J);return J&&"string"==typeof b[0]&&S.call(b,"index")&&(ee.index=b.index,ee.input=b.input),ee}},8222:(b,S,J)=>{var ee=J(897),te=J(4727),re=J(6058),ne=J(169),ie=J(6190);b.exports=function(b,S,J){var oe=b.constructor;switch(S){case"[object ArrayBuffer]":return ee(b);case"[object Boolean]":case"[object Date]":return new oe(+b);case"[object DataView]":return te(b,J);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return ie(b,J);case"[object Map]":return new oe;case"[object Number]":case"[object String]":return new oe(b);case"[object RegExp]":return re(b);case"[object Set]":return new oe;case"[object Symbol]":return ne(b)}}},8725:(b,S,J)=>{var ee=J(9413),te=J(7353),re=J(6001);b.exports=function(b){return"function"!=typeof b.constructor||re(b)?{}:ee(te(b))}},5882:(b,S,J)=>{var ee=J(857),te=J(9631),re=J(6152),ne=ee?ee.isConcatSpreadable:void 0;b.exports=function(b){return re(b)||te(b)||!!(ne&&b&&b[ne])}},9045:b=>{var S=/^(?:0|[1-9]\d*)$/;b.exports=function(b,J){var ee=typeof b;return!!(J=null==J?9007199254740991:J)&&("number"==ee||"symbol"!=ee&&S.test(b))&&b>-1&&b%1==0&&b<J}},2406:(b,S,J)=>{var ee=J(1225),te=J(7878),re=J(9045),ne=J(9259);b.exports=function(b,S,J){if(!ne(J))return!1;var ie=typeof S;return!!("number"==ie?te(J)&&re(S,J.length):"string"==ie&&S in J)&&ee(J[S],b)}},1401:(b,S,J)=>{var ee=J(6152),te=J(4795),re=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/;b.exports=function(b,S){if(ee(b))return!1;var J=typeof b;return!("number"!=J&&"symbol"!=J&&"boolean"!=J&&null!=b&&!te(b))||ne.test(b)||!re.test(b)||null!=S&&b in Object(S)}},8304:b=>{b.exports=function(b){var S=typeof b;return"string"==S||"number"==S||"symbol"==S||"boolean"==S?"__proto__"!==b:null===b}},7394:(b,S,J)=>{var ee,te=J(4019),re=(ee=/[^.]+$/.exec(te&&te.keys&&te.keys.IE_PROTO||""))?"Symbol(src)_1."+ee:"";b.exports=function(b){return!!re&&re in b}},6001:b=>{var S=Object.prototype;b.exports=function(b){var J=b&&b.constructor;return b===("function"==typeof J&&J.prototype||S)}},8792:(b,S,J)=>{var ee=J(9259);b.exports=function(b){return b==b&&!ee(b)}},3945:b=>{b.exports=function(){this.__data__=[],this.size=0}},1846:(b,S,J)=>{var ee=J(2218),te=Array.prototype.splice;b.exports=function(b){var S=this.__data__,J=ee(S,b);return!(J<0||(J==S.length-1?S.pop():te.call(S,J,1),--this.size,0))}},8028:(b,S,J)=>{var ee=J(2218);b.exports=function(b){var S=this.__data__,J=ee(S,b);return J<0?void 0:S[J][1]}},2344:(b,S,J)=>{var ee=J(2218);b.exports=function(b){return ee(this.__data__,b)>-1}},4769:(b,S,J)=>{var ee=J(2218);b.exports=function(b,S){var J=this.__data__,te=ee(J,b);return te<0?(++this.size,J.push([b,S])):J[te][1]=S,this}},2411:(b,S,J)=>{var ee=J(9612),te=J(235),re=J(326);b.exports=function(){this.size=0,this.__data__={hash:new ee,map:new(re||te),string:new ee}}},6417:(b,S,J)=>{var ee=J(7937);b.exports=function(b){var S=ee(this,b).delete(b);return this.size-=S?1:0,S}},6928:(b,S,J)=>{var ee=J(7937);b.exports=function(b){return ee(this,b).get(b)}},9493:(b,S,J)=>{var ee=J(7937);b.exports=function(b){return ee(this,b).has(b)}},4150:(b,S,J)=>{var ee=J(7937);b.exports=function(b,S){var J=ee(this,b),te=J.size;return J.set(b,S),this.size+=J.size==te?0:1,this}},5179:b=>{b.exports=function(b){var S=-1,J=Array(b.size);return b.forEach((function(b,ee){J[++S]=[ee,b]})),J}},3477:b=>{b.exports=function(b,S){return function(J){return null!=J&&J[b]===S&&(void 0!==S||b in Object(J))}}},7777:(b,S,J)=>{var ee=J(733);b.exports=function(b){var S=ee(b,(function(b){return 500===J.size&&J.clear(),b})),J=S.cache;return S}},9191:(b,S,J)=>{var ee=J(8761)(Object,"create");b.exports=ee},4248:(b,S,J)=>{var ee=J(241)(Object.keys,Object);b.exports=ee},2966:b=>{b.exports=function(b){var S=[];if(null!=b)for(var J in Object(b))S.push(J);return S}},4146:(b,S,J)=>{b=J.nmd(b);var ee=J(1242),te=S&&!S.nodeType&&S,re=te&&b&&!b.nodeType&&b,ne=re&&re.exports===te&&ee.process,ie=function(){try{return re&&re.require&&re.require("util").types||ne&&ne.binding&&ne.binding("util")}catch(b){}}();b.exports=ie},7157:b=>{var S=Object.prototype.toString;b.exports=function(b){return S.call(b)}},241:b=>{b.exports=function(b,S){return function(J){return b(S(J))}}},3114:(b,S,J)=>{var ee=J(9432),te=Math.max;b.exports=function(b,S,J){return S=te(void 0===S?b.length-1:S,0),function(){for(var re=arguments,ne=-1,ie=te(re.length-S,0),oe=Array(ie);++ne<ie;)oe[ne]=re[S+ne];ne=-1;for(var se=Array(S+1);++ne<S;)se[ne]=re[ne];return se[S]=J(oe),ee(b,this,se)}}},7772:(b,S,J)=>{var ee=J(1242),te="object"==typeof self&&self&&self.Object===Object&&self,re=ee||te||Function("return this")();b.exports=re},2842:b=>{b.exports=function(b){return this.__data__.set(b,"__lodash_hash_undefined__"),this}},2482:b=>{b.exports=function(b){return this.__data__.has(b)}},4207:b=>{b.exports=function(b){var S=-1,J=Array(b.size);return b.forEach((function(b){J[++S]=b})),J}},5251:(b,S,J)=>{var ee=J(6532),te=J(7787)(ee);b.exports=te},7787:b=>{var S=Date.now;b.exports=function(b){var J=0,ee=0;return function(){var te=S(),re=16-(te-ee);if(ee=te,re>0){if(++J>=800)return arguments[0]}else J=0;return b.apply(void 0,arguments)}}},5243:(b,S,J)=>{var ee=J(235);b.exports=function(){this.__data__=new ee,this.size=0}},2858:b=>{b.exports=function(b){var S=this.__data__,J=S.delete(b);return this.size=S.size,J}},4417:b=>{b.exports=function(b){return this.__data__.get(b)}},8605:b=>{b.exports=function(b){return this.__data__.has(b)}},1418:(b,S,J)=>{var ee=J(235),te=J(326),re=J(6738);b.exports=function(b,S){var J=this.__data__;if(J instanceof ee){var ne=J.__data__;if(!te||ne.length<199)return ne.push([b,S]),this.size=++J.size,this;J=this.__data__=new re(ne)}return J.set(b,S),this.size=J.size,this}},6024:b=>{b.exports=function(b,S,J){for(var ee=J-1,te=b.length;++ee<te;)if(b[ee]===S)return ee;return-1}},8435:(b,S,J)=>{var ee=J(217),te=J(3880),re=J(3344);b.exports=function(b){return te(b)?re(b):ee(b)}},4452:(b,S,J)=>{var ee=J(7777),te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/\\(\\)?/g,ne=ee((function(b){var S=[];return 46===b.charCodeAt(0)&&S.push(""),b.replace(te,(function(b,J,ee,te){S.push(ee?te.replace(re,"$1"):J||b)})),S}));b.exports=ne},3812:(b,S,J)=>{var ee=J(4795);b.exports=function(b){if("string"==typeof b||ee(b))return b;var S=b+"";return"0"==S&&1/b==-1/0?"-0":S}},7035:b=>{var S=Function.prototype.toString;b.exports=function(b){if(null!=b){try{return S.call(b)}catch(b){}try{return b+""}catch(b){}}return""}},2153:b=>{var S=/\s/;b.exports=function(b){for(var J=b.length;J--&&S.test(b.charAt(J)););return J}},3344:b=>{var S="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",J="\\ud83c[\\udffb-\\udfff]",ee="[^\\ud800-\\udfff]",te="(?:\\ud83c[\\udde6-\\uddff]){2}",re="[\\ud800-\\udbff][\\udc00-\\udfff]",ne="(?:"+S+"|"+J+")?",ie="[\\ufe0e\\ufe0f]?",oe=ie+ne+"(?:\\u200d(?:"+[ee,te,re].join("|")+")"+ie+ne+")*",se="(?:"+[ee+S+"?",S,te,re,"[\\ud800-\\udfff]"].join("|")+")",ae=RegExp(J+"(?="+J+")|"+se+oe,"g");b.exports=function(b){return b.match(ae)||[]}},19:(b,S,J)=>{var ee=J(91),te=J(752),re=J(7263),ne=J(7878),ie=J(6001),oe=J(249),se=Object.prototype.hasOwnProperty,ae=re((function(b,S){if(ie(S)||ne(S))te(S,oe(S),b);else for(var J in S)se.call(S,J)&&ee(b,J,S[J])}));b.exports=ae},4004:(b,S,J)=>{var ee=J(8874);b.exports=function(b){return ee(b,4)}},417:b=>{b.exports=function(b){for(var S=-1,J=null==b?0:b.length,ee=0,te=[];++S<J;){var re=b[S];re&&(te[ee++]=re)}return te}},6874:b=>{b.exports=function(b){return function(){return b}}},4573:(b,S,J)=>{var ee=J(6060),te=J(1225),re=J(2406),ne=J(8582),ie=Object.prototype,oe=ie.hasOwnProperty,se=ee((function(b,S){b=Object(b);var J=-1,ee=S.length,se=ee>2?S[2]:void 0;for(se&&re(S[0],S[1],se)&&(ee=1);++J<ee;)for(var ae=S[J],ue=ne(ae),ce=-1,le=ue.length;++ce<le;){var pe=ue[ce],fe=b[pe];(void 0===fe||te(fe,ie[pe])&&!oe.call(b,pe))&&(b[pe]=ae[pe])}return b}));b.exports=se},7335:(b,S,J)=>{var ee=J(5246),te=J(2034),re=J(6060),ne=J(3746),ie=re((function(b,S){return ne(b)?ee(b,te(S,1,ne,!0)):[]}));b.exports=ie},7264:(b,S,J)=>{var ee=J(9872),te=J(8101);b.exports=function(b,S,J){var re=null==b?0:b.length;return re?(S=J||void 0===S?1:te(S),ee(b,S<0?0:S,re)):[]}},4934:(b,S,J)=>{var ee=J(9872),te=J(8101);b.exports=function(b,S,J){var re=null==b?0:b.length;return re?(S=J||void 0===S?1:te(S),ee(b,0,(S=re-S)<0?0:S)):[]}},1225:b=>{b.exports=function(b,S){return b===S||b!=b&&S!=S}},9794:(b,S,J)=>{var ee=J(7603),te=J(80),re=J(8286),ne=J(6152),ie=J(2406);b.exports=function(b,S,J){var oe=ne(b)?ee:te;return J&&ie(b,S,J)&&(S=void 0),oe(b,re(S,3))}},882:(b,S,J)=>{var ee=J(7552),te=J(8043),re=J(8286),ne=J(6152);b.exports=function(b,S){return(ne(b)?ee:te)(b,re(S,3))}},5281:(b,S,J)=>{var ee=J(8776)(J(2982));b.exports=ee},2982:(b,S,J)=>{var ee=J(1359),te=J(8286),re=J(8101),ne=Math.max;b.exports=function(b,S,J){var ie=null==b?0:b.length;if(!ie)return-1;var oe=null==J?0:re(J);return oe<0&&(oe=ne(ie+oe,0)),ee(b,te(S,3),oe)}},3237:(b,S,J)=>{b.exports=J(1092)},5838:(b,S,J)=>{var ee=J(2034),te=J(6760);b.exports=function(b,S){return ee(te(b,S),1)}},5676:(b,S,J)=>{var ee=J(2034);b.exports=function(b){return null!=b&&b.length?ee(b,1):[]}},9756:(b,S,J)=>{var ee=J(2517),te=J(4303),re=J(9419),ne=J(6152);b.exports=function(b,S){return(ne(b)?ee:te)(b,re(S))}},2579:(b,S,J)=>{var ee=J(3324);b.exports=function(b,S,J){var te=null==b?void 0:ee(b,S);return void 0===te?J:te}},3440:(b,S,J)=>{var ee=J(3940),te=J(6740),re=Object.prototype.hasOwnProperty,ne=te((function(b,S,J){re.call(b,J)?b[J].push(S):ee(b,J,[S])}));b.exports=ne},3352:(b,S,J)=>{var ee=J(2726),te=J(1369);b.exports=function(b,S){return null!=b&&te(b,S,ee)}},5041:(b,S,J)=>{var ee=J(187),te=J(1369);b.exports=function(b,S){return null!=b&&te(b,S,ee)}},1092:b=>{b.exports=function(b){return b&&b.length?b[0]:void 0}},3059:b=>{b.exports=function(b){return b}},1886:(b,S,J)=>{var ee=J(7832),te=J(7878),re=J(5505),ne=J(8101),ie=J(8346),oe=Math.max;b.exports=function(b,S,J,se){b=te(b)?b:ie(b),J=J&&!se?ne(J):0;var ae=b.length;return J<0&&(J=oe(ae+J,0)),re(b)?J<=ae&&b.indexOf(S,J)>-1:!!ae&&ee(b,S,J)>-1}},3493:(b,S,J)=>{var ee=J(7832),te=J(8101),re=Math.max;b.exports=function(b,S,J){var ne=null==b?0:b.length;if(!ne)return-1;var ie=null==J?0:te(J);return ie<0&&(ie=re(ne+ie,0)),ee(b,S,ie)}},9631:(b,S,J)=>{var ee=J(5183),te=J(5125),re=Object.prototype,ne=re.hasOwnProperty,ie=re.propertyIsEnumerable,oe=ee(function(){return arguments}())?ee:function(b){return te(b)&&ne.call(b,"callee")&&!ie.call(b,"callee")};b.exports=oe},6152:b=>{var S=Array.isArray;b.exports=S},7878:(b,S,J)=>{var ee=J(1049),te=J(1158);b.exports=function(b){return null!=b&&te(b.length)&&!ee(b)}},3746:(b,S,J)=>{var ee=J(7878),te=J(5125);b.exports=function(b){return te(b)&&ee(b)}},3226:(b,S,J)=>{b=J.nmd(b);var ee=J(7772),te=J(6330),re=S&&!S.nodeType&&S,ne=re&&b&&!b.nodeType&&b,ie=ne&&ne.exports===re?ee.Buffer:void 0,oe=(ie?ie.isBuffer:void 0)||te;b.exports=oe},5455:(b,S,J)=>{var ee=J(6411),te=J(940),re=J(9631),ne=J(6152),ie=J(7878),oe=J(3226),se=J(6001),ae=J(7598),ue=Object.prototype.hasOwnProperty;b.exports=function(b){if(null==b)return!0;if(ie(b)&&(ne(b)||"string"==typeof b||"function"==typeof b.splice||oe(b)||ae(b)||re(b)))return!b.length;var S=te(b);if("[object Map]"==S||"[object Set]"==S)return!b.size;if(se(b))return!ee(b).length;for(var J in b)if(ue.call(b,J))return!1;return!0}},1049:(b,S,J)=>{var ee=J(3366),te=J(9259);b.exports=function(b){if(!te(b))return!1;var S=ee(b);return"[object Function]"==S||"[object GeneratorFunction]"==S||"[object AsyncFunction]"==S||"[object Proxy]"==S}},1158:b=>{b.exports=function(b){return"number"==typeof b&&b>-1&&b%1==0&&b<=9007199254740991}},4714:(b,S,J)=>{var ee=J(4511),te=J(7826),re=J(4146),ne=re&&re.isMap,ie=ne?te(ne):ee;b.exports=ie},9259:b=>{b.exports=function(b){var S=typeof b;return null!=b&&("object"==S||"function"==S)}},5125:b=>{b.exports=function(b){return null!=b&&"object"==typeof b}},859:(b,S,J)=>{var ee=J(4333),te=J(7826),re=J(4146),ne=re&&re.isRegExp,ie=ne?te(ne):ee;b.exports=ie},3679:(b,S,J)=>{var ee=J(8436),te=J(7826),re=J(4146),ne=re&&re.isSet,ie=ne?te(ne):ee;b.exports=ie},5505:(b,S,J)=>{var ee=J(3366),te=J(6152),re=J(5125);b.exports=function(b){return"string"==typeof b||!te(b)&&re(b)&&"[object String]"==ee(b)}},4795:(b,S,J)=>{var ee=J(3366),te=J(5125);b.exports=function(b){return"symbol"==typeof b||te(b)&&"[object Symbol]"==ee(b)}},7598:(b,S,J)=>{var ee=J(5522),te=J(7826),re=J(4146),ne=re&&re.isTypedArray,ie=ne?te(ne):ee;b.exports=ie},4336:b=>{b.exports=function(b){return void 0===b}},249:(b,S,J)=>{var ee=J(1634),te=J(6411),re=J(7878);b.exports=function(b){return re(b)?ee(b):te(b)}},8582:(b,S,J)=>{var ee=J(1634),te=J(8390),re=J(7878);b.exports=function(b){return re(b)?ee(b,!0):te(b)}},6974:b=>{b.exports=function(b){var S=null==b?0:b.length;return S?b[S-1]:void 0}},6760:(b,S,J)=>{var ee=J(343),te=J(8286),re=J(3401),ne=J(6152);b.exports=function(b,S){return(ne(b)?ee:re)(b,te(S,3))}},733:(b,S,J)=>{var ee=J(6738);function o(b,S){if("function"!=typeof b||null!=S&&"function"!=typeof S)throw new TypeError("Expected a function");var r=function(){var J=arguments,ee=S?S.apply(this,J):J[0],te=r.cache;if(te.has(ee))return te.get(ee);var re=b.apply(this,J);return r.cache=te.set(ee,re)||te,re};return r.cache=new(o.Cache||ee),r}o.Cache=ee,b.exports=o},1570:b=>{b.exports=function(b){if("function"!=typeof b)throw new TypeError("Expected a function");return function(){var S=arguments;switch(S.length){case 0:return!b.call(this);case 1:return!b.call(this,S[0]);case 2:return!b.call(this,S[0],S[1]);case 3:return!b.call(this,S[0],S[1],S[2])}return!b.apply(this,S)}}},4291:b=>{b.exports=function(){}},2208:(b,S,J)=>{var ee=J(343),te=J(8286),re=J(3759),ne=J(6939);b.exports=function(b,S){if(null==b)return{};var J=ee(ne(b),(function(b){return[b]}));return S=te(S),re(b,J,(function(b,J){return S(b,J[0])}))}},5798:(b,S,J)=>{var ee=J(256),te=J(2952),re=J(1401),ne=J(3812);b.exports=function(b){return re(b)?ee(ne(b)):te(b)}},8215:(b,S,J)=>{var ee=J(1207),te=J(4303),re=J(8286),ne=J(5877),ie=J(6152);b.exports=function(b,S,J){var oe=ie(b)?ee:ne,se=arguments.length<3;return oe(b,re(S,4),J,se,te)}},2070:(b,S,J)=>{var ee=J(7552),te=J(8043),re=J(8286),ne=J(6152),ie=J(1570);b.exports=function(b,S){return(ne(b)?ee:te)(b,ie(re(S,3)))}},1525:(b,S,J)=>{var ee=J(7064),te=J(8286),re=J(4751),ne=J(6152),ie=J(2406);b.exports=function(b,S,J){var oe=ne(b)?ee:re;return J&&ie(b,S,J)&&(S=void 0),oe(b,te(S,3))}},981:b=>{b.exports=function(){return[]}},6330:b=>{b.exports=function(){return!1}},5707:(b,S,J)=>{var ee=J(7642);b.exports=function(b){return b?Infinity===(b=ee(b))||b===-1/0?17976931348623157e292*(b<0?-1:1):b==b?b:0:0===b?b:0}},8101:(b,S,J)=>{var ee=J(5707);b.exports=function(b){var S=ee(b),J=S%1;return S==S?J?S-J:S:0}},7642:(b,S,J)=>{var ee=J(1704),te=J(9259),re=J(4795),ne=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,oe=/^0o[0-7]+$/i,se=parseInt;b.exports=function(b){if("number"==typeof b)return b;if(re(b))return NaN;if(te(b)){var S="function"==typeof b.valueOf?b.valueOf():b;b=te(S)?S+"":S}if("string"!=typeof b)return 0===b?b:+b;b=ee(b);var J=ie.test(b);return J||oe.test(b)?se(b.slice(2),J?2:8):ne.test(b)?NaN:+b}},6188:(b,S,J)=>{var ee=J(1054);b.exports=function(b){return null==b?"":ee(b)}},5652:(b,S,J)=>{var ee=J(7326);b.exports=function(b){return b&&b.length?ee(b):[]}},3779:(b,S,J)=>{var ee=J(3126)("toUpperCase");b.exports=ee},8346:(b,S,J)=>{var ee=J(753),te=J(249);b.exports=function(b){return null==b?[]:ee(b,te(b))}},4844:function(b,S){var J,ee;"undefined"!=typeof self&&self,void 0===(ee="function"==typeof(J=function(){function t(){}t.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},t.prototype.restoreState=function(b){this.idx=b.idx,this.input=b.input,this.groupIdx=b.groupIdx},t.prototype.pattern=function(b){this.idx=0,this.input=b,this.groupIdx=0,this.consumeChar("/");var S=this.disjunction();this.consumeChar("/");for(var J={type:"Flags",loc:{begin:this.idx,end:b.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(J,"global");break;case"i":s(J,"ignoreCase");break;case"m":s(J,"multiLine");break;case"u":s(J,"unicode");break;case"y":s(J,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:J,value:S,loc:this.loc(0)}},t.prototype.disjunction=function(){var b=[],S=this.idx;for(b.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),b.push(this.alternative());return{type:"Disjunction",value:b,loc:this.loc(S)}},t.prototype.alternative=function(){for(var b=[],S=this.idx;this.isTerm();)b.push(this.term());return{type:"Alternative",value:b,loc:this.loc(S)}},t.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},t.prototype.assertion=function(){var b=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(b)};case"$":return{type:"EndAnchor",loc:this.loc(b)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(b)};case"B":return{type:"NonWordBoundary",loc:this.loc(b)}}throw Error("Invalid Assertion Escape");case"(":var S;switch(this.consumeChar("?"),this.popChar()){case"=":S="Lookahead";break;case"!":S="NegativeLookahead"}u(S);var J=this.disjunction();return this.consumeChar(")"),{type:S,value:J,loc:this.loc(b)}}!function(){throw Error("Internal Error - Should never get here!")}()},t.prototype.quantifier=function(b){var S,J=this.idx;switch(this.popChar()){case"*":S={atLeast:0,atMost:1/0};break;case"+":S={atLeast:1,atMost:1/0};break;case"?":S={atLeast:0,atMost:1};break;case"{":var ee=this.integerIncludingZero();switch(this.popChar()){case"}":S={atLeast:ee,atMost:ee};break;case",":S=this.isDigit()?{atLeast:ee,atMost:this.integerIncludingZero()}:{atLeast:ee,atMost:1/0},this.consumeChar("}")}if(!0===b&&void 0===S)return;u(S)}if(!0!==b||void 0!==S)return u(S),"?"===this.peekChar(0)?(this.consumeChar("?"),S.greedy=!1):S.greedy=!0,S.type="Quantifier",S.loc=this.loc(J),S},t.prototype.atom=function(){var b,S=this.idx;switch(this.peekChar()){case".":b=this.dotAll();break;case"\\":b=this.atomEscape();break;case"[":b=this.characterClass();break;case"(":b=this.group()}return void 0===b&&this.isPatternCharacter()&&(b=this.patternCharacter()),u(b),b.loc=this.loc(S),this.isQuantifier()&&(b.quantifier=this.quantifier()),b},t.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[i("\n"),i("\r"),i("\u2028"),i("\u2029")]}},t.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},t.prototype.decimalEscapeAtom=function(){return{type:"GroupBackReference",value:this.positiveInteger()}},t.prototype.characterClassEscape=function(){var b,S=!1;switch(this.popChar()){case"d":b=te;break;case"D":b=te,S=!0;break;case"s":b=ne;break;case"S":b=ne,S=!0;break;case"w":b=re;break;case"W":b=re,S=!0}return u(b),{type:"Set",value:b,complement:S}},t.prototype.controlEscapeAtom=function(){var b;switch(this.popChar()){case"f":b=i("\f");break;case"n":b=i("\n");break;case"r":b=i("\r");break;case"t":b=i("\t");break;case"v":b=i("\v")}return u(b),{type:"Character",value:b}},t.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var b=this.popChar();if(!1===/[a-zA-Z]/.test(b))throw Error("Invalid ");return{type:"Character",value:b.toUpperCase().charCodeAt(0)-64}},t.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:i("\0")}},t.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},t.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},t.prototype.identityEscapeAtom=function(){return{type:"Character",value:i(this.popChar())}},t.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:i(this.popChar())}}},t.prototype.characterClass=function(){var b=[],S=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),S=!0);this.isClassAtom();){var J=this.classAtom();if("Character"===J.type&&this.isRangeDash()){this.consumeChar("-");var ee=this.classAtom();if("Character"===ee.type){if(ee.value<J.value)throw Error("Range out of order in character class");b.push({from:J.value,to:ee.value})}else a(J.value,b),b.push(i("-")),a(ee.value,b)}else a(J.value,b)}return this.consumeChar("]"),{type:"Set",complement:S,value:b}},t.prototype.classAtom=function(){switch(this.peekChar()){case"]":case"\n":case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}},t.prototype.classEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:i("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},t.prototype.group=function(){var b=!0;switch(this.consumeChar("("),this.peekChar(0)){case"?":this.consumeChar("?"),this.consumeChar(":"),b=!1;break;default:this.groupIdx++}var S=this.disjunction();this.consumeChar(")");var J={type:"Group",capturing:b,value:S};return b&&(J.idx=this.groupIdx),J},t.prototype.positiveInteger=function(){var b=this.popChar();if(!1===ee.test(b))throw Error("Expecting a positive integer");for(;J.test(this.peekChar(0));)b+=this.popChar();return parseInt(b,10)},t.prototype.integerIncludingZero=function(){var b=this.popChar();if(!1===J.test(b))throw Error("Expecting an integer");for(;J.test(this.peekChar(0));)b+=this.popChar();return parseInt(b,10)},t.prototype.patternCharacter=function(){var b=this.popChar();switch(b){case"\n":case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:i(b)}}},t.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},t.prototype.isRangeDash=function(){return"-"===this.peekChar()&&this.isClassAtom(1)},t.prototype.isDigit=function(){return J.test(this.peekChar(0))},t.prototype.isClassAtom=function(b){switch(void 0===b&&(b=0),this.peekChar(b)){case"]":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},t.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},t.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},t.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2));default:return!1}},t.prototype.isQuantifier=function(){var b=this.saveState();try{return void 0!==this.quantifier(!0)}catch(b){return!1}finally{this.restoreState(b)}},t.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},t.prototype.parseHexDigits=function(b){for(var J="",ee=0;ee<b;ee++){var te=this.popChar();if(!1===S.test(te))throw Error("Expecting a HexDecimal digits");J+=te}return{type:"Character",value:parseInt(J,16)}},t.prototype.peekChar=function(b){return void 0===b&&(b=0),this.input[this.idx+b]},t.prototype.popChar=function(){var b=this.peekChar(0);return this.consumeChar(),b},t.prototype.consumeChar=function(b){if(void 0!==b&&this.input[this.idx]!==b)throw Error("Expected: '"+b+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++},t.prototype.loc=function(b){return{begin:b,end:this.idx}};var b,S=/[0-9a-fA-F]/,J=/[0-9]/,ee=/[1-9]/;function i(b){return b.charCodeAt(0)}function a(b,S){void 0!==b.length?b.forEach((function(b){S.push(b)})):S.push(b)}function s(b,S){if(!0===b[S])throw"duplicate flag "+S;b[S]=!0}function u(b){if(void 0===b)throw Error("Internal Error - Should never get here!")}var te=[];for(b=i("0");b<=i("9");b++)te.push(b);var re=[i("_")].concat(te);for(b=i("a");b<=i("z");b++)re.push(b);for(b=i("A");b<=i("Z");b++)re.push(b);var ne=[i(" "),i("\f"),i("\n"),i("\r"),i("\t"),i("\v"),i("\t"),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i("\u2028"),i("\u2029"),i(" "),i(" "),i(" "),i("\ufeff")];function p(){}return p.prototype.visitChildren=function(b){for(var S in b){var J=b[S];b.hasOwnProperty(S)&&(void 0!==J.type?this.visit(J):Array.isArray(J)&&J.forEach((function(b){this.visit(b)}),this))}},p.prototype.visit=function(b){switch(b.type){case"Pattern":this.visitPattern(b);break;case"Flags":this.visitFlags(b);break;case"Disjunction":this.visitDisjunction(b);break;case"Alternative":this.visitAlternative(b);break;case"StartAnchor":this.visitStartAnchor(b);break;case"EndAnchor":this.visitEndAnchor(b);break;case"WordBoundary":this.visitWordBoundary(b);break;case"NonWordBoundary":this.visitNonWordBoundary(b);break;case"Lookahead":this.visitLookahead(b);break;case"NegativeLookahead":this.visitNegativeLookahead(b);break;case"Character":this.visitCharacter(b);break;case"Set":this.visitSet(b);break;case"Group":this.visitGroup(b);break;case"GroupBackReference":this.visitGroupBackReference(b);break;case"Quantifier":this.visitQuantifier(b)}this.visitChildren(b)},p.prototype.visitPattern=function(b){},p.prototype.visitFlags=function(b){},p.prototype.visitDisjunction=function(b){},p.prototype.visitAlternative=function(b){},p.prototype.visitStartAnchor=function(b){},p.prototype.visitEndAnchor=function(b){},p.prototype.visitWordBoundary=function(b){},p.prototype.visitNonWordBoundary=function(b){},p.prototype.visitLookahead=function(b){},p.prototype.visitNegativeLookahead=function(b){},p.prototype.visitCharacter=function(b){},p.prototype.visitSet=function(b){},p.prototype.visitGroup=function(b){},p.prototype.visitGroupBackReference=function(b){},p.prototype.visitQuantifier=function(b){},{RegExpParser:t,BaseRegExpVisitor:p,VERSION:"0.5.0"}})?J.apply(S,[]):J)||(b.exports=ee)},5781:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.createSyntaxDiagramsCode=void 0;var ee=J(7979);S.createSyntaxDiagramsCode=function(b,S){var J=void 0===S?{}:S,te=J.resourceBase,re=void 0===te?"https://unpkg.com/chevrotain@".concat(ee.VERSION,"/diagrams/"):te,ne=J.css,ie=void 0===ne?"https://unpkg.com/chevrotain@".concat(ee.VERSION,"/diagrams/diagrams.css"):ne;return'\n\x3c!-- This is a generated file --\x3e\n<!DOCTYPE html>\n<meta charset="utf-8">\n<style>\n body {\n background-color: hsl(30, 20%, 95%)\n }\n</style>\n\n'+"\n<link rel='stylesheet' href='".concat(ie,"'>\n")+"\n<script src='".concat(re,"vendor/railroad-diagrams.js'><\/script>\n<script src='").concat(re,"src/diagrams_builder.js'><\/script>\n<script src='").concat(re,"src/diagrams_behavior.js'><\/script>\n<script src='").concat(re,"src/main.js'><\/script>\n")+'\n<div id="diagrams" align="center"></div> \n'+"\n<script>\n window.serializedGrammar = ".concat(JSON.stringify(b,null," "),";\n<\/script>\n")+'\n<script>\n var diagramsDiv = document.getElementById("diagrams");\n main.drawDiagramsFromSerializedGrammar(serializedGrammar, diagramsDiv);\n<\/script>\n'}},4105:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.defineNameProp=void 0,S.defineNameProp=function(b,S){Object.defineProperty(b,"name",{enumerable:!1,configurable:!0,writable:!1,value:S})}},3710:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.IN=void 0,S.IN="_~IN~_"},7485:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.addNoneTerminalToCst=S.addTerminalToCst=S.setNodeLocationFull=S.setNodeLocationOnlyOffset=void 0,S.setNodeLocationOnlyOffset=function(b,S){!0===isNaN(b.startOffset)?(b.startOffset=S.startOffset,b.endOffset=S.endOffset):b.endOffset<S.endOffset==1&&(b.endOffset=S.endOffset)},S.setNodeLocationFull=function(b,S){!0===isNaN(b.startOffset)?(b.startOffset=S.startOffset,b.startColumn=S.startColumn,b.startLine=S.startLine,b.endOffset=S.endOffset,b.endColumn=S.endColumn,b.endLine=S.endLine):b.endOffset<S.endOffset==1&&(b.endOffset=S.endOffset,b.endColumn=S.endColumn,b.endLine=S.endLine)},S.addTerminalToCst=function(b,S,J){void 0===b.children[J]?b.children[J]=[S]:b.children[J].push(S)},S.addNoneTerminalToCst=function(b,S,J){void 0===b.children[S]?b.children[S]=[J]:b.children[S].push(J)}},8169:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.validateRedundantMethods=S.validateMissingCstMethods=S.validateVisitor=S.CstVisitorDefinitionError=S.createBaseVisitorConstructorWithDefaults=S.createBaseSemanticVisitorConstructor=S.defaultVisit=void 0;var te,re=ee(J(5455)),ne=ee(J(417)),ie=ee(J(6152)),oe=ee(J(6760)),se=ee(J(9756)),ae=ee(J(882)),ue=ee(J(249)),ce=ee(J(1049)),le=ee(J(4336)),pe=ee(J(1886)),fe=J(4105);function y(b,S){for(var J=(0,ue.default)(b),ee=J.length,te=0;te<ee;te++)for(var re=b[J[te]],ne=re.length,ie=0;ie<ne;ie++){var oe=re[ie];void 0===oe.tokenTypeIdx&&this[oe.name](oe.children,S)}}function m(b,S){var J=T(b,S),ee=_(b,S);return J.concat(ee)}function T(b,S){var J=(0,ae.default)(S,(function(S){return!1===(0,ce.default)(b[S])})),ee=(0,oe.default)(J,(function(S){return{msg:"Missing visitor method: <".concat(S,"> on ").concat(b.constructor.name," CST Visitor."),type:te.MISSING_METHOD,methodName:S}}));return(0,ne.default)(ee)}S.defaultVisit=y,S.createBaseSemanticVisitorConstructor=function(b,S){var r=function(){};return(0,fe.defineNameProp)(r,b+"BaseSemantics"),(r.prototype={visit:function(b,S){if((0,ie.default)(b)&&(b=b[0]),!(0,le.default)(b))return this[b.name](b.children,S)},validateVisitor:function(){var b=m(this,S);if(!(0,re.default)(b)){var J=(0,oe.default)(b,(function(b){return b.msg}));throw Error("Errors Detected in CST Visitor <".concat(this.constructor.name,">:\n\t")+"".concat(J.join("\n\n").replace(/\n/g,"\n\t")))}}}).constructor=r,r._RULE_NAMES=S,r},S.createBaseVisitorConstructorWithDefaults=function(b,S,J){var n=function(){};(0,fe.defineNameProp)(n,b+"BaseSemanticsWithDefaults");var ee=Object.create(J.prototype);return(0,se.default)(S,(function(b){ee[b]=y})),(n.prototype=ee).constructor=n,n},function(b){b[b.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",b[b.MISSING_METHOD=1]="MISSING_METHOD"}(te=S.CstVisitorDefinitionError||(S.CstVisitorDefinitionError={})),S.validateVisitor=m,S.validateMissingCstMethods=T;var de=["constructor","visit","validateVisitor"];function _(b,S){var J=[];for(var ee in b)!(0,ce.default)(b[ee])||(0,pe.default)(de,ee)||(0,pe.default)(S,ee)||J.push({msg:"Redundant visitor method: <".concat(ee,"> on ").concat(b.constructor.name," CST Visitor\n")+"There is no Grammar Rule corresponding to this method's name.\n",type:te.REDUNDANT_METHOD,methodName:ee});return J}S.validateRedundantMethods=_},1007:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.defaultGrammarValidatorErrorProvider=S.defaultGrammarResolverErrorProvider=S.defaultParserErrorProvider=void 0;var te=J(6736),re=ee(J(3237)),ne=ee(J(6760)),ie=ee(J(8215)),oe=J(7729),se=J(7729);S.defaultParserErrorProvider={buildMismatchTokenMessage:function(b){var S=b.expected,J=b.actual,ee=(b.previous,b.ruleName,(0,te.hasTokenLabel)(S)?"--\x3e ".concat((0,te.tokenLabel)(S)," <--"):"token of type --\x3e ".concat(S.name," <--"));return"Expecting ".concat(ee," but found --\x3e '").concat(J.image,"' <--")},buildNotAllInputParsedMessage:function(b){var S=b.firstRedundant;return b.ruleName,"Redundant input, expecting EOF but found: "+S.image},buildNoViableAltMessage:function(b){var S=b.expectedPathsPerAlt,J=b.actual,ee=(b.previous,b.customUserDescription),oe=(b.ruleName,"Expecting: "),se="\nbut found: '"+(0,re.default)(J).image+"'";if(ee)return oe+ee+se;var ae=(0,ie.default)(S,(function(b,S){return b.concat(S)}),[]),ue=(0,ne.default)(ae,(function(b){return"[".concat((0,ne.default)(b,(function(b){return(0,te.tokenLabel)(b)})).join(", "),"]")})),ce=(0,ne.default)(ue,(function(b,S){return" ".concat(S+1,". ").concat(b)}));return oe+"one of these possible Token sequences:\n".concat(ce.join("\n"))+se},buildEarlyExitMessage:function(b){var S=b.expectedIterationPaths,J=b.actual,ee=b.customUserDescription,ie=(b.ruleName,"Expecting: "),oe="\nbut found: '"+(0,re.default)(J).image+"'";if(ee)return ie+ee+oe;var se=(0,ne.default)(S,(function(b){return"[".concat((0,ne.default)(b,(function(b){return(0,te.tokenLabel)(b)})).join(","),"]")}));return ie+"expecting at least one iteration which starts with one of these possible Token sequences::\n "+"<".concat(se.join(" ,"),">")+oe}},Object.freeze(S.defaultParserErrorProvider),S.defaultGrammarResolverErrorProvider={buildRuleNotFoundError:function(b,S){return"Invalid grammar, reference to a rule which is not defined: ->"+S.nonTerminalName+"<-\ninside top level rule: ->"+b.name+"<-"}},S.defaultGrammarValidatorErrorProvider={buildDuplicateFoundError:function(b,S){var J,ee=b.name,te=(0,re.default)(S),ne=te.idx,ie=(0,se.getProductionDslName)(te),ae=(J=te)instanceof oe.Terminal?J.terminalType.name:J instanceof oe.NonTerminal?J.nonTerminalName:"",ue=ne>0,ce="->".concat(ie).concat(ue?ne:"","<- ").concat(ae?"with argument: ->".concat(ae,"<-"):"","\n appears more than once (").concat(S.length," times) in the top level rule: ->").concat(ee,"<-. \n For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES \n ");return(ce=ce.replace(/[ \t]+/g," ")).replace(/\s\s+/g,"\n")},buildNamespaceConflictError:function(b){return"Namespace conflict found in grammar.\n"+"The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <".concat(b.name,">.\n")+"To resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter."},buildAlternationPrefixAmbiguityError:function(b){var S=(0,ne.default)(b.prefixPath,(function(b){return(0,te.tokenLabel)(b)})).join(", "),J=0===b.alternation.idx?"":b.alternation.idx;return"Ambiguous alternatives: <".concat(b.ambiguityIndices.join(" ,"),"> due to common lookahead prefix\n")+"in <OR".concat(J,"> inside <").concat(b.topLevelRule.name,"> Rule,\n")+"<".concat(S,"> may appears as a prefix path in all these alternatives.\n")+"See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details."},buildAlternationAmbiguityError:function(b){var S=(0,ne.default)(b.prefixPath,(function(b){return(0,te.tokenLabel)(b)})).join(", "),J=0===b.alternation.idx?"":b.alternation.idx;return"Ambiguous Alternatives Detected: <".concat(b.ambiguityIndices.join(" ,"),"> in <OR").concat(J,">")+" inside <".concat(b.topLevelRule.name,"> Rule,\n")+"<".concat(S,"> may appears as a prefix path in all these alternatives.\n")+"See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details."},buildEmptyRepetitionError:function(b){var S=(0,se.getProductionDslName)(b.repetition);return 0!==b.repetition.idx&&(S+=b.repetition.idx),"The repetition <".concat(S,"> within Rule <").concat(b.topLevelRule.name,"> can never consume any tokens.\n")+"This could lead to an infinite loop."},buildTokenNameError:function(b){return"deprecated"},buildEmptyAlternationError:function(b){return"Ambiguous empty alternative: <".concat(b.emptyChoiceIdx+1,">")+" in <OR".concat(b.alternation.idx,"> inside <").concat(b.topLevelRule.name,"> Rule.\n")+"Only the last alternative may be an empty alternative."},buildTooManyAlternativesError:function(b){return"An Alternation cannot have more than 256 alternatives:\n"+"<OR".concat(b.alternation.idx,"> inside <").concat(b.topLevelRule.name,"> Rule.\n has ").concat(b.alternation.definition.length+1," alternatives.")},buildLeftRecursionError:function(b){var S=b.topLevelRule.name,J=(0,ne.default)(b.leftRecursionPath,(function(b){return b.name})),ee="".concat(S," --\x3e ").concat(J.concat([S]).join(" --\x3e "));return"Left Recursion found in grammar.\n"+"rule: <".concat(S,"> can be invoked from itself (directly or indirectly)\n")+"without consuming any Tokens. The grammar path that causes this is: \n ".concat(ee,"\n")+" To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_factoring."},buildInvalidRuleNameError:function(b){return"deprecated"},buildDuplicateRuleNameError:function(b){var S;return S=b.topLevelRule instanceof oe.Rule?b.topLevelRule.name:b.topLevelRule,"Duplicate definition, rule: ->".concat(S,"<- is already defined in the grammar: ->").concat(b.grammarName,"<-")}}},643:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.EarlyExitException=S.NotAllInputParsedException=S.NoViableAltException=S.MismatchedTokenException=S.isRecognitionException=void 0;var ne=re(J(1886)),ie="MismatchedTokenException",oe="NoViableAltException",se="EarlyExitException",ae="NotAllInputParsedException",ue=[ie,oe,se,ae];Object.freeze(ue),S.isRecognitionException=function(b){return(0,ne.default)(ue,b.name)};var ce=function(b){function e(S,J){var ee=this.constructor,te=b.call(this,S)||this;return te.token=J,te.resyncedTokens=[],Object.setPrototypeOf(te,ee.prototype),Error.captureStackTrace&&Error.captureStackTrace(te,te.constructor),te}return te(e,b),e}(Error),le=function(b){function e(S,J,ee){var te=b.call(this,S,J)||this;return te.previousToken=ee,te.name=ie,te}return te(e,b),e}(ce);S.MismatchedTokenException=le;var pe=function(b){function e(S,J,ee){var te=b.call(this,S,J)||this;return te.previousToken=ee,te.name=oe,te}return te(e,b),e}(ce);S.NoViableAltException=pe;var fe=function(b){function e(S,J){var ee=b.call(this,S,J)||this;return ee.name=ae,ee}return te(e,b),e}(ce);S.NotAllInputParsedException=fe;var de=function(b){function e(S,J,ee){var te=b.call(this,S,J)||this;return te.previousToken=ee,te.name=se,te}return te(e,b),e}(ce);S.EarlyExitException=de},3870:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.checkPrefixAlternativesAmbiguities=S.validateSomeNonEmptyLookaheadPath=S.validateTooManyAlts=S.RepetitionCollector=S.validateAmbiguousAlternationAlternatives=S.validateEmptyOrAlternative=S.getFirstNoneTerminal=S.validateNoLeftRecursion=S.validateRuleIsOverridden=S.validateRuleDoesNotAlreadyExist=S.OccurrenceValidationCollector=S.identifyProductionForDuplicates=S.validateGrammar=void 0;var ne=re(J(3237)),ie=re(J(5455)),oe=re(J(7264)),se=re(J(5676)),ae=re(J(882)),ue=re(J(2070)),ce=re(J(7335)),le=re(J(6760)),pe=re(J(9756)),fe=re(J(3440)),de=re(J(8215)),he=re(J(2208)),me=re(J(8346)),ge=re(J(1886)),ye=re(J(5838)),ve=re(J(4004)),Te=J(2941),be=J(7729),_e=J(4677),Ee=J(9985),Ae=J(7729),we=J(7729),xe=re(J(4934)),ke=re(J(417)),Ce=J(1201);function k(b){return"".concat((0,be.getProductionDslName)(b),"_#_").concat(b.idx,"_#_").concat(L(b))}function L(b){return b instanceof Ae.Terminal?b.terminalType.name:b instanceof Ae.NonTerminal?b.nonTerminalName:""}S.validateGrammar=function(b,S,J,ee,te){var re=(0,ye.default)(b,(function(b){return function(b,S){var J=new Pe;b.accept(J);var ee=J.allProductions,te=(0,fe.default)(ee,k),re=(0,he.default)(te,(function(b){return b.length>1}));return(0,le.default)((0,me.default)(re),(function(J){var ee=(0,ne.default)(J),te=S.buildDuplicateFoundError(b,J),re=(0,be.getProductionDslName)(ee),ie={message:te,type:Te.ParserDefinitionErrorType.DUPLICATE_PRODUCTIONS,ruleName:b.name,dslName:re,occurrence:ee.idx},oe=L(ee);return oe&&(ie.parameter=oe),ie}))}(b,ee)})),oe=(0,ye.default)(b,(function(b){return D(b,b,ee)})),se=[],ae=[],ue=[];(0,ie.default)(oe)&&(se=(0,ye.default)(b,(function(b){return j(b,ee)})),ae=(0,ye.default)(b,(function(b){return U(b,S,ee)})),ue=W(b,S,ee));var ce=function(b,S,J){var ee=[],te=(0,le.default)(S,(function(b){return b.name}));return(0,pe.default)(b,(function(b){var S=b.name;if((0,ge.default)(te,S)){var re=J.buildNamespaceConflictError(b);ee.push({message:re,type:Te.ParserDefinitionErrorType.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:S})}})),ee}(b,J,ee),de=(0,ye.default)(b,(function(b){return G(b,ee)})),ve=(0,ye.default)(b,(function(S){return M(S,b,te,ee)}));return re.concat(ue,oe,se,ae,ce,de,ve)},S.identifyProductionForDuplicates=k;var Pe=function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.allProductions=[],S}return te(e,b),e.prototype.visitNonTerminal=function(b){this.allProductions.push(b)},e.prototype.visitOption=function(b){this.allProductions.push(b)},e.prototype.visitRepetitionWithSeparator=function(b){this.allProductions.push(b)},e.prototype.visitRepetitionMandatory=function(b){this.allProductions.push(b)},e.prototype.visitRepetitionMandatoryWithSeparator=function(b){this.allProductions.push(b)},e.prototype.visitRepetition=function(b){this.allProductions.push(b)},e.prototype.visitAlternation=function(b){this.allProductions.push(b)},e.prototype.visitTerminal=function(b){this.allProductions.push(b)},e}(we.GAstVisitor);function M(b,S,J,ee){var te=[];if((0,de.default)(S,(function(S,J){return J.name===b.name?S+1:S}),0)>1){var re=ee.buildDuplicateRuleNameError({topLevelRule:b,grammarName:J});te.push({message:re,type:Te.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:b.name})}return te}function D(b,S,J,ee){void 0===ee&&(ee=[]);var te=[],re=w(S.definition);if((0,ie.default)(re))return[];var ne=b.name;(0,ge.default)(re,b)&&te.push({message:J.buildLeftRecursionError({topLevelRule:b,leftRecursionPath:ee}),type:Te.ParserDefinitionErrorType.LEFT_RECURSION,ruleName:ne});var oe=(0,ce.default)(re,ee.concat([b])),se=(0,ye.default)(oe,(function(S){var te=(0,ve.default)(ee);return te.push(S),D(b,S,J,te)}));return te.concat(se)}function w(b){var S=[];if((0,ie.default)(b))return S;var J=(0,ne.default)(b);if(J instanceof Ae.NonTerminal)S.push(J.referencedRule);else if(J instanceof Ae.Alternative||J instanceof Ae.Option||J instanceof Ae.RepetitionMandatory||J instanceof Ae.RepetitionMandatoryWithSeparator||J instanceof Ae.RepetitionWithSeparator||J instanceof Ae.Repetition)S=S.concat(w(J.definition));else if(J instanceof Ae.Alternation)S=(0,se.default)((0,le.default)(J.definition,(function(b){return w(b.definition)})));else if(!(J instanceof Ae.Terminal))throw Error("non exhaustive match");var ee=(0,be.isOptionalProd)(J),te=b.length>1;if(ee&&te){var re=(0,oe.default)(b);return S.concat(w(re))}return S}S.OccurrenceValidationCollector=Pe,S.validateRuleDoesNotAlreadyExist=M,S.validateRuleIsOverridden=function(b,S,J){var ee,te=[];return(0,ge.default)(S,b)||(ee="Invalid rule override, rule: ->".concat(b,"<- cannot be overridden in the grammar: ->").concat(J,"<-")+"as it is not defined in any of the super grammars ",te.push({message:ee,type:Te.ParserDefinitionErrorType.INVALID_RULE_OVERRIDE,ruleName:b})),te},S.validateNoLeftRecursion=D,S.getFirstNoneTerminal=w;var Se=function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.alternations=[],S}return te(e,b),e.prototype.visitAlternation=function(b){this.alternations.push(b)},e}(we.GAstVisitor);function j(b,S){var J=new Se;b.accept(J);var ee=J.alternations;return(0,ye.default)(ee,(function(J){var ee=(0,xe.default)(J.definition);return(0,ye.default)(ee,(function(ee,te){var re=(0,Ee.nextPossibleTokensAfter)([ee],[],Ce.tokenStructuredMatcher,1);return(0,ie.default)(re)?[{message:S.buildEmptyAlternationError({topLevelRule:b,alternation:J,emptyChoiceIdx:te}),type:Te.ParserDefinitionErrorType.NONE_LAST_EMPTY_ALT,ruleName:b.name,occurrence:J.idx,alternative:te+1}]:[]}))}))}function U(b,S,J){var ee=new Se;b.accept(ee);var te=ee.alternations;return te=(0,ue.default)(te,(function(b){return!0===b.ignoreAmbiguities})),(0,ye.default)(te,(function(ee){var te=ee.idx,re=ee.maxLookahead||S,ne=(0,_e.getLookaheadPathsForOr)(te,b,re,ee),ie=function(b,S,J,ee){var te=[],re=(0,de.default)(b,(function(J,ee,re){return!0===S.definition[re].ignoreAmbiguities||(0,pe.default)(ee,(function(ee){var ne=[re];(0,pe.default)(b,(function(b,J){re!==J&&(0,_e.containsPath)(b,ee)&&!0!==S.definition[J].ignoreAmbiguities&&ne.push(J)})),ne.length>1&&!(0,_e.containsPath)(te,ee)&&(te.push(ee),J.push({alts:ne,path:ee}))})),J}),[]);return(0,le.default)(re,(function(b){var te=(0,le.default)(b.alts,(function(b){return b+1}));return{message:ee.buildAlternationAmbiguityError({topLevelRule:J,alternation:S,ambiguityIndices:te,prefixPath:b.path}),type:Te.ParserDefinitionErrorType.AMBIGUOUS_ALTS,ruleName:J.name,occurrence:S.idx,alternatives:b.alts}}))}(ne,ee,b,J),oe=V(ne,ee,b,J);return ie.concat(oe)}))}S.validateEmptyOrAlternative=j,S.validateAmbiguousAlternationAlternatives=U;var Ie=function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.allProductions=[],S}return te(e,b),e.prototype.visitRepetitionWithSeparator=function(b){this.allProductions.push(b)},e.prototype.visitRepetitionMandatory=function(b){this.allProductions.push(b)},e.prototype.visitRepetitionMandatoryWithSeparator=function(b){this.allProductions.push(b)},e.prototype.visitRepetition=function(b){this.allProductions.push(b)},e}(we.GAstVisitor);function G(b,S){var J=new Se;b.accept(J);var ee=J.alternations;return(0,ye.default)(ee,(function(J){return J.definition.length>255?[{message:S.buildTooManyAlternativesError({topLevelRule:b,alternation:J}),type:Te.ParserDefinitionErrorType.TOO_MANY_ALTS,ruleName:b.name,occurrence:J.idx}]:[]}))}function W(b,S,J){var ee=[];return(0,pe.default)(b,(function(b){var te=new Ie;b.accept(te);var re=te.allProductions;(0,pe.default)(re,(function(te){var re=(0,_e.getProdType)(te),ne=te.maxLookahead||S,oe=te.idx,ae=(0,_e.getLookaheadPathsForOptionalProd)(oe,b,re,ne)[0];if((0,ie.default)((0,se.default)(ae))){var ue=J.buildEmptyRepetitionError({topLevelRule:b,repetition:te});ee.push({message:ue,type:Te.ParserDefinitionErrorType.NO_NON_EMPTY_LOOKAHEAD,ruleName:b.name})}}))})),ee}function V(b,S,J,ee){var te=(0,de.default)(b,(function(b,S,J){var ee=(0,le.default)(S,(function(b){return{idx:J,path:b}}));return b.concat(ee)}),[]);return(0,ke.default)((0,ye.default)(te,(function(b){if(!0===S.definition[b.idx].ignoreAmbiguities)return[];var re=b.idx,ne=b.path,ie=(0,ae.default)(te,(function(b){return!0!==S.definition[b.idx].ignoreAmbiguities&&b.idx<re&&(0,_e.isStrictPrefixOfPath)(b.path,ne)}));return(0,le.default)(ie,(function(b){var te=[b.idx+1,re+1],ne=0===S.idx?"":S.idx;return{message:ee.buildAlternationPrefixAmbiguityError({topLevelRule:J,alternation:S,ambiguityIndices:te,prefixPath:b.path}),type:Te.ParserDefinitionErrorType.AMBIGUOUS_PREFIX_ALTS,ruleName:J.name,occurrence:ne,alternatives:te}}))})))}S.RepetitionCollector=Ie,S.validateTooManyAlts=G,S.validateSomeNonEmptyLookaheadPath=W,S.checkPrefixAlternativesAmbiguities=V},8052:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.firstForTerminal=S.firstForBranching=S.firstForSequence=S.first=void 0;var te=ee(J(5676)),re=ee(J(5652)),ne=ee(J(6760)),ie=J(7729),oe=J(7729);function c(b){if(b instanceof ie.NonTerminal)return c(b.referencedRule);if(b instanceof ie.Terminal)return p(b);if((0,oe.isSequenceProd)(b))return l(b);if((0,oe.isBranchingProd)(b))return f(b);throw Error("non exhaustive match")}function l(b){for(var S,J=[],ee=b.definition,te=0,ne=ee.length>te,ie=!0;ne&&ie;)S=ee[te],ie=(0,oe.isOptionalProd)(S),J=J.concat(c(S)),te+=1,ne=ee.length>te;return(0,re.default)(J)}function f(b){var S=(0,ne.default)(b.definition,(function(b){return c(b)}));return(0,re.default)((0,te.default)(S))}function p(b){return[b.terminalType]}S.first=c,S.firstForSequence=l,S.firstForBranching=f,S.firstForTerminal=p},4917:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.buildInProdFollowPrefix=S.buildBetweenProdsFollowPrefix=S.computeAllProdsFollows=S.ResyncFollowsWalker=void 0;var ne=J(8567),ie=J(8052),oe=re(J(9756)),se=re(J(19)),ae=J(3710),ue=J(7729),ce=function(b){function e(S){var J=b.call(this)||this;return J.topProd=S,J.follows={},J}return te(e,b),e.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},e.prototype.walkTerminal=function(b,S,J){},e.prototype.walkProdRef=function(b,S,J){var ee=d(b.referencedRule,b.idx)+this.topProd.name,te=S.concat(J),re=new ue.Alternative({definition:te}),ne=(0,ie.first)(re);this.follows[ee]=ne},e}(ne.RestWalker);function d(b,S){return b.name+S+ae.IN}S.ResyncFollowsWalker=ce,S.computeAllProdsFollows=function(b){var S={};return(0,oe.default)(b,(function(b){var J=new ce(b).startWalking();(0,se.default)(S,J)})),S},S.buildBetweenProdsFollowPrefix=d,S.buildInProdFollowPrefix=function(b){return b.terminalType.name+b.idx+ae.IN}},1665:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.validateGrammar=S.resolveGrammar=void 0;var te=ee(J(9756)),re=ee(J(4573)),ne=J(6304),ie=J(3870),oe=J(1007);S.resolveGrammar=function(b){var S=(0,re.default)(b,{errMsgProvider:oe.defaultGrammarResolverErrorProvider}),J={};return(0,te.default)(b.rules,(function(b){J[b.name]=b})),(0,ne.resolveGrammar)(J,S.errMsgProvider)},S.validateGrammar=function(b){return b=(0,re.default)(b,{errMsgProvider:oe.defaultGrammarValidatorErrorProvider}),(0,ie.validateGrammar)(b.rules,b.maxLookahead,b.tokenTypes,b.errMsgProvider,b.grammarName)}},9985:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.nextPossibleTokensAfter=S.possiblePathsFrom=S.NextTerminalAfterAtLeastOneSepWalker=S.NextTerminalAfterAtLeastOneWalker=S.NextTerminalAfterManySepWalker=S.NextTerminalAfterManyWalker=S.AbstractNextTerminalAfterProductionWalker=S.NextAfterTokenWalker=S.AbstractNextPossibleTokensWalker=void 0;var ne=J(8567),ie=re(J(3237)),oe=re(J(5455)),se=re(J(4934)),ae=re(J(7264)),ue=re(J(6974)),ce=re(J(9756)),le=re(J(4004)),pe=J(8052),fe=J(7729),de=function(b){function e(S,J){var ee=b.call(this)||this;return ee.topProd=S,ee.path=J,ee.possibleTokTypes=[],ee.nextProductionName="",ee.nextProductionOccurrence=0,ee.found=!1,ee.isAtEndOfPath=!1,ee}return te(e,b),e.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=(0,le.default)(this.path.ruleStack).reverse(),this.occurrenceStack=(0,le.default)(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},e.prototype.walk=function(S,J){void 0===J&&(J=[]),this.found||b.prototype.walk.call(this,S,J)},e.prototype.walkProdRef=function(b,S,J){if(b.referencedRule.name===this.nextProductionName&&b.idx===this.nextProductionOccurrence){var ee=S.concat(J);this.updateExpectedNext(),this.walk(b.referencedRule,ee)}},e.prototype.updateExpectedNext=function(){(0,oe.default)(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},e}(ne.RestWalker);S.AbstractNextPossibleTokensWalker=de;var he=function(b){function e(S,J){var ee=b.call(this,S,J)||this;return ee.path=J,ee.nextTerminalName="",ee.nextTerminalOccurrence=0,ee.nextTerminalName=ee.path.lastTok.name,ee.nextTerminalOccurrence=ee.path.lastTokOccurrence,ee}return te(e,b),e.prototype.walkTerminal=function(b,S,J){if(this.isAtEndOfPath&&b.terminalType.name===this.nextTerminalName&&b.idx===this.nextTerminalOccurrence&&!this.found){var ee=S.concat(J),te=new fe.Alternative({definition:ee});this.possibleTokTypes=(0,pe.first)(te),this.found=!0}},e}(de);S.NextAfterTokenWalker=he;var me=function(b){function e(S,J){var ee=b.call(this)||this;return ee.topRule=S,ee.occurrence=J,ee.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},ee}return te(e,b),e.prototype.startWalking=function(){return this.walk(this.topRule),this.result},e}(ne.RestWalker);S.AbstractNextTerminalAfterProductionWalker=me;var ge=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}return te(e,b),e.prototype.walkMany=function(S,J,ee){if(S.idx===this.occurrence){var te=(0,ie.default)(J.concat(ee));this.result.isEndOfRule=void 0===te,te instanceof fe.Terminal&&(this.result.token=te.terminalType,this.result.occurrence=te.idx)}else b.prototype.walkMany.call(this,S,J,ee)},e}(me);S.NextTerminalAfterManyWalker=ge;var ye=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}return te(e,b),e.prototype.walkManySep=function(S,J,ee){if(S.idx===this.occurrence){var te=(0,ie.default)(J.concat(ee));this.result.isEndOfRule=void 0===te,te instanceof fe.Terminal&&(this.result.token=te.terminalType,this.result.occurrence=te.idx)}else b.prototype.walkManySep.call(this,S,J,ee)},e}(me);S.NextTerminalAfterManySepWalker=ye;var ve=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}return te(e,b),e.prototype.walkAtLeastOne=function(S,J,ee){if(S.idx===this.occurrence){var te=(0,ie.default)(J.concat(ee));this.result.isEndOfRule=void 0===te,te instanceof fe.Terminal&&(this.result.token=te.terminalType,this.result.occurrence=te.idx)}else b.prototype.walkAtLeastOne.call(this,S,J,ee)},e}(me);S.NextTerminalAfterAtLeastOneWalker=ve;var Te=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}return te(e,b),e.prototype.walkAtLeastOneSep=function(S,J,ee){if(S.idx===this.occurrence){var te=(0,ie.default)(J.concat(ee));this.result.isEndOfRule=void 0===te,te instanceof fe.Terminal&&(this.result.token=te.terminalType,this.result.occurrence=te.idx)}else b.prototype.walkAtLeastOneSep.call(this,S,J,ee)},e}(me);function R(b,S,J,ee){var te=(0,le.default)(J);te.push(b.name);var re=(0,le.default)(ee);return re.push(1),{idx:S,def:b.definition,ruleStack:te,occurrenceStack:re}}S.NextTerminalAfterAtLeastOneSepWalker=Te,S.possiblePathsFrom=function t(b,S,J){void 0===J&&(J=[]),J=(0,le.default)(J);var ee=[],te=0;function a(re){var ne=t(re.concat((0,ae.default)(b,te+1)),S,J);return ee.concat(ne)}for(;J.length<S&&te<b.length;){var re=b[te];if(re instanceof fe.Alternative)return a(re.definition);if(re instanceof fe.NonTerminal)return a(re.definition);if(re instanceof fe.Option)ee=a(re.definition);else{if(re instanceof fe.RepetitionMandatory)return a(ne=re.definition.concat([new fe.Repetition({definition:re.definition})]));if(re instanceof fe.RepetitionMandatoryWithSeparator)return a(ne=[new fe.Alternative({definition:re.definition}),new fe.Repetition({definition:[new fe.Terminal({terminalType:re.separator})].concat(re.definition)})]);if(re instanceof fe.RepetitionWithSeparator){var ne=re.definition.concat([new fe.Repetition({definition:[new fe.Terminal({terminalType:re.separator})].concat(re.definition)})]);ee=a(ne)}else if(re instanceof fe.Repetition)ne=re.definition.concat([new fe.Repetition({definition:re.definition})]),ee=a(ne);else{if(re instanceof fe.Alternation)return(0,ce.default)(re.definition,(function(b){!1===(0,oe.default)(b.definition)&&(ee=a(b.definition))})),ee;if(!(re instanceof fe.Terminal))throw Error("non exhaustive match");J.push(re.terminalType)}}te++}return ee.push({partialPath:J,suffixDef:(0,ae.default)(b,te)}),ee},S.nextPossibleTokensAfter=function(b,S,J,ee){var te="EXIT_NONE_TERMINAL",re=[te],ne="EXIT_ALTERNATIVE",ie=!1,ce=S.length,pe=ce-ee-1,de=[],he=[];for(he.push({idx:-1,def:b,ruleStack:[],occurrenceStack:[]});!(0,oe.default)(he);){var me=he.pop();if(me!==ne){var ge=me.def,ye=me.idx,ve=me.ruleStack,Te=me.occurrenceStack;if(!(0,oe.default)(ge)){var be=ge[0];if(be===te){var _e={idx:ye,def:(0,ae.default)(ge),ruleStack:(0,se.default)(ve),occurrenceStack:(0,se.default)(Te)};he.push(_e)}else if(be instanceof fe.Terminal)if(ye<ce-1){var Ee=ye+1;J(S[Ee],be.terminalType)&&(_e={idx:Ee,def:(0,ae.default)(ge),ruleStack:ve,occurrenceStack:Te},he.push(_e))}else{if(ye!==ce-1)throw Error("non exhaustive match");de.push({nextTokenType:be.terminalType,nextTokenOccurrence:be.idx,ruleStack:ve,occurrenceStack:Te}),ie=!0}else if(be instanceof fe.NonTerminal){var Ae=(0,le.default)(ve);Ae.push(be.nonTerminalName);var we=(0,le.default)(Te);we.push(be.idx),_e={idx:ye,def:be.definition.concat(re,(0,ae.default)(ge)),ruleStack:Ae,occurrenceStack:we},he.push(_e)}else if(be instanceof fe.Option){var xe={idx:ye,def:(0,ae.default)(ge),ruleStack:ve,occurrenceStack:Te};he.push(xe),he.push(ne);var ke={idx:ye,def:be.definition.concat((0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te};he.push(ke)}else if(be instanceof fe.RepetitionMandatory){var Ce=new fe.Repetition({definition:be.definition,idx:be.idx});_e={idx:ye,def:be.definition.concat([Ce],(0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te},he.push(_e)}else if(be instanceof fe.RepetitionMandatoryWithSeparator){var Pe=new fe.Terminal({terminalType:be.separator});Ce=new fe.Repetition({definition:[Pe].concat(be.definition),idx:be.idx}),_e={idx:ye,def:be.definition.concat([Ce],(0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te},he.push(_e)}else if(be instanceof fe.RepetitionWithSeparator){xe={idx:ye,def:(0,ae.default)(ge),ruleStack:ve,occurrenceStack:Te},he.push(xe),he.push(ne),Pe=new fe.Terminal({terminalType:be.separator});var Se=new fe.Repetition({definition:[Pe].concat(be.definition),idx:be.idx});ke={idx:ye,def:be.definition.concat([Se],(0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te},he.push(ke)}else if(be instanceof fe.Repetition)xe={idx:ye,def:(0,ae.default)(ge),ruleStack:ve,occurrenceStack:Te},he.push(xe),he.push(ne),Se=new fe.Repetition({definition:be.definition,idx:be.idx}),ke={idx:ye,def:be.definition.concat([Se],(0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te},he.push(ke);else if(be instanceof fe.Alternation)for(var Ie=be.definition.length-1;Ie>=0;Ie--){var De={idx:ye,def:be.definition[Ie].definition.concat((0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te};he.push(De),he.push(ne)}else if(be instanceof fe.Alternative)he.push({idx:ye,def:be.definition.concat((0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te});else{if(!(be instanceof fe.Rule))throw Error("non exhaustive match");he.push(R(be,ye,ve,Te))}}}else ie&&(0,ue.default)(he).idx<=pe&&he.pop()}return de}},8209:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.getKeyForAutomaticLookahead=S.AT_LEAST_ONE_SEP_IDX=S.MANY_SEP_IDX=S.AT_LEAST_ONE_IDX=S.MANY_IDX=S.OPTION_IDX=S.OR_IDX=S.BITS_FOR_ALT_IDX=S.BITS_FOR_RULE_IDX=S.BITS_FOR_OCCURRENCE_IDX=S.BITS_FOR_METHOD_TYPE=void 0,S.BITS_FOR_METHOD_TYPE=4,S.BITS_FOR_OCCURRENCE_IDX=8,S.BITS_FOR_RULE_IDX=12,S.BITS_FOR_ALT_IDX=8,S.OR_IDX=1<<S.BITS_FOR_OCCURRENCE_IDX,S.OPTION_IDX=2<<S.BITS_FOR_OCCURRENCE_IDX,S.MANY_IDX=3<<S.BITS_FOR_OCCURRENCE_IDX,S.AT_LEAST_ONE_IDX=4<<S.BITS_FOR_OCCURRENCE_IDX,S.MANY_SEP_IDX=5<<S.BITS_FOR_OCCURRENCE_IDX,S.AT_LEAST_ONE_SEP_IDX=6<<S.BITS_FOR_OCCURRENCE_IDX,S.getKeyForAutomaticLookahead=function(b,S,J){return J|S|b},S.BITS_FOR_ALT_IDX},4677:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.areTokenCategoriesNotUsed=S.isStrictPrefixOfPath=S.containsPath=S.getLookaheadPathsForOptionalProd=S.getLookaheadPathsForOr=S.lookAheadSequenceFromAlternatives=S.buildSingleAlternativeLookaheadFunction=S.buildAlternativesLookAheadFunc=S.buildLookaheadFuncForOptionalProd=S.buildLookaheadFuncForOr=S.getProdType=S.PROD_TYPE=void 0;var ne,ie=re(J(5455)),oe=re(J(5676)),se=re(J(9794)),ae=re(J(6760)),ue=re(J(9756)),ce=re(J(3352)),le=re(J(8215)),pe=J(9985),fe=J(8567),de=J(1201),he=J(7729),me=J(7729);!function(b){b[b.OPTION=0]="OPTION",b[b.REPETITION=1]="REPETITION",b[b.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",b[b.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",b[b.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",b[b.ALTERNATION=5]="ALTERNATION"}(ne=S.PROD_TYPE||(S.PROD_TYPE={})),S.getProdType=function(b){if(b instanceof he.Option)return ne.OPTION;if(b instanceof he.Repetition)return ne.REPETITION;if(b instanceof he.RepetitionMandatory)return ne.REPETITION_MANDATORY;if(b instanceof he.RepetitionMandatoryWithSeparator)return ne.REPETITION_MANDATORY_WITH_SEPARATOR;if(b instanceof he.RepetitionWithSeparator)return ne.REPETITION_WITH_SEPARATOR;if(b instanceof he.Alternation)return ne.ALTERNATION;throw Error("non exhaustive match")},S.buildLookaheadFuncForOr=function(b,S,J,ee,te,re){var ne=I(b,S,J);return re(ne,ee,P(ne)?de.tokenStructuredMatcherNoCategories:de.tokenStructuredMatcher,te)},S.buildLookaheadFuncForOptionalProd=function(b,S,J,ee,te,re){var ne=x(b,S,te,J),ie=P(ne)?de.tokenStructuredMatcherNoCategories:de.tokenStructuredMatcher;return re(ne[0],ie,ee)},S.buildAlternativesLookAheadFunc=function(b,S,J,ee){var te=b.length,re=(0,se.default)(b,(function(b){return(0,se.default)(b,(function(b){return 1===b.length}))}));if(S)return function(S){for(var ee=(0,ae.default)(S,(function(b){return b.GATE})),re=0;re<te;re++){var ne=b[re],ie=ne.length,oe=ee[re];if(void 0===oe||!1!==oe.call(this))e:for(var se=0;se<ie;se++){for(var ue=ne[se],ce=ue.length,le=0;le<ce;le++){var pe=this.LA(le+1);if(!1===J(pe,ue[le]))continue e}return re}}};if(re&&!ee){var ne=(0,ae.default)(b,(function(b){return(0,oe.default)(b)})),ie=(0,le.default)(ne,(function(b,S,J){return(0,ue.default)(S,(function(S){(0,ce.default)(b,S.tokenTypeIdx)||(b[S.tokenTypeIdx]=J),(0,ue.default)(S.categoryMatches,(function(S){(0,ce.default)(b,S)||(b[S]=J)}))})),b}),{});return function(){var b=this.LA(1);return ie[b.tokenTypeIdx]}}return function(){for(var S=0;S<te;S++){var ee=b[S],re=ee.length;e:for(var ne=0;ne<re;ne++){for(var ie=ee[ne],oe=ie.length,se=0;se<oe;se++){var ae=this.LA(se+1);if(!1===J(ae,ie[se]))continue e}return S}}}},S.buildSingleAlternativeLookaheadFunction=function(b,S,J){var ee=(0,se.default)(b,(function(b){return 1===b.length})),te=b.length;if(ee&&!J){var re=(0,oe.default)(b);if(1===re.length&&(0,ie.default)(re[0].categoryMatches)){var ne=re[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===ne}}var ae=(0,le.default)(re,(function(b,S,J){return b[S.tokenTypeIdx]=!0,(0,ue.default)(S.categoryMatches,(function(S){b[S]=!0})),b}),[]);return function(){var b=this.LA(1);return!0===ae[b.tokenTypeIdx]}}return function(){e:for(var J=0;J<te;J++){for(var ee=b[J],re=ee.length,ne=0;ne<re;ne++){var ie=this.LA(ne+1);if(!1===S(ie,ee[ne]))continue e}return!0}return!1}};var ge=function(b){function e(S,J,ee){var te=b.call(this)||this;return te.topProd=S,te.targetOccurrence=J,te.targetProdType=ee,te}return te(e,b),e.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},e.prototype.checkIsTarget=function(b,S,J,ee){return b.idx===this.targetOccurrence&&this.targetProdType===S&&(this.restDef=J.concat(ee),!0)},e.prototype.walkOption=function(S,J,ee){this.checkIsTarget(S,ne.OPTION,J,ee)||b.prototype.walkOption.call(this,S,J,ee)},e.prototype.walkAtLeastOne=function(S,J,ee){this.checkIsTarget(S,ne.REPETITION_MANDATORY,J,ee)||b.prototype.walkOption.call(this,S,J,ee)},e.prototype.walkAtLeastOneSep=function(S,J,ee){this.checkIsTarget(S,ne.REPETITION_MANDATORY_WITH_SEPARATOR,J,ee)||b.prototype.walkOption.call(this,S,J,ee)},e.prototype.walkMany=function(S,J,ee){this.checkIsTarget(S,ne.REPETITION,J,ee)||b.prototype.walkOption.call(this,S,J,ee)},e.prototype.walkManySep=function(S,J,ee){this.checkIsTarget(S,ne.REPETITION_WITH_SEPARATOR,J,ee)||b.prototype.walkOption.call(this,S,J,ee)},e}(fe.RestWalker),ye=function(b){function e(S,J,ee){var te=b.call(this)||this;return te.targetOccurrence=S,te.targetProdType=J,te.targetRef=ee,te.result=[],te}return te(e,b),e.prototype.checkIsTarget=function(b,S){b.idx!==this.targetOccurrence||this.targetProdType!==S||void 0!==this.targetRef&&b!==this.targetRef||(this.result=b.definition)},e.prototype.visitOption=function(b){this.checkIsTarget(b,ne.OPTION)},e.prototype.visitRepetition=function(b){this.checkIsTarget(b,ne.REPETITION)},e.prototype.visitRepetitionMandatory=function(b){this.checkIsTarget(b,ne.REPETITION_MANDATORY)},e.prototype.visitRepetitionMandatoryWithSeparator=function(b){this.checkIsTarget(b,ne.REPETITION_MANDATORY_WITH_SEPARATOR)},e.prototype.visitRepetitionWithSeparator=function(b){this.checkIsTarget(b,ne.REPETITION_WITH_SEPARATOR)},e.prototype.visitAlternation=function(b){this.checkIsTarget(b,ne.ALTERNATION)},e}(me.GAstVisitor);function g(b){for(var S=new Array(b),J=0;J<b;J++)S[J]=[];return S}function O(b){for(var S=[""],J=0;J<b.length;J++){for(var ee=b[J],te=[],re=0;re<S.length;re++){var ne=S[re];te.push(ne+"_"+ee.tokenTypeIdx);for(var ie=0;ie<ee.categoryMatches.length;ie++){var oe="_"+ee.categoryMatches[ie];te.push(ne+oe)}}S=te}return S}function R(b,S,J){for(var ee=0;ee<b.length;ee++)if(ee!==J)for(var te=b[ee],re=0;re<S.length;re++)if(!0===te[S[re]])return!1;return!0}function A(b,S){for(var J=(0,ae.default)(b,(function(b){return(0,pe.possiblePathsFrom)([b],1)})),ee=g(J.length),te=(0,ae.default)(J,(function(b){var S={};return(0,ue.default)(b,(function(b){var J=O(b.partialPath);(0,ue.default)(J,(function(b){S[b]=!0}))})),S})),re=J,ne=1;ne<=S;ne++){var oe=re;re=g(oe.length);for(var c=function(b){for(var J=oe[b],se=0;se<J.length;se++){var ae=J[se].partialPath,ce=J[se].suffixDef,le=O(ae);if(R(te,le,b)||(0,ie.default)(ce)||ae.length===S){var fe=ee[b];if(!1===N(fe,ae)){fe.push(ae);for(var de=0;de<le.length;de++){var he=le[de];te[b][he]=!0}}}else{var me=(0,pe.possiblePathsFrom)(ce,ne+1,ae);re[b]=re[b].concat(me),(0,ue.default)(me,(function(S){var J=O(S.partialPath);(0,ue.default)(J,(function(S){te[b][S]=!0}))}))}}},se=0;se<oe.length;se++)c(se)}return ee}function I(b,S,J,ee){var te=new ye(b,ne.ALTERNATION,ee);return S.accept(te),A(te.result,J)}function x(b,S,J,ee){var te=new ye(b,J);S.accept(te);var re=te.result,ne=new ge(S,b,J).startWalking();return A([new he.Alternative({definition:re}),new he.Alternative({definition:ne})],ee)}function N(b,S){e:for(var J=0;J<b.length;J++){var ee=b[J];if(ee.length===S.length){for(var te=0;te<ee.length;te++){var re=S[te],ne=ee[te];if(!1==(re===ne||void 0!==ne.categoryMatchesMap[re.tokenTypeIdx]))continue e}return!0}}return!1}function P(b){return(0,se.default)(b,(function(b){return(0,se.default)(b,(function(b){return(0,se.default)(b,(function(b){return(0,ie.default)(b.categoryMatches)}))}))}))}S.lookAheadSequenceFromAlternatives=A,S.getLookaheadPathsForOr=I,S.getLookaheadPathsForOptionalProd=x,S.containsPath=N,S.isStrictPrefixOfPath=function(b,S){return b.length<S.length&&(0,se.default)(b,(function(b,J){var ee=S[J];return b===ee||ee.categoryMatchesMap[b.tokenTypeIdx]}))},S.areTokenCategoriesNotUsed=P},6304:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.GastRefResolverVisitor=S.resolveGrammar=void 0;var ne=J(2941),ie=re(J(9756)),oe=re(J(8346)),se=J(7729);S.resolveGrammar=function(b,S){var J=new ae(b,S);return J.resolveRefs(),J.errors};var ae=function(b){function e(S,J){var ee=b.call(this)||this;return ee.nameToTopRule=S,ee.errMsgProvider=J,ee.errors=[],ee}return te(e,b),e.prototype.resolveRefs=function(){var b=this;(0,ie.default)((0,oe.default)(this.nameToTopRule),(function(S){b.currTopLevel=S,S.accept(b)}))},e.prototype.visitNonTerminal=function(b){var S=this.nameToTopRule[b.nonTerminalName];if(S)b.referencedRule=S;else{var J=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,b);this.errors.push({message:J,type:ne.ParserDefinitionErrorType.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:b.nonTerminalName})}},e}(se.GAstVisitor);S.GastRefResolverVisitor=ae},8567:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.RestWalker=void 0;var te=ee(J(7264)),re=ee(J(9756)),ne=J(7729),ie=function(){function t(){}return t.prototype.walk=function(b,S){var J=this;void 0===S&&(S=[]),(0,re.default)(b.definition,(function(ee,re){var ie=(0,te.default)(b.definition,re+1);if(ee instanceof ne.NonTerminal)J.walkProdRef(ee,ie,S);else if(ee instanceof ne.Terminal)J.walkTerminal(ee,ie,S);else if(ee instanceof ne.Alternative)J.walkFlat(ee,ie,S);else if(ee instanceof ne.Option)J.walkOption(ee,ie,S);else if(ee instanceof ne.RepetitionMandatory)J.walkAtLeastOne(ee,ie,S);else if(ee instanceof ne.RepetitionMandatoryWithSeparator)J.walkAtLeastOneSep(ee,ie,S);else if(ee instanceof ne.RepetitionWithSeparator)J.walkManySep(ee,ie,S);else if(ee instanceof ne.Repetition)J.walkMany(ee,ie,S);else{if(!(ee instanceof ne.Alternation))throw Error("non exhaustive match");J.walkOr(ee,ie,S)}}))},t.prototype.walkTerminal=function(b,S,J){},t.prototype.walkProdRef=function(b,S,J){},t.prototype.walkFlat=function(b,S,J){var ee=S.concat(J);this.walk(b,ee)},t.prototype.walkOption=function(b,S,J){var ee=S.concat(J);this.walk(b,ee)},t.prototype.walkAtLeastOne=function(b,S,J){var ee=[new ne.Option({definition:b.definition})].concat(S,J);this.walk(b,ee)},t.prototype.walkAtLeastOneSep=function(b,S,J){var ee=u(b,S,J);this.walk(b,ee)},t.prototype.walkMany=function(b,S,J){var ee=[new ne.Option({definition:b.definition})].concat(S,J);this.walk(b,ee)},t.prototype.walkManySep=function(b,S,J){var ee=u(b,S,J);this.walk(b,ee)},t.prototype.walkOr=function(b,S,J){var ee=this,te=S.concat(J);(0,re.default)(b.definition,(function(b){var S=new ne.Alternative({definition:[b]});ee.walk(S,te)}))},t}();function u(b,S,J){return[new ne.Option({definition:[new ne.Terminal({terminalType:b.separator})].concat(b.definition)})].concat(S,J)}S.RestWalker=ie},2941:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.EmbeddedActionsParser=S.CstParser=S.Parser=S.EMPTY_ALT=S.ParserDefinitionErrorType=S.DEFAULT_RULE_CONFIG=S.DEFAULT_PARSER_CONFIG=S.END_OF_FILE=void 0;var ne,ie=re(J(5455)),oe=re(J(6760)),se=re(J(9756)),ae=re(J(8346)),ue=re(J(3352)),ce=re(J(4004)),le=J(7146),pe=J(4917),fe=J(6736),de=J(1007),he=J(1665),me=J(9992),ge=J(161),ye=J(3225),ve=J(598),Te=J(8503),be=J(3273),_e=J(9464),Ee=J(1625),Ae=J(6688),we=J(146),xe=J(4803);S.END_OF_FILE=(0,fe.createTokenInstance)(fe.EOF,"",NaN,NaN,NaN,NaN,NaN,NaN),Object.freeze(S.END_OF_FILE),S.DEFAULT_PARSER_CONFIG=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:de.defaultParserErrorProvider,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),S.DEFAULT_RULE_CONFIG=Object.freeze({recoveryValueFunc:function(){},resyncEnabled:!0}),(ne=S.ParserDefinitionErrorType||(S.ParserDefinitionErrorType={}))[ne.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",ne[ne.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",ne[ne.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",ne[ne.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",ne[ne.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",ne[ne.LEFT_RECURSION=5]="LEFT_RECURSION",ne[ne.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",ne[ne.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",ne[ne.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",ne[ne.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",ne[ne.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",ne[ne.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",ne[ne.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",S.EMPTY_ALT=function(b){return void 0===b&&(b=void 0),function(){return b}};var ke=function(){function t(b,J){this.definitionErrors=[],this.selfAnalysisDone=!1;var ee=this;if(ee.initErrorHandler(J),ee.initLexerAdapter(),ee.initLooksAhead(J),ee.initRecognizerEngine(b,J),ee.initRecoverable(J),ee.initTreeBuilder(J),ee.initContentAssist(),ee.initGastRecorder(J),ee.initPerformanceTracer(J),(0,ue.default)(J,"ignoredIssues"))throw new Error("The <ignoredIssues> IParserConfig property has been deprecated.\n\tPlease use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.\n\tSee: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\tFor further details.");this.skipValidations=(0,ue.default)(J,"skipValidations")?J.skipValidations:S.DEFAULT_PARSER_CONFIG.skipValidations}return t.performSelfAnalysis=function(b){throw Error("The **static** `performSelfAnalysis` method has been deprecated.\t\nUse the **instance** method with the same name instead.")},t.prototype.performSelfAnalysis=function(){var b=this;this.TRACE_INIT("performSelfAnalysis",(function(){var S;b.selfAnalysisDone=!0;var J=b.className;b.TRACE_INIT("toFastProps",(function(){(0,le.toFastProperties)(b)})),b.TRACE_INIT("Grammar Recording",(function(){try{b.enableRecording(),(0,se.default)(b.definedRulesNames,(function(S){var J,ee=b[S].originalGrammarAction;b.TRACE_INIT("".concat(S," Rule"),(function(){J=b.topLevelRuleRecord(S,ee)})),b.gastProductionsCache[S]=J}))}finally{b.disableRecording()}}));var ee=[];if(b.TRACE_INIT("Grammar Resolving",(function(){ee=(0,he.resolveGrammar)({rules:(0,ae.default)(b.gastProductionsCache)}),b.definitionErrors=b.definitionErrors.concat(ee)})),b.TRACE_INIT("Grammar Validations",(function(){if((0,ie.default)(ee)&&!1===b.skipValidations){var S=(0,he.validateGrammar)({rules:(0,ae.default)(b.gastProductionsCache),maxLookahead:b.maxLookahead,tokenTypes:(0,ae.default)(b.tokensMap),errMsgProvider:de.defaultGrammarValidatorErrorProvider,grammarName:J});b.definitionErrors=b.definitionErrors.concat(S)}})),(0,ie.default)(b.definitionErrors)&&(b.recoveryEnabled&&b.TRACE_INIT("computeAllProdsFollows",(function(){var S=(0,pe.computeAllProdsFollows)((0,ae.default)(b.gastProductionsCache));b.resyncFollows=S})),b.TRACE_INIT("ComputeLookaheadFunctions",(function(){b.preComputeLookaheadFunctions((0,ae.default)(b.gastProductionsCache))}))),!t.DEFER_DEFINITION_ERRORS_HANDLING&&!(0,ie.default)(b.definitionErrors))throw S=(0,oe.default)(b.definitionErrors,(function(b){return b.message})),new Error("Parser Definition Errors detected:\n ".concat(S.join("\n-------------------------------\n")))}))},t.DEFER_DEFINITION_ERRORS_HANDLING=!1,t}();S.Parser=ke,(0,xe.applyMixins)(ke,[me.Recoverable,ge.LooksAhead,ye.TreeBuilder,ve.LexerAdapter,be.RecognizerEngine,Te.RecognizerApi,_e.ErrorHandler,Ee.ContentAssist,Ae.GastRecorder,we.PerformanceTracer]);var Ce=function(b){function r(J,ee){void 0===ee&&(ee=S.DEFAULT_PARSER_CONFIG);var te=(0,ce.default)(ee);return te.outputCst=!0,b.call(this,J,te)||this}return te(r,b),r}(ke);S.CstParser=Ce;var Pe=function(b){function r(J,ee){void 0===ee&&(ee=S.DEFAULT_PARSER_CONFIG);var te=(0,ce.default)(ee);return te.outputCst=!1,b.call(this,J,te)||this}return te(r,b),r}(ke);S.EmbeddedActionsParser=Pe},1625:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.ContentAssist=void 0;var te=J(9985),re=ee(J(3237)),ne=ee(J(4336)),ie=function(){function t(){}return t.prototype.initContentAssist=function(){},t.prototype.computeContentAssist=function(b,S){var J=this.gastProductionsCache[b];if((0,ne.default)(J))throw Error("Rule ->".concat(b,"<- does not exist in this grammar."));return(0,te.nextPossibleTokensAfter)([J],S,this.tokenMatcher,this.maxLookahead)},t.prototype.getNextPossibleTokenTypes=function(b){var S=(0,re.default)(b.ruleStack),J=this.getGAstProductions()[S];return new te.NextAfterTokenWalker(J,b).startWalking()},t}();S.ContentAssist=ie},9464:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.ErrorHandler=void 0;var te=J(643),re=ee(J(3352)),ne=ee(J(4004)),ie=J(4677),oe=J(2941),se=function(){function t(){}return t.prototype.initErrorHandler=function(b){this._errors=[],this.errorMessageProvider=(0,re.default)(b,"errorMessageProvider")?b.errorMessageProvider:oe.DEFAULT_PARSER_CONFIG.errorMessageProvider},t.prototype.SAVE_ERROR=function(b){if((0,te.isRecognitionException)(b))return b.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:(0,ne.default)(this.RULE_OCCURRENCE_STACK)},this._errors.push(b),b;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(t.prototype,"errors",{get:function(){return(0,ne.default)(this._errors)},set:function(b){this._errors=b},enumerable:!1,configurable:!0}),t.prototype.raiseEarlyExitException=function(b,S,J){for(var ee=this.getCurrRuleFullName(),re=this.getGAstProductions()[ee],ne=(0,ie.getLookaheadPathsForOptionalProd)(b,re,S,this.maxLookahead)[0],oe=[],se=1;se<=this.maxLookahead;se++)oe.push(this.LA(se));var ae=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:ne,actual:oe,previous:this.LA(0),customUserDescription:J,ruleName:ee});throw this.SAVE_ERROR(new te.EarlyExitException(ae,this.LA(1),this.LA(0)))},t.prototype.raiseNoAltException=function(b,S){for(var J=this.getCurrRuleFullName(),ee=this.getGAstProductions()[J],re=(0,ie.getLookaheadPathsForOr)(b,ee,this.maxLookahead),ne=[],oe=1;oe<=this.maxLookahead;oe++)ne.push(this.LA(oe));var se=this.LA(0),ae=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:re,actual:ne,previous:se,customUserDescription:S,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new te.NoViableAltException(ae,this.LA(1),se))},t}();S.ErrorHandler=se},6688:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.GastRecorder=void 0;var te=ee(J(6974)),re=ee(J(6152)),ne=ee(J(1525)),ie=ee(J(9756)),oe=ee(J(1049)),se=ee(J(3352)),ae=J(7729),ue=J(9027),ce=J(1201),le=J(6736),pe=J(2941),fe=J(8209),de={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(de);var he=Math.pow(2,fe.BITS_FOR_OCCURRENCE_IDX)-1,me=(0,le.createToken)({name:"RECORDING_PHASE_TOKEN",pattern:ue.Lexer.NA});(0,ce.augmentTokenTypes)([me]);var ge=(0,le.createTokenInstance)(me,"This IToken indicates the Parser is in Recording Phase\n\tSee: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1,-1);Object.freeze(ge);var ye={name:"This CSTNode indicates the Parser is in Recording Phase\n\tSee: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",children:{}},ve=function(){function t(){}return t.prototype.initGastRecorder=function(b){this.recordingProdStack=[],this.RECORDING_PHASE=!1},t.prototype.enableRecording=function(){var b=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",(function(){for(var e=function(S){var J=S>0?S:"";b["CONSUME".concat(J)]=function(b,J){return this.consumeInternalRecord(b,S,J)},b["SUBRULE".concat(J)]=function(b,J){return this.subruleInternalRecord(b,S,J)},b["OPTION".concat(J)]=function(b){return this.optionInternalRecord(b,S)},b["OR".concat(J)]=function(b){return this.orInternalRecord(b,S)},b["MANY".concat(J)]=function(b){this.manyInternalRecord(S,b)},b["MANY_SEP".concat(J)]=function(b){this.manySepFirstInternalRecord(S,b)},b["AT_LEAST_ONE".concat(J)]=function(b){this.atLeastOneInternalRecord(S,b)},b["AT_LEAST_ONE_SEP".concat(J)]=function(b){this.atLeastOneSepFirstInternalRecord(S,b)}},S=0;S<10;S++)e(S);b.consume=function(b,S,J){return this.consumeInternalRecord(S,b,J)},b.subrule=function(b,S,J){return this.subruleInternalRecord(S,b,J)},b.option=function(b,S){return this.optionInternalRecord(S,b)},b.or=function(b,S){return this.orInternalRecord(S,b)},b.many=function(b,S){this.manyInternalRecord(b,S)},b.atLeastOne=function(b,S){this.atLeastOneInternalRecord(b,S)},b.ACTION=b.ACTION_RECORD,b.BACKTRACK=b.BACKTRACK_RECORD,b.LA=b.LA_RECORD}))},t.prototype.disableRecording=function(){var b=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",(function(){for(var S=b,J=0;J<10;J++){var ee=J>0?J:"";delete S["CONSUME".concat(ee)],delete S["SUBRULE".concat(ee)],delete S["OPTION".concat(ee)],delete S["OR".concat(ee)],delete S["MANY".concat(ee)],delete S["MANY_SEP".concat(ee)],delete S["AT_LEAST_ONE".concat(ee)],delete S["AT_LEAST_ONE_SEP".concat(ee)]}delete S.consume,delete S.subrule,delete S.option,delete S.or,delete S.many,delete S.atLeastOne,delete S.ACTION,delete S.BACKTRACK,delete S.LA}))},t.prototype.ACTION_RECORD=function(b){},t.prototype.BACKTRACK_RECORD=function(b,S){return function(){return!0}},t.prototype.LA_RECORD=function(b){return pe.END_OF_FILE},t.prototype.topLevelRuleRecord=function(b,S){try{var J=new ae.Rule({definition:[],name:b});return J.name=b,this.recordingProdStack.push(J),S.call(this),this.recordingProdStack.pop(),J}catch(b){if(!0!==b.KNOWN_RECORDER_ERROR)try{b.message=b.message+'\n\t This error was thrown during the "grammar recording phase" For more info see:\n\thttps://chevrotain.io/docs/guide/internals.html#grammar-recording'}catch(S){throw b}throw b}},t.prototype.optionInternalRecord=function(b,S){return O.call(this,ae.Option,b,S)},t.prototype.atLeastOneInternalRecord=function(b,S){O.call(this,ae.RepetitionMandatory,S,b)},t.prototype.atLeastOneSepFirstInternalRecord=function(b,S){O.call(this,ae.RepetitionMandatoryWithSeparator,S,b,!0)},t.prototype.manyInternalRecord=function(b,S){O.call(this,ae.Repetition,S,b)},t.prototype.manySepFirstInternalRecord=function(b,S){O.call(this,ae.RepetitionWithSeparator,S,b,!0)},t.prototype.orInternalRecord=function(b,S){return R.call(this,b,S)},t.prototype.subruleInternalRecord=function(b,S,J){if(I(S),!b||!1===(0,se.default)(b,"ruleName")){var ee=new Error("<SUBRULE".concat(A(S),"> argument is invalid")+" expecting a Parser method reference but got: <".concat(JSON.stringify(b),">")+"\n inside top level rule: <".concat(this.recordingProdStack[0].name,">"));throw ee.KNOWN_RECORDER_ERROR=!0,ee}var re=(0,te.default)(this.recordingProdStack),ne=b.ruleName,ie=new ae.NonTerminal({idx:S,nonTerminalName:ne,label:null==J?void 0:J.LABEL,referencedRule:void 0});return re.definition.push(ie),this.outputCst?ye:de},t.prototype.consumeInternalRecord=function(b,S,J){if(I(S),!(0,ce.hasShortKeyProperty)(b)){var ee=new Error("<CONSUME".concat(A(S),"> argument is invalid")+" expecting a TokenType reference but got: <".concat(JSON.stringify(b),">")+"\n inside top level rule: <".concat(this.recordingProdStack[0].name,">"));throw ee.KNOWN_RECORDER_ERROR=!0,ee}var re=(0,te.default)(this.recordingProdStack),ne=new ae.Terminal({idx:S,terminalType:b,label:null==J?void 0:J.LABEL});return re.definition.push(ne),ge},t}();function O(b,S,J,ee){void 0===ee&&(ee=!1),I(J);var re=(0,te.default)(this.recordingProdStack),ne=(0,oe.default)(S)?S:S.DEF,ie=new b({definition:[],idx:J});return ee&&(ie.separator=S.SEP),(0,se.default)(S,"MAX_LOOKAHEAD")&&(ie.maxLookahead=S.MAX_LOOKAHEAD),this.recordingProdStack.push(ie),ne.call(this),re.definition.push(ie),this.recordingProdStack.pop(),de}function R(b,S){var J=this;I(S);var ee=(0,te.default)(this.recordingProdStack),ue=!1===(0,re.default)(b),ce=!1===ue?b:b.DEF,le=new ae.Alternation({definition:[],idx:S,ignoreAmbiguities:ue&&!0===b.IGNORE_AMBIGUITIES});(0,se.default)(b,"MAX_LOOKAHEAD")&&(le.maxLookahead=b.MAX_LOOKAHEAD);var pe=(0,ne.default)(ce,(function(b){return(0,oe.default)(b.GATE)}));return le.hasPredicates=pe,ee.definition.push(le),(0,ie.default)(ce,(function(b){var S=new ae.Alternative({definition:[]});le.definition.push(S),(0,se.default)(b,"IGNORE_AMBIGUITIES")?S.ignoreAmbiguities=b.IGNORE_AMBIGUITIES:(0,se.default)(b,"GATE")&&(S.ignoreAmbiguities=!0),J.recordingProdStack.push(S),b.ALT.call(J),J.recordingProdStack.pop()})),de}function A(b){return 0===b?"":"".concat(b)}function I(b){if(b<0||b>he){var S=new Error("Invalid DSL Method idx value: <".concat(b,">\n\t")+"Idx value must be a none negative value smaller than ".concat(he+1));throw S.KNOWN_RECORDER_ERROR=!0,S}}S.GastRecorder=ve},598:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.LexerAdapter=void 0;var ee=J(2941),te=function(){function t(){}return t.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(t.prototype,"input",{get:function(){return this.tokVector},set:function(b){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=b,this.tokVectorLength=b.length},enumerable:!1,configurable:!0}),t.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):ee.END_OF_FILE},t.prototype.LA=function(b){var S=this.currIdx+b;return S<0||this.tokVectorLength<=S?ee.END_OF_FILE:this.tokVector[S]},t.prototype.consumeToken=function(){this.currIdx++},t.prototype.exportLexerState=function(){return this.currIdx},t.prototype.importLexerState=function(b){this.currIdx=b},t.prototype.resetLexerState=function(){this.currIdx=-1},t.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},t.prototype.getLexerPosition=function(){return this.exportLexerState()},t}();S.LexerAdapter=te},161:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.collectMethods=S.LooksAhead=void 0;var ne=J(4677),ie=re(J(9756)),oe=re(J(3352)),se=J(2941),ae=J(8209),ue=J(7729),ce=J(7729),le=function(){function t(){}return t.prototype.initLooksAhead=function(b){this.dynamicTokensEnabled=(0,oe.default)(b,"dynamicTokensEnabled")?b.dynamicTokensEnabled:se.DEFAULT_PARSER_CONFIG.dynamicTokensEnabled,this.maxLookahead=(0,oe.default)(b,"maxLookahead")?b.maxLookahead:se.DEFAULT_PARSER_CONFIG.maxLookahead,this.lookAheadFuncsCache=new Map},t.prototype.preComputeLookaheadFunctions=function(b){var S=this;(0,ie.default)(b,(function(b){S.TRACE_INIT("".concat(b.name," Rule Lookahead"),(function(){var J=v(b),ee=J.alternation,te=J.repetition,re=J.option,oe=J.repetitionMandatory,se=J.repetitionMandatoryWithSeparator,ue=J.repetitionWithSeparator;(0,ie.default)(ee,(function(J){var ee=0===J.idx?"":J.idx;S.TRACE_INIT("".concat((0,ce.getProductionDslName)(J)).concat(ee),(function(){var ee=(0,ne.buildLookaheadFuncForOr)(J.idx,b,J.maxLookahead||S.maxLookahead,J.hasPredicates,S.dynamicTokensEnabled,S.lookAheadBuilderForAlternatives),te=(0,ae.getKeyForAutomaticLookahead)(S.fullRuleNameToShort[b.name],ae.OR_IDX,J.idx);S.setLaFuncCache(te,ee)}))})),(0,ie.default)(te,(function(J){S.computeLookaheadFunc(b,J.idx,ae.MANY_IDX,ne.PROD_TYPE.REPETITION,J.maxLookahead,(0,ce.getProductionDslName)(J))})),(0,ie.default)(re,(function(J){S.computeLookaheadFunc(b,J.idx,ae.OPTION_IDX,ne.PROD_TYPE.OPTION,J.maxLookahead,(0,ce.getProductionDslName)(J))})),(0,ie.default)(oe,(function(J){S.computeLookaheadFunc(b,J.idx,ae.AT_LEAST_ONE_IDX,ne.PROD_TYPE.REPETITION_MANDATORY,J.maxLookahead,(0,ce.getProductionDslName)(J))})),(0,ie.default)(se,(function(J){S.computeLookaheadFunc(b,J.idx,ae.AT_LEAST_ONE_SEP_IDX,ne.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR,J.maxLookahead,(0,ce.getProductionDslName)(J))})),(0,ie.default)(ue,(function(J){S.computeLookaheadFunc(b,J.idx,ae.MANY_SEP_IDX,ne.PROD_TYPE.REPETITION_WITH_SEPARATOR,J.maxLookahead,(0,ce.getProductionDslName)(J))}))}))}))},t.prototype.computeLookaheadFunc=function(b,S,J,ee,te,re){var ie=this;this.TRACE_INIT("".concat(re).concat(0===S?"":S),(function(){var re=(0,ne.buildLookaheadFuncForOptionalProd)(S,b,te||ie.maxLookahead,ie.dynamicTokensEnabled,ee,ie.lookAheadBuilderForOptional),oe=(0,ae.getKeyForAutomaticLookahead)(ie.fullRuleNameToShort[b.name],J,S);ie.setLaFuncCache(oe,re)}))},t.prototype.lookAheadBuilderForOptional=function(b,S,J){return(0,ne.buildSingleAlternativeLookaheadFunction)(b,S,J)},t.prototype.lookAheadBuilderForAlternatives=function(b,S,J,ee){return(0,ne.buildAlternativesLookAheadFunc)(b,S,J,ee)},t.prototype.getKeyForAutomaticLookahead=function(b,S){var J=this.getLastExplicitRuleShortName();return(0,ae.getKeyForAutomaticLookahead)(J,b,S)},t.prototype.getLaFuncFromCache=function(b){return this.lookAheadFuncsCache.get(b)},t.prototype.setLaFuncCache=function(b,S){this.lookAheadFuncsCache.set(b,S)},t}();S.LooksAhead=le;var pe=new(function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},S}return te(e,b),e.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},e.prototype.visitOption=function(b){this.dslMethods.option.push(b)},e.prototype.visitRepetitionWithSeparator=function(b){this.dslMethods.repetitionWithSeparator.push(b)},e.prototype.visitRepetitionMandatory=function(b){this.dslMethods.repetitionMandatory.push(b)},e.prototype.visitRepetitionMandatoryWithSeparator=function(b){this.dslMethods.repetitionMandatoryWithSeparator.push(b)},e.prototype.visitRepetition=function(b){this.dslMethods.repetition.push(b)},e.prototype.visitAlternation=function(b){this.dslMethods.alternation.push(b)},e}(ue.GAstVisitor));function v(b){pe.reset(),b.accept(pe);var S=pe.dslMethods;return pe.reset(),S}S.collectMethods=v},146:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.PerformanceTracer=void 0;var te=ee(J(3352)),re=J(7146),ne=J(2941),ie=function(){function t(){}return t.prototype.initPerformanceTracer=function(b){if((0,te.default)(b,"traceInitPerf")){var S=b.traceInitPerf,J="number"==typeof S;this.traceInitMaxIdent=J?S:1/0,this.traceInitPerf=J?S>0:S}else this.traceInitMaxIdent=0,this.traceInitPerf=ne.DEFAULT_PARSER_CONFIG.traceInitPerf;this.traceInitIndent=-1},t.prototype.TRACE_INIT=function(b,S){if(!0===this.traceInitPerf){this.traceInitIndent++;var J=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent<this.traceInitMaxIdent&&console.log("".concat(J,"--\x3e <").concat(b,">"));var ee=(0,re.timer)(S),te=ee.time,ne=ee.value,ie=te>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&ie("".concat(J,"<-- <").concat(b,"> time: ").concat(te,"ms")),this.traceInitIndent--,ne}return S()},t}();S.PerformanceTracer=ie},8503:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.RecognizerApi=void 0;var te=ee(J(8346)),re=ee(J(1886)),ne=J(643),ie=J(2941),oe=J(1007),se=J(3870),ae=J(7729),ue=function(){function t(){}return t.prototype.ACTION=function(b){return b.call(this)},t.prototype.consume=function(b,S,J){return this.consumeInternal(S,b,J)},t.prototype.subrule=function(b,S,J){return this.subruleInternal(S,b,J)},t.prototype.option=function(b,S){return this.optionInternal(S,b)},t.prototype.or=function(b,S){return this.orInternal(S,b)},t.prototype.many=function(b,S){return this.manyInternal(b,S)},t.prototype.atLeastOne=function(b,S){return this.atLeastOneInternal(b,S)},t.prototype.CONSUME=function(b,S){return this.consumeInternal(b,0,S)},t.prototype.CONSUME1=function(b,S){return this.consumeInternal(b,1,S)},t.prototype.CONSUME2=function(b,S){return this.consumeInternal(b,2,S)},t.prototype.CONSUME3=function(b,S){return this.consumeInternal(b,3,S)},t.prototype.CONSUME4=function(b,S){return this.consumeInternal(b,4,S)},t.prototype.CONSUME5=function(b,S){return this.consumeInternal(b,5,S)},t.prototype.CONSUME6=function(b,S){return this.consumeInternal(b,6,S)},t.prototype.CONSUME7=function(b,S){return this.consumeInternal(b,7,S)},t.prototype.CONSUME8=function(b,S){return this.consumeInternal(b,8,S)},t.prototype.CONSUME9=function(b,S){return this.consumeInternal(b,9,S)},t.prototype.SUBRULE=function(b,S){return this.subruleInternal(b,0,S)},t.prototype.SUBRULE1=function(b,S){return this.subruleInternal(b,1,S)},t.prototype.SUBRULE2=function(b,S){return this.subruleInternal(b,2,S)},t.prototype.SUBRULE3=function(b,S){return this.subruleInternal(b,3,S)},t.prototype.SUBRULE4=function(b,S){return this.subruleInternal(b,4,S)},t.prototype.SUBRULE5=function(b,S){return this.subruleInternal(b,5,S)},t.prototype.SUBRULE6=function(b,S){return this.subruleInternal(b,6,S)},t.prototype.SUBRULE7=function(b,S){return this.subruleInternal(b,7,S)},t.prototype.SUBRULE8=function(b,S){return this.subruleInternal(b,8,S)},t.prototype.SUBRULE9=function(b,S){return this.subruleInternal(b,9,S)},t.prototype.OPTION=function(b){return this.optionInternal(b,0)},t.prototype.OPTION1=function(b){return this.optionInternal(b,1)},t.prototype.OPTION2=function(b){return this.optionInternal(b,2)},t.prototype.OPTION3=function(b){return this.optionInternal(b,3)},t.prototype.OPTION4=function(b){return this.optionInternal(b,4)},t.prototype.OPTION5=function(b){return this.optionInternal(b,5)},t.prototype.OPTION6=function(b){return this.optionInternal(b,6)},t.prototype.OPTION7=function(b){return this.optionInternal(b,7)},t.prototype.OPTION8=function(b){return this.optionInternal(b,8)},t.prototype.OPTION9=function(b){return this.optionInternal(b,9)},t.prototype.OR=function(b){return this.orInternal(b,0)},t.prototype.OR1=function(b){return this.orInternal(b,1)},t.prototype.OR2=function(b){return this.orInternal(b,2)},t.prototype.OR3=function(b){return this.orInternal(b,3)},t.prototype.OR4=function(b){return this.orInternal(b,4)},t.prototype.OR5=function(b){return this.orInternal(b,5)},t.prototype.OR6=function(b){return this.orInternal(b,6)},t.prototype.OR7=function(b){return this.orInternal(b,7)},t.prototype.OR8=function(b){return this.orInternal(b,8)},t.prototype.OR9=function(b){return this.orInternal(b,9)},t.prototype.MANY=function(b){this.manyInternal(0,b)},t.prototype.MANY1=function(b){this.manyInternal(1,b)},t.prototype.MANY2=function(b){this.manyInternal(2,b)},t.prototype.MANY3=function(b){this.manyInternal(3,b)},t.prototype.MANY4=function(b){this.manyInternal(4,b)},t.prototype.MANY5=function(b){this.manyInternal(5,b)},t.prototype.MANY6=function(b){this.manyInternal(6,b)},t.prototype.MANY7=function(b){this.manyInternal(7,b)},t.prototype.MANY8=function(b){this.manyInternal(8,b)},t.prototype.MANY9=function(b){this.manyInternal(9,b)},t.prototype.MANY_SEP=function(b){this.manySepFirstInternal(0,b)},t.prototype.MANY_SEP1=function(b){this.manySepFirstInternal(1,b)},t.prototype.MANY_SEP2=function(b){this.manySepFirstInternal(2,b)},t.prototype.MANY_SEP3=function(b){this.manySepFirstInternal(3,b)},t.prototype.MANY_SEP4=function(b){this.manySepFirstInternal(4,b)},t.prototype.MANY_SEP5=function(b){this.manySepFirstInternal(5,b)},t.prototype.MANY_SEP6=function(b){this.manySepFirstInternal(6,b)},t.prototype.MANY_SEP7=function(b){this.manySepFirstInternal(7,b)},t.prototype.MANY_SEP8=function(b){this.manySepFirstInternal(8,b)},t.prototype.MANY_SEP9=function(b){this.manySepFirstInternal(9,b)},t.prototype.AT_LEAST_ONE=function(b){this.atLeastOneInternal(0,b)},t.prototype.AT_LEAST_ONE1=function(b){return this.atLeastOneInternal(1,b)},t.prototype.AT_LEAST_ONE2=function(b){this.atLeastOneInternal(2,b)},t.prototype.AT_LEAST_ONE3=function(b){this.atLeastOneInternal(3,b)},t.prototype.AT_LEAST_ONE4=function(b){this.atLeastOneInternal(4,b)},t.prototype.AT_LEAST_ONE5=function(b){this.atLeastOneInternal(5,b)},t.prototype.AT_LEAST_ONE6=function(b){this.atLeastOneInternal(6,b)},t.prototype.AT_LEAST_ONE7=function(b){this.atLeastOneInternal(7,b)},t.prototype.AT_LEAST_ONE8=function(b){this.atLeastOneInternal(8,b)},t.prototype.AT_LEAST_ONE9=function(b){this.atLeastOneInternal(9,b)},t.prototype.AT_LEAST_ONE_SEP=function(b){this.atLeastOneSepFirstInternal(0,b)},t.prototype.AT_LEAST_ONE_SEP1=function(b){this.atLeastOneSepFirstInternal(1,b)},t.prototype.AT_LEAST_ONE_SEP2=function(b){this.atLeastOneSepFirstInternal(2,b)},t.prototype.AT_LEAST_ONE_SEP3=function(b){this.atLeastOneSepFirstInternal(3,b)},t.prototype.AT_LEAST_ONE_SEP4=function(b){this.atLeastOneSepFirstInternal(4,b)},t.prototype.AT_LEAST_ONE_SEP5=function(b){this.atLeastOneSepFirstInternal(5,b)},t.prototype.AT_LEAST_ONE_SEP6=function(b){this.atLeastOneSepFirstInternal(6,b)},t.prototype.AT_LEAST_ONE_SEP7=function(b){this.atLeastOneSepFirstInternal(7,b)},t.prototype.AT_LEAST_ONE_SEP8=function(b){this.atLeastOneSepFirstInternal(8,b)},t.prototype.AT_LEAST_ONE_SEP9=function(b){this.atLeastOneSepFirstInternal(9,b)},t.prototype.RULE=function(b,S,J){if(void 0===J&&(J=ie.DEFAULT_RULE_CONFIG),(0,re.default)(this.definedRulesNames,b)){var ee={message:oe.defaultGrammarValidatorErrorProvider.buildDuplicateRuleNameError({topLevelRule:b,grammarName:this.className}),type:ie.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:b};this.definitionErrors.push(ee)}this.definedRulesNames.push(b);var te=this.defineRule(b,S,J);return this[b]=te,te},t.prototype.OVERRIDE_RULE=function(b,S,J){void 0===J&&(J=ie.DEFAULT_RULE_CONFIG);var ee=(0,se.validateRuleIsOverridden)(b,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(ee);var te=this.defineRule(b,S,J);return this[b]=te,te},t.prototype.BACKTRACK=function(b,S){return function(){this.isBackTrackingStack.push(1);var J=this.saveRecogState();try{return b.apply(this,S),!0}catch(b){if((0,ne.isRecognitionException)(b))return!1;throw b}finally{this.reloadRecogState(J),this.isBackTrackingStack.pop()}}},t.prototype.getGAstProductions=function(){return this.gastProductionsCache},t.prototype.getSerializedGastProductions=function(){return(0,ae.serializeGrammar)((0,te.default)(this.gastProductionsCache))},t}();S.RecognizerApi=ue},3273:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.RecognizerEngine=void 0;var te=ee(J(5455)),re=ee(J(6152)),ne=ee(J(5676)),ie=ee(J(9794)),oe=ee(J(5652)),se=ee(J(9259)),ae=ee(J(3352)),ue=ee(J(8346)),ce=ee(J(8215)),le=ee(J(4004)),pe=J(8209),fe=J(643),de=J(4677),he=J(9985),me=J(2941),ge=J(9992),ye=J(6736),ve=J(1201),Te=function(){function t(){}return t.prototype.initRecognizerEngine=function(b,S){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=ve.tokenStructuredMatcherNoCategories,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},(0,ae.default)(S,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0\n\tFor Further details.");if((0,re.default)(b)){if((0,te.default)(b))throw Error("A Token Vocabulary cannot be empty.\n\tNote that the first argument for the parser constructor\n\tis no longer a Token vector (since v4.0).");if("number"==typeof b[0].startOffset)throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n\tFor Further details.")}if((0,re.default)(b))this.tokensMap=(0,ce.default)(b,(function(b,S){return b[S.name]=S,b}),{});else if((0,ae.default)(b,"modes")&&(0,ie.default)((0,ne.default)((0,ue.default)(b.modes)),ve.isTokenType)){var J=(0,ne.default)((0,ue.default)(b.modes)),ee=(0,oe.default)(J);this.tokensMap=(0,ce.default)(ee,(function(b,S){return b[S.name]=S,b}),{})}else{if(!(0,se.default)(b))throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=(0,le.default)(b)}this.tokensMap.EOF=ye.EOF;var pe=(0,ae.default)(b,"modes")?(0,ne.default)((0,ue.default)(b.modes)):(0,ue.default)(b),fe=(0,ie.default)(pe,(function(b){return(0,te.default)(b.categoryMatches)}));this.tokenMatcher=fe?ve.tokenStructuredMatcherNoCategories:ve.tokenStructuredMatcher,(0,ve.augmentTokenTypes)((0,ue.default)(this.tokensMap))},t.prototype.defineRule=function(b,S,J){if(this.selfAnalysisDone)throw Error("Grammar rule <".concat(b,"> may not be defined after the 'performSelfAnalysis' method has been called'\n")+"Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.");var ee,te=(0,ae.default)(J,"resyncEnabled")?J.resyncEnabled:me.DEFAULT_RULE_CONFIG.resyncEnabled,re=(0,ae.default)(J,"recoveryValueFunc")?J.recoveryValueFunc:me.DEFAULT_RULE_CONFIG.recoveryValueFunc,ne=this.ruleShortNameIdx<<pe.BITS_FOR_METHOD_TYPE+pe.BITS_FOR_OCCURRENCE_IDX;return this.ruleShortNameIdx++,this.shortRuleNameToFull[ne]=b,this.fullRuleNameToShort[b]=ne,ee=!0===this.outputCst?function(){for(var J=[],ee=0;ee<arguments.length;ee++)J[ee]=arguments[ee];try{this.ruleInvocationStateUpdate(ne,b,this.subruleIdx),S.apply(this,J);var ie=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(ie),ie}catch(b){return this.invokeRuleCatch(b,te,re)}finally{this.ruleFinallyStateUpdate()}}:function(){for(var J=[],ee=0;ee<arguments.length;ee++)J[ee]=arguments[ee];try{return this.ruleInvocationStateUpdate(ne,b,this.subruleIdx),S.apply(this,J)}catch(b){return this.invokeRuleCatch(b,te,re)}finally{this.ruleFinallyStateUpdate()}},Object.assign(ee,{ruleName:b,originalGrammarAction:S})},t.prototype.invokeRuleCatch=function(b,S,J){var ee=1===this.RULE_STACK.length,te=S&&!this.isBackTracking()&&this.recoveryEnabled;if((0,fe.isRecognitionException)(b)){var re=b;if(te){var ne,ie=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(ie))return re.resyncedTokens=this.reSyncTo(ie),this.outputCst?((ne=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,ne):J();throw this.outputCst&&((ne=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,re.partialCstResult=ne),re}if(ee)return this.moveToTerminatedState(),J();throw re}throw b},t.prototype.optionInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.OPTION_IDX,S);return this.optionInternalLogic(b,S,J)},t.prototype.optionInternalLogic=function(b,S,J){var ee,te=this,re=this.getLaFuncFromCache(J);if("function"!=typeof b){ee=b.DEF;var ne=b.GATE;if(void 0!==ne){var ie=re;re=function(){return ne.call(te)&&ie.call(te)}}}else ee=b;if(!0===re.call(this))return ee.call(this)},t.prototype.atLeastOneInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.AT_LEAST_ONE_IDX,b);return this.atLeastOneInternalLogic(b,S,J)},t.prototype.atLeastOneInternalLogic=function(b,S,J){var ee,te=this,re=this.getLaFuncFromCache(J);if("function"!=typeof S){ee=S.DEF;var ne=S.GATE;if(void 0!==ne){var ie=re;re=function(){return ne.call(te)&&ie.call(te)}}}else ee=S;if(!0!==re.call(this))throw this.raiseEarlyExitException(b,de.PROD_TYPE.REPETITION_MANDATORY,S.ERR_MSG);for(var oe=this.doSingleRepetition(ee);!0===re.call(this)&&!0===oe;)oe=this.doSingleRepetition(ee);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[b,S],re,pe.AT_LEAST_ONE_IDX,b,he.NextTerminalAfterAtLeastOneWalker)},t.prototype.atLeastOneSepFirstInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.AT_LEAST_ONE_SEP_IDX,b);this.atLeastOneSepFirstInternalLogic(b,S,J)},t.prototype.atLeastOneSepFirstInternalLogic=function(b,S,J){var ee=this,te=S.DEF,re=S.SEP;if(!0!==this.getLaFuncFromCache(J).call(this))throw this.raiseEarlyExitException(b,de.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR,S.ERR_MSG);te.call(this);for(var a=function(){return ee.tokenMatcher(ee.LA(1),re)};!0===this.tokenMatcher(this.LA(1),re);)this.CONSUME(re),te.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[b,re,a,te,he.NextTerminalAfterAtLeastOneSepWalker],a,pe.AT_LEAST_ONE_SEP_IDX,b,he.NextTerminalAfterAtLeastOneSepWalker)},t.prototype.manyInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.MANY_IDX,b);return this.manyInternalLogic(b,S,J)},t.prototype.manyInternalLogic=function(b,S,J){var ee,te=this,re=this.getLaFuncFromCache(J);if("function"!=typeof S){ee=S.DEF;var ne=S.GATE;if(void 0!==ne){var ie=re;re=function(){return ne.call(te)&&ie.call(te)}}}else ee=S;for(var oe=!0;!0===re.call(this)&&!0===oe;)oe=this.doSingleRepetition(ee);this.attemptInRepetitionRecovery(this.manyInternal,[b,S],re,pe.MANY_IDX,b,he.NextTerminalAfterManyWalker,oe)},t.prototype.manySepFirstInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.MANY_SEP_IDX,b);this.manySepFirstInternalLogic(b,S,J)},t.prototype.manySepFirstInternalLogic=function(b,S,J){var ee=this,te=S.DEF,re=S.SEP;if(!0===this.getLaFuncFromCache(J).call(this)){te.call(this);for(var a=function(){return ee.tokenMatcher(ee.LA(1),re)};!0===this.tokenMatcher(this.LA(1),re);)this.CONSUME(re),te.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[b,re,a,te,he.NextTerminalAfterManySepWalker],a,pe.MANY_SEP_IDX,b,he.NextTerminalAfterManySepWalker)}},t.prototype.repetitionSepSecondInternal=function(b,S,J,ee,te){for(;J();)this.CONSUME(S),ee.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[b,S,J,ee,te],J,pe.AT_LEAST_ONE_SEP_IDX,b,te)},t.prototype.doSingleRepetition=function(b){var S=this.getLexerPosition();return b.call(this),this.getLexerPosition()>S},t.prototype.orInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.OR_IDX,S),ee=(0,re.default)(b)?b:b.DEF,te=this.getLaFuncFromCache(J).call(this,ee);if(void 0!==te)return ee[te].ALT.call(this);this.raiseNoAltException(S,b.ERR_MSG)},t.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()){var b=this.LA(1),S=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:b,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new fe.NotAllInputParsedException(S,b))}},t.prototype.subruleInternal=function(b,S,J){var ee;try{var te=void 0!==J?J.ARGS:void 0;return this.subruleIdx=S,ee=b.apply(this,te),this.cstPostNonTerminal(ee,void 0!==J&&void 0!==J.LABEL?J.LABEL:b.ruleName),ee}catch(S){throw this.subruleInternalError(S,J,b.ruleName)}},t.prototype.subruleInternalError=function(b,S,J){throw(0,fe.isRecognitionException)(b)&&void 0!==b.partialCstResult&&(this.cstPostNonTerminal(b.partialCstResult,void 0!==S&&void 0!==S.LABEL?S.LABEL:J),delete b.partialCstResult),b},t.prototype.consumeInternal=function(b,S,J){var ee;try{var te=this.LA(1);!0===this.tokenMatcher(te,b)?(this.consumeToken(),ee=te):this.consumeInternalError(b,te,J)}catch(J){ee=this.consumeInternalRecovery(b,S,J)}return this.cstPostTerminal(void 0!==J&&void 0!==J.LABEL?J.LABEL:b.name,ee),ee},t.prototype.consumeInternalError=function(b,S,J){var ee,te=this.LA(0);throw ee=void 0!==J&&J.ERR_MSG?J.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:b,actual:S,previous:te,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new fe.MismatchedTokenException(ee,S,te))},t.prototype.consumeInternalRecovery=function(b,S,J){if(!this.recoveryEnabled||"MismatchedTokenException"!==J.name||this.isBackTracking())throw J;var ee=this.getFollowsForInRuleRecovery(b,S);try{return this.tryInRuleRecovery(b,ee)}catch(b){throw b.name===ge.IN_RULE_RECOVERY_EXCEPTION?J:b}},t.prototype.saveRecogState=function(){var b=this.errors,S=(0,le.default)(this.RULE_STACK);return{errors:b,lexerState:this.exportLexerState(),RULE_STACK:S,CST_STACK:this.CST_STACK}},t.prototype.reloadRecogState=function(b){this.errors=b.errors,this.importLexerState(b.lexerState),this.RULE_STACK=b.RULE_STACK},t.prototype.ruleInvocationStateUpdate=function(b,S,J){this.RULE_OCCURRENCE_STACK.push(J),this.RULE_STACK.push(b),this.cstInvocationStateUpdate(S)},t.prototype.isBackTracking=function(){return 0!==this.isBackTrackingStack.length},t.prototype.getCurrRuleFullName=function(){var b=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[b]},t.prototype.shortRuleNameToFullName=function(b){return this.shortRuleNameToFull[b]},t.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),ye.EOF)},t.prototype.reset=function(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},t}();S.RecognizerEngine=Te},9992:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.attemptInRepetitionRecovery=S.Recoverable=S.InRuleRecoveryException=S.IN_RULE_RECOVERY_EXCEPTION=S.EOF_FOLLOW_KEY=void 0;var ne=J(6736),ie=re(J(5455)),oe=re(J(4934)),se=re(J(5676)),ae=re(J(6760)),ue=re(J(5281)),ce=re(J(3352)),le=re(J(1886)),pe=re(J(4004)),fe=J(643),de=J(3710),he=J(2941);S.EOF_FOLLOW_KEY={},S.IN_RULE_RECOVERY_EXCEPTION="InRuleRecoveryException";var me=function(b){function r(J){var ee=b.call(this,J)||this;return ee.name=S.IN_RULE_RECOVERY_EXCEPTION,ee}return te(r,b),r}(Error);S.InRuleRecoveryException=me;var ge=function(){function t(){}return t.prototype.initRecoverable=function(b){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=(0,ce.default)(b,"recoveryEnabled")?b.recoveryEnabled:he.DEFAULT_PARSER_CONFIG.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=_)},t.prototype.getTokenToInsert=function(b){var S=(0,ne.createTokenInstance)(b,"",NaN,NaN,NaN,NaN,NaN,NaN);return S.isInsertedInRecovery=!0,S},t.prototype.canTokenTypeBeInsertedInRecovery=function(b){return!0},t.prototype.canTokenTypeBeDeletedInRecovery=function(b){return!0},t.prototype.tryInRepetitionRecovery=function(b,S,J,ee){for(var te=this,re=this.findReSyncTokenType(),ne=this.exportLexerState(),ie=[],se=!1,ae=this.LA(1),ue=this.LA(1),p=function(){var b=te.LA(0),S=te.errorMessageProvider.buildMismatchTokenMessage({expected:ee,actual:ae,previous:b,ruleName:te.getCurrRuleFullName()}),J=new fe.MismatchedTokenException(S,ae,te.LA(0));J.resyncedTokens=(0,oe.default)(ie),te.SAVE_ERROR(J)};!se;){if(this.tokenMatcher(ue,ee))return void p();if(J.call(this))return p(),void b.apply(this,S);this.tokenMatcher(ue,re)?se=!0:(ue=this.SKIP_TOKEN(),this.addToResyncTokens(ue,ie))}this.importLexerState(ne)},t.prototype.shouldInRepetitionRecoveryBeTried=function(b,S,J){return!1!==J&&!this.tokenMatcher(this.LA(1),b)&&!this.isBackTracking()&&!this.canPerformInRuleRecovery(b,this.getFollowsForInRuleRecovery(b,S))},t.prototype.getFollowsForInRuleRecovery=function(b,S){var J=this.getCurrentGrammarPath(b,S);return this.getNextPossibleTokenTypes(J)},t.prototype.tryInRuleRecovery=function(b,S){if(this.canRecoverWithSingleTokenInsertion(b,S))return this.getTokenToInsert(b);if(this.canRecoverWithSingleTokenDeletion(b)){var J=this.SKIP_TOKEN();return this.consumeToken(),J}throw new me("sad sad panda")},t.prototype.canPerformInRuleRecovery=function(b,S){return this.canRecoverWithSingleTokenInsertion(b,S)||this.canRecoverWithSingleTokenDeletion(b)},t.prototype.canRecoverWithSingleTokenInsertion=function(b,S){var J=this;if(!this.canTokenTypeBeInsertedInRecovery(b))return!1;if((0,ie.default)(S))return!1;var ee=this.LA(1);return void 0!==(0,ue.default)(S,(function(b){return J.tokenMatcher(ee,b)}))},t.prototype.canRecoverWithSingleTokenDeletion=function(b){return!!this.canTokenTypeBeDeletedInRecovery(b)&&this.tokenMatcher(this.LA(2),b)},t.prototype.isInCurrentRuleReSyncSet=function(b){var S=this.getCurrFollowKey(),J=this.getFollowSetFromFollowKey(S);return(0,le.default)(J,b)},t.prototype.findReSyncTokenType=function(){for(var b=this.flattenFollowSet(),S=this.LA(1),J=2;;){var ee=(0,ue.default)(b,(function(b){return(0,ne.tokenMatcher)(S,b)}));if(void 0!==ee)return ee;S=this.LA(J),J++}},t.prototype.getCurrFollowKey=function(){if(1===this.RULE_STACK.length)return S.EOF_FOLLOW_KEY;var b=this.getLastExplicitRuleShortName(),J=this.getLastExplicitRuleOccurrenceIndex(),ee=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(b),idxInCallingRule:J,inRule:this.shortRuleNameToFullName(ee)}},t.prototype.buildFullFollowKeyStack=function(){var b=this,J=this.RULE_STACK,ee=this.RULE_OCCURRENCE_STACK;return(0,ae.default)(J,(function(te,re){return 0===re?S.EOF_FOLLOW_KEY:{ruleName:b.shortRuleNameToFullName(te),idxInCallingRule:ee[re],inRule:b.shortRuleNameToFullName(J[re-1])}}))},t.prototype.flattenFollowSet=function(){var b=this,S=(0,ae.default)(this.buildFullFollowKeyStack(),(function(S){return b.getFollowSetFromFollowKey(S)}));return(0,se.default)(S)},t.prototype.getFollowSetFromFollowKey=function(b){if(b===S.EOF_FOLLOW_KEY)return[ne.EOF];var J=b.ruleName+b.idxInCallingRule+de.IN+b.inRule;return this.resyncFollows[J]},t.prototype.addToResyncTokens=function(b,S){return this.tokenMatcher(b,ne.EOF)||S.push(b),S},t.prototype.reSyncTo=function(b){for(var S=[],J=this.LA(1);!1===this.tokenMatcher(J,b);)J=this.SKIP_TOKEN(),this.addToResyncTokens(J,S);return(0,oe.default)(S)},t.prototype.attemptInRepetitionRecovery=function(b,S,J,ee,te,re,ne){},t.prototype.getCurrentGrammarPath=function(b,S){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:(0,pe.default)(this.RULE_OCCURRENCE_STACK),lastTok:b,lastTokOccurrence:S}},t.prototype.getHumanReadableRuleStack=function(){var b=this;return(0,ae.default)(this.RULE_STACK,(function(S){return b.shortRuleNameToFullName(S)}))},t}();function _(b,S,J,ee,te,re,ie){var oe=this.getKeyForAutomaticLookahead(ee,te),se=this.firstAfterRepMap[oe];if(void 0===se){var ae=this.getCurrRuleFullName();se=new re(this.getGAstProductions()[ae],te).startWalking(),this.firstAfterRepMap[oe]=se}var ue=se.token,ce=se.occurrence,le=se.isEndOfRule;1===this.RULE_STACK.length&&le&&void 0===ue&&(ue=ne.EOF,ce=1),void 0!==ue&&void 0!==ce&&this.shouldInRepetitionRecoveryBeTried(ue,ce,ie)&&this.tryInRepetitionRecovery(b,S,J,ue)}S.Recoverable=ge,S.attemptInRepetitionRecovery=_},3225:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.TreeBuilder=void 0;var te=J(7485),re=ee(J(4291)),ne=ee(J(3352)),ie=ee(J(249)),oe=ee(J(4336)),se=J(8169),ae=J(2941),ue=function(){function t(){}return t.prototype.initTreeBuilder=function(b){if(this.CST_STACK=[],this.outputCst=b.outputCst,this.nodeLocationTracking=(0,ne.default)(b,"nodeLocationTracking")?b.nodeLocationTracking:ae.DEFAULT_PARSER_CONFIG.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=te.setNodeLocationFull,this.setNodeLocationFromNode=te.setNodeLocationFull,this.cstPostRule=re.default,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=re.default,this.setNodeLocationFromNode=re.default,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=te.setNodeLocationOnlyOffset,this.setNodeLocationFromNode=te.setNodeLocationOnlyOffset,this.cstPostRule=re.default,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=re.default,this.setNodeLocationFromNode=re.default,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else{if(!/none/i.test(this.nodeLocationTracking))throw Error('Invalid <nodeLocationTracking> config option: "'.concat(b.nodeLocationTracking,'"'));this.setNodeLocationFromToken=re.default,this.setNodeLocationFromNode=re.default,this.cstPostRule=re.default,this.setInitialNodeLocation=re.default}else this.cstInvocationStateUpdate=re.default,this.cstFinallyStateUpdate=re.default,this.cstPostTerminal=re.default,this.cstPostNonTerminal=re.default,this.cstPostRule=re.default},t.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(b){b.location={startOffset:NaN,endOffset:NaN}},t.prototype.setInitialNodeLocationOnlyOffsetRegular=function(b){b.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},t.prototype.setInitialNodeLocationFullRecovery=function(b){b.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},t.prototype.setInitialNodeLocationFullRegular=function(b){var S=this.LA(1);b.location={startOffset:S.startOffset,startLine:S.startLine,startColumn:S.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},t.prototype.cstInvocationStateUpdate=function(b){var S={name:b,children:Object.create(null)};this.setInitialNodeLocation(S),this.CST_STACK.push(S)},t.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},t.prototype.cstPostRuleFull=function(b){var S=this.LA(0),J=b.location;J.startOffset<=S.startOffset==1?(J.endOffset=S.endOffset,J.endLine=S.endLine,J.endColumn=S.endColumn):(J.startOffset=NaN,J.startLine=NaN,J.startColumn=NaN)},t.prototype.cstPostRuleOnlyOffset=function(b){var S=this.LA(0),J=b.location;J.startOffset<=S.startOffset==1?J.endOffset=S.endOffset:J.startOffset=NaN},t.prototype.cstPostTerminal=function(b,S){var J=this.CST_STACK[this.CST_STACK.length-1];(0,te.addTerminalToCst)(J,S,b),this.setNodeLocationFromToken(J.location,S)},t.prototype.cstPostNonTerminal=function(b,S){var J=this.CST_STACK[this.CST_STACK.length-1];(0,te.addNoneTerminalToCst)(J,S,b),this.setNodeLocationFromNode(J.location,b.location)},t.prototype.getBaseCstVisitorConstructor=function(){if((0,oe.default)(this.baseCstVisitorConstructor)){var b=(0,se.createBaseSemanticVisitorConstructor)(this.className,(0,ie.default)(this.gastProductionsCache));return this.baseCstVisitorConstructor=b,b}return this.baseCstVisitorConstructor},t.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if((0,oe.default)(this.baseCstVisitorWithDefaultsConstructor)){var b=(0,se.createBaseVisitorConstructorWithDefaults)(this.className,(0,ie.default)(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=b,b}return this.baseCstVisitorWithDefaultsConstructor},t.prototype.getLastExplicitRuleShortName=function(){var b=this.RULE_STACK;return b[b.length-1]},t.prototype.getPreviousExplicitRuleShortName=function(){var b=this.RULE_STACK;return b[b.length-2]},t.prototype.getLastExplicitRuleOccurrenceIndex=function(){var b=this.RULE_OCCURRENCE_STACK;return b[b.length-1]},t}();S.TreeBuilder=ue},4803:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.applyMixins=void 0,S.applyMixins=function(b,S){S.forEach((function(S){var J=S.prototype;Object.getOwnPropertyNames(J).forEach((function(ee){if("constructor"!==ee){var te=Object.getOwnPropertyDescriptor(J,ee);te&&(te.get||te.set)?Object.defineProperty(b.prototype,ee,te):b.prototype[ee]=S.prototype[ee]}}))}))}},6178:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.charCodeToOptimizedIndex=S.minOptimizationVal=S.buildLineBreakIssueMessage=S.LineTerminatorOptimizedTester=S.isShortPattern=S.isCustomPattern=S.cloneEmptyGroups=S.performWarningRuntimeChecks=S.performRuntimeChecks=S.addStickyFlag=S.addStartOfInput=S.findUnreachablePatterns=S.findModesThatDoNotExist=S.findInvalidGroupType=S.findDuplicatePatterns=S.findUnsupportedFlags=S.findStartOfInputAnchor=S.findEmptyMatchRegExps=S.findEndOfInputAnchor=S.findInvalidPatterns=S.findMissingPatterns=S.validatePatterns=S.analyzeTokenTypes=S.enableSticky=S.disableSticky=S.SUPPORT_STICKY=S.MODES=S.DEFAULT_MODE=void 0;var ne=J(4844),ie=J(9027),oe=re(J(3237)),se=re(J(5455)),ae=re(J(417)),ue=re(J(6152)),ce=re(J(8346)),le=re(J(5676)),pe=re(J(2070)),fe=re(J(7335)),de=re(J(3493)),he=re(J(6760)),me=re(J(9756)),ge=re(J(5505)),ye=re(J(1049)),ve=re(J(4336)),Te=re(J(5281)),be=re(J(3352)),_e=re(J(249)),Ee=re(J(859)),Ae=re(J(882)),we=re(J(4573)),xe=re(J(8215)),ke=re(J(1886)),Ce=J(7146),Pe=J(1480),Se=J(3067);function C(b){var S=(0,Ae.default)(b,(function(b){return!(0,be.default)(b,"PATTERN")}));return{errors:(0,he.default)(S,(function(b){return{message:"Token Type: ->"+b.name+"<- missing static 'PATTERN' property",type:ie.LexerDefinitionErrorType.MISSING_PATTERN,tokenTypes:[b]}})),valid:(0,fe.default)(b,S)}}function M(b){var S=(0,Ae.default)(b,(function(b){var S=b.PATTERN;return!((0,Ee.default)(S)||(0,ye.default)(S)||(0,be.default)(S,"exec")||(0,ge.default)(S))}));return{errors:(0,he.default)(S,(function(b){return{message:"Token Type: ->"+b.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:ie.LexerDefinitionErrorType.INVALID_PATTERN,tokenTypes:[b]}})),valid:(0,fe.default)(b,S)}}S.DEFAULT_MODE="defaultMode",S.MODES="modes",S.SUPPORT_STICKY="boolean"==typeof new RegExp("(?:)").sticky,S.disableSticky=function(){S.SUPPORT_STICKY=!1},S.enableSticky=function(){S.SUPPORT_STICKY=!0},S.analyzeTokenTypes=function(b,J){var ee,te=(J=(0,we.default)(J,{useSticky:S.SUPPORT_STICKY,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:function(b,S){return S()}})).tracer;te("initCharCodeToOptimizedIndexMap",(function(){!function(){if((0,se.default)(Oe)){Oe=new Array(65536);for(var b=0;b<65536;b++)Oe[b]=b>255?255+~~(b/255):b}}()})),te("Reject Lexer.NA",(function(){ee=(0,pe.default)(b,(function(b){return b.PATTERN===ie.Lexer.NA}))}));var re,ne,oe,ae,ce,le,fe,Te,_e,Ae,Se,Ie=!1;te("Transform Patterns",(function(){Ie=!1,re=(0,he.default)(ee,(function(b){var S=b.PATTERN;if((0,Ee.default)(S)){var ee=S.source;return 1!==ee.length||"^"===ee||"$"===ee||"."===ee||S.ignoreCase?2!==ee.length||"\\"!==ee[0]||(0,ke.default)(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],ee[1])?J.useSticky?Y(S):K(S):ee[1]:ee}if((0,ye.default)(S))return Ie=!0,{exec:S};if("object"==typeof S)return Ie=!0,S;if("string"==typeof S){if(1===S.length)return S;var te=S.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),re=new RegExp(te);return J.useSticky?Y(re):K(re)}throw Error("non exhaustive match")}))})),te("misc mapping",(function(){ne=(0,he.default)(ee,(function(b){return b.tokenTypeIdx})),oe=(0,he.default)(ee,(function(b){var S=b.GROUP;if(S!==ie.Lexer.SKIPPED){if((0,ge.default)(S))return S;if((0,ve.default)(S))return!1;throw Error("non exhaustive match")}})),ae=(0,he.default)(ee,(function(b){var S=b.LONGER_ALT;if(S)return(0,ue.default)(S)?(0,he.default)(S,(function(b){return(0,de.default)(ee,b)})):[(0,de.default)(ee,S)]})),ce=(0,he.default)(ee,(function(b){return b.PUSH_MODE})),le=(0,he.default)(ee,(function(b){return(0,be.default)(b,"POP_MODE")}))})),te("Line Terminator Handling",(function(){var b=Q(J.lineTerminatorCharacters);fe=(0,he.default)(ee,(function(b){return!1})),"onlyOffset"!==J.positionTracking&&(fe=(0,he.default)(ee,(function(S){return(0,be.default)(S,"LINE_BREAKS")?!!S.LINE_BREAKS:!1===q(S,b)&&(0,Pe.canMatchCharCode)(b,S.PATTERN)})))})),te("Misc Mapping #2",(function(){Te=(0,he.default)(ee,H),_e=(0,he.default)(re,X),Ae=(0,xe.default)(ee,(function(b,S){var J=S.GROUP;return(0,ge.default)(J)&&J!==ie.Lexer.SKIPPED&&(b[J]=[]),b}),{}),Se=(0,he.default)(re,(function(b,S){return{pattern:re[S],longerAlt:ae[S],canLineTerminator:fe[S],isCustom:Te[S],short:_e[S],group:oe[S],push:ce[S],pop:le[S],tokenTypeIdx:ne[S],tokenType:ee[S]}}))}));var De=!0,Re=[];return J.safeMode||te("First Char Optimization",(function(){Re=(0,xe.default)(ee,(function(b,S,ee){if("string"==typeof S.PATTERN){var te=tt(S.PATTERN.charCodeAt(0));Z(b,te,Se[ee])}else if((0,ue.default)(S.START_CHARS_HINT)){var re;(0,me.default)(S.START_CHARS_HINT,(function(S){var J=tt("string"==typeof S?S.charCodeAt(0):S);re!==J&&(re=J,Z(b,J,Se[ee]))}))}else if((0,Ee.default)(S.PATTERN))if(S.PATTERN.unicode)De=!1,J.ensureOptimizations&&(0,Ce.PRINT_ERROR)("".concat(Pe.failedOptimizationPrefixMsg)+"\tUnable to analyze < ".concat(S.PATTERN.toString()," > pattern.\n")+"\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE");else{var ne=(0,Pe.getOptimizedStartCodesIndices)(S.PATTERN,J.ensureOptimizations);(0,se.default)(ne)&&(De=!1),(0,me.default)(ne,(function(S){Z(b,S,Se[ee])}))}else J.ensureOptimizations&&(0,Ce.PRINT_ERROR)("".concat(Pe.failedOptimizationPrefixMsg)+"\tTokenType: <".concat(S.name,"> is using a custom token pattern without providing <start_chars_hint> parameter.\n")+"\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"),De=!1;return b}),[])})),{emptyGroups:Ae,patternIdxToConfig:Se,charCodeToPatternIdxToConfig:Re,hasCustom:Ie,canBeOptimized:De}},S.validatePatterns=function(b,S){var J=[],ee=C(b);J=J.concat(ee.errors);var te=M(ee.valid),re=te.valid;return(J=(J=(J=(J=J.concat(te.errors)).concat(function(b){var S=[],J=(0,Ae.default)(b,(function(b){return(0,Ee.default)(b.PATTERN)}));return(S=(S=(S=(S=S.concat(w(J))).concat(U(J))).concat(B(J))).concat(G(J))).concat(F(J))}(re))).concat(W(re))).concat(V(re,S))).concat(z(re))},S.findMissingPatterns=C,S.findInvalidPatterns=M;var Ie=/[^\\][$]/;function w(b){var S=function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.found=!1,S}return te(e,b),e.prototype.visitEndAnchor=function(b){this.found=!0},e}(ne.BaseRegExpVisitor),J=(0,Ae.default)(b,(function(b){var J=b.PATTERN;try{var ee=(0,Se.getRegExpAst)(J),te=new S;return te.visit(ee),te.found}catch(b){return Ie.test(J.source)}}));return(0,he.default)(J,(function(b){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+b.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n\tSee chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:ie.LexerDefinitionErrorType.EOI_ANCHOR_FOUND,tokenTypes:[b]}}))}function F(b){var S=(0,Ae.default)(b,(function(b){return b.PATTERN.test("")}));return(0,he.default)(S,(function(b){return{message:"Token Type: ->"+b.name+"<- static 'PATTERN' must not match an empty string",type:ie.LexerDefinitionErrorType.EMPTY_MATCH_PATTERN,tokenTypes:[b]}}))}S.findEndOfInputAnchor=w,S.findEmptyMatchRegExps=F;var De=/[^\\[][\^]|^\^/;function U(b){var S=function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.found=!1,S}return te(e,b),e.prototype.visitStartAnchor=function(b){this.found=!0},e}(ne.BaseRegExpVisitor),J=(0,Ae.default)(b,(function(b){var J=b.PATTERN;try{var ee=(0,Se.getRegExpAst)(J),te=new S;return te.visit(ee),te.found}catch(b){return De.test(J.source)}}));return(0,he.default)(J,(function(b){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+b.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:ie.LexerDefinitionErrorType.SOI_ANCHOR_FOUND,tokenTypes:[b]}}))}function B(b){var S=(0,Ae.default)(b,(function(b){var S=b.PATTERN;return S instanceof RegExp&&(S.multiline||S.global)}));return(0,he.default)(S,(function(b){return{message:"Token Type: ->"+b.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:ie.LexerDefinitionErrorType.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[b]}}))}function G(b){var S=[],J=(0,he.default)(b,(function(J){return(0,xe.default)(b,(function(b,ee){return J.PATTERN.source!==ee.PATTERN.source||(0,ke.default)(S,ee)||ee.PATTERN===ie.Lexer.NA||(S.push(ee),b.push(ee)),b}),[])}));J=(0,ae.default)(J);var ee=(0,Ae.default)(J,(function(b){return b.length>1}));return(0,he.default)(ee,(function(b){var S=(0,he.default)(b,(function(b){return b.name})),J=(0,oe.default)(b).PATTERN;return{message:"The same RegExp pattern ->".concat(J,"<-")+"has been used in all of the following Token Types: ".concat(S.join(", ")," <-"),type:ie.LexerDefinitionErrorType.DUPLICATE_PATTERNS_FOUND,tokenTypes:b}}))}function W(b){var S=(0,Ae.default)(b,(function(b){if(!(0,be.default)(b,"GROUP"))return!1;var S=b.GROUP;return S!==ie.Lexer.SKIPPED&&S!==ie.Lexer.NA&&!(0,ge.default)(S)}));return(0,he.default)(S,(function(b){return{message:"Token Type: ->"+b.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:ie.LexerDefinitionErrorType.INVALID_GROUP_TYPE_FOUND,tokenTypes:[b]}}))}function V(b,S){var J=(0,Ae.default)(b,(function(b){return void 0!==b.PUSH_MODE&&!(0,ke.default)(S,b.PUSH_MODE)}));return(0,he.default)(J,(function(b){return{message:"Token Type: ->".concat(b.name,"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->").concat(b.PUSH_MODE,"<-")+"which does not exist",type:ie.LexerDefinitionErrorType.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[b]}}))}function z(b){var S=[],J=(0,xe.default)(b,(function(b,S,J){var ee,te,re=S.PATTERN;return re===ie.Lexer.NA||((0,ge.default)(re)?b.push({str:re,idx:J,tokenType:S}):(0,Ee.default)(re)&&(ee=re,te=[".","\\","[","]","|","^","$","(",")","?","*","+","{"],void 0===(0,Te.default)(te,(function(b){return-1!==ee.source.indexOf(b)})))&&b.push({str:re.source,idx:J,tokenType:S})),b}),[]);return(0,me.default)(b,(function(b,ee){(0,me.default)(J,(function(J){var te=J.str,re=J.idx,ne=J.tokenType;if(ee<re&&function(b,S){if((0,Ee.default)(S)){var J=S.exec(b);return null!==J&&0===J.index}if((0,ye.default)(S))return S(b,0,[],{});if((0,be.default)(S,"exec"))return S.exec(b,0,[],{});if("string"==typeof S)return S===b;throw Error("non exhaustive match")}(te,b.PATTERN)){var oe="Token: ->".concat(ne.name,"<- can never be matched.\n")+"Because it appears AFTER the Token Type ->".concat(b.name,"<-")+"in the lexer's definition.\nSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE";S.push({message:oe,type:ie.LexerDefinitionErrorType.UNREACHABLE_PATTERN,tokenTypes:[b,ne]})}}))})),S}function K(b){var S=b.ignoreCase?"i":"";return new RegExp("^(?:".concat(b.source,")"),S)}function Y(b){var S=b.ignoreCase?"iy":"y";return new RegExp("".concat(b.source),S)}function H(b){var S=b.PATTERN;if((0,Ee.default)(S))return!1;if((0,ye.default)(S))return!0;if((0,be.default)(S,"exec"))return!0;if((0,ge.default)(S))return!1;throw Error("non exhaustive match")}function X(b){return!(!(0,ge.default)(b)||1!==b.length)&&b.charCodeAt(0)}function q(b,S){if((0,be.default)(b,"LINE_BREAKS"))return!1;if((0,Ee.default)(b.PATTERN)){try{(0,Pe.canMatchCharCode)(S,b.PATTERN)}catch(b){return{issue:ie.LexerDefinitionErrorType.IDENTIFY_TERMINATOR,errMsg:b.message}}return!1}if((0,ge.default)(b.PATTERN))return!1;if(H(b))return{issue:ie.LexerDefinitionErrorType.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function $(b,S){if(S.issue===ie.LexerDefinitionErrorType.IDENTIFY_TERMINATOR)return"Warning: unable to identify line terminator usage in pattern.\n"+"\tThe problem is in the <".concat(b.name,"> Token Type\n")+"\t Root cause: ".concat(S.errMsg,".\n")+"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(S.issue===ie.LexerDefinitionErrorType.CUSTOM_LINE_BREAK)return"Warning: A Custom Token Pattern should specify the <line_breaks> option.\n"+"\tThe problem is in the <".concat(b.name,"> Token Type\n")+"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function Q(b){return(0,he.default)(b,(function(b){return(0,ge.default)(b)?b.charCodeAt(0):b}))}function Z(b,S,J){void 0===b[S]?b[S]=[J]:b[S].push(J)}S.findStartOfInputAnchor=U,S.findUnsupportedFlags=B,S.findDuplicatePatterns=G,S.findInvalidGroupType=W,S.findModesThatDoNotExist=V,S.findUnreachablePatterns=z,S.addStartOfInput=K,S.addStickyFlag=Y,S.performRuntimeChecks=function(b,J,ee){var te=[];return(0,be.default)(b,S.DEFAULT_MODE)||te.push({message:"A MultiMode Lexer cannot be initialized without a <"+S.DEFAULT_MODE+"> property in its definition\n",type:ie.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),(0,be.default)(b,S.MODES)||te.push({message:"A MultiMode Lexer cannot be initialized without a <"+S.MODES+"> property in its definition\n",type:ie.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),(0,be.default)(b,S.MODES)&&(0,be.default)(b,S.DEFAULT_MODE)&&!(0,be.default)(b.modes,b.defaultMode)&&te.push({message:"A MultiMode Lexer cannot be initialized with a ".concat(S.DEFAULT_MODE,": <").concat(b.defaultMode,">")+"which does not exist\n",type:ie.LexerDefinitionErrorType.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),(0,be.default)(b,S.MODES)&&(0,me.default)(b.modes,(function(b,S){(0,me.default)(b,(function(b,J){(0,ve.default)(b)&&te.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:"+"<".concat(S,"> at index: <").concat(J,">\n"),type:ie.LexerDefinitionErrorType.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})}))})),te},S.performWarningRuntimeChecks=function(b,S,J){var ee=[],te=!1,re=(0,ae.default)((0,le.default)((0,ce.default)(b.modes))),ne=(0,pe.default)(re,(function(b){return b.PATTERN===ie.Lexer.NA})),oe=Q(J);return S&&(0,me.default)(ne,(function(b){var S=q(b,oe);if(!1!==S){var J={message:$(b,S),type:S.issue,tokenType:b};ee.push(J)}else(0,be.default)(b,"LINE_BREAKS")?!0===b.LINE_BREAKS&&(te=!0):(0,Pe.canMatchCharCode)(oe,b.PATTERN)&&(te=!0)})),S&&!te&&ee.push({message:"Warning: No LINE_BREAKS Found.\n\tThis Lexer has been defined to track line and column information,\n\tBut none of the Token Types can be identified as matching a line terminator.\n\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n\tfor details.",type:ie.LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS}),ee},S.cloneEmptyGroups=function(b){var S={},J=(0,_e.default)(b);return(0,me.default)(J,(function(J){var ee=b[J];if(!(0,ue.default)(ee))throw Error("non exhaustive match");S[J]=[]})),S},S.isCustomPattern=H,S.isShortPattern=X,S.LineTerminatorOptimizedTester={test:function(b){for(var S=b.length,J=this.lastIndex;J<S;J++){var ee=b.charCodeAt(J);if(10===ee)return this.lastIndex=J+1,!0;if(13===ee)return 10===b.charCodeAt(J+1)?this.lastIndex=J+2:this.lastIndex=J+1,!0}return!1},lastIndex:0},S.buildLineBreakIssueMessage=$,S.minOptimizationVal=256;var Oe=[];function tt(b){return b<S.minOptimizationVal?b:Oe[b]}S.charCodeToOptimizedIndex=tt},495:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.defaultLexerErrorProvider=void 0,S.defaultLexerErrorProvider={buildUnableToPopLexerModeMessage:function(b){return"Unable to pop Lexer Mode after encountering Token ->".concat(b.image,"<- The Mode Stack is empty")},buildUnexpectedCharactersMessage:function(b,S,J,ee,te){return"unexpected character: ->".concat(b.charAt(S),"<- at offset: ").concat(S,",")+" skipped ".concat(J," characters.")}}},9027:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.Lexer=S.LexerDefinitionErrorType=void 0;var te,re=J(6178),ne=ee(J(4291)),ie=ee(J(5455)),oe=ee(J(6152)),se=ee(J(6974)),ae=ee(J(2070)),ue=ee(J(6760)),ce=ee(J(9756)),le=ee(J(249)),pe=ee(J(4336)),fe=ee(J(3059)),de=ee(J(19)),he=ee(J(8215)),me=ee(J(4004)),ge=J(7146),ye=J(1201),ve=J(495),Te=J(3067);(te=S.LexerDefinitionErrorType||(S.LexerDefinitionErrorType={}))[te.MISSING_PATTERN=0]="MISSING_PATTERN",te[te.INVALID_PATTERN=1]="INVALID_PATTERN",te[te.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",te[te.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",te[te.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",te[te.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",te[te.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",te[te.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",te[te.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",te[te.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",te[te.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",te[te.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",te[te.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",te[te.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",te[te.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",te[te.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",te[te.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK";var be={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:["\n","\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:ve.defaultLexerErrorProvider,traceInitPerf:!1,skipValidations:!1};Object.freeze(be);var _e=function(){function t(b,S){void 0===S&&(S=be);var J=this;if(this.lexerDefinition=b,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=function(b,S){if(!0===J.traceInitPerf){J.traceInitIndent++;var ee=new Array(J.traceInitIndent+1).join("\t");J.traceInitIndent<J.traceInitMaxIdent&&console.log("".concat(ee,"--\x3e <").concat(b,">"));var te=(0,ge.timer)(S),re=te.time,ne=te.value,ie=re>10?console.warn:console.log;return J.traceInitIndent<J.traceInitMaxIdent&&ie("".concat(ee,"<-- <").concat(b,"> time: ").concat(re,"ms")),J.traceInitIndent--,ne}return S()},"boolean"==typeof S)throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\na boolean 2nd argument is no longer supported");this.config=(0,de.default)({},be,S);var ee=this.config.traceInitPerf;!0===ee?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof ee&&(this.traceInitMaxIdent=ee,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",(function(){var ee,te=!0;J.TRACE_INIT("Lexer Config handling",(function(){if(J.config.lineTerminatorsPattern===be.lineTerminatorsPattern)J.config.lineTerminatorsPattern=re.LineTerminatorOptimizedTester;else if(J.config.lineTerminatorCharacters===be.lineTerminatorCharacters)throw Error("Error: Missing <lineTerminatorCharacters> property on the Lexer config.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS");if(S.safeMode&&S.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');J.trackStartLines=/full|onlyStart/i.test(J.config.positionTracking),J.trackEndLines=/full/i.test(J.config.positionTracking),(0,oe.default)(b)?ee={modes:{defaultMode:(0,me.default)(b)},defaultMode:re.DEFAULT_MODE}:(te=!1,ee=(0,me.default)(b))})),!1===J.config.skipValidations&&(J.TRACE_INIT("performRuntimeChecks",(function(){J.lexerDefinitionErrors=J.lexerDefinitionErrors.concat((0,re.performRuntimeChecks)(ee,J.trackStartLines,J.config.lineTerminatorCharacters))})),J.TRACE_INIT("performWarningRuntimeChecks",(function(){J.lexerDefinitionWarning=J.lexerDefinitionWarning.concat((0,re.performWarningRuntimeChecks)(ee,J.trackStartLines,J.config.lineTerminatorCharacters))}))),ee.modes=ee.modes?ee.modes:{},(0,ce.default)(ee.modes,(function(b,S){ee.modes[S]=(0,ae.default)(b,(function(b){return(0,pe.default)(b)}))}));var se=(0,le.default)(ee.modes);if((0,ce.default)(ee.modes,(function(b,ee){J.TRACE_INIT("Mode: <".concat(ee,"> processing"),(function(){var te;J.modes.push(ee),!1===J.config.skipValidations&&J.TRACE_INIT("validatePatterns",(function(){J.lexerDefinitionErrors=J.lexerDefinitionErrors.concat((0,re.validatePatterns)(b,se))})),(0,ie.default)(J.lexerDefinitionErrors)&&((0,ye.augmentTokenTypes)(b),J.TRACE_INIT("analyzeTokenTypes",(function(){te=(0,re.analyzeTokenTypes)(b,{lineTerminatorCharacters:J.config.lineTerminatorCharacters,positionTracking:S.positionTracking,ensureOptimizations:S.ensureOptimizations,safeMode:S.safeMode,tracer:J.TRACE_INIT})})),J.patternIdxToConfig[ee]=te.patternIdxToConfig,J.charCodeToPatternIdxToConfig[ee]=te.charCodeToPatternIdxToConfig,J.emptyGroups=(0,de.default)({},J.emptyGroups,te.emptyGroups),J.hasCustom=te.hasCustom||J.hasCustom,J.canModeBeOptimized[ee]=te.canBeOptimized)}))})),J.defaultMode=ee.defaultMode,!(0,ie.default)(J.lexerDefinitionErrors)&&!J.config.deferDefinitionErrorsHandling){var ve=(0,ue.default)(J.lexerDefinitionErrors,(function(b){return b.message})).join("-----------------------\n");throw new Error("Errors detected in definition of Lexer:\n"+ve)}(0,ce.default)(J.lexerDefinitionWarning,(function(b){(0,ge.PRINT_WARNING)(b.message)})),J.TRACE_INIT("Choosing sub-methods implementations",(function(){if(re.SUPPORT_STICKY?(J.chopInput=fe.default,J.match=J.matchWithTest):(J.updateLastIndex=ne.default,J.match=J.matchWithExec),te&&(J.handleModes=ne.default),!1===J.trackStartLines&&(J.computeNewColumn=fe.default),!1===J.trackEndLines&&(J.updateTokenEndLineColumnLocation=ne.default),/full/i.test(J.config.positionTracking))J.createTokenInstance=J.createFullToken;else if(/onlyStart/i.test(J.config.positionTracking))J.createTokenInstance=J.createStartOnlyToken;else{if(!/onlyOffset/i.test(J.config.positionTracking))throw Error('Invalid <positionTracking> config option: "'.concat(J.config.positionTracking,'"'));J.createTokenInstance=J.createOffsetOnlyToken}J.hasCustom?(J.addToken=J.addTokenUsingPush,J.handlePayload=J.handlePayloadWithCustom):(J.addToken=J.addTokenUsingMemberAccess,J.handlePayload=J.handlePayloadNoCustom)})),J.TRACE_INIT("Failed Optimization Warnings",(function(){var b=(0,he.default)(J.canModeBeOptimized,(function(b,S,J){return!1===S&&b.push(J),b}),[]);if(S.ensureOptimizations&&!(0,ie.default)(b))throw Error("Lexer Modes: < ".concat(b.join(", ")," > cannot be optimized.\n")+'\t Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.\n\t Or inspect the console log for details on how to resolve these issues.')})),J.TRACE_INIT("clearRegExpParserCache",(function(){(0,Te.clearRegExpParserCache)()})),J.TRACE_INIT("toFastProperties",(function(){(0,ge.toFastProperties)(J)}))}))}return t.prototype.tokenize=function(b,S){if(void 0===S&&(S=this.defaultMode),!(0,ie.default)(this.lexerDefinitionErrors)){var J=(0,ue.default)(this.lexerDefinitionErrors,(function(b){return b.message})).join("-----------------------\n");throw new Error("Unable to Tokenize because Errors detected in definition of Lexer:\n"+J)}return this.tokenizeInternal(b,S)},t.prototype.tokenizeInternal=function(b,S){var J,ee,te,ne,ie,oe,ae,ue,ce,le,pe,fe,de,he,me,ge,ye=this,ve=b,Te=ve.length,be=0,_e=0,Ee=this.hasCustom?0:Math.floor(b.length/10),Ae=new Array(Ee),we=[],xe=this.trackStartLines?1:void 0,ke=this.trackStartLines?1:void 0,Ce=(0,re.cloneEmptyGroups)(this.emptyGroups),Pe=this.trackStartLines,Se=this.config.lineTerminatorsPattern,Ie=0,De=[],Oe=[],Re=[],Ne=[];function j(){return De}function U(b){var S=(0,re.charCodeToOptimizedIndex)(b),J=Oe[S];return void 0===J?Ne:J}Object.freeze(Ne);var Me,G=function(b){if(1===Re.length&&void 0===b.tokenType.PUSH_MODE){var S=ye.config.errorMessageProvider.buildUnableToPopLexerModeMessage(b);we.push({offset:b.startOffset,line:b.startLine,column:b.startColumn,length:b.image.length,message:S})}else{Re.pop();var J=(0,se.default)(Re);De=ye.patternIdxToConfig[J],Oe=ye.charCodeToPatternIdxToConfig[J],Ie=De.length;var ee=ye.canModeBeOptimized[J]&&!1===ye.config.safeMode;ge=Oe&&ee?U:j}};function W(b){Re.push(b),Oe=this.charCodeToPatternIdxToConfig[b],De=this.patternIdxToConfig[b],Ie=De.length,Ie=De.length;var S=this.canModeBeOptimized[b]&&!1===this.config.safeMode;ge=Oe&&S?U:j}for(W.call(this,S);be<Te;){oe=null;var Fe=ve.charCodeAt(be),Le=ge(Fe),je=Le.length;for(J=0;J<je;J++){var Be=(Me=Le[J]).pattern;if(ae=null,!1!==(ze=Me.short)?Fe===ze&&(oe=Be):!0===Me.isCustom?null!==(me=Be.exec(ve,be,Ae,Ce))?(oe=me[0],void 0!==me.payload&&(ae=me.payload)):oe=null:(this.updateLastIndex(Be,be),oe=this.match(Be,b,be)),null!==oe){if(void 0!==(ie=Me.longerAlt)){var $e=ie.length;for(te=0;te<$e;te++){var Ue=De[ie[te]],Xe=Ue.pattern;if(ue=null,!0===Ue.isCustom?null!==(me=Xe.exec(ve,be,Ae,Ce))?(ne=me[0],void 0!==me.payload&&(ue=me.payload)):ne=null:(this.updateLastIndex(Xe,be),ne=this.match(Xe,b,be)),ne&&ne.length>oe.length){oe=ne,ae=ue,Me=Ue;break}}}break}}if(null!==oe){if(ce=oe.length,void 0!==(le=Me.group)&&(pe=Me.tokenTypeIdx,fe=this.createTokenInstance(oe,be,pe,Me.tokenType,xe,ke,ce),this.handlePayload(fe,ae),!1===le?_e=this.addToken(Ae,_e,fe):Ce[le].push(fe)),b=this.chopInput(b,ce),be+=ce,ke=this.computeNewColumn(ke,ce),!0===Pe&&!0===Me.canLineTerminator){var Ge=0,Ve=void 0,We=void 0;Se.lastIndex=0;do{!0===(Ve=Se.test(oe))&&(We=Se.lastIndex-1,Ge++)}while(!0===Ve);0!==Ge&&(xe+=Ge,ke=ce-We,this.updateTokenEndLineColumnLocation(fe,le,We,Ge,xe,ke,ce))}this.handleModes(Me,G,W,fe)}else{for(var qe=be,He=xe,Ke=ke,Ye=!1;!Ye&&be<Te;)for(ve.charCodeAt(be),b=this.chopInput(b,1),be++,ee=0;ee<Ie;ee++){var ze,Qe=De[ee];if(Be=Qe.pattern,!1!==(ze=Qe.short)?ve.charCodeAt(be)===ze&&(Ye=!0):!0===Qe.isCustom?Ye=null!==Be.exec(ve,be,Ae,Ce):(this.updateLastIndex(Be,be),Ye=null!==Be.exec(b)),!0===Ye)break}de=be-qe,he=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(ve,qe,de,He,Ke),we.push({offset:qe,line:He,column:Ke,length:de,message:he})}}return this.hasCustom||(Ae.length=_e),{tokens:Ae,groups:Ce,errors:we}},t.prototype.handleModes=function(b,S,J,ee){if(!0===b.pop){var te=b.push;S(ee),void 0!==te&&J.call(this,te)}else void 0!==b.push&&J.call(this,b.push)},t.prototype.chopInput=function(b,S){return b.substring(S)},t.prototype.updateLastIndex=function(b,S){b.lastIndex=S},t.prototype.updateTokenEndLineColumnLocation=function(b,S,J,ee,te,re,ne){var ie,oe;void 0!==S&&(oe=(ie=J===ne-1)?-1:0,1===ee&&!0===ie||(b.endLine=te+oe,b.endColumn=re-1-oe))},t.prototype.computeNewColumn=function(b,S){return b+S},t.prototype.createOffsetOnlyToken=function(b,S,J,ee){return{image:b,startOffset:S,tokenTypeIdx:J,tokenType:ee}},t.prototype.createStartOnlyToken=function(b,S,J,ee,te,re){return{image:b,startOffset:S,startLine:te,startColumn:re,tokenTypeIdx:J,tokenType:ee}},t.prototype.createFullToken=function(b,S,J,ee,te,re,ne){return{image:b,startOffset:S,endOffset:S+ne-1,startLine:te,endLine:te,startColumn:re,endColumn:re+ne-1,tokenTypeIdx:J,tokenType:ee}},t.prototype.addTokenUsingPush=function(b,S,J){return b.push(J),S},t.prototype.addTokenUsingMemberAccess=function(b,S,J){return b[S]=J,++S},t.prototype.handlePayloadNoCustom=function(b,S){},t.prototype.handlePayloadWithCustom=function(b,S){null!==S&&(b.payload=S)},t.prototype.matchWithTest=function(b,S,J){return!0===b.test(S)?S.substring(J,b.lastIndex):null},t.prototype.matchWithExec=function(b,S){var J=b.exec(S);return null!==J?J[0]:null},t.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",t.NA=/NOT_APPLICABLE/,t}();S.Lexer=_e},1480:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.canMatchCharCode=S.firstCharOptimizedIndices=S.getOptimizedStartCodesIndices=S.failedOptimizationPrefixMsg=void 0;var ne=J(4844),ie=re(J(6152)),oe=re(J(9794)),se=re(J(9756)),ae=re(J(5281)),ue=re(J(8346)),ce=re(J(1886)),le=J(7146),pe=J(3067),fe=J(6178),de="Complement Sets are not supported for first char optimization";function m(b,S,J){switch(b.type){case"Disjunction":for(var ee=0;ee<b.value.length;ee++)m(b.value[ee],S,J);break;case"Alternative":var te=b.value;for(ee=0;ee<te.length;ee++){var re=te[ee];switch(re.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var ne=re;switch(ne.type){case"Character":T(ne.value,S,J);break;case"Set":if(!0===ne.complement)throw Error(de);(0,se.default)(ne.value,(function(b){if("number"==typeof b)T(b,S,J);else{var ee=b;if(!0===J)for(var te=ee.from;te<=ee.to;te++)T(te,S,J);else{for(te=ee.from;te<=ee.to&&te<fe.minOptimizationVal;te++)T(te,S,J);if(ee.to>=fe.minOptimizationVal)for(var re=ee.from>=fe.minOptimizationVal?ee.from:fe.minOptimizationVal,ne=ee.to,ie=(0,fe.charCodeToOptimizedIndex)(re),oe=(0,fe.charCodeToOptimizedIndex)(ne),se=ie;se<=oe;se++)S[se]=se}}}));break;case"Group":m(ne.value,S,J);break;default:throw Error("Non Exhaustive Match")}var ie=void 0!==ne.quantifier&&0===ne.quantifier.atLeast;if("Group"===ne.type&&!1===_(ne)||"Group"!==ne.type&&!1===ie)break}break;default:throw Error("non exhaustive match!")}return(0,ue.default)(S)}function T(b,S,J){var ee=(0,fe.charCodeToOptimizedIndex)(b);S[ee]=ee,!0===J&&function(b,S){var J=String.fromCharCode(b),ee=J.toUpperCase();if(ee!==J)S[te=(0,fe.charCodeToOptimizedIndex)(ee.charCodeAt(0))]=te;else{var te,re=J.toLowerCase();re!==J&&(S[te=(0,fe.charCodeToOptimizedIndex)(re.charCodeAt(0))]=te)}}(b,S)}function E(b,S){return(0,ae.default)(b.value,(function(b){if("number"==typeof b)return(0,ce.default)(S,b);var J=b;return void 0!==(0,ae.default)(S,(function(b){return J.from<=b&&b<=J.to}))}))}function _(b){var S=b.quantifier;return!(!S||0!==S.atLeast)||!!b.value&&((0,ie.default)(b.value)?(0,oe.default)(b.value,_):_(b.value))}S.failedOptimizationPrefixMsg='Unable to use "first char" lexer optimizations:\n',S.getOptimizedStartCodesIndices=function(b,J){void 0===J&&(J=!1);try{var ee=(0,pe.getRegExpAst)(b);return m(ee.value,{},ee.flags.ignoreCase)}catch(ee){if(ee.message===de)J&&(0,le.PRINT_WARNING)("".concat(S.failedOptimizationPrefixMsg)+"\tUnable to optimize: < ".concat(b.toString()," >\n")+"\tComplement Sets cannot be automatically optimized.\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.");else{var te="";J&&(te="\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),(0,le.PRINT_ERROR)("".concat(S.failedOptimizationPrefixMsg,"\n")+"\tFailed parsing: < ".concat(b.toString()," >\n")+"\tUsing the regexp-to-ast library version: ".concat(ne.VERSION,"\n")+"\tPlease open an issue at: https://github.com/bd82/regexp-to-ast/issues"+te)}}return[]},S.firstCharOptimizedIndices=m;var he=function(b){function e(S){var J=b.call(this)||this;return J.targetCharCodes=S,J.found=!1,J}return te(e,b),e.prototype.visitChildren=function(S){if(!0!==this.found){switch(S.type){case"Lookahead":return void this.visitLookahead(S);case"NegativeLookahead":return void this.visitNegativeLookahead(S)}b.prototype.visitChildren.call(this,S)}},e.prototype.visitCharacter=function(b){(0,ce.default)(this.targetCharCodes,b.value)&&(this.found=!0)},e.prototype.visitSet=function(b){b.complement?void 0===E(b,this.targetCharCodes)&&(this.found=!0):void 0!==E(b,this.targetCharCodes)&&(this.found=!0)},e}(ne.BaseRegExpVisitor);S.canMatchCharCode=function(b,S){if(S instanceof RegExp){var J=(0,pe.getRegExpAst)(S),ee=new he(b);return ee.visit(J),ee.found}return void 0!==(0,ae.default)(S,(function(S){return(0,ce.default)(b,S.charCodeAt(0))}))}},3067:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.clearRegExpParserCache=S.getRegExpAst=void 0;var ee=J(4844),te={},re=new ee.RegExpParser;S.getRegExpAst=function(b){var S=b.toString();if(te.hasOwnProperty(S))return te[S];var J=re.pattern(S);return te[S]=J,J},S.clearRegExpParserCache=function(){te={}}},1201:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.isTokenType=S.hasExtendingTokensTypesMapProperty=S.hasExtendingTokensTypesProperty=S.hasCategoriesProperty=S.hasShortKeyProperty=S.singleAssignCategoriesToksMap=S.assignCategoriesMapProp=S.assignCategoriesTokensProp=S.assignTokenDefaultProps=S.expandCategories=S.augmentTokenTypes=S.tokenIdxToClass=S.tokenShortNameIdx=S.tokenStructuredMatcherNoCategories=S.tokenStructuredMatcher=void 0;var te=ee(J(5455)),re=ee(J(417)),ne=ee(J(6152)),ie=ee(J(5676)),oe=ee(J(7335)),se=ee(J(6760)),ae=ee(J(9756)),ue=ee(J(3352)),ce=ee(J(1886)),le=ee(J(4004));function h(b){for(var S=(0,le.default)(b),J=b,ee=!0;ee;){J=(0,re.default)((0,ie.default)((0,se.default)(J,(function(b){return b.CATEGORIES}))));var ne=(0,oe.default)(J,S);S=S.concat(ne),(0,te.default)(ne)?ee=!1:J=ne}return S}function v(b){(0,ae.default)(b,(function(b){E(b)||(S.tokenIdxToClass[S.tokenShortNameIdx]=b,b.tokenTypeIdx=S.tokenShortNameIdx++),_(b)&&!(0,ne.default)(b.CATEGORIES)&&(b.CATEGORIES=[b.CATEGORIES]),_(b)||(b.CATEGORIES=[]),g(b)||(b.categoryMatches=[]),O(b)||(b.categoryMatchesMap={})}))}function y(b){(0,ae.default)(b,(function(b){b.categoryMatches=[],(0,ae.default)(b.categoryMatchesMap,(function(J,ee){b.categoryMatches.push(S.tokenIdxToClass[ee].tokenTypeIdx)}))}))}function m(b){(0,ae.default)(b,(function(b){T([],b)}))}function T(b,S){(0,ae.default)(b,(function(b){S.categoryMatchesMap[b.tokenTypeIdx]=!0})),(0,ae.default)(S.CATEGORIES,(function(J){var ee=b.concat(S);(0,ce.default)(ee,J)||T(ee,J)}))}function E(b){return(0,ue.default)(b,"tokenTypeIdx")}function _(b){return(0,ue.default)(b,"CATEGORIES")}function g(b){return(0,ue.default)(b,"categoryMatches")}function O(b){return(0,ue.default)(b,"categoryMatchesMap")}S.tokenStructuredMatcher=function(b,S){var J=b.tokenTypeIdx;return J===S.tokenTypeIdx||!0===S.isParent&&!0===S.categoryMatchesMap[J]},S.tokenStructuredMatcherNoCategories=function(b,S){return b.tokenTypeIdx===S.tokenTypeIdx},S.tokenShortNameIdx=1,S.tokenIdxToClass={},S.augmentTokenTypes=function(b){var S=h(b);v(S),m(S),y(S),(0,ae.default)(S,(function(b){b.isParent=b.categoryMatches.length>0}))},S.expandCategories=h,S.assignTokenDefaultProps=v,S.assignCategoriesTokensProp=y,S.assignCategoriesMapProp=m,S.singleAssignCategoriesToksMap=T,S.hasShortKeyProperty=E,S.hasCategoriesProperty=_,S.hasExtendingTokensTypesProperty=g,S.hasExtendingTokensTypesMapProperty=O,S.isTokenType=function(b){return(0,ue.default)(b,"tokenTypeIdx")}},6736:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.tokenMatcher=S.createTokenInstance=S.EOF=S.createToken=S.hasTokenLabel=S.tokenName=S.tokenLabel=void 0;var te=ee(J(5505)),re=ee(J(3352)),ne=ee(J(4336)),ie=J(9027),oe=J(1201);function c(b){return(0,te.default)(b.LABEL)&&""!==b.LABEL}S.tokenLabel=function(b){return c(b)?b.LABEL:b.name},S.tokenName=function(b){return b.name},S.hasTokenLabel=c;function l(b){return function(b){var S=b.pattern,J={};if(J.name=b.name,(0,ne.default)(S)||(J.PATTERN=S),(0,re.default)(b,"parent"))throw"The parent property is no longer supported.\nSee: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.";return(0,re.default)(b,"categories")&&(J.CATEGORIES=b.categories),(0,oe.augmentTokenTypes)([J]),(0,re.default)(b,"label")&&(J.LABEL=b.label),(0,re.default)(b,"group")&&(J.GROUP=b.group),(0,re.default)(b,"pop_mode")&&(J.POP_MODE=b.pop_mode),(0,re.default)(b,"push_mode")&&(J.PUSH_MODE=b.push_mode),(0,re.default)(b,"longer_alt")&&(J.LONGER_ALT=b.longer_alt),(0,re.default)(b,"line_breaks")&&(J.LINE_BREAKS=b.line_breaks),(0,re.default)(b,"start_chars_hint")&&(J.START_CHARS_HINT=b.start_chars_hint),J}(b)}S.createToken=l,S.EOF=l({name:"EOF",pattern:ie.Lexer.NA}),(0,oe.augmentTokenTypes)([S.EOF]),S.createTokenInstance=function(b,S,J,ee,te,re,ne,ie){return{image:S,startOffset:J,endOffset:ee,startLine:te,endLine:re,startColumn:ne,endColumn:ie,tokenTypeIdx:b.tokenTypeIdx,tokenType:b}},S.tokenMatcher=function(b,S){return(0,oe.tokenStructuredMatcher)(b,S)}},7979:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.VERSION=void 0,S.VERSION="10.1.2"},8962:function(b,S,J){"use strict";var ee=this&&this.__assign||function(){return(ee=Object.assign||function(b){for(var S,J=1,ee=arguments.length;J<ee;J++)for(var te in S=arguments[J])Object.prototype.hasOwnProperty.call(S,te)&&(b[te]=S[te]);return b}).apply(this,arguments)};Object.defineProperty(S,"__esModule",{value:!0}),S.generateCstDts=void 0;var te=J(7842),re=J(1871),ne={includeVisitorInterface:!0,visitorInterfaceName:"ICstNodeVisitor"};S.generateCstDts=function(b,S){var J=ee(ee({},ne),S),ie=(0,te.buildModel)(b);return(0,re.genDts)(ie,J)}},1871:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.genDts=void 0;var te=ee(J(5676)),re=ee(J(6152)),ne=ee(J(6760)),ie=ee(J(8215)),oe=ee(J(5652)),se=ee(J(3779));function l(b){return"token"===b.kind?"IToken":f(b.name)}function f(b){return(0,se.default)(b)+"CstNode"}function p(b){return(0,se.default)(b)+"CstChildren"}S.genDts=function(b,S){var J,ee,se=[];return se=(se=se.concat('import type { CstNode, ICstVisitor, IToken } from "chevrotain";')).concat((0,te.default)((0,ne.default)(b,(function(b){return function(b){return[function(b){var S=f(b.name),J=p(b.name);return"export interface ".concat(S,' extends CstNode {\n name: "').concat(b.name,'";\n children: ').concat(J,";\n}")}(b),function(b){var S=p(b.name);return"export type ".concat(S," = {\n ").concat((0,ne.default)(b.properties,(function(b){return function(b){var S=function(b){if((0,re.default)(b)){var S=(0,oe.default)((0,ne.default)(b,(function(b){return l(b)})));return"("+(0,ie.default)(S,(function(b,S){return b+" | "+S}))+")"}return l(b)}(b.type);return"".concat(b.name).concat(b.optional?"?":"",": ").concat(S,"[];")}(b)})).join("\n "),"\n};")}(b)]}(b)})))),S.includeVisitorInterface&&(se=se.concat((J=S.visitorInterfaceName,ee=b,"export interface ".concat(J,"<IN, OUT> extends ICstVisitor<IN, OUT> {\n ").concat((0,ne.default)(ee,(function(b){return function(b){var S=p(b.name);return"".concat(b.name,"(children: ").concat(S,", param?: IN): OUT;")}(b)})).join("\n "),"\n}")))),se.join("\n\n")+"\n"}},7842:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.buildModel=void 0;var ne=J(7729),ie=re(J(6760)),oe=re(J(5676)),se=re(J(8346)),ae=re(J(1525)),ue=re(J(3440)),ce=re(J(19));S.buildModel=function(b){var S=new le,J=(0,se.default)(b);return(0,ie.default)(J,(function(b){return S.visitRule(b)}))};var le=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}return te(e,b),e.prototype.visitRule=function(b){var S=this.visitEach(b.definition),J=(0,ue.default)(S,(function(b){return b.propertyName})),ee=(0,ie.default)(J,(function(b,S){var J=!(0,ae.default)(b,(function(b){return!b.canBeNull})),ee=b[0].type;return b.length>1&&(ee=(0,ie.default)(b,(function(b){return b.type}))),{name:S,type:ee,optional:J}}));return{name:b.name,properties:ee}},e.prototype.visitAlternative=function(b){return this.visitEachAndOverrideWith(b.definition,{canBeNull:!0})},e.prototype.visitOption=function(b){return this.visitEachAndOverrideWith(b.definition,{canBeNull:!0})},e.prototype.visitRepetition=function(b){return this.visitEachAndOverrideWith(b.definition,{canBeNull:!0})},e.prototype.visitRepetitionMandatory=function(b){return this.visitEach(b.definition)},e.prototype.visitRepetitionMandatoryWithSeparator=function(b){return this.visitEach(b.definition).concat({propertyName:b.separator.name,canBeNull:!0,type:h(b.separator)})},e.prototype.visitRepetitionWithSeparator=function(b){return this.visitEachAndOverrideWith(b.definition,{canBeNull:!0}).concat({propertyName:b.separator.name,canBeNull:!0,type:h(b.separator)})},e.prototype.visitAlternation=function(b){return this.visitEachAndOverrideWith(b.definition,{canBeNull:!0})},e.prototype.visitTerminal=function(b){return[{propertyName:b.label||b.terminalType.name,canBeNull:!1,type:h(b)}]},e.prototype.visitNonTerminal=function(b){return[{propertyName:b.label||b.nonTerminalName,canBeNull:!1,type:h(b)}]},e.prototype.visitEachAndOverrideWith=function(b,S){return(0,ie.default)(this.visitEach(b),(function(b){return(0,ce.default)({},b,S)}))},e.prototype.visitEach=function(b){var S=this;return(0,oe.default)((0,ie.default)(b,(function(b){return S.visit(b)})))},e}(ne.GAstVisitor);function h(b){return b instanceof ne.NonTerminal?{kind:"rule",name:b.referencedRule.name}:{kind:"token"}}},7729:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.isSequenceProd=S.isBranchingProd=S.isOptionalProd=S.getProductionDslName=S.GAstVisitor=S.serializeProduction=S.serializeGrammar=S.Alternative=S.Alternation=S.RepetitionWithSeparator=S.RepetitionMandatoryWithSeparator=S.RepetitionMandatory=S.Repetition=S.Option=S.NonTerminal=S.Terminal=S.Rule=void 0;var ee=J(5700);Object.defineProperty(S,"Rule",{enumerable:!0,get:function(){return ee.Rule}}),Object.defineProperty(S,"Terminal",{enumerable:!0,get:function(){return ee.Terminal}}),Object.defineProperty(S,"NonTerminal",{enumerable:!0,get:function(){return ee.NonTerminal}}),Object.defineProperty(S,"Option",{enumerable:!0,get:function(){return ee.Option}}),Object.defineProperty(S,"Repetition",{enumerable:!0,get:function(){return ee.Repetition}}),Object.defineProperty(S,"RepetitionMandatory",{enumerable:!0,get:function(){return ee.RepetitionMandatory}}),Object.defineProperty(S,"RepetitionMandatoryWithSeparator",{enumerable:!0,get:function(){return ee.RepetitionMandatoryWithSeparator}}),Object.defineProperty(S,"RepetitionWithSeparator",{enumerable:!0,get:function(){return ee.RepetitionWithSeparator}}),Object.defineProperty(S,"Alternation",{enumerable:!0,get:function(){return ee.Alternation}}),Object.defineProperty(S,"Alternative",{enumerable:!0,get:function(){return ee.Alternative}}),Object.defineProperty(S,"serializeGrammar",{enumerable:!0,get:function(){return ee.serializeGrammar}}),Object.defineProperty(S,"serializeProduction",{enumerable:!0,get:function(){return ee.serializeProduction}});var te=J(7694);Object.defineProperty(S,"GAstVisitor",{enumerable:!0,get:function(){return te.GAstVisitor}});var re=J(2515);Object.defineProperty(S,"getProductionDslName",{enumerable:!0,get:function(){return re.getProductionDslName}}),Object.defineProperty(S,"isOptionalProd",{enumerable:!0,get:function(){return re.isOptionalProd}}),Object.defineProperty(S,"isBranchingProd",{enumerable:!0,get:function(){return re.isBranchingProd}}),Object.defineProperty(S,"isSequenceProd",{enumerable:!0,get:function(){return re.isSequenceProd}})},2515:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.getProductionDslName=S.isBranchingProd=S.isOptionalProd=S.isSequenceProd=void 0;var te=ee(J(1525)),re=ee(J(9794)),ne=ee(J(1886)),ie=J(5700);S.isSequenceProd=function(b){return b instanceof ie.Alternative||b instanceof ie.Option||b instanceof ie.Repetition||b instanceof ie.RepetitionMandatory||b instanceof ie.RepetitionMandatoryWithSeparator||b instanceof ie.RepetitionWithSeparator||b instanceof ie.Terminal||b instanceof ie.Rule},S.isOptionalProd=function t(b,S){return void 0===S&&(S=[]),!!(b instanceof ie.Option||b instanceof ie.Repetition||b instanceof ie.RepetitionWithSeparator)||(b instanceof ie.Alternation?(0,te.default)(b.definition,(function(b){return t(b,S)})):!(b instanceof ie.NonTerminal&&(0,ne.default)(S,b))&&b instanceof ie.AbstractProduction&&(b instanceof ie.NonTerminal&&S.push(b),(0,re.default)(b.definition,(function(b){return t(b,S)}))))},S.isBranchingProd=function(b){return b instanceof ie.Alternation},S.getProductionDslName=function(b){if(b instanceof ie.NonTerminal)return"SUBRULE";if(b instanceof ie.Option)return"OPTION";if(b instanceof ie.Alternation)return"OR";if(b instanceof ie.RepetitionMandatory)return"AT_LEAST_ONE";if(b instanceof ie.RepetitionMandatoryWithSeparator)return"AT_LEAST_ONE_SEP";if(b instanceof ie.RepetitionWithSeparator)return"MANY_SEP";if(b instanceof ie.Repetition)return"MANY";if(b instanceof ie.Terminal)return"CONSUME";throw Error("non exhaustive match")}},5700:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.serializeProduction=S.serializeGrammar=S.Terminal=S.Alternation=S.RepetitionWithSeparator=S.Repetition=S.RepetitionMandatoryWithSeparator=S.RepetitionMandatory=S.Option=S.Alternative=S.Rule=S.NonTerminal=S.AbstractProduction=void 0;var ne=re(J(6760)),ie=re(J(9756)),oe=re(J(5505)),se=re(J(859)),ae=re(J(2208)),ue=re(J(19));var ce=function(){function t(b){this._definition=b}return Object.defineProperty(t.prototype,"definition",{get:function(){return this._definition},set:function(b){this._definition=b},enumerable:!1,configurable:!0}),t.prototype.accept=function(b){b.visit(this),(0,ie.default)(this.definition,(function(S){S.accept(b)}))},t}();S.AbstractProduction=ce;var le=function(b){function e(S){var J=b.call(this,[])||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),Object.defineProperty(e.prototype,"definition",{get:function(){return void 0!==this.referencedRule?this.referencedRule.definition:[]},set:function(b){},enumerable:!1,configurable:!0}),e.prototype.accept=function(b){b.visit(this)},e}(ce);S.NonTerminal=le;var pe=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.orgText="",(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.Rule=pe;var fe=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.ignoreAmbiguities=!1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.Alternative=fe;var de=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.Option=de;var he=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.RepetitionMandatory=he;var me=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.RepetitionMandatoryWithSeparator=me;var ge=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.Repetition=ge;var ye=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.RepetitionWithSeparator=ye;var ve=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,J.ignoreAmbiguities=!1,J.hasPredicates=!1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),Object.defineProperty(e.prototype,"definition",{get:function(){return this._definition},set:function(b){this._definition=b},enumerable:!1,configurable:!0}),e}(ce);S.Alternation=ve;var Te=function(){function t(b){this.idx=1,(0,ue.default)(this,(0,ae.default)(b,(function(b){return void 0!==b})))}return t.prototype.accept=function(b){b.visit(this)},t}();function R(b){function e(b){return(0,ne.default)(b,R)}if(b instanceof le){var S={type:"NonTerminal",name:b.nonTerminalName,idx:b.idx};return(0,oe.default)(b.label)&&(S.label=b.label),S}if(b instanceof fe)return{type:"Alternative",definition:e(b.definition)};if(b instanceof de)return{type:"Option",idx:b.idx,definition:e(b.definition)};if(b instanceof he)return{type:"RepetitionMandatory",idx:b.idx,definition:e(b.definition)};if(b instanceof me)return{type:"RepetitionMandatoryWithSeparator",idx:b.idx,separator:R(new Te({terminalType:b.separator})),definition:e(b.definition)};if(b instanceof ye)return{type:"RepetitionWithSeparator",idx:b.idx,separator:R(new Te({terminalType:b.separator})),definition:e(b.definition)};if(b instanceof ge)return{type:"Repetition",idx:b.idx,definition:e(b.definition)};if(b instanceof ve)return{type:"Alternation",idx:b.idx,definition:e(b.definition)};if(b instanceof Te){var J={type:"Terminal",name:b.terminalType.name,label:(te=b.terminalType,re=te,(0,oe.default)(re.LABEL)&&""!==re.LABEL?te.LABEL:te.name),idx:b.idx};(0,oe.default)(b.label)&&(J.terminalLabel=b.label);var ee=b.terminalType.PATTERN;return b.terminalType.PATTERN&&(J.pattern=(0,se.default)(ee)?ee.source:ee),J}var te,re;if(b instanceof pe)return{type:"Rule",name:b.name,orgText:b.orgText,definition:e(b.definition)};throw Error("non exhaustive match")}S.Terminal=Te,S.serializeGrammar=function(b){return(0,ne.default)(b,R)},S.serializeProduction=R},7694:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.GAstVisitor=void 0;var ee=J(5700),te=function(){function t(){}return t.prototype.visit=function(b){var S=b;switch(S.constructor){case ee.NonTerminal:return this.visitNonTerminal(S);case ee.Alternative:return this.visitAlternative(S);case ee.Option:return this.visitOption(S);case ee.RepetitionMandatory:return this.visitRepetitionMandatory(S);case ee.RepetitionMandatoryWithSeparator:return this.visitRepetitionMandatoryWithSeparator(S);case ee.RepetitionWithSeparator:return this.visitRepetitionWithSeparator(S);case ee.Repetition:return this.visitRepetition(S);case ee.Alternation:return this.visitAlternation(S);case ee.Terminal:return this.visitTerminal(S);case ee.Rule:return this.visitRule(S);default:throw Error("non exhaustive match")}},t.prototype.visitNonTerminal=function(b){},t.prototype.visitAlternative=function(b){},t.prototype.visitOption=function(b){},t.prototype.visitRepetition=function(b){},t.prototype.visitRepetitionMandatory=function(b){},t.prototype.visitRepetitionMandatoryWithSeparator=function(b){},t.prototype.visitRepetitionWithSeparator=function(b){},t.prototype.visitAlternation=function(b){},t.prototype.visitTerminal=function(b){},t.prototype.visitRule=function(b){},t}();S.GAstVisitor=te},7146:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.toFastProperties=S.timer=S.PRINT_ERROR=S.PRINT_WARNING=void 0;var ee=J(6910);Object.defineProperty(S,"PRINT_WARNING",{enumerable:!0,get:function(){return ee.PRINT_WARNING}}),Object.defineProperty(S,"PRINT_ERROR",{enumerable:!0,get:function(){return ee.PRINT_ERROR}});var te=J(150);Object.defineProperty(S,"timer",{enumerable:!0,get:function(){return te.timer}});var re=J(4470);Object.defineProperty(S,"toFastProperties",{enumerable:!0,get:function(){return re.toFastProperties}})},6910:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.PRINT_WARNING=S.PRINT_ERROR=void 0,S.PRINT_ERROR=function(b){console&&console.error&&console.error("Error: ".concat(b))},S.PRINT_WARNING=function(b){console&&console.warn&&console.warn("Warning: ".concat(b))}},150:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.timer=void 0,S.timer=function(b){var S=(new Date).getTime(),J=b();return{time:(new Date).getTime()-S,value:J}}},4470:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.toFastProperties=void 0,S.toFastProperties=function(b){function e(){}e.prototype=b;var S=new e;function n(){return typeof S.bar}return n(),n(),b}}},S={};function r(J){var ee=S[J];if(void 0!==ee)return ee.exports;var te=S[J]={id:J,loaded:!1,exports:{}};return b[J].call(te.exports,te,te.exports,r),te.loaded=!0,te.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(b){if("object"==typeof window)return window}}(),r.nmd=b=>(b.paths=[],b.children||(b.children=[]),b);var J={};return(()=>{"use strict";var b=J;Object.defineProperty(b,"__esModule",{value:!0}),b.Parser=b.createSyntaxDiagramsCode=b.clearCache=b.generateCstDts=b.GAstVisitor=b.serializeProduction=b.serializeGrammar=b.Terminal=b.Rule=b.RepetitionWithSeparator=b.RepetitionMandatoryWithSeparator=b.RepetitionMandatory=b.Repetition=b.Option=b.NonTerminal=b.Alternative=b.Alternation=b.defaultLexerErrorProvider=b.NoViableAltException=b.NotAllInputParsedException=b.MismatchedTokenException=b.isRecognitionException=b.EarlyExitException=b.defaultParserErrorProvider=b.tokenName=b.tokenMatcher=b.tokenLabel=b.EOF=b.createTokenInstance=b.createToken=b.LexerDefinitionErrorType=b.Lexer=b.EMPTY_ALT=b.ParserDefinitionErrorType=b.EmbeddedActionsParser=b.CstParser=b.VERSION=void 0;var S=r(7979);Object.defineProperty(b,"VERSION",{enumerable:!0,get:function(){return S.VERSION}});var ee=r(2941);Object.defineProperty(b,"CstParser",{enumerable:!0,get:function(){return ee.CstParser}}),Object.defineProperty(b,"EmbeddedActionsParser",{enumerable:!0,get:function(){return ee.EmbeddedActionsParser}}),Object.defineProperty(b,"ParserDefinitionErrorType",{enumerable:!0,get:function(){return ee.ParserDefinitionErrorType}}),Object.defineProperty(b,"EMPTY_ALT",{enumerable:!0,get:function(){return ee.EMPTY_ALT}});var te=r(9027);Object.defineProperty(b,"Lexer",{enumerable:!0,get:function(){return te.Lexer}}),Object.defineProperty(b,"LexerDefinitionErrorType",{enumerable:!0,get:function(){return te.LexerDefinitionErrorType}});var re=r(6736);Object.defineProperty(b,"createToken",{enumerable:!0,get:function(){return re.createToken}}),Object.defineProperty(b,"createTokenInstance",{enumerable:!0,get:function(){return re.createTokenInstance}}),Object.defineProperty(b,"EOF",{enumerable:!0,get:function(){return re.EOF}}),Object.defineProperty(b,"tokenLabel",{enumerable:!0,get:function(){return re.tokenLabel}}),Object.defineProperty(b,"tokenMatcher",{enumerable:!0,get:function(){return re.tokenMatcher}}),Object.defineProperty(b,"tokenName",{enumerable:!0,get:function(){return re.tokenName}});var ne=r(1007);Object.defineProperty(b,"defaultParserErrorProvider",{enumerable:!0,get:function(){return ne.defaultParserErrorProvider}});var ie=r(643);Object.defineProperty(b,"EarlyExitException",{enumerable:!0,get:function(){return ie.EarlyExitException}}),Object.defineProperty(b,"isRecognitionException",{enumerable:!0,get:function(){return ie.isRecognitionException}}),Object.defineProperty(b,"MismatchedTokenException",{enumerable:!0,get:function(){return ie.MismatchedTokenException}}),Object.defineProperty(b,"NotAllInputParsedException",{enumerable:!0,get:function(){return ie.NotAllInputParsedException}}),Object.defineProperty(b,"NoViableAltException",{enumerable:!0,get:function(){return ie.NoViableAltException}});var oe=r(495);Object.defineProperty(b,"defaultLexerErrorProvider",{enumerable:!0,get:function(){return oe.defaultLexerErrorProvider}});var se=r(7729);Object.defineProperty(b,"Alternation",{enumerable:!0,get:function(){return se.Alternation}}),Object.defineProperty(b,"Alternative",{enumerable:!0,get:function(){return se.Alternative}}),Object.defineProperty(b,"NonTerminal",{enumerable:!0,get:function(){return se.NonTerminal}}),Object.defineProperty(b,"Option",{enumerable:!0,get:function(){return se.Option}}),Object.defineProperty(b,"Repetition",{enumerable:!0,get:function(){return se.Repetition}}),Object.defineProperty(b,"RepetitionMandatory",{enumerable:!0,get:function(){return se.RepetitionMandatory}}),Object.defineProperty(b,"RepetitionMandatoryWithSeparator",{enumerable:!0,get:function(){return se.RepetitionMandatoryWithSeparator}}),Object.defineProperty(b,"RepetitionWithSeparator",{enumerable:!0,get:function(){return se.RepetitionWithSeparator}}),Object.defineProperty(b,"Rule",{enumerable:!0,get:function(){return se.Rule}}),Object.defineProperty(b,"Terminal",{enumerable:!0,get:function(){return se.Terminal}});var ae=r(7729);Object.defineProperty(b,"serializeGrammar",{enumerable:!0,get:function(){return ae.serializeGrammar}}),Object.defineProperty(b,"serializeProduction",{enumerable:!0,get:function(){return ae.serializeProduction}}),Object.defineProperty(b,"GAstVisitor",{enumerable:!0,get:function(){return ae.GAstVisitor}});var ue=r(8962);Object.defineProperty(b,"generateCstDts",{enumerable:!0,get:function(){return ue.generateCstDts}}),b.clearCache=function(){console.warn("The clearCache function was 'soft' removed from the Chevrotain API.\n\t It performs no action other than printing this message.\n\t Please avoid using it as it will be completely removed in the future")};var ce=r(5781);Object.defineProperty(b,"createSyntaxDiagramsCode",{enumerable:!0,get:function(){return ce.createSyntaxDiagramsCode}});b.Parser=function(){throw new Error("The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.\t\nSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_7-0-0")}})(),J})()}))},23836:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.MultipleLineComment=S.Comment=S.WhiteSpace=S.StringLiteral=S.QuotedString=S.DataLiteral=S.Colon=S.Separator=S.Terminator=S.ArrayEnd=S.ArrayStart=S.ObjectEnd=S.ObjectStart=void 0;const ee=J(41791);const te=J(17024);S.ObjectStart=(0,ee.createToken)({name:"OpenBracket",pattern:/{/});S.ObjectEnd=(0,ee.createToken)({name:"CloseBracket",pattern:/}/});S.ArrayStart=(0,ee.createToken)({name:"ArrayStart",pattern:/\(/});S.ArrayEnd=(0,ee.createToken)({name:"ArrayEnd",pattern:/\)/});S.Terminator=(0,ee.createToken)({name:"Terminator",pattern:/;/});S.Separator=(0,ee.createToken)({name:"Separator",pattern:/,/});S.Colon=(0,ee.createToken)({name:"Colon",pattern:/=/});function matchQuotedString(b,S){let J=b.charAt(S);if(J!==`'`&&J!==`"`){return null}const ee=new RegExp(`${J}(?:[^\\\\${J}]|\\\\(?:[bfnrtv${J}\\\\/]|u[0-9a-fA-F]{4}))*${J}`,"y");ee.lastIndex=S;const re=ee.exec(b);if(re!==null){const b=re[0];const S=(0,te.stripQuotes)(b.substring(1,b.length-1));re.payload=S}return re}const re=/<[0-9a-fA-F\s]+>/y;function matchData(b,S){if(b.charAt(S)!==`<`){return null}re.lastIndex=S;const J=re.exec(b);if(J!==null){const b=J[0];const S=b.substring(1,b.length-2).trim();J.payload=Buffer.from(S)}return J}S.DataLiteral=(0,ee.createToken)({name:"DataLiteral",pattern:{exec:matchData},line_breaks:false,start_chars_hint:[`<`]});S.QuotedString=(0,ee.createToken)({name:"QuotedString",pattern:{exec:matchQuotedString},line_breaks:false,start_chars_hint:[`"`,`'`]});S.StringLiteral=(0,ee.createToken)({name:"StringLiteral",pattern:/[\w_$/:.-]+/,line_breaks:false});S.WhiteSpace=(0,ee.createToken)({name:"WhiteSpace",pattern:/[ \t\n\r]+/u,group:ee.Lexer.SKIPPED});const ne=(0,ee.createToken)({name:"AbsComment",pattern:ee.Lexer.NA});S.Comment=(0,ee.createToken)({name:"Comment",pattern:/\/\/.*/,categories:ne,group:ee.Lexer.SKIPPED});S.MultipleLineComment=(0,ee.createToken)({name:"MultipleLineComment",pattern:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//,categories:ne,line_breaks:true,group:ee.Lexer.SKIPPED});S.ObjectStart.LABEL="'{'";S.ObjectEnd.LABEL="'}'";S.ArrayStart.LABEL="'('";S.ArrayEnd.LABEL="')'";S.Terminator.LABEL="';'";S.Colon.LABEL="'='";S.Separator.LABEL="','";S["default"]=[S.WhiteSpace,S.Comment,S.MultipleLineComment,S.ObjectStart,S.ObjectEnd,S.ArrayStart,S.ArrayEnd,S.Terminator,S.Separator,S.Colon,S.DataLiteral,S.QuotedString,S.StringLiteral]},44239:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.lexer=S.tokens=S.tokenVocabulary=void 0;const te=J(41791);const re=ee(J(23836));S.tokenVocabulary={};S.tokens=[...re.default];S.lexer=new te.Lexer(S.tokens);S.tokens.forEach((b=>{S.tokenVocabulary[b.name]=b}))},62902:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.parse=S.htmlText=S.serializedGrammar=S.BaseVisitor=S.PbxprojParser=S.CommentCstParser=void 0;const ee=J(41791);const te=J(23836);const re=J(44239);class CommentCstParser extends ee.CstParser{LA(b){while((0,ee.tokenMatcher)(super.LA(b),te.Comment)){super.consumeToken()}return super.LA(b)}cstPostTerminal(b,S){super.cstPostTerminal(b,S);let J=-1;let re=super.LA(J);while((0,ee.tokenMatcher)(re,te.Comment)){super.cstPostTerminal(te.Comment.name,re);J--;re=super.LA(J)}}}S.CommentCstParser=CommentCstParser;class PbxprojParser extends CommentCstParser{constructor(){super(re.tokens,{recoveryEnabled:false});this.head=this.RULE("head",(()=>{this.OR([{ALT:()=>this.SUBRULE(this.array)},{ALT:()=>this.SUBRULE(this.object)}])}));this.array=this.RULE("array",(()=>{this.CONSUME(te.ArrayStart);this.OPTION((()=>{this.MANY((()=>{this.SUBRULE(this.value);this.OPTION2((()=>this.CONSUME(te.Separator)))}))}));this.CONSUME(te.ArrayEnd)}));this.object=this.RULE("object",(()=>{this.CONSUME(te.ObjectStart);this.OPTION((()=>{this.MANY((()=>{this.SUBRULE(this.objectItem)}))}));this.CONSUME(te.ObjectEnd)}));this.objectItem=this.RULE("objectItem",(()=>{this.SUBRULE(this.identifier);this.CONSUME(te.Colon);this.SUBRULE(this.value);this.CONSUME(te.Terminator)}));this.identifier=this.RULE("identifier",(()=>{this.OR([{ALT:()=>this.CONSUME(te.QuotedString)},{ALT:()=>this.CONSUME(te.StringLiteral)}])}));this.value=this.RULE("value",(()=>{this.OR([{ALT:()=>this.SUBRULE(this.object)},{ALT:()=>this.SUBRULE(this.array)},{ALT:()=>this.CONSUME(te.DataLiteral)},{ALT:()=>this.SUBRULE(this.identifier)}])}));this.performSelfAnalysis()}}S.PbxprojParser=PbxprojParser;const ne=new PbxprojParser;S.BaseVisitor=ne.getBaseCstVisitorConstructorWithDefaults();S.serializedGrammar=ne.getSerializedGastProductions();S.htmlText=(0,ee.createSyntaxDiagramsCode)(S.serializedGrammar);function parse(b){const S=re.lexer.tokenize(b);if(S.errors.length){throw new Error(`Parsing errors: ${S.errors[0].message}`)}ne.input=S.tokens;const J=ne.head();if(ne.errors.length){throw new Error(`Parsing errors: ${ne.errors[0].message}`)}return J}S.parse=parse},61202:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.isPBXFileReference=S.isPBXBuildFile=S.createReferenceList=void 0;function createReferenceList(b){const S=false;const J=b?.objects??{};const ee={};function getXCConfigurationListComment(b){for(const[S,ee]of Object.entries(J)){if(ee.buildConfigurationList===b){let b=ee.name??ee.path??ee.productName;if(!b){b=J[ee.targets?.[0]]?.name;if(!b){const ee=Object.values(J).find((b=>b.isa==="PBXContainerItemProxy"&&b.containerPortal===S));b=ee?.remoteInfo}}return`Build configuration list for ${ee.isa} "${b}"`}}return`Build configuration list for [unknown]`}function getBuildPhaseNameContainingFile(b){const S=Object.values(J).find((S=>S.files?.includes(b)));return S?getBuildPhaseName(S):null}function getPBXBuildFileComment(b,S){const ee=getBuildPhaseNameContainingFile(b)??"[missing build phase]";const te=getCommentForObject(S.fileRef,J[S.fileRef]);return`${te} in ${ee}`}function getCommentForObject(b,S){if(!S?.isa){return null}if(b in ee){return ee[b]}if(isPBXBuildFile(S)){ee[b]=getPBXBuildFileComment(b,S)}else if(isXCConfigurationList(S)){ee[b]=getXCConfigurationListComment(b)}else if(isPBXProject(S)){ee[b]="Project object"}else if(S.isa?.endsWith("BuildPhase")){ee[b]=getBuildPhaseName(S)??""}else{ee[b]=S.name??S.path??S.isa??null}return ee[b]??null}Object.entries(J).forEach((([J,ee])=>{if(J===b.rootObject){return}if(!getCommentForObject(J,ee)){if(S)throw new Error("Failed to find comment reference for ID: "+J+", isa: "+ee.isa)}}));return ee}S.createReferenceList=createReferenceList;function isPBXProject(b){return b?.isa==="PBXProject"}function isPBXBuildFile(b){return b?.isa==="PBXBuildFile"}S.isPBXBuildFile=isPBXBuildFile;function isPBXFileReference(b){return b?.isa==="PBXFileReference"}S.isPBXFileReference=isPBXFileReference;function isXCConfigurationList(b){return b?.isa==="XCConfigurationList"}function getBuildPhaseName(b){return b.name??getDefaultBuildPhaseName(b.isa)}function getDefaultBuildPhaseName(b){return b.match(/PBX([a-zA-Z]+)BuildPhase/)?.[1]??null}},99348:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.ISA=void 0;var J;(function(b){b["PBXBuildFile"]="PBXBuildFile";b["PBXBuildPhase"]="PBXBuildPhase";b["PBXAppleScriptBuildPhase"]="PBXAppleScriptBuildPhase";b["PBXCopyFilesBuildPhase"]="PBXCopyFilesBuildPhase";b["PBXFrameworksBuildPhase"]="PBXFrameworksBuildPhase";b["PBXHeadersBuildPhase"]="PBXHeadersBuildPhase";b["PBXResourcesBuildPhase"]="PBXResourcesBuildPhase";b["PBXShellScriptBuildPhase"]="PBXShellScriptBuildPhase";b["PBXSourcesBuildPhase"]="PBXSourcesBuildPhase";b["PBXContainerItemProxy"]="PBXContainerItemProxy";b["PBXFileElement"]="PBXFileElement";b["PBXFileReference"]="PBXFileReference";b["PBXGroup"]="PBXGroup";b["PBXVariantGroup"]="PBXVariantGroup";b["PBXTarget"]="PBXTarget";b["PBXAggregateTarget"]="PBXAggregateTarget";b["PBXLegacyTarget"]="PBXLegacyTarget";b["PBXNativeTarget"]="PBXNativeTarget";b["PBXProject"]="PBXProject";b["PBXTargetDependency"]="PBXTargetDependency";b["XCBuildConfiguration"]="XCBuildConfiguration";b["XCConfigurationList"]="XCConfigurationList"})(J=S.ISA||(S.ISA={}))},87964:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.NEXT_STEP_MAPPING=void 0;S.NEXT_STEP_MAPPING=Object.freeze({[128]:160,[129]:192,[130]:193,[131]:194,[132]:195,[133]:196,[134]:197,[135]:199,[136]:200,[137]:201,[138]:202,[139]:203,[140]:204,[141]:205,[142]:206,[143]:207,[144]:208,[145]:209,[146]:210,[147]:211,[148]:212,[149]:213,[150]:214,[151]:217,[152]:218,[153]:219,[154]:220,[155]:221,[156]:222,[157]:181,[158]:215,[159]:247,[160]:169,[161]:161,[162]:162,[163]:163,[164]:8260,[165]:165,[166]:402,[167]:167,[168]:164,[169]:8217,[170]:8220,[171]:171,[172]:8249,[173]:8250,[174]:64257,[175]:64258,[176]:174,[177]:8211,[178]:8224,[179]:8225,[180]:183,[181]:166,[182]:182,[183]:8226,[184]:8218,[185]:8222,[186]:8221,[187]:187,[188]:8230,[189]:8240,[190]:172,[191]:191,[192]:185,[193]:715,[194]:180,[195]:710,[196]:732,[197]:175,[198]:728,[199]:729,[200]:168,[201]:178,[202]:730,[203]:184,[204]:179,[205]:733,[206]:731,[207]:711,[208]:8212,[209]:177,[210]:188,[211]:189,[212]:190,[213]:224,[214]:225,[215]:226,[216]:227,[217]:228,[218]:229,[219]:231,[220]:232,[221]:233,[222]:234,[223]:235,[224]:236,[225]:198,[226]:237,[227]:170,[228]:238,[229]:239,[230]:240,[231]:241,[232]:321,[233]:216,[234]:338,[235]:186,[236]:242,[237]:243,[238]:244,[239]:245,[240]:246,[241]:230,[242]:249,[243]:250,[244]:251,[245]:305,[246]:252,[247]:253,[248]:322,[249]:248,[250]:339,[251]:223,[252]:254,[253]:255,[254]:65533,[255]:65533})},15409:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.QUOTE_REGEXP=S.UNQUOTE_MAP=S.QUOTE_MAP=void 0;S.QUOTE_MAP=Object.freeze({[`a`]:"\\a","\b":"\\b","\f":"\\f","\r":"\\r","\t":"\\t","\v":"\\v","\n":"\\n",'"':'\\"',"\\":"\\\\","\0":"\\U0000","":"\\U0001","":"\\U0002","":"\\U0003","":"\\U0004","":"\\U0005","":"\\U0006","":"\\U000e","":"\\U000f","":"\\U0010","":"\\U0011","":"\\U0012","":"\\U0013","":"\\U0014","":"\\U0015","":"\\U0016","":"\\U0017","":"\\U0018","":"\\U0019","":"\\U001a",[`e`]:"\\U001b","":"\\U001c","":"\\U001d","":"\\U001e","":"\\U001f"});S.UNQUOTE_MAP=Object.freeze({a:`a`,b:"\b",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v","\n":"\n",'"':`"`,"'":`'`,"\\":"\\"});S.QUOTE_REGEXP=/\x07|\x08|\f|\r|\t|\v|\n|"|\\|\x00|\x01|\x02|\x03|\x04|\x05|\x06|\x0E|\x0F|\x10|\x11|\x12|\x13|\x14|\x15|\x16|\x17|\x18|\x19|\x1A|\x1B|\x1C|\x1D|\x1E|\x1F/g},17024:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.stripQuotes=S.addQuotes=void 0;const ee=J(87964);const te=J(15409);function addQuotes(b){return b.replace(te.QUOTE_REGEXP,(b=>te.QUOTE_MAP[b]))}S.addQuotes=addQuotes;const re="01234567".split("");const ne=[...re,"a","b","f","n","r","t","v",`"`,"\n","U","\\"];function stripQuotes(b){let S="";let J=b;let ie=b.length;let oe=0;while(oe<ie){let b=J[oe];if(b===`\\`){let ie=J[oe+1];if(ne.includes(ie)){oe++;if(te.UNQUOTE_MAP[ie]){S+=te.UNQUOTE_MAP[ie]}else if(ie==="U"){const b=oe+1;const ee=b+4;const te=J.slice(b,ee);for(const b in te.split("")){oe+=1;if(!isHexNumber(b)){throw new Error(`Unicode '\\U' escape sequence terminated without 4 following hex characters`)}S+=String.fromCharCode(parseInt(te,16))}}else if(re.includes(ie)){const b=J.slice(oe-1,3);if(/\\A[0-7]{3}\\z/.test(b)){let b=oe;let te=b+1;for(let S=0;S<3;S++){let ee=b+S;let ne=J[ee];if(re.includes(ne)){te+=1}}let ne=J.slice(b,te);let ie=parseInt(ne,8);if(ie>=128){ie=ee.NEXT_STEP_MAPPING[ie]}S+=String.fromCharCode(ie)}else{S+=ie}}else{throw new Error(`Failed to handle ${ie} which is in the list of possible escapes`)}}else{S+=b;oe++;S+=ie}}else{S+=b}oe++}return S}S.stripQuotes=stripQuotes;function isHexNumber(b){return/^[0-9a-fA-F]$/.test(b)}},62540:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.ContextVisitor=void 0;const ee=J(62902);class ContextVisitor extends ee.BaseVisitor{constructor(){super();this.context={};this.validateVisitor()}head(b){if(b.array){this.context=this.visit(b.array)}else if(b.object){this.context=this.visit(b.object)}}object(b){return b.objectItem?.reduce(((b,S)=>({...b,...this.visit(S)})),{})??{}}array(b){return b.value?.map((b=>this.visit(b)))??[]}objectItem(b){return{[this.visit(b.identifier)]:this.visit(b.value)}}identifier(b){if(b.QuotedString){return b.QuotedString[0].payload??b.QuotedString[0].image}else if(b.StringLiteral){return b.StringLiteral[0].payload??b.StringLiteral[0].image}throw new Error("unhandled: "+b)}value(b){if(b.identifier){return this.visit(b.identifier)}else if(b.DataLiteral){return b.DataLiteral[0].payload??b.DataLiteral[0].image}else if(b.object){return this.visit(b.object)}else if(b.array){return this.visit(b.array)}throw new Error("unhandled: "+b)}}S.ContextVisitor=ContextVisitor},9128:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.Writer=void 0;const ee=J(61202);const te=J(17024);let re="\n";try{re=J(22037).EOL}catch{}function isObject(b){return typeof b==="object"&&b!==null&&!(b instanceof Buffer)}function ensureQuotes(b){b=(0,te.addQuotes)(b);if(/^[\w_$/:.]+$/.test(b)){return b}return`"${b}"`}function formatData(b){return`<${b.toString()}>`}function getSortedObjects(b){const S={};Object.entries(b).forEach((([b,J])=>{if(!S[J.isa]){S[J.isa]=[]}S[J.isa].push([b,J])}));return Object.entries(S).sort()}class Writer{constructor(b,S={}){this.project=b;this.options=S;this.indent=0;this.contents="";this.comments={};this.comments=(0,ee.createReferenceList)(b);this.writeShebang();this.writeProject()}pad(b){const S=this.options.tab??"\t";return b>0?S+this.pad(b-1):""}getResults(){return this.contents}println(b){this.contents+=this.pad(this.indent);this.contents+=b;this.contents+=re}write(b){this.contents+=this.pad(this.indent);this.contents+=b}printAssignLn(b,S){return this.println(b+" = "+S+";")}flush(b){const S=this.indent;this.indent=0;this.write(b);this.indent=S}writeShebang(){const b=this.options?.shebang??"!$*UTF8*$!";this.println(`// ${b}`)}formatId(b,S=this.comments[b]){if(S){return`${b} /* ${S} */`}return ensureQuotes(b)}writeProject(){this.println("{");if(this.project){this.indent++;this.writeObject(this.project,true);this.indent--}this.println("}")}writeObject(b,S){Object.entries(b).forEach((([b,J])=>{if(this.options.skipNullishValues&&J==null){return}else if(J instanceof Buffer){this.printAssignLn(ensureQuotes(b),formatData(J))}else if(Array.isArray(J)){this.writeArray(b,J)}else if(isObject(J)){if(!S&&!Object.keys(J).length){this.println(ensureQuotes(b)+" = {};");return}this.println(ensureQuotes(b)+" = {");this.indent++;if(S&&b==="objects"){this.writePbxObjects(J)}else{this.writeObject(J,S)}this.indent--;this.println("};")}else{this.printAssignLn(ensureQuotes(b),b==="remoteGlobalIDString"?ensureQuotes(J):this.formatId(J))}}))}writePbxObjects(b){getSortedObjects(b).forEach((([b,S])=>{this.flush(re);this.flush(`/* Begin ${b} section */`+re);S.forEach((([b,S])=>this.writeObjectInclusive(b,S)));this.flush(`/* End ${b} section */`+re)}))}writeArray(b,S){this.println(ensureQuotes(b)+" = (");this.indent++;S.forEach((b=>{if(b instanceof Buffer){this.println(formatData(b)+",")}else if(b==null){return}else if(isObject(b)){this.println("{");if(b){this.indent++;this.writeObject(b);this.indent--}this.println("},")}else{this.println(this.formatId(String(b))+",")}}));this.indent--;this.println(");")}writeObjectInclusive(b,S){if((0,ee.isPBXBuildFile)(S)||(0,ee.isPBXFileReference)(S)){return this.writeObjectWithoutIndent(b,S)}this.println(this.formatId(b)+" = {");this.indent++;this.writeObject(S);this.indent--;this.println("};")}writeObjectWithoutIndent(b,S){const J=[];const buildInline=(b,S)=>{J.push(this.formatId(b)+" = {");Object.entries(S).forEach((([b,S])=>{if(this.options.skipNullishValues&&S==null){return}else if(S instanceof Buffer){J.push(ensureQuotes(b)+" = "+formatData(S)+"; ")}else if(Array.isArray(S)){J.push(ensureQuotes(b)+" = (");S.forEach((b=>J.push(ensureQuotes(b)+", ")));J.push("); ")}else if(isObject(S)){buildInline(b,S)}else{J.push(ensureQuotes(b)+" = "+this.formatId(S)+"; ")}}));J.push("}; ")};buildInline(b,S);this.println(J.join("").trim())}}S.Writer=Writer},4604:function(b,S){(function(){"use strict";S.stripBOM=function(b){if(b[0]==="\ufeff"){return b.substring(1)}else{return b}}}).call(this)},11002:function(b,S,J){(function(){"use strict";var b,ee,te,re,ne,ie={}.hasOwnProperty;b=J(83131);ee=J(9498).defaults;re=function(b){return typeof b==="string"&&(b.indexOf("&")>=0||b.indexOf(">")>=0||b.indexOf("<")>=0)};ne=function(b){return"<![CDATA["+te(b)+"]]>"};te=function(b){return b.replace("]]>","]]]]><![CDATA[>")};S.Builder=function(){function Builder(b){var S,J,te;this.options={};J=ee["0.2"];for(S in J){if(!ie.call(J,S))continue;te=J[S];this.options[S]=te}for(S in b){if(!ie.call(b,S))continue;te=b[S];this.options[S]=te}}Builder.prototype.buildObject=function(S){var J,te,oe,se,ae;J=this.options.attrkey;te=this.options.charkey;if(Object.keys(S).length===1&&this.options.rootName===ee["0.2"].rootName){ae=Object.keys(S)[0];S=S[ae]}else{ae=this.options.rootName}oe=function(b){return function(S,ee){var se,ae,ue,ce,le,pe;if(typeof ee!=="object"){if(b.options.cdata&&re(ee)){S.raw(ne(ee))}else{S.txt(ee)}}else if(Array.isArray(ee)){for(ce in ee){if(!ie.call(ee,ce))continue;ae=ee[ce];for(le in ae){ue=ae[le];S=oe(S.ele(le),ue).up()}}}else{for(le in ee){if(!ie.call(ee,le))continue;ae=ee[le];if(le===J){if(typeof ae==="object"){for(se in ae){pe=ae[se];S=S.att(se,pe)}}}else if(le===te){if(b.options.cdata&&re(ae)){S=S.raw(ne(ae))}else{S=S.txt(ae)}}else if(Array.isArray(ae)){for(ce in ae){if(!ie.call(ae,ce))continue;ue=ae[ce];if(typeof ue==="string"){if(b.options.cdata&&re(ue)){S=S.ele(le).raw(ne(ue)).up()}else{S=S.ele(le,ue).up()}}else{S=oe(S.ele(le),ue).up()}}}else if(typeof ae==="object"){S=oe(S.ele(le),ae).up()}else{if(typeof ae==="string"&&b.options.cdata&&re(ae)){S=S.ele(le).raw(ne(ae)).up()}else{if(ae==null){ae=""}S=S.ele(le,ae.toString()).up()}}}}return S}}(this);se=b.create(ae,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars});return oe(se,S).end(this.options.renderOpts)};return Builder}()}).call(this)},9498:function(b,S){(function(){S.defaults={.1:{explicitCharkey:false,trim:true,normalize:true,normalizeTags:false,attrkey:"@",charkey:"#",explicitArray:false,ignoreAttrs:false,mergeAttrs:false,explicitRoot:false,validator:null,xmlns:false,explicitChildren:false,childkey:"@@",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:"$",charkey:"_",explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:null,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:null,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false}}}).call(this)},67426:function(b,S,J){(function(){"use strict";var b,ee,te,re,ne,ie,oe,se,ae,bind=function(b,S){return function(){return b.apply(S,arguments)}},extend=function(b,S){for(var J in S){if(ue.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ue={}.hasOwnProperty;se=J(79746);te=J(82361);b=J(4604);oe=J(49068);ae=J(39512).setImmediate;ee=J(9498).defaults;re=function(b){return typeof b==="object"&&b!=null&&Object.keys(b).length===0};ne=function(b){return b!=="__proto__"&&b!=="constructor"&&b!=="prototype"};ie=function(b,S,J){var ee,te,re;for(ee=0,te=b.length;ee<te;ee++){re=b[ee];S=re(S,J)}return S};S.Parser=function(J){extend(Parser,J);function Parser(b){this.parseStringPromise=bind(this.parseStringPromise,this);this.parseString=bind(this.parseString,this);this.reset=bind(this.reset,this);this.assignOrPush=bind(this.assignOrPush,this);this.processAsync=bind(this.processAsync,this);var J,te,re;if(!(this instanceof S.Parser)){return new S.Parser(b)}this.options={};te=ee["0.2"];for(J in te){if(!ue.call(te,J))continue;re=te[J];this.options[J]=re}for(J in b){if(!ue.call(b,J))continue;re=b[J];this.options[J]=re}if(this.options.xmlns){this.options.xmlnskey=this.options.attrkey+"ns"}if(this.options.normalizeTags){if(!this.options.tagNameProcessors){this.options.tagNameProcessors=[]}this.options.tagNameProcessors.unshift(oe.normalize)}this.reset()}Parser.prototype.processAsync=function(){var b,S;try{if(this.remaining.length<=this.options.chunkSize){b=this.remaining;this.remaining="";this.saxParser=this.saxParser.write(b);return this.saxParser.close()}else{b=this.remaining.substr(0,this.options.chunkSize);this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length);this.saxParser=this.saxParser.write(b);return ae(this.processAsync)}}catch(b){S=b;if(!this.saxParser.errThrown){this.saxParser.errThrown=true;return this.emit(S)}}};Parser.prototype.assignOrPush=function(b,S,J){if(!ne(S)){return}if(!(S in b)){if(!this.options.explicitArray){return b[S]=J}else{return b[S]=[J]}}else{if(!(b[S]instanceof Array)){b[S]=[b[S]]}return b[S].push(J)}};Parser.prototype.reset=function(){var b,S,J,ee;this.removeAllListeners();this.saxParser=se.parser(this.options.strict,{trim:false,normalize:false,xmlns:this.options.xmlns});this.saxParser.errThrown=false;this.saxParser.onerror=function(b){return function(S){b.saxParser.resume();if(!b.saxParser.errThrown){b.saxParser.errThrown=true;return b.emit("error",S)}}}(this);this.saxParser.onend=function(b){return function(){if(!b.saxParser.ended){b.saxParser.ended=true;return b.emit("end",b.resultObject)}}}(this);this.saxParser.ended=false;this.EXPLICIT_CHARKEY=this.options.explicitCharkey;this.resultObject=null;ee=[];b=this.options.attrkey;S=this.options.charkey;this.saxParser.onopentag=function(J){return function(te){var re,oe,se,ae,ce;se={};se[S]="";if(!J.options.ignoreAttrs){ce=te.attributes;for(re in ce){if(!ue.call(ce,re))continue;if(!(b in se)&&!J.options.mergeAttrs){se[b]={}}oe=J.options.attrValueProcessors?ie(J.options.attrValueProcessors,te.attributes[re],re):te.attributes[re];ae=J.options.attrNameProcessors?ie(J.options.attrNameProcessors,re):re;if(ne(ae)){if(J.options.mergeAttrs){J.assignOrPush(se,ae,oe)}else{se[b][ae]=oe}}}}se["#name"]=J.options.tagNameProcessors?ie(J.options.tagNameProcessors,te.name):te.name;if(J.options.xmlns){se[J.options.xmlnskey]={uri:te.uri,local:te.local}}return ee.push(se)}}(this);this.saxParser.onclosetag=function(b){return function(){var J,te,oe,se,ae,ce,le,pe,fe,de;ce=ee.pop();ae=ce["#name"];if(!b.options.explicitChildren||!b.options.preserveChildrenOrder){delete ce["#name"]}if(ce.cdata===true){J=ce.cdata;delete ce.cdata}fe=ee[ee.length-1];if(ce[S].match(/^\s*$/)&&!J){te=ce[S];delete ce[S]}else{if(b.options.trim){ce[S]=ce[S].trim()}if(b.options.normalize){ce[S]=ce[S].replace(/\s{2,}/g," ").trim()}ce[S]=b.options.valueProcessors?ie(b.options.valueProcessors,ce[S],ae):ce[S];if(Object.keys(ce).length===1&&S in ce&&!b.EXPLICIT_CHARKEY){ce=ce[S]}}if(re(ce)){if(typeof b.options.emptyTag==="function"){ce=b.options.emptyTag()}else{ce=b.options.emptyTag!==""?b.options.emptyTag:te}}if(b.options.validator!=null){de="/"+function(){var b,S,J;J=[];for(b=0,S=ee.length;b<S;b++){se=ee[b];J.push(se["#name"])}return J}().concat(ae).join("/");(function(){var S;try{return ce=b.options.validator(de,fe&&fe[ae],ce)}catch(J){S=J;return b.emit("error",S)}})()}if(b.options.explicitChildren&&!b.options.mergeAttrs&&typeof ce==="object"){if(!b.options.preserveChildrenOrder){se={};if(b.options.attrkey in ce){se[b.options.attrkey]=ce[b.options.attrkey];delete ce[b.options.attrkey]}if(!b.options.charsAsChildren&&b.options.charkey in ce){se[b.options.charkey]=ce[b.options.charkey];delete ce[b.options.charkey]}if(Object.getOwnPropertyNames(ce).length>0){se[b.options.childkey]=ce}ce=se}else if(fe){fe[b.options.childkey]=fe[b.options.childkey]||[];le={};for(oe in ce){if(!ue.call(ce,oe))continue;if(ne(oe)){le[oe]=ce[oe]}}fe[b.options.childkey].push(le);delete ce["#name"];if(Object.keys(ce).length===1&&S in ce&&!b.EXPLICIT_CHARKEY){ce=ce[S]}}}if(ee.length>0){return b.assignOrPush(fe,ae,ce)}else{if(b.options.explicitRoot){pe=ce;ce={};ce[ae]=pe}b.resultObject=ce;b.saxParser.ended=true;return b.emit("end",b.resultObject)}}}(this);J=function(b){return function(J){var te,re;re=ee[ee.length-1];if(re){re[S]+=J;if(b.options.explicitChildren&&b.options.preserveChildrenOrder&&b.options.charsAsChildren&&(b.options.includeWhiteChars||J.replace(/\\n/g,"").trim()!=="")){re[b.options.childkey]=re[b.options.childkey]||[];te={"#name":"__text__"};te[S]=J;if(b.options.normalize){te[S]=te[S].replace(/\s{2,}/g," ").trim()}re[b.options.childkey].push(te)}return re}}}(this);this.saxParser.ontext=J;return this.saxParser.oncdata=function(b){return function(b){var S;S=J(b);if(S){return S.cdata=true}}}(this)};Parser.prototype.parseString=function(S,J){var ee;if(J!=null&&typeof J==="function"){this.on("end",(function(b){this.reset();return J(null,b)}));this.on("error",(function(b){this.reset();return J(b)}))}try{S=S.toString();if(S.trim()===""){this.emit("end",null);return true}S=b.stripBOM(S);if(this.options.async){this.remaining=S;ae(this.processAsync);return this.saxParser}return this.saxParser.write(S).close()}catch(b){ee=b;if(!(this.saxParser.errThrown||this.saxParser.ended)){this.emit("error",ee);return this.saxParser.errThrown=true}else if(this.saxParser.ended){throw ee}}};Parser.prototype.parseStringPromise=function(b){return new Promise(function(S){return function(J,ee){return S.parseString(b,(function(b,S){if(b){return ee(b)}else{return J(S)}}))}}(this))};return Parser}(te);S.parseString=function(b,J,ee){var te,re,ne;if(ee!=null){if(typeof ee==="function"){te=ee}if(typeof J==="object"){re=J}}else{if(typeof J==="function"){te=J}re={}}ne=new S.Parser(re);return ne.parseString(b,te)};S.parseStringPromise=function(b,J){var ee,te;if(typeof J==="object"){ee=J}te=new S.Parser(ee);return te.parseStringPromise(b)}}).call(this)},49068:function(b,S){(function(){"use strict";var b;b=new RegExp(/(?!xmlns)^.*:/);S.normalize=function(b){return b.toLowerCase()};S.firstCharLowerCase=function(b){return b.charAt(0).toLowerCase()+b.slice(1)};S.stripPrefix=function(S){return S.replace(b,"")};S.parseNumbers=function(b){if(!isNaN(b)){b=b%1===0?parseInt(b,10):parseFloat(b)}return b};S.parseBooleans=function(b){if(/^(?:true|false)$/i.test(b)){b=b.toLowerCase()==="true"}return b}}).call(this)},27013:function(b,S,J){(function(){"use strict";var b,ee,te,re,extend=function(b,S){for(var J in S){if(ne.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ne={}.hasOwnProperty;ee=J(9498);b=J(11002);te=J(67426);re=J(49068);S.defaults=ee.defaults;S.processors=re;S.ValidationError=function(b){extend(ValidationError,b);function ValidationError(b){this.message=b}return ValidationError}(Error);S.Builder=b.Builder;S.Parser=te.Parser;S.parseString=te.parseString;S.parseStringPromise=te.parseStringPromise}).call(this)},22346:function(b){(function(){b.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},4128:function(b){(function(){b.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},52629:function(b){(function(){var S,J,ee,te,re,ne,ie,oe=[].slice,se={}.hasOwnProperty;S=function(){var b,S,J,ee,te,ne;ne=arguments[0],te=2<=arguments.length?oe.call(arguments,1):[];if(re(Object.assign)){Object.assign.apply(null,arguments)}else{for(b=0,J=te.length;b<J;b++){ee=te[b];if(ee!=null){for(S in ee){if(!se.call(ee,S))continue;ne[S]=ee[S]}}}}return ne};re=function(b){return!!b&&Object.prototype.toString.call(b)==="[object Function]"};ne=function(b){var S;return!!b&&((S=typeof b)==="function"||S==="object")};ee=function(b){if(re(Array.isArray)){return Array.isArray(b)}else{return Object.prototype.toString.call(b)==="[object Array]"}};te=function(b){var S;if(ee(b)){return!b.length}else{for(S in b){if(!se.call(b,S))continue;return false}return true}};ie=function(b){var S,J;return ne(b)&&(J=Object.getPrototypeOf(b))&&(S=J.constructor)&&typeof S==="function"&&S instanceof S&&Function.prototype.toString.call(S)===Function.prototype.toString.call(Object)};J=function(b){if(re(b.valueOf)){return b.valueOf()}else{return b}};b.exports.assign=S;b.exports.isFunction=re;b.exports.isObject=ne;b.exports.isArray=ee;b.exports.isEmpty=te;b.exports.isPlainObject=ie;b.exports.getValue=J}).call(this)},58413:function(b){(function(){b.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},49525:function(b,S,J){(function(){var S,ee,te;S=J(4128);te=J(98064);b.exports=ee=function(){function XMLAttribute(b,J,ee){this.parent=b;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}if(J==null){throw new Error("Missing attribute name. "+this.debugInfo(J))}this.name=this.stringify.name(J);this.value=this.stringify.attValue(ee);this.type=S.Attribute;this.isId=false;this.schemaTypeInfo=null}Object.defineProperty(XMLAttribute.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(XMLAttribute.prototype,"ownerElement",{get:function(){return this.parent}});Object.defineProperty(XMLAttribute.prototype,"textContent",{get:function(){return this.value},set:function(b){return this.value=b||""}});Object.defineProperty(XMLAttribute.prototype,"namespaceURI",{get:function(){return""}});Object.defineProperty(XMLAttribute.prototype,"prefix",{get:function(){return""}});Object.defineProperty(XMLAttribute.prototype,"localName",{get:function(){return this.name}});Object.defineProperty(XMLAttribute.prototype,"specified",{get:function(){return true}});XMLAttribute.prototype.clone=function(){return Object.create(this)};XMLAttribute.prototype.toString=function(b){return this.options.writer.attribute(this,this.options.writer.filterOptions(b))};XMLAttribute.prototype.debugInfo=function(b){b=b||this.name;if(b==null){return"parent: <"+this.parent.name+">"}else{return"attribute: {"+b+"}, parent: <"+this.parent.name+">"}};XMLAttribute.prototype.isEqualNode=function(b){if(b.namespaceURI!==this.namespaceURI){return false}if(b.prefix!==this.prefix){return false}if(b.localName!==this.localName){return false}if(b.value!==this.value){return false}return true};return XMLAttribute}()}).call(this)},66789:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;S=J(4128);te=J(63527);b.exports=ee=function(b){extend(XMLCData,b);function XMLCData(b,J){XMLCData.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing CDATA text. "+this.debugInfo())}this.name="#cdata-section";this.type=S.CData;this.value=this.stringify.cdata(J)}XMLCData.prototype.clone=function(){return Object.create(this)};XMLCData.prototype.toString=function(b){return this.options.writer.cdata(this,this.options.writer.filterOptions(b))};return XMLCData}(te)}).call(this)},63527:function(b,S,J){(function(){var S,ee,extend=function(b,S){for(var J in S){if(te.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},te={}.hasOwnProperty;ee=J(98064);b.exports=S=function(b){extend(XMLCharacterData,b);function XMLCharacterData(b){XMLCharacterData.__super__.constructor.call(this,b);this.value=""}Object.defineProperty(XMLCharacterData.prototype,"data",{get:function(){return this.value},set:function(b){return this.value=b||""}});Object.defineProperty(XMLCharacterData.prototype,"length",{get:function(){return this.value.length}});Object.defineProperty(XMLCharacterData.prototype,"textContent",{get:function(){return this.value},set:function(b){return this.value=b||""}});XMLCharacterData.prototype.clone=function(){return Object.create(this)};XMLCharacterData.prototype.substringData=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.appendData=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.insertData=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.deleteData=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.replaceData=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.isEqualNode=function(b){if(!XMLCharacterData.__super__.isEqualNode.apply(this,arguments).isEqualNode(b)){return false}if(b.data!==this.data){return false}return true};return XMLCharacterData}(ee)}).call(this)},34593:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;S=J(4128);ee=J(63527);b.exports=te=function(b){extend(XMLComment,b);function XMLComment(b,J){XMLComment.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing comment text. "+this.debugInfo())}this.name="#comment";this.type=S.Comment;this.value=this.stringify.comment(J)}XMLComment.prototype.clone=function(){return Object.create(this)};XMLComment.prototype.toString=function(b){return this.options.writer.comment(this,this.options.writer.filterOptions(b))};return XMLComment}(ee)}).call(this)},64196:function(b,S,J){(function(){var S,ee,te;ee=J(57850);te=J(35132);b.exports=S=function(){function XMLDOMConfiguration(){var b;this.defaultParams={"canonical-form":false,"cdata-sections":false,comments:false,"datatype-normalization":false,"element-content-whitespace":true,entities:true,"error-handler":new ee,infoset:true,"validate-if-schema":false,namespaces:true,"namespace-declarations":true,"normalize-characters":false,"schema-location":"","schema-type":"","split-cdata-sections":true,validate:false,"well-formed":true};this.params=b=Object.create(this.defaultParams)}Object.defineProperty(XMLDOMConfiguration.prototype,"parameterNames",{get:function(){return new te(Object.keys(this.defaultParams))}});XMLDOMConfiguration.prototype.getParameter=function(b){if(this.params.hasOwnProperty(b)){return this.params[b]}else{return null}};XMLDOMConfiguration.prototype.canSetParameter=function(b,S){return true};XMLDOMConfiguration.prototype.setParameter=function(b,S){if(S!=null){return this.params[b]=S}else{return delete this.params[b]}};return XMLDOMConfiguration}()}).call(this)},57850:function(b){(function(){var S;b.exports=S=function(){function XMLDOMErrorHandler(){}XMLDOMErrorHandler.prototype.handleError=function(b){throw new Error(b)};return XMLDOMErrorHandler}()}).call(this)},99490:function(b){(function(){var S;b.exports=S=function(){function XMLDOMImplementation(){}XMLDOMImplementation.prototype.hasFeature=function(b,S){return true};XMLDOMImplementation.prototype.createDocumentType=function(b,S,J){throw new Error("This DOM method is not implemented.")};XMLDOMImplementation.prototype.createDocument=function(b,S,J){throw new Error("This DOM method is not implemented.")};XMLDOMImplementation.prototype.createHTMLDocument=function(b){throw new Error("This DOM method is not implemented.")};XMLDOMImplementation.prototype.getFeature=function(b,S){throw new Error("This DOM method is not implemented.")};return XMLDOMImplementation}()}).call(this)},35132:function(b){(function(){var S;b.exports=S=function(){function XMLDOMStringList(b){this.arr=b||[]}Object.defineProperty(XMLDOMStringList.prototype,"length",{get:function(){return this.arr.length}});XMLDOMStringList.prototype.item=function(b){return this.arr[b]||null};XMLDOMStringList.prototype.contains=function(b){return this.arr.indexOf(b)!==-1};return XMLDOMStringList}()}).call(this)},71066:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDTDAttList,b);function XMLDTDAttList(b,J,ee,te,re,ne){XMLDTDAttList.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(ee==null){throw new Error("Missing DTD attribute name. "+this.debugInfo(J))}if(!te){throw new Error("Missing DTD attribute type. "+this.debugInfo(J))}if(!re){throw new Error("Missing DTD attribute default. "+this.debugInfo(J))}if(re.indexOf("#")!==0){re="#"+re}if(!re.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)){throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(J))}if(ne&&!re.match(/^(#FIXED|#DEFAULT)$/)){throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(J))}this.elementName=this.stringify.name(J);this.type=S.AttributeDeclaration;this.attributeName=this.stringify.name(ee);this.attributeType=this.stringify.dtdAttType(te);if(ne){this.defaultValue=this.stringify.dtdAttDefault(ne)}this.defaultValueType=re}XMLDTDAttList.prototype.toString=function(b){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(b))};return XMLDTDAttList}(te)}).call(this)},23584:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDTDElement,b);function XMLDTDElement(b,J,ee){XMLDTDElement.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(!ee){ee="(#PCDATA)"}if(Array.isArray(ee)){ee="("+ee.join(",")+")"}this.name=this.stringify.name(J);this.type=S.ElementDeclaration;this.value=this.stringify.dtdElementValue(ee)}XMLDTDElement.prototype.toString=function(b){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(b))};return XMLDTDElement}(te)}).call(this)},9346:function(b,S,J){(function(){var S,ee,te,re,extend=function(b,S){for(var J in S){if(ne.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ne={}.hasOwnProperty;re=J(52629).isObject;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDTDEntity,b);function XMLDTDEntity(b,J,ee,te){XMLDTDEntity.__super__.constructor.call(this,b);if(ee==null){throw new Error("Missing DTD entity name. "+this.debugInfo(ee))}if(te==null){throw new Error("Missing DTD entity value. "+this.debugInfo(ee))}this.pe=!!J;this.name=this.stringify.name(ee);this.type=S.EntityDeclaration;if(!re(te)){this.value=this.stringify.dtdEntityValue(te);this.internal=true}else{if(!te.pubID&&!te.sysID){throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(ee))}if(te.pubID&&!te.sysID){throw new Error("System identifier is required for a public external entity. "+this.debugInfo(ee))}this.internal=false;if(te.pubID!=null){this.pubID=this.stringify.dtdPubID(te.pubID)}if(te.sysID!=null){this.sysID=this.stringify.dtdSysID(te.sysID)}if(te.nData!=null){this.nData=this.stringify.dtdNData(te.nData)}if(this.pe&&this.nData){throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(ee))}}}Object.defineProperty(XMLDTDEntity.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDTDEntity.prototype,"systemId",{get:function(){return this.sysID}});Object.defineProperty(XMLDTDEntity.prototype,"notationName",{get:function(){return this.nData||null}});Object.defineProperty(XMLDTDEntity.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(XMLDTDEntity.prototype,"xmlEncoding",{get:function(){return null}});Object.defineProperty(XMLDTDEntity.prototype,"xmlVersion",{get:function(){return null}});XMLDTDEntity.prototype.toString=function(b){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(b))};return XMLDTDEntity}(te)}).call(this)},30853:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDTDNotation,b);function XMLDTDNotation(b,J,ee){XMLDTDNotation.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing DTD notation name. "+this.debugInfo(J))}if(!ee.pubID&&!ee.sysID){throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(J))}this.name=this.stringify.name(J);this.type=S.NotationDeclaration;if(ee.pubID!=null){this.pubID=this.stringify.dtdPubID(ee.pubID)}if(ee.sysID!=null){this.sysID=this.stringify.dtdSysID(ee.sysID)}}Object.defineProperty(XMLDTDNotation.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDTDNotation.prototype,"systemId",{get:function(){return this.sysID}});XMLDTDNotation.prototype.toString=function(b){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(b))};return XMLDTDNotation}(te)}).call(this)},24972:function(b,S,J){(function(){var S,ee,te,re,extend=function(b,S){for(var J in S){if(ne.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ne={}.hasOwnProperty;re=J(52629).isObject;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDeclaration,b);function XMLDeclaration(b,J,ee,te){var ne;XMLDeclaration.__super__.constructor.call(this,b);if(re(J)){ne=J,J=ne.version,ee=ne.encoding,te=ne.standalone}if(!J){J="1.0"}this.type=S.Declaration;this.version=this.stringify.xmlVersion(J);if(ee!=null){this.encoding=this.stringify.xmlEncoding(ee)}if(te!=null){this.standalone=this.stringify.xmlStandalone(te)}}XMLDeclaration.prototype.toString=function(b){return this.options.writer.declaration(this,this.options.writer.filterOptions(b))};return XMLDeclaration}(te)}).call(this)},19025:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,extend=function(b,S){for(var J in S){if(ue.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ue={}.hasOwnProperty;ae=J(52629).isObject;se=J(98064);S=J(4128);ee=J(71066);re=J(9346);te=J(23584);ne=J(30853);oe=J(78339);b.exports=ie=function(b){extend(XMLDocType,b);function XMLDocType(b,J,ee){var te,re,ne,ie,oe,se;XMLDocType.__super__.constructor.call(this,b);this.type=S.DocType;if(b.children){ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];if(te.type===S.Element){this.name=te.name;break}}}this.documentObject=b;if(ae(J)){oe=J,J=oe.pubID,ee=oe.sysID}if(ee==null){se=[J,ee],ee=se[0],J=se[1]}if(J!=null){this.pubID=this.stringify.dtdPubID(J)}if(ee!=null){this.sysID=this.stringify.dtdSysID(ee)}}Object.defineProperty(XMLDocType.prototype,"entities",{get:function(){var b,J,ee,te,re;te={};re=this.children;for(J=0,ee=re.length;J<ee;J++){b=re[J];if(b.type===S.EntityDeclaration&&!b.pe){te[b.name]=b}}return new oe(te)}});Object.defineProperty(XMLDocType.prototype,"notations",{get:function(){var b,J,ee,te,re;te={};re=this.children;for(J=0,ee=re.length;J<ee;J++){b=re[J];if(b.type===S.NotationDeclaration){te[b.name]=b}}return new oe(te)}});Object.defineProperty(XMLDocType.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDocType.prototype,"systemId",{get:function(){return this.sysID}});Object.defineProperty(XMLDocType.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});XMLDocType.prototype.element=function(b,S){var J;J=new te(this,b,S);this.children.push(J);return this};XMLDocType.prototype.attList=function(b,S,J,te,re){var ne;ne=new ee(this,b,S,J,te,re);this.children.push(ne);return this};XMLDocType.prototype.entity=function(b,S){var J;J=new re(this,false,b,S);this.children.push(J);return this};XMLDocType.prototype.pEntity=function(b,S){var J;J=new re(this,true,b,S);this.children.push(J);return this};XMLDocType.prototype.notation=function(b,S){var J;J=new ne(this,b,S);this.children.push(J);return this};XMLDocType.prototype.toString=function(b){return this.options.writer.docType(this,this.options.writer.filterOptions(b))};XMLDocType.prototype.ele=function(b,S){return this.element(b,S)};XMLDocType.prototype.att=function(b,S,J,ee,te){return this.attList(b,S,J,ee,te)};XMLDocType.prototype.ent=function(b,S){return this.entity(b,S)};XMLDocType.prototype.pent=function(b,S){return this.pEntity(b,S)};XMLDocType.prototype.not=function(b,S){return this.notation(b,S)};XMLDocType.prototype.up=function(){return this.root()||this.documentObject};XMLDocType.prototype.isEqualNode=function(b){if(!XMLDocType.__super__.isEqualNode.apply(this,arguments).isEqualNode(b)){return false}if(b.name!==this.name){return false}if(b.publicId!==this.publicId){return false}if(b.systemId!==this.systemId){return false}return true};return XMLDocType}(se)}).call(this)},3315:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,extend=function(b,S){for(var J in S){if(ae.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ae={}.hasOwnProperty;se=J(52629).isPlainObject;te=J(99490);ee=J(64196);ne=J(98064);S=J(4128);oe=J(20916);ie=J(56939);b.exports=re=function(b){extend(XMLDocument,b);function XMLDocument(b){XMLDocument.__super__.constructor.call(this,null);this.name="#document";this.type=S.Document;this.documentURI=null;this.domConfig=new ee;b||(b={});if(!b.writer){b.writer=new ie}this.options=b;this.stringify=new oe(b)}Object.defineProperty(XMLDocument.prototype,"implementation",{value:new te});Object.defineProperty(XMLDocument.prototype,"doctype",{get:function(){var b,J,ee,te;te=this.children;for(J=0,ee=te.length;J<ee;J++){b=te[J];if(b.type===S.DocType){return b}}return null}});Object.defineProperty(XMLDocument.prototype,"documentElement",{get:function(){return this.rootObject||null}});Object.defineProperty(XMLDocument.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"strictErrorChecking",{get:function(){return false}});Object.defineProperty(XMLDocument.prototype,"xmlEncoding",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].encoding}else{return null}}});Object.defineProperty(XMLDocument.prototype,"xmlStandalone",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].standalone==="yes"}else{return false}}});Object.defineProperty(XMLDocument.prototype,"xmlVersion",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].version}else{return"1.0"}}});Object.defineProperty(XMLDocument.prototype,"URL",{get:function(){return this.documentURI}});Object.defineProperty(XMLDocument.prototype,"origin",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"compatMode",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"characterSet",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"contentType",{get:function(){return null}});XMLDocument.prototype.end=function(b){var S;S={};if(!b){b=this.options.writer}else if(se(b)){S=b;b=this.options.writer}return b.document(this,b.filterOptions(S))};XMLDocument.prototype.toString=function(b){return this.options.writer.document(this,this.options.writer.filterOptions(b))};XMLDocument.prototype.createElement=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createTextNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createComment=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createCDATASection=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createProcessingInstruction=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createAttribute=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createEntityReference=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.getElementsByTagName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.importNode=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createElementNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createAttributeNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.getElementsByTagNameNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.getElementById=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.adoptNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.renameNode=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.getElementsByClassName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createEvent=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createNodeIterator=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createTreeWalker=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};return XMLDocument}(ne)}).call(this)},11523:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge,ye,ve,Te,be,_e,Ee,Ae={}.hasOwnProperty;Ee=J(52629),be=Ee.isObject,Te=Ee.isFunction,_e=Ee.isPlainObject,ve=Ee.getValue;S=J(4128);le=J(3315);fe=J(37370);re=J(66789);ne=J(34593);he=J(10363);ye=J(28854);de=J(93234);ue=J(24972);ce=J(19025);ie=J(71066);se=J(9346);oe=J(23584);ae=J(30853);te=J(49525);ge=J(20916);me=J(56939);ee=J(58413);b.exports=pe=function(){function XMLDocumentCB(b,J,ee){var te;this.name="?xml";this.type=S.Document;b||(b={});te={};if(!b.writer){b.writer=new me}else if(_e(b.writer)){te=b.writer;b.writer=new me}this.options=b;this.writer=b.writer;this.writerOptions=this.writer.filterOptions(te);this.stringify=new ge(b);this.onDataCallback=J||function(){};this.onEndCallback=ee||function(){};this.currentNode=null;this.currentLevel=-1;this.openTags={};this.documentStarted=false;this.documentCompleted=false;this.root=null}XMLDocumentCB.prototype.createChildNode=function(b){var J,ee,te,re,ne,ie,oe,se;switch(b.type){case S.CData:this.cdata(b.value);break;case S.Comment:this.comment(b.value);break;case S.Element:te={};oe=b.attribs;for(ee in oe){if(!Ae.call(oe,ee))continue;J=oe[ee];te[ee]=J.value}this.node(b.name,te);break;case S.Dummy:this.dummy();break;case S.Raw:this.raw(b.value);break;case S.Text:this.text(b.value);break;case S.ProcessingInstruction:this.instruction(b.target,b.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+b.constructor.name)}se=b.children;for(ne=0,ie=se.length;ne<ie;ne++){re=se[ne];this.createChildNode(re);if(re.type===S.Element){this.up()}}return this};XMLDocumentCB.prototype.dummy=function(){return this};XMLDocumentCB.prototype.node=function(b,S,J){var ee;if(b==null){throw new Error("Missing node name.")}if(this.root&&this.currentLevel===-1){throw new Error("Document can only have one root node. "+this.debugInfo(b))}this.openCurrent();b=ve(b);if(S==null){S={}}S=ve(S);if(!be(S)){ee=[S,J],J=ee[0],S=ee[1]}this.currentNode=new fe(this,b,S);this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;if(J!=null){this.text(J)}return this};XMLDocumentCB.prototype.element=function(b,J,ee){var te,re,ne,ie,oe,se;if(this.currentNode&&this.currentNode.type===S.DocType){this.dtdElement.apply(this,arguments)}else{if(Array.isArray(b)||be(b)||Te(b)){ie=this.options.noValidation;this.options.noValidation=true;se=new le(this.options).element("TEMP_ROOT");se.element(b);this.options.noValidation=ie;oe=se.children;for(re=0,ne=oe.length;re<ne;re++){te=oe[re];this.createChildNode(te);if(te.type===S.Element){this.up()}}}else{this.node(b,J,ee)}}return this};XMLDocumentCB.prototype.attribute=function(b,S){var J,ee;if(!this.currentNode||this.currentNode.children){throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(b))}if(b!=null){b=ve(b)}if(be(b)){for(J in b){if(!Ae.call(b,J))continue;ee=b[J];this.attribute(J,ee)}}else{if(Te(S)){S=S.apply()}if(this.options.keepNullAttributes&&S==null){this.currentNode.attribs[b]=new te(this,b,"")}else if(S!=null){this.currentNode.attribs[b]=new te(this,b,S)}}return this};XMLDocumentCB.prototype.text=function(b){var S;this.openCurrent();S=new ye(this,b);this.onData(this.writer.text(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.cdata=function(b){var S;this.openCurrent();S=new re(this,b);this.onData(this.writer.cdata(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.comment=function(b){var S;this.openCurrent();S=new ne(this,b);this.onData(this.writer.comment(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.raw=function(b){var S;this.openCurrent();S=new he(this,b);this.onData(this.writer.raw(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.instruction=function(b,S){var J,ee,te,re,ne;this.openCurrent();if(b!=null){b=ve(b)}if(S!=null){S=ve(S)}if(Array.isArray(b)){for(J=0,re=b.length;J<re;J++){ee=b[J];this.instruction(ee)}}else if(be(b)){for(ee in b){if(!Ae.call(b,ee))continue;te=b[ee];this.instruction(ee,te)}}else{if(Te(S)){S=S.apply()}ne=new de(this,b,S);this.onData(this.writer.processingInstruction(ne,this.writerOptions,this.currentLevel+1),this.currentLevel+1)}return this};XMLDocumentCB.prototype.declaration=function(b,S,J){var ee;this.openCurrent();if(this.documentStarted){throw new Error("declaration() must be the first node.")}ee=new ue(this,b,S,J);this.onData(this.writer.declaration(ee,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.doctype=function(b,S,J){this.openCurrent();if(b==null){throw new Error("Missing root node name.")}if(this.root){throw new Error("dtd() must come before the root node.")}this.currentNode=new ce(this,S,J);this.currentNode.rootNodeName=b;this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;return this};XMLDocumentCB.prototype.dtdElement=function(b,S){var J;this.openCurrent();J=new oe(this,b,S);this.onData(this.writer.dtdElement(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.attList=function(b,S,J,ee,te){var re;this.openCurrent();re=new ie(this,b,S,J,ee,te);this.onData(this.writer.dtdAttList(re,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.entity=function(b,S){var J;this.openCurrent();J=new se(this,false,b,S);this.onData(this.writer.dtdEntity(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.pEntity=function(b,S){var J;this.openCurrent();J=new se(this,true,b,S);this.onData(this.writer.dtdEntity(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.notation=function(b,S){var J;this.openCurrent();J=new ae(this,b,S);this.onData(this.writer.dtdNotation(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.up=function(){if(this.currentLevel<0){throw new Error("The document node has no parent.")}if(this.currentNode){if(this.currentNode.children){this.closeNode(this.currentNode)}else{this.openNode(this.currentNode)}this.currentNode=null}else{this.closeNode(this.openTags[this.currentLevel])}delete this.openTags[this.currentLevel];this.currentLevel--;return this};XMLDocumentCB.prototype.end=function(){while(this.currentLevel>=0){this.up()}return this.onEnd()};XMLDocumentCB.prototype.openCurrent=function(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}};XMLDocumentCB.prototype.openNode=function(b){var J,te,re,ne;if(!b.isOpen){if(!this.root&&this.currentLevel===0&&b.type===S.Element){this.root=b}te="";if(b.type===S.Element){this.writerOptions.state=ee.OpenTag;te=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<"+b.name;ne=b.attribs;for(re in ne){if(!Ae.call(ne,re))continue;J=ne[re];te+=this.writer.attribute(J,this.writerOptions,this.currentLevel)}te+=(b.children?">":"/>")+this.writer.endline(b,this.writerOptions,this.currentLevel);this.writerOptions.state=ee.InsideTag}else{this.writerOptions.state=ee.OpenTag;te=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+b.rootNodeName;if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}if(b.children){te+=" [";this.writerOptions.state=ee.InsideTag}else{this.writerOptions.state=ee.CloseTag;te+=">"}te+=this.writer.endline(b,this.writerOptions,this.currentLevel)}this.onData(te,this.currentLevel);return b.isOpen=true}};XMLDocumentCB.prototype.closeNode=function(b){var J;if(!b.isClosed){J="";this.writerOptions.state=ee.CloseTag;if(b.type===S.Element){J=this.writer.indent(b,this.writerOptions,this.currentLevel)+"</"+b.name+">"+this.writer.endline(b,this.writerOptions,this.currentLevel)}else{J=this.writer.indent(b,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(b,this.writerOptions,this.currentLevel)}this.writerOptions.state=ee.None;this.onData(J,this.currentLevel);return b.isClosed=true}};XMLDocumentCB.prototype.onData=function(b,S){this.documentStarted=true;return this.onDataCallback(b,S+1)};XMLDocumentCB.prototype.onEnd=function(){this.documentCompleted=true;return this.onEndCallback()};XMLDocumentCB.prototype.debugInfo=function(b){if(b==null){return""}else{return"node: <"+b+">"}};XMLDocumentCB.prototype.ele=function(){return this.element.apply(this,arguments)};XMLDocumentCB.prototype.nod=function(b,S,J){return this.node(b,S,J)};XMLDocumentCB.prototype.txt=function(b){return this.text(b)};XMLDocumentCB.prototype.dat=function(b){return this.cdata(b)};XMLDocumentCB.prototype.com=function(b){return this.comment(b)};XMLDocumentCB.prototype.ins=function(b,S){return this.instruction(b,S)};XMLDocumentCB.prototype.dec=function(b,S,J){return this.declaration(b,S,J)};XMLDocumentCB.prototype.dtd=function(b,S,J){return this.doctype(b,S,J)};XMLDocumentCB.prototype.e=function(b,S,J){return this.element(b,S,J)};XMLDocumentCB.prototype.n=function(b,S,J){return this.node(b,S,J)};XMLDocumentCB.prototype.t=function(b){return this.text(b)};XMLDocumentCB.prototype.d=function(b){return this.cdata(b)};XMLDocumentCB.prototype.c=function(b){return this.comment(b)};XMLDocumentCB.prototype.r=function(b){return this.raw(b)};XMLDocumentCB.prototype.i=function(b,S){return this.instruction(b,S)};XMLDocumentCB.prototype.att=function(){if(this.currentNode&&this.currentNode.type===S.DocType){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.a=function(){if(this.currentNode&&this.currentNode.type===S.DocType){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.ent=function(b,S){return this.entity(b,S)};XMLDocumentCB.prototype.pent=function(b,S){return this.pEntity(b,S)};XMLDocumentCB.prototype.not=function(b,S){return this.notation(b,S)};return XMLDocumentCB}()}).call(this)},3288:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDummy,b);function XMLDummy(b){XMLDummy.__super__.constructor.call(this,b);this.type=S.Dummy}XMLDummy.prototype.clone=function(){return Object.create(this)};XMLDummy.prototype.toString=function(b){return""};return XMLDummy}(te)}).call(this)},37370:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,extend=function(b,S){for(var J in S){if(ue.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ue={}.hasOwnProperty;ae=J(52629),se=ae.isObject,oe=ae.isFunction,ie=ae.getValue;ne=J(98064);S=J(4128);ee=J(49525);re=J(78339);b.exports=te=function(b){extend(XMLElement,b);function XMLElement(b,J,ee){var te,re,ne,ie;XMLElement.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing element name. "+this.debugInfo())}this.name=this.stringify.name(J);this.type=S.Element;this.attribs={};this.schemaTypeInfo=null;if(ee!=null){this.attribute(ee)}if(b.type===S.Document){this.isRoot=true;this.documentObject=b;b.rootObject=this;if(b.children){ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];if(te.type===S.DocType){te.name=this.name;break}}}}}Object.defineProperty(XMLElement.prototype,"tagName",{get:function(){return this.name}});Object.defineProperty(XMLElement.prototype,"namespaceURI",{get:function(){return""}});Object.defineProperty(XMLElement.prototype,"prefix",{get:function(){return""}});Object.defineProperty(XMLElement.prototype,"localName",{get:function(){return this.name}});Object.defineProperty(XMLElement.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"attributes",{get:function(){if(!this.attributeMap||!this.attributeMap.nodes){this.attributeMap=new re(this.attribs)}return this.attributeMap}});XMLElement.prototype.clone=function(){var b,S,J,ee;J=Object.create(this);if(J.isRoot){J.documentObject=null}J.attribs={};ee=this.attribs;for(S in ee){if(!ue.call(ee,S))continue;b=ee[S];J.attribs[S]=b.clone()}J.children=[];this.children.forEach((function(b){var S;S=b.clone();S.parent=J;return J.children.push(S)}));return J};XMLElement.prototype.attribute=function(b,S){var J,te;if(b!=null){b=ie(b)}if(se(b)){for(J in b){if(!ue.call(b,J))continue;te=b[J];this.attribute(J,te)}}else{if(oe(S)){S=S.apply()}if(this.options.keepNullAttributes&&S==null){this.attribs[b]=new ee(this,b,"")}else if(S!=null){this.attribs[b]=new ee(this,b,S)}}return this};XMLElement.prototype.removeAttribute=function(b){var S,J,ee;if(b==null){throw new Error("Missing attribute name. "+this.debugInfo())}b=ie(b);if(Array.isArray(b)){for(J=0,ee=b.length;J<ee;J++){S=b[J];delete this.attribs[S]}}else{delete this.attribs[b]}return this};XMLElement.prototype.toString=function(b){return this.options.writer.element(this,this.options.writer.filterOptions(b))};XMLElement.prototype.att=function(b,S){return this.attribute(b,S)};XMLElement.prototype.a=function(b,S){return this.attribute(b,S)};XMLElement.prototype.getAttribute=function(b){if(this.attribs.hasOwnProperty(b)){return this.attribs[b].value}else{return null}};XMLElement.prototype.setAttribute=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getAttributeNode=function(b){if(this.attribs.hasOwnProperty(b)){return this.attribs[b]}else{return null}};XMLElement.prototype.setAttributeNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.removeAttributeNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getElementsByTagName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getAttributeNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.setAttributeNS=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.removeAttributeNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getAttributeNodeNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.setAttributeNodeNS=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getElementsByTagNameNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.hasAttribute=function(b){return this.attribs.hasOwnProperty(b)};XMLElement.prototype.hasAttributeNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.setIdAttribute=function(b,S){if(this.attribs.hasOwnProperty(b)){return this.attribs[b].isId}else{return S}};XMLElement.prototype.setIdAttributeNS=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.setIdAttributeNode=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getElementsByTagName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getElementsByTagNameNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getElementsByClassName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.isEqualNode=function(b){var S,J,ee;if(!XMLElement.__super__.isEqualNode.apply(this,arguments).isEqualNode(b)){return false}if(b.namespaceURI!==this.namespaceURI){return false}if(b.prefix!==this.prefix){return false}if(b.localName!==this.localName){return false}if(b.attribs.length!==this.attribs.length){return false}for(S=J=0,ee=this.attribs.length-1;0<=ee?J<=ee:J>=ee;S=0<=ee?++J:--J){if(!this.attribs[S].isEqualNode(b.attribs[S])){return false}}return true};return XMLElement}(ne)}).call(this)},78339:function(b){(function(){var S;b.exports=S=function(){function XMLNamedNodeMap(b){this.nodes=b}Object.defineProperty(XMLNamedNodeMap.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}});XMLNamedNodeMap.prototype.clone=function(){return this.nodes=null};XMLNamedNodeMap.prototype.getNamedItem=function(b){return this.nodes[b]};XMLNamedNodeMap.prototype.setNamedItem=function(b){var S;S=this.nodes[b.nodeName];this.nodes[b.nodeName]=b;return S||null};XMLNamedNodeMap.prototype.removeNamedItem=function(b){var S;S=this.nodes[b];delete this.nodes[b];return S||null};XMLNamedNodeMap.prototype.item=function(b){return this.nodes[Object.keys(this.nodes)[b]]||null};XMLNamedNodeMap.prototype.getNamedItemNS=function(b,S){throw new Error("This DOM method is not implemented.")};XMLNamedNodeMap.prototype.setNamedItemNS=function(b){throw new Error("This DOM method is not implemented.")};XMLNamedNodeMap.prototype.removeNamedItemNS=function(b,S){throw new Error("This DOM method is not implemented.")};return XMLNamedNodeMap}()}).call(this)},98064:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge,ye,ve={}.hasOwnProperty;ye=J(52629),ge=ye.isObject,me=ye.isFunction,he=ye.isEmpty,de=ye.getValue;se=null;te=null;re=null;ne=null;ie=null;pe=null;fe=null;le=null;oe=null;ee=null;ce=null;ae=null;S=null;b.exports=ue=function(){function XMLNode(b){this.parent=b;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}this.value=null;this.children=[];this.baseURI=null;if(!se){se=J(37370);te=J(66789);re=J(34593);ne=J(24972);ie=J(19025);pe=J(10363);fe=J(28854);le=J(93234);oe=J(3288);ee=J(4128);ce=J(57209);ae=J(78339);S=J(22346)}}Object.defineProperty(XMLNode.prototype,"nodeName",{get:function(){return this.name}});Object.defineProperty(XMLNode.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(XMLNode.prototype,"nodeValue",{get:function(){return this.value}});Object.defineProperty(XMLNode.prototype,"parentNode",{get:function(){return this.parent}});Object.defineProperty(XMLNode.prototype,"childNodes",{get:function(){if(!this.childNodeList||!this.childNodeList.nodes){this.childNodeList=new ce(this.children)}return this.childNodeList}});Object.defineProperty(XMLNode.prototype,"firstChild",{get:function(){return this.children[0]||null}});Object.defineProperty(XMLNode.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}});Object.defineProperty(XMLNode.prototype,"previousSibling",{get:function(){var b;b=this.parent.children.indexOf(this);return this.parent.children[b-1]||null}});Object.defineProperty(XMLNode.prototype,"nextSibling",{get:function(){var b;b=this.parent.children.indexOf(this);return this.parent.children[b+1]||null}});Object.defineProperty(XMLNode.prototype,"ownerDocument",{get:function(){return this.document()||null}});Object.defineProperty(XMLNode.prototype,"textContent",{get:function(){var b,S,J,te,re;if(this.nodeType===ee.Element||this.nodeType===ee.DocumentFragment){re="";te=this.children;for(S=0,J=te.length;S<J;S++){b=te[S];if(b.textContent){re+=b.textContent}}return re}else{return null}},set:function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}});XMLNode.prototype.setParent=function(b){var S,J,ee,te,re;this.parent=b;if(b){this.options=b.options;this.stringify=b.stringify}te=this.children;re=[];for(J=0,ee=te.length;J<ee;J++){S=te[J];re.push(S.setParent(this))}return re};XMLNode.prototype.element=function(b,S,J){var ee,te,re,ne,ie,oe,se,ae,ue,ce,le;oe=null;if(S===null&&J==null){ue=[{},null],S=ue[0],J=ue[1]}if(S==null){S={}}S=de(S);if(!ge(S)){ce=[S,J],J=ce[0],S=ce[1]}if(b!=null){b=de(b)}if(Array.isArray(b)){for(re=0,se=b.length;re<se;re++){te=b[re];oe=this.element(te)}}else if(me(b)){oe=this.element(b.apply())}else if(ge(b)){for(ie in b){if(!ve.call(b,ie))continue;le=b[ie];if(me(le)){le=le.apply()}if(!this.options.ignoreDecorators&&this.stringify.convertAttKey&&ie.indexOf(this.stringify.convertAttKey)===0){oe=this.attribute(ie.substr(this.stringify.convertAttKey.length),le)}else if(!this.options.separateArrayItems&&Array.isArray(le)&&he(le)){oe=this.dummy()}else if(ge(le)&&he(le)){oe=this.element(ie)}else if(!this.options.keepNullNodes&&le==null){oe=this.dummy()}else if(!this.options.separateArrayItems&&Array.isArray(le)){for(ne=0,ae=le.length;ne<ae;ne++){te=le[ne];ee={};ee[ie]=te;oe=this.element(ee)}}else if(ge(le)){if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ie.indexOf(this.stringify.convertTextKey)===0){oe=this.element(le)}else{oe=this.element(ie);oe.element(le)}}else{oe=this.element(ie,le)}}}else if(!this.options.keepNullNodes&&J===null){oe=this.dummy()}else{if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&b.indexOf(this.stringify.convertTextKey)===0){oe=this.text(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&b.indexOf(this.stringify.convertCDataKey)===0){oe=this.cdata(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&b.indexOf(this.stringify.convertCommentKey)===0){oe=this.comment(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertRawKey&&b.indexOf(this.stringify.convertRawKey)===0){oe=this.raw(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertPIKey&&b.indexOf(this.stringify.convertPIKey)===0){oe=this.instruction(b.substr(this.stringify.convertPIKey.length),J)}else{oe=this.node(b,S,J)}}if(oe==null){throw new Error("Could not create any elements with: "+b+". "+this.debugInfo())}return oe};XMLNode.prototype.insertBefore=function(b,S,J){var ee,te,re,ne,ie;if(b!=null?b.type:void 0){re=b;ne=S;re.setParent(this);if(ne){te=children.indexOf(ne);ie=children.splice(te);children.push(re);Array.prototype.push.apply(children,ie)}else{children.push(re)}return re}else{if(this.isRoot){throw new Error("Cannot insert elements at root level. "+this.debugInfo(b))}te=this.parent.children.indexOf(this);ie=this.parent.children.splice(te);ee=this.parent.element(b,S,J);Array.prototype.push.apply(this.parent.children,ie);return ee}};XMLNode.prototype.insertAfter=function(b,S,J){var ee,te,re;if(this.isRoot){throw new Error("Cannot insert elements at root level. "+this.debugInfo(b))}te=this.parent.children.indexOf(this);re=this.parent.children.splice(te+1);ee=this.parent.element(b,S,J);Array.prototype.push.apply(this.parent.children,re);return ee};XMLNode.prototype.remove=function(){var b,S;if(this.isRoot){throw new Error("Cannot remove the root element. "+this.debugInfo())}b=this.parent.children.indexOf(this);[].splice.apply(this.parent.children,[b,b-b+1].concat(S=[])),S;return this.parent};XMLNode.prototype.node=function(b,S,J){var ee,te;if(b!=null){b=de(b)}S||(S={});S=de(S);if(!ge(S)){te=[S,J],J=te[0],S=te[1]}ee=new se(this,b,S);if(J!=null){ee.text(J)}this.children.push(ee);return ee};XMLNode.prototype.text=function(b){var S;if(ge(b)){this.element(b)}S=new fe(this,b);this.children.push(S);return this};XMLNode.prototype.cdata=function(b){var S;S=new te(this,b);this.children.push(S);return this};XMLNode.prototype.comment=function(b){var S;S=new re(this,b);this.children.push(S);return this};XMLNode.prototype.commentBefore=function(b){var S,J,ee;J=this.parent.children.indexOf(this);ee=this.parent.children.splice(J);S=this.parent.comment(b);Array.prototype.push.apply(this.parent.children,ee);return this};XMLNode.prototype.commentAfter=function(b){var S,J,ee;J=this.parent.children.indexOf(this);ee=this.parent.children.splice(J+1);S=this.parent.comment(b);Array.prototype.push.apply(this.parent.children,ee);return this};XMLNode.prototype.raw=function(b){var S;S=new pe(this,b);this.children.push(S);return this};XMLNode.prototype.dummy=function(){var b;b=new oe(this);return b};XMLNode.prototype.instruction=function(b,S){var J,ee,te,re,ne;if(b!=null){b=de(b)}if(S!=null){S=de(S)}if(Array.isArray(b)){for(re=0,ne=b.length;re<ne;re++){J=b[re];this.instruction(J)}}else if(ge(b)){for(J in b){if(!ve.call(b,J))continue;ee=b[J];this.instruction(J,ee)}}else{if(me(S)){S=S.apply()}te=new le(this,b,S);this.children.push(te)}return this};XMLNode.prototype.instructionBefore=function(b,S){var J,ee,te;ee=this.parent.children.indexOf(this);te=this.parent.children.splice(ee);J=this.parent.instruction(b,S);Array.prototype.push.apply(this.parent.children,te);return this};XMLNode.prototype.instructionAfter=function(b,S){var J,ee,te;ee=this.parent.children.indexOf(this);te=this.parent.children.splice(ee+1);J=this.parent.instruction(b,S);Array.prototype.push.apply(this.parent.children,te);return this};XMLNode.prototype.declaration=function(b,S,J){var te,re;te=this.document();re=new ne(te,b,S,J);if(te.children.length===0){te.children.unshift(re)}else if(te.children[0].type===ee.Declaration){te.children[0]=re}else{te.children.unshift(re)}return te.root()||te};XMLNode.prototype.dtd=function(b,S){var J,te,re,ne,oe,se,ae,ue,ce,le;te=this.document();re=new ie(te,b,S);ce=te.children;for(ne=oe=0,ae=ce.length;oe<ae;ne=++oe){J=ce[ne];if(J.type===ee.DocType){te.children[ne]=re;return re}}le=te.children;for(ne=se=0,ue=le.length;se<ue;ne=++se){J=le[ne];if(J.isRoot){te.children.splice(ne,0,re);return re}}te.children.push(re);return re};XMLNode.prototype.up=function(){if(this.isRoot){throw new Error("The root node has no parent. Use doc() if you need to get the document object.")}return this.parent};XMLNode.prototype.root=function(){var b;b=this;while(b){if(b.type===ee.Document){return b.rootObject}else if(b.isRoot){return b}else{b=b.parent}}};XMLNode.prototype.document=function(){var b;b=this;while(b){if(b.type===ee.Document){return b}else{b=b.parent}}};XMLNode.prototype.end=function(b){return this.document().end(b)};XMLNode.prototype.prev=function(){var b;b=this.parent.children.indexOf(this);if(b<1){throw new Error("Already at the first node. "+this.debugInfo())}return this.parent.children[b-1]};XMLNode.prototype.next=function(){var b;b=this.parent.children.indexOf(this);if(b===-1||b===this.parent.children.length-1){throw new Error("Already at the last node. "+this.debugInfo())}return this.parent.children[b+1]};XMLNode.prototype.importDocument=function(b){var S;S=b.root().clone();S.parent=this;S.isRoot=false;this.children.push(S);return this};XMLNode.prototype.debugInfo=function(b){var S,J;b=b||this.name;if(b==null&&!((S=this.parent)!=null?S.name:void 0)){return""}else if(b==null){return"parent: <"+this.parent.name+">"}else if(!((J=this.parent)!=null?J.name:void 0)){return"node: <"+b+">"}else{return"node: <"+b+">, parent: <"+this.parent.name+">"}};XMLNode.prototype.ele=function(b,S,J){return this.element(b,S,J)};XMLNode.prototype.nod=function(b,S,J){return this.node(b,S,J)};XMLNode.prototype.txt=function(b){return this.text(b)};XMLNode.prototype.dat=function(b){return this.cdata(b)};XMLNode.prototype.com=function(b){return this.comment(b)};XMLNode.prototype.ins=function(b,S){return this.instruction(b,S)};XMLNode.prototype.doc=function(){return this.document()};XMLNode.prototype.dec=function(b,S,J){return this.declaration(b,S,J)};XMLNode.prototype.e=function(b,S,J){return this.element(b,S,J)};XMLNode.prototype.n=function(b,S,J){return this.node(b,S,J)};XMLNode.prototype.t=function(b){return this.text(b)};XMLNode.prototype.d=function(b){return this.cdata(b)};XMLNode.prototype.c=function(b){return this.comment(b)};XMLNode.prototype.r=function(b){return this.raw(b)};XMLNode.prototype.i=function(b,S){return this.instruction(b,S)};XMLNode.prototype.u=function(){return this.up()};XMLNode.prototype.importXMLBuilder=function(b){return this.importDocument(b)};XMLNode.prototype.replaceChild=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.removeChild=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.appendChild=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.hasChildNodes=function(){return this.children.length!==0};XMLNode.prototype.cloneNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.isSupported=function(b,S){return true};XMLNode.prototype.hasAttributes=function(){return this.attribs.length!==0};XMLNode.prototype.compareDocumentPosition=function(b){var J,ee;J=this;if(J===b){return 0}else if(this.document()!==b.document()){ee=S.Disconnected|S.ImplementationSpecific;if(Math.random()<.5){ee|=S.Preceding}else{ee|=S.Following}return ee}else if(J.isAncestor(b)){return S.Contains|S.Preceding}else if(J.isDescendant(b)){return S.Contains|S.Following}else if(J.isPreceding(b)){return S.Preceding}else{return S.Following}};XMLNode.prototype.isSameNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.lookupPrefix=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.isDefaultNamespace=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.lookupNamespaceURI=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.isEqualNode=function(b){var S,J,ee;if(b.nodeType!==this.nodeType){return false}if(b.children.length!==this.children.length){return false}for(S=J=0,ee=this.children.length-1;0<=ee?J<=ee:J>=ee;S=0<=ee?++J:--J){if(!this.children[S].isEqualNode(b.children[S])){return false}}return true};XMLNode.prototype.getFeature=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.setUserData=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.getUserData=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.contains=function(b){if(!b){return false}return b===this||this.isDescendant(b)};XMLNode.prototype.isDescendant=function(b){var S,J,ee,te,re;re=this.children;for(ee=0,te=re.length;ee<te;ee++){S=re[ee];if(b===S){return true}J=S.isDescendant(b);if(J){return true}}return false};XMLNode.prototype.isAncestor=function(b){return b.isDescendant(this)};XMLNode.prototype.isPreceding=function(b){var S,J;S=this.treePosition(b);J=this.treePosition(this);if(S===-1||J===-1){return false}else{return S<J}};XMLNode.prototype.isFollowing=function(b){var S,J;S=this.treePosition(b);J=this.treePosition(this);if(S===-1||J===-1){return false}else{return S>J}};XMLNode.prototype.treePosition=function(b){var S,J;J=0;S=false;this.foreachTreeNode(this.document(),(function(ee){J++;if(!S&&ee===b){return S=true}}));if(S){return J}else{return-1}};XMLNode.prototype.foreachTreeNode=function(b,S){var J,ee,te,re,ne;b||(b=this.document());re=b.children;for(ee=0,te=re.length;ee<te;ee++){J=re[ee];if(ne=S(J)){return ne}else{ne=this.foreachTreeNode(J,S);if(ne){return ne}}}};return XMLNode}()}).call(this)},57209:function(b){(function(){var S;b.exports=S=function(){function XMLNodeList(b){this.nodes=b}Object.defineProperty(XMLNodeList.prototype,"length",{get:function(){return this.nodes.length||0}});XMLNodeList.prototype.clone=function(){return this.nodes=null};XMLNodeList.prototype.item=function(b){return this.nodes[b]||null};return XMLNodeList}()}).call(this)},93234:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;S=J(4128);ee=J(63527);b.exports=te=function(b){extend(XMLProcessingInstruction,b);function XMLProcessingInstruction(b,J,ee){XMLProcessingInstruction.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing instruction target. "+this.debugInfo())}this.type=S.ProcessingInstruction;this.target=this.stringify.insTarget(J);this.name=this.target;if(ee){this.value=this.stringify.insValue(ee)}}XMLProcessingInstruction.prototype.clone=function(){return Object.create(this)};XMLProcessingInstruction.prototype.toString=function(b){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(b))};XMLProcessingInstruction.prototype.isEqualNode=function(b){if(!XMLProcessingInstruction.__super__.isEqualNode.apply(this,arguments).isEqualNode(b)){return false}if(b.target!==this.target){return false}return true};return XMLProcessingInstruction}(ee)}).call(this)},10363:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;S=J(4128);ee=J(98064);b.exports=te=function(b){extend(XMLRaw,b);function XMLRaw(b,J){XMLRaw.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing raw text. "+this.debugInfo())}this.type=S.Raw;this.value=this.stringify.raw(J)}XMLRaw.prototype.clone=function(){return Object.create(this)};XMLRaw.prototype.toString=function(b){return this.options.writer.raw(this,this.options.writer.filterOptions(b))};return XMLRaw}(ee)}).call(this)},30359:function(b,S,J){(function(){var S,ee,te,re,extend=function(b,S){for(var J in S){if(ne.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ne={}.hasOwnProperty;S=J(4128);re=J(8126);ee=J(58413);b.exports=te=function(b){extend(XMLStreamWriter,b);function XMLStreamWriter(b,S){this.stream=b;XMLStreamWriter.__super__.constructor.call(this,S)}XMLStreamWriter.prototype.endline=function(b,S,J){if(b.isLastRootNode&&S.state===ee.CloseTag){return""}else{return XMLStreamWriter.__super__.endline.call(this,b,S,J)}};XMLStreamWriter.prototype.document=function(b,S){var J,ee,te,re,ne,ie,oe,se,ae;oe=b.children;for(ee=te=0,ne=oe.length;te<ne;ee=++te){J=oe[ee];J.isLastRootNode=ee===b.children.length-1}S=this.filterOptions(S);se=b.children;ae=[];for(re=0,ie=se.length;re<ie;re++){J=se[re];ae.push(this.writeChildNode(J,S,0))}return ae};XMLStreamWriter.prototype.attribute=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.attribute.call(this,b,S,J))};XMLStreamWriter.prototype.cdata=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.cdata.call(this,b,S,J))};XMLStreamWriter.prototype.comment=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.comment.call(this,b,S,J))};XMLStreamWriter.prototype.declaration=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.declaration.call(this,b,S,J))};XMLStreamWriter.prototype.docType=function(b,S,J){var te,re,ne,ie;J||(J=0);this.openNode(b,S,J);S.state=ee.OpenTag;this.stream.write(this.indent(b,S,J));this.stream.write("<!DOCTYPE "+b.root().name);if(b.pubID&&b.sysID){this.stream.write(' PUBLIC "'+b.pubID+'" "'+b.sysID+'"')}else if(b.sysID){this.stream.write(' SYSTEM "'+b.sysID+'"')}if(b.children.length>0){this.stream.write(" [");this.stream.write(this.endline(b,S,J));S.state=ee.InsideTag;ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];this.writeChildNode(te,S,J+1)}S.state=ee.CloseTag;this.stream.write("]")}S.state=ee.CloseTag;this.stream.write(S.spaceBeforeSlash+">");this.stream.write(this.endline(b,S,J));S.state=ee.None;return this.closeNode(b,S,J)};XMLStreamWriter.prototype.element=function(b,J,te){var re,ie,oe,se,ae,ue,ce,le,pe,fe;te||(te=0);this.openNode(b,J,te);J.state=ee.OpenTag;this.stream.write(this.indent(b,J,te)+"<"+b.name);pe=b.attribs;for(ce in pe){if(!ne.call(pe,ce))continue;re=pe[ce];this.attribute(re,J,te)}oe=b.children.length;se=oe===0?null:b.children[0];if(oe===0||b.children.every((function(b){return(b.type===S.Text||b.type===S.Raw)&&b.value===""}))){if(J.allowEmpty){this.stream.write(">");J.state=ee.CloseTag;this.stream.write("</"+b.name+">")}else{J.state=ee.CloseTag;this.stream.write(J.spaceBeforeSlash+"/>")}}else if(J.pretty&&oe===1&&(se.type===S.Text||se.type===S.Raw)&&se.value!=null){this.stream.write(">");J.state=ee.InsideTag;J.suppressPrettyCount++;le=true;this.writeChildNode(se,J,te+1);J.suppressPrettyCount--;le=false;J.state=ee.CloseTag;this.stream.write("</"+b.name+">")}else{this.stream.write(">"+this.endline(b,J,te));J.state=ee.InsideTag;fe=b.children;for(ae=0,ue=fe.length;ae<ue;ae++){ie=fe[ae];this.writeChildNode(ie,J,te+1)}J.state=ee.CloseTag;this.stream.write(this.indent(b,J,te)+"</"+b.name+">")}this.stream.write(this.endline(b,J,te));J.state=ee.None;return this.closeNode(b,J,te)};XMLStreamWriter.prototype.processingInstruction=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.processingInstruction.call(this,b,S,J))};XMLStreamWriter.prototype.raw=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.raw.call(this,b,S,J))};XMLStreamWriter.prototype.text=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.text.call(this,b,S,J))};XMLStreamWriter.prototype.dtdAttList=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.dtdAttList.call(this,b,S,J))};XMLStreamWriter.prototype.dtdElement=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.dtdElement.call(this,b,S,J))};XMLStreamWriter.prototype.dtdEntity=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.dtdEntity.call(this,b,S,J))};XMLStreamWriter.prototype.dtdNotation=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.dtdNotation.call(this,b,S,J))};return XMLStreamWriter}(re)}).call(this)},56939:function(b,S,J){(function(){var S,ee,extend=function(b,S){for(var J in S){if(te.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},te={}.hasOwnProperty;ee=J(8126);b.exports=S=function(b){extend(XMLStringWriter,b);function XMLStringWriter(b){XMLStringWriter.__super__.constructor.call(this,b)}XMLStringWriter.prototype.document=function(b,S){var J,ee,te,re,ne;S=this.filterOptions(S);re="";ne=b.children;for(ee=0,te=ne.length;ee<te;ee++){J=ne[ee];re+=this.writeChildNode(J,S,0)}if(S.pretty&&re.slice(-S.newline.length)===S.newline){re=re.slice(0,-S.newline.length)}return re};return XMLStringWriter}(ee)}).call(this)},20916:function(b){(function(){var S,bind=function(b,S){return function(){return b.apply(S,arguments)}},J={}.hasOwnProperty;b.exports=S=function(){function XMLStringifier(b){this.assertLegalName=bind(this.assertLegalName,this);this.assertLegalChar=bind(this.assertLegalChar,this);var S,ee,te;b||(b={});this.options=b;if(!this.options.version){this.options.version="1.0"}ee=b.stringify||{};for(S in ee){if(!J.call(ee,S))continue;te=ee[S];this[S]=te}}XMLStringifier.prototype.name=function(b){if(this.options.noValidation){return b}return this.assertLegalName(""+b||"")};XMLStringifier.prototype.text=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(this.textEscape(""+b||""))};XMLStringifier.prototype.cdata=function(b){if(this.options.noValidation){return b}b=""+b||"";b=b.replace("]]>","]]]]><![CDATA[>");return this.assertLegalChar(b)};XMLStringifier.prototype.comment=function(b){if(this.options.noValidation){return b}b=""+b||"";if(b.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+b)}return this.assertLegalChar(b)};XMLStringifier.prototype.raw=function(b){if(this.options.noValidation){return b}return""+b||""};XMLStringifier.prototype.attValue=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(this.attEscape(b=""+b||""))};XMLStringifier.prototype.insTarget=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.insValue=function(b){if(this.options.noValidation){return b}b=""+b||"";if(b.match(/\?>/)){throw new Error("Invalid processing instruction value: "+b)}return this.assertLegalChar(b)};XMLStringifier.prototype.xmlVersion=function(b){if(this.options.noValidation){return b}b=""+b||"";if(!b.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+b)}return b};XMLStringifier.prototype.xmlEncoding=function(b){if(this.options.noValidation){return b}b=""+b||"";if(!b.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+b)}return this.assertLegalChar(b)};XMLStringifier.prototype.xmlStandalone=function(b){if(this.options.noValidation){return b}if(b){return"yes"}else{return"no"}};XMLStringifier.prototype.dtdPubID=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdSysID=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdElementValue=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdAttType=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdAttDefault=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdEntityValue=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdNData=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.convertAttKey="@";XMLStringifier.prototype.convertPIKey="?";XMLStringifier.prototype.convertTextKey="#text";XMLStringifier.prototype.convertCDataKey="#cdata";XMLStringifier.prototype.convertCommentKey="#comment";XMLStringifier.prototype.convertRawKey="#raw";XMLStringifier.prototype.assertLegalChar=function(b){var S,J;if(this.options.noValidation){return b}S="";if(this.options.version==="1.0"){S=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(J=b.match(S)){throw new Error("Invalid character in string: "+b+" at index "+J.index)}}else if(this.options.version==="1.1"){S=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(J=b.match(S)){throw new Error("Invalid character in string: "+b+" at index "+J.index)}}return b};XMLStringifier.prototype.assertLegalName=function(b){var S;if(this.options.noValidation){return b}this.assertLegalChar(b);S=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/;if(!b.match(S)){throw new Error("Invalid character in name")}return b};XMLStringifier.prototype.textEscape=function(b){var S;if(this.options.noValidation){return b}S=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return b.replace(S,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")};XMLStringifier.prototype.attEscape=function(b){var S;if(this.options.noValidation){return b}S=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return b.replace(S,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")};return XMLStringifier}()}).call(this)},28854:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;S=J(4128);ee=J(63527);b.exports=te=function(b){extend(XMLText,b);function XMLText(b,J){XMLText.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing element text. "+this.debugInfo())}this.name="#text";this.type=S.Text;this.value=this.stringify.text(J)}Object.defineProperty(XMLText.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLText.prototype,"wholeText",{get:function(){var b,S,J;J="";S=this.previousSibling;while(S){J=S.data+J;S=S.previousSibling}J+=this.data;b=this.nextSibling;while(b){J=J+b.data;b=b.nextSibling}return J}});XMLText.prototype.clone=function(){return Object.create(this)};XMLText.prototype.toString=function(b){return this.options.writer.text(this,this.options.writer.filterOptions(b))};XMLText.prototype.splitText=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLText.prototype.replaceWholeText=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};return XMLText}(ee)}).call(this)},8126:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge={}.hasOwnProperty;me=J(52629).assign;S=J(4128);ae=J(24972);ue=J(19025);te=J(66789);re=J(34593);le=J(37370);fe=J(10363);de=J(28854);pe=J(93234);ce=J(3288);ne=J(71066);ie=J(23584);oe=J(9346);se=J(30853);ee=J(58413);b.exports=he=function(){function XMLWriterBase(b){var S,J,ee;b||(b={});this.options=b;J=b.writer||{};for(S in J){if(!ge.call(J,S))continue;ee=J[S];this["_"+S]=this[S];this[S]=ee}}XMLWriterBase.prototype.filterOptions=function(b){var S,J,te,re,ne,ie,oe,se;b||(b={});b=me({},this.options,b);S={writer:this};S.pretty=b.pretty||false;S.allowEmpty=b.allowEmpty||false;S.indent=(J=b.indent)!=null?J:" ";S.newline=(te=b.newline)!=null?te:"\n";S.offset=(re=b.offset)!=null?re:0;S.dontPrettyTextNodes=(ne=(ie=b.dontPrettyTextNodes)!=null?ie:b.dontprettytextnodes)!=null?ne:0;S.spaceBeforeSlash=(oe=(se=b.spaceBeforeSlash)!=null?se:b.spacebeforeslash)!=null?oe:"";if(S.spaceBeforeSlash===true){S.spaceBeforeSlash=" "}S.suppressPrettyCount=0;S.user={};S.state=ee.None;return S};XMLWriterBase.prototype.indent=function(b,S,J){var ee;if(!S.pretty||S.suppressPrettyCount){return""}else if(S.pretty){ee=(J||0)+S.offset+1;if(ee>0){return new Array(ee).join(S.indent)}}return""};XMLWriterBase.prototype.endline=function(b,S,J){if(!S.pretty||S.suppressPrettyCount){return""}else{return S.newline}};XMLWriterBase.prototype.attribute=function(b,S,J){var ee;this.openAttribute(b,S,J);ee=" "+b.name+'="'+b.value+'"';this.closeAttribute(b,S,J);return ee};XMLWriterBase.prototype.cdata=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<![CDATA[";S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+="]]>"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.comment=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"\x3c!-- ";S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=" --\x3e"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.declaration=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<?xml";S.state=ee.InsideTag;te+=' version="'+b.version+'"';if(b.encoding!=null){te+=' encoding="'+b.encoding+'"'}if(b.standalone!=null){te+=' standalone="'+b.standalone+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+"?>";te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.docType=function(b,S,J){var te,re,ne,ie,oe;J||(J=0);this.openNode(b,S,J);S.state=ee.OpenTag;ie=this.indent(b,S,J);ie+="<!DOCTYPE "+b.root().name;if(b.pubID&&b.sysID){ie+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){ie+=' SYSTEM "'+b.sysID+'"'}if(b.children.length>0){ie+=" [";ie+=this.endline(b,S,J);S.state=ee.InsideTag;oe=b.children;for(re=0,ne=oe.length;re<ne;re++){te=oe[re];ie+=this.writeChildNode(te,S,J+1)}S.state=ee.CloseTag;ie+="]"}S.state=ee.CloseTag;ie+=S.spaceBeforeSlash+">";ie+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return ie};XMLWriterBase.prototype.element=function(b,J,te){var re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me;te||(te=0);pe=false;fe="";this.openNode(b,J,te);J.state=ee.OpenTag;fe+=this.indent(b,J,te)+"<"+b.name;de=b.attribs;for(le in de){if(!ge.call(de,le))continue;re=de[le];fe+=this.attribute(re,J,te)}ie=b.children.length;oe=ie===0?null:b.children[0];if(ie===0||b.children.every((function(b){return(b.type===S.Text||b.type===S.Raw)&&b.value===""}))){if(J.allowEmpty){fe+=">";J.state=ee.CloseTag;fe+="</"+b.name+">"+this.endline(b,J,te)}else{J.state=ee.CloseTag;fe+=J.spaceBeforeSlash+"/>"+this.endline(b,J,te)}}else if(J.pretty&&ie===1&&(oe.type===S.Text||oe.type===S.Raw)&&oe.value!=null){fe+=">";J.state=ee.InsideTag;J.suppressPrettyCount++;pe=true;fe+=this.writeChildNode(oe,J,te+1);J.suppressPrettyCount--;pe=false;J.state=ee.CloseTag;fe+="</"+b.name+">"+this.endline(b,J,te)}else{if(J.dontPrettyTextNodes){he=b.children;for(se=0,ue=he.length;se<ue;se++){ne=he[se];if((ne.type===S.Text||ne.type===S.Raw)&&ne.value!=null){J.suppressPrettyCount++;pe=true;break}}}fe+=">"+this.endline(b,J,te);J.state=ee.InsideTag;me=b.children;for(ae=0,ce=me.length;ae<ce;ae++){ne=me[ae];fe+=this.writeChildNode(ne,J,te+1)}J.state=ee.CloseTag;fe+=this.indent(b,J,te)+"</"+b.name+">";if(pe){J.suppressPrettyCount--}fe+=this.endline(b,J,te);J.state=ee.None}this.closeNode(b,J,te);return fe};XMLWriterBase.prototype.writeChildNode=function(b,J,ee){switch(b.type){case S.CData:return this.cdata(b,J,ee);case S.Comment:return this.comment(b,J,ee);case S.Element:return this.element(b,J,ee);case S.Raw:return this.raw(b,J,ee);case S.Text:return this.text(b,J,ee);case S.ProcessingInstruction:return this.processingInstruction(b,J,ee);case S.Dummy:return"";case S.Declaration:return this.declaration(b,J,ee);case S.DocType:return this.docType(b,J,ee);case S.AttributeDeclaration:return this.dtdAttList(b,J,ee);case S.ElementDeclaration:return this.dtdElement(b,J,ee);case S.EntityDeclaration:return this.dtdEntity(b,J,ee);case S.NotationDeclaration:return this.dtdNotation(b,J,ee);default:throw new Error("Unknown XML node type: "+b.constructor.name)}};XMLWriterBase.prototype.processingInstruction=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<?";S.state=ee.InsideTag;te+=b.target;if(b.value){te+=" "+b.value}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+"?>";te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.raw=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J);S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.text=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J);S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.dtdAttList=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ATTLIST";S.state=ee.InsideTag;te+=" "+b.elementName+" "+b.attributeName+" "+b.attributeType;if(b.defaultValueType!=="#DEFAULT"){te+=" "+b.defaultValueType}if(b.defaultValue){te+=' "'+b.defaultValue+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.dtdElement=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ELEMENT";S.state=ee.InsideTag;te+=" "+b.name+" "+b.value;S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.dtdEntity=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ENTITY";S.state=ee.InsideTag;if(b.pe){te+=" %"}te+=" "+b.name;if(b.value){te+=' "'+b.value+'"'}else{if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}if(b.nData){te+=" NDATA "+b.nData}}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.dtdNotation=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!NOTATION";S.state=ee.InsideTag;te+=" "+b.name;if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.pubID){te+=' PUBLIC "'+b.pubID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.openNode=function(b,S,J){};XMLWriterBase.prototype.closeNode=function(b,S,J){};XMLWriterBase.prototype.openAttribute=function(b,S,J){};XMLWriterBase.prototype.closeAttribute=function(b,S,J){};return XMLWriterBase}()}).call(this)},83131:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue;ue=J(52629),se=ue.assign,ae=ue.isFunction;te=J(99490);re=J(3315);ne=J(11523);oe=J(56939);ie=J(30359);S=J(4128);ee=J(58413);b.exports.create=function(b,S,J,ee){var te,ne;if(b==null){throw new Error("Root element needs a name.")}ee=se({},S,J,ee);te=new re(ee);ne=te.element(b);if(!ee.headless){te.declaration(ee);if(ee.pubID!=null||ee.sysID!=null){te.dtd(ee)}}return ne};b.exports.begin=function(b,S,J){var ee;if(ae(b)){ee=[b,S],S=ee[0],J=ee[1];b={}}if(S){return new ne(b,S,J)}else{return new re(b)}};b.exports.stringWriter=function(b){return new oe(b)};b.exports.streamWriter=function(b,S){return new ie(b,S)};b.exports.implementation=new te;b.exports.nodeType=S;b.exports.writerState=ee}).call(this)},144:function(b){(function(){b.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},7762:function(b){(function(){b.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},20983:function(b){(function(){var S,J,ee,te,re,ne,ie,oe={}.hasOwnProperty;S=function(b,...S){var J,ee,te,ne;if(re(Object.assign)){Object.assign.apply(null,arguments)}else{for(J=0,te=S.length;J<te;J++){ne=S[J];if(ne!=null){for(ee in ne){if(!oe.call(ne,ee))continue;b[ee]=ne[ee]}}}}return b};re=function(b){return!!b&&Object.prototype.toString.call(b)==="[object Function]"};ne=function(b){var S;return!!b&&((S=typeof b)==="function"||S==="object")};ee=function(b){if(re(Array.isArray)){return Array.isArray(b)}else{return Object.prototype.toString.call(b)==="[object Array]"}};te=function(b){var S;if(ee(b)){return!b.length}else{for(S in b){if(!oe.call(b,S))continue;return false}return true}};ie=function(b){var S,J;return ne(b)&&(J=Object.getPrototypeOf(b))&&(S=J.constructor)&&typeof S==="function"&&S instanceof S&&Function.prototype.toString.call(S)===Function.prototype.toString.call(Object)};J=function(b){if(re(b.valueOf)){return b.valueOf()}else{return b}};b.exports.assign=S;b.exports.isFunction=re;b.exports.isObject=ne;b.exports.isArray=ee;b.exports.isEmpty=te;b.exports.isPlainObject=ie;b.exports.getValue=J}).call(this)},80140:function(b){(function(){b.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},1395:function(b,S,J){(function(){var S,ee,te;S=J(7762);te=J(5089);b.exports=ee=function(){class XMLAttribute{constructor(b,J,ee){this.parent=b;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}if(J==null){throw new Error("Missing attribute name. "+this.debugInfo(J))}this.name=this.stringify.name(J);this.value=this.stringify.attValue(ee);this.type=S.Attribute;this.isId=false;this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(b){return this.options.writer.attribute(this,this.options.writer.filterOptions(b))}debugInfo(b){b=b||this.name;if(b==null){return"parent: <"+this.parent.name+">"}else{return"attribute: {"+b+"}, parent: <"+this.parent.name+">"}}isEqualNode(b){if(b.namespaceURI!==this.namespaceURI){return false}if(b.prefix!==this.prefix){return false}if(b.localName!==this.localName){return false}if(b.value!==this.value){return false}return true}}Object.defineProperty(XMLAttribute.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(XMLAttribute.prototype,"ownerElement",{get:function(){return this.parent}});Object.defineProperty(XMLAttribute.prototype,"textContent",{get:function(){return this.value},set:function(b){return this.value=b||""}});Object.defineProperty(XMLAttribute.prototype,"namespaceURI",{get:function(){return""}});Object.defineProperty(XMLAttribute.prototype,"prefix",{get:function(){return""}});Object.defineProperty(XMLAttribute.prototype,"localName",{get:function(){return this.name}});Object.defineProperty(XMLAttribute.prototype,"specified",{get:function(){return true}});return XMLAttribute}.call(this)}).call(this)},45261:function(b,S,J){(function(){var S,ee,te;S=J(7762);te=J(44765);b.exports=ee=class XMLCData extends te{constructor(b,J){super(b);if(J==null){throw new Error("Missing CDATA text. "+this.debugInfo())}this.name="#cdata-section";this.type=S.CData;this.value=this.stringify.cdata(J)}clone(){return Object.create(this)}toString(b){return this.options.writer.cdata(this,this.options.writer.filterOptions(b))}}}).call(this)},44765:function(b,S,J){(function(){var S,ee;ee=J(5089);b.exports=S=function(){class XMLCharacterData extends ee{constructor(b){super(b);this.value=""}clone(){return Object.create(this)}substringData(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendData(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}insertData(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}deleteData(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceData(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(b){if(!super.isEqualNode(b)){return false}if(b.data!==this.data){return false}return true}}Object.defineProperty(XMLCharacterData.prototype,"data",{get:function(){return this.value},set:function(b){return this.value=b||""}});Object.defineProperty(XMLCharacterData.prototype,"length",{get:function(){return this.value.length}});Object.defineProperty(XMLCharacterData.prototype,"textContent",{get:function(){return this.value},set:function(b){return this.value=b||""}});return XMLCharacterData}.call(this)}).call(this)},20360:function(b,S,J){(function(){var S,ee,te;S=J(7762);ee=J(44765);b.exports=te=class XMLComment extends ee{constructor(b,J){super(b);if(J==null){throw new Error("Missing comment text. "+this.debugInfo())}this.name="#comment";this.type=S.Comment;this.value=this.stringify.comment(J)}clone(){return Object.create(this)}toString(b){return this.options.writer.comment(this,this.options.writer.filterOptions(b))}}}).call(this)},25675:function(b,S,J){(function(){var S,ee,te;ee=J(70121);te=J(38207);b.exports=S=function(){class XMLDOMConfiguration{constructor(){var b;this.defaultParams={"canonical-form":false,"cdata-sections":false,comments:false,"datatype-normalization":false,"element-content-whitespace":true,entities:true,"error-handler":new ee,infoset:true,"validate-if-schema":false,namespaces:true,"namespace-declarations":true,"normalize-characters":false,"schema-location":"","schema-type":"","split-cdata-sections":true,validate:false,"well-formed":true};this.params=b=Object.create(this.defaultParams)}getParameter(b){if(this.params.hasOwnProperty(b)){return this.params[b]}else{return null}}canSetParameter(b,S){return true}setParameter(b,S){if(S!=null){return this.params[b]=S}else{return delete this.params[b]}}}Object.defineProperty(XMLDOMConfiguration.prototype,"parameterNames",{get:function(){return new te(Object.keys(this.defaultParams))}});return XMLDOMConfiguration}.call(this)}).call(this)},70121:function(b){(function(){var S;b.exports=S=class XMLDOMErrorHandler{constructor(){}handleError(b){throw new Error(b)}}}).call(this)},32692:function(b){(function(){var S;b.exports=S=class XMLDOMImplementation{hasFeature(b,S){return true}createDocumentType(b,S,J){throw new Error("This DOM method is not implemented.")}createDocument(b,S,J){throw new Error("This DOM method is not implemented.")}createHTMLDocument(b){throw new Error("This DOM method is not implemented.")}getFeature(b,S){throw new Error("This DOM method is not implemented.")}}}).call(this)},38207:function(b){(function(){var S;b.exports=S=function(){class XMLDOMStringList{constructor(b){this.arr=b||[]}item(b){return this.arr[b]||null}contains(b){return this.arr.indexOf(b)!==-1}}Object.defineProperty(XMLDOMStringList.prototype,"length",{get:function(){return this.arr.length}});return XMLDOMStringList}.call(this)}).call(this)},12529:function(b,S,J){(function(){var S,ee,te;te=J(5089);S=J(7762);b.exports=ee=class XMLDTDAttList extends te{constructor(b,J,ee,te,re,ne){super(b);if(J==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(ee==null){throw new Error("Missing DTD attribute name. "+this.debugInfo(J))}if(!te){throw new Error("Missing DTD attribute type. "+this.debugInfo(J))}if(!re){throw new Error("Missing DTD attribute default. "+this.debugInfo(J))}if(re.indexOf("#")!==0){re="#"+re}if(!re.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)){throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(J))}if(ne&&!re.match(/^(#FIXED|#DEFAULT)$/)){throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(J))}this.elementName=this.stringify.name(J);this.type=S.AttributeDeclaration;this.attributeName=this.stringify.name(ee);this.attributeType=this.stringify.dtdAttType(te);if(ne){this.defaultValue=this.stringify.dtdAttDefault(ne)}this.defaultValueType=re}toString(b){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(b))}}}).call(this)},87486:function(b,S,J){(function(){var S,ee,te;te=J(5089);S=J(7762);b.exports=ee=class XMLDTDElement extends te{constructor(b,J,ee){super(b);if(J==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(!ee){ee="(#PCDATA)"}if(Array.isArray(ee)){ee="("+ee.join(",")+")"}this.name=this.stringify.name(J);this.type=S.ElementDeclaration;this.value=this.stringify.dtdElementValue(ee)}toString(b){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(b))}}}).call(this)},69252:function(b,S,J){(function(){var S,ee,te,re;({isObject:re}=J(20983));te=J(5089);S=J(7762);b.exports=ee=function(){class XMLDTDEntity extends te{constructor(b,J,ee,te){super(b);if(ee==null){throw new Error("Missing DTD entity name. "+this.debugInfo(ee))}if(te==null){throw new Error("Missing DTD entity value. "+this.debugInfo(ee))}this.pe=!!J;this.name=this.stringify.name(ee);this.type=S.EntityDeclaration;if(!re(te)){this.value=this.stringify.dtdEntityValue(te);this.internal=true}else{if(!te.pubID&&!te.sysID){throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(ee))}if(te.pubID&&!te.sysID){throw new Error("System identifier is required for a public external entity. "+this.debugInfo(ee))}this.internal=false;if(te.pubID!=null){this.pubID=this.stringify.dtdPubID(te.pubID)}if(te.sysID!=null){this.sysID=this.stringify.dtdSysID(te.sysID)}if(te.nData!=null){this.nData=this.stringify.dtdNData(te.nData)}if(this.pe&&this.nData){throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(ee))}}}toString(b){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(b))}}Object.defineProperty(XMLDTDEntity.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDTDEntity.prototype,"systemId",{get:function(){return this.sysID}});Object.defineProperty(XMLDTDEntity.prototype,"notationName",{get:function(){return this.nData||null}});Object.defineProperty(XMLDTDEntity.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(XMLDTDEntity.prototype,"xmlEncoding",{get:function(){return null}});Object.defineProperty(XMLDTDEntity.prototype,"xmlVersion",{get:function(){return null}});return XMLDTDEntity}.call(this)}).call(this)},84848:function(b,S,J){(function(){var S,ee,te;te=J(5089);S=J(7762);b.exports=ee=function(){class XMLDTDNotation extends te{constructor(b,J,ee){super(b);if(J==null){throw new Error("Missing DTD notation name. "+this.debugInfo(J))}if(!ee.pubID&&!ee.sysID){throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(J))}this.name=this.stringify.name(J);this.type=S.NotationDeclaration;if(ee.pubID!=null){this.pubID=this.stringify.dtdPubID(ee.pubID)}if(ee.sysID!=null){this.sysID=this.stringify.dtdSysID(ee.sysID)}}toString(b){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(b))}}Object.defineProperty(XMLDTDNotation.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDTDNotation.prototype,"systemId",{get:function(){return this.sysID}});return XMLDTDNotation}.call(this)}).call(this)},16645:function(b,S,J){(function(){var S,ee,te,re;({isObject:re}=J(20983));te=J(5089);S=J(7762);b.exports=ee=class XMLDeclaration extends te{constructor(b,J,ee,te){super(b);if(re(J)){({version:J,encoding:ee,standalone:te}=J)}if(!J){J="1.0"}this.type=S.Declaration;this.version=this.stringify.xmlVersion(J);if(ee!=null){this.encoding=this.stringify.xmlEncoding(ee)}if(te!=null){this.standalone=this.stringify.xmlStandalone(te)}}toString(b){return this.options.writer.declaration(this,this.options.writer.filterOptions(b))}}}).call(this)},58873:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae;({isObject:ae}=J(20983));se=J(5089);S=J(7762);ee=J(12529);re=J(69252);te=J(87486);ne=J(84848);oe=J(92076);b.exports=ie=function(){class XMLDocType extends se{constructor(b,J,ee){var te,re,ne,ie;super(b);this.type=S.DocType;if(b.children){ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];if(te.type===S.Element){this.name=te.name;break}}}this.documentObject=b;if(ae(J)){({pubID:J,sysID:ee}=J)}if(ee==null){[ee,J]=[J,ee]}if(J!=null){this.pubID=this.stringify.dtdPubID(J)}if(ee!=null){this.sysID=this.stringify.dtdSysID(ee)}}element(b,S){var J;J=new te(this,b,S);this.children.push(J);return this}attList(b,S,J,te,re){var ne;ne=new ee(this,b,S,J,te,re);this.children.push(ne);return this}entity(b,S){var J;J=new re(this,false,b,S);this.children.push(J);return this}pEntity(b,S){var J;J=new re(this,true,b,S);this.children.push(J);return this}notation(b,S){var J;J=new ne(this,b,S);this.children.push(J);return this}toString(b){return this.options.writer.docType(this,this.options.writer.filterOptions(b))}ele(b,S){return this.element(b,S)}att(b,S,J,ee,te){return this.attList(b,S,J,ee,te)}ent(b,S){return this.entity(b,S)}pent(b,S){return this.pEntity(b,S)}not(b,S){return this.notation(b,S)}up(){return this.root()||this.documentObject}isEqualNode(b){if(!super.isEqualNode(b)){return false}if(b.name!==this.name){return false}if(b.publicId!==this.publicId){return false}if(b.systemId!==this.systemId){return false}return true}}Object.defineProperty(XMLDocType.prototype,"entities",{get:function(){var b,J,ee,te,re;te={};re=this.children;for(J=0,ee=re.length;J<ee;J++){b=re[J];if(b.type===S.EntityDeclaration&&!b.pe){te[b.name]=b}}return new oe(te)}});Object.defineProperty(XMLDocType.prototype,"notations",{get:function(){var b,J,ee,te,re;te={};re=this.children;for(J=0,ee=re.length;J<ee;J++){b=re[J];if(b.type===S.NotationDeclaration){te[b.name]=b}}return new oe(te)}});Object.defineProperty(XMLDocType.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDocType.prototype,"systemId",{get:function(){return this.sysID}});Object.defineProperty(XMLDocType.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});return XMLDocType}.call(this)}).call(this)},31582:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se;({isPlainObject:se}=J(20983));te=J(32692);ee=J(25675);ne=J(5089);S=J(7762);oe=J(90645);ie=J(37834);b.exports=re=function(){class XMLDocument extends ne{constructor(b){super(null);this.name="#document";this.type=S.Document;this.documentURI=null;this.domConfig=new ee;b||(b={});if(!b.writer){b.writer=new ie}this.options=b;this.stringify=new oe(b)}end(b){var S;S={};if(!b){b=this.options.writer}else if(se(b)){S=b;b=this.options.writer}return b.document(this,b.filterOptions(S))}toString(b){return this.options.writer.document(this,this.options.writer.filterOptions(b))}createElement(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createComment(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}importNode(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementById(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw new Error("This DOM method is not implemented."+this.debugInfo())}renameNode(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEvent(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}}Object.defineProperty(XMLDocument.prototype,"implementation",{value:new te});Object.defineProperty(XMLDocument.prototype,"doctype",{get:function(){var b,J,ee,te;te=this.children;for(J=0,ee=te.length;J<ee;J++){b=te[J];if(b.type===S.DocType){return b}}return null}});Object.defineProperty(XMLDocument.prototype,"documentElement",{get:function(){return this.rootObject||null}});Object.defineProperty(XMLDocument.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"strictErrorChecking",{get:function(){return false}});Object.defineProperty(XMLDocument.prototype,"xmlEncoding",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].encoding}else{return null}}});Object.defineProperty(XMLDocument.prototype,"xmlStandalone",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].standalone==="yes"}else{return false}}});Object.defineProperty(XMLDocument.prototype,"xmlVersion",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].version}else{return"1.0"}}});Object.defineProperty(XMLDocument.prototype,"URL",{get:function(){return this.documentURI}});Object.defineProperty(XMLDocument.prototype,"origin",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"compatMode",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"characterSet",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"contentType",{get:function(){return null}});return XMLDocument}.call(this)}).call(this)},2871:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge,ye,ve,Te,be,_e,Ee={}.hasOwnProperty;({isObject:be,isFunction:Te,isPlainObject:_e,getValue:ve}=J(20983));S=J(7762);le=J(31582);fe=J(16484);re=J(45261);ne=J(20360);he=J(68732);ye=J(22275);de=J(98947);ue=J(16645);ce=J(58873);ie=J(12529);se=J(69252);oe=J(87486);ae=J(84848);te=J(1395);ge=J(90645);me=J(37834);ee=J(80140);b.exports=pe=class XMLDocumentCB{constructor(b,J,ee){var te;this.name="?xml";this.type=S.Document;b||(b={});te={};if(!b.writer){b.writer=new me}else if(_e(b.writer)){te=b.writer;b.writer=new me}this.options=b;this.writer=b.writer;this.writerOptions=this.writer.filterOptions(te);this.stringify=new ge(b);this.onDataCallback=J||function(){};this.onEndCallback=ee||function(){};this.currentNode=null;this.currentLevel=-1;this.openTags={};this.documentStarted=false;this.documentCompleted=false;this.root=null}createChildNode(b){var J,ee,te,re,ne,ie,oe,se;switch(b.type){case S.CData:this.cdata(b.value);break;case S.Comment:this.comment(b.value);break;case S.Element:te={};oe=b.attribs;for(ee in oe){if(!Ee.call(oe,ee))continue;J=oe[ee];te[ee]=J.value}this.node(b.name,te);break;case S.Dummy:this.dummy();break;case S.Raw:this.raw(b.value);break;case S.Text:this.text(b.value);break;case S.ProcessingInstruction:this.instruction(b.target,b.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+b.constructor.name)}se=b.children;for(ne=0,ie=se.length;ne<ie;ne++){re=se[ne];this.createChildNode(re);if(re.type===S.Element){this.up()}}return this}dummy(){return this}node(b,S,J){if(b==null){throw new Error("Missing node name.")}if(this.root&&this.currentLevel===-1){throw new Error("Document can only have one root node. "+this.debugInfo(b))}this.openCurrent();b=ve(b);if(S==null){S={}}S=ve(S);if(!be(S)){[J,S]=[S,J]}this.currentNode=new fe(this,b,S);this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;if(J!=null){this.text(J)}return this}element(b,J,ee){var te,re,ne,ie,oe,se;if(this.currentNode&&this.currentNode.type===S.DocType){this.dtdElement(...arguments)}else{if(Array.isArray(b)||be(b)||Te(b)){ie=this.options.noValidation;this.options.noValidation=true;se=new le(this.options).element("TEMP_ROOT");se.element(b);this.options.noValidation=ie;oe=se.children;for(re=0,ne=oe.length;re<ne;re++){te=oe[re];this.createChildNode(te);if(te.type===S.Element){this.up()}}}else{this.node(b,J,ee)}}return this}attribute(b,S){var J,ee;if(!this.currentNode||this.currentNode.children){throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(b))}if(b!=null){b=ve(b)}if(be(b)){for(J in b){if(!Ee.call(b,J))continue;ee=b[J];this.attribute(J,ee)}}else{if(Te(S)){S=S.apply()}if(this.options.keepNullAttributes&&S==null){this.currentNode.attribs[b]=new te(this,b,"")}else if(S!=null){this.currentNode.attribs[b]=new te(this,b,S)}}return this}text(b){var S;this.openCurrent();S=new ye(this,b);this.onData(this.writer.text(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}cdata(b){var S;this.openCurrent();S=new re(this,b);this.onData(this.writer.cdata(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}comment(b){var S;this.openCurrent();S=new ne(this,b);this.onData(this.writer.comment(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}raw(b){var S;this.openCurrent();S=new he(this,b);this.onData(this.writer.raw(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}instruction(b,S){var J,ee,te,re,ne;this.openCurrent();if(b!=null){b=ve(b)}if(S!=null){S=ve(S)}if(Array.isArray(b)){for(J=0,re=b.length;J<re;J++){ee=b[J];this.instruction(ee)}}else if(be(b)){for(ee in b){if(!Ee.call(b,ee))continue;te=b[ee];this.instruction(ee,te)}}else{if(Te(S)){S=S.apply()}ne=new de(this,b,S);this.onData(this.writer.processingInstruction(ne,this.writerOptions,this.currentLevel+1),this.currentLevel+1)}return this}declaration(b,S,J){var ee;this.openCurrent();if(this.documentStarted){throw new Error("declaration() must be the first node.")}ee=new ue(this,b,S,J);this.onData(this.writer.declaration(ee,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}doctype(b,S,J){this.openCurrent();if(b==null){throw new Error("Missing root node name.")}if(this.root){throw new Error("dtd() must come before the root node.")}this.currentNode=new ce(this,S,J);this.currentNode.rootNodeName=b;this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;return this}dtdElement(b,S){var J;this.openCurrent();J=new oe(this,b,S);this.onData(this.writer.dtdElement(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}attList(b,S,J,ee,te){var re;this.openCurrent();re=new ie(this,b,S,J,ee,te);this.onData(this.writer.dtdAttList(re,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}entity(b,S){var J;this.openCurrent();J=new se(this,false,b,S);this.onData(this.writer.dtdEntity(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}pEntity(b,S){var J;this.openCurrent();J=new se(this,true,b,S);this.onData(this.writer.dtdEntity(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}notation(b,S){var J;this.openCurrent();J=new ae(this,b,S);this.onData(this.writer.dtdNotation(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}up(){if(this.currentLevel<0){throw new Error("The document node has no parent.")}if(this.currentNode){if(this.currentNode.children){this.closeNode(this.currentNode)}else{this.openNode(this.currentNode)}this.currentNode=null}else{this.closeNode(this.openTags[this.currentLevel])}delete this.openTags[this.currentLevel];this.currentLevel--;return this}end(){while(this.currentLevel>=0){this.up()}return this.onEnd()}openCurrent(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}}openNode(b){var J,te,re,ne;if(!b.isOpen){if(!this.root&&this.currentLevel===0&&b.type===S.Element){this.root=b}te="";if(b.type===S.Element){this.writerOptions.state=ee.OpenTag;te=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<"+b.name;ne=b.attribs;for(re in ne){if(!Ee.call(ne,re))continue;J=ne[re];te+=this.writer.attribute(J,this.writerOptions,this.currentLevel)}te+=(b.children?">":"/>")+this.writer.endline(b,this.writerOptions,this.currentLevel);this.writerOptions.state=ee.InsideTag}else{this.writerOptions.state=ee.OpenTag;te=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+b.rootNodeName;if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}if(b.children){te+=" [";this.writerOptions.state=ee.InsideTag}else{this.writerOptions.state=ee.CloseTag;te+=">"}te+=this.writer.endline(b,this.writerOptions,this.currentLevel)}this.onData(te,this.currentLevel);return b.isOpen=true}}closeNode(b){var J;if(!b.isClosed){J="";this.writerOptions.state=ee.CloseTag;if(b.type===S.Element){J=this.writer.indent(b,this.writerOptions,this.currentLevel)+"</"+b.name+">"+this.writer.endline(b,this.writerOptions,this.currentLevel)}else{J=this.writer.indent(b,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(b,this.writerOptions,this.currentLevel)}this.writerOptions.state=ee.None;this.onData(J,this.currentLevel);return b.isClosed=true}}onData(b,S){this.documentStarted=true;return this.onDataCallback(b,S+1)}onEnd(){this.documentCompleted=true;return this.onEndCallback()}debugInfo(b){if(b==null){return""}else{return"node: <"+b+">"}}ele(){return this.element(...arguments)}nod(b,S,J){return this.node(b,S,J)}txt(b){return this.text(b)}dat(b){return this.cdata(b)}com(b){return this.comment(b)}ins(b,S){return this.instruction(b,S)}dec(b,S,J){return this.declaration(b,S,J)}dtd(b,S,J){return this.doctype(b,S,J)}e(b,S,J){return this.element(b,S,J)}n(b,S,J){return this.node(b,S,J)}t(b){return this.text(b)}d(b){return this.cdata(b)}c(b){return this.comment(b)}r(b){return this.raw(b)}i(b,S){return this.instruction(b,S)}att(){if(this.currentNode&&this.currentNode.type===S.DocType){return this.attList(...arguments)}else{return this.attribute(...arguments)}}a(){if(this.currentNode&&this.currentNode.type===S.DocType){return this.attList(...arguments)}else{return this.attribute(...arguments)}}ent(b,S){return this.entity(b,S)}pent(b,S){return this.pEntity(b,S)}not(b,S){return this.notation(b,S)}}}).call(this)},80706:function(b,S,J){(function(){var S,ee,te;te=J(5089);S=J(7762);b.exports=ee=class XMLDummy extends te{constructor(b){super(b);this.type=S.Dummy}clone(){return Object.create(this)}toString(b){return""}}}).call(this)},16484:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae={}.hasOwnProperty;({isObject:se,isFunction:oe,getValue:ie}=J(20983));ne=J(5089);S=J(7762);ee=J(1395);re=J(92076);b.exports=te=function(){class XMLElement extends ne{constructor(b,J,ee){var te,re,ne,ie;super(b);if(J==null){throw new Error("Missing element name. "+this.debugInfo())}this.name=this.stringify.name(J);this.type=S.Element;this.attribs={};this.schemaTypeInfo=null;if(ee!=null){this.attribute(ee)}if(b.type===S.Document){this.isRoot=true;this.documentObject=b;b.rootObject=this;if(b.children){ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];if(te.type===S.DocType){te.name=this.name;break}}}}}clone(){var b,S,J,ee;J=Object.create(this);if(J.isRoot){J.documentObject=null}J.attribs={};ee=this.attribs;for(S in ee){if(!ae.call(ee,S))continue;b=ee[S];J.attribs[S]=b.clone()}J.children=[];this.children.forEach((function(b){var S;S=b.clone();S.parent=J;return J.children.push(S)}));return J}attribute(b,S){var J,te;if(b!=null){b=ie(b)}if(se(b)){for(J in b){if(!ae.call(b,J))continue;te=b[J];this.attribute(J,te)}}else{if(oe(S)){S=S.apply()}if(this.options.keepNullAttributes&&S==null){this.attribs[b]=new ee(this,b,"")}else if(S!=null){this.attribs[b]=new ee(this,b,S)}}return this}removeAttribute(b){var S,J,ee;if(b==null){throw new Error("Missing attribute name. "+this.debugInfo())}b=ie(b);if(Array.isArray(b)){for(J=0,ee=b.length;J<ee;J++){S=b[J];delete this.attribs[S]}}else{delete this.attribs[b]}return this}toString(b){return this.options.writer.element(this,this.options.writer.filterOptions(b))}att(b,S){return this.attribute(b,S)}a(b,S){return this.attribute(b,S)}getAttribute(b){if(this.attribs.hasOwnProperty(b)){return this.attribs[b].value}else{return null}}setAttribute(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNode(b){if(this.attribs.hasOwnProperty(b)){return this.attribs[b]}else{return null}}setAttributeNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNS(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNodeNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNodeNS(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasAttribute(b){return this.attribs.hasOwnProperty(b)}hasAttributeNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttribute(b,S){if(this.attribs.hasOwnProperty(b)){return this.attribs[b].isId}else{return S}}setIdAttributeNS(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttributeNode(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(b){var S,J,ee;if(!super.isEqualNode(b)){return false}if(b.namespaceURI!==this.namespaceURI){return false}if(b.prefix!==this.prefix){return false}if(b.localName!==this.localName){return false}if(b.attribs.length!==this.attribs.length){return false}for(S=J=0,ee=this.attribs.length-1;0<=ee?J<=ee:J>=ee;S=0<=ee?++J:--J){if(!this.attribs[S].isEqualNode(b.attribs[S])){return false}}return true}}Object.defineProperty(XMLElement.prototype,"tagName",{get:function(){return this.name}});Object.defineProperty(XMLElement.prototype,"namespaceURI",{get:function(){return""}});Object.defineProperty(XMLElement.prototype,"prefix",{get:function(){return""}});Object.defineProperty(XMLElement.prototype,"localName",{get:function(){return this.name}});Object.defineProperty(XMLElement.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"attributes",{get:function(){if(!this.attributeMap||!this.attributeMap.nodes){this.attributeMap=new re(this.attribs)}return this.attributeMap}});return XMLElement}.call(this)}).call(this)},92076:function(b){(function(){var S;b.exports=S=function(){class XMLNamedNodeMap{constructor(b){this.nodes=b}clone(){return this.nodes=null}getNamedItem(b){return this.nodes[b]}setNamedItem(b){var S;S=this.nodes[b.nodeName];this.nodes[b.nodeName]=b;return S||null}removeNamedItem(b){var S;S=this.nodes[b];delete this.nodes[b];return S||null}item(b){return this.nodes[Object.keys(this.nodes)[b]]||null}getNamedItemNS(b,S){throw new Error("This DOM method is not implemented.")}setNamedItemNS(b){throw new Error("This DOM method is not implemented.")}removeNamedItemNS(b,S){throw new Error("This DOM method is not implemented.")}}Object.defineProperty(XMLNamedNodeMap.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}});return XMLNamedNodeMap}.call(this)}).call(this)},5089:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge,ye={}.hasOwnProperty,ve=[].splice;({isObject:ge,isFunction:me,isEmpty:he,getValue:de}=J(20983));se=null;te=null;re=null;ne=null;ie=null;pe=null;fe=null;le=null;oe=null;ee=null;ce=null;ae=null;S=null;b.exports=ue=function(){class XMLNode{constructor(b){this.parent=b;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}this.value=null;this.children=[];this.baseURI=null;if(!se){se=J(16484);te=J(45261);re=J(20360);ne=J(16645);ie=J(58873);pe=J(68732);fe=J(22275);le=J(98947);oe=J(80706);ee=J(7762);ce=J(49908);ae=J(92076);S=J(144)}}setParent(b){var S,J,ee,te,re;this.parent=b;if(b){this.options=b.options;this.stringify=b.stringify}te=this.children;re=[];for(J=0,ee=te.length;J<ee;J++){S=te[J];re.push(S.setParent(this))}return re}element(b,S,J){var ee,te,re,ne,ie,oe,se,ae,ue;oe=null;if(S===null&&J==null){[S,J]=[{},null]}if(S==null){S={}}S=de(S);if(!ge(S)){[J,S]=[S,J]}if(b!=null){b=de(b)}if(Array.isArray(b)){for(re=0,se=b.length;re<se;re++){te=b[re];oe=this.element(te)}}else if(me(b)){oe=this.element(b.apply())}else if(ge(b)){for(ie in b){if(!ye.call(b,ie))continue;ue=b[ie];if(me(ue)){ue=ue.apply()}if(!this.options.ignoreDecorators&&this.stringify.convertAttKey&&ie.indexOf(this.stringify.convertAttKey)===0){oe=this.attribute(ie.substr(this.stringify.convertAttKey.length),ue)}else if(!this.options.separateArrayItems&&Array.isArray(ue)&&he(ue)){oe=this.dummy()}else if(ge(ue)&&he(ue)){oe=this.element(ie)}else if(!this.options.keepNullNodes&&ue==null){oe=this.dummy()}else if(!this.options.separateArrayItems&&Array.isArray(ue)){for(ne=0,ae=ue.length;ne<ae;ne++){te=ue[ne];ee={};ee[ie]=te;oe=this.element(ee)}}else if(ge(ue)){if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ie.indexOf(this.stringify.convertTextKey)===0){oe=this.element(ue)}else{oe=this.element(ie);oe.element(ue)}}else{oe=this.element(ie,ue)}}}else if(!this.options.keepNullNodes&&J===null){oe=this.dummy()}else{if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&b.indexOf(this.stringify.convertTextKey)===0){oe=this.text(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&b.indexOf(this.stringify.convertCDataKey)===0){oe=this.cdata(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&b.indexOf(this.stringify.convertCommentKey)===0){oe=this.comment(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertRawKey&&b.indexOf(this.stringify.convertRawKey)===0){oe=this.raw(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertPIKey&&b.indexOf(this.stringify.convertPIKey)===0){oe=this.instruction(b.substr(this.stringify.convertPIKey.length),J)}else{oe=this.node(b,S,J)}}if(oe==null){throw new Error("Could not create any elements with: "+b+". "+this.debugInfo())}return oe}insertBefore(b,S,J){var ee,te,re,ne,ie;if(b!=null?b.type:void 0){re=b;ne=S;re.setParent(this);if(ne){te=children.indexOf(ne);ie=children.splice(te);children.push(re);Array.prototype.push.apply(children,ie)}else{children.push(re)}return re}else{if(this.isRoot){throw new Error("Cannot insert elements at root level. "+this.debugInfo(b))}te=this.parent.children.indexOf(this);ie=this.parent.children.splice(te);ee=this.parent.element(b,S,J);Array.prototype.push.apply(this.parent.children,ie);return ee}}insertAfter(b,S,J){var ee,te,re;if(this.isRoot){throw new Error("Cannot insert elements at root level. "+this.debugInfo(b))}te=this.parent.children.indexOf(this);re=this.parent.children.splice(te+1);ee=this.parent.element(b,S,J);Array.prototype.push.apply(this.parent.children,re);return ee}remove(){var b,S;if(this.isRoot){throw new Error("Cannot remove the root element. "+this.debugInfo())}b=this.parent.children.indexOf(this);ve.apply(this.parent.children,[b,b-b+1].concat(S=[])),S;return this.parent}node(b,S,J){var ee;if(b!=null){b=de(b)}S||(S={});S=de(S);if(!ge(S)){[J,S]=[S,J]}ee=new se(this,b,S);if(J!=null){ee.text(J)}this.children.push(ee);return ee}text(b){var S;if(ge(b)){this.element(b)}S=new fe(this,b);this.children.push(S);return this}cdata(b){var S;S=new te(this,b);this.children.push(S);return this}comment(b){var S;S=new re(this,b);this.children.push(S);return this}commentBefore(b){var S,J,ee;J=this.parent.children.indexOf(this);ee=this.parent.children.splice(J);S=this.parent.comment(b);Array.prototype.push.apply(this.parent.children,ee);return this}commentAfter(b){var S,J,ee;J=this.parent.children.indexOf(this);ee=this.parent.children.splice(J+1);S=this.parent.comment(b);Array.prototype.push.apply(this.parent.children,ee);return this}raw(b){var S;S=new pe(this,b);this.children.push(S);return this}dummy(){var b;b=new oe(this);return b}instruction(b,S){var J,ee,te,re,ne;if(b!=null){b=de(b)}if(S!=null){S=de(S)}if(Array.isArray(b)){for(re=0,ne=b.length;re<ne;re++){J=b[re];this.instruction(J)}}else if(ge(b)){for(J in b){if(!ye.call(b,J))continue;ee=b[J];this.instruction(J,ee)}}else{if(me(S)){S=S.apply()}te=new le(this,b,S);this.children.push(te)}return this}instructionBefore(b,S){var J,ee,te;ee=this.parent.children.indexOf(this);te=this.parent.children.splice(ee);J=this.parent.instruction(b,S);Array.prototype.push.apply(this.parent.children,te);return this}instructionAfter(b,S){var J,ee,te;ee=this.parent.children.indexOf(this);te=this.parent.children.splice(ee+1);J=this.parent.instruction(b,S);Array.prototype.push.apply(this.parent.children,te);return this}declaration(b,S,J){var te,re;te=this.document();re=new ne(te,b,S,J);if(te.children.length===0){te.children.unshift(re)}else if(te.children[0].type===ee.Declaration){te.children[0]=re}else{te.children.unshift(re)}return te.root()||te}dtd(b,S){var J,te,re,ne,oe,se,ae,ue,ce,le;te=this.document();re=new ie(te,b,S);ce=te.children;for(ne=oe=0,ae=ce.length;oe<ae;ne=++oe){J=ce[ne];if(J.type===ee.DocType){te.children[ne]=re;return re}}le=te.children;for(ne=se=0,ue=le.length;se<ue;ne=++se){J=le[ne];if(J.isRoot){te.children.splice(ne,0,re);return re}}te.children.push(re);return re}up(){if(this.isRoot){throw new Error("The root node has no parent. Use doc() if you need to get the document object.")}return this.parent}root(){var b;b=this;while(b){if(b.type===ee.Document){return b.rootObject}else if(b.isRoot){return b}else{b=b.parent}}}document(){var b;b=this;while(b){if(b.type===ee.Document){return b}else{b=b.parent}}}end(b){return this.document().end(b)}prev(){var b;b=this.parent.children.indexOf(this);if(b<1){throw new Error("Already at the first node. "+this.debugInfo())}return this.parent.children[b-1]}next(){var b;b=this.parent.children.indexOf(this);if(b===-1||b===this.parent.children.length-1){throw new Error("Already at the last node. "+this.debugInfo())}return this.parent.children[b+1]}importDocument(b){var S,J,te,re,ne;J=b.root().clone();J.parent=this;J.isRoot=false;this.children.push(J);if(this.type===ee.Document){J.isRoot=true;J.documentObject=this;this.rootObject=J;if(this.children){ne=this.children;for(te=0,re=ne.length;te<re;te++){S=ne[te];if(S.type===ee.DocType){S.name=J.name;break}}}}return this}debugInfo(b){var S,J;b=b||this.name;if(b==null&&!((S=this.parent)!=null?S.name:void 0)){return""}else if(b==null){return"parent: <"+this.parent.name+">"}else if(!((J=this.parent)!=null?J.name:void 0)){return"node: <"+b+">"}else{return"node: <"+b+">, parent: <"+this.parent.name+">"}}ele(b,S,J){return this.element(b,S,J)}nod(b,S,J){return this.node(b,S,J)}txt(b){return this.text(b)}dat(b){return this.cdata(b)}com(b){return this.comment(b)}ins(b,S){return this.instruction(b,S)}doc(){return this.document()}dec(b,S,J){return this.declaration(b,S,J)}e(b,S,J){return this.element(b,S,J)}n(b,S,J){return this.node(b,S,J)}t(b){return this.text(b)}d(b){return this.cdata(b)}c(b){return this.comment(b)}r(b){return this.raw(b)}i(b,S){return this.instruction(b,S)}u(){return this.up()}importXMLBuilder(b){return this.importDocument(b)}attribute(b,S){throw new Error("attribute() applies to element nodes only.")}att(b,S){return this.attribute(b,S)}a(b,S){return this.attribute(b,S)}removeAttribute(b){throw new Error("attribute() applies to element nodes only.")}replaceChild(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeChild(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendChild(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw new Error("This DOM method is not implemented."+this.debugInfo())}isSupported(b,S){return true}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(b){var J,ee;J=this;if(J===b){return 0}else if(this.document()!==b.document()){ee=S.Disconnected|S.ImplementationSpecific;if(Math.random()<.5){ee|=S.Preceding}else{ee|=S.Following}return ee}else if(J.isAncestor(b)){return S.Contains|S.Preceding}else if(J.isDescendant(b)){return S.Contains|S.Following}else if(J.isPreceding(b)){return S.Preceding}else{return S.Following}}isSameNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(b){var S,J,ee;if(b.nodeType!==this.nodeType){return false}if(b.children.length!==this.children.length){return false}for(S=J=0,ee=this.children.length-1;0<=ee?J<=ee:J>=ee;S=0<=ee?++J:--J){if(!this.children[S].isEqualNode(b.children[S])){return false}}return true}getFeature(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}setUserData(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}getUserData(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}contains(b){if(!b){return false}return b===this||this.isDescendant(b)}isDescendant(b){var S,J,ee,te,re;re=this.children;for(ee=0,te=re.length;ee<te;ee++){S=re[ee];if(b===S){return true}J=S.isDescendant(b);if(J){return true}}return false}isAncestor(b){return b.isDescendant(this)}isPreceding(b){var S,J;S=this.treePosition(b);J=this.treePosition(this);if(S===-1||J===-1){return false}else{return S<J}}isFollowing(b){var S,J;S=this.treePosition(b);J=this.treePosition(this);if(S===-1||J===-1){return false}else{return S>J}}treePosition(b){var S,J;J=0;S=false;this.foreachTreeNode(this.document(),(function(ee){J++;if(!S&&ee===b){return S=true}}));if(S){return J}else{return-1}}foreachTreeNode(b,S){var J,ee,te,re,ne;b||(b=this.document());re=b.children;for(ee=0,te=re.length;ee<te;ee++){J=re[ee];if(ne=S(J)){return ne}else{ne=this.foreachTreeNode(J,S);if(ne){return ne}}}}}Object.defineProperty(XMLNode.prototype,"nodeName",{get:function(){return this.name}});Object.defineProperty(XMLNode.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(XMLNode.prototype,"nodeValue",{get:function(){return this.value}});Object.defineProperty(XMLNode.prototype,"parentNode",{get:function(){return this.parent}});Object.defineProperty(XMLNode.prototype,"childNodes",{get:function(){if(!this.childNodeList||!this.childNodeList.nodes){this.childNodeList=new ce(this.children)}return this.childNodeList}});Object.defineProperty(XMLNode.prototype,"firstChild",{get:function(){return this.children[0]||null}});Object.defineProperty(XMLNode.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}});Object.defineProperty(XMLNode.prototype,"previousSibling",{get:function(){var b;b=this.parent.children.indexOf(this);return this.parent.children[b-1]||null}});Object.defineProperty(XMLNode.prototype,"nextSibling",{get:function(){var b;b=this.parent.children.indexOf(this);return this.parent.children[b+1]||null}});Object.defineProperty(XMLNode.prototype,"ownerDocument",{get:function(){return this.document()||null}});Object.defineProperty(XMLNode.prototype,"textContent",{get:function(){var b,S,J,te,re;if(this.nodeType===ee.Element||this.nodeType===ee.DocumentFragment){re="";te=this.children;for(S=0,J=te.length;S<J;S++){b=te[S];if(b.textContent){re+=b.textContent}}return re}else{return null}},set:function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}});return XMLNode}.call(this)}).call(this)},49908:function(b){(function(){var S;b.exports=S=function(){class XMLNodeList{constructor(b){this.nodes=b}clone(){return this.nodes=null}item(b){return this.nodes[b]||null}}Object.defineProperty(XMLNodeList.prototype,"length",{get:function(){return this.nodes.length||0}});return XMLNodeList}.call(this)}).call(this)},98947:function(b,S,J){(function(){var S,ee,te;S=J(7762);ee=J(44765);b.exports=te=class XMLProcessingInstruction extends ee{constructor(b,J,ee){super(b);if(J==null){throw new Error("Missing instruction target. "+this.debugInfo())}this.type=S.ProcessingInstruction;this.target=this.stringify.insTarget(J);this.name=this.target;if(ee){this.value=this.stringify.insValue(ee)}}clone(){return Object.create(this)}toString(b){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(b))}isEqualNode(b){if(!super.isEqualNode(b)){return false}if(b.target!==this.target){return false}return true}}}).call(this)},68732:function(b,S,J){(function(){var S,ee,te;S=J(7762);ee=J(5089);b.exports=te=class XMLRaw extends ee{constructor(b,J){super(b);if(J==null){throw new Error("Missing raw text. "+this.debugInfo())}this.type=S.Raw;this.value=this.stringify.raw(J)}clone(){return Object.create(this)}toString(b){return this.options.writer.raw(this,this.options.writer.filterOptions(b))}}}).call(this)},55922:function(b,S,J){(function(){var S,ee,te,re,ne={}.hasOwnProperty;S=J(7762);re=J(16670);ee=J(80140);b.exports=te=class XMLStreamWriter extends re{constructor(b,S){super(S);this.stream=b}endline(b,S,J){if(b.isLastRootNode&&S.state===ee.CloseTag){return""}else{return super.endline(b,S,J)}}document(b,S){var J,ee,te,re,ne,ie,oe,se,ae;oe=b.children;for(ee=te=0,ne=oe.length;te<ne;ee=++te){J=oe[ee];J.isLastRootNode=ee===b.children.length-1}S=this.filterOptions(S);se=b.children;ae=[];for(re=0,ie=se.length;re<ie;re++){J=se[re];ae.push(this.writeChildNode(J,S,0))}return ae}cdata(b,S,J){return this.stream.write(super.cdata(b,S,J))}comment(b,S,J){return this.stream.write(super.comment(b,S,J))}declaration(b,S,J){return this.stream.write(super.declaration(b,S,J))}docType(b,S,J){var te,re,ne,ie;J||(J=0);this.openNode(b,S,J);S.state=ee.OpenTag;this.stream.write(this.indent(b,S,J));this.stream.write("<!DOCTYPE "+b.root().name);if(b.pubID&&b.sysID){this.stream.write(' PUBLIC "'+b.pubID+'" "'+b.sysID+'"')}else if(b.sysID){this.stream.write(' SYSTEM "'+b.sysID+'"')}if(b.children.length>0){this.stream.write(" [");this.stream.write(this.endline(b,S,J));S.state=ee.InsideTag;ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];this.writeChildNode(te,S,J+1)}S.state=ee.CloseTag;this.stream.write("]")}S.state=ee.CloseTag;this.stream.write(S.spaceBeforeSlash+">");this.stream.write(this.endline(b,S,J));S.state=ee.None;return this.closeNode(b,S,J)}element(b,J,te){var re,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge,ye,ve;te||(te=0);this.openNode(b,J,te);J.state=ee.OpenTag;de=this.indent(b,J,te)+"<"+b.name;if(J.pretty&&J.width>0){ce=de.length;me=b.attribs;for(pe in me){if(!ne.call(me,pe))continue;re=me[pe];he=this.attribute(re,J,te);ie=he.length;if(ce+ie>J.width){ve=this.indent(b,J,te+1)+he;de+=this.endline(b,J,te)+ve;ce=ve.length}else{ve=" "+he;de+=ve;ce+=ve.length}}}else{ge=b.attribs;for(pe in ge){if(!ne.call(ge,pe))continue;re=ge[pe];de+=this.attribute(re,J,te)}}this.stream.write(de);se=b.children.length;ae=se===0?null:b.children[0];if(se===0||b.children.every((function(b){return(b.type===S.Text||b.type===S.Raw)&&b.value===""}))){if(J.allowEmpty){this.stream.write(">");J.state=ee.CloseTag;this.stream.write("</"+b.name+">")}else{J.state=ee.CloseTag;this.stream.write(J.spaceBeforeSlash+"/>")}}else if(J.pretty&&se===1&&(ae.type===S.Text||ae.type===S.Raw)&&ae.value!=null){this.stream.write(">");J.state=ee.InsideTag;J.suppressPrettyCount++;fe=true;this.writeChildNode(ae,J,te+1);J.suppressPrettyCount--;fe=false;J.state=ee.CloseTag;this.stream.write("</"+b.name+">")}else{this.stream.write(">"+this.endline(b,J,te));J.state=ee.InsideTag;ye=b.children;for(ue=0,le=ye.length;ue<le;ue++){oe=ye[ue];this.writeChildNode(oe,J,te+1)}J.state=ee.CloseTag;this.stream.write(this.indent(b,J,te)+"</"+b.name+">")}this.stream.write(this.endline(b,J,te));J.state=ee.None;return this.closeNode(b,J,te)}processingInstruction(b,S,J){return this.stream.write(super.processingInstruction(b,S,J))}raw(b,S,J){return this.stream.write(super.raw(b,S,J))}text(b,S,J){return this.stream.write(super.text(b,S,J))}dtdAttList(b,S,J){return this.stream.write(super.dtdAttList(b,S,J))}dtdElement(b,S,J){return this.stream.write(super.dtdElement(b,S,J))}dtdEntity(b,S,J){return this.stream.write(super.dtdEntity(b,S,J))}dtdNotation(b,S,J){return this.stream.write(super.dtdNotation(b,S,J))}}}).call(this)},37834:function(b,S,J){(function(){var S,ee;ee=J(16670);b.exports=S=class XMLStringWriter extends ee{constructor(b){super(b)}document(b,S){var J,ee,te,re,ne;S=this.filterOptions(S);re="";ne=b.children;for(ee=0,te=ne.length;ee<te;ee++){J=ne[ee];re+=this.writeChildNode(J,S,0)}if(S.pretty&&re.slice(-S.newline.length)===S.newline){re=re.slice(0,-S.newline.length)}return re}}}).call(this)},90645:function(b){(function(){var S,J={}.hasOwnProperty;b.exports=S=function(){class XMLStringifier{constructor(b){var S,ee,te;this.assertLegalChar=this.assertLegalChar.bind(this);this.assertLegalName=this.assertLegalName.bind(this);b||(b={});this.options=b;if(!this.options.version){this.options.version="1.0"}ee=b.stringify||{};for(S in ee){if(!J.call(ee,S))continue;te=ee[S];this[S]=te}}name(b){if(this.options.noValidation){return b}return this.assertLegalName(""+b||"")}text(b){if(this.options.noValidation){return b}return this.assertLegalChar(this.textEscape(""+b||""))}cdata(b){if(this.options.noValidation){return b}b=""+b||"";b=b.replace("]]>","]]]]><![CDATA[>");return this.assertLegalChar(b)}comment(b){if(this.options.noValidation){return b}b=""+b||"";if(b.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+b)}return this.assertLegalChar(b)}raw(b){if(this.options.noValidation){return b}return""+b||""}attValue(b){if(this.options.noValidation){return b}return this.assertLegalChar(this.attEscape(b=""+b||""))}insTarget(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}insValue(b){if(this.options.noValidation){return b}b=""+b||"";if(b.match(/\?>/)){throw new Error("Invalid processing instruction value: "+b)}return this.assertLegalChar(b)}xmlVersion(b){if(this.options.noValidation){return b}b=""+b||"";if(!b.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+b)}return b}xmlEncoding(b){if(this.options.noValidation){return b}b=""+b||"";if(!b.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+b)}return this.assertLegalChar(b)}xmlStandalone(b){if(this.options.noValidation){return b}if(b){return"yes"}else{return"no"}}dtdPubID(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdSysID(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdElementValue(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdAttType(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdAttDefault(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdEntityValue(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdNData(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}assertLegalChar(b){var S,J;if(this.options.noValidation){return b}S="";if(this.options.version==="1.0"){S=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(J=b.match(S)){throw new Error(`Invalid character in string: ${b} at index ${J.index}`)}}else if(this.options.version==="1.1"){S=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(J=b.match(S)){throw new Error(`Invalid character in string: ${b} at index ${J.index}`)}}return b}assertLegalName(b){var S;if(this.options.noValidation){return b}this.assertLegalChar(b);S=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/;if(!b.match(S)){throw new Error("Invalid character in name")}return b}textEscape(b){var S;if(this.options.noValidation){return b}S=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return b.replace(S,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")}attEscape(b){var S;if(this.options.noValidation){return b}S=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return b.replace(S,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")}}XMLStringifier.prototype.convertAttKey="@";XMLStringifier.prototype.convertPIKey="?";XMLStringifier.prototype.convertTextKey="#text";XMLStringifier.prototype.convertCDataKey="#cdata";XMLStringifier.prototype.convertCommentKey="#comment";XMLStringifier.prototype.convertRawKey="#raw";return XMLStringifier}.call(this)}).call(this)},22275:function(b,S,J){(function(){var S,ee,te;S=J(7762);ee=J(44765);b.exports=te=function(){class XMLText extends ee{constructor(b,J){super(b);if(J==null){throw new Error("Missing element text. "+this.debugInfo())}this.name="#text";this.type=S.Text;this.value=this.stringify.text(J)}clone(){return Object.create(this)}toString(b){return this.options.writer.text(this,this.options.writer.filterOptions(b))}splitText(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}}Object.defineProperty(XMLText.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLText.prototype,"wholeText",{get:function(){var b,S,J;J="";S=this.previousSibling;while(S){J=S.data+J;S=S.previousSibling}J+=this.data;b=this.nextSibling;while(b){J=J+b.data;b=b.nextSibling}return J}});return XMLText}.call(this)}).call(this)},16670:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge={}.hasOwnProperty;({assign:me}=J(20983));S=J(7762);ae=J(16645);ue=J(58873);te=J(45261);re=J(20360);le=J(16484);fe=J(68732);de=J(22275);pe=J(98947);ce=J(80706);ne=J(12529);ie=J(87486);oe=J(69252);se=J(84848);ee=J(80140);b.exports=he=class XMLWriterBase{constructor(b){var S,J,ee;b||(b={});this.options=b;J=b.writer||{};for(S in J){if(!ge.call(J,S))continue;ee=J[S];this["_"+S]=this[S];this[S]=ee}}filterOptions(b){var S,J,te,re,ne,ie,oe,se,ae;b||(b={});b=me({},this.options,b);S={writer:this};S.pretty=b.pretty||false;S.allowEmpty=b.allowEmpty||false;S.indent=(J=b.indent)!=null?J:" ";S.newline=(te=b.newline)!=null?te:"\n";S.offset=(re=b.offset)!=null?re:0;S.width=(ne=b.width)!=null?ne:0;S.dontPrettyTextNodes=(ie=(oe=b.dontPrettyTextNodes)!=null?oe:b.dontprettytextnodes)!=null?ie:0;S.spaceBeforeSlash=(se=(ae=b.spaceBeforeSlash)!=null?ae:b.spacebeforeslash)!=null?se:"";if(S.spaceBeforeSlash===true){S.spaceBeforeSlash=" "}S.suppressPrettyCount=0;S.user={};S.state=ee.None;return S}indent(b,S,J){var ee;if(!S.pretty||S.suppressPrettyCount){return""}else if(S.pretty){ee=(J||0)+S.offset+1;if(ee>0){return new Array(ee).join(S.indent)}}return""}endline(b,S,J){if(!S.pretty||S.suppressPrettyCount){return""}else{return S.newline}}attribute(b,S,J){var ee;this.openAttribute(b,S,J);if(S.pretty&&S.width>0){ee=b.name+'="'+b.value+'"'}else{ee=" "+b.name+'="'+b.value+'"'}this.closeAttribute(b,S,J);return ee}cdata(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<![CDATA[";S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+="]]>"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}comment(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"\x3c!-- ";S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=" --\x3e"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}declaration(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<?xml";S.state=ee.InsideTag;te+=' version="'+b.version+'"';if(b.encoding!=null){te+=' encoding="'+b.encoding+'"'}if(b.standalone!=null){te+=' standalone="'+b.standalone+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+"?>";te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}docType(b,S,J){var te,re,ne,ie,oe;J||(J=0);this.openNode(b,S,J);S.state=ee.OpenTag;ie=this.indent(b,S,J);ie+="<!DOCTYPE "+b.root().name;if(b.pubID&&b.sysID){ie+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){ie+=' SYSTEM "'+b.sysID+'"'}if(b.children.length>0){ie+=" [";ie+=this.endline(b,S,J);S.state=ee.InsideTag;oe=b.children;for(re=0,ne=oe.length;re<ne;re++){te=oe[re];ie+=this.writeChildNode(te,S,J+1)}S.state=ee.CloseTag;ie+="]"}S.state=ee.CloseTag;ie+=S.spaceBeforeSlash+">";ie+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return ie}element(b,J,te){var re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ye,ve,Te,be,_e;te||(te=0);de=false;this.openNode(b,J,te);J.state=ee.OpenTag;he=this.indent(b,J,te)+"<"+b.name;if(J.pretty&&J.width>0){ce=he.length;ye=b.attribs;for(fe in ye){if(!ge.call(ye,fe))continue;re=ye[fe];me=this.attribute(re,J,te);ne=me.length;if(ce+ne>J.width){_e=this.indent(b,J,te+1)+me;he+=this.endline(b,J,te)+_e;ce=_e.length}else{_e=" "+me;he+=_e;ce+=_e.length}}}else{ve=b.attribs;for(fe in ve){if(!ge.call(ve,fe))continue;re=ve[fe];he+=this.attribute(re,J,te)}}oe=b.children.length;se=oe===0?null:b.children[0];if(oe===0||b.children.every((function(b){return(b.type===S.Text||b.type===S.Raw)&&b.value===""}))){if(J.allowEmpty){he+=">";J.state=ee.CloseTag;he+="</"+b.name+">"+this.endline(b,J,te)}else{J.state=ee.CloseTag;he+=J.spaceBeforeSlash+"/>"+this.endline(b,J,te)}}else if(J.pretty&&oe===1&&(se.type===S.Text||se.type===S.Raw)&&se.value!=null){he+=">";J.state=ee.InsideTag;J.suppressPrettyCount++;de=true;he+=this.writeChildNode(se,J,te+1);J.suppressPrettyCount--;de=false;J.state=ee.CloseTag;he+="</"+b.name+">"+this.endline(b,J,te)}else{if(J.dontPrettyTextNodes){Te=b.children;for(ae=0,le=Te.length;ae<le;ae++){ie=Te[ae];if((ie.type===S.Text||ie.type===S.Raw)&&ie.value!=null){J.suppressPrettyCount++;de=true;break}}}he+=">"+this.endline(b,J,te);J.state=ee.InsideTag;be=b.children;for(ue=0,pe=be.length;ue<pe;ue++){ie=be[ue];he+=this.writeChildNode(ie,J,te+1)}J.state=ee.CloseTag;he+=this.indent(b,J,te)+"</"+b.name+">";if(de){J.suppressPrettyCount--}he+=this.endline(b,J,te);J.state=ee.None}this.closeNode(b,J,te);return he}writeChildNode(b,J,ee){switch(b.type){case S.CData:return this.cdata(b,J,ee);case S.Comment:return this.comment(b,J,ee);case S.Element:return this.element(b,J,ee);case S.Raw:return this.raw(b,J,ee);case S.Text:return this.text(b,J,ee);case S.ProcessingInstruction:return this.processingInstruction(b,J,ee);case S.Dummy:return"";case S.Declaration:return this.declaration(b,J,ee);case S.DocType:return this.docType(b,J,ee);case S.AttributeDeclaration:return this.dtdAttList(b,J,ee);case S.ElementDeclaration:return this.dtdElement(b,J,ee);case S.EntityDeclaration:return this.dtdEntity(b,J,ee);case S.NotationDeclaration:return this.dtdNotation(b,J,ee);default:throw new Error("Unknown XML node type: "+b.constructor.name)}}processingInstruction(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<?";S.state=ee.InsideTag;te+=b.target;if(b.value){te+=" "+b.value}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+"?>";te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}raw(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J);S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}text(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J);S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}dtdAttList(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ATTLIST";S.state=ee.InsideTag;te+=" "+b.elementName+" "+b.attributeName+" "+b.attributeType;if(b.defaultValueType!=="#DEFAULT"){te+=" "+b.defaultValueType}if(b.defaultValue){te+=' "'+b.defaultValue+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}dtdElement(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ELEMENT";S.state=ee.InsideTag;te+=" "+b.name+" "+b.value;S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}dtdEntity(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ENTITY";S.state=ee.InsideTag;if(b.pe){te+=" %"}te+=" "+b.name;if(b.value){te+=' "'+b.value+'"'}else{if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}if(b.nData){te+=" NDATA "+b.nData}}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}dtdNotation(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!NOTATION";S.state=ee.InsideTag;te+=" "+b.name;if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.pubID){te+=' PUBLIC "'+b.pubID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}openNode(b,S,J){}closeNode(b,S,J){}openAttribute(b,S,J){}closeAttribute(b,S,J){}}}).call(this)},65769:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae;({assign:se,isFunction:ae}=J(20983));te=J(32692);re=J(31582);ne=J(2871);oe=J(37834);ie=J(55922);S=J(7762);ee=J(80140);b.exports.create=function(b,S,J,ee){var te,ne;if(b==null){throw new Error("Root element needs a name.")}ee=se({},S,J,ee);te=new re(ee);ne=te.element(b);if(!ee.headless){te.declaration(ee);if(ee.pubID!=null||ee.sysID!=null){te.dtd(ee)}}return ne};b.exports.begin=function(b,S,J){if(ae(b)){[S,J]=[b,S];b={}}if(S){return new ne(b,S,J)}else{return new re(b)}};b.exports.stringWriter=function(b){return new oe(b)};b.exports.streamWriter=function(b,S){return new ie(b,S)};b.exports.implementation=new te;b.exports.nodeType=S;b.exports.writerState=ee}).call(this)},61389:b=>{"use strict";b.exports=function(b){b.prototype[Symbol.iterator]=function*(){for(let b=this.head;b;b=b.next){yield b.value}}}},4461:(b,S,J)=>{"use strict";b.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(b){var S=this;if(!(S instanceof Yallist)){S=new Yallist}S.tail=null;S.head=null;S.length=0;if(b&&typeof b.forEach==="function"){b.forEach((function(b){S.push(b)}))}else if(arguments.length>0){for(var J=0,ee=arguments.length;J<ee;J++){S.push(arguments[J])}}return S}Yallist.prototype.removeNode=function(b){if(b.list!==this){throw new Error("removing node which does not belong to this list")}var S=b.next;var J=b.prev;if(S){S.prev=J}if(J){J.next=S}if(b===this.head){this.head=S}if(b===this.tail){this.tail=J}b.list.length--;b.next=null;b.prev=null;b.list=null;return S};Yallist.prototype.unshiftNode=function(b){if(b===this.head){return}if(b.list){b.list.removeNode(b)}var S=this.head;b.list=this;b.next=S;if(S){S.prev=b}this.head=b;if(!this.tail){this.tail=b}this.length++};Yallist.prototype.pushNode=function(b){if(b===this.tail){return}if(b.list){b.list.removeNode(b)}var S=this.tail;b.list=this;b.prev=S;if(S){S.next=b}this.tail=b;if(!this.head){this.head=b}this.length++};Yallist.prototype.push=function(){for(var b=0,S=arguments.length;b<S;b++){push(this,arguments[b])}return this.length};Yallist.prototype.unshift=function(){for(var b=0,S=arguments.length;b<S;b++){unshift(this,arguments[b])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var b=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return b};Yallist.prototype.shift=function(){if(!this.head){return undefined}var b=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return b};Yallist.prototype.forEach=function(b,S){S=S||this;for(var J=this.head,ee=0;J!==null;ee++){b.call(S,J.value,ee,this);J=J.next}};Yallist.prototype.forEachReverse=function(b,S){S=S||this;for(var J=this.tail,ee=this.length-1;J!==null;ee--){b.call(S,J.value,ee,this);J=J.prev}};Yallist.prototype.get=function(b){for(var S=0,J=this.head;J!==null&&S<b;S++){J=J.next}if(S===b&&J!==null){return J.value}};Yallist.prototype.getReverse=function(b){for(var S=0,J=this.tail;J!==null&&S<b;S++){J=J.prev}if(S===b&&J!==null){return J.value}};Yallist.prototype.map=function(b,S){S=S||this;var J=new Yallist;for(var ee=this.head;ee!==null;){J.push(b.call(S,ee.value,this));ee=ee.next}return J};Yallist.prototype.mapReverse=function(b,S){S=S||this;var J=new Yallist;for(var ee=this.tail;ee!==null;){J.push(b.call(S,ee.value,this));ee=ee.prev}return J};Yallist.prototype.reduce=function(b,S){var J;var ee=this.head;if(arguments.length>1){J=S}else if(this.head){ee=this.head.next;J=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var te=0;ee!==null;te++){J=b(J,ee.value,te);ee=ee.next}return J};Yallist.prototype.reduceReverse=function(b,S){var J;var ee=this.tail;if(arguments.length>1){J=S}else if(this.tail){ee=this.tail.prev;J=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var te=this.length-1;ee!==null;te--){J=b(J,ee.value,te);ee=ee.prev}return J};Yallist.prototype.toArray=function(){var b=new Array(this.length);for(var S=0,J=this.head;J!==null;S++){b[S]=J.value;J=J.next}return b};Yallist.prototype.toArrayReverse=function(){var b=new Array(this.length);for(var S=0,J=this.tail;J!==null;S++){b[S]=J.value;J=J.prev}return b};Yallist.prototype.slice=function(b,S){S=S||this.length;if(S<0){S+=this.length}b=b||0;if(b<0){b+=this.length}var J=new Yallist;if(S<b||S<0){return J}if(b<0){b=0}if(S>this.length){S=this.length}for(var ee=0,te=this.head;te!==null&&ee<b;ee++){te=te.next}for(;te!==null&&ee<S;ee++,te=te.next){J.push(te.value)}return J};Yallist.prototype.sliceReverse=function(b,S){S=S||this.length;if(S<0){S+=this.length}b=b||0;if(b<0){b+=this.length}var J=new Yallist;if(S<b||S<0){return J}if(b<0){b=0}if(S>this.length){S=this.length}for(var ee=this.length,te=this.tail;te!==null&&ee>S;ee--){te=te.prev}for(;te!==null&&ee>b;ee--,te=te.prev){J.push(te.value)}return J};Yallist.prototype.splice=function(b,S,...J){if(b>this.length){b=this.length-1}if(b<0){b=this.length+b}for(var ee=0,te=this.head;te!==null&&ee<b;ee++){te=te.next}var re=[];for(var ee=0;te&&ee<S;ee++){re.push(te.value);te=this.removeNode(te)}if(te===null){te=this.tail}if(te!==this.head&&te!==this.tail){te=te.prev}for(var ee=0;ee<J.length;ee++){te=insert(this,te,J[ee])}return re};Yallist.prototype.reverse=function(){var b=this.head;var S=this.tail;for(var J=b;J!==null;J=J.prev){var ee=J.prev;J.prev=J.next;J.next=ee}this.head=S;this.tail=b;return this};function insert(b,S,J){var ee=S===b.head?new Node(J,null,S,b):new Node(J,S,S.next,b);if(ee.next===null){b.tail=ee}if(ee.prev===null){b.head=ee}b.length++;return ee}function push(b,S){b.tail=new Node(S,b.tail,null,b);if(!b.head){b.head=b.tail}b.length++}function unshift(b,S){b.head=new Node(S,null,b.head,b);if(!b.tail){b.tail=b.head}b.length++}function Node(b,S,J,ee){if(!(this instanceof Node)){return new Node(b,S,J,ee)}this.list=ee;this.value=b;if(S){S.next=this;this.prev=S}else{this.prev=null}if(J){J.prev=this;this.next=J}else{this.next=null}}try{J(61389)(Yallist)}catch(b){}},1631:b=>{class Node{constructor(b){this.value=b;this.next=undefined}}class Queue{constructor(){this.clear()}enqueue(b){const S=new Node(b);if(this._head){this._tail.next=S;this._tail=S}else{this._head=S;this._tail=S}this._size++}dequeue(){const b=this._head;if(!b){return}this._head=this._head.next;this._size--;return b.value}clear(){this._head=undefined;this._tail=undefined;this._size=0}get size(){return this._size}*[Symbol.iterator](){let b=this._head;while(b){yield b.value;b=b.next}}}b.exports=Queue},14019:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});Object.defineProperty(S,"AndroidManifest",{enumerable:true,get:function(){return _Manifest().AndroidManifest}});Object.defineProperty(S,"ExpoPlist",{enumerable:true,get:function(){return _IosConfig().ExpoPlist}});Object.defineProperty(S,"InfoPlist",{enumerable:true,get:function(){return _IosConfig().InfoPlist}});Object.defineProperty(S,"XcodeProject",{enumerable:true,get:function(){return _xcode().XcodeProject}});function _xcode(){const b=J(49658);_xcode=function(){return b};return b}function _Manifest(){const b=J(24513);_Manifest=function(){return b};return b}function _IosConfig(){const b=J(84695);_IosConfig=function(){return b};return b}},33653:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getAllowBackup=getAllowBackup;S.getAllowBackupFromManifest=getAllowBackupFromManifest;S.setAllowBackup=setAllowBackup;S.withAllowBackup=void 0;function _Manifest(){const b=J(24513);_Manifest=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}const ee=S.withAllowBackup=(0,_androidPlugins().createAndroidManifestPlugin)(setAllowBackup,"withAllowBackup");function getAllowBackup(b){return b.android?.allowBackup??true}function setAllowBackup(b,S){const J=getAllowBackup(b);const ee=(0,_Manifest().getMainApplication)(S);if(ee?.$){ee.$["android:allowBackup"]=String(J)}return S}function getAllowBackupFromManifest(b){const S=(0,_Manifest().getMainApplication)(b);if(S?.$){return String(S.$["android:allowBackup"])==="true"}return null}},44074:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.createBuildGradlePropsConfigPlugin=createBuildGradlePropsConfigPlugin;S.updateAndroidBuildPropertiesFromConfig=updateAndroidBuildPropertiesFromConfig;S.updateAndroidBuildProperty=updateAndroidBuildProperty;S.withJsEngineGradleProps=void 0;function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}function createBuildGradlePropsConfigPlugin(b,S){const withUnknown=(S,J)=>(0,_androidPlugins().withGradleProperties)(S,(S=>{S.modResults=updateAndroidBuildPropertiesFromConfig(J??S,S.modResults,b);return S}));if(S){Object.defineProperty(withUnknown,"name",{value:S})}return withUnknown}const ee=S.withJsEngineGradleProps=createBuildGradlePropsConfigPlugin([{propName:"hermesEnabled",propValueGetter:b=>((b.android?.jsEngine??b.jsEngine??"hermes")==="hermes").toString()}],"withJsEngineGradleProps");function updateAndroidBuildPropertiesFromConfig(b,S,J){for(const ee of J){const J=ee.propValueGetter(b);updateAndroidBuildProperty(S,ee.propName,J)}return S}function updateAndroidBuildProperty(b,S,J,ee){const te=b.findIndex((b=>b.type==="property"&&b.key===S));if(J){const ee={type:"property",key:S,value:J};if(te>=0){b[te]=ee}else{b.push(ee)}}else if(ee?.removePropWhenValueIsNull&&te>=0){b.splice(te,1)}return b}},27972:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.assignColorValue=assignColorValue;S.getColorsAsObject=getColorsAsObject;S.getObjectAsColorsXml=getObjectAsColorsXml;S.getProjectColorsXMLPathAsync=getProjectColorsXMLPathAsync;S.removeColorItem=removeColorItem;S.setColorItem=setColorItem;function _Paths(){const b=J(7572);_Paths=function(){return b};return b}function _Resources(){const b=J(14148);_Resources=function(){return b};return b}function getProjectColorsXMLPathAsync(b,{kind:S}={}){return(0,_Paths().getResourceXMLPathAsync)(b,{kind:S,name:"colors"})}function setColorItem(b,S){if(S.resources?.color){const J=S.resources.color.filter((S=>S.$.name===b.$.name))[0];if(J){J._=b._}else{S.resources.color.push(b)}}else{if(!S.resources||typeof S.resources==="string"){S.resources={}}S.resources.color=[b]}return S}function removeColorItem(b,S){if(S.resources?.color){const J=S.resources.color.findIndex((S=>S.$.name===b));if(J>-1){S.resources.color.splice(J,1)}}return S}function assignColorValue(b,{value:S,name:J}){if(S){return setColorItem((0,_Resources().buildResourceItem)({name:J,value:S}),b)}return removeColorItem(J,b)}function getColorsAsObject(b){if(!b?.resources?.color){return null}return(0,_Resources().getResourceItemsAsObject)(b.resources.color)}function getObjectAsColorsXml(b){return{resources:{color:(0,_Resources().getObjectAsResourceItems)(b)}}}},28711:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.configureEasBuildAsync=configureEasBuildAsync;S.getEasBuildGradlePath=getEasBuildGradlePath;S.isEasBuildGradleConfiguredAsync=isEasBuildGradleConfiguredAsync;function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _EasBuildGradleScript(){const b=_interopRequireDefault(J(69985));_EasBuildGradleScript=function(){return b};return b}function Paths(){const b=_interopRequireWildcard(J(7572));Paths=function(){return b};return b}function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee='apply from: "./eas-build.gradle"';function hasApplyLine(b,S){return b.replace(/\r\n/g,"\n").split("\n").some((b=>b===S||b===S.replace(/"/g,"'")))}function getEasBuildGradlePath(b){return _path().default.join(b,"android","app","eas-build.gradle")}async function configureEasBuildAsync(b){const S=Paths().getAppBuildGradleFilePath(b);const J=getEasBuildGradlePath(b);await _fs().default.promises.writeFile(J,_EasBuildGradleScript().default);const te=await _fs().default.promises.readFile(_path().default.join(S),"utf8");const re=hasApplyLine(te,ee);if(!re){await _fs().default.promises.writeFile(S,`${te.trim()}\n${ee}\n`)}}async function isEasBuildGradleConfiguredAsync(b){const S=Paths().getAppBuildGradleFilePath(b);const J=getEasBuildGradlePath(b);const te=await _fs().default.existsSync(J);const re=await _fs().default.promises.readFile(_path().default.join(S),"utf8");const ne=hasApplyLine(re,ee);return ne&&te}},69985:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=void 0;var J=S["default"]=`// Build integration with EAS\n\nimport java.nio.file.Paths\n\nandroid {\n signingConfigs {\n release {\n // This is necessary to avoid needing the user to define a release signing config manually\n // If no release config is defined, and this is not present, build for assembleRelease will crash\n }\n }\n\n buildTypes {\n release {\n // This is necessary to avoid needing the user to define a release build type manually\n }\n }\n}\n\ndef isEasBuildConfigured = false\n\ntasks.whenTaskAdded {\n def debug = gradle.startParameter.taskNames.any { it.toLowerCase().contains('debug') }\n\n if (debug) {\n return\n }\n\n // We only need to configure EAS build once\n if (isEasBuildConfigured) {\n return\n }\n\n isEasBuildConfigured = true;\n\n android.signingConfigs.release {\n def credentialsJson = rootProject.file("../credentials.json");\n\n if (credentialsJson.exists()) {\n if (storeFile && !System.getenv("EAS_BUILD")) {\n println("Path to release keystore file is already set, ignoring 'credentials.json'")\n } else {\n try {\n def credentials = new groovy.json.JsonSlurper().parse(credentialsJson)\n def keystorePath = Paths.get(credentials.android.keystore.keystorePath);\n def storeFilePath = keystorePath.isAbsolute()\n ? keystorePath\n : rootProject.file("..").toPath().resolve(keystorePath);\n\n storeFile storeFilePath.toFile()\n storePassword credentials.android.keystore.keystorePassword\n keyAlias credentials.android.keystore.keyAlias\n if (credentials.android.keystore.containsKey("keyPassword")) {\n keyPassword credentials.android.keystore.keyPassword\n } else {\n // key password is required by Gradle, but PKCS keystores don't have one\n // using the keystore password seems to satisfy the requirement\n keyPassword credentials.android.keystore.keystorePassword\n }\n } catch (Exception e) {\n println("An error occurred while parsing 'credentials.json': " + e.message)\n }\n }\n } else {\n if (storeFile == null) {\n println("Couldn't find a 'credentials.json' file, skipping release keystore configuration")\n }\n }\n }\n\n android.buildTypes.release {\n signingConfig android.signingConfigs.release\n }\n}\n`},82840:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getGoogleMapsApiKey=getGoogleMapsApiKey;S.setGoogleMapsApiKey=setGoogleMapsApiKey;S.withGoogleMapsApiKey=void 0;function _Manifest(){const b=J(24513);_Manifest=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}const ee="com.google.android.geo.API_KEY";const te="org.apache.http.legacy";const re=S.withGoogleMapsApiKey=(0,_androidPlugins().createAndroidManifestPlugin)(setGoogleMapsApiKey,"withGoogleMapsApiKey");function getGoogleMapsApiKey(b){return b.android?.config?.googleMaps?.apiKey??null}function setGoogleMapsApiKey(b,S){const J=getGoogleMapsApiKey(b);const re=(0,_Manifest().getMainApplicationOrThrow)(S);if(J){(0,_Manifest().addMetaDataItemToMainApplication)(re,ee,J);(0,_Manifest().addUsesLibraryItemToMainApplication)(re,{name:te,required:false})}else{(0,_Manifest().removeMetaDataItemFromMainApplication)(re,ee);(0,_Manifest().removeUsesLibraryItemFromMainApplication)(re,te)}return S}},76580:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.applyPlugin=applyPlugin;S.getGoogleServicesFilePath=getGoogleServicesFilePath;S.setClassPath=setClassPath;S.setGoogleServicesFile=setGoogleServicesFile;S.withGoogleServicesFile=S.withClassPath=S.withApplyPlugin=void 0;function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}function _withDangerousMod(){const b=J(85876);_withDangerousMod=function(){return b};return b}function _fs(){const b=J(32565);_fs=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee="./android/app/google-services.json";const te="com.google.gms:google-services";const re="com.google.gms.google-services";const ne="4.3.3";const withClassPath=b=>(0,_androidPlugins().withProjectBuildGradle)(b,(b=>{if(b.modResults.language==="groovy"){b.modResults.contents=setClassPath(b,b.modResults.contents)}else{(0,_warnings().addWarningAndroid)("android.googleServicesFile",`Cannot automatically configure project build.gradle if it's not groovy`)}return b}));S.withClassPath=withClassPath;const withApplyPlugin=b=>(0,_androidPlugins().withAppBuildGradle)(b,(b=>{if(b.modResults.language==="groovy"){b.modResults.contents=applyPlugin(b,b.modResults.contents)}else{(0,_warnings().addWarningAndroid)("android.googleServicesFile",`Cannot automatically configure app build.gradle if it's not groovy`)}return b}));S.withApplyPlugin=withApplyPlugin;const withGoogleServicesFile=b=>(0,_withDangerousMod().withDangerousMod)(b,["android",async b=>{await setGoogleServicesFile(b,b.modRequest.projectRoot);return b}]);S.withGoogleServicesFile=withGoogleServicesFile;function getGoogleServicesFilePath(b){return b.android?.googleServicesFile??null}async function setGoogleServicesFile(b,S,J=ee){const te=getGoogleServicesFilePath(b);if(!te){return false}const re=_path().default.resolve(S,te);const ne=_path().default.resolve(S,J);try{await(0,_fs().copyFilePathToPathAsync)(re,ne)}catch(b){console.log(b);throw new Error(`Cannot copy google-services.json from ${re} to ${ne}. Please make sure the source and destination paths exist.`)}return true}function setClassPath(b,S){const J=getGoogleServicesFilePath(b);if(!J){return S}if(S.includes(te)){return S}return S.replace(/dependencies\s?{/,`dependencies {\n classpath '${te}:${ne}'`)}function applyPlugin(b,S){const J=getGoogleServicesFilePath(b);if(!J){return S}const ee=new RegExp(`apply\\s+plugin:\\s+['"]${re}['"]`);if(S.match(ee)){return S}return S+`\napply plugin: '${re}'`}},7818:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=renderIntentFilters;S.getIntentFilters=getIntentFilters;S.setAndroidIntentFilters=setAndroidIntentFilters;S.withAndroidIntentFilters=void 0;function _Manifest(){const b=J(24513);_Manifest=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}const ee="data-generated";const te=S.withAndroidIntentFilters=(0,_androidPlugins().createAndroidManifestPlugin)(setAndroidIntentFilters,"withAndroidIntentFilters");function getIntentFilters(b){return b.android?.intentFilters??[]}function setAndroidIntentFilters(b,S){const J=(0,_Manifest().getMainActivityOrThrow)(S);if(J["intent-filter"]?.length){J["intent-filter"]=J["intent-filter"].filter((b=>b.$?.[ee]!=="true"))}const te=getIntentFilters(b);if(!te.length){return S}J["intent-filter"]=J["intent-filter"]?.concat(renderIntentFilters(te));return S}function renderIntentFilters(b){return b.map((b=>({$:{"android:autoVerify":b.autoVerify?"true":undefined,[ee]:"true"},action:[{$:{"android:name":`android.intent.action.${b.action}`}}],data:renderIntentFilterData(b.data),category:renderIntentFilterCategory(b.category)})))}function renderIntentFilterData(b){return(Array.isArray(b)?b:[b]).filter(Boolean).map((b=>({$:Object.entries(b??{}).reduce(((b,[S,J])=>({...b,[`android:${S}`]:J})),{})})))}function renderIntentFilterCategory(b){return(Array.isArray(b)?b:[b]).filter(Boolean).map((b=>({$:{"android:name":`android.intent.category.${b}`}})))}},24513:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.addMetaDataItemToMainApplication=addMetaDataItemToMainApplication;S.addUsesLibraryItemToMainApplication=addUsesLibraryItemToMainApplication;S.ensureToolsAvailable=ensureToolsAvailable;S.findMetaDataItem=findMetaDataItem;S.findUsesLibraryItem=findUsesLibraryItem;S.getMainActivity=getMainActivity;S.getMainActivityOrThrow=getMainActivityOrThrow;S.getMainApplication=getMainApplication;S.getMainApplicationMetaDataValue=getMainApplicationMetaDataValue;S.getMainApplicationOrThrow=getMainApplicationOrThrow;S.getRunnableActivity=getRunnableActivity;S.prefixAndroidKeys=prefixAndroidKeys;S.readAndroidManifestAsync=readAndroidManifestAsync;S.removeMetaDataItemFromMainApplication=removeMetaDataItemFromMainApplication;S.removeUsesLibraryItemFromMainApplication=removeUsesLibraryItemFromMainApplication;S.writeAndroidManifestAsync=writeAndroidManifestAsync;function _assert(){const b=_interopRequireDefault(J(39491));_assert=function(){return b};return b}function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function XML(){const b=_interopRequireWildcard(J(78853));XML=function(){return b};return b}function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}async function writeAndroidManifestAsync(b,S){const J=XML().format(S);await _fs().default.promises.mkdir(_path().default.dirname(b),{recursive:true});await _fs().default.promises.writeFile(b,J)}async function readAndroidManifestAsync(b){const S=await XML().readXMLAsync({path:b});if(!isManifest(S)){throw new Error("Invalid manifest found at: "+b)}return S}function isManifest(b){return!!b.manifest}function getMainApplication(b){return b?.manifest?.application?.filter((b=>b?.$?.["android:name"].endsWith(".MainApplication")))[0]??null}function getMainApplicationOrThrow(b){const S=getMainApplication(b);(0,_assert().default)(S,"AndroidManifest.xml is missing the required MainApplication element");return S}function getMainActivityOrThrow(b){const S=getMainActivity(b);(0,_assert().default)(S,"AndroidManifest.xml is missing the required MainActivity element");return S}function getRunnableActivity(b){const S=b?.manifest?.application?.[0]?.activity?.filter?.((b=>b.$["android:enabled"]!=="false"&&b.$["android:enabled"]!==false));if(!S){return null}for(const b of S){if(Array.isArray(b["intent-filter"])){for(const S of b["intent-filter"]){if(S.action?.find((b=>b.$["android:name"]==="android.intent.action.MAIN"))&&S.category?.find((b=>b.$["android:name"]==="android.intent.category.LAUNCHER"))){return b}}}}return null}function getMainActivity(b){const S=b?.manifest?.application?.[0]?.activity?.filter?.((b=>b.$["android:name"]===".MainActivity"));return S?.[0]??null}function addMetaDataItemToMainApplication(b,S,J,ee="value"){let te;const re={$:prefixAndroidKeys({name:S,[ee]:J})};if(b["meta-data"]){te=b["meta-data"].filter((b=>b.$["android:name"]===S));if(te.length){te[0].$[`android:${ee}`]=J}else{b["meta-data"].push(re)}}else{b["meta-data"]=[re]}return b}function removeMetaDataItemFromMainApplication(b,S){const J=findMetaDataItem(b,S);if(b?.["meta-data"]&&J>-1){b["meta-data"].splice(J,1)}return b}function findApplicationSubItem(b,S,J){const ee=b[S];if(Array.isArray(ee)){const b=ee.findIndex((b=>b.$["android:name"]===J));return b}return-1}function findMetaDataItem(b,S){return findApplicationSubItem(b,"meta-data",S)}function findUsesLibraryItem(b,S){return findApplicationSubItem(b,"uses-library",S)}function getMainApplicationMetaDataValue(b,S){const J=getMainApplication(b);if(J?.hasOwnProperty("meta-data")){const b=J?.["meta-data"]?.find((b=>b.$["android:name"]===S));return b?.$["android:value"]??null}return null}function addUsesLibraryItemToMainApplication(b,S){let J;const ee={$:prefixAndroidKeys(S)};if(b["uses-library"]){J=b["uses-library"].filter((b=>b.$["android:name"]===S.name));if(J.length){J[0].$=ee.$}else{b["uses-library"].push(ee)}}else{b["uses-library"]=[ee]}return b}function removeUsesLibraryItemFromMainApplication(b,S){const J=findUsesLibraryItem(b,S);if(b?.["uses-library"]&&J>-1){b["uses-library"].splice(J,1)}return b}function prefixAndroidKeys(b){return Object.entries(b).reduce(((b,[S,J])=>({...b,[`android:${S}`]:J})),{})}function ensureToolsAvailable(b){return ensureManifestHasNamespace(b,{namespace:"xmlns:tools",url:"http://schemas.android.com/tools"})}function ensureManifestHasNamespace(b,{namespace:S,url:J}){if(b?.manifest?.$?.[S]){return b}b.manifest.$[S]=J;return b}},17758:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.applyNameSettingsGradle=applyNameSettingsGradle;S.getName=getName;S.sanitizeNameForGradle=sanitizeNameForGradle;S.withNameSettingsGradle=S.withName=void 0;function _Resources(){const b=J(14148);_Resources=function(){return b};return b}function _Strings(){const b=J(88651);_Strings=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}function sanitizeNameForGradle(b){b=b.replace(/[\n\r\t]/g,"");return b.replace(/(\/|\\|:|<|>|"|\?|\*|\|)/g,"")}const ee=S.withName=(0,_androidPlugins().createStringsXmlPlugin)(applyNameFromConfig,"withName");const withNameSettingsGradle=b=>(0,_androidPlugins().withSettingsGradle)(b,(b=>{if(b.modResults.language==="groovy"){b.modResults.contents=applyNameSettingsGradle(b,b.modResults.contents)}else{(0,_warnings().addWarningAndroid)("name",`Cannot automatically configure settings.gradle if it's not groovy`)}return b}));S.withNameSettingsGradle=withNameSettingsGradle;function getName(b){return typeof b.name==="string"?b.name:null}function applyNameFromConfig(b,S){const J=getName(b);if(J){return(0,_Strings().setStringItem)([(0,_Resources().buildResourceItem)({name:"app_name",value:J})],S)}return(0,_Strings().removeStringItem)("app_name",S)}function applyNameSettingsGradle(b,S){const J=sanitizeNameForGradle(getName(b)??"");return S.replace(/rootProject.name\s?=\s?(["'])(?:(?=(\\?))\2.)*?\1/g,`rootProject.name = '${J.replace(/'/g,"\\'")}'`)}},20844:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.SCREEN_ORIENTATION_ATTRIBUTE=void 0;S.getOrientation=getOrientation;S.setAndroidOrientation=setAndroidOrientation;S.withOrientation=void 0;function _Manifest(){const b=J(24513);_Manifest=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}const ee=S.SCREEN_ORIENTATION_ATTRIBUTE="android:screenOrientation";const te=S.withOrientation=(0,_androidPlugins().createAndroidManifestPlugin)(setAndroidOrientation,"withOrientation");function getOrientation(b){return typeof b.orientation==="string"?b.orientation:null}function setAndroidOrientation(b,S){const J=getOrientation(b);if(!J){return S}const te=(0,_Manifest().getMainActivityOrThrow)(S);te.$[ee]=J!=="default"?J:"unspecified";return S}},45631:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getApplicationIdAsync=getApplicationIdAsync;S.getPackage=getPackage;S.renameJniOnDiskForType=renameJniOnDiskForType;S.renamePackageOnDisk=renamePackageOnDisk;S.renamePackageOnDiskForType=renamePackageOnDiskForType;S.setPackageInBuildGradle=setPackageInBuildGradle;S.withPackageRefactor=S.withPackageGradle=void 0;function _debug(){const b=_interopRequireDefault(J(67984));_debug=function(){return b};return b}function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _glob(){const b=J(17682);_glob=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _Paths(){const b=J(7572);_Paths=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}function _withDangerousMod(){const b=J(85876);_withDangerousMod=function(){return b};return b}function _modules(){const b=J(35642);_modules=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee=(0,_debug().default)("expo:config-plugins:android:package");const withPackageGradle=b=>(0,_androidPlugins().withAppBuildGradle)(b,(b=>{if(b.modResults.language==="groovy"){b.modResults.contents=setPackageInBuildGradle(b,b.modResults.contents)}else{(0,_warnings().addWarningAndroid)("android.package",`Cannot automatically configure app build.gradle if it's not groovy`)}return b}));S.withPackageGradle=withPackageGradle;const withPackageRefactor=b=>(0,_withDangerousMod().withDangerousMod)(b,["android",async b=>{await renamePackageOnDisk(b,b.modRequest.projectRoot);return b}]);S.withPackageRefactor=withPackageRefactor;function getPackage(b){return b.android?.package??null}function getPackageRoot(b,S){return _path().default.join(b,"android","app","src",S,"java")}function getCurrentPackageName(b,S){const J=(0,_Paths().getProjectFilePath)(b,"MainApplication");const ee=_path().default.dirname(J);const te=_path().default.relative(S,ee).split(_path().default.sep).filter(Boolean);return te.join(".")}function getCurrentPackageForProjectFile(b,S,J,ee){const te=(0,_glob().sync)(_path().default.join(b,`android/app/src/${ee}/java/**/${J}.@(java|kt)`))[0];if(!te){return null}const re=_path().default.dirname(te);const ne=_path().default.relative(S,re).split(_path().default.sep).filter(Boolean);return ne.join(".")}function getCurrentPackageNameForType(b,S){const J=getPackageRoot(b,S);if(S==="main"){return getCurrentPackageName(b,J)}return getCurrentPackageForProjectFile(b,J,"*",S)}async function renamePackageOnDisk(b,S){const J=getPackage(b);if(J===null){return}for(const b of["debug","main","release"]){await renameJniOnDiskForType({projectRoot:S,type:b,packageName:J});await renamePackageOnDiskForType({projectRoot:S,type:b,packageName:J})}}async function renameJniOnDiskForType({projectRoot:b,type:S,packageName:J}){if(!J){return}const te=getCurrentPackageNameForType(b,S);if(!te||!J||te===J){return}const re=_path().default.join(b,"android","app","src",S,"jni");const ne=[...(0,_glob().sync)("**/*",{cwd:re,absolute:true})];ne.forEach((b=>{try{if(_fs().default.lstatSync(b).isFile()&&[".h",".cpp"].includes(_path().default.extname(b))){let S=_fs().default.readFileSync(b).toString();S=S.replace(new RegExp(transformJavaClassDescriptor(te).replace(/\//g,"\\/"),"g"),transformJavaClassDescriptor(J));_fs().default.writeFileSync(b,S)}}catch{ee(`Error updating "${b}" for type "${S}"`)}}))}async function renamePackageOnDiskForType({projectRoot:b,type:S,packageName:J}){if(!J){return}const te=getCurrentPackageNameForType(b,S);ee(`Found package "${te}" for type "${S}"`);if(!te||te===J){return}ee(`Refactor "${te}" to "${J}" for type "${S}"`);const re=getPackageRoot(b,S);if(!await(0,_modules().directoryExistsAsync)(re)){ee(`- skipping refactor of missing directory: ${re}`);return}const ne=_path().default.join(re,...te.split("."));const ie=_path().default.join(re,...J.split("."));_fs().default.mkdirSync(ie,{recursive:true});(0,_glob().sync)("**/*",{cwd:ne}).forEach((b=>{const S=_path().default.join(ne,b);if(_fs().default.lstatSync(S).isFile()){moveFileSync(S,_path().default.join(ie,b))}else{_fs().default.mkdirSync(S,{recursive:true})}}));const oe=te.split(".");while(oe.length){const b=_path().default.join(re,...oe);try{const S=_fs().default.readdirSync(b);if(S.length===0){_fs().default.rmdirSync(b)}}finally{oe.pop()}}const se=[...(0,_glob().sync)("**/*",{cwd:ie,absolute:true})];if(S==="main"){se.push(_path().default.join(b,"android","app","BUCK"))}se.forEach((b=>{try{if(_fs().default.lstatSync(b).isFile()){let S=_fs().default.readFileSync(b).toString();S=replacePackageName(S,te,J);if([".h",".cpp"].includes(_path().default.extname(b))){S=S.replace(new RegExp(transformJavaClassDescriptor(te).replace(/\//g,"\\"),"g"),transformJavaClassDescriptor(J))}_fs().default.writeFileSync(b,S)}}catch{ee(`Error updating "${b}" for type "${S}"`)}}))}function moveFileSync(b,S){_fs().default.mkdirSync(_path().default.dirname(S),{recursive:true});_fs().default.renameSync(b,S)}function setPackageInBuildGradle(b,S){const J=getPackage(b);if(J===null){return S}const ee=new RegExp(`(applicationId|namespace) ['"].*['"]`,"g");return S.replace(ee,`$1 '${J}'`)}async function getApplicationIdAsync(b){const S=(0,_Paths().getAppBuildGradleFilePath)(b);if(!_fs().default.existsSync(S)){return null}const J=await _fs().default.promises.readFile(S,"utf8");const ee=J.match(/applicationId ['"](.*)['"]/);return ee?.[1]??null}function replacePackageName(b,S,J){const ee=S.replace(/\./g,"\\.");return b.replace(new RegExp(`"${ee}"`,"g"),`"${J}"`).replace(new RegExp(`(package|namespace)(\\s+)${ee}`,"g"),`$1$2${J}`).replace(new RegExp(`(import\\s+)${ee}\\.`,"g"),`$1${J}.`)}function transformJavaClassDescriptor(b){return`L${b.replace(/\./g,"/")}`}},7572:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getAndroidManifestAsync=getAndroidManifestAsync;S.getAppBuildGradleAsync=getAppBuildGradleAsync;S.getAppBuildGradleFilePath=getAppBuildGradleFilePath;S.getFileInfo=getFileInfo;S.getGradleFilePath=getGradleFilePath;S.getMainActivityAsync=getMainActivityAsync;S.getMainApplicationAsync=getMainApplicationAsync;S.getProjectBuildGradleAsync=getProjectBuildGradleAsync;S.getProjectBuildGradleFilePath=getProjectBuildGradleFilePath;S.getProjectFilePath=getProjectFilePath;S.getProjectPathOrThrowAsync=getProjectPathOrThrowAsync;S.getResourceFolderAsync=getResourceFolderAsync;S.getResourceXMLPathAsync=getResourceXMLPathAsync;S.getSettingsGradleAsync=getSettingsGradleAsync;S.getSettingsGradleFilePath=getSettingsGradleFilePath;function _assert(){const b=_interopRequireDefault(J(39491));_assert=function(){return b};return b}function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _glob(){const b=J(17682);_glob=function(){return b};return b}function path(){const b=_interopRequireWildcard(J(71017));path=function(){return b};return b}function _errors(){const b=J(13857);_errors=function(){return b};return b}function _modules(){const b=J(35642);_modules=function(){return b};return b}function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function getProjectFilePath(b,S){const J=(0,_glob().sync)(path().join(b,`android/app/src/main/java/**/${S}.@(java|kt)`))[0];(0,_assert().default)(J,`Project file "${S}" does not exist in android project for root "${b}"`);return J}function getLanguage(b){const S=path().extname(b);switch(S){case".java":return"java";case".kts":case".kt":return"kt";case".groovy":case".gradle":return"groovy";default:throw new(_errors().UnexpectedError)(`Unexpected Android file extension: ${S}`)}}function getFileInfo(b){return{path:path().normalize(b),contents:_fs().default.readFileSync(b,"utf8"),language:getLanguage(b)}}async function getMainApplicationAsync(b){const S=getProjectFilePath(b,"MainApplication");return getFileInfo(S)}async function getMainActivityAsync(b){const S=getProjectFilePath(b,"MainActivity");return getFileInfo(S)}function getGradleFilePath(b,S){const J=path().resolve(b,`${S}.gradle`);const ee=path().resolve(b,`${S}.gradle.kts`);const te=_fs().default.existsSync(J);const re=!te&&_fs().default.existsSync(ee);if(!te&&!re){throw new Error(`Failed to find '${S}.gradle' file for project: ${b}.`)}const ne=te?J:ee;return ne}function getProjectBuildGradleFilePath(b){return getGradleFilePath(path().join(b,"android"),"build")}async function getProjectBuildGradleAsync(b){return getFileInfo(getProjectBuildGradleFilePath(b))}function getSettingsGradleFilePath(b){return getGradleFilePath(path().join(b,"android"),"settings")}async function getSettingsGradleAsync(b){return getFileInfo(getSettingsGradleFilePath(b))}function getAppBuildGradleFilePath(b){return getGradleFilePath(path().join(b,"android","app"),"build")}async function getAppBuildGradleAsync(b){return getFileInfo(getAppBuildGradleFilePath(b))}async function getProjectPathOrThrowAsync(b){const S=path().join(b,"android");if(await(0,_modules().directoryExistsAsync)(S)){return S}throw new Error(`Android project folder is missing in project: ${b}`)}async function getAndroidManifestAsync(b){const S=await getProjectPathOrThrowAsync(b);const J=path().join(S,"app/src/main/AndroidManifest.xml");return J}async function getResourceFolderAsync(b){const S=await getProjectPathOrThrowAsync(b);return path().join(S,`app/src/main/res`)}async function getResourceXMLPathAsync(b,{kind:S="values",name:J}){const ee=await getResourceFolderAsync(b);const te=path().join(ee,`${S}/${J}.xml`);return te}},13164:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.addBlockedPermissions=addBlockedPermissions;S.addPermission=addPermission;S.addPermissionToManifest=addPermissionToManifest;S.ensurePermission=ensurePermission;S.ensurePermissionNameFormat=ensurePermissionNameFormat;S.ensurePermissions=ensurePermissions;S.getAndroidPermissions=getAndroidPermissions;S.getPermissions=getPermissions;S.isPermissionAlreadyRequested=isPermissionAlreadyRequested;S.removePermissions=removePermissions;S.setAndroidPermissions=setAndroidPermissions;S.withPermissions=S.withInternalBlockedPermissions=S.withBlockedPermissions=void 0;function _Manifest(){const b=J(24513);_Manifest=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}const ee="uses-permission";const withPermissions=(b,S)=>{if(Array.isArray(S)){S=S.filter(Boolean);if(!b.android)b.android={};if(!b.android.permissions)b.android.permissions=[];b.android.permissions=[...new Set(b.android.permissions.concat(S))]}return(0,_androidPlugins().withAndroidManifest)(b,(async b=>{b.modResults=await setAndroidPermissions(b,b.modResults);return b}))};S.withPermissions=withPermissions;const withBlockedPermissions=(b,S)=>{const J=prefixAndroidPermissionsIfNecessary((Array.isArray(S)?S:[S]).filter(Boolean));if(b?.android?.permissions&&Array.isArray(b.android.permissions)){b.android.permissions=prefixAndroidPermissionsIfNecessary(b.android.permissions).filter((b=>!J.includes(b)))}return(0,_androidPlugins().withAndroidManifest)(b,(async b=>{b.modResults=(0,_Manifest().ensureToolsAvailable)(b.modResults);b.modResults=addBlockedPermissions(b.modResults,J);return b}))};S.withBlockedPermissions=withBlockedPermissions;const withInternalBlockedPermissions=b=>{if(b.android?.blockedPermissions?.length){return withBlockedPermissions(b,b.android.blockedPermissions)}return b};S.withInternalBlockedPermissions=withInternalBlockedPermissions;function addBlockedPermissions(b,S){if(!Array.isArray(b.manifest["uses-permission"])){b.manifest["uses-permission"]=[]}for(const J of prefixAndroidPermissionsIfNecessary(S)){b.manifest["uses-permission"]=ensureBlockedPermission(b.manifest["uses-permission"],J)}return b}function ensureBlockedPermission(b,S){b=b.filter((b=>b.$["android:name"]!==S));b.push({$:{"android:name":S,"tools:node":"remove"}});return b}function prefixAndroidPermissionsIfNecessary(b){return b.map((b=>{if(!b.includes(".")){return`android.permission.${b}`}return b}))}function getAndroidPermissions(b){return b.android?.permissions??[]}function setAndroidPermissions(b,S){const J=getAndroidPermissions(b);const ee=prefixAndroidPermissionsIfNecessary(J);const te=[...ee];if(!S.manifest.hasOwnProperty("uses-permission")){S.manifest["uses-permission"]=[]}const re=S.manifest["uses-permission"]??[];te.forEach((b=>{if(!isPermissionAlreadyRequested(b,re)){addPermissionToManifest(b,re)}}));return S}function isPermissionAlreadyRequested(b,S){return S.some((S=>S.$["android:name"]===b))}function addPermissionToManifest(b,S){S.push({$:{"android:name":b}});return S}function removePermissions(b,S){const J=S?S.map(ensurePermissionNameFormat):null;const te=b.manifest[ee]||[];const re=[];for(const b of te){if(J){const S=b.$["android:name"]||b.$.name;if(!J.includes(S)){re.push(b)}}}b.manifest[ee]=re}function addPermission(b,S){const J=b.manifest[ee]||[];J.push({$:{"android:name":S}});b.manifest[ee]=J}function ensurePermissions(b,S){const J=getPermissions(b);const ee={};for(const te of S){const S=ensurePermissionNameFormat(te);if(!J.includes(S)){addPermission(b,S);ee[te]=true}else{ee[te]=false}}return ee}function ensurePermission(b,S){const J=getPermissions(b);const ee=ensurePermissionNameFormat(S);if(!J.includes(ee)){addPermission(b,ee);return true}return false}function ensurePermissionNameFormat(b){if(b.includes(".")){const S=b.split(".");const J=S.pop();return[...S,J.toUpperCase()].join(".")}else{return ensurePermissionNameFormat(`android.permission.${b}`)}}function getPermissions(b){const S=b.manifest[ee]||[];const J=S.map((b=>b.$["android:name"]||b.$.name));return J}},42638:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getPrimaryColor=getPrimaryColor;S.withPrimaryColorStyles=S.withPrimaryColorColors=S.withPrimaryColor=void 0;function _Colors(){const b=J(27972);_Colors=function(){return b};return b}function _Styles(){const b=J(19769);_Styles=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}const ee="colorPrimary";const te="#023c69";const withPrimaryColor=b=>{b=withPrimaryColorColors(b);b=withPrimaryColorStyles(b);return b};S.withPrimaryColor=withPrimaryColor;const withPrimaryColorColors=b=>(0,_androidPlugins().withAndroidColors)(b,(b=>{b.modResults=(0,_Colors().assignColorValue)(b.modResults,{name:ee,value:getPrimaryColor(b)});return b}));S.withPrimaryColorColors=withPrimaryColorColors;const withPrimaryColorStyles=b=>(0,_androidPlugins().withAndroidStyles)(b,(b=>{b.modResults=(0,_Styles().assignStylesValue)(b.modResults,{add:!!getPrimaryColor(b),parent:(0,_Styles().getAppThemeLightNoActionBarGroup)(),name:ee,value:`@color/${ee}`});return b}));S.withPrimaryColorStyles=withPrimaryColorStyles;function getPrimaryColor(b){return b.primaryColor??te}},4551:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.parsePropertiesFile=parsePropertiesFile;S.propertiesListToString=propertiesListToString;function parsePropertiesFile(b){const S=[];const J=b.split("\n");for(let b=0;b<J.length;b++){const ee=J[b].trim();if(!ee){S.push({type:"empty"})}else if(ee.startsWith("#")){S.push({type:"comment",value:ee.substring(1).trimStart()})}else{const b=ee.indexOf("=");const J=ee.slice(0,b);const te=ee.slice(b+1,ee.length);S.push({type:"property",key:J,value:te})}}return S}function propertiesListToString(b){let S="";for(let J=0;J<b.length;J++){const ee=b[J];if(ee.type==="empty"){S+=""}else if(ee.type==="comment"){S+="# "+ee.value}else if(ee.type==="property"){S+=`${ee.key}=${ee.value}`}else{throw new Error(`Invalid properties type "${ee.type}"`)}if(J<b.length-1){S+="\n"}}return S}},14148:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.buildResourceGroup=buildResourceGroup;S.buildResourceItem=buildResourceItem;S.ensureDefaultResourceXML=ensureDefaultResourceXML;S.findResourceGroup=findResourceGroup;S.getObjectAsResourceGroup=getObjectAsResourceGroup;S.getObjectAsResourceItems=getObjectAsResourceItems;S.getResourceItemsAsObject=getResourceItemsAsObject;S.readResourcesXMLAsync=readResourcesXMLAsync;function _XML(){const b=J(78853);_XML=function(){return b};return b}const ee=`<?xml version="1.0" encoding="utf-8"?><resources></resources>`;async function readResourcesXMLAsync({path:b,fallback:S=ee}){const J=await(0,_XML().readXMLAsync)({path:b,fallback:S});if(!J.resources){J.resources={}}return J}function ensureDefaultResourceXML(b){if(!b){b={resources:{}}}if(!b.resources){b.resources={}}return b}function buildResourceItem({name:b,value:S,targetApi:J,translatable:ee}){const te={$:{name:b},_:S};if(J){te.$["tools:targetApi"]=J}if(ee!==undefined){te.$["translatable"]=String(ee)}return te}function buildResourceGroup(b){return{$:{name:b.name,parent:b.parent},item:b.items??[]}}function findResourceGroup(b,S){const J=b?.filter?.((({$:b})=>{let J=b.name===S.name;if(S.parent!=null&&J){J=b.parent===S.parent}return J}))?.[0];return J??null}function getResourceItemsAsObject(b){return b.reduce(((b,S)=>({...b,[S.$.name]:S._})),{})}function getObjectAsResourceItems(b){return Object.entries(b).map((([b,S])=>({$:{name:b},_:S})))}function getObjectAsResourceGroup(b){return{$:{name:b.name,parent:b.parent},item:getObjectAsResourceItems(b.item)}}},60365:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.appendScheme=appendScheme;S.ensureManifestHasValidIntentFilter=ensureManifestHasValidIntentFilter;S.getScheme=getScheme;S.getSchemesFromManifest=getSchemesFromManifest;S.hasScheme=hasScheme;S.removeScheme=removeScheme;S.setScheme=setScheme;S.withScheme=void 0;function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}const ee=S.withScheme=(0,_androidPlugins().createAndroidManifestPlugin)(setScheme,"withScheme");function getScheme(b){if(Array.isArray(b.scheme)){const validate=b=>typeof b==="string";return b.scheme.filter(validate)}else if(typeof b.scheme==="string"){return[b.scheme]}return[]}function setScheme(b,S){const J=[...getScheme(b),...getScheme(b.android??{})];if(b.android?.package){J.push(b.android.package)}if(J.length===0){return S}if(!ensureManifestHasValidIntentFilter(S)){(0,_warnings().addWarningAndroid)("scheme",`Cannot add schemes because the provided manifest does not have a valid Activity with \`android:launchMode="singleTask"\``,"https://expo.fyi/setup-android-uri-scheme");return S}const ee=getSchemesFromManifest(S);for(const b of ee){const S=J.indexOf(b);if(S>-1)J.splice(S,1)}for(const b of J){S=appendScheme(b,S)}return S}function isValidRedirectIntentFilter({actions:b,categories:S}){return b.includes("android.intent.action.VIEW")&&!S.includes("android.intent.category.LAUNCHER")}function propertiesFromIntentFilter(b){const S=b?.action?.map((b=>b?.$?.["android:name"]))??[];const J=b?.category?.map((b=>b?.$?.["android:name"]))??[];const ee=b?.data?.filter((b=>b?.$?.["android:scheme"]))?.map((b=>({scheme:b?.$?.["android:scheme"],host:b?.$?.["android:host"]})))??[];return{actions:S,categories:J,data:ee}}function getSingleTaskIntentFilters(b){if(!Array.isArray(b.manifest.application))return[];let S=[];for(const J of b.manifest.application){const{activity:b}=J;const ee=Array.isArray(b)?b:[b];const te=ee.filter((b=>b?.$?.["android:launchMode"]==="singleTask"));for(const b of te){const J=b["intent-filter"];S=S.concat(J)}}return S}function getSchemesFromManifest(b,S=null){const J=[];const ee=getSingleTaskIntentFilters(b);for(const b of ee){const ee=propertiesFromIntentFilter(b);if(isValidRedirectIntentFilter(ee)&&ee.data){for(const{scheme:b,host:te}of ee.data){if(S===null||!te||te===S){J.push(b)}}}}return J}function ensureManifestHasValidIntentFilter(b){if(!Array.isArray(b.manifest.application)){return false}for(const S of b.manifest.application){for(const b of S.activity||[]){if(b?.$?.["android:launchMode"]==="singleTask"){for(const S of b["intent-filter"]||[]){const b=propertiesFromIntentFilter(S);if(isValidRedirectIntentFilter(b)){return true}}if(!b["intent-filter"]){b["intent-filter"]=[]}b["intent-filter"].push({action:[{$:{"android:name":"android.intent.action.VIEW"}}],category:[{$:{"android:name":"android.intent.category.DEFAULT"}},{$:{"android:name":"android.intent.category.BROWSABLE"}}]});return true}}}return false}function hasScheme(b,S){const J=getSchemesFromManifest(S);return J.includes(b)}function appendScheme(b,S){if(!Array.isArray(S.manifest.application)){return S}for(const J of S.manifest.application){for(const S of J.activity||[]){if(S?.$?.["android:launchMode"]==="singleTask"){for(const J of S["intent-filter"]||[]){const S=propertiesFromIntentFilter(J);if(isValidRedirectIntentFilter(S)){if(!J.data)J.data=[];J.data.push({$:{"android:scheme":b}})}}break}}}return S}function removeScheme(b,S){if(!Array.isArray(S.manifest.application)){return S}for(const J of S.manifest.application){for(const S of J.activity||[]){if(S?.$?.["android:launchMode"]==="singleTask"){for(const J of S["intent-filter"]||[]){const S=propertiesFromIntentFilter(J);if(isValidRedirectIntentFilter(S)){for(const S in J?.data||[]){const ee=J.data?.[S];if(ee?.$?.["android:scheme"]===b){delete J.data?.[S]}}}}break}}}return S}},72899:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getStatusBarColor=getStatusBarColor;S.getStatusBarStyle=getStatusBarStyle;S.getStatusBarTranslucent=getStatusBarTranslucent;S.setStatusBarColors=setStatusBarColors;S.setStatusBarStyles=setStatusBarStyles;S.withStatusBar=void 0;function _assert(){const b=_interopRequireDefault(J(39491));_assert=function(){return b};return b}function _Colors(){const b=J(27972);_Colors=function(){return b};return b}function _Styles(){const b=J(19769);_Styles=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee="colorPrimaryDark";const te="android:windowTranslucentStatus";const re="android:windowLightStatusBar";const withStatusBar=b=>{b=withStatusBarColors(b);b=withStatusBarStyles(b);return b};S.withStatusBar=withStatusBar;const withStatusBarColors=b=>(0,_androidPlugins().withAndroidColors)(b,(b=>{b.modResults=setStatusBarColors(b,b.modResults);return b}));const withStatusBarStyles=b=>(0,_androidPlugins().withAndroidStyles)(b,(b=>{b.modResults=setStatusBarStyles(b,b.modResults);return b}));function setStatusBarColors(b,S){return(0,_Colors().assignColorValue)(S,{name:ee,value:getStatusBarColor(b)})}function setStatusBarStyles(b,S){const J=getStatusBarColor(b);const ne=getStatusBarTranslucent(b);S=(0,_Styles().assignStylesValue)(S,{parent:(0,_Styles().getAppThemeLightNoActionBarGroup)(),name:re,targetApi:"23",value:"true",add:getStatusBarStyle(b)==="dark-content"});S=(0,_Styles().assignStylesValue)(S,{parent:(0,_Styles().getAppThemeLightNoActionBarGroup)(),name:te,value:"true",add:ne});S=(0,_Styles().assignStylesValue)(S,{parent:(0,_Styles().getAppThemeLightNoActionBarGroup)(),name:ee,value:`@color/${ee}`,add:!!J});return S}function getStatusBarColor(b){const S=b.androidStatusBar?.backgroundColor;if(S){(0,_assert().default)(S!=="translucent",`androidStatusBar.backgroundColor must be a valid hex string, instead got: "${S}"`)}return S}function getStatusBarTranslucent(b){return b.androidStatusBar?.translucent??false}function getStatusBarStyle(b){return b.androidStatusBar?.barStyle||"light-content"}},88651:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getProjectStringsXMLPathAsync=getProjectStringsXMLPathAsync;S.removeStringItem=removeStringItem;S.setStringItem=setStringItem;function _Paths(){const b=J(7572);_Paths=function(){return b};return b}async function getProjectStringsXMLPathAsync(b,{kind:S}={}){return(0,_Paths().getResourceXMLPathAsync)(b,{kind:S,name:"strings"})}function setStringItem(b,S){if(!S?.resources?.string){if(!S.resources||typeof S.resources==="string"){S.resources={}}S.resources.string=b;return S}for(const J of b){const b=S.resources.string.findIndex((b=>b.$.name===J.$.name));if(b>-1){S.resources.string[b]=J}else{S.resources.string=S.resources.string.concat(J)}}return S}function removeStringItem(b,S){if(S?.resources?.string){const J=S.resources.string.findIndex((S=>S.$.name===b));if(J>-1){S.resources.string.splice(J,1)}}return S}},19769:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.assignStylesValue=assignStylesValue;S.getAppThemeLightNoActionBarGroup=getAppThemeLightNoActionBarGroup;S.getProjectStylesXMLPathAsync=getProjectStylesXMLPathAsync;S.getStyleParent=getStyleParent;S.getStylesGroupAsObject=getStylesGroupAsObject;S.getStylesItem=getStylesItem;S.readStylesXMLAsync=readStylesXMLAsync;S.removeStylesItem=removeStylesItem;S.setStylesItem=setStylesItem;function _Paths(){const b=J(7572);_Paths=function(){return b};return b}function _Resources(){const b=J(14148);_Resources=function(){return b};return b}const ee=`<?xml version="1.0" encoding="utf-8"?><resources xmlns:tools="http://schemas.android.com/tools"></resources>`;async function readStylesXMLAsync({path:b,fallback:S=ee}){return(0,_Resources().readResourcesXMLAsync)({path:b,fallback:S})}async function getProjectStylesXMLPathAsync(b,{kind:S}={}){return(0,_Paths().getResourceXMLPathAsync)(b,{kind:S,name:"styles"})}function ensureDefaultStyleResourceXML(b){b=(0,_Resources().ensureDefaultResourceXML)(b);if(!Array.isArray(b?.resources?.style)){b.resources.style=[]}return b}function getStyleParent(b,S){return(0,_Resources().findResourceGroup)(b.resources.style,S)}function getStylesItem({name:b,xml:S,parent:J}){S=ensureDefaultStyleResourceXML(S);const ee=getStyleParent(S,J);if(!ee){return null}if(ee.item){const S=ee.item.filter((({$:S})=>S.name===b))[0];if(S){return S}}return null}function setStylesItem({item:b,xml:S,parent:J}){S=ensureDefaultStyleResourceXML(S);let ee=getStyleParent(S,J);if(!ee){ee=(0,_Resources().buildResourceGroup)(J);S.resources.style.push(ee)}if(ee.item){const S=ee.item.filter((({$:S})=>S.name===b.$.name))[0];if(S){S._=b._;S.$=b.$}else{ee.item.push(b)}}else{ee.item=[b]}return S}function removeStylesItem({name:b,xml:S,parent:J}){S=ensureDefaultStyleResourceXML(S);const ee=getStyleParent(S,J);if(ee?.item){const S=ee.item.findIndex((({$:S})=>S.name===b));if(S>-1){ee.item.splice(S,1)}}return S}function getAppThemeLightNoActionBarGroup(){return{name:"AppTheme",parent:"Theme.AppCompat.Light.NoActionBar"}}function assignStylesValue(b,{add:S,value:J,targetApi:ee,name:te,parent:re}){if(S){return setStylesItem({xml:b,parent:re,item:(0,_Resources().buildResourceItem)({name:te,targetApi:ee,value:J})})}return removeStylesItem({xml:b,parent:re,name:te})}function getStylesGroupAsObject(b,S){const J=getStyleParent(b,S);return J?.item?(0,_Resources().getResourceItemsAsObject)(J.item):null}},74756:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.Config=void 0;S.applyRuntimeVersionFromConfigAsync=applyRuntimeVersionFromConfigAsync;S.applyRuntimeVersionFromConfigForProjectRootAsync=applyRuntimeVersionFromConfigForProjectRootAsync;S.setUpdatesConfigAsync=setUpdatesConfigAsync;S.setVersionsConfigAsync=setVersionsConfigAsync;S.withUpdates=void 0;function _Manifest(){const b=J(24513);_Manifest=function(){return b};return b}function _Resources(){const b=J(14148);_Resources=function(){return b};return b}function _Strings(){const b=J(88651);_Strings=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}function _withPlugins(){const b=J(4897);_withPlugins=function(){return b};return b}function _Updates(){const b=J(3943);_Updates=function(){return b};return b}let ee=S.Config=function(b){b["ENABLED"]="expo.modules.updates.ENABLED";b["CHECK_ON_LAUNCH"]="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH";b["LAUNCH_WAIT_MS"]="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS";b["RUNTIME_VERSION"]="expo.modules.updates.EXPO_RUNTIME_VERSION";b["UPDATE_URL"]="expo.modules.updates.EXPO_UPDATE_URL";b["UPDATES_CONFIGURATION_REQUEST_HEADERS_KEY"]="expo.modules.updates.UPDATES_CONFIGURATION_REQUEST_HEADERS_KEY";b["CODE_SIGNING_CERTIFICATE"]="expo.modules.updates.CODE_SIGNING_CERTIFICATE";b["CODE_SIGNING_METADATA"]="expo.modules.updates.CODE_SIGNING_METADATA";return b}({});const withUpdates=b=>(0,_withPlugins().withPlugins)(b,[withUpdatesManifest,te]);S.withUpdates=withUpdates;const withUpdatesManifest=b=>(0,_androidPlugins().withAndroidManifest)(b,(async b=>{const S=b.modRequest.projectRoot;const J=(0,_Updates().getExpoUpdatesPackageVersion)(S);b.modResults=await setUpdatesConfigAsync(S,b,b.modResults,J);return b}));const te=(0,_androidPlugins().createStringsXmlPlugin)(applyRuntimeVersionFromConfigAsync,"withRuntimeVersionResource");async function applyRuntimeVersionFromConfigAsync(b,S){const J=b.modRequest.projectRoot;return await applyRuntimeVersionFromConfigForProjectRootAsync(J,b,S)}async function applyRuntimeVersionFromConfigForProjectRootAsync(b,S,J){const ee=await(0,_Updates().getRuntimeVersionNullableAsync)(b,S,"android");if(ee){return(0,_Strings().setStringItem)([(0,_Resources().buildResourceItem)({name:"expo_runtime_version",value:ee})],J)}return(0,_Strings().removeStringItem)("expo_runtime_version",J)}async function setUpdatesConfigAsync(b,S,J,te){const re=(0,_Manifest().getMainApplicationOrThrow)(J);(0,_Manifest().addMetaDataItemToMainApplication)(re,ee.ENABLED,String((0,_Updates().getUpdatesEnabled)(S)));(0,_Manifest().addMetaDataItemToMainApplication)(re,ee.CHECK_ON_LAUNCH,(0,_Updates().getUpdatesCheckOnLaunch)(S,te));(0,_Manifest().addMetaDataItemToMainApplication)(re,ee.LAUNCH_WAIT_MS,String((0,_Updates().getUpdatesTimeout)(S)));const ne=(0,_Updates().getUpdateUrl)(S);if(ne){(0,_Manifest().addMetaDataItemToMainApplication)(re,ee.UPDATE_URL,ne)}else{(0,_Manifest().removeMetaDataItemFromMainApplication)(re,ee.UPDATE_URL)}const ie=(0,_Updates().getUpdatesCodeSigningCertificate)(b,S);if(ie){(0,_Manifest().addMetaDataItemToMainApplication)(re,ee.CODE_SIGNING_CERTIFICATE,ie)}else{(0,_Manifest().removeMetaDataItemFromMainApplication)(re,ee.CODE_SIGNING_CERTIFICATE)}const oe=(0,_Updates().getUpdatesCodeSigningMetadataStringified)(S);if(oe){(0,_Manifest().addMetaDataItemToMainApplication)(re,ee.CODE_SIGNING_METADATA,oe)}else{(0,_Manifest().removeMetaDataItemFromMainApplication)(re,ee.CODE_SIGNING_METADATA)}const se=(0,_Updates().getUpdatesRequestHeadersStringified)(S);if(se){(0,_Manifest().addMetaDataItemToMainApplication)(re,ee.UPDATES_CONFIGURATION_REQUEST_HEADERS_KEY,se)}else{(0,_Manifest().removeMetaDataItemFromMainApplication)(re,ee.UPDATES_CONFIGURATION_REQUEST_HEADERS_KEY)}return await setVersionsConfigAsync(b,S,J)}async function setVersionsConfigAsync(b,S,J){const te=(0,_Manifest().getMainApplicationOrThrow)(J);const re=await(0,_Updates().getRuntimeVersionNullableAsync)(b,S,"android");if(!re&&(0,_Manifest().findMetaDataItem)(te,ee.RUNTIME_VERSION)>-1){throw new Error("A runtime version is set in your AndroidManifest.xml, but is missing from your app.json/app.config.js. Please either set runtimeVersion in your app.json/app.config.js or remove expo.modules.updates.EXPO_RUNTIME_VERSION from your AndroidManifest.xml.")}if(re){(0,_Manifest().removeMetaDataItemFromMainApplication)(te,"expo.modules.updates.EXPO_SDK_VERSION");(0,_Manifest().addMetaDataItemToMainApplication)(te,ee.RUNTIME_VERSION,"@string/expo_runtime_version")}else{(0,_Manifest().removeMetaDataItemFromMainApplication)(te,ee.RUNTIME_VERSION);(0,_Manifest().removeMetaDataItemFromMainApplication)(te,"expo.modules.updates.EXPO_SDK_VERSION")}return J}},72793:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getVersionCode=getVersionCode;S.getVersionName=getVersionName;S.setMinBuildScriptExtVersion=setMinBuildScriptExtVersion;S.setVersionCode=setVersionCode;S.setVersionName=setVersionName;S.withVersion=S.withBuildScriptExtMinimumVersion=void 0;function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}const withVersion=b=>(0,_androidPlugins().withAppBuildGradle)(b,(b=>{if(b.modResults.language==="groovy"){b.modResults.contents=setVersionCode(b,b.modResults.contents);b.modResults.contents=setVersionName(b,b.modResults.contents)}else{(0,_warnings().addWarningAndroid)("android.versionCode",`Cannot automatically configure app build.gradle if it's not groovy`)}return b}));S.withVersion=withVersion;const withBuildScriptExtMinimumVersion=(b,S)=>(0,_androidPlugins().withProjectBuildGradle)(b,(b=>{if(b.modResults.language==="groovy"){b.modResults.contents=setMinBuildScriptExtVersion(b.modResults.contents,S)}else{(0,_warnings().addWarningAndroid)("withBuildScriptExtVersion",`Cannot automatically configure project build.gradle if it's not groovy`)}return b}));S.withBuildScriptExtMinimumVersion=withBuildScriptExtMinimumVersion;function setMinBuildScriptExtVersion(b,{name:S,minVersion:J}){const ee=new RegExp(`(${S}\\s?=\\s?)(\\d+(?:\\.\\d+)?)`);const te=b.match(ee)?.[2];if(!te){(0,_warnings().addWarningAndroid)("withBuildScriptExtVersion",`Cannot set minimum buildscript.ext.${S} version because the property "${S}" cannot be found or does not have a numeric value.`);return b}const re=Number(te);return b.replace(ee,`$1${Math.max(J,re)}`)}function getVersionName(b){return b.version??null}function setVersionName(b,S){const J=getVersionName(b);if(J===null){return S}const ee=new RegExp(`versionName ".*"`);return S.replace(ee,`versionName "${J}"`)}function getVersionCode(b){return b.android?.versionCode??1}function setVersionCode(b,S){const J=getVersionCode(b);if(J===null){return S}const ee=new RegExp(`versionCode.*`);return S.replace(ee,`versionCode ${J}`)}},86990:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getWindowSoftInputModeMode=getWindowSoftInputModeMode;S.setWindowSoftInputModeMode=setWindowSoftInputModeMode;S.withWindowSoftInputMode=void 0;function _Manifest(){const b=J(24513);_Manifest=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}const ee="android:windowSoftInputMode";const te={pan:"adjustPan",resize:"adjustResize"};const withWindowSoftInputMode=b=>(0,_androidPlugins().withAndroidManifest)(b,(async b=>{b.modResults=setWindowSoftInputModeMode(b,b.modResults);return b}));S.withWindowSoftInputMode=withWindowSoftInputMode;function setWindowSoftInputModeMode(b,S){const J=(0,_Manifest().getMainActivityOrThrow)(S);J.$[ee]=getWindowSoftInputModeMode(b);return S}function getWindowSoftInputModeMode(b){const S=b.android?.softwareKeyboardLayoutMode;if(!S){return"adjustResize"}return te[S]??S}},85165:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.addImports=addImports;S.appendContentsInsideDeclarationBlock=appendContentsInsideDeclarationBlock;S.findNewInstanceCodeBlock=findNewInstanceCodeBlock;function _commonCodeMod(){const b=J(80837);_commonCodeMod=function(){return b};return b}function _matchBrackets(){const b=J(62042);_matchBrackets=function(){return b};return b}function findNewInstanceCodeBlock(b,S,J){const ee=J==="java";let te=ee?b.indexOf(` new ${S}(`):b.search(new RegExp(` (object\\s*:\\s*)?${S}\\(`));if(te<0){return null}te+=1;let re=(0,_matchBrackets().findMatchingBracketPosition)(b,"(",te);const ne=b.indexOf("{",re+1);const ie=ne>=re&&!!b.substring(re+1,ne).match(/^\s*$/);if(ie){re=(0,_matchBrackets().findMatchingBracketPosition)(b,"{",re)}return{start:te,end:re,code:b.substring(te,re+1)}}function appendContentsInsideDeclarationBlock(b,S,J){const ee=b.search(new RegExp(`\\s*${S}.*?[\\(\\{]`));if(ee<0){throw new Error(`Unable to find code block - declaration[${S}]`)}const te=(0,_matchBrackets().findMatchingBracketPosition)(b,"{",ee);return(0,_commonCodeMod().insertContentsAtOffset)(b,J,te)}function addImports(b,S,J){const ee=b.split("\n");const te=ee.findIndex((b=>b.match(/^package .*;?$/)));for(const re of S){if(!b.includes(re)){const b=`import ${re}${J?";":""}`;ee.splice(te+1,0,b)}}return ee.join("\n")}},87232:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.WindowSoftInputMode=S.Version=S.Updates=S.Styles=S.Strings=S.StatusBar=S.Scheme=S.Resources=S.Properties=S.PrimaryColor=S.Permissions=S.Paths=S.Package=S.Orientation=S.Name=S.Manifest=S.IntentFilters=S.GoogleServices=S.GoogleMapsApiKey=S.EasBuild=S.Colors=S.BuildProperties=S.AllowBackup=void 0;function AllowBackup(){const b=_interopRequireWildcard(J(33653));AllowBackup=function(){return b};return b}Object.defineProperty(S,"AllowBackup",{enumerable:true,get:function(){return AllowBackup()}});function BuildProperties(){const b=_interopRequireWildcard(J(44074));BuildProperties=function(){return b};return b}Object.defineProperty(S,"BuildProperties",{enumerable:true,get:function(){return BuildProperties()}});function Colors(){const b=_interopRequireWildcard(J(27972));Colors=function(){return b};return b}Object.defineProperty(S,"Colors",{enumerable:true,get:function(){return Colors()}});function EasBuild(){const b=_interopRequireWildcard(J(28711));EasBuild=function(){return b};return b}Object.defineProperty(S,"EasBuild",{enumerable:true,get:function(){return EasBuild()}});function GoogleMapsApiKey(){const b=_interopRequireWildcard(J(82840));GoogleMapsApiKey=function(){return b};return b}Object.defineProperty(S,"GoogleMapsApiKey",{enumerable:true,get:function(){return GoogleMapsApiKey()}});function GoogleServices(){const b=_interopRequireWildcard(J(76580));GoogleServices=function(){return b};return b}Object.defineProperty(S,"GoogleServices",{enumerable:true,get:function(){return GoogleServices()}});function IntentFilters(){const b=_interopRequireWildcard(J(7818));IntentFilters=function(){return b};return b}Object.defineProperty(S,"IntentFilters",{enumerable:true,get:function(){return IntentFilters()}});function Manifest(){const b=_interopRequireWildcard(J(24513));Manifest=function(){return b};return b}Object.defineProperty(S,"Manifest",{enumerable:true,get:function(){return Manifest()}});function Name(){const b=_interopRequireWildcard(J(17758));Name=function(){return b};return b}Object.defineProperty(S,"Name",{enumerable:true,get:function(){return Name()}});function Orientation(){const b=_interopRequireWildcard(J(20844));Orientation=function(){return b};return b}Object.defineProperty(S,"Orientation",{enumerable:true,get:function(){return Orientation()}});function Package(){const b=_interopRequireWildcard(J(45631));Package=function(){return b};return b}Object.defineProperty(S,"Package",{enumerable:true,get:function(){return Package()}});function Paths(){const b=_interopRequireWildcard(J(7572));Paths=function(){return b};return b}Object.defineProperty(S,"Paths",{enumerable:true,get:function(){return Paths()}});function Permissions(){const b=_interopRequireWildcard(J(13164));Permissions=function(){return b};return b}Object.defineProperty(S,"Permissions",{enumerable:true,get:function(){return Permissions()}});function PrimaryColor(){const b=_interopRequireWildcard(J(42638));PrimaryColor=function(){return b};return b}Object.defineProperty(S,"PrimaryColor",{enumerable:true,get:function(){return PrimaryColor()}});function Properties(){const b=_interopRequireWildcard(J(4551));Properties=function(){return b};return b}Object.defineProperty(S,"Properties",{enumerable:true,get:function(){return Properties()}});function Resources(){const b=_interopRequireWildcard(J(14148));Resources=function(){return b};return b}Object.defineProperty(S,"Resources",{enumerable:true,get:function(){return Resources()}});function Scheme(){const b=_interopRequireWildcard(J(60365));Scheme=function(){return b};return b}Object.defineProperty(S,"Scheme",{enumerable:true,get:function(){return Scheme()}});function StatusBar(){const b=_interopRequireWildcard(J(72899));StatusBar=function(){return b};return b}Object.defineProperty(S,"StatusBar",{enumerable:true,get:function(){return StatusBar()}});function Strings(){const b=_interopRequireWildcard(J(88651));Strings=function(){return b};return b}Object.defineProperty(S,"Strings",{enumerable:true,get:function(){return Strings()}});function Styles(){const b=_interopRequireWildcard(J(19769));Styles=function(){return b};return b}Object.defineProperty(S,"Styles",{enumerable:true,get:function(){return Styles()}});function Updates(){const b=_interopRequireWildcard(J(74756));Updates=function(){return b};return b}Object.defineProperty(S,"Updates",{enumerable:true,get:function(){return Updates()}});function Version(){const b=_interopRequireWildcard(J(72793));Version=function(){return b};return b}Object.defineProperty(S,"Version",{enumerable:true,get:function(){return Version()}});function WindowSoftInputMode(){const b=_interopRequireWildcard(J(86990));WindowSoftInputMode=function(){return b};return b}Object.defineProperty(S,"WindowSoftInputMode",{enumerable:true,get:function(){return WindowSoftInputMode()}});function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}},36581:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee={BaseMods:true,AndroidConfig:true,IOSConfig:true,XML:true,History:true,WarningAggregator:true,Updates:true,withPlugins:true,withRunOnce:true,createRunOncePlugin:true,withDangerousMod:true,withFinalizedMod:true,withMod:true,withBaseMod:true,withAppDelegate:true,withInfoPlist:true,withEntitlementsPlist:true,withExpoPlist:true,withXcodeProject:true,withPodfile:true,withPodfileProperties:true,withAndroidManifest:true,withStringsXml:true,withAndroidColors:true,withAndroidColorsNight:true,withAndroidStyles:true,withMainActivity:true,withMainApplication:true,withProjectBuildGradle:true,withAppBuildGradle:true,withSettingsGradle:true,withGradleProperties:true,withStaticPlugin:true,compileModsAsync:true,withDefaultBaseMods:true,evalModsAsync:true,PluginError:true};S.IOSConfig=S.History=S.BaseMods=S.AndroidConfig=void 0;Object.defineProperty(S,"PluginError",{enumerable:true,get:function(){return _errors().PluginError}});S.XML=S.WarningAggregator=S.Updates=void 0;Object.defineProperty(S,"compileModsAsync",{enumerable:true,get:function(){return _modCompiler().compileModsAsync}});Object.defineProperty(S,"createRunOncePlugin",{enumerable:true,get:function(){return _withRunOnce().createRunOncePlugin}});Object.defineProperty(S,"evalModsAsync",{enumerable:true,get:function(){return _modCompiler().evalModsAsync}});Object.defineProperty(S,"withAndroidColors",{enumerable:true,get:function(){return _androidPlugins().withAndroidColors}});Object.defineProperty(S,"withAndroidColorsNight",{enumerable:true,get:function(){return _androidPlugins().withAndroidColorsNight}});Object.defineProperty(S,"withAndroidManifest",{enumerable:true,get:function(){return _androidPlugins().withAndroidManifest}});Object.defineProperty(S,"withAndroidStyles",{enumerable:true,get:function(){return _androidPlugins().withAndroidStyles}});Object.defineProperty(S,"withAppBuildGradle",{enumerable:true,get:function(){return _androidPlugins().withAppBuildGradle}});Object.defineProperty(S,"withAppDelegate",{enumerable:true,get:function(){return _iosPlugins().withAppDelegate}});Object.defineProperty(S,"withBaseMod",{enumerable:true,get:function(){return _withMod().withBaseMod}});Object.defineProperty(S,"withDangerousMod",{enumerable:true,get:function(){return _withDangerousMod().withDangerousMod}});Object.defineProperty(S,"withDefaultBaseMods",{enumerable:true,get:function(){return _modCompiler().withDefaultBaseMods}});Object.defineProperty(S,"withEntitlementsPlist",{enumerable:true,get:function(){return _iosPlugins().withEntitlementsPlist}});Object.defineProperty(S,"withExpoPlist",{enumerable:true,get:function(){return _iosPlugins().withExpoPlist}});Object.defineProperty(S,"withFinalizedMod",{enumerable:true,get:function(){return _withFinalizedMod().withFinalizedMod}});Object.defineProperty(S,"withGradleProperties",{enumerable:true,get:function(){return _androidPlugins().withGradleProperties}});Object.defineProperty(S,"withInfoPlist",{enumerable:true,get:function(){return _iosPlugins().withInfoPlist}});Object.defineProperty(S,"withMainActivity",{enumerable:true,get:function(){return _androidPlugins().withMainActivity}});Object.defineProperty(S,"withMainApplication",{enumerable:true,get:function(){return _androidPlugins().withMainApplication}});Object.defineProperty(S,"withMod",{enumerable:true,get:function(){return _withMod().withMod}});Object.defineProperty(S,"withPlugins",{enumerable:true,get:function(){return _withPlugins().withPlugins}});Object.defineProperty(S,"withPodfile",{enumerable:true,get:function(){return _iosPlugins().withPodfile}});Object.defineProperty(S,"withPodfileProperties",{enumerable:true,get:function(){return _iosPlugins().withPodfileProperties}});Object.defineProperty(S,"withProjectBuildGradle",{enumerable:true,get:function(){return _androidPlugins().withProjectBuildGradle}});Object.defineProperty(S,"withRunOnce",{enumerable:true,get:function(){return _withRunOnce().withRunOnce}});Object.defineProperty(S,"withSettingsGradle",{enumerable:true,get:function(){return _androidPlugins().withSettingsGradle}});Object.defineProperty(S,"withStaticPlugin",{enumerable:true,get:function(){return _withStaticPlugin().withStaticPlugin}});Object.defineProperty(S,"withStringsXml",{enumerable:true,get:function(){return _androidPlugins().withStringsXml}});Object.defineProperty(S,"withXcodeProject",{enumerable:true,get:function(){return _iosPlugins().withXcodeProject}});function AndroidConfig(){const b=_interopRequireWildcard(J(87232));AndroidConfig=function(){return b};return b}Object.defineProperty(S,"AndroidConfig",{enumerable:true,get:function(){return AndroidConfig()}});function IOSConfig(){const b=_interopRequireWildcard(J(65609));IOSConfig=function(){return b};return b}Object.defineProperty(S,"IOSConfig",{enumerable:true,get:function(){return IOSConfig()}});function _createBaseMod(){const b=J(15881);_createBaseMod=function(){return b};return b}function _withAndroidBaseMods(){const b=J(80619);_withAndroidBaseMods=function(){return b};return b}function _withIosBaseMods(){const b=J(37595);_withIosBaseMods=function(){return b};return b}function XML(){const b=_interopRequireWildcard(J(78853));XML=function(){return b};return b}Object.defineProperty(S,"XML",{enumerable:true,get:function(){return XML()}});function History(){const b=_interopRequireWildcard(J(40928));History=function(){return b};return b}Object.defineProperty(S,"History",{enumerable:true,get:function(){return History()}});function WarningAggregator(){const b=_interopRequireWildcard(J(128));WarningAggregator=function(){return b};return b}Object.defineProperty(S,"WarningAggregator",{enumerable:true,get:function(){return WarningAggregator()}});function _Updates(){const b=_interopRequireWildcard(J(3943));_Updates=function(){return b};return b}Object.defineProperty(S,"Updates",{enumerable:true,get:function(){return _Updates()}});var te=J(14019);Object.keys(te).forEach((function(b){if(b==="default"||b==="__esModule")return;if(Object.prototype.hasOwnProperty.call(ee,b))return;if(b in S&&S[b]===te[b])return;Object.defineProperty(S,b,{enumerable:true,get:function(){return te[b]}})}));function _withPlugins(){const b=J(4897);_withPlugins=function(){return b};return b}function _withRunOnce(){const b=J(73700);_withRunOnce=function(){return b};return b}function _withDangerousMod(){const b=J(85876);_withDangerousMod=function(){return b};return b}function _withFinalizedMod(){const b=J(39266);_withFinalizedMod=function(){return b};return b}function _withMod(){const b=J(82932);_withMod=function(){return b};return b}function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}function _withStaticPlugin(){const b=J(77298);_withStaticPlugin=function(){return b};return b}function _modCompiler(){const b=J(20503);_modCompiler=function(){return b};return b}function _errors(){const b=J(13857);_errors=function(){return b};return b}function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}const re=S.BaseMods={withGeneratedBaseMods:_createBaseMod().withGeneratedBaseMods,provider:_createBaseMod().provider,withAndroidBaseMods:_withAndroidBaseMods().withAndroidBaseMods,getAndroidModFileProviders:_withAndroidBaseMods().getAndroidModFileProviders,withIosBaseMods:_withIosBaseMods().withIosBaseMods,getIosModFileProviders:_withIosBaseMods().getIosModFileProviders}},56865:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getBitcode=getBitcode;S.setBitcode=setBitcode;S.setBitcodeWithConfig=setBitcodeWithConfig;S.withCustomBitcode=S.withBitcode=void 0;function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}const withBitcode=b=>(0,_iosPlugins().withXcodeProject)(b,(async b=>{b.modResults=await setBitcodeWithConfig(b,{project:b.modResults});return b}));S.withBitcode=withBitcode;const withCustomBitcode=(b,S)=>(0,_iosPlugins().withXcodeProject)(b,(async b=>{b.modResults=await setBitcode(S,{project:b.modResults});return b}));S.withCustomBitcode=withCustomBitcode;function getBitcode(b){return b.ios?.bitcode}function setBitcodeWithConfig(b,{project:S}){const J=getBitcode(b);return setBitcode(J,{project:S})}function setBitcode(b,{project:S}){const J=b==null;if(J){return S}const ee=typeof b==="string"?b:undefined;const te=!!b;if(ee){const b=Object.entries(S.pbxXCBuildConfigurationSection()).filter(_Xcodeproj().isNotComment);const J=b.find((([,b])=>b.name===ee));if(J){S.addBuildProperty("ENABLE_BITCODE","NO")}else{const S=[...new Set(b.map((([,b])=>`"${b.name}"`)))].sort();(0,_warnings().addWarningIOS)("ios.bitcode",`No configuration named "${ee}". Expected one of: ${S.join(", ")}.`)}}S.addBuildProperty("ENABLE_BITCODE",te?"YES":"NO",ee);return S}},89421:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.createBuildPodfilePropsConfigPlugin=createBuildPodfilePropsConfigPlugin;S.updateIosBuildPropertiesFromConfig=updateIosBuildPropertiesFromConfig;S.updateIosBuildProperty=updateIosBuildProperty;S.withJsEnginePodfileProps=void 0;function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function createBuildPodfilePropsConfigPlugin(b,S){const withUnknown=(S,J)=>(0,_iosPlugins().withPodfileProperties)(S,(S=>{S.modResults=updateIosBuildPropertiesFromConfig(J??S,S.modResults,b);return S}));if(S){Object.defineProperty(withUnknown,"name",{value:S})}return withUnknown}const ee=S.withJsEnginePodfileProps=createBuildPodfilePropsConfigPlugin([{propName:"expo.jsEngine",propValueGetter:b=>b.ios?.jsEngine??b.jsEngine??"hermes"}],"withJsEnginePodfileProps");function updateIosBuildPropertiesFromConfig(b,S,J){for(const ee of J){const J=ee.propValueGetter(b);updateIosBuildProperty(S,ee.propName,J)}return S}function updateIosBuildProperty(b,S,J,ee){if(J){b[S]=J}else if(ee?.removePropWhenValueIsNull){delete b[S]}return b}},14598:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getApplicationTargetNameForSchemeAsync=getApplicationTargetNameForSchemeAsync;S.getArchiveBuildConfigurationForSchemeAsync=getArchiveBuildConfigurationForSchemeAsync;S.getRunnableSchemesFromXcodeproj=getRunnableSchemesFromXcodeproj;S.getSchemesFromXcodeproj=getSchemesFromXcodeproj;function _Paths(){const b=J(63684);_Paths=function(){return b};return b}function _Target(){const b=J(7608);_Target=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _XML(){const b=J(78853);_XML=function(){return b};return b}function getSchemesFromXcodeproj(b){return(0,_Paths().findSchemeNames)(b)}function getRunnableSchemesFromXcodeproj(b,{configuration:S="Debug"}={}){const J=(0,_Xcodeproj().getPbxproj)(b);return(0,_Target().findSignableTargets)(J).map((([,b])=>{let ee="iOS";const te=(0,_Xcodeproj().unquote)(b.productType);if(te===_Target().TargetType.WATCH){ee="watchOS"}else if(te.startsWith(_Target().TargetType.APPLICATION)){const te=J.hash.project.objects.XCConfigurationList[b.buildConfigurationList];if(te){const b=te.buildConfigurations.find((b=>b.comment===S))||te.buildConfigurations[0];if(b?.value){const S=J.hash.project.objects.XCBuildConfiguration?.[b.value];const te=S.buildSettings.SDKROOT;if(te==="appletvos"||"TVOS_DEPLOYMENT_TARGET"in S.buildSettings){ee="tvOS"}else if(te==="iphoneos"){ee="iOS"}}}}return{name:(0,_Xcodeproj().unquote)(b.name),osType:ee,type:(0,_Xcodeproj().unquote)(b.productType)}}))}async function readSchemeAsync(b,S){const J=(0,_Paths().findSchemePaths)(b);const ee=new RegExp(`/${S}.xcscheme`,"i");const te=J.find((b=>ee.exec(b)));if(te){return await(0,_XML().readXMLAsync)({path:te})}else{throw new Error(`scheme '${S}' does not exist, make sure it's marked as shared`)}}async function getApplicationTargetNameForSchemeAsync(b,S){const J=await readSchemeAsync(b,S);const ee=J?.Scheme?.BuildAction?.[0]?.BuildActionEntries?.[0]?.BuildActionEntry;const te=ee?.length===1?getBlueprintName(ee[0]):getBlueprintName(ee?.find((b=>b.BuildableReference?.[0]?.["$"]?.BuildableName?.endsWith(".app"))));if(!te){throw new Error(`${S}.xcscheme seems to be corrupted`)}return te}async function getArchiveBuildConfigurationForSchemeAsync(b,S){const J=await readSchemeAsync(b,S);const ee=J?.Scheme?.ArchiveAction?.[0]?.["$"]?.buildConfiguration;if(!ee){throw new Error(`${S}.xcscheme seems to be corrupted`)}return ee}function getBlueprintName(b){return b?.BuildableReference?.[0]?.["$"]?.BlueprintName}},48285:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getBundleIdentifier=getBundleIdentifier;S.getBundleIdentifierFromPbxproj=getBundleIdentifierFromPbxproj;S.resetAllPlistBundleIdentifiers=resetAllPlistBundleIdentifiers;S.resetPlistBundleIdentifier=resetPlistBundleIdentifier;S.setBundleIdentifier=setBundleIdentifier;S.setBundleIdentifierForPbxproj=setBundleIdentifierForPbxproj;S.updateBundleIdentifierForPbxproj=updateBundleIdentifierForPbxproj;S.withBundleIdentifier=void 0;function _plist(){const b=_interopRequireDefault(J(83681));_plist=function(){return b};return b}function _assert(){const b=_interopRequireDefault(J(39491));_assert=function(){return b};return b}function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _xcode(){const b=_interopRequireDefault(J(49658));_xcode=function(){return b};return b}function _Paths(){const b=J(63684);_Paths=function(){return b};return b}function _Target(){const b=J(7608);_Target=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _string(){const b=J(35996);_string=function(){return b};return b}function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const withBundleIdentifier=(b,{bundleIdentifier:S})=>(0,_iosPlugins().withXcodeProject)(b,(async b=>{const J=S??b.ios?.bundleIdentifier;(0,_assert().default)(J,"`bundleIdentifier` must be defined in the app config (`ios.bundleIdentifier`) or passed to the plugin `withBundleIdentifier`.");b.modResults=updateBundleIdentifierForPbxprojObject(b.modResults,J,false);return b}));S.withBundleIdentifier=withBundleIdentifier;function getBundleIdentifier(b){return b.ios?.bundleIdentifier??null}function setBundleIdentifier(b,S){const J=getBundleIdentifier(b);if(!J){return S}return{...S,CFBundleIdentifier:J}}function getBundleIdentifierFromPbxproj(b,{targetName:S,buildConfiguration:J="Release"}={}){let ee;try{ee=(0,_Paths().getPBXProjectPath)(b)}catch{return null}const te=_xcode().default.project(ee);te.parseSync();const re=(0,_Target().getXCBuildConfigurationFromPbxproj)(te,{targetName:S,buildConfiguration:J});if(!re){return null}return getProductBundleIdentifierFromBuildConfiguration(re)}function getProductBundleIdentifierFromBuildConfiguration(b){const S=b.buildSettings.PRODUCT_BUNDLE_IDENTIFIER;if(S){const J=(0,_string().trimQuotes)(S);return(0,_Xcodeproj().resolveXcodeBuildSetting)(J,(S=>b.buildSettings[S]))}else{return null}}function updateBundleIdentifierForPbxproj(b,S,J=true){const ee=_xcode().default.project(b);ee.parseSync();_fs().default.writeFileSync(b,updateBundleIdentifierForPbxprojObject(ee,S,J).writeSync())}function updateBundleIdentifierForPbxprojObject(b,S,J=true){const[,ee]=(0,_Target().findFirstNativeTarget)(b);(0,_Xcodeproj().getBuildConfigurationsForListId)(b,ee.buildConfigurationList).forEach((([,b])=>{if(b.buildSettings.PRODUCT_BUNDLE_IDENTIFIER===S){return}b.buildSettings.PRODUCT_BUNDLE_IDENTIFIER=`"${S}"`;if(J){const J=S.split(".").pop();if(!J?.includes("$")){b.buildSettings.PRODUCT_NAME=J}}}));return b}function setBundleIdentifierForPbxproj(b,S,J=true){let ee=[];try{ee=(0,_Paths().getAllPBXProjectPaths)(b)}catch{}for(const b of ee){updateBundleIdentifierForPbxproj(b,S,J)}}const ee="$(PRODUCT_BUNDLE_IDENTIFIER)";function resetAllPlistBundleIdentifiers(b){const S=(0,_Paths().getAllInfoPlistPaths)(b);for(const b of S){resetPlistBundleIdentifier(b)}}function resetPlistBundleIdentifier(b){const S=_fs().default.readFileSync(b,"utf8");const J=_plist().default.parse(S);if(J.CFBundleIdentifier){if(J.CFBundleIdentifier===ee)return;const te={pretty:true,indent:`\t`};const re=_plist().default.build({...J,CFBundleIdentifier:ee},te);if(re!==S){_fs().default.writeFileSync(b,re)}}}},78525:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.formatDeviceFamilies=formatDeviceFamilies;S.getDeviceFamilies=getDeviceFamilies;S.getIsTabletOnly=getIsTabletOnly;S.getSupportsTablet=getSupportsTablet;S.setDeviceFamily=setDeviceFamily;S.withDeviceFamily=void 0;function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}const withDeviceFamily=b=>(0,_iosPlugins().withXcodeProject)(b,(async b=>{b.modResults=await setDeviceFamily(b,{project:b.modResults});return b}));S.withDeviceFamily=withDeviceFamily;function getSupportsTablet(b){return!!b.ios?.supportsTablet}function getIsTabletOnly(b){return!!b?.ios?.isTabletOnly}function getDeviceFamilies(b){const S=getSupportsTablet(b);const J=getIsTabletOnly(b);if(J&&b.ios?.supportsTablet===false){(0,_warnings().addWarningIOS)("ios.supportsTablet",`Found contradictory values: \`{ ios: { isTabletOnly: true, supportsTablet: false } }\`. Using \`{ isTabletOnly: true }\`.`)}if(J){return[2]}else if(S){return[1,2]}else{return[1]}}function formatDeviceFamilies(b){return`"${b.join(",")}"`}function setDeviceFamily(b,{project:S}){const J=formatDeviceFamilies(getDeviceFamilies(b));const ee=S.pbxXCBuildConfigurationSection();for(const{buildSettings:b}of Object.values(ee||{})){if(typeof b?.PRODUCT_NAME!=="undefined"){if(typeof b?.TVOS_DEPLOYMENT_TARGET!=="undefined"){b.TARGETED_DEVICE_FAMILY="3"}else{b.TARGETED_DEVICE_FAMILY=J}}}return S}},94431:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.ensureApplicationTargetEntitlementsFileConfigured=ensureApplicationTargetEntitlementsFileConfigured;S.getEntitlementsPath=getEntitlementsPath;S.setAssociatedDomains=setAssociatedDomains;S.withAssociatedDomains=void 0;function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _slash(){const b=_interopRequireDefault(J(63645));_slash=function(){return b};return b}function _Target(){const b=J(7608);_Target=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _string(){const b=J(35996);_string=function(){return b};return b}function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee=S.withAssociatedDomains=(0,_iosPlugins().createEntitlementsPlugin)(setAssociatedDomains,"withAssociatedDomains");function setAssociatedDomains(b,{"com.apple.developer.associated-domains":S,...J}){if(b.ios?.associatedDomains){return{...J,"com.apple.developer.associated-domains":b.ios.associatedDomains}}return J}function getEntitlementsPath(b,{targetName:S,buildConfiguration:J="Release"}={}){const ee=(0,_Xcodeproj().getPbxproj)(b);const te=(0,_Target().getXCBuildConfigurationFromPbxproj)(ee,{targetName:S,buildConfiguration:J});if(!te){return null}const re=getEntitlementsPathFromBuildConfiguration(b,te);return re&&_fs().default.existsSync(re)?re:null}function getEntitlementsPathFromBuildConfiguration(b,S){const J=S?.buildSettings?.CODE_SIGN_ENTITLEMENTS;if(J){return _path().default.normalize(_path().default.join(b,"ios",(0,_string().trimQuotes)(J)))}else{return null}}function ensureApplicationTargetEntitlementsFileConfigured(b){const S=(0,_Xcodeproj().getPbxproj)(b);const J=(0,_Xcodeproj().getProjectName)(b);const ee=(0,_Xcodeproj().getProductName)(S);const[,re]=(0,_Target().findFirstNativeTarget)(S);const ne=(0,_Xcodeproj().getBuildConfigurationsForListId)(S,re.buildConfigurationList);let ie=false;for(const[,S]of ne){const re=getEntitlementsPathFromBuildConfiguration(b,S);if(re&&_fs().default.existsSync(re)){return}ie=true;const ne=(0,_slash().default)(_path().default.join(J,`${ee}.entitlements`));const oe=_path().default.normalize(_path().default.join(b,"ios",ne));_fs().default.mkdirSync(_path().default.dirname(oe),{recursive:true});if(!_fs().default.existsSync(oe)){_fs().default.writeFileSync(oe,te)}S.buildSettings.CODE_SIGN_ENTITLEMENTS=ne}if(ie){_fs().default.writeFileSync(S.filepath,S.writeSync())}}const te=`\n<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n<plist version="1.0">\n<dict>\n</dict>\n</plist>\n`},3436:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getGoogleServicesFile=getGoogleServicesFile;S.getGoogleSignInReversedClientId=getGoogleSignInReversedClientId;S.setGoogleConfig=setGoogleConfig;S.setGoogleServicesFile=setGoogleServicesFile;S.setGoogleSignInReversedClientId=setGoogleSignInReversedClientId;S.withGoogleServicesFile=S.withGoogle=void 0;function _plist(){const b=_interopRequireDefault(J(83681));_plist=function(){return b};return b}function _assert(){const b=_interopRequireDefault(J(39491));_assert=function(){return b};return b}function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _Paths(){const b=J(63684);_Paths=function(){return b};return b}function _Scheme(){const b=J(27903);_Scheme=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const withGoogle=b=>(0,_iosPlugins().withInfoPlist)(b,(b=>{b.modResults=setGoogleConfig(b,b.modResults,b.modRequest);return b}));S.withGoogle=withGoogle;const withGoogleServicesFile=b=>(0,_iosPlugins().withXcodeProject)(b,(b=>{b.modResults=setGoogleServicesFile(b,{projectRoot:b.modRequest.projectRoot,project:b.modResults});return b}));S.withGoogleServicesFile=withGoogleServicesFile;function readGoogleServicesInfoPlist(b,{projectRoot:S}){const J=_path().default.resolve(S,b);const ee=_fs().default.readFileSync(J,"utf8");(0,_assert().default)(ee,"GoogleService-Info.plist is empty");return _plist().default.parse(ee)}function getGoogleSignInReversedClientId(b,S){const J=getGoogleServicesFile(b);if(J===null){return null}const ee=readGoogleServicesInfoPlist(J,S);return ee.REVERSED_CLIENT_ID??null}function getGoogleServicesFile(b){return b.ios?.googleServicesFile??null}function setGoogleSignInReversedClientId(b,S,J){const ee=getGoogleSignInReversedClientId(b,J);if(ee===null){return S}return(0,_Scheme().appendScheme)(ee,S)}function setGoogleConfig(b,S,J){S=setGoogleSignInReversedClientId(b,S,J);return S}function setGoogleServicesFile(b,{projectRoot:S,project:J}){const ee=getGoogleServicesFile(b);if(ee===null){return J}const te=_path().default.resolve(S,ee);_fs().default.copyFileSync(te,_path().default.join((0,_Paths().getSourceRoot)(S),"GoogleService-Info.plist"));const re=(0,_Xcodeproj().getProjectName)(S);const ne=`${re}/GoogleService-Info.plist`;if(!J.hasFile(ne)){J=(0,_Xcodeproj().addResourceFileToGroup)({filepath:ne,groupName:re,project:J,isBuildFile:true,verbose:true})}return J}},84695:()=>{"use strict"},3949:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getLocales=getLocales;S.getResolvedLocalesAsync=getResolvedLocalesAsync;S.setLocalesAsync=setLocalesAsync;S.withLocales=void 0;function _jsonFile(){const b=_interopRequireDefault(J(66282));_jsonFile=function(){return b};return b}function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _path(){const b=J(71017);_path=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const withLocales=b=>(0,_iosPlugins().withXcodeProject)(b,(async b=>{b.modResults=await setLocalesAsync(b,{projectRoot:b.modRequest.projectRoot,project:b.modResults});return b}));S.withLocales=withLocales;function getLocales(b){return b.locales??null}async function setLocalesAsync(b,{projectRoot:S,project:J}){const ee=getLocales(b);if(!ee){return J}const te=await getResolvedLocalesAsync(S,ee);const re=(0,_Xcodeproj().getProjectName)(S);const ne=(0,_path().join)(S,"ios",re,"Supporting");const ie="InfoPlist.strings";for(const[b,S]of Object.entries(te)){const ee=(0,_path().join)(ne,`${b}.lproj`);await _fs().default.promises.mkdir(ee,{recursive:true});const te=(0,_path().join)(ee,ie);const oe=[];for(const[b,J]of Object.entries(S)){oe.push(`${b} = "${J}";`)}await _fs().default.promises.writeFile(te,oe.join("\n"));const se=`${re}/Supporting/${b}.lproj`;const ae=(0,_Xcodeproj().ensureGroupRecursively)(J,se);if(!ae?.children.some((({comment:b})=>b===ie))){J=(0,_Xcodeproj().addResourceFileToGroup)({filepath:(0,_path().relative)(ne,te),groupName:se,project:J,isBuildFile:true,verbose:true})}}return J}async function getResolvedLocalesAsync(b,S){const J={};for(const[ee,te]of Object.entries(S)){if(typeof te==="string"){try{J[ee]=await _jsonFile().default.readAsync((0,_path().join)(b,te))}catch{(0,_warnings().addWarningIOS)(`locales.${ee}`,`Failed to parse JSON of locale file for language: ${ee}`,"https://docs.expo.dev/distribution/app-stores/#localizing-your-ios-app")}}else{J[ee]=te}}return J}},74105:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.MATCH_INIT=void 0;S.addGoogleMapsAppDelegateImport=addGoogleMapsAppDelegateImport;S.addGoogleMapsAppDelegateInit=addGoogleMapsAppDelegateInit;S.addMapsCocoaPods=addMapsCocoaPods;S.getGoogleMapsApiKey=getGoogleMapsApiKey;S.removeGoogleMapsAppDelegateImport=removeGoogleMapsAppDelegateImport;S.removeGoogleMapsAppDelegateInit=removeGoogleMapsAppDelegateInit;S.removeMapsCocoaPods=removeMapsCocoaPods;S.setGoogleMapsApiKey=setGoogleMapsApiKey;S.withMaps=void 0;function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _resolveFrom(){const b=_interopRequireDefault(J(12753));_resolveFrom=function(){return b};return b}function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _generateCode(){const b=J(50017);_generateCode=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee=J(67984)("expo:config-plugins:ios:maps");const te=S.MATCH_INIT=/-\s*\(BOOL\)\s*application:\s*\(UIApplication\s*\*\s*\)\s*\w+\s+didFinishLaunchingWithOptions:/g;const re=(0,_iosPlugins().createInfoPlistPlugin)(setGoogleMapsApiKey,"withGoogleMapsKey");const withMaps=b=>{b=re(b);const S=getGoogleMapsApiKey(b);ee("Google Maps API Key:",S);b=withMapsCocoaPods(b,{useGoogleMaps:!!S});b=withGoogleMapsAppDelegate(b,{apiKey:S});return b};S.withMaps=withMaps;function getGoogleMapsApiKey(b){return b.ios?.config?.googleMapsApiKey??null}function setGoogleMapsApiKey(b,{GMSApiKey:S,...J}){const ee=getGoogleMapsApiKey(b);if(ee===null){return J}return{...J,GMSApiKey:ee}}function addGoogleMapsAppDelegateImport(b){const S=[];S.push("#if __has_include(<GoogleMaps/GoogleMaps.h>)","#import <GoogleMaps/GoogleMaps.h>","#endif");return(0,_generateCode().mergeContents)({tag:"react-native-maps-import",src:b,newSrc:S.join("\n"),anchor:/#import "AppDelegate\.h"/,offset:1,comment:"//"})}function removeGoogleMapsAppDelegateImport(b){return(0,_generateCode().removeContents)({tag:"react-native-maps-import",src:b})}function addGoogleMapsAppDelegateInit(b,S){const J=[];J.push("#if __has_include(<GoogleMaps/GoogleMaps.h>)",` [GMSServices provideAPIKey:@"${S}"];`,"#endif");return(0,_generateCode().mergeContents)({tag:"react-native-maps-init",src:b,newSrc:J.join("\n"),anchor:te,offset:2,comment:"//"})}function removeGoogleMapsAppDelegateInit(b){return(0,_generateCode().removeContents)({tag:"react-native-maps-init",src:b})}function addMapsCocoaPods(b){return(0,_generateCode().mergeContents)({tag:"react-native-maps",src:b,newSrc:` pod 'react-native-google-maps', path: File.dirname(\`node --print "require.resolve('react-native-maps/package.json')"\`)`,anchor:/use_native_modules/,offset:0,comment:"#"})}function removeMapsCocoaPods(b){return(0,_generateCode().removeContents)({tag:"react-native-maps",src:b})}function isReactNativeMapsInstalled(b){const S=_resolveFrom().default.silent(b,"react-native-maps/package.json");return S?_path().default.dirname(S):null}function isReactNativeMapsAutolinked(b){return true}const withMapsCocoaPods=(b,{useGoogleMaps:S})=>(0,_iosPlugins().withPodfile)(b,(async b=>{const J=isReactNativeMapsInstalled(b.modRequest.projectRoot);const te=isReactNativeMapsAutolinked(b);ee("Is Expo Autolinked:",te);ee("react-native-maps path:",J);let re;if(te&&J&&S){try{re=addMapsCocoaPods(b.modResults.contents)}catch(b){if(b.code==="ERR_NO_MATCH"){throw new Error(`Cannot add react-native-maps to the project's ios/Podfile because it's malformed. Please report this with a copy of your project Podfile.`)}throw b}}else{re=removeMapsCocoaPods(b.modResults.contents)}if(re.didMerge||re.didClear){b.modResults.contents=re.contents}return b}));const withGoogleMapsAppDelegate=(b,{apiKey:S})=>(0,_iosPlugins().withAppDelegate)(b,(b=>{if(["objc","objcpp"].includes(b.modResults.language)){if(S&&isReactNativeMapsAutolinked(b)&&isReactNativeMapsInstalled(b.modRequest.projectRoot)){try{b.modResults.contents=addGoogleMapsAppDelegateImport(b.modResults.contents).contents;b.modResults.contents=addGoogleMapsAppDelegateInit(b.modResults.contents,S).contents}catch(b){if(b.code==="ERR_NO_MATCH"){throw new Error(`Cannot add Google Maps to the project's AppDelegate because it's malformed. Please report this with a copy of your project AppDelegate.`)}throw b}}else{b.modResults.contents=removeGoogleMapsAppDelegateImport(b.modResults.contents).contents;b.modResults.contents=removeGoogleMapsAppDelegateInit(b.modResults.contents).contents}}else{throw new Error(`Cannot setup Google Maps because the project AppDelegate is not a supported language: ${b.modResults.language}`)}return b}))},96867:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getName=getName;S.setDisplayName=setDisplayName;S.setName=setName;S.setProductName=setProductName;S.withProductName=S.withName=S.withDisplayName=void 0;function _Target(){const b=J(7608);_Target=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}const ee=S.withDisplayName=(0,_iosPlugins().createInfoPlistPluginWithPropertyGuard)(setDisplayName,{infoPlistProperty:"CFBundleDisplayName",expoConfigProperty:"name"},"withDisplayName");const te=S.withName=(0,_iosPlugins().createInfoPlistPluginWithPropertyGuard)(setName,{infoPlistProperty:"CFBundleName",expoConfigProperty:"name"},"withName");const withProductName=b=>(0,_iosPlugins().withXcodeProject)(b,(b=>{b.modResults=setProductName(b,b.modResults);return b}));S.withProductName=withProductName;function getName(b){return typeof b.name==="string"?b.name:null}function setDisplayName(b,{CFBundleDisplayName:S,...J}){let ee=null;if(typeof b==="string"){ee=b}else{ee=getName(b)}if(!ee){return J}return{...J,CFBundleDisplayName:ee}}function setName(b,{CFBundleName:S,...J}){const ee=getName(b);if(!ee){return J}return{...J,CFBundleName:ee}}function setProductName(b,S){const J=(0,_Xcodeproj().sanitizedName)(getName(b)??"");if(!J){return S}const ee=ensureQuotes(J);const[,te]=(0,_Target().findFirstNativeTarget)(S);(0,_Xcodeproj().getBuildConfigurationsForListId)(S,te.buildConfigurationList).forEach((([,b])=>{b.buildSettings.PRODUCT_NAME=ee}));return S}const ensureQuotes=b=>{if(!b.match(/^['"]/)){return`"${b}"`}return b}},74136:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.PORTRAIT_ORIENTATIONS=S.LANDSCAPE_ORIENTATIONS=void 0;S.getOrientation=getOrientation;S.setOrientation=setOrientation;S.withOrientation=void 0;function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}const ee=S.withOrientation=(0,_iosPlugins().createInfoPlistPluginWithPropertyGuard)(setOrientation,{infoPlistProperty:"UISupportedInterfaceOrientations",expoConfigProperty:"orientation"},"withOrientation");function getOrientation(b){return b.orientation??null}const te=S.PORTRAIT_ORIENTATIONS=["UIInterfaceOrientationPortrait","UIInterfaceOrientationPortraitUpsideDown"];const re=S.LANDSCAPE_ORIENTATIONS=["UIInterfaceOrientationLandscapeLeft","UIInterfaceOrientationLandscapeRight"];function getUISupportedInterfaceOrientations(b){if(b==="portrait"){return te}else if(b==="landscape"){return re}else{return[...te,...re]}}function setOrientation(b,S){const J=getOrientation(b);return{...S,UISupportedInterfaceOrientations:getUISupportedInterfaceOrientations(J)}}},63684:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.findSchemeNames=findSchemeNames;S.findSchemePaths=findSchemePaths;S.getAllEntitlementsPaths=getAllEntitlementsPaths;S.getAllInfoPlistPaths=getAllInfoPlistPaths;S.getAllPBXProjectPaths=getAllPBXProjectPaths;S.getAllXcodeProjectPaths=getAllXcodeProjectPaths;S.getAppDelegate=getAppDelegate;S.getAppDelegateFilePath=getAppDelegateFilePath;S.getAppDelegateHeaderFilePath=getAppDelegateHeaderFilePath;S.getAppDelegateObjcHeaderFilePath=getAppDelegateObjcHeaderFilePath;S.getEntitlementsPath=getEntitlementsPath;S.getExpoPlistPath=getExpoPlistPath;S.getFileInfo=getFileInfo;S.getInfoPlistPath=getInfoPlistPath;S.getPBXProjectPath=getPBXProjectPath;S.getPodfilePath=getPodfilePath;S.getSourceRoot=getSourceRoot;S.getSupportingPath=getSupportingPath;S.getXcodeProjectPath=getXcodeProjectPath;function _fs(){const b=J(57147);_fs=function(){return b};return b}function _glob(){const b=J(17682);_glob=function(){return b};return b}function path(){const b=_interopRequireWildcard(J(71017));path=function(){return b};return b}function Entitlements(){const b=_interopRequireWildcard(J(94431));Entitlements=function(){return b};return b}function _errors(){const b=J(13857);_errors=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}const ee=["**/@(Carthage|Pods|vendor|node_modules)/**"];function getAppDelegateHeaderFilePath(b){const[S,...J]=(0,_glob().sync)("ios/*/AppDelegate.h",{absolute:true,cwd:b,ignore:ee});if(!S){throw new(_errors().UnexpectedError)(`Could not locate a valid AppDelegate header at root: "${b}"`)}if(J.length){warnMultipleFiles({tag:"app-delegate-header",fileName:"AppDelegate",projectRoot:b,using:S,extra:J})}return S}function getAppDelegateFilePath(b){const[S,...J]=(0,_glob().sync)("ios/*/AppDelegate.@(m|mm|swift)",{absolute:true,cwd:b,ignore:ee});if(!S){throw new(_errors().UnexpectedError)(`Could not locate a valid AppDelegate at root: "${b}"`)}if(J.length){warnMultipleFiles({tag:"app-delegate",fileName:"AppDelegate",projectRoot:b,using:S,extra:J})}return S}function getAppDelegateObjcHeaderFilePath(b){const[S,...J]=(0,_glob().sync)("ios/*/AppDelegate.h",{absolute:true,cwd:b,ignore:ee});if(!S){throw new(_errors().UnexpectedError)(`Could not locate a valid AppDelegate.h at root: "${b}"`)}if(J.length){warnMultipleFiles({tag:"app-delegate-objc-header",fileName:"AppDelegate.h",projectRoot:b,using:S,extra:J})}return S}function getPodfilePath(b){const[S,...J]=(0,_glob().sync)("ios/Podfile",{absolute:true,cwd:b,ignore:ee});if(!S){throw new(_errors().UnexpectedError)(`Could not locate a valid Podfile at root: "${b}"`)}if(J.length){warnMultipleFiles({tag:"podfile",fileName:"Podfile",projectRoot:b,using:S,extra:J})}return S}function getLanguage(b){const S=path().extname(b);if(!S&&path().basename(b)==="Podfile"){return"rb"}switch(S){case".mm":return"objcpp";case".m":case".h":return"objc";case".swift":return"swift";default:throw new(_errors().UnexpectedError)(`Unexpected iOS file extension: ${S}`)}}function getFileInfo(b){return{path:path().normalize(b),contents:(0,_fs().readFileSync)(b,"utf8"),language:getLanguage(b)}}function getAppDelegate(b){const S=getAppDelegateFilePath(b);return getFileInfo(S)}function getSourceRoot(b){const S=getAppDelegate(b);return path().dirname(S.path)}function findSchemePaths(b){return(0,_glob().sync)("ios/*.xcodeproj/xcshareddata/xcschemes/*.xcscheme",{absolute:true,cwd:b,ignore:ee})}function findSchemeNames(b){const S=findSchemePaths(b);return S.map((b=>path().parse(b).name))}function getAllXcodeProjectPaths(b){const S="ios";const J=(0,_glob().sync)("ios/**/*.xcodeproj",{cwd:b,ignore:ee}).filter((b=>!/test|example|sample/i.test(b)||path().dirname(b)===S)).sort().sort(((b,J)=>{const ee=path().dirname(b)===S;const te=path().dirname(J)===S;if(ee&&te||!ee&&!te){return 0}return ee?-1:1}));if(!J.length){throw new(_errors().UnexpectedError)(`Failed to locate the ios/*.xcodeproj files relative to path "${b}".`)}return J.map((S=>path().join(b,S)))}function getXcodeProjectPath(b){const[S,...J]=getAllXcodeProjectPaths(b);if(J.length){warnMultipleFiles({tag:"xcodeproj",fileName:"*.xcodeproj",projectRoot:b,using:S,extra:J})}return S}function getAllPBXProjectPaths(b){const S=getAllXcodeProjectPaths(b);const J=S.map((b=>path().join(b,"project.pbxproj"))).filter((b=>(0,_fs().existsSync)(b)));if(!J.length){throw new(_errors().UnexpectedError)(`Failed to locate the ios/*.xcodeproj/project.pbxproj files relative to path "${b}".`)}return J}function getPBXProjectPath(b){const[S,...J]=getAllPBXProjectPaths(b);if(J.length){warnMultipleFiles({tag:"project-pbxproj",fileName:"project.pbxproj",projectRoot:b,using:S,extra:J})}return S}function getAllInfoPlistPaths(b){const S=(0,_glob().sync)("ios/*/Info.plist",{absolute:true,cwd:b,ignore:ee}).sort(((b,S)=>b.length-S.length));if(!S.length){throw new(_errors().UnexpectedError)(`Failed to locate Info.plist files relative to path "${b}".`)}return S}function getInfoPlistPath(b){const[S,...J]=getAllInfoPlistPaths(b);if(J.length){warnMultipleFiles({tag:"info-plist",fileName:"Info.plist",projectRoot:b,using:S,extra:J})}return S}function getAllEntitlementsPaths(b){const S=(0,_glob().sync)("ios/*/*.entitlements",{absolute:true,cwd:b,ignore:ee});return S}function getEntitlementsPath(b){return Entitlements().getEntitlementsPath(b)}function getSupportingPath(b){return path().resolve(b,"ios",path().basename(getSourceRoot(b)),"Supporting")}function getExpoPlistPath(b){const S=getSupportingPath(b);return path().join(S,"Expo.plist")}function warnMultipleFiles({tag:b,fileName:S,projectRoot:J,using:ee,extra:te}){const re=J?path().relative(J,ee):ee;const ne=J?te.map((b=>path().relative(J,b))):te;(0,_warnings().addWarningIOS)(`paths-${b}`,`Found multiple ${S} file paths, using "${re}". Ignored paths: ${JSON.stringify(ne)}`)}},73850:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.applyPermissions=applyPermissions;S.createPermissionsPlugin=createPermissionsPlugin;function _debug(){const b=_interopRequireDefault(J(67984));_debug=function(){return b};return b}function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee=(0,_debug().default)("expo:config-plugins:ios:permissions");function applyPermissions(b,S,J){const te=Object.entries(b);if(te.length===0){ee(`No defaults provided: ${JSON.stringify(S)}`)}for(const[b,re]of te){if(S[b]===false){ee(`Deleting "${b}"`);delete J[b]}else{J[b]=S[b]||J[b]||re;ee(`Setting "${b}" to "${J[b]}"`)}}return J}function createPermissionsPlugin(b,S){const withIosPermissions=(S,J)=>(0,_iosPlugins().withInfoPlist)(S,(async S=>{S.modResults=applyPermissions(b,J,S.modResults);return S}));if(S){Object.defineProperty(withIosPermissions,"name",{value:S})}return withIosPermissions}},8262:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.mergePrivacyInfo=mergePrivacyInfo;S.setPrivacyInfo=setPrivacyInfo;S.withPrivacyInfo=withPrivacyInfo;function _plist(){const b=_interopRequireDefault(J(83681));_plist=function(){return b};return b}function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _(){const b=J(36581);_=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function withPrivacyInfo(b){const S=b.ios?.privacyManifests;if(!S){return b}return(0,_().withXcodeProject)(b,(b=>setPrivacyInfo(b,S)))}function setPrivacyInfo(b,S){const{projectRoot:J,platformProjectRoot:ee}=b.modRequest;const te=(0,_Xcodeproj().getProjectName)(J);const re=_path().default.join(ee,te,"PrivacyInfo.xcprivacy");const ne=getFileContents(re);const ie=ne?_plist().default.parse(ne):{};const oe=mergePrivacyInfo(ie,S);const se=_plist().default.build(oe);ensureFileExists(re,se);if(!b.modResults.hasFile(re)){b.modResults=(0,_Xcodeproj().addResourceFileToGroup)({filepath:re,groupName:te,project:b.modResults,isBuildFile:true,verbose:true})}return b}function getFileContents(b){if(!_fs().default.existsSync(b)){return null}return _fs().default.readFileSync(b,{encoding:"utf8"})}function ensureFileExists(b,S){if(!_fs().default.existsSync(_path().default.dirname(b))){_fs().default.mkdirSync(_path().default.dirname(b),{recursive:true})}_fs().default.writeFileSync(b,S)}function mergePrivacyInfo(b,S){let{NSPrivacyAccessedAPITypes:J=[],NSPrivacyCollectedDataTypes:ee=[],NSPrivacyTracking:te=false,NSPrivacyTrackingDomains:re=[]}=structuredClone(b);te=S.NSPrivacyTracking??b.NSPrivacyTracking??false;S.NSPrivacyAccessedAPITypes?.forEach((b=>{const S=J.find((S=>S.NSPrivacyAccessedAPIType===b.NSPrivacyAccessedAPIType));if(!S){J.push(b)}else{S.NSPrivacyAccessedAPITypeReasons=[...new Set(S?.NSPrivacyAccessedAPITypeReasons?.concat(...b.NSPrivacyAccessedAPITypeReasons))]}}));S.NSPrivacyCollectedDataTypes?.forEach((b=>{const S=ee.find((S=>S.NSPrivacyCollectedDataType===b.NSPrivacyCollectedDataType));if(!S){ee.push(b)}else{S.NSPrivacyCollectedDataTypePurposes=[...new Set(S?.NSPrivacyCollectedDataTypePurposes?.concat(...b.NSPrivacyCollectedDataTypePurposes))]}}));re=[...new Set(re.concat(S.NSPrivacyTrackingDomains??[]))];return{NSPrivacyAccessedAPITypes:J,NSPrivacyCollectedDataTypes:ee,NSPrivacyTracking:te,NSPrivacyTrackingDomains:re}}},76320:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.setProvisioningProfileForPbxproj=setProvisioningProfileForPbxproj;function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _Target(){const b=J(7608);_Target=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _string(){const b=J(35996);_string=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function setProvisioningProfileForPbxproj(b,{targetName:S,profileName:J,appleTeamId:ee,buildConfiguration:te="Release"}){const re=(0,_Xcodeproj().getPbxproj)(b);const ne=S?(0,_Target().findNativeTargetByName)(re,S):(0,_Target().findFirstNativeTarget)(re);const[ie,oe]=ne;const se=ensureQuotes(ee);(0,_Xcodeproj().getBuildConfigurationsForListId)(re,oe.buildConfigurationList).filter((([,b])=>(0,_string().trimQuotes)(b.name)===te)).forEach((([,b])=>{b.buildSettings.PROVISIONING_PROFILE_SPECIFIER=`"${J}"`;b.buildSettings.DEVELOPMENT_TEAM=se;b.buildSettings.CODE_SIGN_IDENTITY='"iPhone Distribution"';b.buildSettings.CODE_SIGN_STYLE="Manual"}));Object.entries((0,_Xcodeproj().getProjectSection)(re)).filter(_Xcodeproj().isNotComment).forEach((([,b])=>{if(!b.attributes.TargetAttributes[ie]){b.attributes.TargetAttributes[ie]={}}b.attributes.TargetAttributes[ie].DevelopmentTeam=se;b.attributes.TargetAttributes[ie].ProvisioningStyle="Manual"}));_fs().default.writeFileSync(re.filepath,re.writeSync())}const ensureQuotes=b=>{if(!b.match(/^['"]/)){return`"${b}"`}return b}},63367:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getRequiresFullScreen=getRequiresFullScreen;S.setRequiresFullScreen=setRequiresFullScreen;S.withRequiresFullScreen=void 0;function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _versions(){const b=J(194);_versions=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}const ee=S.withRequiresFullScreen=(0,_iosPlugins().createInfoPlistPlugin)(setRequiresFullScreen,"withRequiresFullScreen");function getRequiresFullScreen(b){if(b.ios?.hasOwnProperty("requireFullScreen")){return!!b.ios.requireFullScreen}else{if((0,_versions().gteSdkVersion)(b,"43.0.0")){return false}return true}}const te="UISupportedInterfaceOrientations~ipad";const re=["UIInterfaceOrientationPortrait","UIInterfaceOrientationPortraitUpsideDown","UIInterfaceOrientationLandscapeLeft","UIInterfaceOrientationLandscapeRight"];function isStringArray(b){return Array.isArray(b)&&b.every((b=>typeof b==="string"))}function hasMinimumOrientations(b){return re.every((S=>b.includes(S)))}function resolveExistingIpadInterfaceOrientations(b){if(isStringArray(b)&&b.length&&!hasMinimumOrientations(b)){const S=b.join(", ");(0,_warnings().addWarningIOS)("ios.requireFullScreen",`iPad multitasking requires all \`${te}\` orientations to be defined in the Info.plist. The Info.plist currently defines values that are incompatible with multitasking, these will be overwritten to prevent submission failure. Existing: ${S}`);return b}return[]}function setRequiresFullScreen(b,S){const J=getRequiresFullScreen(b);if(!J){const b=resolveExistingIpadInterfaceOrientations(S[te]);S[te]=[...new Set(b.concat(re))]}return{...S,UIRequiresFullScreen:J}}},27903:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.appendScheme=appendScheme;S.getScheme=getScheme;S.getSchemesFromPlist=getSchemesFromPlist;S.hasScheme=hasScheme;S.removeScheme=removeScheme;S.setScheme=setScheme;S.withScheme=void 0;function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}const ee=S.withScheme=(0,_iosPlugins().createInfoPlistPluginWithPropertyGuard)(setScheme,{infoPlistProperty:"CFBundleURLTypes",expoConfigProperty:"scheme"},"withScheme");function getScheme(b){if(Array.isArray(b.scheme)){const validate=b=>typeof b==="string";return b.scheme.filter(validate)}else if(typeof b.scheme==="string"){return[b.scheme]}return[]}function setScheme(b,S){const J=[...getScheme(b),...getScheme(b.ios??{})];if(b.ios?.bundleIdentifier){J.push(b.ios.bundleIdentifier)}if(J.length===0){return S}return{...S,CFBundleURLTypes:[{CFBundleURLSchemes:J}]}}function appendScheme(b,S){if(!b){return S}const J=S.CFBundleURLTypes??[];if(J?.some((({CFBundleURLSchemes:S})=>S.includes(b)))){return S}return{...S,CFBundleURLTypes:[...J,{CFBundleURLSchemes:[b]}]}}function removeScheme(b,S){if(!b){return S}if(!S.CFBundleURLTypes){return S}S.CFBundleURLTypes=S.CFBundleURLTypes.map((S=>{const J=S.CFBundleURLSchemes.indexOf(b);if(J>-1){S.CFBundleURLSchemes.splice(J,1);if(S.CFBundleURLSchemes.length===0){return undefined}}return S})).filter(Boolean);return S}function hasScheme(b,S){const J=S.CFBundleURLTypes;if(!Array.isArray(J))return false;return J?.some((({CFBundleURLSchemes:S})=>Array.isArray(S)?S.includes(b):false))}function getSchemesFromPlist(b){if(Array.isArray(b.CFBundleURLTypes)){return b.CFBundleURLTypes.reduce(((b,{CFBundleURLSchemes:S})=>{if(Array.isArray(S)){return[...b,...S]}return b}),[])}return[]}},42630:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.createBridgingHeaderFile=createBridgingHeaderFile;S.ensureSwiftBridgingHeaderSetup=ensureSwiftBridgingHeaderSetup;S.getDesignatedSwiftBridgingHeaderFileReference=getDesignatedSwiftBridgingHeaderFileReference;S.linkBridgingHeaderFile=linkBridgingHeaderFile;S.withSwiftBridgingHeader=S.withNoopSwiftFile=void 0;function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _Paths(){const b=J(63684);_Paths=function(){return b};return b}function _XcodeProjectFile(){const b=J(59577);_XcodeProjectFile=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee=`//\n// Use this file to import your target's public headers that you would like to expose to Swift.\n//\n`;const withSwiftBridgingHeader=b=>(0,_iosPlugins().withXcodeProject)(b,(b=>{b.modResults=ensureSwiftBridgingHeaderSetup({project:b.modResults,projectRoot:b.modRequest.projectRoot});return b}));S.withSwiftBridgingHeader=withSwiftBridgingHeader;function ensureSwiftBridgingHeaderSetup({projectRoot:b,project:S}){if(shouldCreateSwiftBridgingHeader({projectRoot:b,project:S})){const J=(0,_Xcodeproj().getProjectName)(b);const ee=createBridgingHeaderFileName(J);S=createBridgingHeaderFile({project:S,projectName:J,projectRoot:b,bridgingHeader:ee});S=linkBridgingHeaderFile({project:S,bridgingHeader:_path().default.join(J,ee)})}return S}function shouldCreateSwiftBridgingHeader({projectRoot:b,project:S}){const J=(0,_Paths().getAppDelegate)(b).language!=="swift";return J&&!getDesignatedSwiftBridgingHeaderFileReference({project:S})}function createBridgingHeaderFileName(b){return`${b}-Bridging-Header.h`}function getDesignatedSwiftBridgingHeaderFileReference({project:b}){const S=b.pbxXCBuildConfigurationSection();for(const{buildSettings:b}of Object.values(S||{})){if(typeof b?.PRODUCT_NAME!=="undefined"){if(typeof b.SWIFT_OBJC_BRIDGING_HEADER==="string"&&b.SWIFT_OBJC_BRIDGING_HEADER){return b.SWIFT_OBJC_BRIDGING_HEADER}}}return null}function linkBridgingHeaderFile({project:b,bridgingHeader:S}){const J=b.pbxXCBuildConfigurationSection();for(const{buildSettings:b}of Object.values(J||{})){if(typeof b?.PRODUCT_NAME!=="undefined"){b.SWIFT_OBJC_BRIDGING_HEADER=S}}return b}function createBridgingHeaderFile({projectRoot:b,projectName:S,project:J,bridgingHeader:te}){const re=_path().default.join((0,_Paths().getSourceRoot)(b),te);if(!_fs().default.existsSync(re)){_fs().default.writeFileSync(re,ee,"utf8")}const ne=`${S}/${te}`;if(!J.hasFile(ne)){J=(0,_Xcodeproj().addResourceFileToGroup)({filepath:ne,groupName:S,project:J,isBuildFile:false,verbose:false})}return J}const withNoopSwiftFile=b=>(0,_XcodeProjectFile().withBuildSourceFile)(b,{filePath:"noop-file.swift",contents:["//","// @generated","// A blank Swift file must be created for native modules with Swift files to work correctly.","//",""].join("\n")});S.withNoopSwiftFile=withNoopSwiftFile},7608:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.TargetType=void 0;S.findApplicationTargetWithDependenciesAsync=findApplicationTargetWithDependenciesAsync;S.findFirstNativeTarget=findFirstNativeTarget;S.findNativeTargetByName=findNativeTargetByName;S.findSignableTargets=findSignableTargets;S.getNativeTargets=getNativeTargets;S.getXCBuildConfigurationFromPbxproj=getXCBuildConfigurationFromPbxproj;S.isTargetOfType=isTargetOfType;function _BuildScheme(){const b=J(14598);_BuildScheme=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _string(){const b=J(35996);_string=function(){return b};return b}let ee=S.TargetType=function(b){b["APPLICATION"]="com.apple.product-type.application";b["EXTENSION"]="com.apple.product-type.app-extension";b["WATCH"]="com.apple.product-type.application.watchapp";b["APP_CLIP"]="com.apple.product-type.application.on-demand-install-capable";b["STICKER_PACK_EXTENSION"]="com.apple.product-type.app-extension.messages-sticker-pack";b["FRAMEWORK"]="com.apple.product-type.framework";b["OTHER"]="other";return b}({});function getXCBuildConfigurationFromPbxproj(b,{targetName:S,buildConfiguration:J="Release"}={}){const[,ee]=S?findNativeTargetByName(b,S):findFirstNativeTarget(b);const[,te]=(0,_Xcodeproj().getBuildConfigurationForListIdAndName)(b,{configurationListId:ee.buildConfigurationList,buildConfiguration:J});return te??null}async function findApplicationTargetWithDependenciesAsync(b,S){const J=await(0,_BuildScheme().getApplicationTargetNameForSchemeAsync)(b,S);const te=(0,_Xcodeproj().getPbxproj)(b);const[,re]=findNativeTargetByName(te,J);const ne=getTargetDependencies(te,re);return{name:(0,_string().trimQuotes)(re.name),type:ee.APPLICATION,signable:true,dependencies:ne}}function getTargetDependencies(b,S){if(!S.dependencies||S.dependencies.length===0){return undefined}const J=[ee.FRAMEWORK];return S.dependencies.map((({value:S})=>{const{target:te}=b.getPBXGroupByKeyAndType(S,"PBXTargetDependency");const[,re]=findNativeTargetById(b,te);const ne=isTargetOfType(re,ee.EXTENSION)?ee.EXTENSION:ee.OTHER;return{name:(0,_string().trimQuotes)(re.name),type:ne,signable:!J.some((b=>isTargetOfType(re,b))),dependencies:getTargetDependencies(b,re)}}))}function isTargetOfType(b,S){return(0,_string().trimQuotes)(b.productType)===S}function getNativeTargets(b){const S=b.pbxNativeTargetSection();return Object.entries(S).filter(_Xcodeproj().isNotComment)}function findSignableTargets(b){const S=getNativeTargets(b);const J=[ee.APPLICATION,ee.APP_CLIP,ee.EXTENSION,ee.WATCH,ee.STICKER_PACK_EXTENSION];const te=S.filter((([,b])=>{for(const S of J){if(isTargetOfType(b,S)){return true}}return false}));if(te.length===0){throw new Error(`Could not find any signable targets in project.pbxproj`)}return te}function findFirstNativeTarget(b){const S=getNativeTargets(b);const J=S.filter((([,b])=>isTargetOfType(b,ee.APPLICATION)));if(J.length===0){throw new Error(`Could not find any application target in project.pbxproj`)}return J[0]}function findNativeTargetByName(b,S){const J=getNativeTargets(b);const ee=J.find((([,b])=>(0,_string().trimQuotes)(b.name)===S));if(!ee){throw new Error(`Could not find target '${S}' in project.pbxproj`)}return ee}function findNativeTargetById(b,S){const J=getNativeTargets(b);const ee=J.find((([b])=>b===S));if(!ee){throw new Error(`Could not find target with id '${S}' in project.pbxproj`)}return ee}},10420:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.Config=void 0;S.setUpdatesConfigAsync=setUpdatesConfigAsync;S.setVersionsConfigAsync=setVersionsConfigAsync;S.withUpdates=void 0;function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _Updates(){const b=J(3943);_Updates=function(){return b};return b}let ee=S.Config=function(b){b["ENABLED"]="EXUpdatesEnabled";b["CHECK_ON_LAUNCH"]="EXUpdatesCheckOnLaunch";b["LAUNCH_WAIT_MS"]="EXUpdatesLaunchWaitMs";b["RUNTIME_VERSION"]="EXUpdatesRuntimeVersion";b["UPDATE_URL"]="EXUpdatesURL";b["UPDATES_CONFIGURATION_REQUEST_HEADERS_KEY"]="EXUpdatesRequestHeaders";b["CODE_SIGNING_CERTIFICATE"]="EXUpdatesCodeSigningCertificate";b["CODE_SIGNING_METADATA"]="EXUpdatesCodeSigningMetadata";return b}({});const withUpdates=b=>(0,_iosPlugins().withExpoPlist)(b,(async b=>{const S=b.modRequest.projectRoot;const J=(0,_Updates().getExpoUpdatesPackageVersion)(S);b.modResults=await setUpdatesConfigAsync(S,b,b.modResults,J);return b}));S.withUpdates=withUpdates;async function setUpdatesConfigAsync(b,S,J,te){const re={...J,[ee.ENABLED]:(0,_Updates().getUpdatesEnabled)(S),[ee.CHECK_ON_LAUNCH]:(0,_Updates().getUpdatesCheckOnLaunch)(S,te),[ee.LAUNCH_WAIT_MS]:(0,_Updates().getUpdatesTimeout)(S)};const ne=(0,_Updates().getUpdateUrl)(S);if(ne){re[ee.UPDATE_URL]=ne}else{delete re[ee.UPDATE_URL]}const ie=(0,_Updates().getUpdatesCodeSigningCertificate)(b,S);if(ie){re[ee.CODE_SIGNING_CERTIFICATE]=ie}else{delete re[ee.CODE_SIGNING_CERTIFICATE]}const oe=(0,_Updates().getUpdatesCodeSigningMetadata)(S);if(oe){re[ee.CODE_SIGNING_METADATA]=oe}else{delete re[ee.CODE_SIGNING_METADATA]}const se=(0,_Updates().getUpdatesRequestHeaders)(S);if(se){re[ee.UPDATES_CONFIGURATION_REQUEST_HEADERS_KEY]=se}else{delete re[ee.UPDATES_CONFIGURATION_REQUEST_HEADERS_KEY]}return await setVersionsConfigAsync(b,S,re)}async function setVersionsConfigAsync(b,S,J){const te={...J};const re=await(0,_Updates().getRuntimeVersionNullableAsync)(b,S,"ios");if(!re&&J[ee.RUNTIME_VERSION]){throw new Error("A runtime version is set in your Expo.plist, but is missing from your app.json/app.config.js. Please either set runtimeVersion in your app.json/app.config.js or remove EXUpdatesRuntimeVersion from your Expo.plist.")}if(re){delete te["EXUpdatesSDKVersion"];te[ee.RUNTIME_VERSION]=re}else{delete te["EXUpdatesSDKVersion"];delete te[ee.RUNTIME_VERSION]}return te}},79681:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getUsesNonExemptEncryption=getUsesNonExemptEncryption;S.setUsesNonExemptEncryption=setUsesNonExemptEncryption;S.withUsesNonExemptEncryption=void 0;function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}const ee=S.withUsesNonExemptEncryption=(0,_iosPlugins().createInfoPlistPluginWithPropertyGuard)(setUsesNonExemptEncryption,{infoPlistProperty:"ITSAppUsesNonExemptEncryption",expoConfigProperty:"ios.config.usesNonExemptEncryption"},"withUsesNonExemptEncryption");function getUsesNonExemptEncryption(b){return b?.ios?.config?.usesNonExemptEncryption??null}function setUsesNonExemptEncryption(b,{ITSAppUsesNonExemptEncryption:S,...J}){const ee=getUsesNonExemptEncryption(b);if(ee===null){return J}return{...J,ITSAppUsesNonExemptEncryption:ee}}},1735:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getBuildNumber=getBuildNumber;S.getVersion=getVersion;S.setBuildNumber=setBuildNumber;S.setVersion=setVersion;S.withVersion=S.withBuildNumber=void 0;function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}const ee=S.withVersion=(0,_iosPlugins().createInfoPlistPluginWithPropertyGuard)(setVersion,{infoPlistProperty:"CFBundleShortVersionString",expoConfigProperty:"version"},"withVersion");const te=S.withBuildNumber=(0,_iosPlugins().createInfoPlistPluginWithPropertyGuard)(setBuildNumber,{infoPlistProperty:"CFBundleVersion",expoConfigProperty:"ios.buildNumber"},"withBuildNumber");function getVersion(b){return b.version||"1.0.0"}function setVersion(b,S){return{...S,CFBundleShortVersionString:getVersion(b)}}function getBuildNumber(b){return b.ios?.buildNumber?b.ios.buildNumber:"1"}function setBuildNumber(b,S){return{...S,CFBundleVersion:getBuildNumber(b)}}},59577:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.createBuildSourceFile=createBuildSourceFile;S.withBuildSourceFile=void 0;function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const withBuildSourceFile=(b,{filePath:S,contents:J,overwrite:ee})=>(0,_iosPlugins().withXcodeProject)(b,(b=>{const te=(0,_Xcodeproj().getProjectName)(b.modRequest.projectRoot);b.modResults=createBuildSourceFile({project:b.modResults,nativeProjectRoot:b.modRequest.platformProjectRoot,fileContents:J,filePath:_path().default.join(te,S),overwrite:ee});return b}));S.withBuildSourceFile=withBuildSourceFile;function createBuildSourceFile({project:b,nativeProjectRoot:S,filePath:J,fileContents:ee,overwrite:te}){const re=_path().default.join(S,J);if(te||!_fs().default.existsSync(re)){_fs().default.writeFileSync(re,ee,"utf8")}const ne=_path().default.dirname(J);if(!b.hasFile(J)){b=(0,_Xcodeproj().addBuildSourceFileToGroup)({filepath:J,groupName:ne,project:b})}return b}},41310:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.addObjcImports=addObjcImports;S.findObjcFunctionCodeBlock=findObjcFunctionCodeBlock;S.findObjcInterfaceCodeBlock=findObjcInterfaceCodeBlock;S.findSwiftFunctionCodeBlock=findSwiftFunctionCodeBlock;S.insertContentsInsideObjcFunctionBlock=insertContentsInsideObjcFunctionBlock;S.insertContentsInsideObjcInterfaceBlock=insertContentsInsideObjcInterfaceBlock;S.insertContentsInsideSwiftClassBlock=insertContentsInsideSwiftClassBlock;S.insertContentsInsideSwiftFunctionBlock=insertContentsInsideSwiftFunctionBlock;function _commonCodeMod(){const b=J(80837);_commonCodeMod=function(){return b};return b}function _matchBrackets(){const b=J(62042);_matchBrackets=function(){return b};return b}function addObjcImports(b,S){const J=b.split("\n");const ee=J.findIndex((b=>b.match(/^#import .*$/)));for(const te of S){if(!b.includes(te)){const b=`#import ${te}`;J.splice(ee+1,0,b)}}return J.join("\n")}function findObjcInterfaceCodeBlock(b,S){const J=b.search(new RegExp(`^${S}\\W`,"m"));if(J<0){return null}let ee=b.indexOf("\n@end",J);ee+=5;return{start:J,end:ee,code:b.substring(J,ee)}}function findObjcFunctionCodeBlock(b,S){const J=S.split(":");const ee=J.length-1;let te="^[\\-+]\\s*\\(.+?\\)";if(ee===0){te+=`${J[0]}\\s+`}else{for(let b=0;b<ee;++b){const S=`${J[b]}:\\(.+\\)\\w+`;te+=`${S}\\s+`}}te+="{";let re=b.search(new RegExp(te,"m"));if(re<0){return null}re=b.indexOf("{",re);const ne=(0,_matchBrackets().findMatchingBracketPosition)(b,"{",re);return{start:re,end:ne,code:b.substring(re,ne+1)}}function insertContentsInsideObjcFunctionBlock(b,S,J,ee){return insertContentsInsideFunctionBlock(b,S,J,ee,"objc")}function insertContentsInsideObjcInterfaceBlock(b,S,J,ee){const te=findObjcInterfaceCodeBlock(b,S);if(!te){return b}const{position:re}=ee;if(re==="head"){const S=b.indexOf("\n",te.start);b=(0,_commonCodeMod().insertContentsAtOffset)(b,J,S)}else if(re==="tail"){const S="@end".length;b=(0,_commonCodeMod().insertContentsAtOffset)(b,J,te.end-S)}return b}function findSwiftFunctionCodeBlock(b,S){const J=S.indexOf("(");const ee=S.substring(0,J);const te=S.substring(J+1,S.length-2).split(":");let re=0;const ne=new RegExp(`\\sfunc\\s+${ee}\\(`,"m");let ie=(0,_commonCodeMod().searchFromOffset)(b,ne,re);while(ie>=0){const S=b.indexOf("(",ie);const J=(0,_matchBrackets().findMatchingBracketPosition)(b,"(",S);const ee=b.substring(S+1,J);const oe=ee.split(",").map(parseSwiftFunctionParam);re=J+1;ie=(0,_commonCodeMod().searchFromOffset)(b,ne,re);if(te.length!==oe.length){continue}for(let b=0;b<te.length;++b){if(te[b]!==oe[b].argumentLabel){continue}}const se=b.indexOf("{",J);const ae=(0,_matchBrackets().findMatchingBracketPosition)(b,"{",J);const ue=b.substring(se,ae+1);return{start:se,end:ae,code:ue}}return null}function parseSwiftFunctionParam(b){const S=b.indexOf(":");const[J,ee]=b.substring(0,S).split(/\s+/);const te=b.substring(S+1).trim();return{argumentLabel:J,parameterName:ee,typeString:te}}function insertContentsInsideSwiftClassBlock(b,S,J,ee){const te=b.search(new RegExp(`\\s*${S}.*?[\\(\\{]`));if(te<0){throw new Error(`Unable to find class code block - declaration[${S}]`)}const{position:re}=ee;if(re==="head"){const S=b.indexOf("{",te);b=(0,_commonCodeMod().insertContentsAtOffset)(b,J,S+1)}else if(re==="tail"){const S=(0,_matchBrackets().findMatchingBracketPosition)(b,"{",te);b=(0,_commonCodeMod().insertContentsAtOffset)(b,J,S)}return b}function insertContentsInsideSwiftFunctionBlock(b,S,J,ee){return insertContentsInsideFunctionBlock(b,S,J,ee,"swift")}function insertContentsInsideFunctionBlock(b,S,J,ee,te){const re=te==="objc"?findObjcFunctionCodeBlock(b,S):findSwiftFunctionCodeBlock(b,S);if(!re){return b}const{position:ne}=ee;const ie=" ".repeat(ee.indent??2);if(ne==="head"){b=(0,_commonCodeMod().insertContentsAtOffset)(b,`\n${ie}${J}`,re.start+1)}else if(ne==="tail"){b=(0,_commonCodeMod().insertContentsAtOffset)(b,`\n${ie}${J}`,re.end-1)}else if(ne==="tailBeforeLastReturn"){let S=b.lastIndexOf(" return ",re.end);if(S<0){throw new Error(`Cannot find last return statement:\n${b}`)}S+=1;b=(0,_commonCodeMod().insertContentsAtOffset)(b,`${J}\n${ie}`,S)}return b}},65609:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.Entitlements=S.DeviceFamily=S.BundleIdentifier=S.BuildScheme=S.BuildProperties=S.Bitcode=void 0;Object.defineProperty(S,"ExpoPlist",{enumerable:true,get:function(){return _IosConfig().ExpoPlist}});S.Google=void 0;Object.defineProperty(S,"InfoPlist",{enumerable:true,get:function(){return _IosConfig().InfoPlist}});S.XcodeUtils=S.XcodeProjectFile=S.Version=S.UsesNonExemptEncryption=S.Updates=S.Target=S.Swift=S.Scheme=S.RequiresFullScreen=S.ProvisioningProfile=S.PrivacyInfo=S.Permissions=S.Paths=S.Orientation=S.Name=S.Maps=S.Locales=void 0;function Bitcode(){const b=_interopRequireWildcard(J(56865));Bitcode=function(){return b};return b}Object.defineProperty(S,"Bitcode",{enumerable:true,get:function(){return Bitcode()}});function BuildProperties(){const b=_interopRequireWildcard(J(89421));BuildProperties=function(){return b};return b}Object.defineProperty(S,"BuildProperties",{enumerable:true,get:function(){return BuildProperties()}});function BuildScheme(){const b=_interopRequireWildcard(J(14598));BuildScheme=function(){return b};return b}Object.defineProperty(S,"BuildScheme",{enumerable:true,get:function(){return BuildScheme()}});function BundleIdentifier(){const b=_interopRequireWildcard(J(48285));BundleIdentifier=function(){return b};return b}Object.defineProperty(S,"BundleIdentifier",{enumerable:true,get:function(){return BundleIdentifier()}});function DeviceFamily(){const b=_interopRequireWildcard(J(78525));DeviceFamily=function(){return b};return b}Object.defineProperty(S,"DeviceFamily",{enumerable:true,get:function(){return DeviceFamily()}});function Entitlements(){const b=_interopRequireWildcard(J(94431));Entitlements=function(){return b};return b}Object.defineProperty(S,"Entitlements",{enumerable:true,get:function(){return Entitlements()}});function Google(){const b=_interopRequireWildcard(J(3436));Google=function(){return b};return b}Object.defineProperty(S,"Google",{enumerable:true,get:function(){return Google()}});function _IosConfig(){const b=J(84695);_IosConfig=function(){return b};return b}function Locales(){const b=_interopRequireWildcard(J(3949));Locales=function(){return b};return b}Object.defineProperty(S,"Locales",{enumerable:true,get:function(){return Locales()}});function Maps(){const b=_interopRequireWildcard(J(74105));Maps=function(){return b};return b}Object.defineProperty(S,"Maps",{enumerable:true,get:function(){return Maps()}});function Name(){const b=_interopRequireWildcard(J(96867));Name=function(){return b};return b}Object.defineProperty(S,"Name",{enumerable:true,get:function(){return Name()}});function Orientation(){const b=_interopRequireWildcard(J(74136));Orientation=function(){return b};return b}Object.defineProperty(S,"Orientation",{enumerable:true,get:function(){return Orientation()}});function Paths(){const b=_interopRequireWildcard(J(63684));Paths=function(){return b};return b}Object.defineProperty(S,"Paths",{enumerable:true,get:function(){return Paths()}});function Permissions(){const b=_interopRequireWildcard(J(73850));Permissions=function(){return b};return b}Object.defineProperty(S,"Permissions",{enumerable:true,get:function(){return Permissions()}});function PrivacyInfo(){const b=_interopRequireWildcard(J(8262));PrivacyInfo=function(){return b};return b}Object.defineProperty(S,"PrivacyInfo",{enumerable:true,get:function(){return PrivacyInfo()}});function ProvisioningProfile(){const b=_interopRequireWildcard(J(76320));ProvisioningProfile=function(){return b};return b}Object.defineProperty(S,"ProvisioningProfile",{enumerable:true,get:function(){return ProvisioningProfile()}});function RequiresFullScreen(){const b=_interopRequireWildcard(J(63367));RequiresFullScreen=function(){return b};return b}Object.defineProperty(S,"RequiresFullScreen",{enumerable:true,get:function(){return RequiresFullScreen()}});function Scheme(){const b=_interopRequireWildcard(J(27903));Scheme=function(){return b};return b}Object.defineProperty(S,"Scheme",{enumerable:true,get:function(){return Scheme()}});function Swift(){const b=_interopRequireWildcard(J(42630));Swift=function(){return b};return b}Object.defineProperty(S,"Swift",{enumerable:true,get:function(){return Swift()}});function Target(){const b=_interopRequireWildcard(J(7608));Target=function(){return b};return b}Object.defineProperty(S,"Target",{enumerable:true,get:function(){return Target()}});function Updates(){const b=_interopRequireWildcard(J(10420));Updates=function(){return b};return b}Object.defineProperty(S,"Updates",{enumerable:true,get:function(){return Updates()}});function UsesNonExemptEncryption(){const b=_interopRequireWildcard(J(79681));UsesNonExemptEncryption=function(){return b};return b}Object.defineProperty(S,"UsesNonExemptEncryption",{enumerable:true,get:function(){return UsesNonExemptEncryption()}});function Version(){const b=_interopRequireWildcard(J(1735));Version=function(){return b};return b}Object.defineProperty(S,"Version",{enumerable:true,get:function(){return Version()}});function XcodeProjectFile(){const b=_interopRequireWildcard(J(59577));XcodeProjectFile=function(){return b};return b}Object.defineProperty(S,"XcodeProjectFile",{enumerable:true,get:function(){return XcodeProjectFile()}});function XcodeUtils(){const b=_interopRequireWildcard(J(91693));XcodeUtils=function(){return b};return b}Object.defineProperty(S,"XcodeUtils",{enumerable:true,get:function(){return XcodeUtils()}});function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}},91693:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.addBuildSourceFileToGroup=addBuildSourceFileToGroup;S.addFileToGroupAndLink=addFileToGroupAndLink;S.addFramework=addFramework;S.addResourceFileToGroup=addResourceFileToGroup;S.ensureGroupRecursively=ensureGroupRecursively;S.getApplicationNativeTarget=getApplicationNativeTarget;S.getBuildConfigurationForListIdAndName=getBuildConfigurationForListIdAndName;S.getBuildConfigurationsForListId=getBuildConfigurationsForListId;S.getHackyProjectName=getHackyProjectName;S.getPbxproj=getPbxproj;S.getProductName=getProductName;S.getProjectName=getProjectName;S.getProjectSection=getProjectSection;S.getXCConfigurationListEntries=getXCConfigurationListEntries;S.isBuildConfig=isBuildConfig;S.isNotComment=isNotComment;S.isNotTestHost=isNotTestHost;S.resolvePathOrProject=resolvePathOrProject;S.resolveXcodeBuildSetting=resolveXcodeBuildSetting;S.sanitizedName=sanitizedName;S.unquote=unquote;function _assert(){const b=_interopRequireDefault(J(39491));_assert=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _slugify(){const b=_interopRequireDefault(J(22283));_slugify=function(){return b};return b}function _xcode(){const b=_interopRequireDefault(J(49658));_xcode=function(){return b};return b}function _pbxFile(){const b=_interopRequireDefault(J(42470));_pbxFile=function(){return b};return b}function _string(){const b=J(35996);_string=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}function Paths(){const b=_interopRequireWildcard(J(63684));Paths=function(){return b};return b}function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function getProjectName(b){const S=Paths().getSourceRoot(b);return _path().default.basename(S)}function resolvePathOrProject(b){if(typeof b==="string"){try{return getPbxproj(b)}catch{return null}}return b}function sanitizedName(b){return sanitizedNameForProjects(b)||sanitizedNameForProjects((0,_slugify().default)(b))||"app"}function sanitizedNameForProjects(b){return b.replace(/[\W_]+/g,"").normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function getHackyProjectName(b,S){try{return getProjectName(b)}catch{const b=S.name;(0,_assert().default)(b,"Your project needs a name in app.json/app.config.js.");return sanitizedName(b)}}function createProjectFileForGroup({filepath:b,group:S}){const J=new(_pbxFile().default)(b);const ee=S.children.find((b=>b.comment===J.basename));if(ee){return null}return J}function addResourceFileToGroup({filepath:b,groupName:S,isBuildFile:J,project:ee,verbose:te,targetUuid:re}){return addFileToGroupAndLink({filepath:b,groupName:S,project:ee,verbose:te,targetUuid:re,addFileToProject({project:b,file:S}){b.addToPbxFileReferenceSection(S);if(J){b.addToPbxBuildFileSection(S)}b.addToPbxResourcesBuildPhase(S)}})}function addBuildSourceFileToGroup({filepath:b,groupName:S,project:J,verbose:ee,targetUuid:te}){return addFileToGroupAndLink({filepath:b,groupName:S,project:J,verbose:ee,targetUuid:te,addFileToProject({project:b,file:S}){b.addToPbxFileReferenceSection(S);b.addToPbxBuildFileSection(S);b.addToPbxSourcesBuildPhase(S)}})}function addFileToGroupAndLink({filepath:b,groupName:S,project:J,verbose:ee,addFileToProject:te,targetUuid:re}){const ne=pbxGroupByPathOrAssert(J,S);const ie=createProjectFileForGroup({filepath:b,group:ne});if(!ie){if(ee){(0,_warnings().addWarningIOS)("ios-xcode-project",`Skipped adding duplicate file "${b}" to PBXGroup named "${S}"`)}return J}if(re!=null){ie.target=re}else{const b=J.getTarget("com.apple.product-type.application");ie.target=b?.uuid}ie.uuid=J.generateUuid();ie.fileRef=J.generateUuid();te({project:J,file:ie});ne.children.push({value:ie.fileRef,comment:ie.basename});return J}function getApplicationNativeTarget({project:b,projectName:S}){const J=b.getTarget("com.apple.product-type.application");(0,_assert().default)(J,`Couldn't locate application PBXNativeTarget in '.xcodeproj' file.`);(0,_assert().default)(String(J.target.name)===S,`Application native target name mismatch. Expected ${S}, but found ${J.target.name}.`);return J}function addFramework({project:b,projectName:S,framework:J}){const ee=getApplicationNativeTarget({project:b,projectName:S});return b.addFramework(J,{target:ee.uuid})}function splitPath(b){return b.split("/")}const findGroup=(b,S)=>{if(!b){return undefined}return b.children.find((b=>b.comment===S))};function findGroupInsideGroup(b,S,J){const ee=findGroup(S,J);if(ee){return b.getPBXGroupByKey(ee.value)??null}return null}function pbxGroupByPathOrAssert(b,S){const{firstProject:J}=b.getFirstProject();let ee=b.getPBXGroupByKey(J.mainGroup);const te=splitPath(S);for(const S of te){const J=findGroupInsideGroup(b,ee,S);if(J){ee=J}else{break}}if(!ee){throw Error(`Xcode PBXGroup with name "${S}" could not be found in the Xcode project.`)}return ee}function ensureGroupRecursively(b,S){const J=splitPath(S);const hasChild=(b,S)=>b.children.find((({comment:b})=>b===S));const{firstProject:ee}=b.getFirstProject();let te=b.getPBXGroupByKey(ee.mainGroup);for(const S of J){if(te&&!hasChild(te,S)){te.children.push({comment:S,value:b.pbxCreateGroup(S,'""')})}te=b.pbxGroupByName(S)}return te??null}function getPbxproj(b){const S=Paths().getPBXProjectPath(b);const J=_xcode().default.project(S);J.parseSync();return J}function getProductName(b){let S="$(TARGET_NAME)";try{S=b.productName}catch{}if(S==="$(TARGET_NAME)"){const J=b.getFirstTarget()?.firstTarget?.productName;S=J??S}return S}function getProjectSection(b){return b.pbxProjectSection()}function getXCConfigurationListEntries(b){const S=b.pbxXCConfigurationList();return Object.entries(S).filter(isNotComment)}function getBuildConfigurationsForListId(b,S){const J=getXCConfigurationListEntries(b);const[,ee]=J.find((([b])=>b===S));const te=ee.buildConfigurations.map((b=>b.value));return Object.entries(b.pbxXCBuildConfigurationSection()).filter(isNotComment).filter(isBuildConfig).filter((([b])=>te.includes(b)))}function getBuildConfigurationForListIdAndName(b,{configurationListId:S,buildConfiguration:J}){const ee=getBuildConfigurationsForListId(b,S).find((b=>(0,_string().trimQuotes)(b[1].name)===J));if(!ee){throw new Error(`Build configuration '${J}' does not exist in list with id '${S}'`)}return ee}function isBuildConfig([,b]){return b.isa==="XCBuildConfiguration"}function isNotTestHost([,b]){return!b.buildSettings.TEST_HOST}function isNotComment([b]){return!b.endsWith(`_comment`)}function unquote(b){if(typeof b==="number"){b=String(b)}return b.match(/^"(.*)"$/)?.[1]??b}function resolveXcodeBuildSetting(b,S){const J=b?.replace(/\$\(([^()]*|\([^)]*\))\)/g,(b=>{const[J,...ee]=b.slice(2,-1).split(":");let te=S(J);if(te){te=resolveXcodeBuildSetting(te,S)}let re=te;ee.forEach((b=>{switch(b){case"lower":re=re?.toLowerCase();break;case"upper":re=re?.toUpperCase();break;case"suffix":if(re){re=_path().default.extname(re)}break;case"file":if(re){re=_path().default.basename(re)}break;case"dir":if(re){re=_path().default.dirname(re)}break;case"base":if(re){const b=_path().default.basename(re);const S=b.lastIndexOf(".");re=S===-1?b:b.slice(0,S)}break;case"rfc1034identifier":re=re?.replace(/[^a-zA-Z0-9]/g,"-");break;case"c99extidentifier":re=re?.replace(/[-\s]/g,"_");break;case"standardizepath":if(re){re=_path().default.resolve(re)}break;default:re||=b.match(/default=(.*)/)?.[1];break}}));return resolveXcodeBuildSetting(re??"",S)}));if(J!==b){return resolveXcodeBuildSetting(J,S)}return b}},45588:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getInfoPlistPathFromPbxproj=getInfoPlistPathFromPbxproj;function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _Target(){const b=J(7608);_Target=function(){return b};return b}function getInfoPlistPathFromPbxproj(b,{targetName:S,buildConfiguration:J="Release"}={}){const ee=(0,_Xcodeproj().resolvePathOrProject)(b);if(!ee){return null}const te=(0,_Target().getXCBuildConfigurationFromPbxproj)(ee,{targetName:S,buildConfiguration:J});if(!te){return null}return sanitizeInfoPlistBuildProperty(te.buildSettings.INFOPLIST_FILE)}function sanitizeInfoPlistBuildProperty(b){return b?.replace(/"/g,"").replace("$(SRCROOT)","")??null}},35996:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.trimQuotes=trimQuotes;function trimQuotes(b){return b&&b[0]==='"'&&b[b.length-1]==='"'?b.slice(1,-1):b}},62636:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.createAndroidManifestPlugin=createAndroidManifestPlugin;S.createStringsXmlPlugin=createStringsXmlPlugin;S.withStringsXml=S.withSettingsGradle=S.withProjectBuildGradle=S.withMainApplication=S.withMainActivity=S.withGradleProperties=S.withAppBuildGradle=S.withAndroidStyles=S.withAndroidManifest=S.withAndroidColorsNight=S.withAndroidColors=void 0;function _withMod(){const b=J(82932);_withMod=function(){return b};return b}function createAndroidManifestPlugin(b,S){const withUnknown=S=>withAndroidManifest(S,(async S=>{S.modResults=await b(S,S.modResults);return S}));if(S){Object.defineProperty(withUnknown,"name",{value:S})}return withUnknown}function createStringsXmlPlugin(b,S){const withUnknown=S=>withStringsXml(S,(async S=>{S.modResults=await b(S,S.modResults);return S}));if(S){Object.defineProperty(withUnknown,"name",{value:S})}return withUnknown}const withAndroidManifest=(b,S)=>(0,_withMod().withMod)(b,{platform:"android",mod:"manifest",action:S});S.withAndroidManifest=withAndroidManifest;const withStringsXml=(b,S)=>(0,_withMod().withMod)(b,{platform:"android",mod:"strings",action:S});S.withStringsXml=withStringsXml;const withAndroidColors=(b,S)=>(0,_withMod().withMod)(b,{platform:"android",mod:"colors",action:S});S.withAndroidColors=withAndroidColors;const withAndroidColorsNight=(b,S)=>(0,_withMod().withMod)(b,{platform:"android",mod:"colorsNight",action:S});S.withAndroidColorsNight=withAndroidColorsNight;const withAndroidStyles=(b,S)=>(0,_withMod().withMod)(b,{platform:"android",mod:"styles",action:S});S.withAndroidStyles=withAndroidStyles;const withMainActivity=(b,S)=>(0,_withMod().withMod)(b,{platform:"android",mod:"mainActivity",action:S});S.withMainActivity=withMainActivity;const withMainApplication=(b,S)=>(0,_withMod().withMod)(b,{platform:"android",mod:"mainApplication",action:S});S.withMainApplication=withMainApplication;const withProjectBuildGradle=(b,S)=>(0,_withMod().withMod)(b,{platform:"android",mod:"projectBuildGradle",action:S});S.withProjectBuildGradle=withProjectBuildGradle;const withAppBuildGradle=(b,S)=>(0,_withMod().withMod)(b,{platform:"android",mod:"appBuildGradle",action:S});S.withAppBuildGradle=withAppBuildGradle;const withSettingsGradle=(b,S)=>(0,_withMod().withMod)(b,{platform:"android",mod:"settingsGradle",action:S});S.withSettingsGradle=withSettingsGradle;const withGradleProperties=(b,S)=>(0,_withMod().withMod)(b,{platform:"android",mod:"gradleProperties",action:S});S.withGradleProperties=withGradleProperties},15881:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.assertModResults=assertModResults;S.createBaseMod=createBaseMod;S.createPlatformBaseMod=createPlatformBaseMod;S.provider=provider;S.withGeneratedBaseMods=withGeneratedBaseMods;function _debug(){const b=_interopRequireDefault(J(67984));_debug=function(){return b};return b}function _withMod(){const b=J(82932);_withMod=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee=(0,_debug().default)("expo:config-plugins:base-mods");function createBaseMod({methodName:b,platform:S,modName:J,getFilePath:te,read:re,write:ne,isIntrospective:ie}){const withUnknown=(oe,se)=>{const ae=se||{};return(0,_withMod().withBaseMod)(oe,{platform:S,mod:J,skipEmptyMod:ae.skipEmptyMod??true,saveToInternal:ae.saveToInternal??false,isProvider:true,isIntrospective:ie,async action({modRequest:{nextMod:ie,...oe},...se}){try{let b={...se,modRequest:oe};const ue=await te(b,ae);ee(`mods.${S}.${J}: file path: ${ue||"[skipped]"}`);const ce=await re(ue,b,ae);b=await ie({...b,modResults:ce,modRequest:oe});assertModResults(b,oe.platform,oe.modName);await ne(ue,b,ae);return b}catch(ee){ee.message=`[${S}.${J}]: ${b}: ${ee.message}`;throw ee}}})};if(b){Object.defineProperty(withUnknown,"name",{value:b})}return withUnknown}function assertModResults(b,S,J){const ee=b;if(!ee||typeof ee!=="object"||!ee?.mods){throw new Error(`Mod \`mods.${S}.${J}\` evaluated to an object that is not a valid project config. Instead got: ${JSON.stringify(ee)}`)}return ee}function upperFirst(b){return b.charAt(0).toUpperCase()+b.slice(1)}function createPlatformBaseMod({modName:b,...S}){const J=`with${upperFirst(S.platform)}${upperFirst(b)}BaseMod`;return createBaseMod({methodName:J,modName:b,...S})}function provider(b){return b}function withGeneratedBaseMods(b,{platform:S,providers:J,...ee}){return Object.entries(J).reduce(((b,[J,te])=>{const re=createPlatformBaseMod({platform:S,modName:J,...te});return re(b,ee)}),b)}},54797:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.createEntitlementsPlugin=createEntitlementsPlugin;S.createInfoPlistPlugin=createInfoPlistPlugin;S.createInfoPlistPluginWithPropertyGuard=createInfoPlistPluginWithPropertyGuard;S.withXcodeProject=S.withPodfileProperties=S.withPodfile=S.withInfoPlist=S.withExpoPlist=S.withEntitlementsPlist=S.withAppDelegate=void 0;function _withMod(){const b=J(82932);_withMod=function(){return b};return b}function _obj(){const b=J(67324);_obj=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}function createInfoPlistPlugin(b,S){const withUnknown=S=>withInfoPlist(S,(async S=>{S.modResults=await b(S,S.modResults);return S}));if(S){Object.defineProperty(withUnknown,"name",{value:S})}return withUnknown}function createInfoPlistPluginWithPropertyGuard(b,S,J){const withUnknown=J=>withInfoPlist(J,(async J=>{const ee=S.expoPropertyGetter?S.expoPropertyGetter(J):(0,_obj().get)(J,S.expoConfigProperty);if(J.modRawConfig.ios?.infoPlist?.[S.infoPlistProperty]===undefined){J.modResults=await b(J,J.modResults)}else if(ee!==undefined){(0,_warnings().addWarningIOS)(S.expoConfigProperty,`"ios.infoPlist.${S.infoPlistProperty}" is set in the config. Ignoring abstract property "${S.expoConfigProperty}": ${ee}`)}return J}));if(J){Object.defineProperty(withUnknown,"name",{value:J})}return withUnknown}function createEntitlementsPlugin(b,S){const withUnknown=S=>withEntitlementsPlist(S,(async S=>{S.modResults=await b(S,S.modResults);return S}));if(S){Object.defineProperty(withUnknown,"name",{value:S})}return withUnknown}const withAppDelegate=(b,S)=>(0,_withMod().withMod)(b,{platform:"ios",mod:"appDelegate",action:S});S.withAppDelegate=withAppDelegate;const withInfoPlist=(b,S)=>(0,_withMod().withMod)(b,{platform:"ios",mod:"infoPlist",async action(b){b=await S(b);if(!b.ios){b.ios={}}b.ios.infoPlist=b.modResults;return b}});S.withInfoPlist=withInfoPlist;const withEntitlementsPlist=(b,S)=>(0,_withMod().withMod)(b,{platform:"ios",mod:"entitlements",async action(b){b=await S(b);if(!b.ios){b.ios={}}b.ios.entitlements=b.modResults;return b}});S.withEntitlementsPlist=withEntitlementsPlist;const withExpoPlist=(b,S)=>(0,_withMod().withMod)(b,{platform:"ios",mod:"expoPlist",action:S});S.withExpoPlist=withExpoPlist;const withXcodeProject=(b,S)=>(0,_withMod().withMod)(b,{platform:"ios",mod:"xcodeproj",action:S});S.withXcodeProject=withXcodeProject;const withPodfile=(b,S)=>(0,_withMod().withMod)(b,{platform:"ios",mod:"podfile",action:S});S.withPodfile=withPodfile;const withPodfileProperties=(b,S)=>(0,_withMod().withMod)(b,{platform:"ios",mod:"podfileProperties",action:S});S.withPodfileProperties=withPodfileProperties},20503:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.compileModsAsync=compileModsAsync;S.evalModsAsync=evalModsAsync;S.sortMods=sortMods;S.withDefaultBaseMods=withDefaultBaseMods;S.withIntrospectionBaseMods=withIntrospectionBaseMods;function _debug(){const b=_interopRequireDefault(J(67984));_debug=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _createBaseMod(){const b=J(15881);_createBaseMod=function(){return b};return b}function _withAndroidBaseMods(){const b=J(80619);_withAndroidBaseMods=function(){return b};return b}function _withIosBaseMods(){const b=J(37595);_withIosBaseMods=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _errors(){const b=J(13857);_errors=function(){return b};return b}function Warnings(){const b=_interopRequireWildcard(J(128));Warnings=function(){return b};return b}function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee=(0,_debug().default)("expo:config-plugins:mod-compiler");function withDefaultBaseMods(b,S={}){b=(0,_withIosBaseMods().withIosBaseMods)(b,S);b=(0,_withAndroidBaseMods().withAndroidBaseMods)(b,S);return b}function withIntrospectionBaseMods(b,S={}){b=(0,_withIosBaseMods().withIosBaseMods)(b,{saveToInternal:true,skipEmptyMod:false,...S});b=(0,_withAndroidBaseMods().withAndroidBaseMods)(b,{saveToInternal:true,skipEmptyMod:false,...S});if(b.mods){for(const S of Object.keys(b.mods)){for(const J of Object.keys(b.mods[S]||{})){if(!b.mods[S]?.[J]?.isIntrospective){ee(`removing non-idempotent mod: ${S}.${J}`);delete b.mods[S]?.[J]}}}}return b}async function compileModsAsync(b,S){if(S.introspect===true){b=withIntrospectionBaseMods(b)}else{b=withDefaultBaseMods(b)}return await evalModsAsync(b,S)}function sortMods(b,S){const J=new Set;const ee=b.filter((([b])=>{const S=J.has(b);J.add(b);return!S}));return ee.sort((([b],[J])=>{const ee=S[b]||0;const te=S[J]||0;return ee-te}))}function getRawClone({mods:b,...S}){return Object.freeze(JSON.parse(JSON.stringify(S)))}const te={ios:{dangerous:-2,xcodeproj:-1,finalized:1}};async function evalModsAsync(b,{projectRoot:S,introspect:J,platforms:re,assertMissingModProviders:ne,ignoreExistingNativeFiles:ie=false}){const oe=getRawClone(b);for(const[se,ae]of Object.entries(b.mods??{})){if(re&&!re.includes(se)){ee(`skip platform: ${se}`);continue}let ue=Object.entries(ae);if(ue.length){ue=sortMods(ue,te[se]??{dangerous:-1,finalized:1});ee(`run in order: ${ue.map((([b])=>b)).join(", ")}`);const re=_path().default.join(S,se);const ae=se==="ios"?(0,_Xcodeproj().getHackyProjectName)(S,b):undefined;for(const[ee,te]of ue){const ue={projectRoot:S,projectName:ae,platformProjectRoot:re,platform:se,modName:ee,introspect:!!J,ignoreExistingNativeFiles:ie};if(!te.isProvider){const b=`Initial base modifier for "${se}.${ee}" is not a provider and therefore will not provide modResults to child mods`;if(ne!==false){throw new(_errors().PluginError)(b,"MISSING_PROVIDER")}else{Warnings().addWarningForPlatform(se,`${se}.${ee}`,`Skipping: Initial base modifier for "${se}.${ee}" is not a provider and therefore will not provide modResults to child mods. This may be due to an outdated version of Expo CLI.`);continue}}const ce=await te({...b,modResults:null,modRequest:ue,modRawConfig:oe});b=(0,_createBaseMod().assertModResults)(ce,se,ee);delete b.modResults;delete b.modRequest;delete b.modRawConfig}}}return b}},80619:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getAndroidModFileProviders=getAndroidModFileProviders;S.sortAndroidManifest=sortAndroidManifest;S.withAndroidBaseMods=withAndroidBaseMods;function _fs(){const b=J(57147);_fs=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _createBaseMod(){const b=J(15881);_createBaseMod=function(){return b};return b}function _android(){const b=J(87232);_android=function(){return b};return b}function _XML(){const b=J(78853);_XML=function(){return b};return b}function _sortObject(){const b=J(85387);_sortObject=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const{readFile:ee,writeFile:te}=_fs().promises;function getAndroidManifestTemplate(b){return(0,_XML().parseXMLAsync)(`\n <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="${b.android?.package??"com.placeholder.appid"}">\n\n <uses-permission android:name="android.permission.INTERNET"/>\n \x3c!-- OPTIONAL PERMISSIONS, REMOVE WHATEVER YOU DO NOT NEED --\x3e\n <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>\n \x3c!-- These require runtime permissions on M --\x3e\n <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>\n <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>\n \x3c!-- END OPTIONAL PERMISSIONS --\x3e\n\n <queries>\n \x3c!-- Support checking for http(s) links via the Linking API --\x3e\n <intent>\n <action android:name="android.intent.action.VIEW" />\n <category android:name="android.intent.category.BROWSABLE" />\n <data android:scheme="https" />\n </intent>\n </queries>\n\n <application\n android:name=".MainApplication"\n android:label="@string/app_name"\n android:icon="@mipmap/ic_launcher"\n android:roundIcon="@mipmap/ic_launcher_round"\n android:allowBackup="false"\n android:theme="@style/AppTheme"\n android:usesCleartextTraffic="true"\n >\n <meta-data android:name="expo.modules.updates.EXPO_UPDATE_URL" android:value="YOUR-APP-URL-HERE"/>\n <meta-data android:name="expo.modules.updates.EXPO_RUNTIME_VERSION" android:value="YOUR-APP-RUNTIME-VERSION-HERE"/>\n <activity\n android:name=".MainActivity"\n android:label="@string/app_name"\n android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"\n android:launchMode="singleTask"\n android:windowSoftInputMode="adjustResize"\n android:theme="@style/Theme.App.SplashScreen"\n >\n <intent-filter>\n <action android:name="android.intent.action.MAIN"/>\n <category android:name="android.intent.category.LAUNCHER"/>\n </intent-filter>\n </activity>\n <activity android:name="com.facebook.react.devsupport.DevSettingsActivity"/>\n </application>\n </manifest>\n `)}function sortAndroidManifest(b){if(b.manifest){b.manifest=(0,_sortObject().sortObject)(b.manifest,_sortObject().reverseSortString);if(Array.isArray(b.manifest["uses-permission"])){b.manifest["uses-permission"].sort(((b,S)=>{if(b.$["android:name"]<S.$["android:name"])return-1;if(b.$["android:name"]>S.$["android:name"])return 1;return 0}))}if(Array.isArray(b.manifest.application)){b.manifest.application=b.manifest.application.map((b=>{b=(0,_sortObject().sortObjWithOrder)(b,["meta-data","service","activity"]);if(Array.isArray(b["meta-data"])){b["meta-data"].sort(((b,S)=>{if(b.$["android:name"]<S.$["android:name"])return-1;if(b.$["android:name"]>S.$["android:name"])return 1;return 0}))}return b}))}}return b}const re={dangerous:(0,_createBaseMod().provider)({getFilePath(){return""},async read(){return{filePath:"",modResults:{}}},async write(){}}),finalized:(0,_createBaseMod().provider)({getFilePath(){return""},async read(){return{filePath:"",modResults:{}}},async write(){}}),manifest:(0,_createBaseMod().provider)({isIntrospective:true,getFilePath({modRequest:{platformProjectRoot:b}}){return _path().default.join(b,"app/src/main/AndroidManifest.xml")},async read(b,S){try{return await _android().Manifest.readAndroidManifestAsync(b)}catch(b){if(!S.modRequest.introspect){throw b}}return await getAndroidManifestTemplate(S)},async write(b,{modResults:S,modRequest:{introspect:J}}){if(J)return;await _android().Manifest.writeAndroidManifestAsync(b,sortAndroidManifest(S))}}),gradleProperties:(0,_createBaseMod().provider)({isIntrospective:true,getFilePath({modRequest:{platformProjectRoot:b}}){return _path().default.join(b,"gradle.properties")},async read(b,S){try{return await _android().Properties.parsePropertiesFile(await ee(b,"utf8"))}catch(b){if(!S.modRequest.introspect){throw b}}return[]},async write(b,{modResults:S,modRequest:{introspect:J}}){if(J)return;await te(b,_android().Properties.propertiesListToString(S))}}),strings:(0,_createBaseMod().provider)({isIntrospective:true,async getFilePath({modRequest:{projectRoot:b,introspect:S}}){try{return await _android().Strings.getProjectStringsXMLPathAsync(b)}catch(b){if(!S){throw b}}return""},async read(b,S){try{return await _android().Resources.readResourcesXMLAsync({path:b})}catch(b){if(!S.modRequest.introspect){throw b}}return{resources:{}}},async write(b,{modResults:S,modRequest:{introspect:J}}){if(J)return;await(0,_XML().writeXMLAsync)({path:b,xml:S})}}),colors:(0,_createBaseMod().provider)({isIntrospective:true,async getFilePath({modRequest:{projectRoot:b,introspect:S}}){try{return await _android().Colors.getProjectColorsXMLPathAsync(b)}catch(b){if(!S){throw b}}return""},async read(b,{modRequest:{introspect:S}}){try{return await _android().Resources.readResourcesXMLAsync({path:b})}catch(b){if(!S){throw b}}return{resources:{}}},async write(b,{modResults:S,modRequest:{introspect:J}}){if(J)return;await(0,_XML().writeXMLAsync)({path:b,xml:S})}}),colorsNight:(0,_createBaseMod().provider)({isIntrospective:true,async getFilePath({modRequest:{projectRoot:b,introspect:S}}){try{return await _android().Colors.getProjectColorsXMLPathAsync(b,{kind:"values-night"})}catch(b){if(!S){throw b}}return""},async read(b,S){try{return await _android().Resources.readResourcesXMLAsync({path:b})}catch(b){if(!S.modRequest.introspect){throw b}}return{resources:{}}},async write(b,{modResults:S,modRequest:{introspect:J}}){if(J)return;await(0,_XML().writeXMLAsync)({path:b,xml:S})}}),styles:(0,_createBaseMod().provider)({isIntrospective:true,async getFilePath({modRequest:{projectRoot:b,introspect:S}}){try{return await _android().Styles.getProjectStylesXMLPathAsync(b)}catch(b){if(!S){throw b}}return""},async read(b,S){let J={resources:{}};try{J=await _android().Resources.readResourcesXMLAsync({path:b,fallback:`<?xml version="1.0" encoding="utf-8"?><resources xmlns:tools="http://schemas.android.com/tools"></resources>`})}catch(b){if(!S.modRequest.introspect){throw b}}if(!J.resources.$){J.resources.$={}}if(!J.resources.$?.["xmlns:tools"]){J.resources.$["xmlns:tools"]="http://schemas.android.com/tools"}return J},async write(b,{modResults:S,modRequest:{introspect:J}}){if(J)return;await(0,_XML().writeXMLAsync)({path:b,xml:S})}}),projectBuildGradle:(0,_createBaseMod().provider)({getFilePath({modRequest:{projectRoot:b}}){return _android().Paths.getProjectBuildGradleFilePath(b)},async read(b){return _android().Paths.getFileInfo(b)},async write(b,{modResults:{contents:S}}){await te(b,S)}}),settingsGradle:(0,_createBaseMod().provider)({getFilePath({modRequest:{projectRoot:b}}){return _android().Paths.getSettingsGradleFilePath(b)},async read(b){return _android().Paths.getFileInfo(b)},async write(b,{modResults:{contents:S}}){await te(b,S)}}),appBuildGradle:(0,_createBaseMod().provider)({getFilePath({modRequest:{projectRoot:b}}){return _android().Paths.getAppBuildGradleFilePath(b)},async read(b){return _android().Paths.getFileInfo(b)},async write(b,{modResults:{contents:S}}){await te(b,S)}}),mainActivity:(0,_createBaseMod().provider)({getFilePath({modRequest:{projectRoot:b}}){return _android().Paths.getProjectFilePath(b,"MainActivity")},async read(b){return _android().Paths.getFileInfo(b)},async write(b,{modResults:{contents:S}}){await te(b,S)}}),mainApplication:(0,_createBaseMod().provider)({getFilePath({modRequest:{projectRoot:b}}){return _android().Paths.getProjectFilePath(b,"MainApplication")},async read(b){return _android().Paths.getFileInfo(b)},async write(b,{modResults:{contents:S}}){await te(b,S)}})};function withAndroidBaseMods(b,{providers:S,...J}={}){return(0,_createBaseMod().withGeneratedBaseMods)(b,{...J,platform:"android",providers:S??getAndroidModFileProviders()})}function getAndroidModFileProviders(){return re}},85876:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.withDangerousMod=void 0;function _withMod(){const b=J(82932);_withMod=function(){return b};return b}const withDangerousMod=(b,[S,J])=>(0,_withMod().withMod)(b,{platform:S,mod:"dangerous",action:J});S.withDangerousMod=withDangerousMod},39266:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.withFinalizedMod=void 0;function _withMod(){const b=J(82932);_withMod=function(){return b};return b}const withFinalizedMod=(b,[S,J])=>(0,_withMod().withMod)(b,{platform:S,mod:"finalized",action:J});S.withFinalizedMod=withFinalizedMod},37595:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getIosModFileProviders=getIosModFileProviders;S.withIosBaseMods=withIosBaseMods;function _jsonFile(){const b=_interopRequireDefault(J(66282));_jsonFile=function(){return b};return b}function _plist(){const b=_interopRequireDefault(J(83681));_plist=function(){return b};return b}function _assert(){const b=_interopRequireDefault(J(39491));_assert=function(){return b};return b}function _fs(){const b=_interopRequireWildcard(J(57147));_fs=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _xcode(){const b=_interopRequireDefault(J(49658));_xcode=function(){return b};return b}function _createBaseMod(){const b=J(15881);_createBaseMod=function(){return b};return b}function _ios(){const b=J(65609);_ios=function(){return b};return b}function _Entitlements(){const b=J(94431);_Entitlements=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _getInfoPlistPath(){const b=J(45588);_getInfoPlistPath=function(){return b};return b}function _modules(){const b=J(35642);_modules=function(){return b};return b}function _sortObject(){const b=J(85387);_sortObject=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const{readFile:ee,writeFile:te}=_fs().promises;function getEntitlementsPlistTemplate(){return{}}function getInfoPlistTemplate(){return{CFBundleDevelopmentRegion:"$(DEVELOPMENT_LANGUAGE)",CFBundleExecutable:"$(EXECUTABLE_NAME)",CFBundleIdentifier:"$(PRODUCT_BUNDLE_IDENTIFIER)",CFBundleName:"$(PRODUCT_NAME)",CFBundlePackageType:"$(PRODUCT_BUNDLE_PACKAGE_TYPE)",CFBundleInfoDictionaryVersion:"6.0",CFBundleSignature:"????",LSRequiresIPhoneOS:true,NSAppTransportSecurity:{NSAllowsArbitraryLoads:true,NSExceptionDomains:{localhost:{NSExceptionAllowsInsecureHTTPLoads:true}}},UILaunchStoryboardName:"SplashScreen",UIRequiredDeviceCapabilities:["armv7"],UIViewControllerBasedStatusBarAppearance:false,UIStatusBarStyle:"UIStatusBarStyleDefault",CADisableMinimumFrameDurationOnPhone:true}}const re={dangerous:(0,_createBaseMod().provider)({getFilePath(){return""},async read(){return{}},async write(){}}),finalized:(0,_createBaseMod().provider)({getFilePath(){return""},async read(){return{}},async write(){}}),appDelegate:(0,_createBaseMod().provider)({getFilePath({modRequest:{projectRoot:b}}){return _ios().Paths.getAppDelegateFilePath(b)},async read(b){return _ios().Paths.getFileInfo(b)},async write(b,{modResults:{contents:S}}){await te(b,S)}}),expoPlist:(0,_createBaseMod().provider)({isIntrospective:true,getFilePath({modRequest:{platformProjectRoot:b,projectName:S}}){const J=_path().default.join(b,S,"Supporting");return _path().default.resolve(J,"Expo.plist")},async read(b,{modRequest:{introspect:S}}){try{return _plist().default.parse(await ee(b,"utf8"))}catch(b){if(S){return{}}throw b}},async write(b,{modResults:S,modRequest:{introspect:J}}){if(J){return}await te(b,_plist().default.build((0,_sortObject().sortObject)(S)))}}),xcodeproj:(0,_createBaseMod().provider)({getFilePath({modRequest:{projectRoot:b}}){return _ios().Paths.getPBXProjectPath(b)},async read(b){const S=_xcode().default.project(b);S.parseSync();return S},async write(b,{modResults:S}){await te(b,S.writeSync())}}),infoPlist:(0,_createBaseMod().provider)({isIntrospective:true,async getFilePath(b){let S=null;try{S=(0,_Xcodeproj().getPbxproj)(b.modRequest.projectRoot)}catch{}if(S){const J=(0,_getInfoPlistPath().getInfoPlistPathFromPbxproj)(S);if(J){const S=_path().default.join(b.modRequest.platformProjectRoot,J);if((0,_modules().fileExists)(S)){return S}(0,_warnings().addWarningIOS)("mods.ios.infoPlist",`Info.plist file linked to Xcode project does not exist: ${S}`)}else{(0,_warnings().addWarningIOS)("mods.ios.infoPlist","Failed to find Info.plist linked to Xcode project.")}}try{return await _ios().Paths.getInfoPlistPath(b.modRequest.projectRoot)}catch(S){if(b.modRequest.introspect){return""}throw S}},async read(b,S){if(!S.ios)S.ios={};if(!S.ios.infoPlist)S.ios.infoPlist={};let J;try{const S=await ee(b,"utf8");(0,_assert().default)(S,"Info.plist is empty");J=_plist().default.parse(S)}catch(b){if(!S.modRequest.introspect){throw b}J=getInfoPlistTemplate()}S.ios.infoPlist={...J||{},...S.ios.infoPlist};return S.ios.infoPlist},async write(b,S){if(!S.ios){S.ios={}}S.ios.infoPlist=S.modResults;if(S.modRequest.introspect){return}await te(b,_plist().default.build((0,_sortObject().sortObject)(S.modResults)))}}),entitlements:(0,_createBaseMod().provider)({isIntrospective:true,async getFilePath(b){try{(0,_Entitlements().ensureApplicationTargetEntitlementsFileConfigured)(b.modRequest.projectRoot);return _ios().Entitlements.getEntitlementsPath(b.modRequest.projectRoot)??""}catch(S){if(b.modRequest.introspect){return""}throw S}},async read(b,S){let J;try{if(!S.modRequest.ignoreExistingNativeFiles&&_fs().default.existsSync(b)){const S=await ee(b,"utf8");(0,_assert().default)(S,"Entitlements plist is empty");J=_plist().default.parse(S)}else{J=getEntitlementsPlistTemplate()}}catch(b){if(!S.modRequest.introspect){throw b}J=getEntitlementsPlistTemplate()}if(!S.ios)S.ios={};if(!S.ios.entitlements)S.ios.entitlements={};S.ios.entitlements={...J||{},...S.ios.entitlements};return S.ios.entitlements},async write(b,S){if(!S.ios){S.ios={}}S.ios.entitlements=S.modResults;if(S.modRequest.introspect){return}await te(b,_plist().default.build((0,_sortObject().sortObject)(S.modResults)))}}),podfile:(0,_createBaseMod().provider)({getFilePath({modRequest:{projectRoot:b}}){return _ios().Paths.getPodfilePath(b)},async read(b){return _ios().Paths.getFileInfo(b)},async write(b,{modResults:{contents:S}}){await te(b,S)}}),podfileProperties:(0,_createBaseMod().provider)({isIntrospective:true,getFilePath({modRequest:{platformProjectRoot:b}}){return _path().default.resolve(b,"Podfile.properties.json")},async read(b){let S={};try{S=await _jsonFile().default.readAsync(b)}catch{}return S},async write(b,{modResults:S,modRequest:{introspect:J}}){if(J){return}await _jsonFile().default.writeAsync(b,S)}})};function withIosBaseMods(b,{providers:S,...J}={}){return(0,_createBaseMod().withGeneratedBaseMods)(b,{...J,platform:"ios",providers:S??getIosModFileProviders()})}function getIosModFileProviders(){return re}},82932:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.withBaseMod=withBaseMod;S.withMod=withMod;function _chalk(){const b=_interopRequireDefault(J(68746));_chalk=function(){return b};return b}function _getenv(){const b=J(37945);_getenv=function(){return b};return b}function _errors(){const b=J(13857);_errors=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee=(0,_getenv().boolish)("EXPO_DEBUG",false);function withBaseMod(b,{platform:S,mod:J,action:te,skipEmptyMod:re,isProvider:ne,isIntrospective:ie,saveToInternal:oe}){if(!b.mods){b.mods={}}if(!b.mods[S]){b.mods[S]={}}let se=b.mods[S][J];if(!se){if(re){return b}const noopMod=b=>b;se=noopMod}let ae="";const ue=b._internal?.isDebug??ee;if(ue){const b=(new Error).stack;ae=getDebugPluginStackFromStackTrace(b);const ee=_chalk().default.bold(`${S}.${J}`);ae=`${ee}: ${ae}`}if(se.isProvider){if(ne){throw new(_errors().PluginError)(`Cannot set provider mod for "${S}.${J}" because another is already being used.`,"CONFLICTING_PROVIDER")}else{throw new(_errors().PluginError)(`Cannot add mod to "${S}.${J}" because the provider has already been added. Provider must be the last mod added.`,"INVALID_MOD_ORDER")}}async function interceptingMod({modRequest:b,...ee}){if(ue){console.log(ae)}const re=await te({...ee,modRequest:{...b,nextMod:se}});if(oe){saveToInternalObject(re,S,J,re.modResults)}return re}interceptingMod.isProvider=ne;if(ie){interceptingMod.isIntrospective=ie}b.mods[S][J]=interceptingMod;return b}function saveToInternalObject(b,S,J,ee){if(!b._internal)b._internal={};if(!b._internal.modResults)b._internal.modResults={};if(!b._internal.modResults[S])b._internal.modResults[S]={};b._internal.modResults[S][J]=ee}function getDebugPluginStackFromStackTrace(b){if(!b){return""}const S=[];for(const J of b.split("\n")){const[b,ee]=J.trim().split(" ");if(b==="at"){S.push(ee)}}const J=S.map((b=>b?.match(/^(\bwith[A-Z].*?\b)/)?.[1]?.trim()??b?.match(/\.(\bwith[A-Z].*?\b)/)?.[1]?.trim()??null)).filter(Boolean).filter((b=>!["withMod","withBaseMod","withExtendedMod"].includes(b)));const ee=["withPlugins","withRunOnce","withStaticPlugin"];return J.reverse().map(((b,S)=>{if(b.includes("BaseMod")){b=_chalk().default.bold(b)}if(b.toLowerCase().includes("dangerous")){b=_chalk().default.red(b)}if(S===0){return _chalk().default.blue(b)}else if(ee.includes(b)){return _chalk().default.dim(b)}return b})).join(" ➜ ")}function withMod(b,{platform:S,mod:J,action:ee}){return withBaseMod(b,{platform:S,mod:J,isProvider:false,async action({modRequest:{nextMod:b,...S},modResults:J,...te}){const re=await ee({modRequest:S,modResults:J,...te});return b(re)}})}},4897:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.withPlugins=void 0;function _assert(){const b=_interopRequireDefault(J(39491));_assert=function(){return b};return b}function _withStaticPlugin(){const b=J(77298);_withStaticPlugin=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const withPlugins=(b,S)=>{(0,_assert().default)(Array.isArray(S),"withPlugins expected a valid array of plugins or plugin module paths");return S.reduce(((b,S)=>(0,_withStaticPlugin().withStaticPlugin)(b,{plugin:S})),b)};S.withPlugins=withPlugins},73700:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.createRunOncePlugin=createRunOncePlugin;S.withRunOnce=void 0;function _history(){const b=J(40928);_history=function(){return b};return b}const withRunOnce=(b,{plugin:S,name:J,version:ee})=>{if((0,_history().getHistoryItem)(b,J)){return b}b=(0,_history().addHistoryItem)(b,{name:J,version:ee});return S(b)};S.withRunOnce=withRunOnce;function createRunOncePlugin(b,S,J){return(ee,te)=>withRunOnce(ee,{plugin:S=>b(S,te),name:S,version:J})}},77298:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.withStaticPlugin=void 0;function _assert(){const b=_interopRequireDefault(J(39491));_assert=function(){return b};return b}function _getenv(){const b=J(37945);_getenv=function(){return b};return b}function _errors(){const b=J(13857);_errors=function(){return b};return b}function _pluginResolver(){const b=J(34661);_pluginResolver=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee=(0,_getenv().boolish)("EXPO_DEBUG",false);const te=(0,_getenv().boolish)("EXPO_CONFIG_PLUGIN_VERBOSE_ERRORS",false);const re=(0,_getenv().boolish)("EXPO_USE_UNVERSIONED_PLUGINS",false);function isModuleMissingError(b,S){if(["MODULE_NOT_FOUND","PLUGIN_NOT_FOUND"].includes(S.code)){return true}return S.message.includes(`Cannot find module '${b}'`)}function isUnexpectedTokenError(b){if(b instanceof SyntaxError||b instanceof _errors().PluginError&&b.code==="INVALID_PLUGIN_IMPORT"){return!!b.message.match(/Unexpected token/)||!!b.message.match(/Cannot use import statement/)}return false}const withStaticPlugin=(b,S)=>{let J=S.projectRoot;if(!J){J=b._internal?.projectRoot;(0,_pluginResolver().assertInternalProjectRoot)(J)}let[ne,ie]=(0,_pluginResolver().normalizeStaticPlugin)(S.plugin);(0,_assert().default)(!ie?._resolverError,`Plugin property '_resolverError' is a reserved property of \`withStaticPlugin\``);let oe;if(typeof ne==="function"){oe=ne}else if(typeof ne==="string"){try{oe=(0,_pluginResolver().resolveConfigPluginFunction)(J,ne);if(re&&!!oe&&!!S._isLegacyPlugin&&!!S.fallback){console.log(`Force "${ne}" to unversioned plugin`);oe=S.fallback}}catch(b){if(ee){if(te){console.log(`Error resolving plugin "${ne}"`);console.log(b);console.log()}else{const J=S._isLegacyPlugin&&(isModuleMissingError(ne,b)||isUnexpectedTokenError(b));if(!J){if(isModuleMissingError(ne,b)){console.log(`Could not find plugin "${ne}"`)}else{console.log(`Error resolving plugin "${ne}"`);console.log(b);console.log()}}}}if(S.fallback){if(!ie)ie={};ie._resolverError=b;oe=S.fallback}else{throw b}}}else{throw new(_errors().PluginError)(`Plugin is an unexpected type: ${typeof ne}`,"INVALID_PLUGIN_TYPE")}b=oe(b,ie);return b};S.withStaticPlugin=withStaticPlugin},3943:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.FINGERPRINT_RUNTIME_VERSION_SENTINEL=void 0;S.getAppVersion=getAppVersion;S.getExpoUpdatesPackageVersion=getExpoUpdatesPackageVersion;S.getNativeVersion=getNativeVersion;S.getRuntimeVersionAsync=getRuntimeVersionAsync;S.getRuntimeVersionNullableAsync=getRuntimeVersionNullableAsync;S.getSDKVersion=getSDKVersion;S.getUpdateUrl=getUpdateUrl;S.getUpdatesCheckOnLaunch=getUpdatesCheckOnLaunch;S.getUpdatesCodeSigningCertificate=getUpdatesCodeSigningCertificate;S.getUpdatesCodeSigningMetadata=getUpdatesCodeSigningMetadata;S.getUpdatesCodeSigningMetadataStringified=getUpdatesCodeSigningMetadataStringified;S.getUpdatesEnabled=getUpdatesEnabled;S.getUpdatesRequestHeaders=getUpdatesRequestHeaders;S.getUpdatesRequestHeadersStringified=getUpdatesRequestHeadersStringified;S.getUpdatesTimeout=getUpdatesTimeout;S.resolveRuntimeVersionPolicyAsync=resolveRuntimeVersionPolicyAsync;function _sdkRuntimeVersions(){const b=J(6163);_sdkRuntimeVersions=function(){return b};return b}function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _getenv(){const b=J(37945);_getenv=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _resolveFrom(){const b=_interopRequireDefault(J(12753));_resolveFrom=function(){return b};return b}function _semver(){const b=_interopRequireDefault(J(77546));_semver=function(){return b};return b}function _(){const b=J(36581);_=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee=S.FINGERPRINT_RUNTIME_VERSION_SENTINEL="file:fingerprint";function getExpoUpdatesPackageVersion(b){const S=_resolveFrom().default.silent(b,"expo-updates/package.json");if(!S||!_fs().default.existsSync(S)){return null}const J=JSON.parse(_fs().default.readFileSync(S,"utf8"));return J.version}function getUpdateUrl(b){return b.updates?.url??null}function getAppVersion(b){return b.version??"1.0.0"}function getNativeVersion(b,S){const J=_().IOSConfig.Version.getVersion(b);switch(S){case"ios":{const S=_().IOSConfig.Version.getBuildNumber(b);return`${J}(${S})`}case"android":{const S=_().AndroidConfig.Version.getVersionCode(b);return`${J}(${S})`}default:{throw new Error(`"${S}" is not a supported platform. Choose either "ios" or "android".`)}}}async function getRuntimeVersionNullableAsync(...[b,S,J]){try{return await getRuntimeVersionAsync(b,S,J)}catch(b){if((0,_getenv().boolish)("EXPO_DEBUG",false)){console.log(b)}return null}}async function getRuntimeVersionAsync(b,S,J){const te=S[J]?.runtimeVersion??S.runtimeVersion;if(!te){return null}if(typeof te==="string"){if(te===ee){throw new Error(`${ee} is a reserved value for runtime version. To use a fingerprint runtime version, use the "fingerprint" runtime version policy.`)}return te}else if(!te.policy){throw new Error(`"${te}" is not a valid runtime version. Only a string or a runtime version policy is supported.`)}else if(te.policy==="fingerprint"){return ee}else{return await resolveRuntimeVersionPolicyAsync(te.policy,S,J)}}async function resolveRuntimeVersionPolicyAsync(b,S,J){if(b==="appVersion"){return getAppVersion(S)}else if(b==="nativeVersion"){return getNativeVersion(S,J)}else if(b==="sdkVersion"){if(!S.sdkVersion){throw new Error("An SDK version must be defined when using the 'sdkVersion' runtime policy.")}return(0,_sdkRuntimeVersions().getRuntimeVersionForSDKVersion)(S.sdkVersion)}else{throw new Error(`"${b}" is not a valid runtime version policy type.`)}}function getSDKVersion(b){return typeof b.sdkVersion==="string"?b.sdkVersion:null}function getUpdatesEnabled(b){if(b.updates?.enabled!==undefined){return b.updates.enabled}return getUpdateUrl(b)!==null}function getUpdatesTimeout(b){return b.updates?.fallbackToCacheTimeout??0}function getUpdatesCheckOnLaunch(b,S){if(b.updates?.checkAutomatically==="ON_ERROR_RECOVERY"){if(S&&_semver().default.gte(S,"0.11.0")){return"ERROR_RECOVERY_ONLY"}return"NEVER"}else if(b.updates?.checkAutomatically==="ON_LOAD"){return"ALWAYS"}else if(b.updates?.checkAutomatically==="WIFI_ONLY"){return"WIFI_ONLY"}else if(b.updates?.checkAutomatically==="NEVER"){return"NEVER"}return"ALWAYS"}function getUpdatesCodeSigningCertificate(b,S){const J=S.updates?.codeSigningCertificate;if(!J){return undefined}const ee=_path().default.join(b,J);if(!_fs().default.existsSync(ee)){throw new Error(`File not found at \`updates.codeSigningCertificate\` path: ${ee}`)}return _fs().default.readFileSync(ee,"utf8")}function getUpdatesCodeSigningMetadata(b){return b.updates?.codeSigningMetadata}function getUpdatesCodeSigningMetadataStringified(b){const S=getUpdatesCodeSigningMetadata(b);if(!S){return undefined}return JSON.stringify(S)}function getUpdatesRequestHeaders(b){return b.updates?.requestHeaders}function getUpdatesRequestHeadersStringified(b){const S=getUpdatesRequestHeaders(b);if(!S){return undefined}return JSON.stringify(S)}},78853:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S._processAndroidXML=_processAndroidXML;S.escapeAndroidString=escapeAndroidString;S.format=format;S.parseXMLAsync=parseXMLAsync;S.readXMLAsync=readXMLAsync;S.unescapeAndroidString=unescapeAndroidString;S.writeXMLAsync=writeXMLAsync;function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _os(){const b=J(22037);_os=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _xml2js(){const b=J(27013);_xml2js=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}async function writeXMLAsync(b){const S=format(b.xml);await _fs().default.promises.mkdir(_path().default.dirname(b.path),{recursive:true});await _fs().default.promises.writeFile(b.path,S)}async function readXMLAsync(b){let S="";try{S=await _fs().default.promises.readFile(b.path,{encoding:"utf8",flag:"r"})}catch{}const J=new(_xml2js().Parser);const ee=await J.parseStringPromise(S||b.fallback||"");return _processAndroidXML(ee)}function _processAndroidXML(b){if(Array.isArray(b?.resources?.string)){for(const S of b?.resources?.string){if(S.$.translatable==="false"||S.$.translatable===false){continue}S._=unescapeAndroidString(S._)}}return b}async function parseXMLAsync(b){const S=await(new(_xml2js().Parser)).parseStringPromise(b);return S}const stringTimesN=(b,S)=>Array(b+1).join(S);function format(b,{indentLevel:S=2,newline:J=_os().EOL}={}){let ee;if(typeof b==="string"){ee=b}else if(b.toString){const S=new(_xml2js().Builder)({headless:true});if(Array.isArray(b?.resources?.string)){for(const S of b?.resources?.string){if(S.$.translatable==="false"||S.$.translatable===false){continue}S._=escapeAndroidString(S._)}}ee=S.buildObject(b);return ee}else{throw new Error(`Invalid XML value passed in: ${b}`)}const te=stringTimesN(S," ");let re="";const ne=/(>)(<)(\/*)/g;const ie=ee.replace(ne,`$1${J}$2$3`);let oe=0;ie.split(/\r?\n/).map((b=>b.trim())).forEach((b=>{let S=0;if(b.match(/.+<\/\w[^>]*>$/)){S=0}else if(b.match(/^<\/\w/)){if(oe!==0){oe-=1}}else if(b.match(/^<\w([^>]*[^/])?>.*$/)){S=1}else{S=0}const ee=stringTimesN(oe,te);re+=ee+b+J;oe+=S}));return re.trim()}function escapeAndroidString(b){b=b.replace(/[\n\r\t'"@]/g,(b=>{switch(b){case'"':case"'":case"@":return"\\"+b;case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";default:throw new Error(`Cannot escape unhandled XML character: ${b}`)}}));if(b.match(/(^\s|\s$)/)){b='"'+b+'"'}return b}function unescapeAndroidString(b){return b.replace(/\\(.)/g,"$1")}},80837:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.insertContentsAtOffset=insertContentsAtOffset;S.replaceContentsWithOffset=replaceContentsWithOffset;S.searchFromOffset=searchFromOffset;function insertContentsAtOffset(b,S,J){const ee=b.length;if(J<0||J>ee){throw new Error("Invalid parameters.")}if(J===0){return`${S}${b}`}else if(J===ee){return`${b}${S}`}const te=b.substring(0,J);const re=b.substring(J);return`${te}${S}${re}`}function replaceContentsWithOffset(b,S,J,ee){const te=b.length;if(J<0||ee<0||J>=te||ee>=te||J>ee){throw new Error("Invalid parameters.")}const re=b.substring(0,J);const ne=b.substring(ee+1);return`${re}${S}${ne}`}function searchFromOffset(b,S,J){const ee=b.substring(J);const te=ee.search(S);return te<0?te:te+J}},13857:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.UnexpectedError=S.PluginError=void 0;class UnexpectedError extends Error{name="UnexpectedError";constructor(b){super(`${b}\nPlease report this as an issue on https://github.com/expo/expo/issues`)}}S.UnexpectedError=UnexpectedError;class PluginError extends Error{name="PluginError";isPluginError=true;constructor(b,S,J){super(J?`${b}\n└─ Cause: ${J.name}: ${J.message}`:b);this.code=S;this.cause=J}}S.PluginError=PluginError},32565:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.copyFilePathToPathAsync=copyFilePathToPathAsync;S.removeFile=removeFile;function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}async function copyFilePathToPathAsync(b,S){const J=await _fs().default.promises.readFile(b);await _fs().default.promises.mkdir(_path().default.dirname(S),{recursive:true});await _fs().default.promises.writeFile(S,J)}function removeFile(b){try{_fs().default.unlinkSync(b);return true}catch(b){if(b.code==="ENOENT"){return false}throw b}}},50017:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.createGeneratedHeaderComment=createGeneratedHeaderComment;S.createHash=createHash;S.mergeContents=mergeContents;S.removeContents=removeContents;S.removeGeneratedContents=removeGeneratedContents;function _crypto(){const b=_interopRequireDefault(J(6113));_crypto=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function getGeneratedSectionIndexes(b,S){const J=b.split("\n");const ee=J.findIndex((b=>new RegExp(`@generated begin ${S} -`).test(b)));const te=J.findIndex((b=>new RegExp(`@generated end ${S}$`).test(b)));return{contents:J,start:ee,end:te}}function mergeContents({src:b,newSrc:S,tag:J,anchor:ee,offset:te,comment:re}){const ne=createGeneratedHeaderComment(S,J,re);if(!b.includes(ne)){const ie=removeGeneratedContents(b,J);return{contents:addLines(ie??b,ee,te,[ne,...S.split("\n"),`${re} @generated end ${J}`]),didMerge:true,didClear:!!ie}}return{contents:b,didClear:false,didMerge:false}}function removeContents({src:b,tag:S}){const J=removeGeneratedContents(b,S);return{contents:J??b,didMerge:false,didClear:!!J}}function addLines(b,S,J,ee){const te=b.split("\n");let re=te.findIndex((b=>b.match(S)));if(re<0){const J=new Error(`Failed to match "${S}" in contents:\n${b}`);J.code="ERR_NO_MATCH";throw J}for(const b of ee){te.splice(re+J,0,b);re++}return te.join("\n")}function removeGeneratedContents(b,S){const{contents:J,start:ee,end:te}=getGeneratedSectionIndexes(b,S);if(ee>-1&&te>-1&&ee<te){J.splice(ee,te-ee+1);return J.join("\n")}return null}function createGeneratedHeaderComment(b,S,J){const ee=createHash(b);return`${J} @generated begin ${S} - expo prebuild (DO NOT MODIFY) ${ee}`}function createHash(b){const S=_crypto().default.createHash("sha1").update(b).digest("hex");return`sync-${S}`}},40928:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.addHistoryItem=addHistoryItem;S.getHistoryItem=getHistoryItem;function getHistoryItem(b,S){return b._internal?.pluginHistory?.[S]??null}function addHistoryItem(b,S){if(!b._internal){b._internal={}}if(!b._internal.pluginHistory){b._internal.pluginHistory={}}if(!S.version){S.version="UNVERSIONED"}b._internal.pluginHistory[S.name]=S;return b}},62042:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.findMatchingBracketPosition=findMatchingBracketPosition;const J=["(","{"];const ee=null&&[")","}"];function findMatchingBracketPosition(b,S,J=0){const ee=b.indexOf(S,J);if(ee<0){return-1}let te=0;const re=getMatchingBracket(S);if(isLeftBracket(S)){const J=b.length;for(let ne=ee+1;ne<J;++ne){const J=b[ne];if(J===S){te+=1}else if(J===re){if(te===0){return ne}te-=1}}}else{for(let J=ee-1;J>=0;--J){const ee=b[J];if(ee===S){te+=1}else if(ee===re){if(te===0){return J}te-=1}}}return-1}function isLeftBracket(b){const S=J;return S.includes(b)}function getMatchingBracket(b){switch(b){case"(":return")";case")":return"(";case"{":return"}";case"}":return"{";default:throw new Error(`Unsupported bracket - ${b}`)}}},35642:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.directoryExistsAsync=directoryExistsAsync;S.fileExists=fileExists;S.fileExistsAsync=fileExistsAsync;function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}async function statAsync(b){try{return await _fs().default.promises.stat(b)}catch{return null}}async function fileExistsAsync(b){return(await statAsync(b))?.isFile()??false}async function directoryExistsAsync(b){return(await statAsync(b))?.isDirectory()??false}function fileExists(b){try{return _fs().default.statSync(b).isFile()}catch{return false}}},67324:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.get=get;function get(b,S){const J=S.split(".");let ee=b;let te;while(te=J.shift()){if(!(te in ee)){return undefined}ee=ee[te]}return ee}},34661:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.assertInternalProjectRoot=assertInternalProjectRoot;S.moduleNameIsDirectFileReference=moduleNameIsDirectFileReference;S.normalizeStaticPlugin=normalizeStaticPlugin;S.pluginFileName=void 0;S.resolveConfigPluginExport=resolveConfigPluginExport;S.resolveConfigPluginFunction=resolveConfigPluginFunction;S.resolveConfigPluginFunctionWithInfo=resolveConfigPluginFunctionWithInfo;S.resolvePluginForModule=resolvePluginForModule;function _assert(){const b=_interopRequireDefault(J(39491));_assert=function(){return b};return b}function _findUp(){const b=_interopRequireDefault(J(14823));_findUp=function(){return b};return b}function path(){const b=_interopRequireWildcard(J(71017));path=function(){return b};return b}function _resolveFrom(){const b=_interopRequireDefault(J(12753));_resolveFrom=function(){return b};return b}function _errors(){const b=J(13857);_errors=function(){return b};return b}function _modules(){const b=J(35642);_modules=function(){return b};return b}function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee=S.pluginFileName="app.plugin.js";function findUpPackageJson(b){const S=_findUp().default.sync("package.json",{cwd:b});(0,_assert().default)(S,`No package.json found for module "${b}"`);return S}function resolvePluginForModule(b,S){const J=_resolveFrom().default.silent(b,S);if(!J){throw new(_errors().PluginError)(`Failed to resolve plugin for module "${S}" relative to "${b}"`,"PLUGIN_NOT_FOUND")}if(moduleNameIsDirectFileReference(S)){return{isPluginFile:false,filePath:J}}return findUpPlugin(J)}function pathIsFilePath(b){return!!b.match(/^(\.|~\/|\/)/g)}function moduleNameIsDirectFileReference(b){if(pathIsFilePath(b)){return true}const S=b.split(path().sep)?.length;if(b.startsWith("@")){return S>2}return S>1}function resolveExpoPluginFile(b){const S=_resolveFrom().default.silent(b,`./${ee}`);if(S&&(0,_modules().fileExists)(S)){return S}return null}function findUpPlugin(b){const S=findUpPackageJson(b);const J=path().dirname(S);const ee=resolveExpoPluginFile(J);return{filePath:ee??b,isPluginFile:!!ee}}function normalizeStaticPlugin(b){if(Array.isArray(b)){(0,_assert().default)(b.length>0&&b.length<3,`Wrong number of arguments provided for static config plugin, expected either 1 or 2, got ${b.length}`);return b}return[b,undefined]}function assertInternalProjectRoot(b){(0,_assert().default)(b,`Unexpected: Config \`_internal.projectRoot\` isn't defined by expo-cli, this is a bug.`)}function resolveConfigPluginFunction(b,S){const{plugin:J}=resolveConfigPluginFunctionWithInfo(b,S);return J}function resolveConfigPluginFunctionWithInfo(b,S){const{filePath:J,isPluginFile:ee}=resolvePluginForModule(b,S);let te;try{te=requirePluginFile(J)}catch(b){if(b instanceof SyntaxError){const J=`Learn more: https://docs.expo.dev/guides/config-plugins/#creating-a-plugin`;if(!ee&&!moduleNameIsDirectFileReference(S)){const ee=new(_errors().PluginError)(`Package "${S}" does not contain a valid config plugin.\n${J}\n\n${b.message}`,"INVALID_PLUGIN_IMPORT");ee.stack=b.stack;throw ee}}throw b}const re=resolveConfigPluginExport({plugin:te,pluginFile:J,pluginReference:S,isPluginFile:ee});return{plugin:re,pluginFile:J,pluginReference:S,isPluginFile:ee}}function resolveConfigPluginExport({plugin:b,pluginFile:S,pluginReference:J,isPluginFile:ee}){if(b.default!=null){b=b.default}if(typeof b!=="function"){const b=`Learn more: https://docs.expo.dev/guides/config-plugins/#creating-a-plugin`;if(!ee&&!moduleNameIsDirectFileReference(J)){throw new(_errors().PluginError)(`Package "${J}" does not contain a valid config plugin. Module must export a function from file: ${S}\n${b}`,"INVALID_PLUGIN_TYPE")}throw new(_errors().PluginError)(`Plugin "${J}" must export a function from file: ${S}. ${b}`,"INVALID_PLUGIN_TYPE")}return b}function requirePluginFile(b){try{return require(b)}catch(b){throw b}}},85387:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.reverseSortString=void 0;S.sortObjWithOrder=sortObjWithOrder;S.sortObject=sortObject;S.sortWithOrder=sortWithOrder;function sortObject(b,S){return Object.keys(b).sort(S).reduce(((S,J)=>({...S,[J]:b[J]})),{})}function sortObjWithOrder(b,S){const J=sortWithOrder(Object.keys(b),S);return J.reduce(((S,J)=>({...S,[J]:b[J]})),{})}function sortWithOrder(b,S){const J=[...new Set(S.concat(b))];const ee=[];while(J.length){const S=J.shift();const te=b.indexOf(S);if(te>-1){const[S]=b.splice(te,1);ee.push(S)}}return ee}const reverseSortString=(b,S)=>{if(b<S)return 1;if(b>S)return-1;return 0};S.reverseSortString=reverseSortString},194:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.gteSdkVersion=gteSdkVersion;S.lteSdkVersion=lteSdkVersion;function _semver(){const b=_interopRequireDefault(J(77546));_semver=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function gteSdkVersion(b,S){if(!b.sdkVersion){return false}if(b.sdkVersion==="UNVERSIONED"){return true}try{return _semver().default.gte(b.sdkVersion,S)}catch{throw new Error(`${b.sdkVersion} is not a valid version. Must be in the form of x.y.z`)}}function lteSdkVersion(b,S){if(!b.sdkVersion){return false}if(b.sdkVersion==="UNVERSIONED"){return false}try{return _semver().default.lte(b.sdkVersion,S)}catch{throw new Error(`${b.sdkVersion} is not a valid version. Must be in the form of x.y.z`)}}},128:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.addWarningAndroid=addWarningAndroid;S.addWarningForPlatform=addWarningForPlatform;S.addWarningIOS=addWarningIOS;function _chalk(){const b=_interopRequireDefault(J(68746));_chalk=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function addWarningAndroid(b,S,J){console.warn(formatWarning("android",b,S,J))}function addWarningIOS(b,S,J){console.warn(formatWarning("ios",b,S,J))}function addWarningForPlatform(b,S,J,ee){console.warn(formatWarning(b,S,J,ee))}function formatWarning(b,S,J,ee){return _chalk().default.yellow`${"» "+_chalk().default.bold(b)}: ${S}: ${J}${ee?_chalk().default.gray(" "+ee):""}`}},15014:(b,S,J)=>{S.alphasort=alphasort;S.alphasorti=alphasorti;S.setopts=setopts;S.ownProp=ownProp;S.makeAbs=makeAbs;S.finish=finish;S.mark=mark;S.isIgnored=isIgnored;S.childrenIgnored=childrenIgnored;function ownProp(b,S){return Object.prototype.hasOwnProperty.call(b,S)}var ee=J(71017);var te=J(99566);var re=J(21323);var ne=te.Minimatch;function alphasorti(b,S){return b.toLowerCase().localeCompare(S.toLowerCase())}function alphasort(b,S){return b.localeCompare(S)}function setupIgnores(b,S){b.ignore=S.ignore||[];if(!Array.isArray(b.ignore))b.ignore=[b.ignore];if(b.ignore.length){b.ignore=b.ignore.map(ignoreMap)}}function ignoreMap(b){var S=null;if(b.slice(-3)==="/**"){var J=b.replace(/(\/\*\*)+$/,"");S=new ne(J,{dot:true})}return{matcher:new ne(b,{dot:true}),gmatcher:S}}function setopts(b,S,J){if(!J)J={};if(J.matchBase&&-1===S.indexOf("/")){if(J.noglobstar){throw new Error("base matching requires globstar")}S="**/"+S}b.silent=!!J.silent;b.pattern=S;b.strict=J.strict!==false;b.realpath=!!J.realpath;b.realpathCache=J.realpathCache||Object.create(null);b.follow=!!J.follow;b.dot=!!J.dot;b.mark=!!J.mark;b.nodir=!!J.nodir;if(b.nodir)b.mark=true;b.sync=!!J.sync;b.nounique=!!J.nounique;b.nonull=!!J.nonull;b.nosort=!!J.nosort;b.nocase=!!J.nocase;b.stat=!!J.stat;b.noprocess=!!J.noprocess;b.absolute=!!J.absolute;b.maxLength=J.maxLength||Infinity;b.cache=J.cache||Object.create(null);b.statCache=J.statCache||Object.create(null);b.symlinks=J.symlinks||Object.create(null);setupIgnores(b,J);b.changedCwd=false;var te=process.cwd();if(!ownProp(J,"cwd"))b.cwd=te;else{b.cwd=ee.resolve(J.cwd);b.changedCwd=b.cwd!==te}b.root=J.root||ee.resolve(b.cwd,"/");b.root=ee.resolve(b.root);if(process.platform==="win32")b.root=b.root.replace(/\\/g,"/");b.cwdAbs=re(b.cwd)?b.cwd:makeAbs(b,b.cwd);if(process.platform==="win32")b.cwdAbs=b.cwdAbs.replace(/\\/g,"/");b.nomount=!!J.nomount;J.nonegate=true;J.nocomment=true;b.minimatch=new ne(S,J);b.options=b.minimatch.options}function finish(b){var S=b.nounique;var J=S?[]:Object.create(null);for(var ee=0,te=b.matches.length;ee<te;ee++){var re=b.matches[ee];if(!re||Object.keys(re).length===0){if(b.nonull){var ne=b.minimatch.globSet[ee];if(S)J.push(ne);else J[ne]=true}}else{var ie=Object.keys(re);if(S)J.push.apply(J,ie);else ie.forEach((function(b){J[b]=true}))}}if(!S)J=Object.keys(J);if(!b.nosort)J=J.sort(b.nocase?alphasorti:alphasort);if(b.mark){for(var ee=0;ee<J.length;ee++){J[ee]=b._mark(J[ee])}if(b.nodir){J=J.filter((function(S){var J=!/\/$/.test(S);var ee=b.cache[S]||b.cache[makeAbs(b,S)];if(J&&ee)J=ee!=="DIR"&&!Array.isArray(ee);return J}))}}if(b.ignore.length)J=J.filter((function(S){return!isIgnored(b,S)}));b.found=J}function mark(b,S){var J=makeAbs(b,S);var ee=b.cache[J];var te=S;if(ee){var re=ee==="DIR"||Array.isArray(ee);var ne=S.slice(-1)==="/";if(re&&!ne)te+="/";else if(!re&&ne)te=te.slice(0,-1);if(te!==S){var ie=makeAbs(b,te);b.statCache[ie]=b.statCache[J];b.cache[ie]=b.cache[J]}}return te}function makeAbs(b,S){var J=S;if(S.charAt(0)==="/"){J=ee.join(b.root,S)}else if(re(S)||S===""){J=S}else if(b.changedCwd){J=ee.resolve(b.cwd,S)}else{J=ee.resolve(S)}if(process.platform==="win32")J=J.replace(/\\/g,"/");return J}function isIgnored(b,S){if(!b.ignore.length)return false;return b.ignore.some((function(b){return b.matcher.match(S)||!!(b.gmatcher&&b.gmatcher.match(S))}))}function childrenIgnored(b,S){if(!b.ignore.length)return false;return b.ignore.some((function(b){return!!(b.gmatcher&&b.gmatcher.match(S))}))}},17682:(b,S,J)=>{b.exports=glob;var ee=J(57147);var te=J(98945);var re=J(99566);var ne=re.Minimatch;var ie=J(76919);var oe=J(82361).EventEmitter;var se=J(71017);var ae=J(39491);var ue=J(21323);var ce=J(76413);var le=J(15014);var pe=le.alphasort;var fe=le.alphasorti;var de=le.setopts;var he=le.ownProp;var me=J(39442);var ge=J(73837);var ye=le.childrenIgnored;var ve=le.isIgnored;var Te=J(87197);function glob(b,S,J){if(typeof S==="function")J=S,S={};if(!S)S={};if(S.sync){if(J)throw new TypeError("callback provided to sync glob");return ce(b,S)}return new Glob(b,S,J)}glob.sync=ce;var be=glob.GlobSync=ce.GlobSync;glob.glob=glob;function extend(b,S){if(S===null||typeof S!=="object"){return b}var J=Object.keys(S);var ee=J.length;while(ee--){b[J[ee]]=S[J[ee]]}return b}glob.hasMagic=function(b,S){var J=extend({},S);J.noprocess=true;var ee=new Glob(b,J);var te=ee.minimatch.set;if(!b)return false;if(te.length>1)return true;for(var re=0;re<te[0].length;re++){if(typeof te[0][re]!=="string")return true}return false};glob.Glob=Glob;ie(Glob,oe);function Glob(b,S,J){if(typeof S==="function"){J=S;S=null}if(S&&S.sync){if(J)throw new TypeError("callback provided to sync glob");return new be(b,S)}if(!(this instanceof Glob))return new Glob(b,S,J);de(this,b,S);this._didRealPath=false;var ee=this.minimatch.set.length;this.matches=new Array(ee);if(typeof J==="function"){J=Te(J);this.on("error",J);this.on("end",(function(b){J(null,b)}))}var te=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(ee===0)return done();var re=true;for(var ne=0;ne<ee;ne++){this._process(this.minimatch.set[ne],ne,false,done)}re=false;function done(){--te._processing;if(te._processing<=0){if(re){process.nextTick((function(){te._finish()}))}else{te._finish()}}}}Glob.prototype._finish=function(){ae(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();le.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var b=this.matches.length;if(b===0)return this._finish();var S=this;for(var J=0;J<this.matches.length;J++)this._realpathSet(J,next);function next(){if(--b===0)S._finish()}};Glob.prototype._realpathSet=function(b,S){var J=this.matches[b];if(!J)return S();var ee=Object.keys(J);var re=this;var ne=ee.length;if(ne===0)return S();var ie=this.matches[b]=Object.create(null);ee.forEach((function(J,ee){J=re._makeAbs(J);te.realpath(J,re.realpathCache,(function(ee,te){if(!ee)ie[te]=true;else if(ee.syscall==="stat")ie[J]=true;else re.emit("error",ee);if(--ne===0){re.matches[b]=ie;S()}}))}))};Glob.prototype._mark=function(b){return le.mark(this,b)};Glob.prototype._makeAbs=function(b){return le.makeAbs(this,b)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var b=this._emitQueue.slice(0);this._emitQueue.length=0;for(var S=0;S<b.length;S++){var J=b[S];this._emitMatch(J[0],J[1])}}if(this._processQueue.length){var ee=this._processQueue.slice(0);this._processQueue.length=0;for(var S=0;S<ee.length;S++){var te=ee[S];this._processing--;this._process(te[0],te[1],te[2],te[3])}}}};Glob.prototype._process=function(b,S,J,ee){ae(this instanceof Glob);ae(typeof ee==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([b,S,J,ee]);return}var te=0;while(typeof b[te]==="string"){te++}var ne;switch(te){case b.length:this._processSimple(b.join("/"),S,ee);return;case 0:ne=null;break;default:ne=b.slice(0,te).join("/");break}var ie=b.slice(te);var oe;if(ne===null)oe=".";else if(ue(ne)||ue(b.join("/"))){if(!ne||!ue(ne))ne="/"+ne;oe=ne}else oe=ne;var se=this._makeAbs(oe);if(ye(this,oe))return ee();var ce=ie[0]===re.GLOBSTAR;if(ce)this._processGlobStar(ne,oe,se,ie,S,J,ee);else this._processReaddir(ne,oe,se,ie,S,J,ee)};Glob.prototype._processReaddir=function(b,S,J,ee,te,re,ne){var ie=this;this._readdir(J,re,(function(oe,se){return ie._processReaddir2(b,S,J,ee,te,re,se,ne)}))};Glob.prototype._processReaddir2=function(b,S,J,ee,te,re,ne,ie){if(!ne)return ie();var oe=ee[0];var ae=!!this.minimatch.negate;var ue=oe._glob;var ce=this.dot||ue.charAt(0)===".";var le=[];for(var pe=0;pe<ne.length;pe++){var fe=ne[pe];if(fe.charAt(0)!=="."||ce){var de;if(ae&&!b){de=!fe.match(oe)}else{de=fe.match(oe)}if(de)le.push(fe)}}var he=le.length;if(he===0)return ie();if(ee.length===1&&!this.mark&&!this.stat){if(!this.matches[te])this.matches[te]=Object.create(null);for(var pe=0;pe<he;pe++){var fe=le[pe];if(b){if(b!=="/")fe=b+"/"+fe;else fe=b+fe}if(fe.charAt(0)==="/"&&!this.nomount){fe=se.join(this.root,fe)}this._emitMatch(te,fe)}return ie()}ee.shift();for(var pe=0;pe<he;pe++){var fe=le[pe];var me;if(b){if(b!=="/")fe=b+"/"+fe;else fe=b+fe}this._process([fe].concat(ee),te,re,ie)}ie()};Glob.prototype._emitMatch=function(b,S){if(this.aborted)return;if(ve(this,S))return;if(this.paused){this._emitQueue.push([b,S]);return}var J=ue(S)?S:this._makeAbs(S);if(this.mark)S=this._mark(S);if(this.absolute)S=J;if(this.matches[b][S])return;if(this.nodir){var ee=this.cache[J];if(ee==="DIR"||Array.isArray(ee))return}this.matches[b][S]=true;var te=this.statCache[J];if(te)this.emit("stat",S,te);this.emit("match",S)};Glob.prototype._readdirInGlobStar=function(b,S){if(this.aborted)return;if(this.follow)return this._readdir(b,false,S);var J="lstat\0"+b;var te=this;var re=me(J,lstatcb_);if(re)ee.lstat(b,re);function lstatcb_(J,ee){if(J&&J.code==="ENOENT")return S();var re=ee&&ee.isSymbolicLink();te.symlinks[b]=re;if(!re&&ee&&!ee.isDirectory()){te.cache[b]="FILE";S()}else te._readdir(b,false,S)}};Glob.prototype._readdir=function(b,S,J){if(this.aborted)return;J=me("readdir\0"+b+"\0"+S,J);if(!J)return;if(S&&!he(this.symlinks,b))return this._readdirInGlobStar(b,J);if(he(this.cache,b)){var te=this.cache[b];if(!te||te==="FILE")return J();if(Array.isArray(te))return J(null,te)}var re=this;ee.readdir(b,readdirCb(this,b,J))};function readdirCb(b,S,J){return function(ee,te){if(ee)b._readdirError(S,ee,J);else b._readdirEntries(S,te,J)}}Glob.prototype._readdirEntries=function(b,S,J){if(this.aborted)return;if(!this.mark&&!this.stat){for(var ee=0;ee<S.length;ee++){var te=S[ee];if(b==="/")te=b+te;else te=b+"/"+te;this.cache[te]=true}}this.cache[b]=S;return J(null,S)};Glob.prototype._readdirError=function(b,S,J){if(this.aborted)return;switch(S.code){case"ENOTSUP":case"ENOTDIR":var ee=this._makeAbs(b);this.cache[ee]="FILE";if(ee===this.cwdAbs){var te=new Error(S.code+" invalid cwd "+this.cwd);te.path=this.cwd;te.code=S.code;this.emit("error",te);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(b)]=false;break;default:this.cache[this._makeAbs(b)]=false;if(this.strict){this.emit("error",S);this.abort()}if(!this.silent)console.error("glob error",S);break}return J()};Glob.prototype._processGlobStar=function(b,S,J,ee,te,re,ne){var ie=this;this._readdir(J,re,(function(oe,se){ie._processGlobStar2(b,S,J,ee,te,re,se,ne)}))};Glob.prototype._processGlobStar2=function(b,S,J,ee,te,re,ne,ie){if(!ne)return ie();var oe=ee.slice(1);var se=b?[b]:[];var ae=se.concat(oe);this._process(ae,te,false,ie);var ue=this.symlinks[J];var ce=ne.length;if(ue&&re)return ie();for(var le=0;le<ce;le++){var pe=ne[le];if(pe.charAt(0)==="."&&!this.dot)continue;var fe=se.concat(ne[le],oe);this._process(fe,te,true,ie);var de=se.concat(ne[le],ee);this._process(de,te,true,ie)}ie()};Glob.prototype._processSimple=function(b,S,J){var ee=this;this._stat(b,(function(te,re){ee._processSimple2(b,S,te,re,J)}))};Glob.prototype._processSimple2=function(b,S,J,ee,te){if(!this.matches[S])this.matches[S]=Object.create(null);if(!ee)return te();if(b&&ue(b)&&!this.nomount){var re=/[\/\\]$/.test(b);if(b.charAt(0)==="/"){b=se.join(this.root,b)}else{b=se.resolve(this.root,b);if(re)b+="/"}}if(process.platform==="win32")b=b.replace(/\\/g,"/");this._emitMatch(S,b);te()};Glob.prototype._stat=function(b,S){var J=this._makeAbs(b);var te=b.slice(-1)==="/";if(b.length>this.maxLength)return S();if(!this.stat&&he(this.cache,J)){var re=this.cache[J];if(Array.isArray(re))re="DIR";if(!te||re==="DIR")return S(null,re);if(te&&re==="FILE")return S()}var ne;var ie=this.statCache[J];if(ie!==undefined){if(ie===false)return S(null,ie);else{var oe=ie.isDirectory()?"DIR":"FILE";if(te&&oe==="FILE")return S();else return S(null,oe,ie)}}var se=this;var ae=me("stat\0"+J,lstatcb_);if(ae)ee.lstat(J,ae);function lstatcb_(te,re){if(re&&re.isSymbolicLink()){return ee.stat(J,(function(ee,te){if(ee)se._stat2(b,J,null,re,S);else se._stat2(b,J,ee,te,S)}))}else{se._stat2(b,J,te,re,S)}}};Glob.prototype._stat2=function(b,S,J,ee,te){if(J&&(J.code==="ENOENT"||J.code==="ENOTDIR")){this.statCache[S]=false;return te()}var re=b.slice(-1)==="/";this.statCache[S]=ee;if(S.slice(-1)==="/"&&ee&&!ee.isDirectory())return te(null,false,ee);var ne=true;if(ee)ne=ee.isDirectory()?"DIR":"FILE";this.cache[S]=this.cache[S]||ne;if(re&&ne==="FILE")return te();return te(null,ne,ee)}},76413:(b,S,J)=>{b.exports=globSync;globSync.GlobSync=GlobSync;var ee=J(57147);var te=J(98945);var re=J(99566);var ne=re.Minimatch;var ie=J(17682).Glob;var oe=J(73837);var se=J(71017);var ae=J(39491);var ue=J(21323);var ce=J(15014);var le=ce.alphasort;var pe=ce.alphasorti;var fe=ce.setopts;var de=ce.ownProp;var he=ce.childrenIgnored;var me=ce.isIgnored;function globSync(b,S){if(typeof S==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(b,S).found}function GlobSync(b,S){if(!b)throw new Error("must provide pattern");if(typeof S==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(b,S);fe(this,b,S);if(this.noprocess)return this;var J=this.minimatch.set.length;this.matches=new Array(J);for(var ee=0;ee<J;ee++){this._process(this.minimatch.set[ee],ee,false)}this._finish()}GlobSync.prototype._finish=function(){ae(this instanceof GlobSync);if(this.realpath){var b=this;this.matches.forEach((function(S,J){var ee=b.matches[J]=Object.create(null);for(var re in S){try{re=b._makeAbs(re);var ne=te.realpathSync(re,b.realpathCache);ee[ne]=true}catch(S){if(S.syscall==="stat")ee[b._makeAbs(re)]=true;else throw S}}}))}ce.finish(this)};GlobSync.prototype._process=function(b,S,J){ae(this instanceof GlobSync);var ee=0;while(typeof b[ee]==="string"){ee++}var te;switch(ee){case b.length:this._processSimple(b.join("/"),S);return;case 0:te=null;break;default:te=b.slice(0,ee).join("/");break}var ne=b.slice(ee);var ie;if(te===null)ie=".";else if(ue(te)||ue(b.join("/"))){if(!te||!ue(te))te="/"+te;ie=te}else ie=te;var oe=this._makeAbs(ie);if(he(this,ie))return;var se=ne[0]===re.GLOBSTAR;if(se)this._processGlobStar(te,ie,oe,ne,S,J);else this._processReaddir(te,ie,oe,ne,S,J)};GlobSync.prototype._processReaddir=function(b,S,J,ee,te,re){var ne=this._readdir(J,re);if(!ne)return;var ie=ee[0];var oe=!!this.minimatch.negate;var ae=ie._glob;var ue=this.dot||ae.charAt(0)===".";var ce=[];for(var le=0;le<ne.length;le++){var pe=ne[le];if(pe.charAt(0)!=="."||ue){var fe;if(oe&&!b){fe=!pe.match(ie)}else{fe=pe.match(ie)}if(fe)ce.push(pe)}}var de=ce.length;if(de===0)return;if(ee.length===1&&!this.mark&&!this.stat){if(!this.matches[te])this.matches[te]=Object.create(null);for(var le=0;le<de;le++){var pe=ce[le];if(b){if(b.slice(-1)!=="/")pe=b+"/"+pe;else pe=b+pe}if(pe.charAt(0)==="/"&&!this.nomount){pe=se.join(this.root,pe)}this._emitMatch(te,pe)}return}ee.shift();for(var le=0;le<de;le++){var pe=ce[le];var he;if(b)he=[b,pe];else he=[pe];this._process(he.concat(ee),te,re)}};GlobSync.prototype._emitMatch=function(b,S){if(me(this,S))return;var J=this._makeAbs(S);if(this.mark)S=this._mark(S);if(this.absolute){S=J}if(this.matches[b][S])return;if(this.nodir){var ee=this.cache[J];if(ee==="DIR"||Array.isArray(ee))return}this.matches[b][S]=true;if(this.stat)this._stat(S)};GlobSync.prototype._readdirInGlobStar=function(b){if(this.follow)return this._readdir(b,false);var S;var J;var te;try{J=ee.lstatSync(b)}catch(b){if(b.code==="ENOENT"){return null}}var re=J&&J.isSymbolicLink();this.symlinks[b]=re;if(!re&&J&&!J.isDirectory())this.cache[b]="FILE";else S=this._readdir(b,false);return S};GlobSync.prototype._readdir=function(b,S){var J;if(S&&!de(this.symlinks,b))return this._readdirInGlobStar(b);if(de(this.cache,b)){var te=this.cache[b];if(!te||te==="FILE")return null;if(Array.isArray(te))return te}try{return this._readdirEntries(b,ee.readdirSync(b))}catch(S){this._readdirError(b,S);return null}};GlobSync.prototype._readdirEntries=function(b,S){if(!this.mark&&!this.stat){for(var J=0;J<S.length;J++){var ee=S[J];if(b==="/")ee=b+ee;else ee=b+"/"+ee;this.cache[ee]=true}}this.cache[b]=S;return S};GlobSync.prototype._readdirError=function(b,S){switch(S.code){case"ENOTSUP":case"ENOTDIR":var J=this._makeAbs(b);this.cache[J]="FILE";if(J===this.cwdAbs){var ee=new Error(S.code+" invalid cwd "+this.cwd);ee.path=this.cwd;ee.code=S.code;throw ee}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(b)]=false;break;default:this.cache[this._makeAbs(b)]=false;if(this.strict)throw S;if(!this.silent)console.error("glob error",S);break}};GlobSync.prototype._processGlobStar=function(b,S,J,ee,te,re){var ne=this._readdir(J,re);if(!ne)return;var ie=ee.slice(1);var oe=b?[b]:[];var se=oe.concat(ie);this._process(se,te,false);var ae=ne.length;var ue=this.symlinks[J];if(ue&&re)return;for(var ce=0;ce<ae;ce++){var le=ne[ce];if(le.charAt(0)==="."&&!this.dot)continue;var pe=oe.concat(ne[ce],ie);this._process(pe,te,true);var fe=oe.concat(ne[ce],ee);this._process(fe,te,true)}};GlobSync.prototype._processSimple=function(b,S){var J=this._stat(b);if(!this.matches[S])this.matches[S]=Object.create(null);if(!J)return;if(b&&ue(b)&&!this.nomount){var ee=/[\/\\]$/.test(b);if(b.charAt(0)==="/"){b=se.join(this.root,b)}else{b=se.resolve(this.root,b);if(ee)b+="/"}}if(process.platform==="win32")b=b.replace(/\\/g,"/");this._emitMatch(S,b)};GlobSync.prototype._stat=function(b){var S=this._makeAbs(b);var J=b.slice(-1)==="/";if(b.length>this.maxLength)return false;if(!this.stat&&de(this.cache,S)){var te=this.cache[S];if(Array.isArray(te))te="DIR";if(!J||te==="DIR")return te;if(J&&te==="FILE")return false}var re;var ne=this.statCache[S];if(!ne){var ie;try{ie=ee.lstatSync(S)}catch(b){if(b&&(b.code==="ENOENT"||b.code==="ENOTDIR")){this.statCache[S]=false;return false}}if(ie&&ie.isSymbolicLink()){try{ne=ee.statSync(S)}catch(b){ne=ie}}else{ne=ie}}this.statCache[S]=ne;var te=true;if(ne)te=ne.isDirectory()?"DIR":"FILE";this.cache[S]=this.cache[S]||te;if(J&&te==="FILE")return false;return te};GlobSync.prototype._mark=function(b){return ce.mark(this,b)};GlobSync.prototype._makeAbs=function(b){return ce.makeAbs(this,b)}},38937:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true})},24773:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee={getConfig:true,getPackageJson:true,getConfigFilePaths:true,modifyConfigAsync:true,getWebOutputPath:true,getNameFromConfig:true,getDefaultTarget:true,getProjectConfigDescription:true,getProjectConfigDescriptionWithPaths:true};S.getConfig=getConfig;S.getConfigFilePaths=getConfigFilePaths;S.getDefaultTarget=getDefaultTarget;S.getNameFromConfig=getNameFromConfig;S.getPackageJson=getPackageJson;S.getProjectConfigDescription=getProjectConfigDescription;S.getProjectConfigDescriptionWithPaths=getProjectConfigDescriptionWithPaths;S.getWebOutputPath=getWebOutputPath;S.modifyConfigAsync=modifyConfigAsync;function _jsonFile(){const b=_interopRequireDefault(J(66282));_jsonFile=function(){return b};return b}function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _glob(){const b=J(14203);_glob=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _resolveFrom(){const b=_interopRequireDefault(J(12753));_resolveFrom=function(){return b};return b}function _semver(){const b=_interopRequireDefault(J(77546));_semver=function(){return b};return b}function _slugify(){const b=_interopRequireDefault(J(22283));_slugify=function(){return b};return b}function _getConfig(){const b=J(36161);_getConfig=function(){return b};return b}function _getExpoSDKVersion(){const b=J(17044);_getExpoSDKVersion=function(){return b};return b}function _withConfigPlugins(){const b=J(56166);_withConfigPlugins=function(){return b};return b}function _withInternal(){const b=J(70220);_withInternal=function(){return b};return b}function _resolvePackageJson(){const b=J(44482);_resolvePackageJson=function(){return b};return b}var te=J(35756);Object.keys(te).forEach((function(b){if(b==="default"||b==="__esModule")return;if(Object.prototype.hasOwnProperty.call(ee,b))return;if(b in S&&S[b]===te[b])return;Object.defineProperty(S,b,{enumerable:true,get:function(){return te[b]}})}));function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}let re=false;function reduceExpoObject(b){if(!b)return b===undefined?null:b;if(b.expo&&!re){const S=Object.keys(b).filter((b=>b!=="expo"));if(S.length){re=true;const ansiYellow=b=>`[33m${b}[0m`;const ansiGray=b=>`[90m${b}[0m`;const ansiBold=b=>`[1m${b}[22m`;const b=S.length>1;console.warn(ansiYellow(ansiBold("Warning: ")+`Root-level ${ansiBold(`"expo"`)} object found. Ignoring extra key${b?"s":""} in Expo config: ${S.map((b=>`"${b}"`)).join(", ")}\n`+ansiGray(`Learn more: https://expo.fyi/root-expo-object`)))}}const{mods:S,...J}=b.expo??b;return{expo:J,mods:S}}function getSupportedPlatforms(b){const S=[];if(_resolveFrom().default.silent(b,"react-native")){S.push("ios","android")}if(_resolveFrom().default.silent(b,"react-native-web")){S.push("web")}return S}function getConfig(b,S={}){const J=getConfigFilePaths(b);const ee=J.staticConfigPath?(0,_getConfig().getStaticConfig)(J.staticConfigPath):null;const te=ee||{};const re=reduceExpoObject(ee)||{};const[ne,ie]=getPackageJsonAndPath(b);function fillAndReturnConfig(ee,re,oe=false){const se={...ensureConfigHasDefaultValues({projectRoot:b,exp:ee.expo,pkg:ne,skipSDKVersionRequirement:S.skipSDKVersionRequirement,paths:J,packageJsonPath:ie}),mods:ee.mods,dynamicConfigObjectType:re,rootConfig:te,dynamicConfigPath:J.dynamicConfigPath,staticConfigPath:J.staticConfigPath,hasUnusedStaticConfig:!!J.staticConfigPath&&!!J.dynamicConfigPath&&oe};if(S.isModdedConfig){se.exp.mods=ee.mods??null}se.exp=(0,_withConfigPlugins().withConfigPlugins)(se.exp,!!S.skipPlugins);if(!S.isModdedConfig){delete se.exp.mods}if(S.isPublicConfig){delete se.exp._internal;if("hooks"in se.exp){delete se.exp.hooks}if(se.exp.ios?.config){delete se.exp.ios.config}if(se.exp.android?.config){delete se.exp.android.config}delete se.exp.updates?.codeSigningCertificate;delete se.exp.updates?.codeSigningMetadata}return se}function getContextConfig(S){return ensureConfigHasDefaultValues({projectRoot:b,exp:S.expo,pkg:ne,skipSDKVersionRequirement:true,paths:J,packageJsonPath:ie}).exp}if(J.dynamicConfigPath){const{exportedObjectType:S,config:ee,mayHaveUnusedStaticConfig:te}=(0,_getConfig().getDynamicConfig)(J.dynamicConfigPath,{projectRoot:b,staticConfigPath:J.staticConfigPath,packageJsonPath:ie,config:getContextConfig(re)});const ne=reduceExpoObject(ee)||{};return fillAndReturnConfig(ne,S,te)}return fillAndReturnConfig(re||{},null)}function getPackageJson(b){const[S]=getPackageJsonAndPath(b);return S}function getPackageJsonAndPath(b){const S=(0,_resolvePackageJson().getRootPackageJsonPath)(b);return[_jsonFile().default.read(S),S]}function getConfigFilePaths(b){return{dynamicConfigPath:getDynamicConfigFilePath(b),staticConfigPath:getStaticConfigFilePath(b)}}function getDynamicConfigFilePath(b){for(const S of["app.config.ts","app.config.js"]){const J=_path().default.join(b,S);if(_fs().default.existsSync(J)){return J}}return null}function getStaticConfigFilePath(b){for(const S of["app.config.json","app.json"]){const J=_path().default.join(b,S);if(_fs().default.existsSync(J)){return J}}return null}async function modifyConfigAsync(b,S,J={},ee={}){const te=getConfig(b,J);if(te.dynamicConfigPath){return{type:"warn",message:`Cannot automatically write to dynamic config at: ${_path().default.relative(b,te.dynamicConfigPath)}`,config:null}}else if(te.staticConfigPath){let b;if(te.rootConfig.expo){b={...te.rootConfig,expo:{...te.rootConfig.expo,...S}}}else{b={...te.rootConfig,...S}}if(!ee.dryRun){await _jsonFile().default.writeAsync(te.staticConfigPath,b,{json5:false})}return{type:"success",config:b}}return{type:"fail",message:"No config exists",config:null}}function ensureConfigHasDefaultValues({projectRoot:b,exp:S,pkg:J,paths:ee,packageJsonPath:te,skipSDKVersionRequirement:re=false}){if(!S){S={}}S=(0,_withInternal().withInternal)(S,{projectRoot:b,...ee??{},packageJsonPath:te});const ne=typeof J.name==="string"?J.name:_path().default.basename(b);const ie=typeof J.version==="string"?J.version:"1.0.0";const oe={...J,name:ne,version:ie};const se=S.name??ne;const ae=S.slug??(0,_slugify().default)(se.toLowerCase());const ue=S.version??ie;let ce=S.description;if(!ce&&typeof J.description==="string"){ce=J.description}const le={...S,name:se,slug:ae,version:ue,description:ce};let pe;try{pe=(0,_getExpoSDKVersion().getExpoSDKVersion)(b,le)}catch(b){if(!re)throw b}let fe=S.platforms;if(!fe){fe=getSupportedPlatforms(b)}return{exp:{...le,sdkVersion:pe,platforms:fe},pkg:oe}}const ne=`web-build`;function getWebOutputPath(b={}){if(process.env.WEBPACK_BUILD_OUTPUT_PATH){return process.env.WEBPACK_BUILD_OUTPUT_PATH}const S=b.expo||b||{};return S?.web?.build?.output||ne}function getNameFromConfig(b={}){const S=b.expo||b;const{web:J={}}=S;const ee=b.displayName||S.displayName||S.name;const te=J.name||ee;return{appName:ee,webName:te}}function getDefaultTarget(b,S){S??=getConfig(b,{skipSDKVersionRequirement:true}).exp;if(S.sdkVersion&&S.sdkVersion!=="UNVERSIONED"&&_semver().default.lt(S.sdkVersion,"37.0.0")){return"managed"}return isBareWorkflowProject(b)?"bare":"managed"}function isBareWorkflowProject(b){const[S]=getPackageJsonAndPath(b);if(S.dependencies&&S.dependencies.expokit){return false}const J=(0,_glob().sync)("ios/**/*.xcodeproj",{absolute:true,cwd:b});if(J.length){return true}const ee=(0,_glob().sync)("android/**/*.gradle",{absolute:true,cwd:b});if(ee.length){return true}return false}function getProjectConfigDescription(b){const S=getConfigFilePaths(b);return getProjectConfigDescriptionWithPaths(b,S)}function getProjectConfigDescriptionWithPaths(b,S){if(S.dynamicConfigPath){const J=_path().default.relative(b,S.dynamicConfigPath);if(S.staticConfigPath){return`${J} or ${_path().default.relative(b,S.staticConfigPath)}`}return J}else if(S.staticConfigPath){return _path().default.relative(b,S.staticConfigPath)}return"app.json"}},35756:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});Object.defineProperty(S,"ExpoConfig",{enumerable:true,get:function(){return _configTypes().ExpoConfig}});S.ProjectPrivacy=void 0;function _configTypes(){const b=J(38937);_configTypes=function(){return b};return b}let ee=S.ProjectPrivacy=function(b){b["PUBLIC"]="public";b["UNLISTED"]="unlisted";return b}({})},46133:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.ConfigError=void 0;class ConfigError extends Error{name="ConfigError";isConfigError=true;constructor(b,S,J){super(J?`${b}\n└─ Cause: ${J.name}: ${J.message}`:b);this.code=S;this.cause=J}}S.ConfigError=ConfigError},4297:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.serializeAfterStaticPlugins=serializeAfterStaticPlugins;S.serializeAndEvaluate=serializeAndEvaluate;S.serializeSkippingMods=serializeSkippingMods;function _Errors(){const b=J(46133);_Errors=function(){return b};return b}function serializeAndEvaluate(b){if(["undefined","string","boolean","number","bigint"].includes(typeof b)){return b}else if(typeof b==="function"){return b()}else if(Array.isArray(b)){return b.map(serializeAndEvaluate)}else if(typeof b==="object"){const S={};for(const J in b){if(b.hasOwnProperty(J)){S[J]=serializeAndEvaluate(b[J])}}return S}throw new(_Errors().ConfigError)(`Expo config doesn't support \`Symbols\`: ${b}`,"INVALID_CONFIG")}function serializeSkippingMods(b){if(typeof b==="object"&&!Array.isArray(b)){const S={};for(const J in b){if(b.hasOwnProperty(J)){if(J==="mods"||J==="plugins"){S[J]=b[J]}else{S[J]=serializeAndEvaluate(b[J])}}}return S}return serializeAndEvaluate(b)}function serializeAndEvaluatePlugin(b){if(["undefined","string","boolean","number","bigint"].includes(typeof b)){return b}else if(typeof b==="function"){return b.name||"withAnonymous"}else if(Array.isArray(b)){return b.map(serializeAndEvaluatePlugin)}else if(typeof b==="object"){const S={};for(const J in b){if(b.hasOwnProperty(J)){S[J]=serializeAndEvaluatePlugin(b[J])}}return S}throw new(_Errors().ConfigError)(`Expo config doesn't support \`Symbols\`: ${b}`,"INVALID_CONFIG")}function serializeAfterStaticPlugins(b){if(typeof b==="object"&&!Array.isArray(b)){const S={};for(const J in b){if(b.hasOwnProperty(J)){if(J==="mods"){S[J]=b[J]}else if(J==="plugins"&&Array.isArray(b[J])){S[J]=b[J].map(serializeAndEvaluatePlugin)}else{S[J]=serializeAndEvaluate(b[J])}}}return S}return serializeAndEvaluate(b)}},43319:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.NON_STANDARD_SYMBOL=void 0;const J=S.NON_STANDARD_SYMBOL=Symbol("non-standard")},1413:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.evalConfig=evalConfig;S.resolveConfigExport=resolveConfigExport;function _fs(){const b=J(57147);_fs=function(){return b};return b}function _requireFromString(){const b=_interopRequireDefault(J(40463));_requireFromString=function(){return b};return b}function _sucrase(){const b=J(55155);_sucrase=function(){return b};return b}function _Errors(){const b=J(46133);_Errors=function(){return b};return b}function _Serialize(){const b=J(4297);_Serialize=function(){return b};return b}function _environment(){const b=J(43319);_environment=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function evalConfig(b,S){const ee=(0,_fs().readFileSync)(b,"utf8");let te;try{const{code:S}=(0,_sucrase().transform)(ee,{filePath:b,transforms:["typescript","imports"]});te=(0,_requireFromString().default)(S,b)}catch(b){const S=extractLocationFromSyntaxError(b);if(S){const{codeFrameColumns:S}=J(63225);const te=S(ee,{start:b.loc},{highlightCode:true});b.codeFrame=te;b.message+=`\n${te}`}else{const S=extractImportantStackFromNodeError(b);if(S){b.message+=`\n${S}`}}throw b}return resolveConfigExport(te,b,S)}function extractLocationFromSyntaxError(b){if(b.loc){return b.loc}if("lineNumber"in b&&"columnNumber"in b){return{line:b.lineNumber,column:b.columnNumber}}return null}function extractImportantStackFromNodeError(b){if(isSyntaxError(b)){const S=b.stack?.split("\n").filter((b=>!b.startsWith(" at ")));if(!S)return null;if(S[S.length-1].startsWith("SyntaxError:")){S.pop()}return S.join("\n")}return null}function isSyntaxError(b){return b instanceof SyntaxError||b.constructor.name==="SyntaxError"}function resolveConfigExport(b,S,J){const ee=_environment().NON_STANDARD_SYMBOL;if(J?.config){J.config[ee]=true}if(b.default!=null){b=b.default}const te=typeof b;if(typeof b==="function"){b=b(J)}if(b instanceof Promise){throw new(_Errors().ConfigError)(`Config file ${S} cannot return a Promise.`,"INVALID_CONFIG")}const re=J?.config?.[ee]&&!b?.[ee];if(b){delete b._hasBaseStaticConfig}if(b?.expo){b=(0,_Serialize().serializeSkippingMods)(b.expo)}else{b=(0,_Serialize().serializeSkippingMods)(b)}return{config:b,exportedObjectType:te,mayHaveUnusedStaticConfig:re}}},23409:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getAccountUsername=getAccountUsername;function _getUserState(){const b=J(19879);_getUserState=function(){return b};return b}const ee="anonymous";function getAccountUsername(b={}){const S=b.owner||process.env.EXPO_CLI_USERNAME||process.env.EAS_BUILD_USERNAME;if(S){return S}return(0,_getUserState().getUserState)().read().auth?.username||ee}},36161:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getDynamicConfig=getDynamicConfig;S.getStaticConfig=getStaticConfig;function _jsonFile(){const b=_interopRequireDefault(J(66282));_jsonFile=function(){return b};return b}function _fs(){const b=J(57147);_fs=function(){return b};return b}function _Errors(){const b=J(46133);_Errors=function(){return b};return b}function _evalConfig(){const b=J(1413);_evalConfig=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function readConfigFile(b,S){if(!(0,_fs().existsSync)(b)){return null}try{return(0,_evalConfig().evalConfig)(b,S)}catch(S){S.isConfigError=true;S.message=`Error reading Expo config at ${b}:\n\n${S.message}`;throw S}}function getDynamicConfig(b,S){const J=readConfigFile(b,S);if(J){return J}throw new(_Errors().ConfigError)(`Failed to read config at: ${b}`,"INVALID_CONFIG")}function getStaticConfig(b){const S=_jsonFile().default.read(b,{json5:true});if(S){return S}throw new(_Errors().ConfigError)(`Failed to read config at: ${b}`,"INVALID_CONFIG")}},17044:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getExpoSDKVersion=getExpoSDKVersion;function _jsonFile(){const b=_interopRequireDefault(J(66282));_jsonFile=function(){return b};return b}function _resolveFrom(){const b=_interopRequireDefault(J(12753));_resolveFrom=function(){return b};return b}function _Errors(){const b=J(46133);_Errors=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function getExpoSDKVersion(b,S={}){return S?.sdkVersion??getExpoSDKVersionFromPackage(b)}function getExpoSDKVersionFromPackage(b){const S=_resolveFrom().default.silent(b,"expo/package.json");if(!S){throw new(_Errors().ConfigError)(`Cannot determine which native SDK version your project uses because the module \`expo\` is not installed. Please install it with \`yarn add expo\` and try again.`,"MODULE_NOT_FOUND")}const J=_jsonFile().default.read(S,{json5:true});const{version:ee}=J;if(!(typeof ee==="string")){throw new(_Errors().ConfigError)(`Cannot determine which native SDK version your project uses because the module \`expo\` has an invalid package.json (missing \`version\` field). Try reinstalling node modules and trying again.`,"MODULE_NOT_FOUND")}const te=ee.split(".").shift();return`${te}.0.0`}},19879:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getExpoHomeDirectory=getExpoHomeDirectory;S.getUserState=getUserState;S.getUserStatePath=getUserStatePath;function _jsonFile(){const b=_interopRequireDefault(J(66282));_jsonFile=function(){return b};return b}function _getenv(){const b=J(37945);_getenv=function(){return b};return b}function _os(){const b=J(22037);_os=function(){return b};return b}function path(){const b=_interopRequireWildcard(J(71017));path=function(){return b};return b}function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function getExpoHomeDirectory(){const b=(0,_os().homedir)();if(process.env.__UNSAFE_EXPO_HOME_DIRECTORY){return process.env.__UNSAFE_EXPO_HOME_DIRECTORY}else if((0,_getenv().boolish)("EXPO_STAGING",false)){return path().join(b,".expo-staging")}else if((0,_getenv().boolish)("EXPO_LOCAL",false)){return path().join(b,".expo-local")}return path().join(b,".expo")}function getUserStatePath(){return path().join(getExpoHomeDirectory(),"state.json")}function getUserState(){return new(_jsonFile().default)(getUserStatePath(),{jsonParseErrorDefault:{},cantReadFileDefault:{}})}},81993:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee={getAccountUsername:true};Object.defineProperty(S,"getAccountUsername",{enumerable:true,get:function(){return _getAccountUsername().getAccountUsername}});var te=J(24773);Object.keys(te).forEach((function(b){if(b==="default"||b==="__esModule")return;if(Object.prototype.hasOwnProperty.call(ee,b))return;if(b in S&&S[b]===te[b])return;Object.defineProperty(S,b,{enumerable:true,get:function(){return te[b]}})}));var re=J(35756);Object.keys(re).forEach((function(b){if(b==="default"||b==="__esModule")return;if(Object.prototype.hasOwnProperty.call(ee,b))return;if(b in S&&S[b]===re[b])return;Object.defineProperty(S,b,{enumerable:true,get:function(){return re[b]}})}));var ne=J(17044);Object.keys(ne).forEach((function(b){if(b==="default"||b==="__esModule")return;if(Object.prototype.hasOwnProperty.call(ee,b))return;if(b in S&&S[b]===ne[b])return;Object.defineProperty(S,b,{enumerable:true,get:function(){return ne[b]}})}));var ie=J(46133);Object.keys(ie).forEach((function(b){if(b==="default"||b==="__esModule")return;if(Object.prototype.hasOwnProperty.call(ee,b))return;if(b in S&&S[b]===ie[b])return;Object.defineProperty(S,b,{enumerable:true,get:function(){return ie[b]}})}));function _getAccountUsername(){const b=J(23409);_getAccountUsername=function(){return b};return b}},56166:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.withConfigPlugins=void 0;function _configPlugins(){const b=J(36581);_configPlugins=function(){return b};return b}function _Serialize(){const b=J(4297);_Serialize=function(){return b};return b}const withConfigPlugins=(b,S)=>{if(!Array.isArray(b.plugins)||!b.plugins?.length){return b}if(!S){b=(0,_configPlugins().withPlugins)(b,b.plugins)}else{delete b.plugins}return(0,_Serialize().serializeAfterStaticPlugins)(b)};S.withConfigPlugins=withConfigPlugins},70220:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.withInternal=S.EXPO_DEBUG=void 0;function _getenv(){const b=J(37945);_getenv=function(){return b};return b}const ee=S.EXPO_DEBUG=(0,_getenv().boolish)("EXPO_DEBUG",false);const withInternal=(b,S)=>{if(!b._internal){b._internal={}}b._internal={isDebug:ee,...b._internal,...S};return b};S.withInternal=withInternal},44482:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getRootPackageJsonPath=getRootPackageJsonPath;function _fs(){const b=J(57147);_fs=function(){return b};return b}function _path(){const b=J(71017);_path=function(){return b};return b}function _Errors(){const b=J(46133);_Errors=function(){return b};return b}function getRootPackageJsonPath(b){const S=(0,_path().join)(b,"package.json");if(!(0,_fs().existsSync)(S)){throw new(_Errors().ConfigError)(`The expected package.json path: ${S} does not exist`,"MODULE_NOT_FOUND")}return S}},63225:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.codeFrameColumns=codeFrameColumns;S["default"]=_default;var ee=_interopRequireWildcard(J(40932));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var b=new WeakMap;_getRequireWildcardCache=function(){return b};return b}function _interopRequireWildcard(b){if(b&&b.__esModule){return b}if(b===null||typeof b!=="object"&&typeof b!=="function"){return{default:b}}var S=_getRequireWildcardCache();if(S&&S.has(b)){return S.get(b)}var J={};var ee=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var te in b){if(Object.prototype.hasOwnProperty.call(b,te)){var re=ee?Object.getOwnPropertyDescriptor(b,te):null;if(re&&(re.get||re.set)){Object.defineProperty(J,te,re)}else{J[te]=b[te]}}}J.default=b;if(S){S.set(b,J)}return J}let te=false;function getDefs(b){return{gutter:b.grey,marker:b.red.bold,message:b.red.bold}}const re=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(b,S,J){const ee=Object.assign({column:0,line:-1},b.start);const te=Object.assign({},ee,b.end);const{linesAbove:re=2,linesBelow:ne=3}=J||{};const ie=ee.line;const oe=ee.column;const se=te.line;const ae=te.column;let ue=Math.max(ie-(re+1),0);let ce=Math.min(S.length,se+ne);if(ie===-1){ue=0}if(se===-1){ce=S.length}const le=se-ie;const pe={};if(le){for(let b=0;b<=le;b++){const J=b+ie;if(!oe){pe[J]=true}else if(b===0){const b=S[J-1].length;pe[J]=[oe,b-oe+1]}else if(b===le){pe[J]=[0,ae]}else{const ee=S[J-b].length;pe[J]=[0,ee]}}}else{if(oe===ae){if(oe){pe[ie]=[oe,0]}else{pe[ie]=true}}else{pe[ie]=[oe,ae-oe]}}return{start:ue,end:ce,markerLines:pe}}function codeFrameColumns(b,S,J={}){const te=(J.highlightCode||J.forceColor)&&(0,ee.shouldHighlight)(J);const ne=(0,ee.getChalk)(J);const ie=getDefs(ne);const maybeHighlight=(b,S)=>te?b(S):S;const oe=b.split(re);const{start:se,end:ae,markerLines:ue}=getMarkerLines(S,oe,J);const ce=S.start&&typeof S.start.column==="number";const le=String(ae).length;const pe=te?(0,ee.default)(b,J):b;let fe=pe.split(re).slice(se,ae).map(((b,S)=>{const ee=se+1+S;const te=` ${ee}`.slice(-le);const re=` ${te} | `;const ne=ue[ee];const oe=!ue[ee+1];if(ne){let S="";if(Array.isArray(ne)){const ee=b.slice(0,Math.max(ne[0]-1,0)).replace(/[^\t]/g," ");const te=ne[1]||1;S=["\n ",maybeHighlight(ie.gutter,re.replace(/\d/g," ")),ee,maybeHighlight(ie.marker,"^").repeat(te)].join("");if(oe&&J.message){S+=" "+maybeHighlight(ie.message,J.message)}}return[maybeHighlight(ie.marker,">"),maybeHighlight(ie.gutter,re),b,S].join("")}else{return` ${maybeHighlight(ie.gutter,re)}${b}`}})).join("\n");if(J.message&&!ce){fe=`${" ".repeat(le+1)}${J.message}\n${fe}`}if(te){return ne.reset(fe)}else{return fe}}function _default(b,S,J,ee={}){if(!te){te=true;const b="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(b,"DeprecationWarning")}else{const S=new Error(b);S.name="DeprecationWarning";console.warn(new Error(b))}}J=Math.max(J,0);const re={start:{column:J,line:S}};return codeFrameColumns(b,re,ee)}},48599:(b,S,J)=>{S.alphasort=alphasort;S.alphasorti=alphasorti;S.setopts=setopts;S.ownProp=ownProp;S.makeAbs=makeAbs;S.finish=finish;S.mark=mark;S.isIgnored=isIgnored;S.childrenIgnored=childrenIgnored;function ownProp(b,S){return Object.prototype.hasOwnProperty.call(b,S)}var ee=J(71017);var te=J(99566);var re=J(21323);var ne=te.Minimatch;function alphasorti(b,S){return b.toLowerCase().localeCompare(S.toLowerCase())}function alphasort(b,S){return b.localeCompare(S)}function setupIgnores(b,S){b.ignore=S.ignore||[];if(!Array.isArray(b.ignore))b.ignore=[b.ignore];if(b.ignore.length){b.ignore=b.ignore.map(ignoreMap)}}function ignoreMap(b){var S=null;if(b.slice(-3)==="/**"){var J=b.replace(/(\/\*\*)+$/,"");S=new ne(J,{dot:true})}return{matcher:new ne(b,{dot:true}),gmatcher:S}}function setopts(b,S,J){if(!J)J={};if(J.matchBase&&-1===S.indexOf("/")){if(J.noglobstar){throw new Error("base matching requires globstar")}S="**/"+S}b.silent=!!J.silent;b.pattern=S;b.strict=J.strict!==false;b.realpath=!!J.realpath;b.realpathCache=J.realpathCache||Object.create(null);b.follow=!!J.follow;b.dot=!!J.dot;b.mark=!!J.mark;b.nodir=!!J.nodir;if(b.nodir)b.mark=true;b.sync=!!J.sync;b.nounique=!!J.nounique;b.nonull=!!J.nonull;b.nosort=!!J.nosort;b.nocase=!!J.nocase;b.stat=!!J.stat;b.noprocess=!!J.noprocess;b.absolute=!!J.absolute;b.maxLength=J.maxLength||Infinity;b.cache=J.cache||Object.create(null);b.statCache=J.statCache||Object.create(null);b.symlinks=J.symlinks||Object.create(null);setupIgnores(b,J);b.changedCwd=false;var te=process.cwd();if(!ownProp(J,"cwd"))b.cwd=te;else{b.cwd=ee.resolve(J.cwd);b.changedCwd=b.cwd!==te}b.root=J.root||ee.resolve(b.cwd,"/");b.root=ee.resolve(b.root);if(process.platform==="win32")b.root=b.root.replace(/\\/g,"/");b.cwdAbs=re(b.cwd)?b.cwd:makeAbs(b,b.cwd);if(process.platform==="win32")b.cwdAbs=b.cwdAbs.replace(/\\/g,"/");b.nomount=!!J.nomount;J.nonegate=true;J.nocomment=true;b.minimatch=new ne(S,J);b.options=b.minimatch.options}function finish(b){var S=b.nounique;var J=S?[]:Object.create(null);for(var ee=0,te=b.matches.length;ee<te;ee++){var re=b.matches[ee];if(!re||Object.keys(re).length===0){if(b.nonull){var ne=b.minimatch.globSet[ee];if(S)J.push(ne);else J[ne]=true}}else{var ie=Object.keys(re);if(S)J.push.apply(J,ie);else ie.forEach((function(b){J[b]=true}))}}if(!S)J=Object.keys(J);if(!b.nosort)J=J.sort(b.nocase?alphasorti:alphasort);if(b.mark){for(var ee=0;ee<J.length;ee++){J[ee]=b._mark(J[ee])}if(b.nodir){J=J.filter((function(S){var J=!/\/$/.test(S);var ee=b.cache[S]||b.cache[makeAbs(b,S)];if(J&&ee)J=ee!=="DIR"&&!Array.isArray(ee);return J}))}}if(b.ignore.length)J=J.filter((function(S){return!isIgnored(b,S)}));b.found=J}function mark(b,S){var J=makeAbs(b,S);var ee=b.cache[J];var te=S;if(ee){var re=ee==="DIR"||Array.isArray(ee);var ne=S.slice(-1)==="/";if(re&&!ne)te+="/";else if(!re&&ne)te=te.slice(0,-1);if(te!==S){var ie=makeAbs(b,te);b.statCache[ie]=b.statCache[J];b.cache[ie]=b.cache[J]}}return te}function makeAbs(b,S){var J=S;if(S.charAt(0)==="/"){J=ee.join(b.root,S)}else if(re(S)||S===""){J=S}else if(b.changedCwd){J=ee.resolve(b.cwd,S)}else{J=ee.resolve(S)}if(process.platform==="win32")J=J.replace(/\\/g,"/");return J}function isIgnored(b,S){if(!b.ignore.length)return false;return b.ignore.some((function(b){return b.matcher.match(S)||!!(b.gmatcher&&b.gmatcher.match(S))}))}function childrenIgnored(b,S){if(!b.ignore.length)return false;return b.ignore.some((function(b){return!!(b.gmatcher&&b.gmatcher.match(S))}))}},14203:(b,S,J)=>{b.exports=glob;var ee=J(57147);var te=J(98945);var re=J(99566);var ne=re.Minimatch;var ie=J(76919);var oe=J(82361).EventEmitter;var se=J(71017);var ae=J(39491);var ue=J(21323);var ce=J(21276);var le=J(48599);var pe=le.alphasort;var fe=le.alphasorti;var de=le.setopts;var he=le.ownProp;var me=J(39442);var ge=J(73837);var ye=le.childrenIgnored;var ve=le.isIgnored;var Te=J(87197);function glob(b,S,J){if(typeof S==="function")J=S,S={};if(!S)S={};if(S.sync){if(J)throw new TypeError("callback provided to sync glob");return ce(b,S)}return new Glob(b,S,J)}glob.sync=ce;var be=glob.GlobSync=ce.GlobSync;glob.glob=glob;function extend(b,S){if(S===null||typeof S!=="object"){return b}var J=Object.keys(S);var ee=J.length;while(ee--){b[J[ee]]=S[J[ee]]}return b}glob.hasMagic=function(b,S){var J=extend({},S);J.noprocess=true;var ee=new Glob(b,J);var te=ee.minimatch.set;if(!b)return false;if(te.length>1)return true;for(var re=0;re<te[0].length;re++){if(typeof te[0][re]!=="string")return true}return false};glob.Glob=Glob;ie(Glob,oe);function Glob(b,S,J){if(typeof S==="function"){J=S;S=null}if(S&&S.sync){if(J)throw new TypeError("callback provided to sync glob");return new be(b,S)}if(!(this instanceof Glob))return new Glob(b,S,J);de(this,b,S);this._didRealPath=false;var ee=this.minimatch.set.length;this.matches=new Array(ee);if(typeof J==="function"){J=Te(J);this.on("error",J);this.on("end",(function(b){J(null,b)}))}var te=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(ee===0)return done();var re=true;for(var ne=0;ne<ee;ne++){this._process(this.minimatch.set[ne],ne,false,done)}re=false;function done(){--te._processing;if(te._processing<=0){if(re){process.nextTick((function(){te._finish()}))}else{te._finish()}}}}Glob.prototype._finish=function(){ae(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();le.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var b=this.matches.length;if(b===0)return this._finish();var S=this;for(var J=0;J<this.matches.length;J++)this._realpathSet(J,next);function next(){if(--b===0)S._finish()}};Glob.prototype._realpathSet=function(b,S){var J=this.matches[b];if(!J)return S();var ee=Object.keys(J);var re=this;var ne=ee.length;if(ne===0)return S();var ie=this.matches[b]=Object.create(null);ee.forEach((function(J,ee){J=re._makeAbs(J);te.realpath(J,re.realpathCache,(function(ee,te){if(!ee)ie[te]=true;else if(ee.syscall==="stat")ie[J]=true;else re.emit("error",ee);if(--ne===0){re.matches[b]=ie;S()}}))}))};Glob.prototype._mark=function(b){return le.mark(this,b)};Glob.prototype._makeAbs=function(b){return le.makeAbs(this,b)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var b=this._emitQueue.slice(0);this._emitQueue.length=0;for(var S=0;S<b.length;S++){var J=b[S];this._emitMatch(J[0],J[1])}}if(this._processQueue.length){var ee=this._processQueue.slice(0);this._processQueue.length=0;for(var S=0;S<ee.length;S++){var te=ee[S];this._processing--;this._process(te[0],te[1],te[2],te[3])}}}};Glob.prototype._process=function(b,S,J,ee){ae(this instanceof Glob);ae(typeof ee==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([b,S,J,ee]);return}var te=0;while(typeof b[te]==="string"){te++}var ne;switch(te){case b.length:this._processSimple(b.join("/"),S,ee);return;case 0:ne=null;break;default:ne=b.slice(0,te).join("/");break}var ie=b.slice(te);var oe;if(ne===null)oe=".";else if(ue(ne)||ue(b.join("/"))){if(!ne||!ue(ne))ne="/"+ne;oe=ne}else oe=ne;var se=this._makeAbs(oe);if(ye(this,oe))return ee();var ce=ie[0]===re.GLOBSTAR;if(ce)this._processGlobStar(ne,oe,se,ie,S,J,ee);else this._processReaddir(ne,oe,se,ie,S,J,ee)};Glob.prototype._processReaddir=function(b,S,J,ee,te,re,ne){var ie=this;this._readdir(J,re,(function(oe,se){return ie._processReaddir2(b,S,J,ee,te,re,se,ne)}))};Glob.prototype._processReaddir2=function(b,S,J,ee,te,re,ne,ie){if(!ne)return ie();var oe=ee[0];var ae=!!this.minimatch.negate;var ue=oe._glob;var ce=this.dot||ue.charAt(0)===".";var le=[];for(var pe=0;pe<ne.length;pe++){var fe=ne[pe];if(fe.charAt(0)!=="."||ce){var de;if(ae&&!b){de=!fe.match(oe)}else{de=fe.match(oe)}if(de)le.push(fe)}}var he=le.length;if(he===0)return ie();if(ee.length===1&&!this.mark&&!this.stat){if(!this.matches[te])this.matches[te]=Object.create(null);for(var pe=0;pe<he;pe++){var fe=le[pe];if(b){if(b!=="/")fe=b+"/"+fe;else fe=b+fe}if(fe.charAt(0)==="/"&&!this.nomount){fe=se.join(this.root,fe)}this._emitMatch(te,fe)}return ie()}ee.shift();for(var pe=0;pe<he;pe++){var fe=le[pe];var me;if(b){if(b!=="/")fe=b+"/"+fe;else fe=b+fe}this._process([fe].concat(ee),te,re,ie)}ie()};Glob.prototype._emitMatch=function(b,S){if(this.aborted)return;if(ve(this,S))return;if(this.paused){this._emitQueue.push([b,S]);return}var J=ue(S)?S:this._makeAbs(S);if(this.mark)S=this._mark(S);if(this.absolute)S=J;if(this.matches[b][S])return;if(this.nodir){var ee=this.cache[J];if(ee==="DIR"||Array.isArray(ee))return}this.matches[b][S]=true;var te=this.statCache[J];if(te)this.emit("stat",S,te);this.emit("match",S)};Glob.prototype._readdirInGlobStar=function(b,S){if(this.aborted)return;if(this.follow)return this._readdir(b,false,S);var J="lstat\0"+b;var te=this;var re=me(J,lstatcb_);if(re)ee.lstat(b,re);function lstatcb_(J,ee){if(J&&J.code==="ENOENT")return S();var re=ee&&ee.isSymbolicLink();te.symlinks[b]=re;if(!re&&ee&&!ee.isDirectory()){te.cache[b]="FILE";S()}else te._readdir(b,false,S)}};Glob.prototype._readdir=function(b,S,J){if(this.aborted)return;J=me("readdir\0"+b+"\0"+S,J);if(!J)return;if(S&&!he(this.symlinks,b))return this._readdirInGlobStar(b,J);if(he(this.cache,b)){var te=this.cache[b];if(!te||te==="FILE")return J();if(Array.isArray(te))return J(null,te)}var re=this;ee.readdir(b,readdirCb(this,b,J))};function readdirCb(b,S,J){return function(ee,te){if(ee)b._readdirError(S,ee,J);else b._readdirEntries(S,te,J)}}Glob.prototype._readdirEntries=function(b,S,J){if(this.aborted)return;if(!this.mark&&!this.stat){for(var ee=0;ee<S.length;ee++){var te=S[ee];if(b==="/")te=b+te;else te=b+"/"+te;this.cache[te]=true}}this.cache[b]=S;return J(null,S)};Glob.prototype._readdirError=function(b,S,J){if(this.aborted)return;switch(S.code){case"ENOTSUP":case"ENOTDIR":var ee=this._makeAbs(b);this.cache[ee]="FILE";if(ee===this.cwdAbs){var te=new Error(S.code+" invalid cwd "+this.cwd);te.path=this.cwd;te.code=S.code;this.emit("error",te);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(b)]=false;break;default:this.cache[this._makeAbs(b)]=false;if(this.strict){this.emit("error",S);this.abort()}if(!this.silent)console.error("glob error",S);break}return J()};Glob.prototype._processGlobStar=function(b,S,J,ee,te,re,ne){var ie=this;this._readdir(J,re,(function(oe,se){ie._processGlobStar2(b,S,J,ee,te,re,se,ne)}))};Glob.prototype._processGlobStar2=function(b,S,J,ee,te,re,ne,ie){if(!ne)return ie();var oe=ee.slice(1);var se=b?[b]:[];var ae=se.concat(oe);this._process(ae,te,false,ie);var ue=this.symlinks[J];var ce=ne.length;if(ue&&re)return ie();for(var le=0;le<ce;le++){var pe=ne[le];if(pe.charAt(0)==="."&&!this.dot)continue;var fe=se.concat(ne[le],oe);this._process(fe,te,true,ie);var de=se.concat(ne[le],ee);this._process(de,te,true,ie)}ie()};Glob.prototype._processSimple=function(b,S,J){var ee=this;this._stat(b,(function(te,re){ee._processSimple2(b,S,te,re,J)}))};Glob.prototype._processSimple2=function(b,S,J,ee,te){if(!this.matches[S])this.matches[S]=Object.create(null);if(!ee)return te();if(b&&ue(b)&&!this.nomount){var re=/[\/\\]$/.test(b);if(b.charAt(0)==="/"){b=se.join(this.root,b)}else{b=se.resolve(this.root,b);if(re)b+="/"}}if(process.platform==="win32")b=b.replace(/\\/g,"/");this._emitMatch(S,b);te()};Glob.prototype._stat=function(b,S){var J=this._makeAbs(b);var te=b.slice(-1)==="/";if(b.length>this.maxLength)return S();if(!this.stat&&he(this.cache,J)){var re=this.cache[J];if(Array.isArray(re))re="DIR";if(!te||re==="DIR")return S(null,re);if(te&&re==="FILE")return S()}var ne;var ie=this.statCache[J];if(ie!==undefined){if(ie===false)return S(null,ie);else{var oe=ie.isDirectory()?"DIR":"FILE";if(te&&oe==="FILE")return S();else return S(null,oe,ie)}}var se=this;var ae=me("stat\0"+J,lstatcb_);if(ae)ee.lstat(J,ae);function lstatcb_(te,re){if(re&&re.isSymbolicLink()){return ee.stat(J,(function(ee,te){if(ee)se._stat2(b,J,null,re,S);else se._stat2(b,J,ee,te,S)}))}else{se._stat2(b,J,te,re,S)}}};Glob.prototype._stat2=function(b,S,J,ee,te){if(J&&(J.code==="ENOENT"||J.code==="ENOTDIR")){this.statCache[S]=false;return te()}var re=b.slice(-1)==="/";this.statCache[S]=ee;if(S.slice(-1)==="/"&&ee&&!ee.isDirectory())return te(null,false,ee);var ne=true;if(ee)ne=ee.isDirectory()?"DIR":"FILE";this.cache[S]=this.cache[S]||ne;if(re&&ne==="FILE")return te();return te(null,ne,ee)}},21276:(b,S,J)=>{b.exports=globSync;globSync.GlobSync=GlobSync;var ee=J(57147);var te=J(98945);var re=J(99566);var ne=re.Minimatch;var ie=J(14203).Glob;var oe=J(73837);var se=J(71017);var ae=J(39491);var ue=J(21323);var ce=J(48599);var le=ce.alphasort;var pe=ce.alphasorti;var fe=ce.setopts;var de=ce.ownProp;var he=ce.childrenIgnored;var me=ce.isIgnored;function globSync(b,S){if(typeof S==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(b,S).found}function GlobSync(b,S){if(!b)throw new Error("must provide pattern");if(typeof S==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(b,S);fe(this,b,S);if(this.noprocess)return this;var J=this.minimatch.set.length;this.matches=new Array(J);for(var ee=0;ee<J;ee++){this._process(this.minimatch.set[ee],ee,false)}this._finish()}GlobSync.prototype._finish=function(){ae(this instanceof GlobSync);if(this.realpath){var b=this;this.matches.forEach((function(S,J){var ee=b.matches[J]=Object.create(null);for(var re in S){try{re=b._makeAbs(re);var ne=te.realpathSync(re,b.realpathCache);ee[ne]=true}catch(S){if(S.syscall==="stat")ee[b._makeAbs(re)]=true;else throw S}}}))}ce.finish(this)};GlobSync.prototype._process=function(b,S,J){ae(this instanceof GlobSync);var ee=0;while(typeof b[ee]==="string"){ee++}var te;switch(ee){case b.length:this._processSimple(b.join("/"),S);return;case 0:te=null;break;default:te=b.slice(0,ee).join("/");break}var ne=b.slice(ee);var ie;if(te===null)ie=".";else if(ue(te)||ue(b.join("/"))){if(!te||!ue(te))te="/"+te;ie=te}else ie=te;var oe=this._makeAbs(ie);if(he(this,ie))return;var se=ne[0]===re.GLOBSTAR;if(se)this._processGlobStar(te,ie,oe,ne,S,J);else this._processReaddir(te,ie,oe,ne,S,J)};GlobSync.prototype._processReaddir=function(b,S,J,ee,te,re){var ne=this._readdir(J,re);if(!ne)return;var ie=ee[0];var oe=!!this.minimatch.negate;var ae=ie._glob;var ue=this.dot||ae.charAt(0)===".";var ce=[];for(var le=0;le<ne.length;le++){var pe=ne[le];if(pe.charAt(0)!=="."||ue){var fe;if(oe&&!b){fe=!pe.match(ie)}else{fe=pe.match(ie)}if(fe)ce.push(pe)}}var de=ce.length;if(de===0)return;if(ee.length===1&&!this.mark&&!this.stat){if(!this.matches[te])this.matches[te]=Object.create(null);for(var le=0;le<de;le++){var pe=ce[le];if(b){if(b.slice(-1)!=="/")pe=b+"/"+pe;else pe=b+pe}if(pe.charAt(0)==="/"&&!this.nomount){pe=se.join(this.root,pe)}this._emitMatch(te,pe)}return}ee.shift();for(var le=0;le<de;le++){var pe=ce[le];var he;if(b)he=[b,pe];else he=[pe];this._process(he.concat(ee),te,re)}};GlobSync.prototype._emitMatch=function(b,S){if(me(this,S))return;var J=this._makeAbs(S);if(this.mark)S=this._mark(S);if(this.absolute){S=J}if(this.matches[b][S])return;if(this.nodir){var ee=this.cache[J];if(ee==="DIR"||Array.isArray(ee))return}this.matches[b][S]=true;if(this.stat)this._stat(S)};GlobSync.prototype._readdirInGlobStar=function(b){if(this.follow)return this._readdir(b,false);var S;var J;var te;try{J=ee.lstatSync(b)}catch(b){if(b.code==="ENOENT"){return null}}var re=J&&J.isSymbolicLink();this.symlinks[b]=re;if(!re&&J&&!J.isDirectory())this.cache[b]="FILE";else S=this._readdir(b,false);return S};GlobSync.prototype._readdir=function(b,S){var J;if(S&&!de(this.symlinks,b))return this._readdirInGlobStar(b);if(de(this.cache,b)){var te=this.cache[b];if(!te||te==="FILE")return null;if(Array.isArray(te))return te}try{return this._readdirEntries(b,ee.readdirSync(b))}catch(S){this._readdirError(b,S);return null}};GlobSync.prototype._readdirEntries=function(b,S){if(!this.mark&&!this.stat){for(var J=0;J<S.length;J++){var ee=S[J];if(b==="/")ee=b+ee;else ee=b+"/"+ee;this.cache[ee]=true}}this.cache[b]=S;return S};GlobSync.prototype._readdirError=function(b,S){switch(S.code){case"ENOTSUP":case"ENOTDIR":var J=this._makeAbs(b);this.cache[J]="FILE";if(J===this.cwdAbs){var ee=new Error(S.code+" invalid cwd "+this.cwd);ee.path=this.cwd;ee.code=S.code;throw ee}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(b)]=false;break;default:this.cache[this._makeAbs(b)]=false;if(this.strict)throw S;if(!this.silent)console.error("glob error",S);break}};GlobSync.prototype._processGlobStar=function(b,S,J,ee,te,re){var ne=this._readdir(J,re);if(!ne)return;var ie=ee.slice(1);var oe=b?[b]:[];var se=oe.concat(ie);this._process(se,te,false);var ae=ne.length;var ue=this.symlinks[J];if(ue&&re)return;for(var ce=0;ce<ae;ce++){var le=ne[ce];if(le.charAt(0)==="."&&!this.dot)continue;var pe=oe.concat(ne[ce],ie);this._process(pe,te,true);var fe=oe.concat(ne[ce],ee);this._process(fe,te,true)}};GlobSync.prototype._processSimple=function(b,S){var J=this._stat(b);if(!this.matches[S])this.matches[S]=Object.create(null);if(!J)return;if(b&&ue(b)&&!this.nomount){var ee=/[\/\\]$/.test(b);if(b.charAt(0)==="/"){b=se.join(this.root,b)}else{b=se.resolve(this.root,b);if(ee)b+="/"}}if(process.platform==="win32")b=b.replace(/\\/g,"/");this._emitMatch(S,b)};GlobSync.prototype._stat=function(b){var S=this._makeAbs(b);var J=b.slice(-1)==="/";if(b.length>this.maxLength)return false;if(!this.stat&&de(this.cache,S)){var te=this.cache[S];if(Array.isArray(te))te="DIR";if(!J||te==="DIR")return te;if(J&&te==="FILE")return false}var re;var ne=this.statCache[S];if(!ne){var ie;try{ie=ee.lstatSync(S)}catch(b){if(b&&(b.code==="ENOENT"||b.code==="ENOTDIR")){this.statCache[S]=false;return false}}if(ie&&ie.isSymbolicLink()){try{ne=ee.statSync(S)}catch(b){ne=ie}}else{ne=ie}}this.statCache[S]=ne;var te=true;if(ne)te=ne.isDirectory()?"DIR":"FILE";this.cache[S]=this.cache[S]||te;if(J&&te==="FILE")return false;return te};GlobSync.prototype._mark=function(b){return ce.mark(this,b)};GlobSync.prototype._makeAbs=function(b){return ce.makeAbs(this,b)}},66282:function(b,S,J){"use strict";var ee=this&&this.__createBinding||(Object.create?function(b,S,J,ee){if(ee===undefined)ee=J;var te=Object.getOwnPropertyDescriptor(S,J);if(!te||("get"in te?!S.__esModule:te.writable||te.configurable)){te={enumerable:true,get:function(){return S[J]}}}Object.defineProperty(b,ee,te)}:function(b,S,J,ee){if(ee===undefined)ee=J;b[ee]=S[J]});var te=this&&this.__setModuleDefault||(Object.create?function(b,S){Object.defineProperty(b,"default",{enumerable:true,value:S})}:function(b,S){b["default"]=S});var re=this&&this.__importStar||function(b){if(b&&b.__esModule)return b;var S={};if(b!=null)for(var J in b)if(J!=="default"&&Object.prototype.hasOwnProperty.call(b,J))ee(S,b,J);te(S,b);return S};var ne=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});const ie=J(86779);const oe=ne(J(57147));const se=ne(J(25130));const ae=ne(J(71017));const ue=J(73837);const ce=ne(J(50460));const le=re(J(11486));const pe=(0,ue.promisify)(ce.default);const fe={badJsonDefault:undefined,jsonParseErrorDefault:undefined,cantReadFileDefault:undefined,ensureDir:false,default:undefined,json5:false,space:2,addNewLineAtEOF:true};class JsonFile{file;options;static read=read;static readAsync=readAsync;static parseJsonString=parseJsonString;static writeAsync=writeAsync;static getAsync=getAsync;static setAsync=setAsync;static mergeAsync=mergeAsync;static deleteKeyAsync=deleteKeyAsync;static deleteKeysAsync=deleteKeysAsync;static rewriteAsync=rewriteAsync;constructor(b,S={}){this.file=b;this.options=S}read(b){return read(this.file,this._getOptions(b))}async readAsync(b){return readAsync(this.file,this._getOptions(b))}async writeAsync(b,S){return writeAsync(this.file,b,this._getOptions(S))}parseJsonString(b,S){return parseJsonString(b,S)}async getAsync(b,S,J){return getAsync(this.file,b,S,this._getOptions(J))}async setAsync(b,S,J){return setAsync(this.file,b,S,this._getOptions(J))}async mergeAsync(b,S){return mergeAsync(this.file,b,this._getOptions(S))}async deleteKeyAsync(b,S){return deleteKeyAsync(this.file,b,this._getOptions(S))}async deleteKeysAsync(b,S){return deleteKeysAsync(this.file,b,this._getOptions(S))}async rewriteAsync(b){return rewriteAsync(this.file,this._getOptions(b))}_getOptions(b){return{...this.options,...b}}}S["default"]=JsonFile;function read(b,S){let J;try{J=oe.default.readFileSync(b,"utf8")}catch(ee){assertEmptyJsonString(J,b);const te=cantReadFileDefault(S);if(te===undefined){throw new le.default(`Can't read JSON file: ${b}`,ee,ee.code,b)}else{return te}}return parseJsonString(J,S,b)}async function readAsync(b,S){let J;try{J=await oe.default.promises.readFile(b,"utf8")}catch(ee){assertEmptyJsonString(J,b);const te=cantReadFileDefault(S);if(te===undefined){throw new le.default(`Can't read JSON file: ${b}`,ee,ee.code)}else{return te}}return parseJsonString(J,S)}function parseJsonString(b,S,J){assertEmptyJsonString(b,J);try{if(_getOption(S,"json5")){return se.default.parse(b)}else{return JSON.parse(b)}}catch(ee){const te=jsonParseErrorDefault(S);if(te===undefined){const S=locationFromSyntaxError(ee,b);if(S){const J=(0,ie.codeFrameColumns)(b,{start:S});ee.codeFrame=J;ee.message+=`\n${J}`}throw new le.default(`Error parsing JSON: ${b}`,ee,"EJSONPARSE",J)}else{return te}}}async function getAsync(b,S,J,ee){const te=await readAsync(b,ee);if(S in te){return te[S]}if(J===undefined){throw new le.default(`No value at key path "${String(S)}" in JSON object from: ${b}`)}return J}async function writeAsync(b,S,J){if(J?.ensureDir){await oe.default.promises.mkdir(ae.default.dirname(b),{recursive:true})}const ee=_getOption(J,"space");const te=_getOption(J,"json5");const re=_getOption(J,"addNewLineAtEOF");let ne;try{if(te){ne=se.default.stringify(S,null,ee)}else{ne=JSON.stringify(S,null,ee)}}catch(S){throw new le.default(`Couldn't JSON.stringify object for file: ${b}`,S)}const ie=re?`${ne}\n`:ne;await pe(b,ie,{});return S}async function setAsync(b,S,J,ee){const te=await readAsync(b,ee);return writeAsync(b,{...te,[S]:J},ee)}async function mergeAsync(b,S,J){const ee=await readAsync(b,J);if(Array.isArray(S)){Object.assign(ee,...S)}else{Object.assign(ee,S)}return writeAsync(b,ee,J)}async function deleteKeyAsync(b,S,J){return deleteKeysAsync(b,[S],J)}async function deleteKeysAsync(b,S,J){const ee=await readAsync(b,J);let te=false;for(let b=0;b<S.length;b++){const J=S[b];if(ee.hasOwnProperty(J)){delete ee[J];te=true}}if(te){return writeAsync(b,ee,J)}return ee}async function rewriteAsync(b,S){const J=await readAsync(b,S);return writeAsync(b,J,S)}function jsonParseErrorDefault(b={}){if(b.jsonParseErrorDefault===undefined){return b.default}else{return b.jsonParseErrorDefault}}function cantReadFileDefault(b={}){if(b.cantReadFileDefault===undefined){return b.default}else{return b.cantReadFileDefault}}function _getOption(b,S){if(b){if(b[S]!==undefined){return b[S]}}return fe[S]}function locationFromSyntaxError(b,S){if("lineNumber"in b&&"columnNumber"in b){return{line:b.lineNumber,column:b.columnNumber}}const J=/at position (\d+)/.exec(b.message);if(J){const b=parseInt(J[1],10);const ee=S.slice(0,b+1).split("\n");return{line:ee.length,column:ee[ee.length-1].length}}return null}function assertEmptyJsonString(b,S){if(b?.trim()===""){throw new le.EmptyJsonFileError(S)}}},11486:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.EmptyJsonFileError=void 0;class JsonFileError extends Error{cause;code;fileName;isJsonFileError;constructor(b,S,J,ee){let te=b;if(ee){te+=`\n${S?"├":"└"}─ File: ${ee}`}if(S){te+=`\n└─ Cause: ${S.name}: ${S.message}`}super(te);this.name=this.constructor.name;this.cause=S;this.code=J;this.fileName=ee;this.isJsonFileError=true}}S["default"]=JsonFileError;class EmptyJsonFileError extends JsonFileError{constructor(b){super(`Cannot parse an empty JSON string`,undefined,"EJSONEMPTY",b)}}S.EmptyJsonFileError=EmptyJsonFileError},86779:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.codeFrameColumns=codeFrameColumns;S["default"]=_default;var ee=_interopRequireWildcard(J(40932));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var b=new WeakMap;_getRequireWildcardCache=function(){return b};return b}function _interopRequireWildcard(b){if(b&&b.__esModule){return b}if(b===null||typeof b!=="object"&&typeof b!=="function"){return{default:b}}var S=_getRequireWildcardCache();if(S&&S.has(b)){return S.get(b)}var J={};var ee=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var te in b){if(Object.prototype.hasOwnProperty.call(b,te)){var re=ee?Object.getOwnPropertyDescriptor(b,te):null;if(re&&(re.get||re.set)){Object.defineProperty(J,te,re)}else{J[te]=b[te]}}}J.default=b;if(S){S.set(b,J)}return J}let te=false;function getDefs(b){return{gutter:b.grey,marker:b.red.bold,message:b.red.bold}}const re=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(b,S,J){const ee=Object.assign({column:0,line:-1},b.start);const te=Object.assign({},ee,b.end);const{linesAbove:re=2,linesBelow:ne=3}=J||{};const ie=ee.line;const oe=ee.column;const se=te.line;const ae=te.column;let ue=Math.max(ie-(re+1),0);let ce=Math.min(S.length,se+ne);if(ie===-1){ue=0}if(se===-1){ce=S.length}const le=se-ie;const pe={};if(le){for(let b=0;b<=le;b++){const J=b+ie;if(!oe){pe[J]=true}else if(b===0){const b=S[J-1].length;pe[J]=[oe,b-oe+1]}else if(b===le){pe[J]=[0,ae]}else{const ee=S[J-b].length;pe[J]=[0,ee]}}}else{if(oe===ae){if(oe){pe[ie]=[oe,0]}else{pe[ie]=true}}else{pe[ie]=[oe,ae-oe]}}return{start:ue,end:ce,markerLines:pe}}function codeFrameColumns(b,S,J={}){const te=(J.highlightCode||J.forceColor)&&(0,ee.shouldHighlight)(J);const ne=(0,ee.getChalk)(J);const ie=getDefs(ne);const maybeHighlight=(b,S)=>te?b(S):S;const oe=b.split(re);const{start:se,end:ae,markerLines:ue}=getMarkerLines(S,oe,J);const ce=S.start&&typeof S.start.column==="number";const le=String(ae).length;const pe=te?(0,ee.default)(b,J):b;let fe=pe.split(re).slice(se,ae).map(((b,S)=>{const ee=se+1+S;const te=` ${ee}`.slice(-le);const re=` ${te} | `;const ne=ue[ee];const oe=!ue[ee+1];if(ne){let S="";if(Array.isArray(ne)){const ee=b.slice(0,Math.max(ne[0]-1,0)).replace(/[^\t]/g," ");const te=ne[1]||1;S=["\n ",maybeHighlight(ie.gutter,re.replace(/\d/g," ")),ee,maybeHighlight(ie.marker,"^").repeat(te)].join("");if(oe&&J.message){S+=" "+maybeHighlight(ie.message,J.message)}}return[maybeHighlight(ie.marker,">"),maybeHighlight(ie.gutter,re),b,S].join("")}else{return` ${maybeHighlight(ie.gutter,re)}${b}`}})).join("\n");if(J.message&&!ce){fe=`${" ".repeat(le+1)}${J.message}\n${fe}`}if(te){return ne.reset(fe)}else{return fe}}function _default(b,S,J,ee={}){if(!te){te=true;const b="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(b,"DeprecationWarning")}else{const S=new Error(b);S.name="DeprecationWarning";console.warn(new Error(b))}}J=Math.max(J,0);const re={start:{column:J,line:S}};return codeFrameColumns(b,re,ee)}},5997:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true})},97496:function(b,S,J){"use strict";var ee=this&&this.__createBinding||(Object.create?function(b,S,J,ee){if(ee===undefined)ee=J;var te=Object.getOwnPropertyDescriptor(S,J);if(!te||("get"in te?!S.__esModule:te.writable||te.configurable)){te={enumerable:true,get:function(){return S[J]}}}Object.defineProperty(b,ee,te)}:function(b,S,J,ee){if(ee===undefined)ee=J;b[ee]=S[J]});var te=this&&this.__exportStar||function(b,S){for(var J in b)if(J!=="default"&&!Object.prototype.hasOwnProperty.call(S,J))ee(S,b,J)};Object.defineProperty(S,"__esModule",{value:true});S.isYarnOfflineAsync=void 0;te(J(5997),S);te(J(11574),S);te(J(31178),S);te(J(6125),S);te(J(80057),S);te(J(66805),S);te(J(23746),S);te(J(44640),S);var re=J(20822);Object.defineProperty(S,"isYarnOfflineAsync",{enumerable:true,get:function(){return re.isYarnOfflineAsync}})},11574:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.getImprovedPodInstallError=S.getPodRepoUpdateMessage=S.getPodUpdateMessage=S.CocoaPodsPackageManager=S.extractMissingDependencyError=S.CocoaPodsError=void 0;const te=ee(J(95642));const re=ee(J(68746));const ne=J(57147);const ie=ee(J(22037));const oe=ee(J(71017));const se=J(96418);class CocoaPodsError extends Error{code;cause;name="CocoaPodsError";isPackageManagerError=true;constructor(b,S,J){super(J?`${b}\n└─ Cause: ${J.message}`:b);this.code=S;this.cause=J}}S.CocoaPodsError=CocoaPodsError;function extractMissingDependencyError(b){const S=b.match(/Unable to find a specification for ['"`]([\w-_\d\s]+)['"`] depended upon by ['"`]([\w-_\d\s]+)['"`]/);if(S){return[S[1],S[2]]}return null}S.extractMissingDependencyError=extractMissingDependencyError;class CocoaPodsPackageManager{options;silent;static getPodProjectRoot(b){if(CocoaPodsPackageManager.isUsingPods(b))return b;const S=oe.default.join(b,"ios");if(CocoaPodsPackageManager.isUsingPods(S))return S;const J=oe.default.join(b,"macos");if(CocoaPodsPackageManager.isUsingPods(J))return J;return null}static isUsingPods(b){return(0,ne.existsSync)(oe.default.join(b,"Podfile"))}static async gemInstallCLIAsync(b=false,S={stdio:"inherit"}){const J=["install","cocoapods","--no-document"];try{await(0,te.default)("gem",J,S)}catch(ee){if(b){throw new CocoaPodsError("Failed to install CocoaPods CLI with gem (recommended)","COMMAND_FAILED",ee)}await(0,se.spawnSudoAsync)(["gem",...J],S)}}static async brewLinkCLIAsync(b={stdio:"inherit"}){await(0,te.default)("brew",["link","cocoapods"],b)}static async brewInstallCLIAsync(b={stdio:"inherit"}){await(0,te.default)("brew",["install","cocoapods"],b)}static async installCLIAsync({nonInteractive:b=false,spawnOptions:S={stdio:"inherit"}}){if(!S){S={stdio:"inherit"}}const J=!!S.ignoreStdio;try{!J&&console.log(`› Attempting to install CocoaPods CLI with Gem`);await CocoaPodsPackageManager.gemInstallCLIAsync(b,S);!J&&console.log(`› Successfully installed CocoaPods CLI with Gem`);return true}catch(b){if(!J){console.log(re.default.yellow(`› Failed to install CocoaPods CLI with Gem`));console.log(re.default.red(b.stderr??b.message));console.log(`› Attempting to install CocoaPods CLI with Homebrew`)}try{await CocoaPodsPackageManager.brewInstallCLIAsync(S);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(S)){try{await CocoaPodsPackageManager.brewLinkCLIAsync(S);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(S)){throw new CocoaPodsError("CLI could not be installed automatically with gem or Homebrew, please install CocoaPods manually and try again","NO_CLI",b)}}catch(b){throw new CocoaPodsError("Homebrew installation appeared to succeed but CocoaPods CLI not found in PATH and unable to link.","NO_CLI",b)}}!J&&console.log(`› Successfully installed CocoaPods CLI with Homebrew`);return true}catch(b){!J&&console.warn(re.default.yellow(`› Failed to install CocoaPods with Homebrew. Please install CocoaPods CLI manually and try again.`));throw new CocoaPodsError(`Failed to install CocoaPods with Homebrew. Please install CocoaPods CLI manually and try again.`,"NO_CLI",b)}}}static isAvailable(b,S){if(process.platform!=="darwin"){!S&&console.log(re.default.red("CocoaPods is only supported on macOS machines"));return false}if(!CocoaPodsPackageManager.isUsingPods(b)){!S&&console.log(re.default.yellow("CocoaPods is not supported in this project"));return false}return true}static async isCLIInstalledAsync(b={stdio:"inherit"}){try{await(0,te.default)("pod",["--version"],b);return true}catch{return false}}constructor({cwd:b,silent:S}){this.silent=!!S;this.options={cwd:b,stdio:"pipe"}}get name(){return"CocoaPods"}async installAsync({spinner:b}={}){await this._installAsync({spinner:b})}isCLIInstalledAsync(){return CocoaPodsPackageManager.isCLIInstalledAsync(this.options)}installCLIAsync(){return CocoaPodsPackageManager.installCLIAsync({nonInteractive:true,spawnOptions:this.options})}async handleInstallErrorAsync({error:b,shouldUpdate:S=true,updatedPackages:J=[],spinner:ee}){if(!b.output){throw b}if(!S){throw getImprovedPodInstallError(b,{cwd:this.options.cwd})}const te=b.output.join(ie.default.EOL).trim();const{updatePackage:ne,shouldUpdateRepo:oe}=getPodUpdateMessage(te);if(!ne||J.includes(ne)){return await this._installAsync({spinner:ee,shouldRepoUpdate:true,shouldUpdate:false,updatedPackages:J})}J.push(ne);return await this.runInstallTypeCommandAsync(["update",ne,oe?"":"--no-repo-update"].filter(Boolean),{formatWarning(){const b=`Failed to update ${re.default.bold(ne)}. Attempting to update the repo instead.`;return b},spinner:ee,updatedPackages:J})}async _installAsync({shouldRepoUpdate:b,...S}={}){return await this.runInstallTypeCommandAsync(["install",b?"--repo-update":""].filter(Boolean),{formatWarning(b){return getPodRepoUpdateMessage(b.output.join(ie.default.EOL).trim()).message},...S})}async runInstallTypeCommandAsync(b,{formatWarning:S,...J}={}){try{return await this._runAsync(b)}catch(b){if(S){const ee=S(b);if(J.spinner){J.spinner.text=re.default.bold(ee)}if(!this.silent){console.warn(re.default.yellow(ee))}}return await this.handleInstallErrorAsync({error:b,...J})}}async addWithParametersAsync(b,S){throw new Error("Unimplemented")}addAsync(b=[]){throw new Error("Unimplemented")}addDevAsync(b=[]){throw new Error("Unimplemented")}addGlobalAsync(b=[]){throw new Error("Unimplemented")}removeAsync(b=[]){throw new Error("Unimplemented")}removeDevAsync(b=[]){throw new Error("Unimplemented")}removeGlobalAsync(b=[]){throw new Error("Unimplemented")}async versionAsync(){const{stdout:b}=await(0,te.default)("pod",["--version"],this.options);return b.trim()}async configAsync(b){throw new Error("Unimplemented")}async removeLockfileAsync(){throw new Error("Unimplemented")}async uninstallAsync(){throw new Error("Unimplemented")}async podRepoUpdateAsync(){try{await this._runAsync(["repo","update"])}catch(b){b.message=b.message||(b.stderr??b.stdout);throw new CocoaPodsError("The command `pod install --repo-update` failed","COMMAND_FAILED",b)}}async _runAsync(b){if(!this.silent){console.log(`> pod ${b.join(" ")}`)}const S=(0,te.default)("pod",[...b,"--ansi"],{...this.options,stdio:"pipe"});if(!this.silent){if(S.child.stdout){S.child.stdout.pipe(process.stdout)}}return await S}}S.CocoaPodsPackageManager=CocoaPodsPackageManager;function shouldPodRepoUpdate(b){const S=b;const J=S.includes("pod repo update")||S.includes("--no-repo-update");return J}function getPodUpdateMessage(b){const S=b.match(/run ['"`]pod update ([\w-_\d/]+)( --no-repo-update)?['"`] to apply changes/);return{updatePackage:S?.[1]??null,shouldUpdateRepo:!S?.[2]}}S.getPodUpdateMessage=getPodUpdateMessage;function getPodRepoUpdateMessage(b){const S=extractMissingDependencyError(b);const J=getPodUpdateMessage(b);let ee;if(S){ee=`Couldn't install: ${S[1]} » ${re.default.underline(S[0])}.`}else if(J?.updatePackage){ee=`Couldn't install: ${J?.updatePackage}.`}else{ee=`Couldn't install Pods.`}ee+=` Updating the Pods project and trying again...`;return{message:ee,...J}}S.getPodRepoUpdateMessage=getPodRepoUpdateMessage;function getImprovedPodInstallError(b,{cwd:S=process.cwd()}){const J=b.output.join(ie.default.EOL).trim();if(b.stdout.match(/No [`'"]Podfile[`'"] found in the project directory/)){b.message=`No Podfile found in directory: ${S}. Ensure CocoaPods is setup any try again.`}else if(shouldPodRepoUpdate(J)){const S=extractMissingDependencyError(J);let ee;if(S){ee=`Couldn't install: ${S[1]} » ${re.default.underline(S[0])}`}else{ee=`This is often due to native package versions mismatching`}let te;if(S?.[0]){if(S[0].match(/^(?:@?expo|@?react)(-|\/)/)){te=`Ensure the node module "${S[0]}" is installed in your project, then run 'npx pod-install' to try again.`}else{te=`Ensure the CocoaPod "${S[0]}" is installed in your project, then run 'npx pod-install' to try again.`}}else{te=`Try deleting the 'ios/Pods' folder or the 'ios/Podfile.lock' file and running 'npx pod-install' to resolve.`}b.message=`${ee}. ${te}`;if(b.stdout){const S=b.stdout.split(ie.default.EOL);const J=S.findIndex((b=>b.startsWith("[!]")));if(J!==-1){const ee=S.slice(J).join(ie.default.EOL);b.message+=`\n\n${re.default.gray(ee)}`}}return new CocoaPodsError("Command `pod install --repo-update` failed.","COMMAND_FAILED",b)}else{let S=b.stderr.trim();const J=b.stdout.match(/\[!\]\s((?:.|\n)*)/)?.[1];if(J){if(b.message?.match(/pod exited with non-zero code: 1/)){b.message=""}S=null}b.message=[J,b.message,S].filter(Boolean).join("\n")}return new CocoaPodsError("Command `pod install` failed.","COMMAND_FAILED",b)}S.getImprovedPodInstallError=getImprovedPodInstallError},31729:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.BasePackageManager=void 0;const te=ee(J(95642));const re=ee(J(39491));const ne=ee(J(57147));const ie=ee(J(71017));class BasePackageManager{silent;log;options;constructor({silent:b,log:S,env:J=process.env,...ee}={}){this.silent=!!b;this.log=S??(!b?console.log:undefined);this.options={stdio:b?undefined:"inherit",...ee,env:{...this.getDefaultEnvironment(),...J}}}getDefaultEnvironment(){return{ADBLOCK:"1",DISABLE_OPENCOLLECTIVE:"1"}}ensureCwdDefined(b){const S=this.options.cwd?.toString();const J=this.constructor.name;const ee=b?`.${b}`:"";(0,re.default)(S,`cwd is required for ${J}${ee}`);return S}runAsync(b,S={}){this.log?.(`> ${this.name} ${b.join(" ")}`);return(0,te.default)(this.bin,b,{...this.options,...S})}runBinAsync(b,S={}){this.log?.(`> ${this.name} ${b.join(" ")}`);return(0,te.default)(this.bin,b,{...this.options,...S})}async versionAsync(){const{stdout:b}=await this.runAsync(["--version"],{stdio:undefined});return b.trim()}async getConfigAsync(b){const{stdout:S}=await this.runAsync(["config","get",b]);return S.trim()}async removeLockfileAsync(){const b=this.ensureCwdDefined("removeLockFile");const S=ie.default.join(b,this.lockFile);await ne.default.promises.rm(S,{force:true})}installAsync(b=[]){return this.runAsync(["install",...b])}async uninstallAsync(){const b=this.ensureCwdDefined("uninstallAsync");const S=ie.default.join(b,"node_modules");await ne.default.promises.rm(S,{force:true,recursive:true})}}S.BasePackageManager=BasePackageManager},66805:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.BunPackageManager=void 0;const ee=J(31729);const te=J(44640);class BunPackageManager extends ee.BasePackageManager{name="bun";bin="bun";lockFile=te.BUN_LOCK_FILE;workspaceRoot(){const b=(0,te.findYarnOrNpmWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(b){return new BunPackageManager({...this.options,silent:this.silent,log:this.log,cwd:b})}return null}installAsync(b=[]){return this.runAsync(["install",...b])}addAsync(b=[]){if(!b.length){return this.installAsync()}return this.runAsync(["add",...b])}addDevAsync(b=[]){if(!b.length){return this.installAsync()}return this.runAsync(["add","--dev",...b])}addGlobalAsync(b=[]){if(!b.length){return this.installAsync()}return this.runAsync(["add","--global",...b])}removeAsync(b){return this.runAsync(["remove",...b])}removeDevAsync(b){return this.runAsync(["remove",...b])}removeGlobalAsync(b){return this.runAsync(["remove","--global",...b])}}S.BunPackageManager=BunPackageManager},31178:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.NpmPackageManager=void 0;const te=ee(J(66282));const re=ee(J(95642));const ne=ee(J(79726));const ie=ee(J(71017));const oe=J(31729);const se=J(44640);const ae=J(96418);class NpmPackageManager extends oe.BasePackageManager{name="npm";bin="npm";lockFile=se.NPM_LOCK_FILE;workspaceRoot(){const b=(0,se.findYarnOrNpmWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(b){return new NpmPackageManager({...this.options,silent:this.silent,log:this.log,cwd:b})}return null}addAsync(b=[]){if(!b.length){return this.installAsync()}const{flags:S,versioned:J,unversioned:ee}=this.parsePackageSpecs(b);return(0,ae.createPendingSpawnAsync)((()=>this.updatePackageFileAsync(J,"dependencies")),(()=>!ee.length?this.runAsync(["install",...S]):this.runAsync(["install","--save",...S,...ee.map((b=>b.raw))])))}addDevAsync(b=[]){if(!b.length){return this.installAsync()}const{flags:S,versioned:J,unversioned:ee}=this.parsePackageSpecs(b);return(0,ae.createPendingSpawnAsync)((()=>this.updatePackageFileAsync(J,"devDependencies")),(()=>!ee.length?this.runAsync(["install",...S]):this.runAsync(["install","--save-dev",...S,...ee.map((b=>b.raw))])))}addGlobalAsync(b=[]){if(!b.length){return this.installAsync()}return this.runAsync(["install","--global",...b])}removeAsync(b){return this.runAsync(["uninstall",...b])}removeDevAsync(b){return this.runAsync(["uninstall","--save-dev",...b])}removeGlobalAsync(b){return this.runAsync(["uninstall","--global",...b])}runBinAsync(b,S={}){this.log?.(`> npx ${b.join(" ")}`);return(0,re.default)("npx",b,{...this.options,...S})}parsePackageSpecs(b){const S={flags:[],versioned:[],unversioned:[]};b.map((b=>{if(b.trim().startsWith("-")){S.flags.push(b);return null}return(0,ne.default)(b)})).forEach((b=>{if(b&&b.rawSpec&&b.type!=="tag"){S.versioned.push(b)}else if(b){S.unversioned.push(b)}}));return S}async updatePackageFileAsync(b,S){if(!b.length){return}const J=ie.default.join(this.options.cwd?.toString()||".","package.json");const ee=await te.default.readAsync(J);b.forEach((b=>{ee[S]=ee[S]||{};ee[S][b.name]=b.rawSpec}));await te.default.writeAsync(J,ee,{json5:false})}}S.NpmPackageManager=NpmPackageManager},6125:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.PnpmPackageManager=void 0;const te=J(31729);const re=ee(J(41966));const ne=J(44640);class PnpmPackageManager extends te.BasePackageManager{name="pnpm";bin="pnpm";lockFile=ne.PNPM_LOCK_FILE;workspaceRoot(){const b=(0,ne.findPnpmWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(b){return new PnpmPackageManager({...this.options,silent:this.silent,log:this.log,cwd:b})}return null}installAsync(b=[]){if(re.default.CI&&!b.join(" ").includes("frozen-lockfile")){b.unshift("--no-frozen-lockfile")}return this.runAsync(["install",...b])}addAsync(b=[]){if(!b.length){return this.installAsync()}return this.runAsync(["add",...b])}addDevAsync(b=[]){if(!b.length){return this.installAsync()}return this.runAsync(["add","--save-dev",...b])}addGlobalAsync(b=[]){if(!b.length){return this.installAsync()}return this.runAsync(["add","--global",...b])}removeAsync(b){return this.runAsync(["remove",...b])}removeDevAsync(b){return this.runAsync(["remove","--save-dev",...b])}removeGlobalAsync(b){return this.runAsync(["remove","--global",...b])}}S.PnpmPackageManager=PnpmPackageManager},80057:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.YarnPackageManager=void 0;const ee=J(31729);const te=J(44640);const re=J(96418);const ne=J(20822);class YarnPackageManager extends ee.BasePackageManager{name="yarn";bin="yarnpkg";lockFile=te.YARN_LOCK_FILE;async withOfflineFlagAsync(b){return await(0,ne.isYarnOfflineAsync)()?[...b,"--offline"]:b}workspaceRoot(){const b=(0,te.findYarnOrNpmWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(b){return new YarnPackageManager({...this.options,silent:this.silent,log:this.log,cwd:b})}return null}installAsync(b=[]){return(0,re.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["install"])),(S=>this.runAsync([...S,...b])))}addAsync(b=[]){if(!b.length){return this.installAsync()}return(0,re.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["add",...b])),(b=>this.runAsync(b)))}addDevAsync(b=[]){if(!b.length){return this.installAsync()}return(0,re.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["add","--dev",...b])),(b=>this.runAsync(b)))}addGlobalAsync(b=[]){if(!b.length){return this.installAsync()}return(0,re.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["global","add",...b])),(b=>this.runAsync(b)))}removeAsync(b){return this.runAsync(["remove",...b])}removeDevAsync(b){return this.runAsync(["remove",...b])}removeGlobalAsync(b){return this.runAsync(["global","remove",...b])}}S.YarnPackageManager=YarnPackageManager},41966:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});class Env{get CI(){const{CI:b}=process.env;return b?.toLowerCase()==="true"||b==="1"}}S["default"]=new Env},23746:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.createForProject=S.resolvePackageManager=S.findWorkspaceRoot=S.RESOLUTION_ORDER=void 0;const te=ee(J(57147));const re=ee(J(71017));const ne=J(44640);const ie=J(66805);const oe=J(31178);const se=J(6125);const ae=J(80057);S.RESOLUTION_ORDER=["bun","yarn","npm","pnpm"];function findWorkspaceRoot(b,J){const ee={npm:ne.findYarnOrNpmWorkspaceRoot,yarn:ne.findYarnOrNpmWorkspaceRoot,pnpm:ne.findPnpmWorkspaceRoot,bun:ne.findYarnOrNpmWorkspaceRoot};if(J){return ee[J](b)}for(const J of S.RESOLUTION_ORDER){const S=ee[J](b);if(S){return S}}return null}S.findWorkspaceRoot=findWorkspaceRoot;function resolvePackageManager(b,J){const ee=findWorkspaceRoot(b,J)??b;const ie={npm:ne.NPM_LOCK_FILE,pnpm:ne.PNPM_LOCK_FILE,yarn:ne.YARN_LOCK_FILE,bun:ne.BUN_LOCK_FILE};if(J){if(te.default.existsSync(re.default.join(ee,ie[J]))){return J}return null}for(const b of S.RESOLUTION_ORDER){if(te.default.existsSync(re.default.join(ee,ie[b]))){return b}}return null}S.resolvePackageManager=resolvePackageManager;function createForProject(b,S={}){if(S.npm){return new oe.NpmPackageManager({cwd:b,...S})}else if(S.yarn){return new ae.YarnPackageManager({cwd:b,...S})}else if(S.pnpm){return new se.PnpmPackageManager({cwd:b,...S})}else if(S.bun){return new ie.BunPackageManager({cwd:b,...S})}switch(resolvePackageManager(b)){case"npm":return new oe.NpmPackageManager({cwd:b,...S});case"pnpm":return new se.PnpmPackageManager({cwd:b,...S});case"yarn":return new ae.YarnPackageManager({cwd:b,...S});case"bun":return new ie.BunPackageManager({cwd:b,...S});default:return new oe.NpmPackageManager({cwd:b,...S})}}S.createForProject=createForProject},44640:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.findPnpmWorkspaceRoot=S.findYarnOrNpmWorkspaceRoot=S.BUN_LOCK_FILE=S.PNPM_WORKSPACE_FILE=S.PNPM_LOCK_FILE=S.YARN_LOCK_FILE=S.NPM_LOCK_FILE=void 0;const te=J(14823);const re=ee(J(86736));const ne=ee(J(57147));const ie=ee(J(26264));const oe=ee(J(39015));const se=ee(J(71017));S.NPM_LOCK_FILE="package-lock.json";S.YARN_LOCK_FILE="yarn.lock";S.PNPM_LOCK_FILE="pnpm-lock.yaml";S.PNPM_WORKSPACE_FILE="pnpm-workspace.yaml";S.BUN_LOCK_FILE="bun.lockb";function findYarnOrNpmWorkspaceRoot(b){try{return(0,re.default)(b)}catch(b){if(b.message.includes("Unexpected end of JSON input")){return null}throw b}}S.findYarnOrNpmWorkspaceRoot=findYarnOrNpmWorkspaceRoot;function findPnpmWorkspaceRoot(b){const J="NPM_CONFIG_WORKSPACE_DIR";const ee=process.env[J]??process.env[J.toLowerCase()];const re=ee?se.default.join(ee,S.PNPM_WORKSPACE_FILE):(0,te.sync)(S.PNPM_WORKSPACE_FILE,{cwd:b});if(!re||!ne.default.existsSync(re)){return null}try{const{packages:S}=ie.default.load(ne.default.readFileSync(re,"utf8"));const J=se.default.dirname(re);const ee=se.default.relative(J,b);if(ee===""||(0,oe.default)([ee],S).length>0){return J}}catch{return null}return null}S.findPnpmWorkspaceRoot=findPnpmWorkspaceRoot},96418:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.spawnSudoAsync=S.createPendingSpawnAsync=void 0;const te=ee(J(95642));const re=ee(J(75667));function createPendingSpawnAsync(b,S){let J;const ee=new Promise(((b,S)=>{J=b}));const te=new Promise(((ee,te)=>{b().then((b=>{const re=S(b);J(re.child);re.then(ee).catch(te)})).catch((b=>{J(null);te(b)}))}));te.child=ee;return te}S.createPendingSpawnAsync=createPendingSpawnAsync;async function spawnSudoAsync(b,S){if(process.platform==="win32"){return new Promise(((S,J)=>{re.default.exec(b.join(" "),{name:"pod install"},(b=>{if(b){J(b)}S()}))}))}else{console.log("Your password might be needed to install CocoaPods CLI: https://guides.cocoapods.org/using/getting-started.html#installation");await(0,te.default)("sudo",b,S)}}S.spawnSudoAsync=spawnSudoAsync},20822:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.getNpmProxy=S.isYarnOfflineAsync=void 0;const te=J(32081);const re=ee(J(9523));const ne=ee(J(57310));async function isYarnOfflineAsync(){if(await isUrlAvailableAsync("registry.yarnpkg.com")){return false}const b=getNpmProxy();if(!b){return true}const{hostname:S}=ne.default.parse(b);if(!S){return true}return!await isUrlAvailableAsync(S)}S.isYarnOfflineAsync=isYarnOfflineAsync;function getNpmProxy(){if(process.env.https_proxy){return process.env.https_proxy??null}try{const b=(0,te.execSync)("npm config get https-proxy").toString().trim();return b!=="null"?b:null}catch{return null}}S.getNpmProxy=getNpmProxy;function isUrlAvailableAsync(b){return new Promise((S=>{re.default.lookup(b,(b=>{S(!b)}))}))}},12395:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.build=void 0;const te=ee(J(92991));const re=ee(J(65769));function ISODateString(b){function pad(b){return b<10?"0"+b:b}return b.getUTCFullYear()+"-"+pad(b.getUTCMonth()+1)+"-"+pad(b.getUTCDate())+"T"+pad(b.getUTCHours())+":"+pad(b.getUTCMinutes())+":"+pad(b.getUTCSeconds())+"Z"}const ne=Object.prototype.toString;function type(b){const S=ne.call(b).match(/\[object (.*)\]/);return S?S[1]:S}function build(b,S){const J={version:"1.0",encoding:"UTF-8"};const ee={pubid:"-//Apple//DTD PLIST 1.0//EN",sysid:"http://www.apple.com/DTDs/PropertyList-1.0.dtd"};const te=re.default.create("plist");te.dec(J.version,J.encoding,J.standalone);te.dtd(ee.pubid,ee.sysid);te.att("version","1.0");walk_obj(b,te);if(!S)S={};S.pretty=S.pretty!==false;return te.end(S)}S.build=build;function walk_obj(b,S){let J,ee,re;const ne=type(b);if(ne=="Undefined"){}else if(Array.isArray(b)){S=S.ele("array");for(ee=0;ee<b.length;ee++){walk_obj(b[ee],S)}}else if(Buffer.isBuffer(b)){S.ele("data").raw(b.toString("base64"))}else if(ne=="Object"){S=S.ele("dict");for(re in b){if(b.hasOwnProperty(re)&&b[re]!==undefined){S.ele("key").txt(re);walk_obj(b[re],S)}}}else if(ne=="Number"){J=b%1===0?"integer":"real";S.ele(J).txt(b.toString())}else if(ne=="Date"){S.ele("date").txt(ISODateString(new Date(b)))}else if(ne=="Boolean"){S.ele(b?"true":"false")}else if(ne=="String"){S.ele("string").txt(b)}else if(ne=="ArrayBuffer"){S.ele("data").raw(te.default.fromByteArray(b))}else if(b&&b.buffer&&type(b.buffer)=="ArrayBuffer"){S.ele("data").raw(te.default.fromByteArray(new Uint8Array(b.buffer)))}}},83681:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});const ee=J(12395);const te=J(76859);S["default"]={parse:te.parse,build:ee.build}},76859:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.parse=void 0;const te=J(1328);const re=ee(J(39491));const ne=3;const ie=4;const oe=8;function shouldIgnoreNode(b){return b.nodeType===ne||b.nodeType===oe||b.nodeType===ie}function isEmptyNode(b){return!b.childNodes||b.childNodes.length===0}function parse(b){const S=new te.DOMParser({errorHandler(){}}).parseFromString(b);(0,re.default)(S.documentElement.nodeName==="plist","malformed document. First element should be <plist>");let J=parsePlistXML(S.documentElement);if(J.length==1)J=J[0];return J}S.parse=parse;function parsePlistXML(b){let S,J,ee,te,oe,se;if(!b)return null;if(b.nodeName==="plist"){te=[];if(isEmptyNode(b)){return te}for(S=0;S<b.childNodes.length;S++){if(!shouldIgnoreNode(b.childNodes[S])){te.push(parsePlistXML(b.childNodes[S]))}}return te}else if(b.nodeName==="dict"){J={};ee=null;se=0;if(isEmptyNode(b)){return J}for(S=0;S<b.childNodes.length;S++){if(shouldIgnoreNode(b.childNodes[S]))continue;if(se%2===0){(0,re.default)(b.childNodes[S].nodeName==="key","Missing key while parsing <dict/>.");ee=parsePlistXML(b.childNodes[S])}else{(0,re.default)(b.childNodes[S].nodeName!=="key",'Unexpected key "'+parsePlistXML(b.childNodes[S])+'" while parsing <dict/>.');J[ee]=parsePlistXML(b.childNodes[S])}se+=1}if(se%2===1){throw new Error('Missing value for "'+ee+'" while parsing <dict/>')}return J}else if(b.nodeName==="array"){te=[];if(isEmptyNode(b)){return te}for(S=0;S<b.childNodes.length;S++){if(!shouldIgnoreNode(b.childNodes[S])){oe=parsePlistXML(b.childNodes[S]);if(oe!=null)te.push(oe)}}return te}else if(b.nodeName==="#text"){}else if(b.nodeName==="key"){if(isEmptyNode(b)){return""}return b.childNodes[0].nodeValue}else if(b.nodeName==="string"){oe="";if(isEmptyNode(b)){return oe}for(S=0;S<b.childNodes.length;S++){const J=b.childNodes[S].nodeType;if(J===ne||J===ie){oe+=b.childNodes[S].nodeValue}}return oe}else if(b.nodeName==="integer"){(0,re.default)(!isEmptyNode(b),'Cannot parse "" as integer.');return parseInt(b.childNodes[0].nodeValue,10)}else if(b.nodeName==="real"){(0,re.default)(!isEmptyNode(b),'Cannot parse "" as real.');oe="";for(S=0;S<b.childNodes.length;S++){if(b.childNodes[S].nodeType===ne){oe+=b.childNodes[S].nodeValue}}return parseFloat(oe)}else if(b.nodeName==="data"){oe="";if(isEmptyNode(b)){return Buffer.from(oe,"base64")}for(S=0;S<b.childNodes.length;S++){if(b.childNodes[S].nodeType===ne){oe+=b.childNodes[S].nodeValue.replace(/\s+/g,"")}}return Buffer.from(oe,"base64")}else if(b.nodeName==="date"){(0,re.default)(!isEmptyNode(b),'Cannot parse "" as Date.');return new Date(b.childNodes[0].nodeValue)}else if(b.nodeName==="true"){return true}else if(b.nodeName==="false"){return false}}},49686:(b,S,J)=>{S.alphasort=alphasort;S.alphasorti=alphasorti;S.setopts=setopts;S.ownProp=ownProp;S.makeAbs=makeAbs;S.finish=finish;S.mark=mark;S.isIgnored=isIgnored;S.childrenIgnored=childrenIgnored;function ownProp(b,S){return Object.prototype.hasOwnProperty.call(b,S)}var ee=J(71017);var te=J(99566);var re=J(21323);var ne=te.Minimatch;function alphasorti(b,S){return b.toLowerCase().localeCompare(S.toLowerCase())}function alphasort(b,S){return b.localeCompare(S)}function setupIgnores(b,S){b.ignore=S.ignore||[];if(!Array.isArray(b.ignore))b.ignore=[b.ignore];if(b.ignore.length){b.ignore=b.ignore.map(ignoreMap)}}function ignoreMap(b){var S=null;if(b.slice(-3)==="/**"){var J=b.replace(/(\/\*\*)+$/,"");S=new ne(J,{dot:true})}return{matcher:new ne(b,{dot:true}),gmatcher:S}}function setopts(b,S,J){if(!J)J={};if(J.matchBase&&-1===S.indexOf("/")){if(J.noglobstar){throw new Error("base matching requires globstar")}S="**/"+S}b.silent=!!J.silent;b.pattern=S;b.strict=J.strict!==false;b.realpath=!!J.realpath;b.realpathCache=J.realpathCache||Object.create(null);b.follow=!!J.follow;b.dot=!!J.dot;b.mark=!!J.mark;b.nodir=!!J.nodir;if(b.nodir)b.mark=true;b.sync=!!J.sync;b.nounique=!!J.nounique;b.nonull=!!J.nonull;b.nosort=!!J.nosort;b.nocase=!!J.nocase;b.stat=!!J.stat;b.noprocess=!!J.noprocess;b.absolute=!!J.absolute;b.maxLength=J.maxLength||Infinity;b.cache=J.cache||Object.create(null);b.statCache=J.statCache||Object.create(null);b.symlinks=J.symlinks||Object.create(null);setupIgnores(b,J);b.changedCwd=false;var te=process.cwd();if(!ownProp(J,"cwd"))b.cwd=te;else{b.cwd=ee.resolve(J.cwd);b.changedCwd=b.cwd!==te}b.root=J.root||ee.resolve(b.cwd,"/");b.root=ee.resolve(b.root);if(process.platform==="win32")b.root=b.root.replace(/\\/g,"/");b.cwdAbs=re(b.cwd)?b.cwd:makeAbs(b,b.cwd);if(process.platform==="win32")b.cwdAbs=b.cwdAbs.replace(/\\/g,"/");b.nomount=!!J.nomount;J.nonegate=true;J.nocomment=true;b.minimatch=new ne(S,J);b.options=b.minimatch.options}function finish(b){var S=b.nounique;var J=S?[]:Object.create(null);for(var ee=0,te=b.matches.length;ee<te;ee++){var re=b.matches[ee];if(!re||Object.keys(re).length===0){if(b.nonull){var ne=b.minimatch.globSet[ee];if(S)J.push(ne);else J[ne]=true}}else{var ie=Object.keys(re);if(S)J.push.apply(J,ie);else ie.forEach((function(b){J[b]=true}))}}if(!S)J=Object.keys(J);if(!b.nosort)J=J.sort(b.nocase?alphasorti:alphasort);if(b.mark){for(var ee=0;ee<J.length;ee++){J[ee]=b._mark(J[ee])}if(b.nodir){J=J.filter((function(S){var J=!/\/$/.test(S);var ee=b.cache[S]||b.cache[makeAbs(b,S)];if(J&&ee)J=ee!=="DIR"&&!Array.isArray(ee);return J}))}}if(b.ignore.length)J=J.filter((function(S){return!isIgnored(b,S)}));b.found=J}function mark(b,S){var J=makeAbs(b,S);var ee=b.cache[J];var te=S;if(ee){var re=ee==="DIR"||Array.isArray(ee);var ne=S.slice(-1)==="/";if(re&&!ne)te+="/";else if(!re&&ne)te=te.slice(0,-1);if(te!==S){var ie=makeAbs(b,te);b.statCache[ie]=b.statCache[J];b.cache[ie]=b.cache[J]}}return te}function makeAbs(b,S){var J=S;if(S.charAt(0)==="/"){J=ee.join(b.root,S)}else if(re(S)||S===""){J=S}else if(b.changedCwd){J=ee.resolve(b.cwd,S)}else{J=ee.resolve(S)}if(process.platform==="win32")J=J.replace(/\\/g,"/");return J}function isIgnored(b,S){if(!b.ignore.length)return false;return b.ignore.some((function(b){return b.matcher.match(S)||!!(b.gmatcher&&b.gmatcher.match(S))}))}function childrenIgnored(b,S){if(!b.ignore.length)return false;return b.ignore.some((function(b){return!!(b.gmatcher&&b.gmatcher.match(S))}))}},91104:(b,S,J)=>{b.exports=glob;var ee=J(57147);var te=J(98945);var re=J(99566);var ne=re.Minimatch;var ie=J(76919);var oe=J(82361).EventEmitter;var se=J(71017);var ae=J(39491);var ue=J(21323);var ce=J(82231);var le=J(49686);var pe=le.alphasort;var fe=le.alphasorti;var de=le.setopts;var he=le.ownProp;var me=J(39442);var ge=J(73837);var ye=le.childrenIgnored;var ve=le.isIgnored;var Te=J(87197);function glob(b,S,J){if(typeof S==="function")J=S,S={};if(!S)S={};if(S.sync){if(J)throw new TypeError("callback provided to sync glob");return ce(b,S)}return new Glob(b,S,J)}glob.sync=ce;var be=glob.GlobSync=ce.GlobSync;glob.glob=glob;function extend(b,S){if(S===null||typeof S!=="object"){return b}var J=Object.keys(S);var ee=J.length;while(ee--){b[J[ee]]=S[J[ee]]}return b}glob.hasMagic=function(b,S){var J=extend({},S);J.noprocess=true;var ee=new Glob(b,J);var te=ee.minimatch.set;if(!b)return false;if(te.length>1)return true;for(var re=0;re<te[0].length;re++){if(typeof te[0][re]!=="string")return true}return false};glob.Glob=Glob;ie(Glob,oe);function Glob(b,S,J){if(typeof S==="function"){J=S;S=null}if(S&&S.sync){if(J)throw new TypeError("callback provided to sync glob");return new be(b,S)}if(!(this instanceof Glob))return new Glob(b,S,J);de(this,b,S);this._didRealPath=false;var ee=this.minimatch.set.length;this.matches=new Array(ee);if(typeof J==="function"){J=Te(J);this.on("error",J);this.on("end",(function(b){J(null,b)}))}var te=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(ee===0)return done();var re=true;for(var ne=0;ne<ee;ne++){this._process(this.minimatch.set[ne],ne,false,done)}re=false;function done(){--te._processing;if(te._processing<=0){if(re){process.nextTick((function(){te._finish()}))}else{te._finish()}}}}Glob.prototype._finish=function(){ae(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();le.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var b=this.matches.length;if(b===0)return this._finish();var S=this;for(var J=0;J<this.matches.length;J++)this._realpathSet(J,next);function next(){if(--b===0)S._finish()}};Glob.prototype._realpathSet=function(b,S){var J=this.matches[b];if(!J)return S();var ee=Object.keys(J);var re=this;var ne=ee.length;if(ne===0)return S();var ie=this.matches[b]=Object.create(null);ee.forEach((function(J,ee){J=re._makeAbs(J);te.realpath(J,re.realpathCache,(function(ee,te){if(!ee)ie[te]=true;else if(ee.syscall==="stat")ie[J]=true;else re.emit("error",ee);if(--ne===0){re.matches[b]=ie;S()}}))}))};Glob.prototype._mark=function(b){return le.mark(this,b)};Glob.prototype._makeAbs=function(b){return le.makeAbs(this,b)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var b=this._emitQueue.slice(0);this._emitQueue.length=0;for(var S=0;S<b.length;S++){var J=b[S];this._emitMatch(J[0],J[1])}}if(this._processQueue.length){var ee=this._processQueue.slice(0);this._processQueue.length=0;for(var S=0;S<ee.length;S++){var te=ee[S];this._processing--;this._process(te[0],te[1],te[2],te[3])}}}};Glob.prototype._process=function(b,S,J,ee){ae(this instanceof Glob);ae(typeof ee==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([b,S,J,ee]);return}var te=0;while(typeof b[te]==="string"){te++}var ne;switch(te){case b.length:this._processSimple(b.join("/"),S,ee);return;case 0:ne=null;break;default:ne=b.slice(0,te).join("/");break}var ie=b.slice(te);var oe;if(ne===null)oe=".";else if(ue(ne)||ue(b.join("/"))){if(!ne||!ue(ne))ne="/"+ne;oe=ne}else oe=ne;var se=this._makeAbs(oe);if(ye(this,oe))return ee();var ce=ie[0]===re.GLOBSTAR;if(ce)this._processGlobStar(ne,oe,se,ie,S,J,ee);else this._processReaddir(ne,oe,se,ie,S,J,ee)};Glob.prototype._processReaddir=function(b,S,J,ee,te,re,ne){var ie=this;this._readdir(J,re,(function(oe,se){return ie._processReaddir2(b,S,J,ee,te,re,se,ne)}))};Glob.prototype._processReaddir2=function(b,S,J,ee,te,re,ne,ie){if(!ne)return ie();var oe=ee[0];var ae=!!this.minimatch.negate;var ue=oe._glob;var ce=this.dot||ue.charAt(0)===".";var le=[];for(var pe=0;pe<ne.length;pe++){var fe=ne[pe];if(fe.charAt(0)!=="."||ce){var de;if(ae&&!b){de=!fe.match(oe)}else{de=fe.match(oe)}if(de)le.push(fe)}}var he=le.length;if(he===0)return ie();if(ee.length===1&&!this.mark&&!this.stat){if(!this.matches[te])this.matches[te]=Object.create(null);for(var pe=0;pe<he;pe++){var fe=le[pe];if(b){if(b!=="/")fe=b+"/"+fe;else fe=b+fe}if(fe.charAt(0)==="/"&&!this.nomount){fe=se.join(this.root,fe)}this._emitMatch(te,fe)}return ie()}ee.shift();for(var pe=0;pe<he;pe++){var fe=le[pe];var me;if(b){if(b!=="/")fe=b+"/"+fe;else fe=b+fe}this._process([fe].concat(ee),te,re,ie)}ie()};Glob.prototype._emitMatch=function(b,S){if(this.aborted)return;if(ve(this,S))return;if(this.paused){this._emitQueue.push([b,S]);return}var J=ue(S)?S:this._makeAbs(S);if(this.mark)S=this._mark(S);if(this.absolute)S=J;if(this.matches[b][S])return;if(this.nodir){var ee=this.cache[J];if(ee==="DIR"||Array.isArray(ee))return}this.matches[b][S]=true;var te=this.statCache[J];if(te)this.emit("stat",S,te);this.emit("match",S)};Glob.prototype._readdirInGlobStar=function(b,S){if(this.aborted)return;if(this.follow)return this._readdir(b,false,S);var J="lstat\0"+b;var te=this;var re=me(J,lstatcb_);if(re)ee.lstat(b,re);function lstatcb_(J,ee){if(J&&J.code==="ENOENT")return S();var re=ee&&ee.isSymbolicLink();te.symlinks[b]=re;if(!re&&ee&&!ee.isDirectory()){te.cache[b]="FILE";S()}else te._readdir(b,false,S)}};Glob.prototype._readdir=function(b,S,J){if(this.aborted)return;J=me("readdir\0"+b+"\0"+S,J);if(!J)return;if(S&&!he(this.symlinks,b))return this._readdirInGlobStar(b,J);if(he(this.cache,b)){var te=this.cache[b];if(!te||te==="FILE")return J();if(Array.isArray(te))return J(null,te)}var re=this;ee.readdir(b,readdirCb(this,b,J))};function readdirCb(b,S,J){return function(ee,te){if(ee)b._readdirError(S,ee,J);else b._readdirEntries(S,te,J)}}Glob.prototype._readdirEntries=function(b,S,J){if(this.aborted)return;if(!this.mark&&!this.stat){for(var ee=0;ee<S.length;ee++){var te=S[ee];if(b==="/")te=b+te;else te=b+"/"+te;this.cache[te]=true}}this.cache[b]=S;return J(null,S)};Glob.prototype._readdirError=function(b,S,J){if(this.aborted)return;switch(S.code){case"ENOTSUP":case"ENOTDIR":var ee=this._makeAbs(b);this.cache[ee]="FILE";if(ee===this.cwdAbs){var te=new Error(S.code+" invalid cwd "+this.cwd);te.path=this.cwd;te.code=S.code;this.emit("error",te);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(b)]=false;break;default:this.cache[this._makeAbs(b)]=false;if(this.strict){this.emit("error",S);this.abort()}if(!this.silent)console.error("glob error",S);break}return J()};Glob.prototype._processGlobStar=function(b,S,J,ee,te,re,ne){var ie=this;this._readdir(J,re,(function(oe,se){ie._processGlobStar2(b,S,J,ee,te,re,se,ne)}))};Glob.prototype._processGlobStar2=function(b,S,J,ee,te,re,ne,ie){if(!ne)return ie();var oe=ee.slice(1);var se=b?[b]:[];var ae=se.concat(oe);this._process(ae,te,false,ie);var ue=this.symlinks[J];var ce=ne.length;if(ue&&re)return ie();for(var le=0;le<ce;le++){var pe=ne[le];if(pe.charAt(0)==="."&&!this.dot)continue;var fe=se.concat(ne[le],oe);this._process(fe,te,true,ie);var de=se.concat(ne[le],ee);this._process(de,te,true,ie)}ie()};Glob.prototype._processSimple=function(b,S,J){var ee=this;this._stat(b,(function(te,re){ee._processSimple2(b,S,te,re,J)}))};Glob.prototype._processSimple2=function(b,S,J,ee,te){if(!this.matches[S])this.matches[S]=Object.create(null);if(!ee)return te();if(b&&ue(b)&&!this.nomount){var re=/[\/\\]$/.test(b);if(b.charAt(0)==="/"){b=se.join(this.root,b)}else{b=se.resolve(this.root,b);if(re)b+="/"}}if(process.platform==="win32")b=b.replace(/\\/g,"/");this._emitMatch(S,b);te()};Glob.prototype._stat=function(b,S){var J=this._makeAbs(b);var te=b.slice(-1)==="/";if(b.length>this.maxLength)return S();if(!this.stat&&he(this.cache,J)){var re=this.cache[J];if(Array.isArray(re))re="DIR";if(!te||re==="DIR")return S(null,re);if(te&&re==="FILE")return S()}var ne;var ie=this.statCache[J];if(ie!==undefined){if(ie===false)return S(null,ie);else{var oe=ie.isDirectory()?"DIR":"FILE";if(te&&oe==="FILE")return S();else return S(null,oe,ie)}}var se=this;var ae=me("stat\0"+J,lstatcb_);if(ae)ee.lstat(J,ae);function lstatcb_(te,re){if(re&&re.isSymbolicLink()){return ee.stat(J,(function(ee,te){if(ee)se._stat2(b,J,null,re,S);else se._stat2(b,J,ee,te,S)}))}else{se._stat2(b,J,te,re,S)}}};Glob.prototype._stat2=function(b,S,J,ee,te){if(J&&(J.code==="ENOENT"||J.code==="ENOTDIR")){this.statCache[S]=false;return te()}var re=b.slice(-1)==="/";this.statCache[S]=ee;if(S.slice(-1)==="/"&&ee&&!ee.isDirectory())return te(null,false,ee);var ne=true;if(ee)ne=ee.isDirectory()?"DIR":"FILE";this.cache[S]=this.cache[S]||ne;if(re&&ne==="FILE")return te();return te(null,ne,ee)}},82231:(b,S,J)=>{b.exports=globSync;globSync.GlobSync=GlobSync;var ee=J(57147);var te=J(98945);var re=J(99566);var ne=re.Minimatch;var ie=J(91104).Glob;var oe=J(73837);var se=J(71017);var ae=J(39491);var ue=J(21323);var ce=J(49686);var le=ce.alphasort;var pe=ce.alphasorti;var fe=ce.setopts;var de=ce.ownProp;var he=ce.childrenIgnored;var me=ce.isIgnored;function globSync(b,S){if(typeof S==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(b,S).found}function GlobSync(b,S){if(!b)throw new Error("must provide pattern");if(typeof S==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(b,S);fe(this,b,S);if(this.noprocess)return this;var J=this.minimatch.set.length;this.matches=new Array(J);for(var ee=0;ee<J;ee++){this._process(this.minimatch.set[ee],ee,false)}this._finish()}GlobSync.prototype._finish=function(){ae(this instanceof GlobSync);if(this.realpath){var b=this;this.matches.forEach((function(S,J){var ee=b.matches[J]=Object.create(null);for(var re in S){try{re=b._makeAbs(re);var ne=te.realpathSync(re,b.realpathCache);ee[ne]=true}catch(S){if(S.syscall==="stat")ee[b._makeAbs(re)]=true;else throw S}}}))}ce.finish(this)};GlobSync.prototype._process=function(b,S,J){ae(this instanceof GlobSync);var ee=0;while(typeof b[ee]==="string"){ee++}var te;switch(ee){case b.length:this._processSimple(b.join("/"),S);return;case 0:te=null;break;default:te=b.slice(0,ee).join("/");break}var ne=b.slice(ee);var ie;if(te===null)ie=".";else if(ue(te)||ue(b.join("/"))){if(!te||!ue(te))te="/"+te;ie=te}else ie=te;var oe=this._makeAbs(ie);if(he(this,ie))return;var se=ne[0]===re.GLOBSTAR;if(se)this._processGlobStar(te,ie,oe,ne,S,J);else this._processReaddir(te,ie,oe,ne,S,J)};GlobSync.prototype._processReaddir=function(b,S,J,ee,te,re){var ne=this._readdir(J,re);if(!ne)return;var ie=ee[0];var oe=!!this.minimatch.negate;var ae=ie._glob;var ue=this.dot||ae.charAt(0)===".";var ce=[];for(var le=0;le<ne.length;le++){var pe=ne[le];if(pe.charAt(0)!=="."||ue){var fe;if(oe&&!b){fe=!pe.match(ie)}else{fe=pe.match(ie)}if(fe)ce.push(pe)}}var de=ce.length;if(de===0)return;if(ee.length===1&&!this.mark&&!this.stat){if(!this.matches[te])this.matches[te]=Object.create(null);for(var le=0;le<de;le++){var pe=ce[le];if(b){if(b.slice(-1)!=="/")pe=b+"/"+pe;else pe=b+pe}if(pe.charAt(0)==="/"&&!this.nomount){pe=se.join(this.root,pe)}this._emitMatch(te,pe)}return}ee.shift();for(var le=0;le<de;le++){var pe=ce[le];var he;if(b)he=[b,pe];else he=[pe];this._process(he.concat(ee),te,re)}};GlobSync.prototype._emitMatch=function(b,S){if(me(this,S))return;var J=this._makeAbs(S);if(this.mark)S=this._mark(S);if(this.absolute){S=J}if(this.matches[b][S])return;if(this.nodir){var ee=this.cache[J];if(ee==="DIR"||Array.isArray(ee))return}this.matches[b][S]=true;if(this.stat)this._stat(S)};GlobSync.prototype._readdirInGlobStar=function(b){if(this.follow)return this._readdir(b,false);var S;var J;var te;try{J=ee.lstatSync(b)}catch(b){if(b.code==="ENOENT"){return null}}var re=J&&J.isSymbolicLink();this.symlinks[b]=re;if(!re&&J&&!J.isDirectory())this.cache[b]="FILE";else S=this._readdir(b,false);return S};GlobSync.prototype._readdir=function(b,S){var J;if(S&&!de(this.symlinks,b))return this._readdirInGlobStar(b);if(de(this.cache,b)){var te=this.cache[b];if(!te||te==="FILE")return null;if(Array.isArray(te))return te}try{return this._readdirEntries(b,ee.readdirSync(b))}catch(S){this._readdirError(b,S);return null}};GlobSync.prototype._readdirEntries=function(b,S){if(!this.mark&&!this.stat){for(var J=0;J<S.length;J++){var ee=S[J];if(b==="/")ee=b+ee;else ee=b+"/"+ee;this.cache[ee]=true}}this.cache[b]=S;return S};GlobSync.prototype._readdirError=function(b,S){switch(S.code){case"ENOTSUP":case"ENOTDIR":var J=this._makeAbs(b);this.cache[J]="FILE";if(J===this.cwdAbs){var ee=new Error(S.code+" invalid cwd "+this.cwd);ee.path=this.cwd;ee.code=S.code;throw ee}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(b)]=false;break;default:this.cache[this._makeAbs(b)]=false;if(this.strict)throw S;if(!this.silent)console.error("glob error",S);break}};GlobSync.prototype._processGlobStar=function(b,S,J,ee,te,re){var ne=this._readdir(J,re);if(!ne)return;var ie=ee.slice(1);var oe=b?[b]:[];var se=oe.concat(ie);this._process(se,te,false);var ae=ne.length;var ue=this.symlinks[J];if(ue&&re)return;for(var ce=0;ce<ae;ce++){var le=ne[ce];if(le.charAt(0)==="."&&!this.dot)continue;var pe=oe.concat(ne[ce],ie);this._process(pe,te,true);var fe=oe.concat(ne[ce],ee);this._process(fe,te,true)}};GlobSync.prototype._processSimple=function(b,S){var J=this._stat(b);if(!this.matches[S])this.matches[S]=Object.create(null);if(!J)return;if(b&&ue(b)&&!this.nomount){var ee=/[\/\\]$/.test(b);if(b.charAt(0)==="/"){b=se.join(this.root,b)}else{b=se.resolve(this.root,b);if(ee)b+="/"}}if(process.platform==="win32")b=b.replace(/\\/g,"/");this._emitMatch(S,b)};GlobSync.prototype._stat=function(b){var S=this._makeAbs(b);var J=b.slice(-1)==="/";if(b.length>this.maxLength)return false;if(!this.stat&&de(this.cache,S)){var te=this.cache[S];if(Array.isArray(te))te="DIR";if(!J||te==="DIR")return te;if(J&&te==="FILE")return false}var re;var ne=this.statCache[S];if(!ne){var ie;try{ie=ee.lstatSync(S)}catch(b){if(b&&(b.code==="ENOENT"||b.code==="ENOTDIR")){this.statCache[S]=false;return false}}if(ie&&ie.isSymbolicLink()){try{ne=ee.statSync(S)}catch(b){ne=ie}}else{ne=ie}}this.statCache[S]=ne;var te=true;if(ne)te=ne.isDirectory()?"DIR":"FILE";this.cache[S]=this.cache[S]||te;if(J&&te==="FILE")return false;return te};GlobSync.prototype._mark=function(b){return ce.mark(this,b)};GlobSync.prototype._makeAbs=function(b){return ce.makeAbs(this,b)}},53544:(b,S,J)=>{const ee=Symbol("SemVer ANY");class Comparator{static get ANY(){return ee}constructor(b,S){S=te(S);if(b instanceof Comparator){if(b.loose===!!S.loose){return b}else{b=b.value}}b=b.trim().split(/\s+/).join(" ");oe("comparator",b,S);this.options=S;this.loose=!!S.loose;this.parse(b);if(this.semver===ee){this.value=""}else{this.value=this.operator+this.semver.version}oe("comp",this)}parse(b){const S=this.options.loose?re[ne.COMPARATORLOOSE]:re[ne.COMPARATOR];const J=b.match(S);if(!J){throw new TypeError(`Invalid comparator: ${b}`)}this.operator=J[1]!==undefined?J[1]:"";if(this.operator==="="){this.operator=""}if(!J[2]){this.semver=ee}else{this.semver=new se(J[2],this.options.loose)}}toString(){return this.value}test(b){oe("Comparator.test",b,this.options.loose);if(this.semver===ee||b===ee){return true}if(typeof b==="string"){try{b=new se(b,this.options)}catch(b){return false}}return ie(b,this.operator,this.semver,this.options)}intersects(b,S){if(!(b instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new ae(b.value,S).test(this.value)}else if(b.operator===""){if(b.value===""){return true}return new ae(this.value,S).test(b.semver)}S=te(S);if(S.includePrerelease&&(this.value==="<0.0.0-0"||b.value==="<0.0.0-0")){return false}if(!S.includePrerelease&&(this.value.startsWith("<0.0.0")||b.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&b.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&b.operator.startsWith("<")){return true}if(this.semver.version===b.semver.version&&this.operator.includes("=")&&b.operator.includes("=")){return true}if(ie(this.semver,"<",b.semver,S)&&this.operator.startsWith(">")&&b.operator.startsWith("<")){return true}if(ie(this.semver,">",b.semver,S)&&this.operator.startsWith("<")&&b.operator.startsWith(">")){return true}return false}}b.exports=Comparator;const te=J(298);const{safeRe:re,t:ne}=J(21962);const ie=J(75344);const oe=J(53023);const se=J(22828);const ae=J(9349)},9349:(b,S,J)=>{class Range{constructor(b,S){S=re(S);if(b instanceof Range){if(b.loose===!!S.loose&&b.includePrerelease===!!S.includePrerelease){return b}else{return new Range(b.raw,S)}}if(b instanceof ne){this.raw=b.value;this.set=[[b]];this.format();return this}this.options=S;this.loose=!!S.loose;this.includePrerelease=!!S.includePrerelease;this.raw=b.trim().split(/\s+/).join(" ");this.set=this.raw.split("||").map((b=>this.parseRange(b.trim()))).filter((b=>b.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const b=this.set[0];this.set=this.set.filter((b=>!isNullSet(b[0])));if(this.set.length===0){this.set=[b]}else if(this.set.length>1){for(const b of this.set){if(b.length===1&&isAny(b[0])){this.set=[b];break}}}}this.format()}format(){this.range=this.set.map((b=>b.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(b){const S=(this.options.includePrerelease&&pe)|(this.options.loose&&fe);const J=S+":"+b;const ee=te.get(J);if(ee){return ee}const re=this.options.loose;const oe=re?se[ae.HYPHENRANGELOOSE]:se[ae.HYPHENRANGE];b=b.replace(oe,hyphenReplace(this.options.includePrerelease));ie("hyphen replace",b);b=b.replace(se[ae.COMPARATORTRIM],ue);ie("comparator trim",b);b=b.replace(se[ae.TILDETRIM],ce);ie("tilde trim",b);b=b.replace(se[ae.CARETTRIM],le);ie("caret trim",b);let de=b.split(" ").map((b=>parseComparator(b,this.options))).join(" ").split(/\s+/).map((b=>replaceGTE0(b,this.options)));if(re){de=de.filter((b=>{ie("loose invalid filter",b,this.options);return!!b.match(se[ae.COMPARATORLOOSE])}))}ie("range list",de);const he=new Map;const me=de.map((b=>new ne(b,this.options)));for(const b of me){if(isNullSet(b)){return[b]}he.set(b.value,b)}if(he.size>1&&he.has("")){he.delete("")}const ge=[...he.values()];te.set(J,ge);return ge}intersects(b,S){if(!(b instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((J=>isSatisfiable(J,S)&&b.set.some((b=>isSatisfiable(b,S)&&J.every((J=>b.every((b=>J.intersects(b,S)))))))))}test(b){if(!b){return false}if(typeof b==="string"){try{b=new oe(b,this.options)}catch(b){return false}}for(let S=0;S<this.set.length;S++){if(testSet(this.set[S],b,this.options)){return true}}return false}}b.exports=Range;const ee=J(5453);const te=new ee({max:1e3});const re=J(298);const ne=J(53544);const ie=J(53023);const oe=J(22828);const{safeRe:se,t:ae,comparatorTrimReplace:ue,tildeTrimReplace:ce,caretTrimReplace:le}=J(21962);const{FLAG_INCLUDE_PRERELEASE:pe,FLAG_LOOSE:fe}=J(85585);const isNullSet=b=>b.value==="<0.0.0-0";const isAny=b=>b.value==="";const isSatisfiable=(b,S)=>{let J=true;const ee=b.slice();let te=ee.pop();while(J&&ee.length){J=ee.every((b=>te.intersects(b,S)));te=ee.pop()}return J};const parseComparator=(b,S)=>{ie("comp",b,S);b=replaceCarets(b,S);ie("caret",b);b=replaceTildes(b,S);ie("tildes",b);b=replaceXRanges(b,S);ie("xrange",b);b=replaceStars(b,S);ie("stars",b);return b};const isX=b=>!b||b.toLowerCase()==="x"||b==="*";const replaceTildes=(b,S)=>b.trim().split(/\s+/).map((b=>replaceTilde(b,S))).join(" ");const replaceTilde=(b,S)=>{const J=S.loose?se[ae.TILDELOOSE]:se[ae.TILDE];return b.replace(J,((S,J,ee,te,re)=>{ie("tilde",b,S,J,ee,te,re);let ne;if(isX(J)){ne=""}else if(isX(ee)){ne=`>=${J}.0.0 <${+J+1}.0.0-0`}else if(isX(te)){ne=`>=${J}.${ee}.0 <${J}.${+ee+1}.0-0`}else if(re){ie("replaceTilde pr",re);ne=`>=${J}.${ee}.${te}-${re} <${J}.${+ee+1}.0-0`}else{ne=`>=${J}.${ee}.${te} <${J}.${+ee+1}.0-0`}ie("tilde return",ne);return ne}))};const replaceCarets=(b,S)=>b.trim().split(/\s+/).map((b=>replaceCaret(b,S))).join(" ");const replaceCaret=(b,S)=>{ie("caret",b,S);const J=S.loose?se[ae.CARETLOOSE]:se[ae.CARET];const ee=S.includePrerelease?"-0":"";return b.replace(J,((S,J,te,re,ne)=>{ie("caret",b,S,J,te,re,ne);let oe;if(isX(J)){oe=""}else if(isX(te)){oe=`>=${J}.0.0${ee} <${+J+1}.0.0-0`}else if(isX(re)){if(J==="0"){oe=`>=${J}.${te}.0${ee} <${J}.${+te+1}.0-0`}else{oe=`>=${J}.${te}.0${ee} <${+J+1}.0.0-0`}}else if(ne){ie("replaceCaret pr",ne);if(J==="0"){if(te==="0"){oe=`>=${J}.${te}.${re}-${ne} <${J}.${te}.${+re+1}-0`}else{oe=`>=${J}.${te}.${re}-${ne} <${J}.${+te+1}.0-0`}}else{oe=`>=${J}.${te}.${re}-${ne} <${+J+1}.0.0-0`}}else{ie("no pr");if(J==="0"){if(te==="0"){oe=`>=${J}.${te}.${re}${ee} <${J}.${te}.${+re+1}-0`}else{oe=`>=${J}.${te}.${re}${ee} <${J}.${+te+1}.0-0`}}else{oe=`>=${J}.${te}.${re} <${+J+1}.0.0-0`}}ie("caret return",oe);return oe}))};const replaceXRanges=(b,S)=>{ie("replaceXRanges",b,S);return b.split(/\s+/).map((b=>replaceXRange(b,S))).join(" ")};const replaceXRange=(b,S)=>{b=b.trim();const J=S.loose?se[ae.XRANGELOOSE]:se[ae.XRANGE];return b.replace(J,((J,ee,te,re,ne,oe)=>{ie("xRange",b,J,ee,te,re,ne,oe);const se=isX(te);const ae=se||isX(re);const ue=ae||isX(ne);const ce=ue;if(ee==="="&&ce){ee=""}oe=S.includePrerelease?"-0":"";if(se){if(ee===">"||ee==="<"){J="<0.0.0-0"}else{J="*"}}else if(ee&&ce){if(ae){re=0}ne=0;if(ee===">"){ee=">=";if(ae){te=+te+1;re=0;ne=0}else{re=+re+1;ne=0}}else if(ee==="<="){ee="<";if(ae){te=+te+1}else{re=+re+1}}if(ee==="<"){oe="-0"}J=`${ee+te}.${re}.${ne}${oe}`}else if(ae){J=`>=${te}.0.0${oe} <${+te+1}.0.0-0`}else if(ue){J=`>=${te}.${re}.0${oe} <${te}.${+re+1}.0-0`}ie("xRange return",J);return J}))};const replaceStars=(b,S)=>{ie("replaceStars",b,S);return b.trim().replace(se[ae.STAR],"")};const replaceGTE0=(b,S)=>{ie("replaceGTE0",b,S);return b.trim().replace(se[S.includePrerelease?ae.GTE0PRE:ae.GTE0],"")};const hyphenReplace=b=>(S,J,ee,te,re,ne,ie,oe,se,ae,ue,ce,le)=>{if(isX(ee)){J=""}else if(isX(te)){J=`>=${ee}.0.0${b?"-0":""}`}else if(isX(re)){J=`>=${ee}.${te}.0${b?"-0":""}`}else if(ne){J=`>=${J}`}else{J=`>=${J}${b?"-0":""}`}if(isX(se)){oe=""}else if(isX(ae)){oe=`<${+se+1}.0.0-0`}else if(isX(ue)){oe=`<${se}.${+ae+1}.0-0`}else if(ce){oe=`<=${se}.${ae}.${ue}-${ce}`}else if(b){oe=`<${se}.${ae}.${+ue+1}-0`}else{oe=`<=${oe}`}return`${J} ${oe}`.trim()};const testSet=(b,S,J)=>{for(let J=0;J<b.length;J++){if(!b[J].test(S)){return false}}if(S.prerelease.length&&!J.includePrerelease){for(let J=0;J<b.length;J++){ie(b[J].semver);if(b[J].semver===ne.ANY){continue}if(b[J].semver.prerelease.length>0){const ee=b[J].semver;if(ee.major===S.major&&ee.minor===S.minor&&ee.patch===S.patch){return true}}}return false}return true}},22828:(b,S,J)=>{const ee=J(53023);const{MAX_LENGTH:te,MAX_SAFE_INTEGER:re}=J(85585);const{safeRe:ne,t:ie}=J(21962);const oe=J(298);const{compareIdentifiers:se}=J(88143);class SemVer{constructor(b,S){S=oe(S);if(b instanceof SemVer){if(b.loose===!!S.loose&&b.includePrerelease===!!S.includePrerelease){return b}else{b=b.version}}else if(typeof b!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof b}".`)}if(b.length>te){throw new TypeError(`version is longer than ${te} characters`)}ee("SemVer",b,S);this.options=S;this.loose=!!S.loose;this.includePrerelease=!!S.includePrerelease;const J=b.trim().match(S.loose?ne[ie.LOOSE]:ne[ie.FULL]);if(!J){throw new TypeError(`Invalid Version: ${b}`)}this.raw=b;this.major=+J[1];this.minor=+J[2];this.patch=+J[3];if(this.major>re||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>re||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>re||this.patch<0){throw new TypeError("Invalid patch version")}if(!J[4]){this.prerelease=[]}else{this.prerelease=J[4].split(".").map((b=>{if(/^[0-9]+$/.test(b)){const S=+b;if(S>=0&&S<re){return S}}return b}))}this.build=J[5]?J[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(b){ee("SemVer.compare",this.version,this.options,b);if(!(b instanceof SemVer)){if(typeof b==="string"&&b===this.version){return 0}b=new SemVer(b,this.options)}if(b.version===this.version){return 0}return this.compareMain(b)||this.comparePre(b)}compareMain(b){if(!(b instanceof SemVer)){b=new SemVer(b,this.options)}return se(this.major,b.major)||se(this.minor,b.minor)||se(this.patch,b.patch)}comparePre(b){if(!(b instanceof SemVer)){b=new SemVer(b,this.options)}if(this.prerelease.length&&!b.prerelease.length){return-1}else if(!this.prerelease.length&&b.prerelease.length){return 1}else if(!this.prerelease.length&&!b.prerelease.length){return 0}let S=0;do{const J=this.prerelease[S];const te=b.prerelease[S];ee("prerelease compare",S,J,te);if(J===undefined&&te===undefined){return 0}else if(te===undefined){return 1}else if(J===undefined){return-1}else if(J===te){continue}else{return se(J,te)}}while(++S)}compareBuild(b){if(!(b instanceof SemVer)){b=new SemVer(b,this.options)}let S=0;do{const J=this.build[S];const te=b.build[S];ee("prerelease compare",S,J,te);if(J===undefined&&te===undefined){return 0}else if(te===undefined){return 1}else if(J===undefined){return-1}else if(J===te){continue}else{return se(J,te)}}while(++S)}inc(b,S,J){switch(b){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",S,J);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",S,J);break;case"prepatch":this.prerelease.length=0;this.inc("patch",S,J);this.inc("pre",S,J);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",S,J)}this.inc("pre",S,J);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const b=Number(J)?1:0;if(!S&&J===false){throw new Error("invalid increment argument: identifier is empty")}if(this.prerelease.length===0){this.prerelease=[b]}else{let ee=this.prerelease.length;while(--ee>=0){if(typeof this.prerelease[ee]==="number"){this.prerelease[ee]++;ee=-2}}if(ee===-1){if(S===this.prerelease.join(".")&&J===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(b)}}if(S){let ee=[S,b];if(J===false){ee=[S]}if(se(this.prerelease[0],S)===0){if(isNaN(this.prerelease[1])){this.prerelease=ee}}else{this.prerelease=ee}}break}default:throw new Error(`invalid increment argument: ${b}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}b.exports=SemVer},3413:(b,S,J)=>{const ee=J(2473);const clean=(b,S)=>{const J=ee(b.trim().replace(/^[=v]+/,""),S);return J?J.version:null};b.exports=clean},75344:(b,S,J)=>{const ee=J(47498);const te=J(88873);const re=J(60245);const ne=J(89537);const ie=J(71927);const oe=J(99818);const cmp=(b,S,J,se)=>{switch(S){case"===":if(typeof b==="object"){b=b.version}if(typeof J==="object"){J=J.version}return b===J;case"!==":if(typeof b==="object"){b=b.version}if(typeof J==="object"){J=J.version}return b!==J;case"":case"=":case"==":return ee(b,J,se);case"!=":return te(b,J,se);case">":return re(b,J,se);case">=":return ne(b,J,se);case"<":return ie(b,J,se);case"<=":return oe(b,J,se);default:throw new TypeError(`Invalid operator: ${S}`)}};b.exports=cmp},99886:(b,S,J)=>{const ee=J(22828);const te=J(2473);const{safeRe:re,t:ne}=J(21962);const coerce=(b,S)=>{if(b instanceof ee){return b}if(typeof b==="number"){b=String(b)}if(typeof b!=="string"){return null}S=S||{};let J=null;if(!S.rtl){J=b.match(re[ne.COERCE])}else{let S;while((S=re[ne.COERCERTL].exec(b))&&(!J||J.index+J[0].length!==b.length)){if(!J||S.index+S[0].length!==J.index+J[0].length){J=S}re[ne.COERCERTL].lastIndex=S.index+S[1].length+S[2].length}re[ne.COERCERTL].lastIndex=-1}if(J===null){return null}return te(`${J[2]}.${J[3]||"0"}.${J[4]||"0"}`,S)};b.exports=coerce},43868:(b,S,J)=>{const ee=J(22828);const compareBuild=(b,S,J)=>{const te=new ee(b,J);const re=new ee(S,J);return te.compare(re)||te.compareBuild(re)};b.exports=compareBuild},31526:(b,S,J)=>{const ee=J(56419);const compareLoose=(b,S)=>ee(b,S,true);b.exports=compareLoose},56419:(b,S,J)=>{const ee=J(22828);const compare=(b,S,J)=>new ee(b,J).compare(new ee(S,J));b.exports=compare},20213:(b,S,J)=>{const ee=J(2473);const diff=(b,S)=>{const J=ee(b,null,true);const te=ee(S,null,true);const re=J.compare(te);if(re===0){return null}const ne=re>0;const ie=ne?J:te;const oe=ne?te:J;const se=!!ie.prerelease.length;const ae=!!oe.prerelease.length;if(ae&&!se){if(!oe.patch&&!oe.minor){return"major"}if(ie.patch){return"patch"}if(ie.minor){return"minor"}return"major"}const ue=se?"pre":"";if(J.major!==te.major){return ue+"major"}if(J.minor!==te.minor){return ue+"minor"}if(J.patch!==te.patch){return ue+"patch"}return"prerelease"};b.exports=diff},47498:(b,S,J)=>{const ee=J(56419);const eq=(b,S,J)=>ee(b,S,J)===0;b.exports=eq},60245:(b,S,J)=>{const ee=J(56419);const gt=(b,S,J)=>ee(b,S,J)>0;b.exports=gt},89537:(b,S,J)=>{const ee=J(56419);const gte=(b,S,J)=>ee(b,S,J)>=0;b.exports=gte},56767:(b,S,J)=>{const ee=J(22828);const inc=(b,S,J,te,re)=>{if(typeof J==="string"){re=te;te=J;J=undefined}try{return new ee(b instanceof ee?b.version:b,J).inc(S,te,re).version}catch(b){return null}};b.exports=inc},71927:(b,S,J)=>{const ee=J(56419);const lt=(b,S,J)=>ee(b,S,J)<0;b.exports=lt},99818:(b,S,J)=>{const ee=J(56419);const lte=(b,S,J)=>ee(b,S,J)<=0;b.exports=lte},61941:(b,S,J)=>{const ee=J(22828);const major=(b,S)=>new ee(b,S).major;b.exports=major},56770:(b,S,J)=>{const ee=J(22828);const minor=(b,S)=>new ee(b,S).minor;b.exports=minor},88873:(b,S,J)=>{const ee=J(56419);const neq=(b,S,J)=>ee(b,S,J)!==0;b.exports=neq},2473:(b,S,J)=>{const ee=J(22828);const parse=(b,S,J=false)=>{if(b instanceof ee){return b}try{return new ee(b,S)}catch(b){if(!J){return null}throw b}};b.exports=parse},56952:(b,S,J)=>{const ee=J(22828);const patch=(b,S)=>new ee(b,S).patch;b.exports=patch},4359:(b,S,J)=>{const ee=J(2473);const prerelease=(b,S)=>{const J=ee(b,S);return J&&J.prerelease.length?J.prerelease:null};b.exports=prerelease},79995:(b,S,J)=>{const ee=J(56419);const rcompare=(b,S,J)=>ee(S,b,J);b.exports=rcompare},78405:(b,S,J)=>{const ee=J(43868);const rsort=(b,S)=>b.sort(((b,J)=>ee(J,b,S)));b.exports=rsort},90244:(b,S,J)=>{const ee=J(9349);const satisfies=(b,S,J)=>{try{S=new ee(S,J)}catch(b){return false}return S.test(b)};b.exports=satisfies},24893:(b,S,J)=>{const ee=J(43868);const sort=(b,S)=>b.sort(((b,J)=>ee(b,J,S)));b.exports=sort},52410:(b,S,J)=>{const ee=J(2473);const valid=(b,S)=>{const J=ee(b,S);return J?J.version:null};b.exports=valid},92901:(b,S,J)=>{const ee=J(21962);const te=J(85585);const re=J(22828);const ne=J(88143);const ie=J(2473);const oe=J(52410);const se=J(3413);const ae=J(56767);const ue=J(20213);const ce=J(61941);const le=J(56770);const pe=J(56952);const fe=J(4359);const de=J(56419);const he=J(79995);const me=J(31526);const ge=J(43868);const ye=J(24893);const ve=J(78405);const Te=J(60245);const be=J(71927);const _e=J(47498);const Ee=J(88873);const Ae=J(89537);const we=J(99818);const xe=J(75344);const ke=J(99886);const Ce=J(53544);const Pe=J(9349);const Se=J(90244);const Ie=J(32579);const De=J(1126);const Oe=J(18260);const Re=J(12037);const Ne=J(17981);const Me=J(85409);const Fe=J(5401);const Le=J(84856);const je=J(33186);const Be=J(35151);const $e=J(99318);b.exports={parse:ie,valid:oe,clean:se,inc:ae,diff:ue,major:ce,minor:le,patch:pe,prerelease:fe,compare:de,rcompare:he,compareLoose:me,compareBuild:ge,sort:ye,rsort:ve,gt:Te,lt:be,eq:_e,neq:Ee,gte:Ae,lte:we,cmp:xe,coerce:ke,Comparator:Ce,Range:Pe,satisfies:Se,toComparators:Ie,maxSatisfying:De,minSatisfying:Oe,minVersion:Re,validRange:Ne,outside:Me,gtr:Fe,ltr:Le,intersects:je,simplifyRange:Be,subset:$e,SemVer:re,re:ee.re,src:ee.src,tokens:ee.t,SEMVER_SPEC_VERSION:te.SEMVER_SPEC_VERSION,RELEASE_TYPES:te.RELEASE_TYPES,compareIdentifiers:ne.compareIdentifiers,rcompareIdentifiers:ne.rcompareIdentifiers}},85585:b=>{const S="2.0.0";const J=256;const ee=Number.MAX_SAFE_INTEGER||9007199254740991;const te=16;const re=J-6;const ne=["major","premajor","minor","preminor","patch","prepatch","prerelease"];b.exports={MAX_LENGTH:J,MAX_SAFE_COMPONENT_LENGTH:te,MAX_SAFE_BUILD_LENGTH:re,MAX_SAFE_INTEGER:ee,RELEASE_TYPES:ne,SEMVER_SPEC_VERSION:S,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},53023:b=>{const S=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...b)=>console.error("SEMVER",...b):()=>{};b.exports=S},88143:b=>{const S=/^[0-9]+$/;const compareIdentifiers=(b,J)=>{const ee=S.test(b);const te=S.test(J);if(ee&&te){b=+b;J=+J}return b===J?0:ee&&!te?-1:te&&!ee?1:b<J?-1:1};const rcompareIdentifiers=(b,S)=>compareIdentifiers(S,b);b.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},298:b=>{const S=Object.freeze({loose:true});const J=Object.freeze({});const parseOptions=b=>{if(!b){return J}if(typeof b!=="object"){return S}return b};b.exports=parseOptions},21962:(b,S,J)=>{const{MAX_SAFE_COMPONENT_LENGTH:ee,MAX_SAFE_BUILD_LENGTH:te,MAX_LENGTH:re}=J(85585);const ne=J(53023);S=b.exports={};const ie=S.re=[];const oe=S.safeRe=[];const se=S.src=[];const ae=S.t={};let ue=0;const ce="[a-zA-Z0-9-]";const le=[["\\s",1],["\\d",re],[ce,te]];const makeSafeRegex=b=>{for(const[S,J]of le){b=b.split(`${S}*`).join(`${S}{0,${J}}`).split(`${S}+`).join(`${S}{1,${J}}`)}return b};const createToken=(b,S,J)=>{const ee=makeSafeRegex(S);const te=ue++;ne(b,te,S);ae[b]=te;se[te]=S;ie[te]=new RegExp(S,J?"g":undefined);oe[te]=new RegExp(ee,J?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${ce}*`);createToken("MAINVERSION",`(${se[ae.NUMERICIDENTIFIER]})\\.`+`(${se[ae.NUMERICIDENTIFIER]})\\.`+`(${se[ae.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${se[ae.NUMERICIDENTIFIERLOOSE]})\\.`+`(${se[ae.NUMERICIDENTIFIERLOOSE]})\\.`+`(${se[ae.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${se[ae.NUMERICIDENTIFIER]}|${se[ae.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${se[ae.NUMERICIDENTIFIERLOOSE]}|${se[ae.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${se[ae.PRERELEASEIDENTIFIER]}(?:\\.${se[ae.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${se[ae.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${se[ae.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${ce}+`);createToken("BUILD",`(?:\\+(${se[ae.BUILDIDENTIFIER]}(?:\\.${se[ae.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${se[ae.MAINVERSION]}${se[ae.PRERELEASE]}?${se[ae.BUILD]}?`);createToken("FULL",`^${se[ae.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${se[ae.MAINVERSIONLOOSE]}${se[ae.PRERELEASELOOSE]}?${se[ae.BUILD]}?`);createToken("LOOSE",`^${se[ae.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${se[ae.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${se[ae.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${se[ae.XRANGEIDENTIFIER]})`+`(?:\\.(${se[ae.XRANGEIDENTIFIER]})`+`(?:\\.(${se[ae.XRANGEIDENTIFIER]})`+`(?:${se[ae.PRERELEASE]})?${se[ae.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${se[ae.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${se[ae.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${se[ae.XRANGEIDENTIFIERLOOSE]})`+`(?:${se[ae.PRERELEASELOOSE]})?${se[ae.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${se[ae.GTLT]}\\s*${se[ae.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${se[ae.GTLT]}\\s*${se[ae.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${ee}})`+`(?:\\.(\\d{1,${ee}}))?`+`(?:\\.(\\d{1,${ee}}))?`+`(?:$|[^\\d])`);createToken("COERCERTL",se[ae.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${se[ae.LONETILDE]}\\s+`,true);S.tildeTrimReplace="$1~";createToken("TILDE",`^${se[ae.LONETILDE]}${se[ae.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${se[ae.LONETILDE]}${se[ae.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${se[ae.LONECARET]}\\s+`,true);S.caretTrimReplace="$1^";createToken("CARET",`^${se[ae.LONECARET]}${se[ae.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${se[ae.LONECARET]}${se[ae.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${se[ae.GTLT]}\\s*(${se[ae.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${se[ae.GTLT]}\\s*(${se[ae.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${se[ae.GTLT]}\\s*(${se[ae.LOOSEPLAIN]}|${se[ae.XRANGEPLAIN]})`,true);S.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${se[ae.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${se[ae.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${se[ae.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${se[ae.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},5401:(b,S,J)=>{const ee=J(85409);const gtr=(b,S,J)=>ee(b,S,">",J);b.exports=gtr},33186:(b,S,J)=>{const ee=J(9349);const intersects=(b,S,J)=>{b=new ee(b,J);S=new ee(S,J);return b.intersects(S,J)};b.exports=intersects},84856:(b,S,J)=>{const ee=J(85409);const ltr=(b,S,J)=>ee(b,S,"<",J);b.exports=ltr},1126:(b,S,J)=>{const ee=J(22828);const te=J(9349);const maxSatisfying=(b,S,J)=>{let re=null;let ne=null;let ie=null;try{ie=new te(S,J)}catch(b){return null}b.forEach((b=>{if(ie.test(b)){if(!re||ne.compare(b)===-1){re=b;ne=new ee(re,J)}}}));return re};b.exports=maxSatisfying},18260:(b,S,J)=>{const ee=J(22828);const te=J(9349);const minSatisfying=(b,S,J)=>{let re=null;let ne=null;let ie=null;try{ie=new te(S,J)}catch(b){return null}b.forEach((b=>{if(ie.test(b)){if(!re||ne.compare(b)===1){re=b;ne=new ee(re,J)}}}));return re};b.exports=minSatisfying},12037:(b,S,J)=>{const ee=J(22828);const te=J(9349);const re=J(60245);const minVersion=(b,S)=>{b=new te(b,S);let J=new ee("0.0.0");if(b.test(J)){return J}J=new ee("0.0.0-0");if(b.test(J)){return J}J=null;for(let S=0;S<b.set.length;++S){const te=b.set[S];let ne=null;te.forEach((b=>{const S=new ee(b.semver.version);switch(b.operator){case">":if(S.prerelease.length===0){S.patch++}else{S.prerelease.push(0)}S.raw=S.format();case"":case">=":if(!ne||re(S,ne)){ne=S}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${b.operator}`)}}));if(ne&&(!J||re(J,ne))){J=ne}}if(J&&b.test(J)){return J}return null};b.exports=minVersion},85409:(b,S,J)=>{const ee=J(22828);const te=J(53544);const{ANY:re}=te;const ne=J(9349);const ie=J(90244);const oe=J(60245);const se=J(71927);const ae=J(99818);const ue=J(89537);const outside=(b,S,J,ce)=>{b=new ee(b,ce);S=new ne(S,ce);let le,pe,fe,de,he;switch(J){case">":le=oe;pe=ae;fe=se;de=">";he=">=";break;case"<":le=se;pe=ue;fe=oe;de="<";he="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ie(b,S,ce)){return false}for(let J=0;J<S.set.length;++J){const ee=S.set[J];let ne=null;let ie=null;ee.forEach((b=>{if(b.semver===re){b=new te(">=0.0.0")}ne=ne||b;ie=ie||b;if(le(b.semver,ne.semver,ce)){ne=b}else if(fe(b.semver,ie.semver,ce)){ie=b}}));if(ne.operator===de||ne.operator===he){return false}if((!ie.operator||ie.operator===de)&&pe(b,ie.semver)){return false}else if(ie.operator===he&&fe(b,ie.semver)){return false}}return true};b.exports=outside},35151:(b,S,J)=>{const ee=J(90244);const te=J(56419);b.exports=(b,S,J)=>{const re=[];let ne=null;let ie=null;const oe=b.sort(((b,S)=>te(b,S,J)));for(const b of oe){const te=ee(b,S,J);if(te){ie=b;if(!ne){ne=b}}else{if(ie){re.push([ne,ie])}ie=null;ne=null}}if(ne){re.push([ne,null])}const se=[];for(const[b,S]of re){if(b===S){se.push(b)}else if(!S&&b===oe[0]){se.push("*")}else if(!S){se.push(`>=${b}`)}else if(b===oe[0]){se.push(`<=${S}`)}else{se.push(`${b} - ${S}`)}}const ae=se.join(" || ");const ue=typeof S.raw==="string"?S.raw:String(S);return ae.length<ue.length?ae:S}},99318:(b,S,J)=>{const ee=J(9349);const te=J(53544);const{ANY:re}=te;const ne=J(90244);const ie=J(56419);const subset=(b,S,J={})=>{if(b===S){return true}b=new ee(b,J);S=new ee(S,J);let te=false;e:for(const ee of b.set){for(const b of S.set){const S=simpleSubset(ee,b,J);te=te||S!==null;if(S){continue e}}if(te){return false}}return true};const oe=[new te(">=0.0.0-0")];const se=[new te(">=0.0.0")];const simpleSubset=(b,S,J)=>{if(b===S){return true}if(b.length===1&&b[0].semver===re){if(S.length===1&&S[0].semver===re){return true}else if(J.includePrerelease){b=oe}else{b=se}}if(S.length===1&&S[0].semver===re){if(J.includePrerelease){return true}else{S=se}}const ee=new Set;let te,ae;for(const S of b){if(S.operator===">"||S.operator===">="){te=higherGT(te,S,J)}else if(S.operator==="<"||S.operator==="<="){ae=lowerLT(ae,S,J)}else{ee.add(S.semver)}}if(ee.size>1){return null}let ue;if(te&&ae){ue=ie(te.semver,ae.semver,J);if(ue>0){return null}else if(ue===0&&(te.operator!==">="||ae.operator!=="<=")){return null}}for(const b of ee){if(te&&!ne(b,String(te),J)){return null}if(ae&&!ne(b,String(ae),J)){return null}for(const ee of S){if(!ne(b,String(ee),J)){return false}}return true}let ce,le;let pe,fe;let de=ae&&!J.includePrerelease&&ae.semver.prerelease.length?ae.semver:false;let he=te&&!J.includePrerelease&&te.semver.prerelease.length?te.semver:false;if(de&&de.prerelease.length===1&&ae.operator==="<"&&de.prerelease[0]===0){de=false}for(const b of S){fe=fe||b.operator===">"||b.operator===">=";pe=pe||b.operator==="<"||b.operator==="<=";if(te){if(he){if(b.semver.prerelease&&b.semver.prerelease.length&&b.semver.major===he.major&&b.semver.minor===he.minor&&b.semver.patch===he.patch){he=false}}if(b.operator===">"||b.operator===">="){ce=higherGT(te,b,J);if(ce===b&&ce!==te){return false}}else if(te.operator===">="&&!ne(te.semver,String(b),J)){return false}}if(ae){if(de){if(b.semver.prerelease&&b.semver.prerelease.length&&b.semver.major===de.major&&b.semver.minor===de.minor&&b.semver.patch===de.patch){de=false}}if(b.operator==="<"||b.operator==="<="){le=lowerLT(ae,b,J);if(le===b&&le!==ae){return false}}else if(ae.operator==="<="&&!ne(ae.semver,String(b),J)){return false}}if(!b.operator&&(ae||te)&&ue!==0){return false}}if(te&&pe&&!ae&&ue!==0){return false}if(ae&&fe&&!te&&ue!==0){return false}if(he||de){return false}return true};const higherGT=(b,S,J)=>{if(!b){return S}const ee=ie(b.semver,S.semver,J);return ee>0?b:ee<0?S:S.operator===">"&&b.operator===">="?S:b};const lowerLT=(b,S,J)=>{if(!b){return S}const ee=ie(b.semver,S.semver,J);return ee<0?b:ee>0?S:S.operator==="<"&&b.operator==="<="?S:b};b.exports=subset},32579:(b,S,J)=>{const ee=J(9349);const toComparators=(b,S)=>new ee(b,S).set.map((b=>b.map((b=>b.value)).join(" ").trim().split(" ")));b.exports=toComparators},17981:(b,S,J)=>{const ee=J(9349);const validRange=(b,S)=>{try{return new ee(b,S).range||"*"}catch(b){return null}};b.exports=validRange},2855:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});const te=J(81993);const re=J(36581);const ne=ee(J(68746));const ie=J(98018);const oe=ee(J(41112));const se=J(83036);const ae=J(84221);const ue=J(9335);const ce=J(2554);const le=J(70639);const pe=J(25823);const fe=J(70026);const de=J(76956);const he=J(88139);const me=J(30443);const ge=J(4147);let ye="";const ve=new ie.Command(ge.name).version(ge.version).arguments("<project-directory>").usage(`${ne.default.green("<project-directory>")} [options]`).description("Install expo-modules into your project").option("-s, --sdk-version <version>","Install specified expo-modules sdk version").option("--non-interactive","Disable interactive prompts").action((b=>ye=b)).parse(process.argv);function getSdkVersionInfo(b){const{sdkVersion:S}=ve;if(S){const b=(0,fe.getVersionInfo)(S);if(!b){throw new Error(`Unsupported sdkVersion: ${S}`)}return b}return(0,fe.getDefaultSdkVersion)(b)}async function promptUpgradeAgpVersionAsync(b,S){if(!await(0,se.shouldUpdateAgpVersionAsync)(b,S)){return true}const J=`The minimum Android Gradle Plugin version for Expo modules is ${S}. This tool will change your AGP version to ${S}.`;if(ve.nonInteractive){console.log(ne.default.yellow(`⚠️ ${J}`));return true}else{const{value:b}=await(0,oe.default)({type:"confirm",name:"value",message:`${J} Do you want to continue?`,initial:true});return!!b}}async function promptUpgradeIosDeployTargetAsync(b,S){if(!await(0,ce.shouldUpdateDeployTargetPodfileAsync)(b,S)){return true}const J=`Expo modules minimum iOS requirement is ${S}. This tool will change your iOS deployment target to ${S}.`;if(ve.nonInteractive){console.log(ne.default.yellow(`⚠️ ${J}`));return true}else{const{value:b}=await(0,oe.default)({type:"confirm",name:"value",message:`${J} Do you want to continue?`,initial:true});return!!b}}async function promptCliIntegrationAsync(){const b=`This tool can install Expo CLI integration for your project.\nUsing Expo CLI has some benefits over the the default CLI in bare React Native projects:\n - Built-in JavaScript debugger and React Devtools.\n - Support for Continuous Native Generation (CNG) with \`npx expo prebuild\` for easy upgrades.\n - Automatic web support with Metro.\n${(0,de.learnMore)("https://docs.expo.dev/bare/using-expo-cli/")}\nDo you want to install the Expo CLI integration?`;if(ve.nonInteractive){return true}const{value:S}=await(0,oe.default)({type:"confirm",name:"value",message:b,initial:true});return!!S}async function runAsync(b){const{projectRoot:S,platformAndroid:J,platformIos:ee}=await(0,me.normalizeProjectRootAsync)(ye);const{expoSdkVersion:ie,iosDeploymentTarget:oe,androidAgpVersion:fe,supportCliIntegration:de}=getSdkVersionInfo(S);if(J&&fe&&!await promptUpgradeAgpVersionAsync(S,fe)){return}if(ee&&!await promptUpgradeIosDeployTargetAsync(S,oe)){return}const ge=de&&await promptCliIntegrationAsync();const ve=[];if(J){ve.push("android")}if(ee){ve.push("ios")}let{exp:Te}=(0,te.getConfig)(S,{skipSDKVersionRequirement:true,isModdedConfig:true});Te.sdkVersion=ie;if(fe){Te=(0,se.withAndroidGradlePluginVersion)(Te,{androidAgpVersion:fe})}Te=(0,ae.withAndroidModules)(Te);Te=(0,le.withIosModules)(Te);Te=(0,ce.withIosDeploymentTarget)(Te,{deploymentTarget:oe});if(ge){Te=(0,ue.withCliIntegration)(Te)}Te=(0,pe.withXCParseXcodeProjectBaseMod)(Te);console.log("› Updating your project...");await(0,re.compileModsAsync)(Te,{projectRoot:S,platforms:ve});console.log("› Installing expo packages...");await(0,he.installExpoPackageAsync)(S,ie);console.log("› Installing ios pods...");await(0,he.installPodsAsync)(S);console.log(ne.default.bold("› Installation completed!"))}(async()=>{ve.parse(process.argv);try{await runAsync(ge.name)}catch(b){console.error("Uncaught Error",b);process.exit(1)}})()},83036:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.withAndroidGradlePluginVersion=S.shouldUpdateAgpVersionAsync=void 0;const te=J(36581);const re=ee(J(57147));const ne=ee(J(71017));const ie=ee(J(92901));function createAgpRegExp(){return/^(\s*classpath[(\s]["']com\.android\.tools\.build:gradle:)(\d+\.\d+\.\d+)(["'][)\s]\s*)$/gm}async function shouldUpdateAgpVersionAsync(b,S){const J=ne.default.join(b,"android","build.gradle");const ee=await re.default.promises.readFile(J,"utf-8");const te=createAgpRegExp().exec(ee);if(!te){console.warn("Unrecognized `android/build.gradle` content, will skip the process to update AGP version.");return false}const oe=te[2];if(!oe){console.warn("Unrecognized `android/build.gradle` content, will skip the process to update AGP version.");return false}return ie.default.lt(toSemVer(oe),toSemVer(S))}S.shouldUpdateAgpVersionAsync=shouldUpdateAgpVersionAsync;const withAndroidGradlePluginVersion=(b,S)=>(0,te.withProjectBuildGradle)(b,(b=>{if(b.modResults.language!=="groovy"){throw new Error("Cannot setup kotlin because the build.gradle is not groovy")}const J=createAgpRegExp().exec(b.modResults.contents);if(J){const ee=J[2];if(ee&&ie.default.lt(toSemVer(ee),toSemVer(S.androidAgpVersion))){b.modResults.contents=b.modResults.contents.replace(createAgpRegExp(),((b,J,ee,te)=>`${J}${S.androidAgpVersion}${te}`))}}return b}));S.withAndroidGradlePluginVersion=withAndroidGradlePluginVersion;function toSemVer(b){return ie.default.coerce(b)??new ie.default.SemVer("0.0.0")}},84221:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.withAndroidModules=void 0;const ee=J(36581);const te=J(51595);const re=J(67776);const withAndroidModules=b=>(0,ee.withPlugins)(b,[re.withAndroidModulesMainApplication,te.withAndroidModulesMainActivity,withAndroidModulesSettingGradle]);S.withAndroidModules=withAndroidModules;const withAndroidModulesSettingGradle=b=>(0,ee.withSettingsGradle)(b,(b=>{if(b.modResults.contents.match("useExpoModules()")){return b}const S=b.modResults.language==="groovy";const J=S?['apply from: new File(["node", "--print", "require.resolve(\'expo/package.json\')"].execute(null, rootDir).text.trim(), "../scripts/autolinking.gradle")',"useExpoModules()"]:["val pathExpoPackageJson = org.codehaus.groovy.runtime.ProcessGroovyMethods.getText(org.codehaus.groovy.runtime.ProcessGroovyMethods.execute(\"node --print require.resolve('expo/package.json')\", null, rootDir))",'apply(from = File(pathExpoPackageJson.trim(), "../scripts/autolinking.gradle"))','val useExpoModules = extra["useExpoModules"] as groovy.lang.Closure<Any>',"useExpoModules()"];b.modResults.contents=b.modResults.contents+`\n${J.join("\n")}`;return b}))},51595:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.setModulesMainActivity=S.withAndroidModulesMainActivity=void 0;const ee=J(36581);const te=J(85165);const re=J(80837);const withAndroidModulesMainActivity=b=>(0,ee.withMainActivity)(b,(b=>{b.modResults.contents=setModulesMainActivity(b.modResults.contents,b.modResults.language);return b}));S.withAndroidModulesMainActivity=withAndroidModulesMainActivity;function setModulesMainActivity(b,S){const J=S==="java";if(b.match(/\s+ReactActivityDelegateWrapper\(/m)!=null){return b}if(b.match(/\s+createReactActivityDelegate\(\)/m)==null){b=(0,te.addImports)(b,["com.facebook.react.ReactActivityDelegate","expo.modules.ReactActivityDelegateWrapper"],J);const S=J?["\n @Override"," protected ReactActivityDelegate createReactActivityDelegate() {"," return new ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED,"," new ReactActivityDelegate(this, getMainComponentName())"," );"," }\n"]:["\n override fun createReactActivityDelegate(): ReactActivityDelegate {"," return ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED,"," ReactActivityDelegate(this, getMainComponentName())"," );"," }\n"];b=(0,te.appendContentsInsideDeclarationBlock)(b,"class MainActivity",S.join("\n"))}else if(b.match(/\bDefaultReactActivityDelegate\b/g)){b=(0,te.addImports)(b,["expo.modules.ReactActivityDelegateWrapper"],J);const ee=(0,te.findNewInstanceCodeBlock)(b,"DefaultReactActivityDelegate",S);if(ee==null){throw new Error("Unable to find DefaultReactActivityDelegate new instance code block.")}const ne=J?`new ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, ${ee.code})`:`ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, ${ee.code})`;b=(0,re.replaceContentsWithOffset)(b,ne,ee.start,ee.end);return b}else if(b.match(/\s+MainActivityDelegate\s+extends\s+ReactActivityDelegate\s+\{/)!=null||b.match(/\s+MainActivityDelegate\(.+\)\s+:\s+ReactActivityDelegate.+\{/)!=null){b=(0,te.addImports)(b,["expo.modules.ReactActivityDelegateWrapper"],J);const ee=(0,te.findNewInstanceCodeBlock)(b,"MainActivityDelegate",S);if(ee==null){throw new Error("Unable to find MainActivityDelegate new instance code block.")}const ne=J?`new ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, ${ee.code})`:`ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, ${ee.code})`;b=(0,re.replaceContentsWithOffset)(b,ne,ee.start,ee.end);return b}else{b=(0,te.addImports)(b,["expo.modules.ReactActivityDelegateWrapper"],J);const ee=(0,te.findNewInstanceCodeBlock)(b,"ReactActivityDelegate",S);if(ee==null){throw new Error("Unable to find ReactActivityDelegate new instance code block.")}const ne=J?`new ReactActivityDelegateWrapper(this, ${ee.code})`:`ReactActivityDelegateWrapper(this, ${ee.code})`;b=(0,re.replaceContentsWithOffset)(b,ne,ee.start,ee.end);return b}return b}S.setModulesMainActivity=setModulesMainActivity},67776:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.setModulesMainApplication=S.withAndroidModulesMainApplication=void 0;const te=J(36581);const re=J(85165);const ne=J(80837);const ie=ee(J(39491));const oe=ee(J(92901));const withAndroidModulesMainApplication=b=>(0,te.withMainApplication)(b,(b=>{(0,ie.default)(b.sdkVersion);b.modResults.contents=setModulesMainApplication(b.sdkVersion,b.modResults.contents,b.modResults.language);return b}));S.withAndroidModulesMainApplication=withAndroidModulesMainApplication;function setModulesMainApplication(b,S,J){const ee=J==="java";S=addDefaultReactNativeHostWrapperIfNeeded(S,J,ee);S=addReactHostWrapperIfNeeded(b,S,J,ee);S=addReactNativeHostWrapperIfNeeded(S,J,ee);S=addReactNativeNewArchHostWrapperIfNeeded(S,J,ee);S=addApplicationLifecycleDispatchImportIfNeeded(S,J,ee);S=addApplicationCreateIfNeeded(S,J,ee);S=addConfigurationChangeIfNeeded(S,J,ee);return S}S.setModulesMainApplication=setModulesMainApplication;function addDefaultReactNativeHostWrapperIfNeeded(b,S,J){if(!b.match(/^import .*\.defaults\.DefaultReactNativeHost;?$/m)){return b}if(b.match(/\s+ReactNativeHostWrapper\(this,.*DefaultReactNativeHost\(/m)){return b}if(b.match(/\s+ReactNativeHostWrapper\(/m)){return b}b=(0,re.addImports)(b,["expo.modules.ReactNativeHostWrapper"],J);const ee=(0,re.findNewInstanceCodeBlock)(b,"DefaultReactNativeHost",S);if(ee==null){throw new Error("Unable to find DefaultReactNativeHost new instance code block.")}const te=J?`new ReactNativeHostWrapper(this, ${ee.code})`:`ReactNativeHostWrapper(this, ${ee.code})`;b=(0,ne.replaceContentsWithOffset)(b,te,ee.start,ee.end);return b}function addReactHostWrapperIfNeeded(b,S,J,ee){if(oe.default.lt(b,"51.0.0")){return S}return S.replace(/(\s+)getDefaultReactHost\(/gm,"$1ReactNativeHostWrapper.createReactHost(")}function addReactNativeHostWrapperIfNeeded(b,S,J){if(b.match(/\s+ReactNativeHostWrapper\(/m)){return b}b=(0,re.addImports)(b,["expo.modules.ReactNativeHostWrapper"],J);const ee=(0,re.findNewInstanceCodeBlock)(b,"ReactNativeHost",S);if(ee==null){throw new Error("Unable to find ReactNativeHost new instance code block.")}const te=J?`new ReactNativeHostWrapper(this, ${ee.code})`:`ReactNativeHostWrapper(this, ${ee.code})`;b=(0,ne.replaceContentsWithOffset)(b,te,ee.start,ee.end);return b}function addReactNativeNewArchHostWrapperIfNeeded(b,S,J){if(!b.match(/^import .*\.newarchitecture\.MainApplicationReactNativeHost;?$/m)){return b}if(b.match(/\s+ReactNativeHostWrapper\(this,.*MainApplicationReactNativeHost\(/m)){return b}b=(0,re.addImports)(b,["expo.modules.ReactNativeHostWrapper"],J);const ee=(0,re.findNewInstanceCodeBlock)(b,"MainApplicationReactNativeHost",S);if(ee==null){throw new Error("Unable to find ReactNativeHost new instance code block.")}const te=J?`new ReactNativeHostWrapper(this, ${ee.code})`:`ReactNativeHostWrapper(this, ${ee.code})`;b=(0,ne.replaceContentsWithOffset)(b,te,ee.start,ee.end);return b}function addApplicationLifecycleDispatchImportIfNeeded(b,S,J){if(b.match(/^import\s+expo\.modules\.ApplicationLifecycleDispatcher;?$/)){return b}return(0,re.addImports)(b,["expo.modules.ApplicationLifecycleDispatcher"],J)}function addApplicationCreateIfNeeded(b,S,J){if(b.match(/\s+ApplicationLifecycleDispatcher\.onApplicationCreate\(/m)){return b}return(0,re.appendContentsInsideDeclarationBlock)(b,"onCreate",` ApplicationLifecycleDispatcher.onApplicationCreate(this)${J?";":""}\n `)}function addConfigurationChangeIfNeeded(b,S,J){if(b.match(/\s+onConfigurationChanged\(/m)==null){b=(0,re.addImports)(b,["android.content.res.Configuration"],J);const S=J?["\n @Override"," public void onConfigurationChanged(Configuration newConfig) {"," super.onConfigurationChanged(newConfig);"," ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig);"," }\n"].join("\n"):["\n override fun onConfigurationChanged(newConfig: Configuration) {"," super.onConfigurationChanged(newConfig)"," ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig)"," }\n"].join("\n");b=(0,re.appendContentsInsideDeclarationBlock)(b,"class MainApplication",S)}else if(b.match(/\s+ApplicationLifecycleDispatcher\.onConfigurationChanged\(/m)==null){b=(0,re.appendContentsInsideDeclarationBlock)(b,"onConfigurationChanged",` ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig)${J?";":""}\n `)}return b}},9335:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.updateGitIgnore=S.updateIosXcodeProjectBuildPhase=S.updateVirtualMetroEntryIos=S.updateVirtualMetroEntryAndroid=S.updateMetroConfig=S.updateBabelConfig=S.updateAndroidGradleFile=S.withCliIntegration=void 0;const te=J(36581);const re=J(85165);const ne=ee(J(57147));const ie=ee(J(71017));const oe=J(40504);const se=J(25823);const withCliIntegration=b=>(0,te.withPlugins)(b,[withCliAndroidGradle,withCliAndroidMainApplication,withCliIosAppDelegate,withCliIosXcodeProject,withCliBabelConfig,withCliMetroConfig,withCliGitIgnore]);S.withCliIntegration=withCliIntegration;const withCliAndroidGradle=b=>(0,te.withAppBuildGradle)(b,(b=>{if(b.modResults.language!=="groovy"){throw new Error("Cannot setup kotlin because the build.gradle is not groovy")}b.modResults.contents=updateAndroidGradleFile(b.modResults.contents);return b}));const withCliAndroidMainApplication=b=>(0,te.withMainApplication)(b,(b=>{b.modResults.contents=updateVirtualMetroEntryAndroid(b.modResults.contents);return b}));const withCliIosAppDelegate=b=>(0,te.withAppDelegate)(b,(b=>{b.modResults.contents=updateVirtualMetroEntryIos(b.modResults.contents);return b}));const withCliIosXcodeProject=b=>(0,se.withXCParseXcodeProject)(b,(b=>{const S=b.modResults;for(const b of Object.values(S.objects??{})){if(b.isa===oe.ISA.PBXShellScriptBuildPhase){updateIosXcodeProjectBuildPhase(b)}}return b}));const withCliBabelConfig=b=>(0,te.withDangerousMod)(b,["ios",async b=>{const S=ie.default.join(b.modRequest.projectRoot,"babel.config.js");let J=await ne.default.promises.readFile(S,"utf8");J=updateBabelConfig(J);await ne.default.promises.writeFile(S,J);return b}]);const withCliMetroConfig=b=>(0,te.withDangerousMod)(b,["ios",async b=>{const S=ie.default.join(b.modRequest.projectRoot,"metro.config.js");let J=await ne.default.promises.readFile(S,"utf8");J=updateMetroConfig(J);await ne.default.promises.writeFile(S,J);return b}]);const withCliGitIgnore=b=>(0,te.withDangerousMod)(b,["ios",async b=>{const S=ie.default.join(b.modRequest.projectRoot,".gitignore");let J=await ne.default.promises.readFile(S,"utf8");J=updateGitIgnore(J);await ne.default.promises.writeFile(S,J);return b}]);function updateAndroidGradleFile(b){const S=` //\n // Added by install-expo-modules\n entryFile = file(["node", "-e", "require('expo/scripts/resolveAppEntry')", rootDir.getAbsoluteFile().getParentFile().getAbsolutePath(), "android", "absolute"].execute(null, rootDir).text.trim())\n cliFile = new File(["node", "--print", "require.resolve('@expo/cli')"].execute(null, rootDir).text.trim())\n bundleCommand = "export:embed"\n`;if(b.indexOf(S)===-1){b=(0,re.appendContentsInsideDeclarationBlock)(b,"react",S)}return b}S.updateAndroidGradleFile=updateAndroidGradleFile;function updateBabelConfig(b){return b.replace(/['"]module:metro-react-native-babel-preset['"]/g,`'babel-preset-expo'`)}S.updateBabelConfig=updateBabelConfig;function updateMetroConfig(b){const S=/^const \{\s*getDefaultConfig, mergeConfig\s*\} = require\('@react-native\/metro-config'\);$/m;if(!b.match(S)){console.warn("⚠️ Unrecognized `metro.config.js` content, will skip the process to update `metro.config.js`. Please manually update the contents to use the `getDefaultConfig()` from `expo/metro-config`.");return b}return b.replace(S,`const { getDefaultConfig } = require('expo/metro-config');\nconst { mergeConfig } = require('@react-native/metro-config');`)}S.updateMetroConfig=updateMetroConfig;function updateVirtualMetroEntryAndroid(b){return b.replace(/^(\s*return\s+")(index)(";?)$/m,`$1.expo/.virtual-metro-entry$3`)}S.updateVirtualMetroEntryAndroid=updateVirtualMetroEntryAndroid;function updateVirtualMetroEntryIos(b){return b.replace(/^(\s*return.*RCTBundleURLProvider.*jsBundleURLForBundleRoot:@")(index)(".*;)$/m,`$1.expo/.virtual-metro-entry$3`)}S.updateVirtualMetroEntryIos=updateVirtualMetroEntryIos;function updateIosXcodeProjectBuildPhase(b){if(b.name==="Start Packager"){b.shellScript=`if [[ -f "$PODS_ROOT/../.xcode.env" ]]; then\n source "$PODS_ROOT/../.xcode.env"\nfi\nif [[ -f "$PODS_ROOT/../.xcode.env.local" ]]; then\n source "$PODS_ROOT/../.xcode.env.local"\nfi\n\nexport RCT_METRO_PORT="\${RCT_METRO_PORT:=8081}"\necho "export RCT_METRO_PORT=\${RCT_METRO_PORT}" > \`$NODE_BINARY --print "require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/.packager.env'"\`\nif [ -z "\${RCT_NO_LAUNCH_PACKAGER+xxx}" ] ; then\n if nc -w 5 -z localhost \${RCT_METRO_PORT} ; then\n if ! curl -s "http://localhost:\${RCT_METRO_PORT}/status" | grep -q "packager-status:running" ; then\n echo "Port \${RCT_METRO_PORT} already in use, packager is either not running or not running correctly"\n exit 2\n fi\n else\n open \`$NODE_BINARY --print "require('path').dirname(require.resolve('expo/package.json')) + '/scripts/launchPackager.command'"\` || echo "Can't start packager automatically"\n fi\nfi\n`}if(b.name==="Bundle React Native code and images"){b.shellScript=`if [[ -f "$PODS_ROOT/../.xcode.env" ]]; then\n source "$PODS_ROOT/../.xcode.env"\nfi\nif [[ -f "$PODS_ROOT/../.xcode.env.local" ]]; then\n source "$PODS_ROOT/../.xcode.env.local"\nfi\n\n# The project root by default is one level up from the ios directory\nexport PROJECT_ROOT="$PROJECT_DIR"/..\n\nif [[ "$CONFIGURATION" = *Debug* ]]; then\n export SKIP_BUNDLING=1\nfi\nif [[ -z "$ENTRY_FILE" ]]; then\n # Set the entry JS file using the bundler's entry resolution.\n export ENTRY_FILE="$("$NODE_BINARY" -e "require('expo/scripts/resolveAppEntry')" "$PROJECT_ROOT" ios absolute | tail -n 1)"\nfi\n\nif [[ -z "$CLI_PATH" ]]; then\n # Use Expo CLI\n export CLI_PATH="$("$NODE_BINARY" --print "require.resolve('@expo/cli')")"\nfi\nif [[ -z "$BUNDLE_COMMAND" ]]; then\n # Default Expo CLI command for bundling\n export BUNDLE_COMMAND="export:embed"\nfi\n\n\`"$NODE_BINARY" --print "require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/react-native-xcode.sh'"\`\n`}return b}S.updateIosXcodeProjectBuildPhase=updateIosXcodeProjectBuildPhase;function updateGitIgnore(b){if(b.match(/^\.expo$/m)){return b}return b+`\n# Expo\n.expo\ndist/\nweb-build/`}S.updateGitIgnore=updateGitIgnore},2554:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.updateDeploymentTargetXcodeProject=S.lookupReactNativeMinIosVersionSupported=S.shouldUpdateDeployTargetPodfileAsync=S.updateDeploymentTargetPodfile=S.withIosDeploymentTarget=void 0;const te=J(36581);const re=ee(J(57147));const ne=ee(J(71017));const ie=ee(J(12753));const oe=ee(J(92901));const se=J(40504);const ae=J(25823);const withIosDeploymentTarget=(b,S)=>{b=withIosDeploymentTargetPodfile(b,S);b=withIosDeploymentTargetXcodeProject(b,S);return b};S.withIosDeploymentTarget=withIosDeploymentTarget;const withIosDeploymentTargetPodfile=(b,S)=>(0,te.withDangerousMod)(b,["ios",async b=>{const J=ne.default.join(b.modRequest.platformProjectRoot,"Podfile");let ee=await re.default.promises.readFile(J,"utf8");ee=await updateDeploymentTargetPodfile(b.modRequest.projectRoot,ee,S.deploymentTarget);await re.default.promises.writeFile(J,ee);return b}]);function createPodfilePlatformRegExp(){return/^(\s*platform :ios,\s*)(['"][\d.]+['"]|min_ios_version_supported)/gm}async function parseVersionAsync(b,S){let J;if(S==="min_ios_version_supported"){J=await lookupReactNativeMinIosVersionSupported(b)}else{J=S.replace(/'"/g,"")}return J}async function updateDeploymentTargetPodfile(b,S,J){const ee=createPodfilePlatformRegExp().exec(S);if(ee){const te=await parseVersionAsync(b,ee[2]);if(te&&oe.default.lt(toSemVer(te),toSemVer(J))){return S.replace(createPodfilePlatformRegExp(),((b,S,ee)=>`${S}'${J}'`))}}return S}S.updateDeploymentTargetPodfile=updateDeploymentTargetPodfile;async function shouldUpdateDeployTargetPodfileAsync(b,S){const J=ne.default.join(b,"ios","Podfile");const ee=await re.default.promises.readFile(J,"utf-8");const te=createPodfilePlatformRegExp().exec(ee);if(!te){console.warn("Unrecognized `ios/Podfile` content, will skip the process to update minimum iOS supported version.");return false}const ie=await parseVersionAsync(b,te[2]);if(!ie){console.warn("Unrecognized `ios/Podfile` content, will skip the process to update minimum iOS supported version.");return false}return oe.default.lt(toSemVer(ie),toSemVer(S))}S.shouldUpdateDeployTargetPodfileAsync=shouldUpdateDeployTargetPodfileAsync;async function lookupReactNativeMinIosVersionSupported(b){const S=ie.default.silent(b,"react-native/scripts/cocoapods/helpers.rb");if(S){try{const b=await re.default.promises.readFile(S,"utf-8");const J=/^\s*def self\.min_ios_version_supported\n\s*return\s*['"]([\d.]+)['"]/gm;const ee=J.exec(b);if(ee){return ee[1]}}catch{}}const J=ie.default.silent(b,"react-native/scripts/react_native_pods.rb");if(J){try{const b=await re.default.promises.readFile(J,"utf-8");const S=/^def min_ios_version_supported\n\s*return\s*['"]([\d.]+)['"]/gm;const ee=S.exec(b);if(ee){return ee[1]}}catch{}}return null}S.lookupReactNativeMinIosVersionSupported=lookupReactNativeMinIosVersionSupported;const withIosDeploymentTargetXcodeProject=(b,S)=>(0,ae.withXCParseXcodeProject)(b,(b=>{b.modResults=updateDeploymentTargetXcodeProject(b.modResults,S.deploymentTarget);return b}));function updateDeploymentTargetXcodeProject(b,S){for(const J of Object.values(b.objects??{})){if(J.isa===se.ISA.XCBuildConfiguration){const{buildSettings:b}=J;const ee=b?.IPHONEOS_DEPLOYMENT_TARGET;if(ee&&oe.default.lt(toSemVer(ee),toSemVer(S))){b.IPHONEOS_DEPLOYMENT_TARGET=S}}}return b}S.updateDeploymentTargetXcodeProject=updateDeploymentTargetXcodeProject;function toSemVer(b){return oe.default.coerce(b)??new oe.default.SemVer("0.0.0")}},70639:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.withIosModules=void 0;const ee=J(36581);const te=J(61121);const re=J(53753);const withIosModules=b=>(0,ee.withPlugins)(b,[te.withIosModulesAppDelegate,te.withIosModulesAppDelegateObjcHeader,te.withIosModulesSwiftBridgingHeader,re.withIosModulesPodfile]);S.withIosModules=withIosModules},61121:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.updateModulesAppDelegateSwift=S.updateModulesAppDelegateObjcHeader=S.updateModulesAppDelegateObjcImpl=S.withIosModulesSwiftBridgingHeader=S.withIosModulesAppDelegateObjcHeader=S.withIosModulesAppDelegate=void 0;const te=J(36581);const re=J(41310);const ne=ee(J(57147));const ie=J(91104);const oe=ee(J(92901));const se=J(25823);const withIosModulesAppDelegate=b=>(0,te.withAppDelegate)(b,(b=>{b.modResults.contents=["objc","objcpp"].includes(b.modResults.language)?updateModulesAppDelegateObjcImpl(b.modResults.contents,b.sdkVersion):updateModulesAppDelegateSwift(b.modResults.contents,b.sdkVersion);return b}));S.withIosModulesAppDelegate=withIosModulesAppDelegate;const withIosModulesAppDelegateObjcHeader=b=>(0,te.withDangerousMod)(b,["ios",async b=>{try{const S=te.IOSConfig.Paths.getAppDelegateObjcHeaderFilePath(b.modRequest.projectRoot);let J=await ne.default.promises.readFile(S,"utf8");J=updateModulesAppDelegateObjcHeader(J,b.sdkVersion);await ne.default.promises.writeFile(S,J)}catch{}return b}]);S.withIosModulesAppDelegateObjcHeader=withIosModulesAppDelegateObjcHeader;const withIosModulesSwiftBridgingHeader=b=>(0,se.withXCParseXcodeProject)(b,(async b=>{const S=(0,se.getDesignatedSwiftBridgingHeaderFileReference)(b.modResults);if(!S){return b}const[J]=(0,ie.sync)(`ios/${S.replace(/['"]/g,"")}`,{absolute:true,cwd:b.modRequest.projectRoot});if(!J){return b}let ee=await ne.default.promises.readFile(J,"utf8");if(!ee.match(/^#import\s+<Expo\/Expo\.h>\s*$/m)){ee=(0,re.addObjcImports)(ee,["<Expo/Expo.h>"])}await ne.default.promises.writeFile(J,ee);return b}));S.withIosModulesSwiftBridgingHeader=withIosModulesSwiftBridgingHeader;function updateModulesAppDelegateObjcImpl(b,S){const J="[super application:application didFinishLaunchingWithOptions:launchOptions];";if(!b.includes(` ${J}`)){b=(0,re.insertContentsInsideObjcFunctionBlock)(b,"application:didFinishLaunchingWithOptions:",J,{position:"tailBeforeLastReturn"})}if(S&&oe.default.gte(S,"44.0.0")){b=b.replace(/\[\[RCTBridge alloc\] initWithDelegate:/g,"[self.reactDelegate createBridgeWithDelegate:");b=b.replace(/\[\[RCTRootView alloc\] initWithBridge:/g,"[self.reactDelegate createRootViewWithBridge:");b=b.replace(/\bRCTAppSetupDefaultRootView\((.+)\)/g,((b,S)=>{const[J,ee,te]=S.split(",").map((b=>b.trim()));return`[self.reactDelegate createRootViewWithBridge:${J} moduleName:${ee} initialProperties:${te}]`}));b=b.replace(/\[UIViewController new\]/g,"[self.reactDelegate createRootViewController]")}return b}S.updateModulesAppDelegateObjcImpl=updateModulesAppDelegateObjcImpl;function updateModulesAppDelegateObjcHeader(b,S){if(!b.match(/^#import\s+<Expo\/Expo\.h>\s*$/m)){b=(0,re.addObjcImports)(b,["<Expo/Expo.h>"])}b=b.replace(/^(\s*@interface\s+AppDelegate\s+:\s+)RCTAppDelegate$/m,"$1EXAppDelegateWrapper");b=b.replace(/^(\s*@interface\s+AppDelegate\s+:\s+)UIResponder(\s+.+)$/m,"$1EXAppDelegateWrapper$2");return b}S.updateModulesAppDelegateObjcHeader=updateModulesAppDelegateObjcHeader;function updateModulesAppDelegateSwift(b,S){b=b.replace(/^(class\s+AppDelegate\s*:\s*)NSObject,\s*UIApplicationDelegate(\W+)/m,"$1AppDelegateWrapper$2");const J="super.application(application, didFinishLaunchingWithOptions: launchOptions)";if(!b.includes(` ${J}`)){b=(0,re.insertContentsInsideSwiftFunctionBlock)(b,"application(_:didFinishLaunchingWithOptions:)",J,{position:"tailBeforeLastReturn",indent:4})}if(S&&oe.default.gte(S,"44.0.0")){b=b.replace(/\bRCTBridge\(delegate:/g,"reactDelegate.createBridge(delegate:");b=b.replace(/\bRCTRootView\(bridge:/g,"reactDelegate.createRootView(bridge:");b=b.replace(/\bUIViewController\(\)/g,"reactDelegate.createRootViewController()")}return b}S.updateModulesAppDelegateSwift=updateModulesAppDelegateSwift},53753:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.updatePodfile=S.withIosModulesPodfile=void 0;const te=J(36581);const re=ee(J(57147));const ne=ee(J(71017));const ie=ee(J(92901));const{getProjectName:oe}=te.IOSConfig.XcodeUtils;const withIosModulesPodfile=b=>(0,te.withDangerousMod)(b,["ios",async b=>{const S=ne.default.join(b.modRequest.platformProjectRoot,"Podfile");let J=await re.default.promises.readFile(S,"utf8");const ee=oe(b.modRequest.projectRoot);J=updatePodfile(J,ee,b.sdkVersion);await re.default.promises.writeFile(S,J);return b}]);S.withIosModulesPodfile=withIosModulesPodfile;function updatePodfile(b,S,J){if(!b.match(/^require.+'expo\/package\.json.+scripts\/autolinking/m)){b=`require File.join(File.dirname(\`node --print "require.resolve('expo/package.json')"\`), "scripts/autolinking")\n${b}`}if(!b.match(/^\s*use_expo_modules!\s*$/m)){const J=new RegExp(`(^\\s*target\\s+['"]${S}['"]\\s+do\\s*$)`,"m");b=b.replace(J,"$1\n use_expo_modules!")}if(J&&ie.default.gte(J,"44.0.0")){if(!b.match(/\bexpo_patch_react_imports!\(installer\)\b/)){const S=/(\bpost_integrate do \|installer\|)/;if(b.match(S)){b=b.replace(S,`$1\n begin\n expo_patch_react_imports!(installer)\n rescue => e\n Pod::UI.warn e\n end`)}else{b=b.replace(/(\buse_expo_modules!\n)/gm,`$1 post_integrate do |installer|\n begin\n expo_patch_react_imports!(installer)\n rescue => e\n Pod::UI.warn e\n end\n end\n`)}}}return b}S.updatePodfile=updatePodfile},25823:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.getDesignatedSwiftBridgingHeaderFileReference=S.withXCParseXcodeProject=S.withXCParseXcodeProjectBaseMod=void 0;const te=J(36581);const re=ee(J(57147));const ne=J(40504);const ie="xcparseXcodeproj";const withXCParseXcodeProjectBaseMod=b=>te.BaseMods.withGeneratedBaseMods(b,{platform:"ios",skipEmptyMod:false,providers:{[ie]:te.BaseMods.provider({getFilePath({modRequest:{projectRoot:b}}){return te.IOSConfig.Paths.getPBXProjectPath(b)},async read(b){const S=await re.default.promises.readFile(b,"utf8");const J=(0,ne.parse)(S);return J},async write(b,{modResults:S}){const J=(0,ne.build)(S);await re.default.promises.writeFile(b,J)}})}});S.withXCParseXcodeProjectBaseMod=withXCParseXcodeProjectBaseMod;const withXCParseXcodeProject=(b,S)=>(0,te.withMod)(b,{platform:"ios",mod:ie,action:S});S.withXCParseXcodeProject=withXCParseXcodeProject;function getDesignatedSwiftBridgingHeaderFileReference(b){for(const S of Object.values(b.objects??{})){if(S.isa===ne.ISA.XCBuildConfiguration){const b=S;const J=b.buildSettings;if(typeof J.PRODUCT_NAME!=="undefined"&&typeof J.SWIFT_OBJC_BRIDGING_HEADER==="string"&&J.SWIFT_OBJC_BRIDGING_HEADER){return J.SWIFT_OBJC_BRIDGING_HEADER}}}return null}S.getDesignatedSwiftBridgingHeaderFileReference=getDesignatedSwiftBridgingHeaderFileReference},70026:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.getVersionInfo=S.getLatestSdkVersion=S.getDefaultSdkVersion=S.ExpoVersionMappings=void 0;const te=ee(J(12753));const re=ee(J(92901));S.ExpoVersionMappings=[{expoSdkVersion:"51.0.0",iosDeploymentTarget:"13.4",reactNativeVersionRange:">= 0.74.0",supportCliIntegration:true},{expoSdkVersion:"50.0.0",iosDeploymentTarget:"13.4",reactNativeVersionRange:">= 0.73.0",supportCliIntegration:true},{expoSdkVersion:"49.0.0",iosDeploymentTarget:"13.0",reactNativeVersionRange:">= 0.72.0",supportCliIntegration:true},{expoSdkVersion:"48.0.0",iosDeploymentTarget:"13.0",reactNativeVersionRange:">= 0.71.0",androidAgpVersion:"7.4.1"},{expoSdkVersion:"47.0.0",iosDeploymentTarget:"13.0",reactNativeVersionRange:">= 0.70.0"},{expoSdkVersion:"46.0.0",iosDeploymentTarget:"12.4",reactNativeVersionRange:">= 0.69.0"},{expoSdkVersion:"45.0.0",iosDeploymentTarget:"12.0",reactNativeVersionRange:">= 0.65.0"},{expoSdkVersion:"44.0.0",iosDeploymentTarget:"12.0",reactNativeVersionRange:"< 0.68.0"},{expoSdkVersion:"43.0.0",iosDeploymentTarget:"12.0",reactNativeVersionRange:"< 0.68.0"}];function getDefaultSdkVersion(b){const J=te.default.silent(b,"react-native/package.json");if(!J){throw new Error(`Unable to find react-native package - projectRoot[${b}]`)}const ee=require(J).version;const ne=S.ExpoVersionMappings.find((b=>re.default.satisfies(ee,b.reactNativeVersionRange)));if(!ne){throw new Error(`Unable to find compatible expo sdk version - reactNativeVersion[${ee}]`)}return ne}S.getDefaultSdkVersion=getDefaultSdkVersion;function getLatestSdkVersion(){return S.ExpoVersionMappings[0]}S.getLatestSdkVersion=getLatestSdkVersion;function getVersionInfo(b){return S.ExpoVersionMappings.find((S=>S.expoSdkVersion===b))??null}S.getVersionInfo=getVersionInfo},76956:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.learnMore=S.link=void 0;const te=ee(J(68746));const re=ee(J(90270));function link(b,{text:S=b,dim:J=true}={}){let ee;if(re.default.isSupported){ee=(0,re.default)(S,b)}else{ee=`${S===b?"":S+": "}${te.default.underline(b)}`}return J?te.default.dim(ee):ee}S.link=link;function learnMore(b,{learnMoreMessage:S,dim:J=true}={}){return link(b,{text:S??"Learn more",dim:J})}S.learnMore=learnMore},88139:function(b,S,J){"use strict";var ee=this&&this.__createBinding||(Object.create?function(b,S,J,ee){if(ee===undefined)ee=J;var te=Object.getOwnPropertyDescriptor(S,J);if(!te||("get"in te?!S.__esModule:te.writable||te.configurable)){te={enumerable:true,get:function(){return S[J]}}}Object.defineProperty(b,ee,te)}:function(b,S,J,ee){if(ee===undefined)ee=J;b[ee]=S[J]});var te=this&&this.__setModuleDefault||(Object.create?function(b,S){Object.defineProperty(b,"default",{enumerable:true,value:S})}:function(b,S){b["default"]=S});var re=this&&this.__importStar||function(b){if(b&&b.__esModule)return b;var S={};if(b!=null)for(var J in b)if(J!=="default"&&Object.prototype.hasOwnProperty.call(b,J))ee(S,b,J);te(S,b);return S};var ne=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.installPodsAsync=S.installExpoPackageAsync=void 0;const ie=re(J(97496));const oe=ne(J(71017));const se=ne(J(92901));async function installPackageNonInteractiveAsync(b,S){const J=ie.createForProject(b,{silent:false});if(J.name==="yarn"){const b=await J.versionAsync();if(se.default.major(b)===1){return J.addAsync([S,"--non-interactive"])}}return J.addAsync([S])}async function installExpoPackageAsync(b,S){try{await installPackageNonInteractiveAsync(b,`expo@^${S}`)}catch{await installPackageNonInteractiveAsync(b,`expo@>=${S}-0 <${se.default.inc(S,"major")}`)}}S.installExpoPackageAsync=installExpoPackageAsync;async function installPodsAsync(b){const S=new ie.CocoaPodsPackageManager({cwd:oe.default.join(b,"ios")});await S.installAsync()}S.installPodsAsync=installPodsAsync},30443:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.normalizeProjectRootAsync=void 0;const te=ee(J(39491));const re=ee(J(14823));const ne=ee(J(73292));const ie=ee(J(71017));async function normalizeProjectRootAsync(b){const S=ie.default.dirname(findUpPackageJson(b??process.cwd()));const J=await pathExistsAsync(ie.default.join(S,"android"));const ee=await pathExistsAsync(ie.default.join(S,"ios"));return{projectRoot:S,platformAndroid:J,platformIos:ee}}S.normalizeProjectRootAsync=normalizeProjectRootAsync;function findUpPackageJson(b){const S=re.default.sync("package.json",{cwd:b});(0,te.default)(S,`No package.json found for module "${b}"`);return S}async function pathExistsAsync(b){try{await ne.default.stat(b);return true}catch{return false}}},39491:b=>{"use strict";b.exports=require("assert")},32081:b=>{"use strict";b.exports=require("child_process")},22057:b=>{"use strict";b.exports=require("constants")},6113:b=>{"use strict";b.exports=require("crypto")},9523:b=>{"use strict";b.exports=require("dns")},82361:b=>{"use strict";b.exports=require("events")},57147:b=>{"use strict";b.exports=require("fs")},73292:b=>{"use strict";b.exports=require("fs/promises")},98188:b=>{"use strict";b.exports=require("module")},22037:b=>{"use strict";b.exports=require("os")},71017:b=>{"use strict";b.exports=require("path")},14521:b=>{"use strict";b.exports=require("readline")},12781:b=>{"use strict";b.exports=require("stream")},71576:b=>{"use strict";b.exports=require("string_decoder")},39512:b=>{"use strict";b.exports=require("timers")},76224:b=>{"use strict";b.exports=require("tty")},57310:b=>{"use strict";b.exports=require("url")},73837:b=>{"use strict";b.exports=require("util")},71267:b=>{"use strict";b.exports=require("worker_threads")},19539:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.isIdentifierChar=isIdentifierChar;S.isIdentifierName=isIdentifierName;S.isIdentifierStart=isIdentifierStart;let J="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let ee="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const te=new RegExp("["+J+"]");const re=new RegExp("["+J+ee+"]");J=ee=null;const ne=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];const ie=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(b,S){let J=65536;for(let ee=0,te=S.length;ee<te;ee+=2){J+=S[ee];if(J>b)return false;J+=S[ee+1];if(J>=b)return true}return false}function isIdentifierStart(b){if(b<65)return b===36;if(b<=90)return true;if(b<97)return b===95;if(b<=122)return true;if(b<=65535){return b>=170&&te.test(String.fromCharCode(b))}return isInAstralSet(b,ne)}function isIdentifierChar(b){if(b<48)return b===36;if(b<58)return true;if(b<65)return false;if(b<=90)return true;if(b<97)return b===95;if(b<=122)return true;if(b<=65535){return b>=170&&re.test(String.fromCharCode(b))}return isInAstralSet(b,ne)||isInAstralSet(b,ie)}function isIdentifierName(b){let S=true;for(let J=0;J<b.length;J++){let ee=b.charCodeAt(J);if((ee&64512)===55296&&J+1<b.length){const S=b.charCodeAt(++J);if((S&64512)===56320){ee=65536+((ee&1023)<<10)+(S&1023)}}if(S){S=false;if(!isIdentifierStart(ee)){return false}}else if(!isIdentifierChar(ee)){return false}}return!S}},34679:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});Object.defineProperty(S,"isIdentifierChar",{enumerable:true,get:function(){return ee.isIdentifierChar}});Object.defineProperty(S,"isIdentifierName",{enumerable:true,get:function(){return ee.isIdentifierName}});Object.defineProperty(S,"isIdentifierStart",{enumerable:true,get:function(){return ee.isIdentifierStart}});Object.defineProperty(S,"isKeyword",{enumerable:true,get:function(){return te.isKeyword}});Object.defineProperty(S,"isReservedWord",{enumerable:true,get:function(){return te.isReservedWord}});Object.defineProperty(S,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return te.isStrictBindOnlyReservedWord}});Object.defineProperty(S,"isStrictBindReservedWord",{enumerable:true,get:function(){return te.isStrictBindReservedWord}});Object.defineProperty(S,"isStrictReservedWord",{enumerable:true,get:function(){return te.isStrictReservedWord}});var ee=J(19539);var te=J(60011)},60011:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.isKeyword=isKeyword;S.isReservedWord=isReservedWord;S.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;S.isStrictBindReservedWord=isStrictBindReservedWord;S.isStrictReservedWord=isStrictReservedWord;const J={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const ee=new Set(J.keyword);const te=new Set(J.strict);const re=new Set(J.strictBind);function isReservedWord(b,S){return S&&b==="await"||b==="enum"}function isStrictReservedWord(b,S){return isReservedWord(b,S)||te.has(b)}function isStrictBindOnlyReservedWord(b){return re.has(b)}function isStrictBindReservedWord(b,S){return isStrictReservedWord(b,S)||isStrictBindOnlyReservedWord(b)}function isKeyword(b){return ee.has(b)}},40932:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=highlight;S.shouldHighlight=shouldHighlight;var ee=J(48035);var te=J(34679);var re=_interopRequireWildcard(J(26870),true);function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}const ne=new Set(["as","async","from","get","of","set"]);function getDefs(b){return{keyword:b.cyan,capitalized:b.yellow,jsxIdentifier:b.yellow,punctuator:b.yellow,number:b.magenta,string:b.green,regex:b.magenta,comment:b.grey,invalid:b.white.bgRed.bold}}const ie=/\r\n|[\n\r\u2028\u2029]/;const oe=/^[()[\]{}]$/;let se;{const b=/^[a-z][\w-]*$/i;const getTokenType=function(S,J,ee){if(S.type==="name"){if((0,te.isKeyword)(S.value)||(0,te.isStrictReservedWord)(S.value,true)||ne.has(S.value)){return"keyword"}if(b.test(S.value)&&(ee[J-1]==="<"||ee.slice(J-2,J)=="</")){return"jsxIdentifier"}if(S.value[0]!==S.value[0].toLowerCase()){return"capitalized"}}if(S.type==="punctuator"&&oe.test(S.value)){return"bracket"}if(S.type==="invalid"&&(S.value==="@"||S.value==="#")){return"punctuator"}return S.type};se=function*(b){let S;while(S=ee.default.exec(b)){const J=ee.matchToToken(S);yield{type:getTokenType(J,S.index,b),value:J.value}}}}function highlightTokens(b,S){let J="";for(const{type:ee,value:te}of se(S)){const S=b[ee];if(S){J+=te.split(ie).map((b=>S(b))).join("\n")}else{J+=te}}return J}function shouldHighlight(b){return re.default.level>0||b.forceColor}let ae=undefined;function getChalk(b){if(b){var S;(S=ae)!=null?S:ae=new re.default.constructor({enabled:true,level:1});return ae}return re.default}{S.getChalk=b=>getChalk(b.forceColor)}function highlight(b,S={}){if(b!==""&&shouldHighlight(S)){const J=getDefs(getChalk(S.forceColor));return highlightTokens(J,b)}else{return b}}},73570:b=>{"use strict";b.exports=JSON.parse('["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"]')},4147:b=>{"use strict";b.exports=JSON.parse('{"name":"install-expo-modules","version":"0.10.0","license":"MIT","description":"Tools to install expo-modules for existing react-native projects","keywords":["expo","expo-modules","npx","react-native","react"],"bin":"build/index.js","main":"build/index.js","files":["build"],"scripts":{"build":"ncc build ./src/index.ts -o build/","build:prod":"ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register","clean":"expo-module clean","lint":"expo-module lint","prepare":"expo-module clean && yarn run build:prod","prepublishOnly":"expo-module prepublishOnly","test":"expo-module test","typecheck":"expo-module typecheck","watch":"yarn run build --watch"},"homepage":"https://github.com/expo/expo/tree/main/packages/install-expo-modules#readme","bugs":{"url":"https://github.com/expo/expo/issues"},"repository":{"type":"git","url":"https://github.com/expo/expo.git","directory":"packages/install-expo-modules"},"devDependencies":{"@expo/config":"^9.0.0-beta.0","@expo/config-plugins":"^8.0.0-beta.0","@expo/package-manager":"^1.5.0","@types/prompts":"^2.0.6","@types/semver":"^6.0.0","chalk":"^4.1.2","commander":"2.20.0","expo-module-scripts":"^3.3.0","find-up":"^5.0.0","glob":"7.1.6","prompts":"^2.3.2","resolve-from":"^5.0.0","semver":"7.5.4","terminal-link":"^2.1.1","xcparse":"^0.0.3"},"publishConfig":{"access":"public"},"gitHead":"3e12187d1f7225c0dc02e7d93cd1632f527ac675"}')}};var S={};function __nccwpck_require__(J){var ee=S[J];if(ee!==undefined){return ee.exports}var te=S[J]={id:J,loaded:false,exports:{}};var re=true;try{b[J].call(te.exports,te,te.exports,__nccwpck_require__);re=false}finally{if(re)delete S[J]}te.loaded=true;return te.exports}(()=>{__nccwpck_require__.nmd=b=>{b.paths=[];if(!b.children)b.children=[];return b}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var J=__nccwpck_require__(2855);module.exports=J})();
|
|
34
|
+
/*! For license information please see chevrotain.min.js.LICENSE.txt */!function(S,J){true?b.exports=J():0}("undefined"!=typeof self?self:this,(function(){return(()=>{var b={9515:(b,S,J)=>{var ee=J(8761)(J(7772),"DataView");b.exports=ee},9612:(b,S,J)=>{var ee=J(2118),te=J(6909),re=J(8138),ne=J(4174),ie=J(7942);function u(b){var S=-1,J=null==b?0:b.length;for(this.clear();++S<J;){var ee=b[S];this.set(ee[0],ee[1])}}u.prototype.clear=ee,u.prototype.delete=te,u.prototype.get=re,u.prototype.has=ne,u.prototype.set=ie,b.exports=u},235:(b,S,J)=>{var ee=J(3945),te=J(1846),re=J(8028),ne=J(2344),ie=J(4769);function u(b){var S=-1,J=null==b?0:b.length;for(this.clear();++S<J;){var ee=b[S];this.set(ee[0],ee[1])}}u.prototype.clear=ee,u.prototype.delete=te,u.prototype.get=re,u.prototype.has=ne,u.prototype.set=ie,b.exports=u},326:(b,S,J)=>{var ee=J(8761)(J(7772),"Map");b.exports=ee},6738:(b,S,J)=>{var ee=J(2411),te=J(6417),re=J(6928),ne=J(9493),ie=J(4150);function u(b){var S=-1,J=null==b?0:b.length;for(this.clear();++S<J;){var ee=b[S];this.set(ee[0],ee[1])}}u.prototype.clear=ee,u.prototype.delete=te,u.prototype.get=re,u.prototype.has=ne,u.prototype.set=ie,b.exports=u},2760:(b,S,J)=>{var ee=J(8761)(J(7772),"Promise");b.exports=ee},2143:(b,S,J)=>{var ee=J(8761)(J(7772),"Set");b.exports=ee},5386:(b,S,J)=>{var ee=J(6738),te=J(2842),re=J(2482);function a(b){var S=-1,J=null==b?0:b.length;for(this.__data__=new ee;++S<J;)this.add(b[S])}a.prototype.add=a.prototype.push=te,a.prototype.has=re,b.exports=a},6571:(b,S,J)=>{var ee=J(235),te=J(5243),re=J(2858),ne=J(4417),ie=J(8605),oe=J(1418);function c(b){var S=this.__data__=new ee(b);this.size=S.size}c.prototype.clear=te,c.prototype.delete=re,c.prototype.get=ne,c.prototype.has=ie,c.prototype.set=oe,b.exports=c},857:(b,S,J)=>{var ee=J(7772).Symbol;b.exports=ee},9162:(b,S,J)=>{var ee=J(7772).Uint8Array;b.exports=ee},3215:(b,S,J)=>{var ee=J(8761)(J(7772),"WeakMap");b.exports=ee},9432:b=>{b.exports=function(b,S,J){switch(J.length){case 0:return b.call(S);case 1:return b.call(S,J[0]);case 2:return b.call(S,J[0],J[1]);case 3:return b.call(S,J[0],J[1],J[2])}return b.apply(S,J)}},5338:b=>{b.exports=function(b,S,J,ee){for(var te=-1,re=null==b?0:b.length;++te<re;){var ne=b[te];S(ee,ne,J(ne),b)}return ee}},2517:b=>{b.exports=function(b,S){for(var J=-1,ee=null==b?0:b.length;++J<ee&&!1!==S(b[J],J,b););return b}},7603:b=>{b.exports=function(b,S){for(var J=-1,ee=null==b?0:b.length;++J<ee;)if(!S(b[J],J,b))return!1;return!0}},7552:b=>{b.exports=function(b,S){for(var J=-1,ee=null==b?0:b.length,te=0,re=[];++J<ee;){var ne=b[J];S(ne,J,b)&&(re[te++]=ne)}return re}},8333:(b,S,J)=>{var ee=J(7832);b.exports=function(b,S){return!(null==b||!b.length)&&ee(b,S,0)>-1}},4893:b=>{b.exports=function(b,S,J){for(var ee=-1,te=null==b?0:b.length;++ee<te;)if(J(S,b[ee]))return!0;return!1}},1634:(b,S,J)=>{var ee=J(6473),te=J(9631),re=J(6152),ne=J(3226),ie=J(9045),oe=J(7598),se=Object.prototype.hasOwnProperty;b.exports=function(b,S){var J=re(b),ae=!J&&te(b),ue=!J&&!ae&&ne(b),ce=!J&&!ae&&!ue&&oe(b),le=J||ae||ue||ce,pe=le?ee(b.length,String):[],fe=pe.length;for(var de in b)!S&&!se.call(b,de)||le&&("length"==de||ue&&("offset"==de||"parent"==de)||ce&&("buffer"==de||"byteLength"==de||"byteOffset"==de)||ie(de,fe))||pe.push(de);return pe}},343:b=>{b.exports=function(b,S){for(var J=-1,ee=null==b?0:b.length,te=Array(ee);++J<ee;)te[J]=S(b[J],J,b);return te}},5067:b=>{b.exports=function(b,S){for(var J=-1,ee=S.length,te=b.length;++J<ee;)b[te+J]=S[J];return b}},1207:b=>{b.exports=function(b,S,J,ee){var te=-1,re=null==b?0:b.length;for(ee&&re&&(J=b[++te]);++te<re;)J=S(J,b[te],te,b);return J}},7064:b=>{b.exports=function(b,S){for(var J=-1,ee=null==b?0:b.length;++J<ee;)if(S(b[J],J,b))return!0;return!1}},217:b=>{b.exports=function(b){return b.split("")}},91:(b,S,J)=>{var ee=J(3940),te=J(1225),re=Object.prototype.hasOwnProperty;b.exports=function(b,S,J){var ne=b[S];re.call(b,S)&&te(ne,J)&&(void 0!==J||S in b)||ee(b,S,J)}},2218:(b,S,J)=>{var ee=J(1225);b.exports=function(b,S){for(var J=b.length;J--;)if(ee(b[J][0],S))return J;return-1}},2825:(b,S,J)=>{var ee=J(4303);b.exports=function(b,S,J,te){return ee(b,(function(b,ee,re){S(te,b,J(b),re)})),te}},7993:(b,S,J)=>{var ee=J(752),te=J(249);b.exports=function(b,S){return b&&ee(S,te(S),b)}},5906:(b,S,J)=>{var ee=J(752),te=J(8582);b.exports=function(b,S){return b&&ee(S,te(S),b)}},3940:(b,S,J)=>{var ee=J(3043);b.exports=function(b,S,J){"__proto__"==S&&ee?ee(b,S,{configurable:!0,enumerable:!0,value:J,writable:!0}):b[S]=J}},8874:(b,S,J)=>{var ee=J(6571),te=J(2517),re=J(91),ne=J(7993),ie=J(5906),oe=J(2175),se=J(1522),ae=J(7680),ue=J(9987),ce=J(3483),le=J(6939),pe=J(940),fe=J(9917),de=J(8222),he=J(8725),me=J(6152),ge=J(3226),ye=J(4714),ve=J(9259),Te=J(3679),be=J(249),_e=J(8582),Ee="[object Arguments]",Ae="[object Function]",we="[object Object]",xe={};xe[Ee]=xe["[object Array]"]=xe["[object ArrayBuffer]"]=xe["[object DataView]"]=xe["[object Boolean]"]=xe["[object Date]"]=xe["[object Float32Array]"]=xe["[object Float64Array]"]=xe["[object Int8Array]"]=xe["[object Int16Array]"]=xe["[object Int32Array]"]=xe["[object Map]"]=xe["[object Number]"]=xe[we]=xe["[object RegExp]"]=xe["[object Set]"]=xe["[object String]"]=xe["[object Symbol]"]=xe["[object Uint8Array]"]=xe["[object Uint8ClampedArray]"]=xe["[object Uint16Array]"]=xe["[object Uint32Array]"]=!0,xe["[object Error]"]=xe[Ae]=xe["[object WeakMap]"]=!1,b.exports=function t(b,S,J,ke,Ce,Pe){var Se,Ie=1&S,De=2&S,Oe=4&S;if(J&&(Se=Ce?J(b,ke,Ce,Pe):J(b)),void 0!==Se)return Se;if(!ve(b))return b;var Re=me(b);if(Re){if(Se=fe(b),!Ie)return se(b,Se)}else{var Ne=pe(b),Me=Ne==Ae||"[object GeneratorFunction]"==Ne;if(ge(b))return oe(b,Ie);if(Ne==we||Ne==Ee||Me&&!Ce){if(Se=De||Me?{}:he(b),!Ie)return De?ue(b,ie(Se,b)):ae(b,ne(Se,b))}else{if(!xe[Ne])return Ce?b:{};Se=de(b,Ne,Ie)}}Pe||(Pe=new ee);var Fe=Pe.get(b);if(Fe)return Fe;Pe.set(b,Se),Te(b)?b.forEach((function(ee){Se.add(t(ee,S,J,ee,b,Pe))})):ye(b)&&b.forEach((function(ee,te){Se.set(te,t(ee,S,J,te,b,Pe))}));var Le=Re?void 0:(Oe?De?le:ce:De?_e:be)(b);return te(Le||b,(function(ee,te){Le&&(ee=b[te=ee]),re(Se,te,t(ee,S,J,te,b,Pe))})),Se}},9413:(b,S,J)=>{var ee=J(9259),te=Object.create,re=function(){function t(){}return function(b){if(!ee(b))return{};if(te)return te(b);t.prototype=b;var S=new t;return t.prototype=void 0,S}}();b.exports=re},5246:(b,S,J)=>{var ee=J(5386),te=J(8333),re=J(4893),ne=J(343),ie=J(7826),oe=J(9950);b.exports=function(b,S,J,se){var ae=-1,ue=te,ce=!0,le=b.length,pe=[],fe=S.length;if(!le)return pe;J&&(S=ne(S,ie(J))),se?(ue=re,ce=!1):S.length>=200&&(ue=oe,ce=!1,S=new ee(S));e:for(;++ae<le;){var de=b[ae],he=null==J?de:J(de);if(de=se||0!==de?de:0,ce&&he==he){for(var me=fe;me--;)if(S[me]===he)continue e;pe.push(de)}else ue(S,he,se)||pe.push(de)}return pe}},4303:(b,S,J)=>{var ee=J(6548),te=J(2019)(ee);b.exports=te},80:(b,S,J)=>{var ee=J(4303);b.exports=function(b,S){var J=!0;return ee(b,(function(b,ee,te){return J=!!S(b,ee,te)})),J}},8043:(b,S,J)=>{var ee=J(4303);b.exports=function(b,S){var J=[];return ee(b,(function(b,ee,te){S(b,ee,te)&&J.push(b)})),J}},1359:b=>{b.exports=function(b,S,J,ee){for(var te=b.length,re=J+(ee?1:-1);ee?re--:++re<te;)if(S(b[re],re,b))return re;return-1}},2034:(b,S,J)=>{var ee=J(5067),te=J(5882);b.exports=function t(b,S,J,re,ne){var ie=-1,oe=b.length;for(J||(J=te),ne||(ne=[]);++ie<oe;){var se=b[ie];S>0&&J(se)?S>1?t(se,S-1,J,re,ne):ee(ne,se):re||(ne[ne.length]=se)}return ne}},5308:(b,S,J)=>{var ee=J(5463)();b.exports=ee},6548:(b,S,J)=>{var ee=J(5308),te=J(249);b.exports=function(b,S){return b&&ee(b,S,te)}},3324:(b,S,J)=>{var ee=J(7297),te=J(3812);b.exports=function(b,S){for(var J=0,re=(S=ee(S,b)).length;null!=b&&J<re;)b=b[te(S[J++])];return J&&J==re?b:void 0}},1897:(b,S,J)=>{var ee=J(5067),te=J(6152);b.exports=function(b,S,J){var re=S(b);return te(b)?re:ee(re,J(b))}},3366:(b,S,J)=>{var ee=J(857),te=J(2107),re=J(7157),ne=ee?ee.toStringTag:void 0;b.exports=function(b){return null==b?void 0===b?"[object Undefined]":"[object Null]":ne&&ne in Object(b)?te(b):re(b)}},2726:b=>{var S=Object.prototype.hasOwnProperty;b.exports=function(b,J){return null!=b&&S.call(b,J)}},187:b=>{b.exports=function(b,S){return null!=b&&S in Object(b)}},7832:(b,S,J)=>{var ee=J(1359),te=J(2195),re=J(6024);b.exports=function(b,S,J){return S==S?re(b,S,J):ee(b,te,J)}},5183:(b,S,J)=>{var ee=J(3366),te=J(5125);b.exports=function(b){return te(b)&&"[object Arguments]"==ee(b)}},8746:(b,S,J)=>{var ee=J(1952),te=J(5125);b.exports=function t(b,S,J,re,ne){return b===S||(null==b||null==S||!te(b)&&!te(S)?b!=b&&S!=S:ee(b,S,J,re,t,ne))}},1952:(b,S,J)=>{var ee=J(6571),te=J(4871),re=J(1491),ne=J(7416),ie=J(940),oe=J(6152),se=J(3226),ae=J(7598),ue="[object Arguments]",ce="[object Array]",le="[object Object]",pe=Object.prototype.hasOwnProperty;b.exports=function(b,S,J,fe,de,he){var me=oe(b),ge=oe(S),ye=me?ce:ie(b),ve=ge?ce:ie(S),Te=(ye=ye==ue?le:ye)==le,be=(ve=ve==ue?le:ve)==le,_e=ye==ve;if(_e&&se(b)){if(!se(S))return!1;me=!0,Te=!1}if(_e&&!Te)return he||(he=new ee),me||ae(b)?te(b,S,J,fe,de,he):re(b,S,ye,J,fe,de,he);if(!(1&J)){var Ee=Te&&pe.call(b,"__wrapped__"),Ae=be&&pe.call(S,"__wrapped__");if(Ee||Ae){var we=Ee?b.value():b,xe=Ae?S.value():S;return he||(he=new ee),de(we,xe,J,fe,he)}}return!!_e&&(he||(he=new ee),ne(b,S,J,fe,de,he))}},4511:(b,S,J)=>{var ee=J(940),te=J(5125);b.exports=function(b){return te(b)&&"[object Map]"==ee(b)}},7036:(b,S,J)=>{var ee=J(6571),te=J(8746);b.exports=function(b,S,J,re){var ne=J.length,ie=ne,oe=!re;if(null==b)return!ie;for(b=Object(b);ne--;){var se=J[ne];if(oe&&se[2]?se[1]!==b[se[0]]:!(se[0]in b))return!1}for(;++ne<ie;){var ae=(se=J[ne])[0],ue=b[ae],ce=se[1];if(oe&&se[2]){if(void 0===ue&&!(ae in b))return!1}else{var le=new ee;if(re)var pe=re(ue,ce,ae,b,S,le);if(!(void 0===pe?te(ce,ue,3,re,le):pe))return!1}}return!0}},2195:b=>{b.exports=function(b){return b!=b}},6840:(b,S,J)=>{var ee=J(1049),te=J(7394),re=J(9259),ne=J(7035),ie=/^\[object .+?Constructor\]$/,oe=Function.prototype,se=Object.prototype,ae=oe.toString,ue=se.hasOwnProperty,ce=RegExp("^"+ae.call(ue).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");b.exports=function(b){return!(!re(b)||te(b))&&(ee(b)?ce:ie).test(ne(b))}},4333:(b,S,J)=>{var ee=J(3366),te=J(5125);b.exports=function(b){return te(b)&&"[object RegExp]"==ee(b)}},8436:(b,S,J)=>{var ee=J(940),te=J(5125);b.exports=function(b){return te(b)&&"[object Set]"==ee(b)}},5522:(b,S,J)=>{var ee=J(3366),te=J(1158),re=J(5125),ne={};ne["[object Float32Array]"]=ne["[object Float64Array]"]=ne["[object Int8Array]"]=ne["[object Int16Array]"]=ne["[object Int32Array]"]=ne["[object Uint8Array]"]=ne["[object Uint8ClampedArray]"]=ne["[object Uint16Array]"]=ne["[object Uint32Array]"]=!0,ne["[object Arguments]"]=ne["[object Array]"]=ne["[object ArrayBuffer]"]=ne["[object Boolean]"]=ne["[object DataView]"]=ne["[object Date]"]=ne["[object Error]"]=ne["[object Function]"]=ne["[object Map]"]=ne["[object Number]"]=ne["[object Object]"]=ne["[object RegExp]"]=ne["[object Set]"]=ne["[object String]"]=ne["[object WeakMap]"]=!1,b.exports=function(b){return re(b)&&te(b.length)&&!!ne[ee(b)]}},8286:(b,S,J)=>{var ee=J(6423),te=J(4716),re=J(3059),ne=J(6152),ie=J(5798);b.exports=function(b){return"function"==typeof b?b:null==b?re:"object"==typeof b?ne(b)?te(b[0],b[1]):ee(b):ie(b)}},6411:(b,S,J)=>{var ee=J(6001),te=J(4248),re=Object.prototype.hasOwnProperty;b.exports=function(b){if(!ee(b))return te(b);var S=[];for(var J in Object(b))re.call(b,J)&&"constructor"!=J&&S.push(J);return S}},8390:(b,S,J)=>{var ee=J(9259),te=J(6001),re=J(2966),ne=Object.prototype.hasOwnProperty;b.exports=function(b){if(!ee(b))return re(b);var S=te(b),J=[];for(var ie in b)("constructor"!=ie||!S&&ne.call(b,ie))&&J.push(ie);return J}},3401:(b,S,J)=>{var ee=J(4303),te=J(7878);b.exports=function(b,S){var J=-1,re=te(b)?Array(b.length):[];return ee(b,(function(b,ee,te){re[++J]=S(b,ee,te)})),re}},6423:(b,S,J)=>{var ee=J(7036),te=J(9882),re=J(3477);b.exports=function(b){var S=te(b);return 1==S.length&&S[0][2]?re(S[0][0],S[0][1]):function(J){return J===b||ee(J,b,S)}}},4716:(b,S,J)=>{var ee=J(8746),te=J(2579),re=J(5041),ne=J(1401),ie=J(8792),oe=J(3477),se=J(3812);b.exports=function(b,S){return ne(b)&&ie(S)?oe(se(b),S):function(J){var ne=te(J,b);return void 0===ne&&ne===S?re(J,b):ee(S,ne,3)}}},3759:(b,S,J)=>{var ee=J(3324),te=J(2857),re=J(7297);b.exports=function(b,S,J){for(var ne=-1,ie=S.length,oe={};++ne<ie;){var se=S[ne],ae=ee(b,se);J(ae,se)&&te(oe,re(se,b),ae)}return oe}},256:b=>{b.exports=function(b){return function(S){return null==S?void 0:S[b]}}},2952:(b,S,J)=>{var ee=J(3324);b.exports=function(b){return function(S){return ee(S,b)}}},5877:b=>{b.exports=function(b,S,J,ee,te){return te(b,(function(b,te,re){J=ee?(ee=!1,b):S(J,b,te,re)})),J}},6060:(b,S,J)=>{var ee=J(3059),te=J(3114),re=J(5251);b.exports=function(b,S){return re(te(b,S,ee),b+"")}},2857:(b,S,J)=>{var ee=J(91),te=J(7297),re=J(9045),ne=J(9259),ie=J(3812);b.exports=function(b,S,J,oe){if(!ne(b))return b;for(var se=-1,ae=(S=te(S,b)).length,ue=ae-1,ce=b;null!=ce&&++se<ae;){var le=ie(S[se]),pe=J;if("__proto__"===le||"constructor"===le||"prototype"===le)return b;if(se!=ue){var fe=ce[le];void 0===(pe=oe?oe(fe,le,ce):void 0)&&(pe=ne(fe)?fe:re(S[se+1])?[]:{})}ee(ce,le,pe),ce=ce[le]}return b}},6532:(b,S,J)=>{var ee=J(6874),te=J(3043),re=J(3059),ne=te?function(b,S){return te(b,"toString",{configurable:!0,enumerable:!1,value:ee(S),writable:!0})}:re;b.exports=ne},9872:b=>{b.exports=function(b,S,J){var ee=-1,te=b.length;S<0&&(S=-S>te?0:te+S),(J=J>te?te:J)<0&&(J+=te),te=S>J?0:J-S>>>0,S>>>=0;for(var re=Array(te);++ee<te;)re[ee]=b[ee+S];return re}},4751:(b,S,J)=>{var ee=J(4303);b.exports=function(b,S){var J;return ee(b,(function(b,ee,te){return!(J=S(b,ee,te))})),!!J}},6473:b=>{b.exports=function(b,S){for(var J=-1,ee=Array(b);++J<b;)ee[J]=S(J);return ee}},1054:(b,S,J)=>{var ee=J(857),te=J(343),re=J(6152),ne=J(4795),ie=ee?ee.prototype:void 0,oe=ie?ie.toString:void 0;b.exports=function t(b){if("string"==typeof b)return b;if(re(b))return te(b,t)+"";if(ne(b))return oe?oe.call(b):"";var S=b+"";return"0"==S&&1/b==-1/0?"-0":S}},1704:(b,S,J)=>{var ee=J(2153),te=/^\s+/;b.exports=function(b){return b?b.slice(0,ee(b)+1).replace(te,""):b}},7826:b=>{b.exports=function(b){return function(S){return b(S)}}},7326:(b,S,J)=>{var ee=J(5386),te=J(8333),re=J(4893),ne=J(9950),ie=J(8803),oe=J(4207);b.exports=function(b,S,J){var se=-1,ae=te,ue=b.length,ce=!0,le=[],pe=le;if(J)ce=!1,ae=re;else if(ue>=200){var fe=S?null:ie(b);if(fe)return oe(fe);ce=!1,ae=ne,pe=new ee}else pe=S?[]:le;e:for(;++se<ue;){var de=b[se],he=S?S(de):de;if(de=J||0!==de?de:0,ce&&he==he){for(var me=pe.length;me--;)if(pe[me]===he)continue e;S&&pe.push(he),le.push(de)}else ae(pe,he,J)||(pe!==le&&pe.push(he),le.push(de))}return le}},753:(b,S,J)=>{var ee=J(343);b.exports=function(b,S){return ee(S,(function(S){return b[S]}))}},9950:b=>{b.exports=function(b,S){return b.has(S)}},9419:(b,S,J)=>{var ee=J(3059);b.exports=function(b){return"function"==typeof b?b:ee}},7297:(b,S,J)=>{var ee=J(6152),te=J(1401),re=J(4452),ne=J(6188);b.exports=function(b,S){return ee(b)?b:te(b,S)?[b]:re(ne(b))}},3895:(b,S,J)=>{var ee=J(9872);b.exports=function(b,S,J){var te=b.length;return J=void 0===J?te:J,!S&&J>=te?b:ee(b,S,J)}},897:(b,S,J)=>{var ee=J(9162);b.exports=function(b){var S=new b.constructor(b.byteLength);return new ee(S).set(new ee(b)),S}},2175:(b,S,J)=>{b=J.nmd(b);var ee=J(7772),te=S&&!S.nodeType&&S,re=te&&b&&!b.nodeType&&b,ne=re&&re.exports===te?ee.Buffer:void 0,ie=ne?ne.allocUnsafe:void 0;b.exports=function(b,S){if(S)return b.slice();var J=b.length,ee=ie?ie(J):new b.constructor(J);return b.copy(ee),ee}},4727:(b,S,J)=>{var ee=J(897);b.exports=function(b,S){var J=S?ee(b.buffer):b.buffer;return new b.constructor(J,b.byteOffset,b.byteLength)}},6058:b=>{var S=/\w*$/;b.exports=function(b){var J=new b.constructor(b.source,S.exec(b));return J.lastIndex=b.lastIndex,J}},169:(b,S,J)=>{var ee=J(857),te=ee?ee.prototype:void 0,re=te?te.valueOf:void 0;b.exports=function(b){return re?Object(re.call(b)):{}}},6190:(b,S,J)=>{var ee=J(897);b.exports=function(b,S){var J=S?ee(b.buffer):b.buffer;return new b.constructor(J,b.byteOffset,b.length)}},1522:b=>{b.exports=function(b,S){var J=-1,ee=b.length;for(S||(S=Array(ee));++J<ee;)S[J]=b[J];return S}},752:(b,S,J)=>{var ee=J(91),te=J(3940);b.exports=function(b,S,J,re){var ne=!J;J||(J={});for(var ie=-1,oe=S.length;++ie<oe;){var se=S[ie],ae=re?re(J[se],b[se],se,J,b):void 0;void 0===ae&&(ae=b[se]),ne?te(J,se,ae):ee(J,se,ae)}return J}},7680:(b,S,J)=>{var ee=J(752),te=J(633);b.exports=function(b,S){return ee(b,te(b),S)}},9987:(b,S,J)=>{var ee=J(752),te=J(2680);b.exports=function(b,S){return ee(b,te(b),S)}},4019:(b,S,J)=>{var ee=J(7772)["__core-js_shared__"];b.exports=ee},6740:(b,S,J)=>{var ee=J(5338),te=J(2825),re=J(8286),ne=J(6152);b.exports=function(b,S){return function(J,ie){var oe=ne(J)?ee:te,se=S?S():{};return oe(J,b,re(ie,2),se)}}},7263:(b,S,J)=>{var ee=J(6060),te=J(2406);b.exports=function(b){return ee((function(S,J){var ee=-1,re=J.length,ne=re>1?J[re-1]:void 0,ie=re>2?J[2]:void 0;for(ne=b.length>3&&"function"==typeof ne?(re--,ne):void 0,ie&&te(J[0],J[1],ie)&&(ne=re<3?void 0:ne,re=1),S=Object(S);++ee<re;){var oe=J[ee];oe&&b(S,oe,ee,ne)}return S}))}},2019:(b,S,J)=>{var ee=J(7878);b.exports=function(b,S){return function(J,te){if(null==J)return J;if(!ee(J))return b(J,te);for(var re=J.length,ne=S?re:-1,ie=Object(J);(S?ne--:++ne<re)&&!1!==te(ie[ne],ne,ie););return J}}},5463:b=>{b.exports=function(b){return function(S,J,ee){for(var te=-1,re=Object(S),ne=ee(S),ie=ne.length;ie--;){var oe=ne[b?ie:++te];if(!1===J(re[oe],oe,re))break}return S}}},3126:(b,S,J)=>{var ee=J(3895),te=J(3880),re=J(8435),ne=J(6188);b.exports=function(b){return function(S){S=ne(S);var J=te(S)?re(S):void 0,ie=J?J[0]:S.charAt(0),oe=J?ee(J,1).join(""):S.slice(1);return ie[b]()+oe}}},8776:(b,S,J)=>{var ee=J(8286),te=J(7878),re=J(249);b.exports=function(b){return function(S,J,ne){var ie=Object(S);if(!te(S)){var oe=ee(J,3);S=re(S),J=function(b){return oe(ie[b],b,ie)}}var se=b(S,J,ne);return se>-1?ie[oe?S[se]:se]:void 0}}},8803:(b,S,J)=>{var ee=J(2143),te=J(4291),re=J(4207),ne=ee&&1/re(new ee([,-0]))[1]==1/0?function(b){return new ee(b)}:te;b.exports=ne},3043:(b,S,J)=>{var ee=J(8761),te=function(){try{var b=ee(Object,"defineProperty");return b({},"",{}),b}catch(b){}}();b.exports=te},4871:(b,S,J)=>{var ee=J(5386),te=J(7064),re=J(9950);b.exports=function(b,S,J,ne,ie,oe){var se=1&J,ae=b.length,ue=S.length;if(ae!=ue&&!(se&&ue>ae))return!1;var ce=oe.get(b),le=oe.get(S);if(ce&&le)return ce==S&&le==b;var pe=-1,fe=!0,de=2&J?new ee:void 0;for(oe.set(b,S),oe.set(S,b);++pe<ae;){var he=b[pe],me=S[pe];if(ne)var ge=se?ne(me,he,pe,S,b,oe):ne(he,me,pe,b,S,oe);if(void 0!==ge){if(ge)continue;fe=!1;break}if(de){if(!te(S,(function(b,S){if(!re(de,S)&&(he===b||ie(he,b,J,ne,oe)))return de.push(S)}))){fe=!1;break}}else if(he!==me&&!ie(he,me,J,ne,oe)){fe=!1;break}}return oe.delete(b),oe.delete(S),fe}},1491:(b,S,J)=>{var ee=J(857),te=J(9162),re=J(1225),ne=J(4871),ie=J(5179),oe=J(4207),se=ee?ee.prototype:void 0,ae=se?se.valueOf:void 0;b.exports=function(b,S,J,ee,se,ue,ce){switch(J){case"[object DataView]":if(b.byteLength!=S.byteLength||b.byteOffset!=S.byteOffset)return!1;b=b.buffer,S=S.buffer;case"[object ArrayBuffer]":return!(b.byteLength!=S.byteLength||!ue(new te(b),new te(S)));case"[object Boolean]":case"[object Date]":case"[object Number]":return re(+b,+S);case"[object Error]":return b.name==S.name&&b.message==S.message;case"[object RegExp]":case"[object String]":return b==S+"";case"[object Map]":var le=ie;case"[object Set]":var pe=1ⅇif(le||(le=oe),b.size!=S.size&&!pe)return!1;var fe=ce.get(b);if(fe)return fe==S;ee|=2,ce.set(b,S);var de=ne(le(b),le(S),ee,se,ue,ce);return ce.delete(b),de;case"[object Symbol]":if(ae)return ae.call(b)==ae.call(S)}return!1}},7416:(b,S,J)=>{var ee=J(3483),te=Object.prototype.hasOwnProperty;b.exports=function(b,S,J,re,ne,ie){var oe=1&J,se=ee(b),ae=se.length;if(ae!=ee(S).length&&!oe)return!1;for(var ue=ae;ue--;){var ce=se[ue];if(!(oe?ce in S:te.call(S,ce)))return!1}var le=ie.get(b),pe=ie.get(S);if(le&&pe)return le==S&&pe==b;var fe=!0;ie.set(b,S),ie.set(S,b);for(var de=oe;++ue<ae;){var he=b[ce=se[ue]],me=S[ce];if(re)var ge=oe?re(me,he,ce,S,b,ie):re(he,me,ce,b,S,ie);if(!(void 0===ge?he===me||ne(he,me,J,re,ie):ge)){fe=!1;break}de||(de="constructor"==ce)}if(fe&&!de){var ye=b.constructor,ve=S.constructor;ye==ve||!("constructor"in b)||!("constructor"in S)||"function"==typeof ye&&ye instanceof ye&&"function"==typeof ve&&ve instanceof ve||(fe=!1)}return ie.delete(b),ie.delete(S),fe}},1242:(b,S,J)=>{var ee="object"==typeof J.g&&J.g&&J.g.Object===Object&&J.g;b.exports=ee},3483:(b,S,J)=>{var ee=J(1897),te=J(633),re=J(249);b.exports=function(b){return ee(b,re,te)}},6939:(b,S,J)=>{var ee=J(1897),te=J(2680),re=J(8582);b.exports=function(b){return ee(b,re,te)}},7937:(b,S,J)=>{var ee=J(8304);b.exports=function(b,S){var J=b.__data__;return ee(S)?J["string"==typeof S?"string":"hash"]:J.map}},9882:(b,S,J)=>{var ee=J(8792),te=J(249);b.exports=function(b){for(var S=te(b),J=S.length;J--;){var re=S[J],ne=b[re];S[J]=[re,ne,ee(ne)]}return S}},8761:(b,S,J)=>{var ee=J(6840),te=J(8109);b.exports=function(b,S){var J=te(b,S);return ee(J)?J:void 0}},7353:(b,S,J)=>{var ee=J(241)(Object.getPrototypeOf,Object);b.exports=ee},2107:(b,S,J)=>{var ee=J(857),te=Object.prototype,re=te.hasOwnProperty,ne=te.toString,ie=ee?ee.toStringTag:void 0;b.exports=function(b){var S=re.call(b,ie),J=b[ie];try{b[ie]=void 0;var ee=!0}catch(b){}var te=ne.call(b);return ee&&(S?b[ie]=J:delete b[ie]),te}},633:(b,S,J)=>{var ee=J(7552),te=J(981),re=Object.prototype.propertyIsEnumerable,ne=Object.getOwnPropertySymbols,ie=ne?function(b){return null==b?[]:(b=Object(b),ee(ne(b),(function(S){return re.call(b,S)})))}:te;b.exports=ie},2680:(b,S,J)=>{var ee=J(5067),te=J(7353),re=J(633),ne=J(981),ie=Object.getOwnPropertySymbols?function(b){for(var S=[];b;)ee(S,re(b)),b=te(b);return S}:ne;b.exports=ie},940:(b,S,J)=>{var ee=J(9515),te=J(326),re=J(2760),ne=J(2143),ie=J(3215),oe=J(3366),se=J(7035),ae="[object Map]",ue="[object Promise]",ce="[object Set]",le="[object WeakMap]",pe="[object DataView]",fe=se(ee),de=se(te),he=se(re),me=se(ne),ge=se(ie),ye=oe;(ee&&ye(new ee(new ArrayBuffer(1)))!=pe||te&&ye(new te)!=ae||re&&ye(re.resolve())!=ue||ne&&ye(new ne)!=ce||ie&&ye(new ie)!=le)&&(ye=function(b){var S=oe(b),J="[object Object]"==S?b.constructor:void 0,ee=J?se(J):"";if(ee)switch(ee){case fe:return pe;case de:return ae;case he:return ue;case me:return ce;case ge:return le}return S}),b.exports=ye},8109:b=>{b.exports=function(b,S){return null==b?void 0:b[S]}},1369:(b,S,J)=>{var ee=J(7297),te=J(9631),re=J(6152),ne=J(9045),ie=J(1158),oe=J(3812);b.exports=function(b,S,J){for(var se=-1,ae=(S=ee(S,b)).length,ue=!1;++se<ae;){var ce=oe(S[se]);if(!(ue=null!=b&&J(b,ce)))break;b=b[ce]}return ue||++se!=ae?ue:!!(ae=null==b?0:b.length)&&ie(ae)&&ne(ce,ae)&&(re(b)||te(b))}},3880:b=>{var S=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");b.exports=function(b){return S.test(b)}},2118:(b,S,J)=>{var ee=J(9191);b.exports=function(){this.__data__=ee?ee(null):{},this.size=0}},6909:b=>{b.exports=function(b){var S=this.has(b)&&delete this.__data__[b];return this.size-=S?1:0,S}},8138:(b,S,J)=>{var ee=J(9191),te=Object.prototype.hasOwnProperty;b.exports=function(b){var S=this.__data__;if(ee){var J=S[b];return"__lodash_hash_undefined__"===J?void 0:J}return te.call(S,b)?S[b]:void 0}},4174:(b,S,J)=>{var ee=J(9191),te=Object.prototype.hasOwnProperty;b.exports=function(b){var S=this.__data__;return ee?void 0!==S[b]:te.call(S,b)}},7942:(b,S,J)=>{var ee=J(9191);b.exports=function(b,S){var J=this.__data__;return this.size+=this.has(b)?0:1,J[b]=ee&&void 0===S?"__lodash_hash_undefined__":S,this}},9917:b=>{var S=Object.prototype.hasOwnProperty;b.exports=function(b){var J=b.length,ee=new b.constructor(J);return J&&"string"==typeof b[0]&&S.call(b,"index")&&(ee.index=b.index,ee.input=b.input),ee}},8222:(b,S,J)=>{var ee=J(897),te=J(4727),re=J(6058),ne=J(169),ie=J(6190);b.exports=function(b,S,J){var oe=b.constructor;switch(S){case"[object ArrayBuffer]":return ee(b);case"[object Boolean]":case"[object Date]":return new oe(+b);case"[object DataView]":return te(b,J);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return ie(b,J);case"[object Map]":return new oe;case"[object Number]":case"[object String]":return new oe(b);case"[object RegExp]":return re(b);case"[object Set]":return new oe;case"[object Symbol]":return ne(b)}}},8725:(b,S,J)=>{var ee=J(9413),te=J(7353),re=J(6001);b.exports=function(b){return"function"!=typeof b.constructor||re(b)?{}:ee(te(b))}},5882:(b,S,J)=>{var ee=J(857),te=J(9631),re=J(6152),ne=ee?ee.isConcatSpreadable:void 0;b.exports=function(b){return re(b)||te(b)||!!(ne&&b&&b[ne])}},9045:b=>{var S=/^(?:0|[1-9]\d*)$/;b.exports=function(b,J){var ee=typeof b;return!!(J=null==J?9007199254740991:J)&&("number"==ee||"symbol"!=ee&&S.test(b))&&b>-1&&b%1==0&&b<J}},2406:(b,S,J)=>{var ee=J(1225),te=J(7878),re=J(9045),ne=J(9259);b.exports=function(b,S,J){if(!ne(J))return!1;var ie=typeof S;return!!("number"==ie?te(J)&&re(S,J.length):"string"==ie&&S in J)&&ee(J[S],b)}},1401:(b,S,J)=>{var ee=J(6152),te=J(4795),re=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/;b.exports=function(b,S){if(ee(b))return!1;var J=typeof b;return!("number"!=J&&"symbol"!=J&&"boolean"!=J&&null!=b&&!te(b))||ne.test(b)||!re.test(b)||null!=S&&b in Object(S)}},8304:b=>{b.exports=function(b){var S=typeof b;return"string"==S||"number"==S||"symbol"==S||"boolean"==S?"__proto__"!==b:null===b}},7394:(b,S,J)=>{var ee,te=J(4019),re=(ee=/[^.]+$/.exec(te&&te.keys&&te.keys.IE_PROTO||""))?"Symbol(src)_1."+ee:"";b.exports=function(b){return!!re&&re in b}},6001:b=>{var S=Object.prototype;b.exports=function(b){var J=b&&b.constructor;return b===("function"==typeof J&&J.prototype||S)}},8792:(b,S,J)=>{var ee=J(9259);b.exports=function(b){return b==b&&!ee(b)}},3945:b=>{b.exports=function(){this.__data__=[],this.size=0}},1846:(b,S,J)=>{var ee=J(2218),te=Array.prototype.splice;b.exports=function(b){var S=this.__data__,J=ee(S,b);return!(J<0||(J==S.length-1?S.pop():te.call(S,J,1),--this.size,0))}},8028:(b,S,J)=>{var ee=J(2218);b.exports=function(b){var S=this.__data__,J=ee(S,b);return J<0?void 0:S[J][1]}},2344:(b,S,J)=>{var ee=J(2218);b.exports=function(b){return ee(this.__data__,b)>-1}},4769:(b,S,J)=>{var ee=J(2218);b.exports=function(b,S){var J=this.__data__,te=ee(J,b);return te<0?(++this.size,J.push([b,S])):J[te][1]=S,this}},2411:(b,S,J)=>{var ee=J(9612),te=J(235),re=J(326);b.exports=function(){this.size=0,this.__data__={hash:new ee,map:new(re||te),string:new ee}}},6417:(b,S,J)=>{var ee=J(7937);b.exports=function(b){var S=ee(this,b).delete(b);return this.size-=S?1:0,S}},6928:(b,S,J)=>{var ee=J(7937);b.exports=function(b){return ee(this,b).get(b)}},9493:(b,S,J)=>{var ee=J(7937);b.exports=function(b){return ee(this,b).has(b)}},4150:(b,S,J)=>{var ee=J(7937);b.exports=function(b,S){var J=ee(this,b),te=J.size;return J.set(b,S),this.size+=J.size==te?0:1,this}},5179:b=>{b.exports=function(b){var S=-1,J=Array(b.size);return b.forEach((function(b,ee){J[++S]=[ee,b]})),J}},3477:b=>{b.exports=function(b,S){return function(J){return null!=J&&J[b]===S&&(void 0!==S||b in Object(J))}}},7777:(b,S,J)=>{var ee=J(733);b.exports=function(b){var S=ee(b,(function(b){return 500===J.size&&J.clear(),b})),J=S.cache;return S}},9191:(b,S,J)=>{var ee=J(8761)(Object,"create");b.exports=ee},4248:(b,S,J)=>{var ee=J(241)(Object.keys,Object);b.exports=ee},2966:b=>{b.exports=function(b){var S=[];if(null!=b)for(var J in Object(b))S.push(J);return S}},4146:(b,S,J)=>{b=J.nmd(b);var ee=J(1242),te=S&&!S.nodeType&&S,re=te&&b&&!b.nodeType&&b,ne=re&&re.exports===te&&ee.process,ie=function(){try{return re&&re.require&&re.require("util").types||ne&&ne.binding&&ne.binding("util")}catch(b){}}();b.exports=ie},7157:b=>{var S=Object.prototype.toString;b.exports=function(b){return S.call(b)}},241:b=>{b.exports=function(b,S){return function(J){return b(S(J))}}},3114:(b,S,J)=>{var ee=J(9432),te=Math.max;b.exports=function(b,S,J){return S=te(void 0===S?b.length-1:S,0),function(){for(var re=arguments,ne=-1,ie=te(re.length-S,0),oe=Array(ie);++ne<ie;)oe[ne]=re[S+ne];ne=-1;for(var se=Array(S+1);++ne<S;)se[ne]=re[ne];return se[S]=J(oe),ee(b,this,se)}}},7772:(b,S,J)=>{var ee=J(1242),te="object"==typeof self&&self&&self.Object===Object&&self,re=ee||te||Function("return this")();b.exports=re},2842:b=>{b.exports=function(b){return this.__data__.set(b,"__lodash_hash_undefined__"),this}},2482:b=>{b.exports=function(b){return this.__data__.has(b)}},4207:b=>{b.exports=function(b){var S=-1,J=Array(b.size);return b.forEach((function(b){J[++S]=b})),J}},5251:(b,S,J)=>{var ee=J(6532),te=J(7787)(ee);b.exports=te},7787:b=>{var S=Date.now;b.exports=function(b){var J=0,ee=0;return function(){var te=S(),re=16-(te-ee);if(ee=te,re>0){if(++J>=800)return arguments[0]}else J=0;return b.apply(void 0,arguments)}}},5243:(b,S,J)=>{var ee=J(235);b.exports=function(){this.__data__=new ee,this.size=0}},2858:b=>{b.exports=function(b){var S=this.__data__,J=S.delete(b);return this.size=S.size,J}},4417:b=>{b.exports=function(b){return this.__data__.get(b)}},8605:b=>{b.exports=function(b){return this.__data__.has(b)}},1418:(b,S,J)=>{var ee=J(235),te=J(326),re=J(6738);b.exports=function(b,S){var J=this.__data__;if(J instanceof ee){var ne=J.__data__;if(!te||ne.length<199)return ne.push([b,S]),this.size=++J.size,this;J=this.__data__=new re(ne)}return J.set(b,S),this.size=J.size,this}},6024:b=>{b.exports=function(b,S,J){for(var ee=J-1,te=b.length;++ee<te;)if(b[ee]===S)return ee;return-1}},8435:(b,S,J)=>{var ee=J(217),te=J(3880),re=J(3344);b.exports=function(b){return te(b)?re(b):ee(b)}},4452:(b,S,J)=>{var ee=J(7777),te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/\\(\\)?/g,ne=ee((function(b){var S=[];return 46===b.charCodeAt(0)&&S.push(""),b.replace(te,(function(b,J,ee,te){S.push(ee?te.replace(re,"$1"):J||b)})),S}));b.exports=ne},3812:(b,S,J)=>{var ee=J(4795);b.exports=function(b){if("string"==typeof b||ee(b))return b;var S=b+"";return"0"==S&&1/b==-1/0?"-0":S}},7035:b=>{var S=Function.prototype.toString;b.exports=function(b){if(null!=b){try{return S.call(b)}catch(b){}try{return b+""}catch(b){}}return""}},2153:b=>{var S=/\s/;b.exports=function(b){for(var J=b.length;J--&&S.test(b.charAt(J)););return J}},3344:b=>{var S="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",J="\\ud83c[\\udffb-\\udfff]",ee="[^\\ud800-\\udfff]",te="(?:\\ud83c[\\udde6-\\uddff]){2}",re="[\\ud800-\\udbff][\\udc00-\\udfff]",ne="(?:"+S+"|"+J+")?",ie="[\\ufe0e\\ufe0f]?",oe=ie+ne+"(?:\\u200d(?:"+[ee,te,re].join("|")+")"+ie+ne+")*",se="(?:"+[ee+S+"?",S,te,re,"[\\ud800-\\udfff]"].join("|")+")",ae=RegExp(J+"(?="+J+")|"+se+oe,"g");b.exports=function(b){return b.match(ae)||[]}},19:(b,S,J)=>{var ee=J(91),te=J(752),re=J(7263),ne=J(7878),ie=J(6001),oe=J(249),se=Object.prototype.hasOwnProperty,ae=re((function(b,S){if(ie(S)||ne(S))te(S,oe(S),b);else for(var J in S)se.call(S,J)&&ee(b,J,S[J])}));b.exports=ae},4004:(b,S,J)=>{var ee=J(8874);b.exports=function(b){return ee(b,4)}},417:b=>{b.exports=function(b){for(var S=-1,J=null==b?0:b.length,ee=0,te=[];++S<J;){var re=b[S];re&&(te[ee++]=re)}return te}},6874:b=>{b.exports=function(b){return function(){return b}}},4573:(b,S,J)=>{var ee=J(6060),te=J(1225),re=J(2406),ne=J(8582),ie=Object.prototype,oe=ie.hasOwnProperty,se=ee((function(b,S){b=Object(b);var J=-1,ee=S.length,se=ee>2?S[2]:void 0;for(se&&re(S[0],S[1],se)&&(ee=1);++J<ee;)for(var ae=S[J],ue=ne(ae),ce=-1,le=ue.length;++ce<le;){var pe=ue[ce],fe=b[pe];(void 0===fe||te(fe,ie[pe])&&!oe.call(b,pe))&&(b[pe]=ae[pe])}return b}));b.exports=se},7335:(b,S,J)=>{var ee=J(5246),te=J(2034),re=J(6060),ne=J(3746),ie=re((function(b,S){return ne(b)?ee(b,te(S,1,ne,!0)):[]}));b.exports=ie},7264:(b,S,J)=>{var ee=J(9872),te=J(8101);b.exports=function(b,S,J){var re=null==b?0:b.length;return re?(S=J||void 0===S?1:te(S),ee(b,S<0?0:S,re)):[]}},4934:(b,S,J)=>{var ee=J(9872),te=J(8101);b.exports=function(b,S,J){var re=null==b?0:b.length;return re?(S=J||void 0===S?1:te(S),ee(b,0,(S=re-S)<0?0:S)):[]}},1225:b=>{b.exports=function(b,S){return b===S||b!=b&&S!=S}},9794:(b,S,J)=>{var ee=J(7603),te=J(80),re=J(8286),ne=J(6152),ie=J(2406);b.exports=function(b,S,J){var oe=ne(b)?ee:te;return J&&ie(b,S,J)&&(S=void 0),oe(b,re(S,3))}},882:(b,S,J)=>{var ee=J(7552),te=J(8043),re=J(8286),ne=J(6152);b.exports=function(b,S){return(ne(b)?ee:te)(b,re(S,3))}},5281:(b,S,J)=>{var ee=J(8776)(J(2982));b.exports=ee},2982:(b,S,J)=>{var ee=J(1359),te=J(8286),re=J(8101),ne=Math.max;b.exports=function(b,S,J){var ie=null==b?0:b.length;if(!ie)return-1;var oe=null==J?0:re(J);return oe<0&&(oe=ne(ie+oe,0)),ee(b,te(S,3),oe)}},3237:(b,S,J)=>{b.exports=J(1092)},5838:(b,S,J)=>{var ee=J(2034),te=J(6760);b.exports=function(b,S){return ee(te(b,S),1)}},5676:(b,S,J)=>{var ee=J(2034);b.exports=function(b){return null!=b&&b.length?ee(b,1):[]}},9756:(b,S,J)=>{var ee=J(2517),te=J(4303),re=J(9419),ne=J(6152);b.exports=function(b,S){return(ne(b)?ee:te)(b,re(S))}},2579:(b,S,J)=>{var ee=J(3324);b.exports=function(b,S,J){var te=null==b?void 0:ee(b,S);return void 0===te?J:te}},3440:(b,S,J)=>{var ee=J(3940),te=J(6740),re=Object.prototype.hasOwnProperty,ne=te((function(b,S,J){re.call(b,J)?b[J].push(S):ee(b,J,[S])}));b.exports=ne},3352:(b,S,J)=>{var ee=J(2726),te=J(1369);b.exports=function(b,S){return null!=b&&te(b,S,ee)}},5041:(b,S,J)=>{var ee=J(187),te=J(1369);b.exports=function(b,S){return null!=b&&te(b,S,ee)}},1092:b=>{b.exports=function(b){return b&&b.length?b[0]:void 0}},3059:b=>{b.exports=function(b){return b}},1886:(b,S,J)=>{var ee=J(7832),te=J(7878),re=J(5505),ne=J(8101),ie=J(8346),oe=Math.max;b.exports=function(b,S,J,se){b=te(b)?b:ie(b),J=J&&!se?ne(J):0;var ae=b.length;return J<0&&(J=oe(ae+J,0)),re(b)?J<=ae&&b.indexOf(S,J)>-1:!!ae&&ee(b,S,J)>-1}},3493:(b,S,J)=>{var ee=J(7832),te=J(8101),re=Math.max;b.exports=function(b,S,J){var ne=null==b?0:b.length;if(!ne)return-1;var ie=null==J?0:te(J);return ie<0&&(ie=re(ne+ie,0)),ee(b,S,ie)}},9631:(b,S,J)=>{var ee=J(5183),te=J(5125),re=Object.prototype,ne=re.hasOwnProperty,ie=re.propertyIsEnumerable,oe=ee(function(){return arguments}())?ee:function(b){return te(b)&&ne.call(b,"callee")&&!ie.call(b,"callee")};b.exports=oe},6152:b=>{var S=Array.isArray;b.exports=S},7878:(b,S,J)=>{var ee=J(1049),te=J(1158);b.exports=function(b){return null!=b&&te(b.length)&&!ee(b)}},3746:(b,S,J)=>{var ee=J(7878),te=J(5125);b.exports=function(b){return te(b)&&ee(b)}},3226:(b,S,J)=>{b=J.nmd(b);var ee=J(7772),te=J(6330),re=S&&!S.nodeType&&S,ne=re&&b&&!b.nodeType&&b,ie=ne&&ne.exports===re?ee.Buffer:void 0,oe=(ie?ie.isBuffer:void 0)||te;b.exports=oe},5455:(b,S,J)=>{var ee=J(6411),te=J(940),re=J(9631),ne=J(6152),ie=J(7878),oe=J(3226),se=J(6001),ae=J(7598),ue=Object.prototype.hasOwnProperty;b.exports=function(b){if(null==b)return!0;if(ie(b)&&(ne(b)||"string"==typeof b||"function"==typeof b.splice||oe(b)||ae(b)||re(b)))return!b.length;var S=te(b);if("[object Map]"==S||"[object Set]"==S)return!b.size;if(se(b))return!ee(b).length;for(var J in b)if(ue.call(b,J))return!1;return!0}},1049:(b,S,J)=>{var ee=J(3366),te=J(9259);b.exports=function(b){if(!te(b))return!1;var S=ee(b);return"[object Function]"==S||"[object GeneratorFunction]"==S||"[object AsyncFunction]"==S||"[object Proxy]"==S}},1158:b=>{b.exports=function(b){return"number"==typeof b&&b>-1&&b%1==0&&b<=9007199254740991}},4714:(b,S,J)=>{var ee=J(4511),te=J(7826),re=J(4146),ne=re&&re.isMap,ie=ne?te(ne):ee;b.exports=ie},9259:b=>{b.exports=function(b){var S=typeof b;return null!=b&&("object"==S||"function"==S)}},5125:b=>{b.exports=function(b){return null!=b&&"object"==typeof b}},859:(b,S,J)=>{var ee=J(4333),te=J(7826),re=J(4146),ne=re&&re.isRegExp,ie=ne?te(ne):ee;b.exports=ie},3679:(b,S,J)=>{var ee=J(8436),te=J(7826),re=J(4146),ne=re&&re.isSet,ie=ne?te(ne):ee;b.exports=ie},5505:(b,S,J)=>{var ee=J(3366),te=J(6152),re=J(5125);b.exports=function(b){return"string"==typeof b||!te(b)&&re(b)&&"[object String]"==ee(b)}},4795:(b,S,J)=>{var ee=J(3366),te=J(5125);b.exports=function(b){return"symbol"==typeof b||te(b)&&"[object Symbol]"==ee(b)}},7598:(b,S,J)=>{var ee=J(5522),te=J(7826),re=J(4146),ne=re&&re.isTypedArray,ie=ne?te(ne):ee;b.exports=ie},4336:b=>{b.exports=function(b){return void 0===b}},249:(b,S,J)=>{var ee=J(1634),te=J(6411),re=J(7878);b.exports=function(b){return re(b)?ee(b):te(b)}},8582:(b,S,J)=>{var ee=J(1634),te=J(8390),re=J(7878);b.exports=function(b){return re(b)?ee(b,!0):te(b)}},6974:b=>{b.exports=function(b){var S=null==b?0:b.length;return S?b[S-1]:void 0}},6760:(b,S,J)=>{var ee=J(343),te=J(8286),re=J(3401),ne=J(6152);b.exports=function(b,S){return(ne(b)?ee:re)(b,te(S,3))}},733:(b,S,J)=>{var ee=J(6738);function o(b,S){if("function"!=typeof b||null!=S&&"function"!=typeof S)throw new TypeError("Expected a function");var r=function(){var J=arguments,ee=S?S.apply(this,J):J[0],te=r.cache;if(te.has(ee))return te.get(ee);var re=b.apply(this,J);return r.cache=te.set(ee,re)||te,re};return r.cache=new(o.Cache||ee),r}o.Cache=ee,b.exports=o},1570:b=>{b.exports=function(b){if("function"!=typeof b)throw new TypeError("Expected a function");return function(){var S=arguments;switch(S.length){case 0:return!b.call(this);case 1:return!b.call(this,S[0]);case 2:return!b.call(this,S[0],S[1]);case 3:return!b.call(this,S[0],S[1],S[2])}return!b.apply(this,S)}}},4291:b=>{b.exports=function(){}},2208:(b,S,J)=>{var ee=J(343),te=J(8286),re=J(3759),ne=J(6939);b.exports=function(b,S){if(null==b)return{};var J=ee(ne(b),(function(b){return[b]}));return S=te(S),re(b,J,(function(b,J){return S(b,J[0])}))}},5798:(b,S,J)=>{var ee=J(256),te=J(2952),re=J(1401),ne=J(3812);b.exports=function(b){return re(b)?ee(ne(b)):te(b)}},8215:(b,S,J)=>{var ee=J(1207),te=J(4303),re=J(8286),ne=J(5877),ie=J(6152);b.exports=function(b,S,J){var oe=ie(b)?ee:ne,se=arguments.length<3;return oe(b,re(S,4),J,se,te)}},2070:(b,S,J)=>{var ee=J(7552),te=J(8043),re=J(8286),ne=J(6152),ie=J(1570);b.exports=function(b,S){return(ne(b)?ee:te)(b,ie(re(S,3)))}},1525:(b,S,J)=>{var ee=J(7064),te=J(8286),re=J(4751),ne=J(6152),ie=J(2406);b.exports=function(b,S,J){var oe=ne(b)?ee:re;return J&&ie(b,S,J)&&(S=void 0),oe(b,te(S,3))}},981:b=>{b.exports=function(){return[]}},6330:b=>{b.exports=function(){return!1}},5707:(b,S,J)=>{var ee=J(7642);b.exports=function(b){return b?Infinity===(b=ee(b))||b===-1/0?17976931348623157e292*(b<0?-1:1):b==b?b:0:0===b?b:0}},8101:(b,S,J)=>{var ee=J(5707);b.exports=function(b){var S=ee(b),J=S%1;return S==S?J?S-J:S:0}},7642:(b,S,J)=>{var ee=J(1704),te=J(9259),re=J(4795),ne=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,oe=/^0o[0-7]+$/i,se=parseInt;b.exports=function(b){if("number"==typeof b)return b;if(re(b))return NaN;if(te(b)){var S="function"==typeof b.valueOf?b.valueOf():b;b=te(S)?S+"":S}if("string"!=typeof b)return 0===b?b:+b;b=ee(b);var J=ie.test(b);return J||oe.test(b)?se(b.slice(2),J?2:8):ne.test(b)?NaN:+b}},6188:(b,S,J)=>{var ee=J(1054);b.exports=function(b){return null==b?"":ee(b)}},5652:(b,S,J)=>{var ee=J(7326);b.exports=function(b){return b&&b.length?ee(b):[]}},3779:(b,S,J)=>{var ee=J(3126)("toUpperCase");b.exports=ee},8346:(b,S,J)=>{var ee=J(753),te=J(249);b.exports=function(b){return null==b?[]:ee(b,te(b))}},4844:function(b,S){var J,ee;"undefined"!=typeof self&&self,void 0===(ee="function"==typeof(J=function(){function t(){}t.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},t.prototype.restoreState=function(b){this.idx=b.idx,this.input=b.input,this.groupIdx=b.groupIdx},t.prototype.pattern=function(b){this.idx=0,this.input=b,this.groupIdx=0,this.consumeChar("/");var S=this.disjunction();this.consumeChar("/");for(var J={type:"Flags",loc:{begin:this.idx,end:b.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(J,"global");break;case"i":s(J,"ignoreCase");break;case"m":s(J,"multiLine");break;case"u":s(J,"unicode");break;case"y":s(J,"sticky")}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:J,value:S,loc:this.loc(0)}},t.prototype.disjunction=function(){var b=[],S=this.idx;for(b.push(this.alternative());"|"===this.peekChar();)this.consumeChar("|"),b.push(this.alternative());return{type:"Disjunction",value:b,loc:this.loc(S)}},t.prototype.alternative=function(){for(var b=[],S=this.idx;this.isTerm();)b.push(this.term());return{type:"Alternative",value:b,loc:this.loc(S)}},t.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},t.prototype.assertion=function(){var b=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(b)};case"$":return{type:"EndAnchor",loc:this.loc(b)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(b)};case"B":return{type:"NonWordBoundary",loc:this.loc(b)}}throw Error("Invalid Assertion Escape");case"(":var S;switch(this.consumeChar("?"),this.popChar()){case"=":S="Lookahead";break;case"!":S="NegativeLookahead"}u(S);var J=this.disjunction();return this.consumeChar(")"),{type:S,value:J,loc:this.loc(b)}}!function(){throw Error("Internal Error - Should never get here!")}()},t.prototype.quantifier=function(b){var S,J=this.idx;switch(this.popChar()){case"*":S={atLeast:0,atMost:1/0};break;case"+":S={atLeast:1,atMost:1/0};break;case"?":S={atLeast:0,atMost:1};break;case"{":var ee=this.integerIncludingZero();switch(this.popChar()){case"}":S={atLeast:ee,atMost:ee};break;case",":S=this.isDigit()?{atLeast:ee,atMost:this.integerIncludingZero()}:{atLeast:ee,atMost:1/0},this.consumeChar("}")}if(!0===b&&void 0===S)return;u(S)}if(!0!==b||void 0!==S)return u(S),"?"===this.peekChar(0)?(this.consumeChar("?"),S.greedy=!1):S.greedy=!0,S.type="Quantifier",S.loc=this.loc(J),S},t.prototype.atom=function(){var b,S=this.idx;switch(this.peekChar()){case".":b=this.dotAll();break;case"\\":b=this.atomEscape();break;case"[":b=this.characterClass();break;case"(":b=this.group()}return void 0===b&&this.isPatternCharacter()&&(b=this.patternCharacter()),u(b),b.loc=this.loc(S),this.isQuantifier()&&(b.quantifier=this.quantifier()),b},t.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[i("\n"),i("\r"),i("\u2028"),i("\u2029")]}},t.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},t.prototype.decimalEscapeAtom=function(){return{type:"GroupBackReference",value:this.positiveInteger()}},t.prototype.characterClassEscape=function(){var b,S=!1;switch(this.popChar()){case"d":b=te;break;case"D":b=te,S=!0;break;case"s":b=ne;break;case"S":b=ne,S=!0;break;case"w":b=re;break;case"W":b=re,S=!0}return u(b),{type:"Set",value:b,complement:S}},t.prototype.controlEscapeAtom=function(){var b;switch(this.popChar()){case"f":b=i("\f");break;case"n":b=i("\n");break;case"r":b=i("\r");break;case"t":b=i("\t");break;case"v":b=i("\v")}return u(b),{type:"Character",value:b}},t.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var b=this.popChar();if(!1===/[a-zA-Z]/.test(b))throw Error("Invalid ");return{type:"Character",value:b.toUpperCase().charCodeAt(0)-64}},t.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:i("\0")}},t.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},t.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},t.prototype.identityEscapeAtom=function(){return{type:"Character",value:i(this.popChar())}},t.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case"\n":case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:return{type:"Character",value:i(this.popChar())}}},t.prototype.characterClass=function(){var b=[],S=!1;for(this.consumeChar("["),"^"===this.peekChar(0)&&(this.consumeChar("^"),S=!0);this.isClassAtom();){var J=this.classAtom();if("Character"===J.type&&this.isRangeDash()){this.consumeChar("-");var ee=this.classAtom();if("Character"===ee.type){if(ee.value<J.value)throw Error("Range out of order in character class");b.push({from:J.value,to:ee.value})}else a(J.value,b),b.push(i("-")),a(ee.value,b)}else a(J.value,b)}return this.consumeChar("]"),{type:"Set",complement:S,value:b}},t.prototype.classAtom=function(){switch(this.peekChar()){case"]":case"\n":case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}},t.prototype.classEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:i("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},t.prototype.group=function(){var b=!0;switch(this.consumeChar("("),this.peekChar(0)){case"?":this.consumeChar("?"),this.consumeChar(":"),b=!1;break;default:this.groupIdx++}var S=this.disjunction();this.consumeChar(")");var J={type:"Group",capturing:b,value:S};return b&&(J.idx=this.groupIdx),J},t.prototype.positiveInteger=function(){var b=this.popChar();if(!1===ee.test(b))throw Error("Expecting a positive integer");for(;J.test(this.peekChar(0));)b+=this.popChar();return parseInt(b,10)},t.prototype.integerIncludingZero=function(){var b=this.popChar();if(!1===J.test(b))throw Error("Expecting an integer");for(;J.test(this.peekChar(0));)b+=this.popChar();return parseInt(b,10)},t.prototype.patternCharacter=function(){var b=this.popChar();switch(b){case"\n":case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:i(b)}}},t.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},t.prototype.isRangeDash=function(){return"-"===this.peekChar()&&this.isClassAtom(1)},t.prototype.isDigit=function(){return J.test(this.peekChar(0))},t.prototype.isClassAtom=function(b){switch(void 0===b&&(b=0),this.peekChar(b)){case"]":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},t.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},t.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},t.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return"?"===this.peekChar(1)&&("="===this.peekChar(2)||"!"===this.peekChar(2));default:return!1}},t.prototype.isQuantifier=function(){var b=this.saveState();try{return void 0!==this.quantifier(!0)}catch(b){return!1}finally{this.restoreState(b)}},t.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case"\n":case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},t.prototype.parseHexDigits=function(b){for(var J="",ee=0;ee<b;ee++){var te=this.popChar();if(!1===S.test(te))throw Error("Expecting a HexDecimal digits");J+=te}return{type:"Character",value:parseInt(J,16)}},t.prototype.peekChar=function(b){return void 0===b&&(b=0),this.input[this.idx+b]},t.prototype.popChar=function(){var b=this.peekChar(0);return this.consumeChar(),b},t.prototype.consumeChar=function(b){if(void 0!==b&&this.input[this.idx]!==b)throw Error("Expected: '"+b+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++},t.prototype.loc=function(b){return{begin:b,end:this.idx}};var b,S=/[0-9a-fA-F]/,J=/[0-9]/,ee=/[1-9]/;function i(b){return b.charCodeAt(0)}function a(b,S){void 0!==b.length?b.forEach((function(b){S.push(b)})):S.push(b)}function s(b,S){if(!0===b[S])throw"duplicate flag "+S;b[S]=!0}function u(b){if(void 0===b)throw Error("Internal Error - Should never get here!")}var te=[];for(b=i("0");b<=i("9");b++)te.push(b);var re=[i("_")].concat(te);for(b=i("a");b<=i("z");b++)re.push(b);for(b=i("A");b<=i("Z");b++)re.push(b);var ne=[i(" "),i("\f"),i("\n"),i("\r"),i("\t"),i("\v"),i("\t"),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i(" "),i("\u2028"),i("\u2029"),i(" "),i(" "),i(" "),i("\ufeff")];function p(){}return p.prototype.visitChildren=function(b){for(var S in b){var J=b[S];b.hasOwnProperty(S)&&(void 0!==J.type?this.visit(J):Array.isArray(J)&&J.forEach((function(b){this.visit(b)}),this))}},p.prototype.visit=function(b){switch(b.type){case"Pattern":this.visitPattern(b);break;case"Flags":this.visitFlags(b);break;case"Disjunction":this.visitDisjunction(b);break;case"Alternative":this.visitAlternative(b);break;case"StartAnchor":this.visitStartAnchor(b);break;case"EndAnchor":this.visitEndAnchor(b);break;case"WordBoundary":this.visitWordBoundary(b);break;case"NonWordBoundary":this.visitNonWordBoundary(b);break;case"Lookahead":this.visitLookahead(b);break;case"NegativeLookahead":this.visitNegativeLookahead(b);break;case"Character":this.visitCharacter(b);break;case"Set":this.visitSet(b);break;case"Group":this.visitGroup(b);break;case"GroupBackReference":this.visitGroupBackReference(b);break;case"Quantifier":this.visitQuantifier(b)}this.visitChildren(b)},p.prototype.visitPattern=function(b){},p.prototype.visitFlags=function(b){},p.prototype.visitDisjunction=function(b){},p.prototype.visitAlternative=function(b){},p.prototype.visitStartAnchor=function(b){},p.prototype.visitEndAnchor=function(b){},p.prototype.visitWordBoundary=function(b){},p.prototype.visitNonWordBoundary=function(b){},p.prototype.visitLookahead=function(b){},p.prototype.visitNegativeLookahead=function(b){},p.prototype.visitCharacter=function(b){},p.prototype.visitSet=function(b){},p.prototype.visitGroup=function(b){},p.prototype.visitGroupBackReference=function(b){},p.prototype.visitQuantifier=function(b){},{RegExpParser:t,BaseRegExpVisitor:p,VERSION:"0.5.0"}})?J.apply(S,[]):J)||(b.exports=ee)},5781:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.createSyntaxDiagramsCode=void 0;var ee=J(7979);S.createSyntaxDiagramsCode=function(b,S){var J=void 0===S?{}:S,te=J.resourceBase,re=void 0===te?"https://unpkg.com/chevrotain@".concat(ee.VERSION,"/diagrams/"):te,ne=J.css,ie=void 0===ne?"https://unpkg.com/chevrotain@".concat(ee.VERSION,"/diagrams/diagrams.css"):ne;return'\n\x3c!-- This is a generated file --\x3e\n<!DOCTYPE html>\n<meta charset="utf-8">\n<style>\n body {\n background-color: hsl(30, 20%, 95%)\n }\n</style>\n\n'+"\n<link rel='stylesheet' href='".concat(ie,"'>\n")+"\n<script src='".concat(re,"vendor/railroad-diagrams.js'><\/script>\n<script src='").concat(re,"src/diagrams_builder.js'><\/script>\n<script src='").concat(re,"src/diagrams_behavior.js'><\/script>\n<script src='").concat(re,"src/main.js'><\/script>\n")+'\n<div id="diagrams" align="center"></div> \n'+"\n<script>\n window.serializedGrammar = ".concat(JSON.stringify(b,null," "),";\n<\/script>\n")+'\n<script>\n var diagramsDiv = document.getElementById("diagrams");\n main.drawDiagramsFromSerializedGrammar(serializedGrammar, diagramsDiv);\n<\/script>\n'}},4105:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.defineNameProp=void 0,S.defineNameProp=function(b,S){Object.defineProperty(b,"name",{enumerable:!1,configurable:!0,writable:!1,value:S})}},3710:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.IN=void 0,S.IN="_~IN~_"},7485:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.addNoneTerminalToCst=S.addTerminalToCst=S.setNodeLocationFull=S.setNodeLocationOnlyOffset=void 0,S.setNodeLocationOnlyOffset=function(b,S){!0===isNaN(b.startOffset)?(b.startOffset=S.startOffset,b.endOffset=S.endOffset):b.endOffset<S.endOffset==1&&(b.endOffset=S.endOffset)},S.setNodeLocationFull=function(b,S){!0===isNaN(b.startOffset)?(b.startOffset=S.startOffset,b.startColumn=S.startColumn,b.startLine=S.startLine,b.endOffset=S.endOffset,b.endColumn=S.endColumn,b.endLine=S.endLine):b.endOffset<S.endOffset==1&&(b.endOffset=S.endOffset,b.endColumn=S.endColumn,b.endLine=S.endLine)},S.addTerminalToCst=function(b,S,J){void 0===b.children[J]?b.children[J]=[S]:b.children[J].push(S)},S.addNoneTerminalToCst=function(b,S,J){void 0===b.children[S]?b.children[S]=[J]:b.children[S].push(J)}},8169:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.validateRedundantMethods=S.validateMissingCstMethods=S.validateVisitor=S.CstVisitorDefinitionError=S.createBaseVisitorConstructorWithDefaults=S.createBaseSemanticVisitorConstructor=S.defaultVisit=void 0;var te,re=ee(J(5455)),ne=ee(J(417)),ie=ee(J(6152)),oe=ee(J(6760)),se=ee(J(9756)),ae=ee(J(882)),ue=ee(J(249)),ce=ee(J(1049)),le=ee(J(4336)),pe=ee(J(1886)),fe=J(4105);function y(b,S){for(var J=(0,ue.default)(b),ee=J.length,te=0;te<ee;te++)for(var re=b[J[te]],ne=re.length,ie=0;ie<ne;ie++){var oe=re[ie];void 0===oe.tokenTypeIdx&&this[oe.name](oe.children,S)}}function m(b,S){var J=T(b,S),ee=_(b,S);return J.concat(ee)}function T(b,S){var J=(0,ae.default)(S,(function(S){return!1===(0,ce.default)(b[S])})),ee=(0,oe.default)(J,(function(S){return{msg:"Missing visitor method: <".concat(S,"> on ").concat(b.constructor.name," CST Visitor."),type:te.MISSING_METHOD,methodName:S}}));return(0,ne.default)(ee)}S.defaultVisit=y,S.createBaseSemanticVisitorConstructor=function(b,S){var r=function(){};return(0,fe.defineNameProp)(r,b+"BaseSemantics"),(r.prototype={visit:function(b,S){if((0,ie.default)(b)&&(b=b[0]),!(0,le.default)(b))return this[b.name](b.children,S)},validateVisitor:function(){var b=m(this,S);if(!(0,re.default)(b)){var J=(0,oe.default)(b,(function(b){return b.msg}));throw Error("Errors Detected in CST Visitor <".concat(this.constructor.name,">:\n\t")+"".concat(J.join("\n\n").replace(/\n/g,"\n\t")))}}}).constructor=r,r._RULE_NAMES=S,r},S.createBaseVisitorConstructorWithDefaults=function(b,S,J){var n=function(){};(0,fe.defineNameProp)(n,b+"BaseSemanticsWithDefaults");var ee=Object.create(J.prototype);return(0,se.default)(S,(function(b){ee[b]=y})),(n.prototype=ee).constructor=n,n},function(b){b[b.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",b[b.MISSING_METHOD=1]="MISSING_METHOD"}(te=S.CstVisitorDefinitionError||(S.CstVisitorDefinitionError={})),S.validateVisitor=m,S.validateMissingCstMethods=T;var de=["constructor","visit","validateVisitor"];function _(b,S){var J=[];for(var ee in b)!(0,ce.default)(b[ee])||(0,pe.default)(de,ee)||(0,pe.default)(S,ee)||J.push({msg:"Redundant visitor method: <".concat(ee,"> on ").concat(b.constructor.name," CST Visitor\n")+"There is no Grammar Rule corresponding to this method's name.\n",type:te.REDUNDANT_METHOD,methodName:ee});return J}S.validateRedundantMethods=_},1007:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.defaultGrammarValidatorErrorProvider=S.defaultGrammarResolverErrorProvider=S.defaultParserErrorProvider=void 0;var te=J(6736),re=ee(J(3237)),ne=ee(J(6760)),ie=ee(J(8215)),oe=J(7729),se=J(7729);S.defaultParserErrorProvider={buildMismatchTokenMessage:function(b){var S=b.expected,J=b.actual,ee=(b.previous,b.ruleName,(0,te.hasTokenLabel)(S)?"--\x3e ".concat((0,te.tokenLabel)(S)," <--"):"token of type --\x3e ".concat(S.name," <--"));return"Expecting ".concat(ee," but found --\x3e '").concat(J.image,"' <--")},buildNotAllInputParsedMessage:function(b){var S=b.firstRedundant;return b.ruleName,"Redundant input, expecting EOF but found: "+S.image},buildNoViableAltMessage:function(b){var S=b.expectedPathsPerAlt,J=b.actual,ee=(b.previous,b.customUserDescription),oe=(b.ruleName,"Expecting: "),se="\nbut found: '"+(0,re.default)(J).image+"'";if(ee)return oe+ee+se;var ae=(0,ie.default)(S,(function(b,S){return b.concat(S)}),[]),ue=(0,ne.default)(ae,(function(b){return"[".concat((0,ne.default)(b,(function(b){return(0,te.tokenLabel)(b)})).join(", "),"]")})),ce=(0,ne.default)(ue,(function(b,S){return" ".concat(S+1,". ").concat(b)}));return oe+"one of these possible Token sequences:\n".concat(ce.join("\n"))+se},buildEarlyExitMessage:function(b){var S=b.expectedIterationPaths,J=b.actual,ee=b.customUserDescription,ie=(b.ruleName,"Expecting: "),oe="\nbut found: '"+(0,re.default)(J).image+"'";if(ee)return ie+ee+oe;var se=(0,ne.default)(S,(function(b){return"[".concat((0,ne.default)(b,(function(b){return(0,te.tokenLabel)(b)})).join(","),"]")}));return ie+"expecting at least one iteration which starts with one of these possible Token sequences::\n "+"<".concat(se.join(" ,"),">")+oe}},Object.freeze(S.defaultParserErrorProvider),S.defaultGrammarResolverErrorProvider={buildRuleNotFoundError:function(b,S){return"Invalid grammar, reference to a rule which is not defined: ->"+S.nonTerminalName+"<-\ninside top level rule: ->"+b.name+"<-"}},S.defaultGrammarValidatorErrorProvider={buildDuplicateFoundError:function(b,S){var J,ee=b.name,te=(0,re.default)(S),ne=te.idx,ie=(0,se.getProductionDslName)(te),ae=(J=te)instanceof oe.Terminal?J.terminalType.name:J instanceof oe.NonTerminal?J.nonTerminalName:"",ue=ne>0,ce="->".concat(ie).concat(ue?ne:"","<- ").concat(ae?"with argument: ->".concat(ae,"<-"):"","\n appears more than once (").concat(S.length," times) in the top level rule: ->").concat(ee,"<-. \n For further details see: https://chevrotain.io/docs/FAQ.html#NUMERICAL_SUFFIXES \n ");return(ce=ce.replace(/[ \t]+/g," ")).replace(/\s\s+/g,"\n")},buildNamespaceConflictError:function(b){return"Namespace conflict found in grammar.\n"+"The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <".concat(b.name,">.\n")+"To resolve this make sure each Terminal and Non-Terminal names are unique\nThis is easy to accomplish by using the convention that Terminal names start with an uppercase letter\nand Non-Terminal names start with a lower case letter."},buildAlternationPrefixAmbiguityError:function(b){var S=(0,ne.default)(b.prefixPath,(function(b){return(0,te.tokenLabel)(b)})).join(", "),J=0===b.alternation.idx?"":b.alternation.idx;return"Ambiguous alternatives: <".concat(b.ambiguityIndices.join(" ,"),"> due to common lookahead prefix\n")+"in <OR".concat(J,"> inside <").concat(b.topLevelRule.name,"> Rule,\n")+"<".concat(S,"> may appears as a prefix path in all these alternatives.\n")+"See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX\nFor Further details."},buildAlternationAmbiguityError:function(b){var S=(0,ne.default)(b.prefixPath,(function(b){return(0,te.tokenLabel)(b)})).join(", "),J=0===b.alternation.idx?"":b.alternation.idx;return"Ambiguous Alternatives Detected: <".concat(b.ambiguityIndices.join(" ,"),"> in <OR").concat(J,">")+" inside <".concat(b.topLevelRule.name,"> Rule,\n")+"<".concat(S,"> may appears as a prefix path in all these alternatives.\n")+"See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES\nFor Further details."},buildEmptyRepetitionError:function(b){var S=(0,se.getProductionDslName)(b.repetition);return 0!==b.repetition.idx&&(S+=b.repetition.idx),"The repetition <".concat(S,"> within Rule <").concat(b.topLevelRule.name,"> can never consume any tokens.\n")+"This could lead to an infinite loop."},buildTokenNameError:function(b){return"deprecated"},buildEmptyAlternationError:function(b){return"Ambiguous empty alternative: <".concat(b.emptyChoiceIdx+1,">")+" in <OR".concat(b.alternation.idx,"> inside <").concat(b.topLevelRule.name,"> Rule.\n")+"Only the last alternative may be an empty alternative."},buildTooManyAlternativesError:function(b){return"An Alternation cannot have more than 256 alternatives:\n"+"<OR".concat(b.alternation.idx,"> inside <").concat(b.topLevelRule.name,"> Rule.\n has ").concat(b.alternation.definition.length+1," alternatives.")},buildLeftRecursionError:function(b){var S=b.topLevelRule.name,J=(0,ne.default)(b.leftRecursionPath,(function(b){return b.name})),ee="".concat(S," --\x3e ").concat(J.concat([S]).join(" --\x3e "));return"Left Recursion found in grammar.\n"+"rule: <".concat(S,"> can be invoked from itself (directly or indirectly)\n")+"without consuming any Tokens. The grammar path that causes this is: \n ".concat(ee,"\n")+" To fix this refactor your grammar to remove the left recursion.\nsee: https://en.wikipedia.org/wiki/LL_parser#Left_factoring."},buildInvalidRuleNameError:function(b){return"deprecated"},buildDuplicateRuleNameError:function(b){var S;return S=b.topLevelRule instanceof oe.Rule?b.topLevelRule.name:b.topLevelRule,"Duplicate definition, rule: ->".concat(S,"<- is already defined in the grammar: ->").concat(b.grammarName,"<-")}}},643:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.EarlyExitException=S.NotAllInputParsedException=S.NoViableAltException=S.MismatchedTokenException=S.isRecognitionException=void 0;var ne=re(J(1886)),ie="MismatchedTokenException",oe="NoViableAltException",se="EarlyExitException",ae="NotAllInputParsedException",ue=[ie,oe,se,ae];Object.freeze(ue),S.isRecognitionException=function(b){return(0,ne.default)(ue,b.name)};var ce=function(b){function e(S,J){var ee=this.constructor,te=b.call(this,S)||this;return te.token=J,te.resyncedTokens=[],Object.setPrototypeOf(te,ee.prototype),Error.captureStackTrace&&Error.captureStackTrace(te,te.constructor),te}return te(e,b),e}(Error),le=function(b){function e(S,J,ee){var te=b.call(this,S,J)||this;return te.previousToken=ee,te.name=ie,te}return te(e,b),e}(ce);S.MismatchedTokenException=le;var pe=function(b){function e(S,J,ee){var te=b.call(this,S,J)||this;return te.previousToken=ee,te.name=oe,te}return te(e,b),e}(ce);S.NoViableAltException=pe;var fe=function(b){function e(S,J){var ee=b.call(this,S,J)||this;return ee.name=ae,ee}return te(e,b),e}(ce);S.NotAllInputParsedException=fe;var de=function(b){function e(S,J,ee){var te=b.call(this,S,J)||this;return te.previousToken=ee,te.name=se,te}return te(e,b),e}(ce);S.EarlyExitException=de},3870:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.checkPrefixAlternativesAmbiguities=S.validateSomeNonEmptyLookaheadPath=S.validateTooManyAlts=S.RepetitionCollector=S.validateAmbiguousAlternationAlternatives=S.validateEmptyOrAlternative=S.getFirstNoneTerminal=S.validateNoLeftRecursion=S.validateRuleIsOverridden=S.validateRuleDoesNotAlreadyExist=S.OccurrenceValidationCollector=S.identifyProductionForDuplicates=S.validateGrammar=void 0;var ne=re(J(3237)),ie=re(J(5455)),oe=re(J(7264)),se=re(J(5676)),ae=re(J(882)),ue=re(J(2070)),ce=re(J(7335)),le=re(J(6760)),pe=re(J(9756)),fe=re(J(3440)),de=re(J(8215)),he=re(J(2208)),me=re(J(8346)),ge=re(J(1886)),ye=re(J(5838)),ve=re(J(4004)),Te=J(2941),be=J(7729),_e=J(4677),Ee=J(9985),Ae=J(7729),we=J(7729),xe=re(J(4934)),ke=re(J(417)),Ce=J(1201);function k(b){return"".concat((0,be.getProductionDslName)(b),"_#_").concat(b.idx,"_#_").concat(L(b))}function L(b){return b instanceof Ae.Terminal?b.terminalType.name:b instanceof Ae.NonTerminal?b.nonTerminalName:""}S.validateGrammar=function(b,S,J,ee,te){var re=(0,ye.default)(b,(function(b){return function(b,S){var J=new Pe;b.accept(J);var ee=J.allProductions,te=(0,fe.default)(ee,k),re=(0,he.default)(te,(function(b){return b.length>1}));return(0,le.default)((0,me.default)(re),(function(J){var ee=(0,ne.default)(J),te=S.buildDuplicateFoundError(b,J),re=(0,be.getProductionDslName)(ee),ie={message:te,type:Te.ParserDefinitionErrorType.DUPLICATE_PRODUCTIONS,ruleName:b.name,dslName:re,occurrence:ee.idx},oe=L(ee);return oe&&(ie.parameter=oe),ie}))}(b,ee)})),oe=(0,ye.default)(b,(function(b){return D(b,b,ee)})),se=[],ae=[],ue=[];(0,ie.default)(oe)&&(se=(0,ye.default)(b,(function(b){return j(b,ee)})),ae=(0,ye.default)(b,(function(b){return U(b,S,ee)})),ue=W(b,S,ee));var ce=function(b,S,J){var ee=[],te=(0,le.default)(S,(function(b){return b.name}));return(0,pe.default)(b,(function(b){var S=b.name;if((0,ge.default)(te,S)){var re=J.buildNamespaceConflictError(b);ee.push({message:re,type:Te.ParserDefinitionErrorType.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:S})}})),ee}(b,J,ee),de=(0,ye.default)(b,(function(b){return G(b,ee)})),ve=(0,ye.default)(b,(function(S){return M(S,b,te,ee)}));return re.concat(ue,oe,se,ae,ce,de,ve)},S.identifyProductionForDuplicates=k;var Pe=function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.allProductions=[],S}return te(e,b),e.prototype.visitNonTerminal=function(b){this.allProductions.push(b)},e.prototype.visitOption=function(b){this.allProductions.push(b)},e.prototype.visitRepetitionWithSeparator=function(b){this.allProductions.push(b)},e.prototype.visitRepetitionMandatory=function(b){this.allProductions.push(b)},e.prototype.visitRepetitionMandatoryWithSeparator=function(b){this.allProductions.push(b)},e.prototype.visitRepetition=function(b){this.allProductions.push(b)},e.prototype.visitAlternation=function(b){this.allProductions.push(b)},e.prototype.visitTerminal=function(b){this.allProductions.push(b)},e}(we.GAstVisitor);function M(b,S,J,ee){var te=[];if((0,de.default)(S,(function(S,J){return J.name===b.name?S+1:S}),0)>1){var re=ee.buildDuplicateRuleNameError({topLevelRule:b,grammarName:J});te.push({message:re,type:Te.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:b.name})}return te}function D(b,S,J,ee){void 0===ee&&(ee=[]);var te=[],re=w(S.definition);if((0,ie.default)(re))return[];var ne=b.name;(0,ge.default)(re,b)&&te.push({message:J.buildLeftRecursionError({topLevelRule:b,leftRecursionPath:ee}),type:Te.ParserDefinitionErrorType.LEFT_RECURSION,ruleName:ne});var oe=(0,ce.default)(re,ee.concat([b])),se=(0,ye.default)(oe,(function(S){var te=(0,ve.default)(ee);return te.push(S),D(b,S,J,te)}));return te.concat(se)}function w(b){var S=[];if((0,ie.default)(b))return S;var J=(0,ne.default)(b);if(J instanceof Ae.NonTerminal)S.push(J.referencedRule);else if(J instanceof Ae.Alternative||J instanceof Ae.Option||J instanceof Ae.RepetitionMandatory||J instanceof Ae.RepetitionMandatoryWithSeparator||J instanceof Ae.RepetitionWithSeparator||J instanceof Ae.Repetition)S=S.concat(w(J.definition));else if(J instanceof Ae.Alternation)S=(0,se.default)((0,le.default)(J.definition,(function(b){return w(b.definition)})));else if(!(J instanceof Ae.Terminal))throw Error("non exhaustive match");var ee=(0,be.isOptionalProd)(J),te=b.length>1;if(ee&&te){var re=(0,oe.default)(b);return S.concat(w(re))}return S}S.OccurrenceValidationCollector=Pe,S.validateRuleDoesNotAlreadyExist=M,S.validateRuleIsOverridden=function(b,S,J){var ee,te=[];return(0,ge.default)(S,b)||(ee="Invalid rule override, rule: ->".concat(b,"<- cannot be overridden in the grammar: ->").concat(J,"<-")+"as it is not defined in any of the super grammars ",te.push({message:ee,type:Te.ParserDefinitionErrorType.INVALID_RULE_OVERRIDE,ruleName:b})),te},S.validateNoLeftRecursion=D,S.getFirstNoneTerminal=w;var Se=function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.alternations=[],S}return te(e,b),e.prototype.visitAlternation=function(b){this.alternations.push(b)},e}(we.GAstVisitor);function j(b,S){var J=new Se;b.accept(J);var ee=J.alternations;return(0,ye.default)(ee,(function(J){var ee=(0,xe.default)(J.definition);return(0,ye.default)(ee,(function(ee,te){var re=(0,Ee.nextPossibleTokensAfter)([ee],[],Ce.tokenStructuredMatcher,1);return(0,ie.default)(re)?[{message:S.buildEmptyAlternationError({topLevelRule:b,alternation:J,emptyChoiceIdx:te}),type:Te.ParserDefinitionErrorType.NONE_LAST_EMPTY_ALT,ruleName:b.name,occurrence:J.idx,alternative:te+1}]:[]}))}))}function U(b,S,J){var ee=new Se;b.accept(ee);var te=ee.alternations;return te=(0,ue.default)(te,(function(b){return!0===b.ignoreAmbiguities})),(0,ye.default)(te,(function(ee){var te=ee.idx,re=ee.maxLookahead||S,ne=(0,_e.getLookaheadPathsForOr)(te,b,re,ee),ie=function(b,S,J,ee){var te=[],re=(0,de.default)(b,(function(J,ee,re){return!0===S.definition[re].ignoreAmbiguities||(0,pe.default)(ee,(function(ee){var ne=[re];(0,pe.default)(b,(function(b,J){re!==J&&(0,_e.containsPath)(b,ee)&&!0!==S.definition[J].ignoreAmbiguities&&ne.push(J)})),ne.length>1&&!(0,_e.containsPath)(te,ee)&&(te.push(ee),J.push({alts:ne,path:ee}))})),J}),[]);return(0,le.default)(re,(function(b){var te=(0,le.default)(b.alts,(function(b){return b+1}));return{message:ee.buildAlternationAmbiguityError({topLevelRule:J,alternation:S,ambiguityIndices:te,prefixPath:b.path}),type:Te.ParserDefinitionErrorType.AMBIGUOUS_ALTS,ruleName:J.name,occurrence:S.idx,alternatives:b.alts}}))}(ne,ee,b,J),oe=V(ne,ee,b,J);return ie.concat(oe)}))}S.validateEmptyOrAlternative=j,S.validateAmbiguousAlternationAlternatives=U;var Ie=function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.allProductions=[],S}return te(e,b),e.prototype.visitRepetitionWithSeparator=function(b){this.allProductions.push(b)},e.prototype.visitRepetitionMandatory=function(b){this.allProductions.push(b)},e.prototype.visitRepetitionMandatoryWithSeparator=function(b){this.allProductions.push(b)},e.prototype.visitRepetition=function(b){this.allProductions.push(b)},e}(we.GAstVisitor);function G(b,S){var J=new Se;b.accept(J);var ee=J.alternations;return(0,ye.default)(ee,(function(J){return J.definition.length>255?[{message:S.buildTooManyAlternativesError({topLevelRule:b,alternation:J}),type:Te.ParserDefinitionErrorType.TOO_MANY_ALTS,ruleName:b.name,occurrence:J.idx}]:[]}))}function W(b,S,J){var ee=[];return(0,pe.default)(b,(function(b){var te=new Ie;b.accept(te);var re=te.allProductions;(0,pe.default)(re,(function(te){var re=(0,_e.getProdType)(te),ne=te.maxLookahead||S,oe=te.idx,ae=(0,_e.getLookaheadPathsForOptionalProd)(oe,b,re,ne)[0];if((0,ie.default)((0,se.default)(ae))){var ue=J.buildEmptyRepetitionError({topLevelRule:b,repetition:te});ee.push({message:ue,type:Te.ParserDefinitionErrorType.NO_NON_EMPTY_LOOKAHEAD,ruleName:b.name})}}))})),ee}function V(b,S,J,ee){var te=(0,de.default)(b,(function(b,S,J){var ee=(0,le.default)(S,(function(b){return{idx:J,path:b}}));return b.concat(ee)}),[]);return(0,ke.default)((0,ye.default)(te,(function(b){if(!0===S.definition[b.idx].ignoreAmbiguities)return[];var re=b.idx,ne=b.path,ie=(0,ae.default)(te,(function(b){return!0!==S.definition[b.idx].ignoreAmbiguities&&b.idx<re&&(0,_e.isStrictPrefixOfPath)(b.path,ne)}));return(0,le.default)(ie,(function(b){var te=[b.idx+1,re+1],ne=0===S.idx?"":S.idx;return{message:ee.buildAlternationPrefixAmbiguityError({topLevelRule:J,alternation:S,ambiguityIndices:te,prefixPath:b.path}),type:Te.ParserDefinitionErrorType.AMBIGUOUS_PREFIX_ALTS,ruleName:J.name,occurrence:ne,alternatives:te}}))})))}S.RepetitionCollector=Ie,S.validateTooManyAlts=G,S.validateSomeNonEmptyLookaheadPath=W,S.checkPrefixAlternativesAmbiguities=V},8052:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.firstForTerminal=S.firstForBranching=S.firstForSequence=S.first=void 0;var te=ee(J(5676)),re=ee(J(5652)),ne=ee(J(6760)),ie=J(7729),oe=J(7729);function c(b){if(b instanceof ie.NonTerminal)return c(b.referencedRule);if(b instanceof ie.Terminal)return p(b);if((0,oe.isSequenceProd)(b))return l(b);if((0,oe.isBranchingProd)(b))return f(b);throw Error("non exhaustive match")}function l(b){for(var S,J=[],ee=b.definition,te=0,ne=ee.length>te,ie=!0;ne&&ie;)S=ee[te],ie=(0,oe.isOptionalProd)(S),J=J.concat(c(S)),te+=1,ne=ee.length>te;return(0,re.default)(J)}function f(b){var S=(0,ne.default)(b.definition,(function(b){return c(b)}));return(0,re.default)((0,te.default)(S))}function p(b){return[b.terminalType]}S.first=c,S.firstForSequence=l,S.firstForBranching=f,S.firstForTerminal=p},4917:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.buildInProdFollowPrefix=S.buildBetweenProdsFollowPrefix=S.computeAllProdsFollows=S.ResyncFollowsWalker=void 0;var ne=J(8567),ie=J(8052),oe=re(J(9756)),se=re(J(19)),ae=J(3710),ue=J(7729),ce=function(b){function e(S){var J=b.call(this)||this;return J.topProd=S,J.follows={},J}return te(e,b),e.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},e.prototype.walkTerminal=function(b,S,J){},e.prototype.walkProdRef=function(b,S,J){var ee=d(b.referencedRule,b.idx)+this.topProd.name,te=S.concat(J),re=new ue.Alternative({definition:te}),ne=(0,ie.first)(re);this.follows[ee]=ne},e}(ne.RestWalker);function d(b,S){return b.name+S+ae.IN}S.ResyncFollowsWalker=ce,S.computeAllProdsFollows=function(b){var S={};return(0,oe.default)(b,(function(b){var J=new ce(b).startWalking();(0,se.default)(S,J)})),S},S.buildBetweenProdsFollowPrefix=d,S.buildInProdFollowPrefix=function(b){return b.terminalType.name+b.idx+ae.IN}},1665:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.validateGrammar=S.resolveGrammar=void 0;var te=ee(J(9756)),re=ee(J(4573)),ne=J(6304),ie=J(3870),oe=J(1007);S.resolveGrammar=function(b){var S=(0,re.default)(b,{errMsgProvider:oe.defaultGrammarResolverErrorProvider}),J={};return(0,te.default)(b.rules,(function(b){J[b.name]=b})),(0,ne.resolveGrammar)(J,S.errMsgProvider)},S.validateGrammar=function(b){return b=(0,re.default)(b,{errMsgProvider:oe.defaultGrammarValidatorErrorProvider}),(0,ie.validateGrammar)(b.rules,b.maxLookahead,b.tokenTypes,b.errMsgProvider,b.grammarName)}},9985:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.nextPossibleTokensAfter=S.possiblePathsFrom=S.NextTerminalAfterAtLeastOneSepWalker=S.NextTerminalAfterAtLeastOneWalker=S.NextTerminalAfterManySepWalker=S.NextTerminalAfterManyWalker=S.AbstractNextTerminalAfterProductionWalker=S.NextAfterTokenWalker=S.AbstractNextPossibleTokensWalker=void 0;var ne=J(8567),ie=re(J(3237)),oe=re(J(5455)),se=re(J(4934)),ae=re(J(7264)),ue=re(J(6974)),ce=re(J(9756)),le=re(J(4004)),pe=J(8052),fe=J(7729),de=function(b){function e(S,J){var ee=b.call(this)||this;return ee.topProd=S,ee.path=J,ee.possibleTokTypes=[],ee.nextProductionName="",ee.nextProductionOccurrence=0,ee.found=!1,ee.isAtEndOfPath=!1,ee}return te(e,b),e.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=(0,le.default)(this.path.ruleStack).reverse(),this.occurrenceStack=(0,le.default)(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},e.prototype.walk=function(S,J){void 0===J&&(J=[]),this.found||b.prototype.walk.call(this,S,J)},e.prototype.walkProdRef=function(b,S,J){if(b.referencedRule.name===this.nextProductionName&&b.idx===this.nextProductionOccurrence){var ee=S.concat(J);this.updateExpectedNext(),this.walk(b.referencedRule,ee)}},e.prototype.updateExpectedNext=function(){(0,oe.default)(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},e}(ne.RestWalker);S.AbstractNextPossibleTokensWalker=de;var he=function(b){function e(S,J){var ee=b.call(this,S,J)||this;return ee.path=J,ee.nextTerminalName="",ee.nextTerminalOccurrence=0,ee.nextTerminalName=ee.path.lastTok.name,ee.nextTerminalOccurrence=ee.path.lastTokOccurrence,ee}return te(e,b),e.prototype.walkTerminal=function(b,S,J){if(this.isAtEndOfPath&&b.terminalType.name===this.nextTerminalName&&b.idx===this.nextTerminalOccurrence&&!this.found){var ee=S.concat(J),te=new fe.Alternative({definition:ee});this.possibleTokTypes=(0,pe.first)(te),this.found=!0}},e}(de);S.NextAfterTokenWalker=he;var me=function(b){function e(S,J){var ee=b.call(this)||this;return ee.topRule=S,ee.occurrence=J,ee.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},ee}return te(e,b),e.prototype.startWalking=function(){return this.walk(this.topRule),this.result},e}(ne.RestWalker);S.AbstractNextTerminalAfterProductionWalker=me;var ge=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}return te(e,b),e.prototype.walkMany=function(S,J,ee){if(S.idx===this.occurrence){var te=(0,ie.default)(J.concat(ee));this.result.isEndOfRule=void 0===te,te instanceof fe.Terminal&&(this.result.token=te.terminalType,this.result.occurrence=te.idx)}else b.prototype.walkMany.call(this,S,J,ee)},e}(me);S.NextTerminalAfterManyWalker=ge;var ye=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}return te(e,b),e.prototype.walkManySep=function(S,J,ee){if(S.idx===this.occurrence){var te=(0,ie.default)(J.concat(ee));this.result.isEndOfRule=void 0===te,te instanceof fe.Terminal&&(this.result.token=te.terminalType,this.result.occurrence=te.idx)}else b.prototype.walkManySep.call(this,S,J,ee)},e}(me);S.NextTerminalAfterManySepWalker=ye;var ve=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}return te(e,b),e.prototype.walkAtLeastOne=function(S,J,ee){if(S.idx===this.occurrence){var te=(0,ie.default)(J.concat(ee));this.result.isEndOfRule=void 0===te,te instanceof fe.Terminal&&(this.result.token=te.terminalType,this.result.occurrence=te.idx)}else b.prototype.walkAtLeastOne.call(this,S,J,ee)},e}(me);S.NextTerminalAfterAtLeastOneWalker=ve;var Te=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}return te(e,b),e.prototype.walkAtLeastOneSep=function(S,J,ee){if(S.idx===this.occurrence){var te=(0,ie.default)(J.concat(ee));this.result.isEndOfRule=void 0===te,te instanceof fe.Terminal&&(this.result.token=te.terminalType,this.result.occurrence=te.idx)}else b.prototype.walkAtLeastOneSep.call(this,S,J,ee)},e}(me);function R(b,S,J,ee){var te=(0,le.default)(J);te.push(b.name);var re=(0,le.default)(ee);return re.push(1),{idx:S,def:b.definition,ruleStack:te,occurrenceStack:re}}S.NextTerminalAfterAtLeastOneSepWalker=Te,S.possiblePathsFrom=function t(b,S,J){void 0===J&&(J=[]),J=(0,le.default)(J);var ee=[],te=0;function a(re){var ne=t(re.concat((0,ae.default)(b,te+1)),S,J);return ee.concat(ne)}for(;J.length<S&&te<b.length;){var re=b[te];if(re instanceof fe.Alternative)return a(re.definition);if(re instanceof fe.NonTerminal)return a(re.definition);if(re instanceof fe.Option)ee=a(re.definition);else{if(re instanceof fe.RepetitionMandatory)return a(ne=re.definition.concat([new fe.Repetition({definition:re.definition})]));if(re instanceof fe.RepetitionMandatoryWithSeparator)return a(ne=[new fe.Alternative({definition:re.definition}),new fe.Repetition({definition:[new fe.Terminal({terminalType:re.separator})].concat(re.definition)})]);if(re instanceof fe.RepetitionWithSeparator){var ne=re.definition.concat([new fe.Repetition({definition:[new fe.Terminal({terminalType:re.separator})].concat(re.definition)})]);ee=a(ne)}else if(re instanceof fe.Repetition)ne=re.definition.concat([new fe.Repetition({definition:re.definition})]),ee=a(ne);else{if(re instanceof fe.Alternation)return(0,ce.default)(re.definition,(function(b){!1===(0,oe.default)(b.definition)&&(ee=a(b.definition))})),ee;if(!(re instanceof fe.Terminal))throw Error("non exhaustive match");J.push(re.terminalType)}}te++}return ee.push({partialPath:J,suffixDef:(0,ae.default)(b,te)}),ee},S.nextPossibleTokensAfter=function(b,S,J,ee){var te="EXIT_NONE_TERMINAL",re=[te],ne="EXIT_ALTERNATIVE",ie=!1,ce=S.length,pe=ce-ee-1,de=[],he=[];for(he.push({idx:-1,def:b,ruleStack:[],occurrenceStack:[]});!(0,oe.default)(he);){var me=he.pop();if(me!==ne){var ge=me.def,ye=me.idx,ve=me.ruleStack,Te=me.occurrenceStack;if(!(0,oe.default)(ge)){var be=ge[0];if(be===te){var _e={idx:ye,def:(0,ae.default)(ge),ruleStack:(0,se.default)(ve),occurrenceStack:(0,se.default)(Te)};he.push(_e)}else if(be instanceof fe.Terminal)if(ye<ce-1){var Ee=ye+1;J(S[Ee],be.terminalType)&&(_e={idx:Ee,def:(0,ae.default)(ge),ruleStack:ve,occurrenceStack:Te},he.push(_e))}else{if(ye!==ce-1)throw Error("non exhaustive match");de.push({nextTokenType:be.terminalType,nextTokenOccurrence:be.idx,ruleStack:ve,occurrenceStack:Te}),ie=!0}else if(be instanceof fe.NonTerminal){var Ae=(0,le.default)(ve);Ae.push(be.nonTerminalName);var we=(0,le.default)(Te);we.push(be.idx),_e={idx:ye,def:be.definition.concat(re,(0,ae.default)(ge)),ruleStack:Ae,occurrenceStack:we},he.push(_e)}else if(be instanceof fe.Option){var xe={idx:ye,def:(0,ae.default)(ge),ruleStack:ve,occurrenceStack:Te};he.push(xe),he.push(ne);var ke={idx:ye,def:be.definition.concat((0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te};he.push(ke)}else if(be instanceof fe.RepetitionMandatory){var Ce=new fe.Repetition({definition:be.definition,idx:be.idx});_e={idx:ye,def:be.definition.concat([Ce],(0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te},he.push(_e)}else if(be instanceof fe.RepetitionMandatoryWithSeparator){var Pe=new fe.Terminal({terminalType:be.separator});Ce=new fe.Repetition({definition:[Pe].concat(be.definition),idx:be.idx}),_e={idx:ye,def:be.definition.concat([Ce],(0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te},he.push(_e)}else if(be instanceof fe.RepetitionWithSeparator){xe={idx:ye,def:(0,ae.default)(ge),ruleStack:ve,occurrenceStack:Te},he.push(xe),he.push(ne),Pe=new fe.Terminal({terminalType:be.separator});var Se=new fe.Repetition({definition:[Pe].concat(be.definition),idx:be.idx});ke={idx:ye,def:be.definition.concat([Se],(0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te},he.push(ke)}else if(be instanceof fe.Repetition)xe={idx:ye,def:(0,ae.default)(ge),ruleStack:ve,occurrenceStack:Te},he.push(xe),he.push(ne),Se=new fe.Repetition({definition:be.definition,idx:be.idx}),ke={idx:ye,def:be.definition.concat([Se],(0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te},he.push(ke);else if(be instanceof fe.Alternation)for(var Ie=be.definition.length-1;Ie>=0;Ie--){var De={idx:ye,def:be.definition[Ie].definition.concat((0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te};he.push(De),he.push(ne)}else if(be instanceof fe.Alternative)he.push({idx:ye,def:be.definition.concat((0,ae.default)(ge)),ruleStack:ve,occurrenceStack:Te});else{if(!(be instanceof fe.Rule))throw Error("non exhaustive match");he.push(R(be,ye,ve,Te))}}}else ie&&(0,ue.default)(he).idx<=pe&&he.pop()}return de}},8209:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.getKeyForAutomaticLookahead=S.AT_LEAST_ONE_SEP_IDX=S.MANY_SEP_IDX=S.AT_LEAST_ONE_IDX=S.MANY_IDX=S.OPTION_IDX=S.OR_IDX=S.BITS_FOR_ALT_IDX=S.BITS_FOR_RULE_IDX=S.BITS_FOR_OCCURRENCE_IDX=S.BITS_FOR_METHOD_TYPE=void 0,S.BITS_FOR_METHOD_TYPE=4,S.BITS_FOR_OCCURRENCE_IDX=8,S.BITS_FOR_RULE_IDX=12,S.BITS_FOR_ALT_IDX=8,S.OR_IDX=1<<S.BITS_FOR_OCCURRENCE_IDX,S.OPTION_IDX=2<<S.BITS_FOR_OCCURRENCE_IDX,S.MANY_IDX=3<<S.BITS_FOR_OCCURRENCE_IDX,S.AT_LEAST_ONE_IDX=4<<S.BITS_FOR_OCCURRENCE_IDX,S.MANY_SEP_IDX=5<<S.BITS_FOR_OCCURRENCE_IDX,S.AT_LEAST_ONE_SEP_IDX=6<<S.BITS_FOR_OCCURRENCE_IDX,S.getKeyForAutomaticLookahead=function(b,S,J){return J|S|b},S.BITS_FOR_ALT_IDX},4677:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.areTokenCategoriesNotUsed=S.isStrictPrefixOfPath=S.containsPath=S.getLookaheadPathsForOptionalProd=S.getLookaheadPathsForOr=S.lookAheadSequenceFromAlternatives=S.buildSingleAlternativeLookaheadFunction=S.buildAlternativesLookAheadFunc=S.buildLookaheadFuncForOptionalProd=S.buildLookaheadFuncForOr=S.getProdType=S.PROD_TYPE=void 0;var ne,ie=re(J(5455)),oe=re(J(5676)),se=re(J(9794)),ae=re(J(6760)),ue=re(J(9756)),ce=re(J(3352)),le=re(J(8215)),pe=J(9985),fe=J(8567),de=J(1201),he=J(7729),me=J(7729);!function(b){b[b.OPTION=0]="OPTION",b[b.REPETITION=1]="REPETITION",b[b.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",b[b.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",b[b.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",b[b.ALTERNATION=5]="ALTERNATION"}(ne=S.PROD_TYPE||(S.PROD_TYPE={})),S.getProdType=function(b){if(b instanceof he.Option)return ne.OPTION;if(b instanceof he.Repetition)return ne.REPETITION;if(b instanceof he.RepetitionMandatory)return ne.REPETITION_MANDATORY;if(b instanceof he.RepetitionMandatoryWithSeparator)return ne.REPETITION_MANDATORY_WITH_SEPARATOR;if(b instanceof he.RepetitionWithSeparator)return ne.REPETITION_WITH_SEPARATOR;if(b instanceof he.Alternation)return ne.ALTERNATION;throw Error("non exhaustive match")},S.buildLookaheadFuncForOr=function(b,S,J,ee,te,re){var ne=I(b,S,J);return re(ne,ee,P(ne)?de.tokenStructuredMatcherNoCategories:de.tokenStructuredMatcher,te)},S.buildLookaheadFuncForOptionalProd=function(b,S,J,ee,te,re){var ne=x(b,S,te,J),ie=P(ne)?de.tokenStructuredMatcherNoCategories:de.tokenStructuredMatcher;return re(ne[0],ie,ee)},S.buildAlternativesLookAheadFunc=function(b,S,J,ee){var te=b.length,re=(0,se.default)(b,(function(b){return(0,se.default)(b,(function(b){return 1===b.length}))}));if(S)return function(S){for(var ee=(0,ae.default)(S,(function(b){return b.GATE})),re=0;re<te;re++){var ne=b[re],ie=ne.length,oe=ee[re];if(void 0===oe||!1!==oe.call(this))e:for(var se=0;se<ie;se++){for(var ue=ne[se],ce=ue.length,le=0;le<ce;le++){var pe=this.LA(le+1);if(!1===J(pe,ue[le]))continue e}return re}}};if(re&&!ee){var ne=(0,ae.default)(b,(function(b){return(0,oe.default)(b)})),ie=(0,le.default)(ne,(function(b,S,J){return(0,ue.default)(S,(function(S){(0,ce.default)(b,S.tokenTypeIdx)||(b[S.tokenTypeIdx]=J),(0,ue.default)(S.categoryMatches,(function(S){(0,ce.default)(b,S)||(b[S]=J)}))})),b}),{});return function(){var b=this.LA(1);return ie[b.tokenTypeIdx]}}return function(){for(var S=0;S<te;S++){var ee=b[S],re=ee.length;e:for(var ne=0;ne<re;ne++){for(var ie=ee[ne],oe=ie.length,se=0;se<oe;se++){var ae=this.LA(se+1);if(!1===J(ae,ie[se]))continue e}return S}}}},S.buildSingleAlternativeLookaheadFunction=function(b,S,J){var ee=(0,se.default)(b,(function(b){return 1===b.length})),te=b.length;if(ee&&!J){var re=(0,oe.default)(b);if(1===re.length&&(0,ie.default)(re[0].categoryMatches)){var ne=re[0].tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===ne}}var ae=(0,le.default)(re,(function(b,S,J){return b[S.tokenTypeIdx]=!0,(0,ue.default)(S.categoryMatches,(function(S){b[S]=!0})),b}),[]);return function(){var b=this.LA(1);return!0===ae[b.tokenTypeIdx]}}return function(){e:for(var J=0;J<te;J++){for(var ee=b[J],re=ee.length,ne=0;ne<re;ne++){var ie=this.LA(ne+1);if(!1===S(ie,ee[ne]))continue e}return!0}return!1}};var ge=function(b){function e(S,J,ee){var te=b.call(this)||this;return te.topProd=S,te.targetOccurrence=J,te.targetProdType=ee,te}return te(e,b),e.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},e.prototype.checkIsTarget=function(b,S,J,ee){return b.idx===this.targetOccurrence&&this.targetProdType===S&&(this.restDef=J.concat(ee),!0)},e.prototype.walkOption=function(S,J,ee){this.checkIsTarget(S,ne.OPTION,J,ee)||b.prototype.walkOption.call(this,S,J,ee)},e.prototype.walkAtLeastOne=function(S,J,ee){this.checkIsTarget(S,ne.REPETITION_MANDATORY,J,ee)||b.prototype.walkOption.call(this,S,J,ee)},e.prototype.walkAtLeastOneSep=function(S,J,ee){this.checkIsTarget(S,ne.REPETITION_MANDATORY_WITH_SEPARATOR,J,ee)||b.prototype.walkOption.call(this,S,J,ee)},e.prototype.walkMany=function(S,J,ee){this.checkIsTarget(S,ne.REPETITION,J,ee)||b.prototype.walkOption.call(this,S,J,ee)},e.prototype.walkManySep=function(S,J,ee){this.checkIsTarget(S,ne.REPETITION_WITH_SEPARATOR,J,ee)||b.prototype.walkOption.call(this,S,J,ee)},e}(fe.RestWalker),ye=function(b){function e(S,J,ee){var te=b.call(this)||this;return te.targetOccurrence=S,te.targetProdType=J,te.targetRef=ee,te.result=[],te}return te(e,b),e.prototype.checkIsTarget=function(b,S){b.idx!==this.targetOccurrence||this.targetProdType!==S||void 0!==this.targetRef&&b!==this.targetRef||(this.result=b.definition)},e.prototype.visitOption=function(b){this.checkIsTarget(b,ne.OPTION)},e.prototype.visitRepetition=function(b){this.checkIsTarget(b,ne.REPETITION)},e.prototype.visitRepetitionMandatory=function(b){this.checkIsTarget(b,ne.REPETITION_MANDATORY)},e.prototype.visitRepetitionMandatoryWithSeparator=function(b){this.checkIsTarget(b,ne.REPETITION_MANDATORY_WITH_SEPARATOR)},e.prototype.visitRepetitionWithSeparator=function(b){this.checkIsTarget(b,ne.REPETITION_WITH_SEPARATOR)},e.prototype.visitAlternation=function(b){this.checkIsTarget(b,ne.ALTERNATION)},e}(me.GAstVisitor);function g(b){for(var S=new Array(b),J=0;J<b;J++)S[J]=[];return S}function O(b){for(var S=[""],J=0;J<b.length;J++){for(var ee=b[J],te=[],re=0;re<S.length;re++){var ne=S[re];te.push(ne+"_"+ee.tokenTypeIdx);for(var ie=0;ie<ee.categoryMatches.length;ie++){var oe="_"+ee.categoryMatches[ie];te.push(ne+oe)}}S=te}return S}function R(b,S,J){for(var ee=0;ee<b.length;ee++)if(ee!==J)for(var te=b[ee],re=0;re<S.length;re++)if(!0===te[S[re]])return!1;return!0}function A(b,S){for(var J=(0,ae.default)(b,(function(b){return(0,pe.possiblePathsFrom)([b],1)})),ee=g(J.length),te=(0,ae.default)(J,(function(b){var S={};return(0,ue.default)(b,(function(b){var J=O(b.partialPath);(0,ue.default)(J,(function(b){S[b]=!0}))})),S})),re=J,ne=1;ne<=S;ne++){var oe=re;re=g(oe.length);for(var c=function(b){for(var J=oe[b],se=0;se<J.length;se++){var ae=J[se].partialPath,ce=J[se].suffixDef,le=O(ae);if(R(te,le,b)||(0,ie.default)(ce)||ae.length===S){var fe=ee[b];if(!1===N(fe,ae)){fe.push(ae);for(var de=0;de<le.length;de++){var he=le[de];te[b][he]=!0}}}else{var me=(0,pe.possiblePathsFrom)(ce,ne+1,ae);re[b]=re[b].concat(me),(0,ue.default)(me,(function(S){var J=O(S.partialPath);(0,ue.default)(J,(function(S){te[b][S]=!0}))}))}}},se=0;se<oe.length;se++)c(se)}return ee}function I(b,S,J,ee){var te=new ye(b,ne.ALTERNATION,ee);return S.accept(te),A(te.result,J)}function x(b,S,J,ee){var te=new ye(b,J);S.accept(te);var re=te.result,ne=new ge(S,b,J).startWalking();return A([new he.Alternative({definition:re}),new he.Alternative({definition:ne})],ee)}function N(b,S){e:for(var J=0;J<b.length;J++){var ee=b[J];if(ee.length===S.length){for(var te=0;te<ee.length;te++){var re=S[te],ne=ee[te];if(!1==(re===ne||void 0!==ne.categoryMatchesMap[re.tokenTypeIdx]))continue e}return!0}}return!1}function P(b){return(0,se.default)(b,(function(b){return(0,se.default)(b,(function(b){return(0,se.default)(b,(function(b){return(0,ie.default)(b.categoryMatches)}))}))}))}S.lookAheadSequenceFromAlternatives=A,S.getLookaheadPathsForOr=I,S.getLookaheadPathsForOptionalProd=x,S.containsPath=N,S.isStrictPrefixOfPath=function(b,S){return b.length<S.length&&(0,se.default)(b,(function(b,J){var ee=S[J];return b===ee||ee.categoryMatchesMap[b.tokenTypeIdx]}))},S.areTokenCategoriesNotUsed=P},6304:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.GastRefResolverVisitor=S.resolveGrammar=void 0;var ne=J(2941),ie=re(J(9756)),oe=re(J(8346)),se=J(7729);S.resolveGrammar=function(b,S){var J=new ae(b,S);return J.resolveRefs(),J.errors};var ae=function(b){function e(S,J){var ee=b.call(this)||this;return ee.nameToTopRule=S,ee.errMsgProvider=J,ee.errors=[],ee}return te(e,b),e.prototype.resolveRefs=function(){var b=this;(0,ie.default)((0,oe.default)(this.nameToTopRule),(function(S){b.currTopLevel=S,S.accept(b)}))},e.prototype.visitNonTerminal=function(b){var S=this.nameToTopRule[b.nonTerminalName];if(S)b.referencedRule=S;else{var J=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,b);this.errors.push({message:J,type:ne.ParserDefinitionErrorType.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:b.nonTerminalName})}},e}(se.GAstVisitor);S.GastRefResolverVisitor=ae},8567:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.RestWalker=void 0;var te=ee(J(7264)),re=ee(J(9756)),ne=J(7729),ie=function(){function t(){}return t.prototype.walk=function(b,S){var J=this;void 0===S&&(S=[]),(0,re.default)(b.definition,(function(ee,re){var ie=(0,te.default)(b.definition,re+1);if(ee instanceof ne.NonTerminal)J.walkProdRef(ee,ie,S);else if(ee instanceof ne.Terminal)J.walkTerminal(ee,ie,S);else if(ee instanceof ne.Alternative)J.walkFlat(ee,ie,S);else if(ee instanceof ne.Option)J.walkOption(ee,ie,S);else if(ee instanceof ne.RepetitionMandatory)J.walkAtLeastOne(ee,ie,S);else if(ee instanceof ne.RepetitionMandatoryWithSeparator)J.walkAtLeastOneSep(ee,ie,S);else if(ee instanceof ne.RepetitionWithSeparator)J.walkManySep(ee,ie,S);else if(ee instanceof ne.Repetition)J.walkMany(ee,ie,S);else{if(!(ee instanceof ne.Alternation))throw Error("non exhaustive match");J.walkOr(ee,ie,S)}}))},t.prototype.walkTerminal=function(b,S,J){},t.prototype.walkProdRef=function(b,S,J){},t.prototype.walkFlat=function(b,S,J){var ee=S.concat(J);this.walk(b,ee)},t.prototype.walkOption=function(b,S,J){var ee=S.concat(J);this.walk(b,ee)},t.prototype.walkAtLeastOne=function(b,S,J){var ee=[new ne.Option({definition:b.definition})].concat(S,J);this.walk(b,ee)},t.prototype.walkAtLeastOneSep=function(b,S,J){var ee=u(b,S,J);this.walk(b,ee)},t.prototype.walkMany=function(b,S,J){var ee=[new ne.Option({definition:b.definition})].concat(S,J);this.walk(b,ee)},t.prototype.walkManySep=function(b,S,J){var ee=u(b,S,J);this.walk(b,ee)},t.prototype.walkOr=function(b,S,J){var ee=this,te=S.concat(J);(0,re.default)(b.definition,(function(b){var S=new ne.Alternative({definition:[b]});ee.walk(S,te)}))},t}();function u(b,S,J){return[new ne.Option({definition:[new ne.Terminal({terminalType:b.separator})].concat(b.definition)})].concat(S,J)}S.RestWalker=ie},2941:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.EmbeddedActionsParser=S.CstParser=S.Parser=S.EMPTY_ALT=S.ParserDefinitionErrorType=S.DEFAULT_RULE_CONFIG=S.DEFAULT_PARSER_CONFIG=S.END_OF_FILE=void 0;var ne,ie=re(J(5455)),oe=re(J(6760)),se=re(J(9756)),ae=re(J(8346)),ue=re(J(3352)),ce=re(J(4004)),le=J(7146),pe=J(4917),fe=J(6736),de=J(1007),he=J(1665),me=J(9992),ge=J(161),ye=J(3225),ve=J(598),Te=J(8503),be=J(3273),_e=J(9464),Ee=J(1625),Ae=J(6688),we=J(146),xe=J(4803);S.END_OF_FILE=(0,fe.createTokenInstance)(fe.EOF,"",NaN,NaN,NaN,NaN,NaN,NaN),Object.freeze(S.END_OF_FILE),S.DEFAULT_PARSER_CONFIG=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:de.defaultParserErrorProvider,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),S.DEFAULT_RULE_CONFIG=Object.freeze({recoveryValueFunc:function(){},resyncEnabled:!0}),(ne=S.ParserDefinitionErrorType||(S.ParserDefinitionErrorType={}))[ne.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",ne[ne.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",ne[ne.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",ne[ne.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",ne[ne.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",ne[ne.LEFT_RECURSION=5]="LEFT_RECURSION",ne[ne.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",ne[ne.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",ne[ne.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",ne[ne.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",ne[ne.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",ne[ne.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",ne[ne.TOO_MANY_ALTS=12]="TOO_MANY_ALTS",S.EMPTY_ALT=function(b){return void 0===b&&(b=void 0),function(){return b}};var ke=function(){function t(b,J){this.definitionErrors=[],this.selfAnalysisDone=!1;var ee=this;if(ee.initErrorHandler(J),ee.initLexerAdapter(),ee.initLooksAhead(J),ee.initRecognizerEngine(b,J),ee.initRecoverable(J),ee.initTreeBuilder(J),ee.initContentAssist(),ee.initGastRecorder(J),ee.initPerformanceTracer(J),(0,ue.default)(J,"ignoredIssues"))throw new Error("The <ignoredIssues> IParserConfig property has been deprecated.\n\tPlease use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.\n\tSee: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n\tFor further details.");this.skipValidations=(0,ue.default)(J,"skipValidations")?J.skipValidations:S.DEFAULT_PARSER_CONFIG.skipValidations}return t.performSelfAnalysis=function(b){throw Error("The **static** `performSelfAnalysis` method has been deprecated.\t\nUse the **instance** method with the same name instead.")},t.prototype.performSelfAnalysis=function(){var b=this;this.TRACE_INIT("performSelfAnalysis",(function(){var S;b.selfAnalysisDone=!0;var J=b.className;b.TRACE_INIT("toFastProps",(function(){(0,le.toFastProperties)(b)})),b.TRACE_INIT("Grammar Recording",(function(){try{b.enableRecording(),(0,se.default)(b.definedRulesNames,(function(S){var J,ee=b[S].originalGrammarAction;b.TRACE_INIT("".concat(S," Rule"),(function(){J=b.topLevelRuleRecord(S,ee)})),b.gastProductionsCache[S]=J}))}finally{b.disableRecording()}}));var ee=[];if(b.TRACE_INIT("Grammar Resolving",(function(){ee=(0,he.resolveGrammar)({rules:(0,ae.default)(b.gastProductionsCache)}),b.definitionErrors=b.definitionErrors.concat(ee)})),b.TRACE_INIT("Grammar Validations",(function(){if((0,ie.default)(ee)&&!1===b.skipValidations){var S=(0,he.validateGrammar)({rules:(0,ae.default)(b.gastProductionsCache),maxLookahead:b.maxLookahead,tokenTypes:(0,ae.default)(b.tokensMap),errMsgProvider:de.defaultGrammarValidatorErrorProvider,grammarName:J});b.definitionErrors=b.definitionErrors.concat(S)}})),(0,ie.default)(b.definitionErrors)&&(b.recoveryEnabled&&b.TRACE_INIT("computeAllProdsFollows",(function(){var S=(0,pe.computeAllProdsFollows)((0,ae.default)(b.gastProductionsCache));b.resyncFollows=S})),b.TRACE_INIT("ComputeLookaheadFunctions",(function(){b.preComputeLookaheadFunctions((0,ae.default)(b.gastProductionsCache))}))),!t.DEFER_DEFINITION_ERRORS_HANDLING&&!(0,ie.default)(b.definitionErrors))throw S=(0,oe.default)(b.definitionErrors,(function(b){return b.message})),new Error("Parser Definition Errors detected:\n ".concat(S.join("\n-------------------------------\n")))}))},t.DEFER_DEFINITION_ERRORS_HANDLING=!1,t}();S.Parser=ke,(0,xe.applyMixins)(ke,[me.Recoverable,ge.LooksAhead,ye.TreeBuilder,ve.LexerAdapter,be.RecognizerEngine,Te.RecognizerApi,_e.ErrorHandler,Ee.ContentAssist,Ae.GastRecorder,we.PerformanceTracer]);var Ce=function(b){function r(J,ee){void 0===ee&&(ee=S.DEFAULT_PARSER_CONFIG);var te=(0,ce.default)(ee);return te.outputCst=!0,b.call(this,J,te)||this}return te(r,b),r}(ke);S.CstParser=Ce;var Pe=function(b){function r(J,ee){void 0===ee&&(ee=S.DEFAULT_PARSER_CONFIG);var te=(0,ce.default)(ee);return te.outputCst=!1,b.call(this,J,te)||this}return te(r,b),r}(ke);S.EmbeddedActionsParser=Pe},1625:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.ContentAssist=void 0;var te=J(9985),re=ee(J(3237)),ne=ee(J(4336)),ie=function(){function t(){}return t.prototype.initContentAssist=function(){},t.prototype.computeContentAssist=function(b,S){var J=this.gastProductionsCache[b];if((0,ne.default)(J))throw Error("Rule ->".concat(b,"<- does not exist in this grammar."));return(0,te.nextPossibleTokensAfter)([J],S,this.tokenMatcher,this.maxLookahead)},t.prototype.getNextPossibleTokenTypes=function(b){var S=(0,re.default)(b.ruleStack),J=this.getGAstProductions()[S];return new te.NextAfterTokenWalker(J,b).startWalking()},t}();S.ContentAssist=ie},9464:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.ErrorHandler=void 0;var te=J(643),re=ee(J(3352)),ne=ee(J(4004)),ie=J(4677),oe=J(2941),se=function(){function t(){}return t.prototype.initErrorHandler=function(b){this._errors=[],this.errorMessageProvider=(0,re.default)(b,"errorMessageProvider")?b.errorMessageProvider:oe.DEFAULT_PARSER_CONFIG.errorMessageProvider},t.prototype.SAVE_ERROR=function(b){if((0,te.isRecognitionException)(b))return b.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:(0,ne.default)(this.RULE_OCCURRENCE_STACK)},this._errors.push(b),b;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(t.prototype,"errors",{get:function(){return(0,ne.default)(this._errors)},set:function(b){this._errors=b},enumerable:!1,configurable:!0}),t.prototype.raiseEarlyExitException=function(b,S,J){for(var ee=this.getCurrRuleFullName(),re=this.getGAstProductions()[ee],ne=(0,ie.getLookaheadPathsForOptionalProd)(b,re,S,this.maxLookahead)[0],oe=[],se=1;se<=this.maxLookahead;se++)oe.push(this.LA(se));var ae=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:ne,actual:oe,previous:this.LA(0),customUserDescription:J,ruleName:ee});throw this.SAVE_ERROR(new te.EarlyExitException(ae,this.LA(1),this.LA(0)))},t.prototype.raiseNoAltException=function(b,S){for(var J=this.getCurrRuleFullName(),ee=this.getGAstProductions()[J],re=(0,ie.getLookaheadPathsForOr)(b,ee,this.maxLookahead),ne=[],oe=1;oe<=this.maxLookahead;oe++)ne.push(this.LA(oe));var se=this.LA(0),ae=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:re,actual:ne,previous:se,customUserDescription:S,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new te.NoViableAltException(ae,this.LA(1),se))},t}();S.ErrorHandler=se},6688:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.GastRecorder=void 0;var te=ee(J(6974)),re=ee(J(6152)),ne=ee(J(1525)),ie=ee(J(9756)),oe=ee(J(1049)),se=ee(J(3352)),ae=J(7729),ue=J(9027),ce=J(1201),le=J(6736),pe=J(2941),fe=J(8209),de={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(de);var he=Math.pow(2,fe.BITS_FOR_OCCURRENCE_IDX)-1,me=(0,le.createToken)({name:"RECORDING_PHASE_TOKEN",pattern:ue.Lexer.NA});(0,ce.augmentTokenTypes)([me]);var ge=(0,le.createTokenInstance)(me,"This IToken indicates the Parser is in Recording Phase\n\tSee: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",-1,-1,-1,-1,-1,-1);Object.freeze(ge);var ye={name:"This CSTNode indicates the Parser is in Recording Phase\n\tSee: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",children:{}},ve=function(){function t(){}return t.prototype.initGastRecorder=function(b){this.recordingProdStack=[],this.RECORDING_PHASE=!1},t.prototype.enableRecording=function(){var b=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",(function(){for(var e=function(S){var J=S>0?S:"";b["CONSUME".concat(J)]=function(b,J){return this.consumeInternalRecord(b,S,J)},b["SUBRULE".concat(J)]=function(b,J){return this.subruleInternalRecord(b,S,J)},b["OPTION".concat(J)]=function(b){return this.optionInternalRecord(b,S)},b["OR".concat(J)]=function(b){return this.orInternalRecord(b,S)},b["MANY".concat(J)]=function(b){this.manyInternalRecord(S,b)},b["MANY_SEP".concat(J)]=function(b){this.manySepFirstInternalRecord(S,b)},b["AT_LEAST_ONE".concat(J)]=function(b){this.atLeastOneInternalRecord(S,b)},b["AT_LEAST_ONE_SEP".concat(J)]=function(b){this.atLeastOneSepFirstInternalRecord(S,b)}},S=0;S<10;S++)e(S);b.consume=function(b,S,J){return this.consumeInternalRecord(S,b,J)},b.subrule=function(b,S,J){return this.subruleInternalRecord(S,b,J)},b.option=function(b,S){return this.optionInternalRecord(S,b)},b.or=function(b,S){return this.orInternalRecord(S,b)},b.many=function(b,S){this.manyInternalRecord(b,S)},b.atLeastOne=function(b,S){this.atLeastOneInternalRecord(b,S)},b.ACTION=b.ACTION_RECORD,b.BACKTRACK=b.BACKTRACK_RECORD,b.LA=b.LA_RECORD}))},t.prototype.disableRecording=function(){var b=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",(function(){for(var S=b,J=0;J<10;J++){var ee=J>0?J:"";delete S["CONSUME".concat(ee)],delete S["SUBRULE".concat(ee)],delete S["OPTION".concat(ee)],delete S["OR".concat(ee)],delete S["MANY".concat(ee)],delete S["MANY_SEP".concat(ee)],delete S["AT_LEAST_ONE".concat(ee)],delete S["AT_LEAST_ONE_SEP".concat(ee)]}delete S.consume,delete S.subrule,delete S.option,delete S.or,delete S.many,delete S.atLeastOne,delete S.ACTION,delete S.BACKTRACK,delete S.LA}))},t.prototype.ACTION_RECORD=function(b){},t.prototype.BACKTRACK_RECORD=function(b,S){return function(){return!0}},t.prototype.LA_RECORD=function(b){return pe.END_OF_FILE},t.prototype.topLevelRuleRecord=function(b,S){try{var J=new ae.Rule({definition:[],name:b});return J.name=b,this.recordingProdStack.push(J),S.call(this),this.recordingProdStack.pop(),J}catch(b){if(!0!==b.KNOWN_RECORDER_ERROR)try{b.message=b.message+'\n\t This error was thrown during the "grammar recording phase" For more info see:\n\thttps://chevrotain.io/docs/guide/internals.html#grammar-recording'}catch(S){throw b}throw b}},t.prototype.optionInternalRecord=function(b,S){return O.call(this,ae.Option,b,S)},t.prototype.atLeastOneInternalRecord=function(b,S){O.call(this,ae.RepetitionMandatory,S,b)},t.prototype.atLeastOneSepFirstInternalRecord=function(b,S){O.call(this,ae.RepetitionMandatoryWithSeparator,S,b,!0)},t.prototype.manyInternalRecord=function(b,S){O.call(this,ae.Repetition,S,b)},t.prototype.manySepFirstInternalRecord=function(b,S){O.call(this,ae.RepetitionWithSeparator,S,b,!0)},t.prototype.orInternalRecord=function(b,S){return R.call(this,b,S)},t.prototype.subruleInternalRecord=function(b,S,J){if(I(S),!b||!1===(0,se.default)(b,"ruleName")){var ee=new Error("<SUBRULE".concat(A(S),"> argument is invalid")+" expecting a Parser method reference but got: <".concat(JSON.stringify(b),">")+"\n inside top level rule: <".concat(this.recordingProdStack[0].name,">"));throw ee.KNOWN_RECORDER_ERROR=!0,ee}var re=(0,te.default)(this.recordingProdStack),ne=b.ruleName,ie=new ae.NonTerminal({idx:S,nonTerminalName:ne,label:null==J?void 0:J.LABEL,referencedRule:void 0});return re.definition.push(ie),this.outputCst?ye:de},t.prototype.consumeInternalRecord=function(b,S,J){if(I(S),!(0,ce.hasShortKeyProperty)(b)){var ee=new Error("<CONSUME".concat(A(S),"> argument is invalid")+" expecting a TokenType reference but got: <".concat(JSON.stringify(b),">")+"\n inside top level rule: <".concat(this.recordingProdStack[0].name,">"));throw ee.KNOWN_RECORDER_ERROR=!0,ee}var re=(0,te.default)(this.recordingProdStack),ne=new ae.Terminal({idx:S,terminalType:b,label:null==J?void 0:J.LABEL});return re.definition.push(ne),ge},t}();function O(b,S,J,ee){void 0===ee&&(ee=!1),I(J);var re=(0,te.default)(this.recordingProdStack),ne=(0,oe.default)(S)?S:S.DEF,ie=new b({definition:[],idx:J});return ee&&(ie.separator=S.SEP),(0,se.default)(S,"MAX_LOOKAHEAD")&&(ie.maxLookahead=S.MAX_LOOKAHEAD),this.recordingProdStack.push(ie),ne.call(this),re.definition.push(ie),this.recordingProdStack.pop(),de}function R(b,S){var J=this;I(S);var ee=(0,te.default)(this.recordingProdStack),ue=!1===(0,re.default)(b),ce=!1===ue?b:b.DEF,le=new ae.Alternation({definition:[],idx:S,ignoreAmbiguities:ue&&!0===b.IGNORE_AMBIGUITIES});(0,se.default)(b,"MAX_LOOKAHEAD")&&(le.maxLookahead=b.MAX_LOOKAHEAD);var pe=(0,ne.default)(ce,(function(b){return(0,oe.default)(b.GATE)}));return le.hasPredicates=pe,ee.definition.push(le),(0,ie.default)(ce,(function(b){var S=new ae.Alternative({definition:[]});le.definition.push(S),(0,se.default)(b,"IGNORE_AMBIGUITIES")?S.ignoreAmbiguities=b.IGNORE_AMBIGUITIES:(0,se.default)(b,"GATE")&&(S.ignoreAmbiguities=!0),J.recordingProdStack.push(S),b.ALT.call(J),J.recordingProdStack.pop()})),de}function A(b){return 0===b?"":"".concat(b)}function I(b){if(b<0||b>he){var S=new Error("Invalid DSL Method idx value: <".concat(b,">\n\t")+"Idx value must be a none negative value smaller than ".concat(he+1));throw S.KNOWN_RECORDER_ERROR=!0,S}}S.GastRecorder=ve},598:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.LexerAdapter=void 0;var ee=J(2941),te=function(){function t(){}return t.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(t.prototype,"input",{get:function(){return this.tokVector},set:function(b){if(!0!==this.selfAnalysisDone)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=b,this.tokVectorLength=b.length},enumerable:!1,configurable:!0}),t.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):ee.END_OF_FILE},t.prototype.LA=function(b){var S=this.currIdx+b;return S<0||this.tokVectorLength<=S?ee.END_OF_FILE:this.tokVector[S]},t.prototype.consumeToken=function(){this.currIdx++},t.prototype.exportLexerState=function(){return this.currIdx},t.prototype.importLexerState=function(b){this.currIdx=b},t.prototype.resetLexerState=function(){this.currIdx=-1},t.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},t.prototype.getLexerPosition=function(){return this.exportLexerState()},t}();S.LexerAdapter=te},161:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.collectMethods=S.LooksAhead=void 0;var ne=J(4677),ie=re(J(9756)),oe=re(J(3352)),se=J(2941),ae=J(8209),ue=J(7729),ce=J(7729),le=function(){function t(){}return t.prototype.initLooksAhead=function(b){this.dynamicTokensEnabled=(0,oe.default)(b,"dynamicTokensEnabled")?b.dynamicTokensEnabled:se.DEFAULT_PARSER_CONFIG.dynamicTokensEnabled,this.maxLookahead=(0,oe.default)(b,"maxLookahead")?b.maxLookahead:se.DEFAULT_PARSER_CONFIG.maxLookahead,this.lookAheadFuncsCache=new Map},t.prototype.preComputeLookaheadFunctions=function(b){var S=this;(0,ie.default)(b,(function(b){S.TRACE_INIT("".concat(b.name," Rule Lookahead"),(function(){var J=v(b),ee=J.alternation,te=J.repetition,re=J.option,oe=J.repetitionMandatory,se=J.repetitionMandatoryWithSeparator,ue=J.repetitionWithSeparator;(0,ie.default)(ee,(function(J){var ee=0===J.idx?"":J.idx;S.TRACE_INIT("".concat((0,ce.getProductionDslName)(J)).concat(ee),(function(){var ee=(0,ne.buildLookaheadFuncForOr)(J.idx,b,J.maxLookahead||S.maxLookahead,J.hasPredicates,S.dynamicTokensEnabled,S.lookAheadBuilderForAlternatives),te=(0,ae.getKeyForAutomaticLookahead)(S.fullRuleNameToShort[b.name],ae.OR_IDX,J.idx);S.setLaFuncCache(te,ee)}))})),(0,ie.default)(te,(function(J){S.computeLookaheadFunc(b,J.idx,ae.MANY_IDX,ne.PROD_TYPE.REPETITION,J.maxLookahead,(0,ce.getProductionDslName)(J))})),(0,ie.default)(re,(function(J){S.computeLookaheadFunc(b,J.idx,ae.OPTION_IDX,ne.PROD_TYPE.OPTION,J.maxLookahead,(0,ce.getProductionDslName)(J))})),(0,ie.default)(oe,(function(J){S.computeLookaheadFunc(b,J.idx,ae.AT_LEAST_ONE_IDX,ne.PROD_TYPE.REPETITION_MANDATORY,J.maxLookahead,(0,ce.getProductionDslName)(J))})),(0,ie.default)(se,(function(J){S.computeLookaheadFunc(b,J.idx,ae.AT_LEAST_ONE_SEP_IDX,ne.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR,J.maxLookahead,(0,ce.getProductionDslName)(J))})),(0,ie.default)(ue,(function(J){S.computeLookaheadFunc(b,J.idx,ae.MANY_SEP_IDX,ne.PROD_TYPE.REPETITION_WITH_SEPARATOR,J.maxLookahead,(0,ce.getProductionDslName)(J))}))}))}))},t.prototype.computeLookaheadFunc=function(b,S,J,ee,te,re){var ie=this;this.TRACE_INIT("".concat(re).concat(0===S?"":S),(function(){var re=(0,ne.buildLookaheadFuncForOptionalProd)(S,b,te||ie.maxLookahead,ie.dynamicTokensEnabled,ee,ie.lookAheadBuilderForOptional),oe=(0,ae.getKeyForAutomaticLookahead)(ie.fullRuleNameToShort[b.name],J,S);ie.setLaFuncCache(oe,re)}))},t.prototype.lookAheadBuilderForOptional=function(b,S,J){return(0,ne.buildSingleAlternativeLookaheadFunction)(b,S,J)},t.prototype.lookAheadBuilderForAlternatives=function(b,S,J,ee){return(0,ne.buildAlternativesLookAheadFunc)(b,S,J,ee)},t.prototype.getKeyForAutomaticLookahead=function(b,S){var J=this.getLastExplicitRuleShortName();return(0,ae.getKeyForAutomaticLookahead)(J,b,S)},t.prototype.getLaFuncFromCache=function(b){return this.lookAheadFuncsCache.get(b)},t.prototype.setLaFuncCache=function(b,S){this.lookAheadFuncsCache.set(b,S)},t}();S.LooksAhead=le;var pe=new(function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},S}return te(e,b),e.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},e.prototype.visitOption=function(b){this.dslMethods.option.push(b)},e.prototype.visitRepetitionWithSeparator=function(b){this.dslMethods.repetitionWithSeparator.push(b)},e.prototype.visitRepetitionMandatory=function(b){this.dslMethods.repetitionMandatory.push(b)},e.prototype.visitRepetitionMandatoryWithSeparator=function(b){this.dslMethods.repetitionMandatoryWithSeparator.push(b)},e.prototype.visitRepetition=function(b){this.dslMethods.repetition.push(b)},e.prototype.visitAlternation=function(b){this.dslMethods.alternation.push(b)},e}(ue.GAstVisitor));function v(b){pe.reset(),b.accept(pe);var S=pe.dslMethods;return pe.reset(),S}S.collectMethods=v},146:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.PerformanceTracer=void 0;var te=ee(J(3352)),re=J(7146),ne=J(2941),ie=function(){function t(){}return t.prototype.initPerformanceTracer=function(b){if((0,te.default)(b,"traceInitPerf")){var S=b.traceInitPerf,J="number"==typeof S;this.traceInitMaxIdent=J?S:1/0,this.traceInitPerf=J?S>0:S}else this.traceInitMaxIdent=0,this.traceInitPerf=ne.DEFAULT_PARSER_CONFIG.traceInitPerf;this.traceInitIndent=-1},t.prototype.TRACE_INIT=function(b,S){if(!0===this.traceInitPerf){this.traceInitIndent++;var J=new Array(this.traceInitIndent+1).join("\t");this.traceInitIndent<this.traceInitMaxIdent&&console.log("".concat(J,"--\x3e <").concat(b,">"));var ee=(0,re.timer)(S),te=ee.time,ne=ee.value,ie=te>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&ie("".concat(J,"<-- <").concat(b,"> time: ").concat(te,"ms")),this.traceInitIndent--,ne}return S()},t}();S.PerformanceTracer=ie},8503:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.RecognizerApi=void 0;var te=ee(J(8346)),re=ee(J(1886)),ne=J(643),ie=J(2941),oe=J(1007),se=J(3870),ae=J(7729),ue=function(){function t(){}return t.prototype.ACTION=function(b){return b.call(this)},t.prototype.consume=function(b,S,J){return this.consumeInternal(S,b,J)},t.prototype.subrule=function(b,S,J){return this.subruleInternal(S,b,J)},t.prototype.option=function(b,S){return this.optionInternal(S,b)},t.prototype.or=function(b,S){return this.orInternal(S,b)},t.prototype.many=function(b,S){return this.manyInternal(b,S)},t.prototype.atLeastOne=function(b,S){return this.atLeastOneInternal(b,S)},t.prototype.CONSUME=function(b,S){return this.consumeInternal(b,0,S)},t.prototype.CONSUME1=function(b,S){return this.consumeInternal(b,1,S)},t.prototype.CONSUME2=function(b,S){return this.consumeInternal(b,2,S)},t.prototype.CONSUME3=function(b,S){return this.consumeInternal(b,3,S)},t.prototype.CONSUME4=function(b,S){return this.consumeInternal(b,4,S)},t.prototype.CONSUME5=function(b,S){return this.consumeInternal(b,5,S)},t.prototype.CONSUME6=function(b,S){return this.consumeInternal(b,6,S)},t.prototype.CONSUME7=function(b,S){return this.consumeInternal(b,7,S)},t.prototype.CONSUME8=function(b,S){return this.consumeInternal(b,8,S)},t.prototype.CONSUME9=function(b,S){return this.consumeInternal(b,9,S)},t.prototype.SUBRULE=function(b,S){return this.subruleInternal(b,0,S)},t.prototype.SUBRULE1=function(b,S){return this.subruleInternal(b,1,S)},t.prototype.SUBRULE2=function(b,S){return this.subruleInternal(b,2,S)},t.prototype.SUBRULE3=function(b,S){return this.subruleInternal(b,3,S)},t.prototype.SUBRULE4=function(b,S){return this.subruleInternal(b,4,S)},t.prototype.SUBRULE5=function(b,S){return this.subruleInternal(b,5,S)},t.prototype.SUBRULE6=function(b,S){return this.subruleInternal(b,6,S)},t.prototype.SUBRULE7=function(b,S){return this.subruleInternal(b,7,S)},t.prototype.SUBRULE8=function(b,S){return this.subruleInternal(b,8,S)},t.prototype.SUBRULE9=function(b,S){return this.subruleInternal(b,9,S)},t.prototype.OPTION=function(b){return this.optionInternal(b,0)},t.prototype.OPTION1=function(b){return this.optionInternal(b,1)},t.prototype.OPTION2=function(b){return this.optionInternal(b,2)},t.prototype.OPTION3=function(b){return this.optionInternal(b,3)},t.prototype.OPTION4=function(b){return this.optionInternal(b,4)},t.prototype.OPTION5=function(b){return this.optionInternal(b,5)},t.prototype.OPTION6=function(b){return this.optionInternal(b,6)},t.prototype.OPTION7=function(b){return this.optionInternal(b,7)},t.prototype.OPTION8=function(b){return this.optionInternal(b,8)},t.prototype.OPTION9=function(b){return this.optionInternal(b,9)},t.prototype.OR=function(b){return this.orInternal(b,0)},t.prototype.OR1=function(b){return this.orInternal(b,1)},t.prototype.OR2=function(b){return this.orInternal(b,2)},t.prototype.OR3=function(b){return this.orInternal(b,3)},t.prototype.OR4=function(b){return this.orInternal(b,4)},t.prototype.OR5=function(b){return this.orInternal(b,5)},t.prototype.OR6=function(b){return this.orInternal(b,6)},t.prototype.OR7=function(b){return this.orInternal(b,7)},t.prototype.OR8=function(b){return this.orInternal(b,8)},t.prototype.OR9=function(b){return this.orInternal(b,9)},t.prototype.MANY=function(b){this.manyInternal(0,b)},t.prototype.MANY1=function(b){this.manyInternal(1,b)},t.prototype.MANY2=function(b){this.manyInternal(2,b)},t.prototype.MANY3=function(b){this.manyInternal(3,b)},t.prototype.MANY4=function(b){this.manyInternal(4,b)},t.prototype.MANY5=function(b){this.manyInternal(5,b)},t.prototype.MANY6=function(b){this.manyInternal(6,b)},t.prototype.MANY7=function(b){this.manyInternal(7,b)},t.prototype.MANY8=function(b){this.manyInternal(8,b)},t.prototype.MANY9=function(b){this.manyInternal(9,b)},t.prototype.MANY_SEP=function(b){this.manySepFirstInternal(0,b)},t.prototype.MANY_SEP1=function(b){this.manySepFirstInternal(1,b)},t.prototype.MANY_SEP2=function(b){this.manySepFirstInternal(2,b)},t.prototype.MANY_SEP3=function(b){this.manySepFirstInternal(3,b)},t.prototype.MANY_SEP4=function(b){this.manySepFirstInternal(4,b)},t.prototype.MANY_SEP5=function(b){this.manySepFirstInternal(5,b)},t.prototype.MANY_SEP6=function(b){this.manySepFirstInternal(6,b)},t.prototype.MANY_SEP7=function(b){this.manySepFirstInternal(7,b)},t.prototype.MANY_SEP8=function(b){this.manySepFirstInternal(8,b)},t.prototype.MANY_SEP9=function(b){this.manySepFirstInternal(9,b)},t.prototype.AT_LEAST_ONE=function(b){this.atLeastOneInternal(0,b)},t.prototype.AT_LEAST_ONE1=function(b){return this.atLeastOneInternal(1,b)},t.prototype.AT_LEAST_ONE2=function(b){this.atLeastOneInternal(2,b)},t.prototype.AT_LEAST_ONE3=function(b){this.atLeastOneInternal(3,b)},t.prototype.AT_LEAST_ONE4=function(b){this.atLeastOneInternal(4,b)},t.prototype.AT_LEAST_ONE5=function(b){this.atLeastOneInternal(5,b)},t.prototype.AT_LEAST_ONE6=function(b){this.atLeastOneInternal(6,b)},t.prototype.AT_LEAST_ONE7=function(b){this.atLeastOneInternal(7,b)},t.prototype.AT_LEAST_ONE8=function(b){this.atLeastOneInternal(8,b)},t.prototype.AT_LEAST_ONE9=function(b){this.atLeastOneInternal(9,b)},t.prototype.AT_LEAST_ONE_SEP=function(b){this.atLeastOneSepFirstInternal(0,b)},t.prototype.AT_LEAST_ONE_SEP1=function(b){this.atLeastOneSepFirstInternal(1,b)},t.prototype.AT_LEAST_ONE_SEP2=function(b){this.atLeastOneSepFirstInternal(2,b)},t.prototype.AT_LEAST_ONE_SEP3=function(b){this.atLeastOneSepFirstInternal(3,b)},t.prototype.AT_LEAST_ONE_SEP4=function(b){this.atLeastOneSepFirstInternal(4,b)},t.prototype.AT_LEAST_ONE_SEP5=function(b){this.atLeastOneSepFirstInternal(5,b)},t.prototype.AT_LEAST_ONE_SEP6=function(b){this.atLeastOneSepFirstInternal(6,b)},t.prototype.AT_LEAST_ONE_SEP7=function(b){this.atLeastOneSepFirstInternal(7,b)},t.prototype.AT_LEAST_ONE_SEP8=function(b){this.atLeastOneSepFirstInternal(8,b)},t.prototype.AT_LEAST_ONE_SEP9=function(b){this.atLeastOneSepFirstInternal(9,b)},t.prototype.RULE=function(b,S,J){if(void 0===J&&(J=ie.DEFAULT_RULE_CONFIG),(0,re.default)(this.definedRulesNames,b)){var ee={message:oe.defaultGrammarValidatorErrorProvider.buildDuplicateRuleNameError({topLevelRule:b,grammarName:this.className}),type:ie.ParserDefinitionErrorType.DUPLICATE_RULE_NAME,ruleName:b};this.definitionErrors.push(ee)}this.definedRulesNames.push(b);var te=this.defineRule(b,S,J);return this[b]=te,te},t.prototype.OVERRIDE_RULE=function(b,S,J){void 0===J&&(J=ie.DEFAULT_RULE_CONFIG);var ee=(0,se.validateRuleIsOverridden)(b,this.definedRulesNames,this.className);this.definitionErrors=this.definitionErrors.concat(ee);var te=this.defineRule(b,S,J);return this[b]=te,te},t.prototype.BACKTRACK=function(b,S){return function(){this.isBackTrackingStack.push(1);var J=this.saveRecogState();try{return b.apply(this,S),!0}catch(b){if((0,ne.isRecognitionException)(b))return!1;throw b}finally{this.reloadRecogState(J),this.isBackTrackingStack.pop()}}},t.prototype.getGAstProductions=function(){return this.gastProductionsCache},t.prototype.getSerializedGastProductions=function(){return(0,ae.serializeGrammar)((0,te.default)(this.gastProductionsCache))},t}();S.RecognizerApi=ue},3273:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.RecognizerEngine=void 0;var te=ee(J(5455)),re=ee(J(6152)),ne=ee(J(5676)),ie=ee(J(9794)),oe=ee(J(5652)),se=ee(J(9259)),ae=ee(J(3352)),ue=ee(J(8346)),ce=ee(J(8215)),le=ee(J(4004)),pe=J(8209),fe=J(643),de=J(4677),he=J(9985),me=J(2941),ge=J(9992),ye=J(6736),ve=J(1201),Te=function(){function t(){}return t.prototype.initRecognizerEngine=function(b,S){if(this.className=this.constructor.name,this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=ve.tokenStructuredMatcherNoCategories,this.subruleIdx=0,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},(0,ae.default)(S,"serializedGrammar"))throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0\n\tFor Further details.");if((0,re.default)(b)){if((0,te.default)(b))throw Error("A Token Vocabulary cannot be empty.\n\tNote that the first argument for the parser constructor\n\tis no longer a Token vector (since v4.0).");if("number"==typeof b[0].startOffset)throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n\tSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n\tFor Further details.")}if((0,re.default)(b))this.tokensMap=(0,ce.default)(b,(function(b,S){return b[S.name]=S,b}),{});else if((0,ae.default)(b,"modes")&&(0,ie.default)((0,ne.default)((0,ue.default)(b.modes)),ve.isTokenType)){var J=(0,ne.default)((0,ue.default)(b.modes)),ee=(0,oe.default)(J);this.tokensMap=(0,ce.default)(ee,(function(b,S){return b[S.name]=S,b}),{})}else{if(!(0,se.default)(b))throw new Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");this.tokensMap=(0,le.default)(b)}this.tokensMap.EOF=ye.EOF;var pe=(0,ae.default)(b,"modes")?(0,ne.default)((0,ue.default)(b.modes)):(0,ue.default)(b),fe=(0,ie.default)(pe,(function(b){return(0,te.default)(b.categoryMatches)}));this.tokenMatcher=fe?ve.tokenStructuredMatcherNoCategories:ve.tokenStructuredMatcher,(0,ve.augmentTokenTypes)((0,ue.default)(this.tokensMap))},t.prototype.defineRule=function(b,S,J){if(this.selfAnalysisDone)throw Error("Grammar rule <".concat(b,"> may not be defined after the 'performSelfAnalysis' method has been called'\n")+"Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.");var ee,te=(0,ae.default)(J,"resyncEnabled")?J.resyncEnabled:me.DEFAULT_RULE_CONFIG.resyncEnabled,re=(0,ae.default)(J,"recoveryValueFunc")?J.recoveryValueFunc:me.DEFAULT_RULE_CONFIG.recoveryValueFunc,ne=this.ruleShortNameIdx<<pe.BITS_FOR_METHOD_TYPE+pe.BITS_FOR_OCCURRENCE_IDX;return this.ruleShortNameIdx++,this.shortRuleNameToFull[ne]=b,this.fullRuleNameToShort[b]=ne,ee=!0===this.outputCst?function(){for(var J=[],ee=0;ee<arguments.length;ee++)J[ee]=arguments[ee];try{this.ruleInvocationStateUpdate(ne,b,this.subruleIdx),S.apply(this,J);var ie=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(ie),ie}catch(b){return this.invokeRuleCatch(b,te,re)}finally{this.ruleFinallyStateUpdate()}}:function(){for(var J=[],ee=0;ee<arguments.length;ee++)J[ee]=arguments[ee];try{return this.ruleInvocationStateUpdate(ne,b,this.subruleIdx),S.apply(this,J)}catch(b){return this.invokeRuleCatch(b,te,re)}finally{this.ruleFinallyStateUpdate()}},Object.assign(ee,{ruleName:b,originalGrammarAction:S})},t.prototype.invokeRuleCatch=function(b,S,J){var ee=1===this.RULE_STACK.length,te=S&&!this.isBackTracking()&&this.recoveryEnabled;if((0,fe.isRecognitionException)(b)){var re=b;if(te){var ne,ie=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(ie))return re.resyncedTokens=this.reSyncTo(ie),this.outputCst?((ne=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,ne):J();throw this.outputCst&&((ne=this.CST_STACK[this.CST_STACK.length-1]).recoveredNode=!0,re.partialCstResult=ne),re}if(ee)return this.moveToTerminatedState(),J();throw re}throw b},t.prototype.optionInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.OPTION_IDX,S);return this.optionInternalLogic(b,S,J)},t.prototype.optionInternalLogic=function(b,S,J){var ee,te=this,re=this.getLaFuncFromCache(J);if("function"!=typeof b){ee=b.DEF;var ne=b.GATE;if(void 0!==ne){var ie=re;re=function(){return ne.call(te)&&ie.call(te)}}}else ee=b;if(!0===re.call(this))return ee.call(this)},t.prototype.atLeastOneInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.AT_LEAST_ONE_IDX,b);return this.atLeastOneInternalLogic(b,S,J)},t.prototype.atLeastOneInternalLogic=function(b,S,J){var ee,te=this,re=this.getLaFuncFromCache(J);if("function"!=typeof S){ee=S.DEF;var ne=S.GATE;if(void 0!==ne){var ie=re;re=function(){return ne.call(te)&&ie.call(te)}}}else ee=S;if(!0!==re.call(this))throw this.raiseEarlyExitException(b,de.PROD_TYPE.REPETITION_MANDATORY,S.ERR_MSG);for(var oe=this.doSingleRepetition(ee);!0===re.call(this)&&!0===oe;)oe=this.doSingleRepetition(ee);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[b,S],re,pe.AT_LEAST_ONE_IDX,b,he.NextTerminalAfterAtLeastOneWalker)},t.prototype.atLeastOneSepFirstInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.AT_LEAST_ONE_SEP_IDX,b);this.atLeastOneSepFirstInternalLogic(b,S,J)},t.prototype.atLeastOneSepFirstInternalLogic=function(b,S,J){var ee=this,te=S.DEF,re=S.SEP;if(!0!==this.getLaFuncFromCache(J).call(this))throw this.raiseEarlyExitException(b,de.PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR,S.ERR_MSG);te.call(this);for(var a=function(){return ee.tokenMatcher(ee.LA(1),re)};!0===this.tokenMatcher(this.LA(1),re);)this.CONSUME(re),te.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[b,re,a,te,he.NextTerminalAfterAtLeastOneSepWalker],a,pe.AT_LEAST_ONE_SEP_IDX,b,he.NextTerminalAfterAtLeastOneSepWalker)},t.prototype.manyInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.MANY_IDX,b);return this.manyInternalLogic(b,S,J)},t.prototype.manyInternalLogic=function(b,S,J){var ee,te=this,re=this.getLaFuncFromCache(J);if("function"!=typeof S){ee=S.DEF;var ne=S.GATE;if(void 0!==ne){var ie=re;re=function(){return ne.call(te)&&ie.call(te)}}}else ee=S;for(var oe=!0;!0===re.call(this)&&!0===oe;)oe=this.doSingleRepetition(ee);this.attemptInRepetitionRecovery(this.manyInternal,[b,S],re,pe.MANY_IDX,b,he.NextTerminalAfterManyWalker,oe)},t.prototype.manySepFirstInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.MANY_SEP_IDX,b);this.manySepFirstInternalLogic(b,S,J)},t.prototype.manySepFirstInternalLogic=function(b,S,J){var ee=this,te=S.DEF,re=S.SEP;if(!0===this.getLaFuncFromCache(J).call(this)){te.call(this);for(var a=function(){return ee.tokenMatcher(ee.LA(1),re)};!0===this.tokenMatcher(this.LA(1),re);)this.CONSUME(re),te.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[b,re,a,te,he.NextTerminalAfterManySepWalker],a,pe.MANY_SEP_IDX,b,he.NextTerminalAfterManySepWalker)}},t.prototype.repetitionSepSecondInternal=function(b,S,J,ee,te){for(;J();)this.CONSUME(S),ee.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[b,S,J,ee,te],J,pe.AT_LEAST_ONE_SEP_IDX,b,te)},t.prototype.doSingleRepetition=function(b){var S=this.getLexerPosition();return b.call(this),this.getLexerPosition()>S},t.prototype.orInternal=function(b,S){var J=this.getKeyForAutomaticLookahead(pe.OR_IDX,S),ee=(0,re.default)(b)?b:b.DEF,te=this.getLaFuncFromCache(J).call(this,ee);if(void 0!==te)return ee[te].ALT.call(this);this.raiseNoAltException(S,b.ERR_MSG)},t.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),0===this.RULE_STACK.length&&!1===this.isAtEndOfInput()){var b=this.LA(1),S=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:b,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new fe.NotAllInputParsedException(S,b))}},t.prototype.subruleInternal=function(b,S,J){var ee;try{var te=void 0!==J?J.ARGS:void 0;return this.subruleIdx=S,ee=b.apply(this,te),this.cstPostNonTerminal(ee,void 0!==J&&void 0!==J.LABEL?J.LABEL:b.ruleName),ee}catch(S){throw this.subruleInternalError(S,J,b.ruleName)}},t.prototype.subruleInternalError=function(b,S,J){throw(0,fe.isRecognitionException)(b)&&void 0!==b.partialCstResult&&(this.cstPostNonTerminal(b.partialCstResult,void 0!==S&&void 0!==S.LABEL?S.LABEL:J),delete b.partialCstResult),b},t.prototype.consumeInternal=function(b,S,J){var ee;try{var te=this.LA(1);!0===this.tokenMatcher(te,b)?(this.consumeToken(),ee=te):this.consumeInternalError(b,te,J)}catch(J){ee=this.consumeInternalRecovery(b,S,J)}return this.cstPostTerminal(void 0!==J&&void 0!==J.LABEL?J.LABEL:b.name,ee),ee},t.prototype.consumeInternalError=function(b,S,J){var ee,te=this.LA(0);throw ee=void 0!==J&&J.ERR_MSG?J.ERR_MSG:this.errorMessageProvider.buildMismatchTokenMessage({expected:b,actual:S,previous:te,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new fe.MismatchedTokenException(ee,S,te))},t.prototype.consumeInternalRecovery=function(b,S,J){if(!this.recoveryEnabled||"MismatchedTokenException"!==J.name||this.isBackTracking())throw J;var ee=this.getFollowsForInRuleRecovery(b,S);try{return this.tryInRuleRecovery(b,ee)}catch(b){throw b.name===ge.IN_RULE_RECOVERY_EXCEPTION?J:b}},t.prototype.saveRecogState=function(){var b=this.errors,S=(0,le.default)(this.RULE_STACK);return{errors:b,lexerState:this.exportLexerState(),RULE_STACK:S,CST_STACK:this.CST_STACK}},t.prototype.reloadRecogState=function(b){this.errors=b.errors,this.importLexerState(b.lexerState),this.RULE_STACK=b.RULE_STACK},t.prototype.ruleInvocationStateUpdate=function(b,S,J){this.RULE_OCCURRENCE_STACK.push(J),this.RULE_STACK.push(b),this.cstInvocationStateUpdate(S)},t.prototype.isBackTracking=function(){return 0!==this.isBackTrackingStack.length},t.prototype.getCurrRuleFullName=function(){var b=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[b]},t.prototype.shortRuleNameToFullName=function(b){return this.shortRuleNameToFull[b]},t.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),ye.EOF)},t.prototype.reset=function(){this.resetLexerState(),this.subruleIdx=0,this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},t}();S.RecognizerEngine=Te},9992:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.attemptInRepetitionRecovery=S.Recoverable=S.InRuleRecoveryException=S.IN_RULE_RECOVERY_EXCEPTION=S.EOF_FOLLOW_KEY=void 0;var ne=J(6736),ie=re(J(5455)),oe=re(J(4934)),se=re(J(5676)),ae=re(J(6760)),ue=re(J(5281)),ce=re(J(3352)),le=re(J(1886)),pe=re(J(4004)),fe=J(643),de=J(3710),he=J(2941);S.EOF_FOLLOW_KEY={},S.IN_RULE_RECOVERY_EXCEPTION="InRuleRecoveryException";var me=function(b){function r(J){var ee=b.call(this,J)||this;return ee.name=S.IN_RULE_RECOVERY_EXCEPTION,ee}return te(r,b),r}(Error);S.InRuleRecoveryException=me;var ge=function(){function t(){}return t.prototype.initRecoverable=function(b){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=(0,ce.default)(b,"recoveryEnabled")?b.recoveryEnabled:he.DEFAULT_PARSER_CONFIG.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=_)},t.prototype.getTokenToInsert=function(b){var S=(0,ne.createTokenInstance)(b,"",NaN,NaN,NaN,NaN,NaN,NaN);return S.isInsertedInRecovery=!0,S},t.prototype.canTokenTypeBeInsertedInRecovery=function(b){return!0},t.prototype.canTokenTypeBeDeletedInRecovery=function(b){return!0},t.prototype.tryInRepetitionRecovery=function(b,S,J,ee){for(var te=this,re=this.findReSyncTokenType(),ne=this.exportLexerState(),ie=[],se=!1,ae=this.LA(1),ue=this.LA(1),p=function(){var b=te.LA(0),S=te.errorMessageProvider.buildMismatchTokenMessage({expected:ee,actual:ae,previous:b,ruleName:te.getCurrRuleFullName()}),J=new fe.MismatchedTokenException(S,ae,te.LA(0));J.resyncedTokens=(0,oe.default)(ie),te.SAVE_ERROR(J)};!se;){if(this.tokenMatcher(ue,ee))return void p();if(J.call(this))return p(),void b.apply(this,S);this.tokenMatcher(ue,re)?se=!0:(ue=this.SKIP_TOKEN(),this.addToResyncTokens(ue,ie))}this.importLexerState(ne)},t.prototype.shouldInRepetitionRecoveryBeTried=function(b,S,J){return!1!==J&&!this.tokenMatcher(this.LA(1),b)&&!this.isBackTracking()&&!this.canPerformInRuleRecovery(b,this.getFollowsForInRuleRecovery(b,S))},t.prototype.getFollowsForInRuleRecovery=function(b,S){var J=this.getCurrentGrammarPath(b,S);return this.getNextPossibleTokenTypes(J)},t.prototype.tryInRuleRecovery=function(b,S){if(this.canRecoverWithSingleTokenInsertion(b,S))return this.getTokenToInsert(b);if(this.canRecoverWithSingleTokenDeletion(b)){var J=this.SKIP_TOKEN();return this.consumeToken(),J}throw new me("sad sad panda")},t.prototype.canPerformInRuleRecovery=function(b,S){return this.canRecoverWithSingleTokenInsertion(b,S)||this.canRecoverWithSingleTokenDeletion(b)},t.prototype.canRecoverWithSingleTokenInsertion=function(b,S){var J=this;if(!this.canTokenTypeBeInsertedInRecovery(b))return!1;if((0,ie.default)(S))return!1;var ee=this.LA(1);return void 0!==(0,ue.default)(S,(function(b){return J.tokenMatcher(ee,b)}))},t.prototype.canRecoverWithSingleTokenDeletion=function(b){return!!this.canTokenTypeBeDeletedInRecovery(b)&&this.tokenMatcher(this.LA(2),b)},t.prototype.isInCurrentRuleReSyncSet=function(b){var S=this.getCurrFollowKey(),J=this.getFollowSetFromFollowKey(S);return(0,le.default)(J,b)},t.prototype.findReSyncTokenType=function(){for(var b=this.flattenFollowSet(),S=this.LA(1),J=2;;){var ee=(0,ue.default)(b,(function(b){return(0,ne.tokenMatcher)(S,b)}));if(void 0!==ee)return ee;S=this.LA(J),J++}},t.prototype.getCurrFollowKey=function(){if(1===this.RULE_STACK.length)return S.EOF_FOLLOW_KEY;var b=this.getLastExplicitRuleShortName(),J=this.getLastExplicitRuleOccurrenceIndex(),ee=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(b),idxInCallingRule:J,inRule:this.shortRuleNameToFullName(ee)}},t.prototype.buildFullFollowKeyStack=function(){var b=this,J=this.RULE_STACK,ee=this.RULE_OCCURRENCE_STACK;return(0,ae.default)(J,(function(te,re){return 0===re?S.EOF_FOLLOW_KEY:{ruleName:b.shortRuleNameToFullName(te),idxInCallingRule:ee[re],inRule:b.shortRuleNameToFullName(J[re-1])}}))},t.prototype.flattenFollowSet=function(){var b=this,S=(0,ae.default)(this.buildFullFollowKeyStack(),(function(S){return b.getFollowSetFromFollowKey(S)}));return(0,se.default)(S)},t.prototype.getFollowSetFromFollowKey=function(b){if(b===S.EOF_FOLLOW_KEY)return[ne.EOF];var J=b.ruleName+b.idxInCallingRule+de.IN+b.inRule;return this.resyncFollows[J]},t.prototype.addToResyncTokens=function(b,S){return this.tokenMatcher(b,ne.EOF)||S.push(b),S},t.prototype.reSyncTo=function(b){for(var S=[],J=this.LA(1);!1===this.tokenMatcher(J,b);)J=this.SKIP_TOKEN(),this.addToResyncTokens(J,S);return(0,oe.default)(S)},t.prototype.attemptInRepetitionRecovery=function(b,S,J,ee,te,re,ne){},t.prototype.getCurrentGrammarPath=function(b,S){return{ruleStack:this.getHumanReadableRuleStack(),occurrenceStack:(0,pe.default)(this.RULE_OCCURRENCE_STACK),lastTok:b,lastTokOccurrence:S}},t.prototype.getHumanReadableRuleStack=function(){var b=this;return(0,ae.default)(this.RULE_STACK,(function(S){return b.shortRuleNameToFullName(S)}))},t}();function _(b,S,J,ee,te,re,ie){var oe=this.getKeyForAutomaticLookahead(ee,te),se=this.firstAfterRepMap[oe];if(void 0===se){var ae=this.getCurrRuleFullName();se=new re(this.getGAstProductions()[ae],te).startWalking(),this.firstAfterRepMap[oe]=se}var ue=se.token,ce=se.occurrence,le=se.isEndOfRule;1===this.RULE_STACK.length&&le&&void 0===ue&&(ue=ne.EOF,ce=1),void 0!==ue&&void 0!==ce&&this.shouldInRepetitionRecoveryBeTried(ue,ce,ie)&&this.tryInRepetitionRecovery(b,S,J,ue)}S.Recoverable=ge,S.attemptInRepetitionRecovery=_},3225:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.TreeBuilder=void 0;var te=J(7485),re=ee(J(4291)),ne=ee(J(3352)),ie=ee(J(249)),oe=ee(J(4336)),se=J(8169),ae=J(2941),ue=function(){function t(){}return t.prototype.initTreeBuilder=function(b){if(this.CST_STACK=[],this.outputCst=b.outputCst,this.nodeLocationTracking=(0,ne.default)(b,"nodeLocationTracking")?b.nodeLocationTracking:ae.DEFAULT_PARSER_CONFIG.nodeLocationTracking,this.outputCst)if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=te.setNodeLocationFull,this.setNodeLocationFromNode=te.setNodeLocationFull,this.cstPostRule=re.default,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=re.default,this.setNodeLocationFromNode=re.default,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=te.setNodeLocationOnlyOffset,this.setNodeLocationFromNode=te.setNodeLocationOnlyOffset,this.cstPostRule=re.default,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=re.default,this.setNodeLocationFromNode=re.default,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else{if(!/none/i.test(this.nodeLocationTracking))throw Error('Invalid <nodeLocationTracking> config option: "'.concat(b.nodeLocationTracking,'"'));this.setNodeLocationFromToken=re.default,this.setNodeLocationFromNode=re.default,this.cstPostRule=re.default,this.setInitialNodeLocation=re.default}else this.cstInvocationStateUpdate=re.default,this.cstFinallyStateUpdate=re.default,this.cstPostTerminal=re.default,this.cstPostNonTerminal=re.default,this.cstPostRule=re.default},t.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(b){b.location={startOffset:NaN,endOffset:NaN}},t.prototype.setInitialNodeLocationOnlyOffsetRegular=function(b){b.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},t.prototype.setInitialNodeLocationFullRecovery=function(b){b.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},t.prototype.setInitialNodeLocationFullRegular=function(b){var S=this.LA(1);b.location={startOffset:S.startOffset,startLine:S.startLine,startColumn:S.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},t.prototype.cstInvocationStateUpdate=function(b){var S={name:b,children:Object.create(null)};this.setInitialNodeLocation(S),this.CST_STACK.push(S)},t.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},t.prototype.cstPostRuleFull=function(b){var S=this.LA(0),J=b.location;J.startOffset<=S.startOffset==1?(J.endOffset=S.endOffset,J.endLine=S.endLine,J.endColumn=S.endColumn):(J.startOffset=NaN,J.startLine=NaN,J.startColumn=NaN)},t.prototype.cstPostRuleOnlyOffset=function(b){var S=this.LA(0),J=b.location;J.startOffset<=S.startOffset==1?J.endOffset=S.endOffset:J.startOffset=NaN},t.prototype.cstPostTerminal=function(b,S){var J=this.CST_STACK[this.CST_STACK.length-1];(0,te.addTerminalToCst)(J,S,b),this.setNodeLocationFromToken(J.location,S)},t.prototype.cstPostNonTerminal=function(b,S){var J=this.CST_STACK[this.CST_STACK.length-1];(0,te.addNoneTerminalToCst)(J,S,b),this.setNodeLocationFromNode(J.location,b.location)},t.prototype.getBaseCstVisitorConstructor=function(){if((0,oe.default)(this.baseCstVisitorConstructor)){var b=(0,se.createBaseSemanticVisitorConstructor)(this.className,(0,ie.default)(this.gastProductionsCache));return this.baseCstVisitorConstructor=b,b}return this.baseCstVisitorConstructor},t.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if((0,oe.default)(this.baseCstVisitorWithDefaultsConstructor)){var b=(0,se.createBaseVisitorConstructorWithDefaults)(this.className,(0,ie.default)(this.gastProductionsCache),this.getBaseCstVisitorConstructor());return this.baseCstVisitorWithDefaultsConstructor=b,b}return this.baseCstVisitorWithDefaultsConstructor},t.prototype.getLastExplicitRuleShortName=function(){var b=this.RULE_STACK;return b[b.length-1]},t.prototype.getPreviousExplicitRuleShortName=function(){var b=this.RULE_STACK;return b[b.length-2]},t.prototype.getLastExplicitRuleOccurrenceIndex=function(){var b=this.RULE_OCCURRENCE_STACK;return b[b.length-1]},t}();S.TreeBuilder=ue},4803:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.applyMixins=void 0,S.applyMixins=function(b,S){S.forEach((function(S){var J=S.prototype;Object.getOwnPropertyNames(J).forEach((function(ee){if("constructor"!==ee){var te=Object.getOwnPropertyDescriptor(J,ee);te&&(te.get||te.set)?Object.defineProperty(b.prototype,ee,te):b.prototype[ee]=S.prototype[ee]}}))}))}},6178:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.charCodeToOptimizedIndex=S.minOptimizationVal=S.buildLineBreakIssueMessage=S.LineTerminatorOptimizedTester=S.isShortPattern=S.isCustomPattern=S.cloneEmptyGroups=S.performWarningRuntimeChecks=S.performRuntimeChecks=S.addStickyFlag=S.addStartOfInput=S.findUnreachablePatterns=S.findModesThatDoNotExist=S.findInvalidGroupType=S.findDuplicatePatterns=S.findUnsupportedFlags=S.findStartOfInputAnchor=S.findEmptyMatchRegExps=S.findEndOfInputAnchor=S.findInvalidPatterns=S.findMissingPatterns=S.validatePatterns=S.analyzeTokenTypes=S.enableSticky=S.disableSticky=S.SUPPORT_STICKY=S.MODES=S.DEFAULT_MODE=void 0;var ne=J(4844),ie=J(9027),oe=re(J(3237)),se=re(J(5455)),ae=re(J(417)),ue=re(J(6152)),ce=re(J(8346)),le=re(J(5676)),pe=re(J(2070)),fe=re(J(7335)),de=re(J(3493)),he=re(J(6760)),me=re(J(9756)),ge=re(J(5505)),ye=re(J(1049)),ve=re(J(4336)),Te=re(J(5281)),be=re(J(3352)),_e=re(J(249)),Ee=re(J(859)),Ae=re(J(882)),we=re(J(4573)),xe=re(J(8215)),ke=re(J(1886)),Ce=J(7146),Pe=J(1480),Se=J(3067);function C(b){var S=(0,Ae.default)(b,(function(b){return!(0,be.default)(b,"PATTERN")}));return{errors:(0,he.default)(S,(function(b){return{message:"Token Type: ->"+b.name+"<- missing static 'PATTERN' property",type:ie.LexerDefinitionErrorType.MISSING_PATTERN,tokenTypes:[b]}})),valid:(0,fe.default)(b,S)}}function M(b){var S=(0,Ae.default)(b,(function(b){var S=b.PATTERN;return!((0,Ee.default)(S)||(0,ye.default)(S)||(0,be.default)(S,"exec")||(0,ge.default)(S))}));return{errors:(0,he.default)(S,(function(b){return{message:"Token Type: ->"+b.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:ie.LexerDefinitionErrorType.INVALID_PATTERN,tokenTypes:[b]}})),valid:(0,fe.default)(b,S)}}S.DEFAULT_MODE="defaultMode",S.MODES="modes",S.SUPPORT_STICKY="boolean"==typeof new RegExp("(?:)").sticky,S.disableSticky=function(){S.SUPPORT_STICKY=!1},S.enableSticky=function(){S.SUPPORT_STICKY=!0},S.analyzeTokenTypes=function(b,J){var ee,te=(J=(0,we.default)(J,{useSticky:S.SUPPORT_STICKY,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r","\n"],tracer:function(b,S){return S()}})).tracer;te("initCharCodeToOptimizedIndexMap",(function(){!function(){if((0,se.default)(Oe)){Oe=new Array(65536);for(var b=0;b<65536;b++)Oe[b]=b>255?255+~~(b/255):b}}()})),te("Reject Lexer.NA",(function(){ee=(0,pe.default)(b,(function(b){return b.PATTERN===ie.Lexer.NA}))}));var re,ne,oe,ae,ce,le,fe,Te,_e,Ae,Se,Ie=!1;te("Transform Patterns",(function(){Ie=!1,re=(0,he.default)(ee,(function(b){var S=b.PATTERN;if((0,Ee.default)(S)){var ee=S.source;return 1!==ee.length||"^"===ee||"$"===ee||"."===ee||S.ignoreCase?2!==ee.length||"\\"!==ee[0]||(0,ke.default)(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],ee[1])?J.useSticky?Y(S):K(S):ee[1]:ee}if((0,ye.default)(S))return Ie=!0,{exec:S};if("object"==typeof S)return Ie=!0,S;if("string"==typeof S){if(1===S.length)return S;var te=S.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),re=new RegExp(te);return J.useSticky?Y(re):K(re)}throw Error("non exhaustive match")}))})),te("misc mapping",(function(){ne=(0,he.default)(ee,(function(b){return b.tokenTypeIdx})),oe=(0,he.default)(ee,(function(b){var S=b.GROUP;if(S!==ie.Lexer.SKIPPED){if((0,ge.default)(S))return S;if((0,ve.default)(S))return!1;throw Error("non exhaustive match")}})),ae=(0,he.default)(ee,(function(b){var S=b.LONGER_ALT;if(S)return(0,ue.default)(S)?(0,he.default)(S,(function(b){return(0,de.default)(ee,b)})):[(0,de.default)(ee,S)]})),ce=(0,he.default)(ee,(function(b){return b.PUSH_MODE})),le=(0,he.default)(ee,(function(b){return(0,be.default)(b,"POP_MODE")}))})),te("Line Terminator Handling",(function(){var b=Q(J.lineTerminatorCharacters);fe=(0,he.default)(ee,(function(b){return!1})),"onlyOffset"!==J.positionTracking&&(fe=(0,he.default)(ee,(function(S){return(0,be.default)(S,"LINE_BREAKS")?!!S.LINE_BREAKS:!1===q(S,b)&&(0,Pe.canMatchCharCode)(b,S.PATTERN)})))})),te("Misc Mapping #2",(function(){Te=(0,he.default)(ee,H),_e=(0,he.default)(re,X),Ae=(0,xe.default)(ee,(function(b,S){var J=S.GROUP;return(0,ge.default)(J)&&J!==ie.Lexer.SKIPPED&&(b[J]=[]),b}),{}),Se=(0,he.default)(re,(function(b,S){return{pattern:re[S],longerAlt:ae[S],canLineTerminator:fe[S],isCustom:Te[S],short:_e[S],group:oe[S],push:ce[S],pop:le[S],tokenTypeIdx:ne[S],tokenType:ee[S]}}))}));var De=!0,Re=[];return J.safeMode||te("First Char Optimization",(function(){Re=(0,xe.default)(ee,(function(b,S,ee){if("string"==typeof S.PATTERN){var te=tt(S.PATTERN.charCodeAt(0));Z(b,te,Se[ee])}else if((0,ue.default)(S.START_CHARS_HINT)){var re;(0,me.default)(S.START_CHARS_HINT,(function(S){var J=tt("string"==typeof S?S.charCodeAt(0):S);re!==J&&(re=J,Z(b,J,Se[ee]))}))}else if((0,Ee.default)(S.PATTERN))if(S.PATTERN.unicode)De=!1,J.ensureOptimizations&&(0,Ce.PRINT_ERROR)("".concat(Pe.failedOptimizationPrefixMsg)+"\tUnable to analyze < ".concat(S.PATTERN.toString()," > pattern.\n")+"\tThe regexp unicode flag is not currently supported by the regexp-to-ast library.\n\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE");else{var ne=(0,Pe.getOptimizedStartCodesIndices)(S.PATTERN,J.ensureOptimizations);(0,se.default)(ne)&&(De=!1),(0,me.default)(ne,(function(S){Z(b,S,Se[ee])}))}else J.ensureOptimizations&&(0,Ce.PRINT_ERROR)("".concat(Pe.failedOptimizationPrefixMsg)+"\tTokenType: <".concat(S.name,"> is using a custom token pattern without providing <start_chars_hint> parameter.\n")+"\tThis will disable the lexer's first char optimizations.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE"),De=!1;return b}),[])})),{emptyGroups:Ae,patternIdxToConfig:Se,charCodeToPatternIdxToConfig:Re,hasCustom:Ie,canBeOptimized:De}},S.validatePatterns=function(b,S){var J=[],ee=C(b);J=J.concat(ee.errors);var te=M(ee.valid),re=te.valid;return(J=(J=(J=(J=J.concat(te.errors)).concat(function(b){var S=[],J=(0,Ae.default)(b,(function(b){return(0,Ee.default)(b.PATTERN)}));return(S=(S=(S=(S=S.concat(w(J))).concat(U(J))).concat(B(J))).concat(G(J))).concat(F(J))}(re))).concat(W(re))).concat(V(re,S))).concat(z(re))},S.findMissingPatterns=C,S.findInvalidPatterns=M;var Ie=/[^\\][$]/;function w(b){var S=function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.found=!1,S}return te(e,b),e.prototype.visitEndAnchor=function(b){this.found=!0},e}(ne.BaseRegExpVisitor),J=(0,Ae.default)(b,(function(b){var J=b.PATTERN;try{var ee=(0,Se.getRegExpAst)(J),te=new S;return te.visit(ee),te.found}catch(b){return Ie.test(J.source)}}));return(0,he.default)(J,(function(b){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+b.name+"<- static 'PATTERN' cannot contain end of input anchor '$'\n\tSee chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:ie.LexerDefinitionErrorType.EOI_ANCHOR_FOUND,tokenTypes:[b]}}))}function F(b){var S=(0,Ae.default)(b,(function(b){return b.PATTERN.test("")}));return(0,he.default)(S,(function(b){return{message:"Token Type: ->"+b.name+"<- static 'PATTERN' must not match an empty string",type:ie.LexerDefinitionErrorType.EMPTY_MATCH_PATTERN,tokenTypes:[b]}}))}S.findEndOfInputAnchor=w,S.findEmptyMatchRegExps=F;var De=/[^\\[][\^]|^\^/;function U(b){var S=function(b){function e(){var S=null!==b&&b.apply(this,arguments)||this;return S.found=!1,S}return te(e,b),e.prototype.visitStartAnchor=function(b){this.found=!0},e}(ne.BaseRegExpVisitor),J=(0,Ae.default)(b,(function(b){var J=b.PATTERN;try{var ee=(0,Se.getRegExpAst)(J),te=new S;return te.visit(ee),te.found}catch(b){return De.test(J.source)}}));return(0,he.default)(J,(function(b){return{message:"Unexpected RegExp Anchor Error:\n\tToken Type: ->"+b.name+"<- static 'PATTERN' cannot contain start of input anchor '^'\n\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#ANCHORS\tfor details.",type:ie.LexerDefinitionErrorType.SOI_ANCHOR_FOUND,tokenTypes:[b]}}))}function B(b){var S=(0,Ae.default)(b,(function(b){var S=b.PATTERN;return S instanceof RegExp&&(S.multiline||S.global)}));return(0,he.default)(S,(function(b){return{message:"Token Type: ->"+b.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:ie.LexerDefinitionErrorType.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[b]}}))}function G(b){var S=[],J=(0,he.default)(b,(function(J){return(0,xe.default)(b,(function(b,ee){return J.PATTERN.source!==ee.PATTERN.source||(0,ke.default)(S,ee)||ee.PATTERN===ie.Lexer.NA||(S.push(ee),b.push(ee)),b}),[])}));J=(0,ae.default)(J);var ee=(0,Ae.default)(J,(function(b){return b.length>1}));return(0,he.default)(ee,(function(b){var S=(0,he.default)(b,(function(b){return b.name})),J=(0,oe.default)(b).PATTERN;return{message:"The same RegExp pattern ->".concat(J,"<-")+"has been used in all of the following Token Types: ".concat(S.join(", ")," <-"),type:ie.LexerDefinitionErrorType.DUPLICATE_PATTERNS_FOUND,tokenTypes:b}}))}function W(b){var S=(0,Ae.default)(b,(function(b){if(!(0,be.default)(b,"GROUP"))return!1;var S=b.GROUP;return S!==ie.Lexer.SKIPPED&&S!==ie.Lexer.NA&&!(0,ge.default)(S)}));return(0,he.default)(S,(function(b){return{message:"Token Type: ->"+b.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:ie.LexerDefinitionErrorType.INVALID_GROUP_TYPE_FOUND,tokenTypes:[b]}}))}function V(b,S){var J=(0,Ae.default)(b,(function(b){return void 0!==b.PUSH_MODE&&!(0,ke.default)(S,b.PUSH_MODE)}));return(0,he.default)(J,(function(b){return{message:"Token Type: ->".concat(b.name,"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->").concat(b.PUSH_MODE,"<-")+"which does not exist",type:ie.LexerDefinitionErrorType.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[b]}}))}function z(b){var S=[],J=(0,xe.default)(b,(function(b,S,J){var ee,te,re=S.PATTERN;return re===ie.Lexer.NA||((0,ge.default)(re)?b.push({str:re,idx:J,tokenType:S}):(0,Ee.default)(re)&&(ee=re,te=[".","\\","[","]","|","^","$","(",")","?","*","+","{"],void 0===(0,Te.default)(te,(function(b){return-1!==ee.source.indexOf(b)})))&&b.push({str:re.source,idx:J,tokenType:S})),b}),[]);return(0,me.default)(b,(function(b,ee){(0,me.default)(J,(function(J){var te=J.str,re=J.idx,ne=J.tokenType;if(ee<re&&function(b,S){if((0,Ee.default)(S)){var J=S.exec(b);return null!==J&&0===J.index}if((0,ye.default)(S))return S(b,0,[],{});if((0,be.default)(S,"exec"))return S.exec(b,0,[],{});if("string"==typeof S)return S===b;throw Error("non exhaustive match")}(te,b.PATTERN)){var oe="Token: ->".concat(ne.name,"<- can never be matched.\n")+"Because it appears AFTER the Token Type ->".concat(b.name,"<-")+"in the lexer's definition.\nSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE";S.push({message:oe,type:ie.LexerDefinitionErrorType.UNREACHABLE_PATTERN,tokenTypes:[b,ne]})}}))})),S}function K(b){var S=b.ignoreCase?"i":"";return new RegExp("^(?:".concat(b.source,")"),S)}function Y(b){var S=b.ignoreCase?"iy":"y";return new RegExp("".concat(b.source),S)}function H(b){var S=b.PATTERN;if((0,Ee.default)(S))return!1;if((0,ye.default)(S))return!0;if((0,be.default)(S,"exec"))return!0;if((0,ge.default)(S))return!1;throw Error("non exhaustive match")}function X(b){return!(!(0,ge.default)(b)||1!==b.length)&&b.charCodeAt(0)}function q(b,S){if((0,be.default)(b,"LINE_BREAKS"))return!1;if((0,Ee.default)(b.PATTERN)){try{(0,Pe.canMatchCharCode)(S,b.PATTERN)}catch(b){return{issue:ie.LexerDefinitionErrorType.IDENTIFY_TERMINATOR,errMsg:b.message}}return!1}if((0,ge.default)(b.PATTERN))return!1;if(H(b))return{issue:ie.LexerDefinitionErrorType.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}function $(b,S){if(S.issue===ie.LexerDefinitionErrorType.IDENTIFY_TERMINATOR)return"Warning: unable to identify line terminator usage in pattern.\n"+"\tThe problem is in the <".concat(b.name,"> Token Type\n")+"\t Root cause: ".concat(S.errMsg,".\n")+"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(S.issue===ie.LexerDefinitionErrorType.CUSTOM_LINE_BREAK)return"Warning: A Custom Token Pattern should specify the <line_breaks> option.\n"+"\tThe problem is in the <".concat(b.name,"> Token Type\n")+"\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function Q(b){return(0,he.default)(b,(function(b){return(0,ge.default)(b)?b.charCodeAt(0):b}))}function Z(b,S,J){void 0===b[S]?b[S]=[J]:b[S].push(J)}S.findStartOfInputAnchor=U,S.findUnsupportedFlags=B,S.findDuplicatePatterns=G,S.findInvalidGroupType=W,S.findModesThatDoNotExist=V,S.findUnreachablePatterns=z,S.addStartOfInput=K,S.addStickyFlag=Y,S.performRuntimeChecks=function(b,J,ee){var te=[];return(0,be.default)(b,S.DEFAULT_MODE)||te.push({message:"A MultiMode Lexer cannot be initialized without a <"+S.DEFAULT_MODE+"> property in its definition\n",type:ie.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),(0,be.default)(b,S.MODES)||te.push({message:"A MultiMode Lexer cannot be initialized without a <"+S.MODES+"> property in its definition\n",type:ie.LexerDefinitionErrorType.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),(0,be.default)(b,S.MODES)&&(0,be.default)(b,S.DEFAULT_MODE)&&!(0,be.default)(b.modes,b.defaultMode)&&te.push({message:"A MultiMode Lexer cannot be initialized with a ".concat(S.DEFAULT_MODE,": <").concat(b.defaultMode,">")+"which does not exist\n",type:ie.LexerDefinitionErrorType.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),(0,be.default)(b,S.MODES)&&(0,me.default)(b.modes,(function(b,S){(0,me.default)(b,(function(b,J){(0,ve.default)(b)&&te.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:"+"<".concat(S,"> at index: <").concat(J,">\n"),type:ie.LexerDefinitionErrorType.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})}))})),te},S.performWarningRuntimeChecks=function(b,S,J){var ee=[],te=!1,re=(0,ae.default)((0,le.default)((0,ce.default)(b.modes))),ne=(0,pe.default)(re,(function(b){return b.PATTERN===ie.Lexer.NA})),oe=Q(J);return S&&(0,me.default)(ne,(function(b){var S=q(b,oe);if(!1!==S){var J={message:$(b,S),type:S.issue,tokenType:b};ee.push(J)}else(0,be.default)(b,"LINE_BREAKS")?!0===b.LINE_BREAKS&&(te=!0):(0,Pe.canMatchCharCode)(oe,b.PATTERN)&&(te=!0)})),S&&!te&&ee.push({message:"Warning: No LINE_BREAKS Found.\n\tThis Lexer has been defined to track line and column information,\n\tBut none of the Token Types can be identified as matching a line terminator.\n\tSee https://chevrotain.io/docs/guide/resolving_lexer_errors.html#LINE_BREAKS \n\tfor details.",type:ie.LexerDefinitionErrorType.NO_LINE_BREAKS_FLAGS}),ee},S.cloneEmptyGroups=function(b){var S={},J=(0,_e.default)(b);return(0,me.default)(J,(function(J){var ee=b[J];if(!(0,ue.default)(ee))throw Error("non exhaustive match");S[J]=[]})),S},S.isCustomPattern=H,S.isShortPattern=X,S.LineTerminatorOptimizedTester={test:function(b){for(var S=b.length,J=this.lastIndex;J<S;J++){var ee=b.charCodeAt(J);if(10===ee)return this.lastIndex=J+1,!0;if(13===ee)return 10===b.charCodeAt(J+1)?this.lastIndex=J+2:this.lastIndex=J+1,!0}return!1},lastIndex:0},S.buildLineBreakIssueMessage=$,S.minOptimizationVal=256;var Oe=[];function tt(b){return b<S.minOptimizationVal?b:Oe[b]}S.charCodeToOptimizedIndex=tt},495:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.defaultLexerErrorProvider=void 0,S.defaultLexerErrorProvider={buildUnableToPopLexerModeMessage:function(b){return"Unable to pop Lexer Mode after encountering Token ->".concat(b.image,"<- The Mode Stack is empty")},buildUnexpectedCharactersMessage:function(b,S,J,ee,te){return"unexpected character: ->".concat(b.charAt(S),"<- at offset: ").concat(S,",")+" skipped ".concat(J," characters.")}}},9027:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.Lexer=S.LexerDefinitionErrorType=void 0;var te,re=J(6178),ne=ee(J(4291)),ie=ee(J(5455)),oe=ee(J(6152)),se=ee(J(6974)),ae=ee(J(2070)),ue=ee(J(6760)),ce=ee(J(9756)),le=ee(J(249)),pe=ee(J(4336)),fe=ee(J(3059)),de=ee(J(19)),he=ee(J(8215)),me=ee(J(4004)),ge=J(7146),ye=J(1201),ve=J(495),Te=J(3067);(te=S.LexerDefinitionErrorType||(S.LexerDefinitionErrorType={}))[te.MISSING_PATTERN=0]="MISSING_PATTERN",te[te.INVALID_PATTERN=1]="INVALID_PATTERN",te[te.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",te[te.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",te[te.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",te[te.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",te[te.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",te[te.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",te[te.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",te[te.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",te[te.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",te[te.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",te[te.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",te[te.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",te[te.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",te[te.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",te[te.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK";var be={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:["\n","\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:ve.defaultLexerErrorProvider,traceInitPerf:!1,skipValidations:!1};Object.freeze(be);var _e=function(){function t(b,S){void 0===S&&(S=be);var J=this;if(this.lexerDefinition=b,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},this.TRACE_INIT=function(b,S){if(!0===J.traceInitPerf){J.traceInitIndent++;var ee=new Array(J.traceInitIndent+1).join("\t");J.traceInitIndent<J.traceInitMaxIdent&&console.log("".concat(ee,"--\x3e <").concat(b,">"));var te=(0,ge.timer)(S),re=te.time,ne=te.value,ie=re>10?console.warn:console.log;return J.traceInitIndent<J.traceInitMaxIdent&&ie("".concat(ee,"<-- <").concat(b,"> time: ").concat(re,"ms")),J.traceInitIndent--,ne}return S()},"boolean"==typeof S)throw Error("The second argument to the Lexer constructor is now an ILexerConfig Object.\na boolean 2nd argument is no longer supported");this.config=(0,de.default)({},be,S);var ee=this.config.traceInitPerf;!0===ee?(this.traceInitMaxIdent=1/0,this.traceInitPerf=!0):"number"==typeof ee&&(this.traceInitMaxIdent=ee,this.traceInitPerf=!0),this.traceInitIndent=-1,this.TRACE_INIT("Lexer Constructor",(function(){var ee,te=!0;J.TRACE_INIT("Lexer Config handling",(function(){if(J.config.lineTerminatorsPattern===be.lineTerminatorsPattern)J.config.lineTerminatorsPattern=re.LineTerminatorOptimizedTester;else if(J.config.lineTerminatorCharacters===be.lineTerminatorCharacters)throw Error("Error: Missing <lineTerminatorCharacters> property on the Lexer config.\n\tFor details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS");if(S.safeMode&&S.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');J.trackStartLines=/full|onlyStart/i.test(J.config.positionTracking),J.trackEndLines=/full/i.test(J.config.positionTracking),(0,oe.default)(b)?ee={modes:{defaultMode:(0,me.default)(b)},defaultMode:re.DEFAULT_MODE}:(te=!1,ee=(0,me.default)(b))})),!1===J.config.skipValidations&&(J.TRACE_INIT("performRuntimeChecks",(function(){J.lexerDefinitionErrors=J.lexerDefinitionErrors.concat((0,re.performRuntimeChecks)(ee,J.trackStartLines,J.config.lineTerminatorCharacters))})),J.TRACE_INIT("performWarningRuntimeChecks",(function(){J.lexerDefinitionWarning=J.lexerDefinitionWarning.concat((0,re.performWarningRuntimeChecks)(ee,J.trackStartLines,J.config.lineTerminatorCharacters))}))),ee.modes=ee.modes?ee.modes:{},(0,ce.default)(ee.modes,(function(b,S){ee.modes[S]=(0,ae.default)(b,(function(b){return(0,pe.default)(b)}))}));var se=(0,le.default)(ee.modes);if((0,ce.default)(ee.modes,(function(b,ee){J.TRACE_INIT("Mode: <".concat(ee,"> processing"),(function(){var te;J.modes.push(ee),!1===J.config.skipValidations&&J.TRACE_INIT("validatePatterns",(function(){J.lexerDefinitionErrors=J.lexerDefinitionErrors.concat((0,re.validatePatterns)(b,se))})),(0,ie.default)(J.lexerDefinitionErrors)&&((0,ye.augmentTokenTypes)(b),J.TRACE_INIT("analyzeTokenTypes",(function(){te=(0,re.analyzeTokenTypes)(b,{lineTerminatorCharacters:J.config.lineTerminatorCharacters,positionTracking:S.positionTracking,ensureOptimizations:S.ensureOptimizations,safeMode:S.safeMode,tracer:J.TRACE_INIT})})),J.patternIdxToConfig[ee]=te.patternIdxToConfig,J.charCodeToPatternIdxToConfig[ee]=te.charCodeToPatternIdxToConfig,J.emptyGroups=(0,de.default)({},J.emptyGroups,te.emptyGroups),J.hasCustom=te.hasCustom||J.hasCustom,J.canModeBeOptimized[ee]=te.canBeOptimized)}))})),J.defaultMode=ee.defaultMode,!(0,ie.default)(J.lexerDefinitionErrors)&&!J.config.deferDefinitionErrorsHandling){var ve=(0,ue.default)(J.lexerDefinitionErrors,(function(b){return b.message})).join("-----------------------\n");throw new Error("Errors detected in definition of Lexer:\n"+ve)}(0,ce.default)(J.lexerDefinitionWarning,(function(b){(0,ge.PRINT_WARNING)(b.message)})),J.TRACE_INIT("Choosing sub-methods implementations",(function(){if(re.SUPPORT_STICKY?(J.chopInput=fe.default,J.match=J.matchWithTest):(J.updateLastIndex=ne.default,J.match=J.matchWithExec),te&&(J.handleModes=ne.default),!1===J.trackStartLines&&(J.computeNewColumn=fe.default),!1===J.trackEndLines&&(J.updateTokenEndLineColumnLocation=ne.default),/full/i.test(J.config.positionTracking))J.createTokenInstance=J.createFullToken;else if(/onlyStart/i.test(J.config.positionTracking))J.createTokenInstance=J.createStartOnlyToken;else{if(!/onlyOffset/i.test(J.config.positionTracking))throw Error('Invalid <positionTracking> config option: "'.concat(J.config.positionTracking,'"'));J.createTokenInstance=J.createOffsetOnlyToken}J.hasCustom?(J.addToken=J.addTokenUsingPush,J.handlePayload=J.handlePayloadWithCustom):(J.addToken=J.addTokenUsingMemberAccess,J.handlePayload=J.handlePayloadNoCustom)})),J.TRACE_INIT("Failed Optimization Warnings",(function(){var b=(0,he.default)(J.canModeBeOptimized,(function(b,S,J){return!1===S&&b.push(J),b}),[]);if(S.ensureOptimizations&&!(0,ie.default)(b))throw Error("Lexer Modes: < ".concat(b.join(", ")," > cannot be optimized.\n")+'\t Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.\n\t Or inspect the console log for details on how to resolve these issues.')})),J.TRACE_INIT("clearRegExpParserCache",(function(){(0,Te.clearRegExpParserCache)()})),J.TRACE_INIT("toFastProperties",(function(){(0,ge.toFastProperties)(J)}))}))}return t.prototype.tokenize=function(b,S){if(void 0===S&&(S=this.defaultMode),!(0,ie.default)(this.lexerDefinitionErrors)){var J=(0,ue.default)(this.lexerDefinitionErrors,(function(b){return b.message})).join("-----------------------\n");throw new Error("Unable to Tokenize because Errors detected in definition of Lexer:\n"+J)}return this.tokenizeInternal(b,S)},t.prototype.tokenizeInternal=function(b,S){var J,ee,te,ne,ie,oe,ae,ue,ce,le,pe,fe,de,he,me,ge,ye=this,ve=b,Te=ve.length,be=0,_e=0,Ee=this.hasCustom?0:Math.floor(b.length/10),Ae=new Array(Ee),we=[],xe=this.trackStartLines?1:void 0,ke=this.trackStartLines?1:void 0,Ce=(0,re.cloneEmptyGroups)(this.emptyGroups),Pe=this.trackStartLines,Se=this.config.lineTerminatorsPattern,Ie=0,De=[],Oe=[],Re=[],Ne=[];function j(){return De}function U(b){var S=(0,re.charCodeToOptimizedIndex)(b),J=Oe[S];return void 0===J?Ne:J}Object.freeze(Ne);var Me,G=function(b){if(1===Re.length&&void 0===b.tokenType.PUSH_MODE){var S=ye.config.errorMessageProvider.buildUnableToPopLexerModeMessage(b);we.push({offset:b.startOffset,line:b.startLine,column:b.startColumn,length:b.image.length,message:S})}else{Re.pop();var J=(0,se.default)(Re);De=ye.patternIdxToConfig[J],Oe=ye.charCodeToPatternIdxToConfig[J],Ie=De.length;var ee=ye.canModeBeOptimized[J]&&!1===ye.config.safeMode;ge=Oe&&ee?U:j}};function W(b){Re.push(b),Oe=this.charCodeToPatternIdxToConfig[b],De=this.patternIdxToConfig[b],Ie=De.length,Ie=De.length;var S=this.canModeBeOptimized[b]&&!1===this.config.safeMode;ge=Oe&&S?U:j}for(W.call(this,S);be<Te;){oe=null;var Fe=ve.charCodeAt(be),Le=ge(Fe),je=Le.length;for(J=0;J<je;J++){var Be=(Me=Le[J]).pattern;if(ae=null,!1!==(ze=Me.short)?Fe===ze&&(oe=Be):!0===Me.isCustom?null!==(me=Be.exec(ve,be,Ae,Ce))?(oe=me[0],void 0!==me.payload&&(ae=me.payload)):oe=null:(this.updateLastIndex(Be,be),oe=this.match(Be,b,be)),null!==oe){if(void 0!==(ie=Me.longerAlt)){var $e=ie.length;for(te=0;te<$e;te++){var Ue=De[ie[te]],Xe=Ue.pattern;if(ue=null,!0===Ue.isCustom?null!==(me=Xe.exec(ve,be,Ae,Ce))?(ne=me[0],void 0!==me.payload&&(ue=me.payload)):ne=null:(this.updateLastIndex(Xe,be),ne=this.match(Xe,b,be)),ne&&ne.length>oe.length){oe=ne,ae=ue,Me=Ue;break}}}break}}if(null!==oe){if(ce=oe.length,void 0!==(le=Me.group)&&(pe=Me.tokenTypeIdx,fe=this.createTokenInstance(oe,be,pe,Me.tokenType,xe,ke,ce),this.handlePayload(fe,ae),!1===le?_e=this.addToken(Ae,_e,fe):Ce[le].push(fe)),b=this.chopInput(b,ce),be+=ce,ke=this.computeNewColumn(ke,ce),!0===Pe&&!0===Me.canLineTerminator){var Ge=0,Ve=void 0,We=void 0;Se.lastIndex=0;do{!0===(Ve=Se.test(oe))&&(We=Se.lastIndex-1,Ge++)}while(!0===Ve);0!==Ge&&(xe+=Ge,ke=ce-We,this.updateTokenEndLineColumnLocation(fe,le,We,Ge,xe,ke,ce))}this.handleModes(Me,G,W,fe)}else{for(var qe=be,He=xe,Ke=ke,Ye=!1;!Ye&&be<Te;)for(ve.charCodeAt(be),b=this.chopInput(b,1),be++,ee=0;ee<Ie;ee++){var ze,Qe=De[ee];if(Be=Qe.pattern,!1!==(ze=Qe.short)?ve.charCodeAt(be)===ze&&(Ye=!0):!0===Qe.isCustom?Ye=null!==Be.exec(ve,be,Ae,Ce):(this.updateLastIndex(Be,be),Ye=null!==Be.exec(b)),!0===Ye)break}de=be-qe,he=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(ve,qe,de,He,Ke),we.push({offset:qe,line:He,column:Ke,length:de,message:he})}}return this.hasCustom||(Ae.length=_e),{tokens:Ae,groups:Ce,errors:we}},t.prototype.handleModes=function(b,S,J,ee){if(!0===b.pop){var te=b.push;S(ee),void 0!==te&&J.call(this,te)}else void 0!==b.push&&J.call(this,b.push)},t.prototype.chopInput=function(b,S){return b.substring(S)},t.prototype.updateLastIndex=function(b,S){b.lastIndex=S},t.prototype.updateTokenEndLineColumnLocation=function(b,S,J,ee,te,re,ne){var ie,oe;void 0!==S&&(oe=(ie=J===ne-1)?-1:0,1===ee&&!0===ie||(b.endLine=te+oe,b.endColumn=re-1-oe))},t.prototype.computeNewColumn=function(b,S){return b+S},t.prototype.createOffsetOnlyToken=function(b,S,J,ee){return{image:b,startOffset:S,tokenTypeIdx:J,tokenType:ee}},t.prototype.createStartOnlyToken=function(b,S,J,ee,te,re){return{image:b,startOffset:S,startLine:te,startColumn:re,tokenTypeIdx:J,tokenType:ee}},t.prototype.createFullToken=function(b,S,J,ee,te,re,ne){return{image:b,startOffset:S,endOffset:S+ne-1,startLine:te,endLine:te,startColumn:re,endColumn:re+ne-1,tokenTypeIdx:J,tokenType:ee}},t.prototype.addTokenUsingPush=function(b,S,J){return b.push(J),S},t.prototype.addTokenUsingMemberAccess=function(b,S,J){return b[S]=J,++S},t.prototype.handlePayloadNoCustom=function(b,S){},t.prototype.handlePayloadWithCustom=function(b,S){null!==S&&(b.payload=S)},t.prototype.matchWithTest=function(b,S,J){return!0===b.test(S)?S.substring(J,b.lastIndex):null},t.prototype.matchWithExec=function(b,S){var J=b.exec(S);return null!==J?J[0]:null},t.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",t.NA=/NOT_APPLICABLE/,t}();S.Lexer=_e},1480:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.canMatchCharCode=S.firstCharOptimizedIndices=S.getOptimizedStartCodesIndices=S.failedOptimizationPrefixMsg=void 0;var ne=J(4844),ie=re(J(6152)),oe=re(J(9794)),se=re(J(9756)),ae=re(J(5281)),ue=re(J(8346)),ce=re(J(1886)),le=J(7146),pe=J(3067),fe=J(6178),de="Complement Sets are not supported for first char optimization";function m(b,S,J){switch(b.type){case"Disjunction":for(var ee=0;ee<b.value.length;ee++)m(b.value[ee],S,J);break;case"Alternative":var te=b.value;for(ee=0;ee<te.length;ee++){var re=te[ee];switch(re.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var ne=re;switch(ne.type){case"Character":T(ne.value,S,J);break;case"Set":if(!0===ne.complement)throw Error(de);(0,se.default)(ne.value,(function(b){if("number"==typeof b)T(b,S,J);else{var ee=b;if(!0===J)for(var te=ee.from;te<=ee.to;te++)T(te,S,J);else{for(te=ee.from;te<=ee.to&&te<fe.minOptimizationVal;te++)T(te,S,J);if(ee.to>=fe.minOptimizationVal)for(var re=ee.from>=fe.minOptimizationVal?ee.from:fe.minOptimizationVal,ne=ee.to,ie=(0,fe.charCodeToOptimizedIndex)(re),oe=(0,fe.charCodeToOptimizedIndex)(ne),se=ie;se<=oe;se++)S[se]=se}}}));break;case"Group":m(ne.value,S,J);break;default:throw Error("Non Exhaustive Match")}var ie=void 0!==ne.quantifier&&0===ne.quantifier.atLeast;if("Group"===ne.type&&!1===_(ne)||"Group"!==ne.type&&!1===ie)break}break;default:throw Error("non exhaustive match!")}return(0,ue.default)(S)}function T(b,S,J){var ee=(0,fe.charCodeToOptimizedIndex)(b);S[ee]=ee,!0===J&&function(b,S){var J=String.fromCharCode(b),ee=J.toUpperCase();if(ee!==J)S[te=(0,fe.charCodeToOptimizedIndex)(ee.charCodeAt(0))]=te;else{var te,re=J.toLowerCase();re!==J&&(S[te=(0,fe.charCodeToOptimizedIndex)(re.charCodeAt(0))]=te)}}(b,S)}function E(b,S){return(0,ae.default)(b.value,(function(b){if("number"==typeof b)return(0,ce.default)(S,b);var J=b;return void 0!==(0,ae.default)(S,(function(b){return J.from<=b&&b<=J.to}))}))}function _(b){var S=b.quantifier;return!(!S||0!==S.atLeast)||!!b.value&&((0,ie.default)(b.value)?(0,oe.default)(b.value,_):_(b.value))}S.failedOptimizationPrefixMsg='Unable to use "first char" lexer optimizations:\n',S.getOptimizedStartCodesIndices=function(b,J){void 0===J&&(J=!1);try{var ee=(0,pe.getRegExpAst)(b);return m(ee.value,{},ee.flags.ignoreCase)}catch(ee){if(ee.message===de)J&&(0,le.PRINT_WARNING)("".concat(S.failedOptimizationPrefixMsg)+"\tUnable to optimize: < ".concat(b.toString()," >\n")+"\tComplement Sets cannot be automatically optimized.\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.");else{var te="";J&&(te="\n\tThis will disable the lexer's first char optimizations.\n\tSee: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details."),(0,le.PRINT_ERROR)("".concat(S.failedOptimizationPrefixMsg,"\n")+"\tFailed parsing: < ".concat(b.toString()," >\n")+"\tUsing the regexp-to-ast library version: ".concat(ne.VERSION,"\n")+"\tPlease open an issue at: https://github.com/bd82/regexp-to-ast/issues"+te)}}return[]},S.firstCharOptimizedIndices=m;var he=function(b){function e(S){var J=b.call(this)||this;return J.targetCharCodes=S,J.found=!1,J}return te(e,b),e.prototype.visitChildren=function(S){if(!0!==this.found){switch(S.type){case"Lookahead":return void this.visitLookahead(S);case"NegativeLookahead":return void this.visitNegativeLookahead(S)}b.prototype.visitChildren.call(this,S)}},e.prototype.visitCharacter=function(b){(0,ce.default)(this.targetCharCodes,b.value)&&(this.found=!0)},e.prototype.visitSet=function(b){b.complement?void 0===E(b,this.targetCharCodes)&&(this.found=!0):void 0!==E(b,this.targetCharCodes)&&(this.found=!0)},e}(ne.BaseRegExpVisitor);S.canMatchCharCode=function(b,S){if(S instanceof RegExp){var J=(0,pe.getRegExpAst)(S),ee=new he(b);return ee.visit(J),ee.found}return void 0!==(0,ae.default)(S,(function(S){return(0,ce.default)(b,S.charCodeAt(0))}))}},3067:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.clearRegExpParserCache=S.getRegExpAst=void 0;var ee=J(4844),te={},re=new ee.RegExpParser;S.getRegExpAst=function(b){var S=b.toString();if(te.hasOwnProperty(S))return te[S];var J=re.pattern(S);return te[S]=J,J},S.clearRegExpParserCache=function(){te={}}},1201:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.isTokenType=S.hasExtendingTokensTypesMapProperty=S.hasExtendingTokensTypesProperty=S.hasCategoriesProperty=S.hasShortKeyProperty=S.singleAssignCategoriesToksMap=S.assignCategoriesMapProp=S.assignCategoriesTokensProp=S.assignTokenDefaultProps=S.expandCategories=S.augmentTokenTypes=S.tokenIdxToClass=S.tokenShortNameIdx=S.tokenStructuredMatcherNoCategories=S.tokenStructuredMatcher=void 0;var te=ee(J(5455)),re=ee(J(417)),ne=ee(J(6152)),ie=ee(J(5676)),oe=ee(J(7335)),se=ee(J(6760)),ae=ee(J(9756)),ue=ee(J(3352)),ce=ee(J(1886)),le=ee(J(4004));function h(b){for(var S=(0,le.default)(b),J=b,ee=!0;ee;){J=(0,re.default)((0,ie.default)((0,se.default)(J,(function(b){return b.CATEGORIES}))));var ne=(0,oe.default)(J,S);S=S.concat(ne),(0,te.default)(ne)?ee=!1:J=ne}return S}function v(b){(0,ae.default)(b,(function(b){E(b)||(S.tokenIdxToClass[S.tokenShortNameIdx]=b,b.tokenTypeIdx=S.tokenShortNameIdx++),_(b)&&!(0,ne.default)(b.CATEGORIES)&&(b.CATEGORIES=[b.CATEGORIES]),_(b)||(b.CATEGORIES=[]),g(b)||(b.categoryMatches=[]),O(b)||(b.categoryMatchesMap={})}))}function y(b){(0,ae.default)(b,(function(b){b.categoryMatches=[],(0,ae.default)(b.categoryMatchesMap,(function(J,ee){b.categoryMatches.push(S.tokenIdxToClass[ee].tokenTypeIdx)}))}))}function m(b){(0,ae.default)(b,(function(b){T([],b)}))}function T(b,S){(0,ae.default)(b,(function(b){S.categoryMatchesMap[b.tokenTypeIdx]=!0})),(0,ae.default)(S.CATEGORIES,(function(J){var ee=b.concat(S);(0,ce.default)(ee,J)||T(ee,J)}))}function E(b){return(0,ue.default)(b,"tokenTypeIdx")}function _(b){return(0,ue.default)(b,"CATEGORIES")}function g(b){return(0,ue.default)(b,"categoryMatches")}function O(b){return(0,ue.default)(b,"categoryMatchesMap")}S.tokenStructuredMatcher=function(b,S){var J=b.tokenTypeIdx;return J===S.tokenTypeIdx||!0===S.isParent&&!0===S.categoryMatchesMap[J]},S.tokenStructuredMatcherNoCategories=function(b,S){return b.tokenTypeIdx===S.tokenTypeIdx},S.tokenShortNameIdx=1,S.tokenIdxToClass={},S.augmentTokenTypes=function(b){var S=h(b);v(S),m(S),y(S),(0,ae.default)(S,(function(b){b.isParent=b.categoryMatches.length>0}))},S.expandCategories=h,S.assignTokenDefaultProps=v,S.assignCategoriesTokensProp=y,S.assignCategoriesMapProp=m,S.singleAssignCategoriesToksMap=T,S.hasShortKeyProperty=E,S.hasCategoriesProperty=_,S.hasExtendingTokensTypesProperty=g,S.hasExtendingTokensTypesMapProperty=O,S.isTokenType=function(b){return(0,ue.default)(b,"tokenTypeIdx")}},6736:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.tokenMatcher=S.createTokenInstance=S.EOF=S.createToken=S.hasTokenLabel=S.tokenName=S.tokenLabel=void 0;var te=ee(J(5505)),re=ee(J(3352)),ne=ee(J(4336)),ie=J(9027),oe=J(1201);function c(b){return(0,te.default)(b.LABEL)&&""!==b.LABEL}S.tokenLabel=function(b){return c(b)?b.LABEL:b.name},S.tokenName=function(b){return b.name},S.hasTokenLabel=c;function l(b){return function(b){var S=b.pattern,J={};if(J.name=b.name,(0,ne.default)(S)||(J.PATTERN=S),(0,re.default)(b,"parent"))throw"The parent property is no longer supported.\nSee: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.";return(0,re.default)(b,"categories")&&(J.CATEGORIES=b.categories),(0,oe.augmentTokenTypes)([J]),(0,re.default)(b,"label")&&(J.LABEL=b.label),(0,re.default)(b,"group")&&(J.GROUP=b.group),(0,re.default)(b,"pop_mode")&&(J.POP_MODE=b.pop_mode),(0,re.default)(b,"push_mode")&&(J.PUSH_MODE=b.push_mode),(0,re.default)(b,"longer_alt")&&(J.LONGER_ALT=b.longer_alt),(0,re.default)(b,"line_breaks")&&(J.LINE_BREAKS=b.line_breaks),(0,re.default)(b,"start_chars_hint")&&(J.START_CHARS_HINT=b.start_chars_hint),J}(b)}S.createToken=l,S.EOF=l({name:"EOF",pattern:ie.Lexer.NA}),(0,oe.augmentTokenTypes)([S.EOF]),S.createTokenInstance=function(b,S,J,ee,te,re,ne,ie){return{image:S,startOffset:J,endOffset:ee,startLine:te,endLine:re,startColumn:ne,endColumn:ie,tokenTypeIdx:b.tokenTypeIdx,tokenType:b}},S.tokenMatcher=function(b,S){return(0,oe.tokenStructuredMatcher)(b,S)}},7979:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.VERSION=void 0,S.VERSION="10.1.2"},8962:function(b,S,J){"use strict";var ee=this&&this.__assign||function(){return(ee=Object.assign||function(b){for(var S,J=1,ee=arguments.length;J<ee;J++)for(var te in S=arguments[J])Object.prototype.hasOwnProperty.call(S,te)&&(b[te]=S[te]);return b}).apply(this,arguments)};Object.defineProperty(S,"__esModule",{value:!0}),S.generateCstDts=void 0;var te=J(7842),re=J(1871),ne={includeVisitorInterface:!0,visitorInterfaceName:"ICstNodeVisitor"};S.generateCstDts=function(b,S){var J=ee(ee({},ne),S),ie=(0,te.buildModel)(b);return(0,re.genDts)(ie,J)}},1871:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.genDts=void 0;var te=ee(J(5676)),re=ee(J(6152)),ne=ee(J(6760)),ie=ee(J(8215)),oe=ee(J(5652)),se=ee(J(3779));function l(b){return"token"===b.kind?"IToken":f(b.name)}function f(b){return(0,se.default)(b)+"CstNode"}function p(b){return(0,se.default)(b)+"CstChildren"}S.genDts=function(b,S){var J,ee,se=[];return se=(se=se.concat('import type { CstNode, ICstVisitor, IToken } from "chevrotain";')).concat((0,te.default)((0,ne.default)(b,(function(b){return function(b){return[function(b){var S=f(b.name),J=p(b.name);return"export interface ".concat(S,' extends CstNode {\n name: "').concat(b.name,'";\n children: ').concat(J,";\n}")}(b),function(b){var S=p(b.name);return"export type ".concat(S," = {\n ").concat((0,ne.default)(b.properties,(function(b){return function(b){var S=function(b){if((0,re.default)(b)){var S=(0,oe.default)((0,ne.default)(b,(function(b){return l(b)})));return"("+(0,ie.default)(S,(function(b,S){return b+" | "+S}))+")"}return l(b)}(b.type);return"".concat(b.name).concat(b.optional?"?":"",": ").concat(S,"[];")}(b)})).join("\n "),"\n};")}(b)]}(b)})))),S.includeVisitorInterface&&(se=se.concat((J=S.visitorInterfaceName,ee=b,"export interface ".concat(J,"<IN, OUT> extends ICstVisitor<IN, OUT> {\n ").concat((0,ne.default)(ee,(function(b){return function(b){var S=p(b.name);return"".concat(b.name,"(children: ").concat(S,", param?: IN): OUT;")}(b)})).join("\n "),"\n}")))),se.join("\n\n")+"\n"}},7842:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.buildModel=void 0;var ne=J(7729),ie=re(J(6760)),oe=re(J(5676)),se=re(J(8346)),ae=re(J(1525)),ue=re(J(3440)),ce=re(J(19));S.buildModel=function(b){var S=new le,J=(0,se.default)(b);return(0,ie.default)(J,(function(b){return S.visitRule(b)}))};var le=function(b){function e(){return null!==b&&b.apply(this,arguments)||this}return te(e,b),e.prototype.visitRule=function(b){var S=this.visitEach(b.definition),J=(0,ue.default)(S,(function(b){return b.propertyName})),ee=(0,ie.default)(J,(function(b,S){var J=!(0,ae.default)(b,(function(b){return!b.canBeNull})),ee=b[0].type;return b.length>1&&(ee=(0,ie.default)(b,(function(b){return b.type}))),{name:S,type:ee,optional:J}}));return{name:b.name,properties:ee}},e.prototype.visitAlternative=function(b){return this.visitEachAndOverrideWith(b.definition,{canBeNull:!0})},e.prototype.visitOption=function(b){return this.visitEachAndOverrideWith(b.definition,{canBeNull:!0})},e.prototype.visitRepetition=function(b){return this.visitEachAndOverrideWith(b.definition,{canBeNull:!0})},e.prototype.visitRepetitionMandatory=function(b){return this.visitEach(b.definition)},e.prototype.visitRepetitionMandatoryWithSeparator=function(b){return this.visitEach(b.definition).concat({propertyName:b.separator.name,canBeNull:!0,type:h(b.separator)})},e.prototype.visitRepetitionWithSeparator=function(b){return this.visitEachAndOverrideWith(b.definition,{canBeNull:!0}).concat({propertyName:b.separator.name,canBeNull:!0,type:h(b.separator)})},e.prototype.visitAlternation=function(b){return this.visitEachAndOverrideWith(b.definition,{canBeNull:!0})},e.prototype.visitTerminal=function(b){return[{propertyName:b.label||b.terminalType.name,canBeNull:!1,type:h(b)}]},e.prototype.visitNonTerminal=function(b){return[{propertyName:b.label||b.nonTerminalName,canBeNull:!1,type:h(b)}]},e.prototype.visitEachAndOverrideWith=function(b,S){return(0,ie.default)(this.visitEach(b),(function(b){return(0,ce.default)({},b,S)}))},e.prototype.visitEach=function(b){var S=this;return(0,oe.default)((0,ie.default)(b,(function(b){return S.visit(b)})))},e}(ne.GAstVisitor);function h(b){return b instanceof ne.NonTerminal?{kind:"rule",name:b.referencedRule.name}:{kind:"token"}}},7729:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.isSequenceProd=S.isBranchingProd=S.isOptionalProd=S.getProductionDslName=S.GAstVisitor=S.serializeProduction=S.serializeGrammar=S.Alternative=S.Alternation=S.RepetitionWithSeparator=S.RepetitionMandatoryWithSeparator=S.RepetitionMandatory=S.Repetition=S.Option=S.NonTerminal=S.Terminal=S.Rule=void 0;var ee=J(5700);Object.defineProperty(S,"Rule",{enumerable:!0,get:function(){return ee.Rule}}),Object.defineProperty(S,"Terminal",{enumerable:!0,get:function(){return ee.Terminal}}),Object.defineProperty(S,"NonTerminal",{enumerable:!0,get:function(){return ee.NonTerminal}}),Object.defineProperty(S,"Option",{enumerable:!0,get:function(){return ee.Option}}),Object.defineProperty(S,"Repetition",{enumerable:!0,get:function(){return ee.Repetition}}),Object.defineProperty(S,"RepetitionMandatory",{enumerable:!0,get:function(){return ee.RepetitionMandatory}}),Object.defineProperty(S,"RepetitionMandatoryWithSeparator",{enumerable:!0,get:function(){return ee.RepetitionMandatoryWithSeparator}}),Object.defineProperty(S,"RepetitionWithSeparator",{enumerable:!0,get:function(){return ee.RepetitionWithSeparator}}),Object.defineProperty(S,"Alternation",{enumerable:!0,get:function(){return ee.Alternation}}),Object.defineProperty(S,"Alternative",{enumerable:!0,get:function(){return ee.Alternative}}),Object.defineProperty(S,"serializeGrammar",{enumerable:!0,get:function(){return ee.serializeGrammar}}),Object.defineProperty(S,"serializeProduction",{enumerable:!0,get:function(){return ee.serializeProduction}});var te=J(7694);Object.defineProperty(S,"GAstVisitor",{enumerable:!0,get:function(){return te.GAstVisitor}});var re=J(2515);Object.defineProperty(S,"getProductionDslName",{enumerable:!0,get:function(){return re.getProductionDslName}}),Object.defineProperty(S,"isOptionalProd",{enumerable:!0,get:function(){return re.isOptionalProd}}),Object.defineProperty(S,"isBranchingProd",{enumerable:!0,get:function(){return re.isBranchingProd}}),Object.defineProperty(S,"isSequenceProd",{enumerable:!0,get:function(){return re.isSequenceProd}})},2515:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.getProductionDslName=S.isBranchingProd=S.isOptionalProd=S.isSequenceProd=void 0;var te=ee(J(1525)),re=ee(J(9794)),ne=ee(J(1886)),ie=J(5700);S.isSequenceProd=function(b){return b instanceof ie.Alternative||b instanceof ie.Option||b instanceof ie.Repetition||b instanceof ie.RepetitionMandatory||b instanceof ie.RepetitionMandatoryWithSeparator||b instanceof ie.RepetitionWithSeparator||b instanceof ie.Terminal||b instanceof ie.Rule},S.isOptionalProd=function t(b,S){return void 0===S&&(S=[]),!!(b instanceof ie.Option||b instanceof ie.Repetition||b instanceof ie.RepetitionWithSeparator)||(b instanceof ie.Alternation?(0,te.default)(b.definition,(function(b){return t(b,S)})):!(b instanceof ie.NonTerminal&&(0,ne.default)(S,b))&&b instanceof ie.AbstractProduction&&(b instanceof ie.NonTerminal&&S.push(b),(0,re.default)(b.definition,(function(b){return t(b,S)}))))},S.isBranchingProd=function(b){return b instanceof ie.Alternation},S.getProductionDslName=function(b){if(b instanceof ie.NonTerminal)return"SUBRULE";if(b instanceof ie.Option)return"OPTION";if(b instanceof ie.Alternation)return"OR";if(b instanceof ie.RepetitionMandatory)return"AT_LEAST_ONE";if(b instanceof ie.RepetitionMandatoryWithSeparator)return"AT_LEAST_ONE_SEP";if(b instanceof ie.RepetitionWithSeparator)return"MANY_SEP";if(b instanceof ie.Repetition)return"MANY";if(b instanceof ie.Terminal)return"CONSUME";throw Error("non exhaustive match")}},5700:function(b,S,J){"use strict";var ee,te=this&&this.__extends||(ee=function(b,S){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,S){b.__proto__=S}||function(b,S){for(var J in S)Object.prototype.hasOwnProperty.call(S,J)&&(b[J]=S[J])})(b,S)},function(b,S){if("function"!=typeof S&&null!==S)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function r(){this.constructor=b}ee(b,S),b.prototype=null===S?Object.create(S):(r.prototype=S.prototype,new r)}),re=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:!0}),S.serializeProduction=S.serializeGrammar=S.Terminal=S.Alternation=S.RepetitionWithSeparator=S.Repetition=S.RepetitionMandatoryWithSeparator=S.RepetitionMandatory=S.Option=S.Alternative=S.Rule=S.NonTerminal=S.AbstractProduction=void 0;var ne=re(J(6760)),ie=re(J(9756)),oe=re(J(5505)),se=re(J(859)),ae=re(J(2208)),ue=re(J(19));var ce=function(){function t(b){this._definition=b}return Object.defineProperty(t.prototype,"definition",{get:function(){return this._definition},set:function(b){this._definition=b},enumerable:!1,configurable:!0}),t.prototype.accept=function(b){b.visit(this),(0,ie.default)(this.definition,(function(S){S.accept(b)}))},t}();S.AbstractProduction=ce;var le=function(b){function e(S){var J=b.call(this,[])||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),Object.defineProperty(e.prototype,"definition",{get:function(){return void 0!==this.referencedRule?this.referencedRule.definition:[]},set:function(b){},enumerable:!1,configurable:!0}),e.prototype.accept=function(b){b.visit(this)},e}(ce);S.NonTerminal=le;var pe=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.orgText="",(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.Rule=pe;var fe=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.ignoreAmbiguities=!1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.Alternative=fe;var de=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.Option=de;var he=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.RepetitionMandatory=he;var me=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.RepetitionMandatoryWithSeparator=me;var ge=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.Repetition=ge;var ye=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),e}(ce);S.RepetitionWithSeparator=ye;var ve=function(b){function e(S){var J=b.call(this,S.definition)||this;return J.idx=1,J.ignoreAmbiguities=!1,J.hasPredicates=!1,(0,ue.default)(J,(0,ae.default)(S,(function(b){return void 0!==b}))),J}return te(e,b),Object.defineProperty(e.prototype,"definition",{get:function(){return this._definition},set:function(b){this._definition=b},enumerable:!1,configurable:!0}),e}(ce);S.Alternation=ve;var Te=function(){function t(b){this.idx=1,(0,ue.default)(this,(0,ae.default)(b,(function(b){return void 0!==b})))}return t.prototype.accept=function(b){b.visit(this)},t}();function R(b){function e(b){return(0,ne.default)(b,R)}if(b instanceof le){var S={type:"NonTerminal",name:b.nonTerminalName,idx:b.idx};return(0,oe.default)(b.label)&&(S.label=b.label),S}if(b instanceof fe)return{type:"Alternative",definition:e(b.definition)};if(b instanceof de)return{type:"Option",idx:b.idx,definition:e(b.definition)};if(b instanceof he)return{type:"RepetitionMandatory",idx:b.idx,definition:e(b.definition)};if(b instanceof me)return{type:"RepetitionMandatoryWithSeparator",idx:b.idx,separator:R(new Te({terminalType:b.separator})),definition:e(b.definition)};if(b instanceof ye)return{type:"RepetitionWithSeparator",idx:b.idx,separator:R(new Te({terminalType:b.separator})),definition:e(b.definition)};if(b instanceof ge)return{type:"Repetition",idx:b.idx,definition:e(b.definition)};if(b instanceof ve)return{type:"Alternation",idx:b.idx,definition:e(b.definition)};if(b instanceof Te){var J={type:"Terminal",name:b.terminalType.name,label:(te=b.terminalType,re=te,(0,oe.default)(re.LABEL)&&""!==re.LABEL?te.LABEL:te.name),idx:b.idx};(0,oe.default)(b.label)&&(J.terminalLabel=b.label);var ee=b.terminalType.PATTERN;return b.terminalType.PATTERN&&(J.pattern=(0,se.default)(ee)?ee.source:ee),J}var te,re;if(b instanceof pe)return{type:"Rule",name:b.name,orgText:b.orgText,definition:e(b.definition)};throw Error("non exhaustive match")}S.Terminal=Te,S.serializeGrammar=function(b){return(0,ne.default)(b,R)},S.serializeProduction=R},7694:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.GAstVisitor=void 0;var ee=J(5700),te=function(){function t(){}return t.prototype.visit=function(b){var S=b;switch(S.constructor){case ee.NonTerminal:return this.visitNonTerminal(S);case ee.Alternative:return this.visitAlternative(S);case ee.Option:return this.visitOption(S);case ee.RepetitionMandatory:return this.visitRepetitionMandatory(S);case ee.RepetitionMandatoryWithSeparator:return this.visitRepetitionMandatoryWithSeparator(S);case ee.RepetitionWithSeparator:return this.visitRepetitionWithSeparator(S);case ee.Repetition:return this.visitRepetition(S);case ee.Alternation:return this.visitAlternation(S);case ee.Terminal:return this.visitTerminal(S);case ee.Rule:return this.visitRule(S);default:throw Error("non exhaustive match")}},t.prototype.visitNonTerminal=function(b){},t.prototype.visitAlternative=function(b){},t.prototype.visitOption=function(b){},t.prototype.visitRepetition=function(b){},t.prototype.visitRepetitionMandatory=function(b){},t.prototype.visitRepetitionMandatoryWithSeparator=function(b){},t.prototype.visitRepetitionWithSeparator=function(b){},t.prototype.visitAlternation=function(b){},t.prototype.visitTerminal=function(b){},t.prototype.visitRule=function(b){},t}();S.GAstVisitor=te},7146:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.toFastProperties=S.timer=S.PRINT_ERROR=S.PRINT_WARNING=void 0;var ee=J(6910);Object.defineProperty(S,"PRINT_WARNING",{enumerable:!0,get:function(){return ee.PRINT_WARNING}}),Object.defineProperty(S,"PRINT_ERROR",{enumerable:!0,get:function(){return ee.PRINT_ERROR}});var te=J(150);Object.defineProperty(S,"timer",{enumerable:!0,get:function(){return te.timer}});var re=J(4470);Object.defineProperty(S,"toFastProperties",{enumerable:!0,get:function(){return re.toFastProperties}})},6910:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.PRINT_WARNING=S.PRINT_ERROR=void 0,S.PRINT_ERROR=function(b){console&&console.error&&console.error("Error: ".concat(b))},S.PRINT_WARNING=function(b){console&&console.warn&&console.warn("Warning: ".concat(b))}},150:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.timer=void 0,S.timer=function(b){var S=(new Date).getTime(),J=b();return{time:(new Date).getTime()-S,value:J}}},4470:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0}),S.toFastProperties=void 0,S.toFastProperties=function(b){function e(){}e.prototype=b;var S=new e;function n(){return typeof S.bar}return n(),n(),b}}},S={};function r(J){var ee=S[J];if(void 0!==ee)return ee.exports;var te=S[J]={id:J,loaded:!1,exports:{}};return b[J].call(te.exports,te,te.exports,r),te.loaded=!0,te.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(b){if("object"==typeof window)return window}}(),r.nmd=b=>(b.paths=[],b.children||(b.children=[]),b);var J={};return(()=>{"use strict";var b=J;Object.defineProperty(b,"__esModule",{value:!0}),b.Parser=b.createSyntaxDiagramsCode=b.clearCache=b.generateCstDts=b.GAstVisitor=b.serializeProduction=b.serializeGrammar=b.Terminal=b.Rule=b.RepetitionWithSeparator=b.RepetitionMandatoryWithSeparator=b.RepetitionMandatory=b.Repetition=b.Option=b.NonTerminal=b.Alternative=b.Alternation=b.defaultLexerErrorProvider=b.NoViableAltException=b.NotAllInputParsedException=b.MismatchedTokenException=b.isRecognitionException=b.EarlyExitException=b.defaultParserErrorProvider=b.tokenName=b.tokenMatcher=b.tokenLabel=b.EOF=b.createTokenInstance=b.createToken=b.LexerDefinitionErrorType=b.Lexer=b.EMPTY_ALT=b.ParserDefinitionErrorType=b.EmbeddedActionsParser=b.CstParser=b.VERSION=void 0;var S=r(7979);Object.defineProperty(b,"VERSION",{enumerable:!0,get:function(){return S.VERSION}});var ee=r(2941);Object.defineProperty(b,"CstParser",{enumerable:!0,get:function(){return ee.CstParser}}),Object.defineProperty(b,"EmbeddedActionsParser",{enumerable:!0,get:function(){return ee.EmbeddedActionsParser}}),Object.defineProperty(b,"ParserDefinitionErrorType",{enumerable:!0,get:function(){return ee.ParserDefinitionErrorType}}),Object.defineProperty(b,"EMPTY_ALT",{enumerable:!0,get:function(){return ee.EMPTY_ALT}});var te=r(9027);Object.defineProperty(b,"Lexer",{enumerable:!0,get:function(){return te.Lexer}}),Object.defineProperty(b,"LexerDefinitionErrorType",{enumerable:!0,get:function(){return te.LexerDefinitionErrorType}});var re=r(6736);Object.defineProperty(b,"createToken",{enumerable:!0,get:function(){return re.createToken}}),Object.defineProperty(b,"createTokenInstance",{enumerable:!0,get:function(){return re.createTokenInstance}}),Object.defineProperty(b,"EOF",{enumerable:!0,get:function(){return re.EOF}}),Object.defineProperty(b,"tokenLabel",{enumerable:!0,get:function(){return re.tokenLabel}}),Object.defineProperty(b,"tokenMatcher",{enumerable:!0,get:function(){return re.tokenMatcher}}),Object.defineProperty(b,"tokenName",{enumerable:!0,get:function(){return re.tokenName}});var ne=r(1007);Object.defineProperty(b,"defaultParserErrorProvider",{enumerable:!0,get:function(){return ne.defaultParserErrorProvider}});var ie=r(643);Object.defineProperty(b,"EarlyExitException",{enumerable:!0,get:function(){return ie.EarlyExitException}}),Object.defineProperty(b,"isRecognitionException",{enumerable:!0,get:function(){return ie.isRecognitionException}}),Object.defineProperty(b,"MismatchedTokenException",{enumerable:!0,get:function(){return ie.MismatchedTokenException}}),Object.defineProperty(b,"NotAllInputParsedException",{enumerable:!0,get:function(){return ie.NotAllInputParsedException}}),Object.defineProperty(b,"NoViableAltException",{enumerable:!0,get:function(){return ie.NoViableAltException}});var oe=r(495);Object.defineProperty(b,"defaultLexerErrorProvider",{enumerable:!0,get:function(){return oe.defaultLexerErrorProvider}});var se=r(7729);Object.defineProperty(b,"Alternation",{enumerable:!0,get:function(){return se.Alternation}}),Object.defineProperty(b,"Alternative",{enumerable:!0,get:function(){return se.Alternative}}),Object.defineProperty(b,"NonTerminal",{enumerable:!0,get:function(){return se.NonTerminal}}),Object.defineProperty(b,"Option",{enumerable:!0,get:function(){return se.Option}}),Object.defineProperty(b,"Repetition",{enumerable:!0,get:function(){return se.Repetition}}),Object.defineProperty(b,"RepetitionMandatory",{enumerable:!0,get:function(){return se.RepetitionMandatory}}),Object.defineProperty(b,"RepetitionMandatoryWithSeparator",{enumerable:!0,get:function(){return se.RepetitionMandatoryWithSeparator}}),Object.defineProperty(b,"RepetitionWithSeparator",{enumerable:!0,get:function(){return se.RepetitionWithSeparator}}),Object.defineProperty(b,"Rule",{enumerable:!0,get:function(){return se.Rule}}),Object.defineProperty(b,"Terminal",{enumerable:!0,get:function(){return se.Terminal}});var ae=r(7729);Object.defineProperty(b,"serializeGrammar",{enumerable:!0,get:function(){return ae.serializeGrammar}}),Object.defineProperty(b,"serializeProduction",{enumerable:!0,get:function(){return ae.serializeProduction}}),Object.defineProperty(b,"GAstVisitor",{enumerable:!0,get:function(){return ae.GAstVisitor}});var ue=r(8962);Object.defineProperty(b,"generateCstDts",{enumerable:!0,get:function(){return ue.generateCstDts}}),b.clearCache=function(){console.warn("The clearCache function was 'soft' removed from the Chevrotain API.\n\t It performs no action other than printing this message.\n\t Please avoid using it as it will be completely removed in the future")};var ce=r(5781);Object.defineProperty(b,"createSyntaxDiagramsCode",{enumerable:!0,get:function(){return ce.createSyntaxDiagramsCode}});b.Parser=function(){throw new Error("The Parser class has been deprecated, use CstParser or EmbeddedActionsParser instead.\t\nSee: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_7-0-0")}})(),J})()}))},23836:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.MultipleLineComment=S.Comment=S.WhiteSpace=S.StringLiteral=S.QuotedString=S.DataLiteral=S.Colon=S.Separator=S.Terminator=S.ArrayEnd=S.ArrayStart=S.ObjectEnd=S.ObjectStart=void 0;const ee=J(41791);const te=J(17024);S.ObjectStart=(0,ee.createToken)({name:"OpenBracket",pattern:/{/});S.ObjectEnd=(0,ee.createToken)({name:"CloseBracket",pattern:/}/});S.ArrayStart=(0,ee.createToken)({name:"ArrayStart",pattern:/\(/});S.ArrayEnd=(0,ee.createToken)({name:"ArrayEnd",pattern:/\)/});S.Terminator=(0,ee.createToken)({name:"Terminator",pattern:/;/});S.Separator=(0,ee.createToken)({name:"Separator",pattern:/,/});S.Colon=(0,ee.createToken)({name:"Colon",pattern:/=/});function matchQuotedString(b,S){let J=b.charAt(S);if(J!==`'`&&J!==`"`){return null}const ee=new RegExp(`${J}(?:[^\\\\${J}]|\\\\(?:[bfnrtv${J}\\\\/]|u[0-9a-fA-F]{4}))*${J}`,"y");ee.lastIndex=S;const re=ee.exec(b);if(re!==null){const b=re[0];const S=(0,te.stripQuotes)(b.substring(1,b.length-1));re.payload=S}return re}const re=/<[0-9a-fA-F\s]+>/y;function matchData(b,S){if(b.charAt(S)!==`<`){return null}re.lastIndex=S;const J=re.exec(b);if(J!==null){const b=J[0];const S=b.substring(1,b.length-2).trim();J.payload=Buffer.from(S)}return J}S.DataLiteral=(0,ee.createToken)({name:"DataLiteral",pattern:{exec:matchData},line_breaks:false,start_chars_hint:[`<`]});S.QuotedString=(0,ee.createToken)({name:"QuotedString",pattern:{exec:matchQuotedString},line_breaks:false,start_chars_hint:[`"`,`'`]});S.StringLiteral=(0,ee.createToken)({name:"StringLiteral",pattern:/[\w_$/:.-]+/,line_breaks:false});S.WhiteSpace=(0,ee.createToken)({name:"WhiteSpace",pattern:/[ \t\n\r]+/u,group:ee.Lexer.SKIPPED});const ne=(0,ee.createToken)({name:"AbsComment",pattern:ee.Lexer.NA});S.Comment=(0,ee.createToken)({name:"Comment",pattern:/\/\/.*/,categories:ne,group:ee.Lexer.SKIPPED});S.MultipleLineComment=(0,ee.createToken)({name:"MultipleLineComment",pattern:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//,categories:ne,line_breaks:true,group:ee.Lexer.SKIPPED});S.ObjectStart.LABEL="'{'";S.ObjectEnd.LABEL="'}'";S.ArrayStart.LABEL="'('";S.ArrayEnd.LABEL="')'";S.Terminator.LABEL="';'";S.Colon.LABEL="'='";S.Separator.LABEL="','";S["default"]=[S.WhiteSpace,S.Comment,S.MultipleLineComment,S.ObjectStart,S.ObjectEnd,S.ArrayStart,S.ArrayEnd,S.Terminator,S.Separator,S.Colon,S.DataLiteral,S.QuotedString,S.StringLiteral]},44239:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.lexer=S.tokens=S.tokenVocabulary=void 0;const te=J(41791);const re=ee(J(23836));S.tokenVocabulary={};S.tokens=[...re.default];S.lexer=new te.Lexer(S.tokens);S.tokens.forEach((b=>{S.tokenVocabulary[b.name]=b}))},62902:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.parse=S.htmlText=S.serializedGrammar=S.BaseVisitor=S.PbxprojParser=S.CommentCstParser=void 0;const ee=J(41791);const te=J(23836);const re=J(44239);class CommentCstParser extends ee.CstParser{LA(b){while((0,ee.tokenMatcher)(super.LA(b),te.Comment)){super.consumeToken()}return super.LA(b)}cstPostTerminal(b,S){super.cstPostTerminal(b,S);let J=-1;let re=super.LA(J);while((0,ee.tokenMatcher)(re,te.Comment)){super.cstPostTerminal(te.Comment.name,re);J--;re=super.LA(J)}}}S.CommentCstParser=CommentCstParser;class PbxprojParser extends CommentCstParser{constructor(){super(re.tokens,{recoveryEnabled:false});this.head=this.RULE("head",(()=>{this.OR([{ALT:()=>this.SUBRULE(this.array)},{ALT:()=>this.SUBRULE(this.object)}])}));this.array=this.RULE("array",(()=>{this.CONSUME(te.ArrayStart);this.OPTION((()=>{this.MANY((()=>{this.SUBRULE(this.value);this.OPTION2((()=>this.CONSUME(te.Separator)))}))}));this.CONSUME(te.ArrayEnd)}));this.object=this.RULE("object",(()=>{this.CONSUME(te.ObjectStart);this.OPTION((()=>{this.MANY((()=>{this.SUBRULE(this.objectItem)}))}));this.CONSUME(te.ObjectEnd)}));this.objectItem=this.RULE("objectItem",(()=>{this.SUBRULE(this.identifier);this.CONSUME(te.Colon);this.SUBRULE(this.value);this.CONSUME(te.Terminator)}));this.identifier=this.RULE("identifier",(()=>{this.OR([{ALT:()=>this.CONSUME(te.QuotedString)},{ALT:()=>this.CONSUME(te.StringLiteral)}])}));this.value=this.RULE("value",(()=>{this.OR([{ALT:()=>this.SUBRULE(this.object)},{ALT:()=>this.SUBRULE(this.array)},{ALT:()=>this.CONSUME(te.DataLiteral)},{ALT:()=>this.SUBRULE(this.identifier)}])}));this.performSelfAnalysis()}}S.PbxprojParser=PbxprojParser;const ne=new PbxprojParser;S.BaseVisitor=ne.getBaseCstVisitorConstructorWithDefaults();S.serializedGrammar=ne.getSerializedGastProductions();S.htmlText=(0,ee.createSyntaxDiagramsCode)(S.serializedGrammar);function parse(b){const S=re.lexer.tokenize(b);if(S.errors.length){throw new Error(`Parsing errors: ${S.errors[0].message}`)}ne.input=S.tokens;const J=ne.head();if(ne.errors.length){throw new Error(`Parsing errors: ${ne.errors[0].message}`)}return J}S.parse=parse},61202:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.isPBXFileReference=S.isPBXBuildFile=S.createReferenceList=void 0;function createReferenceList(b){const S=false;const J=b?.objects??{};const ee={};function getXCConfigurationListComment(b){for(const[S,ee]of Object.entries(J)){if(ee.buildConfigurationList===b){let b=ee.name??ee.path??ee.productName;if(!b){b=J[ee.targets?.[0]]?.name;if(!b){const ee=Object.values(J).find((b=>b.isa==="PBXContainerItemProxy"&&b.containerPortal===S));b=ee?.remoteInfo}}return`Build configuration list for ${ee.isa} "${b}"`}}return`Build configuration list for [unknown]`}function getBuildPhaseNameContainingFile(b){const S=Object.values(J).find((S=>S.files?.includes(b)));return S?getBuildPhaseName(S):null}function getPBXBuildFileComment(b,S){const ee=getBuildPhaseNameContainingFile(b)??"[missing build phase]";const te=getCommentForObject(S.fileRef,J[S.fileRef]);return`${te} in ${ee}`}function getCommentForObject(b,S){if(!S?.isa){return null}if(b in ee){return ee[b]}if(isPBXBuildFile(S)){ee[b]=getPBXBuildFileComment(b,S)}else if(isXCConfigurationList(S)){ee[b]=getXCConfigurationListComment(b)}else if(isPBXProject(S)){ee[b]="Project object"}else if(S.isa?.endsWith("BuildPhase")){ee[b]=getBuildPhaseName(S)??""}else{ee[b]=S.name??S.path??S.isa??null}return ee[b]??null}Object.entries(J).forEach((([J,ee])=>{if(J===b.rootObject){return}if(!getCommentForObject(J,ee)){if(S)throw new Error("Failed to find comment reference for ID: "+J+", isa: "+ee.isa)}}));return ee}S.createReferenceList=createReferenceList;function isPBXProject(b){return b?.isa==="PBXProject"}function isPBXBuildFile(b){return b?.isa==="PBXBuildFile"}S.isPBXBuildFile=isPBXBuildFile;function isPBXFileReference(b){return b?.isa==="PBXFileReference"}S.isPBXFileReference=isPBXFileReference;function isXCConfigurationList(b){return b?.isa==="XCConfigurationList"}function getBuildPhaseName(b){return b.name??getDefaultBuildPhaseName(b.isa)}function getDefaultBuildPhaseName(b){return b.match(/PBX([a-zA-Z]+)BuildPhase/)?.[1]??null}},99348:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.ISA=void 0;var J;(function(b){b["PBXBuildFile"]="PBXBuildFile";b["PBXBuildPhase"]="PBXBuildPhase";b["PBXAppleScriptBuildPhase"]="PBXAppleScriptBuildPhase";b["PBXCopyFilesBuildPhase"]="PBXCopyFilesBuildPhase";b["PBXFrameworksBuildPhase"]="PBXFrameworksBuildPhase";b["PBXHeadersBuildPhase"]="PBXHeadersBuildPhase";b["PBXResourcesBuildPhase"]="PBXResourcesBuildPhase";b["PBXShellScriptBuildPhase"]="PBXShellScriptBuildPhase";b["PBXSourcesBuildPhase"]="PBXSourcesBuildPhase";b["PBXContainerItemProxy"]="PBXContainerItemProxy";b["PBXFileElement"]="PBXFileElement";b["PBXFileReference"]="PBXFileReference";b["PBXGroup"]="PBXGroup";b["PBXVariantGroup"]="PBXVariantGroup";b["PBXTarget"]="PBXTarget";b["PBXAggregateTarget"]="PBXAggregateTarget";b["PBXLegacyTarget"]="PBXLegacyTarget";b["PBXNativeTarget"]="PBXNativeTarget";b["PBXProject"]="PBXProject";b["PBXTargetDependency"]="PBXTargetDependency";b["XCBuildConfiguration"]="XCBuildConfiguration";b["XCConfigurationList"]="XCConfigurationList"})(J=S.ISA||(S.ISA={}))},87964:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.NEXT_STEP_MAPPING=void 0;S.NEXT_STEP_MAPPING=Object.freeze({[128]:160,[129]:192,[130]:193,[131]:194,[132]:195,[133]:196,[134]:197,[135]:199,[136]:200,[137]:201,[138]:202,[139]:203,[140]:204,[141]:205,[142]:206,[143]:207,[144]:208,[145]:209,[146]:210,[147]:211,[148]:212,[149]:213,[150]:214,[151]:217,[152]:218,[153]:219,[154]:220,[155]:221,[156]:222,[157]:181,[158]:215,[159]:247,[160]:169,[161]:161,[162]:162,[163]:163,[164]:8260,[165]:165,[166]:402,[167]:167,[168]:164,[169]:8217,[170]:8220,[171]:171,[172]:8249,[173]:8250,[174]:64257,[175]:64258,[176]:174,[177]:8211,[178]:8224,[179]:8225,[180]:183,[181]:166,[182]:182,[183]:8226,[184]:8218,[185]:8222,[186]:8221,[187]:187,[188]:8230,[189]:8240,[190]:172,[191]:191,[192]:185,[193]:715,[194]:180,[195]:710,[196]:732,[197]:175,[198]:728,[199]:729,[200]:168,[201]:178,[202]:730,[203]:184,[204]:179,[205]:733,[206]:731,[207]:711,[208]:8212,[209]:177,[210]:188,[211]:189,[212]:190,[213]:224,[214]:225,[215]:226,[216]:227,[217]:228,[218]:229,[219]:231,[220]:232,[221]:233,[222]:234,[223]:235,[224]:236,[225]:198,[226]:237,[227]:170,[228]:238,[229]:239,[230]:240,[231]:241,[232]:321,[233]:216,[234]:338,[235]:186,[236]:242,[237]:243,[238]:244,[239]:245,[240]:246,[241]:230,[242]:249,[243]:250,[244]:251,[245]:305,[246]:252,[247]:253,[248]:322,[249]:248,[250]:339,[251]:223,[252]:254,[253]:255,[254]:65533,[255]:65533})},15409:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.QUOTE_REGEXP=S.UNQUOTE_MAP=S.QUOTE_MAP=void 0;S.QUOTE_MAP=Object.freeze({[`a`]:"\\a","\b":"\\b","\f":"\\f","\r":"\\r","\t":"\\t","\v":"\\v","\n":"\\n",'"':'\\"',"\\":"\\\\","\0":"\\U0000","":"\\U0001","":"\\U0002","":"\\U0003","":"\\U0004","":"\\U0005","":"\\U0006","":"\\U000e","":"\\U000f","":"\\U0010","":"\\U0011","":"\\U0012","":"\\U0013","":"\\U0014","":"\\U0015","":"\\U0016","":"\\U0017","":"\\U0018","":"\\U0019","":"\\U001a",[`e`]:"\\U001b","":"\\U001c","":"\\U001d","":"\\U001e","":"\\U001f"});S.UNQUOTE_MAP=Object.freeze({a:`a`,b:"\b",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v","\n":"\n",'"':`"`,"'":`'`,"\\":"\\"});S.QUOTE_REGEXP=/\x07|\x08|\f|\r|\t|\v|\n|"|\\|\x00|\x01|\x02|\x03|\x04|\x05|\x06|\x0E|\x0F|\x10|\x11|\x12|\x13|\x14|\x15|\x16|\x17|\x18|\x19|\x1A|\x1B|\x1C|\x1D|\x1E|\x1F/g},17024:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.stripQuotes=S.addQuotes=void 0;const ee=J(87964);const te=J(15409);function addQuotes(b){return b.replace(te.QUOTE_REGEXP,(b=>te.QUOTE_MAP[b]))}S.addQuotes=addQuotes;const re="01234567".split("");const ne=[...re,"a","b","f","n","r","t","v",`"`,"\n","U","\\"];function stripQuotes(b){let S="";let J=b;let ie=b.length;let oe=0;while(oe<ie){let b=J[oe];if(b===`\\`){let ie=J[oe+1];if(ne.includes(ie)){oe++;if(te.UNQUOTE_MAP[ie]){S+=te.UNQUOTE_MAP[ie]}else if(ie==="U"){const b=oe+1;const ee=b+4;const te=J.slice(b,ee);for(const b in te.split("")){oe+=1;if(!isHexNumber(b)){throw new Error(`Unicode '\\U' escape sequence terminated without 4 following hex characters`)}S+=String.fromCharCode(parseInt(te,16))}}else if(re.includes(ie)){const b=J.slice(oe-1,3);if(/\\A[0-7]{3}\\z/.test(b)){let b=oe;let te=b+1;for(let S=0;S<3;S++){let ee=b+S;let ne=J[ee];if(re.includes(ne)){te+=1}}let ne=J.slice(b,te);let ie=parseInt(ne,8);if(ie>=128){ie=ee.NEXT_STEP_MAPPING[ie]}S+=String.fromCharCode(ie)}else{S+=ie}}else{throw new Error(`Failed to handle ${ie} which is in the list of possible escapes`)}}else{S+=b;oe++;S+=ie}}else{S+=b}oe++}return S}S.stripQuotes=stripQuotes;function isHexNumber(b){return/^[0-9a-fA-F]$/.test(b)}},62540:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.ContextVisitor=void 0;const ee=J(62902);class ContextVisitor extends ee.BaseVisitor{constructor(){super();this.context={};this.validateVisitor()}head(b){if(b.array){this.context=this.visit(b.array)}else if(b.object){this.context=this.visit(b.object)}}object(b){return b.objectItem?.reduce(((b,S)=>({...b,...this.visit(S)})),{})??{}}array(b){return b.value?.map((b=>this.visit(b)))??[]}objectItem(b){return{[this.visit(b.identifier)]:this.visit(b.value)}}identifier(b){if(b.QuotedString){return b.QuotedString[0].payload??b.QuotedString[0].image}else if(b.StringLiteral){return b.StringLiteral[0].payload??b.StringLiteral[0].image}throw new Error("unhandled: "+b)}value(b){if(b.identifier){return this.visit(b.identifier)}else if(b.DataLiteral){return b.DataLiteral[0].payload??b.DataLiteral[0].image}else if(b.object){return this.visit(b.object)}else if(b.array){return this.visit(b.array)}throw new Error("unhandled: "+b)}}S.ContextVisitor=ContextVisitor},9128:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.Writer=void 0;const ee=J(61202);const te=J(17024);let re="\n";try{re=J(22037).EOL}catch{}function isObject(b){return typeof b==="object"&&b!==null&&!(b instanceof Buffer)}function ensureQuotes(b){b=(0,te.addQuotes)(b);if(/^[\w_$/:.]+$/.test(b)){return b}return`"${b}"`}function formatData(b){return`<${b.toString()}>`}function getSortedObjects(b){const S={};Object.entries(b).forEach((([b,J])=>{if(!S[J.isa]){S[J.isa]=[]}S[J.isa].push([b,J])}));return Object.entries(S).sort()}class Writer{constructor(b,S={}){this.project=b;this.options=S;this.indent=0;this.contents="";this.comments={};this.comments=(0,ee.createReferenceList)(b);this.writeShebang();this.writeProject()}pad(b){const S=this.options.tab??"\t";return b>0?S+this.pad(b-1):""}getResults(){return this.contents}println(b){this.contents+=this.pad(this.indent);this.contents+=b;this.contents+=re}write(b){this.contents+=this.pad(this.indent);this.contents+=b}printAssignLn(b,S){return this.println(b+" = "+S+";")}flush(b){const S=this.indent;this.indent=0;this.write(b);this.indent=S}writeShebang(){const b=this.options?.shebang??"!$*UTF8*$!";this.println(`// ${b}`)}formatId(b,S=this.comments[b]){if(S){return`${b} /* ${S} */`}return ensureQuotes(b)}writeProject(){this.println("{");if(this.project){this.indent++;this.writeObject(this.project,true);this.indent--}this.println("}")}writeObject(b,S){Object.entries(b).forEach((([b,J])=>{if(this.options.skipNullishValues&&J==null){return}else if(J instanceof Buffer){this.printAssignLn(ensureQuotes(b),formatData(J))}else if(Array.isArray(J)){this.writeArray(b,J)}else if(isObject(J)){if(!S&&!Object.keys(J).length){this.println(ensureQuotes(b)+" = {};");return}this.println(ensureQuotes(b)+" = {");this.indent++;if(S&&b==="objects"){this.writePbxObjects(J)}else{this.writeObject(J,S)}this.indent--;this.println("};")}else{this.printAssignLn(ensureQuotes(b),b==="remoteGlobalIDString"?ensureQuotes(J):this.formatId(J))}}))}writePbxObjects(b){getSortedObjects(b).forEach((([b,S])=>{this.flush(re);this.flush(`/* Begin ${b} section */`+re);S.forEach((([b,S])=>this.writeObjectInclusive(b,S)));this.flush(`/* End ${b} section */`+re)}))}writeArray(b,S){this.println(ensureQuotes(b)+" = (");this.indent++;S.forEach((b=>{if(b instanceof Buffer){this.println(formatData(b)+",")}else if(b==null){return}else if(isObject(b)){this.println("{");if(b){this.indent++;this.writeObject(b);this.indent--}this.println("},")}else{this.println(this.formatId(String(b))+",")}}));this.indent--;this.println(");")}writeObjectInclusive(b,S){if((0,ee.isPBXBuildFile)(S)||(0,ee.isPBXFileReference)(S)){return this.writeObjectWithoutIndent(b,S)}this.println(this.formatId(b)+" = {");this.indent++;this.writeObject(S);this.indent--;this.println("};")}writeObjectWithoutIndent(b,S){const J=[];const buildInline=(b,S)=>{J.push(this.formatId(b)+" = {");Object.entries(S).forEach((([b,S])=>{if(this.options.skipNullishValues&&S==null){return}else if(S instanceof Buffer){J.push(ensureQuotes(b)+" = "+formatData(S)+"; ")}else if(Array.isArray(S)){J.push(ensureQuotes(b)+" = (");S.forEach((b=>J.push(ensureQuotes(b)+", ")));J.push("); ")}else if(isObject(S)){buildInline(b,S)}else{J.push(ensureQuotes(b)+" = "+this.formatId(S)+"; ")}}));J.push("}; ")};buildInline(b,S);this.println(J.join("").trim())}}S.Writer=Writer},4604:function(b,S){(function(){"use strict";S.stripBOM=function(b){if(b[0]==="\ufeff"){return b.substring(1)}else{return b}}}).call(this)},11002:function(b,S,J){(function(){"use strict";var b,ee,te,re,ne,ie={}.hasOwnProperty;b=J(83131);ee=J(9498).defaults;re=function(b){return typeof b==="string"&&(b.indexOf("&")>=0||b.indexOf(">")>=0||b.indexOf("<")>=0)};ne=function(b){return"<![CDATA["+te(b)+"]]>"};te=function(b){return b.replace("]]>","]]]]><![CDATA[>")};S.Builder=function(){function Builder(b){var S,J,te;this.options={};J=ee["0.2"];for(S in J){if(!ie.call(J,S))continue;te=J[S];this.options[S]=te}for(S in b){if(!ie.call(b,S))continue;te=b[S];this.options[S]=te}}Builder.prototype.buildObject=function(S){var J,te,oe,se,ae;J=this.options.attrkey;te=this.options.charkey;if(Object.keys(S).length===1&&this.options.rootName===ee["0.2"].rootName){ae=Object.keys(S)[0];S=S[ae]}else{ae=this.options.rootName}oe=function(b){return function(S,ee){var se,ae,ue,ce,le,pe;if(typeof ee!=="object"){if(b.options.cdata&&re(ee)){S.raw(ne(ee))}else{S.txt(ee)}}else if(Array.isArray(ee)){for(ce in ee){if(!ie.call(ee,ce))continue;ae=ee[ce];for(le in ae){ue=ae[le];S=oe(S.ele(le),ue).up()}}}else{for(le in ee){if(!ie.call(ee,le))continue;ae=ee[le];if(le===J){if(typeof ae==="object"){for(se in ae){pe=ae[se];S=S.att(se,pe)}}}else if(le===te){if(b.options.cdata&&re(ae)){S=S.raw(ne(ae))}else{S=S.txt(ae)}}else if(Array.isArray(ae)){for(ce in ae){if(!ie.call(ae,ce))continue;ue=ae[ce];if(typeof ue==="string"){if(b.options.cdata&&re(ue)){S=S.ele(le).raw(ne(ue)).up()}else{S=S.ele(le,ue).up()}}else{S=oe(S.ele(le),ue).up()}}}else if(typeof ae==="object"){S=oe(S.ele(le),ae).up()}else{if(typeof ae==="string"&&b.options.cdata&&re(ae)){S=S.ele(le).raw(ne(ae)).up()}else{if(ae==null){ae=""}S=S.ele(le,ae.toString()).up()}}}}return S}}(this);se=b.create(ae,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars});return oe(se,S).end(this.options.renderOpts)};return Builder}()}).call(this)},9498:function(b,S){(function(){S.defaults={.1:{explicitCharkey:false,trim:true,normalize:true,normalizeTags:false,attrkey:"@",charkey:"#",explicitArray:false,ignoreAttrs:false,mergeAttrs:false,explicitRoot:false,validator:null,xmlns:false,explicitChildren:false,childkey:"@@",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:"$",charkey:"_",explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:null,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:null,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false}}}).call(this)},67426:function(b,S,J){(function(){"use strict";var b,ee,te,re,ne,ie,oe,se,ae,bind=function(b,S){return function(){return b.apply(S,arguments)}},extend=function(b,S){for(var J in S){if(ue.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ue={}.hasOwnProperty;se=J(79746);te=J(82361);b=J(4604);oe=J(49068);ae=J(39512).setImmediate;ee=J(9498).defaults;re=function(b){return typeof b==="object"&&b!=null&&Object.keys(b).length===0};ne=function(b){return b!=="__proto__"&&b!=="constructor"&&b!=="prototype"};ie=function(b,S,J){var ee,te,re;for(ee=0,te=b.length;ee<te;ee++){re=b[ee];S=re(S,J)}return S};S.Parser=function(J){extend(Parser,J);function Parser(b){this.parseStringPromise=bind(this.parseStringPromise,this);this.parseString=bind(this.parseString,this);this.reset=bind(this.reset,this);this.assignOrPush=bind(this.assignOrPush,this);this.processAsync=bind(this.processAsync,this);var J,te,re;if(!(this instanceof S.Parser)){return new S.Parser(b)}this.options={};te=ee["0.2"];for(J in te){if(!ue.call(te,J))continue;re=te[J];this.options[J]=re}for(J in b){if(!ue.call(b,J))continue;re=b[J];this.options[J]=re}if(this.options.xmlns){this.options.xmlnskey=this.options.attrkey+"ns"}if(this.options.normalizeTags){if(!this.options.tagNameProcessors){this.options.tagNameProcessors=[]}this.options.tagNameProcessors.unshift(oe.normalize)}this.reset()}Parser.prototype.processAsync=function(){var b,S;try{if(this.remaining.length<=this.options.chunkSize){b=this.remaining;this.remaining="";this.saxParser=this.saxParser.write(b);return this.saxParser.close()}else{b=this.remaining.substr(0,this.options.chunkSize);this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length);this.saxParser=this.saxParser.write(b);return ae(this.processAsync)}}catch(b){S=b;if(!this.saxParser.errThrown){this.saxParser.errThrown=true;return this.emit(S)}}};Parser.prototype.assignOrPush=function(b,S,J){if(!ne(S)){return}if(!(S in b)){if(!this.options.explicitArray){return b[S]=J}else{return b[S]=[J]}}else{if(!(b[S]instanceof Array)){b[S]=[b[S]]}return b[S].push(J)}};Parser.prototype.reset=function(){var b,S,J,ee;this.removeAllListeners();this.saxParser=se.parser(this.options.strict,{trim:false,normalize:false,xmlns:this.options.xmlns});this.saxParser.errThrown=false;this.saxParser.onerror=function(b){return function(S){b.saxParser.resume();if(!b.saxParser.errThrown){b.saxParser.errThrown=true;return b.emit("error",S)}}}(this);this.saxParser.onend=function(b){return function(){if(!b.saxParser.ended){b.saxParser.ended=true;return b.emit("end",b.resultObject)}}}(this);this.saxParser.ended=false;this.EXPLICIT_CHARKEY=this.options.explicitCharkey;this.resultObject=null;ee=[];b=this.options.attrkey;S=this.options.charkey;this.saxParser.onopentag=function(J){return function(te){var re,oe,se,ae,ce;se={};se[S]="";if(!J.options.ignoreAttrs){ce=te.attributes;for(re in ce){if(!ue.call(ce,re))continue;if(!(b in se)&&!J.options.mergeAttrs){se[b]={}}oe=J.options.attrValueProcessors?ie(J.options.attrValueProcessors,te.attributes[re],re):te.attributes[re];ae=J.options.attrNameProcessors?ie(J.options.attrNameProcessors,re):re;if(ne(ae)){if(J.options.mergeAttrs){J.assignOrPush(se,ae,oe)}else{se[b][ae]=oe}}}}se["#name"]=J.options.tagNameProcessors?ie(J.options.tagNameProcessors,te.name):te.name;if(J.options.xmlns){se[J.options.xmlnskey]={uri:te.uri,local:te.local}}return ee.push(se)}}(this);this.saxParser.onclosetag=function(b){return function(){var J,te,oe,se,ae,ce,le,pe,fe,de;ce=ee.pop();ae=ce["#name"];if(!b.options.explicitChildren||!b.options.preserveChildrenOrder){delete ce["#name"]}if(ce.cdata===true){J=ce.cdata;delete ce.cdata}fe=ee[ee.length-1];if(ce[S].match(/^\s*$/)&&!J){te=ce[S];delete ce[S]}else{if(b.options.trim){ce[S]=ce[S].trim()}if(b.options.normalize){ce[S]=ce[S].replace(/\s{2,}/g," ").trim()}ce[S]=b.options.valueProcessors?ie(b.options.valueProcessors,ce[S],ae):ce[S];if(Object.keys(ce).length===1&&S in ce&&!b.EXPLICIT_CHARKEY){ce=ce[S]}}if(re(ce)){if(typeof b.options.emptyTag==="function"){ce=b.options.emptyTag()}else{ce=b.options.emptyTag!==""?b.options.emptyTag:te}}if(b.options.validator!=null){de="/"+function(){var b,S,J;J=[];for(b=0,S=ee.length;b<S;b++){se=ee[b];J.push(se["#name"])}return J}().concat(ae).join("/");(function(){var S;try{return ce=b.options.validator(de,fe&&fe[ae],ce)}catch(J){S=J;return b.emit("error",S)}})()}if(b.options.explicitChildren&&!b.options.mergeAttrs&&typeof ce==="object"){if(!b.options.preserveChildrenOrder){se={};if(b.options.attrkey in ce){se[b.options.attrkey]=ce[b.options.attrkey];delete ce[b.options.attrkey]}if(!b.options.charsAsChildren&&b.options.charkey in ce){se[b.options.charkey]=ce[b.options.charkey];delete ce[b.options.charkey]}if(Object.getOwnPropertyNames(ce).length>0){se[b.options.childkey]=ce}ce=se}else if(fe){fe[b.options.childkey]=fe[b.options.childkey]||[];le={};for(oe in ce){if(!ue.call(ce,oe))continue;if(ne(oe)){le[oe]=ce[oe]}}fe[b.options.childkey].push(le);delete ce["#name"];if(Object.keys(ce).length===1&&S in ce&&!b.EXPLICIT_CHARKEY){ce=ce[S]}}}if(ee.length>0){return b.assignOrPush(fe,ae,ce)}else{if(b.options.explicitRoot){pe=ce;ce={};ce[ae]=pe}b.resultObject=ce;b.saxParser.ended=true;return b.emit("end",b.resultObject)}}}(this);J=function(b){return function(J){var te,re;re=ee[ee.length-1];if(re){re[S]+=J;if(b.options.explicitChildren&&b.options.preserveChildrenOrder&&b.options.charsAsChildren&&(b.options.includeWhiteChars||J.replace(/\\n/g,"").trim()!=="")){re[b.options.childkey]=re[b.options.childkey]||[];te={"#name":"__text__"};te[S]=J;if(b.options.normalize){te[S]=te[S].replace(/\s{2,}/g," ").trim()}re[b.options.childkey].push(te)}return re}}}(this);this.saxParser.ontext=J;return this.saxParser.oncdata=function(b){return function(b){var S;S=J(b);if(S){return S.cdata=true}}}(this)};Parser.prototype.parseString=function(S,J){var ee;if(J!=null&&typeof J==="function"){this.on("end",(function(b){this.reset();return J(null,b)}));this.on("error",(function(b){this.reset();return J(b)}))}try{S=S.toString();if(S.trim()===""){this.emit("end",null);return true}S=b.stripBOM(S);if(this.options.async){this.remaining=S;ae(this.processAsync);return this.saxParser}return this.saxParser.write(S).close()}catch(b){ee=b;if(!(this.saxParser.errThrown||this.saxParser.ended)){this.emit("error",ee);return this.saxParser.errThrown=true}else if(this.saxParser.ended){throw ee}}};Parser.prototype.parseStringPromise=function(b){return new Promise(function(S){return function(J,ee){return S.parseString(b,(function(b,S){if(b){return ee(b)}else{return J(S)}}))}}(this))};return Parser}(te);S.parseString=function(b,J,ee){var te,re,ne;if(ee!=null){if(typeof ee==="function"){te=ee}if(typeof J==="object"){re=J}}else{if(typeof J==="function"){te=J}re={}}ne=new S.Parser(re);return ne.parseString(b,te)};S.parseStringPromise=function(b,J){var ee,te;if(typeof J==="object"){ee=J}te=new S.Parser(ee);return te.parseStringPromise(b)}}).call(this)},49068:function(b,S){(function(){"use strict";var b;b=new RegExp(/(?!xmlns)^.*:/);S.normalize=function(b){return b.toLowerCase()};S.firstCharLowerCase=function(b){return b.charAt(0).toLowerCase()+b.slice(1)};S.stripPrefix=function(S){return S.replace(b,"")};S.parseNumbers=function(b){if(!isNaN(b)){b=b%1===0?parseInt(b,10):parseFloat(b)}return b};S.parseBooleans=function(b){if(/^(?:true|false)$/i.test(b)){b=b.toLowerCase()==="true"}return b}}).call(this)},27013:function(b,S,J){(function(){"use strict";var b,ee,te,re,extend=function(b,S){for(var J in S){if(ne.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ne={}.hasOwnProperty;ee=J(9498);b=J(11002);te=J(67426);re=J(49068);S.defaults=ee.defaults;S.processors=re;S.ValidationError=function(b){extend(ValidationError,b);function ValidationError(b){this.message=b}return ValidationError}(Error);S.Builder=b.Builder;S.Parser=te.Parser;S.parseString=te.parseString;S.parseStringPromise=te.parseStringPromise}).call(this)},22346:function(b){(function(){b.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},4128:function(b){(function(){b.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},52629:function(b){(function(){var S,J,ee,te,re,ne,ie,oe=[].slice,se={}.hasOwnProperty;S=function(){var b,S,J,ee,te,ne;ne=arguments[0],te=2<=arguments.length?oe.call(arguments,1):[];if(re(Object.assign)){Object.assign.apply(null,arguments)}else{for(b=0,J=te.length;b<J;b++){ee=te[b];if(ee!=null){for(S in ee){if(!se.call(ee,S))continue;ne[S]=ee[S]}}}}return ne};re=function(b){return!!b&&Object.prototype.toString.call(b)==="[object Function]"};ne=function(b){var S;return!!b&&((S=typeof b)==="function"||S==="object")};ee=function(b){if(re(Array.isArray)){return Array.isArray(b)}else{return Object.prototype.toString.call(b)==="[object Array]"}};te=function(b){var S;if(ee(b)){return!b.length}else{for(S in b){if(!se.call(b,S))continue;return false}return true}};ie=function(b){var S,J;return ne(b)&&(J=Object.getPrototypeOf(b))&&(S=J.constructor)&&typeof S==="function"&&S instanceof S&&Function.prototype.toString.call(S)===Function.prototype.toString.call(Object)};J=function(b){if(re(b.valueOf)){return b.valueOf()}else{return b}};b.exports.assign=S;b.exports.isFunction=re;b.exports.isObject=ne;b.exports.isArray=ee;b.exports.isEmpty=te;b.exports.isPlainObject=ie;b.exports.getValue=J}).call(this)},58413:function(b){(function(){b.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},49525:function(b,S,J){(function(){var S,ee,te;S=J(4128);te=J(98064);b.exports=ee=function(){function XMLAttribute(b,J,ee){this.parent=b;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}if(J==null){throw new Error("Missing attribute name. "+this.debugInfo(J))}this.name=this.stringify.name(J);this.value=this.stringify.attValue(ee);this.type=S.Attribute;this.isId=false;this.schemaTypeInfo=null}Object.defineProperty(XMLAttribute.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(XMLAttribute.prototype,"ownerElement",{get:function(){return this.parent}});Object.defineProperty(XMLAttribute.prototype,"textContent",{get:function(){return this.value},set:function(b){return this.value=b||""}});Object.defineProperty(XMLAttribute.prototype,"namespaceURI",{get:function(){return""}});Object.defineProperty(XMLAttribute.prototype,"prefix",{get:function(){return""}});Object.defineProperty(XMLAttribute.prototype,"localName",{get:function(){return this.name}});Object.defineProperty(XMLAttribute.prototype,"specified",{get:function(){return true}});XMLAttribute.prototype.clone=function(){return Object.create(this)};XMLAttribute.prototype.toString=function(b){return this.options.writer.attribute(this,this.options.writer.filterOptions(b))};XMLAttribute.prototype.debugInfo=function(b){b=b||this.name;if(b==null){return"parent: <"+this.parent.name+">"}else{return"attribute: {"+b+"}, parent: <"+this.parent.name+">"}};XMLAttribute.prototype.isEqualNode=function(b){if(b.namespaceURI!==this.namespaceURI){return false}if(b.prefix!==this.prefix){return false}if(b.localName!==this.localName){return false}if(b.value!==this.value){return false}return true};return XMLAttribute}()}).call(this)},66789:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;S=J(4128);te=J(63527);b.exports=ee=function(b){extend(XMLCData,b);function XMLCData(b,J){XMLCData.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing CDATA text. "+this.debugInfo())}this.name="#cdata-section";this.type=S.CData;this.value=this.stringify.cdata(J)}XMLCData.prototype.clone=function(){return Object.create(this)};XMLCData.prototype.toString=function(b){return this.options.writer.cdata(this,this.options.writer.filterOptions(b))};return XMLCData}(te)}).call(this)},63527:function(b,S,J){(function(){var S,ee,extend=function(b,S){for(var J in S){if(te.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},te={}.hasOwnProperty;ee=J(98064);b.exports=S=function(b){extend(XMLCharacterData,b);function XMLCharacterData(b){XMLCharacterData.__super__.constructor.call(this,b);this.value=""}Object.defineProperty(XMLCharacterData.prototype,"data",{get:function(){return this.value},set:function(b){return this.value=b||""}});Object.defineProperty(XMLCharacterData.prototype,"length",{get:function(){return this.value.length}});Object.defineProperty(XMLCharacterData.prototype,"textContent",{get:function(){return this.value},set:function(b){return this.value=b||""}});XMLCharacterData.prototype.clone=function(){return Object.create(this)};XMLCharacterData.prototype.substringData=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.appendData=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.insertData=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.deleteData=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.replaceData=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLCharacterData.prototype.isEqualNode=function(b){if(!XMLCharacterData.__super__.isEqualNode.apply(this,arguments).isEqualNode(b)){return false}if(b.data!==this.data){return false}return true};return XMLCharacterData}(ee)}).call(this)},34593:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;S=J(4128);ee=J(63527);b.exports=te=function(b){extend(XMLComment,b);function XMLComment(b,J){XMLComment.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing comment text. "+this.debugInfo())}this.name="#comment";this.type=S.Comment;this.value=this.stringify.comment(J)}XMLComment.prototype.clone=function(){return Object.create(this)};XMLComment.prototype.toString=function(b){return this.options.writer.comment(this,this.options.writer.filterOptions(b))};return XMLComment}(ee)}).call(this)},64196:function(b,S,J){(function(){var S,ee,te;ee=J(57850);te=J(35132);b.exports=S=function(){function XMLDOMConfiguration(){var b;this.defaultParams={"canonical-form":false,"cdata-sections":false,comments:false,"datatype-normalization":false,"element-content-whitespace":true,entities:true,"error-handler":new ee,infoset:true,"validate-if-schema":false,namespaces:true,"namespace-declarations":true,"normalize-characters":false,"schema-location":"","schema-type":"","split-cdata-sections":true,validate:false,"well-formed":true};this.params=b=Object.create(this.defaultParams)}Object.defineProperty(XMLDOMConfiguration.prototype,"parameterNames",{get:function(){return new te(Object.keys(this.defaultParams))}});XMLDOMConfiguration.prototype.getParameter=function(b){if(this.params.hasOwnProperty(b)){return this.params[b]}else{return null}};XMLDOMConfiguration.prototype.canSetParameter=function(b,S){return true};XMLDOMConfiguration.prototype.setParameter=function(b,S){if(S!=null){return this.params[b]=S}else{return delete this.params[b]}};return XMLDOMConfiguration}()}).call(this)},57850:function(b){(function(){var S;b.exports=S=function(){function XMLDOMErrorHandler(){}XMLDOMErrorHandler.prototype.handleError=function(b){throw new Error(b)};return XMLDOMErrorHandler}()}).call(this)},99490:function(b){(function(){var S;b.exports=S=function(){function XMLDOMImplementation(){}XMLDOMImplementation.prototype.hasFeature=function(b,S){return true};XMLDOMImplementation.prototype.createDocumentType=function(b,S,J){throw new Error("This DOM method is not implemented.")};XMLDOMImplementation.prototype.createDocument=function(b,S,J){throw new Error("This DOM method is not implemented.")};XMLDOMImplementation.prototype.createHTMLDocument=function(b){throw new Error("This DOM method is not implemented.")};XMLDOMImplementation.prototype.getFeature=function(b,S){throw new Error("This DOM method is not implemented.")};return XMLDOMImplementation}()}).call(this)},35132:function(b){(function(){var S;b.exports=S=function(){function XMLDOMStringList(b){this.arr=b||[]}Object.defineProperty(XMLDOMStringList.prototype,"length",{get:function(){return this.arr.length}});XMLDOMStringList.prototype.item=function(b){return this.arr[b]||null};XMLDOMStringList.prototype.contains=function(b){return this.arr.indexOf(b)!==-1};return XMLDOMStringList}()}).call(this)},71066:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDTDAttList,b);function XMLDTDAttList(b,J,ee,te,re,ne){XMLDTDAttList.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(ee==null){throw new Error("Missing DTD attribute name. "+this.debugInfo(J))}if(!te){throw new Error("Missing DTD attribute type. "+this.debugInfo(J))}if(!re){throw new Error("Missing DTD attribute default. "+this.debugInfo(J))}if(re.indexOf("#")!==0){re="#"+re}if(!re.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)){throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(J))}if(ne&&!re.match(/^(#FIXED|#DEFAULT)$/)){throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(J))}this.elementName=this.stringify.name(J);this.type=S.AttributeDeclaration;this.attributeName=this.stringify.name(ee);this.attributeType=this.stringify.dtdAttType(te);if(ne){this.defaultValue=this.stringify.dtdAttDefault(ne)}this.defaultValueType=re}XMLDTDAttList.prototype.toString=function(b){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(b))};return XMLDTDAttList}(te)}).call(this)},23584:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDTDElement,b);function XMLDTDElement(b,J,ee){XMLDTDElement.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(!ee){ee="(#PCDATA)"}if(Array.isArray(ee)){ee="("+ee.join(",")+")"}this.name=this.stringify.name(J);this.type=S.ElementDeclaration;this.value=this.stringify.dtdElementValue(ee)}XMLDTDElement.prototype.toString=function(b){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(b))};return XMLDTDElement}(te)}).call(this)},9346:function(b,S,J){(function(){var S,ee,te,re,extend=function(b,S){for(var J in S){if(ne.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ne={}.hasOwnProperty;re=J(52629).isObject;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDTDEntity,b);function XMLDTDEntity(b,J,ee,te){XMLDTDEntity.__super__.constructor.call(this,b);if(ee==null){throw new Error("Missing DTD entity name. "+this.debugInfo(ee))}if(te==null){throw new Error("Missing DTD entity value. "+this.debugInfo(ee))}this.pe=!!J;this.name=this.stringify.name(ee);this.type=S.EntityDeclaration;if(!re(te)){this.value=this.stringify.dtdEntityValue(te);this.internal=true}else{if(!te.pubID&&!te.sysID){throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(ee))}if(te.pubID&&!te.sysID){throw new Error("System identifier is required for a public external entity. "+this.debugInfo(ee))}this.internal=false;if(te.pubID!=null){this.pubID=this.stringify.dtdPubID(te.pubID)}if(te.sysID!=null){this.sysID=this.stringify.dtdSysID(te.sysID)}if(te.nData!=null){this.nData=this.stringify.dtdNData(te.nData)}if(this.pe&&this.nData){throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(ee))}}}Object.defineProperty(XMLDTDEntity.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDTDEntity.prototype,"systemId",{get:function(){return this.sysID}});Object.defineProperty(XMLDTDEntity.prototype,"notationName",{get:function(){return this.nData||null}});Object.defineProperty(XMLDTDEntity.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(XMLDTDEntity.prototype,"xmlEncoding",{get:function(){return null}});Object.defineProperty(XMLDTDEntity.prototype,"xmlVersion",{get:function(){return null}});XMLDTDEntity.prototype.toString=function(b){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(b))};return XMLDTDEntity}(te)}).call(this)},30853:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDTDNotation,b);function XMLDTDNotation(b,J,ee){XMLDTDNotation.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing DTD notation name. "+this.debugInfo(J))}if(!ee.pubID&&!ee.sysID){throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(J))}this.name=this.stringify.name(J);this.type=S.NotationDeclaration;if(ee.pubID!=null){this.pubID=this.stringify.dtdPubID(ee.pubID)}if(ee.sysID!=null){this.sysID=this.stringify.dtdSysID(ee.sysID)}}Object.defineProperty(XMLDTDNotation.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDTDNotation.prototype,"systemId",{get:function(){return this.sysID}});XMLDTDNotation.prototype.toString=function(b){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(b))};return XMLDTDNotation}(te)}).call(this)},24972:function(b,S,J){(function(){var S,ee,te,re,extend=function(b,S){for(var J in S){if(ne.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ne={}.hasOwnProperty;re=J(52629).isObject;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDeclaration,b);function XMLDeclaration(b,J,ee,te){var ne;XMLDeclaration.__super__.constructor.call(this,b);if(re(J)){ne=J,J=ne.version,ee=ne.encoding,te=ne.standalone}if(!J){J="1.0"}this.type=S.Declaration;this.version=this.stringify.xmlVersion(J);if(ee!=null){this.encoding=this.stringify.xmlEncoding(ee)}if(te!=null){this.standalone=this.stringify.xmlStandalone(te)}}XMLDeclaration.prototype.toString=function(b){return this.options.writer.declaration(this,this.options.writer.filterOptions(b))};return XMLDeclaration}(te)}).call(this)},19025:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,extend=function(b,S){for(var J in S){if(ue.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ue={}.hasOwnProperty;ae=J(52629).isObject;se=J(98064);S=J(4128);ee=J(71066);re=J(9346);te=J(23584);ne=J(30853);oe=J(78339);b.exports=ie=function(b){extend(XMLDocType,b);function XMLDocType(b,J,ee){var te,re,ne,ie,oe,se;XMLDocType.__super__.constructor.call(this,b);this.type=S.DocType;if(b.children){ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];if(te.type===S.Element){this.name=te.name;break}}}this.documentObject=b;if(ae(J)){oe=J,J=oe.pubID,ee=oe.sysID}if(ee==null){se=[J,ee],ee=se[0],J=se[1]}if(J!=null){this.pubID=this.stringify.dtdPubID(J)}if(ee!=null){this.sysID=this.stringify.dtdSysID(ee)}}Object.defineProperty(XMLDocType.prototype,"entities",{get:function(){var b,J,ee,te,re;te={};re=this.children;for(J=0,ee=re.length;J<ee;J++){b=re[J];if(b.type===S.EntityDeclaration&&!b.pe){te[b.name]=b}}return new oe(te)}});Object.defineProperty(XMLDocType.prototype,"notations",{get:function(){var b,J,ee,te,re;te={};re=this.children;for(J=0,ee=re.length;J<ee;J++){b=re[J];if(b.type===S.NotationDeclaration){te[b.name]=b}}return new oe(te)}});Object.defineProperty(XMLDocType.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDocType.prototype,"systemId",{get:function(){return this.sysID}});Object.defineProperty(XMLDocType.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});XMLDocType.prototype.element=function(b,S){var J;J=new te(this,b,S);this.children.push(J);return this};XMLDocType.prototype.attList=function(b,S,J,te,re){var ne;ne=new ee(this,b,S,J,te,re);this.children.push(ne);return this};XMLDocType.prototype.entity=function(b,S){var J;J=new re(this,false,b,S);this.children.push(J);return this};XMLDocType.prototype.pEntity=function(b,S){var J;J=new re(this,true,b,S);this.children.push(J);return this};XMLDocType.prototype.notation=function(b,S){var J;J=new ne(this,b,S);this.children.push(J);return this};XMLDocType.prototype.toString=function(b){return this.options.writer.docType(this,this.options.writer.filterOptions(b))};XMLDocType.prototype.ele=function(b,S){return this.element(b,S)};XMLDocType.prototype.att=function(b,S,J,ee,te){return this.attList(b,S,J,ee,te)};XMLDocType.prototype.ent=function(b,S){return this.entity(b,S)};XMLDocType.prototype.pent=function(b,S){return this.pEntity(b,S)};XMLDocType.prototype.not=function(b,S){return this.notation(b,S)};XMLDocType.prototype.up=function(){return this.root()||this.documentObject};XMLDocType.prototype.isEqualNode=function(b){if(!XMLDocType.__super__.isEqualNode.apply(this,arguments).isEqualNode(b)){return false}if(b.name!==this.name){return false}if(b.publicId!==this.publicId){return false}if(b.systemId!==this.systemId){return false}return true};return XMLDocType}(se)}).call(this)},3315:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,extend=function(b,S){for(var J in S){if(ae.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ae={}.hasOwnProperty;se=J(52629).isPlainObject;te=J(99490);ee=J(64196);ne=J(98064);S=J(4128);oe=J(20916);ie=J(56939);b.exports=re=function(b){extend(XMLDocument,b);function XMLDocument(b){XMLDocument.__super__.constructor.call(this,null);this.name="#document";this.type=S.Document;this.documentURI=null;this.domConfig=new ee;b||(b={});if(!b.writer){b.writer=new ie}this.options=b;this.stringify=new oe(b)}Object.defineProperty(XMLDocument.prototype,"implementation",{value:new te});Object.defineProperty(XMLDocument.prototype,"doctype",{get:function(){var b,J,ee,te;te=this.children;for(J=0,ee=te.length;J<ee;J++){b=te[J];if(b.type===S.DocType){return b}}return null}});Object.defineProperty(XMLDocument.prototype,"documentElement",{get:function(){return this.rootObject||null}});Object.defineProperty(XMLDocument.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"strictErrorChecking",{get:function(){return false}});Object.defineProperty(XMLDocument.prototype,"xmlEncoding",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].encoding}else{return null}}});Object.defineProperty(XMLDocument.prototype,"xmlStandalone",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].standalone==="yes"}else{return false}}});Object.defineProperty(XMLDocument.prototype,"xmlVersion",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].version}else{return"1.0"}}});Object.defineProperty(XMLDocument.prototype,"URL",{get:function(){return this.documentURI}});Object.defineProperty(XMLDocument.prototype,"origin",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"compatMode",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"characterSet",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"contentType",{get:function(){return null}});XMLDocument.prototype.end=function(b){var S;S={};if(!b){b=this.options.writer}else if(se(b)){S=b;b=this.options.writer}return b.document(this,b.filterOptions(S))};XMLDocument.prototype.toString=function(b){return this.options.writer.document(this,this.options.writer.filterOptions(b))};XMLDocument.prototype.createElement=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createTextNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createComment=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createCDATASection=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createProcessingInstruction=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createAttribute=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createEntityReference=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.getElementsByTagName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.importNode=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createElementNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createAttributeNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.getElementsByTagNameNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.getElementById=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.adoptNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.renameNode=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.getElementsByClassName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createEvent=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createNodeIterator=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLDocument.prototype.createTreeWalker=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};return XMLDocument}(ne)}).call(this)},11523:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge,ye,ve,Te,be,_e,Ee,Ae={}.hasOwnProperty;Ee=J(52629),be=Ee.isObject,Te=Ee.isFunction,_e=Ee.isPlainObject,ve=Ee.getValue;S=J(4128);le=J(3315);fe=J(37370);re=J(66789);ne=J(34593);he=J(10363);ye=J(28854);de=J(93234);ue=J(24972);ce=J(19025);ie=J(71066);se=J(9346);oe=J(23584);ae=J(30853);te=J(49525);ge=J(20916);me=J(56939);ee=J(58413);b.exports=pe=function(){function XMLDocumentCB(b,J,ee){var te;this.name="?xml";this.type=S.Document;b||(b={});te={};if(!b.writer){b.writer=new me}else if(_e(b.writer)){te=b.writer;b.writer=new me}this.options=b;this.writer=b.writer;this.writerOptions=this.writer.filterOptions(te);this.stringify=new ge(b);this.onDataCallback=J||function(){};this.onEndCallback=ee||function(){};this.currentNode=null;this.currentLevel=-1;this.openTags={};this.documentStarted=false;this.documentCompleted=false;this.root=null}XMLDocumentCB.prototype.createChildNode=function(b){var J,ee,te,re,ne,ie,oe,se;switch(b.type){case S.CData:this.cdata(b.value);break;case S.Comment:this.comment(b.value);break;case S.Element:te={};oe=b.attribs;for(ee in oe){if(!Ae.call(oe,ee))continue;J=oe[ee];te[ee]=J.value}this.node(b.name,te);break;case S.Dummy:this.dummy();break;case S.Raw:this.raw(b.value);break;case S.Text:this.text(b.value);break;case S.ProcessingInstruction:this.instruction(b.target,b.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+b.constructor.name)}se=b.children;for(ne=0,ie=se.length;ne<ie;ne++){re=se[ne];this.createChildNode(re);if(re.type===S.Element){this.up()}}return this};XMLDocumentCB.prototype.dummy=function(){return this};XMLDocumentCB.prototype.node=function(b,S,J){var ee;if(b==null){throw new Error("Missing node name.")}if(this.root&&this.currentLevel===-1){throw new Error("Document can only have one root node. "+this.debugInfo(b))}this.openCurrent();b=ve(b);if(S==null){S={}}S=ve(S);if(!be(S)){ee=[S,J],J=ee[0],S=ee[1]}this.currentNode=new fe(this,b,S);this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;if(J!=null){this.text(J)}return this};XMLDocumentCB.prototype.element=function(b,J,ee){var te,re,ne,ie,oe,se;if(this.currentNode&&this.currentNode.type===S.DocType){this.dtdElement.apply(this,arguments)}else{if(Array.isArray(b)||be(b)||Te(b)){ie=this.options.noValidation;this.options.noValidation=true;se=new le(this.options).element("TEMP_ROOT");se.element(b);this.options.noValidation=ie;oe=se.children;for(re=0,ne=oe.length;re<ne;re++){te=oe[re];this.createChildNode(te);if(te.type===S.Element){this.up()}}}else{this.node(b,J,ee)}}return this};XMLDocumentCB.prototype.attribute=function(b,S){var J,ee;if(!this.currentNode||this.currentNode.children){throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(b))}if(b!=null){b=ve(b)}if(be(b)){for(J in b){if(!Ae.call(b,J))continue;ee=b[J];this.attribute(J,ee)}}else{if(Te(S)){S=S.apply()}if(this.options.keepNullAttributes&&S==null){this.currentNode.attribs[b]=new te(this,b,"")}else if(S!=null){this.currentNode.attribs[b]=new te(this,b,S)}}return this};XMLDocumentCB.prototype.text=function(b){var S;this.openCurrent();S=new ye(this,b);this.onData(this.writer.text(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.cdata=function(b){var S;this.openCurrent();S=new re(this,b);this.onData(this.writer.cdata(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.comment=function(b){var S;this.openCurrent();S=new ne(this,b);this.onData(this.writer.comment(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.raw=function(b){var S;this.openCurrent();S=new he(this,b);this.onData(this.writer.raw(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.instruction=function(b,S){var J,ee,te,re,ne;this.openCurrent();if(b!=null){b=ve(b)}if(S!=null){S=ve(S)}if(Array.isArray(b)){for(J=0,re=b.length;J<re;J++){ee=b[J];this.instruction(ee)}}else if(be(b)){for(ee in b){if(!Ae.call(b,ee))continue;te=b[ee];this.instruction(ee,te)}}else{if(Te(S)){S=S.apply()}ne=new de(this,b,S);this.onData(this.writer.processingInstruction(ne,this.writerOptions,this.currentLevel+1),this.currentLevel+1)}return this};XMLDocumentCB.prototype.declaration=function(b,S,J){var ee;this.openCurrent();if(this.documentStarted){throw new Error("declaration() must be the first node.")}ee=new ue(this,b,S,J);this.onData(this.writer.declaration(ee,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.doctype=function(b,S,J){this.openCurrent();if(b==null){throw new Error("Missing root node name.")}if(this.root){throw new Error("dtd() must come before the root node.")}this.currentNode=new ce(this,S,J);this.currentNode.rootNodeName=b;this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;return this};XMLDocumentCB.prototype.dtdElement=function(b,S){var J;this.openCurrent();J=new oe(this,b,S);this.onData(this.writer.dtdElement(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.attList=function(b,S,J,ee,te){var re;this.openCurrent();re=new ie(this,b,S,J,ee,te);this.onData(this.writer.dtdAttList(re,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.entity=function(b,S){var J;this.openCurrent();J=new se(this,false,b,S);this.onData(this.writer.dtdEntity(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.pEntity=function(b,S){var J;this.openCurrent();J=new se(this,true,b,S);this.onData(this.writer.dtdEntity(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.notation=function(b,S){var J;this.openCurrent();J=new ae(this,b,S);this.onData(this.writer.dtdNotation(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this};XMLDocumentCB.prototype.up=function(){if(this.currentLevel<0){throw new Error("The document node has no parent.")}if(this.currentNode){if(this.currentNode.children){this.closeNode(this.currentNode)}else{this.openNode(this.currentNode)}this.currentNode=null}else{this.closeNode(this.openTags[this.currentLevel])}delete this.openTags[this.currentLevel];this.currentLevel--;return this};XMLDocumentCB.prototype.end=function(){while(this.currentLevel>=0){this.up()}return this.onEnd()};XMLDocumentCB.prototype.openCurrent=function(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}};XMLDocumentCB.prototype.openNode=function(b){var J,te,re,ne;if(!b.isOpen){if(!this.root&&this.currentLevel===0&&b.type===S.Element){this.root=b}te="";if(b.type===S.Element){this.writerOptions.state=ee.OpenTag;te=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<"+b.name;ne=b.attribs;for(re in ne){if(!Ae.call(ne,re))continue;J=ne[re];te+=this.writer.attribute(J,this.writerOptions,this.currentLevel)}te+=(b.children?">":"/>")+this.writer.endline(b,this.writerOptions,this.currentLevel);this.writerOptions.state=ee.InsideTag}else{this.writerOptions.state=ee.OpenTag;te=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+b.rootNodeName;if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}if(b.children){te+=" [";this.writerOptions.state=ee.InsideTag}else{this.writerOptions.state=ee.CloseTag;te+=">"}te+=this.writer.endline(b,this.writerOptions,this.currentLevel)}this.onData(te,this.currentLevel);return b.isOpen=true}};XMLDocumentCB.prototype.closeNode=function(b){var J;if(!b.isClosed){J="";this.writerOptions.state=ee.CloseTag;if(b.type===S.Element){J=this.writer.indent(b,this.writerOptions,this.currentLevel)+"</"+b.name+">"+this.writer.endline(b,this.writerOptions,this.currentLevel)}else{J=this.writer.indent(b,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(b,this.writerOptions,this.currentLevel)}this.writerOptions.state=ee.None;this.onData(J,this.currentLevel);return b.isClosed=true}};XMLDocumentCB.prototype.onData=function(b,S){this.documentStarted=true;return this.onDataCallback(b,S+1)};XMLDocumentCB.prototype.onEnd=function(){this.documentCompleted=true;return this.onEndCallback()};XMLDocumentCB.prototype.debugInfo=function(b){if(b==null){return""}else{return"node: <"+b+">"}};XMLDocumentCB.prototype.ele=function(){return this.element.apply(this,arguments)};XMLDocumentCB.prototype.nod=function(b,S,J){return this.node(b,S,J)};XMLDocumentCB.prototype.txt=function(b){return this.text(b)};XMLDocumentCB.prototype.dat=function(b){return this.cdata(b)};XMLDocumentCB.prototype.com=function(b){return this.comment(b)};XMLDocumentCB.prototype.ins=function(b,S){return this.instruction(b,S)};XMLDocumentCB.prototype.dec=function(b,S,J){return this.declaration(b,S,J)};XMLDocumentCB.prototype.dtd=function(b,S,J){return this.doctype(b,S,J)};XMLDocumentCB.prototype.e=function(b,S,J){return this.element(b,S,J)};XMLDocumentCB.prototype.n=function(b,S,J){return this.node(b,S,J)};XMLDocumentCB.prototype.t=function(b){return this.text(b)};XMLDocumentCB.prototype.d=function(b){return this.cdata(b)};XMLDocumentCB.prototype.c=function(b){return this.comment(b)};XMLDocumentCB.prototype.r=function(b){return this.raw(b)};XMLDocumentCB.prototype.i=function(b,S){return this.instruction(b,S)};XMLDocumentCB.prototype.att=function(){if(this.currentNode&&this.currentNode.type===S.DocType){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.a=function(){if(this.currentNode&&this.currentNode.type===S.DocType){return this.attList.apply(this,arguments)}else{return this.attribute.apply(this,arguments)}};XMLDocumentCB.prototype.ent=function(b,S){return this.entity(b,S)};XMLDocumentCB.prototype.pent=function(b,S){return this.pEntity(b,S)};XMLDocumentCB.prototype.not=function(b,S){return this.notation(b,S)};return XMLDocumentCB}()}).call(this)},3288:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;te=J(98064);S=J(4128);b.exports=ee=function(b){extend(XMLDummy,b);function XMLDummy(b){XMLDummy.__super__.constructor.call(this,b);this.type=S.Dummy}XMLDummy.prototype.clone=function(){return Object.create(this)};XMLDummy.prototype.toString=function(b){return""};return XMLDummy}(te)}).call(this)},37370:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,extend=function(b,S){for(var J in S){if(ue.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ue={}.hasOwnProperty;ae=J(52629),se=ae.isObject,oe=ae.isFunction,ie=ae.getValue;ne=J(98064);S=J(4128);ee=J(49525);re=J(78339);b.exports=te=function(b){extend(XMLElement,b);function XMLElement(b,J,ee){var te,re,ne,ie;XMLElement.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing element name. "+this.debugInfo())}this.name=this.stringify.name(J);this.type=S.Element;this.attribs={};this.schemaTypeInfo=null;if(ee!=null){this.attribute(ee)}if(b.type===S.Document){this.isRoot=true;this.documentObject=b;b.rootObject=this;if(b.children){ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];if(te.type===S.DocType){te.name=this.name;break}}}}}Object.defineProperty(XMLElement.prototype,"tagName",{get:function(){return this.name}});Object.defineProperty(XMLElement.prototype,"namespaceURI",{get:function(){return""}});Object.defineProperty(XMLElement.prototype,"prefix",{get:function(){return""}});Object.defineProperty(XMLElement.prototype,"localName",{get:function(){return this.name}});Object.defineProperty(XMLElement.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"attributes",{get:function(){if(!this.attributeMap||!this.attributeMap.nodes){this.attributeMap=new re(this.attribs)}return this.attributeMap}});XMLElement.prototype.clone=function(){var b,S,J,ee;J=Object.create(this);if(J.isRoot){J.documentObject=null}J.attribs={};ee=this.attribs;for(S in ee){if(!ue.call(ee,S))continue;b=ee[S];J.attribs[S]=b.clone()}J.children=[];this.children.forEach((function(b){var S;S=b.clone();S.parent=J;return J.children.push(S)}));return J};XMLElement.prototype.attribute=function(b,S){var J,te;if(b!=null){b=ie(b)}if(se(b)){for(J in b){if(!ue.call(b,J))continue;te=b[J];this.attribute(J,te)}}else{if(oe(S)){S=S.apply()}if(this.options.keepNullAttributes&&S==null){this.attribs[b]=new ee(this,b,"")}else if(S!=null){this.attribs[b]=new ee(this,b,S)}}return this};XMLElement.prototype.removeAttribute=function(b){var S,J,ee;if(b==null){throw new Error("Missing attribute name. "+this.debugInfo())}b=ie(b);if(Array.isArray(b)){for(J=0,ee=b.length;J<ee;J++){S=b[J];delete this.attribs[S]}}else{delete this.attribs[b]}return this};XMLElement.prototype.toString=function(b){return this.options.writer.element(this,this.options.writer.filterOptions(b))};XMLElement.prototype.att=function(b,S){return this.attribute(b,S)};XMLElement.prototype.a=function(b,S){return this.attribute(b,S)};XMLElement.prototype.getAttribute=function(b){if(this.attribs.hasOwnProperty(b)){return this.attribs[b].value}else{return null}};XMLElement.prototype.setAttribute=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getAttributeNode=function(b){if(this.attribs.hasOwnProperty(b)){return this.attribs[b]}else{return null}};XMLElement.prototype.setAttributeNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.removeAttributeNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getElementsByTagName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getAttributeNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.setAttributeNS=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.removeAttributeNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getAttributeNodeNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.setAttributeNodeNS=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getElementsByTagNameNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.hasAttribute=function(b){return this.attribs.hasOwnProperty(b)};XMLElement.prototype.hasAttributeNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.setIdAttribute=function(b,S){if(this.attribs.hasOwnProperty(b)){return this.attribs[b].isId}else{return S}};XMLElement.prototype.setIdAttributeNS=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.setIdAttributeNode=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getElementsByTagName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getElementsByTagNameNS=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.getElementsByClassName=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLElement.prototype.isEqualNode=function(b){var S,J,ee;if(!XMLElement.__super__.isEqualNode.apply(this,arguments).isEqualNode(b)){return false}if(b.namespaceURI!==this.namespaceURI){return false}if(b.prefix!==this.prefix){return false}if(b.localName!==this.localName){return false}if(b.attribs.length!==this.attribs.length){return false}for(S=J=0,ee=this.attribs.length-1;0<=ee?J<=ee:J>=ee;S=0<=ee?++J:--J){if(!this.attribs[S].isEqualNode(b.attribs[S])){return false}}return true};return XMLElement}(ne)}).call(this)},78339:function(b){(function(){var S;b.exports=S=function(){function XMLNamedNodeMap(b){this.nodes=b}Object.defineProperty(XMLNamedNodeMap.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}});XMLNamedNodeMap.prototype.clone=function(){return this.nodes=null};XMLNamedNodeMap.prototype.getNamedItem=function(b){return this.nodes[b]};XMLNamedNodeMap.prototype.setNamedItem=function(b){var S;S=this.nodes[b.nodeName];this.nodes[b.nodeName]=b;return S||null};XMLNamedNodeMap.prototype.removeNamedItem=function(b){var S;S=this.nodes[b];delete this.nodes[b];return S||null};XMLNamedNodeMap.prototype.item=function(b){return this.nodes[Object.keys(this.nodes)[b]]||null};XMLNamedNodeMap.prototype.getNamedItemNS=function(b,S){throw new Error("This DOM method is not implemented.")};XMLNamedNodeMap.prototype.setNamedItemNS=function(b){throw new Error("This DOM method is not implemented.")};XMLNamedNodeMap.prototype.removeNamedItemNS=function(b,S){throw new Error("This DOM method is not implemented.")};return XMLNamedNodeMap}()}).call(this)},98064:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge,ye,ve={}.hasOwnProperty;ye=J(52629),ge=ye.isObject,me=ye.isFunction,he=ye.isEmpty,de=ye.getValue;se=null;te=null;re=null;ne=null;ie=null;pe=null;fe=null;le=null;oe=null;ee=null;ce=null;ae=null;S=null;b.exports=ue=function(){function XMLNode(b){this.parent=b;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}this.value=null;this.children=[];this.baseURI=null;if(!se){se=J(37370);te=J(66789);re=J(34593);ne=J(24972);ie=J(19025);pe=J(10363);fe=J(28854);le=J(93234);oe=J(3288);ee=J(4128);ce=J(57209);ae=J(78339);S=J(22346)}}Object.defineProperty(XMLNode.prototype,"nodeName",{get:function(){return this.name}});Object.defineProperty(XMLNode.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(XMLNode.prototype,"nodeValue",{get:function(){return this.value}});Object.defineProperty(XMLNode.prototype,"parentNode",{get:function(){return this.parent}});Object.defineProperty(XMLNode.prototype,"childNodes",{get:function(){if(!this.childNodeList||!this.childNodeList.nodes){this.childNodeList=new ce(this.children)}return this.childNodeList}});Object.defineProperty(XMLNode.prototype,"firstChild",{get:function(){return this.children[0]||null}});Object.defineProperty(XMLNode.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}});Object.defineProperty(XMLNode.prototype,"previousSibling",{get:function(){var b;b=this.parent.children.indexOf(this);return this.parent.children[b-1]||null}});Object.defineProperty(XMLNode.prototype,"nextSibling",{get:function(){var b;b=this.parent.children.indexOf(this);return this.parent.children[b+1]||null}});Object.defineProperty(XMLNode.prototype,"ownerDocument",{get:function(){return this.document()||null}});Object.defineProperty(XMLNode.prototype,"textContent",{get:function(){var b,S,J,te,re;if(this.nodeType===ee.Element||this.nodeType===ee.DocumentFragment){re="";te=this.children;for(S=0,J=te.length;S<J;S++){b=te[S];if(b.textContent){re+=b.textContent}}return re}else{return null}},set:function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}});XMLNode.prototype.setParent=function(b){var S,J,ee,te,re;this.parent=b;if(b){this.options=b.options;this.stringify=b.stringify}te=this.children;re=[];for(J=0,ee=te.length;J<ee;J++){S=te[J];re.push(S.setParent(this))}return re};XMLNode.prototype.element=function(b,S,J){var ee,te,re,ne,ie,oe,se,ae,ue,ce,le;oe=null;if(S===null&&J==null){ue=[{},null],S=ue[0],J=ue[1]}if(S==null){S={}}S=de(S);if(!ge(S)){ce=[S,J],J=ce[0],S=ce[1]}if(b!=null){b=de(b)}if(Array.isArray(b)){for(re=0,se=b.length;re<se;re++){te=b[re];oe=this.element(te)}}else if(me(b)){oe=this.element(b.apply())}else if(ge(b)){for(ie in b){if(!ve.call(b,ie))continue;le=b[ie];if(me(le)){le=le.apply()}if(!this.options.ignoreDecorators&&this.stringify.convertAttKey&&ie.indexOf(this.stringify.convertAttKey)===0){oe=this.attribute(ie.substr(this.stringify.convertAttKey.length),le)}else if(!this.options.separateArrayItems&&Array.isArray(le)&&he(le)){oe=this.dummy()}else if(ge(le)&&he(le)){oe=this.element(ie)}else if(!this.options.keepNullNodes&&le==null){oe=this.dummy()}else if(!this.options.separateArrayItems&&Array.isArray(le)){for(ne=0,ae=le.length;ne<ae;ne++){te=le[ne];ee={};ee[ie]=te;oe=this.element(ee)}}else if(ge(le)){if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ie.indexOf(this.stringify.convertTextKey)===0){oe=this.element(le)}else{oe=this.element(ie);oe.element(le)}}else{oe=this.element(ie,le)}}}else if(!this.options.keepNullNodes&&J===null){oe=this.dummy()}else{if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&b.indexOf(this.stringify.convertTextKey)===0){oe=this.text(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&b.indexOf(this.stringify.convertCDataKey)===0){oe=this.cdata(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&b.indexOf(this.stringify.convertCommentKey)===0){oe=this.comment(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertRawKey&&b.indexOf(this.stringify.convertRawKey)===0){oe=this.raw(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertPIKey&&b.indexOf(this.stringify.convertPIKey)===0){oe=this.instruction(b.substr(this.stringify.convertPIKey.length),J)}else{oe=this.node(b,S,J)}}if(oe==null){throw new Error("Could not create any elements with: "+b+". "+this.debugInfo())}return oe};XMLNode.prototype.insertBefore=function(b,S,J){var ee,te,re,ne,ie;if(b!=null?b.type:void 0){re=b;ne=S;re.setParent(this);if(ne){te=children.indexOf(ne);ie=children.splice(te);children.push(re);Array.prototype.push.apply(children,ie)}else{children.push(re)}return re}else{if(this.isRoot){throw new Error("Cannot insert elements at root level. "+this.debugInfo(b))}te=this.parent.children.indexOf(this);ie=this.parent.children.splice(te);ee=this.parent.element(b,S,J);Array.prototype.push.apply(this.parent.children,ie);return ee}};XMLNode.prototype.insertAfter=function(b,S,J){var ee,te,re;if(this.isRoot){throw new Error("Cannot insert elements at root level. "+this.debugInfo(b))}te=this.parent.children.indexOf(this);re=this.parent.children.splice(te+1);ee=this.parent.element(b,S,J);Array.prototype.push.apply(this.parent.children,re);return ee};XMLNode.prototype.remove=function(){var b,S;if(this.isRoot){throw new Error("Cannot remove the root element. "+this.debugInfo())}b=this.parent.children.indexOf(this);[].splice.apply(this.parent.children,[b,b-b+1].concat(S=[])),S;return this.parent};XMLNode.prototype.node=function(b,S,J){var ee,te;if(b!=null){b=de(b)}S||(S={});S=de(S);if(!ge(S)){te=[S,J],J=te[0],S=te[1]}ee=new se(this,b,S);if(J!=null){ee.text(J)}this.children.push(ee);return ee};XMLNode.prototype.text=function(b){var S;if(ge(b)){this.element(b)}S=new fe(this,b);this.children.push(S);return this};XMLNode.prototype.cdata=function(b){var S;S=new te(this,b);this.children.push(S);return this};XMLNode.prototype.comment=function(b){var S;S=new re(this,b);this.children.push(S);return this};XMLNode.prototype.commentBefore=function(b){var S,J,ee;J=this.parent.children.indexOf(this);ee=this.parent.children.splice(J);S=this.parent.comment(b);Array.prototype.push.apply(this.parent.children,ee);return this};XMLNode.prototype.commentAfter=function(b){var S,J,ee;J=this.parent.children.indexOf(this);ee=this.parent.children.splice(J+1);S=this.parent.comment(b);Array.prototype.push.apply(this.parent.children,ee);return this};XMLNode.prototype.raw=function(b){var S;S=new pe(this,b);this.children.push(S);return this};XMLNode.prototype.dummy=function(){var b;b=new oe(this);return b};XMLNode.prototype.instruction=function(b,S){var J,ee,te,re,ne;if(b!=null){b=de(b)}if(S!=null){S=de(S)}if(Array.isArray(b)){for(re=0,ne=b.length;re<ne;re++){J=b[re];this.instruction(J)}}else if(ge(b)){for(J in b){if(!ve.call(b,J))continue;ee=b[J];this.instruction(J,ee)}}else{if(me(S)){S=S.apply()}te=new le(this,b,S);this.children.push(te)}return this};XMLNode.prototype.instructionBefore=function(b,S){var J,ee,te;ee=this.parent.children.indexOf(this);te=this.parent.children.splice(ee);J=this.parent.instruction(b,S);Array.prototype.push.apply(this.parent.children,te);return this};XMLNode.prototype.instructionAfter=function(b,S){var J,ee,te;ee=this.parent.children.indexOf(this);te=this.parent.children.splice(ee+1);J=this.parent.instruction(b,S);Array.prototype.push.apply(this.parent.children,te);return this};XMLNode.prototype.declaration=function(b,S,J){var te,re;te=this.document();re=new ne(te,b,S,J);if(te.children.length===0){te.children.unshift(re)}else if(te.children[0].type===ee.Declaration){te.children[0]=re}else{te.children.unshift(re)}return te.root()||te};XMLNode.prototype.dtd=function(b,S){var J,te,re,ne,oe,se,ae,ue,ce,le;te=this.document();re=new ie(te,b,S);ce=te.children;for(ne=oe=0,ae=ce.length;oe<ae;ne=++oe){J=ce[ne];if(J.type===ee.DocType){te.children[ne]=re;return re}}le=te.children;for(ne=se=0,ue=le.length;se<ue;ne=++se){J=le[ne];if(J.isRoot){te.children.splice(ne,0,re);return re}}te.children.push(re);return re};XMLNode.prototype.up=function(){if(this.isRoot){throw new Error("The root node has no parent. Use doc() if you need to get the document object.")}return this.parent};XMLNode.prototype.root=function(){var b;b=this;while(b){if(b.type===ee.Document){return b.rootObject}else if(b.isRoot){return b}else{b=b.parent}}};XMLNode.prototype.document=function(){var b;b=this;while(b){if(b.type===ee.Document){return b}else{b=b.parent}}};XMLNode.prototype.end=function(b){return this.document().end(b)};XMLNode.prototype.prev=function(){var b;b=this.parent.children.indexOf(this);if(b<1){throw new Error("Already at the first node. "+this.debugInfo())}return this.parent.children[b-1]};XMLNode.prototype.next=function(){var b;b=this.parent.children.indexOf(this);if(b===-1||b===this.parent.children.length-1){throw new Error("Already at the last node. "+this.debugInfo())}return this.parent.children[b+1]};XMLNode.prototype.importDocument=function(b){var S;S=b.root().clone();S.parent=this;S.isRoot=false;this.children.push(S);return this};XMLNode.prototype.debugInfo=function(b){var S,J;b=b||this.name;if(b==null&&!((S=this.parent)!=null?S.name:void 0)){return""}else if(b==null){return"parent: <"+this.parent.name+">"}else if(!((J=this.parent)!=null?J.name:void 0)){return"node: <"+b+">"}else{return"node: <"+b+">, parent: <"+this.parent.name+">"}};XMLNode.prototype.ele=function(b,S,J){return this.element(b,S,J)};XMLNode.prototype.nod=function(b,S,J){return this.node(b,S,J)};XMLNode.prototype.txt=function(b){return this.text(b)};XMLNode.prototype.dat=function(b){return this.cdata(b)};XMLNode.prototype.com=function(b){return this.comment(b)};XMLNode.prototype.ins=function(b,S){return this.instruction(b,S)};XMLNode.prototype.doc=function(){return this.document()};XMLNode.prototype.dec=function(b,S,J){return this.declaration(b,S,J)};XMLNode.prototype.e=function(b,S,J){return this.element(b,S,J)};XMLNode.prototype.n=function(b,S,J){return this.node(b,S,J)};XMLNode.prototype.t=function(b){return this.text(b)};XMLNode.prototype.d=function(b){return this.cdata(b)};XMLNode.prototype.c=function(b){return this.comment(b)};XMLNode.prototype.r=function(b){return this.raw(b)};XMLNode.prototype.i=function(b,S){return this.instruction(b,S)};XMLNode.prototype.u=function(){return this.up()};XMLNode.prototype.importXMLBuilder=function(b){return this.importDocument(b)};XMLNode.prototype.replaceChild=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.removeChild=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.appendChild=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.hasChildNodes=function(){return this.children.length!==0};XMLNode.prototype.cloneNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.isSupported=function(b,S){return true};XMLNode.prototype.hasAttributes=function(){return this.attribs.length!==0};XMLNode.prototype.compareDocumentPosition=function(b){var J,ee;J=this;if(J===b){return 0}else if(this.document()!==b.document()){ee=S.Disconnected|S.ImplementationSpecific;if(Math.random()<.5){ee|=S.Preceding}else{ee|=S.Following}return ee}else if(J.isAncestor(b)){return S.Contains|S.Preceding}else if(J.isDescendant(b)){return S.Contains|S.Following}else if(J.isPreceding(b)){return S.Preceding}else{return S.Following}};XMLNode.prototype.isSameNode=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.lookupPrefix=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.isDefaultNamespace=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.lookupNamespaceURI=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.isEqualNode=function(b){var S,J,ee;if(b.nodeType!==this.nodeType){return false}if(b.children.length!==this.children.length){return false}for(S=J=0,ee=this.children.length-1;0<=ee?J<=ee:J>=ee;S=0<=ee?++J:--J){if(!this.children[S].isEqualNode(b.children[S])){return false}}return true};XMLNode.prototype.getFeature=function(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.setUserData=function(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.getUserData=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLNode.prototype.contains=function(b){if(!b){return false}return b===this||this.isDescendant(b)};XMLNode.prototype.isDescendant=function(b){var S,J,ee,te,re;re=this.children;for(ee=0,te=re.length;ee<te;ee++){S=re[ee];if(b===S){return true}J=S.isDescendant(b);if(J){return true}}return false};XMLNode.prototype.isAncestor=function(b){return b.isDescendant(this)};XMLNode.prototype.isPreceding=function(b){var S,J;S=this.treePosition(b);J=this.treePosition(this);if(S===-1||J===-1){return false}else{return S<J}};XMLNode.prototype.isFollowing=function(b){var S,J;S=this.treePosition(b);J=this.treePosition(this);if(S===-1||J===-1){return false}else{return S>J}};XMLNode.prototype.treePosition=function(b){var S,J;J=0;S=false;this.foreachTreeNode(this.document(),(function(ee){J++;if(!S&&ee===b){return S=true}}));if(S){return J}else{return-1}};XMLNode.prototype.foreachTreeNode=function(b,S){var J,ee,te,re,ne;b||(b=this.document());re=b.children;for(ee=0,te=re.length;ee<te;ee++){J=re[ee];if(ne=S(J)){return ne}else{ne=this.foreachTreeNode(J,S);if(ne){return ne}}}};return XMLNode}()}).call(this)},57209:function(b){(function(){var S;b.exports=S=function(){function XMLNodeList(b){this.nodes=b}Object.defineProperty(XMLNodeList.prototype,"length",{get:function(){return this.nodes.length||0}});XMLNodeList.prototype.clone=function(){return this.nodes=null};XMLNodeList.prototype.item=function(b){return this.nodes[b]||null};return XMLNodeList}()}).call(this)},93234:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;S=J(4128);ee=J(63527);b.exports=te=function(b){extend(XMLProcessingInstruction,b);function XMLProcessingInstruction(b,J,ee){XMLProcessingInstruction.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing instruction target. "+this.debugInfo())}this.type=S.ProcessingInstruction;this.target=this.stringify.insTarget(J);this.name=this.target;if(ee){this.value=this.stringify.insValue(ee)}}XMLProcessingInstruction.prototype.clone=function(){return Object.create(this)};XMLProcessingInstruction.prototype.toString=function(b){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(b))};XMLProcessingInstruction.prototype.isEqualNode=function(b){if(!XMLProcessingInstruction.__super__.isEqualNode.apply(this,arguments).isEqualNode(b)){return false}if(b.target!==this.target){return false}return true};return XMLProcessingInstruction}(ee)}).call(this)},10363:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;S=J(4128);ee=J(98064);b.exports=te=function(b){extend(XMLRaw,b);function XMLRaw(b,J){XMLRaw.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing raw text. "+this.debugInfo())}this.type=S.Raw;this.value=this.stringify.raw(J)}XMLRaw.prototype.clone=function(){return Object.create(this)};XMLRaw.prototype.toString=function(b){return this.options.writer.raw(this,this.options.writer.filterOptions(b))};return XMLRaw}(ee)}).call(this)},30359:function(b,S,J){(function(){var S,ee,te,re,extend=function(b,S){for(var J in S){if(ne.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},ne={}.hasOwnProperty;S=J(4128);re=J(8126);ee=J(58413);b.exports=te=function(b){extend(XMLStreamWriter,b);function XMLStreamWriter(b,S){this.stream=b;XMLStreamWriter.__super__.constructor.call(this,S)}XMLStreamWriter.prototype.endline=function(b,S,J){if(b.isLastRootNode&&S.state===ee.CloseTag){return""}else{return XMLStreamWriter.__super__.endline.call(this,b,S,J)}};XMLStreamWriter.prototype.document=function(b,S){var J,ee,te,re,ne,ie,oe,se,ae;oe=b.children;for(ee=te=0,ne=oe.length;te<ne;ee=++te){J=oe[ee];J.isLastRootNode=ee===b.children.length-1}S=this.filterOptions(S);se=b.children;ae=[];for(re=0,ie=se.length;re<ie;re++){J=se[re];ae.push(this.writeChildNode(J,S,0))}return ae};XMLStreamWriter.prototype.attribute=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.attribute.call(this,b,S,J))};XMLStreamWriter.prototype.cdata=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.cdata.call(this,b,S,J))};XMLStreamWriter.prototype.comment=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.comment.call(this,b,S,J))};XMLStreamWriter.prototype.declaration=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.declaration.call(this,b,S,J))};XMLStreamWriter.prototype.docType=function(b,S,J){var te,re,ne,ie;J||(J=0);this.openNode(b,S,J);S.state=ee.OpenTag;this.stream.write(this.indent(b,S,J));this.stream.write("<!DOCTYPE "+b.root().name);if(b.pubID&&b.sysID){this.stream.write(' PUBLIC "'+b.pubID+'" "'+b.sysID+'"')}else if(b.sysID){this.stream.write(' SYSTEM "'+b.sysID+'"')}if(b.children.length>0){this.stream.write(" [");this.stream.write(this.endline(b,S,J));S.state=ee.InsideTag;ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];this.writeChildNode(te,S,J+1)}S.state=ee.CloseTag;this.stream.write("]")}S.state=ee.CloseTag;this.stream.write(S.spaceBeforeSlash+">");this.stream.write(this.endline(b,S,J));S.state=ee.None;return this.closeNode(b,S,J)};XMLStreamWriter.prototype.element=function(b,J,te){var re,ie,oe,se,ae,ue,ce,le,pe,fe;te||(te=0);this.openNode(b,J,te);J.state=ee.OpenTag;this.stream.write(this.indent(b,J,te)+"<"+b.name);pe=b.attribs;for(ce in pe){if(!ne.call(pe,ce))continue;re=pe[ce];this.attribute(re,J,te)}oe=b.children.length;se=oe===0?null:b.children[0];if(oe===0||b.children.every((function(b){return(b.type===S.Text||b.type===S.Raw)&&b.value===""}))){if(J.allowEmpty){this.stream.write(">");J.state=ee.CloseTag;this.stream.write("</"+b.name+">")}else{J.state=ee.CloseTag;this.stream.write(J.spaceBeforeSlash+"/>")}}else if(J.pretty&&oe===1&&(se.type===S.Text||se.type===S.Raw)&&se.value!=null){this.stream.write(">");J.state=ee.InsideTag;J.suppressPrettyCount++;le=true;this.writeChildNode(se,J,te+1);J.suppressPrettyCount--;le=false;J.state=ee.CloseTag;this.stream.write("</"+b.name+">")}else{this.stream.write(">"+this.endline(b,J,te));J.state=ee.InsideTag;fe=b.children;for(ae=0,ue=fe.length;ae<ue;ae++){ie=fe[ae];this.writeChildNode(ie,J,te+1)}J.state=ee.CloseTag;this.stream.write(this.indent(b,J,te)+"</"+b.name+">")}this.stream.write(this.endline(b,J,te));J.state=ee.None;return this.closeNode(b,J,te)};XMLStreamWriter.prototype.processingInstruction=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.processingInstruction.call(this,b,S,J))};XMLStreamWriter.prototype.raw=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.raw.call(this,b,S,J))};XMLStreamWriter.prototype.text=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.text.call(this,b,S,J))};XMLStreamWriter.prototype.dtdAttList=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.dtdAttList.call(this,b,S,J))};XMLStreamWriter.prototype.dtdElement=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.dtdElement.call(this,b,S,J))};XMLStreamWriter.prototype.dtdEntity=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.dtdEntity.call(this,b,S,J))};XMLStreamWriter.prototype.dtdNotation=function(b,S,J){return this.stream.write(XMLStreamWriter.__super__.dtdNotation.call(this,b,S,J))};return XMLStreamWriter}(re)}).call(this)},56939:function(b,S,J){(function(){var S,ee,extend=function(b,S){for(var J in S){if(te.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},te={}.hasOwnProperty;ee=J(8126);b.exports=S=function(b){extend(XMLStringWriter,b);function XMLStringWriter(b){XMLStringWriter.__super__.constructor.call(this,b)}XMLStringWriter.prototype.document=function(b,S){var J,ee,te,re,ne;S=this.filterOptions(S);re="";ne=b.children;for(ee=0,te=ne.length;ee<te;ee++){J=ne[ee];re+=this.writeChildNode(J,S,0)}if(S.pretty&&re.slice(-S.newline.length)===S.newline){re=re.slice(0,-S.newline.length)}return re};return XMLStringWriter}(ee)}).call(this)},20916:function(b){(function(){var S,bind=function(b,S){return function(){return b.apply(S,arguments)}},J={}.hasOwnProperty;b.exports=S=function(){function XMLStringifier(b){this.assertLegalName=bind(this.assertLegalName,this);this.assertLegalChar=bind(this.assertLegalChar,this);var S,ee,te;b||(b={});this.options=b;if(!this.options.version){this.options.version="1.0"}ee=b.stringify||{};for(S in ee){if(!J.call(ee,S))continue;te=ee[S];this[S]=te}}XMLStringifier.prototype.name=function(b){if(this.options.noValidation){return b}return this.assertLegalName(""+b||"")};XMLStringifier.prototype.text=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(this.textEscape(""+b||""))};XMLStringifier.prototype.cdata=function(b){if(this.options.noValidation){return b}b=""+b||"";b=b.replace("]]>","]]]]><![CDATA[>");return this.assertLegalChar(b)};XMLStringifier.prototype.comment=function(b){if(this.options.noValidation){return b}b=""+b||"";if(b.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+b)}return this.assertLegalChar(b)};XMLStringifier.prototype.raw=function(b){if(this.options.noValidation){return b}return""+b||""};XMLStringifier.prototype.attValue=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(this.attEscape(b=""+b||""))};XMLStringifier.prototype.insTarget=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.insValue=function(b){if(this.options.noValidation){return b}b=""+b||"";if(b.match(/\?>/)){throw new Error("Invalid processing instruction value: "+b)}return this.assertLegalChar(b)};XMLStringifier.prototype.xmlVersion=function(b){if(this.options.noValidation){return b}b=""+b||"";if(!b.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+b)}return b};XMLStringifier.prototype.xmlEncoding=function(b){if(this.options.noValidation){return b}b=""+b||"";if(!b.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+b)}return this.assertLegalChar(b)};XMLStringifier.prototype.xmlStandalone=function(b){if(this.options.noValidation){return b}if(b){return"yes"}else{return"no"}};XMLStringifier.prototype.dtdPubID=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdSysID=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdElementValue=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdAttType=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdAttDefault=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdEntityValue=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.dtdNData=function(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")};XMLStringifier.prototype.convertAttKey="@";XMLStringifier.prototype.convertPIKey="?";XMLStringifier.prototype.convertTextKey="#text";XMLStringifier.prototype.convertCDataKey="#cdata";XMLStringifier.prototype.convertCommentKey="#comment";XMLStringifier.prototype.convertRawKey="#raw";XMLStringifier.prototype.assertLegalChar=function(b){var S,J;if(this.options.noValidation){return b}S="";if(this.options.version==="1.0"){S=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(J=b.match(S)){throw new Error("Invalid character in string: "+b+" at index "+J.index)}}else if(this.options.version==="1.1"){S=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(J=b.match(S)){throw new Error("Invalid character in string: "+b+" at index "+J.index)}}return b};XMLStringifier.prototype.assertLegalName=function(b){var S;if(this.options.noValidation){return b}this.assertLegalChar(b);S=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/;if(!b.match(S)){throw new Error("Invalid character in name")}return b};XMLStringifier.prototype.textEscape=function(b){var S;if(this.options.noValidation){return b}S=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return b.replace(S,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")};XMLStringifier.prototype.attEscape=function(b){var S;if(this.options.noValidation){return b}S=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return b.replace(S,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")};return XMLStringifier}()}).call(this)},28854:function(b,S,J){(function(){var S,ee,te,extend=function(b,S){for(var J in S){if(re.call(S,J))b[J]=S[J]}function ctor(){this.constructor=b}ctor.prototype=S.prototype;b.prototype=new ctor;b.__super__=S.prototype;return b},re={}.hasOwnProperty;S=J(4128);ee=J(63527);b.exports=te=function(b){extend(XMLText,b);function XMLText(b,J){XMLText.__super__.constructor.call(this,b);if(J==null){throw new Error("Missing element text. "+this.debugInfo())}this.name="#text";this.type=S.Text;this.value=this.stringify.text(J)}Object.defineProperty(XMLText.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLText.prototype,"wholeText",{get:function(){var b,S,J;J="";S=this.previousSibling;while(S){J=S.data+J;S=S.previousSibling}J+=this.data;b=this.nextSibling;while(b){J=J+b.data;b=b.nextSibling}return J}});XMLText.prototype.clone=function(){return Object.create(this)};XMLText.prototype.toString=function(b){return this.options.writer.text(this,this.options.writer.filterOptions(b))};XMLText.prototype.splitText=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};XMLText.prototype.replaceWholeText=function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())};return XMLText}(ee)}).call(this)},8126:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge={}.hasOwnProperty;me=J(52629).assign;S=J(4128);ae=J(24972);ue=J(19025);te=J(66789);re=J(34593);le=J(37370);fe=J(10363);de=J(28854);pe=J(93234);ce=J(3288);ne=J(71066);ie=J(23584);oe=J(9346);se=J(30853);ee=J(58413);b.exports=he=function(){function XMLWriterBase(b){var S,J,ee;b||(b={});this.options=b;J=b.writer||{};for(S in J){if(!ge.call(J,S))continue;ee=J[S];this["_"+S]=this[S];this[S]=ee}}XMLWriterBase.prototype.filterOptions=function(b){var S,J,te,re,ne,ie,oe,se;b||(b={});b=me({},this.options,b);S={writer:this};S.pretty=b.pretty||false;S.allowEmpty=b.allowEmpty||false;S.indent=(J=b.indent)!=null?J:" ";S.newline=(te=b.newline)!=null?te:"\n";S.offset=(re=b.offset)!=null?re:0;S.dontPrettyTextNodes=(ne=(ie=b.dontPrettyTextNodes)!=null?ie:b.dontprettytextnodes)!=null?ne:0;S.spaceBeforeSlash=(oe=(se=b.spaceBeforeSlash)!=null?se:b.spacebeforeslash)!=null?oe:"";if(S.spaceBeforeSlash===true){S.spaceBeforeSlash=" "}S.suppressPrettyCount=0;S.user={};S.state=ee.None;return S};XMLWriterBase.prototype.indent=function(b,S,J){var ee;if(!S.pretty||S.suppressPrettyCount){return""}else if(S.pretty){ee=(J||0)+S.offset+1;if(ee>0){return new Array(ee).join(S.indent)}}return""};XMLWriterBase.prototype.endline=function(b,S,J){if(!S.pretty||S.suppressPrettyCount){return""}else{return S.newline}};XMLWriterBase.prototype.attribute=function(b,S,J){var ee;this.openAttribute(b,S,J);ee=" "+b.name+'="'+b.value+'"';this.closeAttribute(b,S,J);return ee};XMLWriterBase.prototype.cdata=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<![CDATA[";S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+="]]>"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.comment=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"\x3c!-- ";S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=" --\x3e"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.declaration=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<?xml";S.state=ee.InsideTag;te+=' version="'+b.version+'"';if(b.encoding!=null){te+=' encoding="'+b.encoding+'"'}if(b.standalone!=null){te+=' standalone="'+b.standalone+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+"?>";te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.docType=function(b,S,J){var te,re,ne,ie,oe;J||(J=0);this.openNode(b,S,J);S.state=ee.OpenTag;ie=this.indent(b,S,J);ie+="<!DOCTYPE "+b.root().name;if(b.pubID&&b.sysID){ie+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){ie+=' SYSTEM "'+b.sysID+'"'}if(b.children.length>0){ie+=" [";ie+=this.endline(b,S,J);S.state=ee.InsideTag;oe=b.children;for(re=0,ne=oe.length;re<ne;re++){te=oe[re];ie+=this.writeChildNode(te,S,J+1)}S.state=ee.CloseTag;ie+="]"}S.state=ee.CloseTag;ie+=S.spaceBeforeSlash+">";ie+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return ie};XMLWriterBase.prototype.element=function(b,J,te){var re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me;te||(te=0);pe=false;fe="";this.openNode(b,J,te);J.state=ee.OpenTag;fe+=this.indent(b,J,te)+"<"+b.name;de=b.attribs;for(le in de){if(!ge.call(de,le))continue;re=de[le];fe+=this.attribute(re,J,te)}ie=b.children.length;oe=ie===0?null:b.children[0];if(ie===0||b.children.every((function(b){return(b.type===S.Text||b.type===S.Raw)&&b.value===""}))){if(J.allowEmpty){fe+=">";J.state=ee.CloseTag;fe+="</"+b.name+">"+this.endline(b,J,te)}else{J.state=ee.CloseTag;fe+=J.spaceBeforeSlash+"/>"+this.endline(b,J,te)}}else if(J.pretty&&ie===1&&(oe.type===S.Text||oe.type===S.Raw)&&oe.value!=null){fe+=">";J.state=ee.InsideTag;J.suppressPrettyCount++;pe=true;fe+=this.writeChildNode(oe,J,te+1);J.suppressPrettyCount--;pe=false;J.state=ee.CloseTag;fe+="</"+b.name+">"+this.endline(b,J,te)}else{if(J.dontPrettyTextNodes){he=b.children;for(se=0,ue=he.length;se<ue;se++){ne=he[se];if((ne.type===S.Text||ne.type===S.Raw)&&ne.value!=null){J.suppressPrettyCount++;pe=true;break}}}fe+=">"+this.endline(b,J,te);J.state=ee.InsideTag;me=b.children;for(ae=0,ce=me.length;ae<ce;ae++){ne=me[ae];fe+=this.writeChildNode(ne,J,te+1)}J.state=ee.CloseTag;fe+=this.indent(b,J,te)+"</"+b.name+">";if(pe){J.suppressPrettyCount--}fe+=this.endline(b,J,te);J.state=ee.None}this.closeNode(b,J,te);return fe};XMLWriterBase.prototype.writeChildNode=function(b,J,ee){switch(b.type){case S.CData:return this.cdata(b,J,ee);case S.Comment:return this.comment(b,J,ee);case S.Element:return this.element(b,J,ee);case S.Raw:return this.raw(b,J,ee);case S.Text:return this.text(b,J,ee);case S.ProcessingInstruction:return this.processingInstruction(b,J,ee);case S.Dummy:return"";case S.Declaration:return this.declaration(b,J,ee);case S.DocType:return this.docType(b,J,ee);case S.AttributeDeclaration:return this.dtdAttList(b,J,ee);case S.ElementDeclaration:return this.dtdElement(b,J,ee);case S.EntityDeclaration:return this.dtdEntity(b,J,ee);case S.NotationDeclaration:return this.dtdNotation(b,J,ee);default:throw new Error("Unknown XML node type: "+b.constructor.name)}};XMLWriterBase.prototype.processingInstruction=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<?";S.state=ee.InsideTag;te+=b.target;if(b.value){te+=" "+b.value}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+"?>";te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.raw=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J);S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.text=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J);S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.dtdAttList=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ATTLIST";S.state=ee.InsideTag;te+=" "+b.elementName+" "+b.attributeName+" "+b.attributeType;if(b.defaultValueType!=="#DEFAULT"){te+=" "+b.defaultValueType}if(b.defaultValue){te+=' "'+b.defaultValue+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.dtdElement=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ELEMENT";S.state=ee.InsideTag;te+=" "+b.name+" "+b.value;S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.dtdEntity=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ENTITY";S.state=ee.InsideTag;if(b.pe){te+=" %"}te+=" "+b.name;if(b.value){te+=' "'+b.value+'"'}else{if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}if(b.nData){te+=" NDATA "+b.nData}}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.dtdNotation=function(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!NOTATION";S.state=ee.InsideTag;te+=" "+b.name;if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.pubID){te+=' PUBLIC "'+b.pubID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te};XMLWriterBase.prototype.openNode=function(b,S,J){};XMLWriterBase.prototype.closeNode=function(b,S,J){};XMLWriterBase.prototype.openAttribute=function(b,S,J){};XMLWriterBase.prototype.closeAttribute=function(b,S,J){};return XMLWriterBase}()}).call(this)},83131:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue;ue=J(52629),se=ue.assign,ae=ue.isFunction;te=J(99490);re=J(3315);ne=J(11523);oe=J(56939);ie=J(30359);S=J(4128);ee=J(58413);b.exports.create=function(b,S,J,ee){var te,ne;if(b==null){throw new Error("Root element needs a name.")}ee=se({},S,J,ee);te=new re(ee);ne=te.element(b);if(!ee.headless){te.declaration(ee);if(ee.pubID!=null||ee.sysID!=null){te.dtd(ee)}}return ne};b.exports.begin=function(b,S,J){var ee;if(ae(b)){ee=[b,S],S=ee[0],J=ee[1];b={}}if(S){return new ne(b,S,J)}else{return new re(b)}};b.exports.stringWriter=function(b){return new oe(b)};b.exports.streamWriter=function(b,S){return new ie(b,S)};b.exports.implementation=new te;b.exports.nodeType=S;b.exports.writerState=ee}).call(this)},144:function(b){(function(){b.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},7762:function(b){(function(){b.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},20983:function(b){(function(){var S,J,ee,te,re,ne,ie,oe={}.hasOwnProperty;S=function(b,...S){var J,ee,te,ne;if(re(Object.assign)){Object.assign.apply(null,arguments)}else{for(J=0,te=S.length;J<te;J++){ne=S[J];if(ne!=null){for(ee in ne){if(!oe.call(ne,ee))continue;b[ee]=ne[ee]}}}}return b};re=function(b){return!!b&&Object.prototype.toString.call(b)==="[object Function]"};ne=function(b){var S;return!!b&&((S=typeof b)==="function"||S==="object")};ee=function(b){if(re(Array.isArray)){return Array.isArray(b)}else{return Object.prototype.toString.call(b)==="[object Array]"}};te=function(b){var S;if(ee(b)){return!b.length}else{for(S in b){if(!oe.call(b,S))continue;return false}return true}};ie=function(b){var S,J;return ne(b)&&(J=Object.getPrototypeOf(b))&&(S=J.constructor)&&typeof S==="function"&&S instanceof S&&Function.prototype.toString.call(S)===Function.prototype.toString.call(Object)};J=function(b){if(re(b.valueOf)){return b.valueOf()}else{return b}};b.exports.assign=S;b.exports.isFunction=re;b.exports.isObject=ne;b.exports.isArray=ee;b.exports.isEmpty=te;b.exports.isPlainObject=ie;b.exports.getValue=J}).call(this)},80140:function(b){(function(){b.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},1395:function(b,S,J){(function(){var S,ee,te;S=J(7762);te=J(5089);b.exports=ee=function(){class XMLAttribute{constructor(b,J,ee){this.parent=b;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}if(J==null){throw new Error("Missing attribute name. "+this.debugInfo(J))}this.name=this.stringify.name(J);this.value=this.stringify.attValue(ee);this.type=S.Attribute;this.isId=false;this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(b){return this.options.writer.attribute(this,this.options.writer.filterOptions(b))}debugInfo(b){b=b||this.name;if(b==null){return"parent: <"+this.parent.name+">"}else{return"attribute: {"+b+"}, parent: <"+this.parent.name+">"}}isEqualNode(b){if(b.namespaceURI!==this.namespaceURI){return false}if(b.prefix!==this.prefix){return false}if(b.localName!==this.localName){return false}if(b.value!==this.value){return false}return true}}Object.defineProperty(XMLAttribute.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(XMLAttribute.prototype,"ownerElement",{get:function(){return this.parent}});Object.defineProperty(XMLAttribute.prototype,"textContent",{get:function(){return this.value},set:function(b){return this.value=b||""}});Object.defineProperty(XMLAttribute.prototype,"namespaceURI",{get:function(){return""}});Object.defineProperty(XMLAttribute.prototype,"prefix",{get:function(){return""}});Object.defineProperty(XMLAttribute.prototype,"localName",{get:function(){return this.name}});Object.defineProperty(XMLAttribute.prototype,"specified",{get:function(){return true}});return XMLAttribute}.call(this)}).call(this)},45261:function(b,S,J){(function(){var S,ee,te;S=J(7762);te=J(44765);b.exports=ee=class XMLCData extends te{constructor(b,J){super(b);if(J==null){throw new Error("Missing CDATA text. "+this.debugInfo())}this.name="#cdata-section";this.type=S.CData;this.value=this.stringify.cdata(J)}clone(){return Object.create(this)}toString(b){return this.options.writer.cdata(this,this.options.writer.filterOptions(b))}}}).call(this)},44765:function(b,S,J){(function(){var S,ee;ee=J(5089);b.exports=S=function(){class XMLCharacterData extends ee{constructor(b){super(b);this.value=""}clone(){return Object.create(this)}substringData(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendData(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}insertData(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}deleteData(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceData(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(b){if(!super.isEqualNode(b)){return false}if(b.data!==this.data){return false}return true}}Object.defineProperty(XMLCharacterData.prototype,"data",{get:function(){return this.value},set:function(b){return this.value=b||""}});Object.defineProperty(XMLCharacterData.prototype,"length",{get:function(){return this.value.length}});Object.defineProperty(XMLCharacterData.prototype,"textContent",{get:function(){return this.value},set:function(b){return this.value=b||""}});return XMLCharacterData}.call(this)}).call(this)},20360:function(b,S,J){(function(){var S,ee,te;S=J(7762);ee=J(44765);b.exports=te=class XMLComment extends ee{constructor(b,J){super(b);if(J==null){throw new Error("Missing comment text. "+this.debugInfo())}this.name="#comment";this.type=S.Comment;this.value=this.stringify.comment(J)}clone(){return Object.create(this)}toString(b){return this.options.writer.comment(this,this.options.writer.filterOptions(b))}}}).call(this)},25675:function(b,S,J){(function(){var S,ee,te;ee=J(70121);te=J(38207);b.exports=S=function(){class XMLDOMConfiguration{constructor(){var b;this.defaultParams={"canonical-form":false,"cdata-sections":false,comments:false,"datatype-normalization":false,"element-content-whitespace":true,entities:true,"error-handler":new ee,infoset:true,"validate-if-schema":false,namespaces:true,"namespace-declarations":true,"normalize-characters":false,"schema-location":"","schema-type":"","split-cdata-sections":true,validate:false,"well-formed":true};this.params=b=Object.create(this.defaultParams)}getParameter(b){if(this.params.hasOwnProperty(b)){return this.params[b]}else{return null}}canSetParameter(b,S){return true}setParameter(b,S){if(S!=null){return this.params[b]=S}else{return delete this.params[b]}}}Object.defineProperty(XMLDOMConfiguration.prototype,"parameterNames",{get:function(){return new te(Object.keys(this.defaultParams))}});return XMLDOMConfiguration}.call(this)}).call(this)},70121:function(b){(function(){var S;b.exports=S=class XMLDOMErrorHandler{constructor(){}handleError(b){throw new Error(b)}}}).call(this)},32692:function(b){(function(){var S;b.exports=S=class XMLDOMImplementation{hasFeature(b,S){return true}createDocumentType(b,S,J){throw new Error("This DOM method is not implemented.")}createDocument(b,S,J){throw new Error("This DOM method is not implemented.")}createHTMLDocument(b){throw new Error("This DOM method is not implemented.")}getFeature(b,S){throw new Error("This DOM method is not implemented.")}}}).call(this)},38207:function(b){(function(){var S;b.exports=S=function(){class XMLDOMStringList{constructor(b){this.arr=b||[]}item(b){return this.arr[b]||null}contains(b){return this.arr.indexOf(b)!==-1}}Object.defineProperty(XMLDOMStringList.prototype,"length",{get:function(){return this.arr.length}});return XMLDOMStringList}.call(this)}).call(this)},12529:function(b,S,J){(function(){var S,ee,te;te=J(5089);S=J(7762);b.exports=ee=class XMLDTDAttList extends te{constructor(b,J,ee,te,re,ne){super(b);if(J==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(ee==null){throw new Error("Missing DTD attribute name. "+this.debugInfo(J))}if(!te){throw new Error("Missing DTD attribute type. "+this.debugInfo(J))}if(!re){throw new Error("Missing DTD attribute default. "+this.debugInfo(J))}if(re.indexOf("#")!==0){re="#"+re}if(!re.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/)){throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(J))}if(ne&&!re.match(/^(#FIXED|#DEFAULT)$/)){throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(J))}this.elementName=this.stringify.name(J);this.type=S.AttributeDeclaration;this.attributeName=this.stringify.name(ee);this.attributeType=this.stringify.dtdAttType(te);if(ne){this.defaultValue=this.stringify.dtdAttDefault(ne)}this.defaultValueType=re}toString(b){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(b))}}}).call(this)},87486:function(b,S,J){(function(){var S,ee,te;te=J(5089);S=J(7762);b.exports=ee=class XMLDTDElement extends te{constructor(b,J,ee){super(b);if(J==null){throw new Error("Missing DTD element name. "+this.debugInfo())}if(!ee){ee="(#PCDATA)"}if(Array.isArray(ee)){ee="("+ee.join(",")+")"}this.name=this.stringify.name(J);this.type=S.ElementDeclaration;this.value=this.stringify.dtdElementValue(ee)}toString(b){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(b))}}}).call(this)},69252:function(b,S,J){(function(){var S,ee,te,re;({isObject:re}=J(20983));te=J(5089);S=J(7762);b.exports=ee=function(){class XMLDTDEntity extends te{constructor(b,J,ee,te){super(b);if(ee==null){throw new Error("Missing DTD entity name. "+this.debugInfo(ee))}if(te==null){throw new Error("Missing DTD entity value. "+this.debugInfo(ee))}this.pe=!!J;this.name=this.stringify.name(ee);this.type=S.EntityDeclaration;if(!re(te)){this.value=this.stringify.dtdEntityValue(te);this.internal=true}else{if(!te.pubID&&!te.sysID){throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(ee))}if(te.pubID&&!te.sysID){throw new Error("System identifier is required for a public external entity. "+this.debugInfo(ee))}this.internal=false;if(te.pubID!=null){this.pubID=this.stringify.dtdPubID(te.pubID)}if(te.sysID!=null){this.sysID=this.stringify.dtdSysID(te.sysID)}if(te.nData!=null){this.nData=this.stringify.dtdNData(te.nData)}if(this.pe&&this.nData){throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(ee))}}}toString(b){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(b))}}Object.defineProperty(XMLDTDEntity.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDTDEntity.prototype,"systemId",{get:function(){return this.sysID}});Object.defineProperty(XMLDTDEntity.prototype,"notationName",{get:function(){return this.nData||null}});Object.defineProperty(XMLDTDEntity.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(XMLDTDEntity.prototype,"xmlEncoding",{get:function(){return null}});Object.defineProperty(XMLDTDEntity.prototype,"xmlVersion",{get:function(){return null}});return XMLDTDEntity}.call(this)}).call(this)},84848:function(b,S,J){(function(){var S,ee,te;te=J(5089);S=J(7762);b.exports=ee=function(){class XMLDTDNotation extends te{constructor(b,J,ee){super(b);if(J==null){throw new Error("Missing DTD notation name. "+this.debugInfo(J))}if(!ee.pubID&&!ee.sysID){throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(J))}this.name=this.stringify.name(J);this.type=S.NotationDeclaration;if(ee.pubID!=null){this.pubID=this.stringify.dtdPubID(ee.pubID)}if(ee.sysID!=null){this.sysID=this.stringify.dtdSysID(ee.sysID)}}toString(b){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(b))}}Object.defineProperty(XMLDTDNotation.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDTDNotation.prototype,"systemId",{get:function(){return this.sysID}});return XMLDTDNotation}.call(this)}).call(this)},16645:function(b,S,J){(function(){var S,ee,te,re;({isObject:re}=J(20983));te=J(5089);S=J(7762);b.exports=ee=class XMLDeclaration extends te{constructor(b,J,ee,te){super(b);if(re(J)){({version:J,encoding:ee,standalone:te}=J)}if(!J){J="1.0"}this.type=S.Declaration;this.version=this.stringify.xmlVersion(J);if(ee!=null){this.encoding=this.stringify.xmlEncoding(ee)}if(te!=null){this.standalone=this.stringify.xmlStandalone(te)}}toString(b){return this.options.writer.declaration(this,this.options.writer.filterOptions(b))}}}).call(this)},58873:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae;({isObject:ae}=J(20983));se=J(5089);S=J(7762);ee=J(12529);re=J(69252);te=J(87486);ne=J(84848);oe=J(92076);b.exports=ie=function(){class XMLDocType extends se{constructor(b,J,ee){var te,re,ne,ie;super(b);this.type=S.DocType;if(b.children){ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];if(te.type===S.Element){this.name=te.name;break}}}this.documentObject=b;if(ae(J)){({pubID:J,sysID:ee}=J)}if(ee==null){[ee,J]=[J,ee]}if(J!=null){this.pubID=this.stringify.dtdPubID(J)}if(ee!=null){this.sysID=this.stringify.dtdSysID(ee)}}element(b,S){var J;J=new te(this,b,S);this.children.push(J);return this}attList(b,S,J,te,re){var ne;ne=new ee(this,b,S,J,te,re);this.children.push(ne);return this}entity(b,S){var J;J=new re(this,false,b,S);this.children.push(J);return this}pEntity(b,S){var J;J=new re(this,true,b,S);this.children.push(J);return this}notation(b,S){var J;J=new ne(this,b,S);this.children.push(J);return this}toString(b){return this.options.writer.docType(this,this.options.writer.filterOptions(b))}ele(b,S){return this.element(b,S)}att(b,S,J,ee,te){return this.attList(b,S,J,ee,te)}ent(b,S){return this.entity(b,S)}pent(b,S){return this.pEntity(b,S)}not(b,S){return this.notation(b,S)}up(){return this.root()||this.documentObject}isEqualNode(b){if(!super.isEqualNode(b)){return false}if(b.name!==this.name){return false}if(b.publicId!==this.publicId){return false}if(b.systemId!==this.systemId){return false}return true}}Object.defineProperty(XMLDocType.prototype,"entities",{get:function(){var b,J,ee,te,re;te={};re=this.children;for(J=0,ee=re.length;J<ee;J++){b=re[J];if(b.type===S.EntityDeclaration&&!b.pe){te[b.name]=b}}return new oe(te)}});Object.defineProperty(XMLDocType.prototype,"notations",{get:function(){var b,J,ee,te,re;te={};re=this.children;for(J=0,ee=re.length;J<ee;J++){b=re[J];if(b.type===S.NotationDeclaration){te[b.name]=b}}return new oe(te)}});Object.defineProperty(XMLDocType.prototype,"publicId",{get:function(){return this.pubID}});Object.defineProperty(XMLDocType.prototype,"systemId",{get:function(){return this.sysID}});Object.defineProperty(XMLDocType.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});return XMLDocType}.call(this)}).call(this)},31582:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se;({isPlainObject:se}=J(20983));te=J(32692);ee=J(25675);ne=J(5089);S=J(7762);oe=J(90645);ie=J(37834);b.exports=re=function(){class XMLDocument extends ne{constructor(b){super(null);this.name="#document";this.type=S.Document;this.documentURI=null;this.domConfig=new ee;b||(b={});if(!b.writer){b.writer=new ie}this.options=b;this.stringify=new oe(b)}end(b){var S;S={};if(!b){b=this.options.writer}else if(se(b)){S=b;b=this.options.writer}return b.document(this,b.filterOptions(S))}toString(b){return this.options.writer.document(this,this.options.writer.filterOptions(b))}createElement(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createDocumentFragment(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTextNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createComment(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createCDATASection(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createProcessingInstruction(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttribute(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEntityReference(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}importNode(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}createElementNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}createAttributeNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementById(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}adoptNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalizeDocument(){throw new Error("This DOM method is not implemented."+this.debugInfo())}renameNode(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createEvent(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}createRange(){throw new Error("This DOM method is not implemented."+this.debugInfo())}createNodeIterator(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}createTreeWalker(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}}Object.defineProperty(XMLDocument.prototype,"implementation",{value:new te});Object.defineProperty(XMLDocument.prototype,"doctype",{get:function(){var b,J,ee,te;te=this.children;for(J=0,ee=te.length;J<ee;J++){b=te[J];if(b.type===S.DocType){return b}}return null}});Object.defineProperty(XMLDocument.prototype,"documentElement",{get:function(){return this.rootObject||null}});Object.defineProperty(XMLDocument.prototype,"inputEncoding",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"strictErrorChecking",{get:function(){return false}});Object.defineProperty(XMLDocument.prototype,"xmlEncoding",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].encoding}else{return null}}});Object.defineProperty(XMLDocument.prototype,"xmlStandalone",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].standalone==="yes"}else{return false}}});Object.defineProperty(XMLDocument.prototype,"xmlVersion",{get:function(){if(this.children.length!==0&&this.children[0].type===S.Declaration){return this.children[0].version}else{return"1.0"}}});Object.defineProperty(XMLDocument.prototype,"URL",{get:function(){return this.documentURI}});Object.defineProperty(XMLDocument.prototype,"origin",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"compatMode",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"characterSet",{get:function(){return null}});Object.defineProperty(XMLDocument.prototype,"contentType",{get:function(){return null}});return XMLDocument}.call(this)}).call(this)},2871:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge,ye,ve,Te,be,_e,Ee={}.hasOwnProperty;({isObject:be,isFunction:Te,isPlainObject:_e,getValue:ve}=J(20983));S=J(7762);le=J(31582);fe=J(16484);re=J(45261);ne=J(20360);he=J(68732);ye=J(22275);de=J(98947);ue=J(16645);ce=J(58873);ie=J(12529);se=J(69252);oe=J(87486);ae=J(84848);te=J(1395);ge=J(90645);me=J(37834);ee=J(80140);b.exports=pe=class XMLDocumentCB{constructor(b,J,ee){var te;this.name="?xml";this.type=S.Document;b||(b={});te={};if(!b.writer){b.writer=new me}else if(_e(b.writer)){te=b.writer;b.writer=new me}this.options=b;this.writer=b.writer;this.writerOptions=this.writer.filterOptions(te);this.stringify=new ge(b);this.onDataCallback=J||function(){};this.onEndCallback=ee||function(){};this.currentNode=null;this.currentLevel=-1;this.openTags={};this.documentStarted=false;this.documentCompleted=false;this.root=null}createChildNode(b){var J,ee,te,re,ne,ie,oe,se;switch(b.type){case S.CData:this.cdata(b.value);break;case S.Comment:this.comment(b.value);break;case S.Element:te={};oe=b.attribs;for(ee in oe){if(!Ee.call(oe,ee))continue;J=oe[ee];te[ee]=J.value}this.node(b.name,te);break;case S.Dummy:this.dummy();break;case S.Raw:this.raw(b.value);break;case S.Text:this.text(b.value);break;case S.ProcessingInstruction:this.instruction(b.target,b.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+b.constructor.name)}se=b.children;for(ne=0,ie=se.length;ne<ie;ne++){re=se[ne];this.createChildNode(re);if(re.type===S.Element){this.up()}}return this}dummy(){return this}node(b,S,J){if(b==null){throw new Error("Missing node name.")}if(this.root&&this.currentLevel===-1){throw new Error("Document can only have one root node. "+this.debugInfo(b))}this.openCurrent();b=ve(b);if(S==null){S={}}S=ve(S);if(!be(S)){[J,S]=[S,J]}this.currentNode=new fe(this,b,S);this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;if(J!=null){this.text(J)}return this}element(b,J,ee){var te,re,ne,ie,oe,se;if(this.currentNode&&this.currentNode.type===S.DocType){this.dtdElement(...arguments)}else{if(Array.isArray(b)||be(b)||Te(b)){ie=this.options.noValidation;this.options.noValidation=true;se=new le(this.options).element("TEMP_ROOT");se.element(b);this.options.noValidation=ie;oe=se.children;for(re=0,ne=oe.length;re<ne;re++){te=oe[re];this.createChildNode(te);if(te.type===S.Element){this.up()}}}else{this.node(b,J,ee)}}return this}attribute(b,S){var J,ee;if(!this.currentNode||this.currentNode.children){throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(b))}if(b!=null){b=ve(b)}if(be(b)){for(J in b){if(!Ee.call(b,J))continue;ee=b[J];this.attribute(J,ee)}}else{if(Te(S)){S=S.apply()}if(this.options.keepNullAttributes&&S==null){this.currentNode.attribs[b]=new te(this,b,"")}else if(S!=null){this.currentNode.attribs[b]=new te(this,b,S)}}return this}text(b){var S;this.openCurrent();S=new ye(this,b);this.onData(this.writer.text(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}cdata(b){var S;this.openCurrent();S=new re(this,b);this.onData(this.writer.cdata(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}comment(b){var S;this.openCurrent();S=new ne(this,b);this.onData(this.writer.comment(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}raw(b){var S;this.openCurrent();S=new he(this,b);this.onData(this.writer.raw(S,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}instruction(b,S){var J,ee,te,re,ne;this.openCurrent();if(b!=null){b=ve(b)}if(S!=null){S=ve(S)}if(Array.isArray(b)){for(J=0,re=b.length;J<re;J++){ee=b[J];this.instruction(ee)}}else if(be(b)){for(ee in b){if(!Ee.call(b,ee))continue;te=b[ee];this.instruction(ee,te)}}else{if(Te(S)){S=S.apply()}ne=new de(this,b,S);this.onData(this.writer.processingInstruction(ne,this.writerOptions,this.currentLevel+1),this.currentLevel+1)}return this}declaration(b,S,J){var ee;this.openCurrent();if(this.documentStarted){throw new Error("declaration() must be the first node.")}ee=new ue(this,b,S,J);this.onData(this.writer.declaration(ee,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}doctype(b,S,J){this.openCurrent();if(b==null){throw new Error("Missing root node name.")}if(this.root){throw new Error("dtd() must come before the root node.")}this.currentNode=new ce(this,S,J);this.currentNode.rootNodeName=b;this.currentNode.children=false;this.currentLevel++;this.openTags[this.currentLevel]=this.currentNode;return this}dtdElement(b,S){var J;this.openCurrent();J=new oe(this,b,S);this.onData(this.writer.dtdElement(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}attList(b,S,J,ee,te){var re;this.openCurrent();re=new ie(this,b,S,J,ee,te);this.onData(this.writer.dtdAttList(re,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}entity(b,S){var J;this.openCurrent();J=new se(this,false,b,S);this.onData(this.writer.dtdEntity(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}pEntity(b,S){var J;this.openCurrent();J=new se(this,true,b,S);this.onData(this.writer.dtdEntity(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}notation(b,S){var J;this.openCurrent();J=new ae(this,b,S);this.onData(this.writer.dtdNotation(J,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}up(){if(this.currentLevel<0){throw new Error("The document node has no parent.")}if(this.currentNode){if(this.currentNode.children){this.closeNode(this.currentNode)}else{this.openNode(this.currentNode)}this.currentNode=null}else{this.closeNode(this.openTags[this.currentLevel])}delete this.openTags[this.currentLevel];this.currentLevel--;return this}end(){while(this.currentLevel>=0){this.up()}return this.onEnd()}openCurrent(){if(this.currentNode){this.currentNode.children=true;return this.openNode(this.currentNode)}}openNode(b){var J,te,re,ne;if(!b.isOpen){if(!this.root&&this.currentLevel===0&&b.type===S.Element){this.root=b}te="";if(b.type===S.Element){this.writerOptions.state=ee.OpenTag;te=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<"+b.name;ne=b.attribs;for(re in ne){if(!Ee.call(ne,re))continue;J=ne[re];te+=this.writer.attribute(J,this.writerOptions,this.currentLevel)}te+=(b.children?">":"/>")+this.writer.endline(b,this.writerOptions,this.currentLevel);this.writerOptions.state=ee.InsideTag}else{this.writerOptions.state=ee.OpenTag;te=this.writer.indent(b,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+b.rootNodeName;if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}if(b.children){te+=" [";this.writerOptions.state=ee.InsideTag}else{this.writerOptions.state=ee.CloseTag;te+=">"}te+=this.writer.endline(b,this.writerOptions,this.currentLevel)}this.onData(te,this.currentLevel);return b.isOpen=true}}closeNode(b){var J;if(!b.isClosed){J="";this.writerOptions.state=ee.CloseTag;if(b.type===S.Element){J=this.writer.indent(b,this.writerOptions,this.currentLevel)+"</"+b.name+">"+this.writer.endline(b,this.writerOptions,this.currentLevel)}else{J=this.writer.indent(b,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(b,this.writerOptions,this.currentLevel)}this.writerOptions.state=ee.None;this.onData(J,this.currentLevel);return b.isClosed=true}}onData(b,S){this.documentStarted=true;return this.onDataCallback(b,S+1)}onEnd(){this.documentCompleted=true;return this.onEndCallback()}debugInfo(b){if(b==null){return""}else{return"node: <"+b+">"}}ele(){return this.element(...arguments)}nod(b,S,J){return this.node(b,S,J)}txt(b){return this.text(b)}dat(b){return this.cdata(b)}com(b){return this.comment(b)}ins(b,S){return this.instruction(b,S)}dec(b,S,J){return this.declaration(b,S,J)}dtd(b,S,J){return this.doctype(b,S,J)}e(b,S,J){return this.element(b,S,J)}n(b,S,J){return this.node(b,S,J)}t(b){return this.text(b)}d(b){return this.cdata(b)}c(b){return this.comment(b)}r(b){return this.raw(b)}i(b,S){return this.instruction(b,S)}att(){if(this.currentNode&&this.currentNode.type===S.DocType){return this.attList(...arguments)}else{return this.attribute(...arguments)}}a(){if(this.currentNode&&this.currentNode.type===S.DocType){return this.attList(...arguments)}else{return this.attribute(...arguments)}}ent(b,S){return this.entity(b,S)}pent(b,S){return this.pEntity(b,S)}not(b,S){return this.notation(b,S)}}}).call(this)},80706:function(b,S,J){(function(){var S,ee,te;te=J(5089);S=J(7762);b.exports=ee=class XMLDummy extends te{constructor(b){super(b);this.type=S.Dummy}clone(){return Object.create(this)}toString(b){return""}}}).call(this)},16484:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae={}.hasOwnProperty;({isObject:se,isFunction:oe,getValue:ie}=J(20983));ne=J(5089);S=J(7762);ee=J(1395);re=J(92076);b.exports=te=function(){class XMLElement extends ne{constructor(b,J,ee){var te,re,ne,ie;super(b);if(J==null){throw new Error("Missing element name. "+this.debugInfo())}this.name=this.stringify.name(J);this.type=S.Element;this.attribs={};this.schemaTypeInfo=null;if(ee!=null){this.attribute(ee)}if(b.type===S.Document){this.isRoot=true;this.documentObject=b;b.rootObject=this;if(b.children){ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];if(te.type===S.DocType){te.name=this.name;break}}}}}clone(){var b,S,J,ee;J=Object.create(this);if(J.isRoot){J.documentObject=null}J.attribs={};ee=this.attribs;for(S in ee){if(!ae.call(ee,S))continue;b=ee[S];J.attribs[S]=b.clone()}J.children=[];this.children.forEach((function(b){var S;S=b.clone();S.parent=J;return J.children.push(S)}));return J}attribute(b,S){var J,te;if(b!=null){b=ie(b)}if(se(b)){for(J in b){if(!ae.call(b,J))continue;te=b[J];this.attribute(J,te)}}else{if(oe(S)){S=S.apply()}if(this.options.keepNullAttributes&&S==null){this.attribs[b]=new ee(this,b,"")}else if(S!=null){this.attribs[b]=new ee(this,b,S)}}return this}removeAttribute(b){var S,J,ee;if(b==null){throw new Error("Missing attribute name. "+this.debugInfo())}b=ie(b);if(Array.isArray(b)){for(J=0,ee=b.length;J<ee;J++){S=b[J];delete this.attribs[S]}}else{delete this.attribs[b]}return this}toString(b){return this.options.writer.element(this,this.options.writer.filterOptions(b))}att(b,S){return this.attribute(b,S)}a(b,S){return this.attribute(b,S)}getAttribute(b){if(this.attribs.hasOwnProperty(b)){return this.attribs[b].value}else{return null}}setAttribute(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNode(b){if(this.attribs.hasOwnProperty(b)){return this.attribs[b]}else{return null}}setAttributeNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNS(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeAttributeNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getAttributeNodeNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}setAttributeNodeNS(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasAttribute(b){return this.attribs.hasOwnProperty(b)}hasAttributeNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttribute(b,S){if(this.attribs.hasOwnProperty(b)){return this.attribs[b].isId}else{return S}}setIdAttributeNS(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}setIdAttributeNode(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagName(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByTagNameNS(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}getElementsByClassName(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(b){var S,J,ee;if(!super.isEqualNode(b)){return false}if(b.namespaceURI!==this.namespaceURI){return false}if(b.prefix!==this.prefix){return false}if(b.localName!==this.localName){return false}if(b.attribs.length!==this.attribs.length){return false}for(S=J=0,ee=this.attribs.length-1;0<=ee?J<=ee:J>=ee;S=0<=ee?++J:--J){if(!this.attribs[S].isEqualNode(b.attribs[S])){return false}}return true}}Object.defineProperty(XMLElement.prototype,"tagName",{get:function(){return this.name}});Object.defineProperty(XMLElement.prototype,"namespaceURI",{get:function(){return""}});Object.defineProperty(XMLElement.prototype,"prefix",{get:function(){return""}});Object.defineProperty(XMLElement.prototype,"localName",{get:function(){return this.name}});Object.defineProperty(XMLElement.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLElement.prototype,"attributes",{get:function(){if(!this.attributeMap||!this.attributeMap.nodes){this.attributeMap=new re(this.attribs)}return this.attributeMap}});return XMLElement}.call(this)}).call(this)},92076:function(b){(function(){var S;b.exports=S=function(){class XMLNamedNodeMap{constructor(b){this.nodes=b}clone(){return this.nodes=null}getNamedItem(b){return this.nodes[b]}setNamedItem(b){var S;S=this.nodes[b.nodeName];this.nodes[b.nodeName]=b;return S||null}removeNamedItem(b){var S;S=this.nodes[b];delete this.nodes[b];return S||null}item(b){return this.nodes[Object.keys(this.nodes)[b]]||null}getNamedItemNS(b,S){throw new Error("This DOM method is not implemented.")}setNamedItemNS(b){throw new Error("This DOM method is not implemented.")}removeNamedItemNS(b,S){throw new Error("This DOM method is not implemented.")}}Object.defineProperty(XMLNamedNodeMap.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}});return XMLNamedNodeMap}.call(this)}).call(this)},5089:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge,ye={}.hasOwnProperty,ve=[].splice;({isObject:ge,isFunction:me,isEmpty:he,getValue:de}=J(20983));se=null;te=null;re=null;ne=null;ie=null;pe=null;fe=null;le=null;oe=null;ee=null;ce=null;ae=null;S=null;b.exports=ue=function(){class XMLNode{constructor(b){this.parent=b;if(this.parent){this.options=this.parent.options;this.stringify=this.parent.stringify}this.value=null;this.children=[];this.baseURI=null;if(!se){se=J(16484);te=J(45261);re=J(20360);ne=J(16645);ie=J(58873);pe=J(68732);fe=J(22275);le=J(98947);oe=J(80706);ee=J(7762);ce=J(49908);ae=J(92076);S=J(144)}}setParent(b){var S,J,ee,te,re;this.parent=b;if(b){this.options=b.options;this.stringify=b.stringify}te=this.children;re=[];for(J=0,ee=te.length;J<ee;J++){S=te[J];re.push(S.setParent(this))}return re}element(b,S,J){var ee,te,re,ne,ie,oe,se,ae,ue;oe=null;if(S===null&&J==null){[S,J]=[{},null]}if(S==null){S={}}S=de(S);if(!ge(S)){[J,S]=[S,J]}if(b!=null){b=de(b)}if(Array.isArray(b)){for(re=0,se=b.length;re<se;re++){te=b[re];oe=this.element(te)}}else if(me(b)){oe=this.element(b.apply())}else if(ge(b)){for(ie in b){if(!ye.call(b,ie))continue;ue=b[ie];if(me(ue)){ue=ue.apply()}if(!this.options.ignoreDecorators&&this.stringify.convertAttKey&&ie.indexOf(this.stringify.convertAttKey)===0){oe=this.attribute(ie.substr(this.stringify.convertAttKey.length),ue)}else if(!this.options.separateArrayItems&&Array.isArray(ue)&&he(ue)){oe=this.dummy()}else if(ge(ue)&&he(ue)){oe=this.element(ie)}else if(!this.options.keepNullNodes&&ue==null){oe=this.dummy()}else if(!this.options.separateArrayItems&&Array.isArray(ue)){for(ne=0,ae=ue.length;ne<ae;ne++){te=ue[ne];ee={};ee[ie]=te;oe=this.element(ee)}}else if(ge(ue)){if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ie.indexOf(this.stringify.convertTextKey)===0){oe=this.element(ue)}else{oe=this.element(ie);oe.element(ue)}}else{oe=this.element(ie,ue)}}}else if(!this.options.keepNullNodes&&J===null){oe=this.dummy()}else{if(!this.options.ignoreDecorators&&this.stringify.convertTextKey&&b.indexOf(this.stringify.convertTextKey)===0){oe=this.text(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&b.indexOf(this.stringify.convertCDataKey)===0){oe=this.cdata(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&b.indexOf(this.stringify.convertCommentKey)===0){oe=this.comment(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertRawKey&&b.indexOf(this.stringify.convertRawKey)===0){oe=this.raw(J)}else if(!this.options.ignoreDecorators&&this.stringify.convertPIKey&&b.indexOf(this.stringify.convertPIKey)===0){oe=this.instruction(b.substr(this.stringify.convertPIKey.length),J)}else{oe=this.node(b,S,J)}}if(oe==null){throw new Error("Could not create any elements with: "+b+". "+this.debugInfo())}return oe}insertBefore(b,S,J){var ee,te,re,ne,ie;if(b!=null?b.type:void 0){re=b;ne=S;re.setParent(this);if(ne){te=children.indexOf(ne);ie=children.splice(te);children.push(re);Array.prototype.push.apply(children,ie)}else{children.push(re)}return re}else{if(this.isRoot){throw new Error("Cannot insert elements at root level. "+this.debugInfo(b))}te=this.parent.children.indexOf(this);ie=this.parent.children.splice(te);ee=this.parent.element(b,S,J);Array.prototype.push.apply(this.parent.children,ie);return ee}}insertAfter(b,S,J){var ee,te,re;if(this.isRoot){throw new Error("Cannot insert elements at root level. "+this.debugInfo(b))}te=this.parent.children.indexOf(this);re=this.parent.children.splice(te+1);ee=this.parent.element(b,S,J);Array.prototype.push.apply(this.parent.children,re);return ee}remove(){var b,S;if(this.isRoot){throw new Error("Cannot remove the root element. "+this.debugInfo())}b=this.parent.children.indexOf(this);ve.apply(this.parent.children,[b,b-b+1].concat(S=[])),S;return this.parent}node(b,S,J){var ee;if(b!=null){b=de(b)}S||(S={});S=de(S);if(!ge(S)){[J,S]=[S,J]}ee=new se(this,b,S);if(J!=null){ee.text(J)}this.children.push(ee);return ee}text(b){var S;if(ge(b)){this.element(b)}S=new fe(this,b);this.children.push(S);return this}cdata(b){var S;S=new te(this,b);this.children.push(S);return this}comment(b){var S;S=new re(this,b);this.children.push(S);return this}commentBefore(b){var S,J,ee;J=this.parent.children.indexOf(this);ee=this.parent.children.splice(J);S=this.parent.comment(b);Array.prototype.push.apply(this.parent.children,ee);return this}commentAfter(b){var S,J,ee;J=this.parent.children.indexOf(this);ee=this.parent.children.splice(J+1);S=this.parent.comment(b);Array.prototype.push.apply(this.parent.children,ee);return this}raw(b){var S;S=new pe(this,b);this.children.push(S);return this}dummy(){var b;b=new oe(this);return b}instruction(b,S){var J,ee,te,re,ne;if(b!=null){b=de(b)}if(S!=null){S=de(S)}if(Array.isArray(b)){for(re=0,ne=b.length;re<ne;re++){J=b[re];this.instruction(J)}}else if(ge(b)){for(J in b){if(!ye.call(b,J))continue;ee=b[J];this.instruction(J,ee)}}else{if(me(S)){S=S.apply()}te=new le(this,b,S);this.children.push(te)}return this}instructionBefore(b,S){var J,ee,te;ee=this.parent.children.indexOf(this);te=this.parent.children.splice(ee);J=this.parent.instruction(b,S);Array.prototype.push.apply(this.parent.children,te);return this}instructionAfter(b,S){var J,ee,te;ee=this.parent.children.indexOf(this);te=this.parent.children.splice(ee+1);J=this.parent.instruction(b,S);Array.prototype.push.apply(this.parent.children,te);return this}declaration(b,S,J){var te,re;te=this.document();re=new ne(te,b,S,J);if(te.children.length===0){te.children.unshift(re)}else if(te.children[0].type===ee.Declaration){te.children[0]=re}else{te.children.unshift(re)}return te.root()||te}dtd(b,S){var J,te,re,ne,oe,se,ae,ue,ce,le;te=this.document();re=new ie(te,b,S);ce=te.children;for(ne=oe=0,ae=ce.length;oe<ae;ne=++oe){J=ce[ne];if(J.type===ee.DocType){te.children[ne]=re;return re}}le=te.children;for(ne=se=0,ue=le.length;se<ue;ne=++se){J=le[ne];if(J.isRoot){te.children.splice(ne,0,re);return re}}te.children.push(re);return re}up(){if(this.isRoot){throw new Error("The root node has no parent. Use doc() if you need to get the document object.")}return this.parent}root(){var b;b=this;while(b){if(b.type===ee.Document){return b.rootObject}else if(b.isRoot){return b}else{b=b.parent}}}document(){var b;b=this;while(b){if(b.type===ee.Document){return b}else{b=b.parent}}}end(b){return this.document().end(b)}prev(){var b;b=this.parent.children.indexOf(this);if(b<1){throw new Error("Already at the first node. "+this.debugInfo())}return this.parent.children[b-1]}next(){var b;b=this.parent.children.indexOf(this);if(b===-1||b===this.parent.children.length-1){throw new Error("Already at the last node. "+this.debugInfo())}return this.parent.children[b+1]}importDocument(b){var S,J,te,re,ne;J=b.root().clone();J.parent=this;J.isRoot=false;this.children.push(J);if(this.type===ee.Document){J.isRoot=true;J.documentObject=this;this.rootObject=J;if(this.children){ne=this.children;for(te=0,re=ne.length;te<re;te++){S=ne[te];if(S.type===ee.DocType){S.name=J.name;break}}}}return this}debugInfo(b){var S,J;b=b||this.name;if(b==null&&!((S=this.parent)!=null?S.name:void 0)){return""}else if(b==null){return"parent: <"+this.parent.name+">"}else if(!((J=this.parent)!=null?J.name:void 0)){return"node: <"+b+">"}else{return"node: <"+b+">, parent: <"+this.parent.name+">"}}ele(b,S,J){return this.element(b,S,J)}nod(b,S,J){return this.node(b,S,J)}txt(b){return this.text(b)}dat(b){return this.cdata(b)}com(b){return this.comment(b)}ins(b,S){return this.instruction(b,S)}doc(){return this.document()}dec(b,S,J){return this.declaration(b,S,J)}e(b,S,J){return this.element(b,S,J)}n(b,S,J){return this.node(b,S,J)}t(b){return this.text(b)}d(b){return this.cdata(b)}c(b){return this.comment(b)}r(b){return this.raw(b)}i(b,S){return this.instruction(b,S)}u(){return this.up()}importXMLBuilder(b){return this.importDocument(b)}attribute(b,S){throw new Error("attribute() applies to element nodes only.")}att(b,S){return this.attribute(b,S)}a(b,S){return this.attribute(b,S)}removeAttribute(b){throw new Error("attribute() applies to element nodes only.")}replaceChild(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}removeChild(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}appendChild(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}normalize(){throw new Error("This DOM method is not implemented."+this.debugInfo())}isSupported(b,S){return true}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(b){var J,ee;J=this;if(J===b){return 0}else if(this.document()!==b.document()){ee=S.Disconnected|S.ImplementationSpecific;if(Math.random()<.5){ee|=S.Preceding}else{ee|=S.Following}return ee}else if(J.isAncestor(b)){return S.Contains|S.Preceding}else if(J.isDescendant(b)){return S.Contains|S.Following}else if(J.isPreceding(b)){return S.Preceding}else{return S.Following}}isSameNode(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupPrefix(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}isDefaultNamespace(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}lookupNamespaceURI(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}isEqualNode(b){var S,J,ee;if(b.nodeType!==this.nodeType){return false}if(b.children.length!==this.children.length){return false}for(S=J=0,ee=this.children.length-1;0<=ee?J<=ee:J>=ee;S=0<=ee?++J:--J){if(!this.children[S].isEqualNode(b.children[S])){return false}}return true}getFeature(b,S){throw new Error("This DOM method is not implemented."+this.debugInfo())}setUserData(b,S,J){throw new Error("This DOM method is not implemented."+this.debugInfo())}getUserData(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}contains(b){if(!b){return false}return b===this||this.isDescendant(b)}isDescendant(b){var S,J,ee,te,re;re=this.children;for(ee=0,te=re.length;ee<te;ee++){S=re[ee];if(b===S){return true}J=S.isDescendant(b);if(J){return true}}return false}isAncestor(b){return b.isDescendant(this)}isPreceding(b){var S,J;S=this.treePosition(b);J=this.treePosition(this);if(S===-1||J===-1){return false}else{return S<J}}isFollowing(b){var S,J;S=this.treePosition(b);J=this.treePosition(this);if(S===-1||J===-1){return false}else{return S>J}}treePosition(b){var S,J;J=0;S=false;this.foreachTreeNode(this.document(),(function(ee){J++;if(!S&&ee===b){return S=true}}));if(S){return J}else{return-1}}foreachTreeNode(b,S){var J,ee,te,re,ne;b||(b=this.document());re=b.children;for(ee=0,te=re.length;ee<te;ee++){J=re[ee];if(ne=S(J)){return ne}else{ne=this.foreachTreeNode(J,S);if(ne){return ne}}}}}Object.defineProperty(XMLNode.prototype,"nodeName",{get:function(){return this.name}});Object.defineProperty(XMLNode.prototype,"nodeType",{get:function(){return this.type}});Object.defineProperty(XMLNode.prototype,"nodeValue",{get:function(){return this.value}});Object.defineProperty(XMLNode.prototype,"parentNode",{get:function(){return this.parent}});Object.defineProperty(XMLNode.prototype,"childNodes",{get:function(){if(!this.childNodeList||!this.childNodeList.nodes){this.childNodeList=new ce(this.children)}return this.childNodeList}});Object.defineProperty(XMLNode.prototype,"firstChild",{get:function(){return this.children[0]||null}});Object.defineProperty(XMLNode.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}});Object.defineProperty(XMLNode.prototype,"previousSibling",{get:function(){var b;b=this.parent.children.indexOf(this);return this.parent.children[b-1]||null}});Object.defineProperty(XMLNode.prototype,"nextSibling",{get:function(){var b;b=this.parent.children.indexOf(this);return this.parent.children[b+1]||null}});Object.defineProperty(XMLNode.prototype,"ownerDocument",{get:function(){return this.document()||null}});Object.defineProperty(XMLNode.prototype,"textContent",{get:function(){var b,S,J,te,re;if(this.nodeType===ee.Element||this.nodeType===ee.DocumentFragment){re="";te=this.children;for(S=0,J=te.length;S<J;S++){b=te[S];if(b.textContent){re+=b.textContent}}return re}else{return null}},set:function(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}});return XMLNode}.call(this)}).call(this)},49908:function(b){(function(){var S;b.exports=S=function(){class XMLNodeList{constructor(b){this.nodes=b}clone(){return this.nodes=null}item(b){return this.nodes[b]||null}}Object.defineProperty(XMLNodeList.prototype,"length",{get:function(){return this.nodes.length||0}});return XMLNodeList}.call(this)}).call(this)},98947:function(b,S,J){(function(){var S,ee,te;S=J(7762);ee=J(44765);b.exports=te=class XMLProcessingInstruction extends ee{constructor(b,J,ee){super(b);if(J==null){throw new Error("Missing instruction target. "+this.debugInfo())}this.type=S.ProcessingInstruction;this.target=this.stringify.insTarget(J);this.name=this.target;if(ee){this.value=this.stringify.insValue(ee)}}clone(){return Object.create(this)}toString(b){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(b))}isEqualNode(b){if(!super.isEqualNode(b)){return false}if(b.target!==this.target){return false}return true}}}).call(this)},68732:function(b,S,J){(function(){var S,ee,te;S=J(7762);ee=J(5089);b.exports=te=class XMLRaw extends ee{constructor(b,J){super(b);if(J==null){throw new Error("Missing raw text. "+this.debugInfo())}this.type=S.Raw;this.value=this.stringify.raw(J)}clone(){return Object.create(this)}toString(b){return this.options.writer.raw(this,this.options.writer.filterOptions(b))}}}).call(this)},55922:function(b,S,J){(function(){var S,ee,te,re,ne={}.hasOwnProperty;S=J(7762);re=J(16670);ee=J(80140);b.exports=te=class XMLStreamWriter extends re{constructor(b,S){super(S);this.stream=b}endline(b,S,J){if(b.isLastRootNode&&S.state===ee.CloseTag){return""}else{return super.endline(b,S,J)}}document(b,S){var J,ee,te,re,ne,ie,oe,se,ae;oe=b.children;for(ee=te=0,ne=oe.length;te<ne;ee=++te){J=oe[ee];J.isLastRootNode=ee===b.children.length-1}S=this.filterOptions(S);se=b.children;ae=[];for(re=0,ie=se.length;re<ie;re++){J=se[re];ae.push(this.writeChildNode(J,S,0))}return ae}cdata(b,S,J){return this.stream.write(super.cdata(b,S,J))}comment(b,S,J){return this.stream.write(super.comment(b,S,J))}declaration(b,S,J){return this.stream.write(super.declaration(b,S,J))}docType(b,S,J){var te,re,ne,ie;J||(J=0);this.openNode(b,S,J);S.state=ee.OpenTag;this.stream.write(this.indent(b,S,J));this.stream.write("<!DOCTYPE "+b.root().name);if(b.pubID&&b.sysID){this.stream.write(' PUBLIC "'+b.pubID+'" "'+b.sysID+'"')}else if(b.sysID){this.stream.write(' SYSTEM "'+b.sysID+'"')}if(b.children.length>0){this.stream.write(" [");this.stream.write(this.endline(b,S,J));S.state=ee.InsideTag;ie=b.children;for(re=0,ne=ie.length;re<ne;re++){te=ie[re];this.writeChildNode(te,S,J+1)}S.state=ee.CloseTag;this.stream.write("]")}S.state=ee.CloseTag;this.stream.write(S.spaceBeforeSlash+">");this.stream.write(this.endline(b,S,J));S.state=ee.None;return this.closeNode(b,S,J)}element(b,J,te){var re,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge,ye,ve;te||(te=0);this.openNode(b,J,te);J.state=ee.OpenTag;de=this.indent(b,J,te)+"<"+b.name;if(J.pretty&&J.width>0){ce=de.length;me=b.attribs;for(pe in me){if(!ne.call(me,pe))continue;re=me[pe];he=this.attribute(re,J,te);ie=he.length;if(ce+ie>J.width){ve=this.indent(b,J,te+1)+he;de+=this.endline(b,J,te)+ve;ce=ve.length}else{ve=" "+he;de+=ve;ce+=ve.length}}}else{ge=b.attribs;for(pe in ge){if(!ne.call(ge,pe))continue;re=ge[pe];de+=this.attribute(re,J,te)}}this.stream.write(de);se=b.children.length;ae=se===0?null:b.children[0];if(se===0||b.children.every((function(b){return(b.type===S.Text||b.type===S.Raw)&&b.value===""}))){if(J.allowEmpty){this.stream.write(">");J.state=ee.CloseTag;this.stream.write("</"+b.name+">")}else{J.state=ee.CloseTag;this.stream.write(J.spaceBeforeSlash+"/>")}}else if(J.pretty&&se===1&&(ae.type===S.Text||ae.type===S.Raw)&&ae.value!=null){this.stream.write(">");J.state=ee.InsideTag;J.suppressPrettyCount++;fe=true;this.writeChildNode(ae,J,te+1);J.suppressPrettyCount--;fe=false;J.state=ee.CloseTag;this.stream.write("</"+b.name+">")}else{this.stream.write(">"+this.endline(b,J,te));J.state=ee.InsideTag;ye=b.children;for(ue=0,le=ye.length;ue<le;ue++){oe=ye[ue];this.writeChildNode(oe,J,te+1)}J.state=ee.CloseTag;this.stream.write(this.indent(b,J,te)+"</"+b.name+">")}this.stream.write(this.endline(b,J,te));J.state=ee.None;return this.closeNode(b,J,te)}processingInstruction(b,S,J){return this.stream.write(super.processingInstruction(b,S,J))}raw(b,S,J){return this.stream.write(super.raw(b,S,J))}text(b,S,J){return this.stream.write(super.text(b,S,J))}dtdAttList(b,S,J){return this.stream.write(super.dtdAttList(b,S,J))}dtdElement(b,S,J){return this.stream.write(super.dtdElement(b,S,J))}dtdEntity(b,S,J){return this.stream.write(super.dtdEntity(b,S,J))}dtdNotation(b,S,J){return this.stream.write(super.dtdNotation(b,S,J))}}}).call(this)},37834:function(b,S,J){(function(){var S,ee;ee=J(16670);b.exports=S=class XMLStringWriter extends ee{constructor(b){super(b)}document(b,S){var J,ee,te,re,ne;S=this.filterOptions(S);re="";ne=b.children;for(ee=0,te=ne.length;ee<te;ee++){J=ne[ee];re+=this.writeChildNode(J,S,0)}if(S.pretty&&re.slice(-S.newline.length)===S.newline){re=re.slice(0,-S.newline.length)}return re}}}).call(this)},90645:function(b){(function(){var S,J={}.hasOwnProperty;b.exports=S=function(){class XMLStringifier{constructor(b){var S,ee,te;this.assertLegalChar=this.assertLegalChar.bind(this);this.assertLegalName=this.assertLegalName.bind(this);b||(b={});this.options=b;if(!this.options.version){this.options.version="1.0"}ee=b.stringify||{};for(S in ee){if(!J.call(ee,S))continue;te=ee[S];this[S]=te}}name(b){if(this.options.noValidation){return b}return this.assertLegalName(""+b||"")}text(b){if(this.options.noValidation){return b}return this.assertLegalChar(this.textEscape(""+b||""))}cdata(b){if(this.options.noValidation){return b}b=""+b||"";b=b.replace("]]>","]]]]><![CDATA[>");return this.assertLegalChar(b)}comment(b){if(this.options.noValidation){return b}b=""+b||"";if(b.match(/--/)){throw new Error("Comment text cannot contain double-hypen: "+b)}return this.assertLegalChar(b)}raw(b){if(this.options.noValidation){return b}return""+b||""}attValue(b){if(this.options.noValidation){return b}return this.assertLegalChar(this.attEscape(b=""+b||""))}insTarget(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}insValue(b){if(this.options.noValidation){return b}b=""+b||"";if(b.match(/\?>/)){throw new Error("Invalid processing instruction value: "+b)}return this.assertLegalChar(b)}xmlVersion(b){if(this.options.noValidation){return b}b=""+b||"";if(!b.match(/1\.[0-9]+/)){throw new Error("Invalid version number: "+b)}return b}xmlEncoding(b){if(this.options.noValidation){return b}b=""+b||"";if(!b.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/)){throw new Error("Invalid encoding: "+b)}return this.assertLegalChar(b)}xmlStandalone(b){if(this.options.noValidation){return b}if(b){return"yes"}else{return"no"}}dtdPubID(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdSysID(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdElementValue(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdAttType(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdAttDefault(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdEntityValue(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}dtdNData(b){if(this.options.noValidation){return b}return this.assertLegalChar(""+b||"")}assertLegalChar(b){var S,J;if(this.options.noValidation){return b}S="";if(this.options.version==="1.0"){S=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(J=b.match(S)){throw new Error(`Invalid character in string: ${b} at index ${J.index}`)}}else if(this.options.version==="1.1"){S=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;if(J=b.match(S)){throw new Error(`Invalid character in string: ${b} at index ${J.index}`)}}return b}assertLegalName(b){var S;if(this.options.noValidation){return b}this.assertLegalChar(b);S=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/;if(!b.match(S)){throw new Error("Invalid character in name")}return b}textEscape(b){var S;if(this.options.noValidation){return b}S=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return b.replace(S,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")}attEscape(b){var S;if(this.options.noValidation){return b}S=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g;return b.replace(S,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")}}XMLStringifier.prototype.convertAttKey="@";XMLStringifier.prototype.convertPIKey="?";XMLStringifier.prototype.convertTextKey="#text";XMLStringifier.prototype.convertCDataKey="#cdata";XMLStringifier.prototype.convertCommentKey="#comment";XMLStringifier.prototype.convertRawKey="#raw";return XMLStringifier}.call(this)}).call(this)},22275:function(b,S,J){(function(){var S,ee,te;S=J(7762);ee=J(44765);b.exports=te=function(){class XMLText extends ee{constructor(b,J){super(b);if(J==null){throw new Error("Missing element text. "+this.debugInfo())}this.name="#text";this.type=S.Text;this.value=this.stringify.text(J)}clone(){return Object.create(this)}toString(b){return this.options.writer.text(this,this.options.writer.filterOptions(b))}splitText(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}replaceWholeText(b){throw new Error("This DOM method is not implemented."+this.debugInfo())}}Object.defineProperty(XMLText.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}});Object.defineProperty(XMLText.prototype,"wholeText",{get:function(){var b,S,J;J="";S=this.previousSibling;while(S){J=S.data+J;S=S.previousSibling}J+=this.data;b=this.nextSibling;while(b){J=J+b.data;b=b.nextSibling}return J}});return XMLText}.call(this)}).call(this)},16670:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ge={}.hasOwnProperty;({assign:me}=J(20983));S=J(7762);ae=J(16645);ue=J(58873);te=J(45261);re=J(20360);le=J(16484);fe=J(68732);de=J(22275);pe=J(98947);ce=J(80706);ne=J(12529);ie=J(87486);oe=J(69252);se=J(84848);ee=J(80140);b.exports=he=class XMLWriterBase{constructor(b){var S,J,ee;b||(b={});this.options=b;J=b.writer||{};for(S in J){if(!ge.call(J,S))continue;ee=J[S];this["_"+S]=this[S];this[S]=ee}}filterOptions(b){var S,J,te,re,ne,ie,oe,se,ae;b||(b={});b=me({},this.options,b);S={writer:this};S.pretty=b.pretty||false;S.allowEmpty=b.allowEmpty||false;S.indent=(J=b.indent)!=null?J:" ";S.newline=(te=b.newline)!=null?te:"\n";S.offset=(re=b.offset)!=null?re:0;S.width=(ne=b.width)!=null?ne:0;S.dontPrettyTextNodes=(ie=(oe=b.dontPrettyTextNodes)!=null?oe:b.dontprettytextnodes)!=null?ie:0;S.spaceBeforeSlash=(se=(ae=b.spaceBeforeSlash)!=null?ae:b.spacebeforeslash)!=null?se:"";if(S.spaceBeforeSlash===true){S.spaceBeforeSlash=" "}S.suppressPrettyCount=0;S.user={};S.state=ee.None;return S}indent(b,S,J){var ee;if(!S.pretty||S.suppressPrettyCount){return""}else if(S.pretty){ee=(J||0)+S.offset+1;if(ee>0){return new Array(ee).join(S.indent)}}return""}endline(b,S,J){if(!S.pretty||S.suppressPrettyCount){return""}else{return S.newline}}attribute(b,S,J){var ee;this.openAttribute(b,S,J);if(S.pretty&&S.width>0){ee=b.name+'="'+b.value+'"'}else{ee=" "+b.name+'="'+b.value+'"'}this.closeAttribute(b,S,J);return ee}cdata(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<![CDATA[";S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+="]]>"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}comment(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"\x3c!-- ";S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=" --\x3e"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}declaration(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<?xml";S.state=ee.InsideTag;te+=' version="'+b.version+'"';if(b.encoding!=null){te+=' encoding="'+b.encoding+'"'}if(b.standalone!=null){te+=' standalone="'+b.standalone+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+"?>";te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}docType(b,S,J){var te,re,ne,ie,oe;J||(J=0);this.openNode(b,S,J);S.state=ee.OpenTag;ie=this.indent(b,S,J);ie+="<!DOCTYPE "+b.root().name;if(b.pubID&&b.sysID){ie+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){ie+=' SYSTEM "'+b.sysID+'"'}if(b.children.length>0){ie+=" [";ie+=this.endline(b,S,J);S.state=ee.InsideTag;oe=b.children;for(re=0,ne=oe.length;re<ne;re++){te=oe[re];ie+=this.writeChildNode(te,S,J+1)}S.state=ee.CloseTag;ie+="]"}S.state=ee.CloseTag;ie+=S.spaceBeforeSlash+">";ie+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return ie}element(b,J,te){var re,ne,ie,oe,se,ae,ue,ce,le,pe,fe,de,he,me,ye,ve,Te,be,_e;te||(te=0);de=false;this.openNode(b,J,te);J.state=ee.OpenTag;he=this.indent(b,J,te)+"<"+b.name;if(J.pretty&&J.width>0){ce=he.length;ye=b.attribs;for(fe in ye){if(!ge.call(ye,fe))continue;re=ye[fe];me=this.attribute(re,J,te);ne=me.length;if(ce+ne>J.width){_e=this.indent(b,J,te+1)+me;he+=this.endline(b,J,te)+_e;ce=_e.length}else{_e=" "+me;he+=_e;ce+=_e.length}}}else{ve=b.attribs;for(fe in ve){if(!ge.call(ve,fe))continue;re=ve[fe];he+=this.attribute(re,J,te)}}oe=b.children.length;se=oe===0?null:b.children[0];if(oe===0||b.children.every((function(b){return(b.type===S.Text||b.type===S.Raw)&&b.value===""}))){if(J.allowEmpty){he+=">";J.state=ee.CloseTag;he+="</"+b.name+">"+this.endline(b,J,te)}else{J.state=ee.CloseTag;he+=J.spaceBeforeSlash+"/>"+this.endline(b,J,te)}}else if(J.pretty&&oe===1&&(se.type===S.Text||se.type===S.Raw)&&se.value!=null){he+=">";J.state=ee.InsideTag;J.suppressPrettyCount++;de=true;he+=this.writeChildNode(se,J,te+1);J.suppressPrettyCount--;de=false;J.state=ee.CloseTag;he+="</"+b.name+">"+this.endline(b,J,te)}else{if(J.dontPrettyTextNodes){Te=b.children;for(ae=0,le=Te.length;ae<le;ae++){ie=Te[ae];if((ie.type===S.Text||ie.type===S.Raw)&&ie.value!=null){J.suppressPrettyCount++;de=true;break}}}he+=">"+this.endline(b,J,te);J.state=ee.InsideTag;be=b.children;for(ue=0,pe=be.length;ue<pe;ue++){ie=be[ue];he+=this.writeChildNode(ie,J,te+1)}J.state=ee.CloseTag;he+=this.indent(b,J,te)+"</"+b.name+">";if(de){J.suppressPrettyCount--}he+=this.endline(b,J,te);J.state=ee.None}this.closeNode(b,J,te);return he}writeChildNode(b,J,ee){switch(b.type){case S.CData:return this.cdata(b,J,ee);case S.Comment:return this.comment(b,J,ee);case S.Element:return this.element(b,J,ee);case S.Raw:return this.raw(b,J,ee);case S.Text:return this.text(b,J,ee);case S.ProcessingInstruction:return this.processingInstruction(b,J,ee);case S.Dummy:return"";case S.Declaration:return this.declaration(b,J,ee);case S.DocType:return this.docType(b,J,ee);case S.AttributeDeclaration:return this.dtdAttList(b,J,ee);case S.ElementDeclaration:return this.dtdElement(b,J,ee);case S.EntityDeclaration:return this.dtdEntity(b,J,ee);case S.NotationDeclaration:return this.dtdNotation(b,J,ee);default:throw new Error("Unknown XML node type: "+b.constructor.name)}}processingInstruction(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<?";S.state=ee.InsideTag;te+=b.target;if(b.value){te+=" "+b.value}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+"?>";te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}raw(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J);S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}text(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J);S.state=ee.InsideTag;te+=b.value;S.state=ee.CloseTag;te+=this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}dtdAttList(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ATTLIST";S.state=ee.InsideTag;te+=" "+b.elementName+" "+b.attributeName+" "+b.attributeType;if(b.defaultValueType!=="#DEFAULT"){te+=" "+b.defaultValueType}if(b.defaultValue){te+=' "'+b.defaultValue+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}dtdElement(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ELEMENT";S.state=ee.InsideTag;te+=" "+b.name+" "+b.value;S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}dtdEntity(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!ENTITY";S.state=ee.InsideTag;if(b.pe){te+=" %"}te+=" "+b.name;if(b.value){te+=' "'+b.value+'"'}else{if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}if(b.nData){te+=" NDATA "+b.nData}}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}dtdNotation(b,S,J){var te;this.openNode(b,S,J);S.state=ee.OpenTag;te=this.indent(b,S,J)+"<!NOTATION";S.state=ee.InsideTag;te+=" "+b.name;if(b.pubID&&b.sysID){te+=' PUBLIC "'+b.pubID+'" "'+b.sysID+'"'}else if(b.pubID){te+=' PUBLIC "'+b.pubID+'"'}else if(b.sysID){te+=' SYSTEM "'+b.sysID+'"'}S.state=ee.CloseTag;te+=S.spaceBeforeSlash+">"+this.endline(b,S,J);S.state=ee.None;this.closeNode(b,S,J);return te}openNode(b,S,J){}closeNode(b,S,J){}openAttribute(b,S,J){}closeAttribute(b,S,J){}}}).call(this)},65769:function(b,S,J){(function(){var S,ee,te,re,ne,ie,oe,se,ae;({assign:se,isFunction:ae}=J(20983));te=J(32692);re=J(31582);ne=J(2871);oe=J(37834);ie=J(55922);S=J(7762);ee=J(80140);b.exports.create=function(b,S,J,ee){var te,ne;if(b==null){throw new Error("Root element needs a name.")}ee=se({},S,J,ee);te=new re(ee);ne=te.element(b);if(!ee.headless){te.declaration(ee);if(ee.pubID!=null||ee.sysID!=null){te.dtd(ee)}}return ne};b.exports.begin=function(b,S,J){if(ae(b)){[S,J]=[b,S];b={}}if(S){return new ne(b,S,J)}else{return new re(b)}};b.exports.stringWriter=function(b){return new oe(b)};b.exports.streamWriter=function(b,S){return new ie(b,S)};b.exports.implementation=new te;b.exports.nodeType=S;b.exports.writerState=ee}).call(this)},61389:b=>{"use strict";b.exports=function(b){b.prototype[Symbol.iterator]=function*(){for(let b=this.head;b;b=b.next){yield b.value}}}},4461:(b,S,J)=>{"use strict";b.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(b){var S=this;if(!(S instanceof Yallist)){S=new Yallist}S.tail=null;S.head=null;S.length=0;if(b&&typeof b.forEach==="function"){b.forEach((function(b){S.push(b)}))}else if(arguments.length>0){for(var J=0,ee=arguments.length;J<ee;J++){S.push(arguments[J])}}return S}Yallist.prototype.removeNode=function(b){if(b.list!==this){throw new Error("removing node which does not belong to this list")}var S=b.next;var J=b.prev;if(S){S.prev=J}if(J){J.next=S}if(b===this.head){this.head=S}if(b===this.tail){this.tail=J}b.list.length--;b.next=null;b.prev=null;b.list=null;return S};Yallist.prototype.unshiftNode=function(b){if(b===this.head){return}if(b.list){b.list.removeNode(b)}var S=this.head;b.list=this;b.next=S;if(S){S.prev=b}this.head=b;if(!this.tail){this.tail=b}this.length++};Yallist.prototype.pushNode=function(b){if(b===this.tail){return}if(b.list){b.list.removeNode(b)}var S=this.tail;b.list=this;b.prev=S;if(S){S.next=b}this.tail=b;if(!this.head){this.head=b}this.length++};Yallist.prototype.push=function(){for(var b=0,S=arguments.length;b<S;b++){push(this,arguments[b])}return this.length};Yallist.prototype.unshift=function(){for(var b=0,S=arguments.length;b<S;b++){unshift(this,arguments[b])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var b=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return b};Yallist.prototype.shift=function(){if(!this.head){return undefined}var b=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return b};Yallist.prototype.forEach=function(b,S){S=S||this;for(var J=this.head,ee=0;J!==null;ee++){b.call(S,J.value,ee,this);J=J.next}};Yallist.prototype.forEachReverse=function(b,S){S=S||this;for(var J=this.tail,ee=this.length-1;J!==null;ee--){b.call(S,J.value,ee,this);J=J.prev}};Yallist.prototype.get=function(b){for(var S=0,J=this.head;J!==null&&S<b;S++){J=J.next}if(S===b&&J!==null){return J.value}};Yallist.prototype.getReverse=function(b){for(var S=0,J=this.tail;J!==null&&S<b;S++){J=J.prev}if(S===b&&J!==null){return J.value}};Yallist.prototype.map=function(b,S){S=S||this;var J=new Yallist;for(var ee=this.head;ee!==null;){J.push(b.call(S,ee.value,this));ee=ee.next}return J};Yallist.prototype.mapReverse=function(b,S){S=S||this;var J=new Yallist;for(var ee=this.tail;ee!==null;){J.push(b.call(S,ee.value,this));ee=ee.prev}return J};Yallist.prototype.reduce=function(b,S){var J;var ee=this.head;if(arguments.length>1){J=S}else if(this.head){ee=this.head.next;J=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var te=0;ee!==null;te++){J=b(J,ee.value,te);ee=ee.next}return J};Yallist.prototype.reduceReverse=function(b,S){var J;var ee=this.tail;if(arguments.length>1){J=S}else if(this.tail){ee=this.tail.prev;J=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var te=this.length-1;ee!==null;te--){J=b(J,ee.value,te);ee=ee.prev}return J};Yallist.prototype.toArray=function(){var b=new Array(this.length);for(var S=0,J=this.head;J!==null;S++){b[S]=J.value;J=J.next}return b};Yallist.prototype.toArrayReverse=function(){var b=new Array(this.length);for(var S=0,J=this.tail;J!==null;S++){b[S]=J.value;J=J.prev}return b};Yallist.prototype.slice=function(b,S){S=S||this.length;if(S<0){S+=this.length}b=b||0;if(b<0){b+=this.length}var J=new Yallist;if(S<b||S<0){return J}if(b<0){b=0}if(S>this.length){S=this.length}for(var ee=0,te=this.head;te!==null&&ee<b;ee++){te=te.next}for(;te!==null&&ee<S;ee++,te=te.next){J.push(te.value)}return J};Yallist.prototype.sliceReverse=function(b,S){S=S||this.length;if(S<0){S+=this.length}b=b||0;if(b<0){b+=this.length}var J=new Yallist;if(S<b||S<0){return J}if(b<0){b=0}if(S>this.length){S=this.length}for(var ee=this.length,te=this.tail;te!==null&&ee>S;ee--){te=te.prev}for(;te!==null&&ee>b;ee--,te=te.prev){J.push(te.value)}return J};Yallist.prototype.splice=function(b,S,...J){if(b>this.length){b=this.length-1}if(b<0){b=this.length+b}for(var ee=0,te=this.head;te!==null&&ee<b;ee++){te=te.next}var re=[];for(var ee=0;te&&ee<S;ee++){re.push(te.value);te=this.removeNode(te)}if(te===null){te=this.tail}if(te!==this.head&&te!==this.tail){te=te.prev}for(var ee=0;ee<J.length;ee++){te=insert(this,te,J[ee])}return re};Yallist.prototype.reverse=function(){var b=this.head;var S=this.tail;for(var J=b;J!==null;J=J.prev){var ee=J.prev;J.prev=J.next;J.next=ee}this.head=S;this.tail=b;return this};function insert(b,S,J){var ee=S===b.head?new Node(J,null,S,b):new Node(J,S,S.next,b);if(ee.next===null){b.tail=ee}if(ee.prev===null){b.head=ee}b.length++;return ee}function push(b,S){b.tail=new Node(S,b.tail,null,b);if(!b.head){b.head=b.tail}b.length++}function unshift(b,S){b.head=new Node(S,null,b.head,b);if(!b.tail){b.tail=b.head}b.length++}function Node(b,S,J,ee){if(!(this instanceof Node)){return new Node(b,S,J,ee)}this.list=ee;this.value=b;if(S){S.next=this;this.prev=S}else{this.prev=null}if(J){J.prev=this;this.next=J}else{this.next=null}}try{J(61389)(Yallist)}catch(b){}},1631:b=>{class Node{constructor(b){this.value=b;this.next=undefined}}class Queue{constructor(){this.clear()}enqueue(b){const S=new Node(b);if(this._head){this._tail.next=S;this._tail=S}else{this._head=S;this._tail=S}this._size++}dequeue(){const b=this._head;if(!b){return}this._head=this._head.next;this._size--;return b.value}clear(){this._head=undefined;this._tail=undefined;this._size=0}get size(){return this._size}*[Symbol.iterator](){let b=this._head;while(b){yield b.value;b=b.next}}}b.exports=Queue},14019:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});Object.defineProperty(S,"AndroidManifest",{enumerable:true,get:function(){return _Manifest().AndroidManifest}});Object.defineProperty(S,"ExpoPlist",{enumerable:true,get:function(){return _IosConfig().ExpoPlist}});Object.defineProperty(S,"InfoPlist",{enumerable:true,get:function(){return _IosConfig().InfoPlist}});Object.defineProperty(S,"XcodeProject",{enumerable:true,get:function(){return _xcode().XcodeProject}});function _xcode(){const b=J(49658);_xcode=function(){return b};return b}function _Manifest(){const b=J(24513);_Manifest=function(){return b};return b}function _IosConfig(){const b=J(84695);_IosConfig=function(){return b};return b}},33653:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getAllowBackup=getAllowBackup;S.getAllowBackupFromManifest=getAllowBackupFromManifest;S.setAllowBackup=setAllowBackup;S.withAllowBackup=void 0;function _Manifest(){const b=J(24513);_Manifest=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}const ee=S.withAllowBackup=(0,_androidPlugins().createAndroidManifestPlugin)(setAllowBackup,"withAllowBackup");function getAllowBackup(b){return b.android?.allowBackup??true}function setAllowBackup(b,S){const J=getAllowBackup(b);const ee=(0,_Manifest().getMainApplication)(S);if(ee?.$){ee.$["android:allowBackup"]=String(J)}return S}function getAllowBackupFromManifest(b){const S=(0,_Manifest().getMainApplication)(b);if(S?.$){return String(S.$["android:allowBackup"])==="true"}return null}},44074:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.createBuildGradlePropsConfigPlugin=createBuildGradlePropsConfigPlugin;S.updateAndroidBuildPropertiesFromConfig=updateAndroidBuildPropertiesFromConfig;S.updateAndroidBuildProperty=updateAndroidBuildProperty;S.withJsEngineGradleProps=void 0;function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}function createBuildGradlePropsConfigPlugin(b,S){const withUnknown=(S,J)=>(0,_androidPlugins().withGradleProperties)(S,(S=>{S.modResults=updateAndroidBuildPropertiesFromConfig(J??S,S.modResults,b);return S}));if(S){Object.defineProperty(withUnknown,"name",{value:S})}return withUnknown}const ee=S.withJsEngineGradleProps=createBuildGradlePropsConfigPlugin([{propName:"hermesEnabled",propValueGetter:b=>((b.android?.jsEngine??b.jsEngine??"hermes")==="hermes").toString()}],"withJsEngineGradleProps");function updateAndroidBuildPropertiesFromConfig(b,S,J){for(const ee of J){const J=ee.propValueGetter(b);updateAndroidBuildProperty(S,ee.propName,J)}return S}function updateAndroidBuildProperty(b,S,J,ee){const te=b.findIndex((b=>b.type==="property"&&b.key===S));if(J){const ee={type:"property",key:S,value:J};if(te>=0){b[te]=ee}else{b.push(ee)}}else if(ee?.removePropWhenValueIsNull&&te>=0){b.splice(te,1)}return b}},27972:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.assignColorValue=assignColorValue;S.getColorsAsObject=getColorsAsObject;S.getObjectAsColorsXml=getObjectAsColorsXml;S.getProjectColorsXMLPathAsync=getProjectColorsXMLPathAsync;S.removeColorItem=removeColorItem;S.setColorItem=setColorItem;function _Paths(){const b=J(7572);_Paths=function(){return b};return b}function _Resources(){const b=J(14148);_Resources=function(){return b};return b}function getProjectColorsXMLPathAsync(b,{kind:S}={}){return(0,_Paths().getResourceXMLPathAsync)(b,{kind:S,name:"colors"})}function setColorItem(b,S){if(S.resources?.color){const J=S.resources.color.filter((S=>S.$.name===b.$.name))[0];if(J){J._=b._}else{S.resources.color.push(b)}}else{if(!S.resources||typeof S.resources==="string"){S.resources={}}S.resources.color=[b]}return S}function removeColorItem(b,S){if(S.resources?.color){const J=S.resources.color.findIndex((S=>S.$.name===b));if(J>-1){S.resources.color.splice(J,1)}}return S}function assignColorValue(b,{value:S,name:J}){if(S){return setColorItem((0,_Resources().buildResourceItem)({name:J,value:S}),b)}return removeColorItem(J,b)}function getColorsAsObject(b){if(!b?.resources?.color){return null}return(0,_Resources().getResourceItemsAsObject)(b.resources.color)}function getObjectAsColorsXml(b){return{resources:{color:(0,_Resources().getObjectAsResourceItems)(b)}}}},28711:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.configureEasBuildAsync=configureEasBuildAsync;S.getEasBuildGradlePath=getEasBuildGradlePath;S.isEasBuildGradleConfiguredAsync=isEasBuildGradleConfiguredAsync;function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _EasBuildGradleScript(){const b=_interopRequireDefault(J(69985));_EasBuildGradleScript=function(){return b};return b}function Paths(){const b=_interopRequireWildcard(J(7572));Paths=function(){return b};return b}function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee='apply from: "./eas-build.gradle"';function hasApplyLine(b,S){return b.replace(/\r\n/g,"\n").split("\n").some((b=>b===S||b===S.replace(/"/g,"'")))}function getEasBuildGradlePath(b){return _path().default.join(b,"android","app","eas-build.gradle")}async function configureEasBuildAsync(b){const S=Paths().getAppBuildGradleFilePath(b);const J=getEasBuildGradlePath(b);await _fs().default.promises.writeFile(J,_EasBuildGradleScript().default);const te=await _fs().default.promises.readFile(_path().default.join(S),"utf8");const re=hasApplyLine(te,ee);if(!re){await _fs().default.promises.writeFile(S,`${te.trim()}\n${ee}\n`)}}async function isEasBuildGradleConfiguredAsync(b){const S=Paths().getAppBuildGradleFilePath(b);const J=getEasBuildGradlePath(b);const te=await _fs().default.existsSync(J);const re=await _fs().default.promises.readFile(_path().default.join(S),"utf8");const ne=hasApplyLine(re,ee);return ne&&te}},69985:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=void 0;var J=S["default"]=`// Build integration with EAS\n\nimport java.nio.file.Paths\n\nandroid {\n signingConfigs {\n release {\n // This is necessary to avoid needing the user to define a release signing config manually\n // If no release config is defined, and this is not present, build for assembleRelease will crash\n }\n }\n\n buildTypes {\n release {\n // This is necessary to avoid needing the user to define a release build type manually\n }\n }\n}\n\ndef isEasBuildConfigured = false\n\ntasks.whenTaskAdded {\n def debug = gradle.startParameter.taskNames.any { it.toLowerCase().contains('debug') }\n\n if (debug) {\n return\n }\n\n // We only need to configure EAS build once\n if (isEasBuildConfigured) {\n return\n }\n\n isEasBuildConfigured = true;\n\n android.signingConfigs.release {\n def credentialsJson = rootProject.file("../credentials.json");\n\n if (credentialsJson.exists()) {\n if (storeFile && !System.getenv("EAS_BUILD")) {\n println("Path to release keystore file is already set, ignoring 'credentials.json'")\n } else {\n try {\n def credentials = new groovy.json.JsonSlurper().parse(credentialsJson)\n def keystorePath = Paths.get(credentials.android.keystore.keystorePath);\n def storeFilePath = keystorePath.isAbsolute()\n ? keystorePath\n : rootProject.file("..").toPath().resolve(keystorePath);\n\n storeFile storeFilePath.toFile()\n storePassword credentials.android.keystore.keystorePassword\n keyAlias credentials.android.keystore.keyAlias\n if (credentials.android.keystore.containsKey("keyPassword")) {\n keyPassword credentials.android.keystore.keyPassword\n } else {\n // key password is required by Gradle, but PKCS keystores don't have one\n // using the keystore password seems to satisfy the requirement\n keyPassword credentials.android.keystore.keystorePassword\n }\n } catch (Exception e) {\n println("An error occurred while parsing 'credentials.json': " + e.message)\n }\n }\n } else {\n if (storeFile == null) {\n println("Couldn't find a 'credentials.json' file, skipping release keystore configuration")\n }\n }\n }\n\n android.buildTypes.release {\n signingConfig android.signingConfigs.release\n }\n}\n`},82840:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getGoogleMapsApiKey=getGoogleMapsApiKey;S.setGoogleMapsApiKey=setGoogleMapsApiKey;S.withGoogleMapsApiKey=void 0;function _Manifest(){const b=J(24513);_Manifest=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}const ee="com.google.android.geo.API_KEY";const te="org.apache.http.legacy";const re=S.withGoogleMapsApiKey=(0,_androidPlugins().createAndroidManifestPlugin)(setGoogleMapsApiKey,"withGoogleMapsApiKey");function getGoogleMapsApiKey(b){return b.android?.config?.googleMaps?.apiKey??null}function setGoogleMapsApiKey(b,S){const J=getGoogleMapsApiKey(b);const re=(0,_Manifest().getMainApplicationOrThrow)(S);if(J){(0,_Manifest().addMetaDataItemToMainApplication)(re,ee,J);(0,_Manifest().addUsesLibraryItemToMainApplication)(re,{name:te,required:false})}else{(0,_Manifest().removeMetaDataItemFromMainApplication)(re,ee);(0,_Manifest().removeUsesLibraryItemFromMainApplication)(re,te)}return S}},76580:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.applyPlugin=applyPlugin;S.getGoogleServicesFilePath=getGoogleServicesFilePath;S.setClassPath=setClassPath;S.setGoogleServicesFile=setGoogleServicesFile;S.withGoogleServicesFile=S.withClassPath=S.withApplyPlugin=void 0;function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}function _withDangerousMod(){const b=J(85876);_withDangerousMod=function(){return b};return b}function _fs(){const b=J(32565);_fs=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee="./android/app/google-services.json";const te="com.google.gms:google-services";const re="com.google.gms.google-services";const ne="4.3.3";const withClassPath=b=>(0,_androidPlugins().withProjectBuildGradle)(b,(b=>{if(b.modResults.language==="groovy"){b.modResults.contents=setClassPath(b,b.modResults.contents)}else{(0,_warnings().addWarningAndroid)("android.googleServicesFile",`Cannot automatically configure project build.gradle if it's not groovy`)}return b}));S.withClassPath=withClassPath;const withApplyPlugin=b=>(0,_androidPlugins().withAppBuildGradle)(b,(b=>{if(b.modResults.language==="groovy"){b.modResults.contents=applyPlugin(b,b.modResults.contents)}else{(0,_warnings().addWarningAndroid)("android.googleServicesFile",`Cannot automatically configure app build.gradle if it's not groovy`)}return b}));S.withApplyPlugin=withApplyPlugin;const withGoogleServicesFile=b=>(0,_withDangerousMod().withDangerousMod)(b,["android",async b=>{await setGoogleServicesFile(b,b.modRequest.projectRoot);return b}]);S.withGoogleServicesFile=withGoogleServicesFile;function getGoogleServicesFilePath(b){return b.android?.googleServicesFile??null}async function setGoogleServicesFile(b,S,J=ee){const te=getGoogleServicesFilePath(b);if(!te){return false}const re=_path().default.resolve(S,te);const ne=_path().default.resolve(S,J);try{await(0,_fs().copyFilePathToPathAsync)(re,ne)}catch(b){console.log(b);throw new Error(`Cannot copy google-services.json from ${re} to ${ne}. Please make sure the source and destination paths exist.`)}return true}function setClassPath(b,S){const J=getGoogleServicesFilePath(b);if(!J){return S}if(S.includes(te)){return S}return S.replace(/dependencies\s?{/,`dependencies {\n classpath '${te}:${ne}'`)}function applyPlugin(b,S){const J=getGoogleServicesFilePath(b);if(!J){return S}const ee=new RegExp(`apply\\s+plugin:\\s+['"]${re}['"]`);if(S.match(ee)){return S}return S+`\napply plugin: '${re}'`}},7818:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=renderIntentFilters;S.getIntentFilters=getIntentFilters;S.setAndroidIntentFilters=setAndroidIntentFilters;S.withAndroidIntentFilters=void 0;function _Manifest(){const b=J(24513);_Manifest=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}const ee="data-generated";const te=S.withAndroidIntentFilters=(0,_androidPlugins().createAndroidManifestPlugin)(setAndroidIntentFilters,"withAndroidIntentFilters");function getIntentFilters(b){return b.android?.intentFilters??[]}function setAndroidIntentFilters(b,S){const J=(0,_Manifest().getMainActivityOrThrow)(S);if(J["intent-filter"]?.length){J["intent-filter"]=J["intent-filter"].filter((b=>b.$?.[ee]!=="true"))}const te=getIntentFilters(b);if(!te.length){return S}J["intent-filter"]=J["intent-filter"]?.concat(renderIntentFilters(te));return S}function renderIntentFilters(b){return b.map((b=>({$:{"android:autoVerify":b.autoVerify?"true":undefined,[ee]:"true"},action:[{$:{"android:name":`android.intent.action.${b.action}`}}],data:renderIntentFilterData(b.data),category:renderIntentFilterCategory(b.category)})))}function renderIntentFilterData(b){return(Array.isArray(b)?b:[b]).filter(Boolean).map((b=>({$:Object.entries(b??{}).reduce(((b,[S,J])=>({...b,[`android:${S}`]:J})),{})})))}function renderIntentFilterCategory(b){return(Array.isArray(b)?b:[b]).filter(Boolean).map((b=>({$:{"android:name":`android.intent.category.${b}`}})))}},24513:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.addMetaDataItemToMainApplication=addMetaDataItemToMainApplication;S.addUsesLibraryItemToMainApplication=addUsesLibraryItemToMainApplication;S.ensureToolsAvailable=ensureToolsAvailable;S.findMetaDataItem=findMetaDataItem;S.findUsesLibraryItem=findUsesLibraryItem;S.getMainActivity=getMainActivity;S.getMainActivityOrThrow=getMainActivityOrThrow;S.getMainApplication=getMainApplication;S.getMainApplicationMetaDataValue=getMainApplicationMetaDataValue;S.getMainApplicationOrThrow=getMainApplicationOrThrow;S.getRunnableActivity=getRunnableActivity;S.prefixAndroidKeys=prefixAndroidKeys;S.readAndroidManifestAsync=readAndroidManifestAsync;S.removeMetaDataItemFromMainApplication=removeMetaDataItemFromMainApplication;S.removeUsesLibraryItemFromMainApplication=removeUsesLibraryItemFromMainApplication;S.writeAndroidManifestAsync=writeAndroidManifestAsync;function _assert(){const b=_interopRequireDefault(J(39491));_assert=function(){return b};return b}function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function XML(){const b=_interopRequireWildcard(J(78853));XML=function(){return b};return b}function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}async function writeAndroidManifestAsync(b,S){const J=XML().format(S);await _fs().default.promises.mkdir(_path().default.dirname(b),{recursive:true});await _fs().default.promises.writeFile(b,J)}async function readAndroidManifestAsync(b){const S=await XML().readXMLAsync({path:b});if(!isManifest(S)){throw new Error("Invalid manifest found at: "+b)}return S}function isManifest(b){return!!b.manifest}function getMainApplication(b){return b?.manifest?.application?.filter((b=>b?.$?.["android:name"].endsWith(".MainApplication")))[0]??null}function getMainApplicationOrThrow(b){const S=getMainApplication(b);(0,_assert().default)(S,"AndroidManifest.xml is missing the required MainApplication element");return S}function getMainActivityOrThrow(b){const S=getMainActivity(b);(0,_assert().default)(S,"AndroidManifest.xml is missing the required MainActivity element");return S}function getRunnableActivity(b){const S=b?.manifest?.application?.[0]?.activity?.filter?.((b=>b.$["android:enabled"]!=="false"&&b.$["android:enabled"]!==false));if(!S){return null}for(const b of S){if(Array.isArray(b["intent-filter"])){for(const S of b["intent-filter"]){if(S.action?.find((b=>b.$["android:name"]==="android.intent.action.MAIN"))&&S.category?.find((b=>b.$["android:name"]==="android.intent.category.LAUNCHER"))){return b}}}}return null}function getMainActivity(b){const S=b?.manifest?.application?.[0]?.activity?.filter?.((b=>b.$["android:name"]===".MainActivity"));return S?.[0]??null}function addMetaDataItemToMainApplication(b,S,J,ee="value"){let te;const re={$:prefixAndroidKeys({name:S,[ee]:J})};if(b["meta-data"]){te=b["meta-data"].filter((b=>b.$["android:name"]===S));if(te.length){te[0].$[`android:${ee}`]=J}else{b["meta-data"].push(re)}}else{b["meta-data"]=[re]}return b}function removeMetaDataItemFromMainApplication(b,S){const J=findMetaDataItem(b,S);if(b?.["meta-data"]&&J>-1){b["meta-data"].splice(J,1)}return b}function findApplicationSubItem(b,S,J){const ee=b[S];if(Array.isArray(ee)){const b=ee.findIndex((b=>b.$["android:name"]===J));return b}return-1}function findMetaDataItem(b,S){return findApplicationSubItem(b,"meta-data",S)}function findUsesLibraryItem(b,S){return findApplicationSubItem(b,"uses-library",S)}function getMainApplicationMetaDataValue(b,S){const J=getMainApplication(b);if(J?.hasOwnProperty("meta-data")){const b=J?.["meta-data"]?.find((b=>b.$["android:name"]===S));return b?.$["android:value"]??null}return null}function addUsesLibraryItemToMainApplication(b,S){let J;const ee={$:prefixAndroidKeys(S)};if(b["uses-library"]){J=b["uses-library"].filter((b=>b.$["android:name"]===S.name));if(J.length){J[0].$=ee.$}else{b["uses-library"].push(ee)}}else{b["uses-library"]=[ee]}return b}function removeUsesLibraryItemFromMainApplication(b,S){const J=findUsesLibraryItem(b,S);if(b?.["uses-library"]&&J>-1){b["uses-library"].splice(J,1)}return b}function prefixAndroidKeys(b){return Object.entries(b).reduce(((b,[S,J])=>({...b,[`android:${S}`]:J})),{})}function ensureToolsAvailable(b){return ensureManifestHasNamespace(b,{namespace:"xmlns:tools",url:"http://schemas.android.com/tools"})}function ensureManifestHasNamespace(b,{namespace:S,url:J}){if(b?.manifest?.$?.[S]){return b}b.manifest.$[S]=J;return b}},17758:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.applyNameSettingsGradle=applyNameSettingsGradle;S.getName=getName;S.sanitizeNameForGradle=sanitizeNameForGradle;S.withNameSettingsGradle=S.withName=void 0;function _Resources(){const b=J(14148);_Resources=function(){return b};return b}function _Strings(){const b=J(88651);_Strings=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}function sanitizeNameForGradle(b){b=b.replace(/[\n\r\t]/g,"");return b.replace(/(\/|\\|:|<|>|"|\?|\*|\|)/g,"")}const ee=S.withName=(0,_androidPlugins().createStringsXmlPlugin)(applyNameFromConfig,"withName");const withNameSettingsGradle=b=>(0,_androidPlugins().withSettingsGradle)(b,(b=>{if(b.modResults.language==="groovy"){b.modResults.contents=applyNameSettingsGradle(b,b.modResults.contents)}else{(0,_warnings().addWarningAndroid)("name",`Cannot automatically configure settings.gradle if it's not groovy`)}return b}));S.withNameSettingsGradle=withNameSettingsGradle;function getName(b){return typeof b.name==="string"?b.name:null}function applyNameFromConfig(b,S){const J=getName(b);if(J){return(0,_Strings().setStringItem)([(0,_Resources().buildResourceItem)({name:"app_name",value:J})],S)}return(0,_Strings().removeStringItem)("app_name",S)}function applyNameSettingsGradle(b,S){const J=sanitizeNameForGradle(getName(b)??"");return S.replace(/rootProject.name\s?=\s?(["'])(?:(?=(\\?))\2.)*?\1/g,`rootProject.name = '${J.replace(/'/g,"\\'")}'`)}},20844:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.SCREEN_ORIENTATION_ATTRIBUTE=void 0;S.getOrientation=getOrientation;S.setAndroidOrientation=setAndroidOrientation;S.withOrientation=void 0;function _Manifest(){const b=J(24513);_Manifest=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}const ee=S.SCREEN_ORIENTATION_ATTRIBUTE="android:screenOrientation";const te=S.withOrientation=(0,_androidPlugins().createAndroidManifestPlugin)(setAndroidOrientation,"withOrientation");function getOrientation(b){return typeof b.orientation==="string"?b.orientation:null}function setAndroidOrientation(b,S){const J=getOrientation(b);if(!J){return S}const te=(0,_Manifest().getMainActivityOrThrow)(S);te.$[ee]=J!=="default"?J:"unspecified";return S}},45631:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getApplicationIdAsync=getApplicationIdAsync;S.getPackage=getPackage;S.kotlinSanitized=kotlinSanitized;S.renameJniOnDiskForType=renameJniOnDiskForType;S.renamePackageOnDisk=renamePackageOnDisk;S.renamePackageOnDiskForType=renamePackageOnDiskForType;S.setPackageInBuildGradle=setPackageInBuildGradle;S.withPackageRefactor=S.withPackageGradle=void 0;function _debug(){const b=_interopRequireDefault(J(67984));_debug=function(){return b};return b}function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _glob(){const b=J(17682);_glob=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _Paths(){const b=J(7572);_Paths=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}function _withDangerousMod(){const b=J(85876);_withDangerousMod=function(){return b};return b}function _modules(){const b=J(35642);_modules=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee=(0,_debug().default)("expo:config-plugins:android:package");const withPackageGradle=b=>(0,_androidPlugins().withAppBuildGradle)(b,(b=>{if(b.modResults.language==="groovy"){b.modResults.contents=setPackageInBuildGradle(b,b.modResults.contents)}else{(0,_warnings().addWarningAndroid)("android.package",`Cannot automatically configure app build.gradle if it's not groovy`)}return b}));S.withPackageGradle=withPackageGradle;const withPackageRefactor=b=>(0,_withDangerousMod().withDangerousMod)(b,["android",async b=>{await renamePackageOnDisk(b,b.modRequest.projectRoot);return b}]);S.withPackageRefactor=withPackageRefactor;function getPackage(b){return b.android?.package??null}function getPackageRoot(b,S){return _path().default.join(b,"android","app","src",S,"java")}function getCurrentPackageName(b,S){const J=(0,_Paths().getProjectFilePath)(b,"MainApplication");const ee=_path().default.dirname(J);const te=_path().default.relative(S,ee).split(_path().default.sep).filter(Boolean);return te.join(".")}function getCurrentPackageForProjectFile(b,S,J,ee){const te=(0,_glob().sync)(_path().default.join(b,`android/app/src/${ee}/java/**/${J}.@(java|kt)`))[0];if(!te){return null}const re=_path().default.dirname(te);const ne=_path().default.relative(S,re).split(_path().default.sep).filter(Boolean);return ne.join(".")}function getCurrentPackageNameForType(b,S){const J=getPackageRoot(b,S);if(S==="main"){return getCurrentPackageName(b,J)}return getCurrentPackageForProjectFile(b,J,"*",S)}async function renamePackageOnDisk(b,S){const J=getPackage(b);if(J===null){return}for(const b of["debug","main","release"]){await renameJniOnDiskForType({projectRoot:S,type:b,packageName:J});await renamePackageOnDiskForType({projectRoot:S,type:b,packageName:J})}}async function renameJniOnDiskForType({projectRoot:b,type:S,packageName:J}){if(!J){return}const te=getCurrentPackageNameForType(b,S);if(!te||!J||te===J){return}const re=_path().default.join(b,"android","app","src",S,"jni");const ne=[...(0,_glob().sync)("**/*",{cwd:re,absolute:true})];ne.forEach((b=>{try{if(_fs().default.lstatSync(b).isFile()&&[".h",".cpp"].includes(_path().default.extname(b))){let S=_fs().default.readFileSync(b).toString();S=S.replace(new RegExp(transformJavaClassDescriptor(te).replace(/\//g,"\\/"),"g"),transformJavaClassDescriptor(J));_fs().default.writeFileSync(b,S)}}catch{ee(`Error updating "${b}" for type "${S}"`)}}))}async function renamePackageOnDiskForType({projectRoot:b,type:S,packageName:J}){if(!J){return}const te=getCurrentPackageNameForType(b,S);ee(`Found package "${te}" for type "${S}"`);if(!te||te===J){return}ee(`Refactor "${te}" to "${J}" for type "${S}"`);const re=getPackageRoot(b,S);if(!await(0,_modules().directoryExistsAsync)(re)){ee(`- skipping refactor of missing directory: ${re}`);return}const ne=_path().default.join(re,...te.split("."));const ie=_path().default.join(re,...J.split("."));_fs().default.mkdirSync(ie,{recursive:true});(0,_glob().sync)("**/*",{cwd:ne}).forEach((b=>{const S=_path().default.join(ne,b);if(_fs().default.lstatSync(S).isFile()){moveFileSync(S,_path().default.join(ie,b))}else{_fs().default.mkdirSync(S,{recursive:true})}}));const oe=te.split(".");while(oe.length){const b=_path().default.join(re,...oe);try{const S=_fs().default.readdirSync(b);if(S.length===0){_fs().default.rmdirSync(b)}}finally{oe.pop()}}const se=[...(0,_glob().sync)("**/*",{cwd:ie,absolute:true})];if(S==="main"){se.push(_path().default.join(b,"android","app","BUCK"))}const ae=kotlinSanitized(J);se.forEach((b=>{try{if(_fs().default.lstatSync(b).isFile()){let S=_fs().default.readFileSync(b).toString();if(_path().default.extname(b)===".kt"){S=replacePackageName(S,te,ae)}else{S=replacePackageName(S,te,J)}if([".h",".cpp"].includes(_path().default.extname(b))){S=S.replace(new RegExp(transformJavaClassDescriptor(te).replace(/\//g,"\\"),"g"),transformJavaClassDescriptor(J))}_fs().default.writeFileSync(b,S)}}catch{ee(`Error updating "${b}" for type "${S}"`)}}))}function moveFileSync(b,S){_fs().default.mkdirSync(_path().default.dirname(S),{recursive:true});_fs().default.renameSync(b,S)}function setPackageInBuildGradle(b,S){const J=getPackage(b);if(J===null){return S}const ee=new RegExp(`(applicationId|namespace) ['"].*['"]`,"g");return S.replace(ee,`$1 '${J}'`)}async function getApplicationIdAsync(b){const S=(0,_Paths().getAppBuildGradleFilePath)(b);if(!_fs().default.existsSync(S)){return null}const J=await _fs().default.promises.readFile(S,"utf8");const ee=J.match(/applicationId ['"](.*)['"]/);return ee?.[1]??null}function replacePackageName(b,S,J){const ee=S.replace(/\./g,"\\.");return b.replace(new RegExp(`"${ee}"`,"g"),`"${J}"`).replace(new RegExp(`(package|namespace)(\\s+)${ee}`,"g"),`$1$2${J}`).replace(new RegExp(`(import\\s+)${ee}\\.`,"g"),`$1${J}.`)}function transformJavaClassDescriptor(b){return`L${b.replace(/\./g,"/")}`}function kotlinSanitized(b){const S=["is","in","as","fun"];const J=b.split(".");const ee=J.map((b=>S.includes(b)?"`"+b+"`":b));const te=ee.join(".");return te}},7572:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getAndroidManifestAsync=getAndroidManifestAsync;S.getAppBuildGradleAsync=getAppBuildGradleAsync;S.getAppBuildGradleFilePath=getAppBuildGradleFilePath;S.getFileInfo=getFileInfo;S.getGradleFilePath=getGradleFilePath;S.getMainActivityAsync=getMainActivityAsync;S.getMainApplicationAsync=getMainApplicationAsync;S.getProjectBuildGradleAsync=getProjectBuildGradleAsync;S.getProjectBuildGradleFilePath=getProjectBuildGradleFilePath;S.getProjectFilePath=getProjectFilePath;S.getProjectPathOrThrowAsync=getProjectPathOrThrowAsync;S.getResourceFolderAsync=getResourceFolderAsync;S.getResourceXMLPathAsync=getResourceXMLPathAsync;S.getSettingsGradleAsync=getSettingsGradleAsync;S.getSettingsGradleFilePath=getSettingsGradleFilePath;function _assert(){const b=_interopRequireDefault(J(39491));_assert=function(){return b};return b}function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _glob(){const b=J(17682);_glob=function(){return b};return b}function path(){const b=_interopRequireWildcard(J(71017));path=function(){return b};return b}function _errors(){const b=J(13857);_errors=function(){return b};return b}function _modules(){const b=J(35642);_modules=function(){return b};return b}function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function getProjectFilePath(b,S){const J=(0,_glob().sync)(path().join(b,`android/app/src/main/java/**/${S}.@(java|kt)`))[0];(0,_assert().default)(J,`Project file "${S}" does not exist in android project for root "${b}"`);return J}function getLanguage(b){const S=path().extname(b);switch(S){case".java":return"java";case".kts":case".kt":return"kt";case".groovy":case".gradle":return"groovy";default:throw new(_errors().UnexpectedError)(`Unexpected Android file extension: ${S}`)}}function getFileInfo(b){return{path:path().normalize(b),contents:_fs().default.readFileSync(b,"utf8"),language:getLanguage(b)}}async function getMainApplicationAsync(b){const S=getProjectFilePath(b,"MainApplication");return getFileInfo(S)}async function getMainActivityAsync(b){const S=getProjectFilePath(b,"MainActivity");return getFileInfo(S)}function getGradleFilePath(b,S){const J=path().resolve(b,`${S}.gradle`);const ee=path().resolve(b,`${S}.gradle.kts`);const te=_fs().default.existsSync(J);const re=!te&&_fs().default.existsSync(ee);if(!te&&!re){throw new Error(`Failed to find '${S}.gradle' file for project: ${b}.`)}const ne=te?J:ee;return ne}function getProjectBuildGradleFilePath(b){return getGradleFilePath(path().join(b,"android"),"build")}async function getProjectBuildGradleAsync(b){return getFileInfo(getProjectBuildGradleFilePath(b))}function getSettingsGradleFilePath(b){return getGradleFilePath(path().join(b,"android"),"settings")}async function getSettingsGradleAsync(b){return getFileInfo(getSettingsGradleFilePath(b))}function getAppBuildGradleFilePath(b){return getGradleFilePath(path().join(b,"android","app"),"build")}async function getAppBuildGradleAsync(b){return getFileInfo(getAppBuildGradleFilePath(b))}async function getProjectPathOrThrowAsync(b){const S=path().join(b,"android");if(await(0,_modules().directoryExistsAsync)(S)){return S}throw new Error(`Android project folder is missing in project: ${b}`)}async function getAndroidManifestAsync(b){const S=await getProjectPathOrThrowAsync(b);const J=path().join(S,"app/src/main/AndroidManifest.xml");return J}async function getResourceFolderAsync(b){const S=await getProjectPathOrThrowAsync(b);return path().join(S,`app/src/main/res`)}async function getResourceXMLPathAsync(b,{kind:S="values",name:J}){const ee=await getResourceFolderAsync(b);const te=path().join(ee,`${S}/${J}.xml`);return te}},13164:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.addBlockedPermissions=addBlockedPermissions;S.addPermission=addPermission;S.addPermissionToManifest=addPermissionToManifest;S.ensurePermission=ensurePermission;S.ensurePermissionNameFormat=ensurePermissionNameFormat;S.ensurePermissions=ensurePermissions;S.getAndroidPermissions=getAndroidPermissions;S.getPermissions=getPermissions;S.isPermissionAlreadyRequested=isPermissionAlreadyRequested;S.removePermissions=removePermissions;S.setAndroidPermissions=setAndroidPermissions;S.withPermissions=S.withInternalBlockedPermissions=S.withBlockedPermissions=void 0;function _Manifest(){const b=J(24513);_Manifest=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}const ee="uses-permission";const withPermissions=(b,S)=>{if(Array.isArray(S)){S=S.filter(Boolean);if(!b.android)b.android={};if(!b.android.permissions)b.android.permissions=[];b.android.permissions=[...new Set(b.android.permissions.concat(S))]}return(0,_androidPlugins().withAndroidManifest)(b,(async b=>{b.modResults=await setAndroidPermissions(b,b.modResults);return b}))};S.withPermissions=withPermissions;const withBlockedPermissions=(b,S)=>{const J=prefixAndroidPermissionsIfNecessary((Array.isArray(S)?S:[S]).filter(Boolean));if(b?.android?.permissions&&Array.isArray(b.android.permissions)){b.android.permissions=prefixAndroidPermissionsIfNecessary(b.android.permissions).filter((b=>!J.includes(b)))}return(0,_androidPlugins().withAndroidManifest)(b,(async b=>{b.modResults=(0,_Manifest().ensureToolsAvailable)(b.modResults);b.modResults=addBlockedPermissions(b.modResults,J);return b}))};S.withBlockedPermissions=withBlockedPermissions;const withInternalBlockedPermissions=b=>{if(b.android?.blockedPermissions?.length){return withBlockedPermissions(b,b.android.blockedPermissions)}return b};S.withInternalBlockedPermissions=withInternalBlockedPermissions;function addBlockedPermissions(b,S){if(!Array.isArray(b.manifest["uses-permission"])){b.manifest["uses-permission"]=[]}for(const J of prefixAndroidPermissionsIfNecessary(S)){b.manifest["uses-permission"]=ensureBlockedPermission(b.manifest["uses-permission"],J)}return b}function ensureBlockedPermission(b,S){b=b.filter((b=>b.$["android:name"]!==S));b.push({$:{"android:name":S,"tools:node":"remove"}});return b}function prefixAndroidPermissionsIfNecessary(b){return b.map((b=>{if(!b.includes(".")){return`android.permission.${b}`}return b}))}function getAndroidPermissions(b){return b.android?.permissions??[]}function setAndroidPermissions(b,S){const J=getAndroidPermissions(b);const ee=prefixAndroidPermissionsIfNecessary(J);const te=[...ee];if(!S.manifest.hasOwnProperty("uses-permission")){S.manifest["uses-permission"]=[]}const re=S.manifest["uses-permission"]??[];te.forEach((b=>{if(!isPermissionAlreadyRequested(b,re)){addPermissionToManifest(b,re)}}));return S}function isPermissionAlreadyRequested(b,S){return S.some((S=>S.$["android:name"]===b))}function addPermissionToManifest(b,S){S.push({$:{"android:name":b}});return S}function removePermissions(b,S){const J=S?S.map(ensurePermissionNameFormat):null;const te=b.manifest[ee]||[];const re=[];for(const b of te){if(J){const S=b.$["android:name"]||b.$.name;if(!J.includes(S)){re.push(b)}}}b.manifest[ee]=re}function addPermission(b,S){const J=b.manifest[ee]||[];J.push({$:{"android:name":S}});b.manifest[ee]=J}function ensurePermissions(b,S){const J=getPermissions(b);const ee={};for(const te of S){const S=ensurePermissionNameFormat(te);if(!J.includes(S)){addPermission(b,S);ee[te]=true}else{ee[te]=false}}return ee}function ensurePermission(b,S){const J=getPermissions(b);const ee=ensurePermissionNameFormat(S);if(!J.includes(ee)){addPermission(b,ee);return true}return false}function ensurePermissionNameFormat(b){if(b.includes(".")){const S=b.split(".");const J=S.pop();return[...S,J.toUpperCase()].join(".")}else{return ensurePermissionNameFormat(`android.permission.${b}`)}}function getPermissions(b){const S=b.manifest[ee]||[];const J=S.map((b=>b.$["android:name"]||b.$.name));return J}},42638:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getPrimaryColor=getPrimaryColor;S.withPrimaryColorStyles=S.withPrimaryColorColors=S.withPrimaryColor=void 0;function _Colors(){const b=J(27972);_Colors=function(){return b};return b}function _Styles(){const b=J(19769);_Styles=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}const ee="colorPrimary";const te="#023c69";const withPrimaryColor=b=>{b=withPrimaryColorColors(b);b=withPrimaryColorStyles(b);return b};S.withPrimaryColor=withPrimaryColor;const withPrimaryColorColors=b=>(0,_androidPlugins().withAndroidColors)(b,(b=>{b.modResults=(0,_Colors().assignColorValue)(b.modResults,{name:ee,value:getPrimaryColor(b)});return b}));S.withPrimaryColorColors=withPrimaryColorColors;const withPrimaryColorStyles=b=>(0,_androidPlugins().withAndroidStyles)(b,(b=>{b.modResults=(0,_Styles().assignStylesValue)(b.modResults,{add:!!getPrimaryColor(b),parent:(0,_Styles().getAppThemeLightNoActionBarGroup)(),name:ee,value:`@color/${ee}`});return b}));S.withPrimaryColorStyles=withPrimaryColorStyles;function getPrimaryColor(b){return b.primaryColor??te}},4551:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.parsePropertiesFile=parsePropertiesFile;S.propertiesListToString=propertiesListToString;function parsePropertiesFile(b){const S=[];const J=b.split("\n");for(let b=0;b<J.length;b++){const ee=J[b].trim();if(!ee){S.push({type:"empty"})}else if(ee.startsWith("#")){S.push({type:"comment",value:ee.substring(1).trimStart()})}else{const b=ee.indexOf("=");const J=ee.slice(0,b);const te=ee.slice(b+1,ee.length);S.push({type:"property",key:J,value:te})}}return S}function propertiesListToString(b){let S="";for(let J=0;J<b.length;J++){const ee=b[J];if(ee.type==="empty"){S+=""}else if(ee.type==="comment"){S+="# "+ee.value}else if(ee.type==="property"){S+=`${ee.key}=${ee.value}`}else{throw new Error(`Invalid properties type "${ee.type}"`)}if(J<b.length-1){S+="\n"}}return S}},14148:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.buildResourceGroup=buildResourceGroup;S.buildResourceItem=buildResourceItem;S.ensureDefaultResourceXML=ensureDefaultResourceXML;S.findResourceGroup=findResourceGroup;S.getObjectAsResourceGroup=getObjectAsResourceGroup;S.getObjectAsResourceItems=getObjectAsResourceItems;S.getResourceItemsAsObject=getResourceItemsAsObject;S.readResourcesXMLAsync=readResourcesXMLAsync;function _XML(){const b=J(78853);_XML=function(){return b};return b}const ee=`<?xml version="1.0" encoding="utf-8"?><resources></resources>`;async function readResourcesXMLAsync({path:b,fallback:S=ee}){const J=await(0,_XML().readXMLAsync)({path:b,fallback:S});if(!J.resources){J.resources={}}return J}function ensureDefaultResourceXML(b){if(!b){b={resources:{}}}if(!b.resources){b.resources={}}return b}function buildResourceItem({name:b,value:S,targetApi:J,translatable:ee}){const te={$:{name:b},_:S};if(J){te.$["tools:targetApi"]=J}if(ee!==undefined){te.$["translatable"]=String(ee)}return te}function buildResourceGroup(b){return{$:{name:b.name,parent:b.parent},item:b.items??[]}}function findResourceGroup(b,S){const J=b?.filter?.((({$:b})=>{let J=b.name===S.name;if(S.parent!=null&&J){J=b.parent===S.parent}return J}))?.[0];return J??null}function getResourceItemsAsObject(b){return b.reduce(((b,S)=>({...b,[S.$.name]:S._})),{})}function getObjectAsResourceItems(b){return Object.entries(b).map((([b,S])=>({$:{name:b},_:S})))}function getObjectAsResourceGroup(b){return{$:{name:b.name,parent:b.parent},item:getObjectAsResourceItems(b.item)}}},60365:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.appendScheme=appendScheme;S.ensureManifestHasValidIntentFilter=ensureManifestHasValidIntentFilter;S.getScheme=getScheme;S.getSchemesFromManifest=getSchemesFromManifest;S.hasScheme=hasScheme;S.removeScheme=removeScheme;S.setScheme=setScheme;S.withScheme=void 0;function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}const ee=S.withScheme=(0,_androidPlugins().createAndroidManifestPlugin)(setScheme,"withScheme");function getScheme(b){if(Array.isArray(b.scheme)){const validate=b=>typeof b==="string";return b.scheme.filter(validate)}else if(typeof b.scheme==="string"){return[b.scheme]}return[]}function setScheme(b,S){const J=[...getScheme(b),...getScheme(b.android??{})];if(b.android?.package){J.push(b.android.package)}if(J.length===0){return S}if(!ensureManifestHasValidIntentFilter(S)){(0,_warnings().addWarningAndroid)("scheme",`Cannot add schemes because the provided manifest does not have a valid Activity with \`android:launchMode="singleTask"\``,"https://expo.fyi/setup-android-uri-scheme");return S}const ee=getSchemesFromManifest(S);for(const b of ee){const S=J.indexOf(b);if(S>-1)J.splice(S,1)}for(const b of J){S=appendScheme(b,S)}return S}function isValidRedirectIntentFilter({actions:b,categories:S}){return b.includes("android.intent.action.VIEW")&&!S.includes("android.intent.category.LAUNCHER")}function propertiesFromIntentFilter(b){const S=b?.action?.map((b=>b?.$?.["android:name"]))??[];const J=b?.category?.map((b=>b?.$?.["android:name"]))??[];const ee=b?.data?.filter((b=>b?.$?.["android:scheme"]))?.map((b=>({scheme:b?.$?.["android:scheme"],host:b?.$?.["android:host"]})))??[];return{actions:S,categories:J,data:ee}}function getSingleTaskIntentFilters(b){if(!Array.isArray(b.manifest.application))return[];let S=[];for(const J of b.manifest.application){const{activity:b}=J;const ee=Array.isArray(b)?b:[b];const te=ee.filter((b=>b?.$?.["android:launchMode"]==="singleTask"));for(const b of te){const J=b["intent-filter"];S=S.concat(J)}}return S}function getSchemesFromManifest(b,S=null){const J=[];const ee=getSingleTaskIntentFilters(b);for(const b of ee){const ee=propertiesFromIntentFilter(b);if(isValidRedirectIntentFilter(ee)&&ee.data){for(const{scheme:b,host:te}of ee.data){if(S===null||!te||te===S){J.push(b)}}}}return J}function ensureManifestHasValidIntentFilter(b){if(!Array.isArray(b.manifest.application)){return false}for(const S of b.manifest.application){for(const b of S.activity||[]){if(b?.$?.["android:launchMode"]==="singleTask"){for(const S of b["intent-filter"]||[]){const b=propertiesFromIntentFilter(S);if(isValidRedirectIntentFilter(b)){return true}}if(!b["intent-filter"]){b["intent-filter"]=[]}b["intent-filter"].push({action:[{$:{"android:name":"android.intent.action.VIEW"}}],category:[{$:{"android:name":"android.intent.category.DEFAULT"}},{$:{"android:name":"android.intent.category.BROWSABLE"}}]});return true}}}return false}function hasScheme(b,S){const J=getSchemesFromManifest(S);return J.includes(b)}function appendScheme(b,S){if(!Array.isArray(S.manifest.application)){return S}for(const J of S.manifest.application){for(const S of J.activity||[]){if(S?.$?.["android:launchMode"]==="singleTask"){for(const J of S["intent-filter"]||[]){const S=propertiesFromIntentFilter(J);if(isValidRedirectIntentFilter(S)){if(!J.data)J.data=[];J.data.push({$:{"android:scheme":b}})}}break}}}return S}function removeScheme(b,S){if(!Array.isArray(S.manifest.application)){return S}for(const J of S.manifest.application){for(const S of J.activity||[]){if(S?.$?.["android:launchMode"]==="singleTask"){for(const J of S["intent-filter"]||[]){const S=propertiesFromIntentFilter(J);if(isValidRedirectIntentFilter(S)){for(const S in J?.data||[]){const ee=J.data?.[S];if(ee?.$?.["android:scheme"]===b){delete J.data?.[S]}}}}break}}}return S}},72899:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getStatusBarColor=getStatusBarColor;S.getStatusBarStyle=getStatusBarStyle;S.getStatusBarTranslucent=getStatusBarTranslucent;S.setStatusBarColors=setStatusBarColors;S.setStatusBarStyles=setStatusBarStyles;S.withStatusBar=void 0;function _assert(){const b=_interopRequireDefault(J(39491));_assert=function(){return b};return b}function _Colors(){const b=J(27972);_Colors=function(){return b};return b}function _Styles(){const b=J(19769);_Styles=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee="colorPrimaryDark";const te="android:windowTranslucentStatus";const re="android:windowLightStatusBar";const withStatusBar=b=>{b=withStatusBarColors(b);b=withStatusBarStyles(b);return b};S.withStatusBar=withStatusBar;const withStatusBarColors=b=>(0,_androidPlugins().withAndroidColors)(b,(b=>{b.modResults=setStatusBarColors(b,b.modResults);return b}));const withStatusBarStyles=b=>(0,_androidPlugins().withAndroidStyles)(b,(b=>{b.modResults=setStatusBarStyles(b,b.modResults);return b}));function setStatusBarColors(b,S){return(0,_Colors().assignColorValue)(S,{name:ee,value:getStatusBarColor(b)})}function setStatusBarStyles(b,S){const J=getStatusBarColor(b);const ne=getStatusBarTranslucent(b);S=(0,_Styles().assignStylesValue)(S,{parent:(0,_Styles().getAppThemeLightNoActionBarGroup)(),name:re,targetApi:"23",value:"true",add:getStatusBarStyle(b)==="dark-content"});S=(0,_Styles().assignStylesValue)(S,{parent:(0,_Styles().getAppThemeLightNoActionBarGroup)(),name:te,value:"true",add:ne});S=(0,_Styles().assignStylesValue)(S,{parent:(0,_Styles().getAppThemeLightNoActionBarGroup)(),name:ee,value:`@color/${ee}`,add:!!J});return S}function getStatusBarColor(b){const S=b.androidStatusBar?.backgroundColor;if(S){(0,_assert().default)(S!=="translucent",`androidStatusBar.backgroundColor must be a valid hex string, instead got: "${S}"`)}return S}function getStatusBarTranslucent(b){return b.androidStatusBar?.translucent??false}function getStatusBarStyle(b){return b.androidStatusBar?.barStyle||"light-content"}},88651:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getProjectStringsXMLPathAsync=getProjectStringsXMLPathAsync;S.removeStringItem=removeStringItem;S.setStringItem=setStringItem;function _Paths(){const b=J(7572);_Paths=function(){return b};return b}async function getProjectStringsXMLPathAsync(b,{kind:S}={}){return(0,_Paths().getResourceXMLPathAsync)(b,{kind:S,name:"strings"})}function setStringItem(b,S){if(!S?.resources?.string){if(!S.resources||typeof S.resources==="string"){S.resources={}}S.resources.string=b;return S}for(const J of b){const b=S.resources.string.findIndex((b=>b.$.name===J.$.name));if(b>-1){S.resources.string[b]=J}else{S.resources.string=S.resources.string.concat(J)}}return S}function removeStringItem(b,S){if(S?.resources?.string){const J=S.resources.string.findIndex((S=>S.$.name===b));if(J>-1){S.resources.string.splice(J,1)}}return S}},19769:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.assignStylesValue=assignStylesValue;S.getAppThemeLightNoActionBarGroup=getAppThemeLightNoActionBarGroup;S.getProjectStylesXMLPathAsync=getProjectStylesXMLPathAsync;S.getStyleParent=getStyleParent;S.getStylesGroupAsObject=getStylesGroupAsObject;S.getStylesItem=getStylesItem;S.readStylesXMLAsync=readStylesXMLAsync;S.removeStylesItem=removeStylesItem;S.setStylesItem=setStylesItem;function _Paths(){const b=J(7572);_Paths=function(){return b};return b}function _Resources(){const b=J(14148);_Resources=function(){return b};return b}const ee=`<?xml version="1.0" encoding="utf-8"?><resources xmlns:tools="http://schemas.android.com/tools"></resources>`;async function readStylesXMLAsync({path:b,fallback:S=ee}){return(0,_Resources().readResourcesXMLAsync)({path:b,fallback:S})}async function getProjectStylesXMLPathAsync(b,{kind:S}={}){return(0,_Paths().getResourceXMLPathAsync)(b,{kind:S,name:"styles"})}function ensureDefaultStyleResourceXML(b){b=(0,_Resources().ensureDefaultResourceXML)(b);if(!Array.isArray(b?.resources?.style)){b.resources.style=[]}return b}function getStyleParent(b,S){return(0,_Resources().findResourceGroup)(b.resources.style,S)}function getStylesItem({name:b,xml:S,parent:J}){S=ensureDefaultStyleResourceXML(S);const ee=getStyleParent(S,J);if(!ee){return null}if(ee.item){const S=ee.item.filter((({$:S})=>S.name===b))[0];if(S){return S}}return null}function setStylesItem({item:b,xml:S,parent:J}){S=ensureDefaultStyleResourceXML(S);let ee=getStyleParent(S,J);if(!ee){ee=(0,_Resources().buildResourceGroup)(J);S.resources.style.push(ee)}if(ee.item){const S=ee.item.filter((({$:S})=>S.name===b.$.name))[0];if(S){S._=b._;S.$=b.$}else{ee.item.push(b)}}else{ee.item=[b]}return S}function removeStylesItem({name:b,xml:S,parent:J}){S=ensureDefaultStyleResourceXML(S);const ee=getStyleParent(S,J);if(ee?.item){const S=ee.item.findIndex((({$:S})=>S.name===b));if(S>-1){ee.item.splice(S,1)}}return S}function getAppThemeLightNoActionBarGroup(){return{name:"AppTheme",parent:"Theme.AppCompat.Light.NoActionBar"}}function assignStylesValue(b,{add:S,value:J,targetApi:ee,name:te,parent:re}){if(S){return setStylesItem({xml:b,parent:re,item:(0,_Resources().buildResourceItem)({name:te,targetApi:ee,value:J})})}return removeStylesItem({xml:b,parent:re,name:te})}function getStylesGroupAsObject(b,S){const J=getStyleParent(b,S);return J?.item?(0,_Resources().getResourceItemsAsObject)(J.item):null}},74756:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.Config=void 0;S.applyRuntimeVersionFromConfigAsync=applyRuntimeVersionFromConfigAsync;S.applyRuntimeVersionFromConfigForProjectRootAsync=applyRuntimeVersionFromConfigForProjectRootAsync;S.setUpdatesConfigAsync=setUpdatesConfigAsync;S.setVersionsConfigAsync=setVersionsConfigAsync;S.withUpdates=void 0;function _Manifest(){const b=J(24513);_Manifest=function(){return b};return b}function _Resources(){const b=J(14148);_Resources=function(){return b};return b}function _Strings(){const b=J(88651);_Strings=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}function _withPlugins(){const b=J(4897);_withPlugins=function(){return b};return b}function _Updates(){const b=J(3943);_Updates=function(){return b};return b}let ee=S.Config=function(b){b["ENABLED"]="expo.modules.updates.ENABLED";b["CHECK_ON_LAUNCH"]="expo.modules.updates.EXPO_UPDATES_CHECK_ON_LAUNCH";b["LAUNCH_WAIT_MS"]="expo.modules.updates.EXPO_UPDATES_LAUNCH_WAIT_MS";b["RUNTIME_VERSION"]="expo.modules.updates.EXPO_RUNTIME_VERSION";b["UPDATE_URL"]="expo.modules.updates.EXPO_UPDATE_URL";b["UPDATES_CONFIGURATION_REQUEST_HEADERS_KEY"]="expo.modules.updates.UPDATES_CONFIGURATION_REQUEST_HEADERS_KEY";b["CODE_SIGNING_CERTIFICATE"]="expo.modules.updates.CODE_SIGNING_CERTIFICATE";b["CODE_SIGNING_METADATA"]="expo.modules.updates.CODE_SIGNING_METADATA";return b}({});const withUpdates=b=>(0,_withPlugins().withPlugins)(b,[withUpdatesManifest,te]);S.withUpdates=withUpdates;const withUpdatesManifest=b=>(0,_androidPlugins().withAndroidManifest)(b,(async b=>{const S=b.modRequest.projectRoot;const J=(0,_Updates().getExpoUpdatesPackageVersion)(S);b.modResults=await setUpdatesConfigAsync(S,b,b.modResults,J);return b}));const te=(0,_androidPlugins().createStringsXmlPlugin)(applyRuntimeVersionFromConfigAsync,"withRuntimeVersionResource");async function applyRuntimeVersionFromConfigAsync(b,S){const J=b.modRequest.projectRoot;return await applyRuntimeVersionFromConfigForProjectRootAsync(J,b,S)}async function applyRuntimeVersionFromConfigForProjectRootAsync(b,S,J){const ee=await(0,_Updates().getRuntimeVersionNullableAsync)(b,S,"android");if(ee){return(0,_Strings().setStringItem)([(0,_Resources().buildResourceItem)({name:"expo_runtime_version",value:ee})],J)}return(0,_Strings().removeStringItem)("expo_runtime_version",J)}async function setUpdatesConfigAsync(b,S,J,te){const re=(0,_Manifest().getMainApplicationOrThrow)(J);(0,_Manifest().addMetaDataItemToMainApplication)(re,ee.ENABLED,String((0,_Updates().getUpdatesEnabled)(S)));(0,_Manifest().addMetaDataItemToMainApplication)(re,ee.CHECK_ON_LAUNCH,(0,_Updates().getUpdatesCheckOnLaunch)(S,te));(0,_Manifest().addMetaDataItemToMainApplication)(re,ee.LAUNCH_WAIT_MS,String((0,_Updates().getUpdatesTimeout)(S)));const ne=(0,_Updates().getUpdateUrl)(S);if(ne){(0,_Manifest().addMetaDataItemToMainApplication)(re,ee.UPDATE_URL,ne)}else{(0,_Manifest().removeMetaDataItemFromMainApplication)(re,ee.UPDATE_URL)}const ie=(0,_Updates().getUpdatesCodeSigningCertificate)(b,S);if(ie){(0,_Manifest().addMetaDataItemToMainApplication)(re,ee.CODE_SIGNING_CERTIFICATE,ie)}else{(0,_Manifest().removeMetaDataItemFromMainApplication)(re,ee.CODE_SIGNING_CERTIFICATE)}const oe=(0,_Updates().getUpdatesCodeSigningMetadataStringified)(S);if(oe){(0,_Manifest().addMetaDataItemToMainApplication)(re,ee.CODE_SIGNING_METADATA,oe)}else{(0,_Manifest().removeMetaDataItemFromMainApplication)(re,ee.CODE_SIGNING_METADATA)}const se=(0,_Updates().getUpdatesRequestHeadersStringified)(S);if(se){(0,_Manifest().addMetaDataItemToMainApplication)(re,ee.UPDATES_CONFIGURATION_REQUEST_HEADERS_KEY,se)}else{(0,_Manifest().removeMetaDataItemFromMainApplication)(re,ee.UPDATES_CONFIGURATION_REQUEST_HEADERS_KEY)}return await setVersionsConfigAsync(b,S,J)}async function setVersionsConfigAsync(b,S,J){const te=(0,_Manifest().getMainApplicationOrThrow)(J);const re=await(0,_Updates().getRuntimeVersionNullableAsync)(b,S,"android");if(!re&&(0,_Manifest().findMetaDataItem)(te,ee.RUNTIME_VERSION)>-1){throw new Error("A runtime version is set in your AndroidManifest.xml, but is missing from your app.json/app.config.js. Please either set runtimeVersion in your app.json/app.config.js or remove expo.modules.updates.EXPO_RUNTIME_VERSION from your AndroidManifest.xml.")}if(re){(0,_Manifest().removeMetaDataItemFromMainApplication)(te,"expo.modules.updates.EXPO_SDK_VERSION");(0,_Manifest().addMetaDataItemToMainApplication)(te,ee.RUNTIME_VERSION,"@string/expo_runtime_version")}else{(0,_Manifest().removeMetaDataItemFromMainApplication)(te,ee.RUNTIME_VERSION);(0,_Manifest().removeMetaDataItemFromMainApplication)(te,"expo.modules.updates.EXPO_SDK_VERSION")}return J}},72793:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getVersionCode=getVersionCode;S.getVersionName=getVersionName;S.setMinBuildScriptExtVersion=setMinBuildScriptExtVersion;S.setVersionCode=setVersionCode;S.setVersionName=setVersionName;S.withVersion=S.withBuildScriptExtMinimumVersion=void 0;function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}const withVersion=b=>(0,_androidPlugins().withAppBuildGradle)(b,(b=>{if(b.modResults.language==="groovy"){b.modResults.contents=setVersionCode(b,b.modResults.contents);b.modResults.contents=setVersionName(b,b.modResults.contents)}else{(0,_warnings().addWarningAndroid)("android.versionCode",`Cannot automatically configure app build.gradle if it's not groovy`)}return b}));S.withVersion=withVersion;const withBuildScriptExtMinimumVersion=(b,S)=>(0,_androidPlugins().withProjectBuildGradle)(b,(b=>{if(b.modResults.language==="groovy"){b.modResults.contents=setMinBuildScriptExtVersion(b.modResults.contents,S)}else{(0,_warnings().addWarningAndroid)("withBuildScriptExtVersion",`Cannot automatically configure project build.gradle if it's not groovy`)}return b}));S.withBuildScriptExtMinimumVersion=withBuildScriptExtMinimumVersion;function setMinBuildScriptExtVersion(b,{name:S,minVersion:J}){const ee=new RegExp(`(${S}\\s?=\\s?)(\\d+(?:\\.\\d+)?)`);const te=b.match(ee)?.[2];if(!te){(0,_warnings().addWarningAndroid)("withBuildScriptExtVersion",`Cannot set minimum buildscript.ext.${S} version because the property "${S}" cannot be found or does not have a numeric value.`);return b}const re=Number(te);return b.replace(ee,`$1${Math.max(J,re)}`)}function getVersionName(b){return b.version??null}function setVersionName(b,S){const J=getVersionName(b);if(J===null){return S}const ee=new RegExp(`versionName ".*"`);return S.replace(ee,`versionName "${J}"`)}function getVersionCode(b){return b.android?.versionCode??1}function setVersionCode(b,S){const J=getVersionCode(b);if(J===null){return S}const ee=new RegExp(`versionCode.*`);return S.replace(ee,`versionCode ${J}`)}},86990:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getWindowSoftInputModeMode=getWindowSoftInputModeMode;S.setWindowSoftInputModeMode=setWindowSoftInputModeMode;S.withWindowSoftInputMode=void 0;function _Manifest(){const b=J(24513);_Manifest=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}const ee="android:windowSoftInputMode";const te={pan:"adjustPan",resize:"adjustResize"};const withWindowSoftInputMode=b=>(0,_androidPlugins().withAndroidManifest)(b,(async b=>{b.modResults=setWindowSoftInputModeMode(b,b.modResults);return b}));S.withWindowSoftInputMode=withWindowSoftInputMode;function setWindowSoftInputModeMode(b,S){const J=(0,_Manifest().getMainActivityOrThrow)(S);J.$[ee]=getWindowSoftInputModeMode(b);return S}function getWindowSoftInputModeMode(b){const S=b.android?.softwareKeyboardLayoutMode;if(!S){return"adjustResize"}return te[S]??S}},85165:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.addImports=addImports;S.appendContentsInsideDeclarationBlock=appendContentsInsideDeclarationBlock;S.findNewInstanceCodeBlock=findNewInstanceCodeBlock;function _commonCodeMod(){const b=J(80837);_commonCodeMod=function(){return b};return b}function _matchBrackets(){const b=J(62042);_matchBrackets=function(){return b};return b}function findNewInstanceCodeBlock(b,S,J){const ee=J==="java";let te=ee?b.indexOf(` new ${S}(`):b.search(new RegExp(` (object\\s*:\\s*)?${S}\\(`));if(te<0){return null}te+=1;let re=(0,_matchBrackets().findMatchingBracketPosition)(b,"(",te);const ne=b.indexOf("{",re+1);const ie=ne>=re&&!!b.substring(re+1,ne).match(/^\s*$/);if(ie){re=(0,_matchBrackets().findMatchingBracketPosition)(b,"{",re)}return{start:te,end:re,code:b.substring(te,re+1)}}function appendContentsInsideDeclarationBlock(b,S,J){const ee=b.search(new RegExp(`\\s*${S}.*?[\\(\\{]`));if(ee<0){throw new Error(`Unable to find code block - declaration[${S}]`)}const te=(0,_matchBrackets().findMatchingBracketPosition)(b,"{",ee);return(0,_commonCodeMod().insertContentsAtOffset)(b,J,te)}function addImports(b,S,J){const ee=b.split("\n");const te=ee.findIndex((b=>b.match(/^package .*;?$/)));for(const re of S){if(!b.includes(re)){const b=`import ${re}${J?";":""}`;ee.splice(te+1,0,b)}}return ee.join("\n")}},87232:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.WindowSoftInputMode=S.Version=S.Updates=S.Styles=S.Strings=S.StatusBar=S.Scheme=S.Resources=S.Properties=S.PrimaryColor=S.Permissions=S.Paths=S.Package=S.Orientation=S.Name=S.Manifest=S.IntentFilters=S.GoogleServices=S.GoogleMapsApiKey=S.EasBuild=S.Colors=S.BuildProperties=S.AllowBackup=void 0;function AllowBackup(){const b=_interopRequireWildcard(J(33653));AllowBackup=function(){return b};return b}Object.defineProperty(S,"AllowBackup",{enumerable:true,get:function(){return AllowBackup()}});function BuildProperties(){const b=_interopRequireWildcard(J(44074));BuildProperties=function(){return b};return b}Object.defineProperty(S,"BuildProperties",{enumerable:true,get:function(){return BuildProperties()}});function Colors(){const b=_interopRequireWildcard(J(27972));Colors=function(){return b};return b}Object.defineProperty(S,"Colors",{enumerable:true,get:function(){return Colors()}});function EasBuild(){const b=_interopRequireWildcard(J(28711));EasBuild=function(){return b};return b}Object.defineProperty(S,"EasBuild",{enumerable:true,get:function(){return EasBuild()}});function GoogleMapsApiKey(){const b=_interopRequireWildcard(J(82840));GoogleMapsApiKey=function(){return b};return b}Object.defineProperty(S,"GoogleMapsApiKey",{enumerable:true,get:function(){return GoogleMapsApiKey()}});function GoogleServices(){const b=_interopRequireWildcard(J(76580));GoogleServices=function(){return b};return b}Object.defineProperty(S,"GoogleServices",{enumerable:true,get:function(){return GoogleServices()}});function IntentFilters(){const b=_interopRequireWildcard(J(7818));IntentFilters=function(){return b};return b}Object.defineProperty(S,"IntentFilters",{enumerable:true,get:function(){return IntentFilters()}});function Manifest(){const b=_interopRequireWildcard(J(24513));Manifest=function(){return b};return b}Object.defineProperty(S,"Manifest",{enumerable:true,get:function(){return Manifest()}});function Name(){const b=_interopRequireWildcard(J(17758));Name=function(){return b};return b}Object.defineProperty(S,"Name",{enumerable:true,get:function(){return Name()}});function Orientation(){const b=_interopRequireWildcard(J(20844));Orientation=function(){return b};return b}Object.defineProperty(S,"Orientation",{enumerable:true,get:function(){return Orientation()}});function Package(){const b=_interopRequireWildcard(J(45631));Package=function(){return b};return b}Object.defineProperty(S,"Package",{enumerable:true,get:function(){return Package()}});function Paths(){const b=_interopRequireWildcard(J(7572));Paths=function(){return b};return b}Object.defineProperty(S,"Paths",{enumerable:true,get:function(){return Paths()}});function Permissions(){const b=_interopRequireWildcard(J(13164));Permissions=function(){return b};return b}Object.defineProperty(S,"Permissions",{enumerable:true,get:function(){return Permissions()}});function PrimaryColor(){const b=_interopRequireWildcard(J(42638));PrimaryColor=function(){return b};return b}Object.defineProperty(S,"PrimaryColor",{enumerable:true,get:function(){return PrimaryColor()}});function Properties(){const b=_interopRequireWildcard(J(4551));Properties=function(){return b};return b}Object.defineProperty(S,"Properties",{enumerable:true,get:function(){return Properties()}});function Resources(){const b=_interopRequireWildcard(J(14148));Resources=function(){return b};return b}Object.defineProperty(S,"Resources",{enumerable:true,get:function(){return Resources()}});function Scheme(){const b=_interopRequireWildcard(J(60365));Scheme=function(){return b};return b}Object.defineProperty(S,"Scheme",{enumerable:true,get:function(){return Scheme()}});function StatusBar(){const b=_interopRequireWildcard(J(72899));StatusBar=function(){return b};return b}Object.defineProperty(S,"StatusBar",{enumerable:true,get:function(){return StatusBar()}});function Strings(){const b=_interopRequireWildcard(J(88651));Strings=function(){return b};return b}Object.defineProperty(S,"Strings",{enumerable:true,get:function(){return Strings()}});function Styles(){const b=_interopRequireWildcard(J(19769));Styles=function(){return b};return b}Object.defineProperty(S,"Styles",{enumerable:true,get:function(){return Styles()}});function Updates(){const b=_interopRequireWildcard(J(74756));Updates=function(){return b};return b}Object.defineProperty(S,"Updates",{enumerable:true,get:function(){return Updates()}});function Version(){const b=_interopRequireWildcard(J(72793));Version=function(){return b};return b}Object.defineProperty(S,"Version",{enumerable:true,get:function(){return Version()}});function WindowSoftInputMode(){const b=_interopRequireWildcard(J(86990));WindowSoftInputMode=function(){return b};return b}Object.defineProperty(S,"WindowSoftInputMode",{enumerable:true,get:function(){return WindowSoftInputMode()}});function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}},36581:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee={BaseMods:true,AndroidConfig:true,IOSConfig:true,XML:true,History:true,WarningAggregator:true,Updates:true,withPlugins:true,withRunOnce:true,createRunOncePlugin:true,withDangerousMod:true,withFinalizedMod:true,withMod:true,withBaseMod:true,withAppDelegate:true,withInfoPlist:true,withEntitlementsPlist:true,withExpoPlist:true,withXcodeProject:true,withPodfile:true,withPodfileProperties:true,withAndroidManifest:true,withStringsXml:true,withAndroidColors:true,withAndroidColorsNight:true,withAndroidStyles:true,withMainActivity:true,withMainApplication:true,withProjectBuildGradle:true,withAppBuildGradle:true,withSettingsGradle:true,withGradleProperties:true,withStaticPlugin:true,compileModsAsync:true,withDefaultBaseMods:true,evalModsAsync:true,PluginError:true};S.IOSConfig=S.History=S.BaseMods=S.AndroidConfig=void 0;Object.defineProperty(S,"PluginError",{enumerable:true,get:function(){return _errors().PluginError}});S.XML=S.WarningAggregator=S.Updates=void 0;Object.defineProperty(S,"compileModsAsync",{enumerable:true,get:function(){return _modCompiler().compileModsAsync}});Object.defineProperty(S,"createRunOncePlugin",{enumerable:true,get:function(){return _withRunOnce().createRunOncePlugin}});Object.defineProperty(S,"evalModsAsync",{enumerable:true,get:function(){return _modCompiler().evalModsAsync}});Object.defineProperty(S,"withAndroidColors",{enumerable:true,get:function(){return _androidPlugins().withAndroidColors}});Object.defineProperty(S,"withAndroidColorsNight",{enumerable:true,get:function(){return _androidPlugins().withAndroidColorsNight}});Object.defineProperty(S,"withAndroidManifest",{enumerable:true,get:function(){return _androidPlugins().withAndroidManifest}});Object.defineProperty(S,"withAndroidStyles",{enumerable:true,get:function(){return _androidPlugins().withAndroidStyles}});Object.defineProperty(S,"withAppBuildGradle",{enumerable:true,get:function(){return _androidPlugins().withAppBuildGradle}});Object.defineProperty(S,"withAppDelegate",{enumerable:true,get:function(){return _iosPlugins().withAppDelegate}});Object.defineProperty(S,"withBaseMod",{enumerable:true,get:function(){return _withMod().withBaseMod}});Object.defineProperty(S,"withDangerousMod",{enumerable:true,get:function(){return _withDangerousMod().withDangerousMod}});Object.defineProperty(S,"withDefaultBaseMods",{enumerable:true,get:function(){return _modCompiler().withDefaultBaseMods}});Object.defineProperty(S,"withEntitlementsPlist",{enumerable:true,get:function(){return _iosPlugins().withEntitlementsPlist}});Object.defineProperty(S,"withExpoPlist",{enumerable:true,get:function(){return _iosPlugins().withExpoPlist}});Object.defineProperty(S,"withFinalizedMod",{enumerable:true,get:function(){return _withFinalizedMod().withFinalizedMod}});Object.defineProperty(S,"withGradleProperties",{enumerable:true,get:function(){return _androidPlugins().withGradleProperties}});Object.defineProperty(S,"withInfoPlist",{enumerable:true,get:function(){return _iosPlugins().withInfoPlist}});Object.defineProperty(S,"withMainActivity",{enumerable:true,get:function(){return _androidPlugins().withMainActivity}});Object.defineProperty(S,"withMainApplication",{enumerable:true,get:function(){return _androidPlugins().withMainApplication}});Object.defineProperty(S,"withMod",{enumerable:true,get:function(){return _withMod().withMod}});Object.defineProperty(S,"withPlugins",{enumerable:true,get:function(){return _withPlugins().withPlugins}});Object.defineProperty(S,"withPodfile",{enumerable:true,get:function(){return _iosPlugins().withPodfile}});Object.defineProperty(S,"withPodfileProperties",{enumerable:true,get:function(){return _iosPlugins().withPodfileProperties}});Object.defineProperty(S,"withProjectBuildGradle",{enumerable:true,get:function(){return _androidPlugins().withProjectBuildGradle}});Object.defineProperty(S,"withRunOnce",{enumerable:true,get:function(){return _withRunOnce().withRunOnce}});Object.defineProperty(S,"withSettingsGradle",{enumerable:true,get:function(){return _androidPlugins().withSettingsGradle}});Object.defineProperty(S,"withStaticPlugin",{enumerable:true,get:function(){return _withStaticPlugin().withStaticPlugin}});Object.defineProperty(S,"withStringsXml",{enumerable:true,get:function(){return _androidPlugins().withStringsXml}});Object.defineProperty(S,"withXcodeProject",{enumerable:true,get:function(){return _iosPlugins().withXcodeProject}});function AndroidConfig(){const b=_interopRequireWildcard(J(87232));AndroidConfig=function(){return b};return b}Object.defineProperty(S,"AndroidConfig",{enumerable:true,get:function(){return AndroidConfig()}});function IOSConfig(){const b=_interopRequireWildcard(J(65609));IOSConfig=function(){return b};return b}Object.defineProperty(S,"IOSConfig",{enumerable:true,get:function(){return IOSConfig()}});function _createBaseMod(){const b=J(15881);_createBaseMod=function(){return b};return b}function _withAndroidBaseMods(){const b=J(80619);_withAndroidBaseMods=function(){return b};return b}function _withIosBaseMods(){const b=J(37595);_withIosBaseMods=function(){return b};return b}function XML(){const b=_interopRequireWildcard(J(78853));XML=function(){return b};return b}Object.defineProperty(S,"XML",{enumerable:true,get:function(){return XML()}});function History(){const b=_interopRequireWildcard(J(40928));History=function(){return b};return b}Object.defineProperty(S,"History",{enumerable:true,get:function(){return History()}});function WarningAggregator(){const b=_interopRequireWildcard(J(128));WarningAggregator=function(){return b};return b}Object.defineProperty(S,"WarningAggregator",{enumerable:true,get:function(){return WarningAggregator()}});function _Updates(){const b=_interopRequireWildcard(J(3943));_Updates=function(){return b};return b}Object.defineProperty(S,"Updates",{enumerable:true,get:function(){return _Updates()}});var te=J(14019);Object.keys(te).forEach((function(b){if(b==="default"||b==="__esModule")return;if(Object.prototype.hasOwnProperty.call(ee,b))return;if(b in S&&S[b]===te[b])return;Object.defineProperty(S,b,{enumerable:true,get:function(){return te[b]}})}));function _withPlugins(){const b=J(4897);_withPlugins=function(){return b};return b}function _withRunOnce(){const b=J(73700);_withRunOnce=function(){return b};return b}function _withDangerousMod(){const b=J(85876);_withDangerousMod=function(){return b};return b}function _withFinalizedMod(){const b=J(39266);_withFinalizedMod=function(){return b};return b}function _withMod(){const b=J(82932);_withMod=function(){return b};return b}function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _androidPlugins(){const b=J(62636);_androidPlugins=function(){return b};return b}function _withStaticPlugin(){const b=J(77298);_withStaticPlugin=function(){return b};return b}function _modCompiler(){const b=J(20503);_modCompiler=function(){return b};return b}function _errors(){const b=J(13857);_errors=function(){return b};return b}function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}const re=S.BaseMods={withGeneratedBaseMods:_createBaseMod().withGeneratedBaseMods,provider:_createBaseMod().provider,withAndroidBaseMods:_withAndroidBaseMods().withAndroidBaseMods,getAndroidModFileProviders:_withAndroidBaseMods().getAndroidModFileProviders,withIosBaseMods:_withIosBaseMods().withIosBaseMods,getIosModFileProviders:_withIosBaseMods().getIosModFileProviders}},56865:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getBitcode=getBitcode;S.setBitcode=setBitcode;S.setBitcodeWithConfig=setBitcodeWithConfig;S.withCustomBitcode=S.withBitcode=void 0;function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}const withBitcode=b=>(0,_iosPlugins().withXcodeProject)(b,(async b=>{b.modResults=await setBitcodeWithConfig(b,{project:b.modResults});return b}));S.withBitcode=withBitcode;const withCustomBitcode=(b,S)=>(0,_iosPlugins().withXcodeProject)(b,(async b=>{b.modResults=await setBitcode(S,{project:b.modResults});return b}));S.withCustomBitcode=withCustomBitcode;function getBitcode(b){return b.ios?.bitcode}function setBitcodeWithConfig(b,{project:S}){const J=getBitcode(b);return setBitcode(J,{project:S})}function setBitcode(b,{project:S}){const J=b==null;if(J){return S}const ee=typeof b==="string"?b:undefined;const te=!!b;if(ee){const b=Object.entries(S.pbxXCBuildConfigurationSection()).filter(_Xcodeproj().isNotComment);const J=b.find((([,b])=>b.name===ee));if(J){S.addBuildProperty("ENABLE_BITCODE","NO")}else{const S=[...new Set(b.map((([,b])=>`"${b.name}"`)))].sort();(0,_warnings().addWarningIOS)("ios.bitcode",`No configuration named "${ee}". Expected one of: ${S.join(", ")}.`)}}S.addBuildProperty("ENABLE_BITCODE",te?"YES":"NO",ee);return S}},89421:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.createBuildPodfilePropsConfigPlugin=createBuildPodfilePropsConfigPlugin;S.updateIosBuildPropertiesFromConfig=updateIosBuildPropertiesFromConfig;S.updateIosBuildProperty=updateIosBuildProperty;S.withJsEnginePodfileProps=void 0;function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function createBuildPodfilePropsConfigPlugin(b,S){const withUnknown=(S,J)=>(0,_iosPlugins().withPodfileProperties)(S,(S=>{S.modResults=updateIosBuildPropertiesFromConfig(J??S,S.modResults,b);return S}));if(S){Object.defineProperty(withUnknown,"name",{value:S})}return withUnknown}const ee=S.withJsEnginePodfileProps=createBuildPodfilePropsConfigPlugin([{propName:"expo.jsEngine",propValueGetter:b=>b.ios?.jsEngine??b.jsEngine??"hermes"}],"withJsEnginePodfileProps");function updateIosBuildPropertiesFromConfig(b,S,J){for(const ee of J){const J=ee.propValueGetter(b);updateIosBuildProperty(S,ee.propName,J)}return S}function updateIosBuildProperty(b,S,J,ee){if(J){b[S]=J}else if(ee?.removePropWhenValueIsNull){delete b[S]}return b}},14598:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getApplicationTargetNameForSchemeAsync=getApplicationTargetNameForSchemeAsync;S.getArchiveBuildConfigurationForSchemeAsync=getArchiveBuildConfigurationForSchemeAsync;S.getRunnableSchemesFromXcodeproj=getRunnableSchemesFromXcodeproj;S.getSchemesFromXcodeproj=getSchemesFromXcodeproj;function _Paths(){const b=J(63684);_Paths=function(){return b};return b}function _Target(){const b=J(7608);_Target=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _XML(){const b=J(78853);_XML=function(){return b};return b}function getSchemesFromXcodeproj(b){return(0,_Paths().findSchemeNames)(b)}function getRunnableSchemesFromXcodeproj(b,{configuration:S="Debug"}={}){const J=(0,_Xcodeproj().getPbxproj)(b);return(0,_Target().findSignableTargets)(J).map((([,b])=>{let ee="iOS";const te=(0,_Xcodeproj().unquote)(b.productType);if(te===_Target().TargetType.WATCH){ee="watchOS"}else if(te.startsWith(_Target().TargetType.APPLICATION)){const te=J.hash.project.objects.XCConfigurationList[b.buildConfigurationList];if(te){const b=te.buildConfigurations.find((b=>b.comment===S))||te.buildConfigurations[0];if(b?.value){const S=J.hash.project.objects.XCBuildConfiguration?.[b.value];const te=S.buildSettings.SDKROOT;if(te==="appletvos"||"TVOS_DEPLOYMENT_TARGET"in S.buildSettings){ee="tvOS"}else if(te==="iphoneos"){ee="iOS"}}}}return{name:(0,_Xcodeproj().unquote)(b.name),osType:ee,type:(0,_Xcodeproj().unquote)(b.productType)}}))}async function readSchemeAsync(b,S){const J=(0,_Paths().findSchemePaths)(b);const ee=new RegExp(`/${S}.xcscheme`,"i");const te=J.find((b=>ee.exec(b)));if(te){return await(0,_XML().readXMLAsync)({path:te})}else{throw new Error(`scheme '${S}' does not exist, make sure it's marked as shared`)}}async function getApplicationTargetNameForSchemeAsync(b,S){const J=await readSchemeAsync(b,S);const ee=J?.Scheme?.BuildAction?.[0]?.BuildActionEntries?.[0]?.BuildActionEntry;const te=ee?.length===1?getBlueprintName(ee[0]):getBlueprintName(ee?.find((b=>b.BuildableReference?.[0]?.["$"]?.BuildableName?.endsWith(".app"))));if(!te){throw new Error(`${S}.xcscheme seems to be corrupted`)}return te}async function getArchiveBuildConfigurationForSchemeAsync(b,S){const J=await readSchemeAsync(b,S);const ee=J?.Scheme?.ArchiveAction?.[0]?.["$"]?.buildConfiguration;if(!ee){throw new Error(`${S}.xcscheme seems to be corrupted`)}return ee}function getBlueprintName(b){return b?.BuildableReference?.[0]?.["$"]?.BlueprintName}},48285:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getBundleIdentifier=getBundleIdentifier;S.getBundleIdentifierFromPbxproj=getBundleIdentifierFromPbxproj;S.resetAllPlistBundleIdentifiers=resetAllPlistBundleIdentifiers;S.resetPlistBundleIdentifier=resetPlistBundleIdentifier;S.setBundleIdentifier=setBundleIdentifier;S.setBundleIdentifierForPbxproj=setBundleIdentifierForPbxproj;S.updateBundleIdentifierForPbxproj=updateBundleIdentifierForPbxproj;S.withBundleIdentifier=void 0;function _plist(){const b=_interopRequireDefault(J(83681));_plist=function(){return b};return b}function _assert(){const b=_interopRequireDefault(J(39491));_assert=function(){return b};return b}function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _xcode(){const b=_interopRequireDefault(J(49658));_xcode=function(){return b};return b}function _Paths(){const b=J(63684);_Paths=function(){return b};return b}function _Target(){const b=J(7608);_Target=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _string(){const b=J(35996);_string=function(){return b};return b}function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const withBundleIdentifier=(b,{bundleIdentifier:S})=>(0,_iosPlugins().withXcodeProject)(b,(async b=>{const J=S??b.ios?.bundleIdentifier;(0,_assert().default)(J,"`bundleIdentifier` must be defined in the app config (`ios.bundleIdentifier`) or passed to the plugin `withBundleIdentifier`.");b.modResults=updateBundleIdentifierForPbxprojObject(b.modResults,J,false);return b}));S.withBundleIdentifier=withBundleIdentifier;function getBundleIdentifier(b){return b.ios?.bundleIdentifier??null}function setBundleIdentifier(b,S){const J=getBundleIdentifier(b);if(!J){return S}return{...S,CFBundleIdentifier:J}}function getBundleIdentifierFromPbxproj(b,{targetName:S,buildConfiguration:J="Release"}={}){let ee;try{ee=(0,_Paths().getPBXProjectPath)(b)}catch{return null}const te=_xcode().default.project(ee);te.parseSync();const re=(0,_Target().getXCBuildConfigurationFromPbxproj)(te,{targetName:S,buildConfiguration:J});if(!re){return null}return getProductBundleIdentifierFromBuildConfiguration(re)}function getProductBundleIdentifierFromBuildConfiguration(b){const S=b.buildSettings.PRODUCT_BUNDLE_IDENTIFIER;if(S){const J=(0,_string().trimQuotes)(S);return(0,_Xcodeproj().resolveXcodeBuildSetting)(J,(S=>b.buildSettings[S]))}else{return null}}function updateBundleIdentifierForPbxproj(b,S,J=true){const ee=_xcode().default.project(b);ee.parseSync();_fs().default.writeFileSync(b,updateBundleIdentifierForPbxprojObject(ee,S,J).writeSync())}function updateBundleIdentifierForPbxprojObject(b,S,J=true){const[,ee]=(0,_Target().findFirstNativeTarget)(b);(0,_Xcodeproj().getBuildConfigurationsForListId)(b,ee.buildConfigurationList).forEach((([,b])=>{if(b.buildSettings.PRODUCT_BUNDLE_IDENTIFIER===S){return}b.buildSettings.PRODUCT_BUNDLE_IDENTIFIER=`"${S}"`;if(J){const J=S.split(".").pop();if(!J?.includes("$")){b.buildSettings.PRODUCT_NAME=J}}}));return b}function setBundleIdentifierForPbxproj(b,S,J=true){let ee=[];try{ee=(0,_Paths().getAllPBXProjectPaths)(b)}catch{}for(const b of ee){updateBundleIdentifierForPbxproj(b,S,J)}}const ee="$(PRODUCT_BUNDLE_IDENTIFIER)";function resetAllPlistBundleIdentifiers(b){const S=(0,_Paths().getAllInfoPlistPaths)(b);for(const b of S){resetPlistBundleIdentifier(b)}}function resetPlistBundleIdentifier(b){const S=_fs().default.readFileSync(b,"utf8");const J=_plist().default.parse(S);if(J.CFBundleIdentifier){if(J.CFBundleIdentifier===ee)return;const te={pretty:true,indent:`\t`};const re=_plist().default.build({...J,CFBundleIdentifier:ee},te);if(re!==S){_fs().default.writeFileSync(b,re)}}}},78525:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.formatDeviceFamilies=formatDeviceFamilies;S.getDeviceFamilies=getDeviceFamilies;S.getIsTabletOnly=getIsTabletOnly;S.getSupportsTablet=getSupportsTablet;S.setDeviceFamily=setDeviceFamily;S.withDeviceFamily=void 0;function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}const withDeviceFamily=b=>(0,_iosPlugins().withXcodeProject)(b,(async b=>{b.modResults=await setDeviceFamily(b,{project:b.modResults});return b}));S.withDeviceFamily=withDeviceFamily;function getSupportsTablet(b){return!!b.ios?.supportsTablet}function getIsTabletOnly(b){return!!b?.ios?.isTabletOnly}function getDeviceFamilies(b){const S=getSupportsTablet(b);const J=getIsTabletOnly(b);if(J&&b.ios?.supportsTablet===false){(0,_warnings().addWarningIOS)("ios.supportsTablet",`Found contradictory values: \`{ ios: { isTabletOnly: true, supportsTablet: false } }\`. Using \`{ isTabletOnly: true }\`.`)}if(J){return[2]}else if(S){return[1,2]}else{return[1]}}function formatDeviceFamilies(b){return`"${b.join(",")}"`}function setDeviceFamily(b,{project:S}){const J=formatDeviceFamilies(getDeviceFamilies(b));const ee=S.pbxXCBuildConfigurationSection();for(const{buildSettings:b}of Object.values(ee||{})){if(typeof b?.PRODUCT_NAME!=="undefined"){if(typeof b?.TVOS_DEPLOYMENT_TARGET!=="undefined"){b.TARGETED_DEVICE_FAMILY="3"}else{b.TARGETED_DEVICE_FAMILY=J}}}return S}},94431:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.ensureApplicationTargetEntitlementsFileConfigured=ensureApplicationTargetEntitlementsFileConfigured;S.getEntitlementsPath=getEntitlementsPath;S.setAssociatedDomains=setAssociatedDomains;S.withAssociatedDomains=void 0;function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _slash(){const b=_interopRequireDefault(J(63645));_slash=function(){return b};return b}function _Target(){const b=J(7608);_Target=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _string(){const b=J(35996);_string=function(){return b};return b}function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee=S.withAssociatedDomains=(0,_iosPlugins().createEntitlementsPlugin)(setAssociatedDomains,"withAssociatedDomains");function setAssociatedDomains(b,{"com.apple.developer.associated-domains":S,...J}){if(b.ios?.associatedDomains){return{...J,"com.apple.developer.associated-domains":b.ios.associatedDomains}}return J}function getEntitlementsPath(b,{targetName:S,buildConfiguration:J="Release"}={}){const ee=(0,_Xcodeproj().getPbxproj)(b);const te=(0,_Target().getXCBuildConfigurationFromPbxproj)(ee,{targetName:S,buildConfiguration:J});if(!te){return null}const re=getEntitlementsPathFromBuildConfiguration(b,te);return re&&_fs().default.existsSync(re)?re:null}function getEntitlementsPathFromBuildConfiguration(b,S){const J=S?.buildSettings?.CODE_SIGN_ENTITLEMENTS;if(J){return _path().default.normalize(_path().default.join(b,"ios",(0,_string().trimQuotes)(J)))}else{return null}}function ensureApplicationTargetEntitlementsFileConfigured(b){const S=(0,_Xcodeproj().getPbxproj)(b);const J=(0,_Xcodeproj().getProjectName)(b);const ee=(0,_Xcodeproj().getProductName)(S);const[,re]=(0,_Target().findFirstNativeTarget)(S);const ne=(0,_Xcodeproj().getBuildConfigurationsForListId)(S,re.buildConfigurationList);let ie=false;for(const[,S]of ne){const re=getEntitlementsPathFromBuildConfiguration(b,S);if(re&&_fs().default.existsSync(re)){return}ie=true;const ne=(0,_slash().default)(_path().default.join(J,`${ee}.entitlements`));const oe=_path().default.normalize(_path().default.join(b,"ios",ne));_fs().default.mkdirSync(_path().default.dirname(oe),{recursive:true});if(!_fs().default.existsSync(oe)){_fs().default.writeFileSync(oe,te)}S.buildSettings.CODE_SIGN_ENTITLEMENTS=ne}if(ie){_fs().default.writeFileSync(S.filepath,S.writeSync())}}const te=`\n<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n<plist version="1.0">\n<dict>\n</dict>\n</plist>\n`},3436:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getGoogleServicesFile=getGoogleServicesFile;S.getGoogleSignInReversedClientId=getGoogleSignInReversedClientId;S.setGoogleConfig=setGoogleConfig;S.setGoogleServicesFile=setGoogleServicesFile;S.setGoogleSignInReversedClientId=setGoogleSignInReversedClientId;S.withGoogleServicesFile=S.withGoogle=void 0;function _plist(){const b=_interopRequireDefault(J(83681));_plist=function(){return b};return b}function _assert(){const b=_interopRequireDefault(J(39491));_assert=function(){return b};return b}function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _Paths(){const b=J(63684);_Paths=function(){return b};return b}function _Scheme(){const b=J(27903);_Scheme=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const withGoogle=b=>(0,_iosPlugins().withInfoPlist)(b,(b=>{b.modResults=setGoogleConfig(b,b.modResults,b.modRequest);return b}));S.withGoogle=withGoogle;const withGoogleServicesFile=b=>(0,_iosPlugins().withXcodeProject)(b,(b=>{b.modResults=setGoogleServicesFile(b,{projectRoot:b.modRequest.projectRoot,project:b.modResults});return b}));S.withGoogleServicesFile=withGoogleServicesFile;function readGoogleServicesInfoPlist(b,{projectRoot:S}){const J=_path().default.resolve(S,b);const ee=_fs().default.readFileSync(J,"utf8");(0,_assert().default)(ee,"GoogleService-Info.plist is empty");return _plist().default.parse(ee)}function getGoogleSignInReversedClientId(b,S){const J=getGoogleServicesFile(b);if(J===null){return null}const ee=readGoogleServicesInfoPlist(J,S);return ee.REVERSED_CLIENT_ID??null}function getGoogleServicesFile(b){return b.ios?.googleServicesFile??null}function setGoogleSignInReversedClientId(b,S,J){const ee=getGoogleSignInReversedClientId(b,J);if(ee===null){return S}return(0,_Scheme().appendScheme)(ee,S)}function setGoogleConfig(b,S,J){S=setGoogleSignInReversedClientId(b,S,J);return S}function setGoogleServicesFile(b,{projectRoot:S,project:J}){const ee=getGoogleServicesFile(b);if(ee===null){return J}const te=_path().default.resolve(S,ee);_fs().default.copyFileSync(te,_path().default.join((0,_Paths().getSourceRoot)(S),"GoogleService-Info.plist"));const re=(0,_Xcodeproj().getProjectName)(S);const ne=`${re}/GoogleService-Info.plist`;if(!J.hasFile(ne)){J=(0,_Xcodeproj().addResourceFileToGroup)({filepath:ne,groupName:re,project:J,isBuildFile:true,verbose:true})}return J}},84695:()=>{"use strict"},3949:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getLocales=getLocales;S.getResolvedLocalesAsync=getResolvedLocalesAsync;S.setLocalesAsync=setLocalesAsync;S.withLocales=void 0;function _jsonFile(){const b=_interopRequireDefault(J(66282));_jsonFile=function(){return b};return b}function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _path(){const b=J(71017);_path=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const withLocales=b=>(0,_iosPlugins().withXcodeProject)(b,(async b=>{b.modResults=await setLocalesAsync(b,{projectRoot:b.modRequest.projectRoot,project:b.modResults});return b}));S.withLocales=withLocales;function getLocales(b){return b.locales??null}async function setLocalesAsync(b,{projectRoot:S,project:J}){const ee=getLocales(b);if(!ee){return J}const te=await getResolvedLocalesAsync(S,ee);const re=(0,_Xcodeproj().getProjectName)(S);const ne=(0,_path().join)(S,"ios",re,"Supporting");const ie="InfoPlist.strings";for(const[b,S]of Object.entries(te)){const ee=(0,_path().join)(ne,`${b}.lproj`);await _fs().default.promises.mkdir(ee,{recursive:true});const te=(0,_path().join)(ee,ie);const oe=[];for(const[b,J]of Object.entries(S)){oe.push(`${b} = "${J}";`)}await _fs().default.promises.writeFile(te,oe.join("\n"));const se=`${re}/Supporting/${b}.lproj`;const ae=(0,_Xcodeproj().ensureGroupRecursively)(J,se);if(!ae?.children.some((({comment:b})=>b===ie))){J=(0,_Xcodeproj().addResourceFileToGroup)({filepath:(0,_path().relative)(ne,te),groupName:se,project:J,isBuildFile:true,verbose:true})}}return J}async function getResolvedLocalesAsync(b,S){const J={};for(const[ee,te]of Object.entries(S)){if(typeof te==="string"){try{J[ee]=await _jsonFile().default.readAsync((0,_path().join)(b,te))}catch{(0,_warnings().addWarningIOS)(`locales.${ee}`,`Failed to parse JSON of locale file for language: ${ee}`,"https://docs.expo.dev/distribution/app-stores/#localizing-your-ios-app")}}else{J[ee]=te}}return J}},74105:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.MATCH_INIT=void 0;S.addGoogleMapsAppDelegateImport=addGoogleMapsAppDelegateImport;S.addGoogleMapsAppDelegateInit=addGoogleMapsAppDelegateInit;S.addMapsCocoaPods=addMapsCocoaPods;S.getGoogleMapsApiKey=getGoogleMapsApiKey;S.removeGoogleMapsAppDelegateImport=removeGoogleMapsAppDelegateImport;S.removeGoogleMapsAppDelegateInit=removeGoogleMapsAppDelegateInit;S.removeMapsCocoaPods=removeMapsCocoaPods;S.setGoogleMapsApiKey=setGoogleMapsApiKey;S.withMaps=void 0;function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _resolveFrom(){const b=_interopRequireDefault(J(12753));_resolveFrom=function(){return b};return b}function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _generateCode(){const b=J(50017);_generateCode=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee=J(67984)("expo:config-plugins:ios:maps");const te=S.MATCH_INIT=/-\s*\(BOOL\)\s*application:\s*\(UIApplication\s*\*\s*\)\s*\w+\s+didFinishLaunchingWithOptions:/g;const re=(0,_iosPlugins().createInfoPlistPlugin)(setGoogleMapsApiKey,"withGoogleMapsKey");const withMaps=b=>{b=re(b);const S=getGoogleMapsApiKey(b);ee("Google Maps API Key:",S);b=withMapsCocoaPods(b,{useGoogleMaps:!!S});b=withGoogleMapsAppDelegate(b,{apiKey:S});return b};S.withMaps=withMaps;function getGoogleMapsApiKey(b){return b.ios?.config?.googleMapsApiKey??null}function setGoogleMapsApiKey(b,{GMSApiKey:S,...J}){const ee=getGoogleMapsApiKey(b);if(ee===null){return J}return{...J,GMSApiKey:ee}}function addGoogleMapsAppDelegateImport(b){const S=[];S.push("#if __has_include(<GoogleMaps/GoogleMaps.h>)","#import <GoogleMaps/GoogleMaps.h>","#endif");return(0,_generateCode().mergeContents)({tag:"react-native-maps-import",src:b,newSrc:S.join("\n"),anchor:/#import "AppDelegate\.h"/,offset:1,comment:"//"})}function removeGoogleMapsAppDelegateImport(b){return(0,_generateCode().removeContents)({tag:"react-native-maps-import",src:b})}function addGoogleMapsAppDelegateInit(b,S){const J=[];J.push("#if __has_include(<GoogleMaps/GoogleMaps.h>)",` [GMSServices provideAPIKey:@"${S}"];`,"#endif");return(0,_generateCode().mergeContents)({tag:"react-native-maps-init",src:b,newSrc:J.join("\n"),anchor:te,offset:2,comment:"//"})}function removeGoogleMapsAppDelegateInit(b){return(0,_generateCode().removeContents)({tag:"react-native-maps-init",src:b})}function addMapsCocoaPods(b){return(0,_generateCode().mergeContents)({tag:"react-native-maps",src:b,newSrc:` pod 'react-native-google-maps', path: File.dirname(\`node --print "require.resolve('react-native-maps/package.json')"\`)`,anchor:/use_native_modules/,offset:0,comment:"#"})}function removeMapsCocoaPods(b){return(0,_generateCode().removeContents)({tag:"react-native-maps",src:b})}function isReactNativeMapsInstalled(b){const S=_resolveFrom().default.silent(b,"react-native-maps/package.json");return S?_path().default.dirname(S):null}function isReactNativeMapsAutolinked(b){return true}const withMapsCocoaPods=(b,{useGoogleMaps:S})=>(0,_iosPlugins().withPodfile)(b,(async b=>{const J=isReactNativeMapsInstalled(b.modRequest.projectRoot);const te=isReactNativeMapsAutolinked(b);ee("Is Expo Autolinked:",te);ee("react-native-maps path:",J);let re;if(te&&J&&S){try{re=addMapsCocoaPods(b.modResults.contents)}catch(b){if(b.code==="ERR_NO_MATCH"){throw new Error(`Cannot add react-native-maps to the project's ios/Podfile because it's malformed. Please report this with a copy of your project Podfile.`)}throw b}}else{re=removeMapsCocoaPods(b.modResults.contents)}if(re.didMerge||re.didClear){b.modResults.contents=re.contents}return b}));const withGoogleMapsAppDelegate=(b,{apiKey:S})=>(0,_iosPlugins().withAppDelegate)(b,(b=>{if(["objc","objcpp"].includes(b.modResults.language)){if(S&&isReactNativeMapsAutolinked(b)&&isReactNativeMapsInstalled(b.modRequest.projectRoot)){try{b.modResults.contents=addGoogleMapsAppDelegateImport(b.modResults.contents).contents;b.modResults.contents=addGoogleMapsAppDelegateInit(b.modResults.contents,S).contents}catch(b){if(b.code==="ERR_NO_MATCH"){throw new Error(`Cannot add Google Maps to the project's AppDelegate because it's malformed. Please report this with a copy of your project AppDelegate.`)}throw b}}else{b.modResults.contents=removeGoogleMapsAppDelegateImport(b.modResults.contents).contents;b.modResults.contents=removeGoogleMapsAppDelegateInit(b.modResults.contents).contents}}else{throw new Error(`Cannot setup Google Maps because the project AppDelegate is not a supported language: ${b.modResults.language}`)}return b}))},96867:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getName=getName;S.setDisplayName=setDisplayName;S.setName=setName;S.setProductName=setProductName;S.withProductName=S.withName=S.withDisplayName=void 0;function _Target(){const b=J(7608);_Target=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}const ee=S.withDisplayName=(0,_iosPlugins().createInfoPlistPluginWithPropertyGuard)(setDisplayName,{infoPlistProperty:"CFBundleDisplayName",expoConfigProperty:"name"},"withDisplayName");const te=S.withName=(0,_iosPlugins().createInfoPlistPluginWithPropertyGuard)(setName,{infoPlistProperty:"CFBundleName",expoConfigProperty:"name"},"withName");const withProductName=b=>(0,_iosPlugins().withXcodeProject)(b,(b=>{b.modResults=setProductName(b,b.modResults);return b}));S.withProductName=withProductName;function getName(b){return typeof b.name==="string"?b.name:null}function setDisplayName(b,{CFBundleDisplayName:S,...J}){let ee=null;if(typeof b==="string"){ee=b}else{ee=getName(b)}if(!ee){return J}return{...J,CFBundleDisplayName:ee}}function setName(b,{CFBundleName:S,...J}){const ee=getName(b);if(!ee){return J}return{...J,CFBundleName:ee}}function setProductName(b,S){const J=(0,_Xcodeproj().sanitizedName)(getName(b)??"");if(!J){return S}const ee=ensureQuotes(J);const[,te]=(0,_Target().findFirstNativeTarget)(S);(0,_Xcodeproj().getBuildConfigurationsForListId)(S,te.buildConfigurationList).forEach((([,b])=>{b.buildSettings.PRODUCT_NAME=ee}));return S}const ensureQuotes=b=>{if(!b.match(/^['"]/)){return`"${b}"`}return b}},74136:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.PORTRAIT_ORIENTATIONS=S.LANDSCAPE_ORIENTATIONS=void 0;S.getOrientation=getOrientation;S.setOrientation=setOrientation;S.withOrientation=void 0;function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}const ee=S.withOrientation=(0,_iosPlugins().createInfoPlistPluginWithPropertyGuard)(setOrientation,{infoPlistProperty:"UISupportedInterfaceOrientations",expoConfigProperty:"orientation"},"withOrientation");function getOrientation(b){return b.orientation??null}const te=S.PORTRAIT_ORIENTATIONS=["UIInterfaceOrientationPortrait","UIInterfaceOrientationPortraitUpsideDown"];const re=S.LANDSCAPE_ORIENTATIONS=["UIInterfaceOrientationLandscapeLeft","UIInterfaceOrientationLandscapeRight"];function getUISupportedInterfaceOrientations(b){if(b==="portrait"){return te}else if(b==="landscape"){return re}else{return[...te,...re]}}function setOrientation(b,S){const J=getOrientation(b);return{...S,UISupportedInterfaceOrientations:getUISupportedInterfaceOrientations(J)}}},63684:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.findSchemeNames=findSchemeNames;S.findSchemePaths=findSchemePaths;S.getAllEntitlementsPaths=getAllEntitlementsPaths;S.getAllInfoPlistPaths=getAllInfoPlistPaths;S.getAllPBXProjectPaths=getAllPBXProjectPaths;S.getAllXcodeProjectPaths=getAllXcodeProjectPaths;S.getAppDelegate=getAppDelegate;S.getAppDelegateFilePath=getAppDelegateFilePath;S.getAppDelegateHeaderFilePath=getAppDelegateHeaderFilePath;S.getAppDelegateObjcHeaderFilePath=getAppDelegateObjcHeaderFilePath;S.getEntitlementsPath=getEntitlementsPath;S.getExpoPlistPath=getExpoPlistPath;S.getFileInfo=getFileInfo;S.getInfoPlistPath=getInfoPlistPath;S.getPBXProjectPath=getPBXProjectPath;S.getPodfilePath=getPodfilePath;S.getSourceRoot=getSourceRoot;S.getSupportingPath=getSupportingPath;S.getXcodeProjectPath=getXcodeProjectPath;function _fs(){const b=J(57147);_fs=function(){return b};return b}function _glob(){const b=J(17682);_glob=function(){return b};return b}function path(){const b=_interopRequireWildcard(J(71017));path=function(){return b};return b}function Entitlements(){const b=_interopRequireWildcard(J(94431));Entitlements=function(){return b};return b}function _errors(){const b=J(13857);_errors=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}const ee=["**/@(Carthage|Pods|vendor|node_modules)/**"];function getAppDelegateHeaderFilePath(b){const[S,...J]=(0,_glob().sync)("ios/*/AppDelegate.h",{absolute:true,cwd:b,ignore:ee});if(!S){throw new(_errors().UnexpectedError)(`Could not locate a valid AppDelegate header at root: "${b}"`)}if(J.length){warnMultipleFiles({tag:"app-delegate-header",fileName:"AppDelegate",projectRoot:b,using:S,extra:J})}return S}function getAppDelegateFilePath(b){const[S,...J]=(0,_glob().sync)("ios/*/AppDelegate.@(m|mm|swift)",{absolute:true,cwd:b,ignore:ee});if(!S){throw new(_errors().UnexpectedError)(`Could not locate a valid AppDelegate at root: "${b}"`)}if(J.length){warnMultipleFiles({tag:"app-delegate",fileName:"AppDelegate",projectRoot:b,using:S,extra:J})}return S}function getAppDelegateObjcHeaderFilePath(b){const[S,...J]=(0,_glob().sync)("ios/*/AppDelegate.h",{absolute:true,cwd:b,ignore:ee});if(!S){throw new(_errors().UnexpectedError)(`Could not locate a valid AppDelegate.h at root: "${b}"`)}if(J.length){warnMultipleFiles({tag:"app-delegate-objc-header",fileName:"AppDelegate.h",projectRoot:b,using:S,extra:J})}return S}function getPodfilePath(b){const[S,...J]=(0,_glob().sync)("ios/Podfile",{absolute:true,cwd:b,ignore:ee});if(!S){throw new(_errors().UnexpectedError)(`Could not locate a valid Podfile at root: "${b}"`)}if(J.length){warnMultipleFiles({tag:"podfile",fileName:"Podfile",projectRoot:b,using:S,extra:J})}return S}function getLanguage(b){const S=path().extname(b);if(!S&&path().basename(b)==="Podfile"){return"rb"}switch(S){case".mm":return"objcpp";case".m":case".h":return"objc";case".swift":return"swift";default:throw new(_errors().UnexpectedError)(`Unexpected iOS file extension: ${S}`)}}function getFileInfo(b){return{path:path().normalize(b),contents:(0,_fs().readFileSync)(b,"utf8"),language:getLanguage(b)}}function getAppDelegate(b){const S=getAppDelegateFilePath(b);return getFileInfo(S)}function getSourceRoot(b){const S=getAppDelegate(b);return path().dirname(S.path)}function findSchemePaths(b){return(0,_glob().sync)("ios/*.xcodeproj/xcshareddata/xcschemes/*.xcscheme",{absolute:true,cwd:b,ignore:ee})}function findSchemeNames(b){const S=findSchemePaths(b);return S.map((b=>path().parse(b).name))}function getAllXcodeProjectPaths(b){const S="ios";const J=(0,_glob().sync)("ios/**/*.xcodeproj",{cwd:b,ignore:ee}).filter((b=>!/test|example|sample/i.test(b)||path().dirname(b)===S)).sort().sort(((b,J)=>{const ee=path().dirname(b)===S;const te=path().dirname(J)===S;if(ee&&te||!ee&&!te){return 0}return ee?-1:1}));if(!J.length){throw new(_errors().UnexpectedError)(`Failed to locate the ios/*.xcodeproj files relative to path "${b}".`)}return J.map((S=>path().join(b,S)))}function getXcodeProjectPath(b){const[S,...J]=getAllXcodeProjectPaths(b);if(J.length){warnMultipleFiles({tag:"xcodeproj",fileName:"*.xcodeproj",projectRoot:b,using:S,extra:J})}return S}function getAllPBXProjectPaths(b){const S=getAllXcodeProjectPaths(b);const J=S.map((b=>path().join(b,"project.pbxproj"))).filter((b=>(0,_fs().existsSync)(b)));if(!J.length){throw new(_errors().UnexpectedError)(`Failed to locate the ios/*.xcodeproj/project.pbxproj files relative to path "${b}".`)}return J}function getPBXProjectPath(b){const[S,...J]=getAllPBXProjectPaths(b);if(J.length){warnMultipleFiles({tag:"project-pbxproj",fileName:"project.pbxproj",projectRoot:b,using:S,extra:J})}return S}function getAllInfoPlistPaths(b){const S=(0,_glob().sync)("ios/*/Info.plist",{absolute:true,cwd:b,ignore:ee}).sort(((b,S)=>b.length-S.length));if(!S.length){throw new(_errors().UnexpectedError)(`Failed to locate Info.plist files relative to path "${b}".`)}return S}function getInfoPlistPath(b){const[S,...J]=getAllInfoPlistPaths(b);if(J.length){warnMultipleFiles({tag:"info-plist",fileName:"Info.plist",projectRoot:b,using:S,extra:J})}return S}function getAllEntitlementsPaths(b){const S=(0,_glob().sync)("ios/*/*.entitlements",{absolute:true,cwd:b,ignore:ee});return S}function getEntitlementsPath(b){return Entitlements().getEntitlementsPath(b)}function getSupportingPath(b){return path().resolve(b,"ios",path().basename(getSourceRoot(b)),"Supporting")}function getExpoPlistPath(b){const S=getSupportingPath(b);return path().join(S,"Expo.plist")}function warnMultipleFiles({tag:b,fileName:S,projectRoot:J,using:ee,extra:te}){const re=J?path().relative(J,ee):ee;const ne=J?te.map((b=>path().relative(J,b))):te;(0,_warnings().addWarningIOS)(`paths-${b}`,`Found multiple ${S} file paths, using "${re}". Ignored paths: ${JSON.stringify(ne)}`)}},73850:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.applyPermissions=applyPermissions;S.createPermissionsPlugin=createPermissionsPlugin;function _debug(){const b=_interopRequireDefault(J(67984));_debug=function(){return b};return b}function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee=(0,_debug().default)("expo:config-plugins:ios:permissions");function applyPermissions(b,S,J){const te=Object.entries(b);if(te.length===0){ee(`No defaults provided: ${JSON.stringify(S)}`)}for(const[b,re]of te){if(S[b]===false){ee(`Deleting "${b}"`);delete J[b]}else{J[b]=S[b]||J[b]||re;ee(`Setting "${b}" to "${J[b]}"`)}}return J}function createPermissionsPlugin(b,S){const withIosPermissions=(S,J)=>(0,_iosPlugins().withInfoPlist)(S,(async S=>{S.modResults=applyPermissions(b,J,S.modResults);return S}));if(S){Object.defineProperty(withIosPermissions,"name",{value:S})}return withIosPermissions}},8262:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.mergePrivacyInfo=mergePrivacyInfo;S.setPrivacyInfo=setPrivacyInfo;S.withPrivacyInfo=withPrivacyInfo;function _plist(){const b=_interopRequireDefault(J(83681));_plist=function(){return b};return b}function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _(){const b=J(36581);_=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function withPrivacyInfo(b){const S=b.ios?.privacyManifests;if(!S){return b}return(0,_().withXcodeProject)(b,(b=>setPrivacyInfo(b,S)))}function setPrivacyInfo(b,S){const{projectRoot:J,platformProjectRoot:ee}=b.modRequest;const te=(0,_Xcodeproj().getProjectName)(J);const re=_path().default.join(ee,te,"PrivacyInfo.xcprivacy");const ne=getFileContents(re);const ie=ne?_plist().default.parse(ne):{};const oe=mergePrivacyInfo(ie,S);const se=_plist().default.build(oe);ensureFileExists(re,se);if(!b.modResults.hasFile(re)){b.modResults=(0,_Xcodeproj().addResourceFileToGroup)({filepath:_path().default.join(te,"PrivacyInfo.xcprivacy"),groupName:te,project:b.modResults,isBuildFile:true,verbose:true})}return b}function getFileContents(b){if(!_fs().default.existsSync(b)){return null}return _fs().default.readFileSync(b,{encoding:"utf8"})}function ensureFileExists(b,S){if(!_fs().default.existsSync(_path().default.dirname(b))){_fs().default.mkdirSync(_path().default.dirname(b),{recursive:true})}_fs().default.writeFileSync(b,S)}function mergePrivacyInfo(b,S){let{NSPrivacyAccessedAPITypes:J=[],NSPrivacyCollectedDataTypes:ee=[],NSPrivacyTracking:te=false,NSPrivacyTrackingDomains:re=[]}=structuredClone(b);te=S.NSPrivacyTracking??b.NSPrivacyTracking??false;S.NSPrivacyAccessedAPITypes?.forEach((b=>{const S=J.find((S=>S.NSPrivacyAccessedAPIType===b.NSPrivacyAccessedAPIType));if(!S){J.push(b)}else{S.NSPrivacyAccessedAPITypeReasons=[...new Set(S?.NSPrivacyAccessedAPITypeReasons?.concat(...b.NSPrivacyAccessedAPITypeReasons))]}}));S.NSPrivacyCollectedDataTypes?.forEach((b=>{const S=ee.find((S=>S.NSPrivacyCollectedDataType===b.NSPrivacyCollectedDataType));if(!S){ee.push(b)}else{S.NSPrivacyCollectedDataTypePurposes=[...new Set(S?.NSPrivacyCollectedDataTypePurposes?.concat(...b.NSPrivacyCollectedDataTypePurposes))]}}));re=[...new Set(re.concat(S.NSPrivacyTrackingDomains??[]))];return{NSPrivacyAccessedAPITypes:J,NSPrivacyCollectedDataTypes:ee,NSPrivacyTracking:te,NSPrivacyTrackingDomains:re}}},76320:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.setProvisioningProfileForPbxproj=setProvisioningProfileForPbxproj;function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _Target(){const b=J(7608);_Target=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _string(){const b=J(35996);_string=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function setProvisioningProfileForPbxproj(b,{targetName:S,profileName:J,appleTeamId:ee,buildConfiguration:te="Release"}){const re=(0,_Xcodeproj().getPbxproj)(b);const ne=S?(0,_Target().findNativeTargetByName)(re,S):(0,_Target().findFirstNativeTarget)(re);const[ie,oe]=ne;const se=ensureQuotes(ee);(0,_Xcodeproj().getBuildConfigurationsForListId)(re,oe.buildConfigurationList).filter((([,b])=>(0,_string().trimQuotes)(b.name)===te)).forEach((([,b])=>{b.buildSettings.PROVISIONING_PROFILE_SPECIFIER=`"${J}"`;b.buildSettings.DEVELOPMENT_TEAM=se;b.buildSettings.CODE_SIGN_IDENTITY='"iPhone Distribution"';b.buildSettings.CODE_SIGN_STYLE="Manual"}));Object.entries((0,_Xcodeproj().getProjectSection)(re)).filter(_Xcodeproj().isNotComment).forEach((([,b])=>{if(!b.attributes.TargetAttributes[ie]){b.attributes.TargetAttributes[ie]={}}b.attributes.TargetAttributes[ie].DevelopmentTeam=se;b.attributes.TargetAttributes[ie].ProvisioningStyle="Manual"}));_fs().default.writeFileSync(re.filepath,re.writeSync())}const ensureQuotes=b=>{if(!b.match(/^['"]/)){return`"${b}"`}return b}},63367:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getRequiresFullScreen=getRequiresFullScreen;S.setRequiresFullScreen=setRequiresFullScreen;S.withRequiresFullScreen=void 0;function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _versions(){const b=J(194);_versions=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}const ee=S.withRequiresFullScreen=(0,_iosPlugins().createInfoPlistPlugin)(setRequiresFullScreen,"withRequiresFullScreen");function getRequiresFullScreen(b){if(b.ios?.hasOwnProperty("requireFullScreen")){return!!b.ios.requireFullScreen}else{if((0,_versions().gteSdkVersion)(b,"43.0.0")){return false}return true}}const te="UISupportedInterfaceOrientations~ipad";const re=["UIInterfaceOrientationPortrait","UIInterfaceOrientationPortraitUpsideDown","UIInterfaceOrientationLandscapeLeft","UIInterfaceOrientationLandscapeRight"];function isStringArray(b){return Array.isArray(b)&&b.every((b=>typeof b==="string"))}function hasMinimumOrientations(b){return re.every((S=>b.includes(S)))}function resolveExistingIpadInterfaceOrientations(b){if(isStringArray(b)&&b.length&&!hasMinimumOrientations(b)){const S=b.join(", ");(0,_warnings().addWarningIOS)("ios.requireFullScreen",`iPad multitasking requires all \`${te}\` orientations to be defined in the Info.plist. The Info.plist currently defines values that are incompatible with multitasking, these will be overwritten to prevent submission failure. Existing: ${S}`);return b}return[]}function setRequiresFullScreen(b,S){const J=getRequiresFullScreen(b);if(!J){const b=resolveExistingIpadInterfaceOrientations(S[te]);S[te]=[...new Set(b.concat(re))]}return{...S,UIRequiresFullScreen:J}}},27903:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.appendScheme=appendScheme;S.getScheme=getScheme;S.getSchemesFromPlist=getSchemesFromPlist;S.hasScheme=hasScheme;S.removeScheme=removeScheme;S.setScheme=setScheme;S.withScheme=void 0;function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}const ee=S.withScheme=(0,_iosPlugins().createInfoPlistPluginWithPropertyGuard)(setScheme,{infoPlistProperty:"CFBundleURLTypes",expoConfigProperty:"scheme"},"withScheme");function getScheme(b){if(Array.isArray(b.scheme)){const validate=b=>typeof b==="string";return b.scheme.filter(validate)}else if(typeof b.scheme==="string"){return[b.scheme]}return[]}function setScheme(b,S){const J=[...getScheme(b),...getScheme(b.ios??{})];if(b.ios?.bundleIdentifier){J.push(b.ios.bundleIdentifier)}if(J.length===0){return S}return{...S,CFBundleURLTypes:[{CFBundleURLSchemes:J}]}}function appendScheme(b,S){if(!b){return S}const J=S.CFBundleURLTypes??[];if(J?.some((({CFBundleURLSchemes:S})=>S.includes(b)))){return S}return{...S,CFBundleURLTypes:[...J,{CFBundleURLSchemes:[b]}]}}function removeScheme(b,S){if(!b){return S}if(!S.CFBundleURLTypes){return S}S.CFBundleURLTypes=S.CFBundleURLTypes.map((S=>{const J=S.CFBundleURLSchemes.indexOf(b);if(J>-1){S.CFBundleURLSchemes.splice(J,1);if(S.CFBundleURLSchemes.length===0){return undefined}}return S})).filter(Boolean);return S}function hasScheme(b,S){const J=S.CFBundleURLTypes;if(!Array.isArray(J))return false;return J?.some((({CFBundleURLSchemes:S})=>Array.isArray(S)?S.includes(b):false))}function getSchemesFromPlist(b){if(Array.isArray(b.CFBundleURLTypes)){return b.CFBundleURLTypes.reduce(((b,{CFBundleURLSchemes:S})=>{if(Array.isArray(S)){return[...b,...S]}return b}),[])}return[]}},42630:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.createBridgingHeaderFile=createBridgingHeaderFile;S.ensureSwiftBridgingHeaderSetup=ensureSwiftBridgingHeaderSetup;S.getDesignatedSwiftBridgingHeaderFileReference=getDesignatedSwiftBridgingHeaderFileReference;S.linkBridgingHeaderFile=linkBridgingHeaderFile;S.withSwiftBridgingHeader=S.withNoopSwiftFile=void 0;function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _Paths(){const b=J(63684);_Paths=function(){return b};return b}function _XcodeProjectFile(){const b=J(59577);_XcodeProjectFile=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee=`//\n// Use this file to import your target's public headers that you would like to expose to Swift.\n//\n`;const withSwiftBridgingHeader=b=>(0,_iosPlugins().withXcodeProject)(b,(b=>{b.modResults=ensureSwiftBridgingHeaderSetup({project:b.modResults,projectRoot:b.modRequest.projectRoot});return b}));S.withSwiftBridgingHeader=withSwiftBridgingHeader;function ensureSwiftBridgingHeaderSetup({projectRoot:b,project:S}){if(shouldCreateSwiftBridgingHeader({projectRoot:b,project:S})){const J=(0,_Xcodeproj().getProjectName)(b);const ee=createBridgingHeaderFileName(J);S=createBridgingHeaderFile({project:S,projectName:J,projectRoot:b,bridgingHeader:ee});S=linkBridgingHeaderFile({project:S,bridgingHeader:_path().default.join(J,ee)})}return S}function shouldCreateSwiftBridgingHeader({projectRoot:b,project:S}){const J=(0,_Paths().getAppDelegate)(b).language!=="swift";return J&&!getDesignatedSwiftBridgingHeaderFileReference({project:S})}function createBridgingHeaderFileName(b){return`${b}-Bridging-Header.h`}function getDesignatedSwiftBridgingHeaderFileReference({project:b}){const S=b.pbxXCBuildConfigurationSection();for(const{buildSettings:b}of Object.values(S||{})){if(typeof b?.PRODUCT_NAME!=="undefined"){if(typeof b.SWIFT_OBJC_BRIDGING_HEADER==="string"&&b.SWIFT_OBJC_BRIDGING_HEADER){return b.SWIFT_OBJC_BRIDGING_HEADER}}}return null}function linkBridgingHeaderFile({project:b,bridgingHeader:S}){const J=b.pbxXCBuildConfigurationSection();for(const{buildSettings:b}of Object.values(J||{})){if(typeof b?.PRODUCT_NAME!=="undefined"){b.SWIFT_OBJC_BRIDGING_HEADER=S}}return b}function createBridgingHeaderFile({projectRoot:b,projectName:S,project:J,bridgingHeader:te}){const re=_path().default.join((0,_Paths().getSourceRoot)(b),te);if(!_fs().default.existsSync(re)){_fs().default.writeFileSync(re,ee,"utf8")}const ne=`${S}/${te}`;if(!J.hasFile(ne)){J=(0,_Xcodeproj().addResourceFileToGroup)({filepath:ne,groupName:S,project:J,isBuildFile:false,verbose:false})}return J}const withNoopSwiftFile=b=>(0,_XcodeProjectFile().withBuildSourceFile)(b,{filePath:"noop-file.swift",contents:["//","// @generated","// A blank Swift file must be created for native modules with Swift files to work correctly.","//",""].join("\n")});S.withNoopSwiftFile=withNoopSwiftFile},7608:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.TargetType=void 0;S.findApplicationTargetWithDependenciesAsync=findApplicationTargetWithDependenciesAsync;S.findFirstNativeTarget=findFirstNativeTarget;S.findNativeTargetByName=findNativeTargetByName;S.findSignableTargets=findSignableTargets;S.getNativeTargets=getNativeTargets;S.getXCBuildConfigurationFromPbxproj=getXCBuildConfigurationFromPbxproj;S.isTargetOfType=isTargetOfType;function _BuildScheme(){const b=J(14598);_BuildScheme=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _string(){const b=J(35996);_string=function(){return b};return b}let ee=S.TargetType=function(b){b["APPLICATION"]="com.apple.product-type.application";b["EXTENSION"]="com.apple.product-type.app-extension";b["WATCH"]="com.apple.product-type.application.watchapp";b["APP_CLIP"]="com.apple.product-type.application.on-demand-install-capable";b["STICKER_PACK_EXTENSION"]="com.apple.product-type.app-extension.messages-sticker-pack";b["FRAMEWORK"]="com.apple.product-type.framework";b["OTHER"]="other";return b}({});function getXCBuildConfigurationFromPbxproj(b,{targetName:S,buildConfiguration:J="Release"}={}){const[,ee]=S?findNativeTargetByName(b,S):findFirstNativeTarget(b);const[,te]=(0,_Xcodeproj().getBuildConfigurationForListIdAndName)(b,{configurationListId:ee.buildConfigurationList,buildConfiguration:J});return te??null}async function findApplicationTargetWithDependenciesAsync(b,S){const J=await(0,_BuildScheme().getApplicationTargetNameForSchemeAsync)(b,S);const te=(0,_Xcodeproj().getPbxproj)(b);const[,re]=findNativeTargetByName(te,J);const ne=getTargetDependencies(te,re);return{name:(0,_string().trimQuotes)(re.name),type:ee.APPLICATION,signable:true,dependencies:ne}}function getTargetDependencies(b,S){if(!S.dependencies||S.dependencies.length===0){return undefined}const J=[ee.FRAMEWORK];return S.dependencies.map((({value:S})=>{const{target:te}=b.getPBXGroupByKeyAndType(S,"PBXTargetDependency");const[,re]=findNativeTargetById(b,te);const ne=isTargetOfType(re,ee.EXTENSION)?ee.EXTENSION:ee.OTHER;return{name:(0,_string().trimQuotes)(re.name),type:ne,signable:!J.some((b=>isTargetOfType(re,b))),dependencies:getTargetDependencies(b,re)}}))}function isTargetOfType(b,S){return(0,_string().trimQuotes)(b.productType)===S}function getNativeTargets(b){const S=b.pbxNativeTargetSection();return Object.entries(S).filter(_Xcodeproj().isNotComment)}function findSignableTargets(b){const S=getNativeTargets(b);const J=[ee.APPLICATION,ee.APP_CLIP,ee.EXTENSION,ee.WATCH,ee.STICKER_PACK_EXTENSION];const te=S.filter((([,b])=>{for(const S of J){if(isTargetOfType(b,S)){return true}}return false}));if(te.length===0){throw new Error(`Could not find any signable targets in project.pbxproj`)}return te}function findFirstNativeTarget(b){const S=getNativeTargets(b);const J=S.filter((([,b])=>isTargetOfType(b,ee.APPLICATION)));if(J.length===0){throw new Error(`Could not find any application target in project.pbxproj`)}return J[0]}function findNativeTargetByName(b,S){const J=getNativeTargets(b);const ee=J.find((([,b])=>(0,_string().trimQuotes)(b.name)===S));if(!ee){throw new Error(`Could not find target '${S}' in project.pbxproj`)}return ee}function findNativeTargetById(b,S){const J=getNativeTargets(b);const ee=J.find((([b])=>b===S));if(!ee){throw new Error(`Could not find target with id '${S}' in project.pbxproj`)}return ee}},10420:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.Config=void 0;S.setUpdatesConfigAsync=setUpdatesConfigAsync;S.setVersionsConfigAsync=setVersionsConfigAsync;S.withUpdates=void 0;function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _Updates(){const b=J(3943);_Updates=function(){return b};return b}let ee=S.Config=function(b){b["ENABLED"]="EXUpdatesEnabled";b["CHECK_ON_LAUNCH"]="EXUpdatesCheckOnLaunch";b["LAUNCH_WAIT_MS"]="EXUpdatesLaunchWaitMs";b["RUNTIME_VERSION"]="EXUpdatesRuntimeVersion";b["UPDATE_URL"]="EXUpdatesURL";b["UPDATES_CONFIGURATION_REQUEST_HEADERS_KEY"]="EXUpdatesRequestHeaders";b["CODE_SIGNING_CERTIFICATE"]="EXUpdatesCodeSigningCertificate";b["CODE_SIGNING_METADATA"]="EXUpdatesCodeSigningMetadata";return b}({});const withUpdates=b=>(0,_iosPlugins().withExpoPlist)(b,(async b=>{const S=b.modRequest.projectRoot;const J=(0,_Updates().getExpoUpdatesPackageVersion)(S);b.modResults=await setUpdatesConfigAsync(S,b,b.modResults,J);return b}));S.withUpdates=withUpdates;async function setUpdatesConfigAsync(b,S,J,te){const re={...J,[ee.ENABLED]:(0,_Updates().getUpdatesEnabled)(S),[ee.CHECK_ON_LAUNCH]:(0,_Updates().getUpdatesCheckOnLaunch)(S,te),[ee.LAUNCH_WAIT_MS]:(0,_Updates().getUpdatesTimeout)(S)};const ne=(0,_Updates().getUpdateUrl)(S);if(ne){re[ee.UPDATE_URL]=ne}else{delete re[ee.UPDATE_URL]}const ie=(0,_Updates().getUpdatesCodeSigningCertificate)(b,S);if(ie){re[ee.CODE_SIGNING_CERTIFICATE]=ie}else{delete re[ee.CODE_SIGNING_CERTIFICATE]}const oe=(0,_Updates().getUpdatesCodeSigningMetadata)(S);if(oe){re[ee.CODE_SIGNING_METADATA]=oe}else{delete re[ee.CODE_SIGNING_METADATA]}const se=(0,_Updates().getUpdatesRequestHeaders)(S);if(se){re[ee.UPDATES_CONFIGURATION_REQUEST_HEADERS_KEY]=se}else{delete re[ee.UPDATES_CONFIGURATION_REQUEST_HEADERS_KEY]}return await setVersionsConfigAsync(b,S,re)}async function setVersionsConfigAsync(b,S,J){const te={...J};const re=await(0,_Updates().getRuntimeVersionNullableAsync)(b,S,"ios");if(!re&&J[ee.RUNTIME_VERSION]){throw new Error("A runtime version is set in your Expo.plist, but is missing from your app.json/app.config.js. Please either set runtimeVersion in your app.json/app.config.js or remove EXUpdatesRuntimeVersion from your Expo.plist.")}if(re){delete te["EXUpdatesSDKVersion"];te[ee.RUNTIME_VERSION]=re}else{delete te["EXUpdatesSDKVersion"];delete te[ee.RUNTIME_VERSION]}return te}},79681:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getUsesNonExemptEncryption=getUsesNonExemptEncryption;S.setUsesNonExemptEncryption=setUsesNonExemptEncryption;S.withUsesNonExemptEncryption=void 0;function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}const ee=S.withUsesNonExemptEncryption=(0,_iosPlugins().createInfoPlistPluginWithPropertyGuard)(setUsesNonExemptEncryption,{infoPlistProperty:"ITSAppUsesNonExemptEncryption",expoConfigProperty:"ios.config.usesNonExemptEncryption"},"withUsesNonExemptEncryption");function getUsesNonExemptEncryption(b){return b?.ios?.config?.usesNonExemptEncryption??null}function setUsesNonExemptEncryption(b,{ITSAppUsesNonExemptEncryption:S,...J}){const ee=getUsesNonExemptEncryption(b);if(ee===null){return J}return{...J,ITSAppUsesNonExemptEncryption:ee}}},1735:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getBuildNumber=getBuildNumber;S.getVersion=getVersion;S.setBuildNumber=setBuildNumber;S.setVersion=setVersion;S.withVersion=S.withBuildNumber=void 0;function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}const ee=S.withVersion=(0,_iosPlugins().createInfoPlistPluginWithPropertyGuard)(setVersion,{infoPlistProperty:"CFBundleShortVersionString",expoConfigProperty:"version"},"withVersion");const te=S.withBuildNumber=(0,_iosPlugins().createInfoPlistPluginWithPropertyGuard)(setBuildNumber,{infoPlistProperty:"CFBundleVersion",expoConfigProperty:"ios.buildNumber"},"withBuildNumber");function getVersion(b){return b.version||"1.0.0"}function setVersion(b,S){return{...S,CFBundleShortVersionString:getVersion(b)}}function getBuildNumber(b){return b.ios?.buildNumber?b.ios.buildNumber:"1"}function setBuildNumber(b,S){return{...S,CFBundleVersion:getBuildNumber(b)}}},59577:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.createBuildSourceFile=createBuildSourceFile;S.withBuildSourceFile=void 0;function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _iosPlugins(){const b=J(54797);_iosPlugins=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const withBuildSourceFile=(b,{filePath:S,contents:J,overwrite:ee})=>(0,_iosPlugins().withXcodeProject)(b,(b=>{const te=(0,_Xcodeproj().getProjectName)(b.modRequest.projectRoot);b.modResults=createBuildSourceFile({project:b.modResults,nativeProjectRoot:b.modRequest.platformProjectRoot,fileContents:J,filePath:_path().default.join(te,S),overwrite:ee});return b}));S.withBuildSourceFile=withBuildSourceFile;function createBuildSourceFile({project:b,nativeProjectRoot:S,filePath:J,fileContents:ee,overwrite:te}){const re=_path().default.join(S,J);if(te||!_fs().default.existsSync(re)){_fs().default.writeFileSync(re,ee,"utf8")}const ne=_path().default.dirname(J);if(!b.hasFile(J)){b=(0,_Xcodeproj().addBuildSourceFileToGroup)({filepath:J,groupName:ne,project:b})}return b}},41310:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.addObjcImports=addObjcImports;S.findObjcFunctionCodeBlock=findObjcFunctionCodeBlock;S.findObjcInterfaceCodeBlock=findObjcInterfaceCodeBlock;S.findSwiftFunctionCodeBlock=findSwiftFunctionCodeBlock;S.insertContentsInsideObjcFunctionBlock=insertContentsInsideObjcFunctionBlock;S.insertContentsInsideObjcInterfaceBlock=insertContentsInsideObjcInterfaceBlock;S.insertContentsInsideSwiftClassBlock=insertContentsInsideSwiftClassBlock;S.insertContentsInsideSwiftFunctionBlock=insertContentsInsideSwiftFunctionBlock;function _commonCodeMod(){const b=J(80837);_commonCodeMod=function(){return b};return b}function _matchBrackets(){const b=J(62042);_matchBrackets=function(){return b};return b}function addObjcImports(b,S){const J=b.split("\n");const ee=J.findIndex((b=>b.match(/^#import .*$/)));for(const te of S){if(!b.includes(te)){const b=`#import ${te}`;J.splice(ee+1,0,b)}}return J.join("\n")}function findObjcInterfaceCodeBlock(b,S){const J=b.search(new RegExp(`^${S}\\W`,"m"));if(J<0){return null}let ee=b.indexOf("\n@end",J);ee+=5;return{start:J,end:ee,code:b.substring(J,ee)}}function findObjcFunctionCodeBlock(b,S){const J=S.split(":");const ee=J.length-1;let te="^[\\-+]\\s*\\(.+?\\)";if(ee===0){te+=`${J[0]}\\s+`}else{for(let b=0;b<ee;++b){const S=`${J[b]}:\\(.+\\)\\w+`;te+=`${S}\\s+`}}te+="{";let re=b.search(new RegExp(te,"m"));if(re<0){return null}re=b.indexOf("{",re);const ne=(0,_matchBrackets().findMatchingBracketPosition)(b,"{",re);return{start:re,end:ne,code:b.substring(re,ne+1)}}function insertContentsInsideObjcFunctionBlock(b,S,J,ee){return insertContentsInsideFunctionBlock(b,S,J,ee,"objc")}function insertContentsInsideObjcInterfaceBlock(b,S,J,ee){const te=findObjcInterfaceCodeBlock(b,S);if(!te){return b}const{position:re}=ee;if(re==="head"){const S=b.indexOf("\n",te.start);b=(0,_commonCodeMod().insertContentsAtOffset)(b,J,S)}else if(re==="tail"){const S="@end".length;b=(0,_commonCodeMod().insertContentsAtOffset)(b,J,te.end-S)}return b}function findSwiftFunctionCodeBlock(b,S){const J=S.indexOf("(");const ee=S.substring(0,J);const te=S.substring(J+1,S.length-2).split(":");let re=0;const ne=new RegExp(`\\sfunc\\s+${ee}\\(`,"m");let ie=(0,_commonCodeMod().searchFromOffset)(b,ne,re);while(ie>=0){const S=b.indexOf("(",ie);const J=(0,_matchBrackets().findMatchingBracketPosition)(b,"(",S);const ee=b.substring(S+1,J);const oe=ee.split(",").map(parseSwiftFunctionParam);re=J+1;ie=(0,_commonCodeMod().searchFromOffset)(b,ne,re);if(te.length!==oe.length){continue}for(let b=0;b<te.length;++b){if(te[b]!==oe[b].argumentLabel){continue}}const se=b.indexOf("{",J);const ae=(0,_matchBrackets().findMatchingBracketPosition)(b,"{",J);const ue=b.substring(se,ae+1);return{start:se,end:ae,code:ue}}return null}function parseSwiftFunctionParam(b){const S=b.indexOf(":");const[J,ee]=b.substring(0,S).split(/\s+/);const te=b.substring(S+1).trim();return{argumentLabel:J,parameterName:ee,typeString:te}}function insertContentsInsideSwiftClassBlock(b,S,J,ee){const te=b.search(new RegExp(`\\s*${S}.*?[\\(\\{]`));if(te<0){throw new Error(`Unable to find class code block - declaration[${S}]`)}const{position:re}=ee;if(re==="head"){const S=b.indexOf("{",te);b=(0,_commonCodeMod().insertContentsAtOffset)(b,J,S+1)}else if(re==="tail"){const S=(0,_matchBrackets().findMatchingBracketPosition)(b,"{",te);b=(0,_commonCodeMod().insertContentsAtOffset)(b,J,S)}return b}function insertContentsInsideSwiftFunctionBlock(b,S,J,ee){return insertContentsInsideFunctionBlock(b,S,J,ee,"swift")}function insertContentsInsideFunctionBlock(b,S,J,ee,te){const re=te==="objc"?findObjcFunctionCodeBlock(b,S):findSwiftFunctionCodeBlock(b,S);if(!re){return b}const{position:ne}=ee;const ie=" ".repeat(ee.indent??2);if(ne==="head"){b=(0,_commonCodeMod().insertContentsAtOffset)(b,`\n${ie}${J}`,re.start+1)}else if(ne==="tail"){b=(0,_commonCodeMod().insertContentsAtOffset)(b,`\n${ie}${J}`,re.end-1)}else if(ne==="tailBeforeLastReturn"){let S=b.lastIndexOf(" return ",re.end);if(S<0){throw new Error(`Cannot find last return statement:\n${b}`)}S+=1;b=(0,_commonCodeMod().insertContentsAtOffset)(b,`${J}\n${ie}`,S)}return b}},65609:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.Entitlements=S.DeviceFamily=S.BundleIdentifier=S.BuildScheme=S.BuildProperties=S.Bitcode=void 0;Object.defineProperty(S,"ExpoPlist",{enumerable:true,get:function(){return _IosConfig().ExpoPlist}});S.Google=void 0;Object.defineProperty(S,"InfoPlist",{enumerable:true,get:function(){return _IosConfig().InfoPlist}});S.XcodeUtils=S.XcodeProjectFile=S.Version=S.UsesNonExemptEncryption=S.Updates=S.Target=S.Swift=S.Scheme=S.RequiresFullScreen=S.ProvisioningProfile=S.PrivacyInfo=S.Permissions=S.Paths=S.Orientation=S.Name=S.Maps=S.Locales=void 0;function Bitcode(){const b=_interopRequireWildcard(J(56865));Bitcode=function(){return b};return b}Object.defineProperty(S,"Bitcode",{enumerable:true,get:function(){return Bitcode()}});function BuildProperties(){const b=_interopRequireWildcard(J(89421));BuildProperties=function(){return b};return b}Object.defineProperty(S,"BuildProperties",{enumerable:true,get:function(){return BuildProperties()}});function BuildScheme(){const b=_interopRequireWildcard(J(14598));BuildScheme=function(){return b};return b}Object.defineProperty(S,"BuildScheme",{enumerable:true,get:function(){return BuildScheme()}});function BundleIdentifier(){const b=_interopRequireWildcard(J(48285));BundleIdentifier=function(){return b};return b}Object.defineProperty(S,"BundleIdentifier",{enumerable:true,get:function(){return BundleIdentifier()}});function DeviceFamily(){const b=_interopRequireWildcard(J(78525));DeviceFamily=function(){return b};return b}Object.defineProperty(S,"DeviceFamily",{enumerable:true,get:function(){return DeviceFamily()}});function Entitlements(){const b=_interopRequireWildcard(J(94431));Entitlements=function(){return b};return b}Object.defineProperty(S,"Entitlements",{enumerable:true,get:function(){return Entitlements()}});function Google(){const b=_interopRequireWildcard(J(3436));Google=function(){return b};return b}Object.defineProperty(S,"Google",{enumerable:true,get:function(){return Google()}});function _IosConfig(){const b=J(84695);_IosConfig=function(){return b};return b}function Locales(){const b=_interopRequireWildcard(J(3949));Locales=function(){return b};return b}Object.defineProperty(S,"Locales",{enumerable:true,get:function(){return Locales()}});function Maps(){const b=_interopRequireWildcard(J(74105));Maps=function(){return b};return b}Object.defineProperty(S,"Maps",{enumerable:true,get:function(){return Maps()}});function Name(){const b=_interopRequireWildcard(J(96867));Name=function(){return b};return b}Object.defineProperty(S,"Name",{enumerable:true,get:function(){return Name()}});function Orientation(){const b=_interopRequireWildcard(J(74136));Orientation=function(){return b};return b}Object.defineProperty(S,"Orientation",{enumerable:true,get:function(){return Orientation()}});function Paths(){const b=_interopRequireWildcard(J(63684));Paths=function(){return b};return b}Object.defineProperty(S,"Paths",{enumerable:true,get:function(){return Paths()}});function Permissions(){const b=_interopRequireWildcard(J(73850));Permissions=function(){return b};return b}Object.defineProperty(S,"Permissions",{enumerable:true,get:function(){return Permissions()}});function PrivacyInfo(){const b=_interopRequireWildcard(J(8262));PrivacyInfo=function(){return b};return b}Object.defineProperty(S,"PrivacyInfo",{enumerable:true,get:function(){return PrivacyInfo()}});function ProvisioningProfile(){const b=_interopRequireWildcard(J(76320));ProvisioningProfile=function(){return b};return b}Object.defineProperty(S,"ProvisioningProfile",{enumerable:true,get:function(){return ProvisioningProfile()}});function RequiresFullScreen(){const b=_interopRequireWildcard(J(63367));RequiresFullScreen=function(){return b};return b}Object.defineProperty(S,"RequiresFullScreen",{enumerable:true,get:function(){return RequiresFullScreen()}});function Scheme(){const b=_interopRequireWildcard(J(27903));Scheme=function(){return b};return b}Object.defineProperty(S,"Scheme",{enumerable:true,get:function(){return Scheme()}});function Swift(){const b=_interopRequireWildcard(J(42630));Swift=function(){return b};return b}Object.defineProperty(S,"Swift",{enumerable:true,get:function(){return Swift()}});function Target(){const b=_interopRequireWildcard(J(7608));Target=function(){return b};return b}Object.defineProperty(S,"Target",{enumerable:true,get:function(){return Target()}});function Updates(){const b=_interopRequireWildcard(J(10420));Updates=function(){return b};return b}Object.defineProperty(S,"Updates",{enumerable:true,get:function(){return Updates()}});function UsesNonExemptEncryption(){const b=_interopRequireWildcard(J(79681));UsesNonExemptEncryption=function(){return b};return b}Object.defineProperty(S,"UsesNonExemptEncryption",{enumerable:true,get:function(){return UsesNonExemptEncryption()}});function Version(){const b=_interopRequireWildcard(J(1735));Version=function(){return b};return b}Object.defineProperty(S,"Version",{enumerable:true,get:function(){return Version()}});function XcodeProjectFile(){const b=_interopRequireWildcard(J(59577));XcodeProjectFile=function(){return b};return b}Object.defineProperty(S,"XcodeProjectFile",{enumerable:true,get:function(){return XcodeProjectFile()}});function XcodeUtils(){const b=_interopRequireWildcard(J(91693));XcodeUtils=function(){return b};return b}Object.defineProperty(S,"XcodeUtils",{enumerable:true,get:function(){return XcodeUtils()}});function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}},91693:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.addBuildSourceFileToGroup=addBuildSourceFileToGroup;S.addFileToGroupAndLink=addFileToGroupAndLink;S.addFramework=addFramework;S.addResourceFileToGroup=addResourceFileToGroup;S.ensureGroupRecursively=ensureGroupRecursively;S.getApplicationNativeTarget=getApplicationNativeTarget;S.getBuildConfigurationForListIdAndName=getBuildConfigurationForListIdAndName;S.getBuildConfigurationsForListId=getBuildConfigurationsForListId;S.getHackyProjectName=getHackyProjectName;S.getPbxproj=getPbxproj;S.getProductName=getProductName;S.getProjectName=getProjectName;S.getProjectSection=getProjectSection;S.getXCConfigurationListEntries=getXCConfigurationListEntries;S.isBuildConfig=isBuildConfig;S.isNotComment=isNotComment;S.isNotTestHost=isNotTestHost;S.resolvePathOrProject=resolvePathOrProject;S.resolveXcodeBuildSetting=resolveXcodeBuildSetting;S.sanitizedName=sanitizedName;S.unquote=unquote;function _assert(){const b=_interopRequireDefault(J(39491));_assert=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _slugify(){const b=_interopRequireDefault(J(22283));_slugify=function(){return b};return b}function _xcode(){const b=_interopRequireDefault(J(49658));_xcode=function(){return b};return b}function _pbxFile(){const b=_interopRequireDefault(J(42470));_pbxFile=function(){return b};return b}function _string(){const b=J(35996);_string=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}function Paths(){const b=_interopRequireWildcard(J(63684));Paths=function(){return b};return b}function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function getProjectName(b){const S=Paths().getSourceRoot(b);return _path().default.basename(S)}function resolvePathOrProject(b){if(typeof b==="string"){try{return getPbxproj(b)}catch{return null}}return b}function sanitizedName(b){return sanitizedNameForProjects(b)||sanitizedNameForProjects((0,_slugify().default)(b))||"app"}function sanitizedNameForProjects(b){return b.replace(/[\W_]+/g,"").normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function getHackyProjectName(b,S){try{return getProjectName(b)}catch{const b=S.name;(0,_assert().default)(b,"Your project needs a name in app.json/app.config.js.");return sanitizedName(b)}}function createProjectFileForGroup({filepath:b,group:S}){const J=new(_pbxFile().default)(b);const ee=S.children.find((b=>b.comment===J.basename));if(ee){return null}return J}function addResourceFileToGroup({filepath:b,groupName:S,isBuildFile:J,project:ee,verbose:te,targetUuid:re}){return addFileToGroupAndLink({filepath:b,groupName:S,project:ee,verbose:te,targetUuid:re,addFileToProject({project:b,file:S}){b.addToPbxFileReferenceSection(S);if(J){b.addToPbxBuildFileSection(S)}b.addToPbxResourcesBuildPhase(S)}})}function addBuildSourceFileToGroup({filepath:b,groupName:S,project:J,verbose:ee,targetUuid:te}){return addFileToGroupAndLink({filepath:b,groupName:S,project:J,verbose:ee,targetUuid:te,addFileToProject({project:b,file:S}){b.addToPbxFileReferenceSection(S);b.addToPbxBuildFileSection(S);b.addToPbxSourcesBuildPhase(S)}})}function addFileToGroupAndLink({filepath:b,groupName:S,project:J,verbose:ee,addFileToProject:te,targetUuid:re}){const ne=pbxGroupByPathOrAssert(J,S);const ie=createProjectFileForGroup({filepath:b,group:ne});if(!ie){if(ee){(0,_warnings().addWarningIOS)("ios-xcode-project",`Skipped adding duplicate file "${b}" to PBXGroup named "${S}"`)}return J}if(re!=null){ie.target=re}else{const b=J.getTarget("com.apple.product-type.application");ie.target=b?.uuid}ie.uuid=J.generateUuid();ie.fileRef=J.generateUuid();te({project:J,file:ie});ne.children.push({value:ie.fileRef,comment:ie.basename});return J}function getApplicationNativeTarget({project:b,projectName:S}){const J=b.getTarget("com.apple.product-type.application");(0,_assert().default)(J,`Couldn't locate application PBXNativeTarget in '.xcodeproj' file.`);(0,_assert().default)(String(J.target.name)===S,`Application native target name mismatch. Expected ${S}, but found ${J.target.name}.`);return J}function addFramework({project:b,projectName:S,framework:J}){const ee=getApplicationNativeTarget({project:b,projectName:S});return b.addFramework(J,{target:ee.uuid})}function splitPath(b){return b.split("/")}const findGroup=(b,S)=>{if(!b){return undefined}return b.children.find((b=>b.comment===S))};function findGroupInsideGroup(b,S,J){const ee=findGroup(S,J);if(ee){return b.getPBXGroupByKey(ee.value)??null}return null}function pbxGroupByPathOrAssert(b,S){const{firstProject:J}=b.getFirstProject();let ee=b.getPBXGroupByKey(J.mainGroup);const te=splitPath(S);for(const S of te){const J=findGroupInsideGroup(b,ee,S);if(J){ee=J}else{break}}if(!ee){throw Error(`Xcode PBXGroup with name "${S}" could not be found in the Xcode project.`)}return ee}function ensureGroupRecursively(b,S){const J=splitPath(S);const hasChild=(b,S)=>b.children.find((({comment:b})=>b===S));const{firstProject:ee}=b.getFirstProject();let te=b.getPBXGroupByKey(ee.mainGroup);for(const S of J){if(te&&!hasChild(te,S)){te.children.push({comment:S,value:b.pbxCreateGroup(S,'""')})}te=b.pbxGroupByName(S)}return te??null}function getPbxproj(b){const S=Paths().getPBXProjectPath(b);const J=_xcode().default.project(S);J.parseSync();return J}function getProductName(b){let S="$(TARGET_NAME)";try{S=b.productName}catch{}if(S==="$(TARGET_NAME)"){const J=b.getFirstTarget()?.firstTarget?.productName;S=J??S}return S}function getProjectSection(b){return b.pbxProjectSection()}function getXCConfigurationListEntries(b){const S=b.pbxXCConfigurationList();return Object.entries(S).filter(isNotComment)}function getBuildConfigurationsForListId(b,S){const J=getXCConfigurationListEntries(b);const[,ee]=J.find((([b])=>b===S));const te=ee.buildConfigurations.map((b=>b.value));return Object.entries(b.pbxXCBuildConfigurationSection()).filter(isNotComment).filter(isBuildConfig).filter((([b])=>te.includes(b)))}function getBuildConfigurationForListIdAndName(b,{configurationListId:S,buildConfiguration:J}){const ee=getBuildConfigurationsForListId(b,S).find((b=>(0,_string().trimQuotes)(b[1].name)===J));if(!ee){throw new Error(`Build configuration '${J}' does not exist in list with id '${S}'`)}return ee}function isBuildConfig([,b]){return b.isa==="XCBuildConfiguration"}function isNotTestHost([,b]){return!b.buildSettings.TEST_HOST}function isNotComment([b]){return!b.endsWith(`_comment`)}function unquote(b){if(typeof b==="number"){b=String(b)}return b.match(/^"(.*)"$/)?.[1]??b}function resolveXcodeBuildSetting(b,S){const J=b?.replace(/\$\(([^()]*|\([^)]*\))\)/g,(b=>{const[J,...ee]=b.slice(2,-1).split(":");let te=S(J);if(te){te=resolveXcodeBuildSetting(te,S)}let re=te;ee.forEach((b=>{switch(b){case"lower":re=re?.toLowerCase();break;case"upper":re=re?.toUpperCase();break;case"suffix":if(re){re=_path().default.extname(re)}break;case"file":if(re){re=_path().default.basename(re)}break;case"dir":if(re){re=_path().default.dirname(re)}break;case"base":if(re){const b=_path().default.basename(re);const S=b.lastIndexOf(".");re=S===-1?b:b.slice(0,S)}break;case"rfc1034identifier":re=re?.replace(/[^a-zA-Z0-9]/g,"-");break;case"c99extidentifier":re=re?.replace(/[-\s]/g,"_");break;case"standardizepath":if(re){re=_path().default.resolve(re)}break;default:re||=b.match(/default=(.*)/)?.[1];break}}));return resolveXcodeBuildSetting(re??"",S)}));if(J!==b){return resolveXcodeBuildSetting(J,S)}return b}},45588:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getInfoPlistPathFromPbxproj=getInfoPlistPathFromPbxproj;function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _Target(){const b=J(7608);_Target=function(){return b};return b}function getInfoPlistPathFromPbxproj(b,{targetName:S,buildConfiguration:J="Release"}={}){const ee=(0,_Xcodeproj().resolvePathOrProject)(b);if(!ee){return null}const te=(0,_Target().getXCBuildConfigurationFromPbxproj)(ee,{targetName:S,buildConfiguration:J});if(!te){return null}return sanitizeInfoPlistBuildProperty(te.buildSettings.INFOPLIST_FILE)}function sanitizeInfoPlistBuildProperty(b){return b?.replace(/"/g,"").replace("$(SRCROOT)","")??null}},35996:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.trimQuotes=trimQuotes;function trimQuotes(b){return b&&b[0]==='"'&&b[b.length-1]==='"'?b.slice(1,-1):b}},62636:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.createAndroidManifestPlugin=createAndroidManifestPlugin;S.createStringsXmlPlugin=createStringsXmlPlugin;S.withStringsXml=S.withSettingsGradle=S.withProjectBuildGradle=S.withMainApplication=S.withMainActivity=S.withGradleProperties=S.withAppBuildGradle=S.withAndroidStyles=S.withAndroidManifest=S.withAndroidColorsNight=S.withAndroidColors=void 0;function _withMod(){const b=J(82932);_withMod=function(){return b};return b}function createAndroidManifestPlugin(b,S){const withUnknown=S=>withAndroidManifest(S,(async S=>{S.modResults=await b(S,S.modResults);return S}));if(S){Object.defineProperty(withUnknown,"name",{value:S})}return withUnknown}function createStringsXmlPlugin(b,S){const withUnknown=S=>withStringsXml(S,(async S=>{S.modResults=await b(S,S.modResults);return S}));if(S){Object.defineProperty(withUnknown,"name",{value:S})}return withUnknown}const withAndroidManifest=(b,S)=>(0,_withMod().withMod)(b,{platform:"android",mod:"manifest",action:S});S.withAndroidManifest=withAndroidManifest;const withStringsXml=(b,S)=>(0,_withMod().withMod)(b,{platform:"android",mod:"strings",action:S});S.withStringsXml=withStringsXml;const withAndroidColors=(b,S)=>(0,_withMod().withMod)(b,{platform:"android",mod:"colors",action:S});S.withAndroidColors=withAndroidColors;const withAndroidColorsNight=(b,S)=>(0,_withMod().withMod)(b,{platform:"android",mod:"colorsNight",action:S});S.withAndroidColorsNight=withAndroidColorsNight;const withAndroidStyles=(b,S)=>(0,_withMod().withMod)(b,{platform:"android",mod:"styles",action:S});S.withAndroidStyles=withAndroidStyles;const withMainActivity=(b,S)=>(0,_withMod().withMod)(b,{platform:"android",mod:"mainActivity",action:S});S.withMainActivity=withMainActivity;const withMainApplication=(b,S)=>(0,_withMod().withMod)(b,{platform:"android",mod:"mainApplication",action:S});S.withMainApplication=withMainApplication;const withProjectBuildGradle=(b,S)=>(0,_withMod().withMod)(b,{platform:"android",mod:"projectBuildGradle",action:S});S.withProjectBuildGradle=withProjectBuildGradle;const withAppBuildGradle=(b,S)=>(0,_withMod().withMod)(b,{platform:"android",mod:"appBuildGradle",action:S});S.withAppBuildGradle=withAppBuildGradle;const withSettingsGradle=(b,S)=>(0,_withMod().withMod)(b,{platform:"android",mod:"settingsGradle",action:S});S.withSettingsGradle=withSettingsGradle;const withGradleProperties=(b,S)=>(0,_withMod().withMod)(b,{platform:"android",mod:"gradleProperties",action:S});S.withGradleProperties=withGradleProperties},15881:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.assertModResults=assertModResults;S.createBaseMod=createBaseMod;S.createPlatformBaseMod=createPlatformBaseMod;S.provider=provider;S.withGeneratedBaseMods=withGeneratedBaseMods;function _debug(){const b=_interopRequireDefault(J(67984));_debug=function(){return b};return b}function _withMod(){const b=J(82932);_withMod=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee=(0,_debug().default)("expo:config-plugins:base-mods");function createBaseMod({methodName:b,platform:S,modName:J,getFilePath:te,read:re,write:ne,isIntrospective:ie}){const withUnknown=(oe,se)=>{const ae=se||{};return(0,_withMod().withBaseMod)(oe,{platform:S,mod:J,skipEmptyMod:ae.skipEmptyMod??true,saveToInternal:ae.saveToInternal??false,isProvider:true,isIntrospective:ie,async action({modRequest:{nextMod:ie,...oe},...se}){try{let b={...se,modRequest:oe};const ue=await te(b,ae);ee(`mods.${S}.${J}: file path: ${ue||"[skipped]"}`);const ce=await re(ue,b,ae);b=await ie({...b,modResults:ce,modRequest:oe});assertModResults(b,oe.platform,oe.modName);await ne(ue,b,ae);return b}catch(ee){ee.message=`[${S}.${J}]: ${b}: ${ee.message}`;throw ee}}})};if(b){Object.defineProperty(withUnknown,"name",{value:b})}return withUnknown}function assertModResults(b,S,J){const ee=b;if(!ee||typeof ee!=="object"||!ee?.mods){throw new Error(`Mod \`mods.${S}.${J}\` evaluated to an object that is not a valid project config. Instead got: ${JSON.stringify(ee)}`)}return ee}function upperFirst(b){return b.charAt(0).toUpperCase()+b.slice(1)}function createPlatformBaseMod({modName:b,...S}){const J=`with${upperFirst(S.platform)}${upperFirst(b)}BaseMod`;return createBaseMod({methodName:J,modName:b,...S})}function provider(b){return b}function withGeneratedBaseMods(b,{platform:S,providers:J,...ee}){return Object.entries(J).reduce(((b,[J,te])=>{const re=createPlatformBaseMod({platform:S,modName:J,...te});return re(b,ee)}),b)}},54797:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.createEntitlementsPlugin=createEntitlementsPlugin;S.createInfoPlistPlugin=createInfoPlistPlugin;S.createInfoPlistPluginWithPropertyGuard=createInfoPlistPluginWithPropertyGuard;S.withXcodeProject=S.withPodfileProperties=S.withPodfile=S.withInfoPlist=S.withExpoPlist=S.withEntitlementsPlist=S.withAppDelegate=void 0;function _withMod(){const b=J(82932);_withMod=function(){return b};return b}function _obj(){const b=J(67324);_obj=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}function createInfoPlistPlugin(b,S){const withUnknown=S=>withInfoPlist(S,(async S=>{S.modResults=await b(S,S.modResults);return S}));if(S){Object.defineProperty(withUnknown,"name",{value:S})}return withUnknown}function createInfoPlistPluginWithPropertyGuard(b,S,J){const withUnknown=J=>withInfoPlist(J,(async J=>{const ee=S.expoPropertyGetter?S.expoPropertyGetter(J):(0,_obj().get)(J,S.expoConfigProperty);if(J.modRawConfig.ios?.infoPlist?.[S.infoPlistProperty]===undefined){J.modResults=await b(J,J.modResults)}else if(ee!==undefined){(0,_warnings().addWarningIOS)(S.expoConfigProperty,`"ios.infoPlist.${S.infoPlistProperty}" is set in the config. Ignoring abstract property "${S.expoConfigProperty}": ${ee}`)}return J}));if(J){Object.defineProperty(withUnknown,"name",{value:J})}return withUnknown}function createEntitlementsPlugin(b,S){const withUnknown=S=>withEntitlementsPlist(S,(async S=>{S.modResults=await b(S,S.modResults);return S}));if(S){Object.defineProperty(withUnknown,"name",{value:S})}return withUnknown}const withAppDelegate=(b,S)=>(0,_withMod().withMod)(b,{platform:"ios",mod:"appDelegate",action:S});S.withAppDelegate=withAppDelegate;const withInfoPlist=(b,S)=>(0,_withMod().withMod)(b,{platform:"ios",mod:"infoPlist",async action(b){b=await S(b);if(!b.ios){b.ios={}}b.ios.infoPlist=b.modResults;return b}});S.withInfoPlist=withInfoPlist;const withEntitlementsPlist=(b,S)=>(0,_withMod().withMod)(b,{platform:"ios",mod:"entitlements",async action(b){b=await S(b);if(!b.ios){b.ios={}}b.ios.entitlements=b.modResults;return b}});S.withEntitlementsPlist=withEntitlementsPlist;const withExpoPlist=(b,S)=>(0,_withMod().withMod)(b,{platform:"ios",mod:"expoPlist",action:S});S.withExpoPlist=withExpoPlist;const withXcodeProject=(b,S)=>(0,_withMod().withMod)(b,{platform:"ios",mod:"xcodeproj",action:S});S.withXcodeProject=withXcodeProject;const withPodfile=(b,S)=>(0,_withMod().withMod)(b,{platform:"ios",mod:"podfile",action:S});S.withPodfile=withPodfile;const withPodfileProperties=(b,S)=>(0,_withMod().withMod)(b,{platform:"ios",mod:"podfileProperties",action:S});S.withPodfileProperties=withPodfileProperties},20503:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.compileModsAsync=compileModsAsync;S.evalModsAsync=evalModsAsync;S.sortMods=sortMods;S.withDefaultBaseMods=withDefaultBaseMods;S.withIntrospectionBaseMods=withIntrospectionBaseMods;function _debug(){const b=_interopRequireDefault(J(67984));_debug=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _createBaseMod(){const b=J(15881);_createBaseMod=function(){return b};return b}function _withAndroidBaseMods(){const b=J(80619);_withAndroidBaseMods=function(){return b};return b}function _withIosBaseMods(){const b=J(37595);_withIosBaseMods=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _errors(){const b=J(13857);_errors=function(){return b};return b}function Warnings(){const b=_interopRequireWildcard(J(128));Warnings=function(){return b};return b}function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee=(0,_debug().default)("expo:config-plugins:mod-compiler");function withDefaultBaseMods(b,S={}){b=(0,_withIosBaseMods().withIosBaseMods)(b,S);b=(0,_withAndroidBaseMods().withAndroidBaseMods)(b,S);return b}function withIntrospectionBaseMods(b,S={}){b=(0,_withIosBaseMods().withIosBaseMods)(b,{saveToInternal:true,skipEmptyMod:false,...S});b=(0,_withAndroidBaseMods().withAndroidBaseMods)(b,{saveToInternal:true,skipEmptyMod:false,...S});if(b.mods){for(const S of Object.keys(b.mods)){for(const J of Object.keys(b.mods[S]||{})){if(!b.mods[S]?.[J]?.isIntrospective){ee(`removing non-idempotent mod: ${S}.${J}`);delete b.mods[S]?.[J]}}}}return b}async function compileModsAsync(b,S){if(S.introspect===true){b=withIntrospectionBaseMods(b)}else{b=withDefaultBaseMods(b)}return await evalModsAsync(b,S)}function sortMods(b,S){const J=new Set;const ee=b.filter((([b])=>{const S=J.has(b);J.add(b);return!S}));return ee.sort((([b],[J])=>{const ee=S[b]||0;const te=S[J]||0;return ee-te}))}function getRawClone({mods:b,...S}){return Object.freeze(JSON.parse(JSON.stringify(S)))}const te={ios:{dangerous:-2,xcodeproj:-1,finalized:1}};async function evalModsAsync(b,{projectRoot:S,introspect:J,platforms:re,assertMissingModProviders:ne,ignoreExistingNativeFiles:ie=false}){const oe=getRawClone(b);for(const[se,ae]of Object.entries(b.mods??{})){if(re&&!re.includes(se)){ee(`skip platform: ${se}`);continue}let ue=Object.entries(ae);if(ue.length){ue=sortMods(ue,te[se]??{dangerous:-1,finalized:1});ee(`run in order: ${ue.map((([b])=>b)).join(", ")}`);const re=_path().default.join(S,se);const ae=se==="ios"?(0,_Xcodeproj().getHackyProjectName)(S,b):undefined;for(const[ee,te]of ue){const ue={projectRoot:S,projectName:ae,platformProjectRoot:re,platform:se,modName:ee,introspect:!!J,ignoreExistingNativeFiles:ie};if(!te.isProvider){const b=`Initial base modifier for "${se}.${ee}" is not a provider and therefore will not provide modResults to child mods`;if(ne!==false){throw new(_errors().PluginError)(b,"MISSING_PROVIDER")}else{Warnings().addWarningForPlatform(se,`${se}.${ee}`,`Skipping: Initial base modifier for "${se}.${ee}" is not a provider and therefore will not provide modResults to child mods. This may be due to an outdated version of Expo CLI.`);continue}}const ce=await te({...b,modResults:null,modRequest:ue,modRawConfig:oe});b=(0,_createBaseMod().assertModResults)(ce,se,ee);delete b.modResults;delete b.modRequest;delete b.modRawConfig}}}return b}},80619:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getAndroidModFileProviders=getAndroidModFileProviders;S.sortAndroidManifest=sortAndroidManifest;S.withAndroidBaseMods=withAndroidBaseMods;function _fs(){const b=J(57147);_fs=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _createBaseMod(){const b=J(15881);_createBaseMod=function(){return b};return b}function _android(){const b=J(87232);_android=function(){return b};return b}function _XML(){const b=J(78853);_XML=function(){return b};return b}function _sortObject(){const b=J(85387);_sortObject=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const{readFile:ee,writeFile:te}=_fs().promises;function getAndroidManifestTemplate(b){return(0,_XML().parseXMLAsync)(`\n <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="${b.android?.package??"com.placeholder.appid"}">\n\n <uses-permission android:name="android.permission.INTERNET"/>\n \x3c!-- OPTIONAL PERMISSIONS, REMOVE WHATEVER YOU DO NOT NEED --\x3e\n <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>\n \x3c!-- These require runtime permissions on M --\x3e\n <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>\n <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>\n \x3c!-- END OPTIONAL PERMISSIONS --\x3e\n\n <queries>\n \x3c!-- Support checking for http(s) links via the Linking API --\x3e\n <intent>\n <action android:name="android.intent.action.VIEW" />\n <category android:name="android.intent.category.BROWSABLE" />\n <data android:scheme="https" />\n </intent>\n </queries>\n\n <application\n android:name=".MainApplication"\n android:label="@string/app_name"\n android:icon="@mipmap/ic_launcher"\n android:roundIcon="@mipmap/ic_launcher_round"\n android:allowBackup="false"\n android:theme="@style/AppTheme"\n android:usesCleartextTraffic="true"\n >\n <meta-data android:name="expo.modules.updates.EXPO_UPDATE_URL" android:value="YOUR-APP-URL-HERE"/>\n <meta-data android:name="expo.modules.updates.EXPO_RUNTIME_VERSION" android:value="YOUR-APP-RUNTIME-VERSION-HERE"/>\n <activity\n android:name=".MainActivity"\n android:label="@string/app_name"\n android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"\n android:launchMode="singleTask"\n android:windowSoftInputMode="adjustResize"\n android:theme="@style/Theme.App.SplashScreen"\n >\n <intent-filter>\n <action android:name="android.intent.action.MAIN"/>\n <category android:name="android.intent.category.LAUNCHER"/>\n </intent-filter>\n </activity>\n <activity android:name="com.facebook.react.devsupport.DevSettingsActivity"/>\n </application>\n </manifest>\n `)}function sortAndroidManifest(b){if(b.manifest){b.manifest=(0,_sortObject().sortObject)(b.manifest,_sortObject().reverseSortString);if(Array.isArray(b.manifest["uses-permission"])){b.manifest["uses-permission"].sort(((b,S)=>{if(b.$["android:name"]<S.$["android:name"])return-1;if(b.$["android:name"]>S.$["android:name"])return 1;return 0}))}if(Array.isArray(b.manifest.application)){b.manifest.application=b.manifest.application.map((b=>{b=(0,_sortObject().sortObjWithOrder)(b,["meta-data","service","activity"]);if(Array.isArray(b["meta-data"])){b["meta-data"].sort(((b,S)=>{if(b.$["android:name"]<S.$["android:name"])return-1;if(b.$["android:name"]>S.$["android:name"])return 1;return 0}))}return b}))}}return b}const re={dangerous:(0,_createBaseMod().provider)({getFilePath(){return""},async read(){return{filePath:"",modResults:{}}},async write(){}}),finalized:(0,_createBaseMod().provider)({getFilePath(){return""},async read(){return{filePath:"",modResults:{}}},async write(){}}),manifest:(0,_createBaseMod().provider)({isIntrospective:true,getFilePath({modRequest:{platformProjectRoot:b}}){return _path().default.join(b,"app/src/main/AndroidManifest.xml")},async read(b,S){try{return await _android().Manifest.readAndroidManifestAsync(b)}catch(b){if(!S.modRequest.introspect){throw b}}return await getAndroidManifestTemplate(S)},async write(b,{modResults:S,modRequest:{introspect:J}}){if(J)return;await _android().Manifest.writeAndroidManifestAsync(b,sortAndroidManifest(S))}}),gradleProperties:(0,_createBaseMod().provider)({isIntrospective:true,getFilePath({modRequest:{platformProjectRoot:b}}){return _path().default.join(b,"gradle.properties")},async read(b,S){try{return await _android().Properties.parsePropertiesFile(await ee(b,"utf8"))}catch(b){if(!S.modRequest.introspect){throw b}}return[]},async write(b,{modResults:S,modRequest:{introspect:J}}){if(J)return;await te(b,_android().Properties.propertiesListToString(S))}}),strings:(0,_createBaseMod().provider)({isIntrospective:true,async getFilePath({modRequest:{projectRoot:b,introspect:S}}){try{return await _android().Strings.getProjectStringsXMLPathAsync(b)}catch(b){if(!S){throw b}}return""},async read(b,S){try{return await _android().Resources.readResourcesXMLAsync({path:b})}catch(b){if(!S.modRequest.introspect){throw b}}return{resources:{}}},async write(b,{modResults:S,modRequest:{introspect:J}}){if(J)return;await(0,_XML().writeXMLAsync)({path:b,xml:S})}}),colors:(0,_createBaseMod().provider)({isIntrospective:true,async getFilePath({modRequest:{projectRoot:b,introspect:S}}){try{return await _android().Colors.getProjectColorsXMLPathAsync(b)}catch(b){if(!S){throw b}}return""},async read(b,{modRequest:{introspect:S}}){try{return await _android().Resources.readResourcesXMLAsync({path:b})}catch(b){if(!S){throw b}}return{resources:{}}},async write(b,{modResults:S,modRequest:{introspect:J}}){if(J)return;await(0,_XML().writeXMLAsync)({path:b,xml:S})}}),colorsNight:(0,_createBaseMod().provider)({isIntrospective:true,async getFilePath({modRequest:{projectRoot:b,introspect:S}}){try{return await _android().Colors.getProjectColorsXMLPathAsync(b,{kind:"values-night"})}catch(b){if(!S){throw b}}return""},async read(b,S){try{return await _android().Resources.readResourcesXMLAsync({path:b})}catch(b){if(!S.modRequest.introspect){throw b}}return{resources:{}}},async write(b,{modResults:S,modRequest:{introspect:J}}){if(J)return;await(0,_XML().writeXMLAsync)({path:b,xml:S})}}),styles:(0,_createBaseMod().provider)({isIntrospective:true,async getFilePath({modRequest:{projectRoot:b,introspect:S}}){try{return await _android().Styles.getProjectStylesXMLPathAsync(b)}catch(b){if(!S){throw b}}return""},async read(b,S){let J={resources:{}};try{J=await _android().Resources.readResourcesXMLAsync({path:b,fallback:`<?xml version="1.0" encoding="utf-8"?><resources xmlns:tools="http://schemas.android.com/tools"></resources>`})}catch(b){if(!S.modRequest.introspect){throw b}}if(!J.resources.$){J.resources.$={}}if(!J.resources.$?.["xmlns:tools"]){J.resources.$["xmlns:tools"]="http://schemas.android.com/tools"}return J},async write(b,{modResults:S,modRequest:{introspect:J}}){if(J)return;await(0,_XML().writeXMLAsync)({path:b,xml:S})}}),projectBuildGradle:(0,_createBaseMod().provider)({getFilePath({modRequest:{projectRoot:b}}){return _android().Paths.getProjectBuildGradleFilePath(b)},async read(b){return _android().Paths.getFileInfo(b)},async write(b,{modResults:{contents:S}}){await te(b,S)}}),settingsGradle:(0,_createBaseMod().provider)({getFilePath({modRequest:{projectRoot:b}}){return _android().Paths.getSettingsGradleFilePath(b)},async read(b){return _android().Paths.getFileInfo(b)},async write(b,{modResults:{contents:S}}){await te(b,S)}}),appBuildGradle:(0,_createBaseMod().provider)({getFilePath({modRequest:{projectRoot:b}}){return _android().Paths.getAppBuildGradleFilePath(b)},async read(b){return _android().Paths.getFileInfo(b)},async write(b,{modResults:{contents:S}}){await te(b,S)}}),mainActivity:(0,_createBaseMod().provider)({getFilePath({modRequest:{projectRoot:b}}){return _android().Paths.getProjectFilePath(b,"MainActivity")},async read(b){return _android().Paths.getFileInfo(b)},async write(b,{modResults:{contents:S}}){await te(b,S)}}),mainApplication:(0,_createBaseMod().provider)({getFilePath({modRequest:{projectRoot:b}}){return _android().Paths.getProjectFilePath(b,"MainApplication")},async read(b){return _android().Paths.getFileInfo(b)},async write(b,{modResults:{contents:S}}){await te(b,S)}})};function withAndroidBaseMods(b,{providers:S,...J}={}){return(0,_createBaseMod().withGeneratedBaseMods)(b,{...J,platform:"android",providers:S??getAndroidModFileProviders()})}function getAndroidModFileProviders(){return re}},85876:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.withDangerousMod=void 0;function _withMod(){const b=J(82932);_withMod=function(){return b};return b}const withDangerousMod=(b,[S,J])=>(0,_withMod().withMod)(b,{platform:S,mod:"dangerous",action:J});S.withDangerousMod=withDangerousMod},39266:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.withFinalizedMod=void 0;function _withMod(){const b=J(82932);_withMod=function(){return b};return b}const withFinalizedMod=(b,[S,J])=>(0,_withMod().withMod)(b,{platform:S,mod:"finalized",action:J});S.withFinalizedMod=withFinalizedMod},37595:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getIosModFileProviders=getIosModFileProviders;S.withIosBaseMods=withIosBaseMods;function _jsonFile(){const b=_interopRequireDefault(J(66282));_jsonFile=function(){return b};return b}function _plist(){const b=_interopRequireDefault(J(83681));_plist=function(){return b};return b}function _assert(){const b=_interopRequireDefault(J(39491));_assert=function(){return b};return b}function _fs(){const b=_interopRequireWildcard(J(57147));_fs=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _xcode(){const b=_interopRequireDefault(J(49658));_xcode=function(){return b};return b}function _createBaseMod(){const b=J(15881);_createBaseMod=function(){return b};return b}function _ios(){const b=J(65609);_ios=function(){return b};return b}function _Entitlements(){const b=J(94431);_Entitlements=function(){return b};return b}function _Xcodeproj(){const b=J(91693);_Xcodeproj=function(){return b};return b}function _getInfoPlistPath(){const b=J(45588);_getInfoPlistPath=function(){return b};return b}function _modules(){const b=J(35642);_modules=function(){return b};return b}function _sortObject(){const b=J(85387);_sortObject=function(){return b};return b}function _warnings(){const b=J(128);_warnings=function(){return b};return b}function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const{readFile:ee,writeFile:te}=_fs().promises;function getEntitlementsPlistTemplate(){return{}}function getInfoPlistTemplate(){return{CFBundleDevelopmentRegion:"$(DEVELOPMENT_LANGUAGE)",CFBundleExecutable:"$(EXECUTABLE_NAME)",CFBundleIdentifier:"$(PRODUCT_BUNDLE_IDENTIFIER)",CFBundleName:"$(PRODUCT_NAME)",CFBundlePackageType:"$(PRODUCT_BUNDLE_PACKAGE_TYPE)",CFBundleInfoDictionaryVersion:"6.0",CFBundleSignature:"????",LSRequiresIPhoneOS:true,NSAppTransportSecurity:{NSAllowsArbitraryLoads:true,NSExceptionDomains:{localhost:{NSExceptionAllowsInsecureHTTPLoads:true}}},UILaunchStoryboardName:"SplashScreen",UIRequiredDeviceCapabilities:["armv7"],UIViewControllerBasedStatusBarAppearance:false,UIStatusBarStyle:"UIStatusBarStyleDefault",CADisableMinimumFrameDurationOnPhone:true}}const re={dangerous:(0,_createBaseMod().provider)({getFilePath(){return""},async read(){return{}},async write(){}}),finalized:(0,_createBaseMod().provider)({getFilePath(){return""},async read(){return{}},async write(){}}),appDelegate:(0,_createBaseMod().provider)({getFilePath({modRequest:{projectRoot:b}}){return _ios().Paths.getAppDelegateFilePath(b)},async read(b){return _ios().Paths.getFileInfo(b)},async write(b,{modResults:{contents:S}}){await te(b,S)}}),expoPlist:(0,_createBaseMod().provider)({isIntrospective:true,getFilePath({modRequest:{platformProjectRoot:b,projectName:S}}){const J=_path().default.join(b,S,"Supporting");return _path().default.resolve(J,"Expo.plist")},async read(b,{modRequest:{introspect:S}}){try{return _plist().default.parse(await ee(b,"utf8"))}catch(b){if(S){return{}}throw b}},async write(b,{modResults:S,modRequest:{introspect:J}}){if(J){return}await te(b,_plist().default.build((0,_sortObject().sortObject)(S)))}}),xcodeproj:(0,_createBaseMod().provider)({getFilePath({modRequest:{projectRoot:b}}){return _ios().Paths.getPBXProjectPath(b)},async read(b){const S=_xcode().default.project(b);S.parseSync();return S},async write(b,{modResults:S}){await te(b,S.writeSync())}}),infoPlist:(0,_createBaseMod().provider)({isIntrospective:true,async getFilePath(b){let S=null;try{S=(0,_Xcodeproj().getPbxproj)(b.modRequest.projectRoot)}catch{}if(S){const J=(0,_getInfoPlistPath().getInfoPlistPathFromPbxproj)(S);if(J){const S=_path().default.join(b.modRequest.platformProjectRoot,J);if((0,_modules().fileExists)(S)){return S}(0,_warnings().addWarningIOS)("mods.ios.infoPlist",`Info.plist file linked to Xcode project does not exist: ${S}`)}else{(0,_warnings().addWarningIOS)("mods.ios.infoPlist","Failed to find Info.plist linked to Xcode project.")}}try{return await _ios().Paths.getInfoPlistPath(b.modRequest.projectRoot)}catch(S){if(b.modRequest.introspect){return""}throw S}},async read(b,S){if(!S.ios)S.ios={};if(!S.ios.infoPlist)S.ios.infoPlist={};let J;try{const S=await ee(b,"utf8");(0,_assert().default)(S,"Info.plist is empty");J=_plist().default.parse(S)}catch(b){if(!S.modRequest.introspect){throw b}J=getInfoPlistTemplate()}S.ios.infoPlist={...J||{},...S.ios.infoPlist};return S.ios.infoPlist},async write(b,S){if(!S.ios){S.ios={}}S.ios.infoPlist=S.modResults;if(S.modRequest.introspect){return}await te(b,_plist().default.build((0,_sortObject().sortObject)(S.modResults)))}}),entitlements:(0,_createBaseMod().provider)({isIntrospective:true,async getFilePath(b){try{(0,_Entitlements().ensureApplicationTargetEntitlementsFileConfigured)(b.modRequest.projectRoot);return _ios().Entitlements.getEntitlementsPath(b.modRequest.projectRoot)??""}catch(S){if(b.modRequest.introspect){return""}throw S}},async read(b,S){let J;try{if(!S.modRequest.ignoreExistingNativeFiles&&_fs().default.existsSync(b)){const S=await ee(b,"utf8");(0,_assert().default)(S,"Entitlements plist is empty");J=_plist().default.parse(S)}else{J=getEntitlementsPlistTemplate()}}catch(b){if(!S.modRequest.introspect){throw b}J=getEntitlementsPlistTemplate()}if(!S.ios)S.ios={};if(!S.ios.entitlements)S.ios.entitlements={};S.ios.entitlements={...J||{},...S.ios.entitlements};return S.ios.entitlements},async write(b,S){if(!S.ios){S.ios={}}S.ios.entitlements=S.modResults;if(S.modRequest.introspect){return}await te(b,_plist().default.build((0,_sortObject().sortObject)(S.modResults)))}}),podfile:(0,_createBaseMod().provider)({getFilePath({modRequest:{projectRoot:b}}){return _ios().Paths.getPodfilePath(b)},async read(b){return _ios().Paths.getFileInfo(b)},async write(b,{modResults:{contents:S}}){await te(b,S)}}),podfileProperties:(0,_createBaseMod().provider)({isIntrospective:true,getFilePath({modRequest:{platformProjectRoot:b}}){return _path().default.resolve(b,"Podfile.properties.json")},async read(b){let S={};try{S=await _jsonFile().default.readAsync(b)}catch{}return S},async write(b,{modResults:S,modRequest:{introspect:J}}){if(J){return}await _jsonFile().default.writeAsync(b,S)}})};function withIosBaseMods(b,{providers:S,...J}={}){return(0,_createBaseMod().withGeneratedBaseMods)(b,{...J,platform:"ios",providers:S??getIosModFileProviders()})}function getIosModFileProviders(){return re}},82932:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.withBaseMod=withBaseMod;S.withMod=withMod;function _chalk(){const b=_interopRequireDefault(J(68746));_chalk=function(){return b};return b}function _getenv(){const b=J(37945);_getenv=function(){return b};return b}function _errors(){const b=J(13857);_errors=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee=(0,_getenv().boolish)("EXPO_DEBUG",false);function withBaseMod(b,{platform:S,mod:J,action:te,skipEmptyMod:re,isProvider:ne,isIntrospective:ie,saveToInternal:oe}){if(!b.mods){b.mods={}}if(!b.mods[S]){b.mods[S]={}}let se=b.mods[S][J];if(!se){if(re){return b}const noopMod=b=>b;se=noopMod}let ae="";const ue=b._internal?.isDebug??ee;if(ue){const b=(new Error).stack;ae=getDebugPluginStackFromStackTrace(b);const ee=_chalk().default.bold(`${S}.${J}`);ae=`${ee}: ${ae}`}if(se.isProvider){if(ne){throw new(_errors().PluginError)(`Cannot set provider mod for "${S}.${J}" because another is already being used.`,"CONFLICTING_PROVIDER")}else{throw new(_errors().PluginError)(`Cannot add mod to "${S}.${J}" because the provider has already been added. Provider must be the last mod added.`,"INVALID_MOD_ORDER")}}async function interceptingMod({modRequest:b,...ee}){if(ue){console.log(ae)}const re=await te({...ee,modRequest:{...b,nextMod:se}});if(oe){saveToInternalObject(re,S,J,re.modResults)}return re}interceptingMod.isProvider=ne;if(ie){interceptingMod.isIntrospective=ie}b.mods[S][J]=interceptingMod;return b}function saveToInternalObject(b,S,J,ee){if(!b._internal)b._internal={};if(!b._internal.modResults)b._internal.modResults={};if(!b._internal.modResults[S])b._internal.modResults[S]={};b._internal.modResults[S][J]=ee}function getDebugPluginStackFromStackTrace(b){if(!b){return""}const S=[];for(const J of b.split("\n")){const[b,ee]=J.trim().split(" ");if(b==="at"){S.push(ee)}}const J=S.map((b=>b?.match(/^(\bwith[A-Z].*?\b)/)?.[1]?.trim()??b?.match(/\.(\bwith[A-Z].*?\b)/)?.[1]?.trim()??null)).filter(Boolean).filter((b=>!["withMod","withBaseMod","withExtendedMod"].includes(b)));const ee=["withPlugins","withRunOnce","withStaticPlugin"];return J.reverse().map(((b,S)=>{if(b.includes("BaseMod")){b=_chalk().default.bold(b)}if(b.toLowerCase().includes("dangerous")){b=_chalk().default.red(b)}if(S===0){return _chalk().default.blue(b)}else if(ee.includes(b)){return _chalk().default.dim(b)}return b})).join(" ➜ ")}function withMod(b,{platform:S,mod:J,action:ee}){return withBaseMod(b,{platform:S,mod:J,isProvider:false,async action({modRequest:{nextMod:b,...S},modResults:J,...te}){const re=await ee({modRequest:S,modResults:J,...te});return b(re)}})}},4897:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.withPlugins=void 0;function _assert(){const b=_interopRequireDefault(J(39491));_assert=function(){return b};return b}function _withStaticPlugin(){const b=J(77298);_withStaticPlugin=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const withPlugins=(b,S)=>{(0,_assert().default)(Array.isArray(S),"withPlugins expected a valid array of plugins or plugin module paths");return S.reduce(((b,S)=>(0,_withStaticPlugin().withStaticPlugin)(b,{plugin:S})),b)};S.withPlugins=withPlugins},73700:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.createRunOncePlugin=createRunOncePlugin;S.withRunOnce=void 0;function _history(){const b=J(40928);_history=function(){return b};return b}const withRunOnce=(b,{plugin:S,name:J,version:ee})=>{if((0,_history().getHistoryItem)(b,J)){return b}b=(0,_history().addHistoryItem)(b,{name:J,version:ee});return S(b)};S.withRunOnce=withRunOnce;function createRunOncePlugin(b,S,J){return(ee,te)=>withRunOnce(ee,{plugin:S=>b(S,te),name:S,version:J})}},77298:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.withStaticPlugin=void 0;function _assert(){const b=_interopRequireDefault(J(39491));_assert=function(){return b};return b}function _getenv(){const b=J(37945);_getenv=function(){return b};return b}function _errors(){const b=J(13857);_errors=function(){return b};return b}function _pluginResolver(){const b=J(34661);_pluginResolver=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee=(0,_getenv().boolish)("EXPO_DEBUG",false);const te=(0,_getenv().boolish)("EXPO_CONFIG_PLUGIN_VERBOSE_ERRORS",false);const re=(0,_getenv().boolish)("EXPO_USE_UNVERSIONED_PLUGINS",false);function isModuleMissingError(b,S){if(["MODULE_NOT_FOUND","PLUGIN_NOT_FOUND"].includes(S.code)){return true}return S.message.includes(`Cannot find module '${b}'`)}function isUnexpectedTokenError(b){if(b instanceof SyntaxError||b instanceof _errors().PluginError&&b.code==="INVALID_PLUGIN_IMPORT"){return!!b.message.match(/Unexpected token/)||!!b.message.match(/Cannot use import statement/)}return false}const withStaticPlugin=(b,S)=>{let J=S.projectRoot;if(!J){J=b._internal?.projectRoot;(0,_pluginResolver().assertInternalProjectRoot)(J)}let[ne,ie]=(0,_pluginResolver().normalizeStaticPlugin)(S.plugin);(0,_assert().default)(!ie?._resolverError,`Plugin property '_resolverError' is a reserved property of \`withStaticPlugin\``);let oe;if(typeof ne==="function"){oe=ne}else if(typeof ne==="string"){try{oe=(0,_pluginResolver().resolveConfigPluginFunction)(J,ne);if(re&&!!oe&&!!S._isLegacyPlugin&&!!S.fallback){console.log(`Force "${ne}" to unversioned plugin`);oe=S.fallback}}catch(b){if(ee){if(te){console.log(`Error resolving plugin "${ne}"`);console.log(b);console.log()}else{const J=S._isLegacyPlugin&&(isModuleMissingError(ne,b)||isUnexpectedTokenError(b));if(!J){if(isModuleMissingError(ne,b)){console.log(`Could not find plugin "${ne}"`)}else{console.log(`Error resolving plugin "${ne}"`);console.log(b);console.log()}}}}if(S.fallback){if(!ie)ie={};ie._resolverError=b;oe=S.fallback}else{throw b}}}else{throw new(_errors().PluginError)(`Plugin is an unexpected type: ${typeof ne}`,"INVALID_PLUGIN_TYPE")}b=oe(b,ie);return b};S.withStaticPlugin=withStaticPlugin},3943:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.FINGERPRINT_RUNTIME_VERSION_SENTINEL=void 0;S.getAppVersion=getAppVersion;S.getExpoUpdatesPackageVersion=getExpoUpdatesPackageVersion;S.getNativeVersion=getNativeVersion;S.getRuntimeVersionAsync=getRuntimeVersionAsync;S.getRuntimeVersionNullableAsync=getRuntimeVersionNullableAsync;S.getSDKVersion=getSDKVersion;S.getUpdateUrl=getUpdateUrl;S.getUpdatesCheckOnLaunch=getUpdatesCheckOnLaunch;S.getUpdatesCodeSigningCertificate=getUpdatesCodeSigningCertificate;S.getUpdatesCodeSigningMetadata=getUpdatesCodeSigningMetadata;S.getUpdatesCodeSigningMetadataStringified=getUpdatesCodeSigningMetadataStringified;S.getUpdatesEnabled=getUpdatesEnabled;S.getUpdatesRequestHeaders=getUpdatesRequestHeaders;S.getUpdatesRequestHeadersStringified=getUpdatesRequestHeadersStringified;S.getUpdatesTimeout=getUpdatesTimeout;S.resolveRuntimeVersionPolicyAsync=resolveRuntimeVersionPolicyAsync;function _sdkRuntimeVersions(){const b=J(6163);_sdkRuntimeVersions=function(){return b};return b}function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _getenv(){const b=J(37945);_getenv=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _resolveFrom(){const b=_interopRequireDefault(J(12753));_resolveFrom=function(){return b};return b}function _semver(){const b=_interopRequireDefault(J(77546));_semver=function(){return b};return b}function _(){const b=J(36581);_=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee=S.FINGERPRINT_RUNTIME_VERSION_SENTINEL="file:fingerprint";function getExpoUpdatesPackageVersion(b){const S=_resolveFrom().default.silent(b,"expo-updates/package.json");if(!S||!_fs().default.existsSync(S)){return null}const J=JSON.parse(_fs().default.readFileSync(S,"utf8"));return J.version}function getUpdateUrl(b){return b.updates?.url??null}function getAppVersion(b){return b.version??"1.0.0"}function getNativeVersion(b,S){const J=_().IOSConfig.Version.getVersion(b);switch(S){case"ios":{const S=_().IOSConfig.Version.getBuildNumber(b);return`${J}(${S})`}case"android":{const S=_().AndroidConfig.Version.getVersionCode(b);return`${J}(${S})`}default:{throw new Error(`"${S}" is not a supported platform. Choose either "ios" or "android".`)}}}async function getRuntimeVersionNullableAsync(...[b,S,J]){try{return await getRuntimeVersionAsync(b,S,J)}catch(b){if((0,_getenv().boolish)("EXPO_DEBUG",false)){console.log(b)}return null}}async function getRuntimeVersionAsync(b,S,J){const te=S[J]?.runtimeVersion??S.runtimeVersion;if(!te){return null}if(typeof te==="string"){if(te===ee){throw new Error(`${ee} is a reserved value for runtime version. To use a fingerprint runtime version, use the "fingerprint" runtime version policy.`)}return te}else if(!te.policy){throw new Error(`"${te}" is not a valid runtime version. Only a string or a runtime version policy is supported.`)}else if(te.policy==="fingerprint"){return ee}else{return await resolveRuntimeVersionPolicyAsync(te.policy,S,J)}}async function resolveRuntimeVersionPolicyAsync(b,S,J){if(b==="appVersion"){return getAppVersion(S)}else if(b==="nativeVersion"){return getNativeVersion(S,J)}else if(b==="sdkVersion"){if(!S.sdkVersion){throw new Error("An SDK version must be defined when using the 'sdkVersion' runtime policy.")}return(0,_sdkRuntimeVersions().getRuntimeVersionForSDKVersion)(S.sdkVersion)}else{throw new Error(`"${b}" is not a valid runtime version policy type.`)}}function getSDKVersion(b){return typeof b.sdkVersion==="string"?b.sdkVersion:null}function getUpdatesEnabled(b){if(b.updates?.enabled!==undefined){return b.updates.enabled}return getUpdateUrl(b)!==null}function getUpdatesTimeout(b){return b.updates?.fallbackToCacheTimeout??0}function getUpdatesCheckOnLaunch(b,S){if(b.updates?.checkAutomatically==="ON_ERROR_RECOVERY"){if(S&&_semver().default.gte(S,"0.11.0")){return"ERROR_RECOVERY_ONLY"}return"NEVER"}else if(b.updates?.checkAutomatically==="ON_LOAD"){return"ALWAYS"}else if(b.updates?.checkAutomatically==="WIFI_ONLY"){return"WIFI_ONLY"}else if(b.updates?.checkAutomatically==="NEVER"){return"NEVER"}return"ALWAYS"}function getUpdatesCodeSigningCertificate(b,S){const J=S.updates?.codeSigningCertificate;if(!J){return undefined}const ee=_path().default.join(b,J);if(!_fs().default.existsSync(ee)){throw new Error(`File not found at \`updates.codeSigningCertificate\` path: ${ee}`)}return _fs().default.readFileSync(ee,"utf8")}function getUpdatesCodeSigningMetadata(b){return b.updates?.codeSigningMetadata}function getUpdatesCodeSigningMetadataStringified(b){const S=getUpdatesCodeSigningMetadata(b);if(!S){return undefined}return JSON.stringify(S)}function getUpdatesRequestHeaders(b){return b.updates?.requestHeaders}function getUpdatesRequestHeadersStringified(b){const S=getUpdatesRequestHeaders(b);if(!S){return undefined}return JSON.stringify(S)}},78853:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S._processAndroidXML=_processAndroidXML;S.escapeAndroidString=escapeAndroidString;S.format=format;S.parseXMLAsync=parseXMLAsync;S.readXMLAsync=readXMLAsync;S.unescapeAndroidString=unescapeAndroidString;S.writeXMLAsync=writeXMLAsync;function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _os(){const b=J(22037);_os=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _xml2js(){const b=J(27013);_xml2js=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}async function writeXMLAsync(b){const S=format(b.xml);await _fs().default.promises.mkdir(_path().default.dirname(b.path),{recursive:true});await _fs().default.promises.writeFile(b.path,S)}async function readXMLAsync(b){let S="";try{S=await _fs().default.promises.readFile(b.path,{encoding:"utf8",flag:"r"})}catch{}const J=new(_xml2js().Parser);const ee=await J.parseStringPromise(S||b.fallback||"");return _processAndroidXML(ee)}function _processAndroidXML(b){if(Array.isArray(b?.resources?.string)){for(const S of b?.resources?.string){if(S.$.translatable==="false"||S.$.translatable===false){continue}S._=unescapeAndroidString(S._)}}return b}async function parseXMLAsync(b){const S=await(new(_xml2js().Parser)).parseStringPromise(b);return S}const stringTimesN=(b,S)=>Array(b+1).join(S);function format(b,{indentLevel:S=2,newline:J=_os().EOL}={}){let ee;if(typeof b==="string"){ee=b}else if(b.toString){const S=new(_xml2js().Builder)({headless:true});if(Array.isArray(b?.resources?.string)){for(const S of b?.resources?.string){if(S.$.translatable==="false"||S.$.translatable===false){continue}S._=escapeAndroidString(S._)}}ee=S.buildObject(b);return ee}else{throw new Error(`Invalid XML value passed in: ${b}`)}const te=stringTimesN(S," ");let re="";const ne=/(>)(<)(\/*)/g;const ie=ee.replace(ne,`$1${J}$2$3`);let oe=0;ie.split(/\r?\n/).map((b=>b.trim())).forEach((b=>{let S=0;if(b.match(/.+<\/\w[^>]*>$/)){S=0}else if(b.match(/^<\/\w/)){if(oe!==0){oe-=1}}else if(b.match(/^<\w([^>]*[^/])?>.*$/)){S=1}else{S=0}const ee=stringTimesN(oe,te);re+=ee+b+J;oe+=S}));return re.trim()}function escapeAndroidString(b){b=b.replace(/[\n\r\t'"@]/g,(b=>{switch(b){case'"':case"'":case"@":return"\\"+b;case"\n":return"\\n";case"\r":return"\\r";case"\t":return"\\t";default:throw new Error(`Cannot escape unhandled XML character: ${b}`)}}));if(b.match(/(^\s|\s$)/)){b='"'+b+'"'}return b}function unescapeAndroidString(b){return b.replace(/\\(.)/g,"$1")}},80837:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.insertContentsAtOffset=insertContentsAtOffset;S.replaceContentsWithOffset=replaceContentsWithOffset;S.searchFromOffset=searchFromOffset;function insertContentsAtOffset(b,S,J){const ee=b.length;if(J<0||J>ee){throw new Error("Invalid parameters.")}if(J===0){return`${S}${b}`}else if(J===ee){return`${b}${S}`}const te=b.substring(0,J);const re=b.substring(J);return`${te}${S}${re}`}function replaceContentsWithOffset(b,S,J,ee){const te=b.length;if(J<0||ee<0||J>=te||ee>=te||J>ee){throw new Error("Invalid parameters.")}const re=b.substring(0,J);const ne=b.substring(ee+1);return`${re}${S}${ne}`}function searchFromOffset(b,S,J){const ee=b.substring(J);const te=ee.search(S);return te<0?te:te+J}},13857:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.UnexpectedError=S.PluginError=void 0;class UnexpectedError extends Error{name="UnexpectedError";constructor(b){super(`${b}\nPlease report this as an issue on https://github.com/expo/expo/issues`)}}S.UnexpectedError=UnexpectedError;class PluginError extends Error{name="PluginError";isPluginError=true;constructor(b,S,J){super(J?`${b}\n└─ Cause: ${J.name}: ${J.message}`:b);this.code=S;this.cause=J}}S.PluginError=PluginError},32565:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.copyFilePathToPathAsync=copyFilePathToPathAsync;S.removeFile=removeFile;function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}async function copyFilePathToPathAsync(b,S){const J=await _fs().default.promises.readFile(b);await _fs().default.promises.mkdir(_path().default.dirname(S),{recursive:true});await _fs().default.promises.writeFile(S,J)}function removeFile(b){try{_fs().default.unlinkSync(b);return true}catch(b){if(b.code==="ENOENT"){return false}throw b}}},50017:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.createGeneratedHeaderComment=createGeneratedHeaderComment;S.createHash=createHash;S.mergeContents=mergeContents;S.removeContents=removeContents;S.removeGeneratedContents=removeGeneratedContents;function _crypto(){const b=_interopRequireDefault(J(6113));_crypto=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function getGeneratedSectionIndexes(b,S){const J=b.split("\n");const ee=J.findIndex((b=>new RegExp(`@generated begin ${S} -`).test(b)));const te=J.findIndex((b=>new RegExp(`@generated end ${S}$`).test(b)));return{contents:J,start:ee,end:te}}function mergeContents({src:b,newSrc:S,tag:J,anchor:ee,offset:te,comment:re}){const ne=createGeneratedHeaderComment(S,J,re);if(!b.includes(ne)){const ie=removeGeneratedContents(b,J);return{contents:addLines(ie??b,ee,te,[ne,...S.split("\n"),`${re} @generated end ${J}`]),didMerge:true,didClear:!!ie}}return{contents:b,didClear:false,didMerge:false}}function removeContents({src:b,tag:S}){const J=removeGeneratedContents(b,S);return{contents:J??b,didMerge:false,didClear:!!J}}function addLines(b,S,J,ee){const te=b.split("\n");let re=te.findIndex((b=>b.match(S)));if(re<0){const J=new Error(`Failed to match "${S}" in contents:\n${b}`);J.code="ERR_NO_MATCH";throw J}for(const b of ee){te.splice(re+J,0,b);re++}return te.join("\n")}function removeGeneratedContents(b,S){const{contents:J,start:ee,end:te}=getGeneratedSectionIndexes(b,S);if(ee>-1&&te>-1&&ee<te){J.splice(ee,te-ee+1);return J.join("\n")}return null}function createGeneratedHeaderComment(b,S,J){const ee=createHash(b);return`${J} @generated begin ${S} - expo prebuild (DO NOT MODIFY) ${ee}`}function createHash(b){const S=_crypto().default.createHash("sha1").update(b).digest("hex");return`sync-${S}`}},40928:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.addHistoryItem=addHistoryItem;S.getHistoryItem=getHistoryItem;function getHistoryItem(b,S){return b._internal?.pluginHistory?.[S]??null}function addHistoryItem(b,S){if(!b._internal){b._internal={}}if(!b._internal.pluginHistory){b._internal.pluginHistory={}}if(!S.version){S.version="UNVERSIONED"}b._internal.pluginHistory[S.name]=S;return b}},62042:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.findMatchingBracketPosition=findMatchingBracketPosition;const J=["(","{"];const ee=null&&[")","}"];function findMatchingBracketPosition(b,S,J=0){const ee=b.indexOf(S,J);if(ee<0){return-1}let te=0;const re=getMatchingBracket(S);if(isLeftBracket(S)){const J=b.length;for(let ne=ee+1;ne<J;++ne){const J=b[ne];if(J===S){te+=1}else if(J===re){if(te===0){return ne}te-=1}}}else{for(let J=ee-1;J>=0;--J){const ee=b[J];if(ee===S){te+=1}else if(ee===re){if(te===0){return J}te-=1}}}return-1}function isLeftBracket(b){const S=J;return S.includes(b)}function getMatchingBracket(b){switch(b){case"(":return")";case")":return"(";case"{":return"}";case"}":return"{";default:throw new Error(`Unsupported bracket - ${b}`)}}},35642:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.directoryExistsAsync=directoryExistsAsync;S.fileExists=fileExists;S.fileExistsAsync=fileExistsAsync;function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}async function statAsync(b){try{return await _fs().default.promises.stat(b)}catch{return null}}async function fileExistsAsync(b){return(await statAsync(b))?.isFile()??false}async function directoryExistsAsync(b){return(await statAsync(b))?.isDirectory()??false}function fileExists(b){try{return _fs().default.statSync(b).isFile()}catch{return false}}},67324:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.get=get;function get(b,S){const J=S.split(".");let ee=b;let te;while(te=J.shift()){if(!(te in ee)){return undefined}ee=ee[te]}return ee}},34661:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.assertInternalProjectRoot=assertInternalProjectRoot;S.moduleNameIsDirectFileReference=moduleNameIsDirectFileReference;S.normalizeStaticPlugin=normalizeStaticPlugin;S.pluginFileName=void 0;S.resolveConfigPluginExport=resolveConfigPluginExport;S.resolveConfigPluginFunction=resolveConfigPluginFunction;S.resolveConfigPluginFunctionWithInfo=resolveConfigPluginFunctionWithInfo;S.resolvePluginForModule=resolvePluginForModule;function _assert(){const b=_interopRequireDefault(J(39491));_assert=function(){return b};return b}function _findUp(){const b=_interopRequireDefault(J(14823));_findUp=function(){return b};return b}function path(){const b=_interopRequireWildcard(J(71017));path=function(){return b};return b}function _resolveFrom(){const b=_interopRequireDefault(J(12753));_resolveFrom=function(){return b};return b}function _errors(){const b=J(13857);_errors=function(){return b};return b}function _modules(){const b=J(35642);_modules=function(){return b};return b}function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}const ee=S.pluginFileName="app.plugin.js";function findUpPackageJson(b){const S=_findUp().default.sync("package.json",{cwd:b});(0,_assert().default)(S,`No package.json found for module "${b}"`);return S}function resolvePluginForModule(b,S){const J=_resolveFrom().default.silent(b,S);if(!J){throw new(_errors().PluginError)(`Failed to resolve plugin for module "${S}" relative to "${b}"`,"PLUGIN_NOT_FOUND")}if(moduleNameIsDirectFileReference(S)){return{isPluginFile:false,filePath:J}}return findUpPlugin(J)}function pathIsFilePath(b){return!!b.match(/^(\.|~\/|\/)/g)}function moduleNameIsDirectFileReference(b){if(pathIsFilePath(b)){return true}const S=b.split(path().sep)?.length;if(b.startsWith("@")){return S>2}return S>1}function resolveExpoPluginFile(b){const S=_resolveFrom().default.silent(b,`./${ee}`);if(S&&(0,_modules().fileExists)(S)){return S}return null}function findUpPlugin(b){const S=findUpPackageJson(b);const J=path().dirname(S);const ee=resolveExpoPluginFile(J);return{filePath:ee??b,isPluginFile:!!ee}}function normalizeStaticPlugin(b){if(Array.isArray(b)){(0,_assert().default)(b.length>0&&b.length<3,`Wrong number of arguments provided for static config plugin, expected either 1 or 2, got ${b.length}`);return b}return[b,undefined]}function assertInternalProjectRoot(b){(0,_assert().default)(b,`Unexpected: Config \`_internal.projectRoot\` isn't defined by expo-cli, this is a bug.`)}function resolveConfigPluginFunction(b,S){const{plugin:J}=resolveConfigPluginFunctionWithInfo(b,S);return J}function resolveConfigPluginFunctionWithInfo(b,S){const{filePath:J,isPluginFile:ee}=resolvePluginForModule(b,S);let te;try{te=requirePluginFile(J)}catch(b){if(b instanceof SyntaxError){const J=`Learn more: https://docs.expo.dev/guides/config-plugins/#creating-a-plugin`;if(!ee&&!moduleNameIsDirectFileReference(S)){const ee=new(_errors().PluginError)(`Package "${S}" does not contain a valid config plugin.\n${J}\n\n${b.message}`,"INVALID_PLUGIN_IMPORT");ee.stack=b.stack;throw ee}}throw b}const re=resolveConfigPluginExport({plugin:te,pluginFile:J,pluginReference:S,isPluginFile:ee});return{plugin:re,pluginFile:J,pluginReference:S,isPluginFile:ee}}function resolveConfigPluginExport({plugin:b,pluginFile:S,pluginReference:J,isPluginFile:ee}){if(b.default!=null){b=b.default}if(typeof b!=="function"){const b=`Learn more: https://docs.expo.dev/guides/config-plugins/#creating-a-plugin`;if(!ee&&!moduleNameIsDirectFileReference(J)){throw new(_errors().PluginError)(`Package "${J}" does not contain a valid config plugin. Module must export a function from file: ${S}\n${b}`,"INVALID_PLUGIN_TYPE")}throw new(_errors().PluginError)(`Plugin "${J}" must export a function from file: ${S}. ${b}`,"INVALID_PLUGIN_TYPE")}return b}function requirePluginFile(b){try{return require(b)}catch(b){throw b}}},85387:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.reverseSortString=void 0;S.sortObjWithOrder=sortObjWithOrder;S.sortObject=sortObject;S.sortWithOrder=sortWithOrder;function sortObject(b,S){return Object.keys(b).sort(S).reduce(((S,J)=>({...S,[J]:b[J]})),{})}function sortObjWithOrder(b,S){const J=sortWithOrder(Object.keys(b),S);return J.reduce(((S,J)=>({...S,[J]:b[J]})),{})}function sortWithOrder(b,S){const J=[...new Set(S.concat(b))];const ee=[];while(J.length){const S=J.shift();const te=b.indexOf(S);if(te>-1){const[S]=b.splice(te,1);ee.push(S)}}return ee}const reverseSortString=(b,S)=>{if(b<S)return 1;if(b>S)return-1;return 0};S.reverseSortString=reverseSortString},194:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.gteSdkVersion=gteSdkVersion;S.lteSdkVersion=lteSdkVersion;function _semver(){const b=_interopRequireDefault(J(77546));_semver=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function gteSdkVersion(b,S){if(!b.sdkVersion){return false}if(b.sdkVersion==="UNVERSIONED"){return true}try{return _semver().default.gte(b.sdkVersion,S)}catch{throw new Error(`${b.sdkVersion} is not a valid version. Must be in the form of x.y.z`)}}function lteSdkVersion(b,S){if(!b.sdkVersion){return false}if(b.sdkVersion==="UNVERSIONED"){return false}try{return _semver().default.lte(b.sdkVersion,S)}catch{throw new Error(`${b.sdkVersion} is not a valid version. Must be in the form of x.y.z`)}}},128:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.addWarningAndroid=addWarningAndroid;S.addWarningForPlatform=addWarningForPlatform;S.addWarningIOS=addWarningIOS;function _chalk(){const b=_interopRequireDefault(J(68746));_chalk=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function addWarningAndroid(b,S,J){console.warn(formatWarning("android",b,S,J))}function addWarningIOS(b,S,J){console.warn(formatWarning("ios",b,S,J))}function addWarningForPlatform(b,S,J,ee){console.warn(formatWarning(b,S,J,ee))}function formatWarning(b,S,J,ee){return _chalk().default.yellow`${"» "+_chalk().default.bold(b)}: ${S}: ${J}${ee?_chalk().default.gray(" "+ee):""}`}},15014:(b,S,J)=>{S.alphasort=alphasort;S.alphasorti=alphasorti;S.setopts=setopts;S.ownProp=ownProp;S.makeAbs=makeAbs;S.finish=finish;S.mark=mark;S.isIgnored=isIgnored;S.childrenIgnored=childrenIgnored;function ownProp(b,S){return Object.prototype.hasOwnProperty.call(b,S)}var ee=J(71017);var te=J(99566);var re=J(21323);var ne=te.Minimatch;function alphasorti(b,S){return b.toLowerCase().localeCompare(S.toLowerCase())}function alphasort(b,S){return b.localeCompare(S)}function setupIgnores(b,S){b.ignore=S.ignore||[];if(!Array.isArray(b.ignore))b.ignore=[b.ignore];if(b.ignore.length){b.ignore=b.ignore.map(ignoreMap)}}function ignoreMap(b){var S=null;if(b.slice(-3)==="/**"){var J=b.replace(/(\/\*\*)+$/,"");S=new ne(J,{dot:true})}return{matcher:new ne(b,{dot:true}),gmatcher:S}}function setopts(b,S,J){if(!J)J={};if(J.matchBase&&-1===S.indexOf("/")){if(J.noglobstar){throw new Error("base matching requires globstar")}S="**/"+S}b.silent=!!J.silent;b.pattern=S;b.strict=J.strict!==false;b.realpath=!!J.realpath;b.realpathCache=J.realpathCache||Object.create(null);b.follow=!!J.follow;b.dot=!!J.dot;b.mark=!!J.mark;b.nodir=!!J.nodir;if(b.nodir)b.mark=true;b.sync=!!J.sync;b.nounique=!!J.nounique;b.nonull=!!J.nonull;b.nosort=!!J.nosort;b.nocase=!!J.nocase;b.stat=!!J.stat;b.noprocess=!!J.noprocess;b.absolute=!!J.absolute;b.maxLength=J.maxLength||Infinity;b.cache=J.cache||Object.create(null);b.statCache=J.statCache||Object.create(null);b.symlinks=J.symlinks||Object.create(null);setupIgnores(b,J);b.changedCwd=false;var te=process.cwd();if(!ownProp(J,"cwd"))b.cwd=te;else{b.cwd=ee.resolve(J.cwd);b.changedCwd=b.cwd!==te}b.root=J.root||ee.resolve(b.cwd,"/");b.root=ee.resolve(b.root);if(process.platform==="win32")b.root=b.root.replace(/\\/g,"/");b.cwdAbs=re(b.cwd)?b.cwd:makeAbs(b,b.cwd);if(process.platform==="win32")b.cwdAbs=b.cwdAbs.replace(/\\/g,"/");b.nomount=!!J.nomount;J.nonegate=true;J.nocomment=true;b.minimatch=new ne(S,J);b.options=b.minimatch.options}function finish(b){var S=b.nounique;var J=S?[]:Object.create(null);for(var ee=0,te=b.matches.length;ee<te;ee++){var re=b.matches[ee];if(!re||Object.keys(re).length===0){if(b.nonull){var ne=b.minimatch.globSet[ee];if(S)J.push(ne);else J[ne]=true}}else{var ie=Object.keys(re);if(S)J.push.apply(J,ie);else ie.forEach((function(b){J[b]=true}))}}if(!S)J=Object.keys(J);if(!b.nosort)J=J.sort(b.nocase?alphasorti:alphasort);if(b.mark){for(var ee=0;ee<J.length;ee++){J[ee]=b._mark(J[ee])}if(b.nodir){J=J.filter((function(S){var J=!/\/$/.test(S);var ee=b.cache[S]||b.cache[makeAbs(b,S)];if(J&&ee)J=ee!=="DIR"&&!Array.isArray(ee);return J}))}}if(b.ignore.length)J=J.filter((function(S){return!isIgnored(b,S)}));b.found=J}function mark(b,S){var J=makeAbs(b,S);var ee=b.cache[J];var te=S;if(ee){var re=ee==="DIR"||Array.isArray(ee);var ne=S.slice(-1)==="/";if(re&&!ne)te+="/";else if(!re&&ne)te=te.slice(0,-1);if(te!==S){var ie=makeAbs(b,te);b.statCache[ie]=b.statCache[J];b.cache[ie]=b.cache[J]}}return te}function makeAbs(b,S){var J=S;if(S.charAt(0)==="/"){J=ee.join(b.root,S)}else if(re(S)||S===""){J=S}else if(b.changedCwd){J=ee.resolve(b.cwd,S)}else{J=ee.resolve(S)}if(process.platform==="win32")J=J.replace(/\\/g,"/");return J}function isIgnored(b,S){if(!b.ignore.length)return false;return b.ignore.some((function(b){return b.matcher.match(S)||!!(b.gmatcher&&b.gmatcher.match(S))}))}function childrenIgnored(b,S){if(!b.ignore.length)return false;return b.ignore.some((function(b){return!!(b.gmatcher&&b.gmatcher.match(S))}))}},17682:(b,S,J)=>{b.exports=glob;var ee=J(57147);var te=J(98945);var re=J(99566);var ne=re.Minimatch;var ie=J(76919);var oe=J(82361).EventEmitter;var se=J(71017);var ae=J(39491);var ue=J(21323);var ce=J(76413);var le=J(15014);var pe=le.alphasort;var fe=le.alphasorti;var de=le.setopts;var he=le.ownProp;var me=J(39442);var ge=J(73837);var ye=le.childrenIgnored;var ve=le.isIgnored;var Te=J(87197);function glob(b,S,J){if(typeof S==="function")J=S,S={};if(!S)S={};if(S.sync){if(J)throw new TypeError("callback provided to sync glob");return ce(b,S)}return new Glob(b,S,J)}glob.sync=ce;var be=glob.GlobSync=ce.GlobSync;glob.glob=glob;function extend(b,S){if(S===null||typeof S!=="object"){return b}var J=Object.keys(S);var ee=J.length;while(ee--){b[J[ee]]=S[J[ee]]}return b}glob.hasMagic=function(b,S){var J=extend({},S);J.noprocess=true;var ee=new Glob(b,J);var te=ee.minimatch.set;if(!b)return false;if(te.length>1)return true;for(var re=0;re<te[0].length;re++){if(typeof te[0][re]!=="string")return true}return false};glob.Glob=Glob;ie(Glob,oe);function Glob(b,S,J){if(typeof S==="function"){J=S;S=null}if(S&&S.sync){if(J)throw new TypeError("callback provided to sync glob");return new be(b,S)}if(!(this instanceof Glob))return new Glob(b,S,J);de(this,b,S);this._didRealPath=false;var ee=this.minimatch.set.length;this.matches=new Array(ee);if(typeof J==="function"){J=Te(J);this.on("error",J);this.on("end",(function(b){J(null,b)}))}var te=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(ee===0)return done();var re=true;for(var ne=0;ne<ee;ne++){this._process(this.minimatch.set[ne],ne,false,done)}re=false;function done(){--te._processing;if(te._processing<=0){if(re){process.nextTick((function(){te._finish()}))}else{te._finish()}}}}Glob.prototype._finish=function(){ae(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();le.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var b=this.matches.length;if(b===0)return this._finish();var S=this;for(var J=0;J<this.matches.length;J++)this._realpathSet(J,next);function next(){if(--b===0)S._finish()}};Glob.prototype._realpathSet=function(b,S){var J=this.matches[b];if(!J)return S();var ee=Object.keys(J);var re=this;var ne=ee.length;if(ne===0)return S();var ie=this.matches[b]=Object.create(null);ee.forEach((function(J,ee){J=re._makeAbs(J);te.realpath(J,re.realpathCache,(function(ee,te){if(!ee)ie[te]=true;else if(ee.syscall==="stat")ie[J]=true;else re.emit("error",ee);if(--ne===0){re.matches[b]=ie;S()}}))}))};Glob.prototype._mark=function(b){return le.mark(this,b)};Glob.prototype._makeAbs=function(b){return le.makeAbs(this,b)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var b=this._emitQueue.slice(0);this._emitQueue.length=0;for(var S=0;S<b.length;S++){var J=b[S];this._emitMatch(J[0],J[1])}}if(this._processQueue.length){var ee=this._processQueue.slice(0);this._processQueue.length=0;for(var S=0;S<ee.length;S++){var te=ee[S];this._processing--;this._process(te[0],te[1],te[2],te[3])}}}};Glob.prototype._process=function(b,S,J,ee){ae(this instanceof Glob);ae(typeof ee==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([b,S,J,ee]);return}var te=0;while(typeof b[te]==="string"){te++}var ne;switch(te){case b.length:this._processSimple(b.join("/"),S,ee);return;case 0:ne=null;break;default:ne=b.slice(0,te).join("/");break}var ie=b.slice(te);var oe;if(ne===null)oe=".";else if(ue(ne)||ue(b.join("/"))){if(!ne||!ue(ne))ne="/"+ne;oe=ne}else oe=ne;var se=this._makeAbs(oe);if(ye(this,oe))return ee();var ce=ie[0]===re.GLOBSTAR;if(ce)this._processGlobStar(ne,oe,se,ie,S,J,ee);else this._processReaddir(ne,oe,se,ie,S,J,ee)};Glob.prototype._processReaddir=function(b,S,J,ee,te,re,ne){var ie=this;this._readdir(J,re,(function(oe,se){return ie._processReaddir2(b,S,J,ee,te,re,se,ne)}))};Glob.prototype._processReaddir2=function(b,S,J,ee,te,re,ne,ie){if(!ne)return ie();var oe=ee[0];var ae=!!this.minimatch.negate;var ue=oe._glob;var ce=this.dot||ue.charAt(0)===".";var le=[];for(var pe=0;pe<ne.length;pe++){var fe=ne[pe];if(fe.charAt(0)!=="."||ce){var de;if(ae&&!b){de=!fe.match(oe)}else{de=fe.match(oe)}if(de)le.push(fe)}}var he=le.length;if(he===0)return ie();if(ee.length===1&&!this.mark&&!this.stat){if(!this.matches[te])this.matches[te]=Object.create(null);for(var pe=0;pe<he;pe++){var fe=le[pe];if(b){if(b!=="/")fe=b+"/"+fe;else fe=b+fe}if(fe.charAt(0)==="/"&&!this.nomount){fe=se.join(this.root,fe)}this._emitMatch(te,fe)}return ie()}ee.shift();for(var pe=0;pe<he;pe++){var fe=le[pe];var me;if(b){if(b!=="/")fe=b+"/"+fe;else fe=b+fe}this._process([fe].concat(ee),te,re,ie)}ie()};Glob.prototype._emitMatch=function(b,S){if(this.aborted)return;if(ve(this,S))return;if(this.paused){this._emitQueue.push([b,S]);return}var J=ue(S)?S:this._makeAbs(S);if(this.mark)S=this._mark(S);if(this.absolute)S=J;if(this.matches[b][S])return;if(this.nodir){var ee=this.cache[J];if(ee==="DIR"||Array.isArray(ee))return}this.matches[b][S]=true;var te=this.statCache[J];if(te)this.emit("stat",S,te);this.emit("match",S)};Glob.prototype._readdirInGlobStar=function(b,S){if(this.aborted)return;if(this.follow)return this._readdir(b,false,S);var J="lstat\0"+b;var te=this;var re=me(J,lstatcb_);if(re)ee.lstat(b,re);function lstatcb_(J,ee){if(J&&J.code==="ENOENT")return S();var re=ee&&ee.isSymbolicLink();te.symlinks[b]=re;if(!re&&ee&&!ee.isDirectory()){te.cache[b]="FILE";S()}else te._readdir(b,false,S)}};Glob.prototype._readdir=function(b,S,J){if(this.aborted)return;J=me("readdir\0"+b+"\0"+S,J);if(!J)return;if(S&&!he(this.symlinks,b))return this._readdirInGlobStar(b,J);if(he(this.cache,b)){var te=this.cache[b];if(!te||te==="FILE")return J();if(Array.isArray(te))return J(null,te)}var re=this;ee.readdir(b,readdirCb(this,b,J))};function readdirCb(b,S,J){return function(ee,te){if(ee)b._readdirError(S,ee,J);else b._readdirEntries(S,te,J)}}Glob.prototype._readdirEntries=function(b,S,J){if(this.aborted)return;if(!this.mark&&!this.stat){for(var ee=0;ee<S.length;ee++){var te=S[ee];if(b==="/")te=b+te;else te=b+"/"+te;this.cache[te]=true}}this.cache[b]=S;return J(null,S)};Glob.prototype._readdirError=function(b,S,J){if(this.aborted)return;switch(S.code){case"ENOTSUP":case"ENOTDIR":var ee=this._makeAbs(b);this.cache[ee]="FILE";if(ee===this.cwdAbs){var te=new Error(S.code+" invalid cwd "+this.cwd);te.path=this.cwd;te.code=S.code;this.emit("error",te);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(b)]=false;break;default:this.cache[this._makeAbs(b)]=false;if(this.strict){this.emit("error",S);this.abort()}if(!this.silent)console.error("glob error",S);break}return J()};Glob.prototype._processGlobStar=function(b,S,J,ee,te,re,ne){var ie=this;this._readdir(J,re,(function(oe,se){ie._processGlobStar2(b,S,J,ee,te,re,se,ne)}))};Glob.prototype._processGlobStar2=function(b,S,J,ee,te,re,ne,ie){if(!ne)return ie();var oe=ee.slice(1);var se=b?[b]:[];var ae=se.concat(oe);this._process(ae,te,false,ie);var ue=this.symlinks[J];var ce=ne.length;if(ue&&re)return ie();for(var le=0;le<ce;le++){var pe=ne[le];if(pe.charAt(0)==="."&&!this.dot)continue;var fe=se.concat(ne[le],oe);this._process(fe,te,true,ie);var de=se.concat(ne[le],ee);this._process(de,te,true,ie)}ie()};Glob.prototype._processSimple=function(b,S,J){var ee=this;this._stat(b,(function(te,re){ee._processSimple2(b,S,te,re,J)}))};Glob.prototype._processSimple2=function(b,S,J,ee,te){if(!this.matches[S])this.matches[S]=Object.create(null);if(!ee)return te();if(b&&ue(b)&&!this.nomount){var re=/[\/\\]$/.test(b);if(b.charAt(0)==="/"){b=se.join(this.root,b)}else{b=se.resolve(this.root,b);if(re)b+="/"}}if(process.platform==="win32")b=b.replace(/\\/g,"/");this._emitMatch(S,b);te()};Glob.prototype._stat=function(b,S){var J=this._makeAbs(b);var te=b.slice(-1)==="/";if(b.length>this.maxLength)return S();if(!this.stat&&he(this.cache,J)){var re=this.cache[J];if(Array.isArray(re))re="DIR";if(!te||re==="DIR")return S(null,re);if(te&&re==="FILE")return S()}var ne;var ie=this.statCache[J];if(ie!==undefined){if(ie===false)return S(null,ie);else{var oe=ie.isDirectory()?"DIR":"FILE";if(te&&oe==="FILE")return S();else return S(null,oe,ie)}}var se=this;var ae=me("stat\0"+J,lstatcb_);if(ae)ee.lstat(J,ae);function lstatcb_(te,re){if(re&&re.isSymbolicLink()){return ee.stat(J,(function(ee,te){if(ee)se._stat2(b,J,null,re,S);else se._stat2(b,J,ee,te,S)}))}else{se._stat2(b,J,te,re,S)}}};Glob.prototype._stat2=function(b,S,J,ee,te){if(J&&(J.code==="ENOENT"||J.code==="ENOTDIR")){this.statCache[S]=false;return te()}var re=b.slice(-1)==="/";this.statCache[S]=ee;if(S.slice(-1)==="/"&&ee&&!ee.isDirectory())return te(null,false,ee);var ne=true;if(ee)ne=ee.isDirectory()?"DIR":"FILE";this.cache[S]=this.cache[S]||ne;if(re&&ne==="FILE")return te();return te(null,ne,ee)}},76413:(b,S,J)=>{b.exports=globSync;globSync.GlobSync=GlobSync;var ee=J(57147);var te=J(98945);var re=J(99566);var ne=re.Minimatch;var ie=J(17682).Glob;var oe=J(73837);var se=J(71017);var ae=J(39491);var ue=J(21323);var ce=J(15014);var le=ce.alphasort;var pe=ce.alphasorti;var fe=ce.setopts;var de=ce.ownProp;var he=ce.childrenIgnored;var me=ce.isIgnored;function globSync(b,S){if(typeof S==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(b,S).found}function GlobSync(b,S){if(!b)throw new Error("must provide pattern");if(typeof S==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(b,S);fe(this,b,S);if(this.noprocess)return this;var J=this.minimatch.set.length;this.matches=new Array(J);for(var ee=0;ee<J;ee++){this._process(this.minimatch.set[ee],ee,false)}this._finish()}GlobSync.prototype._finish=function(){ae(this instanceof GlobSync);if(this.realpath){var b=this;this.matches.forEach((function(S,J){var ee=b.matches[J]=Object.create(null);for(var re in S){try{re=b._makeAbs(re);var ne=te.realpathSync(re,b.realpathCache);ee[ne]=true}catch(S){if(S.syscall==="stat")ee[b._makeAbs(re)]=true;else throw S}}}))}ce.finish(this)};GlobSync.prototype._process=function(b,S,J){ae(this instanceof GlobSync);var ee=0;while(typeof b[ee]==="string"){ee++}var te;switch(ee){case b.length:this._processSimple(b.join("/"),S);return;case 0:te=null;break;default:te=b.slice(0,ee).join("/");break}var ne=b.slice(ee);var ie;if(te===null)ie=".";else if(ue(te)||ue(b.join("/"))){if(!te||!ue(te))te="/"+te;ie=te}else ie=te;var oe=this._makeAbs(ie);if(he(this,ie))return;var se=ne[0]===re.GLOBSTAR;if(se)this._processGlobStar(te,ie,oe,ne,S,J);else this._processReaddir(te,ie,oe,ne,S,J)};GlobSync.prototype._processReaddir=function(b,S,J,ee,te,re){var ne=this._readdir(J,re);if(!ne)return;var ie=ee[0];var oe=!!this.minimatch.negate;var ae=ie._glob;var ue=this.dot||ae.charAt(0)===".";var ce=[];for(var le=0;le<ne.length;le++){var pe=ne[le];if(pe.charAt(0)!=="."||ue){var fe;if(oe&&!b){fe=!pe.match(ie)}else{fe=pe.match(ie)}if(fe)ce.push(pe)}}var de=ce.length;if(de===0)return;if(ee.length===1&&!this.mark&&!this.stat){if(!this.matches[te])this.matches[te]=Object.create(null);for(var le=0;le<de;le++){var pe=ce[le];if(b){if(b.slice(-1)!=="/")pe=b+"/"+pe;else pe=b+pe}if(pe.charAt(0)==="/"&&!this.nomount){pe=se.join(this.root,pe)}this._emitMatch(te,pe)}return}ee.shift();for(var le=0;le<de;le++){var pe=ce[le];var he;if(b)he=[b,pe];else he=[pe];this._process(he.concat(ee),te,re)}};GlobSync.prototype._emitMatch=function(b,S){if(me(this,S))return;var J=this._makeAbs(S);if(this.mark)S=this._mark(S);if(this.absolute){S=J}if(this.matches[b][S])return;if(this.nodir){var ee=this.cache[J];if(ee==="DIR"||Array.isArray(ee))return}this.matches[b][S]=true;if(this.stat)this._stat(S)};GlobSync.prototype._readdirInGlobStar=function(b){if(this.follow)return this._readdir(b,false);var S;var J;var te;try{J=ee.lstatSync(b)}catch(b){if(b.code==="ENOENT"){return null}}var re=J&&J.isSymbolicLink();this.symlinks[b]=re;if(!re&&J&&!J.isDirectory())this.cache[b]="FILE";else S=this._readdir(b,false);return S};GlobSync.prototype._readdir=function(b,S){var J;if(S&&!de(this.symlinks,b))return this._readdirInGlobStar(b);if(de(this.cache,b)){var te=this.cache[b];if(!te||te==="FILE")return null;if(Array.isArray(te))return te}try{return this._readdirEntries(b,ee.readdirSync(b))}catch(S){this._readdirError(b,S);return null}};GlobSync.prototype._readdirEntries=function(b,S){if(!this.mark&&!this.stat){for(var J=0;J<S.length;J++){var ee=S[J];if(b==="/")ee=b+ee;else ee=b+"/"+ee;this.cache[ee]=true}}this.cache[b]=S;return S};GlobSync.prototype._readdirError=function(b,S){switch(S.code){case"ENOTSUP":case"ENOTDIR":var J=this._makeAbs(b);this.cache[J]="FILE";if(J===this.cwdAbs){var ee=new Error(S.code+" invalid cwd "+this.cwd);ee.path=this.cwd;ee.code=S.code;throw ee}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(b)]=false;break;default:this.cache[this._makeAbs(b)]=false;if(this.strict)throw S;if(!this.silent)console.error("glob error",S);break}};GlobSync.prototype._processGlobStar=function(b,S,J,ee,te,re){var ne=this._readdir(J,re);if(!ne)return;var ie=ee.slice(1);var oe=b?[b]:[];var se=oe.concat(ie);this._process(se,te,false);var ae=ne.length;var ue=this.symlinks[J];if(ue&&re)return;for(var ce=0;ce<ae;ce++){var le=ne[ce];if(le.charAt(0)==="."&&!this.dot)continue;var pe=oe.concat(ne[ce],ie);this._process(pe,te,true);var fe=oe.concat(ne[ce],ee);this._process(fe,te,true)}};GlobSync.prototype._processSimple=function(b,S){var J=this._stat(b);if(!this.matches[S])this.matches[S]=Object.create(null);if(!J)return;if(b&&ue(b)&&!this.nomount){var ee=/[\/\\]$/.test(b);if(b.charAt(0)==="/"){b=se.join(this.root,b)}else{b=se.resolve(this.root,b);if(ee)b+="/"}}if(process.platform==="win32")b=b.replace(/\\/g,"/");this._emitMatch(S,b)};GlobSync.prototype._stat=function(b){var S=this._makeAbs(b);var J=b.slice(-1)==="/";if(b.length>this.maxLength)return false;if(!this.stat&&de(this.cache,S)){var te=this.cache[S];if(Array.isArray(te))te="DIR";if(!J||te==="DIR")return te;if(J&&te==="FILE")return false}var re;var ne=this.statCache[S];if(!ne){var ie;try{ie=ee.lstatSync(S)}catch(b){if(b&&(b.code==="ENOENT"||b.code==="ENOTDIR")){this.statCache[S]=false;return false}}if(ie&&ie.isSymbolicLink()){try{ne=ee.statSync(S)}catch(b){ne=ie}}else{ne=ie}}this.statCache[S]=ne;var te=true;if(ne)te=ne.isDirectory()?"DIR":"FILE";this.cache[S]=this.cache[S]||te;if(J&&te==="FILE")return false;return te};GlobSync.prototype._mark=function(b){return ce.mark(this,b)};GlobSync.prototype._makeAbs=function(b){return ce.makeAbs(this,b)}},38937:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true})},24773:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee={getConfig:true,getPackageJson:true,getConfigFilePaths:true,modifyConfigAsync:true,getWebOutputPath:true,getNameFromConfig:true,getDefaultTarget:true,getProjectConfigDescription:true,getProjectConfigDescriptionWithPaths:true};S.getConfig=getConfig;S.getConfigFilePaths=getConfigFilePaths;S.getDefaultTarget=getDefaultTarget;S.getNameFromConfig=getNameFromConfig;S.getPackageJson=getPackageJson;S.getProjectConfigDescription=getProjectConfigDescription;S.getProjectConfigDescriptionWithPaths=getProjectConfigDescriptionWithPaths;S.getWebOutputPath=getWebOutputPath;S.modifyConfigAsync=modifyConfigAsync;function _jsonFile(){const b=_interopRequireDefault(J(66282));_jsonFile=function(){return b};return b}function _fs(){const b=_interopRequireDefault(J(57147));_fs=function(){return b};return b}function _glob(){const b=J(14203);_glob=function(){return b};return b}function _path(){const b=_interopRequireDefault(J(71017));_path=function(){return b};return b}function _resolveFrom(){const b=_interopRequireDefault(J(12753));_resolveFrom=function(){return b};return b}function _semver(){const b=_interopRequireDefault(J(77546));_semver=function(){return b};return b}function _slugify(){const b=_interopRequireDefault(J(22283));_slugify=function(){return b};return b}function _getConfig(){const b=J(36161);_getConfig=function(){return b};return b}function _getExpoSDKVersion(){const b=J(17044);_getExpoSDKVersion=function(){return b};return b}function _withConfigPlugins(){const b=J(56166);_withConfigPlugins=function(){return b};return b}function _withInternal(){const b=J(70220);_withInternal=function(){return b};return b}function _resolvePackageJson(){const b=J(44482);_resolvePackageJson=function(){return b};return b}var te=J(35756);Object.keys(te).forEach((function(b){if(b==="default"||b==="__esModule")return;if(Object.prototype.hasOwnProperty.call(ee,b))return;if(b in S&&S[b]===te[b])return;Object.defineProperty(S,b,{enumerable:true,get:function(){return te[b]}})}));function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}let re=false;function reduceExpoObject(b){if(!b)return b===undefined?null:b;if(b.expo&&!re){const S=Object.keys(b).filter((b=>b!=="expo"));if(S.length){re=true;const ansiYellow=b=>`[33m${b}[0m`;const ansiGray=b=>`[90m${b}[0m`;const ansiBold=b=>`[1m${b}[22m`;const b=S.length>1;console.warn(ansiYellow(ansiBold("Warning: ")+`Root-level ${ansiBold(`"expo"`)} object found. Ignoring extra key${b?"s":""} in Expo config: ${S.map((b=>`"${b}"`)).join(", ")}\n`+ansiGray(`Learn more: https://expo.fyi/root-expo-object`)))}}const{mods:S,...J}=b.expo??b;return{expo:J,mods:S}}function getSupportedPlatforms(b){const S=[];if(_resolveFrom().default.silent(b,"react-native")){S.push("ios","android")}if(_resolveFrom().default.silent(b,"react-native-web")){S.push("web")}return S}function getConfig(b,S={}){const J=getConfigFilePaths(b);const ee=J.staticConfigPath?(0,_getConfig().getStaticConfig)(J.staticConfigPath):null;const te=ee||{};const re=reduceExpoObject(ee)||{};const[ne,ie]=getPackageJsonAndPath(b);function fillAndReturnConfig(ee,re,oe=false){const se={...ensureConfigHasDefaultValues({projectRoot:b,exp:ee.expo,pkg:ne,skipSDKVersionRequirement:S.skipSDKVersionRequirement,paths:J,packageJsonPath:ie}),mods:ee.mods,dynamicConfigObjectType:re,rootConfig:te,dynamicConfigPath:J.dynamicConfigPath,staticConfigPath:J.staticConfigPath,hasUnusedStaticConfig:!!J.staticConfigPath&&!!J.dynamicConfigPath&&oe};if(S.isModdedConfig){se.exp.mods=ee.mods??null}se.exp=(0,_withConfigPlugins().withConfigPlugins)(se.exp,!!S.skipPlugins);if(!S.isModdedConfig){delete se.exp.mods}if(S.isPublicConfig){delete se.exp._internal;if("hooks"in se.exp){delete se.exp.hooks}if(se.exp.ios?.config){delete se.exp.ios.config}if(se.exp.android?.config){delete se.exp.android.config}delete se.exp.updates?.codeSigningCertificate;delete se.exp.updates?.codeSigningMetadata}return se}function getContextConfig(S){return ensureConfigHasDefaultValues({projectRoot:b,exp:S.expo,pkg:ne,skipSDKVersionRequirement:true,paths:J,packageJsonPath:ie}).exp}if(J.dynamicConfigPath){const{exportedObjectType:S,config:ee,mayHaveUnusedStaticConfig:te}=(0,_getConfig().getDynamicConfig)(J.dynamicConfigPath,{projectRoot:b,staticConfigPath:J.staticConfigPath,packageJsonPath:ie,config:getContextConfig(re)});const ne=reduceExpoObject(ee)||{};return fillAndReturnConfig(ne,S,te)}return fillAndReturnConfig(re||{},null)}function getPackageJson(b){const[S]=getPackageJsonAndPath(b);return S}function getPackageJsonAndPath(b){const S=(0,_resolvePackageJson().getRootPackageJsonPath)(b);return[_jsonFile().default.read(S),S]}function getConfigFilePaths(b){return{dynamicConfigPath:getDynamicConfigFilePath(b),staticConfigPath:getStaticConfigFilePath(b)}}function getDynamicConfigFilePath(b){for(const S of["app.config.ts","app.config.js"]){const J=_path().default.join(b,S);if(_fs().default.existsSync(J)){return J}}return null}function getStaticConfigFilePath(b){for(const S of["app.config.json","app.json"]){const J=_path().default.join(b,S);if(_fs().default.existsSync(J)){return J}}return null}async function modifyConfigAsync(b,S,J={},ee={}){const te=getConfig(b,J);if(te.dynamicConfigPath){return{type:"warn",message:`Cannot automatically write to dynamic config at: ${_path().default.relative(b,te.dynamicConfigPath)}`,config:null}}else if(te.staticConfigPath){let b;if(te.rootConfig.expo){b={...te.rootConfig,expo:{...te.rootConfig.expo,...S}}}else{b={...te.rootConfig,...S}}if(!ee.dryRun){await _jsonFile().default.writeAsync(te.staticConfigPath,b,{json5:false})}return{type:"success",config:b}}return{type:"fail",message:"No config exists",config:null}}function ensureConfigHasDefaultValues({projectRoot:b,exp:S,pkg:J,paths:ee,packageJsonPath:te,skipSDKVersionRequirement:re=false}){if(!S){S={}}S=(0,_withInternal().withInternal)(S,{projectRoot:b,...ee??{},packageJsonPath:te});const ne=typeof J.name==="string"?J.name:_path().default.basename(b);const ie=typeof J.version==="string"?J.version:"1.0.0";const oe={...J,name:ne,version:ie};const se=S.name??ne;const ae=S.slug??(0,_slugify().default)(se.toLowerCase());const ue=S.version??ie;let ce=S.description;if(!ce&&typeof J.description==="string"){ce=J.description}const le={...S,name:se,slug:ae,version:ue,description:ce};let pe;try{pe=(0,_getExpoSDKVersion().getExpoSDKVersion)(b,le)}catch(b){if(!re)throw b}let fe=S.platforms;if(!fe){fe=getSupportedPlatforms(b)}return{exp:{...le,sdkVersion:pe,platforms:fe},pkg:oe}}const ne=`web-build`;function getWebOutputPath(b={}){if(process.env.WEBPACK_BUILD_OUTPUT_PATH){return process.env.WEBPACK_BUILD_OUTPUT_PATH}const S=b.expo||b||{};return S?.web?.build?.output||ne}function getNameFromConfig(b={}){const S=b.expo||b;const{web:J={}}=S;const ee=b.displayName||S.displayName||S.name;const te=J.name||ee;return{appName:ee,webName:te}}function getDefaultTarget(b,S){S??=getConfig(b,{skipSDKVersionRequirement:true}).exp;if(S.sdkVersion&&S.sdkVersion!=="UNVERSIONED"&&_semver().default.lt(S.sdkVersion,"37.0.0")){return"managed"}return isBareWorkflowProject(b)?"bare":"managed"}function isBareWorkflowProject(b){const[S]=getPackageJsonAndPath(b);if(S.dependencies&&S.dependencies.expokit){return false}const J=(0,_glob().sync)("ios/**/*.xcodeproj",{absolute:true,cwd:b});if(J.length){return true}const ee=(0,_glob().sync)("android/**/*.gradle",{absolute:true,cwd:b});if(ee.length){return true}return false}function getProjectConfigDescription(b){const S=getConfigFilePaths(b);return getProjectConfigDescriptionWithPaths(b,S)}function getProjectConfigDescriptionWithPaths(b,S){if(S.dynamicConfigPath){const J=_path().default.relative(b,S.dynamicConfigPath);if(S.staticConfigPath){return`${J} or ${_path().default.relative(b,S.staticConfigPath)}`}return J}else if(S.staticConfigPath){return _path().default.relative(b,S.staticConfigPath)}return"app.json"}},35756:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});Object.defineProperty(S,"ExpoConfig",{enumerable:true,get:function(){return _configTypes().ExpoConfig}});S.ProjectPrivacy=void 0;function _configTypes(){const b=J(38937);_configTypes=function(){return b};return b}let ee=S.ProjectPrivacy=function(b){b["PUBLIC"]="public";b["UNLISTED"]="unlisted";return b}({})},46133:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.ConfigError=void 0;class ConfigError extends Error{name="ConfigError";isConfigError=true;constructor(b,S,J){super(J?`${b}\n└─ Cause: ${J.name}: ${J.message}`:b);this.code=S;this.cause=J}}S.ConfigError=ConfigError},4297:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.serializeAfterStaticPlugins=serializeAfterStaticPlugins;S.serializeAndEvaluate=serializeAndEvaluate;S.serializeSkippingMods=serializeSkippingMods;function _Errors(){const b=J(46133);_Errors=function(){return b};return b}function serializeAndEvaluate(b){if(["undefined","string","boolean","number","bigint"].includes(typeof b)){return b}else if(typeof b==="function"){return b()}else if(Array.isArray(b)){return b.map(serializeAndEvaluate)}else if(typeof b==="object"){const S={};for(const J in b){if(b.hasOwnProperty(J)){S[J]=serializeAndEvaluate(b[J])}}return S}throw new(_Errors().ConfigError)(`Expo config doesn't support \`Symbols\`: ${b}`,"INVALID_CONFIG")}function serializeSkippingMods(b){if(typeof b==="object"&&!Array.isArray(b)){const S={};for(const J in b){if(b.hasOwnProperty(J)){if(J==="mods"||J==="plugins"){S[J]=b[J]}else{S[J]=serializeAndEvaluate(b[J])}}}return S}return serializeAndEvaluate(b)}function serializeAndEvaluatePlugin(b){if(["undefined","string","boolean","number","bigint"].includes(typeof b)){return b}else if(typeof b==="function"){return b.name||"withAnonymous"}else if(Array.isArray(b)){return b.map(serializeAndEvaluatePlugin)}else if(typeof b==="object"){const S={};for(const J in b){if(b.hasOwnProperty(J)){S[J]=serializeAndEvaluatePlugin(b[J])}}return S}throw new(_Errors().ConfigError)(`Expo config doesn't support \`Symbols\`: ${b}`,"INVALID_CONFIG")}function serializeAfterStaticPlugins(b){if(typeof b==="object"&&!Array.isArray(b)){const S={};for(const J in b){if(b.hasOwnProperty(J)){if(J==="mods"){S[J]=b[J]}else if(J==="plugins"&&Array.isArray(b[J])){S[J]=b[J].map(serializeAndEvaluatePlugin)}else{S[J]=serializeAndEvaluate(b[J])}}}return S}return serializeAndEvaluate(b)}},43319:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.NON_STANDARD_SYMBOL=void 0;const J=S.NON_STANDARD_SYMBOL=Symbol("non-standard")},1413:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.evalConfig=evalConfig;S.resolveConfigExport=resolveConfigExport;function _fs(){const b=J(57147);_fs=function(){return b};return b}function _requireFromString(){const b=_interopRequireDefault(J(40463));_requireFromString=function(){return b};return b}function _sucrase(){const b=J(55155);_sucrase=function(){return b};return b}function _Errors(){const b=J(46133);_Errors=function(){return b};return b}function _Serialize(){const b=J(4297);_Serialize=function(){return b};return b}function _environment(){const b=J(43319);_environment=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function evalConfig(b,S){const ee=(0,_fs().readFileSync)(b,"utf8");let te;try{const{code:S}=(0,_sucrase().transform)(ee,{filePath:b,transforms:["typescript","imports"]});te=(0,_requireFromString().default)(S,b)}catch(b){const S=extractLocationFromSyntaxError(b);if(S){const{codeFrameColumns:S}=J(63225);const te=S(ee,{start:b.loc},{highlightCode:true});b.codeFrame=te;b.message+=`\n${te}`}else{const S=extractImportantStackFromNodeError(b);if(S){b.message+=`\n${S}`}}throw b}return resolveConfigExport(te,b,S)}function extractLocationFromSyntaxError(b){if(b.loc){return b.loc}if("lineNumber"in b&&"columnNumber"in b){return{line:b.lineNumber,column:b.columnNumber}}return null}function extractImportantStackFromNodeError(b){if(isSyntaxError(b)){const S=b.stack?.split("\n").filter((b=>!b.startsWith(" at ")));if(!S)return null;if(S[S.length-1].startsWith("SyntaxError:")){S.pop()}return S.join("\n")}return null}function isSyntaxError(b){return b instanceof SyntaxError||b.constructor.name==="SyntaxError"}function resolveConfigExport(b,S,J){const ee=_environment().NON_STANDARD_SYMBOL;if(J?.config){J.config[ee]=true}if(b.default!=null){b=b.default}const te=typeof b;if(typeof b==="function"){b=b(J)}if(b instanceof Promise){throw new(_Errors().ConfigError)(`Config file ${S} cannot return a Promise.`,"INVALID_CONFIG")}const re=J?.config?.[ee]&&!b?.[ee];if(b){delete b._hasBaseStaticConfig}if(b?.expo){b=(0,_Serialize().serializeSkippingMods)(b.expo)}else{b=(0,_Serialize().serializeSkippingMods)(b)}return{config:b,exportedObjectType:te,mayHaveUnusedStaticConfig:re}}},23409:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getAccountUsername=getAccountUsername;function _getUserState(){const b=J(19879);_getUserState=function(){return b};return b}const ee="anonymous";function getAccountUsername(b={}){const S=b.owner||process.env.EXPO_CLI_USERNAME||process.env.EAS_BUILD_USERNAME;if(S){return S}return(0,_getUserState().getUserState)().read().auth?.username||ee}},36161:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getDynamicConfig=getDynamicConfig;S.getStaticConfig=getStaticConfig;function _jsonFile(){const b=_interopRequireDefault(J(66282));_jsonFile=function(){return b};return b}function _fs(){const b=J(57147);_fs=function(){return b};return b}function _Errors(){const b=J(46133);_Errors=function(){return b};return b}function _evalConfig(){const b=J(1413);_evalConfig=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function readConfigFile(b,S){if(!(0,_fs().existsSync)(b)){return null}try{return(0,_evalConfig().evalConfig)(b,S)}catch(S){S.isConfigError=true;S.message=`Error reading Expo config at ${b}:\n\n${S.message}`;throw S}}function getDynamicConfig(b,S){const J=readConfigFile(b,S);if(J){return J}throw new(_Errors().ConfigError)(`Failed to read config at: ${b}`,"INVALID_CONFIG")}function getStaticConfig(b){const S=_jsonFile().default.read(b,{json5:true});if(S){return S}throw new(_Errors().ConfigError)(`Failed to read config at: ${b}`,"INVALID_CONFIG")}},17044:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getExpoSDKVersion=getExpoSDKVersion;function _jsonFile(){const b=_interopRequireDefault(J(66282));_jsonFile=function(){return b};return b}function _resolveFrom(){const b=_interopRequireDefault(J(12753));_resolveFrom=function(){return b};return b}function _Errors(){const b=J(46133);_Errors=function(){return b};return b}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function getExpoSDKVersion(b,S={}){return S?.sdkVersion??getExpoSDKVersionFromPackage(b)}function getExpoSDKVersionFromPackage(b){const S=_resolveFrom().default.silent(b,"expo/package.json");if(!S){throw new(_Errors().ConfigError)(`Cannot determine which native SDK version your project uses because the module \`expo\` is not installed. Please install it with \`yarn add expo\` and try again.`,"MODULE_NOT_FOUND")}const J=_jsonFile().default.read(S,{json5:true});const{version:ee}=J;if(!(typeof ee==="string")){throw new(_Errors().ConfigError)(`Cannot determine which native SDK version your project uses because the module \`expo\` has an invalid package.json (missing \`version\` field). Try reinstalling node modules and trying again.`,"MODULE_NOT_FOUND")}const te=ee.split(".").shift();return`${te}.0.0`}},19879:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getExpoHomeDirectory=getExpoHomeDirectory;S.getUserState=getUserState;S.getUserStatePath=getUserStatePath;function _jsonFile(){const b=_interopRequireDefault(J(66282));_jsonFile=function(){return b};return b}function _getenv(){const b=J(37945);_getenv=function(){return b};return b}function _os(){const b=J(22037);_os=function(){return b};return b}function path(){const b=_interopRequireWildcard(J(71017));path=function(){return b};return b}function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}function _interopRequireDefault(b){return b&&b.__esModule?b:{default:b}}function getExpoHomeDirectory(){const b=(0,_os().homedir)();if(process.env.__UNSAFE_EXPO_HOME_DIRECTORY){return process.env.__UNSAFE_EXPO_HOME_DIRECTORY}else if((0,_getenv().boolish)("EXPO_STAGING",false)){return path().join(b,".expo-staging")}else if((0,_getenv().boolish)("EXPO_LOCAL",false)){return path().join(b,".expo-local")}return path().join(b,".expo")}function getUserStatePath(){return path().join(getExpoHomeDirectory(),"state.json")}function getUserState(){return new(_jsonFile().default)(getUserStatePath(),{jsonParseErrorDefault:{},cantReadFileDefault:{}})}},81993:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});var ee={getAccountUsername:true};Object.defineProperty(S,"getAccountUsername",{enumerable:true,get:function(){return _getAccountUsername().getAccountUsername}});var te=J(24773);Object.keys(te).forEach((function(b){if(b==="default"||b==="__esModule")return;if(Object.prototype.hasOwnProperty.call(ee,b))return;if(b in S&&S[b]===te[b])return;Object.defineProperty(S,b,{enumerable:true,get:function(){return te[b]}})}));var re=J(35756);Object.keys(re).forEach((function(b){if(b==="default"||b==="__esModule")return;if(Object.prototype.hasOwnProperty.call(ee,b))return;if(b in S&&S[b]===re[b])return;Object.defineProperty(S,b,{enumerable:true,get:function(){return re[b]}})}));var ne=J(17044);Object.keys(ne).forEach((function(b){if(b==="default"||b==="__esModule")return;if(Object.prototype.hasOwnProperty.call(ee,b))return;if(b in S&&S[b]===ne[b])return;Object.defineProperty(S,b,{enumerable:true,get:function(){return ne[b]}})}));var ie=J(46133);Object.keys(ie).forEach((function(b){if(b==="default"||b==="__esModule")return;if(Object.prototype.hasOwnProperty.call(ee,b))return;if(b in S&&S[b]===ie[b])return;Object.defineProperty(S,b,{enumerable:true,get:function(){return ie[b]}})}));function _getAccountUsername(){const b=J(23409);_getAccountUsername=function(){return b};return b}},56166:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.withConfigPlugins=void 0;function _configPlugins(){const b=J(36581);_configPlugins=function(){return b};return b}function _Serialize(){const b=J(4297);_Serialize=function(){return b};return b}const withConfigPlugins=(b,S)=>{if(!Array.isArray(b.plugins)||!b.plugins?.length){return b}if(!S){b=(0,_configPlugins().withPlugins)(b,b.plugins)}else{delete b.plugins}return(0,_Serialize().serializeAfterStaticPlugins)(b)};S.withConfigPlugins=withConfigPlugins},70220:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.withInternal=S.EXPO_DEBUG=void 0;function _getenv(){const b=J(37945);_getenv=function(){return b};return b}const ee=S.EXPO_DEBUG=(0,_getenv().boolish)("EXPO_DEBUG",false);const withInternal=(b,S)=>{if(!b._internal){b._internal={}}b._internal={isDebug:ee,...b._internal,...S};return b};S.withInternal=withInternal},44482:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.getRootPackageJsonPath=getRootPackageJsonPath;function _fs(){const b=J(57147);_fs=function(){return b};return b}function _path(){const b=J(71017);_path=function(){return b};return b}function _Errors(){const b=J(46133);_Errors=function(){return b};return b}function getRootPackageJsonPath(b){const S=(0,_path().join)(b,"package.json");if(!(0,_fs().existsSync)(S)){throw new(_Errors().ConfigError)(`The expected package.json path: ${S} does not exist`,"MODULE_NOT_FOUND")}return S}},63225:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.codeFrameColumns=codeFrameColumns;S["default"]=_default;var ee=_interopRequireWildcard(J(40932));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var b=new WeakMap;_getRequireWildcardCache=function(){return b};return b}function _interopRequireWildcard(b){if(b&&b.__esModule){return b}if(b===null||typeof b!=="object"&&typeof b!=="function"){return{default:b}}var S=_getRequireWildcardCache();if(S&&S.has(b)){return S.get(b)}var J={};var ee=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var te in b){if(Object.prototype.hasOwnProperty.call(b,te)){var re=ee?Object.getOwnPropertyDescriptor(b,te):null;if(re&&(re.get||re.set)){Object.defineProperty(J,te,re)}else{J[te]=b[te]}}}J.default=b;if(S){S.set(b,J)}return J}let te=false;function getDefs(b){return{gutter:b.grey,marker:b.red.bold,message:b.red.bold}}const re=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(b,S,J){const ee=Object.assign({column:0,line:-1},b.start);const te=Object.assign({},ee,b.end);const{linesAbove:re=2,linesBelow:ne=3}=J||{};const ie=ee.line;const oe=ee.column;const se=te.line;const ae=te.column;let ue=Math.max(ie-(re+1),0);let ce=Math.min(S.length,se+ne);if(ie===-1){ue=0}if(se===-1){ce=S.length}const le=se-ie;const pe={};if(le){for(let b=0;b<=le;b++){const J=b+ie;if(!oe){pe[J]=true}else if(b===0){const b=S[J-1].length;pe[J]=[oe,b-oe+1]}else if(b===le){pe[J]=[0,ae]}else{const ee=S[J-b].length;pe[J]=[0,ee]}}}else{if(oe===ae){if(oe){pe[ie]=[oe,0]}else{pe[ie]=true}}else{pe[ie]=[oe,ae-oe]}}return{start:ue,end:ce,markerLines:pe}}function codeFrameColumns(b,S,J={}){const te=(J.highlightCode||J.forceColor)&&(0,ee.shouldHighlight)(J);const ne=(0,ee.getChalk)(J);const ie=getDefs(ne);const maybeHighlight=(b,S)=>te?b(S):S;const oe=b.split(re);const{start:se,end:ae,markerLines:ue}=getMarkerLines(S,oe,J);const ce=S.start&&typeof S.start.column==="number";const le=String(ae).length;const pe=te?(0,ee.default)(b,J):b;let fe=pe.split(re).slice(se,ae).map(((b,S)=>{const ee=se+1+S;const te=` ${ee}`.slice(-le);const re=` ${te} | `;const ne=ue[ee];const oe=!ue[ee+1];if(ne){let S="";if(Array.isArray(ne)){const ee=b.slice(0,Math.max(ne[0]-1,0)).replace(/[^\t]/g," ");const te=ne[1]||1;S=["\n ",maybeHighlight(ie.gutter,re.replace(/\d/g," ")),ee,maybeHighlight(ie.marker,"^").repeat(te)].join("");if(oe&&J.message){S+=" "+maybeHighlight(ie.message,J.message)}}return[maybeHighlight(ie.marker,">"),maybeHighlight(ie.gutter,re),b,S].join("")}else{return` ${maybeHighlight(ie.gutter,re)}${b}`}})).join("\n");if(J.message&&!ce){fe=`${" ".repeat(le+1)}${J.message}\n${fe}`}if(te){return ne.reset(fe)}else{return fe}}function _default(b,S,J,ee={}){if(!te){te=true;const b="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(b,"DeprecationWarning")}else{const S=new Error(b);S.name="DeprecationWarning";console.warn(new Error(b))}}J=Math.max(J,0);const re={start:{column:J,line:S}};return codeFrameColumns(b,re,ee)}},48599:(b,S,J)=>{S.alphasort=alphasort;S.alphasorti=alphasorti;S.setopts=setopts;S.ownProp=ownProp;S.makeAbs=makeAbs;S.finish=finish;S.mark=mark;S.isIgnored=isIgnored;S.childrenIgnored=childrenIgnored;function ownProp(b,S){return Object.prototype.hasOwnProperty.call(b,S)}var ee=J(71017);var te=J(99566);var re=J(21323);var ne=te.Minimatch;function alphasorti(b,S){return b.toLowerCase().localeCompare(S.toLowerCase())}function alphasort(b,S){return b.localeCompare(S)}function setupIgnores(b,S){b.ignore=S.ignore||[];if(!Array.isArray(b.ignore))b.ignore=[b.ignore];if(b.ignore.length){b.ignore=b.ignore.map(ignoreMap)}}function ignoreMap(b){var S=null;if(b.slice(-3)==="/**"){var J=b.replace(/(\/\*\*)+$/,"");S=new ne(J,{dot:true})}return{matcher:new ne(b,{dot:true}),gmatcher:S}}function setopts(b,S,J){if(!J)J={};if(J.matchBase&&-1===S.indexOf("/")){if(J.noglobstar){throw new Error("base matching requires globstar")}S="**/"+S}b.silent=!!J.silent;b.pattern=S;b.strict=J.strict!==false;b.realpath=!!J.realpath;b.realpathCache=J.realpathCache||Object.create(null);b.follow=!!J.follow;b.dot=!!J.dot;b.mark=!!J.mark;b.nodir=!!J.nodir;if(b.nodir)b.mark=true;b.sync=!!J.sync;b.nounique=!!J.nounique;b.nonull=!!J.nonull;b.nosort=!!J.nosort;b.nocase=!!J.nocase;b.stat=!!J.stat;b.noprocess=!!J.noprocess;b.absolute=!!J.absolute;b.maxLength=J.maxLength||Infinity;b.cache=J.cache||Object.create(null);b.statCache=J.statCache||Object.create(null);b.symlinks=J.symlinks||Object.create(null);setupIgnores(b,J);b.changedCwd=false;var te=process.cwd();if(!ownProp(J,"cwd"))b.cwd=te;else{b.cwd=ee.resolve(J.cwd);b.changedCwd=b.cwd!==te}b.root=J.root||ee.resolve(b.cwd,"/");b.root=ee.resolve(b.root);if(process.platform==="win32")b.root=b.root.replace(/\\/g,"/");b.cwdAbs=re(b.cwd)?b.cwd:makeAbs(b,b.cwd);if(process.platform==="win32")b.cwdAbs=b.cwdAbs.replace(/\\/g,"/");b.nomount=!!J.nomount;J.nonegate=true;J.nocomment=true;b.minimatch=new ne(S,J);b.options=b.minimatch.options}function finish(b){var S=b.nounique;var J=S?[]:Object.create(null);for(var ee=0,te=b.matches.length;ee<te;ee++){var re=b.matches[ee];if(!re||Object.keys(re).length===0){if(b.nonull){var ne=b.minimatch.globSet[ee];if(S)J.push(ne);else J[ne]=true}}else{var ie=Object.keys(re);if(S)J.push.apply(J,ie);else ie.forEach((function(b){J[b]=true}))}}if(!S)J=Object.keys(J);if(!b.nosort)J=J.sort(b.nocase?alphasorti:alphasort);if(b.mark){for(var ee=0;ee<J.length;ee++){J[ee]=b._mark(J[ee])}if(b.nodir){J=J.filter((function(S){var J=!/\/$/.test(S);var ee=b.cache[S]||b.cache[makeAbs(b,S)];if(J&&ee)J=ee!=="DIR"&&!Array.isArray(ee);return J}))}}if(b.ignore.length)J=J.filter((function(S){return!isIgnored(b,S)}));b.found=J}function mark(b,S){var J=makeAbs(b,S);var ee=b.cache[J];var te=S;if(ee){var re=ee==="DIR"||Array.isArray(ee);var ne=S.slice(-1)==="/";if(re&&!ne)te+="/";else if(!re&&ne)te=te.slice(0,-1);if(te!==S){var ie=makeAbs(b,te);b.statCache[ie]=b.statCache[J];b.cache[ie]=b.cache[J]}}return te}function makeAbs(b,S){var J=S;if(S.charAt(0)==="/"){J=ee.join(b.root,S)}else if(re(S)||S===""){J=S}else if(b.changedCwd){J=ee.resolve(b.cwd,S)}else{J=ee.resolve(S)}if(process.platform==="win32")J=J.replace(/\\/g,"/");return J}function isIgnored(b,S){if(!b.ignore.length)return false;return b.ignore.some((function(b){return b.matcher.match(S)||!!(b.gmatcher&&b.gmatcher.match(S))}))}function childrenIgnored(b,S){if(!b.ignore.length)return false;return b.ignore.some((function(b){return!!(b.gmatcher&&b.gmatcher.match(S))}))}},14203:(b,S,J)=>{b.exports=glob;var ee=J(57147);var te=J(98945);var re=J(99566);var ne=re.Minimatch;var ie=J(76919);var oe=J(82361).EventEmitter;var se=J(71017);var ae=J(39491);var ue=J(21323);var ce=J(21276);var le=J(48599);var pe=le.alphasort;var fe=le.alphasorti;var de=le.setopts;var he=le.ownProp;var me=J(39442);var ge=J(73837);var ye=le.childrenIgnored;var ve=le.isIgnored;var Te=J(87197);function glob(b,S,J){if(typeof S==="function")J=S,S={};if(!S)S={};if(S.sync){if(J)throw new TypeError("callback provided to sync glob");return ce(b,S)}return new Glob(b,S,J)}glob.sync=ce;var be=glob.GlobSync=ce.GlobSync;glob.glob=glob;function extend(b,S){if(S===null||typeof S!=="object"){return b}var J=Object.keys(S);var ee=J.length;while(ee--){b[J[ee]]=S[J[ee]]}return b}glob.hasMagic=function(b,S){var J=extend({},S);J.noprocess=true;var ee=new Glob(b,J);var te=ee.minimatch.set;if(!b)return false;if(te.length>1)return true;for(var re=0;re<te[0].length;re++){if(typeof te[0][re]!=="string")return true}return false};glob.Glob=Glob;ie(Glob,oe);function Glob(b,S,J){if(typeof S==="function"){J=S;S=null}if(S&&S.sync){if(J)throw new TypeError("callback provided to sync glob");return new be(b,S)}if(!(this instanceof Glob))return new Glob(b,S,J);de(this,b,S);this._didRealPath=false;var ee=this.minimatch.set.length;this.matches=new Array(ee);if(typeof J==="function"){J=Te(J);this.on("error",J);this.on("end",(function(b){J(null,b)}))}var te=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(ee===0)return done();var re=true;for(var ne=0;ne<ee;ne++){this._process(this.minimatch.set[ne],ne,false,done)}re=false;function done(){--te._processing;if(te._processing<=0){if(re){process.nextTick((function(){te._finish()}))}else{te._finish()}}}}Glob.prototype._finish=function(){ae(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();le.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var b=this.matches.length;if(b===0)return this._finish();var S=this;for(var J=0;J<this.matches.length;J++)this._realpathSet(J,next);function next(){if(--b===0)S._finish()}};Glob.prototype._realpathSet=function(b,S){var J=this.matches[b];if(!J)return S();var ee=Object.keys(J);var re=this;var ne=ee.length;if(ne===0)return S();var ie=this.matches[b]=Object.create(null);ee.forEach((function(J,ee){J=re._makeAbs(J);te.realpath(J,re.realpathCache,(function(ee,te){if(!ee)ie[te]=true;else if(ee.syscall==="stat")ie[J]=true;else re.emit("error",ee);if(--ne===0){re.matches[b]=ie;S()}}))}))};Glob.prototype._mark=function(b){return le.mark(this,b)};Glob.prototype._makeAbs=function(b){return le.makeAbs(this,b)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var b=this._emitQueue.slice(0);this._emitQueue.length=0;for(var S=0;S<b.length;S++){var J=b[S];this._emitMatch(J[0],J[1])}}if(this._processQueue.length){var ee=this._processQueue.slice(0);this._processQueue.length=0;for(var S=0;S<ee.length;S++){var te=ee[S];this._processing--;this._process(te[0],te[1],te[2],te[3])}}}};Glob.prototype._process=function(b,S,J,ee){ae(this instanceof Glob);ae(typeof ee==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([b,S,J,ee]);return}var te=0;while(typeof b[te]==="string"){te++}var ne;switch(te){case b.length:this._processSimple(b.join("/"),S,ee);return;case 0:ne=null;break;default:ne=b.slice(0,te).join("/");break}var ie=b.slice(te);var oe;if(ne===null)oe=".";else if(ue(ne)||ue(b.join("/"))){if(!ne||!ue(ne))ne="/"+ne;oe=ne}else oe=ne;var se=this._makeAbs(oe);if(ye(this,oe))return ee();var ce=ie[0]===re.GLOBSTAR;if(ce)this._processGlobStar(ne,oe,se,ie,S,J,ee);else this._processReaddir(ne,oe,se,ie,S,J,ee)};Glob.prototype._processReaddir=function(b,S,J,ee,te,re,ne){var ie=this;this._readdir(J,re,(function(oe,se){return ie._processReaddir2(b,S,J,ee,te,re,se,ne)}))};Glob.prototype._processReaddir2=function(b,S,J,ee,te,re,ne,ie){if(!ne)return ie();var oe=ee[0];var ae=!!this.minimatch.negate;var ue=oe._glob;var ce=this.dot||ue.charAt(0)===".";var le=[];for(var pe=0;pe<ne.length;pe++){var fe=ne[pe];if(fe.charAt(0)!=="."||ce){var de;if(ae&&!b){de=!fe.match(oe)}else{de=fe.match(oe)}if(de)le.push(fe)}}var he=le.length;if(he===0)return ie();if(ee.length===1&&!this.mark&&!this.stat){if(!this.matches[te])this.matches[te]=Object.create(null);for(var pe=0;pe<he;pe++){var fe=le[pe];if(b){if(b!=="/")fe=b+"/"+fe;else fe=b+fe}if(fe.charAt(0)==="/"&&!this.nomount){fe=se.join(this.root,fe)}this._emitMatch(te,fe)}return ie()}ee.shift();for(var pe=0;pe<he;pe++){var fe=le[pe];var me;if(b){if(b!=="/")fe=b+"/"+fe;else fe=b+fe}this._process([fe].concat(ee),te,re,ie)}ie()};Glob.prototype._emitMatch=function(b,S){if(this.aborted)return;if(ve(this,S))return;if(this.paused){this._emitQueue.push([b,S]);return}var J=ue(S)?S:this._makeAbs(S);if(this.mark)S=this._mark(S);if(this.absolute)S=J;if(this.matches[b][S])return;if(this.nodir){var ee=this.cache[J];if(ee==="DIR"||Array.isArray(ee))return}this.matches[b][S]=true;var te=this.statCache[J];if(te)this.emit("stat",S,te);this.emit("match",S)};Glob.prototype._readdirInGlobStar=function(b,S){if(this.aborted)return;if(this.follow)return this._readdir(b,false,S);var J="lstat\0"+b;var te=this;var re=me(J,lstatcb_);if(re)ee.lstat(b,re);function lstatcb_(J,ee){if(J&&J.code==="ENOENT")return S();var re=ee&&ee.isSymbolicLink();te.symlinks[b]=re;if(!re&&ee&&!ee.isDirectory()){te.cache[b]="FILE";S()}else te._readdir(b,false,S)}};Glob.prototype._readdir=function(b,S,J){if(this.aborted)return;J=me("readdir\0"+b+"\0"+S,J);if(!J)return;if(S&&!he(this.symlinks,b))return this._readdirInGlobStar(b,J);if(he(this.cache,b)){var te=this.cache[b];if(!te||te==="FILE")return J();if(Array.isArray(te))return J(null,te)}var re=this;ee.readdir(b,readdirCb(this,b,J))};function readdirCb(b,S,J){return function(ee,te){if(ee)b._readdirError(S,ee,J);else b._readdirEntries(S,te,J)}}Glob.prototype._readdirEntries=function(b,S,J){if(this.aborted)return;if(!this.mark&&!this.stat){for(var ee=0;ee<S.length;ee++){var te=S[ee];if(b==="/")te=b+te;else te=b+"/"+te;this.cache[te]=true}}this.cache[b]=S;return J(null,S)};Glob.prototype._readdirError=function(b,S,J){if(this.aborted)return;switch(S.code){case"ENOTSUP":case"ENOTDIR":var ee=this._makeAbs(b);this.cache[ee]="FILE";if(ee===this.cwdAbs){var te=new Error(S.code+" invalid cwd "+this.cwd);te.path=this.cwd;te.code=S.code;this.emit("error",te);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(b)]=false;break;default:this.cache[this._makeAbs(b)]=false;if(this.strict){this.emit("error",S);this.abort()}if(!this.silent)console.error("glob error",S);break}return J()};Glob.prototype._processGlobStar=function(b,S,J,ee,te,re,ne){var ie=this;this._readdir(J,re,(function(oe,se){ie._processGlobStar2(b,S,J,ee,te,re,se,ne)}))};Glob.prototype._processGlobStar2=function(b,S,J,ee,te,re,ne,ie){if(!ne)return ie();var oe=ee.slice(1);var se=b?[b]:[];var ae=se.concat(oe);this._process(ae,te,false,ie);var ue=this.symlinks[J];var ce=ne.length;if(ue&&re)return ie();for(var le=0;le<ce;le++){var pe=ne[le];if(pe.charAt(0)==="."&&!this.dot)continue;var fe=se.concat(ne[le],oe);this._process(fe,te,true,ie);var de=se.concat(ne[le],ee);this._process(de,te,true,ie)}ie()};Glob.prototype._processSimple=function(b,S,J){var ee=this;this._stat(b,(function(te,re){ee._processSimple2(b,S,te,re,J)}))};Glob.prototype._processSimple2=function(b,S,J,ee,te){if(!this.matches[S])this.matches[S]=Object.create(null);if(!ee)return te();if(b&&ue(b)&&!this.nomount){var re=/[\/\\]$/.test(b);if(b.charAt(0)==="/"){b=se.join(this.root,b)}else{b=se.resolve(this.root,b);if(re)b+="/"}}if(process.platform==="win32")b=b.replace(/\\/g,"/");this._emitMatch(S,b);te()};Glob.prototype._stat=function(b,S){var J=this._makeAbs(b);var te=b.slice(-1)==="/";if(b.length>this.maxLength)return S();if(!this.stat&&he(this.cache,J)){var re=this.cache[J];if(Array.isArray(re))re="DIR";if(!te||re==="DIR")return S(null,re);if(te&&re==="FILE")return S()}var ne;var ie=this.statCache[J];if(ie!==undefined){if(ie===false)return S(null,ie);else{var oe=ie.isDirectory()?"DIR":"FILE";if(te&&oe==="FILE")return S();else return S(null,oe,ie)}}var se=this;var ae=me("stat\0"+J,lstatcb_);if(ae)ee.lstat(J,ae);function lstatcb_(te,re){if(re&&re.isSymbolicLink()){return ee.stat(J,(function(ee,te){if(ee)se._stat2(b,J,null,re,S);else se._stat2(b,J,ee,te,S)}))}else{se._stat2(b,J,te,re,S)}}};Glob.prototype._stat2=function(b,S,J,ee,te){if(J&&(J.code==="ENOENT"||J.code==="ENOTDIR")){this.statCache[S]=false;return te()}var re=b.slice(-1)==="/";this.statCache[S]=ee;if(S.slice(-1)==="/"&&ee&&!ee.isDirectory())return te(null,false,ee);var ne=true;if(ee)ne=ee.isDirectory()?"DIR":"FILE";this.cache[S]=this.cache[S]||ne;if(re&&ne==="FILE")return te();return te(null,ne,ee)}},21276:(b,S,J)=>{b.exports=globSync;globSync.GlobSync=GlobSync;var ee=J(57147);var te=J(98945);var re=J(99566);var ne=re.Minimatch;var ie=J(14203).Glob;var oe=J(73837);var se=J(71017);var ae=J(39491);var ue=J(21323);var ce=J(48599);var le=ce.alphasort;var pe=ce.alphasorti;var fe=ce.setopts;var de=ce.ownProp;var he=ce.childrenIgnored;var me=ce.isIgnored;function globSync(b,S){if(typeof S==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(b,S).found}function GlobSync(b,S){if(!b)throw new Error("must provide pattern");if(typeof S==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(b,S);fe(this,b,S);if(this.noprocess)return this;var J=this.minimatch.set.length;this.matches=new Array(J);for(var ee=0;ee<J;ee++){this._process(this.minimatch.set[ee],ee,false)}this._finish()}GlobSync.prototype._finish=function(){ae(this instanceof GlobSync);if(this.realpath){var b=this;this.matches.forEach((function(S,J){var ee=b.matches[J]=Object.create(null);for(var re in S){try{re=b._makeAbs(re);var ne=te.realpathSync(re,b.realpathCache);ee[ne]=true}catch(S){if(S.syscall==="stat")ee[b._makeAbs(re)]=true;else throw S}}}))}ce.finish(this)};GlobSync.prototype._process=function(b,S,J){ae(this instanceof GlobSync);var ee=0;while(typeof b[ee]==="string"){ee++}var te;switch(ee){case b.length:this._processSimple(b.join("/"),S);return;case 0:te=null;break;default:te=b.slice(0,ee).join("/");break}var ne=b.slice(ee);var ie;if(te===null)ie=".";else if(ue(te)||ue(b.join("/"))){if(!te||!ue(te))te="/"+te;ie=te}else ie=te;var oe=this._makeAbs(ie);if(he(this,ie))return;var se=ne[0]===re.GLOBSTAR;if(se)this._processGlobStar(te,ie,oe,ne,S,J);else this._processReaddir(te,ie,oe,ne,S,J)};GlobSync.prototype._processReaddir=function(b,S,J,ee,te,re){var ne=this._readdir(J,re);if(!ne)return;var ie=ee[0];var oe=!!this.minimatch.negate;var ae=ie._glob;var ue=this.dot||ae.charAt(0)===".";var ce=[];for(var le=0;le<ne.length;le++){var pe=ne[le];if(pe.charAt(0)!=="."||ue){var fe;if(oe&&!b){fe=!pe.match(ie)}else{fe=pe.match(ie)}if(fe)ce.push(pe)}}var de=ce.length;if(de===0)return;if(ee.length===1&&!this.mark&&!this.stat){if(!this.matches[te])this.matches[te]=Object.create(null);for(var le=0;le<de;le++){var pe=ce[le];if(b){if(b.slice(-1)!=="/")pe=b+"/"+pe;else pe=b+pe}if(pe.charAt(0)==="/"&&!this.nomount){pe=se.join(this.root,pe)}this._emitMatch(te,pe)}return}ee.shift();for(var le=0;le<de;le++){var pe=ce[le];var he;if(b)he=[b,pe];else he=[pe];this._process(he.concat(ee),te,re)}};GlobSync.prototype._emitMatch=function(b,S){if(me(this,S))return;var J=this._makeAbs(S);if(this.mark)S=this._mark(S);if(this.absolute){S=J}if(this.matches[b][S])return;if(this.nodir){var ee=this.cache[J];if(ee==="DIR"||Array.isArray(ee))return}this.matches[b][S]=true;if(this.stat)this._stat(S)};GlobSync.prototype._readdirInGlobStar=function(b){if(this.follow)return this._readdir(b,false);var S;var J;var te;try{J=ee.lstatSync(b)}catch(b){if(b.code==="ENOENT"){return null}}var re=J&&J.isSymbolicLink();this.symlinks[b]=re;if(!re&&J&&!J.isDirectory())this.cache[b]="FILE";else S=this._readdir(b,false);return S};GlobSync.prototype._readdir=function(b,S){var J;if(S&&!de(this.symlinks,b))return this._readdirInGlobStar(b);if(de(this.cache,b)){var te=this.cache[b];if(!te||te==="FILE")return null;if(Array.isArray(te))return te}try{return this._readdirEntries(b,ee.readdirSync(b))}catch(S){this._readdirError(b,S);return null}};GlobSync.prototype._readdirEntries=function(b,S){if(!this.mark&&!this.stat){for(var J=0;J<S.length;J++){var ee=S[J];if(b==="/")ee=b+ee;else ee=b+"/"+ee;this.cache[ee]=true}}this.cache[b]=S;return S};GlobSync.prototype._readdirError=function(b,S){switch(S.code){case"ENOTSUP":case"ENOTDIR":var J=this._makeAbs(b);this.cache[J]="FILE";if(J===this.cwdAbs){var ee=new Error(S.code+" invalid cwd "+this.cwd);ee.path=this.cwd;ee.code=S.code;throw ee}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(b)]=false;break;default:this.cache[this._makeAbs(b)]=false;if(this.strict)throw S;if(!this.silent)console.error("glob error",S);break}};GlobSync.prototype._processGlobStar=function(b,S,J,ee,te,re){var ne=this._readdir(J,re);if(!ne)return;var ie=ee.slice(1);var oe=b?[b]:[];var se=oe.concat(ie);this._process(se,te,false);var ae=ne.length;var ue=this.symlinks[J];if(ue&&re)return;for(var ce=0;ce<ae;ce++){var le=ne[ce];if(le.charAt(0)==="."&&!this.dot)continue;var pe=oe.concat(ne[ce],ie);this._process(pe,te,true);var fe=oe.concat(ne[ce],ee);this._process(fe,te,true)}};GlobSync.prototype._processSimple=function(b,S){var J=this._stat(b);if(!this.matches[S])this.matches[S]=Object.create(null);if(!J)return;if(b&&ue(b)&&!this.nomount){var ee=/[\/\\]$/.test(b);if(b.charAt(0)==="/"){b=se.join(this.root,b)}else{b=se.resolve(this.root,b);if(ee)b+="/"}}if(process.platform==="win32")b=b.replace(/\\/g,"/");this._emitMatch(S,b)};GlobSync.prototype._stat=function(b){var S=this._makeAbs(b);var J=b.slice(-1)==="/";if(b.length>this.maxLength)return false;if(!this.stat&&de(this.cache,S)){var te=this.cache[S];if(Array.isArray(te))te="DIR";if(!J||te==="DIR")return te;if(J&&te==="FILE")return false}var re;var ne=this.statCache[S];if(!ne){var ie;try{ie=ee.lstatSync(S)}catch(b){if(b&&(b.code==="ENOENT"||b.code==="ENOTDIR")){this.statCache[S]=false;return false}}if(ie&&ie.isSymbolicLink()){try{ne=ee.statSync(S)}catch(b){ne=ie}}else{ne=ie}}this.statCache[S]=ne;var te=true;if(ne)te=ne.isDirectory()?"DIR":"FILE";this.cache[S]=this.cache[S]||te;if(J&&te==="FILE")return false;return te};GlobSync.prototype._mark=function(b){return ce.mark(this,b)};GlobSync.prototype._makeAbs=function(b){return ce.makeAbs(this,b)}},66282:function(b,S,J){"use strict";var ee=this&&this.__createBinding||(Object.create?function(b,S,J,ee){if(ee===undefined)ee=J;var te=Object.getOwnPropertyDescriptor(S,J);if(!te||("get"in te?!S.__esModule:te.writable||te.configurable)){te={enumerable:true,get:function(){return S[J]}}}Object.defineProperty(b,ee,te)}:function(b,S,J,ee){if(ee===undefined)ee=J;b[ee]=S[J]});var te=this&&this.__setModuleDefault||(Object.create?function(b,S){Object.defineProperty(b,"default",{enumerable:true,value:S})}:function(b,S){b["default"]=S});var re=this&&this.__importStar||function(b){if(b&&b.__esModule)return b;var S={};if(b!=null)for(var J in b)if(J!=="default"&&Object.prototype.hasOwnProperty.call(b,J))ee(S,b,J);te(S,b);return S};var ne=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});const ie=J(86779);const oe=ne(J(57147));const se=ne(J(25130));const ae=ne(J(71017));const ue=J(73837);const ce=ne(J(50460));const le=re(J(11486));const pe=(0,ue.promisify)(ce.default);const fe={badJsonDefault:undefined,jsonParseErrorDefault:undefined,cantReadFileDefault:undefined,ensureDir:false,default:undefined,json5:false,space:2,addNewLineAtEOF:true};class JsonFile{file;options;static read=read;static readAsync=readAsync;static parseJsonString=parseJsonString;static writeAsync=writeAsync;static getAsync=getAsync;static setAsync=setAsync;static mergeAsync=mergeAsync;static deleteKeyAsync=deleteKeyAsync;static deleteKeysAsync=deleteKeysAsync;static rewriteAsync=rewriteAsync;constructor(b,S={}){this.file=b;this.options=S}read(b){return read(this.file,this._getOptions(b))}async readAsync(b){return readAsync(this.file,this._getOptions(b))}async writeAsync(b,S){return writeAsync(this.file,b,this._getOptions(S))}parseJsonString(b,S){return parseJsonString(b,S)}async getAsync(b,S,J){return getAsync(this.file,b,S,this._getOptions(J))}async setAsync(b,S,J){return setAsync(this.file,b,S,this._getOptions(J))}async mergeAsync(b,S){return mergeAsync(this.file,b,this._getOptions(S))}async deleteKeyAsync(b,S){return deleteKeyAsync(this.file,b,this._getOptions(S))}async deleteKeysAsync(b,S){return deleteKeysAsync(this.file,b,this._getOptions(S))}async rewriteAsync(b){return rewriteAsync(this.file,this._getOptions(b))}_getOptions(b){return{...this.options,...b}}}S["default"]=JsonFile;function read(b,S){let J;try{J=oe.default.readFileSync(b,"utf8")}catch(ee){assertEmptyJsonString(J,b);const te=cantReadFileDefault(S);if(te===undefined){throw new le.default(`Can't read JSON file: ${b}`,ee,ee.code,b)}else{return te}}return parseJsonString(J,S,b)}async function readAsync(b,S){let J;try{J=await oe.default.promises.readFile(b,"utf8")}catch(ee){assertEmptyJsonString(J,b);const te=cantReadFileDefault(S);if(te===undefined){throw new le.default(`Can't read JSON file: ${b}`,ee,ee.code)}else{return te}}return parseJsonString(J,S)}function parseJsonString(b,S,J){assertEmptyJsonString(b,J);try{if(_getOption(S,"json5")){return se.default.parse(b)}else{return JSON.parse(b)}}catch(ee){const te=jsonParseErrorDefault(S);if(te===undefined){const S=locationFromSyntaxError(ee,b);if(S){const J=(0,ie.codeFrameColumns)(b,{start:S});ee.codeFrame=J;ee.message+=`\n${J}`}throw new le.default(`Error parsing JSON: ${b}`,ee,"EJSONPARSE",J)}else{return te}}}async function getAsync(b,S,J,ee){const te=await readAsync(b,ee);if(S in te){return te[S]}if(J===undefined){throw new le.default(`No value at key path "${String(S)}" in JSON object from: ${b}`)}return J}async function writeAsync(b,S,J){if(J?.ensureDir){await oe.default.promises.mkdir(ae.default.dirname(b),{recursive:true})}const ee=_getOption(J,"space");const te=_getOption(J,"json5");const re=_getOption(J,"addNewLineAtEOF");let ne;try{if(te){ne=se.default.stringify(S,null,ee)}else{ne=JSON.stringify(S,null,ee)}}catch(S){throw new le.default(`Couldn't JSON.stringify object for file: ${b}`,S)}const ie=re?`${ne}\n`:ne;await pe(b,ie,{});return S}async function setAsync(b,S,J,ee){const te=await readAsync(b,ee);return writeAsync(b,{...te,[S]:J},ee)}async function mergeAsync(b,S,J){const ee=await readAsync(b,J);if(Array.isArray(S)){Object.assign(ee,...S)}else{Object.assign(ee,S)}return writeAsync(b,ee,J)}async function deleteKeyAsync(b,S,J){return deleteKeysAsync(b,[S],J)}async function deleteKeysAsync(b,S,J){const ee=await readAsync(b,J);let te=false;for(let b=0;b<S.length;b++){const J=S[b];if(ee.hasOwnProperty(J)){delete ee[J];te=true}}if(te){return writeAsync(b,ee,J)}return ee}async function rewriteAsync(b,S){const J=await readAsync(b,S);return writeAsync(b,J,S)}function jsonParseErrorDefault(b={}){if(b.jsonParseErrorDefault===undefined){return b.default}else{return b.jsonParseErrorDefault}}function cantReadFileDefault(b={}){if(b.cantReadFileDefault===undefined){return b.default}else{return b.cantReadFileDefault}}function _getOption(b,S){if(b){if(b[S]!==undefined){return b[S]}}return fe[S]}function locationFromSyntaxError(b,S){if("lineNumber"in b&&"columnNumber"in b){return{line:b.lineNumber,column:b.columnNumber}}const J=/at position (\d+)/.exec(b.message);if(J){const b=parseInt(J[1],10);const ee=S.slice(0,b+1).split("\n");return{line:ee.length,column:ee[ee.length-1].length}}return null}function assertEmptyJsonString(b,S){if(b?.trim()===""){throw new le.EmptyJsonFileError(S)}}},11486:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.EmptyJsonFileError=void 0;class JsonFileError extends Error{cause;code;fileName;isJsonFileError;constructor(b,S,J,ee){let te=b;if(ee){te+=`\n${S?"├":"└"}─ File: ${ee}`}if(S){te+=`\n└─ Cause: ${S.name}: ${S.message}`}super(te);this.name=this.constructor.name;this.cause=S;this.code=J;this.fileName=ee;this.isJsonFileError=true}}S["default"]=JsonFileError;class EmptyJsonFileError extends JsonFileError{constructor(b){super(`Cannot parse an empty JSON string`,undefined,"EJSONEMPTY",b)}}S.EmptyJsonFileError=EmptyJsonFileError},86779:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.codeFrameColumns=codeFrameColumns;S["default"]=_default;var ee=_interopRequireWildcard(J(40932));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var b=new WeakMap;_getRequireWildcardCache=function(){return b};return b}function _interopRequireWildcard(b){if(b&&b.__esModule){return b}if(b===null||typeof b!=="object"&&typeof b!=="function"){return{default:b}}var S=_getRequireWildcardCache();if(S&&S.has(b)){return S.get(b)}var J={};var ee=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var te in b){if(Object.prototype.hasOwnProperty.call(b,te)){var re=ee?Object.getOwnPropertyDescriptor(b,te):null;if(re&&(re.get||re.set)){Object.defineProperty(J,te,re)}else{J[te]=b[te]}}}J.default=b;if(S){S.set(b,J)}return J}let te=false;function getDefs(b){return{gutter:b.grey,marker:b.red.bold,message:b.red.bold}}const re=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(b,S,J){const ee=Object.assign({column:0,line:-1},b.start);const te=Object.assign({},ee,b.end);const{linesAbove:re=2,linesBelow:ne=3}=J||{};const ie=ee.line;const oe=ee.column;const se=te.line;const ae=te.column;let ue=Math.max(ie-(re+1),0);let ce=Math.min(S.length,se+ne);if(ie===-1){ue=0}if(se===-1){ce=S.length}const le=se-ie;const pe={};if(le){for(let b=0;b<=le;b++){const J=b+ie;if(!oe){pe[J]=true}else if(b===0){const b=S[J-1].length;pe[J]=[oe,b-oe+1]}else if(b===le){pe[J]=[0,ae]}else{const ee=S[J-b].length;pe[J]=[0,ee]}}}else{if(oe===ae){if(oe){pe[ie]=[oe,0]}else{pe[ie]=true}}else{pe[ie]=[oe,ae-oe]}}return{start:ue,end:ce,markerLines:pe}}function codeFrameColumns(b,S,J={}){const te=(J.highlightCode||J.forceColor)&&(0,ee.shouldHighlight)(J);const ne=(0,ee.getChalk)(J);const ie=getDefs(ne);const maybeHighlight=(b,S)=>te?b(S):S;const oe=b.split(re);const{start:se,end:ae,markerLines:ue}=getMarkerLines(S,oe,J);const ce=S.start&&typeof S.start.column==="number";const le=String(ae).length;const pe=te?(0,ee.default)(b,J):b;let fe=pe.split(re).slice(se,ae).map(((b,S)=>{const ee=se+1+S;const te=` ${ee}`.slice(-le);const re=` ${te} | `;const ne=ue[ee];const oe=!ue[ee+1];if(ne){let S="";if(Array.isArray(ne)){const ee=b.slice(0,Math.max(ne[0]-1,0)).replace(/[^\t]/g," ");const te=ne[1]||1;S=["\n ",maybeHighlight(ie.gutter,re.replace(/\d/g," ")),ee,maybeHighlight(ie.marker,"^").repeat(te)].join("");if(oe&&J.message){S+=" "+maybeHighlight(ie.message,J.message)}}return[maybeHighlight(ie.marker,">"),maybeHighlight(ie.gutter,re),b,S].join("")}else{return` ${maybeHighlight(ie.gutter,re)}${b}`}})).join("\n");if(J.message&&!ce){fe=`${" ".repeat(le+1)}${J.message}\n${fe}`}if(te){return ne.reset(fe)}else{return fe}}function _default(b,S,J,ee={}){if(!te){te=true;const b="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(b,"DeprecationWarning")}else{const S=new Error(b);S.name="DeprecationWarning";console.warn(new Error(b))}}J=Math.max(J,0);const re={start:{column:J,line:S}};return codeFrameColumns(b,re,ee)}},5997:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true})},97496:function(b,S,J){"use strict";var ee=this&&this.__createBinding||(Object.create?function(b,S,J,ee){if(ee===undefined)ee=J;var te=Object.getOwnPropertyDescriptor(S,J);if(!te||("get"in te?!S.__esModule:te.writable||te.configurable)){te={enumerable:true,get:function(){return S[J]}}}Object.defineProperty(b,ee,te)}:function(b,S,J,ee){if(ee===undefined)ee=J;b[ee]=S[J]});var te=this&&this.__exportStar||function(b,S){for(var J in b)if(J!=="default"&&!Object.prototype.hasOwnProperty.call(S,J))ee(S,b,J)};Object.defineProperty(S,"__esModule",{value:true});S.isYarnOfflineAsync=void 0;te(J(5997),S);te(J(11574),S);te(J(31178),S);te(J(6125),S);te(J(80057),S);te(J(66805),S);te(J(23746),S);te(J(44640),S);var re=J(20822);Object.defineProperty(S,"isYarnOfflineAsync",{enumerable:true,get:function(){return re.isYarnOfflineAsync}})},11574:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.getImprovedPodInstallError=S.getPodRepoUpdateMessage=S.getPodUpdateMessage=S.CocoaPodsPackageManager=S.extractMissingDependencyError=S.CocoaPodsError=void 0;const te=ee(J(95642));const re=ee(J(68746));const ne=J(57147);const ie=ee(J(22037));const oe=ee(J(71017));const se=J(96418);class CocoaPodsError extends Error{code;cause;name="CocoaPodsError";isPackageManagerError=true;constructor(b,S,J){super(J?`${b}\n└─ Cause: ${J.message}`:b);this.code=S;this.cause=J}}S.CocoaPodsError=CocoaPodsError;function extractMissingDependencyError(b){const S=b.match(/Unable to find a specification for ['"`]([\w-_\d\s]+)['"`] depended upon by ['"`]([\w-_\d\s]+)['"`]/);if(S){return[S[1],S[2]]}return null}S.extractMissingDependencyError=extractMissingDependencyError;class CocoaPodsPackageManager{options;silent;static getPodProjectRoot(b){if(CocoaPodsPackageManager.isUsingPods(b))return b;const S=oe.default.join(b,"ios");if(CocoaPodsPackageManager.isUsingPods(S))return S;const J=oe.default.join(b,"macos");if(CocoaPodsPackageManager.isUsingPods(J))return J;return null}static isUsingPods(b){return(0,ne.existsSync)(oe.default.join(b,"Podfile"))}static async gemInstallCLIAsync(b=false,S={stdio:"inherit"}){const J=["install","cocoapods","--no-document"];try{await(0,te.default)("gem",J,S)}catch(ee){if(b){throw new CocoaPodsError("Failed to install CocoaPods CLI with gem (recommended)","COMMAND_FAILED",ee)}await(0,se.spawnSudoAsync)(["gem",...J],S)}}static async brewLinkCLIAsync(b={stdio:"inherit"}){await(0,te.default)("brew",["link","cocoapods"],b)}static async brewInstallCLIAsync(b={stdio:"inherit"}){await(0,te.default)("brew",["install","cocoapods"],b)}static async installCLIAsync({nonInteractive:b=false,spawnOptions:S={stdio:"inherit"}}){if(!S){S={stdio:"inherit"}}const J=!!S.ignoreStdio;try{!J&&console.log(`› Attempting to install CocoaPods CLI with Gem`);await CocoaPodsPackageManager.gemInstallCLIAsync(b,S);!J&&console.log(`› Successfully installed CocoaPods CLI with Gem`);return true}catch(b){if(!J){console.log(re.default.yellow(`› Failed to install CocoaPods CLI with Gem`));console.log(re.default.red(b.stderr??b.message));console.log(`› Attempting to install CocoaPods CLI with Homebrew`)}try{await CocoaPodsPackageManager.brewInstallCLIAsync(S);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(S)){try{await CocoaPodsPackageManager.brewLinkCLIAsync(S);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(S)){throw new CocoaPodsError("CLI could not be installed automatically with gem or Homebrew, please install CocoaPods manually and try again","NO_CLI",b)}}catch(b){throw new CocoaPodsError("Homebrew installation appeared to succeed but CocoaPods CLI not found in PATH and unable to link.","NO_CLI",b)}}!J&&console.log(`› Successfully installed CocoaPods CLI with Homebrew`);return true}catch(b){!J&&console.warn(re.default.yellow(`› Failed to install CocoaPods with Homebrew. Please install CocoaPods CLI manually and try again.`));throw new CocoaPodsError(`Failed to install CocoaPods with Homebrew. Please install CocoaPods CLI manually and try again.`,"NO_CLI",b)}}}static isAvailable(b,S){if(process.platform!=="darwin"){!S&&console.log(re.default.red("CocoaPods is only supported on macOS machines"));return false}if(!CocoaPodsPackageManager.isUsingPods(b)){!S&&console.log(re.default.yellow("CocoaPods is not supported in this project"));return false}return true}static async isCLIInstalledAsync(b={stdio:"inherit"}){try{await(0,te.default)("pod",["--version"],b);return true}catch{return false}}constructor({cwd:b,silent:S}){this.silent=!!S;this.options={cwd:b,stdio:"pipe"}}get name(){return"CocoaPods"}async installAsync({spinner:b}={}){await this._installAsync({spinner:b})}isCLIInstalledAsync(){return CocoaPodsPackageManager.isCLIInstalledAsync(this.options)}installCLIAsync(){return CocoaPodsPackageManager.installCLIAsync({nonInteractive:true,spawnOptions:this.options})}async handleInstallErrorAsync({error:b,shouldUpdate:S=true,updatedPackages:J=[],spinner:ee}){if(!b.output){throw b}if(!S){throw getImprovedPodInstallError(b,{cwd:this.options.cwd})}const te=b.output.join(ie.default.EOL).trim();const{updatePackage:ne,shouldUpdateRepo:oe}=getPodUpdateMessage(te);if(!ne||J.includes(ne)){return await this._installAsync({spinner:ee,shouldRepoUpdate:true,shouldUpdate:false,updatedPackages:J})}J.push(ne);return await this.runInstallTypeCommandAsync(["update",ne,oe?"":"--no-repo-update"].filter(Boolean),{formatWarning(){const b=`Failed to update ${re.default.bold(ne)}. Attempting to update the repo instead.`;return b},spinner:ee,updatedPackages:J})}async _installAsync({shouldRepoUpdate:b,...S}={}){return await this.runInstallTypeCommandAsync(["install",b?"--repo-update":""].filter(Boolean),{formatWarning(b){return getPodRepoUpdateMessage(b.output.join(ie.default.EOL).trim()).message},...S})}async runInstallTypeCommandAsync(b,{formatWarning:S,...J}={}){try{return await this._runAsync(b)}catch(b){if(S){const ee=S(b);if(J.spinner){J.spinner.text=re.default.bold(ee)}if(!this.silent){console.warn(re.default.yellow(ee))}}return await this.handleInstallErrorAsync({error:b,...J})}}async addWithParametersAsync(b,S){throw new Error("Unimplemented")}addAsync(b=[]){throw new Error("Unimplemented")}addDevAsync(b=[]){throw new Error("Unimplemented")}addGlobalAsync(b=[]){throw new Error("Unimplemented")}removeAsync(b=[]){throw new Error("Unimplemented")}removeDevAsync(b=[]){throw new Error("Unimplemented")}removeGlobalAsync(b=[]){throw new Error("Unimplemented")}async versionAsync(){const{stdout:b}=await(0,te.default)("pod",["--version"],this.options);return b.trim()}async configAsync(b){throw new Error("Unimplemented")}async removeLockfileAsync(){throw new Error("Unimplemented")}async uninstallAsync(){throw new Error("Unimplemented")}async podRepoUpdateAsync(){try{await this._runAsync(["repo","update"])}catch(b){b.message=b.message||(b.stderr??b.stdout);throw new CocoaPodsError("The command `pod install --repo-update` failed","COMMAND_FAILED",b)}}async _runAsync(b){if(!this.silent){console.log(`> pod ${b.join(" ")}`)}const S=(0,te.default)("pod",[...b,"--ansi"],{...this.options,stdio:"pipe"});if(!this.silent){if(S.child.stdout){S.child.stdout.pipe(process.stdout)}}return await S}}S.CocoaPodsPackageManager=CocoaPodsPackageManager;function shouldPodRepoUpdate(b){const S=b;const J=S.includes("pod repo update")||S.includes("--no-repo-update");return J}function getPodUpdateMessage(b){const S=b.match(/run ['"`]pod update ([\w-_\d/]+)( --no-repo-update)?['"`] to apply changes/);return{updatePackage:S?.[1]??null,shouldUpdateRepo:!S?.[2]}}S.getPodUpdateMessage=getPodUpdateMessage;function getPodRepoUpdateMessage(b){const S=extractMissingDependencyError(b);const J=getPodUpdateMessage(b);let ee;if(S){ee=`Couldn't install: ${S[1]} » ${re.default.underline(S[0])}.`}else if(J?.updatePackage){ee=`Couldn't install: ${J?.updatePackage}.`}else{ee=`Couldn't install Pods.`}ee+=` Updating the Pods project and trying again...`;return{message:ee,...J}}S.getPodRepoUpdateMessage=getPodRepoUpdateMessage;function getImprovedPodInstallError(b,{cwd:S=process.cwd()}){const J=b.output.join(ie.default.EOL).trim();if(b.stdout.match(/No [`'"]Podfile[`'"] found in the project directory/)){b.message=`No Podfile found in directory: ${S}. Ensure CocoaPods is setup any try again.`}else if(shouldPodRepoUpdate(J)){const S=extractMissingDependencyError(J);let ee;if(S){ee=`Couldn't install: ${S[1]} » ${re.default.underline(S[0])}`}else{ee=`This is often due to native package versions mismatching`}let te;if(S?.[0]){if(S[0].match(/^(?:@?expo|@?react)(-|\/)/)){te=`Ensure the node module "${S[0]}" is installed in your project, then run 'npx pod-install' to try again.`}else{te=`Ensure the CocoaPod "${S[0]}" is installed in your project, then run 'npx pod-install' to try again.`}}else{te=`Try deleting the 'ios/Pods' folder or the 'ios/Podfile.lock' file and running 'npx pod-install' to resolve.`}b.message=`${ee}. ${te}`;if(b.stdout){const S=b.stdout.split(ie.default.EOL);const J=S.findIndex((b=>b.startsWith("[!]")));if(J!==-1){const ee=S.slice(J).join(ie.default.EOL);b.message+=`\n\n${re.default.gray(ee)}`}}return new CocoaPodsError("Command `pod install --repo-update` failed.","COMMAND_FAILED",b)}else{let S=b.stderr.trim();const J=b.stdout.match(/\[!\]\s((?:.|\n)*)/)?.[1];if(J){if(b.message?.match(/pod exited with non-zero code: 1/)){b.message=""}S=null}b.message=[J,b.message,S].filter(Boolean).join("\n")}return new CocoaPodsError("Command `pod install` failed.","COMMAND_FAILED",b)}S.getImprovedPodInstallError=getImprovedPodInstallError},31729:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.BasePackageManager=void 0;const te=ee(J(95642));const re=ee(J(39491));const ne=ee(J(57147));const ie=ee(J(71017));class BasePackageManager{silent;log;options;constructor({silent:b,log:S,env:J=process.env,...ee}={}){this.silent=!!b;this.log=S??(!b?console.log:undefined);this.options={stdio:b?undefined:"inherit",...ee,env:{...this.getDefaultEnvironment(),...J}}}getDefaultEnvironment(){return{ADBLOCK:"1",DISABLE_OPENCOLLECTIVE:"1"}}ensureCwdDefined(b){const S=this.options.cwd?.toString();const J=this.constructor.name;const ee=b?`.${b}`:"";(0,re.default)(S,`cwd is required for ${J}${ee}`);return S}runAsync(b,S={}){this.log?.(`> ${this.name} ${b.join(" ")}`);return(0,te.default)(this.bin,b,{...this.options,...S})}runBinAsync(b,S={}){this.log?.(`> ${this.name} ${b.join(" ")}`);return(0,te.default)(this.bin,b,{...this.options,...S})}async versionAsync(){const{stdout:b}=await this.runAsync(["--version"],{stdio:undefined});return b.trim()}async getConfigAsync(b){const{stdout:S}=await this.runAsync(["config","get",b]);return S.trim()}async removeLockfileAsync(){const b=this.ensureCwdDefined("removeLockFile");const S=ie.default.join(b,this.lockFile);await ne.default.promises.rm(S,{force:true})}installAsync(b=[]){return this.runAsync(["install",...b])}async uninstallAsync(){const b=this.ensureCwdDefined("uninstallAsync");const S=ie.default.join(b,"node_modules");await ne.default.promises.rm(S,{force:true,recursive:true})}}S.BasePackageManager=BasePackageManager},66805:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.BunPackageManager=void 0;const ee=J(31729);const te=J(44640);class BunPackageManager extends ee.BasePackageManager{name="bun";bin="bun";lockFile=te.BUN_LOCK_FILE;workspaceRoot(){const b=(0,te.findYarnOrNpmWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(b){return new BunPackageManager({...this.options,silent:this.silent,log:this.log,cwd:b})}return null}installAsync(b=[]){return this.runAsync(["install",...b])}addAsync(b=[]){if(!b.length){return this.installAsync()}return this.runAsync(["add",...b])}addDevAsync(b=[]){if(!b.length){return this.installAsync()}return this.runAsync(["add","--dev",...b])}addGlobalAsync(b=[]){if(!b.length){return this.installAsync()}return this.runAsync(["add","--global",...b])}removeAsync(b){return this.runAsync(["remove",...b])}removeDevAsync(b){return this.runAsync(["remove",...b])}removeGlobalAsync(b){return this.runAsync(["remove","--global",...b])}}S.BunPackageManager=BunPackageManager},31178:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.NpmPackageManager=void 0;const te=ee(J(66282));const re=ee(J(95642));const ne=ee(J(79726));const ie=ee(J(71017));const oe=J(31729);const se=J(44640);const ae=J(96418);class NpmPackageManager extends oe.BasePackageManager{name="npm";bin="npm";lockFile=se.NPM_LOCK_FILE;workspaceRoot(){const b=(0,se.findYarnOrNpmWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(b){return new NpmPackageManager({...this.options,silent:this.silent,log:this.log,cwd:b})}return null}addAsync(b=[]){if(!b.length){return this.installAsync()}const{flags:S,versioned:J,unversioned:ee}=this.parsePackageSpecs(b);return(0,ae.createPendingSpawnAsync)((()=>this.updatePackageFileAsync(J,"dependencies")),(()=>!ee.length?this.runAsync(["install",...S]):this.runAsync(["install","--save",...S,...ee.map((b=>b.raw))])))}addDevAsync(b=[]){if(!b.length){return this.installAsync()}const{flags:S,versioned:J,unversioned:ee}=this.parsePackageSpecs(b);return(0,ae.createPendingSpawnAsync)((()=>this.updatePackageFileAsync(J,"devDependencies")),(()=>!ee.length?this.runAsync(["install",...S]):this.runAsync(["install","--save-dev",...S,...ee.map((b=>b.raw))])))}addGlobalAsync(b=[]){if(!b.length){return this.installAsync()}return this.runAsync(["install","--global",...b])}removeAsync(b){return this.runAsync(["uninstall",...b])}removeDevAsync(b){return this.runAsync(["uninstall","--save-dev",...b])}removeGlobalAsync(b){return this.runAsync(["uninstall","--global",...b])}runBinAsync(b,S={}){this.log?.(`> npx ${b.join(" ")}`);return(0,re.default)("npx",b,{...this.options,...S})}parsePackageSpecs(b){const S={flags:[],versioned:[],unversioned:[]};b.map((b=>{if(b.trim().startsWith("-")){S.flags.push(b);return null}return(0,ne.default)(b)})).forEach((b=>{if(b&&b.rawSpec&&b.type!=="tag"){S.versioned.push(b)}else if(b){S.unversioned.push(b)}}));return S}async updatePackageFileAsync(b,S){if(!b.length){return}const J=ie.default.join(this.options.cwd?.toString()||".","package.json");const ee=await te.default.readAsync(J);b.forEach((b=>{ee[S]=ee[S]||{};ee[S][b.name]=b.rawSpec}));await te.default.writeAsync(J,ee,{json5:false})}}S.NpmPackageManager=NpmPackageManager},6125:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.PnpmPackageManager=void 0;const te=J(31729);const re=ee(J(41966));const ne=J(44640);class PnpmPackageManager extends te.BasePackageManager{name="pnpm";bin="pnpm";lockFile=ne.PNPM_LOCK_FILE;workspaceRoot(){const b=(0,ne.findPnpmWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(b){return new PnpmPackageManager({...this.options,silent:this.silent,log:this.log,cwd:b})}return null}installAsync(b=[]){if(re.default.CI&&!b.join(" ").includes("frozen-lockfile")){b.unshift("--no-frozen-lockfile")}return this.runAsync(["install",...b])}addAsync(b=[]){if(!b.length){return this.installAsync()}return this.runAsync(["add",...b])}addDevAsync(b=[]){if(!b.length){return this.installAsync()}return this.runAsync(["add","--save-dev",...b])}addGlobalAsync(b=[]){if(!b.length){return this.installAsync()}return this.runAsync(["add","--global",...b])}removeAsync(b){return this.runAsync(["remove",...b])}removeDevAsync(b){return this.runAsync(["remove","--save-dev",...b])}removeGlobalAsync(b){return this.runAsync(["remove","--global",...b])}}S.PnpmPackageManager=PnpmPackageManager},80057:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.YarnPackageManager=void 0;const ee=J(31729);const te=J(44640);const re=J(96418);const ne=J(20822);class YarnPackageManager extends ee.BasePackageManager{name="yarn";bin="yarnpkg";lockFile=te.YARN_LOCK_FILE;async withOfflineFlagAsync(b){return await(0,ne.isYarnOfflineAsync)()?[...b,"--offline"]:b}workspaceRoot(){const b=(0,te.findYarnOrNpmWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(b){return new YarnPackageManager({...this.options,silent:this.silent,log:this.log,cwd:b})}return null}installAsync(b=[]){return(0,re.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["install"])),(S=>this.runAsync([...S,...b])))}addAsync(b=[]){if(!b.length){return this.installAsync()}return(0,re.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["add",...b])),(b=>this.runAsync(b)))}addDevAsync(b=[]){if(!b.length){return this.installAsync()}return(0,re.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["add","--dev",...b])),(b=>this.runAsync(b)))}addGlobalAsync(b=[]){if(!b.length){return this.installAsync()}return(0,re.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["global","add",...b])),(b=>this.runAsync(b)))}removeAsync(b){return this.runAsync(["remove",...b])}removeDevAsync(b){return this.runAsync(["remove",...b])}removeGlobalAsync(b){return this.runAsync(["global","remove",...b])}}S.YarnPackageManager=YarnPackageManager},41966:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});class Env{get CI(){const{CI:b}=process.env;return b?.toLowerCase()==="true"||b==="1"}}S["default"]=new Env},23746:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.createForProject=S.resolvePackageManager=S.findWorkspaceRoot=S.RESOLUTION_ORDER=void 0;const te=ee(J(57147));const re=ee(J(71017));const ne=J(44640);const ie=J(66805);const oe=J(31178);const se=J(6125);const ae=J(80057);S.RESOLUTION_ORDER=["bun","yarn","npm","pnpm"];function findWorkspaceRoot(b,J){const ee={npm:ne.findYarnOrNpmWorkspaceRoot,yarn:ne.findYarnOrNpmWorkspaceRoot,pnpm:ne.findPnpmWorkspaceRoot,bun:ne.findYarnOrNpmWorkspaceRoot};if(J){return ee[J](b)}for(const J of S.RESOLUTION_ORDER){const S=ee[J](b);if(S){return S}}return null}S.findWorkspaceRoot=findWorkspaceRoot;function resolvePackageManager(b,J){const ee=findWorkspaceRoot(b,J)??b;const ie={npm:ne.NPM_LOCK_FILE,pnpm:ne.PNPM_LOCK_FILE,yarn:ne.YARN_LOCK_FILE,bun:ne.BUN_LOCK_FILE};if(J){if(te.default.existsSync(re.default.join(ee,ie[J]))){return J}return null}for(const b of S.RESOLUTION_ORDER){if(te.default.existsSync(re.default.join(ee,ie[b]))){return b}}return null}S.resolvePackageManager=resolvePackageManager;function createForProject(b,S={}){if(S.npm){return new oe.NpmPackageManager({cwd:b,...S})}else if(S.yarn){return new ae.YarnPackageManager({cwd:b,...S})}else if(S.pnpm){return new se.PnpmPackageManager({cwd:b,...S})}else if(S.bun){return new ie.BunPackageManager({cwd:b,...S})}switch(resolvePackageManager(b)){case"npm":return new oe.NpmPackageManager({cwd:b,...S});case"pnpm":return new se.PnpmPackageManager({cwd:b,...S});case"yarn":return new ae.YarnPackageManager({cwd:b,...S});case"bun":return new ie.BunPackageManager({cwd:b,...S});default:return new oe.NpmPackageManager({cwd:b,...S})}}S.createForProject=createForProject},44640:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.findPnpmWorkspaceRoot=S.findYarnOrNpmWorkspaceRoot=S.BUN_LOCK_FILE=S.PNPM_WORKSPACE_FILE=S.PNPM_LOCK_FILE=S.YARN_LOCK_FILE=S.NPM_LOCK_FILE=void 0;const te=J(14823);const re=ee(J(86736));const ne=ee(J(57147));const ie=ee(J(26264));const oe=ee(J(39015));const se=ee(J(71017));S.NPM_LOCK_FILE="package-lock.json";S.YARN_LOCK_FILE="yarn.lock";S.PNPM_LOCK_FILE="pnpm-lock.yaml";S.PNPM_WORKSPACE_FILE="pnpm-workspace.yaml";S.BUN_LOCK_FILE="bun.lockb";function findYarnOrNpmWorkspaceRoot(b){try{return(0,re.default)(b)}catch(b){if(b.message.includes("Unexpected end of JSON input")){return null}throw b}}S.findYarnOrNpmWorkspaceRoot=findYarnOrNpmWorkspaceRoot;function findPnpmWorkspaceRoot(b){const J="NPM_CONFIG_WORKSPACE_DIR";const ee=process.env[J]??process.env[J.toLowerCase()];const re=ee?se.default.join(ee,S.PNPM_WORKSPACE_FILE):(0,te.sync)(S.PNPM_WORKSPACE_FILE,{cwd:b});if(!re||!ne.default.existsSync(re)){return null}try{const{packages:S}=ie.default.load(ne.default.readFileSync(re,"utf8"));const J=se.default.dirname(re);const ee=se.default.relative(J,b);if(ee===""||(0,oe.default)([ee],S).length>0){return J}}catch{return null}return null}S.findPnpmWorkspaceRoot=findPnpmWorkspaceRoot},96418:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.spawnSudoAsync=S.createPendingSpawnAsync=void 0;const te=ee(J(95642));const re=ee(J(75667));function createPendingSpawnAsync(b,S){let J;const ee=new Promise(((b,S)=>{J=b}));const te=new Promise(((ee,te)=>{b().then((b=>{const re=S(b);J(re.child);re.then(ee).catch(te)})).catch((b=>{J(null);te(b)}))}));te.child=ee;return te}S.createPendingSpawnAsync=createPendingSpawnAsync;async function spawnSudoAsync(b,S){if(process.platform==="win32"){return new Promise(((S,J)=>{re.default.exec(b.join(" "),{name:"pod install"},(b=>{if(b){J(b)}S()}))}))}else{console.log("Your password might be needed to install CocoaPods CLI: https://guides.cocoapods.org/using/getting-started.html#installation");await(0,te.default)("sudo",b,S)}}S.spawnSudoAsync=spawnSudoAsync},20822:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.getNpmProxy=S.isYarnOfflineAsync=void 0;const te=J(32081);const re=ee(J(9523));const ne=ee(J(57310));async function isYarnOfflineAsync(){if(await isUrlAvailableAsync("registry.yarnpkg.com")){return false}const b=getNpmProxy();if(!b){return true}const{hostname:S}=ne.default.parse(b);if(!S){return true}return!await isUrlAvailableAsync(S)}S.isYarnOfflineAsync=isYarnOfflineAsync;function getNpmProxy(){if(process.env.https_proxy){return process.env.https_proxy??null}try{const b=(0,te.execSync)("npm config get https-proxy").toString().trim();return b!=="null"?b:null}catch{return null}}S.getNpmProxy=getNpmProxy;function isUrlAvailableAsync(b){return new Promise((S=>{re.default.lookup(b,(b=>{S(!b)}))}))}},12395:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.build=void 0;const te=ee(J(92991));const re=ee(J(65769));function ISODateString(b){function pad(b){return b<10?"0"+b:b}return b.getUTCFullYear()+"-"+pad(b.getUTCMonth()+1)+"-"+pad(b.getUTCDate())+"T"+pad(b.getUTCHours())+":"+pad(b.getUTCMinutes())+":"+pad(b.getUTCSeconds())+"Z"}const ne=Object.prototype.toString;function type(b){const S=ne.call(b).match(/\[object (.*)\]/);return S?S[1]:S}function build(b,S){const J={version:"1.0",encoding:"UTF-8"};const ee={pubid:"-//Apple//DTD PLIST 1.0//EN",sysid:"http://www.apple.com/DTDs/PropertyList-1.0.dtd"};const te=re.default.create("plist");te.dec(J.version,J.encoding,J.standalone);te.dtd(ee.pubid,ee.sysid);te.att("version","1.0");walk_obj(b,te);if(!S)S={};S.pretty=S.pretty!==false;return te.end(S)}S.build=build;function walk_obj(b,S){let J,ee,re;const ne=type(b);if(ne=="Undefined"){}else if(Array.isArray(b)){S=S.ele("array");for(ee=0;ee<b.length;ee++){walk_obj(b[ee],S)}}else if(Buffer.isBuffer(b)){S.ele("data").raw(b.toString("base64"))}else if(ne=="Object"){S=S.ele("dict");for(re in b){if(b.hasOwnProperty(re)&&b[re]!==undefined){S.ele("key").txt(re);walk_obj(b[re],S)}}}else if(ne=="Number"){J=b%1===0?"integer":"real";S.ele(J).txt(b.toString())}else if(ne=="Date"){S.ele("date").txt(ISODateString(new Date(b)))}else if(ne=="Boolean"){S.ele(b?"true":"false")}else if(ne=="String"){S.ele("string").txt(b)}else if(ne=="ArrayBuffer"){S.ele("data").raw(te.default.fromByteArray(b))}else if(b&&b.buffer&&type(b.buffer)=="ArrayBuffer"){S.ele("data").raw(te.default.fromByteArray(new Uint8Array(b.buffer)))}}},83681:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});const ee=J(12395);const te=J(76859);S["default"]={parse:te.parse,build:ee.build}},76859:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.parse=void 0;const te=J(1328);const re=ee(J(39491));const ne=3;const ie=4;const oe=8;function shouldIgnoreNode(b){return b.nodeType===ne||b.nodeType===oe||b.nodeType===ie}function isEmptyNode(b){return!b.childNodes||b.childNodes.length===0}function parse(b){const S=new te.DOMParser({errorHandler(){}}).parseFromString(b);(0,re.default)(S.documentElement.nodeName==="plist","malformed document. First element should be <plist>");let J=parsePlistXML(S.documentElement);if(J.length==1)J=J[0];return J}S.parse=parse;function parsePlistXML(b){let S,J,ee,te,oe,se;if(!b)return null;if(b.nodeName==="plist"){te=[];if(isEmptyNode(b)){return te}for(S=0;S<b.childNodes.length;S++){if(!shouldIgnoreNode(b.childNodes[S])){te.push(parsePlistXML(b.childNodes[S]))}}return te}else if(b.nodeName==="dict"){J={};ee=null;se=0;if(isEmptyNode(b)){return J}for(S=0;S<b.childNodes.length;S++){if(shouldIgnoreNode(b.childNodes[S]))continue;if(se%2===0){(0,re.default)(b.childNodes[S].nodeName==="key","Missing key while parsing <dict/>.");ee=parsePlistXML(b.childNodes[S])}else{(0,re.default)(b.childNodes[S].nodeName!=="key",'Unexpected key "'+parsePlistXML(b.childNodes[S])+'" while parsing <dict/>.');J[ee]=parsePlistXML(b.childNodes[S])}se+=1}if(se%2===1){throw new Error('Missing value for "'+ee+'" while parsing <dict/>')}return J}else if(b.nodeName==="array"){te=[];if(isEmptyNode(b)){return te}for(S=0;S<b.childNodes.length;S++){if(!shouldIgnoreNode(b.childNodes[S])){oe=parsePlistXML(b.childNodes[S]);if(oe!=null)te.push(oe)}}return te}else if(b.nodeName==="#text"){}else if(b.nodeName==="key"){if(isEmptyNode(b)){return""}return b.childNodes[0].nodeValue}else if(b.nodeName==="string"){oe="";if(isEmptyNode(b)){return oe}for(S=0;S<b.childNodes.length;S++){const J=b.childNodes[S].nodeType;if(J===ne||J===ie){oe+=b.childNodes[S].nodeValue}}return oe}else if(b.nodeName==="integer"){(0,re.default)(!isEmptyNode(b),'Cannot parse "" as integer.');return parseInt(b.childNodes[0].nodeValue,10)}else if(b.nodeName==="real"){(0,re.default)(!isEmptyNode(b),'Cannot parse "" as real.');oe="";for(S=0;S<b.childNodes.length;S++){if(b.childNodes[S].nodeType===ne){oe+=b.childNodes[S].nodeValue}}return parseFloat(oe)}else if(b.nodeName==="data"){oe="";if(isEmptyNode(b)){return Buffer.from(oe,"base64")}for(S=0;S<b.childNodes.length;S++){if(b.childNodes[S].nodeType===ne){oe+=b.childNodes[S].nodeValue.replace(/\s+/g,"")}}return Buffer.from(oe,"base64")}else if(b.nodeName==="date"){(0,re.default)(!isEmptyNode(b),'Cannot parse "" as Date.');return new Date(b.childNodes[0].nodeValue)}else if(b.nodeName==="true"){return true}else if(b.nodeName==="false"){return false}}},49686:(b,S,J)=>{S.alphasort=alphasort;S.alphasorti=alphasorti;S.setopts=setopts;S.ownProp=ownProp;S.makeAbs=makeAbs;S.finish=finish;S.mark=mark;S.isIgnored=isIgnored;S.childrenIgnored=childrenIgnored;function ownProp(b,S){return Object.prototype.hasOwnProperty.call(b,S)}var ee=J(71017);var te=J(99566);var re=J(21323);var ne=te.Minimatch;function alphasorti(b,S){return b.toLowerCase().localeCompare(S.toLowerCase())}function alphasort(b,S){return b.localeCompare(S)}function setupIgnores(b,S){b.ignore=S.ignore||[];if(!Array.isArray(b.ignore))b.ignore=[b.ignore];if(b.ignore.length){b.ignore=b.ignore.map(ignoreMap)}}function ignoreMap(b){var S=null;if(b.slice(-3)==="/**"){var J=b.replace(/(\/\*\*)+$/,"");S=new ne(J,{dot:true})}return{matcher:new ne(b,{dot:true}),gmatcher:S}}function setopts(b,S,J){if(!J)J={};if(J.matchBase&&-1===S.indexOf("/")){if(J.noglobstar){throw new Error("base matching requires globstar")}S="**/"+S}b.silent=!!J.silent;b.pattern=S;b.strict=J.strict!==false;b.realpath=!!J.realpath;b.realpathCache=J.realpathCache||Object.create(null);b.follow=!!J.follow;b.dot=!!J.dot;b.mark=!!J.mark;b.nodir=!!J.nodir;if(b.nodir)b.mark=true;b.sync=!!J.sync;b.nounique=!!J.nounique;b.nonull=!!J.nonull;b.nosort=!!J.nosort;b.nocase=!!J.nocase;b.stat=!!J.stat;b.noprocess=!!J.noprocess;b.absolute=!!J.absolute;b.maxLength=J.maxLength||Infinity;b.cache=J.cache||Object.create(null);b.statCache=J.statCache||Object.create(null);b.symlinks=J.symlinks||Object.create(null);setupIgnores(b,J);b.changedCwd=false;var te=process.cwd();if(!ownProp(J,"cwd"))b.cwd=te;else{b.cwd=ee.resolve(J.cwd);b.changedCwd=b.cwd!==te}b.root=J.root||ee.resolve(b.cwd,"/");b.root=ee.resolve(b.root);if(process.platform==="win32")b.root=b.root.replace(/\\/g,"/");b.cwdAbs=re(b.cwd)?b.cwd:makeAbs(b,b.cwd);if(process.platform==="win32")b.cwdAbs=b.cwdAbs.replace(/\\/g,"/");b.nomount=!!J.nomount;J.nonegate=true;J.nocomment=true;b.minimatch=new ne(S,J);b.options=b.minimatch.options}function finish(b){var S=b.nounique;var J=S?[]:Object.create(null);for(var ee=0,te=b.matches.length;ee<te;ee++){var re=b.matches[ee];if(!re||Object.keys(re).length===0){if(b.nonull){var ne=b.minimatch.globSet[ee];if(S)J.push(ne);else J[ne]=true}}else{var ie=Object.keys(re);if(S)J.push.apply(J,ie);else ie.forEach((function(b){J[b]=true}))}}if(!S)J=Object.keys(J);if(!b.nosort)J=J.sort(b.nocase?alphasorti:alphasort);if(b.mark){for(var ee=0;ee<J.length;ee++){J[ee]=b._mark(J[ee])}if(b.nodir){J=J.filter((function(S){var J=!/\/$/.test(S);var ee=b.cache[S]||b.cache[makeAbs(b,S)];if(J&&ee)J=ee!=="DIR"&&!Array.isArray(ee);return J}))}}if(b.ignore.length)J=J.filter((function(S){return!isIgnored(b,S)}));b.found=J}function mark(b,S){var J=makeAbs(b,S);var ee=b.cache[J];var te=S;if(ee){var re=ee==="DIR"||Array.isArray(ee);var ne=S.slice(-1)==="/";if(re&&!ne)te+="/";else if(!re&&ne)te=te.slice(0,-1);if(te!==S){var ie=makeAbs(b,te);b.statCache[ie]=b.statCache[J];b.cache[ie]=b.cache[J]}}return te}function makeAbs(b,S){var J=S;if(S.charAt(0)==="/"){J=ee.join(b.root,S)}else if(re(S)||S===""){J=S}else if(b.changedCwd){J=ee.resolve(b.cwd,S)}else{J=ee.resolve(S)}if(process.platform==="win32")J=J.replace(/\\/g,"/");return J}function isIgnored(b,S){if(!b.ignore.length)return false;return b.ignore.some((function(b){return b.matcher.match(S)||!!(b.gmatcher&&b.gmatcher.match(S))}))}function childrenIgnored(b,S){if(!b.ignore.length)return false;return b.ignore.some((function(b){return!!(b.gmatcher&&b.gmatcher.match(S))}))}},91104:(b,S,J)=>{b.exports=glob;var ee=J(57147);var te=J(98945);var re=J(99566);var ne=re.Minimatch;var ie=J(76919);var oe=J(82361).EventEmitter;var se=J(71017);var ae=J(39491);var ue=J(21323);var ce=J(82231);var le=J(49686);var pe=le.alphasort;var fe=le.alphasorti;var de=le.setopts;var he=le.ownProp;var me=J(39442);var ge=J(73837);var ye=le.childrenIgnored;var ve=le.isIgnored;var Te=J(87197);function glob(b,S,J){if(typeof S==="function")J=S,S={};if(!S)S={};if(S.sync){if(J)throw new TypeError("callback provided to sync glob");return ce(b,S)}return new Glob(b,S,J)}glob.sync=ce;var be=glob.GlobSync=ce.GlobSync;glob.glob=glob;function extend(b,S){if(S===null||typeof S!=="object"){return b}var J=Object.keys(S);var ee=J.length;while(ee--){b[J[ee]]=S[J[ee]]}return b}glob.hasMagic=function(b,S){var J=extend({},S);J.noprocess=true;var ee=new Glob(b,J);var te=ee.minimatch.set;if(!b)return false;if(te.length>1)return true;for(var re=0;re<te[0].length;re++){if(typeof te[0][re]!=="string")return true}return false};glob.Glob=Glob;ie(Glob,oe);function Glob(b,S,J){if(typeof S==="function"){J=S;S=null}if(S&&S.sync){if(J)throw new TypeError("callback provided to sync glob");return new be(b,S)}if(!(this instanceof Glob))return new Glob(b,S,J);de(this,b,S);this._didRealPath=false;var ee=this.minimatch.set.length;this.matches=new Array(ee);if(typeof J==="function"){J=Te(J);this.on("error",J);this.on("end",(function(b){J(null,b)}))}var te=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(ee===0)return done();var re=true;for(var ne=0;ne<ee;ne++){this._process(this.minimatch.set[ne],ne,false,done)}re=false;function done(){--te._processing;if(te._processing<=0){if(re){process.nextTick((function(){te._finish()}))}else{te._finish()}}}}Glob.prototype._finish=function(){ae(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();le.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var b=this.matches.length;if(b===0)return this._finish();var S=this;for(var J=0;J<this.matches.length;J++)this._realpathSet(J,next);function next(){if(--b===0)S._finish()}};Glob.prototype._realpathSet=function(b,S){var J=this.matches[b];if(!J)return S();var ee=Object.keys(J);var re=this;var ne=ee.length;if(ne===0)return S();var ie=this.matches[b]=Object.create(null);ee.forEach((function(J,ee){J=re._makeAbs(J);te.realpath(J,re.realpathCache,(function(ee,te){if(!ee)ie[te]=true;else if(ee.syscall==="stat")ie[J]=true;else re.emit("error",ee);if(--ne===0){re.matches[b]=ie;S()}}))}))};Glob.prototype._mark=function(b){return le.mark(this,b)};Glob.prototype._makeAbs=function(b){return le.makeAbs(this,b)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var b=this._emitQueue.slice(0);this._emitQueue.length=0;for(var S=0;S<b.length;S++){var J=b[S];this._emitMatch(J[0],J[1])}}if(this._processQueue.length){var ee=this._processQueue.slice(0);this._processQueue.length=0;for(var S=0;S<ee.length;S++){var te=ee[S];this._processing--;this._process(te[0],te[1],te[2],te[3])}}}};Glob.prototype._process=function(b,S,J,ee){ae(this instanceof Glob);ae(typeof ee==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([b,S,J,ee]);return}var te=0;while(typeof b[te]==="string"){te++}var ne;switch(te){case b.length:this._processSimple(b.join("/"),S,ee);return;case 0:ne=null;break;default:ne=b.slice(0,te).join("/");break}var ie=b.slice(te);var oe;if(ne===null)oe=".";else if(ue(ne)||ue(b.join("/"))){if(!ne||!ue(ne))ne="/"+ne;oe=ne}else oe=ne;var se=this._makeAbs(oe);if(ye(this,oe))return ee();var ce=ie[0]===re.GLOBSTAR;if(ce)this._processGlobStar(ne,oe,se,ie,S,J,ee);else this._processReaddir(ne,oe,se,ie,S,J,ee)};Glob.prototype._processReaddir=function(b,S,J,ee,te,re,ne){var ie=this;this._readdir(J,re,(function(oe,se){return ie._processReaddir2(b,S,J,ee,te,re,se,ne)}))};Glob.prototype._processReaddir2=function(b,S,J,ee,te,re,ne,ie){if(!ne)return ie();var oe=ee[0];var ae=!!this.minimatch.negate;var ue=oe._glob;var ce=this.dot||ue.charAt(0)===".";var le=[];for(var pe=0;pe<ne.length;pe++){var fe=ne[pe];if(fe.charAt(0)!=="."||ce){var de;if(ae&&!b){de=!fe.match(oe)}else{de=fe.match(oe)}if(de)le.push(fe)}}var he=le.length;if(he===0)return ie();if(ee.length===1&&!this.mark&&!this.stat){if(!this.matches[te])this.matches[te]=Object.create(null);for(var pe=0;pe<he;pe++){var fe=le[pe];if(b){if(b!=="/")fe=b+"/"+fe;else fe=b+fe}if(fe.charAt(0)==="/"&&!this.nomount){fe=se.join(this.root,fe)}this._emitMatch(te,fe)}return ie()}ee.shift();for(var pe=0;pe<he;pe++){var fe=le[pe];var me;if(b){if(b!=="/")fe=b+"/"+fe;else fe=b+fe}this._process([fe].concat(ee),te,re,ie)}ie()};Glob.prototype._emitMatch=function(b,S){if(this.aborted)return;if(ve(this,S))return;if(this.paused){this._emitQueue.push([b,S]);return}var J=ue(S)?S:this._makeAbs(S);if(this.mark)S=this._mark(S);if(this.absolute)S=J;if(this.matches[b][S])return;if(this.nodir){var ee=this.cache[J];if(ee==="DIR"||Array.isArray(ee))return}this.matches[b][S]=true;var te=this.statCache[J];if(te)this.emit("stat",S,te);this.emit("match",S)};Glob.prototype._readdirInGlobStar=function(b,S){if(this.aborted)return;if(this.follow)return this._readdir(b,false,S);var J="lstat\0"+b;var te=this;var re=me(J,lstatcb_);if(re)ee.lstat(b,re);function lstatcb_(J,ee){if(J&&J.code==="ENOENT")return S();var re=ee&&ee.isSymbolicLink();te.symlinks[b]=re;if(!re&&ee&&!ee.isDirectory()){te.cache[b]="FILE";S()}else te._readdir(b,false,S)}};Glob.prototype._readdir=function(b,S,J){if(this.aborted)return;J=me("readdir\0"+b+"\0"+S,J);if(!J)return;if(S&&!he(this.symlinks,b))return this._readdirInGlobStar(b,J);if(he(this.cache,b)){var te=this.cache[b];if(!te||te==="FILE")return J();if(Array.isArray(te))return J(null,te)}var re=this;ee.readdir(b,readdirCb(this,b,J))};function readdirCb(b,S,J){return function(ee,te){if(ee)b._readdirError(S,ee,J);else b._readdirEntries(S,te,J)}}Glob.prototype._readdirEntries=function(b,S,J){if(this.aborted)return;if(!this.mark&&!this.stat){for(var ee=0;ee<S.length;ee++){var te=S[ee];if(b==="/")te=b+te;else te=b+"/"+te;this.cache[te]=true}}this.cache[b]=S;return J(null,S)};Glob.prototype._readdirError=function(b,S,J){if(this.aborted)return;switch(S.code){case"ENOTSUP":case"ENOTDIR":var ee=this._makeAbs(b);this.cache[ee]="FILE";if(ee===this.cwdAbs){var te=new Error(S.code+" invalid cwd "+this.cwd);te.path=this.cwd;te.code=S.code;this.emit("error",te);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(b)]=false;break;default:this.cache[this._makeAbs(b)]=false;if(this.strict){this.emit("error",S);this.abort()}if(!this.silent)console.error("glob error",S);break}return J()};Glob.prototype._processGlobStar=function(b,S,J,ee,te,re,ne){var ie=this;this._readdir(J,re,(function(oe,se){ie._processGlobStar2(b,S,J,ee,te,re,se,ne)}))};Glob.prototype._processGlobStar2=function(b,S,J,ee,te,re,ne,ie){if(!ne)return ie();var oe=ee.slice(1);var se=b?[b]:[];var ae=se.concat(oe);this._process(ae,te,false,ie);var ue=this.symlinks[J];var ce=ne.length;if(ue&&re)return ie();for(var le=0;le<ce;le++){var pe=ne[le];if(pe.charAt(0)==="."&&!this.dot)continue;var fe=se.concat(ne[le],oe);this._process(fe,te,true,ie);var de=se.concat(ne[le],ee);this._process(de,te,true,ie)}ie()};Glob.prototype._processSimple=function(b,S,J){var ee=this;this._stat(b,(function(te,re){ee._processSimple2(b,S,te,re,J)}))};Glob.prototype._processSimple2=function(b,S,J,ee,te){if(!this.matches[S])this.matches[S]=Object.create(null);if(!ee)return te();if(b&&ue(b)&&!this.nomount){var re=/[\/\\]$/.test(b);if(b.charAt(0)==="/"){b=se.join(this.root,b)}else{b=se.resolve(this.root,b);if(re)b+="/"}}if(process.platform==="win32")b=b.replace(/\\/g,"/");this._emitMatch(S,b);te()};Glob.prototype._stat=function(b,S){var J=this._makeAbs(b);var te=b.slice(-1)==="/";if(b.length>this.maxLength)return S();if(!this.stat&&he(this.cache,J)){var re=this.cache[J];if(Array.isArray(re))re="DIR";if(!te||re==="DIR")return S(null,re);if(te&&re==="FILE")return S()}var ne;var ie=this.statCache[J];if(ie!==undefined){if(ie===false)return S(null,ie);else{var oe=ie.isDirectory()?"DIR":"FILE";if(te&&oe==="FILE")return S();else return S(null,oe,ie)}}var se=this;var ae=me("stat\0"+J,lstatcb_);if(ae)ee.lstat(J,ae);function lstatcb_(te,re){if(re&&re.isSymbolicLink()){return ee.stat(J,(function(ee,te){if(ee)se._stat2(b,J,null,re,S);else se._stat2(b,J,ee,te,S)}))}else{se._stat2(b,J,te,re,S)}}};Glob.prototype._stat2=function(b,S,J,ee,te){if(J&&(J.code==="ENOENT"||J.code==="ENOTDIR")){this.statCache[S]=false;return te()}var re=b.slice(-1)==="/";this.statCache[S]=ee;if(S.slice(-1)==="/"&&ee&&!ee.isDirectory())return te(null,false,ee);var ne=true;if(ee)ne=ee.isDirectory()?"DIR":"FILE";this.cache[S]=this.cache[S]||ne;if(re&&ne==="FILE")return te();return te(null,ne,ee)}},82231:(b,S,J)=>{b.exports=globSync;globSync.GlobSync=GlobSync;var ee=J(57147);var te=J(98945);var re=J(99566);var ne=re.Minimatch;var ie=J(91104).Glob;var oe=J(73837);var se=J(71017);var ae=J(39491);var ue=J(21323);var ce=J(49686);var le=ce.alphasort;var pe=ce.alphasorti;var fe=ce.setopts;var de=ce.ownProp;var he=ce.childrenIgnored;var me=ce.isIgnored;function globSync(b,S){if(typeof S==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(b,S).found}function GlobSync(b,S){if(!b)throw new Error("must provide pattern");if(typeof S==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(b,S);fe(this,b,S);if(this.noprocess)return this;var J=this.minimatch.set.length;this.matches=new Array(J);for(var ee=0;ee<J;ee++){this._process(this.minimatch.set[ee],ee,false)}this._finish()}GlobSync.prototype._finish=function(){ae(this instanceof GlobSync);if(this.realpath){var b=this;this.matches.forEach((function(S,J){var ee=b.matches[J]=Object.create(null);for(var re in S){try{re=b._makeAbs(re);var ne=te.realpathSync(re,b.realpathCache);ee[ne]=true}catch(S){if(S.syscall==="stat")ee[b._makeAbs(re)]=true;else throw S}}}))}ce.finish(this)};GlobSync.prototype._process=function(b,S,J){ae(this instanceof GlobSync);var ee=0;while(typeof b[ee]==="string"){ee++}var te;switch(ee){case b.length:this._processSimple(b.join("/"),S);return;case 0:te=null;break;default:te=b.slice(0,ee).join("/");break}var ne=b.slice(ee);var ie;if(te===null)ie=".";else if(ue(te)||ue(b.join("/"))){if(!te||!ue(te))te="/"+te;ie=te}else ie=te;var oe=this._makeAbs(ie);if(he(this,ie))return;var se=ne[0]===re.GLOBSTAR;if(se)this._processGlobStar(te,ie,oe,ne,S,J);else this._processReaddir(te,ie,oe,ne,S,J)};GlobSync.prototype._processReaddir=function(b,S,J,ee,te,re){var ne=this._readdir(J,re);if(!ne)return;var ie=ee[0];var oe=!!this.minimatch.negate;var ae=ie._glob;var ue=this.dot||ae.charAt(0)===".";var ce=[];for(var le=0;le<ne.length;le++){var pe=ne[le];if(pe.charAt(0)!=="."||ue){var fe;if(oe&&!b){fe=!pe.match(ie)}else{fe=pe.match(ie)}if(fe)ce.push(pe)}}var de=ce.length;if(de===0)return;if(ee.length===1&&!this.mark&&!this.stat){if(!this.matches[te])this.matches[te]=Object.create(null);for(var le=0;le<de;le++){var pe=ce[le];if(b){if(b.slice(-1)!=="/")pe=b+"/"+pe;else pe=b+pe}if(pe.charAt(0)==="/"&&!this.nomount){pe=se.join(this.root,pe)}this._emitMatch(te,pe)}return}ee.shift();for(var le=0;le<de;le++){var pe=ce[le];var he;if(b)he=[b,pe];else he=[pe];this._process(he.concat(ee),te,re)}};GlobSync.prototype._emitMatch=function(b,S){if(me(this,S))return;var J=this._makeAbs(S);if(this.mark)S=this._mark(S);if(this.absolute){S=J}if(this.matches[b][S])return;if(this.nodir){var ee=this.cache[J];if(ee==="DIR"||Array.isArray(ee))return}this.matches[b][S]=true;if(this.stat)this._stat(S)};GlobSync.prototype._readdirInGlobStar=function(b){if(this.follow)return this._readdir(b,false);var S;var J;var te;try{J=ee.lstatSync(b)}catch(b){if(b.code==="ENOENT"){return null}}var re=J&&J.isSymbolicLink();this.symlinks[b]=re;if(!re&&J&&!J.isDirectory())this.cache[b]="FILE";else S=this._readdir(b,false);return S};GlobSync.prototype._readdir=function(b,S){var J;if(S&&!de(this.symlinks,b))return this._readdirInGlobStar(b);if(de(this.cache,b)){var te=this.cache[b];if(!te||te==="FILE")return null;if(Array.isArray(te))return te}try{return this._readdirEntries(b,ee.readdirSync(b))}catch(S){this._readdirError(b,S);return null}};GlobSync.prototype._readdirEntries=function(b,S){if(!this.mark&&!this.stat){for(var J=0;J<S.length;J++){var ee=S[J];if(b==="/")ee=b+ee;else ee=b+"/"+ee;this.cache[ee]=true}}this.cache[b]=S;return S};GlobSync.prototype._readdirError=function(b,S){switch(S.code){case"ENOTSUP":case"ENOTDIR":var J=this._makeAbs(b);this.cache[J]="FILE";if(J===this.cwdAbs){var ee=new Error(S.code+" invalid cwd "+this.cwd);ee.path=this.cwd;ee.code=S.code;throw ee}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(b)]=false;break;default:this.cache[this._makeAbs(b)]=false;if(this.strict)throw S;if(!this.silent)console.error("glob error",S);break}};GlobSync.prototype._processGlobStar=function(b,S,J,ee,te,re){var ne=this._readdir(J,re);if(!ne)return;var ie=ee.slice(1);var oe=b?[b]:[];var se=oe.concat(ie);this._process(se,te,false);var ae=ne.length;var ue=this.symlinks[J];if(ue&&re)return;for(var ce=0;ce<ae;ce++){var le=ne[ce];if(le.charAt(0)==="."&&!this.dot)continue;var pe=oe.concat(ne[ce],ie);this._process(pe,te,true);var fe=oe.concat(ne[ce],ee);this._process(fe,te,true)}};GlobSync.prototype._processSimple=function(b,S){var J=this._stat(b);if(!this.matches[S])this.matches[S]=Object.create(null);if(!J)return;if(b&&ue(b)&&!this.nomount){var ee=/[\/\\]$/.test(b);if(b.charAt(0)==="/"){b=se.join(this.root,b)}else{b=se.resolve(this.root,b);if(ee)b+="/"}}if(process.platform==="win32")b=b.replace(/\\/g,"/");this._emitMatch(S,b)};GlobSync.prototype._stat=function(b){var S=this._makeAbs(b);var J=b.slice(-1)==="/";if(b.length>this.maxLength)return false;if(!this.stat&&de(this.cache,S)){var te=this.cache[S];if(Array.isArray(te))te="DIR";if(!J||te==="DIR")return te;if(J&&te==="FILE")return false}var re;var ne=this.statCache[S];if(!ne){var ie;try{ie=ee.lstatSync(S)}catch(b){if(b&&(b.code==="ENOENT"||b.code==="ENOTDIR")){this.statCache[S]=false;return false}}if(ie&&ie.isSymbolicLink()){try{ne=ee.statSync(S)}catch(b){ne=ie}}else{ne=ie}}this.statCache[S]=ne;var te=true;if(ne)te=ne.isDirectory()?"DIR":"FILE";this.cache[S]=this.cache[S]||te;if(J&&te==="FILE")return false;return te};GlobSync.prototype._mark=function(b){return ce.mark(this,b)};GlobSync.prototype._makeAbs=function(b){return ce.makeAbs(this,b)}},53544:(b,S,J)=>{const ee=Symbol("SemVer ANY");class Comparator{static get ANY(){return ee}constructor(b,S){S=te(S);if(b instanceof Comparator){if(b.loose===!!S.loose){return b}else{b=b.value}}b=b.trim().split(/\s+/).join(" ");oe("comparator",b,S);this.options=S;this.loose=!!S.loose;this.parse(b);if(this.semver===ee){this.value=""}else{this.value=this.operator+this.semver.version}oe("comp",this)}parse(b){const S=this.options.loose?re[ne.COMPARATORLOOSE]:re[ne.COMPARATOR];const J=b.match(S);if(!J){throw new TypeError(`Invalid comparator: ${b}`)}this.operator=J[1]!==undefined?J[1]:"";if(this.operator==="="){this.operator=""}if(!J[2]){this.semver=ee}else{this.semver=new se(J[2],this.options.loose)}}toString(){return this.value}test(b){oe("Comparator.test",b,this.options.loose);if(this.semver===ee||b===ee){return true}if(typeof b==="string"){try{b=new se(b,this.options)}catch(b){return false}}return ie(b,this.operator,this.semver,this.options)}intersects(b,S){if(!(b instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new ae(b.value,S).test(this.value)}else if(b.operator===""){if(b.value===""){return true}return new ae(this.value,S).test(b.semver)}S=te(S);if(S.includePrerelease&&(this.value==="<0.0.0-0"||b.value==="<0.0.0-0")){return false}if(!S.includePrerelease&&(this.value.startsWith("<0.0.0")||b.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&b.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&b.operator.startsWith("<")){return true}if(this.semver.version===b.semver.version&&this.operator.includes("=")&&b.operator.includes("=")){return true}if(ie(this.semver,"<",b.semver,S)&&this.operator.startsWith(">")&&b.operator.startsWith("<")){return true}if(ie(this.semver,">",b.semver,S)&&this.operator.startsWith("<")&&b.operator.startsWith(">")){return true}return false}}b.exports=Comparator;const te=J(298);const{safeRe:re,t:ne}=J(21962);const ie=J(75344);const oe=J(53023);const se=J(22828);const ae=J(9349)},9349:(b,S,J)=>{class Range{constructor(b,S){S=re(S);if(b instanceof Range){if(b.loose===!!S.loose&&b.includePrerelease===!!S.includePrerelease){return b}else{return new Range(b.raw,S)}}if(b instanceof ne){this.raw=b.value;this.set=[[b]];this.format();return this}this.options=S;this.loose=!!S.loose;this.includePrerelease=!!S.includePrerelease;this.raw=b.trim().split(/\s+/).join(" ");this.set=this.raw.split("||").map((b=>this.parseRange(b.trim()))).filter((b=>b.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const b=this.set[0];this.set=this.set.filter((b=>!isNullSet(b[0])));if(this.set.length===0){this.set=[b]}else if(this.set.length>1){for(const b of this.set){if(b.length===1&&isAny(b[0])){this.set=[b];break}}}}this.format()}format(){this.range=this.set.map((b=>b.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(b){const S=(this.options.includePrerelease&&pe)|(this.options.loose&&fe);const J=S+":"+b;const ee=te.get(J);if(ee){return ee}const re=this.options.loose;const oe=re?se[ae.HYPHENRANGELOOSE]:se[ae.HYPHENRANGE];b=b.replace(oe,hyphenReplace(this.options.includePrerelease));ie("hyphen replace",b);b=b.replace(se[ae.COMPARATORTRIM],ue);ie("comparator trim",b);b=b.replace(se[ae.TILDETRIM],ce);ie("tilde trim",b);b=b.replace(se[ae.CARETTRIM],le);ie("caret trim",b);let de=b.split(" ").map((b=>parseComparator(b,this.options))).join(" ").split(/\s+/).map((b=>replaceGTE0(b,this.options)));if(re){de=de.filter((b=>{ie("loose invalid filter",b,this.options);return!!b.match(se[ae.COMPARATORLOOSE])}))}ie("range list",de);const he=new Map;const me=de.map((b=>new ne(b,this.options)));for(const b of me){if(isNullSet(b)){return[b]}he.set(b.value,b)}if(he.size>1&&he.has("")){he.delete("")}const ge=[...he.values()];te.set(J,ge);return ge}intersects(b,S){if(!(b instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((J=>isSatisfiable(J,S)&&b.set.some((b=>isSatisfiable(b,S)&&J.every((J=>b.every((b=>J.intersects(b,S)))))))))}test(b){if(!b){return false}if(typeof b==="string"){try{b=new oe(b,this.options)}catch(b){return false}}for(let S=0;S<this.set.length;S++){if(testSet(this.set[S],b,this.options)){return true}}return false}}b.exports=Range;const ee=J(5453);const te=new ee({max:1e3});const re=J(298);const ne=J(53544);const ie=J(53023);const oe=J(22828);const{safeRe:se,t:ae,comparatorTrimReplace:ue,tildeTrimReplace:ce,caretTrimReplace:le}=J(21962);const{FLAG_INCLUDE_PRERELEASE:pe,FLAG_LOOSE:fe}=J(85585);const isNullSet=b=>b.value==="<0.0.0-0";const isAny=b=>b.value==="";const isSatisfiable=(b,S)=>{let J=true;const ee=b.slice();let te=ee.pop();while(J&&ee.length){J=ee.every((b=>te.intersects(b,S)));te=ee.pop()}return J};const parseComparator=(b,S)=>{ie("comp",b,S);b=replaceCarets(b,S);ie("caret",b);b=replaceTildes(b,S);ie("tildes",b);b=replaceXRanges(b,S);ie("xrange",b);b=replaceStars(b,S);ie("stars",b);return b};const isX=b=>!b||b.toLowerCase()==="x"||b==="*";const replaceTildes=(b,S)=>b.trim().split(/\s+/).map((b=>replaceTilde(b,S))).join(" ");const replaceTilde=(b,S)=>{const J=S.loose?se[ae.TILDELOOSE]:se[ae.TILDE];return b.replace(J,((S,J,ee,te,re)=>{ie("tilde",b,S,J,ee,te,re);let ne;if(isX(J)){ne=""}else if(isX(ee)){ne=`>=${J}.0.0 <${+J+1}.0.0-0`}else if(isX(te)){ne=`>=${J}.${ee}.0 <${J}.${+ee+1}.0-0`}else if(re){ie("replaceTilde pr",re);ne=`>=${J}.${ee}.${te}-${re} <${J}.${+ee+1}.0-0`}else{ne=`>=${J}.${ee}.${te} <${J}.${+ee+1}.0-0`}ie("tilde return",ne);return ne}))};const replaceCarets=(b,S)=>b.trim().split(/\s+/).map((b=>replaceCaret(b,S))).join(" ");const replaceCaret=(b,S)=>{ie("caret",b,S);const J=S.loose?se[ae.CARETLOOSE]:se[ae.CARET];const ee=S.includePrerelease?"-0":"";return b.replace(J,((S,J,te,re,ne)=>{ie("caret",b,S,J,te,re,ne);let oe;if(isX(J)){oe=""}else if(isX(te)){oe=`>=${J}.0.0${ee} <${+J+1}.0.0-0`}else if(isX(re)){if(J==="0"){oe=`>=${J}.${te}.0${ee} <${J}.${+te+1}.0-0`}else{oe=`>=${J}.${te}.0${ee} <${+J+1}.0.0-0`}}else if(ne){ie("replaceCaret pr",ne);if(J==="0"){if(te==="0"){oe=`>=${J}.${te}.${re}-${ne} <${J}.${te}.${+re+1}-0`}else{oe=`>=${J}.${te}.${re}-${ne} <${J}.${+te+1}.0-0`}}else{oe=`>=${J}.${te}.${re}-${ne} <${+J+1}.0.0-0`}}else{ie("no pr");if(J==="0"){if(te==="0"){oe=`>=${J}.${te}.${re}${ee} <${J}.${te}.${+re+1}-0`}else{oe=`>=${J}.${te}.${re}${ee} <${J}.${+te+1}.0-0`}}else{oe=`>=${J}.${te}.${re} <${+J+1}.0.0-0`}}ie("caret return",oe);return oe}))};const replaceXRanges=(b,S)=>{ie("replaceXRanges",b,S);return b.split(/\s+/).map((b=>replaceXRange(b,S))).join(" ")};const replaceXRange=(b,S)=>{b=b.trim();const J=S.loose?se[ae.XRANGELOOSE]:se[ae.XRANGE];return b.replace(J,((J,ee,te,re,ne,oe)=>{ie("xRange",b,J,ee,te,re,ne,oe);const se=isX(te);const ae=se||isX(re);const ue=ae||isX(ne);const ce=ue;if(ee==="="&&ce){ee=""}oe=S.includePrerelease?"-0":"";if(se){if(ee===">"||ee==="<"){J="<0.0.0-0"}else{J="*"}}else if(ee&&ce){if(ae){re=0}ne=0;if(ee===">"){ee=">=";if(ae){te=+te+1;re=0;ne=0}else{re=+re+1;ne=0}}else if(ee==="<="){ee="<";if(ae){te=+te+1}else{re=+re+1}}if(ee==="<"){oe="-0"}J=`${ee+te}.${re}.${ne}${oe}`}else if(ae){J=`>=${te}.0.0${oe} <${+te+1}.0.0-0`}else if(ue){J=`>=${te}.${re}.0${oe} <${te}.${+re+1}.0-0`}ie("xRange return",J);return J}))};const replaceStars=(b,S)=>{ie("replaceStars",b,S);return b.trim().replace(se[ae.STAR],"")};const replaceGTE0=(b,S)=>{ie("replaceGTE0",b,S);return b.trim().replace(se[S.includePrerelease?ae.GTE0PRE:ae.GTE0],"")};const hyphenReplace=b=>(S,J,ee,te,re,ne,ie,oe,se,ae,ue,ce,le)=>{if(isX(ee)){J=""}else if(isX(te)){J=`>=${ee}.0.0${b?"-0":""}`}else if(isX(re)){J=`>=${ee}.${te}.0${b?"-0":""}`}else if(ne){J=`>=${J}`}else{J=`>=${J}${b?"-0":""}`}if(isX(se)){oe=""}else if(isX(ae)){oe=`<${+se+1}.0.0-0`}else if(isX(ue)){oe=`<${se}.${+ae+1}.0-0`}else if(ce){oe=`<=${se}.${ae}.${ue}-${ce}`}else if(b){oe=`<${se}.${ae}.${+ue+1}-0`}else{oe=`<=${oe}`}return`${J} ${oe}`.trim()};const testSet=(b,S,J)=>{for(let J=0;J<b.length;J++){if(!b[J].test(S)){return false}}if(S.prerelease.length&&!J.includePrerelease){for(let J=0;J<b.length;J++){ie(b[J].semver);if(b[J].semver===ne.ANY){continue}if(b[J].semver.prerelease.length>0){const ee=b[J].semver;if(ee.major===S.major&&ee.minor===S.minor&&ee.patch===S.patch){return true}}}return false}return true}},22828:(b,S,J)=>{const ee=J(53023);const{MAX_LENGTH:te,MAX_SAFE_INTEGER:re}=J(85585);const{safeRe:ne,t:ie}=J(21962);const oe=J(298);const{compareIdentifiers:se}=J(88143);class SemVer{constructor(b,S){S=oe(S);if(b instanceof SemVer){if(b.loose===!!S.loose&&b.includePrerelease===!!S.includePrerelease){return b}else{b=b.version}}else if(typeof b!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof b}".`)}if(b.length>te){throw new TypeError(`version is longer than ${te} characters`)}ee("SemVer",b,S);this.options=S;this.loose=!!S.loose;this.includePrerelease=!!S.includePrerelease;const J=b.trim().match(S.loose?ne[ie.LOOSE]:ne[ie.FULL]);if(!J){throw new TypeError(`Invalid Version: ${b}`)}this.raw=b;this.major=+J[1];this.minor=+J[2];this.patch=+J[3];if(this.major>re||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>re||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>re||this.patch<0){throw new TypeError("Invalid patch version")}if(!J[4]){this.prerelease=[]}else{this.prerelease=J[4].split(".").map((b=>{if(/^[0-9]+$/.test(b)){const S=+b;if(S>=0&&S<re){return S}}return b}))}this.build=J[5]?J[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(b){ee("SemVer.compare",this.version,this.options,b);if(!(b instanceof SemVer)){if(typeof b==="string"&&b===this.version){return 0}b=new SemVer(b,this.options)}if(b.version===this.version){return 0}return this.compareMain(b)||this.comparePre(b)}compareMain(b){if(!(b instanceof SemVer)){b=new SemVer(b,this.options)}return se(this.major,b.major)||se(this.minor,b.minor)||se(this.patch,b.patch)}comparePre(b){if(!(b instanceof SemVer)){b=new SemVer(b,this.options)}if(this.prerelease.length&&!b.prerelease.length){return-1}else if(!this.prerelease.length&&b.prerelease.length){return 1}else if(!this.prerelease.length&&!b.prerelease.length){return 0}let S=0;do{const J=this.prerelease[S];const te=b.prerelease[S];ee("prerelease compare",S,J,te);if(J===undefined&&te===undefined){return 0}else if(te===undefined){return 1}else if(J===undefined){return-1}else if(J===te){continue}else{return se(J,te)}}while(++S)}compareBuild(b){if(!(b instanceof SemVer)){b=new SemVer(b,this.options)}let S=0;do{const J=this.build[S];const te=b.build[S];ee("prerelease compare",S,J,te);if(J===undefined&&te===undefined){return 0}else if(te===undefined){return 1}else if(J===undefined){return-1}else if(J===te){continue}else{return se(J,te)}}while(++S)}inc(b,S,J){switch(b){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",S,J);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",S,J);break;case"prepatch":this.prerelease.length=0;this.inc("patch",S,J);this.inc("pre",S,J);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",S,J)}this.inc("pre",S,J);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const b=Number(J)?1:0;if(!S&&J===false){throw new Error("invalid increment argument: identifier is empty")}if(this.prerelease.length===0){this.prerelease=[b]}else{let ee=this.prerelease.length;while(--ee>=0){if(typeof this.prerelease[ee]==="number"){this.prerelease[ee]++;ee=-2}}if(ee===-1){if(S===this.prerelease.join(".")&&J===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(b)}}if(S){let ee=[S,b];if(J===false){ee=[S]}if(se(this.prerelease[0],S)===0){if(isNaN(this.prerelease[1])){this.prerelease=ee}}else{this.prerelease=ee}}break}default:throw new Error(`invalid increment argument: ${b}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}b.exports=SemVer},3413:(b,S,J)=>{const ee=J(2473);const clean=(b,S)=>{const J=ee(b.trim().replace(/^[=v]+/,""),S);return J?J.version:null};b.exports=clean},75344:(b,S,J)=>{const ee=J(47498);const te=J(88873);const re=J(60245);const ne=J(89537);const ie=J(71927);const oe=J(99818);const cmp=(b,S,J,se)=>{switch(S){case"===":if(typeof b==="object"){b=b.version}if(typeof J==="object"){J=J.version}return b===J;case"!==":if(typeof b==="object"){b=b.version}if(typeof J==="object"){J=J.version}return b!==J;case"":case"=":case"==":return ee(b,J,se);case"!=":return te(b,J,se);case">":return re(b,J,se);case">=":return ne(b,J,se);case"<":return ie(b,J,se);case"<=":return oe(b,J,se);default:throw new TypeError(`Invalid operator: ${S}`)}};b.exports=cmp},99886:(b,S,J)=>{const ee=J(22828);const te=J(2473);const{safeRe:re,t:ne}=J(21962);const coerce=(b,S)=>{if(b instanceof ee){return b}if(typeof b==="number"){b=String(b)}if(typeof b!=="string"){return null}S=S||{};let J=null;if(!S.rtl){J=b.match(re[ne.COERCE])}else{let S;while((S=re[ne.COERCERTL].exec(b))&&(!J||J.index+J[0].length!==b.length)){if(!J||S.index+S[0].length!==J.index+J[0].length){J=S}re[ne.COERCERTL].lastIndex=S.index+S[1].length+S[2].length}re[ne.COERCERTL].lastIndex=-1}if(J===null){return null}return te(`${J[2]}.${J[3]||"0"}.${J[4]||"0"}`,S)};b.exports=coerce},43868:(b,S,J)=>{const ee=J(22828);const compareBuild=(b,S,J)=>{const te=new ee(b,J);const re=new ee(S,J);return te.compare(re)||te.compareBuild(re)};b.exports=compareBuild},31526:(b,S,J)=>{const ee=J(56419);const compareLoose=(b,S)=>ee(b,S,true);b.exports=compareLoose},56419:(b,S,J)=>{const ee=J(22828);const compare=(b,S,J)=>new ee(b,J).compare(new ee(S,J));b.exports=compare},20213:(b,S,J)=>{const ee=J(2473);const diff=(b,S)=>{const J=ee(b,null,true);const te=ee(S,null,true);const re=J.compare(te);if(re===0){return null}const ne=re>0;const ie=ne?J:te;const oe=ne?te:J;const se=!!ie.prerelease.length;const ae=!!oe.prerelease.length;if(ae&&!se){if(!oe.patch&&!oe.minor){return"major"}if(ie.patch){return"patch"}if(ie.minor){return"minor"}return"major"}const ue=se?"pre":"";if(J.major!==te.major){return ue+"major"}if(J.minor!==te.minor){return ue+"minor"}if(J.patch!==te.patch){return ue+"patch"}return"prerelease"};b.exports=diff},47498:(b,S,J)=>{const ee=J(56419);const eq=(b,S,J)=>ee(b,S,J)===0;b.exports=eq},60245:(b,S,J)=>{const ee=J(56419);const gt=(b,S,J)=>ee(b,S,J)>0;b.exports=gt},89537:(b,S,J)=>{const ee=J(56419);const gte=(b,S,J)=>ee(b,S,J)>=0;b.exports=gte},56767:(b,S,J)=>{const ee=J(22828);const inc=(b,S,J,te,re)=>{if(typeof J==="string"){re=te;te=J;J=undefined}try{return new ee(b instanceof ee?b.version:b,J).inc(S,te,re).version}catch(b){return null}};b.exports=inc},71927:(b,S,J)=>{const ee=J(56419);const lt=(b,S,J)=>ee(b,S,J)<0;b.exports=lt},99818:(b,S,J)=>{const ee=J(56419);const lte=(b,S,J)=>ee(b,S,J)<=0;b.exports=lte},61941:(b,S,J)=>{const ee=J(22828);const major=(b,S)=>new ee(b,S).major;b.exports=major},56770:(b,S,J)=>{const ee=J(22828);const minor=(b,S)=>new ee(b,S).minor;b.exports=minor},88873:(b,S,J)=>{const ee=J(56419);const neq=(b,S,J)=>ee(b,S,J)!==0;b.exports=neq},2473:(b,S,J)=>{const ee=J(22828);const parse=(b,S,J=false)=>{if(b instanceof ee){return b}try{return new ee(b,S)}catch(b){if(!J){return null}throw b}};b.exports=parse},56952:(b,S,J)=>{const ee=J(22828);const patch=(b,S)=>new ee(b,S).patch;b.exports=patch},4359:(b,S,J)=>{const ee=J(2473);const prerelease=(b,S)=>{const J=ee(b,S);return J&&J.prerelease.length?J.prerelease:null};b.exports=prerelease},79995:(b,S,J)=>{const ee=J(56419);const rcompare=(b,S,J)=>ee(S,b,J);b.exports=rcompare},78405:(b,S,J)=>{const ee=J(43868);const rsort=(b,S)=>b.sort(((b,J)=>ee(J,b,S)));b.exports=rsort},90244:(b,S,J)=>{const ee=J(9349);const satisfies=(b,S,J)=>{try{S=new ee(S,J)}catch(b){return false}return S.test(b)};b.exports=satisfies},24893:(b,S,J)=>{const ee=J(43868);const sort=(b,S)=>b.sort(((b,J)=>ee(b,J,S)));b.exports=sort},52410:(b,S,J)=>{const ee=J(2473);const valid=(b,S)=>{const J=ee(b,S);return J?J.version:null};b.exports=valid},92901:(b,S,J)=>{const ee=J(21962);const te=J(85585);const re=J(22828);const ne=J(88143);const ie=J(2473);const oe=J(52410);const se=J(3413);const ae=J(56767);const ue=J(20213);const ce=J(61941);const le=J(56770);const pe=J(56952);const fe=J(4359);const de=J(56419);const he=J(79995);const me=J(31526);const ge=J(43868);const ye=J(24893);const ve=J(78405);const Te=J(60245);const be=J(71927);const _e=J(47498);const Ee=J(88873);const Ae=J(89537);const we=J(99818);const xe=J(75344);const ke=J(99886);const Ce=J(53544);const Pe=J(9349);const Se=J(90244);const Ie=J(32579);const De=J(1126);const Oe=J(18260);const Re=J(12037);const Ne=J(17981);const Me=J(85409);const Fe=J(5401);const Le=J(84856);const je=J(33186);const Be=J(35151);const $e=J(99318);b.exports={parse:ie,valid:oe,clean:se,inc:ae,diff:ue,major:ce,minor:le,patch:pe,prerelease:fe,compare:de,rcompare:he,compareLoose:me,compareBuild:ge,sort:ye,rsort:ve,gt:Te,lt:be,eq:_e,neq:Ee,gte:Ae,lte:we,cmp:xe,coerce:ke,Comparator:Ce,Range:Pe,satisfies:Se,toComparators:Ie,maxSatisfying:De,minSatisfying:Oe,minVersion:Re,validRange:Ne,outside:Me,gtr:Fe,ltr:Le,intersects:je,simplifyRange:Be,subset:$e,SemVer:re,re:ee.re,src:ee.src,tokens:ee.t,SEMVER_SPEC_VERSION:te.SEMVER_SPEC_VERSION,RELEASE_TYPES:te.RELEASE_TYPES,compareIdentifiers:ne.compareIdentifiers,rcompareIdentifiers:ne.rcompareIdentifiers}},85585:b=>{const S="2.0.0";const J=256;const ee=Number.MAX_SAFE_INTEGER||9007199254740991;const te=16;const re=J-6;const ne=["major","premajor","minor","preminor","patch","prepatch","prerelease"];b.exports={MAX_LENGTH:J,MAX_SAFE_COMPONENT_LENGTH:te,MAX_SAFE_BUILD_LENGTH:re,MAX_SAFE_INTEGER:ee,RELEASE_TYPES:ne,SEMVER_SPEC_VERSION:S,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},53023:b=>{const S=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...b)=>console.error("SEMVER",...b):()=>{};b.exports=S},88143:b=>{const S=/^[0-9]+$/;const compareIdentifiers=(b,J)=>{const ee=S.test(b);const te=S.test(J);if(ee&&te){b=+b;J=+J}return b===J?0:ee&&!te?-1:te&&!ee?1:b<J?-1:1};const rcompareIdentifiers=(b,S)=>compareIdentifiers(S,b);b.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},298:b=>{const S=Object.freeze({loose:true});const J=Object.freeze({});const parseOptions=b=>{if(!b){return J}if(typeof b!=="object"){return S}return b};b.exports=parseOptions},21962:(b,S,J)=>{const{MAX_SAFE_COMPONENT_LENGTH:ee,MAX_SAFE_BUILD_LENGTH:te,MAX_LENGTH:re}=J(85585);const ne=J(53023);S=b.exports={};const ie=S.re=[];const oe=S.safeRe=[];const se=S.src=[];const ae=S.t={};let ue=0;const ce="[a-zA-Z0-9-]";const le=[["\\s",1],["\\d",re],[ce,te]];const makeSafeRegex=b=>{for(const[S,J]of le){b=b.split(`${S}*`).join(`${S}{0,${J}}`).split(`${S}+`).join(`${S}{1,${J}}`)}return b};const createToken=(b,S,J)=>{const ee=makeSafeRegex(S);const te=ue++;ne(b,te,S);ae[b]=te;se[te]=S;ie[te]=new RegExp(S,J?"g":undefined);oe[te]=new RegExp(ee,J?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${ce}*`);createToken("MAINVERSION",`(${se[ae.NUMERICIDENTIFIER]})\\.`+`(${se[ae.NUMERICIDENTIFIER]})\\.`+`(${se[ae.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${se[ae.NUMERICIDENTIFIERLOOSE]})\\.`+`(${se[ae.NUMERICIDENTIFIERLOOSE]})\\.`+`(${se[ae.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${se[ae.NUMERICIDENTIFIER]}|${se[ae.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${se[ae.NUMERICIDENTIFIERLOOSE]}|${se[ae.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${se[ae.PRERELEASEIDENTIFIER]}(?:\\.${se[ae.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${se[ae.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${se[ae.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${ce}+`);createToken("BUILD",`(?:\\+(${se[ae.BUILDIDENTIFIER]}(?:\\.${se[ae.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${se[ae.MAINVERSION]}${se[ae.PRERELEASE]}?${se[ae.BUILD]}?`);createToken("FULL",`^${se[ae.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${se[ae.MAINVERSIONLOOSE]}${se[ae.PRERELEASELOOSE]}?${se[ae.BUILD]}?`);createToken("LOOSE",`^${se[ae.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${se[ae.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${se[ae.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${se[ae.XRANGEIDENTIFIER]})`+`(?:\\.(${se[ae.XRANGEIDENTIFIER]})`+`(?:\\.(${se[ae.XRANGEIDENTIFIER]})`+`(?:${se[ae.PRERELEASE]})?${se[ae.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${se[ae.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${se[ae.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${se[ae.XRANGEIDENTIFIERLOOSE]})`+`(?:${se[ae.PRERELEASELOOSE]})?${se[ae.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${se[ae.GTLT]}\\s*${se[ae.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${se[ae.GTLT]}\\s*${se[ae.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${ee}})`+`(?:\\.(\\d{1,${ee}}))?`+`(?:\\.(\\d{1,${ee}}))?`+`(?:$|[^\\d])`);createToken("COERCERTL",se[ae.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${se[ae.LONETILDE]}\\s+`,true);S.tildeTrimReplace="$1~";createToken("TILDE",`^${se[ae.LONETILDE]}${se[ae.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${se[ae.LONETILDE]}${se[ae.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${se[ae.LONECARET]}\\s+`,true);S.caretTrimReplace="$1^";createToken("CARET",`^${se[ae.LONECARET]}${se[ae.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${se[ae.LONECARET]}${se[ae.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${se[ae.GTLT]}\\s*(${se[ae.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${se[ae.GTLT]}\\s*(${se[ae.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${se[ae.GTLT]}\\s*(${se[ae.LOOSEPLAIN]}|${se[ae.XRANGEPLAIN]})`,true);S.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${se[ae.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${se[ae.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${se[ae.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${se[ae.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},5401:(b,S,J)=>{const ee=J(85409);const gtr=(b,S,J)=>ee(b,S,">",J);b.exports=gtr},33186:(b,S,J)=>{const ee=J(9349);const intersects=(b,S,J)=>{b=new ee(b,J);S=new ee(S,J);return b.intersects(S,J)};b.exports=intersects},84856:(b,S,J)=>{const ee=J(85409);const ltr=(b,S,J)=>ee(b,S,"<",J);b.exports=ltr},1126:(b,S,J)=>{const ee=J(22828);const te=J(9349);const maxSatisfying=(b,S,J)=>{let re=null;let ne=null;let ie=null;try{ie=new te(S,J)}catch(b){return null}b.forEach((b=>{if(ie.test(b)){if(!re||ne.compare(b)===-1){re=b;ne=new ee(re,J)}}}));return re};b.exports=maxSatisfying},18260:(b,S,J)=>{const ee=J(22828);const te=J(9349);const minSatisfying=(b,S,J)=>{let re=null;let ne=null;let ie=null;try{ie=new te(S,J)}catch(b){return null}b.forEach((b=>{if(ie.test(b)){if(!re||ne.compare(b)===1){re=b;ne=new ee(re,J)}}}));return re};b.exports=minSatisfying},12037:(b,S,J)=>{const ee=J(22828);const te=J(9349);const re=J(60245);const minVersion=(b,S)=>{b=new te(b,S);let J=new ee("0.0.0");if(b.test(J)){return J}J=new ee("0.0.0-0");if(b.test(J)){return J}J=null;for(let S=0;S<b.set.length;++S){const te=b.set[S];let ne=null;te.forEach((b=>{const S=new ee(b.semver.version);switch(b.operator){case">":if(S.prerelease.length===0){S.patch++}else{S.prerelease.push(0)}S.raw=S.format();case"":case">=":if(!ne||re(S,ne)){ne=S}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${b.operator}`)}}));if(ne&&(!J||re(J,ne))){J=ne}}if(J&&b.test(J)){return J}return null};b.exports=minVersion},85409:(b,S,J)=>{const ee=J(22828);const te=J(53544);const{ANY:re}=te;const ne=J(9349);const ie=J(90244);const oe=J(60245);const se=J(71927);const ae=J(99818);const ue=J(89537);const outside=(b,S,J,ce)=>{b=new ee(b,ce);S=new ne(S,ce);let le,pe,fe,de,he;switch(J){case">":le=oe;pe=ae;fe=se;de=">";he=">=";break;case"<":le=se;pe=ue;fe=oe;de="<";he="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ie(b,S,ce)){return false}for(let J=0;J<S.set.length;++J){const ee=S.set[J];let ne=null;let ie=null;ee.forEach((b=>{if(b.semver===re){b=new te(">=0.0.0")}ne=ne||b;ie=ie||b;if(le(b.semver,ne.semver,ce)){ne=b}else if(fe(b.semver,ie.semver,ce)){ie=b}}));if(ne.operator===de||ne.operator===he){return false}if((!ie.operator||ie.operator===de)&&pe(b,ie.semver)){return false}else if(ie.operator===he&&fe(b,ie.semver)){return false}}return true};b.exports=outside},35151:(b,S,J)=>{const ee=J(90244);const te=J(56419);b.exports=(b,S,J)=>{const re=[];let ne=null;let ie=null;const oe=b.sort(((b,S)=>te(b,S,J)));for(const b of oe){const te=ee(b,S,J);if(te){ie=b;if(!ne){ne=b}}else{if(ie){re.push([ne,ie])}ie=null;ne=null}}if(ne){re.push([ne,null])}const se=[];for(const[b,S]of re){if(b===S){se.push(b)}else if(!S&&b===oe[0]){se.push("*")}else if(!S){se.push(`>=${b}`)}else if(b===oe[0]){se.push(`<=${S}`)}else{se.push(`${b} - ${S}`)}}const ae=se.join(" || ");const ue=typeof S.raw==="string"?S.raw:String(S);return ae.length<ue.length?ae:S}},99318:(b,S,J)=>{const ee=J(9349);const te=J(53544);const{ANY:re}=te;const ne=J(90244);const ie=J(56419);const subset=(b,S,J={})=>{if(b===S){return true}b=new ee(b,J);S=new ee(S,J);let te=false;e:for(const ee of b.set){for(const b of S.set){const S=simpleSubset(ee,b,J);te=te||S!==null;if(S){continue e}}if(te){return false}}return true};const oe=[new te(">=0.0.0-0")];const se=[new te(">=0.0.0")];const simpleSubset=(b,S,J)=>{if(b===S){return true}if(b.length===1&&b[0].semver===re){if(S.length===1&&S[0].semver===re){return true}else if(J.includePrerelease){b=oe}else{b=se}}if(S.length===1&&S[0].semver===re){if(J.includePrerelease){return true}else{S=se}}const ee=new Set;let te,ae;for(const S of b){if(S.operator===">"||S.operator===">="){te=higherGT(te,S,J)}else if(S.operator==="<"||S.operator==="<="){ae=lowerLT(ae,S,J)}else{ee.add(S.semver)}}if(ee.size>1){return null}let ue;if(te&&ae){ue=ie(te.semver,ae.semver,J);if(ue>0){return null}else if(ue===0&&(te.operator!==">="||ae.operator!=="<=")){return null}}for(const b of ee){if(te&&!ne(b,String(te),J)){return null}if(ae&&!ne(b,String(ae),J)){return null}for(const ee of S){if(!ne(b,String(ee),J)){return false}}return true}let ce,le;let pe,fe;let de=ae&&!J.includePrerelease&&ae.semver.prerelease.length?ae.semver:false;let he=te&&!J.includePrerelease&&te.semver.prerelease.length?te.semver:false;if(de&&de.prerelease.length===1&&ae.operator==="<"&&de.prerelease[0]===0){de=false}for(const b of S){fe=fe||b.operator===">"||b.operator===">=";pe=pe||b.operator==="<"||b.operator==="<=";if(te){if(he){if(b.semver.prerelease&&b.semver.prerelease.length&&b.semver.major===he.major&&b.semver.minor===he.minor&&b.semver.patch===he.patch){he=false}}if(b.operator===">"||b.operator===">="){ce=higherGT(te,b,J);if(ce===b&&ce!==te){return false}}else if(te.operator===">="&&!ne(te.semver,String(b),J)){return false}}if(ae){if(de){if(b.semver.prerelease&&b.semver.prerelease.length&&b.semver.major===de.major&&b.semver.minor===de.minor&&b.semver.patch===de.patch){de=false}}if(b.operator==="<"||b.operator==="<="){le=lowerLT(ae,b,J);if(le===b&&le!==ae){return false}}else if(ae.operator==="<="&&!ne(ae.semver,String(b),J)){return false}}if(!b.operator&&(ae||te)&&ue!==0){return false}}if(te&&pe&&!ae&&ue!==0){return false}if(ae&&fe&&!te&&ue!==0){return false}if(he||de){return false}return true};const higherGT=(b,S,J)=>{if(!b){return S}const ee=ie(b.semver,S.semver,J);return ee>0?b:ee<0?S:S.operator===">"&&b.operator===">="?S:b};const lowerLT=(b,S,J)=>{if(!b){return S}const ee=ie(b.semver,S.semver,J);return ee<0?b:ee>0?S:S.operator==="<"&&b.operator==="<="?S:b};b.exports=subset},32579:(b,S,J)=>{const ee=J(9349);const toComparators=(b,S)=>new ee(b,S).set.map((b=>b.map((b=>b.value)).join(" ").trim().split(" ")));b.exports=toComparators},17981:(b,S,J)=>{const ee=J(9349);const validRange=(b,S)=>{try{return new ee(b,S).range||"*"}catch(b){return null}};b.exports=validRange},2855:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});const te=J(81993);const re=J(36581);const ne=ee(J(68746));const ie=J(98018);const oe=ee(J(41112));const se=J(83036);const ae=J(84221);const ue=J(9335);const ce=J(2554);const le=J(70639);const pe=J(25823);const fe=J(70026);const de=J(76956);const he=J(88139);const me=J(30443);const ge=J(4147);let ye="";const ve=new ie.Command(ge.name).version(ge.version).arguments("<project-directory>").usage(`${ne.default.green("<project-directory>")} [options]`).description("Install expo-modules into your project").option("-s, --sdk-version <version>","Install specified expo-modules sdk version").option("--non-interactive","Disable interactive prompts").action((b=>ye=b)).parse(process.argv);function getSdkVersionInfo(b){const{sdkVersion:S}=ve;if(S){const b=(0,fe.getVersionInfo)(S);if(!b){throw new Error(`Unsupported sdkVersion: ${S}`)}return b}return(0,fe.getDefaultSdkVersion)(b)}async function promptUpgradeAgpVersionAsync(b,S){if(!await(0,se.shouldUpdateAgpVersionAsync)(b,S)){return true}const J=`The minimum Android Gradle Plugin version for Expo modules is ${S}. This tool will change your AGP version to ${S}.`;if(ve.nonInteractive){console.log(ne.default.yellow(`⚠️ ${J}`));return true}else{const{value:b}=await(0,oe.default)({type:"confirm",name:"value",message:`${J} Do you want to continue?`,initial:true});return!!b}}async function promptUpgradeIosDeployTargetAsync(b,S){if(!await(0,ce.shouldUpdateDeployTargetPodfileAsync)(b,S)){return true}const J=`Expo modules minimum iOS requirement is ${S}. This tool will change your iOS deployment target to ${S}.`;if(ve.nonInteractive){console.log(ne.default.yellow(`⚠️ ${J}`));return true}else{const{value:b}=await(0,oe.default)({type:"confirm",name:"value",message:`${J} Do you want to continue?`,initial:true});return!!b}}async function promptCliIntegrationAsync(){const b=`This tool can install Expo CLI integration for your project.\nUsing Expo CLI has some benefits over the the default CLI in bare React Native projects:\n - Built-in JavaScript debugger and React Devtools.\n - Support for Continuous Native Generation (CNG) with \`npx expo prebuild\` for easy upgrades.\n - Automatic web support with Metro.\n${(0,de.learnMore)("https://docs.expo.dev/bare/using-expo-cli/")}\nDo you want to install the Expo CLI integration?`;if(ve.nonInteractive){return true}const{value:S}=await(0,oe.default)({type:"confirm",name:"value",message:b,initial:true});return!!S}async function runAsync(b){const{projectRoot:S,platformAndroid:J,platformIos:ee}=await(0,me.normalizeProjectRootAsync)(ye);const{expoSdkVersion:ie,iosDeploymentTarget:oe,androidAgpVersion:fe,supportCliIntegration:de}=getSdkVersionInfo(S);if(J&&fe&&!await promptUpgradeAgpVersionAsync(S,fe)){return}if(ee&&!await promptUpgradeIosDeployTargetAsync(S,oe)){return}const ge=de&&await promptCliIntegrationAsync();const ve=[];if(J){ve.push("android")}if(ee){ve.push("ios")}let{exp:Te}=(0,te.getConfig)(S,{skipSDKVersionRequirement:true,isModdedConfig:true});Te.sdkVersion=ie;if(fe){Te=(0,se.withAndroidGradlePluginVersion)(Te,{androidAgpVersion:fe})}Te=(0,ae.withAndroidModules)(Te);Te=(0,le.withIosModules)(Te);Te=(0,ce.withIosDeploymentTarget)(Te,{deploymentTarget:oe});if(ge){Te=(0,ue.withCliIntegration)(Te)}Te=(0,pe.withXCParseXcodeProjectBaseMod)(Te);console.log("› Updating your project...");await(0,re.compileModsAsync)(Te,{projectRoot:S,platforms:ve});console.log("› Installing expo packages...");await(0,he.installExpoPackageAsync)(S,ie);console.log("› Installing ios pods...");await(0,he.installPodsAsync)(S);console.log(ne.default.bold("› Installation completed!"))}(async()=>{ve.parse(process.argv);try{await runAsync(ge.name)}catch(b){console.error("Uncaught Error",b);process.exit(1)}})()},83036:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.withAndroidGradlePluginVersion=S.shouldUpdateAgpVersionAsync=void 0;const te=J(36581);const re=ee(J(57147));const ne=ee(J(71017));const ie=ee(J(92901));function createAgpRegExp(){return/^(\s*classpath[(\s]["']com\.android\.tools\.build:gradle:)(\d+\.\d+\.\d+)(["'][)\s]\s*)$/gm}async function shouldUpdateAgpVersionAsync(b,S){const J=ne.default.join(b,"android","build.gradle");const ee=await re.default.promises.readFile(J,"utf-8");const te=createAgpRegExp().exec(ee);if(!te){console.warn("Unrecognized `android/build.gradle` content, will skip the process to update AGP version.");return false}const oe=te[2];if(!oe){console.warn("Unrecognized `android/build.gradle` content, will skip the process to update AGP version.");return false}return ie.default.lt(toSemVer(oe),toSemVer(S))}S.shouldUpdateAgpVersionAsync=shouldUpdateAgpVersionAsync;const withAndroidGradlePluginVersion=(b,S)=>(0,te.withProjectBuildGradle)(b,(b=>{if(b.modResults.language!=="groovy"){throw new Error("Cannot setup kotlin because the build.gradle is not groovy")}const J=createAgpRegExp().exec(b.modResults.contents);if(J){const ee=J[2];if(ee&&ie.default.lt(toSemVer(ee),toSemVer(S.androidAgpVersion))){b.modResults.contents=b.modResults.contents.replace(createAgpRegExp(),((b,J,ee,te)=>`${J}${S.androidAgpVersion}${te}`))}}return b}));S.withAndroidGradlePluginVersion=withAndroidGradlePluginVersion;function toSemVer(b){return ie.default.coerce(b)??new ie.default.SemVer("0.0.0")}},84221:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.withAndroidModules=void 0;const ee=J(36581);const te=J(51595);const re=J(67776);const withAndroidModules=b=>(0,ee.withPlugins)(b,[re.withAndroidModulesMainApplication,te.withAndroidModulesMainActivity,withAndroidModulesSettingGradle]);S.withAndroidModules=withAndroidModules;const withAndroidModulesSettingGradle=b=>(0,ee.withSettingsGradle)(b,(b=>{if(b.modResults.contents.match("useExpoModules()")){return b}const S=b.modResults.language==="groovy";const J=S?['apply from: new File(["node", "--print", "require.resolve(\'expo/package.json\')"].execute(null, rootDir).text.trim(), "../scripts/autolinking.gradle")',"useExpoModules()"]:["val pathExpoPackageJson = org.codehaus.groovy.runtime.ProcessGroovyMethods.getText(org.codehaus.groovy.runtime.ProcessGroovyMethods.execute(\"node --print require.resolve('expo/package.json')\", null, rootDir))",'apply(from = File(pathExpoPackageJson.trim(), "../scripts/autolinking.gradle"))','val useExpoModules = extra["useExpoModules"] as groovy.lang.Closure<Any>',"useExpoModules()"];b.modResults.contents=b.modResults.contents+`\n${J.join("\n")}`;return b}))},51595:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.setModulesMainActivity=S.withAndroidModulesMainActivity=void 0;const ee=J(36581);const te=J(85165);const re=J(80837);const withAndroidModulesMainActivity=b=>(0,ee.withMainActivity)(b,(b=>{b.modResults.contents=setModulesMainActivity(b.modResults.contents,b.modResults.language);return b}));S.withAndroidModulesMainActivity=withAndroidModulesMainActivity;function setModulesMainActivity(b,S){const J=S==="java";if(b.match(/\s+ReactActivityDelegateWrapper\(/m)!=null){return b}if(b.match(/\s+createReactActivityDelegate\(\)/m)==null){b=(0,te.addImports)(b,["com.facebook.react.ReactActivityDelegate","expo.modules.ReactActivityDelegateWrapper"],J);const S=J?["\n @Override"," protected ReactActivityDelegate createReactActivityDelegate() {"," return new ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED,"," new ReactActivityDelegate(this, getMainComponentName())"," );"," }\n"]:["\n override fun createReactActivityDelegate(): ReactActivityDelegate {"," return ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED,"," ReactActivityDelegate(this, getMainComponentName())"," );"," }\n"];b=(0,te.appendContentsInsideDeclarationBlock)(b,"class MainActivity",S.join("\n"))}else if(b.match(/\bDefaultReactActivityDelegate\b/g)){b=(0,te.addImports)(b,["expo.modules.ReactActivityDelegateWrapper"],J);const ee=(0,te.findNewInstanceCodeBlock)(b,"DefaultReactActivityDelegate",S);if(ee==null){throw new Error("Unable to find DefaultReactActivityDelegate new instance code block.")}const ne=J?`new ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, ${ee.code})`:`ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, ${ee.code})`;b=(0,re.replaceContentsWithOffset)(b,ne,ee.start,ee.end);return b}else if(b.match(/\s+MainActivityDelegate\s+extends\s+ReactActivityDelegate\s+\{/)!=null||b.match(/\s+MainActivityDelegate\(.+\)\s+:\s+ReactActivityDelegate.+\{/)!=null){b=(0,te.addImports)(b,["expo.modules.ReactActivityDelegateWrapper"],J);const ee=(0,te.findNewInstanceCodeBlock)(b,"MainActivityDelegate",S);if(ee==null){throw new Error("Unable to find MainActivityDelegate new instance code block.")}const ne=J?`new ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, ${ee.code})`:`ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, ${ee.code})`;b=(0,re.replaceContentsWithOffset)(b,ne,ee.start,ee.end);return b}else{b=(0,te.addImports)(b,["expo.modules.ReactActivityDelegateWrapper"],J);const ee=(0,te.findNewInstanceCodeBlock)(b,"ReactActivityDelegate",S);if(ee==null){throw new Error("Unable to find ReactActivityDelegate new instance code block.")}const ne=J?`new ReactActivityDelegateWrapper(this, ${ee.code})`:`ReactActivityDelegateWrapper(this, ${ee.code})`;b=(0,re.replaceContentsWithOffset)(b,ne,ee.start,ee.end);return b}return b}S.setModulesMainActivity=setModulesMainActivity},67776:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.setModulesMainApplication=S.withAndroidModulesMainApplication=void 0;const te=J(36581);const re=J(85165);const ne=J(80837);const ie=ee(J(39491));const oe=ee(J(92901));const withAndroidModulesMainApplication=b=>(0,te.withMainApplication)(b,(b=>{(0,ie.default)(b.sdkVersion);b.modResults.contents=setModulesMainApplication(b.sdkVersion,b.modResults.contents,b.modResults.language);return b}));S.withAndroidModulesMainApplication=withAndroidModulesMainApplication;function setModulesMainApplication(b,S,J){const ee=J==="java";S=addDefaultReactNativeHostWrapperIfNeeded(S,J,ee);S=addReactHostWrapperIfNeeded(b,S,J,ee);S=addReactNativeHostWrapperIfNeeded(S,J,ee);S=addReactNativeNewArchHostWrapperIfNeeded(S,J,ee);S=addApplicationLifecycleDispatchImportIfNeeded(S,J,ee);S=addApplicationCreateIfNeeded(S,J,ee);S=addConfigurationChangeIfNeeded(S,J,ee);return S}S.setModulesMainApplication=setModulesMainApplication;function addDefaultReactNativeHostWrapperIfNeeded(b,S,J){if(!b.match(/^import .*\.defaults\.DefaultReactNativeHost;?$/m)){return b}if(b.match(/\s+ReactNativeHostWrapper\(this,.*DefaultReactNativeHost\(/m)){return b}if(b.match(/\s+ReactNativeHostWrapper\(/m)){return b}b=(0,re.addImports)(b,["expo.modules.ReactNativeHostWrapper"],J);const ee=(0,re.findNewInstanceCodeBlock)(b,"DefaultReactNativeHost",S);if(ee==null){throw new Error("Unable to find DefaultReactNativeHost new instance code block.")}const te=J?`new ReactNativeHostWrapper(this, ${ee.code})`:`ReactNativeHostWrapper(this, ${ee.code})`;b=(0,ne.replaceContentsWithOffset)(b,te,ee.start,ee.end);return b}function addReactHostWrapperIfNeeded(b,S,J,ee){if(oe.default.lt(b,"51.0.0")){return S}return S.replace(/(\s+)getDefaultReactHost\(/gm,"$1ReactNativeHostWrapper.createReactHost(")}function addReactNativeHostWrapperIfNeeded(b,S,J){if(b.match(/\s+ReactNativeHostWrapper\(/m)){return b}b=(0,re.addImports)(b,["expo.modules.ReactNativeHostWrapper"],J);const ee=(0,re.findNewInstanceCodeBlock)(b,"ReactNativeHost",S);if(ee==null){throw new Error("Unable to find ReactNativeHost new instance code block.")}const te=J?`new ReactNativeHostWrapper(this, ${ee.code})`:`ReactNativeHostWrapper(this, ${ee.code})`;b=(0,ne.replaceContentsWithOffset)(b,te,ee.start,ee.end);return b}function addReactNativeNewArchHostWrapperIfNeeded(b,S,J){if(!b.match(/^import .*\.newarchitecture\.MainApplicationReactNativeHost;?$/m)){return b}if(b.match(/\s+ReactNativeHostWrapper\(this,.*MainApplicationReactNativeHost\(/m)){return b}b=(0,re.addImports)(b,["expo.modules.ReactNativeHostWrapper"],J);const ee=(0,re.findNewInstanceCodeBlock)(b,"MainApplicationReactNativeHost",S);if(ee==null){throw new Error("Unable to find ReactNativeHost new instance code block.")}const te=J?`new ReactNativeHostWrapper(this, ${ee.code})`:`ReactNativeHostWrapper(this, ${ee.code})`;b=(0,ne.replaceContentsWithOffset)(b,te,ee.start,ee.end);return b}function addApplicationLifecycleDispatchImportIfNeeded(b,S,J){if(b.match(/^import\s+expo\.modules\.ApplicationLifecycleDispatcher;?$/)){return b}return(0,re.addImports)(b,["expo.modules.ApplicationLifecycleDispatcher"],J)}function addApplicationCreateIfNeeded(b,S,J){if(b.match(/\s+ApplicationLifecycleDispatcher\.onApplicationCreate\(/m)){return b}return(0,re.appendContentsInsideDeclarationBlock)(b,"onCreate",` ApplicationLifecycleDispatcher.onApplicationCreate(this)${J?";":""}\n `)}function addConfigurationChangeIfNeeded(b,S,J){if(b.match(/\s+onConfigurationChanged\(/m)==null){b=(0,re.addImports)(b,["android.content.res.Configuration"],J);const S=J?["\n @Override"," public void onConfigurationChanged(Configuration newConfig) {"," super.onConfigurationChanged(newConfig);"," ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig);"," }\n"].join("\n"):["\n override fun onConfigurationChanged(newConfig: Configuration) {"," super.onConfigurationChanged(newConfig)"," ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig)"," }\n"].join("\n");b=(0,re.appendContentsInsideDeclarationBlock)(b,"class MainApplication",S)}else if(b.match(/\s+ApplicationLifecycleDispatcher\.onConfigurationChanged\(/m)==null){b=(0,re.appendContentsInsideDeclarationBlock)(b,"onConfigurationChanged",` ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig)${J?";":""}\n `)}return b}},9335:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.updateGitIgnore=S.updateIosXcodeProjectBuildPhase=S.updateVirtualMetroEntryIos=S.updateVirtualMetroEntryAndroid=S.updateMetroConfig=S.updateBabelConfig=S.updateAndroidGradleFile=S.withCliIntegration=void 0;const te=J(36581);const re=J(85165);const ne=ee(J(57147));const ie=ee(J(71017));const oe=J(40504);const se=J(25823);const withCliIntegration=b=>(0,te.withPlugins)(b,[withCliAndroidGradle,withCliAndroidMainApplication,withCliIosAppDelegate,withCliIosXcodeProject,withCliBabelConfig,withCliMetroConfig,withCliGitIgnore]);S.withCliIntegration=withCliIntegration;const withCliAndroidGradle=b=>(0,te.withAppBuildGradle)(b,(b=>{if(b.modResults.language!=="groovy"){throw new Error("Cannot setup kotlin because the build.gradle is not groovy")}b.modResults.contents=updateAndroidGradleFile(b.modResults.contents);return b}));const withCliAndroidMainApplication=b=>(0,te.withMainApplication)(b,(b=>{b.modResults.contents=updateVirtualMetroEntryAndroid(b.modResults.contents);return b}));const withCliIosAppDelegate=b=>(0,te.withAppDelegate)(b,(b=>{b.modResults.contents=updateVirtualMetroEntryIos(b.modResults.contents);return b}));const withCliIosXcodeProject=b=>(0,se.withXCParseXcodeProject)(b,(b=>{const S=b.modResults;for(const b of Object.values(S.objects??{})){if(b.isa===oe.ISA.PBXShellScriptBuildPhase){updateIosXcodeProjectBuildPhase(b)}}return b}));const withCliBabelConfig=b=>(0,te.withDangerousMod)(b,["ios",async b=>{const S=ie.default.join(b.modRequest.projectRoot,"babel.config.js");let J=await ne.default.promises.readFile(S,"utf8");J=updateBabelConfig(J);await ne.default.promises.writeFile(S,J);return b}]);const withCliMetroConfig=b=>(0,te.withDangerousMod)(b,["ios",async b=>{const S=ie.default.join(b.modRequest.projectRoot,"metro.config.js");let J=await ne.default.promises.readFile(S,"utf8");J=updateMetroConfig(J);await ne.default.promises.writeFile(S,J);return b}]);const withCliGitIgnore=b=>(0,te.withDangerousMod)(b,["ios",async b=>{const S=ie.default.join(b.modRequest.projectRoot,".gitignore");let J=await ne.default.promises.readFile(S,"utf8");J=updateGitIgnore(J);await ne.default.promises.writeFile(S,J);return b}]);function updateAndroidGradleFile(b){const S=` //\n // Added by install-expo-modules\n entryFile = file(["node", "-e", "require('expo/scripts/resolveAppEntry')", rootDir.getAbsoluteFile().getParentFile().getAbsolutePath(), "android", "absolute"].execute(null, rootDir).text.trim())\n cliFile = new File(["node", "--print", "require.resolve('@expo/cli')"].execute(null, rootDir).text.trim())\n bundleCommand = "export:embed"\n`;if(b.indexOf(S)===-1){b=(0,re.appendContentsInsideDeclarationBlock)(b,"react",S)}return b}S.updateAndroidGradleFile=updateAndroidGradleFile;function updateBabelConfig(b){return b.replace(/['"]module:metro-react-native-babel-preset['"]/g,`'babel-preset-expo'`)}S.updateBabelConfig=updateBabelConfig;function updateMetroConfig(b){const S=/^const \{\s*getDefaultConfig, mergeConfig\s*\} = require\('@react-native\/metro-config'\);$/m;if(!b.match(S)){console.warn("⚠️ Unrecognized `metro.config.js` content, will skip the process to update `metro.config.js`. Please manually update the contents to use the `getDefaultConfig()` from `expo/metro-config`.");return b}return b.replace(S,`const { getDefaultConfig } = require('expo/metro-config');\nconst { mergeConfig } = require('@react-native/metro-config');`)}S.updateMetroConfig=updateMetroConfig;function updateVirtualMetroEntryAndroid(b){return b.replace(/^(\s*return\s+")(index)(";?)$/m,`$1.expo/.virtual-metro-entry$3`)}S.updateVirtualMetroEntryAndroid=updateVirtualMetroEntryAndroid;function updateVirtualMetroEntryIos(b){return b.replace(/^(\s*return.*RCTBundleURLProvider.*jsBundleURLForBundleRoot:@")(index)(".*;)$/m,`$1.expo/.virtual-metro-entry$3`)}S.updateVirtualMetroEntryIos=updateVirtualMetroEntryIos;function updateIosXcodeProjectBuildPhase(b){if(b.name==="Start Packager"){b.shellScript=`if [[ -f "$PODS_ROOT/../.xcode.env" ]]; then\n source "$PODS_ROOT/../.xcode.env"\nfi\nif [[ -f "$PODS_ROOT/../.xcode.env.local" ]]; then\n source "$PODS_ROOT/../.xcode.env.local"\nfi\n\nexport RCT_METRO_PORT="\${RCT_METRO_PORT:=8081}"\necho "export RCT_METRO_PORT=\${RCT_METRO_PORT}" > \`$NODE_BINARY --print "require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/.packager.env'"\`\nif [ -z "\${RCT_NO_LAUNCH_PACKAGER+xxx}" ] ; then\n if nc -w 5 -z localhost \${RCT_METRO_PORT} ; then\n if ! curl -s "http://localhost:\${RCT_METRO_PORT}/status" | grep -q "packager-status:running" ; then\n echo "Port \${RCT_METRO_PORT} already in use, packager is either not running or not running correctly"\n exit 2\n fi\n else\n open \`$NODE_BINARY --print "require('path').dirname(require.resolve('expo/package.json')) + '/scripts/launchPackager.command'"\` || echo "Can't start packager automatically"\n fi\nfi\n`}if(b.name==="Bundle React Native code and images"){b.shellScript=`if [[ -f "$PODS_ROOT/../.xcode.env" ]]; then\n source "$PODS_ROOT/../.xcode.env"\nfi\nif [[ -f "$PODS_ROOT/../.xcode.env.local" ]]; then\n source "$PODS_ROOT/../.xcode.env.local"\nfi\n\n# The project root by default is one level up from the ios directory\nexport PROJECT_ROOT="$PROJECT_DIR"/..\n\nif [[ "$CONFIGURATION" = *Debug* ]]; then\n export SKIP_BUNDLING=1\nfi\nif [[ -z "$ENTRY_FILE" ]]; then\n # Set the entry JS file using the bundler's entry resolution.\n export ENTRY_FILE="$("$NODE_BINARY" -e "require('expo/scripts/resolveAppEntry')" "$PROJECT_ROOT" ios absolute | tail -n 1)"\nfi\n\nif [[ -z "$CLI_PATH" ]]; then\n # Use Expo CLI\n export CLI_PATH="$("$NODE_BINARY" --print "require.resolve('@expo/cli')")"\nfi\nif [[ -z "$BUNDLE_COMMAND" ]]; then\n # Default Expo CLI command for bundling\n export BUNDLE_COMMAND="export:embed"\nfi\n\n\`"$NODE_BINARY" --print "require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/react-native-xcode.sh'"\`\n`}return b}S.updateIosXcodeProjectBuildPhase=updateIosXcodeProjectBuildPhase;function updateGitIgnore(b){if(b.match(/^\.expo$/m)){return b}return b+`\n# Expo\n.expo\ndist/\nweb-build/`}S.updateGitIgnore=updateGitIgnore},2554:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.updateDeploymentTargetXcodeProject=S.lookupReactNativeMinIosVersionSupported=S.shouldUpdateDeployTargetPodfileAsync=S.updateDeploymentTargetPodfile=S.withIosDeploymentTarget=void 0;const te=J(36581);const re=ee(J(57147));const ne=ee(J(71017));const ie=ee(J(12753));const oe=ee(J(92901));const se=J(40504);const ae=J(25823);const withIosDeploymentTarget=(b,S)=>{b=withIosDeploymentTargetPodfile(b,S);b=withIosDeploymentTargetXcodeProject(b,S);return b};S.withIosDeploymentTarget=withIosDeploymentTarget;const withIosDeploymentTargetPodfile=(b,S)=>(0,te.withDangerousMod)(b,["ios",async b=>{const J=ne.default.join(b.modRequest.platformProjectRoot,"Podfile");let ee=await re.default.promises.readFile(J,"utf8");ee=await updateDeploymentTargetPodfile(b.modRequest.projectRoot,ee,S.deploymentTarget);await re.default.promises.writeFile(J,ee);return b}]);function createPodfilePlatformRegExp(){return/^(\s*platform :ios,\s*)(['"][\d.]+['"]|min_ios_version_supported)/gm}async function parseVersionAsync(b,S){let J;if(S==="min_ios_version_supported"){J=await lookupReactNativeMinIosVersionSupported(b)}else{J=S.replace(/'"/g,"")}return J}async function updateDeploymentTargetPodfile(b,S,J){const ee=createPodfilePlatformRegExp().exec(S);if(ee){const te=await parseVersionAsync(b,ee[2]);if(te&&oe.default.lt(toSemVer(te),toSemVer(J))){return S.replace(createPodfilePlatformRegExp(),((b,S,ee)=>`${S}'${J}'`))}}return S}S.updateDeploymentTargetPodfile=updateDeploymentTargetPodfile;async function shouldUpdateDeployTargetPodfileAsync(b,S){const J=ne.default.join(b,"ios","Podfile");const ee=await re.default.promises.readFile(J,"utf-8");const te=createPodfilePlatformRegExp().exec(ee);if(!te){console.warn("Unrecognized `ios/Podfile` content, will skip the process to update minimum iOS supported version.");return false}const ie=await parseVersionAsync(b,te[2]);if(!ie){console.warn("Unrecognized `ios/Podfile` content, will skip the process to update minimum iOS supported version.");return false}return oe.default.lt(toSemVer(ie),toSemVer(S))}S.shouldUpdateDeployTargetPodfileAsync=shouldUpdateDeployTargetPodfileAsync;async function lookupReactNativeMinIosVersionSupported(b){const S=ie.default.silent(b,"react-native/scripts/cocoapods/helpers.rb");if(S){try{const b=await re.default.promises.readFile(S,"utf-8");const J=/^\s*def self\.min_ios_version_supported\n\s*return\s*['"]([\d.]+)['"]/gm;const ee=J.exec(b);if(ee){return ee[1]}}catch{}}const J=ie.default.silent(b,"react-native/scripts/react_native_pods.rb");if(J){try{const b=await re.default.promises.readFile(J,"utf-8");const S=/^def min_ios_version_supported\n\s*return\s*['"]([\d.]+)['"]/gm;const ee=S.exec(b);if(ee){return ee[1]}}catch{}}return null}S.lookupReactNativeMinIosVersionSupported=lookupReactNativeMinIosVersionSupported;const withIosDeploymentTargetXcodeProject=(b,S)=>(0,ae.withXCParseXcodeProject)(b,(b=>{b.modResults=updateDeploymentTargetXcodeProject(b.modResults,S.deploymentTarget);return b}));function updateDeploymentTargetXcodeProject(b,S){for(const J of Object.values(b.objects??{})){if(J.isa===se.ISA.XCBuildConfiguration){const{buildSettings:b}=J;const ee=b?.IPHONEOS_DEPLOYMENT_TARGET;if(ee&&oe.default.lt(toSemVer(ee),toSemVer(S))){b.IPHONEOS_DEPLOYMENT_TARGET=S}}}return b}S.updateDeploymentTargetXcodeProject=updateDeploymentTargetXcodeProject;function toSemVer(b){return oe.default.coerce(b)??new oe.default.SemVer("0.0.0")}},70639:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.withIosModules=void 0;const ee=J(36581);const te=J(61121);const re=J(53753);const withIosModules=b=>(0,ee.withPlugins)(b,[te.withIosModulesAppDelegate,te.withIosModulesAppDelegateObjcHeader,te.withIosModulesSwiftBridgingHeader,re.withIosModulesPodfile]);S.withIosModules=withIosModules},61121:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.updateModulesAppDelegateSwift=S.updateModulesAppDelegateObjcHeader=S.updateModulesAppDelegateObjcImpl=S.withIosModulesSwiftBridgingHeader=S.withIosModulesAppDelegateObjcHeader=S.withIosModulesAppDelegate=void 0;const te=J(36581);const re=J(41310);const ne=ee(J(57147));const ie=J(91104);const oe=ee(J(92901));const se=J(25823);const withIosModulesAppDelegate=b=>(0,te.withAppDelegate)(b,(b=>{b.modResults.contents=["objc","objcpp"].includes(b.modResults.language)?updateModulesAppDelegateObjcImpl(b.modResults.contents,b.sdkVersion):updateModulesAppDelegateSwift(b.modResults.contents,b.sdkVersion);return b}));S.withIosModulesAppDelegate=withIosModulesAppDelegate;const withIosModulesAppDelegateObjcHeader=b=>(0,te.withDangerousMod)(b,["ios",async b=>{try{const S=te.IOSConfig.Paths.getAppDelegateObjcHeaderFilePath(b.modRequest.projectRoot);let J=await ne.default.promises.readFile(S,"utf8");J=updateModulesAppDelegateObjcHeader(J,b.sdkVersion);await ne.default.promises.writeFile(S,J)}catch{}return b}]);S.withIosModulesAppDelegateObjcHeader=withIosModulesAppDelegateObjcHeader;const withIosModulesSwiftBridgingHeader=b=>(0,se.withXCParseXcodeProject)(b,(async b=>{const S=(0,se.getDesignatedSwiftBridgingHeaderFileReference)(b.modResults);if(!S){return b}const[J]=(0,ie.sync)(`ios/${S.replace(/['"]/g,"")}`,{absolute:true,cwd:b.modRequest.projectRoot});if(!J){return b}let ee=await ne.default.promises.readFile(J,"utf8");if(!ee.match(/^#import\s+<Expo\/Expo\.h>\s*$/m)){ee=(0,re.addObjcImports)(ee,["<Expo/Expo.h>"])}await ne.default.promises.writeFile(J,ee);return b}));S.withIosModulesSwiftBridgingHeader=withIosModulesSwiftBridgingHeader;function updateModulesAppDelegateObjcImpl(b,S){const J="[super application:application didFinishLaunchingWithOptions:launchOptions];";if(!b.includes(` ${J}`)){b=(0,re.insertContentsInsideObjcFunctionBlock)(b,"application:didFinishLaunchingWithOptions:",J,{position:"tailBeforeLastReturn"})}if(S&&oe.default.gte(S,"44.0.0")){b=b.replace(/\[\[RCTBridge alloc\] initWithDelegate:/g,"[self.reactDelegate createBridgeWithDelegate:");b=b.replace(/\[\[RCTRootView alloc\] initWithBridge:/g,"[self.reactDelegate createRootViewWithBridge:");b=b.replace(/\bRCTAppSetupDefaultRootView\((.+)\)/g,((b,S)=>{const[J,ee,te]=S.split(",").map((b=>b.trim()));return`[self.reactDelegate createRootViewWithBridge:${J} moduleName:${ee} initialProperties:${te}]`}));b=b.replace(/\[UIViewController new\]/g,"[self.reactDelegate createRootViewController]")}return b}S.updateModulesAppDelegateObjcImpl=updateModulesAppDelegateObjcImpl;function updateModulesAppDelegateObjcHeader(b,S){if(!b.match(/^#import\s+<Expo\/Expo\.h>\s*$/m)){b=(0,re.addObjcImports)(b,["<Expo/Expo.h>"])}b=b.replace(/^(\s*@interface\s+AppDelegate\s+:\s+)RCTAppDelegate$/m,"$1EXAppDelegateWrapper");b=b.replace(/^(\s*@interface\s+AppDelegate\s+:\s+)UIResponder(\s+.+)$/m,"$1EXAppDelegateWrapper$2");return b}S.updateModulesAppDelegateObjcHeader=updateModulesAppDelegateObjcHeader;function updateModulesAppDelegateSwift(b,S){b=b.replace(/^(class\s+AppDelegate\s*:\s*)NSObject,\s*UIApplicationDelegate(\W+)/m,"$1AppDelegateWrapper$2");const J="super.application(application, didFinishLaunchingWithOptions: launchOptions)";if(!b.includes(` ${J}`)){b=(0,re.insertContentsInsideSwiftFunctionBlock)(b,"application(_:didFinishLaunchingWithOptions:)",J,{position:"tailBeforeLastReturn",indent:4})}if(S&&oe.default.gte(S,"44.0.0")){b=b.replace(/\bRCTBridge\(delegate:/g,"reactDelegate.createBridge(delegate:");b=b.replace(/\bRCTRootView\(bridge:/g,"reactDelegate.createRootView(bridge:");b=b.replace(/\bUIViewController\(\)/g,"reactDelegate.createRootViewController()")}return b}S.updateModulesAppDelegateSwift=updateModulesAppDelegateSwift},53753:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.updatePodfile=S.withIosModulesPodfile=void 0;const te=J(36581);const re=ee(J(57147));const ne=ee(J(71017));const ie=ee(J(92901));const{getProjectName:oe}=te.IOSConfig.XcodeUtils;const withIosModulesPodfile=b=>(0,te.withDangerousMod)(b,["ios",async b=>{const S=ne.default.join(b.modRequest.platformProjectRoot,"Podfile");let J=await re.default.promises.readFile(S,"utf8");const ee=oe(b.modRequest.projectRoot);J=updatePodfile(J,ee,b.sdkVersion);await re.default.promises.writeFile(S,J);return b}]);S.withIosModulesPodfile=withIosModulesPodfile;function updatePodfile(b,S,J){if(!b.match(/^require.+'expo\/package\.json.+scripts\/autolinking/m)){b=`require File.join(File.dirname(\`node --print "require.resolve('expo/package.json')"\`), "scripts/autolinking")\n${b}`}if(!b.match(/^\s*use_expo_modules!\s*$/m)){const J=new RegExp(`(^\\s*target\\s+['"]${S}['"]\\s+do\\s*$)`,"m");b=b.replace(J,"$1\n use_expo_modules!")}if(J&&ie.default.gte(J,"44.0.0")){if(!b.match(/\bexpo_patch_react_imports!\(installer\)\b/)){const S=/(\bpost_integrate do \|installer\|)/;if(b.match(S)){b=b.replace(S,`$1\n begin\n expo_patch_react_imports!(installer)\n rescue => e\n Pod::UI.warn e\n end`)}else{b=b.replace(/(\buse_expo_modules!\n)/gm,`$1 post_integrate do |installer|\n begin\n expo_patch_react_imports!(installer)\n rescue => e\n Pod::UI.warn e\n end\n end\n`)}}}return b}S.updatePodfile=updatePodfile},25823:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.getDesignatedSwiftBridgingHeaderFileReference=S.withXCParseXcodeProject=S.withXCParseXcodeProjectBaseMod=void 0;const te=J(36581);const re=ee(J(57147));const ne=J(40504);const ie="xcparseXcodeproj";const withXCParseXcodeProjectBaseMod=b=>te.BaseMods.withGeneratedBaseMods(b,{platform:"ios",skipEmptyMod:false,providers:{[ie]:te.BaseMods.provider({getFilePath({modRequest:{projectRoot:b}}){return te.IOSConfig.Paths.getPBXProjectPath(b)},async read(b){const S=await re.default.promises.readFile(b,"utf8");const J=(0,ne.parse)(S);return J},async write(b,{modResults:S}){const J=(0,ne.build)(S);await re.default.promises.writeFile(b,J)}})}});S.withXCParseXcodeProjectBaseMod=withXCParseXcodeProjectBaseMod;const withXCParseXcodeProject=(b,S)=>(0,te.withMod)(b,{platform:"ios",mod:ie,action:S});S.withXCParseXcodeProject=withXCParseXcodeProject;function getDesignatedSwiftBridgingHeaderFileReference(b){for(const S of Object.values(b.objects??{})){if(S.isa===ne.ISA.XCBuildConfiguration){const b=S;const J=b.buildSettings;if(typeof J.PRODUCT_NAME!=="undefined"&&typeof J.SWIFT_OBJC_BRIDGING_HEADER==="string"&&J.SWIFT_OBJC_BRIDGING_HEADER){return J.SWIFT_OBJC_BRIDGING_HEADER}}}return null}S.getDesignatedSwiftBridgingHeaderFileReference=getDesignatedSwiftBridgingHeaderFileReference},70026:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.getVersionInfo=S.getLatestSdkVersion=S.getDefaultSdkVersion=S.ExpoVersionMappings=void 0;const te=ee(J(12753));const re=ee(J(92901));S.ExpoVersionMappings=[{expoSdkVersion:"51.0.0",iosDeploymentTarget:"13.4",reactNativeVersionRange:">= 0.74.0",supportCliIntegration:true},{expoSdkVersion:"50.0.0",iosDeploymentTarget:"13.4",reactNativeVersionRange:">= 0.73.0",supportCliIntegration:true},{expoSdkVersion:"49.0.0",iosDeploymentTarget:"13.0",reactNativeVersionRange:">= 0.72.0",supportCliIntegration:true},{expoSdkVersion:"48.0.0",iosDeploymentTarget:"13.0",reactNativeVersionRange:">= 0.71.0",androidAgpVersion:"7.4.1"},{expoSdkVersion:"47.0.0",iosDeploymentTarget:"13.0",reactNativeVersionRange:">= 0.70.0"},{expoSdkVersion:"46.0.0",iosDeploymentTarget:"12.4",reactNativeVersionRange:">= 0.69.0"},{expoSdkVersion:"45.0.0",iosDeploymentTarget:"12.0",reactNativeVersionRange:">= 0.65.0"},{expoSdkVersion:"44.0.0",iosDeploymentTarget:"12.0",reactNativeVersionRange:"< 0.68.0"},{expoSdkVersion:"43.0.0",iosDeploymentTarget:"12.0",reactNativeVersionRange:"< 0.68.0"}];function getDefaultSdkVersion(b){const J=te.default.silent(b,"react-native/package.json");if(!J){throw new Error(`Unable to find react-native package - projectRoot[${b}]`)}const ee=require(J).version;const ne=S.ExpoVersionMappings.find((b=>re.default.satisfies(ee,b.reactNativeVersionRange)));if(!ne){throw new Error(`Unable to find compatible expo sdk version - reactNativeVersion[${ee}]`)}return ne}S.getDefaultSdkVersion=getDefaultSdkVersion;function getLatestSdkVersion(){return S.ExpoVersionMappings[0]}S.getLatestSdkVersion=getLatestSdkVersion;function getVersionInfo(b){return S.ExpoVersionMappings.find((S=>S.expoSdkVersion===b))??null}S.getVersionInfo=getVersionInfo},76956:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.learnMore=S.link=void 0;const te=ee(J(68746));const re=ee(J(90270));function link(b,{text:S=b,dim:J=true}={}){let ee;if(re.default.isSupported){ee=(0,re.default)(S,b)}else{ee=`${S===b?"":S+": "}${te.default.underline(b)}`}return J?te.default.dim(ee):ee}S.link=link;function learnMore(b,{learnMoreMessage:S,dim:J=true}={}){return link(b,{text:S??"Learn more",dim:J})}S.learnMore=learnMore},88139:function(b,S,J){"use strict";var ee=this&&this.__createBinding||(Object.create?function(b,S,J,ee){if(ee===undefined)ee=J;var te=Object.getOwnPropertyDescriptor(S,J);if(!te||("get"in te?!S.__esModule:te.writable||te.configurable)){te={enumerable:true,get:function(){return S[J]}}}Object.defineProperty(b,ee,te)}:function(b,S,J,ee){if(ee===undefined)ee=J;b[ee]=S[J]});var te=this&&this.__setModuleDefault||(Object.create?function(b,S){Object.defineProperty(b,"default",{enumerable:true,value:S})}:function(b,S){b["default"]=S});var re=this&&this.__importStar||function(b){if(b&&b.__esModule)return b;var S={};if(b!=null)for(var J in b)if(J!=="default"&&Object.prototype.hasOwnProperty.call(b,J))ee(S,b,J);te(S,b);return S};var ne=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.installPodsAsync=S.installExpoPackageAsync=void 0;const ie=re(J(97496));const oe=ne(J(71017));const se=ne(J(92901));async function installPackageNonInteractiveAsync(b,S){const J=ie.createForProject(b,{silent:false});if(J.name==="yarn"){const b=await J.versionAsync();if(se.default.major(b)===1){return J.addAsync([S,"--non-interactive"])}}return J.addAsync([S])}async function installExpoPackageAsync(b,S){try{await installPackageNonInteractiveAsync(b,`expo@^${S}`)}catch{await installPackageNonInteractiveAsync(b,`expo@>=${S}-0 <${se.default.inc(S,"major")}`)}}S.installExpoPackageAsync=installExpoPackageAsync;async function installPodsAsync(b){const S=new ie.CocoaPodsPackageManager({cwd:oe.default.join(b,"ios")});await S.installAsync()}S.installPodsAsync=installPodsAsync},30443:function(b,S,J){"use strict";var ee=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(S,"__esModule",{value:true});S.normalizeProjectRootAsync=void 0;const te=ee(J(39491));const re=ee(J(14823));const ne=ee(J(73292));const ie=ee(J(71017));async function normalizeProjectRootAsync(b){const S=ie.default.dirname(findUpPackageJson(b??process.cwd()));const J=await pathExistsAsync(ie.default.join(S,"android"));const ee=await pathExistsAsync(ie.default.join(S,"ios"));return{projectRoot:S,platformAndroid:J,platformIos:ee}}S.normalizeProjectRootAsync=normalizeProjectRootAsync;function findUpPackageJson(b){const S=re.default.sync("package.json",{cwd:b});(0,te.default)(S,`No package.json found for module "${b}"`);return S}async function pathExistsAsync(b){try{await ne.default.stat(b);return true}catch{return false}}},39491:b=>{"use strict";b.exports=require("assert")},32081:b=>{"use strict";b.exports=require("child_process")},22057:b=>{"use strict";b.exports=require("constants")},6113:b=>{"use strict";b.exports=require("crypto")},9523:b=>{"use strict";b.exports=require("dns")},82361:b=>{"use strict";b.exports=require("events")},57147:b=>{"use strict";b.exports=require("fs")},73292:b=>{"use strict";b.exports=require("fs/promises")},98188:b=>{"use strict";b.exports=require("module")},22037:b=>{"use strict";b.exports=require("os")},71017:b=>{"use strict";b.exports=require("path")},14521:b=>{"use strict";b.exports=require("readline")},12781:b=>{"use strict";b.exports=require("stream")},71576:b=>{"use strict";b.exports=require("string_decoder")},39512:b=>{"use strict";b.exports=require("timers")},76224:b=>{"use strict";b.exports=require("tty")},57310:b=>{"use strict";b.exports=require("url")},73837:b=>{"use strict";b.exports=require("util")},71267:b=>{"use strict";b.exports=require("worker_threads")},19539:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.isIdentifierChar=isIdentifierChar;S.isIdentifierName=isIdentifierName;S.isIdentifierStart=isIdentifierStart;let J="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let ee="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const te=new RegExp("["+J+"]");const re=new RegExp("["+J+ee+"]");J=ee=null;const ne=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];const ie=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(b,S){let J=65536;for(let ee=0,te=S.length;ee<te;ee+=2){J+=S[ee];if(J>b)return false;J+=S[ee+1];if(J>=b)return true}return false}function isIdentifierStart(b){if(b<65)return b===36;if(b<=90)return true;if(b<97)return b===95;if(b<=122)return true;if(b<=65535){return b>=170&&te.test(String.fromCharCode(b))}return isInAstralSet(b,ne)}function isIdentifierChar(b){if(b<48)return b===36;if(b<58)return true;if(b<65)return false;if(b<=90)return true;if(b<97)return b===95;if(b<=122)return true;if(b<=65535){return b>=170&&re.test(String.fromCharCode(b))}return isInAstralSet(b,ne)||isInAstralSet(b,ie)}function isIdentifierName(b){let S=true;for(let J=0;J<b.length;J++){let ee=b.charCodeAt(J);if((ee&64512)===55296&&J+1<b.length){const S=b.charCodeAt(++J);if((S&64512)===56320){ee=65536+((ee&1023)<<10)+(S&1023)}}if(S){S=false;if(!isIdentifierStart(ee)){return false}}else if(!isIdentifierChar(ee)){return false}}return!S}},34679:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});Object.defineProperty(S,"isIdentifierChar",{enumerable:true,get:function(){return ee.isIdentifierChar}});Object.defineProperty(S,"isIdentifierName",{enumerable:true,get:function(){return ee.isIdentifierName}});Object.defineProperty(S,"isIdentifierStart",{enumerable:true,get:function(){return ee.isIdentifierStart}});Object.defineProperty(S,"isKeyword",{enumerable:true,get:function(){return te.isKeyword}});Object.defineProperty(S,"isReservedWord",{enumerable:true,get:function(){return te.isReservedWord}});Object.defineProperty(S,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return te.isStrictBindOnlyReservedWord}});Object.defineProperty(S,"isStrictBindReservedWord",{enumerable:true,get:function(){return te.isStrictBindReservedWord}});Object.defineProperty(S,"isStrictReservedWord",{enumerable:true,get:function(){return te.isStrictReservedWord}});var ee=J(19539);var te=J(60011)},60011:(b,S)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S.isKeyword=isKeyword;S.isReservedWord=isReservedWord;S.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;S.isStrictBindReservedWord=isStrictBindReservedWord;S.isStrictReservedWord=isStrictReservedWord;const J={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const ee=new Set(J.keyword);const te=new Set(J.strict);const re=new Set(J.strictBind);function isReservedWord(b,S){return S&&b==="await"||b==="enum"}function isStrictReservedWord(b,S){return isReservedWord(b,S)||te.has(b)}function isStrictBindOnlyReservedWord(b){return re.has(b)}function isStrictBindReservedWord(b,S){return isStrictReservedWord(b,S)||isStrictBindOnlyReservedWord(b)}function isKeyword(b){return ee.has(b)}},40932:(b,S,J)=>{"use strict";Object.defineProperty(S,"__esModule",{value:true});S["default"]=highlight;S.shouldHighlight=shouldHighlight;var ee=J(48035);var te=J(34679);var re=_interopRequireWildcard(J(26870),true);function _getRequireWildcardCache(b){if("function"!=typeof WeakMap)return null;var S=new WeakMap,J=new WeakMap;return(_getRequireWildcardCache=function(b){return b?J:S})(b)}function _interopRequireWildcard(b,S){if(!S&&b&&b.__esModule)return b;if(null===b||"object"!=typeof b&&"function"!=typeof b)return{default:b};var J=_getRequireWildcardCache(S);if(J&&J.has(b))return J.get(b);var ee={__proto__:null},te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var re in b)if("default"!==re&&Object.prototype.hasOwnProperty.call(b,re)){var ne=te?Object.getOwnPropertyDescriptor(b,re):null;ne&&(ne.get||ne.set)?Object.defineProperty(ee,re,ne):ee[re]=b[re]}return ee.default=b,J&&J.set(b,ee),ee}const ne=new Set(["as","async","from","get","of","set"]);function getDefs(b){return{keyword:b.cyan,capitalized:b.yellow,jsxIdentifier:b.yellow,punctuator:b.yellow,number:b.magenta,string:b.green,regex:b.magenta,comment:b.grey,invalid:b.white.bgRed.bold}}const ie=/\r\n|[\n\r\u2028\u2029]/;const oe=/^[()[\]{}]$/;let se;{const b=/^[a-z][\w-]*$/i;const getTokenType=function(S,J,ee){if(S.type==="name"){if((0,te.isKeyword)(S.value)||(0,te.isStrictReservedWord)(S.value,true)||ne.has(S.value)){return"keyword"}if(b.test(S.value)&&(ee[J-1]==="<"||ee.slice(J-2,J)=="</")){return"jsxIdentifier"}if(S.value[0]!==S.value[0].toLowerCase()){return"capitalized"}}if(S.type==="punctuator"&&oe.test(S.value)){return"bracket"}if(S.type==="invalid"&&(S.value==="@"||S.value==="#")){return"punctuator"}return S.type};se=function*(b){let S;while(S=ee.default.exec(b)){const J=ee.matchToToken(S);yield{type:getTokenType(J,S.index,b),value:J.value}}}}function highlightTokens(b,S){let J="";for(const{type:ee,value:te}of se(S)){const S=b[ee];if(S){J+=te.split(ie).map((b=>S(b))).join("\n")}else{J+=te}}return J}function shouldHighlight(b){return re.default.level>0||b.forceColor}let ae=undefined;function getChalk(b){if(b){var S;(S=ae)!=null?S:ae=new re.default.constructor({enabled:true,level:1});return ae}return re.default}{S.getChalk=b=>getChalk(b.forceColor)}function highlight(b,S={}){if(b!==""&&shouldHighlight(S)){const J=getDefs(getChalk(S.forceColor));return highlightTokens(J,b)}else{return b}}},73570:b=>{"use strict";b.exports=JSON.parse('["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"]')},4147:b=>{"use strict";b.exports=JSON.parse('{"name":"install-expo-modules","version":"0.10.1","license":"MIT","description":"Tools to install expo-modules for existing react-native projects","keywords":["expo","expo-modules","npx","react-native","react"],"bin":"build/index.js","main":"build/index.js","files":["build"],"scripts":{"build":"ncc build ./src/index.ts -o build/","build:prod":"ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register","clean":"expo-module clean","lint":"expo-module lint","prepare":"expo-module clean && yarn run build:prod","prepublishOnly":"expo-module prepublishOnly","test":"expo-module test","typecheck":"expo-module typecheck","watch":"yarn run build --watch"},"homepage":"https://github.com/expo/expo/tree/main/packages/install-expo-modules#readme","bugs":{"url":"https://github.com/expo/expo/issues"},"repository":{"type":"git","url":"https://github.com/expo/expo.git","directory":"packages/install-expo-modules"},"devDependencies":{"@expo/config":"^9.0.0","@expo/config-plugins":"^8.0.0","@expo/package-manager":"^1.5.0","@types/prompts":"^2.0.6","@types/semver":"^6.0.0","chalk":"^4.1.2","commander":"2.20.0","expo-module-scripts":"^3.3.0","find-up":"^5.0.0","glob":"7.1.6","prompts":"^2.3.2","resolve-from":"^5.0.0","semver":"7.5.4","terminal-link":"^2.1.1","xcparse":"^0.0.3"},"publishConfig":{"access":"public"},"gitHead":"979e9f1fc3cfa9c827700dcf99992e671cfdf63e"}')}};var S={};function __nccwpck_require__(J){var ee=S[J];if(ee!==undefined){return ee.exports}var te=S[J]={id:J,loaded:false,exports:{}};var re=true;try{b[J].call(te.exports,te,te.exports,__nccwpck_require__);re=false}finally{if(re)delete S[J]}te.loaded=true;return te.exports}(()=>{__nccwpck_require__.nmd=b=>{b.paths=[];if(!b.children)b.children=[];return b}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var J=__nccwpck_require__(2855);module.exports=J})();
|